efficient-storefront-blocks 0.100.0 → 0.101.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 (112) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/chunks/{EditorPreviewCheckout-OLTXWUGM.js → EditorPreviewCheckout-JMBBJSI7.js} +1 -1
  3. package/dist/chunks/{SiteEditorProvider-4XV2T5MD.js → SiteEditorProvider-BKZW7KVN.js} +1 -1
  4. package/dist/chunks/chunk-AF5TRBQB.js +1 -0
  5. package/dist/chunks/chunk-GJZGQCDM.js +1 -0
  6. package/dist/chunks/chunk-KV3EHFHB.js +339 -0
  7. package/dist/chunks/chunk-YSKMBJ7V.js +74 -0
  8. package/dist/chunks/{fitment-data-ZWKG2FFA.js → fitment-data-HMD5DDDB.js} +1 -1
  9. package/dist/consent.js +1 -1
  10. package/dist/editor/lib/api/section-templates.js +1 -1
  11. package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/commerce/GalleryB/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/commerce/ProductGrid/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
  15. package/dist/editor/lib/document/blocks/service/Subscribe/fields.js +1 -1
  16. package/dist/editor/lib/document/box-header.js +1 -1
  17. package/dist/editor/lib/document/config.js +1 -1
  18. package/dist/editor/lib/efficient-block-sources.js +1 -1
  19. package/dist/editor/lib/storefront-editor-words.d.ts +1 -0
  20. package/dist/editor/lib/storefront-editor-words.js +1 -1
  21. package/dist/editor.css +1 -1
  22. package/dist/index.js +35 -30
  23. package/dist/links.js +1 -1
  24. package/dist/render/app/globals.css +122 -16
  25. package/dist/render/built-with.json +1 -1
  26. package/dist/render/components/ChatWidget.js +1 -1
  27. package/dist/render/components/Collections.js +1 -1
  28. package/dist/render/components/ConsentContext.d.ts +6 -0
  29. package/dist/render/components/ConsentContext.js +1 -1
  30. package/dist/render/components/ConsentPanel.d.ts +6 -0
  31. package/dist/render/components/ConsentPanel.js +1 -1
  32. package/dist/render/components/ConsentProvider.js +1 -1
  33. package/dist/render/components/CouponField.js +1 -1
  34. package/dist/render/components/DealerFinderSection.js +1 -1
  35. package/dist/render/components/EmailCaptureForm.js +1 -1
  36. package/dist/render/components/Events.js +1 -1
  37. package/dist/render/components/FooterEmailSignup.js +1 -1
  38. package/dist/render/components/FooterLogo.d.ts +1 -1
  39. package/dist/render/components/FooterLogo.js +1 -1
  40. package/dist/render/components/FooterMenu.d.ts +2 -1
  41. package/dist/render/components/FooterMenu.js +1 -1
  42. package/dist/render/components/GalleryGrid.d.ts +2 -1
  43. package/dist/render/components/GalleryGrid.js +3 -3
  44. package/dist/render/components/LegalLine.d.ts +10 -0
  45. package/dist/render/components/LegalLine.js +1 -1
  46. package/dist/render/components/ProductGridSection.js +1 -1
  47. package/dist/render/components/ProductHeroPanel.js +1 -1
  48. package/dist/render/components/SiteLegalContext.d.ts +19 -0
  49. package/dist/render/components/SiteLegalContext.js +1 -0
  50. package/dist/render/components/Subscribe.d.ts +9 -1
  51. package/dist/render/components/Subscribe.js +1 -1
  52. package/dist/render/components/booking/BookingFormState.js +1 -1
  53. package/dist/render/components/fitment/FitmentFinder.js +1 -1
  54. package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.js +1 -1
  55. package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +2 -2
  56. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  57. package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -1
  58. package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
  59. package/dist/render/components/wheels-plp/usePlpFiltersInUrl.d.ts +3 -2
  60. package/dist/render/components/wheels-plp/usePlpFiltersInUrl.js +1 -1
  61. package/dist/render/lib/api/index.js +1 -1
  62. package/dist/render/lib/api/list-rows.d.ts +3 -0
  63. package/dist/render/lib/api/list-rows.js +1 -0
  64. package/dist/render/lib/api/types.d.ts +4 -0
  65. package/dist/render/lib/cache-evict.d.ts +1 -0
  66. package/dist/render/lib/cache-evict.js +1 -1
  67. package/dist/render/lib/chrome-cache.js +1 -1
  68. package/dist/render/lib/consent/rules.d.ts +7 -0
  69. package/dist/render/lib/consent/rules.js +1 -1
  70. package/dist/render/lib/content/collection-card-look.d.ts +0 -4
  71. package/dist/render/lib/content/collection-card-look.js +1 -1
  72. package/dist/render/lib/content/facet-row-seed.js +1 -1
  73. package/dist/render/lib/content/product-card-seed.js +1 -1
  74. package/dist/render/lib/content/rail-row-seed.js +1 -1
  75. package/dist/render/lib/content/site.d.ts +4 -0
  76. package/dist/render/lib/content/site.js +1 -1
  77. package/dist/render/lib/content/tab-strip.d.ts +3 -1
  78. package/dist/render/lib/content/tab-strip.js +1 -1
  79. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
  80. package/dist/render/lib/document/blocks/commerce/GalleryB/render.js +1 -1
  81. package/dist/render/lib/document/blocks/commerce/ProductGrid/render.js +1 -1
  82. package/dist/render/lib/document/blocks/service/Subscribe/render.js +1 -1
  83. package/dist/render/lib/document/card-templates.js +1 -1
  84. package/dist/render/lib/document/document-nodes.d.ts +2 -0
  85. package/dist/render/lib/document/document-nodes.js +1 -1
  86. package/dist/render/lib/document/footer-page-blocks.js +1 -1
  87. package/dist/render/lib/document/section-to-box-rows-listing.js +1 -1
  88. package/dist/render/lib/field-input.d.ts +2 -0
  89. package/dist/render/lib/field-input.js +1 -1
  90. package/dist/render/lib/links/link-rules.d.ts +5 -0
  91. package/dist/render/lib/links/link-rules.js +1 -1
  92. package/dist/render/lib/sections/band-padding.d.ts +17 -1
  93. package/dist/render/lib/sections/band-padding.js +1 -1
  94. package/dist/render/lib/sections/gallery-toolbar.d.ts +2 -2
  95. package/dist/render/lib/sections/gallery-toolbar.js +1 -1
  96. package/dist/render/lib/sections/product-pictures.js +1 -1
  97. package/dist/render/lib/wheels/catalog-filters-to-listing.js +1 -1
  98. package/dist/render/lib/wheels/plp-filters.d.ts +2 -1
  99. package/dist/render/lib/wheels/plp-filters.js +1 -1
  100. package/dist/render/lib/wheels/plp-hydrate.d.ts +0 -3
  101. package/dist/render/lib/wheels/plp-hydrate.js +1 -1
  102. package/dist/render/lib/wheels/selected-ranges.d.ts +1 -0
  103. package/dist/render/lib/wheels/selected-ranges.js +1 -1
  104. package/dist/words.d.ts +1 -0
  105. package/dist/words.js +1 -1
  106. package/package.json +4 -4
  107. package/dist/chunks/chunk-4SYZK3TW.js +0 -1
  108. package/dist/chunks/chunk-G6OVBAOA.js +0 -74
  109. package/dist/chunks/chunk-OWUMH5VC.js +0 -339
  110. package/dist/chunks/chunk-WN7SFD3N.js +0 -1
  111. /package/dist/chunks/{chunk-OWUMH5VC.js.LEGAL.txt → chunk-KV3EHFHB.js.LEGAL.txt} +0 -0
  112. /package/dist/chunks/{chunk-SCTOV5CT.js → chunk-XNUK2QNK.js} +0 -0
@@ -0,0 +1,339 @@
1
+ import{$ as Ta,$a as Pa,$c as wh,$d as Ov,Ac as bh,Ae as Dv,Ag as dk,B as xC,Ba as nh,Bc as R,Ca as _C,Cb as Gr,Cc as Do,Cd as bv,Cf as Qv,Ch as Wh,Da as AC,Dc as Cr,De as Kr,Df as Fh,E as jd,Ea as so,Ec as nv,Ed as No,Ee as Oh,F as IC,Fa as LC,Fb as Sl,Fc as W,Fd as Ft,G as gC,Ga as RC,Gc as Ko,H as gl,Ha as FC,Hb as zn,Hc as sv,Hh as kk,I as eh,Ia as BC,Ib as Lt,Ic as Rt,Id as yv,Ih as hc,J as He,Ja as DC,Jb as uh,Jc as $n,Jd as kh,K as oe,Ka as NC,Kc as jr,Ke as Nv,La as MC,Lc as vr,Le as Mv,Ma as HC,Me as _h,Mg as ck,N as bC,Na as UC,Nc as qe,Nd as Sv,Ne as xo,Nf as Aa,Ng as Mh,O as $r,Oa as WC,Oc as lv,Od as wv,Oe as Hv,Og as fk,Oh as xc,P as Mn,Pa as Yd,Pd as Cv,Pe as Uv,Pf as ek,Pg as Hh,Q as yC,Qa as Xd,Qc as iv,Qd as vv,Qe as qn,Qg as pk,R as yr,Ra as zC,Rc as dv,Re as Vo,Rf as ok,Rg as uk,S as oh,Sa as $C,Sb as Ea,Sc as yh,Sd as kv,Sg as mk,T as Hn,Tc as cv,Te as Yn,Tf as tk,Tg as uc,Th as es,Ua as GC,Ub as mh,Ud as Tv,Ue as Xn,Uf as rk,Va as jC,Vb as hh,Vd as Pv,Vf as ak,Vg as hk,Wa as sh,Wf as nk,X as bl,Xb as Qd,Xc as fv,Xd as Ev,Xe as Wv,Xh as qr,Ya as KC,Yc as pv,Yf as er,Z as SC,Za as lh,Zc as Sh,Zf as sk,Zh as Yr,_ as wC,_a as Wn,_e as kl,_h as Ic,a as Gd,ab as ih,ac as xh,ad as Ch,af as zv,ag as lk,ah as Uh,ai as Tk,b as Se,bb as dh,bc as ec,be as Jt,bf as Ah,bg as or,c as yo,ca as CC,cb as ch,cc as ev,cd as Oa,ce as vl,cg as Bh,d as br,da as Kd,db as VC,dc as ov,dd as Gn,de as Th,ea as vC,eb as qC,ec as tv,ed as oo,ee as _v,ef as lc,ei as Pk,f as At,fa as Vd,fb as YC,fc as Ih,ff as $v,fg as Dh,g as Il,ga as kC,gb as fh,gc as rv,gd as wl,gf as Gv,gg as Tr,gi as Ek,ha as TC,hb as XC,hd as kr,he as rc,hf as jv,hg as dc,i as cC,ia as PC,ib as Zd,id as jn,ie as Av,if as ic,ig as qo,ja as yl,jd as uv,je as Ph,jf as Kv,jg as we,k as fC,ka as Sr,kb as Jd,kd as mv,kf as Vv,kg as cc,ki as ue,la as EC,lg as ik,lh as xk,me as ac,mf as qv,mg as Tl,mh as Ik,n as pC,na as q,nb as io,ne as Lv,nf as Lh,ng as tt,nh as gk,oa as qd,ob as ZC,oe as Eh,og as Pl,oi as Lk,pb as JC,pd as oc,pf as Yv,pg as fc,ph as bk,pi as Rk,qd as hv,qe as Rv,qf as Uo,qg as Jn,qh as yk,r as uC,ra as ct,rb as QC,rd as tc,re as nc,rf as Vr,rg as Nh,rh as Sk,ri as wc,sa as wr,sc as av,sd as Kn,sf as Xv,si as Fk,t as Zt,ta as Un,tb as ph,tc as gh,td as vh,te as Ue,tf as Zv,tg as pc,th as wk,ti as Bk,ua as th,ud as Cl,ue as ve,uf as Qt,va as OC,ve as Fv,vf as Zn,vh as Qn,w as j,wa as rh,we as Vn,wh as Ck,x as $e,xa as ah,xd as xv,xe as Bv,xh as mc,y as mC,yc as K,yd as Iv,ye as sc,yf as Jv,yh as vk,z as hC,zc as se,zd as gv,ze as _a,zf as Rh}from"./chunk-YSKMBJ7V.js";import{c as Ok,d as gc,e as bc,i as _k,j as ft,k as yc,l as Sc,m as Ak,q as zh}from"./chunk-XNUK2QNK.js";var Nk="en",Cc=null,Mk=Nk,Hk=null;function $fe(e,o,t){Cc=e??null,Mk=o||Nk,Hk=t??null}function le(){return Hk}function $h(){return Mk}function Uk(){return Cc}function Dk(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>$e(o,r)?String(j(o,r)):t):e}function i(e,o){let t=Cc?j(Cc,e):void 0;if(typeof t=="function"){try{let r=Se(t(o??{}));if(r)return r}catch{}return Dk(e,o)}return Dk(Se(t)??e,o)}function Wo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as Gh,Fragment as J5,jsxs as Q5}from"react/jsx-runtime";import{createContext as e3,useContext as o3}from"react";var t3={mirrorHostStyles:!0,css:null,fontHrefs:[]},Wk=e3(t3);function Vfe({value:e,children:o}){return Gh(Wk.Provider,{value:e,children:o})}function jh(){return o3(Wk)}function zk(){let{css:e,fontHrefs:o}=jh();return Q5(J5,{children:[o.map(t=>Gh("link",{rel:"stylesheet",href:t},t)),e?Gh("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as r3}from"react/jsx-runtime";import{createContext as a3,useContext as n3}from"react";var $k=a3(void 0);function Zfe({metadata:e,children:o}){return r3($k.Provider,{value:e,children:o})}var Gk=()=>n3($k);import{jsx as To,Fragment as R5,jsxs as Wd}from"react/jsx-runtime";import{useCallback as ml,useEffect as hr,useRef as xfe,useState as O5}from"react";import{SettingsSwitch as Ife}from"efficient-easel/panel";import{PagesIcon as gfe,StylesIcon as bfe}from"efficient-easel/rail";import{PaletteIcon as yfe}from"efficient-shell/icons/efficient";import{Subtree as Sfe,TreeRow as F5}from"efficient-easel/tree";import{useEasel as B5}from"efficient-easel/easel";import{useEaselStrings as D5}from"efficient-easel/strings";import{createContext as s3,useContext as l3}from"react";var Kh=s3(!1),epe=()=>l3(Kh);import{useMemo as i3,useRef as d3}from"react";import{useEaselApi as c3}from"efficient-easel/easel";import{useSectionOps as f3}from"efficient-easel/screen/lib/document/use-section-ops";function vc(){let e=c3(),o=f3(),t=d3(o);return t.current=o,i3(()=>({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 n7}from"efficient-easel/draw";import{insertAt as s7,moveTo as l7,removeAt as i7}from"efficient-easel/fields";import{useSyncExternalStore as J8}from"react";import{isNodeList as qh}from"efficient-easel/data";import{isNodeList as p3}from"efficient-easel/data";function os(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 ts(e,o){let t=null;for(let[r,a]of Object.entries(e.props??{})){if(!p3(a))continue;let n=o(a,r);n!==a&&((t??={...e.props})[r]=n)}return t?{...e,props:t}:e}var jk="Flex";function rs(e,o){return Jt(e)?typeof e?.[At]=="string"?Vh(o?.[At]):"":Vh(e?.[At])}var Vh=e=>typeof e=="string"?e.trim():"",u3=e=>e.type===Ft&&Array.isArray(e.props?.[kh])&&e.props[kh].some(o=>Vh(o?.[At])!==""),m3=new Intl.NumberFormat("en-US");function h3(e){return/^\d+$/.test(e)?m3.format(Number(e)):e}function ppe(e,o){let t=o?o.find(r=>r.key===e)?.value:uC(Il).find(r=>r.key===e)?.value;return t===void 0?null:h3(t)}var x3={[At]:"any"};function Yh(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(rs(t)!==""||o&&rs(t,x3)!==""),a=o||u3(e),n=ts(e,l=>os(l,d=>{let c=Yh(d,a);return c.names&&(r=!0),c.node})).props;if(e.type!==jk)return{node:n===t?e:{...e,props:n},names:r};let s=Zt(n);if(r&&!s&&(n={...n,[yo]:Il}),!r&&s===Il){let{[yo]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function Kk(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!qh(a))continue;let n=Kk(a,o,r.type===jk?r:t);if(n!==void 0)return n}}}function upe(e,o){if(!qh(e))return!0;let t=Kk(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Zt(t.props);return!r||r===Il}function Vk(e){let o=e?.content;if(!qh(o))return e;let t=o.map(r=>Yh(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function qk(e){return Yh(e).node}import{jsx as k,jsxs as Lr,Fragment as Fr}from"react/jsx-runtime";import{cloneElement as ag,createContext as cj,useContext as rO,useEffect as fj,useId as aO,useRef as ni,useState as si}from"react";import{useEasel as zf,useSelectedHost as qa}from"efficient-easel/easel";import{PIN_LENGTH as Mf,toDateKey as ewe,fromDateKey as owe}from"efficient-shell/format";function I3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function zo(e){return typeof e=="string"?e:I3(e)?e.src:""}function hpe(e,o,t){return Xh(e,o.split("."),t)}function Xh(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=Xh(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=Xh(d,a,t);return c===d?e:{...l,[s]:c}}var g3=["upload","youtube"],b3="upload",gpe={upload:"Upload",youtube:"YouTube"},y3=["background","click"],S3="background",bpe={background:"Background",click:"Click to play"};function Xk(e){return g3.includes(e)?e:b3}function Zk(e){return y3.includes(e)?e:S3}var Yk=/^[A-Za-z0-9_-]{11}$/,w3=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function Jk(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(Yk.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:"||!w3.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&&Yk.test(a)?a:null}function Zh(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 Qk(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function eT(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var Jh="Play video";var Qh={frame:"Video frame",image:"Image"},ype={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function El(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":zo(e.poster)?"image":"frame"}function Spe(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=El(e)==="image"?[t,r]:[r,t];return zo(a)||zo(n)||void 0}function oT(e){if(zo(e.mediaVideo)){if(El(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 kc="videoFrames",ex="videoFramesNotOwn";function tT(e,o,t){let r=zo(e.mediaVideo);if(!r||!o||El(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 C3(e,o){let t=zo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function wpe(e,o,t){let r=t?.[ex];if(!(Array.isArray(r)&&r.includes(e)))return C3(o,t?.[kc])}import{useSyncExternalStore as v3}from"react";function Tc(){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 v3(t,a,a)}}}var Ye="SiteHeader",We="SiteFooter",ox="sections",Tpe=[Ye,We],as=e=>e===Ye||e===We,rT=e=>`${e}:${ox}`;function aT(e,o,t=[]){return{type:e,props:{id:o,[ox]:t}}}var k3=new Set(["Footer",Ye,We]);function ns(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):k3.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Pc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ye?[o,...e]:[...e,o]}var nT={[Ye]:{max:3,takes:["Flex","Ticker"]},[We]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function sT(e,o,t){if(!as(e))return!0;let r=nT[e];return t<r.max&&r.takes.includes(o)}function lT(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(!as(n?.type))continue;let s=n.props?.[ox];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=nT[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 T3}from"efficient-easel/draw";function Ol(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Ec(e,o,t){let r=Ol(t?.zone),a=r?T3(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as P3}from"efficient-easel/data";var iT="Footer",dT=[Ye,iT,We],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},ss=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},cT=e=>Ol(e)?.ownerId??"";function fT(e){let o=ns(La(e)),t=o.some(r=>r?.type===We);return o.filter(r=>r?.type===Ye||r?.type===We||r?.type===iT&&!t)}function Oc(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(P3(a)){let n=ss(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(cT(s))||(n.add(s),r(l),a=!0)}}return t}function pT(e,o){let t=La(e).filter(r=>{let a=ss(r);return typeof r?.type=="string"&&dT.includes(r.type)||a!==void 0&&o(a)});return t.length?Oc(t,Xr(e)):new Set}function tx(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(cT(a))?t:r)[a]=n;return{owned:t,rest:r}}function uT(e,o){if(!o)return e;let t=fT(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}=tx(Xr(o),Oc(t,Xr(o)));return Object.keys(s).length&&(n.zones={...Xr(e)??{},...s}),n}function rx(e,o){if(!o)return{page:e,chrome:null};let t=fT(o),r=new Set(t.map(ss).filter(T=>!!T)),a=[],n=[];for(let T of La(e)){let y=ss(T);y&&r.has(y)||as(T?.type)?n.push(T):a.push(T)}let s=new Map(n.map(T=>[ss(T),T])),l=new Set,d=ns(La(o)).flatMap(T=>{let y=ss(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=ns(d);let c=d.length===La(o).length&&d.every((T,y)=>T===La(o)[y]),f=Xr(e),u=Oc(d,f),{owned:p,rest:h}=tx(f,u),I=tx(Xr(o),Oc(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&&E3(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 E3(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 mT(e,o){return t=>e(t)||t!==void 0&&dT.includes(t)&&o()}var hT=null;function ax(e){hT=e}function Bt(){return hT}var xT=null;function nx(e){xT=e}function _c(){return xT}var sx=Tc();function IT(e,o,t){if(!o)return;let r={...sx.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};sx.set(e,r)}function gT(e,o){IT(e,o,"load")}function bT(e,o){IT(e,o,"save")}function Ac(e){return sx.use(e)}var lx=e=>!!Bt()?.sectionOf(e);function yT(e,o=lx){return pT(e,o)}function ST(e,o,t,r=lx){if(t)return e&&yT(o,r).has(e)?void 0:t}function wT(e,o,t=lx){if(!e)return{};let r=[...yT(o,t)];return r.length?{[kc]:e,[ex]:r}:{[kc]:e}}import{ScreenDocumentContext as pj}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as sa,hidableText as uj}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as nO,LINK_FIELD_MARKER as mj,MEDIA_FIELD_MARKER as hj,SCAFFOLD_FIELD_MARKER as xj,TEXT_FIELD_MARKER as Rr,foldMetaOf as la,textFieldIdentifier as dwe}from"efficient-easel/draw";import{jsx as OT}from"react/jsx-runtime";import{useCallback as R3}from"react";import{useEasel as F3}from"efficient-easel/easel";import{SettingsAction as B3}from"efficient-easel/panel";import{isLengthUnit as A3}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Lc,hasCornerSubset as _l,normalizeCornerSides as tr}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as O3}from"efficient-easel/screen/lib/content/length-units";var Al={kind:"radius",unitKey:"sectionCornersUnit"};function ix(e){return typeof e=="number"&&Number.isFinite(e)}function $pe(e,o,t){if(!ix(e))return;let r=O3(t)&&t!=="px"?Zn(e,t):Zn(Qt(e));if(Object.keys(r).length===0)return;let a=r[dx];if(typeof a!="string")return r;let n=_l(o)?Ra(a,tr(o)??[]):a;return{...r,[_3]:n}}var _3="--sf-section-radius",dx="--sf-card-radius";function Ra(e,o){return Lc.map(t=>o.includes(t)?e:"0").join(" ")}var CT=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Ll={kind:"radius",unitKey:"cardCornersUnit"},L3="--sf-card-box-radius";function cx(e){return typeof e=="number"&&Number.isFinite(e)}function qpe(e,o,t){if(!cx(e))return;let r=(A3(t)&&t!=="px"?Zn(e,t):Zn(Qt(e)))[dx];if(typeof r!="string")return;let a=_l(o)?Ra(r,tr(o)??[]):r;return{[L3]:a}}function vT(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?.[Ll.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Ll.unitKey]:n}})}function kT(e,o,t){let r=Ec(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,l=s>=0?n[s]:void 0,d=l?.props?.id?String(l.props.id):"",c=Math.max(n.length-1,0);return!r||!d?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:c}:cx(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:vT(n,d)}}}:{can:!1,reason:"unset",others:c}}function TT(e){return e.can?Wo("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 PT(e){return Wo("Applied to {n} card","Applied to {n} cards",e)}function ET(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as D3}from"efficient-easel/screen/lib/document/use-section-ops";var N3="apply-corners-to-siblings",M3="Apply to all cards";function H3({plan:e,onPress:o}){return OT(B3,{id:N3,label:i(M3),note:TT(e),disabled:!e.can,doneLabel:PT(e.others),onPress:o})}function _T(){let{appState:e,config:o}=F3(n=>n),t=D3(),r=kT(o,e.data.content??[],e.ui.itemSelector),a=R3(()=>{ET(r,t.replaceComponent)},[r,t]);return OT(H3,{plan:r,onPress:a})}import{isShown as UT,lazyShowWhenContext as J3}from"efficient-shell/format";var Zr="product",Rc="recordType",AT={key:Zr,label:"Product",fields:[]},U3=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,W3=/^[a-z][A-Za-z0-9]*$/,z3=["text","date","images"],fx=new Map,LT=0;function $3(e){if(typeof e.key!="string"||!U3.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"||!W3.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(!z3.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 iue(e){let o=e.map($3);for(let t of o)fx.set(t.key,t);o.length&&(LT+=1)}function px(){return[AT,...fx.values()]}function G3(e){return e===Zr?AT:fx.get(e)??null}function ux(){return LT}function Rl(e){let o=e?.[Rc];return typeof o!="string"?Zr:o.trim()||Zr}function mx(e){return Rl(e)===Zr}function due(e,o){let t=G3(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Fc="product",RT="tyre",j3=[Fc,RT];function pue(e){return j3.includes(e)}var K3="productType",V3={[Fc]:"alloy-wheel",[RT]:"tyre"},q3=["alloy-wheel","tyre"];function FT(e,o){return mx(o)?BT(o)??V3[e]??null:null}function BT(e){if(!mx(e))return null;let o=e?.[K3];return typeof o=="string"&&q3.includes(o)?o:null}function uue(e){let o=e?.root;return BT(o?.props)}var hx="Main Pages",Y3="Dynamic Pages",xx="dynamic",X3="dynamic";function Fa(e){return e.kind===X3}var Ix="lightbox";function DT(e){return e.kind===Ix}function NT(e){let o=[],t=[];for(let r of e){if(Fa(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??hx,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:xx,label:Y3,rows:t})}return o}var Bc=null,MT=null;function Z3(e,o){Bc=e,MT=o}function bue(e){Z3(e,null)}function yue(){return Bc}function Fl(){return Fa({kind:MT})||Bc===Fc}function Sue(e){return FT(Bc??"",e)??"alloy-wheel"}function wue(e){return Fl()?Rl(e):null}function gx(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!UT(wh(s),o??{},t)){r=!0;continue}let l=Q3(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function Q3(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||UT(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function WT(e,o,t,r){let a=Ec(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function HT(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 HT(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>HT(a,o)))return!0;return!1}function _ue(e,o={}){return J3({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Fl(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as e6}from"efficient-easel/screen/lib/content/length-units";var zT=1,o6="cardImageUnit",bx={kind:"radius",unitKey:o6},$T={kind:"radius"};function t6(e){return Qt(e)}function Due(e,o){if(e6(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Ue(r,o)}:{}}let t=t6(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as r6}from"efficient-easel/screen/lib/content/length-units";var GT={kind:"radius",unitKey:"cornersUnit"},jT=1,KT="Corners";function a6(e){return Qt(e)}function $ue(e,o,t){let r=r6(t)&&t!=="px"?q(e):void 0,a=r===void 0?a6(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?Ue(Math.max(0,r),t):`${a}px`;return{borderRadius:_l(o)?Ra(n,tr(o)??[]):n}}var qT=12,ls=6,n6=800,Dc={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"}},YT=["phone","acrossPhone","leadPhone"];var s6=new Set(YT),Bl=Object.fromEntries(Object.entries(Dc).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).filter(([t])=>!s6.has(t)))])),yx=Object.keys(Dc),XT=[2,3,4,6];function Sx(e,o){return yx.filter(t=>t===o||e===null||Bl[t].across===e)}function ZT(e){let o=e.layout;return typeof o=="string"&&$e(Dc,o)?o:null}function wx(e){let o=ZT(e);return o?l6(o,e.layoutPhone):null}var Nc={oneAcross:{label:"One across",phone:[[ls,2]],acrossPhone:1}};function JT(e){return typeof e=="string"&&$e(Nc,e)?e:null}function VT(e,o){return o?ls/e.acrossPhone:qT/e.across}function Cx(e){return e.ratio?hk.find(o=>o.shape===e.ratio)?.ratio??null:null}function QT(e){return[...e.lead??[],...e.desktop]}function l6(e,o){let t=Dc[e],r=JT(o);if(!r)return t;let{phone:a,acrossPhone:n}=Nc[r],s=Object.fromEntries(YT.map(l=>[l,void 0]));return{...t,...s,phone:a,acrossPhone:n}}var i6="sf-wall--";function d6(e){let o=ZT(e);if(!o)return"";let t=JT(e.layoutPhone);return`${i6}${o}${t?`--${t}`:""}`}function Vue(e){let o=wx(e);if(!o)return"";let t=`.${d6(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(${qT},minmax(0,1fr))}`);let s=Cx(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,VT(o,!1),o.lead)),r.push(`@media (max-width:${n6}px){`),r.push(`${t}{grid-template-columns:repeat(${ls},minmax(0,1fr))}`),r.push(...n(o.phone,VT(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 Mc=12,eP=1,c6=3;var f6=3;function vx(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 p6(e){return vx(e,1,Mc)??f6}function Xue(e,o){return vx(e,eP,c6)??(p6(o)===4?2:eP)}function Zue(e){return e==null||e===""?null:vx(e,1,Mc)}var Jue="data-sf-span";function Que(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(wx(e.props??{}))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as u6}from"react/jsx-runtime";import*as m6 from"efficient-easel/icons";function Hc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=m6[`${o}Icon`];return t?u6(t,{size:16}):null}import{jsx as Jr,Fragment as I6,jsxs as iP}from"react/jsx-runtime";import{useContext as g6,useEffect as b6,useId as y6,useState as dP}from"react";import{SettingsField as S6,SettingsSwitch as w6}from"efficient-easel/panel";import{AnchorIcon as C6}from"efficient-easel/icons";import{ScreenDocumentContext as v6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as k6}from"efficient-shell/ui";import{slugify as T6}from"efficient-shell/format";import{slugify as h6}from"efficient-shell/format";function Dl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Uc=e=>h6(Dl(e));var Wc="homepage";import{slugify as x6}from"efficient-shell/format";var oP=[{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 tP(e){return e.offersCommerce&&e.offersService?oP:oP.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var kx="#popup:";function rP(e){return`${kx}${e}`}function aP(e){return e.startsWith(kx)&&e.slice(kx.length).trim()||null}function Nl(e){return e===Wc?"/":`/${e}`}function nP(e){return`/journal/${e}`}function dme(e){return`/wheels/${e}`}function zc(e,o){return`${Nl(e)}#${o}`}function sP(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Dl(a?.props?.anchor);if(!n)continue;let s=x6(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function cme(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 lP(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as P6}from"efficient-easel/draw";function cP({value:e,onChange:o,nameBox:t}){let r=P6(e).text,[a,n]=dP(!1),s=a||r.trim()!=="",l=y6();return iP(I6,{children:[Jr(S6,{label:i("Add an anchor"),labelId:l,icon:Jr(C6,{}),action:Jr(w6,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&Jr(E6,{name:r})]})}function E6({name:e}){let o=g6(v6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=dP("");b6(()=>a(gc()),[]);let n=T6(e);if(!n||!t)return null;let s=`${r}${zc(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return Jr("div",{className:"sf-anchor-link",children:Jr(k6,{value:s,label:i("link"),size:"sm",children:iP("span",{className:"sf-anchor-link-text",children:[Jr("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),Jr("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as rr,jsxs as O6}from"react/jsx-runtime";import{Fragment as _6}from"react";import{Button as $c,Tooltip as A6}from"efficient-shell/ui";function fP({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?rr("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:rr(A6,{content:n,className:d?"sf-name-tip":void 0,children:rr("p",{className:"sf-blogsource-status","data-state":e,children:[o?rr(_6,{children:o},"status"):null,t?rr($c,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?rr($c,{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])})})}):O6("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[rr("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?rr($c,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?rr($c,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,rr("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as Ij,EyeIcon as gj,AnimationIcon as bj,BackgroundIcon as KE,BorderAllIcon as yj,BlockSectionIcon as Sj,ColumnWidthsIcon as ng,ColumnsIcon as sO,CornerIcon as lO,DirectionDownIcon as wj,DirectionLeftIcon as Cj,DirectionRightIcon as vj,DirectionUpIcon as kj,EditIcon as Tj,GapIcon as Pj,GridIcon as iO,GroundIcon as og,HashIcon as Ej,HeightIcon as dO,ImageIcon as Oj,ListIcon as _j,LocationIcon as VE,PaddingBottomIcon as cO,PaddingLeftIcon as fO,PaddingRightIcon as pO,PaddingTopIcon as sg,PageIcon as Aj,StickyIcon as uO,SearchIcon as Lj,SquareIcon as Rj,TypeIcon as Fj,WidthIcon as Bj}from"efficient-easel/icons";import{jsx as Je,Fragment as Ba,jsxs as Da}from"react/jsx-runtime";import{CaptionIcon as L6,DateIcon as R6,FlagIcon as F6,TitleIcon as B6,ButtonIcon as D6,DollarIcon as N6,HashIcon as M6,LinkIcon as H6,NoteIcon as U6,TagIcon as W6,TextLinesIcon as z6}from"efficient-easel/icons";var pP={body:z6,button:D6,link:H6,label:W6,number:M6,price:N6,note:U6,name:F6,date:R6,caption:L6,title:B6},uP={eyebrow:Da(Ba,{children:[Je("path",{d:"M5 6.5h5"}),Je("path",{d:"M5 12.5h14"}),Je("path",{d:"M5 18h11"})]}),heading:Da(Ba,{children:[Je("path",{d:"M6.5 5v14"}),Je("path",{d:"M17.5 5v14"}),Je("path",{d:"M6.5 12h11"})]}),intro:Da(Ba,{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:Da(Ba,{children:[Je("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),Je("path",{d:"M6.5 12h7"})]}),quote:Da(Ba,{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:Da(Ba,{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:Da(Ba,{children:[Je("path",{d:"M4 7h16"}),Je("path",{d:"M4 14h3.5"}),Je("path",{d:"M10.5 14h3"}),Je("path",{d:"M17 14h3"})]})};function Tx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=pP[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:uP[e]})}var Ame=Object.keys(pP);var Lme=Object.keys(uP);import{parseHexColor as X6}from"efficient-shell/format";import{parseHexColor as gP}from"efficient-shell/format";import{COLOR_SLOTS as bP,FILL_COLOR_SLOTS as V6,colorRole as q6,fillColorRole as yP}from"efficient-shell/markup";import{parseHexColor as mP}from"efficient-shell/format";import{FILL_COLOR_SLOTS as $6}from"efficient-shell/markup";var Gc=e=>{let o=rk.find(t=>t.role===e);return o?`var(${o.token})`:""},G6=e=>Gc(e)?`var(--theme-${e})`:"",j6={main:{ink:Ta.accent,page:Ta.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Ta.text,page:Ta.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:Gc("bg"),page:G6("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Ta.labels,page:Ta.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:Gc("surface"),page:Gc("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function Qr(e){return j(j6,e)}var Px="#9ca3af";function is(e,o,t){let r=Qr(e);return r?{hex:mP(o[r.key]??"")??"",words:r.words(t)}:null}function hP(e,o){return $6.flatMap(t=>{let r=is(t,e,o);return r&&Qr(t)?.ink?[{name:t,label:r.words,value:r.hex||Px}]:[]})}var K6=["main","text","background"];function xP(e){let o=new Set,t=[];return xo(e).themes.forEach((r,a)=>{for(let n of K6){let s=Qr(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?mP(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function Pr(e){return Qr(e)?.ink??""}function ar(e){if(typeof e!="string")return null;let o=yP(e.trim());return o?.kind==="slot"&&Pr(o.slot)?o.slot:null}var Y6={accent:"main",labels:"muted"};function rt(e){return j(Y6,e)??e}function ds(e){if(!e)return"";if(e.startsWith("#"))return gP(e)===e.toLowerCase()?e:"";let o=q6(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function cs(e,o=bP){return o.flatMap(t=>{let r=Qr(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Px}]:[]})}function SP(e){let o=yP(rt(e));return o?.kind==="slot"?Pr(o.slot):""}function Ex(e){let o=e?.trim();return o?V6.find(t=>Pr(t)===o)??null:null}function wP(e){let o={},t=e.ownerDocument,r=t?.defaultView;if(!t||!r)return o;let a=r.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let s of bP){let l=Pr(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=IP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=IP(String(n.fillStyle))),f&&(o[s]=f)}return o}function IP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return gP(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 Z6="#ffffff";function Ox(e){return CP(e)||(J6(e)?e:Z6)}function CP(e){let o=ar(e);return o?Qr(o)?.page??"":""}function J6(e){return typeof e=="string"&&X6(e)===e.toLowerCase()||CP(e)!==""}function Xme(e){return{"--bg":Ox(e)}}import{parseHexColor as Q6}from"efficient-shell/format";import{fillColorRole as eU}from"efficient-shell/markup";function Na(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 she="sf-card",lhe="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",ea={min:0,max:100,step:5,fallback:0,unit:"%"},oU=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],tU="68%",ihe={desktop:20,phone:20,side:40,sidePhone:24},dhe="sf-box-sides";function Ax(e){return typeof e=="string"&&e.trim()!==""}function che(e){return Ax(typeof e?.bgImage=="string"?e.bgImage:null)||jc(e)}function jc(e){return Jt(e,Zd)!==""}function fhe(e,o){return o||!jc(e)?e:{...e,[Zd]:""}}function phe(e,o){return Ph(o,Jt(e,Zd))?.trim()||null}function vP(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(ea.max,Math.max(ea.min,t))/100).toFixed(2);return o!=="bottom"?{background:uc(Number(r))}:{background:`linear-gradient(0deg, ${uc(Number(r))} 0%, ${uc(0)} ${tU})`}}var Kc=[{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"}],kP="fillFade",_x=Kc[1].value,Vc=e=>e===_x?_x:Kc[0].value,rU=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function uhe(e){return Vc(e)!==_x?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${rU.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var qc=e=>typeof e=="string"?Q6(e.trim()):null,Ml=e=>{let o=qc(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&SP(t)||null},Yc=e=>{if(typeof e!="string")return null;let o=eU(rt(e.trim()));return o?.kind==="slot"?o.slot:null},Lx="swatch";function mhe(e,o){if(!o)return null;let t=Ph(o,Jt(e,Lx)),r=ar(t);return qc(t)??(r&&Pr(r)||null)}var aU={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function hhe(e,o,t){return Na(aU,Ml(e),Ml(o),Ml(t))}var nU={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function xhe(e){let o=vP(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(vP(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>oU.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 Na(nU,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 Ihe(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],l={start:"justify-start",center:"justify-center",end:"justify-end"},d={start:"items-start",center:"items-center",end:"items-end"};return`${l[n]} ${d[s]}`}function TP(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(Rx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Rx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Rx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Rx(a,o,t+1))}function PP(e,o){let t=e?.content;return Array.isArray(t)?Xc(t,o,0)??[]:[]}function Xc(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=Xc(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=Xc(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=Xc(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Ho,SettingsDrill as Dj,SettingsField as mo,SettingsGroup as Nj,SettingsSegmented as Mj,SettingsBorder as Hj,SettingsSidesEach as Uj,SettingsSwitch as lg,borderSides as Wj,borderStartEach as zj}from"efficient-easel/panel";import{ListField as $j}from"efficient-easel/fields";import{DisplayChips as Gj}from"efficient-shell/ui";import{HIDDEN_KEY as sU,hiddenInEveryView as lU,hiddenInView as Fx,hiddenKeyOf as EP}from"efficient-easel/screen/lib/content/view-hide";var iU={"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"},dU={"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"},OP=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function Zc(e,{atSectionLine:o=!1}={}){return(o?dU:iU)[OP(e)]}var fs=[sU,EP("tablet"),EP("mobile")];function _P(e){return{desktop:Fx(e,"desktop"),tablet:Fx(e,"tablet"),mobile:Fx(e,"mobile")}}function Hl(e){return lU(e)}function She(e){let o=_P(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var cU={"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!"},fU={"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?fU:cU)[OP(_P(e))]}function ps(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 Jc(e,o){return ps(e)[o]!==!1}function Bx(e,o,t){let r=ps(o)[t];return typeof r=="boolean"?r:Jc(e,t)}function AP(e){return Object.values(ps(e)).some(o=>o===!1)}function LP(e){return Object.keys(ps(e)).length>0}function RP(e,o,t){let r={...ps(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function FP(e,o,t){return{...ps(e),[o]:t}}function khe(e,o,t,{atSectionLine:r=!0}={}){let a=!Jc(e,t);return Zc({desktop:a,tablet:a,mobile:!Bx(e,o,t)},{atSectionLine:r})}import{ColorSwatch as jj,CornersInput as Kj,DatePicker as Lwe,DateTimePicker as Vj,FOCAL_DEFAULT as Rwe,IconPicker as mO,COLUMN_COUNT_MAX as qE,COLUMN_SHARE_MIN as qj,COLUMN_SHARES_EQUAL as Yj,resolveColumnShares as hO,WidthsBar as Xj,useShellStrings as Zj,IconButton as xO,InputNumber as YE,Slider as Jj,Tooltip as ig}from"efficient-shell/ui";import{backendOf as pU}from"efficient-easel/screen/lib/session";var to=pU,Qc=e=>e.blocks;async function BP(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 Dx="Lookup busy \u2014 try again in a moment.",ef=e=>typeof e=="number"&&Number.isFinite(e);function Lhe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:ef(t.lat)&&t.lat!==o.lat||ef(t.lng)&&t.lng!==o.lng:!1})}async function Rhe(e,o,{geocode:t=BP,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:Dx}})}}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=ef(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=ef(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 Mx}from"react/jsx-runtime";import{useRef as uU}from"react";import{ColorPicker as mU,ColorPickerPanel as hU,ColorSwatch as xU,HexInput as IU,Popover as gU,Tooltip as bU,colorFill as yU,colorSwatchClasses as SU,useShellStrings as wU}from"efficient-shell/ui";import{SettingsDefaultReset as CU,SettingsField as vU}from"efficient-easel/panel";import{typedHex as Nx}from"efficient-easel/pick";var DP="Not set";function NP({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return $o(TU,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function kU(){let{theme:e}=ue();return xP(e)}function TU({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=kU(),d=e?null:Nx(n??""),c=a!==void 0&&(!e||Nx(a)!==Nx(e))?a:null,f=u=>{u!==e&&o(u)};return Mx("div",{className:"sf-colour",children:[s?$o(PU,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):$o(mU,{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(IU,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(DP),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function PU({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=wU().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=uU(c);return f&&(u.current=c),$o(gU,{id:r,trigger:$o("span",{"aria-hidden":"true",className:"absolute inset-0",style:yU(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:SU({size:"md"}),"aria-label":l.panel(t),align:"start",children:Mx("div",{className:"sf-colour-window",children:[$o("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>$o(bU,{content:p.label,children:$o(xU,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),$o(hU,{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(vU,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?$o(CU,{words:le()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Mx("div",{className:"es-width-stack",children:[NP({...l,label:e}),s]}):NP({...l,label:e})})}function Ul({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 tg}from"efficient-easel/screen/lib/document/style-fields";import{jsx as EU}from"react/jsx-runtime";import{useEffect as OU,useState as _U}from"react";import{clearRangeOf as AU,markSelection as LU,useCaretEdit as RU}from"efficient-easel/copy";import{TextToolbar as FU}from"efficient-shell/ui";function BU(e,o,t){return LU(e,o,t,TC)}function MP(e,o){let t=AU(o,e.length),r=EC(e,t.start,t.end);return r.text===e?null:r}function DU(e){let[o,t]=_U(null);return OU(()=>{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 NU({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=RU({target:e,onChange:t}),[s,l]=DU(e),d=p=>n(h=>{let I=BU(o,p,h);return l({start:I.selectionStart,end:I.selectionEnd}),I}),c=kC(),f={};if(s)for(let p of c)f[p.style]=PC(o,s.start,s.end,p.style);let u=r?null:MP(o,s);return EU(FU,{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=MP(o,h)??{text:o,selectionStart:h?.start??0,selectionEnd:h?.end??0};return l({start:I.selectionStart,end:I.selectionEnd}),I})}:void 0})}var Hx=NU;import{deviceField as st}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as Qj,NoControlMark as eK,noControlField as IO}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Ux="__ownBox";function HP(e){return!!e&&typeof e=="object"&&e[Ux]===!0}var Wx="sfPanelOnly";function us(e){return!!e&&typeof e=="object"&&e[Wx]===!0}function of(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var tf=void 0;import{phoneKey as Cs,tabletKey as dg,viewKeyAt as cg}from"efficient-easel/draw";import{jsx as rf,Fragment as MU,jsxs as HU}from"react/jsx-runtime";import{useRef as UU}from"react";import{SettingsDefaultReset as WU}from"efficient-easel/panel";import{effectTiles as zU}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as UP,describedAs as $U,onDesktopWords as GU,phoneTwinFields as WP}from"efficient-easel/screen/lib/document/box-fields";function jU({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,WP(e,o(t),UP)[r]]}))}function af(e,o,t){let r=o.render,a={...o,render:n=>rf(jU,{...n,row:r,read:t})};return Er(e,n=>n==="desktop"?o:a)}function KU({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=UU(null),{preview:l}=e,d=zU({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 HU(MU,{children:[l?rf("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&rf(WU,{words:le()?.panel,label:i(e.tileWord),changed:!0,detail:GU(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function nf(e,o){let t=$U({type:"custom",render:r=>rf(KU,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return WP(e,t,UP)}import{jsx as $x,Fragment as YU}from"react/jsx-runtime";import{createContext as XU,useContext as ZU}from"react";var sf={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},lf={Events:["posts"],SubscribeBlogs:["posts"]};var VU=["anchor"],qU=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Wl(e){return VU.includes(e)||qU.test(e)}var zx={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"}}};zx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var uxe=Object.fromEntries(Object.entries(sf).map(([e,o])=>[e,Object.keys(o)])),mxe=Object.fromEntries(Object.entries(lf).map(([e,o])=>[e,[...o]]));import{NoControlMark as JU}from"efficient-easel/screen/lib/document/panel-no-control-mark";var zP=XU(!1);function $P({children:e}){return $x(zP.Provider,{value:!0,children:e})}function QU(){return ZU(zP)}function GP({name:e,children:o}){return!QU()||!e||!eW(e)||Wl(e)?$x(YU,{children:o}):$x(JU,{})}function eW(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Gx="off",KP="none",jx=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],VP=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function wxe(e){return io(jx,Gx,e)}var jP="sf-card-index",zl="sf-card-index",Cxe="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",oW={plain:`counter(${zl})`,padded:`counter(${zl}, decimal-leading-zero)`,numero:`"N\xB0" counter(${zl}, decimal-leading-zero)`};function vxe(e,o){return o==="off"?"":`.${e}{counter-reset:${zl}}.${e} .${jP}{counter-increment:${zl}}.${e} .${jP}::before{content:${oW[o]}}`}function kxe(e){return e==="hairline"?"border border-line hover:border-accent":""}var qP=[{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 oK}from"efficient-easel/draw";import{jsx as Xo}from"react/jsx-runtime";import{SettingsDefaultReset as dW,SettingsField as Kx}from"efficient-easel/panel";import{useSelectedHost as cW}from"efficient-easel/easel";import{FOCAL_DEFAULT as fW}from"efficient-shell/format";import{ImageIcon as Vx,PlayIcon as XP}from"efficient-easel/icons";import{ImageFocusPoint as pW,MediaUploadField as uW}from"efficient-shell/ui";import{useContext as mW}from"react";import{ScreenDocumentContext as hW}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as xW,viewKeyAt as IW}from"efficient-easel/draw";import{usePreviewDevice as gW}from"efficient-easel/draw/client";import{formatFocal as tW,parseFocal as rW}from"efficient-shell/format";var aW="sf-focus-phone",nW="--sf-focus-phone",sW="sf-focus-tablet",lW="--sf-focus-tablet",$l=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=rW(e);return tW(o,t)};function YP(e,o){return Na(iW,null,$l(o),$l(e))}var iW={tabletClass:sW,tabletVar:lW,phoneClass:aW,phoneVar:nW};import{shownTier as qx}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as bW}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as yW}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as SW}from"efficient-easel/screen/lib/host";import{useEaselSession as wW}from"efficient-easel/screen/lib/session-context";function CW(e,o,t,r=!0){let a=qx(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):fW;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=IW(o,a),l=$l(e[s])??void 0,d=a==="mobile"&&r?$l(e[xW(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 vW(e,o,t){let r=cW();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,qx(e)))return null;let n=CW(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,tf)}}function ZP({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=SW(),f=wW(),u=i(t),p=gW(),h=r.startsWith("video"),I=vW(p,h?void 0:n,s),g=!!n&&qx(p)!=="desktop",C=mW(hW),w=oa(),T=l&&d?{video:d,frame:l}:null,y=E=>yW(c,{accept:r,title:u,...E?{file:E}:{}}).then(U=>!U||!T?U?.url??null:(w({[T.video]:U.url,[T.frame]:U.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(Kx,{label:u,icon:h?Xo(XP,{}):Xo(Vx,{}),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(dW,{words:le()?.panel,label:i("Image focus"),changed:!!I.own,detail:bW(E=>i(E),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?Xo(Kx,{label:u,icon:Xo(Vx,{}),action:H,children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(pW,{value:I.focus,onChange:I.set,label:i("Image focus"),image:P,hint:null})})}):Xo(Kx,{label:u,icon:h?Xo(XP,{}):Xo(Vx,{}),children:Xo("div",{style:{flex:"1 1 auto",minWidth:0},children:Xo(uW,{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 JP}from"react/jsx-runtime";import{useId as kW}from"react";import{FieldSelect as TW}from"efficient-easel/fields";import{SettingsField as PW}from"efficient-easel/panel";function EW(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function QP({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=kW(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return JP(PW,{label:i(e),labelId:d,icon:n,hint:s,children:JP(TW,{id:c,multiple:!0,value:f,options:EW(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as Io,jsxs as Ha,Fragment as rz}from"react/jsx-runtime";import{useCallback as p0,useContext as az,useId as h0,useRef as u0,useState as m0}from"react";import{ThemeIcon as nz}from"efficient-easel/icons";import{Button as sz,useClickOutside as lz}from"efficient-shell/ui";import{SettingsField as iz}from"efficient-easel/panel";import{ScreenDocumentContext as dz}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as ra,Fragment as NW}from"react/jsx-runtime";import{parseHexColor as MW}from"efficient-shell/format";import{Button as Xx,IconButton as HW,Tooltip as UW}from"efficient-shell/ui";import{jsx as ta,jsxs as OW}from"react/jsx-runtime";import{AccentIcon as _W}from"efficient-easel/icons";import{Button as AW,Tooltip as LW}from"efficient-shell/ui";function Yx(e){return Vo(e).background}function RW(e){let o=Kr(e.accent,Yx(e));return o===null?null:{ratio:o,grade:Xn(o)}}function FW(e){let o=Yx(e),t=Kr(e.accent,o);return t===null?[]:Wv(e.accent).filter(r=>{let a=Kr(r,o);return a!==null&&a>t&&Xn(a)==="good"})}var BW={good:"Easy to read","large-only":Yn["large-only"],hard:Yn.hard};function e0({value:e,onChange:o}){let t=RW(e),r=t?.grade,a=t&&t.grade!=="good"?FW(e):[];return ta(Yo,{label:i("Main color"),icon:ta(_W,{}),hint:t?i(BW[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?ta("div",{className:"w-full min-w-0",children:OW("div",{className:"sf-readability",children:[ta("p",{className:"sf-readability-advice",children:DW(r,!0)}),ta("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Kr(n,Yx(e));return ta(LW,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:ta(AW,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:ta("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 DW(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 WW,ChevronDownIcon as t0,ChevronUpIcon as zW,GroundIcon as $W,LayoutIcon as GW,SquareIcon as jW,TextSmallIcon as KW,TypeIcon as o0}from"efficient-easel/icons";var Gl=e=>i("Theme {n}",{n:e+1});function r0({colors:e}){let o=Vo(e),t=kl(e)??o.accent;return ra("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")}),ra("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")}),ra("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:Ah(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var Zx={"Text color":fe(o0,{}),"Label color":fe(KW,{}),Background:fe($W,{}),"Panels & cards":fe(GW,{}),Borders:fe(jW,{}),"Button color":fe(WW,{}),"Button text color":fe(o0,{})};function VW({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(Yo,{label:i(e),icon:Zx[e],id:n,value:t,onChange:s=>r(o,s)})}function qW({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&MW(e)===e.toLowerCase(),s=n?e:o;return fe(Yo,{label:i("Button color"),icon:Zx["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function YW({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=zv(e),s=Ah(e,o),l=kl(e)??o,d=Xn(Kr(s,l)??0);return fe(Yo,{label:i("Button text color"),icon:Zx["Button text color"],hint:n&&d!=="good"?i("{grade} on the button",{grade:i(Yn[d])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var XW=[{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 Jx({colors:e,onChange:o,idPrefix:t}){let r=Vo(e);return fe(NW,{children:XW.map(a=>"colour"in a?fe(e0,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(qW,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(YW,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(VW,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function df({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=Gl(e),u=e<_h.length&&!o.brandInk?_h[e]:null,p=Xn(Kr(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return ra("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(r0,{colors:o})}),ra("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(Yn[p])}),n&&l&&I&&fe("span",{className:"sf-theme-edit",children:fe(UW,{content:a?i("Collapse"):i("Edit colors"),children:fe(HW,{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(zW,{size:14}):fe(t0,{size:14})})})}),n&&l&&!I&&fe(Xx,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&ra("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(Jx,{colors:o,onChange:g=>d?.(g)}),u&&fe(Xx,{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 a0({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return ra("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(r0,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),ra("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),c&&fe(Xx,{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(t0,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as aI,useEffect as d0,useRef as uf}from"react";import{currentEaselSession as QW}from"efficient-easel/screen/lib/session";import{useEaselSession as ez}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as ZW}from"react";var s0,Qx=null,Ma=null,cf=0,eI=new Set;function oI(e){s0=e;for(let o of eI)o()}function tI(e){Qx=e,cf+=1,Ma&&clearTimeout(Ma),Ma=null,oI(void 0)}function ff(e){cf+=1,oI(e)}function Or(e=250){Qx&&(Ma&&clearTimeout(Ma),Ma=setTimeout(()=>{Ma=null;let o=Qx;if(!o)return;let t=++cf;o().then(r=>{t===cf&&oI(r)}).catch(()=>{})},e))}function n0(){return s0}function JW(e){return eI.add(e),()=>{eI.delete(e)}}function pf(){return ZW(JW,n0,n0)}var rI=new Set;function l0(e){return rI.add(e),()=>{rI.delete(e)}}async function i0(){let e=(await Promise.allSettled([...rI].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as oz}from"efficient-easel/screen/lib/backend-error";function c0(e=QW()){return(o,t,r)=>{let a=to(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new oz("invalid","This backend stores no site theme."))}}function f0(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function tz(e,o=c0()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=f0({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 ms({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=uf(null),n=uf({}),s=ez(),l=uf(r);l.current=r;let d=uf(null),c=aI(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=aI(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await tz({themeFromDocument:e,token:o?.current,siteId:t,patch:p},c0(s));return c(h),h.status==="saved"&&Or(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=aI((p,h=!1)=>{let I=f0({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 d0(()=>()=>{f()},[f]),d0(()=>l0(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 cz="Follow the page",GIe="Follow the slideshow",fz=e=>i("Editing {name} changes it everywhere.",{name:e});function pz({colors:e}){if(!e)return Io("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Vo(e);return Ha("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 uz({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Ha("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Ha(rz,{children:[Ha("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(er),children:[Io(pz,{}),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:Gl(o)})}),e.map((s,l)=>l===o?null:Io(df,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function mz({index:e,colors:o,onChange:t,onDone:r}){let a=Gl(e),n=h0();return Ha("div",{className:"sf-secttheme-sheet",children:[Ha("div",{className:"sf-secttheme-sheet-head",children:[Io("span",{children:a}),Io(sz,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),Io("div",{className:"sf-secttheme-rows",children:Io(Jx,{colors:o,onChange:t,idPrefix:n})}),Io("p",{className:"sf-secttheme-warn",children:fz(a)})]})}function x0({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=ue(),s=xo(a),l=az(dz),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=ms({themeFromDocument:f,tokenRef:d,siteId:c}),h=xo(s),I=h.themes,g=or(e),C=g!==null?I[g]:void 0,w=C??(I.length?qn(h):void 0),[T,y]=m0(!1),[b,P]=m0(null),H=u0(null),E=u0(null),U=h0(),O=p0(()=>{y(!1),P(null)},[]),D=p0(()=>{!T&&b===null||(p(),O())},[T,b,O,p]);lz(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 Ha("div",{className:"sf-secttheme",ref:H,children:[Io(iz,{label:i("Theme"),icon:Io(nz,{}),labelId:`${U}-label`,hint:r,children:Io(a0,{colors:w,onEdit:g!==null?()=>{P(g),y(!1)}:void 0,name:C?Gl(g):i(t??cz),nameId:`${U}-value`,labelId:`${U}-label`,open:T,menuId:U,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(uz,{themes:I,value:g,onPick:v,onEdit:A=>{P(A),y(!1)},menuId:U,followLabel:t})}),b!==null&&I[b]&&Io(mz,{index:b,colors:I[b],onChange:_,onDone:()=>{p(),O(),E.current?.focus()}})]})}import{jsx as I0}from"react/jsx-runtime";import{useId as hz}from"react";import{FieldSelect as xz}from"efficient-easel/fields";import{SettingsField as Iz}from"efficient-easel/panel";function gz(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 ZIe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=hz(),c=`${d}-label`,f=`${d}-button`,u=r??"",p=o.some(C=>C.value===u)?u:t,h=i(e),I=n===void 0?void 0:i(n),g=I0(xz,{id:f,value:p,options:gz(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:I0(Iz,{label:h,labelId:c,icon:l,children:g})}import{jsx as Wa,jsxs as Zz}from"react/jsx-runtime";import{SettingsField as U0}from"efficient-easel/panel";import{LinkIcon as Jz}from"efficient-easel/icons";import{LinkPicker as Qz,TextLinkField as e$}from"efficient-shell/ui";import{useEffect as H0,useMemo as gf,useRef as o$,useState as If}from"react";import{currentEaselSession as bz}from"efficient-easel/screen/lib/session";function g0(){return bz().auth.token}import{currentEaselSession as t$}from"efficient-easel/screen/lib/session";import{useScreenDocument as r$}from"efficient-easel/screen/components/ScreenDocumentContext";var yz=()=>({choosePage:i("Choose a page"),chooseSection:i("Choose a section"),noSections:i("No section anchors yet"),sectionHint:i("Jumps to a section on that page."),choosePost:i("Choose a post"),chooseProduct:i("Choose a product"),choosePopup:i("Choose a popup")});function b0(e,o,t){if(!e)return"page";if(aP(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(lP(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 nI(e,o){let t=yz(),r=e.pages.map(f=>({value:Nl(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:sP(...f.docs).map(u=>({value:zc(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:nP(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:rP(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=tP(e.offers).map(f=>({value:f.value,label:i(f.label),target:l(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:d,rules:{kindOf:f=>b0(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let c=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:d,rules:{kindOf:f=>b0(f,n,{listingPaths:o.listingPaths,targetOf:c}),targetOf:c,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as a$}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 y0(e,o){return q(e)??o}function _r(e,o){return typeof e=="boolean"?e:o}function mf(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 w0=["delay","scroll","exit"],C0=["all","chosen","except"],v0=["visit","days","never","once"],Sz=["all","desktop","phone"],wz=["stop","continue"],k0={min:0,max:60},T0={min:10,max:90},P0={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 hs(e,o,t){let r=y0(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Cz(e){return typeof e.hideAfter=="string"?at(v0,e.hideAfter,Dt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Dt.hideAfter}function vz(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function S0(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function E0(e){let o=e??{},t=Dt;return{autoOpen:_r(o.autoOpen,t.autoOpen),trigger:at(w0,o.trigger,t.trigger),autoOpenDelaySec:hs(o.autoOpenDelaySec,k0,t.autoOpenDelaySec),scrollPercent:hs(o.scrollPercent,T0,t.scrollPercent),showOn:at(C0,o.showOn,t.showOn),showOnPages:vz(o.showOnPages),devices:at(Sz,o.devices,t.devices),hideAfter:Cz(o),hideDays:hs(o.hideDays,P0,t.hideDays),afterSubmit:at(wz,o.afterSubmit,t.afterSubmit),startDate:S0(o.startDate),endDate:S0(o.endDate)}}import{parseHexColor as kz}from"efficient-shell/format";var Nt="#000000";var sI="popup",Tz=dk,Pz=["auto","full"],Ez=["inside","outside","none"],Oz={min:240,max:1440},_z={min:0,max:100},jl={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Nt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function Az(e,o){let t=typeof e=="string"?e.trim():"";return t&&kz(t)===t.toLowerCase()?t:o}function lI(e,o=jl){let t=e??{},r=o;return{placement:at(Tz,t.placement,r.placement),fullWidth:_r(t.fullWidth,r.fullWidth),width:hs(t.width,Oz,r.width),height:at(Pz,t.height,r.height),tintColor:Az(t.tintColor,r.tintColor),tintOpacity:hs(t.tintOpacity,_z,r.tintOpacity),outsideClick:_r(t.outsideClick,r.outsideClick),closeButton:at(Ez,t.closeButton,r.closeButton)}}var O0="cart-drawer",bge="cart-drawer",Lz={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 yge(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function Sge(e){let o=e??{},t=Lz;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:mf(o.promises,t.promises),emptyKicker:Eo(o.emptyKicker,t.emptyKicker),emptyBody:Eo(o.emptyBody,t.emptyBody)}}var Rz=["right","left"],Fz={...jl,width:520,tintOpacity:68};function wge(e){let o=e??{};return{...lI(o,Fz),placement:at(Rz,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:_r(o.autoOpen,!0)}}var A0="consent-banner",Tge="consent-banner";var Bz=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],Pge="Layout",_0={layout:"bar"},Dz=e=>Bz.some(o=>o.value===e);function Ege(e){let o=Eo((e??{}).layout,_0.layout);return{layout:Dz(o)?o:_0.layout}}var Oge={...jl,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var Nz="consentWords",Mz=["eyebrow","notice","accept","reject","choose"];function iI(e){let o=(e??{})[Nz];return typeof o=="string"&&Mz.includes(o)?o:null}function dI(e){let o=e?.props;return o?iI(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&dI(r))):!1}var Hz=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],Lge={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"},Uz={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"},Rge={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 L0(e){let o={};for(let t of Hz){let r=yr(e[Uz[t]]);r&&(o[t]=r)}return o}var R0={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},Wz={lead:"We accept"},xf={...Wz,methods:[],size:"sm",align:"start",dataSource:cC},Mt="site-footer";var Dge=Mt,Nge={desktop:!0,tablet:!0,mobile:!0},Mge={desktop:!1,tablet:!1,mobile:!1},cI=1,F0=6,Hge=Array.from({length:F0-cI+1},(e,o)=>cI+o),hf={desktop:6,tablet:3,mobile:2},zz={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),cI),F0);function Uge(e){if(typeof e=="number")return zz[Ua(e)]??{desktop:Ua(e),tablet:Ua(e),mobile:Ua(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ua(o.desktop??hf.desktop),tablet:Ua(o.tablet??hf.tablet),mobile:Ua(o.mobile??hf.mobile)}}return{...hf}}var fI="subscribe-popup",qge="subscribe-popup",$z=[fI,Mt,O0,A0];function D0(e){return $z.includes(e)}var Gz=["right","left"],jz={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
2
+ *Highlight line*`,deck:"Add a sentence or two of supporting copy.",stats:[{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"}],formLabel:"Section label",formHeading:"Main heading *highlight*",formIntro:"Add a sentence or two of supporting copy.",firstNameLabel:"Field label",firstNamePlaceholder:"Placeholder",emailLabel:"Field label",emailPlaceholder:"Placeholder",interestsLabel:"Field label",interests:["Option one","Option two","Option three"],frequencyLabel:"Field label",frequencies:["Option one","Option two","Option three"],submitText:"Button label",finePrint:"Fine print",dismissText:"Dismiss link",emailInvalidText:"Enter a valid email address.",submitErrorText:"Could not subscribe right now. Please try again.",successHeading:"Main heading *highlight*",successBody:"Add a sentence or two of supporting copy \u2014 the {email} and {issue} tokens are substituted here.",keepBrowsingText:"Button label",autoOpen:Dt.autoOpen,autoOpenDelaySec:Dt.autoOpenDelaySec,formSlug:"",trigger:Dt.trigger,scrollPercent:Dt.scrollPercent,showOn:Dt.showOn,showOnPages:[],hideAfter:Dt.hideAfter,hideDays:Dt.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},ro=Eo,Kz=_r,N0=mf;function B0(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 Vz(e,o){return Array.isArray(e)?N0(e,[]):o}function qz(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 Xge(e){let o=e??{},t=jz,r=E0(o);return{metaLabel:ro(o.metaLabel,t.metaLabel),issueLabel:B0(o.issueLabel,t.issueLabel),issueNumber:B0(o.issueNumber,t.issueNumber),kicker:ro(o.kicker,t.kicker),heading:ro(o.heading,t.heading),deck:ro(o.deck,t.deck),stats:qz(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:N0(o.interests,t.interests),frequencyLabel:ro(o.frequencyLabel,t.frequencyLabel),frequencies:Vz(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(Gz,o.formSide,t.formSide),valuePanelOnPhone:Kz(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:L0(o)}}function Yz(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function Xz(e){return{root:{props:{title:e,kind:sI}},content:[],zones:{}}}function M0(e,o,t){return{slug:Yz(o,t),title:e,kind:Ix,layout:Xz(e)}}function Kl(e){return e?.root?.props?.kind===sI}function W0(e){let o=new Map;return(t="")=>{let r=g0(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!t$().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var n$=W0(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}))}),s$=W0(async(e,o)=>await to().blog?.posts(o?{siteId:o}:void 0)??[]);function l$({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=gf(()=>nI(r,a),[r,a]),s=i(t);return Wa(U0,{label:s,icon:Wa(Jz,{}),children:Wa(Qz,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function z0(){let{siteId:e,capabilities:o}=r$(),{offersCommerce:t,hasBlog:r}=o,[a,n]=If([]),[s,l]=If([]),[d,c]=If([]),[f,u]=If(null),p=a$().chrome,h=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,C=o$(!0);H0(()=>(C.current=!0,()=>{C.current=!1}),[]),H0(()=>{let y=!0;return n$(e??void 0).then(b=>y&&C.current&&n(b)),r&&s$(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=gf(()=>({pages:a.filter(y=>!D0(y.slug)&&!Kl(y.layout)).map(y=>({slug:y.slug,title:y.label,docs:[y.layout]})),popups:a.filter(y=>y.slug===fI||Kl(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=gf(()=>f?f(w.pages):null,[f,w]);return{data:w,filters:T,pages:a,offersCommerce:t,HostLinkRow:g}}function xbe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=z0(),d=gf(()=>nI(s,l),[s,l]),c=i(e);return Wa(U0,{label:c,icon:o,children:Wa(e$,{label:c,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:d.kinds,rules:d.rules,filtersFor:d.filtersFor})})}function $0({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:d}=z0(),c=a.pages.map(u=>Nl(u.slug)),f=l&&d&&(r==="/"||c.includes(r))?d:void 0;return Zz("div",{children:[Wa(l$,{value:r,onChange:o,label:t,data:a,filters:n}),f&&Wa(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as XE}from"efficient-easel/draw/client";import{phoneKey as J0,resolveViewValue as S$,tabletKey as Q0,viewKeyAt as za}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as oE,SITE_SIDE as w$,convertLength as C$,isLengthUnit as v$,isSiteSide as tE,sideLengthAt as k$,sideValueAt as T$,withLength as II}from"efficient-easel/screen/lib/content/length-units";import{convertLength as i$}from"efficient-easel/screen/lib/content/length-units";var uo={min:1e3,max:2e3,step:50,default:1600};function d$(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var pI="--sf-site-width",mI=`var(${pI},${uo.default}px)`,ybe="100vw",Sbe=`max-w-[${mI}]`,wbe=`max-w-[${uo.default}px]`;function V0(e){return typeof e!="number"||!Number.isFinite(e)?uo.default:Math.round(Math.min(Math.max(e,uo.min),uo.max))}function Cbe(e,o){let t=_a(e,o,"size",uo);if(t!==null)return{[pI]:t};let r=V0(e);return r===uo.default?{}:{[pI]:`${r}px`}}var Go={min:0,max:80,step:4,default:40},uI="--sf-site-gutter",Ht={min:0,max:24,step:4},G0="--sf-site-gutter-phone",c$="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",f$="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",nt=`var(${uI},${Go.default}px)`,p$=`px-[${nt}]`;var nr={md:`min(24px,${nt})`,sm:`min(20px,${nt})`,frame:`min(24px,${nt})`,tabs:`min(16px,${nt})`},vbe=[[`max-view-desktop:px-[${nr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${nr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${nr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${nr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${nr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${nr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${nr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${nr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${nt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${nt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${nt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${nt})]`,"max-view-tablet:-mx-5"],[`-mx-[${nt}]`,"-mx-10"],[p$,"px-10"]];var q0="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function hI(e){return u$[e??"box"]}var j0="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",K0="[--sf-edge-g:var(--sf-pad-site)]",u$={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:j0,edge:K0,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:j0,edge:K0,frame:q0}},kbe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${q0}`,Tbe="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var Pbe="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 bf(e){return typeof e!="number"||!Number.isFinite(e)?Go.default:Math.round(Math.min(Math.max(e,Go.min),Go.max))}function Ebe(e,o){let t=_a(e,o,"spacing",Go);if(t!==null)return{[uI]:t};let r=bf(e);return r===Go.default?{}:{[uI]:`${r}px`}}function yf(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,Ht.min),Ht.max))}function Y0(e){return typeof e=="number"&&Number.isFinite(e)?V0(e):null}function Obe(e,o){let t=_a(e,o,"spacing",Ht);if(t!==null)return{[G0]:t};let r=yf(e);return r===null?{}:{[G0]:`${r}px`}}function _be(e){return yf(e)===null?"":`${c$} ${f$}`}function Sf(e,o){let t=sc(e,o,"spacing",Go),r=t===null?bf(e):i$(t,ve(o),"px","mobile",Ht);return Math.min(Ht.max,r)}var X0=mI,Abe=`max-w-[${X0}]`,Lbe=`max-w-[min(var(--sf-page-cap,${uo.default}px),${uo.default}px)]`,Z0="--sf-hero-cap",m$=`var(${Z0},none)`,Rbe=`max-w-[${m$}]`,h$="--sf-hero-bleed-m",x$="--sf-hero-bleed-w",I$="--sf-hero-chrome-x",g$="--sf-hero-chrome-cap";function Fbe(e){return e===!0?{[Z0]:X0,[h$]:"auto",[x$]:"100%",[I$]:"24px",[g$]:"none"}:{}}var xI=`calc(${mI} - ${nt}*2)`,Bbe=`max-w-[${xI.replace(/ /g,"_")}]`;var b$="--sf-chrome-cap",y$=`var(${b$},${xI})`,Dbe="data-page-width";function Nbe(e){return e==="full"?"full":null}function Mbe(e){return e==="full"?null:d$(e==="content"?xI:y$)}function Hbe(e){if(e==="full")return"full";if(e==="content")return"content"}var pt={min:10,max:200,step:10};function P$(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=wf(t),l=d=>d===void 0?void 0:s==="px"?d:II(d,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var wf=e=>ve(e),E$="sf-pad-top-phone",O$="sf-pad-bottom-phone",_$="--sf-pad-t-phone",A$="--sf-pad-b-phone",L$="sf-pad-left-phone",R$="sf-pad-right-phone",F$="--sf-pad-l-phone",B$="--sf-pad-r-phone",D$="sf-pad-top-tablet",N$="sf-pad-bottom-tablet",M$="sf-pad-left-tablet",H$="sf-pad-right-tablet",U$="--sf-pad-t-tablet",W$="--sf-pad-b-tablet",z$="--sf-pad-l-tablet",$$="--sf-pad-r-tablet",rE="sf-section-pad";function ql(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=P$(e.top,e.bottom,e.unit,e.frame),r=gI({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:[rE,...r.classes].join(" "),style:{...t,...r.style}}}var G$=e=>tE(e)?e:q(e),j$=[["top","paddingTop",[D$,U$],[E$,_$]],["bottom","paddingBottom",[N$,W$],[O$,A$]],["left","paddingLeft",[M$,z$],[L$,F$]],["right","paddingRight",[H$,$$],[R$,B$]]];function eE(e,o,t){return!v$(o)||o==="px"?e:C$(e,"px",o,t,{min:0,max:pt.max,step:1})}function K$(e,o,t,r={},a=0){let n=(h,I)=>{if(I==="px")return`${h}px`;let g=II(h,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[Q0("n")]:o,[J0("n")]:t,u:r.desktop,[Q0("u")]:r.tablet,[J0("u")]:r.phone},l=S$("spacing",q(e),q(o),q(t),zn()),d=(h,I,g)=>{if(T$(s,{side:"n"},h,"side",["side"])?.value===w$)return hI().value;let C=k$(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 gI(e,o,t={},r=e,a={},n=0,s="box"){let l={},d={},c=[],f=hI(s),u=!1;for(let[p,h,...I]of j$){let g=p==="left"||p==="right"?G$:q,C=g(e[p]),w=p==="top"||p==="bottom"?n:0;tE(C)?(l[h]=f.value,u=!0):C!==void 0&&(l[h]=wf(a.desktop)==="px"?C:II(C,wf(a.desktop),w));let T=K$(g(r[p]),g(t[p]),g(o[p]),a,w);for(let[y,[b,P]]of[["tablet",I[0]],["phone",I[1]]]){let H=T[y];H!==void 0&&(c.push(b),d[P]=H,H===f.value&&(u=!0))}}return u&&c.push(...f.className.split(" ")),{classes:c,style:{...l,...d}}}var sr={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},$a="padUnit";function Yl(e,o){let t=e[$a],r=(a,n,s)=>{let l=q(a)??(s===void 0?void 0:eE(s,t,"desktop")),d=q(n);return d===void 0?l:(l??0)+eE(d,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function Vbe(e,o,t={}){let r=Yl(e,o),a={...yI(e,sr,!0,$a),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=ql(a),s=n?n.className.split(" ").filter(l=>l!==rE):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var Vl={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},bI=[...["top","bottom","left","right"].map(e=>[sr[e],Vl[e]]),[$a,oE]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[za(e,t),za(o,t)])]);function yI(e,o=Vl,t=!0,r=o===Vl?oE:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[za(r,n)]!==void 0&&(a[za("unit",n)]=e[za(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[za(n,s)]=e[za(o[n],s)]}return a}function qbe(e){return ql(e)}function Ybe(e,o){let t=(r,a)=>typeof r!="number"?void 0:wf(a)==="px"?r+o:r;return ql({...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 Cf,buttonBorderOf as V$,buttonFillOpacityOf as q$,buttonPadSidesOf as Y$,viewKeyAt as X$}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as SI,lengthOf as Z$}from"efficient-easel/screen/lib/content/length-units";var J$="px-6 py-4",Q$=4,vf=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(J$);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*Q$},aye={top:vf("y"),right:vf("x"),bottom:vf("y"),left:vf("x")},nE="var(--btn)";function eG(e){let o=e.variant==="ghost",t=q$(e.buttonFillOpacity),r=V$(e.buttonBorder),a=Se(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":nE)},changed:t!==void 0||r!==void 0}}function nye(e){let o=eG(e);if(!o.changed)return null;let t=Se(e.buttonColor)??nE;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:Z$(o.border.width,ve(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var oG="var(--sf-button-radius, 0)";function sye(e){let o=q(e.buttonCorners),t=tr(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?oG:Ue(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Ra(r,t)}}function lye(e){let o=(s,l)=>e[X$(s,l)],t=s=>Y$({top:o(Cf.top,s),right:o(Cf.right,s),bottom:o(Cf.bottom,s),left:o(Cf.left,s)})??{},r={desktop:o(SI,"desktop"),tablet:o(SI,"tablet"),phone:o(SI,"mobile")},{classes:a,style:n}=gI(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var aE="upper";function sE(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)??aE;return`${l} \xB7 ${d[c]??d[aE]}`}import{usePreviewParts as tK}from"efficient-easel/draw/client";import{encodePartId as rK}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as aK,useEaselStrings as nK}from"efficient-easel/strings";import{PIN_STICK_VAR as tG,PIN_TRACK_POSITION_VAR as rG,pinAttrs as lE,pinStickVars as aG,readPin as vI}from"efficient-shell/format";var uye="Stick to top",ut={min:0,max:200,step:4,fallback:0},Xl={kind:"position",unitKey:"stickTopDistanceUnit"},iE=Vn(Xl),[nG,sG,lG]=iE,kI="Pin while scrolling",dE="Scroll",Ut={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"},Ga="stickTopScreens",iG=[Ga,"stickTopScreensTablet","stickTopScreensPhone"],TI="Screens",PI="stickTopStop",xs="screen",cE="Pin stops at",fE=[{value:"header",label:"Under the header"},{value:xs,label:"Screen top"}],pE="header",uE="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 EI(e){return e===xs?xs:"header"}function mE(e){return e===xs?xs:void 0}var Zl="stickAbove",hE="Stays above",xE="On: the pinned box stays on top, and the sections after it scroll under it.";function dG(e){return e.stickAbove===!0}var IE=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...iE,...iG,PI,Zl],mye=new Set(["IntroBleed"]),hye=new Set(["CategoryBar","DocTabs","Contents"]);function cG(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var wI=e=>vI(!0,e).length,OI={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},gE={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function CI(e,o="px"){let t=q(e)??ut.fallback;return o!=="px"?Math.max(ut.min,t):Math.min(ut.max,Math.max(ut.min,Math.round(t)))}function _I(e){return typeof e.stickTopTablet=="boolean"}function AI(e){return typeof e.stickTopPhone=="boolean"}function Is(e,o={}){let t=o.intro?cG(e):e.stickTop===!0,r=e,a=ve(r[nG]),n=CI(e.stickTopDistance,a),s=wI(e.stickTopScreens),l=_I(e),d=l?e.stickTopTablet===!0:t,c=l?ve(r[sG]):a,f=l?CI(e.stickTopDistanceTablet,c):n,u=l?wI(e.stickTopScreensTablet):s,p=AI(e),h=p?e.stickTopPhone===!0:d,I=p?ve(r[lG]):c,g=p?CI(e.stickTopDistancePhone,I):f,C=p?wI(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 xye(e,o={}){let t=Is(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&&dG(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,h,I)=>Na({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,h,I).style,d={...o.atScreenTop||EI(e.stickTopStop)===xs?{[Ut.header]:"0px"}:{},[Ut.distance]:Ue(t.desktopDistance,t.desktopUnit),...l(Ut.distance,Ue(t.desktopDistance,t.desktopUnit),Ue(t.tabletDistance,t.tabletUnit),Ue(t.phoneDistance,t.phoneUnit))};if(s){let u=h=>h?"1":"0",p={...d,...t.desktop?{}:{[Ut.on]:"0"},...l(Ut.on,u(t.desktop),u(t.tablet),u(t.phone)),[Ut.length]:String(t.desktopScreens),...l(Ut.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...fG(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:lE(vI(!0),"track").attrs,style:p}}let c=u=>u?"sticky":"static",f={...d,...t.desktop?{}:{[Ut.position]:"static"},...l(Ut.position,c(t.desktop),c(t.tablet),c(t.phone))};return{attrs:lE(vI(!0),"stick",n?{above:n}:{}).attrs,style:f}}function fG(e,o,t,r){let a=[[Ut.stick,tG],[Ut.trackPosition,rG]],[n,s,l]=[e,o,t].map(aG);return Object.fromEntries(a.flatMap(([d,c])=>[...e?[[d,n[c]]]:[],...Object.entries(r(d,n[c],s[c],l[c]))]))}var pG=["column","row","tabs","accordion"];var uG={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},bE={Flex:pG,HeroGroup:["column","row"]},mG={Flex:"row",HeroGroup:"column"},hG={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function gs(e,o){return bE[e].includes(o)?o:mG[e]}function gye(e,o){return hG[gs(e,o)]}function yE(e){return bE[e].map(o=>({label:uG[o],value:o}))}import{viewKeyAt as LI}from"efficient-easel/screen/lib/content/view-tiers";var Tf=20,xG=["solid","dashed","dotted"],Pf=["top","right","bottom","left"],wye="sf-section-border",Cye="sf-section-border-self",IG=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,gG=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Tf,Math.max(0,Math.round(e)))}px`:void 0,Jl={kind:"border",unitKey:"sectionBorderUnit"},wE=Vn(Jl);function vye(e){let o=Jl.unitKey;return{desktop:e[LI(o,"desktop")],tablet:e[LI(o,"tablet")],phone:e[LI(o,"mobile")]}}var SE=(e,o)=>o==="px"?gG(e):typeof e=="number"&&Number.isFinite(e)?Ue(Math.max(0,e),o):void 0;function kf(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=ve(r);for(let l of Pf){let d=SE(e[l],s)??SE(e.width,s);d!==void 0&&(n[`--sf-border-${l}-width${a}`]=d)}return typeof e.style=="string"&&xG.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&IG.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function RI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Pf.map(r=>[r,t[r]??o]))}}function kye(e,o,t,r={}){let a=kf(e,{unit:r.desktop}),n=kf(t,{tablet:!0,unit:r.tablet}),s=kf(t,{phone:!0,unit:r.tablet}),l=kf(o,{phone:!0,unit:r.phone}),d=s||l?{...s,...l}:void 0;return a||n||d?{...a,...n,...d}:void 0}var Ef="sf.gapContainer",Ar={min:-32,max:64,step:2},OE={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},bs={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},bG=new Set(["Events","GalleryB"]);function ja(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Ar.min)return o;if(typeof o=="string"){let r=OE[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:bs[e]}var yG="sf-gap-overlap",SG="--sf-gap-overlap",FI="--sf-block-gap",CE="--sf-block-gap-rem",mt={min:0,max:Ar.max,step:Ar.step};function Ql(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),mt.min),mt.max);return o-o%mt.step}function Eye(e,o){let t=_a(e,o,"gap",mt);if(t!==null)return{[FI]:t,[CE]:t};let r=Ql(e);return r===null?{}:{[FI]:`${r}px`,[CE]:`${r/16}rem`}}var vE="--sf-block-gap-phone",kE="--sf-block-gap-phone-rem",wG="--sf-block-gap-on-phone",CG="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",vG="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function Oye(e,o){let t=_a(e,o,"gap",mt);if(t!==null)return{[vE]:t,[kE]:t};let r=Ql(e);return r===null?{}:{[vE]:`${r}px`,[kE]:`${r/16}rem`}}function _ye(e){return Ql(e)===null?"":`${CG} ${vG}`}var TE="sf-gap-zone",PE="--sf-gap-len";function Of(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Ar.min?!0:typeof o=="string"&&typeof OE[e]?.[o]=="number"}var EE="--sf-gap-len-phone",kG="--sf-gap-len-tablet",ei={min:0,max:Ar.max,step:Ar.step};function aa(e){return typeof e=="number"&&Number.isFinite(e)&&e>=ei.min}function BI(e){return e/2}function DI(e,o,t){return aa(t)&&!Of(e,o)}function NI(e,o,t,r,a){return aa(o)?o:DI(e,t,a)?a:BI(ja(e,t,r))}var TG={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function Aye(e,o,t,r,a){let n={...aa(r)?{[EE]:`${r}px`}:null,...aa(a)?{[kG]:`${a}px`}:null};if(!Of(e,o)){let l=`${bs[e]}px`,d=bG.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${TE}`,style:{[PE]:`var(${FI}, ${d})`,[EE]:`var(${wG})`,...n}}}let s=ja(e,o);return s>=0?{className:` ${TE}`,style:{[PE]:`${s}px`,...n}}:{className:` ${yG} ${TG[t]}`,style:{gap:"0px",[SG]:`${-s/2}px`}}}import{parseHexColor as PG}from"efficient-shell/format";var Mo="var(--section-bg)",oi="inherit";function lr(e,o){return e===oi?Mo:e===void 0?o:_f(e)}var EG=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function _f(e){let o=ar(e);return o?Pr(o):e.replace(EG,"var(--site-$1")}var OG={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function MI(e,o,t){let r=lr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?PG(a):null;if(n)return n.toLowerCase();let s=OG[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var HI="transparent";function _E(e,o){let t=lr(e,o);return!t||t===HI?"none":t===Mo?"band":null}function AE(e,o,t=o){let r=n=>!n||n==="transparent",a=lr(e,o);return a===t||r(a)&&r(t)}var LE=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],RE={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},ys="var(--wheel-stage)",Af="transparent",ti="inherit";function Nye(e,o){return _f(UI(e,o))}function UI(e,o){return e===ti?ys:e==null?o:e===!0?ys:e===!1?Af:e}function Mye(e){return typeof e=="string"&&e!==ti?_f(e):ys}function Hye(e){return e!==Af&&e!=="none"&&e!==""}function FE(e,o){return e===ti||e===!0?!0:e==null?o===ys:!1}var BE="inherit",Lf="fixed",DE=e=>typeof e!="number"&&e!==Lf,_G="var(--sf-heading-max, 9999px)";function zye(e,o,t,r,a){if(typeof e=="number")return Ue(e,a);if(e===Lf)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${_G})`:n}var WI={kind:"fontSize",unitKey:"titleSizeUnit"},zI={kind:"fontSize",unitKey:"bodySizeUnit"},AG=["desktop","mobile"],NE=[WI,zI].flatMap(e=>Vn(e,AG));function $I(e){let o=(t,r)=>Fv(e,t,r);return{titleDesktop:o(WI,"desktop"),titleMobile:o(WI,"mobile"),bodyDesktop:o(zI,"desktop"),bodyMobile:o(zI,"mobile")}}var LG=["page","full"],ME=["full","page"],Ka={full:"Full",page:"Content"},GI="inherit",RG=e=>typeof e=="string"&&LG.includes(e),FG=e=>e===GI;function BG(e,o){return FG(e.widthMode)?{mode:"full",inherited:!0}:RG(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function Vye(e){return BG(e,"page").mode==="full"}var DG={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 qye(e){return $e(DG,e)}var lo={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},Yye={kind:"size",unitKey:lo.contentMaxUnit};function NG(e){let o=e[lo.contentMaxUnit],t=ve(o),r=e[lo.contentMax],a=t==="px"?Y0(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=Ss(e[lo.content])??(a===null?null:"content");return{background:Ss(e[lo.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function Xye(e){let o=NG(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function Zye(e){return e.background!==null||e.content!==null}var Jye=e=>({[lo.background]:e}),Qye=e=>e==="full"?{[lo.content]:e,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0}:{[lo.content]:e},eSe=e=>({[lo.content]:"content",[lo.contentMax]:e}),oSe=e=>e==="background"?{[lo.background]:void 0}:{[lo.content]:void 0,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0},HE="siteWidths",MG=e=>e==="full"||e==="content";function Ss(e){return MG(e)?e:null}function UE(e,o){return{[HE]:{background:Ss(e),content:Ss(o)}}}function tSe(e){let o=e.editor?.metadata?.[HE];return{background:Ss(o?.background),content:Ss(o?.content)}}import{useEaselSession as sK}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as lK,describedAs as na,group as $t,iconOf as vs,sharedStyleKinds as di}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as gO,onDesktopWords as Ya,phoneTwinFields as rg,saidAlignmentGrid as iK,useLengthUnit as dK}from"efficient-easel/screen/lib/document/box-fields";import{createElement as ht}from"react";import{SettingsDefaultReset as HG,SettingsField as UG}from"efficient-easel/panel";import{boxFieldBuilders as WG,describedAs as zG,iconOf as $G,onDesktopWords as GG}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as jG}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as KG,Tooltip as VG,useShellStrings as qG}from"efficient-shell/ui";import{RotateIcon as YG}from"efficient-easel/icons";var WE=e=>i(e),Va=jG,So=WG(WE,{lengthUnits:Va}),Oo=So.slider,xt=So.select,ri=So.Segmented,ws=So.segmented,pSe=So.alignmentField,uSe=So.alignmentFields,mSe=So.blockAlignmentField,hSe=So.blockAlignmentFields,xSe=So.boxJustifyField,ISe=So.boxAlignField,gSe=So.boxWrapField,zE=So.directionField,Rf=So.gapField,bSe=So.placementField,ySe=So.PlacementGridView,SSe=So.positionFields,Ff=So.sidesPaddingFields,ai=So.lengthUnitFields;function $E(e,o){return Oo("Angle",ht(YG),qd.min,qd.max,qd.step,e,"\xB0",o)}var jI=Symbol("efficient-web-builder.picture-picker-row"),XG={width:"3.5rem",height:"2.75rem",words:!0};function KI({value:e}){return qG().iconNames[e]??e}function VI(e,o,t){return ht(VG,{content:t,className:"sf-pick-tip",children:ht("span",{className:"sf-pick"},ht("span",{className:"sf-pick-pic"},e),ht("span",{className:"sf-pick-cap"},o))})}function ZG(e){let o=t=>t.label===void 0?ht(KI,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:VI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function GE(e,o){return ht("span",{className:"sf-pick"},ht("span",{className:"sf-pick-pic"},e),ht("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function qI(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",[jI]:!0,...zG({},{type:"radio",label:e,options:l}),options:l,render:d=>{let{value:c,onChange:f,field:u}=d,p=u?.options,h=ZG(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 ht(UG,{label:i(e),icon:$G(o),action:I?ht(HG,{words:le()?.panel,label:i(e),changed:T,detail:y?.label!==void 0?GG(WE,i(y.label),d.followsView):void 0,disabled:d.readOnly===!0,onReset:()=>f(void 0)}):void 0},ht(KG,{label:i(e),value:w,options:h,onChange:f,columns:a.columns,cell:a.cell??XG,tooltips:!1,disabled:d.readOnly===!0}))}}}import{VIEW_ABOVE as ZI}from"efficient-easel/screen/lib/content/length-units";import{jsx as S,jsxs as be}from"react/jsx-runtime";import{NoSymbolIcon as sj}from"efficient-easel/icons";import{useId as lj}from"react";var JG="line",QG=[{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"}],YI={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},vSe=28,ej="-45deg",oj="color-mix(in oklab, var(--accent) 50%, var(--bg))";function tj(e){return e!=="line"&&e!=="none"}var rj={sm:24,md:48,lg:80},aj="md",nj=Object.keys(rj);function kSe(e){return io(nj,aj,e)}function TSe(e){return io(QG,JG,e)}function PSe(e){if(!tj(e))return null;let{ink:o,period:t}=YI[e];return`repeating-linear-gradient(${ej}, ${oj} 0 ${o}px, transparent ${o}px ${t}px)`}var ESe={kind:"border",unitKey:"thicknessUnit"},OSe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Bf=44,Df=28;function me({children:e}){return S("svg",{width:Bf,height:Df,viewBox:`0 0 ${Bf} ${Df}`,"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}),ke=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),Wt=({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 XI(e){let o=20/ls,t=5,r=1,a=[],n=0,s=0,l=0;for(let[f,u]of e)n+f>ls&&(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=(Df-d)/2;return S(me,{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 DSe={bars:be(me,{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:be(me,{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:be(me,{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 NSe(e){if(e==="none")return S("span",{style:{display:"flex",width:Bf,height:Df,alignItems:"center",justifyContent:"center"},children:S(sj,{size:20})});if(e==="line")return S(me,{children:S(_o,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=YI[e],r=.4,a=[];for(let n=-12;n<Bf;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(ij,{children:a})}function ij({children:e}){let o=`sf-div-${lj().replace(/[^\w-]/g,"")}`;return be(me,{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 Nf=({x:e,y:o,w:t,h:r})=>S("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),MSe={tabs:be(me,{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:be(me,{children:[S(_o,{x1:4,y1:5,x2:40,y2:5}),S(Wt,{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(Wt,{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})]})},HSe={card:be(me,{children:[S(ke,{x:10,y:3,w:24,h:22}),S(Nf,{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:be(me,{children:[S(Nf,{x:10,y:3,w:24,h:22}),S(ke,{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})]})},USe={cards:be(me,{children:[S(ke,{x:3,y:5,w:11,h:18}),S(ke,{x:17,y:5,w:11,h:18}),S(ke,{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":be(me,{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})]})},WSe={table:be(me,{children:[S(ke,{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:be(me,{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})]})},zSe={plain:be(me,{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:be(me,{children:[S(ke,{x:3,y:7,w:11,h:14}),S(ke,{x:17,y:7,w:11,h:14}),S(ke,{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:be(me,{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})]})},$Se={overlay:be(me,{children:[S(Nf,{x:4,y:3,w:36,h:22}),S(ke,{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:be(me,{children:[S(B,{x:4,y:3,w:18,t:3}),S(B,{x:4,y:8,w:12}),S(Nf,{x:4,y:13,w:36,h:12}),S(ke,{x:4,y:13,w:36,h:12})]})},GSe={split:be(me,{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:be(me,{children:[S(_o,{x1:9,y1:4,x2:9,y2:24}),S(Wt,{x:9,y:8}),S(B,{x:14,y:7,w:24}),S(Wt,{x:9,y:14}),S(B,{x:14,y:13,w:20}),S(Wt,{x:9,y:20}),S(B,{x:14,y:19,w:24})]}),alternating:be(me,{children:[S(_o,{x1:22,y1:4,x2:22,y2:24}),S(Wt,{x:22,y:8}),S(B,{x:4,y:7,w:14}),S(Wt,{x:22,y:14}),S(B,{x:26,y:13,w:14}),S(Wt,{x:22,y:20}),S(B,{x:4,y:19,w:14})]}),track:be(me,{children:[S(_o,{x1:4,y1:12,x2:40,y2:12}),S(Wt,{x:8,y:12}),S(Wt,{x:22,y:12}),S(Wt,{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})]})},jSe={standard:be(me,{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:be(me,{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:be(me,{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:be(me,{children:[S(B,{x:4,y:6,w:36,t:7}),S(B,{x:4,y:16,w:24,t:7})]}),natural:be(me,{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:be(me,{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})]})},KSe={"spec-card":be(me,{children:[S(ke,{x:4,y:3,w:36,h:22}),S(B,{x:8,y:7,w:14}),S(ke,{x:8,y:12,w:8,h:9}),S(ke,{x:18,y:12,w:8,h:9}),S(ke,{x:28,y:12,w:8,h:9})]}),fitment:be(me,{children:[S(ke,{x:4,y:4,w:10,h:5}),S(ke,{x:16,y:4,w:10,h:5}),S(ke,{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:be(me,{children:[S(ke,{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:be(me,{children:[S(ke,{x:4,y:3,w:10,h:22}),S(ke,{x:17,y:3,w:10,h:22}),S(ke,{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:be(me,{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:be(me,{children:[S(ke,{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(ke,{x:8,y:18,w:8,h:4}),S(ke,{x:18,y:18,w:8,h:4}),S(ke,{x:28,y:18,w:8,h:4})]}),terminal:be(me,{children:[S(ke,{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})]})},jE={width:"5.75rem",height:"3.75rem",words:!0},VSe={width:"8.5rem",height:"3.75rem",words:!0},qSe={columns:be(me,{children:[S(ke,{x:3,y:4,w:11,h:8}),S(ke,{x:17,y:4,w:11,h:8}),S(ke,{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":be(me,{children:[S(ke,{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(ke,{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":be(me,{children:[S(ke,{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(ke,{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 UCe,SCALAR_TEXT_CONTROLS as WCe}from"efficient-easel/draw";function Xa(e,o){return i("{value} from {from}",{value:e,from:o})}function cK(){let{blockGap:e}=ue();return e===null?i("this container's own spacing"):Xa(`${e}px`,i("Styles"))}function fK({inherited:e,onReset:o,label:t}){return k(Ho,{words:le()?.panel,label:i(t),changed:!e,detail:cK(),onReset:o})}function pK(e){return Rf({...lK,builtIn:bs[e],resolve:(o,t)=>ja(e,o,t?.siteGap),action:(o,t)=>k(fK,{inherited:!Of(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Ef]:e}})}function uK(e){return oo(st("mobile",{[Ef]:e,type:"custom",render:o=>k(xK,{container:e,...o})}),bO)}function mK(e){return oo(st("tablet",{[Ef]:e,type:"custom",render:o=>k(hK,{container:e,...o})}),bO)}var bO={not:{field:"gap",in:Array.from({length:-Ar.min},(e,o)=>Ar.min+o)}};function LCe(e){return{gap:st("desktop",pK(e)),[dg("gap")]:mK(e),[Cs("gap")]:uK(e)}}function hK({container:e,...o}){let[t]=zt("gap"),{siteGap:r}=o.field??{},a=Math.max(ei.min,ja(e,t,r));return Rf({...ei,builtIn:a,resolve:n=>aa(n)?n:a,action:(n,s)=>k(Ho,{words:le()?.panel,label:i("Gap"),changed:aa(n),detail:Ya(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function xK({container:e,...o}){let[t]=zt("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=NI(e,void 0,t,r,a);return Rf({...ei,builtIn:n,resolve:s=>NI(e,s,t,r,a),action:(s,l)=>k(Ho,{words:le()?.panel,label:i("Gap"),changed:aa(s),detail:Xa(`${n}px`,DI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function RCe(e){return zE({offered:yE(e),fallback:gs(e,void 0),resolve:o=>gs(e,o)})}function FCe(e,o){return ck(o?uk(e,o):[],o)}function IK({inherited:e,onReset:o,label:t}){return k(Ho,{words:le()?.panel,label:i(t),changed:!e,detail:Xa(i("Full"),i("the page")),onReset:o})}function Za({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:d,hidden:c}=sa(e),f=ni(null),u=ni(null),p=T=>o(s?{text:T,hidden:c}:T),h=()=>o({text:d,hidden:!c}),I=s&&c,g=aO(),C=a?wK(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(Fj,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:C,action:s?k(ig,{content:w,children:k(xO,{"aria-pressed":c,"aria-label":w,onClick:h,children:c?k(XE,{name:"eye-off",size:14}):k(XE,{name:"eye",size:14})})}):void 0,children:Lr("div",{className:"sf-copybox",children:[l&&k(Hx,{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 BCe(e,o){return{...e,[xj]:o}}function DCe(e){let o=e[Rr];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Rr]:{...o,offPage:!0}}}function $f(e){return!e||typeof e!="object"?!1:e[Rr]?.offPage===!0}function NCe(e){if(!e[Rr])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Wx]:!0}}function yO(e){return us(e)}function MCe(e){let o=e[Rr];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Rr]:{...o,identifier:!0}}}function zCe(e,o){if(!e[Rr])throw new Error("inOwnBox: the field holds no authored text");let{[Qj]:t,...r}=e;return{...r,[Ux]:!0,render:o}}var gK=new Set(oK),Wf={type:"radio",options:[{value:!0},{value:!1}]},SO={text:{type:"object",objectFields:{text:{type:"text"},hidden:Wf}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Wf}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Ja=(e,o)=>{let t=na({...o,[Rr]:e},{...SO[e.control],label:e.label});if(!gK.has(e.control))return t;let r=o.render;return{...IO(t,"authored-copy"),render:a=>k(GP,{name:a.name,children:r(a)})}},$Ce="Everything else on this block comes from the linked post. Unlink it to edit by hand.",bK={field:"source.slug",set:!0},GCe={not:bK},yK="Select a word, then press the highlighter.",SK=new Set([yK]),wK=e=>SK.has(e);function jCe(e,o,t){return Ja({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Za,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function KCe(e,o,t){return Ja({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Za,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function VCe(e,o,t){return Ja({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Za,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function qCe(e,o,t){return Ja({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Za,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function YCe(e){return{type:"custom",[mj]:{label:e},...na({},{type:"text",label:e}),render:({value:o,onChange:t})=>k($0,{value:uj(o),onChange:t,label:e})}}function XCe(e,o,t){return Ja({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>k(Za,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var wO={Design:Ij,Animation:bj};function ZCe(e,o){return{type:"custom",render:()=>k(CK,{text:e,values:o})}}function CK({text:e,values:o}){return k("p",{className:"sf-note",children:i(e,o)})}function JCe(e){return la(e)!==null&&e?.tabs!==void 0}var ZE=new Map;function Gf(e,o){let t=`${e}\0${o?o.join(""):""}`,r=ZE.get(t)??{type:"custom",tabs:o,[nO]:{label:e,level:1},bucket:e,marker:!0,render:()=>k(Fr,{})};return ZE.set(t,r),r}var JE=new Map;function fg(e){let o=JE.get(e)??{type:"custom",[nO]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>k(Fr,{})};return JE.set(e,o),o}function vK(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function CO(e,o){return vK(e)===o?e:{...e,marker:!0,fold:o,render:()=>k(Fr,{})}}function vO(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 pg({title:e,children:o}){let[t,r]=si(()=>!JI.has(e));return k(Nj,{title:e,open:t,onToggle:a=>{r(a),a?JI.delete(e):JI.add(e)},children:o})}var JI=new Set;function kK({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 Lr("div",{className:"sf-swatches",children:[e.map(l=>{let d=r?.[l]?i(r[l]):l;return k(ig,{content:d,children:k(jj,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":d})},l)}),k("span",{className:"sf-swatch-hex",children:s})]})}function QCe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>k(TK,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function TK({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=gg(),d={background:s.background,surface:s.surface,surface2:lc(s),band:$v(s)},c=t?Mo:o,f=AE(n,o,c),u=MI(void 0,c,d),p=t?oi:void 0,h=c===Mo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=PK(n,o,s,l,d,a),g=Xa(u.toUpperCase(),h),C=ar(n),w=C?is(C,s,l):null;return w?k(Yo,{label:i(e),icon:k(KE,{}),value:w.hex,caption:w.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):k(Ul,{label:i(e),icon:k(KE,{}),value:f?"":MI(n,o,d),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function PK(e,o,t,r,a,n){let s=_E(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(HI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Mo)},...Ig(ar(e)??"",t,r,n)]}function EK(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=FE(a,o);return k(mo,{label:i(e),icon:k(og,{}),changed:!n,action:k(Ho,{words:le()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(ti)}),children:kK({swatches:LE,current:n?ys:UI(a,o),onPick:r,names:RE})})}}}function jf(e=t=>t,o){return di({_gSectionTheme:$t(sk),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>k(x0,{value:e(t),onChange:r,followLabel:o})}})}function Kf(e){let o=Po(),t=Tr(e?.view),r=s=>cg(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??$K(t,a);return dK({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:Va,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(Jj,{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 OK(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?vs(c):void 0,value:I?d||n===void 0?void 0:i(n):`${h}${f}`,changed:!I,action:d?ag(d,{changed:!I,onReset:()=>p(null)}):k(Ho,{words:le()?.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 li="Corners",_K={kind:"radius"};function ug(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(li),icon:k(lO,{}),changed:n,action:ag(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:k(AK,{tier:e,px:a,name:o.name,onRadius:r})})}}}function zt(e){let o=qa();return[o?.values?.[e],t=>o?.onChange(e,t)]}function kO(){return IO({type:"custom",render:()=>k(eK,{})},"always")}function oa(){let e=qa();return o=>e?.onChangeMany(o)}function AK({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=zt(e.sidesKey),l=oa(),d=Kf({row:e.row??_K,label:li,grid:{min:Uo,max:Vr,step:e.step??1},valueKey:t??"",view:"desktop"}),c=tr(n)??[...Lc];return k(Kj,{label:i(li),value:c,corners:CT,onChange:f=>{let u=tr(f)??[];s(u.length===Lc.length?null:u)},radius:o,onRadiusChange:d&&t?f=>l({[t]:f,...d.unitPatch(f===null)}):r,radiusMin:d?.grid.min??Uo,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 TO(e,o){return ai(e,o)}function PO(){return kO()}function LK({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=ue(),a=typeof r=="number"?`${r}px`:i("not set");return k(Ho,{words:le()?.panel,label:i(e),changed:o,detail:r==null?i("the built-in corners"):Xa(a,i("Styles")),onReset:t})}function RK(){let{cornerRadiusPx:e}=ue();return typeof e=="number"?e:Uo}function FK(){return ug({sidesKey:"sectionCornerSides",row:Al,useFollowed:RK,mark:k(LK,{label:li}),hint:BK})}var BK="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function Vf(){return di({_gShape:$t("Shape"),sectionCorners:FK(),...TO(Al,"sectionCorners"),sectionCornerSides:PO(),...Er("sectionBorder",zK),...ai(Jl,"sectionBorder",{tablet:!0,phone:!0})})}var DK=()=>({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 NK(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function MK(){let e;try{let o=xo(ue().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||Mv.line}function HK({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]=si(()=>a?zj(d,s):!1),u=DK(),p=h=>NK(a&&n?h:{width:h.width,color:h.color,...n?{style:h.style}:{}});return k(mo,{label:i("Border"),icon:k(yj,{}),action:a?k(Uj,{each:c,label:i("Each side"),onChange:f}):void 0,children:k(Hj,{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??Tf,...l?{step:l.grid.step,units:l.units}:{}})})}function UK({value:e,onChange:o,view:t}){let[r]=zt("sectionBorder"),[a]=zt(dg("sectionBorder")),n=MK(),s=p=>p&&typeof p=="object"?p:{},l=t==="phone"?{...RI(s(r)),...RI(s(a))}:t==="tablet"?s(r):{},d=Po(),c=oa(),f=we("sectionBorder",t),u=Kf({row:Jl,label:"Border",grid:{min:0,max:Tf,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>QI(d[cg("sectionBorder",p)]),convertTo:p=>{let h=s(d[f]);return QI(h)?{[f]:WK(h,p)}:{}}});return k(HK,{value:e,length:u,onChange:u?p=>c({[f]:p,...u.unitPatch(!QI(p))}):o,placeholder:{sides:Wj(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}var EO=["width",...Pf];function QI(e){if(!e||typeof e!="object")return!1;let o=e;return EO.some(t=>q(o[t])!==void 0)}function WK(e,o){let t={...e};for(let r of EO){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function zK(e){return{type:"custom",render:({value:o,onChange:t})=>k(UK,{value:o,onChange:t,view:e})}}function $K(e,o){let t=ZI[e];for(;t&&ZI[t]!==null&&!o(t);)t=ZI[t];return t??e}function eve(e){return{type:"custom",render:()=>k(GK,{partKey:e})}}function GK({partKey:e}){let[o]=zt("id"),[t]=zt("_partStyles"),{textStyles:r}=ue(),a=nK(),n=null;try{n=tK().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return k(Dj,{name:i("Text"),preview:sE(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??aK.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(rK(o,e))}})}function OO(e){let{cornerRadiusPx:o}=ue(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=zf(d=>d),l=s?.props?.id?String(s.props.id):void 0;r=l?TP(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return ix(a)?a:t}function jK({label:e,changed:o=!1,onReset:t=()=>{}}){let r=OO(Uo);return k(Ho,{words:le()?.panel,label:i(e),changed:o,detail:Xa(`${r}px`,i("the section")),onReset:t})}function KK(){return k(Fr,{children:i("Follows the section's Corners until you set a number here.")})}function VK(){return ug({sidesKey:"cardCornerSides",row:Ll,useFollowed:()=>OO(Uo),mark:k(jK,{label:li}),hint:k(KK,{})})}function qK(){return{type:"custom",render:()=>k(_T,{})}}function ove(){return{_gShape:$t("Shape"),cardCorners:VK(),...TO(Ll,"cardCorners"),cardCornerSides:PO(),cardCornersApplyAll:qK()}}function YK(){return na({type:"custom",[jI]:!0,render:e=>k(ZK,{...e})},{type:"select",label:Ea,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 XK(e,o){let t=hh(e);if(t!=="custom")return i(mh.find(a=>a.value===t)?.label??"");let r=hO(Qd(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function ZK(e){let{value:o,onChange:t}=e,[r]=zt("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,l=s?o:n?e.follows:void 0,d=hh(l),c=a>=2&&a<=qE,f=()=>[...Yj[a]??[]],u=ni(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:qE}),g=s&&(n||o!=="content"),C=Zj().widths.hint(a,qj);return k(mo,{label:i(Ea),icon:k(ng,{}),changed:g,hint:d!=="custom"?void 0:c?C:I,action:k(Ho,{words:le()?.panel,label:i(Ea),changed:g,disabled:e.readOnly===!0,detail:n?Ya(w=>i(w),XK(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:Lr("div",{className:"sf-share-row",children:[k("div",{className:"sf-share-pick",children:k(mO,{label:i(Ea),value:d,options:mh.map(w=>({value:w.value,label:w.value==="custom"&&!c?I:i(w.label),icon:VI(k("span",{className:"sf-gallery-pic sf-share-pic",children:_O(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:AO,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&c?k("div",{onFocus:()=>{u.current={value:o,shares:hO(Qd(l,a),a)}},onBlur:()=>{u.current=null},children:k(Xj,{label:i(Ea),count:a,value:Qd(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function _O(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 tve(){return xt(av,k(Pj,{}),gh,gh[0].value)}function rve(){return st("mobile",qI(Ea,k(ng,{}),ov.map(e=>({label:e.label,value:e.value,picture:k("span",{className:"sf-gallery-pic sf-share-pic",children:_O(e.weights).map((o,t)=>k("i",{style:{gridColumn:`span ${o}`}},t))})})),tv,{columns:2,cell:AO}))}var AO={width:"5.75rem",height:"3.25rem",words:!0};function ave(){return rg("share",YK(),gO)[dg("share")]}function JK(){return st("mobile",Oo(xh,k(sO,{}),ec,ev,1,ec,"",{clear:{phoneFollows:!1,hint:ec}}))}var QE={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function nve(){let e=Oo(xh,k(sO,{}),Ih,rv,1,Ih,"",{clear:{emptyLabel:"Auto"}}),o=rg("columns",e,{...QE,tablet:gO.tablet}),t=rg("columns",e,QE,{phoneRow:JK()});return{...o,phoneRow:t.phoneRow}}function sve(e,o,t,r,a,n,s){return{type:"custom",render:({value:l,onChange:d,name:c})=>k(QK,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:l,onChange:d,name:c??"",length:s})}}function QK({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:l,name:d,length:c}){let f=Po(),u=oa(),p=Tr(c?.view),h=Kf({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(Tx,{noun:n}),action:k(Ho,{words:le()?.panel,label:i(e),changed:!DE(s),detail:i("the Text style in Styles"),onReset:()=>I(BE),defaultAction:{onPress:()=>I(Lf),title:i("Keep this section's own built-in size"),icon:k(Sj,{})}}),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 lve(){return{_gCellWidth:$t("Cell width"),gridSpan:xt("Positions",k(ng,{}),[{label:"Auto",value:""},...Array.from({length:Mc},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function Po(){let e=null,o=null;try{e=rO(mg),o=zf(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var mg=cj(null);function e8({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let d=Po()[s],c=of(void 0,d,l);return k(Fr,{children:Zo({min:e,max:o,step:t,value:of(r,d,l),readout:!1,ariaLabel:a,notch:c,onChange:n})})}function o8({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=Po()[o],l=of(void 0,s,t);return k(Ho,{words:le()?.panel,label:i(e),changed:a,detail:Ya(d=>i(d),`${l}${r}`),onReset:n})}function t8(e){return OK(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:k(o8,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>k(e8,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var r8={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},a8={Top:sg,Bottom:cO,Left:fO,Right:pO},n8=e=>{let o=a8[e];return k(o,{})};function ive(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=C=>r8[C],n=C=>Oo(a("Top"),k(sg,{}),pt.min,pt.max,pt.step,C,"px"),s=(C,w,T,y=pt)=>st("mobile",t8({label:a(C),icon:n8(C),desktopKey:w,min:y.min,max:y.max,step:y.step,fallback:T})),l=e.top??pt.min,d=e.bottom??pt.min,c="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??pt,p=e.side??u.min,h=e.sidePhone??p,I=e.phone===!0,g=C=>I?st("desktop",C):C;return di({...r?{_gSpacing:$t("Padding")}:{},[o]:g(n(l)),...I?{[Cs(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(Oo(a("Bottom"),k(cO,{}),pt.min,pt.max,pt.step,d,"px")),...I?{[Cs(t)]:s("Bottom",t,d)}:{}},...e.sides?{[c]:g(Oo(a("Left"),k(fO,{}),u.min,u.max,u.step,p,"px")),...I?{[Cs(c)]:s("Left",c,h,u)}:{},[f]:g(Oo(a("Right"),k(pO,{}),u.min,u.max,u.step,p,"px")),...I?{[Cs(f)]:s("Right",f,h,u)}:{}}:{}})}function dve(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&la(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 Hf="Width";function qf(e,o=ME,t=!0){let r=o.map(a=>({label:Ka[a],value:a}));return di({...t?{_gWidth:$t(Hf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>k(mo,{label:i(Hf),icon:k(Bj,{}),action:t?k(IK,{inherited:n?.inherited??!1,onReset:()=>a(GI),label:Hf}):void 0,children:ri({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:Hf})})}})}function Yf({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:l})=>k(s8,{value:s,onChange:l,view:a,badge:n,fill:e})}),t=()=>tg("sectionHeightMode"),r=()=>tg("sectionHeightMode");return di({_gHeight:$t(Qn),...Er("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>k(c8,{view:a,onClear:()=>n(void 0)}))),...Er("sectionHeightValue",t),...Er("sectionHeightUnit",r)})}function s8({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=Po(),{mode:s,number:l,unit:d}=l8(t,n,e);return k(mo,{label:Qn,icon:vs(k(dO,{})),action:r?r(o):void 0,children:Lr("div",{className:"es-width-stack",children:[ri({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:Qn}),l?k(d8,{view:t,mode:s,menu:d}):null]})})}function LO(e,o){return e==="phone"&&mc(o)?vk(o):wk(o)}function Xf(e,o){return e==="desktop"||(e==="tablet"?mc(o):Ck(o))?null:LO(e,o)}function l8(e,o,t){let r=(a=>bk.includes(a))(t)?t:Xf(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function i8(e,o,t,r){let a=Xf(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 eO(e,o,t){let r=qa(),a=Xf(e,Po());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=i8(e,s,o,n);return l===null?{[we(o,e)]:n}:Object.keys(l).length?l:null})}}function d8({view:e,mode:o,menu:t}){let r=qa(),a=Po(),n=we("sectionHeightValue",e),s=we("sectionHeightUnit",e),l=C=>w=>r?.onChangeMany(()=>({[C]:w})),{followed:d,write:c}=eO(e,"sectionHeightValue",l(n)),{write:f}=eO(e,"sectionHeightUnit",l(s)),u=o==="screen"?"%":a[s],p=(d?d.unit:u)==="%"?"%":"px",h=p==="%"?Sk:yk,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:Qn,onChange:c})}function c8({view:e,onClear:o}){let t=Po(),r=Xf(e,t)===null,a=e==="phone"&&mc(t),n=LO(e,t),s=Ya(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return k(Ho,{words:le()?.panel,label:i(Qn),changed:r,detail:s,onReset:o})}function hg(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:d,name:c})=>k(I8,{value:s,onChange:l,labelId:`${d??c??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>k(m8,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>k(h8,{value:s,onChange:l,view:n,intro:o})});return{_gStick:$t(dE,{dot:o?u8:OI}),...Er("stickTop",t),...Er("stickTopDistance",r),...ai(Xl,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?Er(Ga,a):{},...o?{}:{[PI]:f8()},...o||e.above===!1?{}:{[Zl]:p8()}}}function f8(){let e=xt(cE,k(sg,{}),fE,pE);return st("desktop",{...e,render:o=>{let t=e.render({...o,value:EI(o.value),onChange:r=>o.onChange(mE(r))});return ag(t,{hint:i(uE)})}})}function p8(){let e=FO(hE,!1,k(uO,{}),xE);return st("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var u8={any:[OI,gE]};function RO(e,o,t,r,a){let n=qa(),s=Po(),l=e==="desktop"||ii(e,s)?null:xg(e,Is(s,{intro:r}));return{followed:l,write:(l||a)&&n?d=>n.onChangeMany(c=>{let f=x8(e,c,d,o,r),u=f===null?{[we(o,e)]:d}:f;return Object.keys(u).length?{...u,...a?.(d)??{}}:null}):t}}function m8({value:e,onChange:o,view:t,intro:r}){let a=Po(),n=Is(a,{intro:r}),s=f=>{let u=dc(f);return u==="desktop"||ii(u,a)},l=Kf({row:Xl,label:"Distance from top",grid:{min:ut.min,max:ut.max,step:ut.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[cg("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:d,write:c}=RO(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??ut.min,max:l?.grid.max??ut.max,step:l?.grid.step??ut.step,value:d?null:typeof e=="number"?e:ut.fallback,...d?{placeholder:d.distance}:{},...l?{suffix:l.unit,units:l.units}:{suffix:"px"},ariaLabel:i("Distance from top"),onChange:c})})}function h8({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=RO(t,Ga,o,r);return k(mo,{label:i(TI),icon:vs(k(dO,{})),children:Zo({min:Mf.min,max:Mf.max,step:Mf.step,value:a?null:q(e)??Mf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(TI),onChange:n})})}function ii(e,o){return e==="tablet"?_I(o):AI(o)}function xg(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 x8(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||ii(e,o))return null;if(t===void 0)return{};let n=xg(e,Is(o,{intro:a})),s=e==="phone"&&ii("tablet",o)?f=>we(f,"tablet"):f=>f,l=(f,u)=>o[s(f)]==null?{}:{[we(f,e)]:u},d=Xl.unitKey,c=o[s(d)]==null?{}:{[we(d,e)]:n.unit};return{[we("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...c,...l(Ga,n.screens),[we(r,e)]:t}}function I8({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=Po(),s=Is(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:xg(r,s),f=c?.on?Ue(c.distance,c.unit):i("Off");return k(mo,{label:i(kI),labelId:t,icon:vs(k(uO,{})),action:Lr(Fr,{children:[r!=="desktop"?k(Ho,{words:le()?.panel,label:i(kI),changed:ii(r,n),detail:Ya(u=>i(u),f,d?"tablet":"desktop"),onReset:()=>o(void 0)}):null,k(lg,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var oO="e.g. about";function Zf(){return{_gAnchor:$t("Anchor"),anchor:Ja({control:"plainText",label:"Name",placeholder:oO},{type:"custom",render:({value:e,onChange:o})=>k(cP,{value:e,onChange:o,nameBox:(t,r)=>k(Za,{value:t,onChange:r,label:"Name",placeholder:oO,hideable:!1,markup:!1})})})}}function cve(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(Vj,{id:l,value:Number.isFinite(d)?new Date(d):null,onChange:c=>a(c?c.toISOString():"")})})}}}function FO(e,o,t,r){return{type:"custom",...na({},{...Wf,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(lg,{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?Lr(Fr,{children:[k(Ho,{words:le()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):Ya(w=>i(w),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),C]}):C})}}}function BO(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return k(g8,{label:"Background",icon:k(Aj,{}),id:a,value:e,shown:Ox(e),onChange:o})}}}function fve(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>k(Yo,{label:i(e),icon:t,value:r||o,onChange:a})}}function g8({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=gg(),d=ar(r),c=d?is(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:Ig(d??"",s,l,n)})}function pve(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return k(b8,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function Ig(e,o,t,r){let a=Yc(e);return hP(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function b8({value:e,onChange:o,twin:t}){let{colors:r,n:a}=gg(),n=r.background,s=Xa(n.toUpperCase(),i("Theme {n} background",{n:a})),[l,d]=zt(kP),[c]=zt(Lx),f=typeof c=="string"&&c.trim()!=="",u=Vc(l),p=b=>d(Vc(b)||void 0),h=Yc(e),I=h?is(h,r,a):null,g=Ig(e,r,a,o),C=t?()=>o(void 0):()=>o(""),w=n,T=s;if(t){let b=Yc(t.follows),P=qc(t.follows),H=b?is(b,r,a):P?{hex:P,words:P.toUpperCase()}:null;w=H?.hex??n,T=Ya(E=>i(E),H?H.words:s,t.view)}let y=!t&&(Ml(e)||f)?k(y8,{value:u,onChange:p}):null;return I?k(Yo,{label:i("Fill"),icon:k(og,{}),value:I.hex,caption:I.words,onChange:o,changed:!0,onReset:C,resetTo:T,choices:g,children:y}):k(Ul,{label:i("Fill"),icon:k(og,{}),value:e,inherited:w,resetTo:T,onChange:o,onReset:C,choices:g,children:y})}function y8({value:e,onChange:o}){return ri({options:Kc.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:i("Fill")})}function S8(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return or(t);let r=PP(e,o);if(r.length===0)return null;let a=or(Bh(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=or(Bh(r[n].sectionAccent));if(s!==null)return s}return or(r[0].sectionAccent)}function gg(){let e=xo(ue().theme),[o]=zt("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=zf(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?S8(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 uve(){return kO()}var DO={top:k(kj,{}),right:k(vj,{}),bottom:k(wj,{}),left:k(Cj,{})};function NO(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:iK(i,{label:e,value:h,onChange:p,points:f})})}}}function mve(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>k(QP,{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 hve(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return k(e,{...a})}}}var xve=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Ive(e,o,t){let r=Object.keys(Qh).map(a=>({label:Qh[a],value:a,picture:t[a]}));return{type:"custom",...na({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>k(C8,{label:e,icon:o,options:r,onChange:a})}}function w8(e,o,t){let r=tT(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=oT(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 C8({label:e,icon:o,options:t,onChange:r}){let a=qa(),n=a?.values??{},s=El(n),l=rO(pj),d=Ac(l?.docId??null),c=null;try{c=zf(u=>u.appState.data)}catch{c=null}let f=ST(a?.id,c,d);return k(mo,{label:i(e),icon:vs(o),hint:w8(n,f,l?.hasUnsavedEdits??!1),children:ri({options:t,value:s,onChange:r,ariaLabel:e})})}function gve(e,o,t,r={}){let a={type:"custom",[hj]:!0,render:({value:n,onChange:s,name:l})=>k(ZP,{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?st("each",a):a}function v8(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 bve({value:e,onChange:o,label:t}){let r=e||{},a=qa(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,d=!!to(sK()).geocode,c=aO(),f=(u,p)=>o({...r,[u]:p??void 0});return Lr(Fr,{children:[k(mo,{label:i(t),icon:k(VE,{}),action:d?k(ig,{content:i("Find from the address (OpenStreetMap)"),children:k(xO,{"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(Lj,{})})}):void 0,children:d&&r.status?k(fP,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(Dx):i(r.status),hint:v8(r)}):null}),k(mo,{label:i("Enter by hand"),labelId:c,icon:k(Tj,{}),action:k(lg,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:c})}),r.manual&&k(mo,{label:i("Latitude, longitude"),icon:k(VE,{}),children:Lr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[k(YE,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),k(YE,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function k8(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function T8(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 P8(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 bg={label:"Ticker items",icon:k(_j,{})};function yve(e,o,t,r){return{type:"custom",[Rr]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...na({},{...SO.textList,label:e}),render:({value:a,onChange:n})=>k(yg,{label:e,icon:vs(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function yg({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=ni(null),[l,d]=si(null),c=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=P8(t,u,l);p===null&&(s.current=null),d(p),a(c(u))};return k($j,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?k(Hx,{target:s,value:k8(t,l),onChange:u=>a(T8(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 MO(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Ja({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>k(Za,{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 HO(e){return{_gCards:$t("Cards"),coverIndex:xt("Cover image",k(Oj,{}),qP,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:EK("Image background",Af),cardImage:WO()}}function Sve(){return{outline:xt("Card outline",k(Rj,{}),VP,KP),indexBadge:xt("Card number",k(Ej,{}),jx,Gx),showBadge:FO("Product badge",!0,k(Tx,{noun:"tag"}))}}function UO(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...Wf,label:Uf.find(n=>n.id===a).label}),r=a=>na(tg(eg),t(a));return{_gShowOnCard:$t("Show on a card"),[eg]:na({type:"custom",render:()=>k(E8,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(eg)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var eg="showCardPrice",Uf=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function E8({rest:e}){let o=Po(),t=oa(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Uf.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return k(ks,{parts:Uf,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(Uf.map(({id:s})=>[s,void 0])))})}function wve(e,o="display"){let t=Cs(o);return{[o]:st("desktop",{type:"custom",render:({value:r,onChange:a})=>k(ks,{parts:e,changed:AP(r),shown:n=>Jc(r,n),onPress:(n,s)=>a(RP(r,n,s)),onReset:()=>a(void 0)})}),[t]:st("mobile",{type:"custom",render:({value:r,onChange:a})=>k(O8,{parts:e,desktopKey:o,value:r,onChange:a})})}}function ks({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(gj,{}),changed:o,action:k(Ho,{words:le()?.panel,label:l,changed:o,detail:n,onReset:a}),children:k(Gj,{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 O8({parts:e,desktopKey:o,value:t,onChange:r}){let a=Po()[o];return k(ks,{parts:e,changed:LP(t),shown:n=>Bx(a,t,n),onPress:(n,s)=>r(FP(t,n,s)),onReset:()=>r(tf),detail:i("the same as Desktop")})}function WO(e=$T){return Oo("Card image",k(lO,{}),Uo,Vr,zT,Uo,e,{clear:{hint:Uo},hint:"Rounds the picture. The card's own corner is in Styles."})}function _8(){return ai(bx,"cardImage")}function Cve(){return{cardImage:WO(bx),..._8()}}function vve(){return ug({sidesKey:"cornerSides",row:GT,step:jT,useFollowed:()=>Uo,mark:k(A8,{label:KT}),hint:i("Rounds the picture. Left alone it stays square.")})}function A8({label:e,changed:o=!1,onReset:t=()=>{}}){return k(Ho,{words:le()?.panel,label:i(e),changed:o,onReset:t})}function kve(){return{type:"custom",render:({value:e,onChange:o})=>k(B8,{value:typeof e=="string"?e:"",onChange:o})}}var tO="own";function Tve(){let e=[{value:tO,label:"Layout's own",picture:XI(Array.from({length:8},()=>[3,1]))},...Object.entries(Nc).map(([o,t])=>({value:o,label:t.label,picture:XI([...t.phone,...t.phone])}))];return st("mobile",qI("Layout",k(iO,{}),e,tO,{columns:2,cell:jE}))}function L8({layout:e,width:o}){let t=Cx(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:QT(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 R8={width:"3.5rem",height:"2.5rem",words:!1},F8=200;function B8({value:e,onChange:o}){let[t,r]=si(null),[a,n]=si(4),s=ni(null);fj(()=>{let h=s.current;if(!h||typeof ResizeObserver!="function")return;let I=()=>n(h.getBoundingClientRect().width>=F8?4:3);I();let g=new ResizeObserver(I);return g.observe(h),()=>g.disconnect()},[]);let l=e?j(Bl,e):void 0,d=l?e:"",c=Sx(t,d),f=Sx(t,"").length,u=Hc("no-symbol"),p=[{value:"",label:i("Not chosen"),icon:GE(u,i("Not chosen"))},...c.map(h=>({value:h,label:i(Bl[h].label),icon:k(L8,{layout:Bl[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(mO,{label:i("Layout"),value:d,options:p,onChange:o,columns:a,cell:R8,header:Lr("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(Mj,{options:[{id:"all",label:i("All")},...XT.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:yx.length})})]})})})})}import{decodePartId as Q8}from"efficient-easel/draw";import{decodePartId as vg,encodePartId as tp}from"efficient-easel/draw";import{LINK_FIELD_MARKER as ZO,SCAFFOLD_FIELD_MARKER as YO,TEXT_FIELD_MARKER as rp}from"efficient-easel/draw";import{readHidable as JO}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as z8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as W8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as zO}from"efficient-easel/draw";import{readHidable as $O}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as D8}from"efficient-easel/draw";var N8=D8,M8=["text","textarea"],H8=["textarea","plainTextarea"];function U8(e){return!e||typeof e!="object"?null:e[zO]?.control??null}function Ts(e){let o=U8(e);return o&&N8.includes(o)?o:null}function Jf(e){return H8.includes(e)}function GO(e){return!e||typeof e!="object"?void 0:e[zO]?.placeholder}function Qf(e){return $O(e).text}function Sg(e,o,t){return M8.includes(e)?{text:t,hidden:$O(o).hidden}:t}function jO(e,o,t,r){return Qf(e[o])===r?null:{...e,[o]:Sg(t,e[o],r)}}function Ps(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Gt(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 ep(e){if(!(!e||typeof e!="object"))return e[W8]}function wg(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function KO(e,o){if(!Array.isArray(o))return[];let t=ep(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=wg(e);return a?(o.forEach((n,s)=>{for(let[l,d]of Object.entries(a)){if(!Ts(d))continue;let c=Qf(n?.[l])||ep(d)?.placeholder||"";c&&r.push({row:{index:s,rowKey:l},text:c})}}),r):[]}function ci(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Cg(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 VO(e,o,t,r,a){let n=ci(e[o],t);return Qf(n)===a?null:Cg(e,o,t,Sg(r,n,a))}function qO(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var jt="data-sf-part",qve="data-sf-region-part",Yve="data-sf-part-row";function Xve(e,o){return`${e}[${o}]`}var Zve="data-sf-part-kind",$8="data-sf-part-style-owner",G8="data-sf-part-style-kind";function Jve(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute($8),r=o.getAttribute(G8);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var XO=2;function Es(e){return Sr(e).replace(/\s+/gu,"")}function op(e,o,t){let r=e[rp];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}=JO(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[ZO]){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))op(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))op(n,o[a],t)}}function kg(e){if(!e||typeof e!="object")return!1;let o=e;return o[ZO]?!1:!!o[rp]||o.type==="text"||o.type==="textarea"}function ap(e,o){let t=e[rp];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Tg(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function Qve(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Wl(a))continue;let s=n,l=[];op(s,o?.[a],l),!l.length&&s[YO]!==void 0&&op(s,s[YO],l);let d=ap(s,a);if(t?.(a)&&kg(s)){l.length&&r.push({key:a,label:d,texts:[],keyed:!0});continue}let c=new Set;for(let{row:p,text:h}of KO(s,o?.[a])){let I=Es(h);I.length<XO||(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=Es(p);h.length<XO||f.has(h)||(f.add(h),u.push(h))}u.length&&r.push({key:a,label:d,texts:u})}return r}function Pg(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var j8=z8;function QO(e,o){if(!o||typeof o!="object"||Wl(e)||HP(o))return null;let t=o[rp];return!t||!j8.includes(t.control)?null:t}function eke(e,o){let t=QO(e,o);return t!==null&&t.identifier!==!0}function e_(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=QO(r,a);if(!n)continue;let{text:s,hidden:l}=JO(o?.[r]);if(Pg({offPage:n.offPage===!0,hidden:!!l,panelOnly:us(a)}))continue;let d=s||n.placeholder||"",c=Sr(d).replace(/\s+/gu," ").trim();t.push({key:r,label:Tg(ap(a,r)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function Os(e,o){let t=ep(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?MO(t,o.index):null:wg(e)?.[o.rowKey]??null}function np(e,o,t){let r=e.node.props,{key:a,row:n}=Gt(e.propKey),s=n?VO(r,a,n,e.kind,o):jO(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as a_}from"efficient-easel/draw";import{isNodeList as K8}from"efficient-easel/data";var Eg=e=>String(e+1).padStart(2,"0"),ike=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Og="two-digit",o_=e=>e==="plain"?"plain":Og,sp=(e,o)=>e==="plain"?`${o+1}.`:Eg(o);var Ag="Contents",_g="Flex",t_="Text",V8="numberForm",bke="_contentsEntries",yke="_kickerNumber",n_="data-sf-kicker-number",q8=e=>a_(e).text.trim(),s_=e=>Uc(e?.anchor),r_=e=>String(e.props?.id??""),Y8=e=>!a_(e.props?.text).hidden&&!rs(e.props)&&!Jt(e.props);function fi(e){return Object.values(e.props??{}).filter(K8)}function l_(e){for(let o of fi(e))for(let t of o){if(Hl(t.props??{}))continue;if(t.type===t_&&Y8(t))return t;if(t.type===t_)continue;let r=l_(t);if(r)return r}}function i_(e){return fi(e).some(o=>o.some(t=>t&&!Hl(t.props??{})&&(t.type===Ag||i_(t))))}var d_=e=>e.type===_g&&gs(_g,e.props?.direction)==="row";function c_(e){return fi(e).some(o=>o.some(t=>t&&!Hl(t.props??{})&&(t.type===Ag||!d_(t)&&c_(t))))}function X8(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Hl(n.props??{}))continue;if(n.type===Ag){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(d_(n)&&c_(n)){let l={inRow:!0,open:null,waiting:[]};for(let d of fi(n))t(d,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===_g&&s_(n.props)&&s&&!i_(n)){s.push({box:n,kicker:l_(n)});continue}for(let l of fi(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function Z8(e){return e.map(o=>({label:o.kicker?Sr(q8(o.kicker.props?.text)):"",anchor:s_(o.box.props)}))}function Ske(e){let o=e?.length?X8(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=r_(a.contents);n&&t.set(n,Z8(a.sections));let s=o_(a.contents.props?.[V8]);a.sections.forEach((l,d)=>{let c=l.kicker?r_(l.kicker):"";c&&r.set(c,sp(s,d))})}return{entries:t,numbers:r}}var wke=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var e7=`[${n_}]`,o7=["bold","italic","underline","strike","link","sup","sub"],t7=["bullet","number"];function Fg(e,o){return e?[...o7,...o?t7:[]]:[]}function f_(e,o){let t=Q8(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}=Gt(a),c=o.components[n.type]?.fields?.[l],f=d?Os(c,d):c,u=Ts(f);if(!u)return null;let p=n.props??{};if(iI(p)!==null||!d&&rc(n.type,p,l)||n.type==="Text"&&l==="text"&&rs(p)||d&&!(Array.isArray(p[l])&&d.index<p[l].length))return null;let h=d?ci(p[l],d):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:h,offPage:$f(f),panelOnly:us(f)}}function lp(e,o){let t=f_(e,o);if(!t)return null;let{text:r,hidden:a}=sa(t.stored);if(!Pg({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=Jf(t.kind);return{partId:e,value:r,rules:Kd,multiline:n,skip:e7,offered:Fg(t.kind!=="plainText",n),write:s=>{let l=f_(e,o);l&&np({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function Bg(e,o,t){return e?.isConnected&&e.getAttribute(jt)===t?e:o?.querySelector(`[${jt}="${ip(t)}"]`)??null}function ip(e){return e.replace(/["\\]/g,"\\$&")}function p_(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Lg=null,Rg=new Set;function r7(){return Lg}function Dg(e){if(e!==Lg){Lg=e;for(let o of Rg)o()}}function a7(e){return Rg.add(e),()=>{Rg.delete(e)}}function u_(){return J8(a7,r7,()=>null)}function m_(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=kv(t.type);return!r||Zt(t.props)?null:{node:t,rows:r}}function d7(e,o){let t=m_(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=Av(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:n7(e.ownerId,Ps(t.rows,{index:e.index,rowKey:a}))}function dp(e,o){let t=d7(e,o);return t?lp(t,o):null}function h_(e,o){return dp(e,o)?.value}function x_(e,o){let t=dp(e,o);return t?(t.write(e.text),!0):!1}function I_(e,o){let t=m_(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=s7(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=l7(n,s,d);break}case"delete":l=i7(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 Q1,jsxs as Ci}from"react/jsx-runtime";import{Fragment as Wq,useEffect as zq,useId as $q,useMemo as eA,useRef as Gq,useState as ia}from"react";import{useScreenDocument as iA}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Ob}from"efficient-easel/draw/client";import jq from"efficient-easel/screen/components/SidePanelHead";import{jsx as Ce,Fragment as Ns,jsxs as nn}from"react/jsx-runtime";import{useEasel as K1,useRootFields as J9}from"efficient-easel/easel";import{Inspector as Q9}from"efficient-easel/fields";import{SettingsGroup as eq}from"efficient-easel/panel";import{useEffect as oq,useRef as tq,useState as Tb}from"react";import{jsx as Qa,Fragment as u7,jsxs as m7}from"react/jsx-runtime";import{useState as S_}from"react";import{SettingsDefaultReset as h7,SettingsField as x7}from"efficient-easel/panel";import{useEaselStrings as I7}from"efficient-easel/strings";import{AddIcon as g7}from"efficient-easel/icons";import{Button as b7}from"efficient-shell/ui";import{iconOf as y7,noGlyph as S7}from"efficient-easel/screen/lib/document/box-fields";import{jsx as cp,Fragment as c7,jsxs as g_}from"react/jsx-runtime";import{Button as b_,Dialog as f7}from"efficient-shell/ui";function p7(e){return Wo("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 y_({count:e,onCancel:o,onConfirm:t}){return g_(f7,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:g_(c7,{children:[cp(b_,{variant:"secondary",onClick:o,children:i("Cancel")}),cp(b_,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[cp("p",{children:p7(e)}),cp("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var w7=S7("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"),C7="Reset color",v7={selected:0,themes:[]};function k7(e){e(v7)}function w_({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=xo(e),[n,s]=S_(!1),l=I7(),[d,c]=S_(null),f=(w,T)=>{o({...a,themes:a.themes.map((y,b)=>b===w?T:y)})},u=qn(a).accent,p=new Set(a.themes.map(w=>w.brandInk).filter(Boolean)),h=Hv.filter(w=>!p.has(w)).map(w=>Uv(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 m7(u7,{children:[r?null:Qa(x7,{label:i(C7),icon:y7(w7),labelId:"sf-theme-reset",action:Qa(h7,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&Qa(y_,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),k7(o)}}),Qa("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((w,T)=>Qa(df,{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))}),Qa(b7,{variant:"secondary",leftIcon:Qa(g7,{}),onClick:C,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as fp}from"react/jsx-runtime";import{SettingsDefaultReset as T7,SettingsField as P7}from"efficient-easel/panel";import{SquareIcon as E7}from"efficient-easel/icons";var O7="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Ng="Corners";function C_({value:e,onChange:o,length:t}){let r=e===null;return fp(P7,{label:i(Ng),icon:fp(E7,{}),changed:!r,action:fp(T7,{words:le()?.panel,label:i(Ng),changed:!r,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(O7),children:fp(Zo,{min:t?.grid.min??Uo,max:t?.grid.max??Vr,step:t?.grid.step??1,value:e,...e===null?{}:{suffix:t?.unit??"px",...t?{units:t.units}:{}},placeholder:Uo,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(Ng),onChange:o})})}import{jsx as pi}from"react/jsx-runtime";import{SettingsDefaultReset as _7,SettingsField as A7}from"efficient-easel/panel";import{IconPicker as L7}from"efficient-shell/ui";import{ShadowIcon as R7}from"efficient-easel/icons";import{SHADOW_PREVIEW as F7}from"efficient-easel/screen/lib/document/shadow-values";var Mg={none:"None",soft:"Soft",lifted:"Lifted"},B7="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function v_({value:e,onChange:o}){let t=e===null,r=e??Rh;return pi(A7,{label:i("Card shadow"),icon:pi(R7,{}),value:i(Mg[r]),changed:!t,action:pi(_7,{words:le()?.panel,label:i("Card shadow"),changed:!t,detail:i(Mg[Rh]),onReset:()=>o(null)}),hint:i(B7),children:pi(L7,{label:i("Card shadow"),value:r,options:Jv.map(a=>({value:a,label:i(Mg[a]),icon:pi("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:F7[a]}})})),onChange:o})})}import{jsx as k_}from"react/jsx-runtime";import{ShadowIcon as D7}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as T_}from"efficient-easel/screen/lib/document/shadow-values";var N7="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 P_({value:e,onChange:o}){let t=e===null;return k_(Ul,{label:i("Shadow color"),icon:k_(D7,{}),value:e??"",inherited:T_,resetTo:T_,onChange:o,onReset:()=>o(null),hint:i(N7)})}import{jsx as up}from"react/jsx-runtime";import{SettingsDefaultReset as M7,SettingsField as H7}from"efficient-easel/panel";import{AlignSeparateIcon as U7}from"efficient-easel/icons";function pp(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var W7="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",z7="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.",Hg="Block gap",E_=bs.Grid;function O_(e,o){return pp(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:BI(o.gap)}})}function __({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?E_:l?Ql(t)??E_:t;return up(H7,{label:i(Hg),labelId:"sf-block-gap",icon:up(U7,{}),changed:!n,action:up(M7,{words:le()?.panel,label:i(Hg),changed:!n,detail:s??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(s===null?W7:z7),children:up(Zo,{min:(r?.grid??mt).min,max:(r?.grid??mt).max,step:(r?.grid??mt).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(Hg),onChange:o})})}import{jsx as mp}from"react/jsx-runtime";import{SettingsDefaultReset as $7,SettingsField as G7,SettingsSegmented as j7}from"efficient-easel/panel";import{HoverIcon as K7}from"efficient-easel/icons";var Ug={none:Un.none,lift:Un.lift,highlight:OC},V7="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 A_({value:e,onChange:o}){let t=e===null,r=e??Fh;return mp(G7,{label:i("Hover effect"),icon:mp(K7,{}),value:i(Ug[r]),changed:!t,action:mp($7,{words:le()?.panel,label:i("Hover effect"),changed:!t,detail:i(Ug[Fh]),onReset:()=>o(null)}),hint:i(V7),children:mp(j7,{options:Qv.map(a=>({id:a,label:i(Ug[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as hp}from"react/jsx-runtime";import{SettingsDefaultReset as q7,SettingsField as Y7,SettingsSegmented as X7}from"efficient-easel/panel";import{DropIcon as Z7}from"efficient-easel/icons";var Wg="Photography",L_={shot:"As shot",mono:"Black and white"},zg=[{grayscale:!1,label:L_.shot},{grayscale:!0,label:L_.mono}],J7="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function R_({value:e,onChange:o}){let t=e===null,r=e??!1;return hp(Y7,{label:i(Wg),icon:hp(Z7,{}),value:i(zg.find(a=>a.grayscale===r).label),changed:!t,action:hp(q7,{words:le()?.panel,label:i(Wg),changed:!t,detail:i(zg.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(J7),children:hp(X7,{options:zg.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(Wg),onChange:o})})}import{jsx as $g}from"react/jsx-runtime";import{useId as Q7}from"react";import{SettingsField as eV,SettingsSwitch as oV}from"efficient-easel/panel";import{ShareIcon as tV}from"efficient-easel/icons";var rV="Share button",aV="On every blog post.";function F_({value:e,onChange:o}){let t=Q7();return $g(eV,{label:i(rV),labelId:t,icon:$g(tV,{}),action:$g(oV,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(aV)})}import{usePreviewDevice as Pb}from"efficient-easel/draw/client";import{jsx as xp}from"react/jsx-runtime";import{SettingsDefaultReset as nV,SettingsField as sV}from"efficient-easel/panel";import{PaddingXIcon as lV}from"efficient-easel/icons";var Gg="Side space",B_=Go.default,iV="The room left at the left and right edge of every page.";function D_(e,o){return pp(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:B_,bounds:Go},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:Sf(o.gutter,o.gutterUnit),bounds:Ht}})}function N_({value:e,onChange:o,unsetPx:t=B_,bounds:r=Go,length:a,restsOn:n=t}){let s=e===null;return xp(sV,{label:i(Gg),labelId:"sf-side-space",icon:xp(lV,{}),changed:!s,action:xp(nV,{words:le()?.panel,label:i(Gg),changed:!s,detail:`${t}px`,onReset:()=>o(null)}),hint:i(iV),children:xp(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(Gg),onChange:o})})}import{jsx as jg}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as pPe,SettingsBackgroundWidth as dV,SettingsContentWidth as cV}from"efficient-easel/panel";var fV="Background width",pV="Content width";var Ip=e=>i(Ka[e==="content"?"page":"full"]),M_="The width of every section's background.",H_="The width of every section's content.";function U_({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return jg(dV,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(fV),full:Ip("full"),content:Ip("content")},resetWords:le()?.panel})}function W_({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(pV),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(cV,{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:Ip("full"),content:Ip("content")},resetWords:le()?.panel})}import{jsx as P1}from"react/jsx-runtime";import{TextStyleItem as S9,TextStylesGroup as w9}from"efficient-easel/text-styles";import{jsx as h9}from"react/jsx-runtime";import{useState as x9}from"react";import{TextStylesList as I9}from"efficient-easel/text-styles";import{usePreviewDevice as g9}from"efficient-easel/draw/client";import{defaultTextStyles as u1,textStyleCaseCss as d9}from"efficient-easel/text-styles/model";import{resolveViewValue as m1}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as z_,VIEW_TABLET_MIN as $_}from"efficient-easel/draw";var gp=.02,G_=`(min-width: ${Gr}px) and (max-width: ${z_-gp}px)`,ui=`(max-width: ${Gr-gp}px)`,bp=`(min-width: ${$_}px) and (max-width: ${z_-gp}px)`,yp=`(max-width: ${$_-gp}px)`;import{textStyleCaseCss as uV,textStyleCaseOfCss as mV,viewKeyAt as Z_}from"efficient-easel/draw";function _s(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function As(e,o){return _s(e?.[o])??{}}function Sp(e,o,t){let r=As(e,o);return _s(j(r,t))??{}}function wp(e,o,t,r){let{[t]:a,...n}=As(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...d}=e;return Object.keys(s).length?{...d,[o]:s}:d}import{isLengthUnit as Zg}from"efficient-easel/screen/lib/content/length-units";var xi="_partStyles",Jg="data-sf-part-styled",Ls="data-sf-text-style",hV=/^(heading|body)-[1-7]$/;function tn(e){return typeof e=="string"&&hV.test(e)}var Cp={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function xV(e){if(!e)return null;for(let[o,t]of Object.entries(Cp))if(t===e)return o;return null}function Qg(e){if(tn(e.textStyle))return e.textStyle;let o=yr(e.role);return o?Cp[o]:void 0}var IV=[400,500,600,700],hi=["left","center","right","justify"],Kg=5,Vg=1e3,gV=-5,bV=10,eb=0,ob=64,tb=2,j_={size:{min:Kg,max:Vg,step:1},sizeTablet:{min:Kg,max:Vg,step:1},sizePhone:{min:Kg,max:Vg,step:1},padding:{min:eb,max:ob,step:tb}},yV=.05,SV=.01,wV=["line","letter"],CV=.5,vV=2.5,kV=-1,TV=1,PV=0,EV=400,OV=[...new Set(Object.values(Hn))];function J_(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 DPe(e){return As(e,xi)}function Ii(e,o){return Sp(e,xi,o)}function Q_(e,o,t){return wp(e,xi,o,_V(t).length?t:null)}function _V(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function AV(e){return wV.includes(e)}var mi=(e,o,t)=>Math.min(t,Math.max(o,e)),LV=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function qg(e){let o=Z_("sizeUnit",e),t=LV.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var It={size:qg("desktop"),sizeTablet:qg("tablet"),sizePhone:qg("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},e1=Object.values(It);function ir(e,o){return ve(e[It[o]])}function RV(e,o,t={}){if(e1.includes(e))return Zg(o)&&o!=="px"?o:null;if($e(It,e)&&ir(t,e)!=="px"){let r=on(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(AV(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:mi(r,gV,bV)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?on(mi(r,CV,vV),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?on(mi(r,kV,TV),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:mi(r,PV,EV)}if($e(j_,e)){let{min:r,max:a}=j_[e],n=Math.round(Number(o));return Number.isFinite(n)?mi(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?yr(o)?o:null:e==="sizeToken"?rb(o)?o:null:e==="textStyle"?tn(o)?o:null:e==="alignPhone"||e==="alignTablet"?hi.includes(o)?o:null:o}var FV=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function Rs(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of FV){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!hi.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!hi.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!hi.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!tn(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!rb(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!yr(e.fontRole)&&t("fontRole");for(let r of e1)e[r]!==void 0&&!Zg(e[r])&&t(r);return o??e}function rb(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"&&OV.includes(d);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||BV(n,t))}function BV(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 ab(e){return e?.pxPhone&&rb(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function o1({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 DV=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function NV(e){let o=[];for(let[t,r]of DV)t===e?o.push(r):r===e&&o.push(t);return o}function rn(e,o,t,r){let a={...Ii(e,o)},n=r==null?null:RV(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of NV(t))delete a[s]}return Q_(e,o,a)}function t1(e,o){return Q_(e,o,{})}function MV(e){return mV(e)??"none"}function HV(e){return uV(e)??""}var K_={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 UV(e,o){return yr(e.role)||(o?.blockDrawsStyle?null:xV(e.textStyle))}function r1(e,o){return e==="Text"&&o==="text"}var WV={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 zV(e){let o=Hn[e],t=j(WV,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function gi(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=on($V+e.line*yV,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=on(e.letter*SV,4)),o}var $V=1,en="--sf-part-para";function GV(e){e=Rs(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=Ue(e.sizePhone,ir(e,"sizePhone"));else{let r=ab(e.sizeToken);if(r)o.fontSize=o1(r);else{let a=kp(e);a!==void 0&&(o.fontSize=Ue(a,ir(e,"sizeTablet")))}}let t=e.alignPhone??vp(e);return t&&(o.textAlign=t),o}function vp(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function kp(e){let o=e.sizeTablet!==void 0&&ir(e,"sizeTablet")!==ir(e,"size")?e.sizeTablet:Lt("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function jV(e){let o=Rs(e),t={},r=kp(o);r!==void 0&&(t.fontSize=Ue(r,ir(o,"sizeTablet")));let a=vp(o);return a&&(t.textAlign=a),t}function a1(e,o){if(o==="desktop")return;let t=Rs(e);return(o==="mobile"?vp(t):void 0)??t.align}function KV(e,o){if(o==="desktop")return e;let t=Rs(e),r=kp(t),a=vp(t);if(o==="tablet"){let l=e;return r!==void 0&&(l={...l,size:r,sizeUnit:t[It.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[It.sizePhone]};else{let l=ab(t.sizeToken);l?n={...n,size:void 0,sizeToken:l}:r!==void 0&&(n={...n,size:r,sizeUnit:t[It.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function nb(e,o,t){return lb(KV(e,o),Tp,t)}function sb(e){return Z_("size",e)}function n1(e,o){if(o==="desktop")return null;let t=Rs(e);if(o==="mobile"){if(ab(t.sizeToken))return null;let r=kp(t);if(r!==void 0)return{px:r,view:"tablet"}}return typeof t.size=="number"&&t.size>0?{px:t.size,view:"desktop"}:null}function s1(e,o){let t=sb(o);if(!$e(e,t))return e;let r={...e};return delete r[t],r}function NPe(e,o,t){let r=nb(s1(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function lb(e,o,t){e=Rs(e);let r=UV(e,t),a=gi(e),n=e.size?Ue(e.size,ir(e,"size")):e.sizeToken?o1(e.sizeToken):r?zV(r):"";return{fontFamily:e.font?XV(e.font):e.fontRole?`var(${K_[e.fontRole]})`:r?`var(${K_[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`:"",[en]:e.paragraphSpacing?Ue(e.paragraphSpacing,ir(e,"paragraphSpacing")):"",textTransform:HV(e.case),textAlign:e.align??"",paddingTop:V_(e.padding,ir(e,"padding")),paddingBottom:V_(e.padding,ir(e,"padding")),color:VV(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var VV=e=>ds(e),V_=(e,o)=>e===void 0?"":Ue(e,o),on=(e,o)=>Number(e.toFixed(o));function MPe(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:qV(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?on(r/t,3):1.2,letterEm:Number.isFinite(a)?on(a/t,4):0,align:YV(e.textAlign),case:MV(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function qV(e){return Number.isFinite(e)?IV.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function YV(e){for(let o of hi)if(o===e)return o;return e==="end"?"right":"left"}function HPe(e,o){let t=q_(e);if(!t)return"";for(let r of $r)if(q_(o(r.cssVar))===t)return r.key;return""}var q_=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function XV(e){let o=Mn(e);return o?`var(${o.cssVar})`:""}function UPe(e,o,t,r){return!o||vg(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function ZV(e,o){return _s(j(e,o))??{}}function WPe(e,o,t=()=>Tp,r=l=>l,a=e9,n="desktop",s=()=>!1){let l=0;for(let{element:d,partId:c}of e){let f=vg(c)?.propKey;if(!f)continue;let u=ZV(o,r(f)),p=nb(u,n,{blockDrawsStyle:s(f)});tn(u.textStyle)?d.setAttribute?.(Ls,u.textStyle):d.removeAttribute?.(Ls);let h=Yg.some(g=>d.style[g]),I=!1;for(let[g,C]of Object.entries(p))r9(d,g,C),C&&(I=!0);if(h||Yg.some(g=>p[g]))for(let g of JV(d,a))for(let C of Yg)g.style[C]=p[C]??"";I&&(l+=1)}return l}function JV(e,o){let t=Es(e.textContent??""),r=[],a=e;for(let n=0;n<QV&&o(a);n+=1){let s=a.parentElement;if(!s||Es(s.textContent??"")!==t)break;r.push(s),a=s}return r}var QV=8;function e9(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Tp={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function o9(e){if(!e||typeof e!="object")return null;let o={};tn(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=It[t];o[t]!==void 0&&Zg(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function t9(e,o){let t=o9(e);if(!t)return{};let r=nb(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function l1(e){return tn(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function zPe(e,o,t){if(!e||typeof e!="object")return{};let r=tc(e.role,o,Hn)??{},a=o.sized?t9(s1(e,t),t):{};return{...r,...a}}function $Pe(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function r9(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===en&&(t?a.setAttribute?.(Y_,""):a.removeAttribute?.(Y_))}var Y_="data-sf-part-para",a9=Object.keys(lb({},Tp)),Xg=new Set(["color","overflowWrap",en,"fontStyle"]),Yg=a9.filter(e=>!Xg.has(e));function i1(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=Ps(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(!n9(u))continue;let p=X_(t,u,_s(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=_s(o[p])??{};return X_(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(Ps(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 X_(e,o,t,r,a){let n=lb(t,Tp,{blockDrawsStyle:r}),s=jV(t),l=GV(t),d=tn(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!d&&!a?null:{stamp:s9(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...d?{textStyle:d}:{},...a?{motion:a}:{}}}function n9(e){return e.startsWith("@")}function ib(e,o){return e?.kindRules.get(o)??null}function s9(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function db(e){return e?{tablet:G_,phone:ui}:{tablet:bp,phone:yp}}function d1(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=db(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])=>`${l9(T)}: ${y}`).join("; "),p=`[${Jg}="${d}"]`,h=f.filter(([w])=>!Xg.has(w)),I=f.filter(([w])=>Xg.has(w));h.length&&a.push(`${p}, *:has(> ${p}) { ${u(h)} }`),I.length&&a.push(`${p} { ${u(I)} }`),c[en]&&(a.push(`*:has(> ${p}) { ${en}: ${c[en]} }`),a.push(...Pp(p,`*:has(> ${p})`)));let g=Object.entries(l.tablet??{}).filter(([,w])=>w!=="");g.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(g)} } }`);let C=Object.entries(l.phone??{}).filter(([,w])=>w!=="");C.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(C)} } }`)};for(let l of e.rules.values())s(l);for(let l of e.kindRules.values())s(l);return a.join(`
3
+ `)}function Pp(e,o){let t=`var(${en})`,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 l9=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function c1(e,o){if(!e)return null;let t=Es(o),r=e.rules.get(t);if(r)return r;if(t.length<i9||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 i9=8;function f1(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}var cb=e=>e==="sentence"?"none":void 0,h1=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],Fs=["desktop","tablet","phone"],an=(e,o)=>we(e,o);function ub(e,o,t,r=zn()){return m1("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var c9=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function fb(e){for(let[o,t,r]of c9)for(let a of Fs)if(e===an(o,a))return{key:we(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function dr(e){let o={};for(let t of h1)e[t]!==void 0&&(o[t]=e[t]);return o}function mb(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=h1.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function x1(e){let o=e.fonts,t=e.sizes,r=e.typography,a=ek(e.compression),n={"heading-1":{font:Se(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:cb(r.case),largestSize:q(r.maxPx)},"heading-2":{font:Se(o.heading2),size:q(t.headingMedium),weight:q(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:cb(r.case2)},"heading-3":{font:Se(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:cb(r.case3)},"body-1":{font:Se(o.body),size:q(t.body)},"body-5":{font:Se(o.label),size:q(t.label)}};return u1().map(({id:s,kind:l,name:d})=>({id:s,kind:l,name:d,values:dr(n[s]??{})}))}function hb(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=>mb({...o,values:dr(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function r0e(e){return hb(e)??[]}function I1(e){return hb(e)??u1().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Br(e,o){let t=x1(o),r=hb(e);return r?r.map(a=>{let n={...pb(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:dr({...n,...a.values})}}):t}var pb=(e,o)=>e.find(t=>t.id===o)?.values??{},p1=["heading-1","heading-2","heading-3"];function g1({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=x1(o),l=I1(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=f9([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=>fb(P).spacing==="letter";y.sort((P,H)=>Number(b(P))-Number(b(H)));for(let P of y){let{key:H,view:E,spacing:U}=fb(P),O=H,D=w[P];if(D===void 0){delete g[O],pb(s,p.id)[O]!==void 0&&(c.push([p.id,O]),C.add(O));continue}if(C.delete(O),U==="line")g[O]=Bs(D/100,3);else if(U==="letter"){let v={...d.find(F=>F.id===p.id)?.values??{}};for(let F of y)w[F]===void 0&&delete v[fb(F).key];let _=dr({...v,...g}),A=ub(_,a({...p,values:_}),E);g[O]=A?Bs(D/A,4):0}else g[O]=D}return mb({id:p.id,kind:p.kind,name:p.name,values:dr(g)},C)}),u=o.compression;if(c.some(([p,h])=>(h==="lineHeight"||h==="letterSpacing")&&p1.includes(p))&&Aa(u)!=="normal"){for(let p of p1){let h=f.find(g=>g.id===p);if(!h)continue;let I={...h.values};for(let g of["lineHeight","letterSpacing"])c.some(([C,w])=>C===p&&w===g)||I[g]===void 0&&!(h.auto??[]).includes(g)&&(I[g]=pb(s,p)[g]);h.values=dr(I)}u="normal"}return{saved:f,old:{...o,compression:u}}}function b1(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Aa(e.old.compression)),t}var Bs=(e,o)=>Number(e.toFixed(o)),y1=(e,o)=>Fs.indexOf(e)<Fs.indexOf(o)?o:e;function S1(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of Fs){let l=we("lineHeight",s),d=r.values[l],c=r.values[we("letterSpacing",s)];delete a[l],d!==void 0&&(a[an("lineSpacing",s)]=Bs(d*100,1));let f=y1(s,t);c!==void 0&&(a[an("letterSpacing",s)]=Bs(c*ub(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function f9(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let c of Fs)delete n[an("lineSpacing",c)],delete n[an("letterSpacing",c)];let s={id:r.id,kind:r.kind,name:r.name,values:dr(n)},l={...s.values},d=o({...s,values:{...s.values}});for(let c of Fs){let f=a[an("lineSpacing",c)],u=a[an("letterSpacing",c)];if(typeof f=="number"&&(l[we("lineHeight",c)]=Bs(f/100,3)),typeof u=="number"){let p=ub(s.values,d,y1(c,t));l[we("letterSpacing",c)]=p?Bs(u/p,4):0}}return{...s,values:dr(l)}})}function a0e(e){let o={fonts:bl({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:Lh({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:Aa(e.heading_compression),typography:tk(e)},t=e.text_styles??null,r=Array.isArray(t)?xb(Br(t,o),o):o;return{fonts:bl(r.fonts),sizes:Lh(r.sizes),compression:Aa(r.compression),typography:r.typography,textStyles:t}}function xb(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 n0e(e){let o=[];for(let t of e){let r=t.values,a=`.${f1(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=ds(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=d9(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(...Pp(`:is(${s})`,`*:has(> ${n})`))),o.push(...p9(t,s,a,n))}return o.join(`
4
+ `)}function p9(e,o,t,r){let a=e.values,n=Lt("textSize",a.size,a.sizeTablet,a.sizePhone),s=Lt("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=Lt("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),d=Lt("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),c=Lt("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=m1("textSize",a.size,a.sizeTablet,a.sizePhone,zn()),u=u9[e.id],p=[];for(let[h,I]of[["tablet",bp],["phone",yp]]){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(...Pp(`: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 u9={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function s0e(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function w1(e){return e?Cp[e]:void 0}function Ib(e){let o=gi(e);return dr({font:e.font,color:e.color===void 0?void 0:rt(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function C1(e){return Object.keys(Ib(e)).length>0}function v1({saved:e,old:o,styleId:t,values:r}){let a=I1(e);return{saved:m9(a,t,r),old:o}}function m9(e,o,t){return e.map(r=>r.id===o?mb({...r,values:dr({...r.values,...t})},r.auto):r)}var k1=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],b9=["size","lineSpacing","letterSpacing","letterCase"],y9=500,gb=$r.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function T1({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:d=!1,withoutSize:c=!1}){let f=g9(),[u,p]=x9(null),h=Br(e,o),I=dc(f),g=S1(h,a,I);return h9(I9,{styles:g,onChange:C=>n(g1({saved:e,old:o,cur:g,next:C,sizeOf:a,panelView:I})),fonts:gb,colours:t,colourNameOf:r,settings:c?k1.filter(C=>C!=="size"):k1,auto:b9,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=y9),T}})}var E1=["font","size","weight","emphasis"],C9=500;function v9({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 k9(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 O1(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=v9(e);return P1(w9,{label:i("Emphasis"),children:P1(S9,{style:s,fonts:gb,settings:n?E1.filter(l=>l!=="size"):E1,auto:["size"],fallback:()=>({weight:o??C9}),open:t,onOpenChange:r,onChange:l=>k9(s,l).forEach(a)})})}import{viewKeyAt as F1}from"efficient-easel/draw";import{shownUnitAt as A9,unitKeyOnWrite as L9}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as T9,rowUnits as P9,unitPickPatch as E9}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as O9}from"efficient-easel/draw";var _9=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],Ep={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:Xv,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:mt,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:mt,tier:"mobile"}};function Op(e){return{number:Ep[e].number,unit:Dv[`${e}Unit`]}}function _1(e,o,t){let r=ve(t),{number:a,unit:n}=Op(e);return{[a]:o,[n]:o===null||r==="px"?null:r}}function _p(e,o,t,r){let{kind:a,grid:n,tier:s}=Ep[e],l=ve(t),d=ve(r);return l===d?o:T9(o,l,d,s,{kind:a},n)}function A1(e,o,t,r){let{number:a,unit:n}=Op(e),s=E9({[a]:o},l=>_p(e,l,t,r),n,ve(r),"px");return{[a]:s[a],[n]:s[n]??null}}function L1(e,o){let{kind:t,grid:r}=Ep[e];return Bv(t,ve(o),r)}function R1(e){return P9({kind:Ep[e].kind},Va)}function bb(e,o){let t=O9(e,o);if(!_9.includes(t))throw new Error(`no site length row ${t}`);return t}function bi(e,o,t,r,a){let{siteLengthUnits:n,setSiteLengthUnits:s}=ue(),l=`${e}Unit`,d=n[l],c=A9({n:a?.figure??null,u:a?.unit??null,[F1("n","mobile")]:o,[F1("u","mobile")]:d??null},{n:"n"},"u","mobile"),f=I=>s({[l]:I==="px"?null:I}),u=I=>{t(I);let g=L9(l,d,c,"px",I===null);l in g&&f(g[l]==null?null:ve(g[l])),r(_1(e,I,c),I===null)},p=I=>{let g=ve(I);if(g===c||(f(g),o===null))return;let C=A1(e,o,c,g);t(C[Op(e).number]),r(C,!0)},h=a?a.unit===c?a.figure:_p(e,a.figure,a.unit,c):null;return{length:{unit:c,grid:L1(e,c),units:{options:R1(e),onChange:p,label:i("Unit")}},write:u,rest:h,shown:I=>_p(e,I,"px",c)}}import{EmptyState as rq,SliderGroup as aq,Tabs as nq,Tooltip as KEe,tabButtonId as sq,tabPanelId as lq}from"efficient-shell/ui";import{ContrastIcon as iq,SettingsIcon as dq,TypeIcon as cq}from"efficient-easel/icons";function B1(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 Cb}from"react/jsx-runtime";import{ListIcon as j9,PaddingTopIcon as K9}from"efficient-easel/icons";import{jsx as Ap}from"react/jsx-runtime";import{SettingsDefaultReset as R9,SettingsField as F9,SettingsSegmented as B9}from"efficient-easel/panel";import{WidthIcon as D9}from"efficient-easel/icons";function D1({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 Ap(F9,{label:c,labelId:a,icon:Ap(D9,{}),value:l?n:void 0,changed:!l,action:Ap(R9,{words:le()?.panel,label:c,changed:!l,onReset:()=>t(void 0)}),hint:s,children:Ap(B9,{options:[{label:i(Ka.full),id:"full"},{label:i(Ka.page),id:"content"}],value:d,ariaLabel:c,onChange:t})})}import{HEADER_TYPE as yb,FOOTER_TYPE as N9}from"efficient-easel/draw";var M9=new Set(["Hero","HeroSingle","IntroBleed"]),N1={min:56,max:140,default:88},j0e={min:0,max:120,step:2,default:32},K0e=`var(--sf-header-h, ${N1.default}px)`,H9="--sf-header-set-h",V0e="--sf-header-h",q0e=`var(${H9}, ${N1.default}px)`,Y0e="sf-header-clearance",X0e="sf-sticky-underheader";function U9(e){return e?.find(o=>o?.type&&o.type!==yb)??null}function M1(e){let o=U9(e)?.type;return!o||!M9.has(o)}function Z0e(e){return!M1(e)}function J0e(e){return!!e?.some(o=>o?.type===yb)}function Q0e(e){return!e||e.length===0?!1:!e.some(o=>o?.type===yb||o?.type===N9)}var W9=["auto","shared","own"],Sb="auto",z9="topSpace",eEe="data-top-space";function $9(e){return W9.includes(e)?e:Sb}function G9(e,o){let t=$9(e?.props?.[z9]);return t==="own"?!0:t==="shared"?!1:M1(o)}function oEe(e,o){return G9(e,o)?"own":null}function V9(){return{type:"custom",render:({value:e,onChange:o})=>Cb(D1,{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 q9=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],pEe={pageBackground:BO(),topSpace:xt("Top space",Cb(K9,{}),q9,Sb),widthChoice:V9()},yi=["pageBackground","topSpace","widthChoice"],Y9="Record type",wb=new Map,H1=-1;function X9(e){H1!==ux()&&(wb.clear(),H1=ux());let o=px(),t=o.some(a=>a.key===e)?"":e,r=wb.get(t);return r||(r=xt(Y9,Cb(j9,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Zr),wb.set(t,r)),r}var U1=new WeakMap;function uEe(e,o){if(!Fl()||px().length<2||Rc in e)return e;let t=X9(Rl(o)),r=U1.get(e);if(r&&r.row===t)return r.fields;let a={[Rc]:t,...e};return U1.set(e,{row:t,fields:a}),a}import{previewFrame as fq}from"efficient-easel/screen/lib/document/preview-dom";var W1="background";function z1(e){let o=Vo(qn(e));return cs({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 $1(e){return z1(e).filter(o=>o.key!==W1)}function G1(e){let o=z1(e).filter(t=>t.key===W1);return t=>{let r=rt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as Z9}from"efficient-easel/easel";function Lp({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Z9(E=>E),{fonts:a,setFonts:n,sizes:s,setSizes:l,headingCompression:d,setHeadingCompression:c,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:h}=ue(),I=t.data,g=I.root?.props??{},C=e?bl(g.fonts):a,w=e?qv:s,T=e?Aa(g.headingCompression):d,y=e?ok(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,U)=>{let O=xb(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(b1(E,b),U)},writeRoot:H}}import{pictureShadowColor as pq}from"efficient-easel/screen/lib/document/shadow-values";var kb="sf-site-styles",uq="sf-site-styles-tabpanel",V1="text",Ms="basics",j1="this-page-group",Ds=[{id:Ms,label:"Basics",icon:Ce(dq,{})},{id:"theme",label:"Theme",icon:Ce(iq,{})},{id:"text",label:"Text",icon:Ce(cq,{})}];function mq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=K1(c=>c),{theme:a,setTheme:n}=ue(),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 Ce(w_,{value:e?l.theme:a,onChange:d})}function hq({themeFromDocument:e,persist:o}){let[t,r]=Tb(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=ue(),d=Lp({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??bq(xq[E.id]??"body")??Iq[E.kind],C=E=>d.write(E),w=$1(a),T=G1(a),y=E=>{let U={...p,accent:E};e?u({fonts:U}):n(U),o({accent_font:E})},b=E=>{s({...h,accent:E}),o({accent_size_px:E})},P=E=>{let U={...I,weightStrong:E};e?u({headingTypography:U}):l(U),o({heading_weight_strong:E})},H=E=>{let U={...I,italicStrong:E};e?u({headingTypography:U}):l(U),o({accent_italic:E})};return nn(Ns,{children:[Ce(T1,{saved:f,old:c,colours:w,colourNameOf:T,sizeOf:g,onChange:C,openId:t===vb?null:t,onOpenChange:r,withoutSize:e}),Ce(O1,{font:p.accent,size:h.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===vb,onOpenChange:E=>r(E?vb: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 vb="accent",xq={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},Iq={heading:32,body:14},gq={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 bq(e){if(typeof document>"u")return null;let o=(fq()?.contentDocument??document).querySelector(gq[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function yq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=K1(p=>p),{cornerRadiusPx:a,setCornerRadiusPx:n}=ue(),s=t.data,l=s.root?.props??{},d=l.cornerRadiusPx===void 0?Zv[Yv(l.cornerStyle)]:Qt(l.cornerRadiusPx),c=e?d:a,f=bi("cornerRadius",a,n,o),u=p=>r({type:"replaceRoot",root:{...s.root,props:{...l,...p}},recordHistory:!0});return Ce(C_,{value:c,onChange:p=>{e?(u({cornerRadiusPx:p}),o({corner_radius_px:p})):f.write(p)},...e?{}:{length:f.length}})}function Sq({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=ue(),l=Pb(),d=bi("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 nn(Ns,{children:[Ce(U_,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:u,onReset:()=>u(null),hint:M_}),Ce(W_,{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:H_,length:d.length})]})}function wq({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a,siteLengthUnits:n}=ue(),s=D_(Pb(),{gutter:o,phone:t,gutterUnit:n.siteGutterUnit}),l=s?.key==="site_gutter_phone",d=bi(bb("siteGutter",l?"mobile":"desktop"),s?.value??null,l?a:r,e);return s?Ce(N_,{value:s.value,onChange:d.write,unsetPx:s.unsetPx,restsOn:d.shown(s.unsetPx),bounds:s.bounds,length:d.length}):null}function Cq({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a,siteLengthUnits:n}=ue(),s=O_(Pb(),{gap:o,phone:t}),l=s?.key==="block_gap_phone",d=s?.followsPx==null?null:{figure:s.followsPx,unit:ve(n.blockGapUnit)},c=bi(bb("blockGap",l?"mobile":"desktop"),s?.value??null,l?a:r,e,d);return s?Ce(__,{value:s.value,onChange:c.write,followsPx:c.rest,followsUnit:c.length.unit,length:c.length}):null}function vq({persist:e}){return nn(Ns,{children:[Ce(Sq,{persist:e}),Ce(wq,{persist:e}),Ce(Cq,{persist:e})]})}function kq(e){return{card_shadow:e}}function Tq(e){return e===null?{shadow_color:null}:{shadow_color:pq(e)}}function Pq(e){return{hover_effect:e}}function Eq({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=ue();return nn(Ns,{children:[Ce(v_,{value:o,onChange:l=>{t(l),e(kq(l),!0)}}),Ce(P_,{value:r,onChange:l=>{a(l),e(Tq(l),l===null)}}),Ce(A_,{value:n,onChange:l=>{s(l),e(Pq(l),!0)}})]})}function Oq(e){return{photography_grayscale:e}}function _q({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=ue();return Ce(R_,{value:o,onChange:r=>{t(r),e(Oq(r),!0)}})}function Aq({persist:e}){return Ce(Ns,{children:Ce(_q,{persist:e})})}function Lq(e){return{share_button_on_posts:e}}function Rq({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=ue();return Ce(F_,{value:o,onChange:r=>{t(r),e(Lq(r),!0)}})}function Hs(){let{websiteName:e}=ue();return e?.trim()||Rk}function Rp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:d}){let{persist:c}=ms({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let w=B1(C);w&&r?.(w.msg,w.tone)}}),[f,u]=Tb(s??Ds[0].id),p=a!==void 0,h=p?a:f,I=p?n??(()=>{}):u,g=Ds.find(C=>C.id===h)??Ds[0];return nn(aq,{children:[Ce(Dq,{activeId:g.id,onSelect:I}),nn("div",{id:lq(kb,g.id),className:uq,role:"tabpanel","aria-labelledby":sq(kb,g.id),children:[h===Ms&&nn(Ns,{children:[Ce(yq,{themeFromDocument:e,persist:c}),!e&&Ce(Eq,{persist:c}),!e&&Ce(vq,{persist:c}),!e&&Ce(Aq,{persist:c}),!e&&Ce(Rq,{persist:c}),Ce(Fq,{reveal:l,onRevealed:d})]}),h==="theme"&&Ce(mq,{themeFromDocument:e,persist:c}),h==="text"&&Ce(hq,{themeFromDocument:e,persist:c})]})]})}function Fq({reveal:e,onRevealed:o}){let[t,r]=Tb(!0),a=tq(o);return a.current=o,oq(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(j1)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Ce(eq,{title:i("This page"),open:t,onToggle:r,id:j1,children:Ce(Bq,{})})}function Bq(){let{fields:e,values:o,readOnly:t,onChange:r}=J9(),a=Object.fromEntries(yi.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Ce(rq,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):Ce(Q9,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function Dq({activeId:e,onSelect:o}){return Ce("div",{className:"es-insp-tabs",children:Ce(nq,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:kb,value:e,onChange:o,items:Ds.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as Kq}from"efficient-easel/chrome";import{Button as oA,Dialog as Vq,FormField as qq,Input as tA,PopupMenu as Yq,PopupMenuItem as rA,toast as aA}from"efficient-shell/ui";import{LayersTree as Xq,TreeGroupLabel as Zq,TreeRow as nA,TreeRowAction as Np}from"efficient-easel/tree";import{AddIcon as Jq,DuplicateIcon as Qq,PageIcon as eY,SettingsIcon as oY}from"efficient-easel/icons";import{PagesIcon as tY}from"efficient-easel/rail";import{useEaselHost as rY}from"efficient-easel/screen/lib/host";import{useEaselSession as dA}from"efficient-easel/screen/lib/session-context";import{useCallback as Fp,useEffect as Nq,useSyncExternalStore as Mq}from"react";import{useScreenDocument as Z1}from"efficient-easel/screen/components/ScreenDocumentContext";var q1=new WeakMap;function Si(e){let o=q1.get(e);return o||(o={rows:null,loading:null,listeners:new Set},q1.set(e,o)),o}function Eb(e,o){e.rows=o;for(let t of e.listeners)t()}var Bp=new Set;function Dp(e,o){o?Bp.add(e):Bp.delete(e)}function Y1(e){let o=Si(e),t=e.listPages().then(r=>Eb(o,Bp.size?r.filter(a=>!Bp.has(a.id)):r),()=>Eb(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var X1=()=>null,Hq=()=>()=>{};function wi(){let{adapter:e,ready:o}=Z1(),t=Fp(l=>{let{listeners:d}=Si(e);return d.add(l),()=>d.delete(l)},[e]),r=Fp(()=>Si(e).rows,[e]),a=Mq(o?t:Hq,o?r:X1,X1);Nq(()=>{if(!o)return;let l=Si(e);l.rows===null&&!l.loading&&Y1(e)},[e,o]);let n=Fp(()=>o?Y1(e):Promise.resolve(),[e,o]),s=Fp(l=>Eb(Si(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function Uq(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function J1(){let{currentSlug:e}=Z1(),{rows:o}=wi();return Uq(o,e)}import{canDuplicatePage as aY,DuplicatePageDialog as nY,uniqueSlug as sA}from"efficient-easel/page-copy";var lA="sf-editor-pages-collapsed-groups";function sY(){let e=dA(),{siteId:o,templateId:t}=iA(),r=to(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function cA({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=dA().chrome?.pageRows,n=rY(),{adapter:s,capabilities:l,ready:d,currentSlug:c}=iA(),f=Hs(),{rows:u,reload:p,setRows:h,getRows:I}=wi(),[g,C]=ia(""),[w,T]=ia(!1),[y,b]=ia(null),[P,H]=ia(!1),[E,U]=ia(""),O=$q(),D=sY(),[v,_]=ia(null),[A,F]=ia(()=>{if(typeof window>"u")return new Set;try{let M=window.localStorage.getItem(lA);return new Set(M?JSON.parse(M):[])}catch{return new Set}});zq(()=>{try{window.localStorage.setItem(lA,JSON.stringify([...A]))}catch{}},[A]);let z=M=>F(Re=>{let ye=new Set(Re);return ye.has(M)?ye.delete(M):ye.add(M),ye}),$=eA(()=>NT(u??[]),[u]),X=g.trim().toLowerCase(),Q=M=>!X||M.toLowerCase().includes(X),Fe=M=>X?!0:!A.has(M),Oe=eA(()=>new Set((u??[]).map(M=>M.slug)),[u]),ze=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}U(""),b(null),H(!0)},Ke=async()=>{let M=E.trim();if(!(!M||!d||w||!s.createPage)){T(!0),b(null);try{let Re=await s.createPage({slug:sA(M,Oe),title:M,layout:{}});await p(),H(!1),U(""),e(Re.slug)}catch{b(i("Couldn\u2019t add the page \u2014 please retry."))}finally{T(!1)}}},ge=l.hasSiteSettings&&!!s.createPage,Te=async()=>{if(!(!d||w||!s.createPage)){T(!0),b(null);try{let M=await s.createPage(M0(i("New popup"),Oe));await p(),e(M.slug)}catch{b(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{T(!1)}}},_e=Gq(null),[Ne,ao]=ia(null),bo=()=>{if(!ge)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)})},ne=M=>{let Re=u??[],ye=s.deletePage;if(!d||w||!ye||Re.length<=1)return;let po=Re.findIndex(Ze=>Ze.id===M.id),Be=Re.filter(Ze=>Ze.id!==M.id),Ot=M.slug===c;Dp(M.id,!0),h(Be),b(null),Ot&&Be[0]&&e(Be[0].slug);let xr=()=>{Dp(M.id,!1);let Ze=I()??[];if(Ze.some(ba=>ba.id===M.id))return;let Ir=[...Ze];Ir.splice(Math.max(0,Math.min(po,Ir.length)),0,M),h(Ir)};aA.undoable(i("Deleted \u201C{name}\u201D",{name:M.label}),{actionLabel:i("Undo"),commit:async Ze=>{await ye(M.id,Ze),Dp(M.id,!1)},undo:()=>{xr(),Ot&&e(M.slug)},onFail:()=>{xr(),aA.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Me=M=>n.send("storefront-editor:open-page",{slug:M}),Ve=M=>{if(!Q(M.label))return null;let Re=!t&&M.slug===c,ye=l.canDeletePagesInline&&(u??[]).length>1,po=Fa(M),Be=DT(M),Ot=[...po?[{label:i("Dynamic"),tone:"info"}]:[],...Be?[{label:i("Lightbox"),tone:"success"}]:[],...M.draft?[{label:i("draft"),tone:"draft"}]:[]],xr=Ot.length>0?Ot:void 0,Ze=!!D&&aY(M),Ir=Ze||l.pageCreationInAdminForm||ye?Ci(Q1,{children:[Ze&&Pe(Np,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>_(M),children:Pe(Qq,{size:13})}),l.pageCreationInAdminForm&&Pe(Np,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:M.label}),onClick:()=>Me(M.slug),children:Pe(oY,{size:13})}),ye&&Pe(Np,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:M.label}),disabled:w,onClick:()=>ne(M),children:Pe(Ob,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Pe(nA,{icon:Pe(eY,{size:14}),name:M.label,selected:Re,onSelect:()=>e(M.slug),badge:xr,actions:Ir,rowProps:{"data-page-slug":M.slug}},M.id)},Z=(M,Re,ye)=>{let po=ye.filter(Boolean);if(po.length===0)return null;let Be=Fe(M);return Ci(Wq,{children:[Pe(Zq,{count:po.length,countLabel:Wo("{n} page","{n} pages",po.length),expanded:Be,onToggle:()=>z(M),children:Re}),Be&&po]},M)},Ae=(a?.rows??[]).filter(M=>Q(M.label)).map(M=>{let Re=t===M.key;return Pe(nA,{icon:M.icon,name:M.label,selected:Re,onSelect:()=>r(M.key),badge:{label:i("Preview"),tone:"warning"},actions:Pe(Np,{kind:"plain",label:i("Open the {name} in a new tab",{name:M.label}),onClick:()=>window.open(M.href,"_blank","noopener,noreferrer"),children:Pe(Ob,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":M.key}},M.key)}),dt=l.hasSiteSettings&&!!a,fo=(()=>{if(u===null)return null;let M=[],Re=!1;for(let ye of $){dt&&!Re&&ye.key.startsWith("system:")&&(M.push(Z("shop",a.title,Ae)),Re=!0);let po=ye.key===xx||ye.label===hx?i(ye.label):ye.label;M.push(Z(ye.key,po,ye.rows.map(Ve)))}return dt&&!Re&&M.push(Z("shop",a.title,Ae)),M})();return Ci("div",{className:"sf-pages",children:[Pe(jq,{icon:Pe(tY,{}),title:i("Pages"),context:f,actions:Pe(Kq,{buttonRef:_e,label:ge?i("Add"):i("New page"),hasPopup:ge?"menu":void 0,expanded:ge?Ne!==null:void 0,onClick:bo,children:Pe(Jq,{size:15})})}),Ne&&Pe(Yq,{portal:!0,style:{top:Ne.top,right:Ne.right},onClose:()=>ao(null),children:Ci("div",{role:"menu","aria-label":i("Add"),children:[Pe(rA,{role:"menuitem",onClick:()=>{ao(null),ze()},children:i("Page")}),Pe(rA,{role:"menuitem",disabled:w,onClick:()=>{ao(null),Te()},children:i("Popup")})]})}),Pe("div",{className:"sf-pages-find",children:Pe(tA,{type:"search",leftIcon:Pe(Ob,{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(Xq,{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(nY,{source:{title:v.label,slug:v.slug},taken:Oe,host:bc(),duplicate:M=>D(v,M),onClose:()=>_(null),onDuplicated:M=>{_(null),p(),e(M.slug)}},v.id),Pe(Vq,{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:Ci(Q1,{children:[Pe(oA,{variant:"secondary",onClick:()=>H(!1),children:i("Cancel")}),Pe(oA,{onClick:()=>{Ke()},disabled:w||!E.trim(),loading:w,children:i("Add page")})]}),children:Pe(qq,{label:i("Page name"),htmlFor:O,hint:E.trim()?i("URL: /{slug}",{slug:sA(E,Oe)}):void 0,error:y??void 0,children:Pe(tA,{id:O,value:E,invalid:!!y,onChange:M=>U(M.target.value),onKeyDown:M=>{M.key==="Enter"&&Ke()},placeholder:i("e.g. About")})})})]})}import{jsx as uA}from"react/jsx-runtime";import{createContext as iY,useCallback as dY,useContext as cY,useMemo as fY,useState as pY}from"react";import{CanvasChromeContext as uY}from"efficient-easel/easel";import{useSelectHandler as mY}from"efficient-easel/draw/client";import{parseHexColor as lY}from"efficient-shell/format";var Mp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Us=Mp[0];var sn="right";function Hp(e){return Mp.includes(e??"")?e:Us}function fA(e){return e==="left"?"left":sn}function pA(e){return e&&lY(e)===e.toLowerCase()?e.toLowerCase():""}var mA="chat",Up={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:sn,launcherLabel:"",showOnPhones:!0};function MOe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:pA(e.launcherColor),launcherIcon:e.launcherIcon?Hp(e.launcherIcon):"",launcherPosition:fA(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var hA=iY({chat:Up,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function HOe({children:e,chat:o=Up,onChatChange:t}){let[r,a]=pY(!1),n=dY(c=>t?.(c),[t]),{select:s,setSelectHandler:l}=mY(),d=fY(()=>({selected:()=>r?mA:null,select:c=>c===mA&&s()}),[r,s]);return uA(hA.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:uA(uY.Provider,{value:d,children:e})})}var Wp=()=>cY(hA);import{jsx as _b}from"react/jsx-runtime";import{DesktopIcon as hY,PhoneIcon as xY,TabletIcon as IY}from"efficient-easel/icons";import{VIEW_TIERS as gY,VIEW_TIER_LABEL as bY}from"efficient-easel/draw";var yY={desktop:_b(hY,{}),tablet:_b(IY,{}),mobile:_b(xY,{})},xA=gY.map(e=>({id:e,get label(){return i(bY[e])},icon:yY[e]}));import{PreviewDeviceContext as wfe}from"efficient-easel/draw/client";import{jsx as SY}from"react/jsx-runtime";import{createContext as wY,useCallback as IA,useContext as CY,useMemo as vY,useRef as kY}from"react";var TY=Object.fromEntries(wc.map(e=>[e,{value:"",error:null}])),gA=wY({links:Bk,rows:TY,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function YOe({children:e,value:o}){let t=kY(()=>{}),r=IA(()=>t.current(),[]),a=IA(s=>{t.current=s},[]),n=vY(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return SY(gA.Provider,{value:n,children:e})}var vi=()=>CY(gA);import{jsx as PY}from"react/jsx-runtime";import{createContext as EY,useContext as OY,useMemo as _Y,useState as AY}from"react";var bA=EY(null);function QOe({children:e}){let[o,t]=AY(null),r=_Y(()=>({surface:o,setSurface:t}),[o]);return PY(bA.Provider,{value:r,children:e})}function yA(){return OY(bA)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as LY}from"efficient-easel/draw/client";var ki="Scrolling Bar",{Provider:t_e,useSelection:SA}=LY("selectedHeroId"),r_e="data-sf-hero-ticker";function a_e(e){return`${e}::ticker`}function n_e(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var wA=["","","","","",""],CA="#ticker",Ti="strip",Ab={sectionAccent:er,line:!1};function RY(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function Lb(e){return RY(e).length>0}function i_e(e){return e.showTicker!==!1&&Lb(e)}import{createPreviewSelectionContext as FY}from"efficient-easel/draw/client";var{Provider:f_e,useSelection:zp}=FY("selectedHeroPart");var kA=["one","side","stacked"];var u_e={one:"One",side:"Side by side",stacked:"Stacked"};function $p(e){return kA.includes(e)?e:"one"}function vA(e){return e==="one"?1:2}function Rb(e,o){if(kA.includes(e))return e;let t=$p(o);return t==="side"?"stacked":t}function Pi(e){let o=$p(e.mediaLayout);return Math.max(vA(o),vA(Rb(e.mediaLayoutPhone,o)))}var ln=["media","image","image2"],dn={media:"Media",image:"Image",image2:"Image 2"},Ei={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Gp(e,o){return e==="image"&&Pi(o)>1?"Image 1":dn[e]}var I_e="Video file",g_e="Upload a video file",b_e="AV1 file",y_e="Upload an AV1 file";function BY(e,o){return{field:"mediaType",is:e,default:o}}var DY=new Set(["HeroSingle"]),TA="heroPart";function NY(e,o){return{...o,[TA]:e}}function S_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],BY(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=oo(n[s],l));for(let s of ln)for(let l of o[s]??[])n[l]=NY(s,n[l]);return n}function MY(e){let o=e?.[TA];return ln.includes(o)?o:null}function PA(e,o){let t={};for(let[r,a]of Object.entries(e))MY(a)===o&&(t[r]=a);return t}function EA(e){if(!DY.has(e.type))return[];let o=[{part:"media",label:dn.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Gp("image",e.props),depth:1}),Pi(e.props)>1&&o.push({part:"image2",label:Gp("image2",e.props),depth:1})),o}function Oi(e,o){return`${e}::${o}`}function OA(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ln.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var _A="data-sf-hero-part";import{jsx as Ee,jsxs as xa,Fragment as G2}from"react/jsx-runtime";import{useEasel as Xse,useRootFields as Zse}from"efficient-easel/easel";import{Button as Jse,EmptyState as Qse}from"efficient-shell/ui";function AA({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Fa({kind:e})?i("Template"):i("Page")}}import{headWords as q2,InspectorHead as ele,InspectorIconButton as j2}from"efficient-easel/chrome";import{DuplicateIcon as ole,TrashIcon as tle}from"efficient-easel/icons";import{panelFieldsOf as rle}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as N,Fragment as he,jsxs as xe}from"react/jsx-runtime";import{BlockBannerIcon as WY,BlockBoxIcon as zY,BlockButtonIcon as $Y,BlockDividerIcon as RA,BlockFooterIcon as FA,BlockHeadingIcon as GY,BlockProductIcon as jY,BlockSocialIcon as KY,BlockTextIcon as VY,CardPaymentIcon as qY,ChatIcon as YY,AccountIcon as XY,GlobeIcon as ZY,GridIcon as JY,ImageIcon as Bb,MapIcon as QY,MediaIcon as eX,PageIcon as oX}from"efficient-easel/icons";import{jsx as Fb,Fragment as HY,jsxs as UY}from"react/jsx-runtime";var LA=UY(HY,{children:[Fb("circle",{cx:"9",cy:"20",r:"1.3"}),Fb("circle",{cx:"18",cy:"20",r:"1.3"}),Fb("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 tX={header:xe(he,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M3 9.5h18"})]}),social:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{children:[N("circle",{cx:"11",cy:"11",r:"6"}),N("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:LA,CountrySwitchBlock:xe(he,{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:xe(he,{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:xe(he,{children:[N("path",{d:"M3 9h18"}),N("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:xe(he,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{children:[N("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),N("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{children:[N("path",{d:"M3.5 20h17"}),N("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:xe(he,{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:xe(he,{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:xe(he,{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:xe(he,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:xe(he,{children:[N("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),N("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:xe(he,{children:[N("path",{d:"M4 8.5h4.5M11 8.5h9"}),N("path",{d:"M4 14.5h16"})]}),HeroGroup:xe(he,{children:[N("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),N("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:xe(he,{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(he,{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:xe(he,{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:xe(he,{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:xe(he,{children:[N("path",{d:"M4 7h2M4 12h2M4 17h2"}),N("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:xe(he,{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"})},rX=N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),aX={footer:FA,Footer:FA,Divider:RA,FooterDivider:RA,Banner:WY,Flex:zY,FooterSocial:KY,FooterPayment:qY,page:oX,website:ZY,AccountBlock:XY,chat:YY,Heading:GY,Text:VY,ImageBlock:Bb,ButtonBlock:$Y,LocationMap:QY,Grid:JY,ProductRef:jY,heroMedia:eX,heroImage:Bb,heroImage2:Bb},nX={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function cn({type:e,size:o=16,className:t}){let r=nX[e]??e,a=aX[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:tX[r]??rX})}import{PanelHideButton as K2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as ale}from"efficient-easel/screen/lib/session-context";import{jsx as Le,jsxs as _i,Fragment as sX}from"react/jsx-runtime";import{useEffect as lX,useId as BA,useState as iX}from"react";import{IconPicker as dX}from"efficient-shell/ui";import{SettingsDefaultReset as cX,SettingsField as Ai,SettingsSegmented as fX,SettingsSwitch as DA}from"efficient-easel/panel";import{ButtonIcon as pX,ButtonIconIcon as uX,EyeIcon as mX,PhoneIcon as hX,PlacementIcon as xX,TypeIcon as IX}from"efficient-easel/icons";var gX="Chat with us",bX="We usually reply within a few minutes",yX="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function jp({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=iX(o);lX(()=>l(o),[o]);let d=()=>{s!==o&&r(s)};return Le(Ai,{label:e,icon:Le(IX,{}),changed:o!=="",action:Le(Li,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Le("textarea",{value:s,placeholder:t,rows:3,onChange:c=>l(c.target.value),onBlur:d,"aria-label":e}):Le("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 Li({label:e,changed:o,onReset:t}){return Le(cX,{words:le()?.panel,label:e,changed:o,onReset:t})}function SX({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=BA();return Le(Ai,{label:e,labelId:s,icon:o,changed:t!==r,action:_i("span",{className:"inline-flex items-center gap-2",children:[Le(DA,{checked:t,onChange:a,ariaLabelledBy:s}),Le(Li,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var wX=Mp.map(e=>({value:e,icon:Hc(e)}));function CX(){let{theme:e}=ue(),o=xo(e).themes[0];return kl(o)??o?.accent??""}function NA(){let{chat:e,setChat:o}=Wp(),t=BA(),r=CX(),a=e.launcherIcon?Hp(e.launcherIcon):Us;return _i(sX,{children:[Le(Ai,{label:i("Show the chat bubble"),labelId:t,icon:Le(mX,{}),changed:!e.enabled,action:_i("span",{className:"inline-flex items-center gap-2",children:[Le(DA,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Le(Li,{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.")}),_i(pg,{title:i("Look"),children:[Le(Yo,{label:i("Button color"),icon:Le(pX,{}),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:""})}),Le(Ai,{label:i("Icon"),icon:Le(uX,{}),value:Le(KI,{value:a}),changed:a!==Us,action:Le(Li,{label:i("Icon"),changed:a!==Us,onReset:()=>o({launcherIcon:""})}),children:Le(dX,{label:i("Icon"),value:a,options:wX,onChange:n=>o({launcherIcon:n===Us?"":n})})}),Le(Ai,{label:i("Position"),icon:Le(xX,{}),changed:e.launcherPosition!==sn,action:Le(Li,{label:i("Position"),changed:e.launcherPosition!==sn,onReset:()=>o({launcherPosition:sn})}),children:Le(fX,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),Le(jp,{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")}),Le(SX,{label:i("Show on phones"),icon:Le(hX,{}),checked:e.showOnPhones,fallback:Up.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),_i(pg,{title:i("Wording"),children:[Le(jp,{label:i("Title"),value:e.title,placeholder:gX,onCommit:n=>o({title:n})}),Le(jp,{label:i("Subtitle"),value:e.subtitle,placeholder:bX,onCommit:n=>o({subtitle:n})}),Le(jp,{label:i("Greeting message"),value:e.greeting,placeholder:yX,onCommit:n=>o({greeting:n}),multiline:!0}),Le("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as fn,Fragment as ry,jsxs as zA}from"react/jsx-runtime";import{useEffect as QX,useId as UA,useState as WA}from"react";import{SettingsField as eZ}from"efficient-easel/panel";import{jsx as GX}from"react/jsx-runtime";import{forwardRef as vX,createElement as Db}from"react";var MA={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=vX(({color:n="currentColor",size:s=24,stroke:l=2,title:d,className:c,children:f,...u},p)=>Db("svg",{ref:p,...MA[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&&Db("title",{key:"svg-title"},d),...r.map(([h,I])=>Db(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var kX=[["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"}]],Nb=ce("outline","brand-facebook","BrandFacebook",kX);var TX=[["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"}]],Mb=ce("outline","brand-instagram","BrandInstagram",TX);var PX=[["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"}]],Hb=ce("outline","brand-line","BrandLine",PX);var EX=[["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"}]],Ub=ce("outline","brand-linkedin","BrandLinkedin",EX);var OX=[["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"}]],Wb=ce("outline","brand-pinterest","BrandPinterest",OX);var _X=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],zb=ce("outline","brand-telegram","BrandTelegram",_X);var AX=[["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"}]],$b=ce("outline","brand-tiktok","BrandTiktok",AX);var LX=[["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"}]],Gb=ce("outline","brand-wechat","BrandWechat",LX);var RX=[["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",RX);var FX=[["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"}]],Kb=ce("outline","brand-x","BrandX",FX);var BX=[["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"}]],Vb=ce("outline","brand-youtube","BrandYoutube",BX);var DX=[["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"}]],qb=ce("filled","brand-facebook-filled","BrandFacebookFilled",DX);var NX=[["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"}]],Yb=ce("filled","brand-instagram-filled","BrandInstagramFilled",NX);var MX=[["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"}]],Xb=ce("filled","brand-linkedin-filled","BrandLinkedinFilled",MX);var HX=[["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"}]],Zb=ce("filled","brand-pinterest-filled","BrandPinterestFilled",HX);var UX=[["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"}]],Jb=ce("filled","brand-tiktok-filled","BrandTiktokFilled",UX);var WX=[["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"}]],Qb=ce("filled","brand-whatsapp-filled","BrandWhatsappFilled",WX);var zX=[["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"}]],ey=ce("filled","brand-x-filled","BrandXFilled",zX);var $X=[["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"}]],oy=ce("filled","brand-youtube-filled","BrandYoutubeFilled",$X);var aAe="outline",Kp={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},jX={},ty={fillRule:"evenodd"},KX=[["path",{...Kp,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...ty,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],VX=[["path",{...Kp,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",{...jX,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("")}]],qX=[["path",{...Kp,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",{...Kp,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",{...ty,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",{...ty,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("")}]],YX=ce("filled","brand-telegram-filled","BrandTelegramFilled",KX),XX=ce("filled","brand-line-filled","BrandLineFilled",VX),ZX=ce("filled","brand-wechat-filled","BrandWechatFilled",qX),JX={instagram:{outline:Mb,solid:Yb},facebook:{outline:Nb,solid:qb},tiktok:{outline:$b,solid:Jb},youtube:{outline:Vb,solid:oy},x:{outline:Kb,solid:ey},linkedin:{outline:Ub,solid:Xb},pinterest:{outline:Wb,solid:Zb},whatsapp:{outline:jb,solid:Qb},telegram:{outline:zb,solid:YX},line:{outline:Hb,solid:XX},wechat:{outline:Gb,solid:ZX}};function HA({platform:e,iconStyle:o,size:t}){let r=JX[e][o];return GX(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var oZ={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 tZ({platform:e}){let{rows:o,saveLink:t}=vi(),{value:r,error:a}=o[e],[n,s]=WA(r),[l,d]=WA(!1),c=UA(),f=UA();QX(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}d(!0),await t(e,n),d(!1)},p=Fk[e];return zA(ry,{children:[fn(eZ,{label:i(p),htmlFor:c,icon:fn(HA,{platform:e,iconStyle:"outline",size:18}),children:fn("input",{id:c,type:"text",inputMode:"url",value:n,placeholder:oZ[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&&fn("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function $A({unavailable:e}){let{canSave:o}=vi();return!o&&e?fn(ry,{children:e}):zA(ry,{children:[fn("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),wc.map(t=>fn(tZ,{platform:t},t))]})}import{jsx as In,Fragment as see,jsxs as lee}from"react/jsx-runtime";import{useId as iee,useMemo as dee}from"react";import{useEasel as cee}from"efficient-easel/easel";import{SettingsField as fee,SettingsSwitch as pee}from"efficient-easel/panel";import{EyeIcon as uee}from"efficient-easel/icons";import{fieldShownInView as mee}from"efficient-easel/fields";import{usePreviewDevice as hee}from"efficient-easel/draw/client";import{jsx as un,Fragment as tJ,jsxs as rJ}from"react/jsx-runtime";import{createContext as aJ,useContext as nJ,useLayoutEffect as IL,useMemo as eu,useRef as gL,useState as fy}from"react";import{useEasel as bL,useSelectedFields as sJ}from"efficient-easel/easel";import{fieldShownInView as lJ,Inspector as iJ,planFields as py}from"efficient-easel/fields";function GA({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 $Z}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as GZ,deviceMetaOf as sL}from"efficient-easel/screen/lib/document/device-fields";import{jsx as wo}from"react/jsx-runtime";import{DirectionDownIcon as dZ,DirectionIcon as cZ,DirectionLeftIcon as fZ,DirectionRightIcon as pZ,DirectionUpIcon as uZ,EntranceBounceIcon as mZ,EntranceFadeIcon as hZ,EntranceFlipIcon as xZ,EntranceGlideIcon as IZ,EntranceRevealIcon as gZ,EntranceRiseIcon as bZ,EntranceScaleIcon as yZ,EntranceSpinIcon as SZ,NoSymbolIcon as wZ}from"efficient-easel/icons";import{NoControlMark as CZ,noControlField as vZ}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as kZ,group as TZ}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as PZ,ENTRANCE_FROM_DEFAULT as QA,ENTRANCE_KINDS as eL,ENTRANCE_KINDS_WITH_FROM as EZ,entranceAttrs as OZ,playEntrance as _Z,readEntrance as AZ}from"efficient-shell/format";import{jsx as sy}from"react/jsx-runtime";import{ClockIcon as sZ,DurationIcon as lZ}from"efficient-easel/icons";import{MOTION_TIMING as XA}from"efficient-shell/format";import{useSelectedHost as iZ}from"efficient-easel/easel";import{MOTION_EASING as rZ,MOTION_TIMING as jA,motionSeconds as KA}from"efficient-shell/format";var ay="none",Vp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function IAe(e){return io(Vp,ay,e)}var qp="_gLoop",Ri={field:"loop",is:"scroll"},Fi="left",ny=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],aZ={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function VA(e){return io(ny,Fi,e)}function gAe(e){return e==="up"||e==="down"}function qA(e){return KA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var bAe=jA.loop.duration.default,nZ=jA.loop.delay.default;function YA(e){return KA("loop","delay",e.loopDelay)}function yAe(e,o,t=nZ){return`${aZ[e]} ${o}s ${rZ.loop}${t?` ${t}s`:""} infinite`}function Ws(e){let{min:o,max:t,step:r,default:a}=XA[e].duration;return Oo("Duration",sy(lZ,{}),o,t,r,a,"s")}function zs(e){let{min:o,max:t,step:r,default:a}=XA[e].delay;return Oo("Delay",sy(sZ,{}),o,t,r,a,"s")}function $s(e,o){let t=e.render,r=a=>{let n=iZ();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>sy(r,{...a})}}function Yp({readsSpeed:e}){return $s(Ws("loop"),(o,t)=>qA({loopDuration:o,speed:e?t?.speed:void 0}))}function Xp(){return $s(zs("loop"),e=>YA({loopDelay:e}))}var ZA="_gEntrance";var LZ={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},RZ={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},FZ={top:()=>wo(dZ,{}),bottom:()=>wo(uZ,{}),left:()=>wo(pZ,{}),right:()=>wo(fZ,{})},oL="Entrance",iy=eL.filter(e=>e!=="none"),tL=e=>({any:[{field:tt.kind,in:e},{all:[{field:tt.kind,set:!1},{field:Pl,in:e}]}]}),JA=(e,o)=>wl(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(tt.kind,t)),t=>({field:t,set:!0}),t=>t===tt.kind?tL(o):{field:t,in:o}),BZ={any:[tL(iy),...qo.slice(1).map(e=>({field:we(tt.kind,e),in:iy}))]},DZ=qo.flatMap(e=>[[[we(tt.from,e)],JA(e,EZ)],[[we(tt.duration,e),we(tt.delay,e)],JA(e,iy)]]),NZ={none:()=>wo(wZ,{}),fade:()=>wo(hZ,{}),rise:()=>wo(bZ,{}),scale:()=>wo(yZ,{}),glide:()=>wo(IZ,{}),bounce:()=>wo(mZ,{}),flip:()=>wo(xZ,{}),reveal:()=>wo(gZ,{}),spin:()=>wo(SZ,{})},rL="data-entrance-tile";function MZ({kind:e}){let{attrs:o}=OZ(AZ(e,QA));return wo("span",{className:"sf-entrance-stage",[rL]:e,children:wo("i",{...o,children:NZ[e]()})})}var HZ=(e,o)=>{let t=e.querySelector(`[${rL}="${o}"] > i`);t&&_Z(t)},UZ="Effect",WZ=()=>nf(tt.kind,{label:oL,tileWord:UZ,values:eL,fallback:"none",word:e=>LZ[e],picture:e=>wo(MZ,{kind:e}),read:(e,o)=>Nh(e,o).kind,preview:HZ}),ly=(e,o)=>af(tt[e],o,(t,r)=>Nh(t,r)[e]),zZ=PZ.map(e=>({label:RZ[e],value:e,picture:FZ[e]()}));function Kt(){let e={[ZA]:TZ(oL,{dot:BZ}),...WZ(),[Pl]:vZ({type:"custom",render:()=>wo(CZ,{})},"always"),_cEntrance:kZ(),...ly("from",ws("From",wo(cZ,{}),zZ,QA)),...ly("duration",Ws("entrance")),...ly("delay",zs("entrance"))};return Oa(e,DZ)}import{DESIGN_GROUPS as dy,SETTINGS_BUCKETS as jZ}from"efficient-easel/panel";import{BUCKET_KEY as gt,DESIGN_GROUP_KEY as Zp}from"efficient-easel/screen/lib/document/field-buckets";var Bi=jZ;var KZ="Editor only \u2014 not shown live",cy={"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 width":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[KZ]:"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"},lL={"AlloyWheelsListing._gCards":"Design"},iL={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function aL(e,o,t){let r=`${e}.${o}`;return j(iL,r)??j(lL,r)??j(cy,t)}function VZ(e){return e==="Animation"?[gt.Animation]:[gt.Design,Zp[e]]}function Jp(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=sL(r),n=la(a?a.inner:r),s=n?j(cy,n.label):void 0;if(s)for(let l of VZ(s))o.includes(l)||o.push(l)}return o}var JAe=[...Jp(Ff({tablet:!0,siteSide:!0}),qf("full"),Yf(),Zf(),hg()),...Object.keys(Ff({tablet:!0,siteSide:!0})),...Object.keys(qf("full")),...Object.keys(Yf()),...Object.keys(Zf()),...Object.keys(hg())],QAe=[...Jp(jf()),...Object.keys(jf())],eLe=[...Jp(Vf()),...Object.keys(Vf())],oLe=[...Jp(Kt()),...Object.keys(Kt())],tLe=Object.keys(HO()),rLe=Object.keys(UO()),qZ={"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)"},dL={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},cL={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Ff({tablet:!0,siteSide:!0}),...qf("full"),...Yf(),...Zf(),...jf(),...Vf(),...Kt()};for(let o of Object.keys(cL)){let t=la(e[o]),r=t?j(cy,t.label):void 0;if(!t||t.level!==2||!r||!dL[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 YZ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),XZ=new Map([[gt.Design,"Content"],[gt.Animation,"Animation"],...dy.map(e=>[Zp[e],e])]);function ZZ(e){let o=`${e}.`;return Object.keys(qZ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function JZ(e,o){let t=sL(e),r=$Z(o);return t?GZ(t.tier,r):r}function QZ(e,o){let t=la(o);return t?e==="Content"||e==="Animation"?CO(o,t.label):vO(o):o}function nL(e){return e==="Design"?dy:["Animation"]}function fL(e,o){let t=[],r=new Set(ZZ(o)),a=new Set,n=!1,s=null;for(let[p,h]of Object.entries(e)){let I=la(h);if(YZ.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=XZ.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===gt.Design||p===gt.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(cL,p)){let w=aL(o,p,I.label);if(I.level!==2||!w||!dL[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=aL(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 ${[...dy,"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:JZ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>la(p)).map(([p])=>p));for(let[p,h]of[["BLOCK_KEY_GROUP",iL],["KEY_GROUP",lL]]){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=Bi.filter(p=>nL(p).some(h=>c.has(h))),u={};for(let p of f){u[gt[p]]=Gf(p,p===f[0]?f:null);for(let h of nL(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[Zp[h]]=fg(h));for(let C of I)for(let[w,T]of C.entries)u[w]=QZ(h,T)}}return u}function aLe(e){return gt.Design in e?e:{[gt.Design]:Gf("Design",null),[Zp.Content]:fg("Content"),...e}}function nLe(e){return Bi.some(o=>gt[o]in e)}function sLe(e){let o=Bi.filter(r=>gt[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[gt[r]]=Gf(r,r===o[0]?o:null);return t}import{jsx as eJ}from"react/jsx-runtime";import{EmptyState as oJ}from"efficient-shell/ui";function pn(){return eJ(oJ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as dJ}from"efficient-easel/draw/client";import{deviceField as cJ}from"efficient-easel/screen/lib/document/device-fields";var Qp=" text",pL="Text";function Di(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function uL(e){return e.filter(Di).map(o=>o.key)}function mL(e,o){let t=e.filter(a=>!Di(a));if(t.length!==1)return null;let r=e.filter(Di).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 hL(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 xL(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var uy=new Map,ou=new Set;function yL(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 fJ=Object.fromEntries(Bi.map(e=>{let o=wO[e];return[e,un(o,{},e)]})),SL=aJ(null),pJ={_partBody:cJ("each",{type:"custom",render:()=>un(uJ,{})})};function uJ(){return un(tJ,{children:nJ(SL)})}function Vt({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}=sJ(),p=eu(()=>a?{...c,...a.values}:c,[c,a?.values]),h=(ne,Me)=>a?.keys.has(ne)?a.onChange(ne,Me):u(ne,Me),I=dJ(),{appState:g,config:C}=bL(ne=>ne),w=WT(I,C,g.data.content??[],g.ui.itemSelector),T=n===void 0?PA(d,t):pJ,y=eu(()=>{let ne=r?.length?Object.fromEntries(Object.entries(T).filter(([Me])=>!r.includes(Me))):T;return a?{...ne,...a.fields}:ne},[T,r,a?.fields]),b=gx(y,p,w),[P,H]=fy(()=>new Set(ou)),[E,U]=fy(()=>new Set),O=gL(null),{bandRows:D,designBands:v,looseRows:_}=eu(()=>{let ne=new Map,Me=new Set,Ve=[];for(let Z of py(b).rows){if(!Z.fold){Z.bucket==="Design"&&Ve.push(Z.name);continue}let Ae=ne.get(Z.fold.key)??[];Ae.push(Z.name),ne.set(Z.fold.key,Ae),Z.bucket==="Design"&&Me.add(Z.fold.key)}return{bandRows:ne,designBands:Me,looseRows:new Map([["",Ve]])}},[b]),A=lJ({},I),F={key:Qp,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};IL(()=>{let ne=O.current?.parentElement;if(!ne)return;let Me=yL(ne,D),Ve=new Set(uL(Me)),Z=mL([F,...Me.filter(Ae=>v.has(Ae.key))],yL(ne,_)[0].rows);Z&&Ve.add(Z),U(Ae=>xL(Ae,Ve)?Ae:Ve)});let z=eu(()=>hL(b,E),[b,E]),$=!Di(F)&&!E.has(Qp)?{key:Qp,title:pL}:void 0,X=bL(ne=>ne.selectedItem)!==null,Q=a?.part??t??"",Fe=`${l}:${Q}:${String(I)}`,[Oe,ze]=fy(()=>({tab:uy.get(Fe)})),Ke=`${l}:${Q}`,ge=gL(null),Te={...w,node:p},_e=py(b,{values:p,context:Te}).buckets,Ne=GA({allTabs:X,remembered:uy.get(Fe),inherited:ge.current?.panel===Ke?ge.current.tab:Oe.tab,buckets:_e,hasText:A&&o>0}),ao=!A&&!_e.includes(Ne)&&(py(gx(y,p,{...w,device:"desktop"}),{values:p,context:{...Te,device:"desktop"}}).buckets.includes(Ne)||Ne==="Design"&&o>0);IL(()=>{ge.current={panel:Ke,tab:Ne}});let bo=Ne==="Design";return un(SL.Provider,{value:n??null,children:un(mg.Provider,{value:a?p:null,children:rJ(iJ,{fields:z,values:p,onChange:h,readOnly:f,allTabs:X,showWhenContext:Te,context:{itemWord:s},tab:Ne,onTab:ne=>{uy.set(Fe,ne),ze({tab:ne})},tabIcons:fJ,idPrefix:l,ariaLabel:i("Section settings"),lead:bo?e:null,leadFold:$,closedFolds:P,onFold:(ne,Me)=>{Me?ou.delete(ne):ou.add(ne),H(new Set(ou))},children:[un("span",{ref:O,hidden:!0}),ao&&un(pn,{})]})})})}import{useMemo as JQ}from"react";import{useEasel as QQ}from"efficient-easel/easel";import{useSectionOps as eee}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as bt}from"react/jsx-runtime";import{EntranceRevealIcon as yJ,NoSymbolIcon as SJ,PercentIcon as TL,ScrollFadeInIcon as wJ,ScrollFadeOutIcon as CJ,ScrollMoveDownIcon as vJ,ScrollMoveUpIcon as kJ,ScrollParallaxIcon as TJ,ScrollZoomInIcon as PJ,ScrollZoomOutIcon as EJ,ZoomInIcon as OJ}from"efficient-easel/icons";import{customize as _J,group as AJ}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as EL,SCROLL_EFFECTS_WITH_ZOOM as LJ,SCROLL_END as RJ,SCROLL_START as FJ,SCROLL_ZOOM as BJ}from"efficient-shell/format";import{parseFocal as IJ,formatFocal as gJ,readScroll as bJ}from"efficient-shell/format";import{phoneKey as mJ,tabletKey as hJ}from"efficient-easel/screen/lib/content/view-tiers";var xJ=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],wL=e=>[e,hJ(e),mJ(e)],OLe=[...new Set(xJ.flatMap(e=>wL(e.focus)))].sort();function CL(e,o){let[t,r,a]=wL(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"},vL="_gScroll",kL="_cScroll",tu=cc(Object.values(Ao));function Gs(e,o){return bJ(Tl(e,Ao.effect,o),Tl(e,Ao.zoom,o),Tl(e,Ao.start,o),Tl(e,Ao.end,o))}function ru(e){let o={desktop:Gs(e,"desktop"),tablet:Gs(e,"tablet"),phone:Gs(e,"phone")};return qo.every(t=>o[t].effect==="none")?null:o}function my(e){let o=ik(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=IJ(a);return gJ(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function FLe(e,o){return my(CL(e,o))}var OL="Scroll",DJ={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"},NJ={none:()=>bt(SJ,{}),"zoom-in":()=>bt(PJ,{}),"zoom-out":()=>bt(EJ,{}),"fade-in":()=>bt(wJ,{}),"fade-out":()=>bt(CJ,{}),"move-up":()=>bt(kJ,{}),"move-down":()=>bt(vJ,{}),reveal:()=>bt(yJ,{}),parallax:()=>bt(TJ,{})},MJ="Effect",_L=EL.filter(e=>e!=="none"),PL=(e,o)=>wl(qo.slice(0,qo.indexOf(e)+1).reverse().map(t=>we(Ao.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),HJ={any:qo.map(e=>({field:we(Ao.effect,e),in:_L}))},UJ=qo.flatMap(e=>[[[we(Ao.zoom,e)],PL(e,LJ)],[[we(Ao.start,e),we(Ao.end,e)],PL(e,_L)]]),WJ=()=>nf(Ao.effect,{label:OL,tileWord:MJ,values:EL,fallback:"none",word:e=>DJ[e],picture:e=>NJ[e](),read:(e,o)=>Gs(e,o).effect}),hy=(e,o,t,r,a)=>af(e,Oo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Gs(n,s)[o]);function mn(){let e={[vL]:AJ(OL,{dot:HJ}),...WJ(),[kL]:_J(),...hy(Ao.zoom,"zoom","Zoom",bt(OJ,{}),BJ),...hy(Ao.start,"start","Start",bt(TL,{}),FJ),...hy(Ao.end,"end","End",bt(TL,{}),RJ)};return Oa(e,UJ)}import{jsx as jo}from"react/jsx-runtime";import{AccentIcon as zJ,ContrastIcon as $J,EyeIcon as GJ,ExpandIcon as jJ,FinishIcon as KJ,ImagesIcon as VJ,NoSymbolIcon as LL,HoverLiftIcon as qJ,HoverNextImageIcon as YJ,HoverRotateIcon as XJ,HoverZoomIcon as RL,OpacityIcon as ZJ}from"efficient-easel/icons";import{customize as JJ,describedAs as FL,group as QJ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as BL}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Lo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as eQ,noControlField as oQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var au=e=>Lo("desktop",QJ("Hover",{dot:e})),DL=()=>Lo("desktop",JJ()),tQ="What this does when a shopper points at it, or taps it on a phone.",rQ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",aQ="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.",nQ="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.",sQ="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",lQ="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.",iQ="Which of the product's pictures the card shows.",dQ="Same finish shows the photos of the finish the card shows, else the first group.",cQ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",fQ={none:()=>jo(LL,{}),nextImage:()=>jo(YJ,{}),rotate:()=>jo(XJ,{}),zoom:()=>jo(RL,{}),lift:()=>jo(qJ,{}),mono:()=>jo($J,{})};function xy(e,o){let t=BL({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(Un[r]),picture:fQ[r]()})),fallback:o});return FL(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Un[r]}))})}function NL(){return{[wr]:au({field:ct,in:nh.filter(e=>e!=="none")}),[ct]:Lo("desktop",{...xy(nh,"none"),description:tQ})}}function ML(e){let o=GC(e),t=Xd(),r=$E(BC);return{[wr]:au({any:[o,t]}),[so.kind]:Lo("desktop",{...$s(xy(AC,e),(a,n)=>zC(n??{},e)),description:lQ}),...Iy(t),[LC]:oQ({type:"custom",render:()=>jo(eQ,{})},"always"),_cHover:DL(),[so.angle]:Lo("desktop",oo($s(r,a=>$C(a)),o)),[so.duration]:Lo("desktop",oo(Ws("hover"),o)),[so.delay]:Lo("desktop",oo(zs("hover"),o))}}function Iy(e){let o=xt("Type",jo(VJ,{}),DC.map(a=>({value:a,label:NC[a]})),Yd.kind),t=ws("Group",jo(KJ,{}),MC.map(a=>({value:a,label:HC[a]})),Yd.group),r=ws("Covers",jo(jJ,{}),UC.map(a=>({value:a,label:WC[a]})),Yd.cover);return{[so.mediaKind]:Lo("desktop",oo({...o,description:iQ},e)),[so.mediaGroup]:Lo("desktop",oo({...t,description:dQ},e)),[so.cover]:Lo("desktop",oo({...r,description:cQ},e))}}function gy(e,o="",t=ch.includes(o)){let r=fh(e),a=XC(e);return{[wr]:au(r),[so.kind]:by(jC,e,rQ),...ch.includes(o)?Iy(Xd()):{},_cHover:DL(),...t?HL():{},[so.duration]:Lo("desktop",oo(Ws("hover"),a)),[so.delay]:Lo("desktop",oo(zs("hover"),a))}}function HL(e=!1){let o=a=>e?a:oo(a,YC()),t=Oo("Zoom",jo(RL,{}),Wn.min,Wn.max,Wn.step,Wn.min,Wn.unit),r=Oo("Darken on hover",jo(ZJ,{}),ea.min,ea.max,ea.step,ea.fallback,ea.unit);return{[lh.zoom]:Lo("desktop",o(t)),[lh.darken]:Lo("desktop",o(r))}}function by(e,o,t){let r=Lo("desktop",{...$s(xy(e,o),a=>VC({[ct]:a},o,e)),description:t});return Object.assign(r,{[UL]:o})}var UL="sfPictureResting",AL=new WeakMap;function nRe(e,o,t){let r=e[so.kind],a=r?.[UL];if(!r||!a)return e;let n=o.props?.[ct]==="nextImage",s=n?null:ac(t.appState,o.props?.id);if(!n&&!RC.includes(String(s?.type??"")))return e;let l=AL.get(e);return l||(l={...e,[so.kind]:by(sh,a,aQ)},AL.set(e,l)),l}var pQ="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.",uQ={none:()=>jo(LL,{}),[th]:()=>jo(zJ,{})},sRe=Lo("desktop",{...FL(BL({label:i("Hover effect"),options:rh.map(e=>({value:e,label:i(ah[e]),picture:uQ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:rh.map(e=>({value:e,label:ah[e]}))}),description:pQ}),mQ=Lo("desktop",{...ws("Show",jo(GJ,{}),[{value:dh,label:"Always"},{value:ih,label:"On card hover"}],dh),description:sQ});function WL(){let e={any:[fh("none"),{field:ct,is:th},{field:Pa,is:ih}]},{[wr]:o,[so.kind]:t,...r}=gy("none","",!0);return{[wr]:au(e),[so.kind]:t,[Pa]:mQ,...Iy(Xd()),...r,...HL(!0)}}var lRe=by(sh,"none",nQ);import{jsx as Ni}from"react/jsx-runtime";import{isNodeList as gQ}from"efficient-easel/data";import{useEasel as bQ}from"efficient-easel/easel";import{hiddenInView as yQ,hiddenKeyOf as Sy,hidePatch as SQ,slotChildName as wQ,slotChildRowName as CQ}from"efficient-easel/draw";var nu=null;function yy(e){nu=e}function zL(){return!!(nu&&nu.state().lockHolder)}function hn(){return nu!==null}var hQ=new Set(["BookingBox","SubmitBox"]);function xQ(e){return typeof e=="string"&&hQ.has(e)}var IQ=mT(xQ,zL);function su(e,o){return IQ(e)||dI(o)}var lu=(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 vQ}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as kQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var $L="notCardOfTemplate",GL={not:{context:$L,is:!0}},wy={any:[Jd,GL]},ERe={[$L]:(e,o)=>{let t=Eh(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function iu(e){let o=e.props?.content;return gQ(o)?o:[]}var cu=(e,o)=>yQ(e.props??{},o),TQ=(e,o)=>e.props?.[Sy(o)]!==void 0;function jL(e,o=()=>!1,t="desktop"){return iu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:iu(r).length&&!cu(r,t)?jL(r,o,t):o(r)?[]:[r])}function PQ(e,o,t,r="desktop"){let a=jL(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:d})=>{let c=d;if(s.has(d)){let f=2;for(;n.has(`${d} ${f}`);)f+=1;c=`${d} ${f}`,n.add(c)}return s.add(d),{id:l.props.id,label:c,shown:!cu(l,r)}})}function du(e,o,t){let r=a=>t==="desktop"?cu(a,t):TQ(a,t);return iu(e).flatMap(a=>r(a)?o(a)?[]:[a,...du(a,o,t)]:du(a,o,t))}function EQ(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===Sy("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 Cy(e,o,t){let r=iu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let d=EQ(s.props,t(s.props));d!==s.props&&(l={...s,props:d})}else l=Cy(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function KL(e,o,t,r="desktop"){return Cy(e,o,a=>r==="desktop"&&cu({props:a},r)===!t?{}:SQ(a,r,!t))}function OQ(e,o,t){return t==="desktop"?KL(e,o,!0,t):Cy(e,o,()=>({[Sy(t)]:void 0}))}function _Q(e,o,t,r,a,n){return wQ(e).trim()?t(e):Ov({ownerType:o,owner:r,fields:a,slot:n},Jt(e.props))?.label??t(e)}var AQ="This page is read-only.";function LQ({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:d="desktop"}){let c=p=>CQ(p,n,Sr,void 0,lu),f=p=>su(p.type,p),u=PQ(e,p=>_Q(p,o,c,t,r,a),f,d);return u.length?Ni(ks,{parts:u,changed:du(e,f,d).length>0,shown:p=>u.find(h=>h.id===p)?.shown??!0,disabledReason:l?AQ:void 0,onPress:(p,h)=>s(I=>KL(I,p,h,d)),onReset:()=>s(p=>du(p,f,d).reduce((h,I)=>OQ(h,String(I.props.id),d),p))}):Ni(kQ,{})}function RQ(){try{let e=bQ(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Eh(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:Rv(e.appState,r),slot:Lv(e.appState,t.props?.id)??void 0}}catch{return null}}function FQ({readOnly:e,view:o}){let t=RQ(),r=oa();return t?Ni(LQ,{...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}})}}):Ni(ks,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function ORe(e){return oo(vQ(e,{type:"custom",render:({readOnly:o})=>Ni(FQ,{readOnly:o,view:e})}),GL)}import{customize as GQ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as vy}from"react/jsx-runtime";import{DirectionIcon as BQ,LoopMarqueeIcon as DQ,NoSymbolIcon as NQ}from"efficient-easel/icons";import{customize as MQ,describedAs as HQ,group as UQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as WQ}from"efficient-easel/screen/lib/document/effect-tiles";function ky(){return NO("Direction",ny,Fi,"A marquee cannot run diagonally, so the corners are not answers.",vy(BQ,{}),DO)}var Ty=e=>UQ("Loop",e?{dot:e}:void 0),zQ={none:()=>vy(NQ,{}),scroll:()=>vy(DQ,{})};function $Q(){let e=WQ({label:i("Loop"),options:Vp.map(({value:o,label:t})=>({value:o,label:i(t),picture:zQ[o]()})),fallback:ay});return HQ(e,{type:"select",label:"Loop",options:Vp.map(({value:o,label:t})=>({value:o,label:t}))})}function VL(){return{[qp]:Ty(Ri),loop:$Q(),_cLoop:MQ(),scrollDirection:oo(ky(),Ri),loopDuration:oo(Yp({readsSpeed:!1}),Ri),loopDelay:oo(Xp(),Ri)}}var qL={field:Pa,set:!0};function jQ(){let e=WL(),o=[wr,ct],t=Gn(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Pa),Jd),r=Gn(t,[Pa],qL),a=Gn(r,[ct],wy);return Gn(a,[wr],{any:[wy,qL]})}function YL(e,o=""){switch(e){case"section":case"block":return{...Kt(),...mn()};case"box":return{...Kt(),...mn(),...VL(),...jQ()};case"picture":return{...Kt(),...mn(),...gy(KC(o),o)};case"textPart":return{...Kt(),...mn(),...NL()};case"cards":return{...Kt(),...mn(),...ML(FC(o))};case"marquee":return{...Kt(),...mn(),[qp]:Ty(),_cLoop:GQ(),scrollDirection:ky(),loopDuration:Yp({readsSpeed:!0}),loopDelay:Xp()}}}import{ENTRANCE_STATE_ATTR as KQ,entranceAttrs as VQ,scrollAttrs as qQ}from"efficient-shell/format";var ZL={},Py="_partMotion",Ey=[...fc,ct,so.duration,so.delay,...tu];function nFe(e){return As(e,Py)}function xn(e,o){return Sp(e,Py,o)}var YQ=new Set([tt.kind,ct,Ao.effect]);function JL(e,o,t,r){let{[t]:a,...n}=xn(e,o),s=r==null||r===""||r==="none"&&YQ.has(t)?n:{...n,[t]:r};return wp(e,Py,o,Object.keys(s).length?s:null)}function Oy(e){return{entrance:pc(e),hover:_C(e),scroll:ru(e)}}function QL(e){let o=Oy(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function eR(e,o){let{attrs:t,style:r}=VQ(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(KQ)}}function oR(e,o){let{attrs:t,style:r}=qQ(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 XQ=4;function _y(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&XQ)&&(o=t);return o}var ZQ="data-sf-part-host";function tR(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(ZQ)&&!t.classList.contains(Jn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var fu="data-sf-part-lift",XL="sf-part-lift";function rR(e){if(e.getElementById(XL))return;let o=e.createElement("style");o.id=XL,o.textContent=J_(`[${fu}]`).join(`
5
+ `),e.head.appendChild(o)}var aR=new Map,oee=e=>{let o=aR.get(e);return o||aR.set(e,o=fL(YL(e),`part:${e}`)),o},tee=new Set(Ey);function js(e,o,t){let{getItemById:r,getSelectorForId:a}=QQ(f=>f),n=eee(),s=r(e)?.props??{},l=xn(s,o),d=JSON.stringify(l),c=JQ(()=>Object.fromEntries(Ey.map(f=>[f,l[f]])),[d]);return{part:o,fields:oee(t),values:c,keys:tee,onChange:(f,u)=>{let p=a(e),h=r(e);if(!p||!h)return;let I=JL(h.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...h,props:I})}}}import{Fragment as ree,createElement as aee}from"react";import{deviceField as Ay}from"efficient-easel/screen/lib/document/device-fields";var Ro=()=>({type:"custom",render:()=>aee(ree)});var Ly={words:Ro(),sourceNote:Ro(),style:Ro(),font:Ro(),italic:Ro(),fontSize:Ay("each",Ro()),lineHeight:Ro(),letterSpacing:Ro(),paragraphSpacing:Ro(),padding:Ro(),align:Ay("each",Ro()),letterCase:Ro(),fixedSizeHint:Ay("each",Ro()),regionNote:Ro(),regionStyle:Ro()},nee=["fontSize","align"];function nR(e){return nee.includes(e)}var sR={showTicker:Ro(),items:Ro()};var xee="root:default-zone";function lR({heroId:e}){let{appState:o,dispatch:t}=cee(h=>h),r=o.data.content??[],a=r.findIndex(h=>h.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,l=dee(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:wA.map(I=>({text:I}))},[n]),d=iee(),c=hee(),f=h=>mee(sR[h],c),u=js(e,CA,"block");if(!n)return In("p",{className:"sf-note",children:i("This ticker\u2019s hero is no longer on the page.")});let p=h=>t({type:"replace",destinationZone:xee,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return In(Vt,{motion:u,body:lee(see,{children:[!f("showTicker")&&!f("items")&&In(pn,{}),f("showTicker")&&In(fee,{label:i("Show ticker"),labelId:d,icon:In(uee,{}),action:In(pee,{checked:s,onChange:h=>p({showTicker:h}),ariaLabelledBy:d})}),f("items")&&In(yg,{label:bg.label,icon:bg.icon,items:l,placeholder:"item",onChange:h=>p({tickerItems:h}),markup:!0})]})})}import{jsx as ee,Fragment as $i,jsxs as yt}from"react/jsx-runtime";import{useContext as Hee,useEffect as Ry,useRef as Uee,useState as PR}from"react";import{FieldSelect as Wee,InspectorField as zee,fieldShownInView as $ee}from"efficient-easel/fields";import{InertHint as DR,SettingsField as Gee}from"efficient-easel/panel";import{InspectorUpLevel as bu}from"efficient-easel/chrome";import{StylesIcon as jee,TypeIcon as Kee}from"efficient-easel/icons";import{useEasel as Vee}from"efficient-easel/easel";import{TextPartPanel as ER}from"efficient-easel/copy";import{Button as qee,IconButton as Yee,Tooltip as Xee}from"efficient-shell/ui";import{jsx as cR,jsxs as Iee}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as gee}from"efficient-easel/strings";import{COPY_CELLS as Ks,COPY_CELL_LENGTHS as iR,CopyBox as bee,lengthCellUnits as yee}from"efficient-easel/copy";import{PaddingYIcon as See}from"efficient-easel/icons";import{onDesktopWords as wee}from"efficient-easel/screen/lib/document/box-fields";var dR=gee.copy.cells,Cee={kind:"spacing"},vee=["left","center","right","justify"];function pu(e,o,t,r="desktop"){let a=gi(e),n=sb(r),s=e[n]??e.size??o.sizePx,l=n1(e,r),d=(f,u,p,h,I)=>{let g=It[p];return yee({preset:f,row:u,table:Va,unit:e[g],value:e[p],tier:r,styleValue:h,label:i(I),onPick:(C,w)=>t({[g]:C??null,[p]:w??null}),onChange:(C,w)=>t({...w?{[g]:w.unit??null}:{},[p]:C??null})})},c={key:"padding",name:i("Padding"),icon:cR(See,{}),unit:"px",step:tb,shiftStep:10,min:eb,max:ob};return[{...Ks.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...d(Ks.fontSize,iR.fontSize,n,Math.round(o.sizePx),dR.fontSize),...n==="size"?{}:{reset:{detail:l?wee(f=>i(f),`${l.px}px`,l.view):void 0}}},{...Ks.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...Ks.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...Ks.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...d(Ks.paragraphSpacing,iR.paragraphSpacing,"paragraphSpacing",0,dR.paragraphSpacing)},{...c,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...d(c,Cee,"padding",o.paddingPx,"Padding")}]}function fR({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:d,placeholder:c,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let h=pu(n,s,l),I=Fg(r,t);return Iee("div",{className:"sf-part-textbox",children:[u,cR(bee,{value:e,onChange:o,multiline:t,placeholder:c,ariaLabel:f,rules:Kd,tools:I,barShows:p?"focus":"always",colors:r?d:[],colorNameOf:rt,align:a?{value:n.align??s.align,allow:vee,onChange:g=>l({align:g})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:g=>l({case:g||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as OR}from"efficient-easel/draw/client";import{jsx as uu,Fragment as kee,jsxs as Tee}from"react/jsx-runtime";import{Button as pR,Dialog as Pee}from"efficient-shell/ui";function uR({styleName:e,onCancel:o,onConfirm:t}){return uu(Pee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:Tee(kee,{children:[uu(pR,{variant:"secondary",onClick:o,children:i("Cancel")}),uu(pR,{variant:"primary",onClick:t,children:i("Update style")})]}),children:uu("p",{children:i("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as Zee}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as Jee}from"efficient-easel/draw/client";import{shownTier as Iu}from"efficient-easel/screen/lib/document/device-fields";import{jsx as Eee}from"react/jsx-runtime";import{createContext as Oee,useContext as _ee,useMemo as Aee,useState as Lee}from"react";var Ree={partStyle:null,setPartStyle:()=>{}},mR=Oee(Ree);function ZFe({children:e}){let[o,t]=Lee(null),r=Aee(()=>({partStyle:o,setPartStyle:t}),[o]);return Eee(mR.Provider,{value:r,children:e})}function hR(){return _ee(mR)}import{TEXT_FIELD_MARKER as Qee,viewKeyAt as eoe}from"efficient-easel/draw";import{useSectionOps as ooe}from"efficient-easel/screen/lib/document/use-section-ops";var Mi="@name",xR="@body",IR="@value",gR={[Mi]:"Name",[xR]:"Body",[IR]:"Value"},Fee={TimelineTrack:{"entries.date":Mi,"entries.title":Mi,"entries.blurb":xR},Footprint:{"offices.city":Mi},Stats:{"items.label":Mi,"items.value":IR}};function Bee(e){let{key:o,row:t}=Gt(e);return t?`${o}.${t.rowKey}`:null}function Hi(e,o){if(!e)return o;let t=Bee(o);return t?j(Fee,e)?.[t]??o:o}import{useEaselHost as toe}from"efficient-easel/screen/lib/host";function Dee(e){let o=new Set([...Object.keys(j(sf,e)??{}),...j(lf,e)??[]]);for(let[t,r]of Object.entries(j(zx,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var Nee={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},bR={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},yR="Open",SR={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function Vs(e){let o=e?.source?.slug;return Se(o)}function Ui(e){return j(Nee,e)??null}function wR(e,o){let t=Ui(e);return t&&Dee(e).includes(o)?t:null}function mu(e){let o=e?.menu?.id;return Se(o)}var Wi={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},Mee={tag:{label:"Tag",follows:"Labels",builtIn:Kn(Wi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Kn(Wi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Kn(Wi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Kn(Wi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Kn(Wi.link),writable:!0}},CR=Mee;var hu={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var uBe=oc,vR={rowLabel:{label:"Spec row name",follows:"Labels",builtIn:"14px"},rowValue:{label:"Spec row value",follows:"Labels",builtIn:"14px"},diagramTitle:{label:"Diagram title",follows:"Labels",builtIn:"12px"},diagramCallout:{label:"Diagram measurement",follows:"Labels",builtIn:"12px"},diagramStatLabel:{label:"Diagram stat name",follows:"Labels",builtIn:"11px"},diagramStatValue:{label:"Diagram stat value",follows:"Labels",builtIn:"11px"}};var kR={SpecTable:vR,FAQ:xv,Collections:CR,Contents:hu};function TR(){return Gd("efficient.section-text-regions",()=>new Map)}function SBe(e){let o=TR();for(let[t,r]of Object.entries(e)){if($e(kR,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function xu(e){return e?j(kR,e)??TR().get(e)??null:null}function Fy(e){return e?i(e):null}function _R(e){return e.kind==="role"?oh[e.role]:e.kind==="custom"?"Custom":null}function roe(e){let o=yr(e.role);return o?{kind:"role",role:o}:null}function aoe(e,o){if(!e)return{kind:"unread"};let{faceRole:t,base:r}=e;if(o[t]===r.fontKey)return{kind:"role",role:t};let a=Object.keys(o).filter(n=>o[n]===r.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function gu(e,o,t,r){return roe(Ii(e,o))??aoe(t,r)}function noe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function AR(e){return[{value:zi,label:i("No style"),description:i("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?Mn(o.values.font)?.label:void 0}))]}var zi="";function soe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:zi,a=[{label:i("No style"),value:zi},...yC.map(n=>({label:i(oh[n]),value:n}))];return ee(Wee,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===zi?null:n),renderOption:n=>n.value===zi?yt($i,{children:[ee("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),ee("span",{className:"sf-part-style-aside","aria-hidden":"true",children:i("Section\u2019s own")})]}):ee("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>ee("span",{style:{fontFamily:o?.fontKey?`var(${Mn(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:Fy(_R(e))}),valueText:n=>Fy(_R(e))??n?.label??""})}var NR=["regionNote","regionStyle"],loe=Object.keys(Ly).filter(e=>!NR.includes(e));function MR(e,o){return!e.some(o)}function ioe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=yt($i,{children:[t,r,a]});return yt("div",{className:"sf-part-panel",children:[ee(bu,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function yu({source:e,slug:o,menuId:t}){let r=toe(),a=SR[e],n=!a.needsSlug||!!o;return ee("div",{className:"sf-note sf-note--source",children:yt(DR,{children:[i(bR[e]),n?yt($i,{children:[" ",ee(qee,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:i(yR)})]}):null]})})}var LR=4,doe=120;function RR(e){return i("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:i(e.label).toLowerCase()})}function FR({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:d,sizedStyle:c,ownLook:f}){let u=e.follows;return yt("div",{className:"sf-note",children:[ee("p",{children:ee("strong",{children:i(e.label)})}),d("regionNote")&&!f&&ee("p",{children:o?i("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:i(u),px:Math.round(o)}):i("Its size follows Styles \u25B8 {follows}.",{follows:i(u)})}),c?yt($i,{children:[c,d("regionStyle")&&ee("p",{className:"es-field-hint",children:RR(e)})]}):a?d("regionStyle")?ee($i,{children:ee(Gee,{label:i("Style"),icon:ee(jee,{}),hint:RR(e),children:ee(soe,{face:t,base:r,onPick:a})})}):null:d("regionNote")&&ee("p",{className:"es-field-hint",children:i("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&d("sourceNote")?ee(yu,{source:n,slug:s}):null,MR([...NR,"sourceNote",...c?["fontSize"]:[]],p=>d(p)&&(p!=="sourceNote"||!!n))&&ee(pn,{}),ee(bu,{inline:!0,name:i("Page"),onSelect:l})]})}function coe({onBack:e}){return yt("div",{className:"sf-note",children:[ee("p",{children:ee("strong",{children:i("This part is no longer here.")})}),ee("p",{children:i("The section it belonged to has been changed or removed.")}),ee(bu,{inline:!0,name:i("Page"),onSelect:e})]})}function foe({onBack:e,partId:o,why:t}){return yt("div",{className:"sf-note",children:[ee("p",{children:ee("strong",{children:i("This part's settings did not open.")})}),ee("p",{children:i("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),ee("p",{className:"sf-note-detail",children:yt("code",{children:[o," \u2014 ",t]})}),ee(bu,{inline:!0,name:i("Page"),onSelect:e})]})}function HR({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=Vee(V=>V),l=ooe(),d=u_(),{partStyle:c}=hR(),{fonts:f,textStyles:u}=ue(),p=Hee(Zee),h=!p?.capabilities?.hasSiteTheme,{persist:I}=ms({themeFromDocument:h,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),g=Lp({themeFromDocument:h,persist:I}),[C,w]=PR(!1),T=Jee(),y=V=>(Iu(T)!=="tablet"||nR(V))&&$ee(Ly[V],T),b=Uee(null),P=a(e),H=n(e),E=P?s.components[P.type]:void 0,{key:U,row:O}=Gt(o),D=E?.fields?.[U],v=O?Os(D,O):D,_=tp(e,o),A=P?.props??{},F=Ts(v),z=$f(v),$=kg(v),X=P?Ui(P.type):null,Q=P?wR(P.type,U):null,Fe=O?ci(A[U],O):A[U],Oe=!!O&&!(Array.isArray(A[U])&&O.index<A[U].length);Ry(()=>{p_(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[_]);let[ze,Ke]=PR(0);Ry(()=>Ke(0),[_]);let ge=!!P&&!Oe&&(!H||!v);Ry(()=>{if(!ge||ze>=LR)return;let V=setTimeout(()=>Ke(no=>no+1),doe);return()=>clearTimeout(V)},[ge,ze]);let Te=ge&&ze<LR,_e=js(e,Hi(P?.type,o),"textPart");if(!P||Oe)return ee(coe,{onBack:t});let Ne=xu(P.type),ao=Ne?Cl(Ne,o):null;if(Ne&&ao){let V=c?.partId===_?c:null,no=Ne[ao],_t=no.writable===!0&&!!H,zr=va=>{H&&l.replaceComponent(H.zone,H.index,{...P,props:rn(A,o,"role",va)})};if(_t&&hv(no)){let va=Ii(A,o),dC=ka=>{if(!H)return;let Qm=A;for(let[X5,Z5]of Object.entries(ka))Qm=rn(Qm,o,X5,Z5??null);l.replaceComponent(H.zone,H.index,{...P,props:Qm})},V5=Br(g.saved,g.old),q5=Qg(va)??"",Y5=pu(va,V?.base??BR,dC,Iu(T)).filter(ka=>ka.key==="fontSize"&&y(ka.key));return ee(Vt,{motion:_e,body:ee(FR,{region:no,sizePx:V?.base.sizePx??null,face:gu(A,o,V,f),base:V?.base??null,source:X,slug:Vs(A),onBack:t,shows:y,ownLook:l1(va),sizedStyle:ee(ER,{style:y("style")?{value:q5,options:AR(V5),onChange:ka=>dC(ka?{textStyle:ka}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:Y5})})})}return ee(Vt,{motion:_e,body:ee(FR,{region:no,sizePx:V?.base.sizePx??null,face:gu(A,o,V,f),base:V?.base??null,onFollowStyle:_t?zr:void 0,source:X,slug:Vs(A),onBack:t,shows:y})})}if(!H||!v)return Te?ee("div",{className:"sf-note","aria-busy":"true"}):ee(foe,{onBack:t,partId:_,why:H?"no field":"no selector"});let bo=V=>{l.replaceComponent(H.zone,H.index,{...P,props:V})},ne=V=>{if(sa(V).hidden!==sa(Fe).hidden||!F){let no=O?Cg(A,U,O,V):{...A,[U]:V};no&&bo(no);return}np({node:P,propKey:o,kind:F,zone:H.zone,index:H.index},sa(V).text,l.replaceComponent)},Me=Fe,Ve=c?.partId===_?c:null,Z=Ve?.styleOwner,Ae=Z?a(Z.owner):null,dt=Z&&Ae?n(Z.owner):null,fo=!!(Z&&Ae&&dt),M=fo?Ae.props??{}:A,Re=fo?V=>l.replaceComponent(dt.zone,dt.index,{...Ae,props:V}):bo,ye=fo?Z.kind:Hi(P?.type,o),po=Ii(M,ye),Be=[{partKey:ye,face:gu(M,ye,Ve,f),sizeGroup:Ve?.sizeGroup??null,base:Ve?.base??BR,style:po}],Ot=noe(Be,V=>V.sizeGroup),xr=cs(Ve?.inks),Ze=(V,no)=>{let _t=M;for(let zr of Be)_t=rn(_t,zr.partKey,V,no);Re(_t)},Ir=V=>V?Ze("textStyle",V):ba({textStyle:null,role:null}),ba=V=>{let no=M;for(let _t of Be)for(let[zr,va]of Object.entries(V))no=rn(no,_t.partKey,zr,va??null);Re(no)},Dn=F==="text"||F==="textarea",{text:Nn,hidden:gr}=sa(Fe),Wr=v?.[Qee]?.label??o,ya=gr?i("Show {label} on the slide",{label:i(Wr)}):i("Hide {label} on the slide",{label:i(Wr)}),hl=yt("div",{className:"sf-field-head",children:[ee(Kee,{}),ee("span",{className:"sf-field-label sf-field-label--inline",children:i(Wr)}),Dn&&ee(Xee,{content:ya,children:ee(Yee,{"aria-pressed":gr,"aria-label":ya,onClick:()=>ne({text:Nn,hidden:!gr}),children:gr?ee(OR,{name:"eye-off",size:14}):ee(OR,{name:"eye",size:14})})})]}),Sa=!z&&$,zd=!!F&&(yO(v)||z||gr||!$),xl=gu(M,ye,Ve,f),$d=xl.kind==="role"?xl.role:null,wa=Qg(po)??w1($d),iC=Br(g.saved,g.old),z5=Object.entries(po).filter(([V,no])=>V!=="role"&&V!=="textStyle"&&no!==void 0).length,$5=()=>{let V=M;for(let no of Be){let{role:_t,textStyle:zr}=no.style;V=t1(V,no.partKey),_t&&(V=rn(V,no.partKey,"role",_t)),zr&&(V=rn(V,no.partKey,"textStyle",zr))}Re(V)},Ca=wa,G5=C1(Be[0].style),j5=Ca?iC.find(V=>V.id===Ca)?.name??Ca:"",K5=()=>{w(!1),Ca&&(g.write(v1({saved:g.saved,old:g.old,styleId:Ca,values:Ib(Be[0].style)}),!0),$5())};return yt(ioe,{sectionName:E?.label??P.type,onBack:t,tabs:V=>ee(Vt,{motion:_e,body:V}),textEditor:y("words")?ee("div",{ref:b,className:"sf-part-text",children:zd?ee(fR,{text:Nn,onTextChange:V=>ne(Dn?{text:V,hidden:gr}:V),multiline:Jf(F),markup:F!=="plainText",styled:!1,style:Be[0].style,base:Be[0].base,setValue:ba,colors:xr,placeholder:Fy(GO(v))??void 0,ariaLabel:i(Wr),head:hl,typedOnCanvas:d===_}):F?Dn?hl:null:ee(zee,{field:v,name:o,value:Me,onChange:ne,id:`sf-part-${e}-${o}`})}):void 0,children:[Q&&y("sourceNote")&&ee(yu,{source:Q,slug:Vs(A),menuId:mu(A)}),Sa&&ee(ER,{style:y("style")?{value:wa??"",options:AR(iC),onChange:V=>Ir(V||null),changed:z5>0,onEditStyles:r,onUpdateStyle:Ca&&G5?()=>w(!0):void 0}:void 0,font:y("font")?{value:po.font??"",styleValue:Mn(Be[0].base.fontKey)?.label,options:$r.map(V=>({label:V.label,value:V.key})),onChange:V=>Ze("font",V||null)}:void 0,italic:y("italic")?{value:po.italic,styleValue:uoe(u,wa),onChange:V=>Ze("italic",V??null)}:void 0,cells:pu(Be[0].style,Be[0].base,ba,Iu(T)).filter(V=>y(V.key)),align:y("align")?poe(po,Be[0].base.align,Iu(T),Ze):void 0,letterCase:y("letterCase")?{value:po.case??"",styleValue:Be[0].base.case,onChange:V=>Ze("case",V||null)}:void 0}),C&&Ca&&ee(uR,{styleName:j5,onCancel:()=>w(!1),onConfirm:K5}),Sa&&Ot===null&&y("fixedSizeHint")&&ee(DR,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),MR(loe,V=>y(V)&&(V==="words"||(V==="sourceNote"?!!Q:V==="fixedSizeHint"?Sa&&Ot===null:Sa)))&&ee(pn,{})]})}function poe(e,o,t,r){let a=eoe("align",t),n=a1(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function uoe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var BR={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as qt,jsxs as zy,Fragment as Soe}from"react/jsx-runtime";import{useCallback as woe,useRef as Coe,useState as Ki}from"react";import{InspectorIconButton as voe}from"efficient-easel/chrome";import{useEasel as koe}from"efficient-easel/easel";import{PopupMenu as Toe,PopupMenuItem as Poe,PopupMenuLabel as Pu}from"efficient-shell/ui";import{CopyToPageIcon as Eoe}from"efficient-easel/icons";import{useEaselSession as Ooe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as _oe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Aoe}from"efficient-easel/draw";import{currentEaselSession as moe}from"efficient-easel/screen/lib/session";var hoe={general:!0,commerce:!0,service:!0};function By(e){let o=e?.sets;return o?Object.fromEntries(mC.map(t=>[t,o.includes(t)])):hoe}function Dy(e=moe()){return By(e.blocks)}import{isBackendError as qs}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as YR}from"efficient-easel/screen/lib/session";var Su=Tc(),Ny=Su.set;function wu(e,o){Ny(e,o)}function Cu(e,o){let t=Su.get(e);Ny(e,o??(t==="live"?"changed":t))}function vu(e,o){Ny(e,o??"live")}function UR(e){return Su.get(e)}function WR(e){return Su.use(e)}function zR(e,o){return e==="live"&&o?"changed":e}function My({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?i("Changes not live yet"):e==="never"?i("Never published"):r?i("Header and footer not live yet"):e==="live"?i("Everything is live"):null;return{label:i("Publish"),tooltip:e==="never"?i("Put this page on your site"):i("Put your changes on your site"),status:s,quiet:n?{label:i("Published"),reason:i("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function $R(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var GR="SharedSection",xoe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Gi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},ji=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function jR(e){if(e?.type!==GR)return null;let o=e.props?.section;return typeof o=="string"&&xoe.test(o)?o.toLowerCase():null}function KR(e){let o=[];for(let t of Gi(e)){let r=jR(t),a=ji(t);r&&a&&o.push({refId:a,section:r})}return o}function ku(e){let o=Gi(e)[0];return o&&typeof o=="object"&&ji(o)?o:null}function Ioe(e,o){return{type:GR,props:{id:e,section:o}}}function VR(e,o){let t=new Map,r=new Set,a=!1,n=Gi(e).map(s=>{let l=jR(s),d=ji(s);if(!l||!d||r.has(l))return s;let c=ku(o.get(l)),f=ji(c??void 0);return!c||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:d,reference:s}),a=!0,c)});return{working:a?{...e,content:n}:e,held:t}}function qR(e,o,t){let r=new Map,a=!1,n=Gi(e).map(s=>{let l=ji(s),d=l?o.get(l):void 0,c=d?t.get(d.section):void 0;if(!d||!c||r.has(d.section))return s;let f=Gi(c).slice(1),u=ku(c);return r.set(d.section,u===s?c:{...c,content:[s,...f]}),a=!0,d.reference??Ioe(d.refId,d.section)});return{page:a?{...e,content:n}:e,docs:r}}function Wy(e){return!!(e?.publish&&e.liveState)}function goe(e,o){if(!Wy(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function boe(e,o){return async(t,r)=>{try{await i0()}catch(a){throw new Error(i("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?ff({state:"live",changes:[]}):Or(0),{version:r??null}}}function Uy(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(wu(n.id,n.live),gT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(d=>(Cu(a,d.live),bT(a,d.videoFrames),Or(),d)),rereadVersion:e.version?a=>e.version(a):void 0,publish:Wy(t)?boe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(vu(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function yoe(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,d=new Map,c=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,I=()=>{if(!n)return!1;let O=UR(n.id);return O==="changed"||O==="never"||O===void 0&&l},g=O=>{p={...p,...O,docId:n?.id??null,unpublished:I(),sections:[...f.values()]};for(let D of h)D()},C=(O,D,v)=>{D?f.set(O,{section:O,title:d.get(O)?.title??"",problem:D,holder:v}):f.delete(O)},w=O=>O&&typeof O=="object"&&!Array.isArray(O)?O:{},T=O=>s.has(O),y=()=>new Map([...d].map(([O,D])=>[O,D.layout])),b=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,P=(O,D,v,_)=>{let A=w(D);d.set(O,{layout:A,version:v,savedJson:JSON.stringify(A),title:_})},H={state:()=>p,subscribe:O=>(h.add(O),()=>{h.delete(O)})},E={sectionOf:O=>c.get(O)?.section??null,heldElsewhere:O=>{let D=c.get(O)?.section;return!!(D&&f.get(D)?.problem==="lock")},adopt:(O,D)=>{P(D.id,D.layout,D.layout_updated_at,D.title),c.set(O,{section:D.id,refId:b()}),u.set(D.id,D.used_on),g({})},place:O=>{if([...c.values()].some(_=>_.section===O.id))return null;let D=ku(w(O.layout)),v=typeof D?.props?.id=="string"?D.props.id:null;return!D||!v||!D.type?null:(P(O.id,O.layout,O.layout_updated_at,O.title),c.set(v,{section:O.id,refId:b()}),u.set(O.id,O.used_on),D)},usedOn:O=>u.get(O)??null,learn:O=>{for(let D of O){u.set(D.id,D.used_on);let v=d.get(D.id);v&&(v.title=D.title);let _=f.get(D.id);_&&f.set(D.id,{..._,title:D.title})}g({})}},U=async(O,D)=>{for(let[v,_]of O){let A=d.get(v),F=JSON.stringify(_);if(!(!A||F===A.savedJson||f.get(v)?.problem==="lock"))try{let z=await e.save(v,{layout:_},{version:A.version,clientId:D??""});Cu(v,z.live),A.layout=_,A.version=z.version,A.savedJson=F,C(v,null)}catch(z){qs(z,"changed-elsewhere")?C(v,"conflict"):qs(z,"lock-taken")?C(v,"lock",z.holder??void 0):C(v,"save")}}O.size&&Or(),g({})};return{resolve:async O=>{if(yy(O===Mt?null:H),ax(O===Mt?null:E),d=new Map,c=new Map,f=new Map,u=new Map,O===Mt)return t.resolve(O);let D=!1,[v,_]=await Promise.all([t.resolve(O),e.load({slug:Mt,...o}).catch(()=>(D=!0,null))]);if(_&&!Kl(v?.layout)){wu(_.id,_.live);let Q=w(_.layout);n={id:_.id,layout:Q,version:_.version,savedJson:""}}else n=null;if(l=!1,!v)return g({conflict:null,saveFailed:!1,loadFailed:D}),v;let A=w(v.layout),F=KR(A),z=await Promise.all(F.map(Q=>e.load({id:Q.section,...o}).catch(()=>null)));F.forEach((Q,Fe)=>{let Oe=z[Fe];Oe?(wu(Oe.id,Oe.live),P(Q.section,Oe.layout,Oe.version,"")):(d.delete(Q.section),f.set(Q.section,{section:Q.section,title:"",problem:"load"}))});let $=VR(A,y());if(c=$.held,!n)return c.size&&s.add(v.id),g({conflict:null,saveFailed:!1,loadFailed:D}),c.size?{...v,layout:$.working}:v;let X=uT($.working,n.layout);return n.savedJson=JSON.stringify(rx(X,n.layout).chrome),s.add(v.id),g({conflict:null,saveFailed:!1,loadFailed:!1}),{...v,layout:X}},saveLayout:async(O,D,v,_)=>{if(!T(O))return t.saveLayout(O,D,v,_);let A=n,F=A?rx(D,A.layout):{page:D,chrome:null},z=qR(F.page,c,y()),$=await t.saveLayout(O,z.page,v,_);if(await U(z.docs,_),!A)return $;let X=JSON.stringify(F.chrome);if(!F.chrome||X===A.savedJson||p.lockHolder)return $;try{let Q=await e.save(A.id,{layout:F.chrome},{version:A.version,clientId:_??""});Cu(A.id,Q.live),Or(),A.layout=F.chrome,A.version=Q.version,A.savedJson=X,l=!0,g({conflict:null,saveFailed:!1})}catch(Q){qs(Q,"changed-elsewhere")?g({conflict:Q.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):qs(Q,"lock-taken")?g({lockHolder:Q.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):g({saveFailed:!0})}return $},publish:t.publish?async(O,D)=>{let v=await t.publish(O,D),_=n;if(_&&T(O)&&!a&&e.publish&&I()&&!p.lockHolder){let A=await e.publish(_.id,_.version?{version:_.version}:void 0);vu(_.id,A.live),A.version!==null&&(_.version=A.version),l=!1,g({})}if(T(O)&&!a&&e.publish)for(let[A,F]of d){if(f.get(A)?.problem==="lock")continue;let z=await e.publish(A,F.version?{version:F.version}:void 0);vu(A,z.live),z.version!==null&&(F.version=z.version)}return v}:void 0,lock:r?{claim:async(O,D,v)=>{let _=await r.claim(O,D,v);if(!T(O))return _;let A=n;if(A)try{await r.claim(A.id,D,!1),p.lockHolder&&g({lockHolder:null})}catch(F){qs(F,"lock-taken")&&g({lockHolder:F.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let F of d.keys())try{await r.claim(F,D,!1),f.get(F)?.problem==="lock"&&C(F,null)}catch(z){qs(z,"lock-taken")&&C(F,"lock",z.holder??void 0)}return d.size&&g({}),_},release:async(O,D)=>{if(await r.release(O,D),!T(O))return;let v=n;v&&!p.lockHolder&&await r.release(v.id,D).catch(()=>{});for(let _ of d.keys())f.get(_)?.problem!=="lock"&&await r.release(_,D).catch(()=>{})}}:void 0,pinnedChrome:H}}function Tu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:Vk(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function BDe(e,o,t){return e.update(o,qk(t))}function DDe(e,o=to(),t=Dy(),r={}){let a=YR(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,d=a&&t.commerce&&t.service,c=!!r.editsPinnedInPlace&&d,f=Wy(o.site)?o.site:void 0,u=Tu(o.pages),p=Uy(u,e,f),h=c?yoe(u,n,p,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:d,editsPinnedInPlace:c,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...p,...XR(p.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:goe(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function NDe(e,o=to(),t=Dy()){let r=YR(o),a=o.templates,n=a?Tu(a.pages(e)):{list:()=>Promise.reject(new Error(Hy)),load:()=>Promise.reject(new Error(Hy)),save:()=>Promise.reject(new Error(Hy))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,editsPinnedInPlace:!1,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...Uy(n,void 0),...XR(Uy(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function XR(e){return{resolve:o=>(yy(null),ax(null),e(o))}}var Hy="This editor's backend has no website templates.";function Loe(e,o,t){let r=_oe(e,void 0,o);return t?.(r)??r}function ZR({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Ki(!1),[d,c]=Ki(null),f=Ooe(),u=koe(E=>E.config.components),[p,h]=Ki(!1),[I,g]=Ki(null),C=Coe(null),[w,T]=Ki(null),y=woe(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{c(await to(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),b=()=>{if(s){l(!1);return}let E=C.current?.getBoundingClientRect();E&&T({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),c(null),h(!1),y(),l(!0)},P=(d??[]).filter(E=>E.slug!==o),H=async E=>{if(I)return;g(E.slug);let U=Loe(e,u,f.documentHooks?.storedNode),O=await a(()=>Roe(to(f).pages,E,U));g(null),l(!1),n?.(O?i("Duplicated to \u201C{name}\u201D",{name:E.label}):i("Couldn\u2019t duplicate the section \u2014 please retry"),O?"success":"error")};return zy(Soe,{children:[qt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:qt(voe,{buttonRef:C,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:b,children:qt(Eoe,{size:15})})}),s&&w&&qt(Toe,{portal:!0,style:{top:w.top,right:w.right},onClose:()=>l(!1),children:zy("div",{role:"menu","aria-label":i("Duplicate to page"),children:[qt(Pu,{children:i("Duplicate to page")}),p?qt(Pu,{children:i("Couldn\u2019t load pages")}):d===null?qt(Pu,{children:i("Loading\u2026")}):P.length===0?qt(Pu,{children:i("No other pages")}):P.map(E=>zy(Poe,{role:"menuitem",disabled:I!==null,onClick:()=>{H(E)},children:[qt("span",{className:"min-w-0 flex-1 truncate",children:E.label}),I===E.slug?qt("span",{className:"shrink-0 text-xs",children:i("Copying\u2026")}):E.draft&&qt("span",{className:"shrink-0 text-xs",children:i("draft")})]},E.id))]})})]})}async function Roe(e,o,t){let r=Tu(e),a=await r.load({id:o.id});if(!a)throw new Error(`Page "${o.slug}" no longer exists.`);let n=a.layout??{},s=Array.isArray(n.content)?[...n.content]:[],l=s.findIndex(d=>d?.type===Aoe);s.splice(l===-1?s.length:l,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as nle}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as sle}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as f$e,isSelectionMode as gw}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as lle}from"efficient-easel/draw/client";import{jsx as Vi,jsxs as Foe}from"react/jsx-runtime";import{SettingsDrill as Boe}from"efficient-easel/panel";import{UiIcon as Doe}from"efficient-easel/draw/client";var Noe="Not shown on the page";function Moe({part:e,onOpen:o}){return Vi(Boe,{name:i(e.label),preview:e.offPage?i(Noe):e.preview||i("Empty"),offPage:e.offPage,status:e.hidden?Vi("span",{className:"sf-entry-eye",role:"img","aria-label":i("Hidden on the page"),children:Vi(Doe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function $y(e){return e.filter(o=>!o.identifier)}function JR({parts:e,onOpen:o,heading:t=!0}){let r=$y(e);return r.length?Foe("div",{className:"sf-entries",children:[t?Vi("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>Vi(Moe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as ile,ROOT_ZONE as V2}from"efficient-easel/draw";import{HEADER_TYPE as Jo,FOOTER_TYPE as Xe,newNodeId as Hoe}from"efficient-easel/draw";function Eu(){return{type:Jo,props:{id:Hoe(Jo)}}}var QR=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterPayment",label:"Payment Logos"},{type:"FooterGroup",label:"Footer Box"}],Uoe=QR.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Woe="FooterGroup",eF="blocks";function oF(e){return e===Xe?QR:e===Woe?Uoe:null}function Ou(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...R0}),e("FooterPayment",{...xf})]}function Gy(e){switch(e?.type){case Ye:case We:return i("On every page");case Jo:case Xe:return i("On every page \xB7 old style");default:return null}}var tF=()=>null,rF=()=>i("Changed on every page");function _u(e,o){let t=pk(e,o);if(t)return t;let r=lT(e,o);if(!r)return null;let a=r.group===Ye;return r.why==="type"?a?i("The header cannot take another one of these"):i("The footer cannot take another one of these"):a?i("The header holds at most 3 sections"):i("The footer holds at most 6 sections")}import{jsx as Tm,Fragment as Wse,jsxs as zse}from"react/jsx-runtime";import{useState as $se}from"react";import{createNode as Gse,newId as jse}from"efficient-easel/data";import{useEasel as Kse}from"efficient-easel/easel";import{Banner as Vse,Button as xw}from"efficient-shell/ui";import{useScreenDocument as qse}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as zoe}from"efficient-easel/data";import{hiddenKeyOf as $oe}from"efficient-easel/screen/lib/content/view-hide";var Au="Flex",Goe={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},joe={FooterPayment:"PaymentLogosBlock"},Koe=e=>{let{id:o,...t}=e;return t},aF=e=>typeof e=="string"?e:"",Ys={sm:12,md:13,lg:15},nF={sm:{mark:16,words:Ys.sm},md:{mark:20,words:Ys.md}},Voe="md",sF=1.5,qoe={size:13,lineHeight:sF,width:280},Yoe=14,Xoe=40,Zoe=e=>e==="center"||e==="right"?e:"left";function Joe(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=q(e[r]);n&&(o[a]=n)}return o}function Qoe(e,o,t){let r=t(e,Koe(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:lF(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=wv(e,r.props);return a===r.props?r:{...r,props:a}}function lF(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let[n,s]of Object.entries(a))zoe(s)&&(a[n]=lF(s,o,t));return{...r,props:a}})}function iF(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=j(Goe,e.type)??j(joe,e.type);if(n)return[Qoe(n,r,o)];switch(e.type){case"FooterLogo":{let s=Zoe(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Tk*((q(r.widthPct)??100)/100)),href:"/",align:s,...Joe(r)}),d=aF(r.tagline).trim();return d?[l,o("Text",{text:d,tone:"dim",align:s,_partStyles:{text:{...qoe}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&$e(Ys,r.size)?r.size:Voe;return[o("Text",{text:aF(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Ys[s],lineHeight:sF}}})]}case"FooterDivider":{let s=q(r.thickness),l=q(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[$oe("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Au,{direction:r.direction==="horizontal"?"row":"column",gap:ja("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...uh,content:s.flatMap(l=>iF(l,o,t))})]}default:return[]}}function qi(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Au,{direction:"row",wrap:!0,share:"equal",gap:Xoe,content:f}),s=[],l=[];for(let f of a){let u=iF(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...u);continue}u.length<=1?l.push(...u):l.push(o(Au,{direction:"column",gap:Yoe,align:"stretch",...uh,content:u}))}(l.length||!s.length)&&s.push(n(l));let d=o(Au,{direction:"column",content:[o("LegalLineBlock")]}),c=aT(We,t,[...s,d]);return{...c,props:{...c.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{isNodeList as Hse}from"efficient-easel/data";import{readHidable as ote}from"efficient-easel/draw";function Lu(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),l=r.find(d=>d.key===s);l||(l={key:s,name:t(a),items:[]},r.push(l)),l.items.push({item:a,index:n})}),r}function SNe(e){return ete[Yi(e)]}var ete={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function Yi(e){if(e<=1)return 1;if(e<=4)return e;let o=t=>e%t||t;return o(4)>=o(3)?4:3}var cr=oe,fr=He;function bn(e){if(e.theme)return xo(e.theme);let o=e.site?.themePresets;return o?xo({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function tte(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var cF=new Set(["id"]),gn={},fF=[],rte={ProductGrid:["ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductRef","ProductSpecs"],Events:[],Collections:["CollectionCard"],GalleryB:["GalleryItem"],ContactRouting:[],ReviewForm:[],AppointmentBooking:["BookingBox"],Reviews:["RatingBlock"],CheckoutCTA:[],AlloyWheelsListing:["ProductBuy","ProductColour","ProductEyebrow","ProductName","ProductPicture","ProductPrice","ProductSpecs"],SpecTable:["EuTyreLabelBlock","WheelDiagram"]},ate=Object.keys(rte),Xi=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ProcessSteps",...ate,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Countdown","FeaturedCover","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function Co(e){for(let[o,t]of Object.entries(e)){if($e(gn,o)&&j(gn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);gn[o]=t}}function da(e){return j(gn,e)}function nte(e){return $e(gn,e)&&fF.includes(e)}function pF(e,o=Xi){return $e(gn,e)&&(o.includes(e)||nte(e))}function LNe(e){let o=j(kr,e);if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var jy=e=>ote(e),Qe=e=>jy(e).text.trim()!=="";function ste(e){if(e.includes("=="))return e;let o=e.indexOf("/"),t=o===-1?e:e.slice(0,o),r=t.trim();if(!r)return e;let a=t.indexOf(r);return`${t.slice(0,a)}==${r}==${t.slice(a+r.length)}${o===-1?"":e.slice(o)}`}var lte=e=>e==="heading"?jr():e==="eyebrow"?vr():{};function ite(e,o,t,r){let a={...e._partStyles?.text??{},...o??{},...t??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function dte(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?j(e.map,t):void 0)??e.fallback}}function dF(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,d,c]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=c?c(t[l],t,a):t[l];f===void 0?delete n[d]:n[d]=f,r(l,d,f===void 0)}return n}function cte(e){let o=new Set([...cF,"headPlacement","_partStyles",...Object.keys(e.drop??{}),...Object.keys(e.reads??{})]),t=a=>{for(let n of a??[])o.add(typeof n=="string"?n:n[0])},r=a=>{for(let n of a)switch(n.kind){case"text":case"image":o.add(n.key),n.kind==="image"&&n.alt&&o.add(n.alt);break;case"button":o.add(n.key),o.add(n.href),typeof n.variant=="object"&&o.add(n.variant.key);break;case"list":o.add(n.key);break;case"group":case"block":t(n.box),r(n.parts??[]);break;case"core":if(n.keep!=="rest"&&n.keep.forEach(s=>o.add(s)),Object.keys(n.rename??{}).forEach(s=>o.add(s)),n.derive?.reads.forEach(s=>o.add(s)),typeof n.slots!="function")for(let s of Object.values(n.slots??{}))for(let l of s)"kind"in l&&o.add(l.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var Ky=e=>mv(e.headPlacement)==="own-box";function fte(e){return Ky(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function pte(e,o){let t=e[o];return Array.isArray(t)&&t.some(r=>!!r&&typeof r=="object"&&typeof r.type=="string")?"already on the Box path: its items draw from a filled card template":void 0}function ute(e){let o=new Set,t=r=>{for(let a of r)if(a.kind==="group"||a.kind==="block")t(a.parts??[]);else if(a.kind==="core"&&a.slots&&typeof a.slots!="function")for(let[n,s]of Object.entries(a.slots))s.length>0&&s.every(l=>!("kind"in l))&&o.add(n)};for(let r of[e,...e.also??[]])t(r.parts);return[...o]}function mte(e,o,t){if(!t.press)for(let r of ute(e)){let a=pte(o,r);if(a!==void 0)return a}}function Xs(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:fte(r))??mte(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],d=new Set,c=(b,P)=>{s.push({key:b,home:P}),d.add(b)},f=r._partStyles??{},u=cte(o),p=0,h=(b,P)=>({type:b,props:{...P,id:`${n}~${b}-${++p}`}}),I=(b,P,H,E,U,O,D)=>{if(U){for(let _ of b??[]){let A=typeof _=="string"?_:_[0];H[A]!==void 0&&D(A,`nothing \u2014 the ${E} has no parts, so it is not drawn`)}return}let v=typeof P=="function"?P(r,t):P??{};return dF(b??[],v,H,(_,A,F)=>D(_,F?`nothing \u2014 the old value draws nothing (${E}: no ${A})`:`${O}${E}: ${A}`),t)},g=b=>$n(b,P=>`${n}~${P}-${++p}`),C=(b,P,H)=>{let E=b.of?b.of(P):Array.isArray(P[b.key])?P[b.key]:[],U=typeof b.props=="function"?b.props(r,t):b.props??{},O=E.map((F,z)=>{let $=F??{},X=b.item?.($,z,r)??{},Q=w(X.reverse?[...b.parts].reverse():b.parts,$,!1,`item ${z+1}: `);return b.flat?X.props?Q.map(Fe=>({...Fe,props:{...Fe.props,...X.props,id:Fe.props.id}})):Q:[h(cr,{name:`${b.name} ${z+1}`,...U,...X.props??{},[fr]:Q})]});if(b.groups){let F=b.groups;return H(b.key,E.length?`one Box per item (${E.length}), in a Box per group`:"nothing \u2014 the list is empty"),Lu(E.map(z=>z??{}),F.of,F.of).map((z,$)=>{let X=z.items.map(ge=>ge.item),Q=F.parts?w(F.parts,F.head?.(X,r)??{},!1,`group ${$+1}: `):[],Fe=z.items.map(ge=>O[ge.index]),Oe=F.perRow?.(X.length,r),ze=Number.isInteger(Oe)&&Oe>=1?Oe:1,Ke=[];if(F.perRow&&ze<Fe.length)for(let ge=0;ge*ze<Fe.length;ge++)Ke.push(Fe.slice(ge*ze,(ge+1)*ze).flat());return h(cr,{name:`${F.name} ${$+1}`,...F.props??{},[fr]:[...Q,h(cr,{name:`${F.itemsName} ${$+1}`,...F.itemsProps?.(X.length,r)??{},[fr]:Ke.length?Ke.map((ge,Te)=>h(cr,{name:`${F.rowName??`${F.itemsName} row`} ${Te+1}`,...F.rowProps??{},[fr]:ge})):Fe.flat()})]})})}let D=b.perRow?.(r),v=b.perRow?Number.isInteger(D)&&D>=1?D:1:0;if(H(b.key,(E.length?b.flat?`each item's parts (${E.length} items), in order`:`one Box per item (${E.length}), its parts inside`:"nothing \u2014 the list is empty")+(v&&E.length?`, in rows of ${v}`:"")),!v)return O.flat();let _=typeof b.rowProps=="function"?b.rowProps(r,t):b.rowProps??{},A=[];for(let F=0;F*v<O.length;F++){let z=O.slice(F*v,(F+1)*v).flat(),$=b.rowFiller?v-O.slice(F*v,(F+1)*v).length:0;A.push(h(cr,{name:`${b.rowName??`${b.name} row`} ${F+1}`,..._,[fr]:[...z,...Array.from({length:$},(X,Q)=>h(cr,{name:`Empty ${Q+1}`,...b.rowFiller,[fr]:[]}))]}))}return A},w=(b,P,H,E)=>{let U=[],O=(v,_)=>H?c(v,_):void 0,D=v=>H?f[v]:void 0;for(let v of b)if(!(v.when&&!v.when(r,H?void 0:P)))switch(v.kind){case"text":{let _=jy(P[v.key]);if(!_.text.trim()&&!(H&&t.press&&o.pressKeepsEmpty?.includes(v.key))){O(v.key,"nothing \u2014 empty words draw nothing, so no block");break}let A=lte(v.role??"body"),{_partStyles:F,...z}=A,$=ite(A,v.styleFrom?{...v.style,...v.styleFrom(r,t)}:v.style,D(v.key),v.props?.align);U.push(h("Text",{text:v.mark==="accentLead"?ste(_.text):v.mark==="accentItalic"?yl(_.text):_.text,...z,...v.props??{},...$,..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Text block: its words${_.hidden?", hidden":""}`);break}case"button":{let _=jy(P[v.key]);if(!_.text.trim()){O(v.key,"nothing \u2014 no words, no button"),O(v.href,"nothing \u2014 no button to link"),typeof v.variant=="object"&&O(v.variant.key,"nothing \u2014 no button to style");break}let A=typeof P[v.href]=="string"&&P[v.href]?P[v.href]:"#",F={...v.style??{},...D(v.key)??{}};U.push(h("ButtonBlock",{label:_.text,href:A,...typeof v.props=="function"?v.props(P,t):v.props??{},...dte(v.variant,P),...Object.keys(F).length?{_partStyles:{label:F}}:{},..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Button block: its words`),O(v.href,`${E}Button block: its link`),typeof v.variant=="object"&&O(v.variant.key,`${E}Button block: its Style`);break}case"image":{let _=P[v.key];if(typeof _!="string"||!_){O(v.key,"nothing \u2014 no picture, no block"),v.alt&&O(v.alt,"nothing \u2014 no picture to describe");break}let A=v.alt&&typeof P[v.alt]=="string"?P[v.alt]:"";U.push(h("ImageBlock",{src:_,alt:A,...v.props??{}})),O(v.key,`${E}Image block: its picture`),v.alt&&O(v.alt,`${E}Image block: its alt text`);break}case"list":{U.push(...C(v,P,O));break}case"group":{let _=w(v.parts,P,H,E),A=I(v.box,v.props,P,`${v.name} Box`,!_.length&&!v.keepEmpty,E,O);A&&U.push(h(cr,{name:v.name,...A,[fr]:_}));break}case"block":{let _=v.parts?w(v.parts,P,H,E):[],A=I(v.box,v.props,P,`${v.type} block`,!!v.parts&&!_.length&&!v.keepEmpty,E,O);A&&U.push(h(v.type,{...A,...v.slot?{[v.slot]:_}:{}}));break}case"core":{let _=v.as??e.type,A={...v.headless?{}:{headPlacement:"own-box"},...v.props??{}},F=v.keep==="rest"?Object.keys(P).filter($=>!u.has($)&&!($ in A)):v.keep;for(let $ of F)P[$]!==void 0&&(A[$]=P[$],O($,`the ${_} block inside the Box`));if(v.keep==="rest"){for(let X of Object.keys(v.props??{}))P[X]!==void 0&&!u.has(X)&&O(X,`nothing \u2014 the ${_} block inside the Box has the row's own value`);P.headPlacement!==void 0&&O("headPlacement",`the ${_} block inside the Box: own-box`);let $=Object.fromEntries(Object.entries(f).filter(([X])=>!u.has(X)));Object.keys($).length&&(A._partStyles=$)}for(let[$,X]of Object.entries(v.rename??{}))P[$]!==void 0&&(A[X]=P[$],O($,`the ${_} block inside the Box: ${X}`));if(v.derive){Object.assign(A,v.derive.props(P,t));for(let $ of v.derive.reads)P[$]!==void 0&&O($,`the ${_} block inside the Box`)}let z=typeof v.slots=="function"?v.slots(P,t):v.slots??{};for(let[$,X]of Object.entries(z))A[$]=X.flatMap(Q=>"kind"in Q?C(Q,P,O):g([Q]));U.push(h(_,A));break}}return U},T=(b,P)=>{let H=P===0?"Box":`${b.name} Box`,E=w(b.parts,r,!0,P===0?"":`${H}: `),U=typeof b.boxProps=="function"?b.boxProps(r,t):b.boxProps??{},O=dF(b.box??[],U,r,(D,v,_)=>c(D,_?`nothing \u2014 the old value draws nothing (${H}: no ${v})`:`${H}: ${v}`),t);return{type:cr,props:{name:b.name,...O,[fr]:E,id:tte(n,P)}}},y=[o,...o.also??[]].map(T);r._partStyles!==void 0&&c("_partStyles","each old part's style moved to its new part");for(let[b,P]of Object.entries(o.reads??{}))r[b]!==void 0&&c(b,P);for(let[b,P]of Object.entries(o.drop??{}))b in r&&(l.push({key:b,why:P}),d.add(b));for(let b of Object.keys(r))cF.has(b)||d.has(b)||l.push({key:b,why:"not in the row \u2014 not carried"});return{node:y[0],nodes:y,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function uF(e,o=fF,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?j(gn,a.type):void 0;if(!s)return;let l=Xs(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as yte,BLOCK_SIZE_KEYS as Ste,parseBlockWidthFit as Fu,phoneKey as hF,parseTextFit as Ru,tabletKey as xF,viewKeyAt as IF}from"efficient-easel/draw";import{sideLengthAt as wte}from"efficient-easel/screen/lib/content/length-units";import{VIEW_DESKTOP_MIN as hte,VIEW_TABLET_MIN as xte}from"efficient-easel/screen/lib/content/view-tiers";var Dr={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},lt=Dr,Ite=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),gte=String.raw`(function (doc) {
6
+ if (doc.__sfFitWords) return;
7
+ var win = doc.defaultView;
8
+ var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
9
+ // Body text a block asked to shrink (its Text group's Shrink), beside
10
+ // the headings: what this script may fit at all. modeOf() decides each one.
11
+ var SHRINK_BODY = ${JSON.stringify(Ite([lt.fit,lt.fitTablet,lt.fitPhone]))};
12
+ var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
13
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Gr};
14
+ var TABLET_MIN = ${xte}, DESKTOP_MIN = ${hte};
15
+
16
+ // A block's own answer (lib/content/block-size, the wrapper's attributes):
17
+ // the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
18
+ // phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
19
+ // in a Box, marked edge; 720 outside one) the tablet's where it has one;
20
+ // under it the phone's, else the tablet's, else the desktop's. With no
21
+ // tablet answer the phone's is read under 800, as before (the edge moves with
22
+ // F1). With none, a heading shrinks and body text wraps, as always.
23
+ // A holder with any tablet attribute takes the three views (its line and 1100)
24
+ // for its fit AND its floor together; one with none keeps the 800 edge.
25
+ var TABLET_ATTRS = [${JSON.stringify(lt.fitTablet)}, ${JSON.stringify(lt.minTablet)}];
26
+ function own(el, attr, tabletAttr, phoneAttr) {
27
+ var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
28
+ if (!holder) return null;
29
+ var w = win.innerWidth, d = holder.getAttribute(attr);
30
+ if (w >= DESKTOP_MIN) return d;
31
+ var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
32
+ if (w < (holder.hasAttribute(${JSON.stringify(lt.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
33
+ if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
34
+ return (w < PHONE_BELOW && p) || d;
35
+ }
36
+ function modeOf(el) {
37
+ var mode = own(el, ${JSON.stringify(lt.fit)}, ${JSON.stringify(lt.fitTablet)}, ${JSON.stringify(lt.fitPhone)});
38
+ if (mode === "wrap" || mode === "shrink") return mode;
39
+ // One line and Shorten (stored "ellipsis", which cuts its words with "..."):
40
+ // the block keeps its words at their set size, nothing shrinks.
41
+ if (mode === "line" || mode === "ellipsis") return "wrap";
42
+ return el.matches(SELECTOR) ? "shrink" : "wrap";
43
+ }
44
+ function floorOf(el, set) {
45
+ var raw = own(el, ${JSON.stringify(lt.min)}, ${JSON.stringify(lt.minTablet)}, ${JSON.stringify(lt.minPhone)});
46
+ var min = parseFloat(raw);
47
+ // A Min font size in vw (block-size.ts): a share of the window's width.
48
+ if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
49
+ return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
50
+ }
51
+
52
+ function measure(el) {
53
+ var widest = 0, current = 0, last = null, split = false, lastBlock = null;
54
+ function blockOf(n) {
55
+ for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
56
+ var d = win.getComputedStyle(p).display;
57
+ if (d.indexOf("inline") !== 0 && d !== "contents") return p;
58
+ }
59
+ return el;
60
+ }
61
+ function close() { if (current > widest) widest = current; current = 0; last = null; }
62
+ var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
63
+ while ((node = walker.nextNode())) {
64
+ if (node.nodeType === 1) {
65
+ if (node.tagName === "BR" || node.tagName === "WBR") close();
66
+ continue;
67
+ }
68
+ var block = blockOf(node);
69
+ if (block !== lastBlock) close();
70
+ lastBlock = block;
71
+ var re = /(\S+)|(\s+)/g, m;
72
+ while ((m = re.exec(node.data))) {
73
+ if (m[2]) { close(); continue; }
74
+ range.setStart(node, m.index);
75
+ range.setEnd(node, m.index + m[0].length);
76
+ var rects = range.getClientRects();
77
+ for (var i = 0; i < rects.length; i++) {
78
+ var r = rects[i];
79
+ if (r.width <= 0) continue;
80
+ current += r.width;
81
+ if (last && r.top > last.top + last.height / 2) split = true;
82
+ last = r;
83
+ }
84
+ }
85
+ }
86
+ close();
87
+ return { widest: widest, split: split };
88
+ }
89
+
90
+ function lineWidth(el) {
91
+ var cs = win.getComputedStyle(el);
92
+ return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
93
+ - parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
94
+ }
95
+
96
+ // ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
97
+ // runs before React hydrates, and React 19 in development reports ANY
98
+ // attribute that differs from what it rendered ("a tree hydrated but some
99
+ // attributes didn't match"): first our inline font-size on the hero (which
100
+ // React owns via --heading-size), then, when that moved to a data-sf-fit
101
+ // attribute, the attribute itself. So the fitted size lives only in this
102
+ // script's own stylesheet, in <head>, addressed to each heading by its
103
+ // POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
104
+ // structure changes, so the rules are rewritten in the MutationObserver
105
+ // callback, which runs before the next paint. !important so the size also
106
+ // beats a part's own inline size.
107
+ var head = doc.head || doc.documentElement;
108
+ var fitEl = doc.createElement("style");
109
+ fitEl.id = "storefront-fit-words-sizes";
110
+ head.appendChild(fitEl);
111
+ // heading -> [[element, fitted size]]: the heading and each Text part inside
112
+ // it that holds its own size (a span [data-sf-part-styled]), e.g.
113
+ // [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
114
+ // a part at its own size, and the word still breaks (card C25, Spec Table).
115
+ var fitted = new Map();
116
+
117
+ function pathOf(el) {
118
+ var parts = [];
119
+ for (var e = el; e && e.parentElement; e = e.parentElement) {
120
+ var i = 1, s = e;
121
+ while ((s = s.previousElementSibling)) i++;
122
+ parts.unshift("*:nth-child(" + i + ")");
123
+ }
124
+ return ":root>" + parts.join(">");
125
+ }
126
+ function writeRules() {
127
+ var css = "";
128
+ fitted.forEach(function (sizes, el) {
129
+ if (!el.isConnected) { fitted.delete(el); return; }
130
+ for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
131
+ });
132
+ if (fitEl.textContent !== css) fitEl.textContent = css;
133
+ }
134
+
135
+ function unfit(el) {
136
+ if (fitted.delete(el)) writeRules();
137
+ }
138
+
139
+ function fits(el) {
140
+ var m = measure(el);
141
+ return !m.split && m.widest <= lineWidth(el) + SLACK;
142
+ }
143
+
144
+ function fit(el) {
145
+ unfit(el);
146
+ if (modeOf(el) !== "shrink") return; // the block's own Wrap
147
+ if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
148
+ if (fits(el)) return;
149
+ var set = parseFloat(win.getComputedStyle(el).fontSize);
150
+ if (!set) return;
151
+ var floor = floorOf(el, set);
152
+ if (floor >= set) return;
153
+ function size(px) { return Math.floor(px * 10) / 10 + "px"; }
154
+ // The SEARCH tries sizes on the element's own style and then puts that
155
+ // attribute back byte for byte (or removes it, if it had none), so nothing
156
+ // is left for React to see. A trial in a stylesheet instead restyles the
157
+ // whole page per step: a full pass on the Hartes home took 75–160ms at 4x
158
+ // CPU that way.
159
+ // Every trial scales the heading AND each part inside it that holds its
160
+ // own size, by the same ratio, so a part keeps its proportion to the
161
+ // heading.
162
+ var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
163
+ var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
164
+ var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
165
+ function attempt(px) {
166
+ for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
167
+ }
168
+ function done() {
169
+ for (var i = 0; i < carriers.length; i++) {
170
+ if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
171
+ }
172
+ }
173
+ attempt(floor);
174
+ if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
175
+ var lo = floor, hi = set;
176
+ for (var i = 0; i < 8; i++) {
177
+ var mid = (lo + hi) / 2;
178
+ attempt(mid);
179
+ if (fits(el)) lo = mid; else hi = mid;
180
+ }
181
+ done();
182
+ fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
183
+ writeRules();
184
+ }
185
+
186
+ // What each heading measured right after we last fitted it, so the
187
+ // ResizeObserver below can tell a real change (a font swap, a rotate, a
188
+ // container that moved) from the size change our own write just caused.
189
+ var seen = new WeakMap();
190
+ function remember(el) {
191
+ var b = el.getBoundingClientRect();
192
+ seen.set(el, b.width + "x" + b.height);
193
+ }
194
+ function fitAndRemember(el) { fit(el); remember(el); }
195
+
196
+ // ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
197
+ // WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
198
+ // fitted heading, and fonts.ready resolves only after that frame is painted —
199
+ // measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
200
+ // reported here is fitted in the same frame, so the broken state is never
201
+ // drawn. It also covers a container that resizes.
202
+ var ro = new win.ResizeObserver(function (entries) {
203
+ for (var i = 0; i < entries.length; i++) {
204
+ var el = entries[i].target;
205
+ var b = el.getBoundingClientRect();
206
+ if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
207
+ fitAndRemember(el);
208
+ }
209
+ });
210
+ // Its own set, not seen: fitAndRemember has written seen by the
211
+ // time watch runs, so a seen test observed no heading at all, and a
212
+ // heading fitted in the fallback face was never fitted again when the web
213
+ // font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
214
+ var watched = new WeakSet();
215
+ function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
216
+
217
+ function fitAll() {
218
+ var els = doc.querySelectorAll(CANDIDATES);
219
+ for (var i = 0; i < els.length; i++) {
220
+ if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
221
+ else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
222
+ }
223
+ }
224
+
225
+ var queued = 0, all = false, touched = new Set();
226
+ function run() {
227
+ queued = 0;
228
+ if (all) { all = false; touched.clear(); fitAll(); return; }
229
+ var els = Array.from(touched);
230
+ touched.clear();
231
+ for (var i = 0; i < els.length; i++) {
232
+ if (!els[i].isConnected) continue;
233
+ if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
234
+ else unfit(els[i]);
235
+ }
236
+ }
237
+ function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
238
+ function scheduleAll() { all = true; schedule(); }
239
+
240
+ fitAll();
241
+ // A backstop only: a font that changes widths without changing any
242
+ // heading's box is not seen by the ResizeObserver.
243
+ if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
244
+
245
+ // …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
246
+ // heading sized to its own text (fit-content, a flex item) keeps the SAME box
247
+ // when the phone turns to 844, so nothing reports a change and it would stay
248
+ // shrunk. The probe's rotate check caught exactly that.
249
+ var lastWidth = win.innerWidth;
250
+ function onResize() {
251
+ if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
252
+ lastWidth = win.innerWidth;
253
+ scheduleAll();
254
+ }
255
+ win.addEventListener("resize", onResize);
256
+
257
+ var mo = new win.MutationObserver(function (records) {
258
+ // Positions first: a node added or removed anywhere can shift the
259
+ // nth-child path of a fitted heading, and this callback runs before paint.
260
+ if (fitted.size) {
261
+ for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
262
+ }
263
+ for (var i = 0; i < records.length; i++) {
264
+ var r = records[i];
265
+ // A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
266
+ // only a data-fit attribute moved, so every heading is measured again.
267
+ if (r.type === "attributes") { scheduleAll(); continue; }
268
+ var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
269
+ var owner = target && target.closest(CANDIDATES);
270
+ if (owner) touched.add(owner);
271
+ for (var j = 0; j < r.addedNodes.length; j++) {
272
+ var n = r.addedNodes[j];
273
+ if (n.nodeType !== 1) continue;
274
+ if (n.matches(CANDIDATES)) touched.add(n);
275
+ var inner = n.querySelectorAll(CANDIDATES);
276
+ for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
277
+ }
278
+ }
279
+ if (touched.size) schedule();
280
+ });
281
+ mo.observe(doc.body, {
282
+ childList: true,
283
+ subtree: true,
284
+ characterData: true,
285
+ attributes: true,
286
+ attributeFilter: ${JSON.stringify(Object.values(lt))},
287
+ });
288
+
289
+ doc.__sfFitWords = function stop() {
290
+ win.removeEventListener("resize", onResize);
291
+ ro.disconnect();
292
+ mo.disconnect();
293
+ if (queued) win.cancelAnimationFrame(queued);
294
+ fitted.clear();
295
+ fitEl.remove();
296
+ delete doc.__sfFitWords;
297
+ };
298
+ // For the probe and for debugging: which headings are fitted, at what size,
299
+ // and the sheet that holds it (disable it to read a heading's set size).
300
+ doc.__sfFitWords.fitted = fitted;
301
+ doc.__sfFitWords.sheet = fitEl;
302
+ // …and the two questions a block's own answer changes, for the guard
303
+ // (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
304
+ doc.__sfFitWords.modeOf = modeOf;
305
+ doc.__sfFitWords.floorOf = floorOf;
306
+ })(document);`,bte="storefront-fit-words";function mF(e){let o=e.createElement("script");return o.id=bte,o.textContent=gte,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Cte="sf-block-size",Zi=["width","minWidth","maxWidth"],Bu=e=>`${e}Unit`,ca=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,vte={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},SF={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-wide:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-wide:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-wide:max-view-desktop:basis-auto! view-wide:max-view-desktop:grow-0! view-wide:max-view-desktop:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},kte={desktop:SF.desktop,tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},Tte={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},Pte={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Ete={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},Ote="data-sf-min-width",gF={two:{desktop:"wide",phone:Dh.phone},three:Dh},_te={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Vy={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},Ate={minWidth:{desktop:Vy.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:Vy.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},Lte=["widthFit",...Zi],bF={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},qy={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},Rte={desktop:qy.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"},wF={desktop:"view-wide:min-w-0 view-wide:[&_*]:overflow-hidden view-wide:[&_*]:text-ellipsis",phone:"max-view-wide:min-w-0 max-view-wide:[&_*]:overflow-hidden max-view-wide:[&_*]:text-ellipsis"},Fte={desktop:"view-desktop:min-w-0 view-desktop:[&_*]:overflow-hidden view-desktop:[&_*]:text-ellipsis",tablet:"view-wide:max-view-desktop:min-w-0 view-wide:max-view-desktop:[&_*]:overflow-hidden view-wide:max-view-desktop:[&_*]:text-ellipsis",phone:wF.phone},CF={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},yF={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:CF.phone};function zNe(e){let o=Yy(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>Tte[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function $Ne(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=Yy(e),n=c=>o?gF.three[c]:gF.two[c],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let c of t){let f=r[c];(f==="fill"||f==="fixed")&&s[f].push(n(c)),l[c]!==void 0&&s.min.push(n(c))}let d={};for(let c of["fill","fixed"])s[c].length&&(d[Ete[c]]=s[c].join(" "));return s.min.length&&(d[Ote]=s.min.join(" ")),d}function Yy(e){let o=Lte.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?Fu(n)!==void 0:ca(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=Bu(a),s={};for(let d of t)s[IF(a,Tr(d))]=ca(e[a]?.[d]),s[IF(n,Tr(d))]=e.units?.[a]?.[d];let l=d=>wte(s,{length:a},n,Tr(d),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(Fu,e.widthFit)}}function GNe(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(_=>Ru(e.textFit?.[_])==="ellipsis"),r=o&&!t,a=r?kte:SF,n=r?Ate:Vy,s=r?Rte:qy,l=[],d={},c={},{three:f,sides:u,lengthPerSide:p,mode:h}=Yy(e),I=p("width");for(let _ of u){let A=h[_];!A||A==="fit"||(l.push(f?a[_][A]:vte[_][A]),A==="fixed"&&(d[Pte[_]]=Ue(I[_]?.value??yte.fallback,I[_]?.unit)))}for(let _ of Zi.filter(A=>A!=="width")){let A=p(_);for(let F of u){let z=A[F];if(z===void 0)continue;let[$,X]=f?n[_][F]:_te[_][F];d[$]=Ue(z.value,z.unit),l.push(X)}}let g=Ru(e.textFit?.desktop),C=Ru(e.textFit?.phone),w=_=>{let A=ca(e.minFont?.[_]);return A===void 0?void 0:e.units?.minFont?.[_]==="vw"?`${A}vw`:String(A)},T=w("desktop"),y=w("phone"),b=Ru(e.textFit?.tablet),P=b!==g||C!==void 0?b:void 0,H=w("tablet"),E=H!==T||y!==void 0?H:void 0,U=ca(e.maxWidth?.desktop),O=ca(e.maxWidth?.tablet)??U,D={desktop:U!==void 0,tablet:O!==void 0,phone:(ca(e.maxWidth?.phone)??O)!==void 0},v=(_,A,F)=>{if(A!=="line"&&A!=="ellipsis")return;let z=_==="tablet"?void 0:_,$=(X,Q)=>F||!z?X[_]:Q[z];if(A==="line"){l.push($(s,bF));return}if(l.push($(qy,bF)),l.push($(Fte,wF)),f&&!F&&_==="desktop")for(let X of["desktop","tablet"])D[X]||l.push(yF[X]);else D[_]||l.push($(yF,CF))};return P?(v("desktop",g,!0),v("tablet",P,!0),v("phone",C??P,!0)):(v("desktop",g,!1),v("phone",C??g,!1)),g&&(c[Dr.fit]=g),P&&(c[Dr.fitTablet]=P),C&&(c[Dr.fitPhone]=C),T!==void 0&&(c[Dr.min]=T),E!==void 0&&(c[Dr.minTablet]=E),y!==void 0&&(c[Dr.minPhone]=y),!r&&(P||E!==void 0)&&(c[Dr.edge]=""),l.length===0&&Object.keys(c).length===0?null:{className:[Cte,...l].join(" "),style:d,attrs:c}}function jNe(e){if(ca(e.maxWidth?.desktop)!==void 0)return!0;let o=Fu(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function KNe(e){return["desktop","tablet","phone"].some(o=>{let t=Fu(e.widthFit?.[o]);return t==="fixed"||t==="fill"||ca(e.minWidth?.[o])!==void 0})}function VNe(e){let o={};for(let t of Ste){let r=e[t],a=e[xF(t)],n=e[hF(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Bu(t),l={desktop:e[s],tablet:e[xF(s)],phone:e[hF(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var vF={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as EF}from"react/jsx-runtime";import{SITE_SIDE as Bte}from"efficient-easel/screen/lib/content/length-units";var kF="sideSpace",yn=Bte,ZNe=[{value:"box",label:"Box"},{value:yn,label:"Site"}],JNe="box",QNe="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function TF(e){return e===yn?yn:"box"}function e2e(e){return e===yn?yn:void 0}import{isNodeList as Dte}from"efficient-easel/data";var Xy=new Set(["FAQ"]);function PF(e,o){if(!Xy.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:Dte(t)}var _F={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120}},AF=new Set(Object.keys(_F));function Zy(e,o){return o?.innerPadding??j(_F,e)}var Du=e=>Zy(e)??{};var LF=new Set(["Flex","Text","Heading","ImageBlock"]),Nte=new Set(["Divider"]),Mte=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),OF=new Set(["ProductGrid"]);function Jy(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=ql({...yI(a,Vl,t),sideSpace:TF(a.sideSpace)}),s=r(a);if(!n)return s;let l=f=>EF(Ic,{className:f?`${n.className} ${f}`:n.className,style:n.style,children:s}),d=Wh(a,{atSectionLine:!0}),c=Wh(a);return d===c?l(d):EF(kk,{line:"by-box",draw:f=>l(f?c:d)})}}var u2e={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Mte.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Zy(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:sr,unitKey:$a,fallback:r,tablet:!0,siteSide:!0})};return}if(OF.has(o))return;let a=[sr.top,sr.bottom].filter(n=>e.fields!=null&&n in e.fields);if(a.length)throw new Error(`section-padding: ${o} declares its own ${a.join(" / ")} row; declare \`innerPadding: { top, bottom }\` in its meta and the one Padding row draws on its band`);e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){if(!Zy(o,e)){if(OF.has(o)){Jy(e);return}LF.has(o)||Nte.has(o)||Jy(e,o==="Flex"?t=>Ax(t.bgImage):Xy.has(o)?t=>PF(o,t):void 0,!0)}}},Hte=["Heading","Text","ImageBlock"],Ute=["LogoBlock"],m2e={name:"blockPadding",applies:(e,o,t)=>(Hte.includes(e)||Ute.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){LF.has(o)||Jy(e,void 0,!0)}};import{parseHexColor as Wte}from"efficient-shell/format";import{convertLength as zte}from"efficient-easel/screen/lib/content/length-units";var pr=(e,o,t,r)=>o===t?e:zte(e,o,t,r,{min:0,max:200,step:4}),Sn={textFit:"line",textFitPhone:"wrap"},wn={...K,[At]:""},{label:z2e,href:$2e,...$te}=vF.defaultProps,vo=$te,Cn={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},J={...bh,sectionAccent:0},Js={sectionAccent:-1},ae=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",Al.unitKey,...wE,...IE,"anchor",Pl,...fs,...fc,...tu,...cc(["widthFit",...Zi,...Zi.map(Bu)]),...Object.values(lo)],Zs="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",te={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Zs,fullWidth:Zs,pageWidth:Zs,backgroundWidth:Zs,contentWidth:Zs,contentMax:Zs},ie=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function de(e,o){let t=q(e.sectionPaddingTop)??0,r=q(e.sectionPaddingBottom)??0,a=q(e.sectionPaddingTopTablet),n=q(e.sectionPaddingBottomTablet),s=ve(e.sectionPaddingUnit),l=ve(e.sectionPaddingUnitTablet),d=ve(e.sectionPaddingUnitPhone),c=(u,p,h,I)=>{let g=q(u);if(g!==void 0)return g+pr(I,"px",d,"mobile");let C=p===void 0?{n:h,unit:s}:{n:p,unit:l};return pr(C.n,C.unit,d,"mobile")+pr(I,"px",d,"mobile")},f=(u,p,h,I,g)=>p!==void 0?{[u]:p+pr(g??I,"px",l,"tablet")}:g===void 0?{}:{[u]:pr(h,s,l,"tablet")+pr(g,"px",l,"tablet")};return{sectionPaddingTop:t+pr(o.top,"px",s,"desktop"),sectionPaddingBottom:r+pr(o.bottom,"px",s,"desktop"),...f("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...f("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:c(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:c(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var Ie=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>de(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function St(e,o){let t={};for(let[a,n]of bI)e[a]!==void 0&&(t[n]=e[a]);let r=Yl(e,Du(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var fa=e=>[...bI.map(([o,t])=>[o,t,(r,a)=>St(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>St(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>St(t,e).sectionPaddingBottom]],Gte={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},G2e=e=>o=>Qe(o.props[e])?[Gte]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:K,...o?{style:o}:{}}),Nu=e=>({kind:"group",name:"Chip",props:{...R,...Cr("main"),...Do(6,14)},parts:[pe(e,{color:"background",...W("label",12),weight:600,letterSpacing:.16})]}),RF=e=>e.background!=="transparent",jte=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},Ji={align:"right",alignPhone:"left"},Kte=(e,o,t)=>{let r=a=>jte(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},Qi=(e,o,t,r={})=>Kte(e,o,{...wn,...Ji,...r,_partStyles:{text:{...Ko,color:"labels",...t,case:Ko.case,...Ji}}}),Qs=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:bn(o)?.selected??0,FF="var(--site-surface-2)",Mu=(e,o)=>bn(o)?.themes[Qs(e.sectionAccent??0,o)],Qo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Cr(e);let a=Mu(t,r)?.[e];return a?{fillColor:a}:{}},Hu=(e,o)=>pa(e,o)>=0,BF=e=>e.startsWith("#")&&Wte(e)!==null,Uu=(e,o,t)=>{let r=e?.trim();if(r&&BF(r))return{fillColor:r};let a=Ex(r);if(a)return Cr(a);let n=r===FF?Mu(o,t):void 0;return n?{fillColor:lc(n)}:{}},Wu=e=>{let o=e?.trim();return!o||o==="transparent"||o===Mo||Ex(o)||o===FF||BF(o)?void 0:"it paints a colour that no Box Fill can hold"},pa=(e,o)=>{let t=bn(o)?.themes;return t&&RF(e)?Gv(t,Qs(e.sectionAccent,o)):-1},ua=(e,o,t)=>{let r=pa(o,t);return r>=0?r:e},Qy=(e,o)=>{let t=bn(o)?.themes,r=t?jv(t,Qs(e,o)):-1;return r>=0?r:e},vn=(e,o)=>{let t=pa(e,o);return t>=0?{sectionAccent:t}:{}},ma=(e,o)=>RF(e.props)&&pa(e.props,o)<0?[{kind:"band-preset",page:Qs(e.props.sectionAccent,o)}]:[],el=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},d=Tr(o),c=(u,p,h)=>{let I=ve(p),g=sc(u,I,"spacing",h);return g===null?null:pr(g,I,"px",d)},f=o==="desktop"?c(a,n,Go)??bf(a):c(s,l,Ht)??yf(s)??Sf(a,n);return pr(Math.min(r,f),"px",t,d)},ed=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),od=e=>({top:0,right:0,bottom:0,left:0,...e}),eS=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...R,...ed,...Qo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],so.kind,so.duration,so.delay],parts:r});import{phoneKey as pS,readHidable as uS}from"efficient-easel/draw";import{isNodeList as Ere,newId as Ore}from"efficient-easel/data";function DF(e){return Math.min(4,Math.max(2,e??3))}var q2e={eyebrow:"Label",title:"Section *heading.*"},Vte={template:yv()},NF={label:"Cards",fields:Vte,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Z2e={eyebrow:"Highlight",title:"Key *features.*"},J2e=()=>[{label:i("Feature label one")},{label:i("Feature label two")},{label:i("Feature label three")},{label:i("Feature label four")},{label:i("Feature label five")},{label:i("Feature label six")}],MF={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var qte="plain",HF=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],Yte="line",Xte={KeyFeatures:"filled"};function td(e){return j(Xte,e)??qte}function UF(e,o){return io(HF,td(o),e)}function tMe(e){return io(HF,Yte,e)}var oS="cardPlace";function nMe(e){return e[oS]==="top-line"?"top-line":""}var sMe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",lMe="data-sf-top-line",Zte=new Set(["Cards",Ft]);function iMe(e){return typeof e=="string"&&Zte.has(e)}var Jte=e=>{if(!e||typeof e!="object")return!1;let o=e,t=n=>typeof n=="number"&&n>0,r=o.width,a=n=>typeof o[n]=="number"?t(o[n]):t(r);return a("top")&&!a("right")&&!a("bottom")&&!a("left")};function dMe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Jte(e)?{...e,top:0}:e}var cMe="outsideFramedCard";function Qte(e,o){let t=e.trim();if(!zu(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function uMe(e){return e.startsWith("/")||zu(e)}function zu(e){return/^(?:https?:)?\/\//i.test(e.trim())}var rd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function WF(e,o){return Qte(e,o)?{...rd}:{}}function mMe(e){return typeof e=="string"?e.trim():""}var hMe="data-sf-box-link",zF="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",xMe="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",ere="data-sf-box-jump";function ore(e){return`sf-box-jump-${e}`}function IMe(e,o){return e===!0?Uc(o):""}function tre({box:e,lit:o,first:t}){let r=s=>s.join(`,
307
+ `),a=t(e),n=o.flatMap(t);return`
308
+ ${e} {
309
+ outline: 2px solid transparent;
310
+ outline-offset: -2px;
311
+ transition: outline-color 600ms ease-out;
312
+ }
313
+ ${r(a)} { transition: background-color 600ms ease-out; }
314
+ ${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
315
+ ${r(o)} { outline-color: var(--accent); }
316
+ ${r(n)} { background-color: var(--accent); }
317
+ ${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
318
+ `}function gMe(e){let o=`[${ere}="${e}"]`,t=`.${ore(e)}`,r=`[id="${e}"]:target`;return tre({box:o,lit:[`${r}~${o}`,`${r}~* ${o}`],first:a=>[`${a} ${t}>:first-child:not(.sf-section-anchor)`,`${a} ${t}>.sf-section-anchor:first-child+*`]})}var rre=["selected","highlighted"],$F="data-sf-card-state",CMe="pointer-events-none absolute inset-0 border border-accent",vMe="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",kMe="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",TMe="absolute inset-y-0 left-0 w-[3px] bg-accent",PMe="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",EMe="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",GF=e=>{let o=ak.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},are={[GF("muted")]:`var(${GF("fg")})`};function nre(e){return e?.selected===!0}function sre(e){return e?rre.filter(o=>e[o]===!0).join(" "):""}function OMe(e,o="frame"){let t=sre(e);return t?o==="frame"&&nre(e)?{[$F]:t,className:"relative isolate",style:{...are}}:{[$F]:t,className:"relative"}:{}}var lre={highlighted:!0},ire={},$u="badge";function _Me(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||vl(t,r)}))}function AMe(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===$u||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function LMe(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[$u]:s===a?t:""})),states:e.map((n,s)=>s===a?lre:ire)}}function RMe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function FMe(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var BMe="data-sf-card-press",jF=`${zF} appearance-none bg-transparent border-0 p-0 m-0`,DMe=`${jF} cursor-pointer`,NMe=jF;var Gu={sectionBorder:{top:0,right:1,bottom:1,left:0},...Cr("background")},dre={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},ju=e=>({direction:"row",columns:e,columnsTablet:e,...dre}),KF=(e={})=>qe($u,{...K,tag:"p",[oS]:"top-line"},e,!0),VF=(e=lv)=>{let o=iv(e);return{...o,props:{...Gu,...o.props},slots:{[He]:[...o.slots?.[He]??[],KF()]}}},tS=(e=!1)=>{let o=cv(e);return{...o,props:{...Gu,...o.props}}},cre={name:"name",time:"time",note:"note",price:"price"},fre={textStyle:"body-1",...W("body",16),weight:500,lineHeight:1.5},pre={...Ko,...W("label",12),letterSpacing:.18,lineHeight:1.5},ure={textStyle:"body-1",...W("body",14),lineHeight:1.6},mre={textStyle:"body-1",fontRole:"heading",...W("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},hre={...W("label",11),letterSpacing:.25},xre={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Ire=e=>({direction:"row",columns:e,...xre}),GMe=[...new Set([...Object.keys(ju(1)),...Object.keys(Ire(1))])],jMe=()=>{let e=cre,o={tag:"p",widthFit:"fill"};return{type:oe,props:{...R,name:"Card",justify:"between",gap:16,gapPhone:16,...Do(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Cr("surface"),shadow:!0},slots:{[He]:[KF(hre),{type:oe,props:{...R,name:"Words",gap:8,gapPhone:8},slots:{[He]:[qe(e.name,{...K,...o},fre),qe(e.time,{...se,...o},pre),qe(e.note,{...se,...o},ure)]}},qe(e.price,{...K,...o},mre)]}}};import{tabletKey as ZF}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Ku}from"efficient-easel/draw";var Vu=Gr,rS=Ku,qF=960,YF=Gr,XF={min:Vu,max:1600,step:10},qu="stackBelow";function XMe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<XF.min||e>XF.max))return Math.round(e)}var gre=e=>`sf-stack-${e}`,bre=e=>`sf-stack-${e}-gutter`,yre=e=>`sf-stack-${e}-outer`,ol=e=>`${e-.02}px`;function ZMe(e,o={}){let t=o.gutter!==!1,r=`.${gre(e)}`,a=`.${bre(e)}`,n=`.${yre(e)}`,s=[];if(e>Vu){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,d=Math.min(e,Ku);s.push(`@media (min-width:${Vu}px) and (max-width:${ol(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${Vu}px) and (max-width:${ol(d)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Ku&&s.push(`@media (min-width:${Ku}px) and (max-width:${ol(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${ol(e)}){${a}${a}{padding-inline:${nr.frame}}}`),t&&e<qF&&s.push(`@media (min-width:${e}px) and (max-width:${ol(qF)}){${a}${a}{padding-inline:${nt}}}`),e>YF&&s.push(`@media (min-width:${YF}px) and (max-width:${ol(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}function kn(e){if(e==="ProductGrid")return"shelf";let o=j(kr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var ad={standard:64,editorial:60,simple:36,essay:28,shelf:20},Sre={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function wre(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=j(kr,e);if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function Xu(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Yu.get(r);if(a)return a;let n=oB({num:e,title:o,description:t,link:!1});return Yu.set(r,n),n}var et={[qu]:rS},nS={top:0,right:0,bottom:1,left:0},ot=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Zu=(e,o,t={})=>pe(e,{...W("label",o),...t}),Ju=(e,o)=>({kind:"text",key:e,role:"heading",props:K,style:{textStyle:"heading-2",...o}}),sS=800,Cre=rS,lS=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...se,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:sS}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...W("body",o),...r,...a}}),eB={...vo,align:"right",alignPhone:"left",...Cn},aS=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:eB,style:{...Rt(e),color:"labels"}}),JF=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...K,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?vre(vr()):{},...t.style}}}}},vre=e=>e._partStyles.text??{},tl={widthFitPhone:"fill"};function iS(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...tl}):{...o,...tl}}}return{...e,parts:e.parts.map(iS)}}function kre(e,o){let t=j(Sre,e),r=t==="accent",a=Zu(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=Ju(o.title,r?{...ot("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...W("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:nS,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...R,...tl,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...R,...tl,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[JF(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...R,...tl},parts:[s,...l?[JF(o.title,`Three ranges,
319
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...R,...tl,gap:12,maxWidth:340,maxWidthPhone:sS},parts:[...o.description?[lS(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[aS(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...eB,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:aS(14).style}}}]:[]]}]}}function Qu(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Qu(t,o))}:e}function oB(e){let o=Ju(e.title,{...ot("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:nS,sectionPaddingBottom:32,...et},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...et},parts:[{kind:"group",name:"Number",props:{...R,sectionPaddingBottom:8},parts:[{...Zu(e.num,13),props:{...K,...Sn}}]},Qu(o,[e.title])]},{kind:"group",name:"Words",props:{...R,sectionPaddingBottom:4,maxWidth:360,[ZF("maxWidth")]:Cre,maxWidthPhone:sS},parts:e.description?[lS(e.description,14,void 0,{lineHeight:1.5},{[ZF("align")]:"left"})]:[]}]}}function QF(e,o){return{kind:"group",name:"Header",props:{...R,gap:16,gapPhone:16},parts:[Zu(e.num,13),Ju(e.title,o)]}}var tB=[["para",{...Rt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...W("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...W("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...W("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...W("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],Tre=e=>tB.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Pre(e){return{kind:"group",name:"Header",props:{...R,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:nS,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...R,direction:"row",align:"end",gap:24,share:"content"},parts:[Zu(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...tB.map(([o,t])=>({...Ju(e.title,t),when:r=>Tre(r)===o}))]},{kind:"group",name:"Words",props:{...R,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[lS(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[aS(13)]:[]]}]}}function em(e){return kn(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var Yu=new Map,dS={...W("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function wt(e){let o=Yu.get(e);if(o)return o;let t=wre(e),r=kn(e),a=r==="editorial"?oB(t):r==="simple"?QF(t,dS):r==="essay"?QF(t,{...W("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Pre(t):kre(e,t);return Yu.set(e,a),a}var Tn={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Mo,Stats:void 0};var nd=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),hB=e=>o=>DF(q(o.columns)??q(e.columns)),_re="inline is the head the row draws; an own-box node is skipped (`skip`)",Are={kind:"text",key:"title",role:"heading",props:K,style:{textStyle:"heading-3",...dS}},rB={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},tm=e=>{let o=lr(typeof e.background=="string"?e.background:void 0,Tn.Series);return o&&o!=="transparent"?o:void 0},om=e=>tm(e)===Mo,Lre={...R,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},aB={...R,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[pS("share")]:"content"},Rre=e=>{let o=tm(e)?1:2;return{...R,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},cS={...Rt(12),letterSpacing:.22,lineHeight:1.5},nB=e=>Qe(e.viewLabel)&&!uS(e.viewLabel).hidden,Ct=e=>uS(e).text?.trim?.()??"",rm=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Se(o)!==void 0)),mS=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),Fre=mS([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),Bre=mS([["label","Label"],["value","Value"],["body","Card body",!0]]),sd=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Ft,headless:!0,keep:s,derive:{reads:n,props:l=>nc(r(l),t)},slots:(l,d)=>({[No]:[a(l,d)]})}]}),xB=e=>Array.isArray(e.cards)?e.cards:[],sB={top:76,bottom:76,topPhone:76,bottomPhone:76},IB=e=>(Array.isArray(e.items)?e.items:[]).map(o=>rm({title:Ct(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:vl(Th(o),t),...o})),Dre=e=>IB(e).some(o=>Se(o.href)!==void 0),gB=[{key:yh.label,label:"Feature label"},{key:yh.href,label:"Link",kind:"link"}],lB=e=>UF(e.eyebrowLook,"KeyFeatures")==="filled",Nre={name:"Key Features",boxProps:(e,o)=>({...J,direction:"column",gap:44,gapPhone:32,...Qo("surface")(e,o),...nd(1,0,1,0),...de(e,sB)}),box:[...ae,...Ie(sB)],parts:[{kind:"group",name:"Heading",props:{...R,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[pS("share")]:"content"},parts:[{...Nu("eyebrow"),when:lB},{...pe("eyebrow"),when:e=>!lB(e)},Are]},sd("Cards",e=>({...R,...ju(hB(MF.defaultProps)(e))}),gB,IB,e=>tS(Dre(e)),{reads:["items"]})],drop:{...te,...ie,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},iB={top:72,bottom:72,topPhone:72,bottomPhone:72},dB=(e,o)=>({...Gu,...Qo("background")(e,o)}),cB=e=>{let o=hB(NF.defaultProps)(e);return{...R,...ju(o)}},Mre=mS([["title","Card title"],["body","Card body",!0]]),bB=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:vl(Th(o),t),title:Ct(o?.title),body:Ct(o?.body)})),yB=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(Ere(a)?t[r]=a.map(yB):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},fB=(e,o)=>{let t=fS(e)?tS(Hre(e)):VF(),r=Array.isArray(e.template)?e.template.map(yB):[t],[a]=r;return r.length===1&&a.type===oe?{...a,props:{...dB(e,o),...a.props}}:{type:oe,props:{...R,...dB(e,o),name:"Card"},slots:{[He]:r}}},fS=e=>e.cardStyle==="label-only",SB=e=>bB(e).map((o,t)=>{let r=e.items[t]?.href;return rm({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),Hre=e=>SB(e).some(o=>Se(o.href)!==void 0),pB=e=>Array.isArray(e.template)&&e.template.length===0,uB=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function wB(){let e=t=>({key:Ore("card"),title:i(t),body:i("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:i("Label"),title:i("Section *heading.*"),items:o}}var Ure={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...J,direction:"column",gap:36,gapPhone:28,...Qo("surface")(e,o),...de(e,iB)}),box:[...ae,...Ie(iB)],parts:[{...wt("Cards"),when:e=>!Ky(e)},{...sd("Cards",cB,Mre,bB,fB,{reads:["items"],keep:uB}),when:e=>!pB(e)&&!fS(e)},{...sd("Cards",cB,gB,SB,fB,{reads:["items"],keep:uB}),when:e=>!pB(e)&&fS(e)}],drop:{...te,...ie,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},Wre={name:"Recurring Columns",boxProps:(e,o)=>({...J,direction:"column",gap:60,gapPhone:60,...nd(0,0,1,0),...et,...om(e)?vn(e,o):{},...Uu(tm(e),e,o),...de(e,rB)}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>om(o)?ua(e,o,t):e],...Ie(rB)],skip:e=>Wu(tm(e)),site:(e,o)=>om(e.props)?ma(e,o):[],parts:[wt("Series"),sd("Cards",Rre,Fre,e=>xB(e).map(o=>rm({num:Ct(o.num),since:Ct(o.since),title:Ct(o.title),body:Ct(o.desc),count:Ct(o.entries),countLabel:Ct(o.entriesLabel)})),(e,o)=>({type:oe,props:{...Lre,...Qo("background",(t,r)=>om(t)&&Hu(t,r))(e,o),name:"Card"},slots:{[He]:[{type:oe,props:{...R,name:"Words",gap:16,gapPhone:16},slots:{[He]:[{type:oe,props:{...aB,name:"Top"},slots:{[He]:[qe("num",K,W("label",13),!0),qe("since",K,W("label",13),!0)]}},qe("title",{...K,tag:"h3"},{textStyle:"heading-3",...W("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),qe("body",se,{textStyle:"body-5",fontRole:"heading",...W("body",14),lineHeight:1.6})]}},{type:oe,props:{...aB,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...nd(1,0,0,0),...nB(e)?{}:{[_v]:["count","countLabel"]}},slots:{[He]:[{type:oe,props:{...R,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[pS("share")]:"content"},slots:{[He]:[qe("count",K,cS),qe("countLabel",se,cS)]}},...nB(e)?[{type:oe,props:{...R,name:"View",maxWidthPhone:266},slots:{[He]:[{type:"Text",props:{...K,text:uS(e.viewLabel).text,_partStyles:{text:{...vr()._partStyles.text,...cS}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...te,...ie,headPlacement:_re}},mB={top:60,bottom:60,topPhone:40,bottomPhone:40},zre={...R,direction:"row",columns:3,gap:40,gapPhone:16},$re={...R,gap:8,gapPhone:8,...Do(24),...nd(1,1,1,1)},Gre={name:"Document Detail Cards",boxProps:e=>({...J,direction:"column",gap:40,gapPhone:16,...nd(0,0,1,0),...de(e,mB)}),box:[...ae,...Ie(mB)],parts:[sd("Cards",zre,Bre,e=>xB(e).map(o=>rm({label:Ct(o.label),value:Ct(o.value),body:Ct(o.desc)})),(e,o)=>({type:oe,props:{...$re,...Qo("surface")(e,o),name:"Card"},slots:{[He]:[qe("label",K,{...W("label",12),lineHeight:1.5},!0),{type:oe,props:{...R,name:"Words",gap:14,gapPhone:14},slots:{[He]:[qe("value",K,{textStyle:"heading-3",...W("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),qe("body",se,{textStyle:"body-5",fontRole:"accent",...W("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...te,...ie}},CB={Cards:Ure,KeyFeatures:Nre,Series:Wre,DocMetaCards:Gre};import{phoneKey as qre}from"efficient-easel/draw";import{newId as Yre}from"efficient-easel/data";import{phoneKey as jre}from"efficient-easel/draw";import{isNode as ld}from"efficient-easel/data";var rl="cardStyle";function vB(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var am={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[jre("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},vt={table:{...am.table,listCard:vB(am.table.card)},list:{...am.list,listCard:vB(am.list.card)}},FHe=[{label:"Table",value:"table"},{label:"List",value:"list"}],BHe=e=>e==="table"||e==="list",Kre=e=>[...new Set([...Object.keys(vt.table[e]),...Object.keys(vt.list[e])])];function id(e,o,t){let r={...e};for(let a of Kre(o))delete r[a];return{...r,...structuredClone(vt[t][o])}}function Vre(e,o,t){let r=e.props??{},a=Array.isArray(r[No])?r[No]:[],n=a.findIndex(d=>ld(d)&&d.type===t);if(n<0)return e;let s=a[n],l=a.map((d,c)=>c===n?{...s,props:id(s.props??{},"listCard",o)}:d);return{...e,props:{...r,[No]:l}}}function DHe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>ld(s)&&s.type===Ft)){let s=a.map(l=>ld(l)&&l.type===Ft?Vre(l,o,t):l);return{...id(e,"items",o),[rl]:o,[r]:s}}let n=a.map(s=>{if(!ld(s)||s.type!==t)return s;let l=s.props??{},d=(Array.isArray(l[r])?l[r]:[]).map(c=>ld(c)&&c.type===t?{...c,props:id(c.props??{},"card",o)}:c);return{...s,props:{...id(l,"row",o),[r]:d}}});return{...id(e,"grid",o),[rl]:o,[r]:n}}var hS=e=>typeof e=="string"?e.trim():"";function kB(e){let o=`${hS(e.prefix)}${hS(e.value)}`,t=hS(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var EB={textStyle:"heading-2",...ot("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},xS={kind:"block",type:"Text",props:{...wn,_partStyles:{text:EB}},box:[["value","text",(e,o)=>kB(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&kB(o)!==""},TB=e=>Qe(e?.supSuffix),OB={textStyle:"body-1",fontRole:"heading",...W("body",16),lineHeight:1.5,letterSpacing:-.01},_B={color:"labels",...W("label",12),lineHeight:1.5,letterSpacing:.24},AB={...R,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[qre("share")]:"content"},LB={textStyle:"body-5",...W("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},IS=e=>lr(e.background,Tn.StatsParagraph),dd=e=>IS(e)===Mo,nm=e=>({...e,sectionAccent:e.sectionAccent??0}),Xre=(e,o)=>dd(e)?Qo("background",(t,r)=>Hu(nm(t),r))(e,o):{},Zre={name:"Stats with Text",skip:e=>IS(e)&&IS(e)!=="transparent"&&!dd(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...J,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...et,...St(e,"StatsParagraph"),...dd(e)?vn(nm(e),o):{}}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>dd(o)?ua(e,nm(o),t):e],...fa("StatsParagraph")],site:(e,o)=>dd(e.props)?ma({props:nm(e.props)},o):[],parts:[wt("StatsParagraph"),{kind:"group",name:"Stats",props:{...R,...vt.table.grid,[rl]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...vt.table.row},props:(e,o)=>({...R,...vt.table.card,...Xre(e,o)}),parts:[{...xS,when:(e,o)=>!TB(o)&&xS.when(e,o)},{kind:"group",name:"Figure",props:AB,when:(e,o)=>TB(o),parts:[xS,{kind:"text",key:"supSuffix",props:K,style:LB}]},{kind:"group",name:"Words",props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:K,style:OB},pe("sub",_B)]}]}]}],drop:{...te,...ie,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},Jre=new Set(["value","label",At]),PB={top:48,bottom:48,topPhone:48,bottomPhone:48},Qre=e=>{let o=lr(typeof e.background=="string"?e.background:void 0,Tn.Stats);return!!o&&o!=="transparent"},eae={name:"Stats",skip:e=>Qre(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Qe(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Qe(o?.[At]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!Jre.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...J,direction:"column",gap:24,gapPhone:24,...de(e,PB)}),box:[...ae,...Ie(PB)],parts:[pe("heading",{color:"labels",...W("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...R,...vt.list.grid,[rl]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>q(e.columns)??4,rowName:"Stats row",rowProps:{...R,direction:"row",share:"equal",phoneRow:2,...vt.list.row},props:{...R,...vt.list.card},parts:[{kind:"text",key:"value",props:wn,style:{textStyle:"heading-2",...W("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},pe("label",{color:"labels",...W("label",12),letterSpacing:.2})]}]}],drop:{...te,...ie,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},RB={StatsParagraph:Zre,Stats:eae};function FB(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var oae=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function BB(){let e=(o,t,r,a="")=>({key:Yre("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",i("Years in business"),i("Privately held since day one. Same two founders.")),e("==_8_==",i("Operating footprint"),i("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),i("cities")),e("\u221221==_%_==",i("Avg. weight saving"),i("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",i("Finish steps"),i("Specified in California to a 14-step protocol. No two sets are identical."))]}function tae(e){return{type:oe,props:{...R,name:"Card",...structuredClone(vt[e].listCard)},slots:{[He]:[{type:oe,props:{...AB,name:"Figure"},slots:{[He]:[qe("figure",wn,EB),qe("superscript",K,LB)]}},{type:oe,props:{...R,name:"Words",gap:4,gapPhone:4},slots:{[He]:[qe("label",{...K,widthFit:"fill"},OB),qe("body",{...K,widthFit:"fill"},_B,!0)]}}]}}}function gS(e,o,t=4){return{type:oe,props:{...R,name:"Stats",direction:"row",columns:t,...structuredClone(vt[o].items),[rl]:o},slots:{[He]:[{type:Ft,props:nc(e,oae),slots:{[No]:[tae(o)]}}]}}}var DB={heading:"Trusted by *teams worldwide*"},NB=()=>[{src:"",alt:i("Logo one")},{src:"",alt:i("Logo two")},{src:"",alt:i("Logo three")},{src:"",alt:i("Logo four")},{src:"",alt:i("Logo five")}],rae={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},e4e={label:"Logos",drawsPictures:!0,fields:rae,defaultProps:{items:[],contained:!0}};var MB={heading:"Ways to pay"},HB=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],UB=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],r4e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};var s4e={left:"justify-start",center:"justify-center",right:"justify-end"},l4e={left:"",center:"mx-auto",right:"ml-auto"},i4e={left:"",center:"text-center",right:"text-right"},aae={text:{left:"view-wide:max-view-desktop:text-left",center:"view-wide:max-view-desktop:text-center",right:"view-wide:max-view-desktop:text-right"},place:{left:"view-wide:max-view-desktop:mx-0",center:"view-wide:max-view-desktop:mx-auto",right:"view-wide:max-view-desktop:ml-auto view-wide:max-view-desktop:mr-0"},items:{left:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-start",center:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-center",right:"view-wide:max-view-desktop:justify-items-end"},justify:{left:"view-wide:max-view-desktop:justify-start",center:"view-wide:max-view-desktop:justify-center",right:"view-wide:max-view-desktop:justify-end"}},nae={text:{left:"max-view-wide:text-left",center:"max-view-wide:text-center",right:"max-view-wide:text-right"},place:{left:"max-view-wide:mx-0",center:"max-view-wide:mx-auto",right:"max-view-wide:ml-auto max-view-wide:mr-0"},items:{left:"max-view-wide:grid-cols-1 max-view-wide:justify-items-start",center:"max-view-wide:grid-cols-1 max-view-wide:justify-items-center",right:"max-view-wide:justify-items-end"},justify:{left:"max-view-wide:justify-start",center:"max-view-wide:justify-center",right:"max-view-wide:justify-end"}},sae={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},lae={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function sm(e){return e==="left"||e==="center"||e==="right"?e:void 0}function WB(e){return e==="start"?"left":e==="end"?"right":sm(e)}function iae(e,o,t){let r=sm(e)??"left",a=Lt("same",r,sm(o),sm(t)),n={};return a.tablet&&a.tablet!==r&&(n.tablet=a.tablet),a.phone&&a.phone!==r&&(n.phone=a.phone),n}function d4e(e,o,t,r,{atSectionLine:a=!1}={}){let n=iae(o,t,r),s=a?sae:aae,l=a?lae:nae;return[n.tablet?s[e][n.tablet]:"",n.phone?l[e][n.phone]:""].filter(Boolean).join(" ")}import{phoneKey as yS,readHidable as dae}from"efficient-easel/draw";var SS={contained:!1},wS=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Qe(r?.src)||Qe(r?.[o])}]}]}),bS=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},cae={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...K,align:"center"}},fae={name:"Logos",boxProps:e=>({...J,direction:"column",gap:32,...de(e,bS(e))}),box:[...ae,...Ie(bS),["bandPadding","sectionPaddingTop",(e,o)=>de(o,bS(o)).sectionPaddingTop]],parts:[cae,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:SS,slots:wS("items","alt")}],drop:{...te,...ie,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},pae={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:nv(4,"main",{sectionCorners:2})},zB={top:24,bottom:24,topPhone:24,bottomPhone:24},uae={name:"Payment Methods",boxProps:e=>({...J,direction:"column",...de(e,zB)}),box:[...ae,...Ie(zB)],parts:[{kind:"group",name:"Methods",props:{...R,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...pe("heading",{color:"labels"}),props:{...K,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[yo,br],props:e=>Qe(e[yo])?{[yo]:e[yo],...e[br]!==void 0?{[br]:e[br]}:{}}:{}},props:{...SS,look:"cards",grayscale:!1},slots:e=>({...wS("badges","label"),...Qe(e[yo])?{[No]:[Sh()]}:{}})},{kind:"group",name:"Reassurance",props:{...R,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[yS("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Qe(o?.text)),props:{...R,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[yS("share")]:"content"},item:e=>dae(e.text).hidden?{props:{_hidden:!0}}:{},parts:[pae,{kind:"text",key:"text",props:{...K,align:"center"},style:{...W("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...te,...ie,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},mae={left:"start",center:"center",right:"end"},$B=e=>WB(e.align)??"left",GB=e=>e.size==="md"?"md":"sm",jB=12,KB={name:"Payment logos",boxProps:e=>({...R,direction:"row",wrap:!0,align:"center",justify:mae[$B(e)],gap:jB,gapPhone:jB,phoneRow:2,[yS("share")]:"content"}),parts:[{kind:"text",key:"lead",props:se,styleFrom:e=>({size:Ys[GB(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[yo,br],props:e=>({logoHeight:nF[GB(e)].mark,align:$B(e),...Qe(e[yo])?{[yo]:e[yo],...e[br]!==void 0?{[br]:e[br]}:{}}:{}})},props:{...SS,look:"marks",grayscale:!1,sectionAccent:er},slots:e=>({...wS("methods","label"),...Qe(e[yo])?{[No]:[Sh()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},VB={Logos:fae,PaymentBadges:uae,FooterPayment:KB,PaymentLogosBlock:KB},qB=()=>({heading:DB.heading,items:NB()}),YB=()=>({heading:MB.heading,badges:HB(),assurances:UB()}),XB=()=>({...xf,methods:[]});import{mixHex as xae}from"efficient-shell/format";var T4e="none",P4e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function ZB(e){return e==="above"||e==="below"?e:null}var E4e="sf-ticker-join";function hae(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function O4e(e){return`absolute inset-x-0 ${hae(e)}`}var Pn={direction:"row",share:"content",align:"center"},cd={top:14,bottom:14,topPhone:12,bottomPhone:12},lm={wrap:"nowrap",loop:"scroll",sectionAccent:lk,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},JB={gap:120,gapPhone:64},im={...Ko,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},QB={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},fd={top:16,bottom:16,topPhone:12,bottomPhone:12},pd={justify:"between",wrap:"wrap",gap:32,separator:"none"},ud={...Ko,letterSpacing:.1,lineHeight:1.5};var eD=e=>e.size==="display",Iae=(e,o)=>{let t=Mu(e,o),r=e.tone!=="plain"&&t?.text&&t.background?xae(t.text,t.background,.3):null;return r?{color:r}:{}},gae=(e,o)=>e.tone!=="plain"&&or(e.sectionAccent)===null?Qo("background")(e,o):{},oD=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:se,style:e,styleFrom:Iae}]}),bae={name:"Scrolling Bar",boxProps:(e,o)=>({...J,...Pn,...lm,...QC[ph(e.separator)]===""?JB:{},...de(e,cd),...gae(e,o)}),box:[["scrollDirection","scrollDirection",e=>VA(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>ph(e)],["join","join",e=>ZB(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...ae,["tone","sectionAccent",(e,o)=>or(o.sectionAccent)??er],...Ie(cd)],parts:[oD(im,e=>!eD(e)),oD(QB,eD)],drop:{...te,...ie,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},tD=e=>e?.tone==="muted",rD=e=>ic(bn(e)),yae={name:"Spec Strip",boxProps:(e,o)=>({...J,...Pn,...pd,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:rD(o)},...de(e,fd)}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:rD(t)],...Ie(fd)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:K,style:ud,when:(e,o)=>!tD(o)},{kind:"text",key:"text",props:se,style:ud,when:(e,o)=>tD(o)}]}],drop:{...te,...ie,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},aD={Ticker:bae,SpecStrip:yae};import{jsxs as On,jsx as eo}from"react/jsx-runtime";import{Fragment as AS}from"react";import{Fragment as Fae,jsx as TS}from"react/jsx-runtime";import{Fragment as iD,jsx as xd,jsxs as Tae}from"react/jsx-runtime";import{createContext as kS,useContext as Id,useEffect as Pae,useId as Eae,useMemo as Oae,useRef as _ae}from"react";import{armEntrance as Aae}from"efficient-shell/format";import{jsx as Sae}from"react/jsx-runtime";import{useEffect as sD,useRef as nD,useState as wae}from"react";import{armEntrance as Cae,entranceAttrs as vae,playEntrance as kae}from"efficient-shell/format";function lD({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let d=nD(null),c=xc(),f=qr(),u=n?f:es,p=md(d,!0,s),{attrs:h,style:I}=vae(e[p]),g=nD(CS.seed(e)),C=JSON.stringify(e);return sD(()=>{let w=d.current;if(w){if(o){let T=CS.next(g.current,e,p);g.current=T.seen,T.play&&kae(w);return}return Cae(w)}},[C,p,o]),u.scope(Sae("div",{ref:d,className:Yr(`${Jn}${c.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:c.inner(l)}))}var CS={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=CS.seed(o);return{play:r[t]!==e[t],seen:r}}};function md(e,o=!0,t=!1){return hd(e,o,t)??"desktop"}function hd(e,o=!0,t=!1){let[r,a]=wae(void 0),n=hc(t?"edge":"by-box"),{phone:s,tablet:l}=db(n);return sD(()=>{if(!o)return;let d=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!d?.matchMedia){a("desktop");return}let c=d.matchMedia(s),f=d.matchMedia(l),u=()=>a(c.matches?"phone":f.matches?"tablet":"desktop");return u(),c.addEventListener("change",u),f.addEventListener("change",u),()=>{c.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,l]),r}var dm=kS(null),cD=kS(null),fD=kS(null);function s5e({needles:e,styles:o,motions:t=ZL,type:r,atEdge:a=!1,children:n}){let s=Eae(),l=hc(a?"edge":"by-box"),d=JSON.stringify([s,e,o,t,r]),c=Oae(()=>{let u=Object.keys(t).filter(p=>QL(t[p]));return i1(e,o,s,p=>Hi(r,p),p=>r1(r,p),p=>u.includes(p)?Oy(t[p]):null,u)},[d]);if(!c)return xd(iD,{children:n});let f=d1(c,{inBox:l});return Tae(iD,{children:[f&&xd("style",{href:`${Lae}${s}-${Rae(f)}`,precedence:uD,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),xd(dm.Provider,{value:c,children:n})]})}var vS=new WeakMap;function dD(e,o){let t=_y(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:_y(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(rR(e.ownerDocument),e.setAttribute(fu,"")):e.removeAttribute(fu)}function pD(e){let o=_ae(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=md(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,d=JSON.stringify([s,l]);return Pae(()=>{let c=o.current,f=tR(c?.parentElement??null);if(!t&&!r&&!a||!c||!f)return;let u=s?()=>{let I=eR(f,s),g=Aae(f);return()=>{g?.(),I()}}:null,p=vS.get(f)??[];vS.set(f,p);let h={element:c,arm:u,entering:s!==null&&s.kind!=="none",scroll:l?()=>oR(f,l):null,lift:a};return p.push(h),dD(f,p),()=>{let I=p.indexOf(h);I<0||(p.splice(I,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,dD(f,p),p.length||vS.delete(f))}},[d,a]),o}var uD="sf-part-styles",Lae=`${uD}-`;function Rae(e){let o=2166136261;for(let t=0;t<e.length;t+=1)o^=e.charCodeAt(t),o=Math.imul(o,16777619);return(o>>>0).toString(36)}function mD(e){let o=Id(dm),t=Id(cD),r=c1(o,e);return r&&r.stamp!==t?r:null}function l5e(e){return ib(Id(dm),e)}function hD({stamp:e,children:o}){return xd(cD.Provider,{value:e,children:o})}function i5e({children:e}){let o=Id(dm);return xd(fD.Provider,{value:o,children:e})}function d5e(e){return ib(Id(fD),e)}function gd({value:e,children:o}){let t=mD(e),r=pD(t);return t?TS(hD,{stamp:t.stamp,children:TS("span",{ref:r,[Jg]:t.stamp,...t.textStyle?{[Ls]:t.textStyle}:{},children:o})}):TS(Fae,{children:o})}import{jsx as PS,Fragment as Bae}from"react/jsx-runtime";function xD({className:e=""}){return PS("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function cm(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(PS(xD,{},`r${a}`))}),PS(Bae,{children:t})}var x5e=xD;import{jsx as En}from"react/jsx-runtime";import{Component as Hae,createContext as Uae,lazy as k5e,Suspense as T5e,useContext as Wae,useSyncExternalStore as zae}from"react";var Dae="hrefRewrite";function Nae(){return Gd("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function Mae(){return typeof process<"u"&&!0}function b5e(e){let o=e?.[Dae];return typeof o=="string"?o.trim():""}function ID(e){if(!e)return null;let o=Nae(),t=o.rewrites.get(e);return!t&&!Mae()&&o.missed.add(e),t??null}var $ae={Link:Ek,Image:Pk},gD=Uae($ae);function L5e({runtime:e,children:o}){return En(gD.Provider,{value:e,children:o})}function OS(){return Wae(gD)}function R5e(){return OS().pagePath??null}var Gae=()=>()=>{},jae=()=>bc()||null,Kae=()=>null;function Vae(){return zae(Gae,jae,Kae)}function bD({hrefRewrite:e,newTab:o,...t}){let{Link:r}=OS(),a=Vae(),n=o===!0?{...t,...rd}:o==="auto"?{...t,...WF(t.href,a)}:t,s=ID(e);return s?En(ES,{name:s.name,href:n.href,fallback:En(r,{...n}),children:En(qae,{Link:r,rewrite:s.rewrite,...n})},s.key):En(r,{...n})}function qae({Link:e,rewrite:o,...t}){let r=Se(o(t.href)),a=r&&CC(r)?r:t.href;return En(e,{...t,href:a})}var ES=class extends Hae{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function yD(e){let{Image:o}=OS();return En(o,{...e})}function Nr(e,o=!1,t){let r=one(o),a=Vd(e);if(a.length===1){let[s]=a,l=vC(s),d=l?Qae(l,s.children):s.children;return On(gd,{value:e,children:[t,fm(d,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(eo("span",{"data-sf-bullet":"",className:Yae,children:fm(s.children,r)},l));return}if(s.number!=null){n.push(On("span",{"data-sf-number":s.number,className:Xae,children:[On("span",{className:Zae,children:[s.number,"."]}),fm(s.children,r)]},l));return}l>0&&!Jae(a[l-1])&&n.push(eo("br",{},`br${l}`)),n.push(eo(AS,{children:fm(s.children,r)},l))}),On(gd,{value:e,children:[t,n]})}var Yae="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",Xae="relative block pl-[2em]",Zae="absolute left-0 w-[1.6em] text-right tabular-nums";function Jae(e){return e.bullet||e.number!=null}var SD="text-accent underline underline-offset-[0.18em]";function Qae(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function ene(e){return ds(e)||void 0}function fm(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(eo("span",{children:cm(a.text)},n)),r=!0;return}r||t.push(eo("span",{},`e${n}`)),t.push(CD(a,n,o)),r=!1}),r||t.push(eo("span",{},"end")),t}function _S(e,o){return e.length===1&&e[0].kind==="text"?cm(e[0].text):e.map((t,r)=>t.kind==="text"?eo(AS,{children:cm(t.text)},r):CD(t,r,o))}function one(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function G5e(e){return wD(e)}function wD(e,o){let t=e.split(`
320
+ `);return On(gd,{value:e,children:[o,t.map((r,a)=>On(AS,{children:[a>0?eo("br",{}):null,eo("span",{children:r})]},a))]})}function CD(e,o,t){if(e.kind==="link")return zu(e.href)?eo(bD,{newTab:"auto",href:e.href,className:SD,children:_S(e.children,t)},o):eo("a",{href:e.href,className:SD,children:_S(e.children,t)},o);let r=_S(e.children,t),a=SC[e.kind];if(a)return eo("span",{[wC]:a,children:r},o);switch(e.kind){case"underline":return eo("u",{children:r},o);case"sup":return eo("sup",{children:r},o);case"sub":return eo("sub",{children:r},o);case"color":{let n=ene(e.color);return n?eo("span",{style:{color:n},children:r},o):eo("span",{children:r},o)}case"accent":case"highlight":return eo("em",{className:t,children:r},o);case"bold":return eo("strong",{className:"font-semibold",children:r},o);case"italic":return eo("em",{className:"italic",children:r},o);case"strike":return eo("s",{className:"line-through",children:r},o);default:return eo("span",{children:r},o)}}function j5e(e,o=!0,t=!1){let r=e.split(`
321
+ `);return eo(gd,{value:e,children:r.map((a,n)=>On("span",{children:[t?wD(a):Nr(a,o),n<r.length-1?eo("br",{}):null]},n))})}function vD(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{tabletKey as kD}from"efficient-easel/screen/lib/content/view-tiers";var TD={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[kD("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[kD("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},LS={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as tne}from"efficient-easel/draw";var co={text:"Button label",href:"#"},ur=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),Ge={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var pm={eyebrow:Ge.eyebrow,title:`Section heading
322
+ *Highlight line*`,intro:Ge.body,imageCaption:Ge.imageCaption,imageMeta:Ge.imageMeta,cta:co.text},PD=()=>[{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")}],J5e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var um={eyebrow:Ge.eyebrow,title:Ge.headingAccent,intro:Ge.body,cta:co.text},ED=()=>[{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year \u2192"),title:i("Upcoming"),blurb:i("A milestone still to come."),future:!0}],r3e={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:oi,padTop:120,padBottom:120}};var FD={buttonBorder:{width:0}},xm=(e,o,t={})=>({textStyle:"body-5",...W("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),al=(e,o,t={})=>({...xm(e,o),...Ko,...t}),Im=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),bd=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),kt=(e,o,t={})=>({kind:"text",key:e,props:K,style:o,...t}),OD=(e,o)=>o?.future===!0,mm=e=>vD(typeof e?.body=="string"?e.body:""),NS=e=>lr(typeof e.background=="string"?e.background:void 0,Tn.TimelineTrack),RS=e=>NS(e)===Mo?e:{...e,background:"transparent"},rne={name:"Milestone Timeline",skip:e=>Wu(NS(e)),boxProps:(e,o)=>{let t=pa(RS(e),o);return{...J,direction:"column",gap:60,[tne("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...et,...St(e,"TimelineTrack"),...Uu(NS(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ua(e,RS(o),t)],...fa("TimelineTrack")],parts:[iS(Qu(Xu("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...R,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...R,direction:"row",share:"equal",gap:0,line:!0,...et},parts:[{kind:"list",key:"entries",name:"Year",props:{...R,...TD},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:LS.name,props:{...R,...LS},parts:[kt("date",xm(13,.22,{color:"accent"}),{when:(e,o)=>!OD(e,o)}),kt("date",xm(13,.22,{color:"labels"}),{when:OD}),kt("title",{textStyle:"heading-3",...Im(W("headingSmall",20),-.02,1.1)},{role:"heading"})]},kt("blurb",bd(W("body",13),1.55),{props:se,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...vo,align:"right",...FD},style:al(13,.3)}]}]}],site:(e,o)=>ma({props:RS(e.props)},o),drop:{...te,...ie,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},HS=e=>typeof e.layout=="string"?e.layout:"split",hm=e=>HS(e)==="split",MS=e=>!hm(e),BD=e=>HS(e)==="spine",ane=e=>MS(e)&&!BD(e),_D=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...R,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Do(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...R,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[kt("imageCaption",al(11,.24,{color:"text"})),kt("imageMeta",al(11,.24,{color:"accent"}),{props:{...K,align:"right"}})]}]}),AD=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...vo,...e,...FD},style:al(13,.3)}),FS=()=>[kt("title",{textStyle:"heading-3",...Im(W("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...K,_partStyles:{text:bd(W("body",17,16),1.6)}},box:[["body","text",(e,o)=>yl(mm(o)[0]??"")]],when:(e,o)=>mm(o).length>0},{kind:"block",type:"Text",props:{...se,_partStyles:{text:bd(W("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>yl(mm(o).slice(1).join(`
323
+
324
+ `))]],when:(e,o)=>mm(o).length>1}],BS=()=>kt("date",xm(13,.24,{color:"accent"})),DS=(e,o,t={})=>kt(e,o,{...t,props:{...K,...t.props??{},align:"center"}}),LD=ot("headingMedium",40,5,76),RD={sectionBorder:{bottom:1}},nne={name:"Story Timeline",skip:e=>HS(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>hm(e)?{...J,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...RD,...St(e,"Timeline")}:{...J,direction:"column",gap:48,gapPhone:48,align:"center",...RD,...St(e,"Timeline")},box:[...ae,...fa("Timeline")],parts:[{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24},when:hm,parts:[kt("eyebrow",al(12,.3,{color:"accent"}),{role:"eyebrow"}),kt("title",{textStyle:"heading-2",...Im(LD,-.03,.94)},{role:"heading",mark:"accentItalic"}),kt("intro",bd(W("body",14),1.6),{props:{...se,maxWidth:360},mark:"accentItalic"}),_D(667,419,{},()=>!0),AD()]},{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!1},when:hm,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[BS(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:FS()}]}]},{kind:"group",name:"Heading",props:{...R,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:MS,parts:[DS("eyebrow",al(12,.3,{color:"accent"}),{role:"eyebrow"}),DS("title",{textStyle:"heading-2",...Im(LD,-.03,.94)},{role:"heading",mark:"accentItalic"}),DS("intro",bd(W("body",14),1.6),{props:{...se,maxWidth:520},mark:"accentItalic"}),AD({align:"center"})]},_D(506,192,{maxWidth:900,widthFit:"fill"},MS),{kind:"group",name:"Chapters",props:{...R,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:BD,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,gap:8,gapPhone:8},parts:[BS(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:FS()}]}]},{kind:"group",name:"Chapters",props:{...R,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:ane,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...R,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...R,gap:8,gapPhone:8},parts:[BS(),{kind:"group",name:"Words",props:{...R,gap:14,gapPhone:14},parts:FS()}]},{kind:"group",name:"Spacer",props:{...R},keepEmpty:!0,parts:[]}]}]}],drop:{...te,...ie,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},DD=()=>({eyebrow:pm.eyebrow,title:ur(pm.title),intro:pm.intro,ctaText:co.text,ctaHref:co.href,entries:PD()}),ND=()=>({eyebrow:um.eyebrow,title:ur(um.title),intro:um.intro,ctaText:co.text,ctaHref:co.href,entries:ED()}),MD={TimelineTrack:rne,Timeline:nne};import{tabletKey as cne}from"efficient-easel/draw";import{rootIsDark as sne}from"efficient-shell/format";function b3e(e="auto"){return e==="light"?!0:e==="dark"?!1:!sne({whenUnset:!0})}function HD(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function US(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var lne=["tall","square","wide"],ine="tall";function UD(e){return lne.includes(String(e??""))?String(e):ine}var w3e={sectionNumber:"\xB7 Locations",heading:"Our *locations.*",tagline:"Visit us in person \u2014 find your nearest studio below.",galleryKicker:"Gallery",galleryHint:"Hover to see in colour \xB7 click to jump",mapTheme:"auto"},C3e=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
325
+ Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""},{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
326
+ Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],dne=/^https?:\/\//i;function v3e(e){let o=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:US(e.lat),lng:US(e.lng),mapsUrl:dne.test(o)?o:""}}function WS(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var k3e="other",T3e={routingNumber:"02 \xB7 Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A \xB7 Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B \xB7 Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C \xB7 Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D \xB7 Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 \xB7 Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below \u2014 we'll route it to whoever can help.",buttonText:"Send Message \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail \xB7 Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail \xB7 Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail \xB7 Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail \xB7 Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon\u2013Fri \xB7 9:00\u201318:00"}]};function WD(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var Tt=e=>typeof e=="string"?e:e==null?"":String(e),$S=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],nl=e=>Tt(e.group),XD=e=>`loc-${e}`,ZD=e=>Tt(e.state).trim()||WS(Tt(e.region)).state,JD=e=>Tt(e.country).trim()||WS(Tt(e.region)).country,zD=e=>[ZD(e),JD(e)].filter(Boolean).join(" \xB7 "),fne=e=>$S(e).some(o=>Tt(o.photo).trim()!==""),pne=e=>$S(e).some(o=>HD(Number(o.lat),Number(o.lng))),une=(e,o)=>$S(e).filter(t=>nl(t)===nl(o)).length,mne=(e,o)=>une(e,o)===1?"wide":UD(e.imageShape),zS={top:100,bottom:100,topPhone:60,bottomPhone:60},$D=48,Yt=(e,o={})=>({...Rt(e),...o}),GS={top:1,right:1,bottom:1,left:1},jS={...R,direction:"row",share:"equal",gap:0},hne=e=>o=>o>Yi(o)?{...R,gap:0}:{...jS,...o>1?{phoneRow:e}:{}},xne={kind:"group",name:"Gallery",props:{...R,gap:20,_hidden:!0},when:fne,parts:[{kind:"group",name:"Gallery head",props:{...R,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[pe("galleryKicker",Yt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...se,align:"right",alignPhone:"left"},style:Yt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...R,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...R,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:GS,...Do(12,12)},item:(e,o,t)=>({props:{...Tt(e.photo).trim()?{bgImage:Tt(e.photo),hover:"mono"}:{},link:`#${XD(o)}`,boxShape:mne(t,e)}}),parts:[{kind:"text",key:"name",props:K,style:Yt(11,{letterSpacing:.22,color:"text"})}],groups:{of:nl,name:"Group",props:{...R,gap:10},head:e=>({label:nl(e[0]??{})}),parts:[pe("label",Yt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:hne(2),perRow:Yi,rowName:"Row",rowProps:{...jS,phoneRow:2}}}]}]},Ine={kind:"group",name:"Words",props:{...R,gap:12,gapPhone:12,...Do(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...R,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...R,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:K,style:{textStyle:"heading-3",...W("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...K,_partStyles:{text:Yt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>zD(t)]),when:(e,o)=>zD(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...R,sectionBorder:GS,...Do(6,10)},parts:[{kind:"text",key:"timezone",props:{...se,textFit:"line"},style:Yt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:se,style:{textStyle:"body-5",fontRole:"heading",...W("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...vo,...Cn,variant:"ghost",arrow:!1,_partStyles:{label:Yt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>WD(Tt(e))??"#"]],when:(e,o)=>Tt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:se,style:Yt(12,{letterSpacing:.18,lineHeight:1.7})}]},gne={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(o,t)=>ZD(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>JD(t)])]},bne={kind:"group",name:"Map",props:{...R,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[gne]},yne={kind:"list",key:"locations",name:"City",props:(e,o)=>({...R,gap:0,justify:"between",sectionBorder:GS,jumpHighlight:!0,sectionAccent:pa(e,o)>=0?Qs(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:XD(o)}}),parts:[Ine,bne],groups:{of:nl,name:"Group",props:{...R,gap:20},head:e=>{let o=e[0]??{};return{key:nl(o),groupName:Tt(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...R,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>Tt(o?.key).trim()!=="",parts:[pe("key",Yt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:K,style:{textStyle:"heading-3",...W("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:se,style:Yt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...jS,columns:Yi(e),[cne("columns")]:1})}},GD=Yt(10,{letterSpacing:.25}),Sne={kind:"block",type:cr,props:{...R,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:pne,slot:fr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...se,text:"Location coordinates \xA9",_partStyles:{text:GD}}},{kind:"block",type:"ButtonBlock",props:{...vo,...Cn,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...GD,color:"labels"}}}}]},jD=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),KD=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],VD=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],qD=e=>e.map(o=>[o,o,(t,r)=>de(r,zS)[o]]),YD=["sectionAccent","sectionAccent",ua],wne=["gridSpan",...fs,...Object.values(lo)],Cne={name:"City pictures",skip:e=>Zt(e)?`fed by the data source "${Zt(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...J,direction:"column",gap:40,anchor:"studios",...et,...jD(de(e,zS),KD),sectionPaddingBottom:$D,sectionPaddingBottomPhone:$D,...vn(e,o)}),box:[...ae.filter(e=>e!=="sectionAccent"&&e!=="anchor"),YD,["anchor","anchor",e=>Dl(e).trim()?e:"studios"],...qD(KD)],parts:[Xu("sectionNumber","heading","tagline"),xne],also:[{name:"City maps",boxProps:(e,o)=>({...J,direction:"column",gap:40,sectionBorder:{bottom:1},...et,sectionPaddingTop:0,sectionPaddingTopPhone:0,...jD(de(e,zS),VD),...vn(e,o)}),box:[...wne,YD,...qD(VD)],parts:[yne,Sne]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:ma,drop:{...te,...ie,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},QD={ContactLocations:Cne};import{SITE_SIDE as oN,sideLengthAt as vne}from"efficient-easel/screen/lib/content/length-units";var gm="boxes",KS=3,VS=()=>({type:oe,props:{direction:"column"},slots:{[He]:[{type:"ImageBlock"},{type:oe,props:{direction:"column"},slots:{[He]:[{type:"Text",props:jr()},{type:"Text"}]}}]}}),eN=()=>Array.from({length:KS},VS);import{viewKeyAt as qS}from"efficient-easel/draw";var kne=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var ha=(e,o)=>()=>({top:e,topPhone:o}),tN=e=>o=>{let t=Du(e),r={...o,[sr.top]:Yl(o,t).top},a=d=>{let c=vne(r,sr,$a,d,"top");return c?.unit==="px"?c.value:void 0},n=d=>q(o[qS(sr.top,d)])===void 0?void 0:a(d),s=n("tablet"),l=n("mobile");return{top:a("desktop")??t.top??0,...s!==void 0?{topTablet:s}:{},...l!==void 0?{topPhone:l}:{}}},Tne={Collections:ha(120,70),Events:ha(120,70),FAQ:ha(120,70),GalleryB:ha(120,70),FitmentTable:ha(120,80),SpecTable:ha(120,80),LongRead:ha(120,80),RelatedProducts:ha(0,0),Footprint:tN("Footprint"),ProcessSteps:tN("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function Pne(e,o={}){let t=j(kr,e),r=j(Tne,e);if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=wt(e),s=em(e),l=t.headRows.filter(c=>![t.num,t.title,t.description,"linkText","linkHref"].includes(c)),d={...Object.fromEntries(l.filter(c=>!(c in s)).map(c=>[c,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:j(jd,e)??e,boxProps:(c,f)=>{let u=r(c),p=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(c,f):o.boxProps??{},I=kn(e)==="editorial"?et:{};return{...J,direction:"column",gap:ad[kn(e)],sectionPaddingTop:u.top,...u.topTablet!==void 0?{sectionPaddingTopTablet:u.topTablet}:{},...u.topPhone!==void 0?{sectionPaddingTopPhone:u.topPhone}:{},...I,...p,...h}},box:[...ae,...a?[[a,"sectionPaddingTop",(c,f)=>r(f).top]]:[]],parts:[n,...(()=>{let c=a&&AF.has(e)?{[qS(a,"tablet")]:0,[qS(a,"mobile")]:0}:{},f={...a?{[a]:0}:{},...c,...o.coreProps},u={kind:"core",keep:"rest",...Object.keys(f).length?{props:f}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[u]}:u]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var Ene={...R,direction:"accordion",rowStyle:"numbered"},One={sectionPaddingLeft:oN,sectionPaddingRight:oN},_ne={Footprint:{slots:{[No]:[bv()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[gm]:eN().map(t=>({...t,props:{...t.props,...One}}))}:{},boxProps:{gapPhone:ad.editorial}},FAQ:{slots:{[No]:[gv()]},pressHeading:!0,coreBox:{name:"Questions",props:Ene},coreProps:{sectionAccent:er},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[kF]:yn},skip:e=>{let o=e._partStyles??{},t=Iv().filter(r=>o[r]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(r=>`"${r}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},rN=Object.fromEntries(kne.map(e=>[e,Pne(e,j(_ne,e))]));import{BLOCK_WIDTH_LIMIT as Lne}from"efficient-easel/draw";var bm={eyebrow:Ge.eyebrow,title:Ge.headingAccent,deck:"Add a sentence or two introducing this document."},f6e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var YS="titleLevel",Ane=e=>e===2?"h2":"h1",XS=e=>Ane(e?.[YS])==="h2";var fN={minWidth:Lne.min},aN=(e,o,t)=>({...pe(e,{...o,...Ji}),props:{...K,align:"right",...Sn,...t}}),pN={top:1,bottom:0},JS=(e,o,t,r)=>({kind:"group",name:e,props:{...R,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),nN={widthFit:"fill",...fN},sN={top:100,bottom:60,topPhone:60,bottomPhone:40},Rne={...W("label",13),letterSpacing:.22,lineHeight:1.8},lN={textStyle:"heading-1",...ot("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Fne=()=>({name:"Page Header",boxProps:e=>({...J,direction:"column",gap:0,sectionBorder:{bottom:1},...de(e,sN)}),box:[...ae,...Ie(sN)],parts:[{kind:"group",name:"Header",props:{...R,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[JS("Eyebrow",12,0,{...pe("eyebrow",W("label",13)),props:{...K,...Sn}}),{kind:"text",key:"title",role:"heading",props:{...K,tag:"h1",...nN},style:lN,mark:"accentItalic",when:e=>!XS(e)},{kind:"text",key:"title",role:"heading",props:{...K,tag:"h2",...nN},style:lN,mark:"accentItalic",when:XS},{kind:"group",name:"Details",props:{...R,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[Qi("label","value",Rne,Sn)]}]}]},{kind:"group",name:"Deck",props:{...R,maxWidth:760,sectionBorder:pN,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:se,style:{textStyle:"body-1",fontRole:"accent",...W("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...te,...ie,[YS]:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),uN=()=>({eyebrow:bm.eyebrow,title:ur(bm.title),deck:bm.deck,meta:[{label:Ge.label,value:Ge.value},{label:Ge.label,value:Ge.value}]}),iN={top:80,bottom:40,topPhone:60,bottomPhone:32},Bne={...W("label",13),letterSpacing:.18,lineHeight:1.8},dN={...W("label",13),letterSpacing:.22,lineHeight:1.9},Dne=()=>({name:"Issue Header",boxProps:e=>({...J,direction:"column",gap:0,sectionBorder:{bottom:1},...de(e,iN)}),box:[...ae,...Ie(iN)],parts:[{kind:"group",name:"Top",props:{...R,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[JS("Eyebrow",14,14,pe("eyebrow",W("label",14))),{kind:"group",name:"Issue",props:{...R,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[Qi("lead","rest",Bne)]}]}]},{kind:"group",name:"Bottom",props:{...R,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:pN,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...K,maxWidth:720,...fN},style:{textStyle:"body-1",fontRole:"heading3",...W("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...R,align:"stretch",gap:0},parts:[JS("Heading",6,6,{kind:"text",key:"issueHeading",props:{...K,align:"right",...Sn},style:{textStyle:"body-1",fontRole:"heading",...W("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...Ji}}),{kind:"group",name:"Lines",props:{...R,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[aN("text",{color:"labels",...dN})]}]},aN("issueTotal",dN)]}]}],drop:{...te,...ie}}),cN={top:24,bottom:24,topPhone:16,bottomPhone:16},ZS={color:"labels",...W("label",13),letterSpacing:.2},mN=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),QS=(e,o)=>o!==void 0&&mN(e).at(-1)===o,hN=(e,o)=>o!==void 0&&mN(e).includes(o),Nne=(e,o)=>hN(e,o)&&!QS(e,o)&&Qe(o?.href),Mne=()=>({name:"Breadcrumb",skip:e=>Qe(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...J,...Pn,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...de(e,cN)}),box:[...ae,...Ie(cN)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:Nne,props:{...vo,...Cn,icon:"none"},style:ZS},{...pe("label",ZS),when:(e,o)=>hN(e,o)&&!QS(e,o)&&!Qe(o?.href)},{...pe("label",{...ZS,color:"text"}),when:QS}]}],drop:{...te,...ie,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),xN={DocMasthead:Fne(),Masthead:Dne(),Breadcrumb:Mne()};import{BLOCK_WIDTH_LIMIT as Une,hiddenKeyOf as Wne}from"efficient-easel/draw";import{readHidable as ew}from"efficient-easel/draw";function Hne(e,o,t){return e||(t?.isEditing?i(o):void 0)}function T6e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function IN(e,o,t){let r=ew(e);if(!r.hidden)return Hne(r.text,o,t)}function gN(e){if(e==null)return;let o=ew(e);return o.hidden?"":o.text}function P6e(e,o,t){return ew(e).hidden?"":IN(e,o,t)}function E6e(e,o,t){return{text:IN(e,co.text,t),href:o||co.href}}var wN="MenuBlock",ow=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Qe(o.label)),bN=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(gN(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},yN={top:0,bottom:0,topPhone:0,bottomPhone:0},zne={...Ko,color:"labels",...W("label",12),letterSpacing:.24},$ne={kind:"group",name:"Note",props:{...R,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Wne("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>bN(e)!=="",props:e=>({...K,textFit:"line",text:bN(e),[xi]:{text:zne}})}]},CN=()=>({tabs:[],metaLabel:Ge.label,metaValue:Ge.value}),SN="the note Text inside the Box (the label, then the value in the accent); no words, no Text",vN={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:Une.min},kN=e=>({...e,boxProps:o=>({...J,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Ga]:0,[Zl]:!0,sectionBorder:{bottom:1},...de(o,yN)}),box:[...ae,...Ie(yN)]}),Gne=()=>kN({name:"Tab Bar",skip:e=>ow(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:SN,metaValue:SN},parts:[{kind:"block",type:wN,props:vN},$ne],drop:{...te,...ie,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),jne=()=>kN({name:"Category Bar",skip:e=>{if(ow(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(ow(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:wN,props:{...vN,[yo]:fC}}],drop:{...te,...ie,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),TN={DocTabs:Gne(),CategoryBar:jne()};import{jsx as _n,jsxs as rw}from"react/jsx-runtime";import{slugify as Kne}from"efficient-shell/format";import{jsx as tw,jsxs as PN}from"react/jsx-runtime";var U6e="sticky top-[120px]";var EN=(e,o)=>e?{[oc]:o}:{},ON=(e,o)=>tc(e?.[vh(o)]?.role,hu[o],Hn),_N=120;function AN({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Og,takesViewHide:l=!1}){let d=s==="plain",c=qr(),f=l?c:es;return f.scope(PN("aside",{className:Yr(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&tw("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Nr(e)}),o.map((u,p)=>{let h=tw("span",{...EN(a,"number"),style:ON(n,"number"),className:"text-accent",children:sp(s,p)});return PN("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${p===0?" border-t":""}`,children:[d&&h,tw("span",{...EN(a,"entry"),style:ON(n,"entry"),children:Nr(u.label||"Section")}),!d&&h]},`${p}-${u.anchor}`)})]}))}function Vne(e,o){return Kne(e)||`section-${o+1}`}var aw=e=>typeof e=="string"&&e.trim()!=="";function nw(e){return(e??[]).filter(o=>aw(o.heading)||aw(o.label)||aw(o.body))}function sw(e){let o=new Set;return e.map((t,r)=>{let a=Vne(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function lw(e){let o=[];for(let t of e.replace(/\r\n?/g,`
327
+ `).split(/\n[ \t]*\n/))t.split(`
328
+ `).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=Vd(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let d=r.slice(2);!l&&s?.type==="ul"?s.items.push(d):o.push({type:"ul",items:[d]})}else!l&&s?.type==="p"?s.text+=`
329
+ ${r}`:o.push({type:"p",text:r})});return o}var qne=()=>[{label:i("First section"),heading:i("Your *first* section."),body:i(`Write the opening paragraph here.
330
+
331
+ - Start a line with a dash for a bullet.
332
+ - Add as many as you like.`)},{label:i("Second section"),heading:i("Your *second* section."),body:i("Leave a blank line between paragraphs to start a new one.")}],Yne=_N;function nUe({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=Yne}){let a=nw(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?qne():a,s=sw(n);return _n(Ic,{as:"section",className:"relative z-[2] bg-bg",children:rw("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",children:[_n(AN,{title:e,entries:n.map((l,d)=>({label:l.label||"Section",anchor:s[d]})),stickyTop:r}),_n("div",{className:"flex flex-col gap-16",children:n.map((l,d)=>rw("article",{id:s[d],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[rw("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[Eg(d)," \xB7 ",Nr(l.label||"Section")]}),l.heading&&_n("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:Nr(l.heading)}),lw(l.body??"").map((c,f)=>c.type==="ul"?_n("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:c.items.map((u,p)=>_n("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:Nr(u)},p))},f):_n("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Nr(c.text)},f))]},s[d]))})]})})}var LN={top:80,bottom:80,topPhone:60,bottomPhone:60},RN=18,FN=18,BN=8,Xne=10,iw=e=>typeof e=="string"&&e.trim()!=="",DN=e=>nw(e.sections),Zne=e=>lw(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
333
+ `)}:{kind:"p",text:o.text}),dw={...Rt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},NN={textStyle:"body-1",fontRole:"accent",...W("body",17)},Jne=[pe("label",dw),{...pe("title",dw),when:(e,o)=>!iw(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!iw(o?.label)&&!iw(o?.title),props:{...K,text:"Section",_partStyles:{text:dw}}},{kind:"group",name:"Heading",props:{...R,sectionPaddingBottom:BN,sectionPaddingBottomPhone:BN},parts:[{kind:"group",name:"Heading line",props:{...R,sectionBorder:{bottom:1},sectionPaddingBottom:FN,sectionPaddingBottomPhone:FN},parts:[{kind:"text",key:"heading",role:"heading",props:K,style:{textStyle:"heading-2",...ot("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:Zne,parts:[{kind:"text",key:"text",props:se,style:{...NN,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:se,style:{...NN,lineHeight:1.65,paragraphSpacing:Xne},when:(e,o)=>o?.kind==="ul"}]}],Qne=900,ese={name:"Document Text",boxProps:e=>({...J,direction:"row",gap:80,gapPhone:40,[qu]:Qne,sectionBorder:{bottom:1},...de(e,LN)}),box:["anchor","sectionAccent",...fs,...Object.values(lo),...Ie(LN)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...R,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>DN(e),props:{...R,gap:RN,gapPhone:RN},item:(e,o,t)=>({props:{anchor:sw(DN(t))[o]??`section-${o+1}`}}),parts:Jne}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...te,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},MN={DocBody:ese};import{phoneKey as rse}from"efficient-easel/draw";import{SITE_SIDE as ase}from"efficient-easel/screen/lib/content/length-units";var hUe={eyebrow:"\u2014 Label",title:`Section headline *here.*
334
+ *Highlight line*`,body:"Describe this section in a sentence or two."},xUe={text:"Learn more"},IUe={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function cw(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var yUe="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",ose="overlay",tse=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function HN(e){return io(tse,ose,e)}var SUe={desktop:40,mobile:45,min:20,max:80,step:5};function wUe(e,o){return`${typeof e=="number"?e:o}%`}var UN=(e,o,t)=>{let r=q(e),a=q(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(It.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(It.sizePhone,t?.phone)}}},nse=e=>HN(e.layout)==="stacked",WN=e=>Math.min(Math.max(q(e.overlay)??60,0),100),ym=e=>q(e)??100,sse={textStyle:"heading-1",sizeToken:{...ot("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},lse=[pe("eyebrow",W("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:K,style:{...sse,case:e?"upper":"none"},styleFrom:o=>{let t=$I(o);return UN(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...se,maxWidth:560},style:{textStyle:"body-1",...W("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=$I(e);return UN(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...R,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],zN=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,ise=()=>({name:"Scroll-Over Text",skip:e=>nse(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...J,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...ed,placement:"left",darken:WN(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:ym(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:ym(e.heightMobile)}),box:[...ae.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>WN(o)],["heightDesktop","sectionHeightValue",e=>ym(e)],["heightMobile","sectionHeightValuePhone",e=>ym(e)]],parts:lse,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",...Object.fromEntries(NE.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:zN("Button color"),buttonTextColor:zN("Button text color"),...te}}),jN={textStyle:"heading-2",...W("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},dse={textStyle:"body-1",...W("body",16),lineHeight:1.7},KN=e=>({kind:"text",key:"body",props:{...se,maxWidth:520},style:{...dse,paragraphSpacing:e}}),wm={top:0,bottom:0,topPhone:0,bottomPhone:0},fw=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},cse=(e,o)=>{let t=fw(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},VN={boxShapePhone:"landscape"},qN="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",fse=(e,o)=>({[e]:o,[rse(e)]:o}),pse={textStyle:"heading-2",...W("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},$N=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),use=()=>({name:"Brand Text",boxProps:(e,o)=>({...J,...Qo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...de(e,wm),...fw(e,100)}),box:[...ae,...Ie(wm)],parts:[{kind:"group",name:"Words",props:()=>({...R,justify:"center",gap:28,gapPhone:28,sectionBorder:od({right:1}),sectionBorderPhone:od({}),...ed,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:ase}),parts:[pe("eyebrow",W("label",14)),{kind:"text",key:"heading",role:"heading",props:K,style:{...jN,case:"none"},mark:"accentItalic"},KN(28),{kind:"group",name:"Stats",props:{...R,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...R,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max($N(e).length,1),3),...fse("sectionBorder",od({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:$N,props:{...R,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:wn,style:pse},pe("label",{...W("label",13),color:"labels",letterSpacing:.2})]}]}]}]},eS("Picture","imageSrc",VN)],drop:{...te,grayscale:qN,...ie}}),Sm=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},mse=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",hse=e=>Math.min(Math.max(q(e.overlay)??60,0),100),YN=e=>typeof e=="string"&&e.trim()!=="",xse={...vo,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},GN=e=>({...eS("Picture","imageSrc",(o,t)=>({...YN(o.imageSrc)&&cw(o.imageOverlay)>0?{darken:cw(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...VN,sectionBorder:od(e?{left:1}:{right:1}),...XN(e?"left":"right",el(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:xse,style:{...Rt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),XN=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Ise={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...R,justify:"center",align:mse(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...cse(e,72),gap:24,gapPhone:24,...YN(e.textBgSrc)?{darken:hse(e),darkenStyle:"even"}:{},...ed,sectionPaddingTop:100,sectionPaddingBottom:100,...XN(t?"right":"left",el(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",W("label",14)),styleFrom:Sm},{kind:"text",key:"title",role:"heading",props:K,style:jN,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Sm(e)})},{...KN(24),styleFrom:Sm},{kind:"group",name:"Button",props:{...R,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Sm(e);return{...vo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},gse=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...J,...Qo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...de(e,wm),...fw(e,72)}),box:[...ae,...Ie(wm)],parts:[GN(!1),Ise,GN(!0)],drop:{reverse:"not a value of its own: it picks the order \u2014 the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case \u2014 Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:qN,...te,...ie}}),ZN={IntroBleed:ise(),Manifesto:use(),Split:gse()};var e2={headPlacement:void 0},JN={top:0,bottom:0,topPhone:0,bottomPhone:0},bse=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...J,direction:"column",...de(e,JN)}),box:[...ae,...Ie(JN)],parts:[{kind:"core",keep:"rest",props:e2}],drop:{...te,...ie}}),QN={top:120,bottom:120,topPhone:60,bottomPhone:60},yse=()=>({name:"Photo Submission Form",boxProps:e=>({...J,direction:"column",gap:24,...de(e,QN)}),box:[...ae,...Ie(QN)],parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:K,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:se},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:e2}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...te,...ie,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),o2={Form:bse(),SubmitBuild:yse()};import{phoneKey as t2}from"efficient-easel/draw";var a2=1.5,r2={textStyle:"body-1",...W("body",15),lineHeight:a2},Sse={...Ko,...W("label",12),letterSpacing:.12,lineHeight:a2},n2=()=>({type:oe,props:{...R,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[t2("share")]:"content",[t2("wrap")]:"nowrap",...Do(12,0),sectionBorder:{top:1},name:"Item"},slots:{[He]:[{type:oe,props:{...R,gap:0,gapPhone:0,name:"Item words"},slots:{[He]:[qe("label",{...K,tag:"p"},r2),qe("meta",{...se,tag:"p"},Sse)]}},qe("amount",{...K,tag:"p"},r2)]}});var wse=()=>({name:"Order Table",boxProps:()=>({...J,direction:"column"}),box:[...ae],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[No]:[n2()]}}],drop:{...te}}),s2={OrderSummary:wse()};import{phoneKey as Cse}from"efficient-easel/draw";var KUe={eyebrow:"By the numbers",title:`A picture worth
335
+ *a thousand rows.*`},l2=["eyebrow","title","body","caption"],VUe={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var i2=["eyebrow","title","body"],YUe={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};var f2={top:76,bottom:76,topPhone:76,bottomPhone:76},p2=()=>({kind:"group",name:"Words",props:{...R,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...R,direction:"row",phoneRow:2,[Cse("share")]:"content"},parts:[Nu("eyebrow")]},{kind:"text",key:"title",role:"heading",props:K,style:{textStyle:"heading-2",...W("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...se,maxWidth:435},style:{textStyle:"body-1",...W("body",15),lineHeight:1.625}}]}),u2=e=>(o,t)=>({...J,sectionAccent:Qy(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...de(o,f2)}),m2=[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Qy(e,t)],...Ie(f2)],vse=()=>({name:"Chart",boxProps:u2([42]),box:m2,parts:[p2(),{kind:"group",name:"Chart",props:{...R,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Js},pe("caption",{color:"muted",...W("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...l2],drop:{...te,...ie}}),d2=e=>e.align==="left",c2={kind:"group",name:"Card",keepEmpty:!0,props:R,parts:[{kind:"core",keep:"rest",props:Js}]},kse=()=>({name:"Mockup Card",boxProps:u2("equal"),box:m2,parts:[{...c2,when:d2},p2(),{...c2,when:e=>!d2(e)}],pressKeepsEmpty:[...i2],drop:{...te,...ie}}),h2={Chart:vse(),Mockup:kse()};var Tse={title:"Back online in",zeroText:"Almost done. Back very soon."},x2=["title"],rWe={label:"Countdown",defaultProps:{...Tse,endsAt:"",showUnits:!0}};var I2={top:48,bottom:48,topPhone:48,bottomPhone:48},Pse={...pe("title",{...sv(12),color:"muted"}),props:{...K,align:"center"}},Ese=()=>({name:"Countdown",boxProps:e=>({...J,direction:"column",align:"center",gap:16,gapPhone:16,...de(e,I2)}),box:[...ae,...Ie(I2)],parts:[Pse,{kind:"core",keep:"rest",props:Js}],pressKeepsEmpty:[...x2],drop:{...te,...ie}}),g2={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},Ose=()=>({name:"Feature Banner",boxProps:e=>({...J,direction:"column",sectionBorder:{bottom:1},...de(e,g2)}),box:[...ae,...Ie(g2)],parts:[{kind:"core",keep:"rest",props:Js}],drop:{...te,...ie}}),b2={Countdown:Ese(),FeaturedCover:Ose()};var y2={top:80,bottom:80,topPhone:60,bottomPhone:60},_se=()=>{let e=em("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...J,direction:"column",gap:ad[kn("FitmentFinder")],...de(o,y2)}),box:[...ae,...Ie(y2)],parts:[wt("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...te,...ie,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},S2={FitmentFinder:_se()};var Cm={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},pWe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var yd={eyebrow:Ge.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},hWe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var w2={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},IWe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var C2={title:`Section heading
336
+ *Highlight line*`},v2=[{label:co.text,href:co.href,variant:"primary"},{label:co.text,href:co.href,variant:"outline"}],yWe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var pw="solid",Ase=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function CWe(e){return io(Ase,pw,e)}var Lse="sf-secnum-outline",vWe="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",kWe=`@supports (-webkit-text-stroke: 1px currentColor){.${Lse}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var vm="standard",E2=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],mw=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],uw=[...mw,"description"],k2={standard:["eyebrowLook"],editorial:[...mw,"eyebrowLook"],simple:uw,statement:uw,natural:mw,essay:uw},T2=["gap-5","gap-3"],P2=["text-[length:var(--size-body,16px)]","text-[15px]"];function OWe(e){return io(T2,T2[0],e)}function _We(e){return io(P2,P2[0],e)}function AWe(e){return io(E2,vm,e)}function LWe(e){let o=E2.map(r=>r.value),t=[...new Set(Object.values(k2).flat())];return Oa(e,t.map(r=>[[r],Ch("headStyle",o,vm,o.filter(a=>!k2[a].includes(r)))]))}var Mr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ge.viewAll},NWe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:vm,num:Mr.num,numStyle:pw,title:Mr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var O2={top:72,bottom:72,topPhone:72,bottomPhone:72},Rse={name:"Editorial Text",boxProps:e=>({...J,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...de(e,O2)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...ae,...Ie(O2)],parts:[wt("Prose"),{kind:"text",key:"body",props:se,style:{textStyle:"body-1",...W("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...te,...ie,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)"}},_2={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},A2=(e,o)=>o?.variant==="primary",L2=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:A2,variant:"primary",style:{letterSpacing:.3},props:{...vo,..._2,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!A2(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...vo,..._2,...o}}]}),km=e=>Qe(e.title),Fse={name:"Call-to-Action Heading",boxProps:e=>({...J,direction:"row",align:"center",justify:km(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...St(e,"TitleWithButtons")}),box:[...ae,...fa("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...R,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:K,style:{textStyle:"heading-1",...ot("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...R,gap:14,gapPhone:14,widthFitPhone:"fill",...km(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[L2(km,{widthFit:"fill",iconPosition:"end"}),L2(e=>!km(e),{})]}],drop:{...te,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 Bse(e,o){let t=el(o,{to:ve(e.sectionPaddingUnit)}),r=el(o,{view:"phone",to:ve(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var R2={top:40,bottom:64,topPhone:24,bottomPhone:36},Dse={name:"Section Header",boxProps:(e,o)=>({...J,direction:"column",gap:0,...de(e,R2),...Bse(e,o)}),box:[...ae,...Ie(R2)],parts:[wt("SectionHeader")],drop:{...te,...ie,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"}},F2={...R,direction:"row",share:[67],gap:32},B2={...R,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},D2=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Nse={name:"Lead Text",boxProps:e=>({...J,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...St(e,"ParagraphsA")}),box:[...ae,...fa("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...F2,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...R,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[pe("eyebrow",{color:"labels",...W("label",12),letterSpacing:.24})]},D2("Stats column",R,{kind:"group",name:"Stats",props:{...B2,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Qi("value","label",{...W("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...F2,gapPhone:28},parts:[{kind:"group",name:"Lead",props:R,parts:[{kind:"group",name:"Measure",props:{...R,maxWidth:780},parts:[{kind:"text",key:"lead",props:K,style:{textStyle:"heading-3",...W("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},D2("Note column",{...R,justify:"end"},{kind:"group",name:"Founders",props:{...B2,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...R,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:K,style:{textStyle:"body-1",fontRole:"heading",...W("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:se,style:{textStyle:"body-5",fontRole:"heading",...W("body",14,12),lineHeight:1.7}}]},pe("attribution",{...W("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...te}},N2={top:24,bottom:24,topPhone:24,bottomPhone:24},Mse={name:"Banner",boxProps:e=>({...J,direction:"column",gap:0,...de(e,N2)}),box:[...ae,"contained",...Ie(N2)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...R,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:{...R,gap:20,gapPhone:20},parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...K,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...W("headingMedium",44,32)}},{kind:"text",key:"body",props:{...K,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...W("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],drop:{...te,...ie}},hw={Prose:Rse,TitleWithButtons:Fse,SectionHeader:Dse,ParagraphsA:Nse,Banner:Mse},M2={Prose:()=>({eyebrow:Cm.eyebrow,title:ur(Cm.title),body:Cm.body}),TitleWithButtons:()=>({title:ur(C2.title),buttons:v2.map(e=>({...e}))}),SectionHeader:()=>({num:Mr.num,title:ur(Mr.title),description:Mr.description,linkText:Mr.linkText,linkHref:co.href}),ParagraphsA:()=>({eyebrow:yd.eyebrow,lead:Ge.body,foundersHeading:yd.foundersHeading,foundersBody:yd.foundersBody,attribution:yd.attribution}),Banner:()=>({...w2,ctaText:co.text,ctaHref:co.href}),ProcessSteps:()=>({num:Mr.num,title:ur(Mr.title)})};function H2(){Co(hw),Co(RB),Co(VB),Co(CB),Co(aD),Co(MD),Co(QD),Co(rN),Co(xN),Co(TN),Co(MN),Co(ZN),Co(o2),Co(s2),Co(S2),Co(h2),Co(b2)}var Use=["FooterPayment"];function U2(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))Hse(n)&&(r[a]=n.map(s=>U2(s,o)));return o(e.type,r)}var Sd=(e,o)=>{if(!Use.includes(e.type))return null;H2();let t=da(e.type);return t?Xs({type:e.type,props:{...e.props}},t).nodes.map(r=>U2(r,o)):null};function W2(){let{appState:e,dispatch:o,config:t}=Kse(f=>f),{readOnly:r}=qse(),[a,n]=$se(!1),s=e.data.content;if(r||s.some(f=>f.type===We))return null;let l=s.find(f=>f.type===Xe)??null,d=(f,u)=>Gse(t,f,u),c=()=>{let f=qi(l,d,jse(We),Sd);o({type:"setData",data:u=>({...u,content:[...Pc(u.content,f)]}),recordHistory:!0}),n(!1)};return Tm(Vse,{tone:"info",title:i("This footer uses the old layout"),action:a?zse(Wse,{children:[Tm(xw,{variant:"primary",size:"sm",onClick:c,children:i("Switch now")}),Tm(xw,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):Tm(xw,{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 Iw,jsxs as Yse}from"react/jsx-runtime";import{InspectorUpLevel as z2}from"efficient-easel/chrome";function $2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=zp(),n=js(e,o,"picture");return Yse("div",{children:[o!=="media"?Iw(z2,{inline:!0,name:i(dn.media),onSelect:()=>a(Oi(e,"media"))}):Iw(z2,{inline:!0,name:i(t),onSelect:r}),Iw(Vt,{part:o,motion:n,itemWord:i(dn[o])})]})}import{HintsToggle as dle,SettingsSwitch as cle,hintsFoldClass as fle}from"efficient-easel/panel";import{useHints as ple}from"efficient-easel/screen/lib/hints";var Y2={kind:"header"},yw={kind:"website"},X2={kind:"website",tab:Ms,revealPageGroup:!0},Z2={kind:"chat"},J2={kind:"social"},wd="Part";function ule(e){return i("Part of {name}",{name:i(e)})}function mle(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?ule(r.label):i(wd)}}function hle(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 Q2({what:e}){let o=hle(e);return xa("div",{className:"sf-note",children:[Ee("p",{children:Ee("strong",{children:o.title})}),xa("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 bw(e){let o=Ei[e];return{name:dn[e],kindLabel:wd,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=q2({name:i(Gp(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($2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var xle={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(Rp,{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(NA,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Ee($A,{unavailable:Ee(Q2,{what:"Social link"})})},ticker:{name:ki,kindLabel:wd,icon:"ticker",head:(e,o)=>e.kind==="ticker"?mle(o,e.heroId,i(ki)):null,render:e=>Ee(lR,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:bw("media"),heroImage:bw("image"),heroImage2:bw("image2"),part:{name:wd,kindLabel:wd,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}=Gt(e.propKey),n=a?Os(t.fields[r],a):t.fields[r],s=xu(t.type),l=s?Cl(s,e.propKey):null,d=s&&l?s[l].label:gR[e.propKey],c=d?i(d):qO(i(Tg(ap(n??{},r))),a),f=q2({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(HR,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Ile=new Set(["header","website","chat"]);function gle(e,o){if(e==="selection")return null;let t=xle[e];return Ile.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Ee(Q2,{what:t.name})}:t}function eM({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}=nle(),{rows:C}=wi(),w=C?.find(M=>M.slug===u)??null,T=Zse(),y=Object.keys(T.fields).some(M=>!M.startsWith("_")&&!yi.includes(M)),{websiteName:b}=ue(),P=sle({readOnly:I}),{select:H}=lle(),{selectedItem:E,getItemById:U,getSelectorForId:O,config:D,appState:v}=Xse(M=>M),_=rle(D,E?{type:E.type,props:E.props}:null),A=E?e_(_??D.components[E.type]?.fields,E.props):[],F=M=>D.components[M]?.label??M,z=E?O(E.props.id):void 0,$=gle(e.kind,d),X=ale(),Q={capabilities:d,tokenRef:c,hostPanels:X.chrome?.panels,describeNode:M=>{let Re=U(M);if(!Re)return null;let ye=D.components[Re.type];return{type:Re.type,label:ye?.label??Re.type,fields:ye?.fields??{},props:Re.props??{}}},siteId:p,websiteName:b??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},Fe=$?.head?.(e,Q)??null,Oe=AA({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!==V2?i("Block"):i("Section"):Oe.kindLabel),ge=$?$.icon:E?E.type:"page",Te=gw(e)&&E?Ui(E.type):null,_e=!!E&&!!z&&z.zone===V2&&E.type!==Xe&&E.type!==ile,Ne=_u(v?.data,E),ao=()=>{Ne||z&&P.duplicateComponent(z.zone,z.index)},bo=()=>{z&&(P.removeComponent(z.zone,z.index),P.select(null))},ne=E?D.components[E.type]?.defaultProps?.previewHover:void 0,Me=gw(e)&&!!E&&!!z&&ne!==void 0,Ve=Me&&E.props.previewHover===!0,Z=()=>{!E||!z||P.replaceComponent(z.zone,z.index,{...E,props:{...E.props,previewHover:!Ve}})},{shown:Ae,setShown:dt}=ple(),fo=!!($||E||y);return xa("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${fle(Ae)}`.trim(),children:[Ee(ele,{icon:Ee(cn,{type:ge,size:15}),name:ze,kind:Ke,actions:!n&&gw(e)&&E&&E.type!==Xe?xa(G2,{children:[Ee(j2,{label:i("Duplicate section"),title:Ne??void 0,disabled:Ne!==null,onClick:ao,children:Ee(ole,{size:15})}),_e&&d.hasSiteSettings&&Ee(ZR,{node:E,currentSlug:u,siteId:p??void 0,tokenRef:c,runAuthed:h,onNotify:s}),Ee(j2,{label:i("Remove section"),danger:!0,onClick:bo,children:Ee(tle,{size:15})}),l?Ee(K2,{side:"right",onHide:l,divider:!0}):null]}):l?Ee(K2,{side:"right",onHide:l}):void 0}),Me&&xa("div",{className:"sf-preview-pin",children:[xa("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(cle,{checked:Ve,onChange:Z,ariaLabel:i("Preview hover state")})]}),xa("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$?$.render(e,Q):E?xa(G2,{children:[E.type===Xe&&d.hasSiteSettings&&Ee(W2,{}),Ee($P,{children:Ee(Vt,{entries:Ee(JR,{parts:A,heading:!1,onOpen:M=>H(tp(E.props.id,M))}),entryCount:$y(A).length,itemWord:ze})}),Te&&Ee(yu,{source:Te,slug:Vs(E?.props),menuId:mu(E?.props)})]}):y?Ee(Vt,{omit:yi}):Ee(Qse,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&Ee(Jse,{variant:"secondary",onClick:r,children:i("This page")})}),fo&&Ee(dle,{shown:Ae,onChange:dt,label:i("Show hints")})]})]})}import{jsx as m,jsxs as L,Fragment as nM}from"react/jsx-runtime";var go={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)"},Sw="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 G({w:e,h:o,tone:t="dark",r=2,style:a}){return m("div",{style:{width:e,height:o,borderRadius:r,background:go[t],flex:"none",...a}})}var ble={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 Ur({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 L("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 Em({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function oM({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return L(nM,{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 ww({name:e,price:o}){return L("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(Ur,{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 L("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}),L("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 L("div",{style:{...Y,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(Em,{children:e}),o]})}function tM({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 Cw({filled:e=5,size:o=6}){return L("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 Cd({n:e,label:o,tone:t=x.text}){return L("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 Pm({label:e,w:o="100%",filled:t}){return L("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 rM({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 yle={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])=>L("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(Ur,{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:L("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[L("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>L("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"})]}),L("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:L("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?"}),L("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>L("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])=>L("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:L(De,{title:"Will it fit your car?",children:[m("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>L("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])=>L("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:L("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)=>L("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))}),L("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:L("div",{style:{...Y,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Em,{children:"Buy it with"}),L("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(Ur,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),L("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:L("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...je(x.ink,x.ink2)},children:[L("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])=>L("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])=>L("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:L("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=>L("div",{style:{position:"relative",minHeight:0},children:[m(G,{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])=>L("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[m(G,{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}),L("div",{style:{flex:1,minHeight:0,position:"relative"},children:[m(G,{r:3,style:{...Y,...je(x.paper,x.paper2,150)}}),m(G,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),m(G,{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:L("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[L("div",{style:{display:"flex",gap:5},children:[m(Pm,{label:"Name"}),m(Pm,{label:"Email"})]}),m(Pm,{label:"Message",filled:!0}),m(rM,{children:"SEND"})]})}),appointmentbooking:m(De,{title:"Book a fitting",children:L("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:L("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Cw,{filled:4,size:14}),m(Pm,{label:"Your review",filled:!0}),m(rM,{children:"POST"})]})}),submitbuild:m(De,{title:"Show us your build",children:L("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:L("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"}),L("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:L("div",{style:{...Y,overflow:"hidden",...je(x.ink,x.inkSoft2)},children:[m(Ur,{size:92,style:{right:-18,top:-14}}),m("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),L("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:L("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:L("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])=>L("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])=>L("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...je(e,o,150)}}),L("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:L("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])=>L("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])=>L("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:L("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}}),L("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:L("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."}),L("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=>L("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:L("div",{style:{...Y,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[L("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[m(Cd,{n:"27k",label:"Rigs"}),m(Cd,{n:"4.9",label:"Rating"})]}),L("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:L(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:L("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))}),L("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:L("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)=>L("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}}),L("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:L("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"}),L("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)=>L("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:L("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:L("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[L("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:L("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?"}),L("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:L("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)=>L("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&m("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),L("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:L("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:L("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:L("div",{style:{...Y,overflow:"hidden",background:x.card},children:[m("div",{style:{position:"absolute",inset:0,...je(x.ink,x.inkSoft2)}}),m(Ur,{size:64,style:{right:8,top:6}}),L("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:L(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:L(De,{title:"Order summary",children:[L("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(Ur,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),L("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"})]})]}),L("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"}),L("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])=>L("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:L("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[m(Em,{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:L("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"}),L("div",{style:{display:"flex",gap:8},children:[m(Cd,{n:"27k",label:"Rigs fitted",tone:x.onInk}),m(Cd,{n:"12",label:"Years",tone:x.onInk}),m(Cd,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:L("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(Cw,{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"}),L("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m(tM,{}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:L(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])=>L("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[m(tM,{size:12}),L("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[L("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(Cw,{filled:o})]}),m(ho,{children:t})]})]},e))})]}),logos:L("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:L("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"}),L("div",{style:{display:"flex",gap:6},children:[m("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),L("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])=>L("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])=>L("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[L("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:L("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(oM,{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(Ur,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:L("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(oM,{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(Ur,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(De,{title:"Best sellers",children:L("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(ww,{name:"Ridge 19",price:"$365"}),m(ww,{name:"Ridge 29",price:"$410"}),m(ww,{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:L("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(Ur,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),L("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:L("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:L("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:L("div",{style:{...Y,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[m(Em,{children:"How it works"}),m("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>L("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=L("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])=>L("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))})},aM={subscribe:L("div",{style:{...Y,padding:13,display:"flex",flexDirection:"column"},children:[L("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[L("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m(G,{w:8,h:8,r:2,tone:"accent"}),m(G,{w:38,h:7,r:3,tone:"dark"}),m(G,{w:16,h:7,r:3,tone:"accent"})]}),m(G,{w:38,h:4,r:2,tone:"soft"})]}),m("div",{style:{height:1,background:go.line,marginBottom:10}}),L("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${go.line}`,borderRadius:7,padding:10},children:[L("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[m(G,{w:"46%",h:3,r:2,tone:"accent"}),m(G,{w:"84%",h:8,r:4,tone:"dark"}),m(G,{w:"56%",h:8,r:4,tone:"accent"}),m(G,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),L("div",{style:{display:"flex",gap:5,marginTop:4},children:[m("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${go.line}`,background:go.block}}),m(G,{w:34,h:13,r:5,tone:"accent"})]})]}),L("div",{style:{flex:1,background:go.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[m(G,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>L("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${go.line}`:"none",paddingTop:o?4:0},children:[m(G,{w:34,h:4,r:2,tone:"dark"}),m(G,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:L("div",{style:{...Y,display:"flex"},children:[m("div",{style:{width:"44%",background:Sw}}),L("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(G,{w:"44%",h:5,r:3,tone:"accent"}),m(G,{w:"88%",h:8,r:4,tone:"dark"}),m(G,{w:"70%",h:8,r:4,tone:"dark"}),m(G,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),m(G,{w:"80%",h:5,r:2,tone:"soft"}),m(G,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:L(nM,{children:[m(G,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),L("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[L("div",{style:{display:"flex",alignItems:"center",gap:9},children:[m(G,{w:16,h:16,r:4,tone:"accent"}),m(G,{w:"20%",h:9,r:4,tone:"dark"})]}),m(G,{w:"62%",h:10,r:5,tone:"dark"}),m(G,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:m("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:L("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m(G,{w:"22%",h:12,r:4,tone:"dark"}),L("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[m(G,{w:26,h:6,r:3,tone:"soft"}),m(G,{w:26,h:6,r:3,tone:"soft"}),m(G,{w:26,h:6,r:3,tone:"soft"}),m(G,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:L("div",{style:{...Y,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[L("div",{style:{display:"flex",gap:14},children:[L("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[m(G,{w:"60%",h:9,r:4,tone:"dark"}),m(G,{w:"90%",h:5,r:2,tone:"soft"}),m(G,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>L("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[m(G,{w:"50%",h:6,r:3,tone:"dark"}),m(G,{w:"80%",h:5,r:2,tone:"soft"}),m(G,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),m("div",{style:{height:1,background:go.line}}),L("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(G,{w:"30%",h:5,r:2,tone:"soft"}),m(G,{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:go.block}},o))}),blanksection:m("div",{style:{...Y,padding:14,display:"flex"},children:L("div",{style:{flex:1,border:`1px dashed ${go.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[m(G,{w:14,h:2,r:1,tone:"tint"}),m(G,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:L("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[m(G,{w:"100%",h:6,r:3,tone:"soft"}),m(G,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),m(G,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:m("div",{style:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(G,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:L("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:Sw},children:[m(G,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),m(G,{w:16,h:10,r:3,tone:"accent"}),m(G,{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(G,{w:"64%",h:13,r:4,tone:"dark"})}),text:L("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(G,{w:"100%",h:6,r:3,tone:"soft"}),m(G,{w:"96%",h:6,r:3,tone:"soft"}),m(G,{w:"100%",h:6,r:3,tone:"soft"}),m(G,{w:"58%",h:6,r:3,tone:"soft"})]}),image:m("div",{style:{position:"absolute",inset:14,borderRadius:7,background:Sw}}),button:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center"},children:m(G,{w:"34%",h:16,r:8,tone:"accent"})}),menu:L("div",{style:{...Y,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(G,{w:"48%",h:7,r:3,tone:"dark"}),m(G,{w:"82%",h:5,r:2,tone:"soft"}),m(G,{w:"66%",h:5,r:2,tone:"soft"}),m(G,{w:"74%",h:5,r:2,tone:"soft"}),m(G,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:L("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m(G,{w:"56%",h:8,r:3,tone:"dark"}),L("div",{style:{display:"flex",gap:6},children:[m("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${go.line}`}}),m(G,{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(G,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:L("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m(G,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>m(G,{w:20,h:13,r:3,tone:"dark"},e))]}),search:m("div",{style:{...Y,padding:"0 18%",display:"flex",alignItems:"center"},children:L("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${go.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${go.dark}`}}),m(G,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:L("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 ${go.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${go.dark}`},children:m(G,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:L("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[L("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${go.line}`},children:[m(G,{w:22,h:6,r:2,tone:"dark"}),m(G,{w:6,h:4,r:1,tone:"soft"})]}),L("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${go.line}`},children:[m(G,{w:"80%",h:4,r:2,tone:"accent"}),m(G,{w:"64%",h:4,r:2,tone:"soft"}),m(G,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:L("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m("div",{style:{height:1,background:go.line}}),L("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(G,{w:"38%",h:5,r:2,tone:"soft"}),L("div",{style:{display:"flex",gap:5},children:[m(G,{w:14,h:5,r:2,tone:"soft"}),m(G,{w:14,h:5,r:2,tone:"soft"}),m(G,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:m("div",{style:{position:"absolute",inset:14,borderRadius:8,background:go.block}})};function sM({type:e}){let o=ble[e]??"",t=yle[o]??aM[o]??aM.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 Jm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as sl,jsxs as lM}from"react/jsx-runtime";import Sle from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as wle}from"efficient-easel/rail";import{Tooltip as Cle}from"efficient-shell/ui";import{HintsToggle as vle,hintsFoldClass as kle}from"efficient-easel/panel";import{useHints as Tle}from"efficient-easel/screen/lib/hints";function iM({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let d=Hs(),{shown:c,setShown:f}=Tle();return lM("div",{className:`sf-styles ${kle(c)}`.trim(),children:[sl(Sle,{icon:sl(wle,{}),title:i("Styles"),context:sl(Cle,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:d,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:sl("span",{className:"sf-name-text",children:d})})}),lM("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[sl(Rp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),sl(vle,{shown:c,onChange:f,label:i("Show hints")})]})]})}import{jsx as ko,jsxs as Ln,Fragment as Lle}from"react/jsx-runtime";import{Fragment as wM,useEffect as CM,useRef as Ow}from"react";import{useTreeDrag as vM}from"efficient-easel/drag";import{GlobeIcon as Rle,ImageIcon as Fle,LocationIcon as Ble,MapIcon as Dle,TextLinesIcon as Nle,TrashIcon as kM}from"efficient-easel/icons";import{Subtree as TM,TreeRow as kd,TreeRowAction as PM,TreeSeam as EM}from"efficient-easel/tree";import{useEaselStrings as Mle}from"efficient-easel/strings";import{createPreviewSelectionContext as Ple}from"efficient-easel/draw/client";var{Provider:W$e,useSelection:dM}=Ple("selectedLocationPartId");function cM(e,o,t){return`${e}::${o}::${t}`}function fM(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 Hle}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Ele}from"react";var Ole={level:"groups"},uM=Ole,vw=new Set;function Xt(e){uM=e;for(let o of vw)o()}function _le(e){return vw.add(e),()=>{vw.delete(e)}}var pM=()=>uM;function mM(){return Ele(_le,pM,pM)}var vd=e=>String(e?.group??""),kw=new WeakMap,Ale=0;function Om(e){let o=kw.get(e);return o||(o=`loc${++Ale}`,kw.set(e,o)),o}var hM=(e,o)=>o||e||"Ungrouped",xM={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
337
+ Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function An(e){return Lu(e,vd,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var Tw=e=>e.flatMap(o=>o.cards),IM=(e,o,t)=>Math.min(Math.max(e,o),t);function _m(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(vd(e[a])===o){if(r===t)return a;r++}return-1}function Pw(e,o,t){let r=An(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=IM(o<t?t-1:t,0,r.length);return r.splice(n,0,a),Tw(r)}function Ew(e,o,t,r,a){let n=An(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&&kw.set(c,Om(d));let f=IM(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,c),Tw(n)}function gM(e,o){let t=An(e),r=t.find(n=>n.key===o),a={...xM,group:o,groupName:r?.name??""};return r?(r.cards.push(a),Tw(t)):[...e,a]}function bM(e){let o=new Set(An(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...xM,group:r,groupName:""}],key:r}}function yM(e,o){return e.filter(t=>vd(t)!==o)}function SM(e,o,t){let r=_m(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function K$e(e,o,t){let r=e.flatMap((s,l)=>vd(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 V$e(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>vd(n)===r);return a.length?a:t(r)})}var Lm="ContactLocations",Am=e=>({parentId:`locations-${e}`,slot:"groups"}),_w=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function OM(e,o){let{readOnly:t,selected:r}=o,a=Mle().tree,n=o.data?.content??[],s=Hle(e),l=Ow(null);CM(()=>{let y=r?.type===Lm?String(r.props.id):null;y&&y!==l.current&&Xt({level:"groups"}),l.current=y},[r?.props.id]);let{selectedLocationPartId:d,setSelectedLocationPartId:c,setSelectHandler:f}=dM(),u=mM(),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=vM({keyOf:y=>`group:${y.si}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Am(y.si).parentId&&b.slot==="groups",onDrop:(y,b)=>{p(y.si,Pw(h(y.si),y.index,b.index)),u.level==="city"&&Xt({level:"groups"})},onStep:(y,b)=>{p(y.si,Pw(h(y.si),y.index,b<0?y.index-1:y.index+2)),u.level==="city"&&Xt({level:"groups"})}}),g=vM({keyOf:y=>`city:${y.si}:${y.group}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Am(y.si).parentId&&b.slot.startsWith("cities:"),onDrop:(y,b)=>{let P=b.slot.slice(7);p(y.si,Ew(h(y.si),y.group,y.index,P,b.index)),Xt({level:"group",key:P})},onStep:(y,b)=>{p(y.si,Ew(h(y.si),y.group,y.index,y.group,b<0?y.index-1:y.index+2)),u.level==="city"&&Xt({level:"group",key:y.group})}}),C=Ow(n);C.current=n;let w=Ow(()=>{});CM(()=>{f(y=>{let b=fM(y);if(!b)return;let P=C.current.findIndex(H=>H.props?.id===b.nodeId);P<0||w.current(P,{level:b.part,index:b.index})})},[f]);let T=(y,b)=>{l.current=n[y]?.props?.id??null,o.select(y),Xt(b),e.reveal();let P=n[y]?.props?.id;typeof P=="string"&&(b.level==="city"||b.level==="image"||b.level==="map")?c(cM(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 U=h(b),O=An(U),D=String(y.props.id),v=s&&r?.props.id===D,_=F=>ko(EM,{...t?{}:I.seam({place:{...Am(b),index:F}})},`seam:${D}:groups:${F}`),A=(F,z)=>ko(EM,{...t?{}:g.seam({place:{..._w(b,F),index:z}})},`seam:${D}:cities:${F}:${z}`);return Ln(Lle,{children:[ko(kd,{icon:ko(Nle,{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($),Q=v&&u.level==="group"&&u.key===F.key,Fe=F.name||F.key?hM(F.key,F.name):i("Ungrouped"),Oe={..._w(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:{...Am(b),index:z}},ze.rowProps);return Ln(wM,{children:[z===0&&_(0),ko(kd,{icon:ko(Rle,{size:13}),name:Fe,words:a,onSelect:()=>T(b,{level:"group",key:F.key}),selected:Q,draggable:Ke.draggable,dragging:Ke.dragging,drop:Ke.drop??ze.drop,fold:{open:!X,label:i("group"),onToggle:()=>E($)},actions:ko(PM,{kind:"delete",label:Wo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",F.cards.length,{label:Fe}),onClick:()=>{p(b,yM(U,F.key)),Xt({level:"groups"})},children:ko(kM,{size:15})}),rowProps:Ke.rowProps,count:F.cards.length,countLabel:Wo("{n} city","{n} cities",F.cards.length)}),!X&&Ln(TM,{children:[F.cards.map((ge,Te)=>{let _e=_m(U,F.key,Te),Ne=v&&u.level==="city"&&u.index===_e,ao=String(ge?.name??"")||i("City"),bo=`${D}::city::${Om(ge)}`,ne=H(bo),{rowProps:Me,...Ve}=g.row({item:{si:b,group:F.key,index:Te},place:{..._w(b,F.key),index:Te}},{onClick:P(()=>T(b,{level:"city",index:_e}))});return Ln(wM,{children:[Te===0&&A(F.key,0),ko(kd,{icon:ko(Ble,{size:13}),name:ao,words:a,onSelect:()=>T(b,{level:"city",index:_e}),selected:Ne,...Ve,fold:{open:!ne,label:ao,onToggle:()=>E(bo)},actions:ko(PM,{kind:"delete",label:i("Delete {name}",{name:ao}),onClick:()=>{p(b,SM(U,F.key,Te)),Xt({level:"group",key:F.key})},children:ko(kM,{size:15})}),rowProps:Me}),!ne&&Ln(TM,{children:[ko(kd,{icon:ko(Fle,{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(kd,{icon:ko(Dle,{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)]},Om(ge))}),Ln("button",{type:"button",className:"sf-add-card",onClick:()=>{let ge=gM(U,F.key);p(b,ge);let Te=An(ge).find(_e=>_e.key===F.key);Xt(Te&&Te.cards.length?{level:"city",index:_m(ge,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}=bM(U);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===Lm&&Xt({level:"groups"})}}}import{useEffect as qie,useRef as Yie}from"react";import{createNode as Uw,newId as Ww}from"efficient-easel/data";import{useEaselApi as Xie}from"efficient-easel/easel";import{useScreenDocument as Zie}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Jie}from"efficient-easel/screen/lib/session-context";import{useEffect as LH,useRef as jie}from"react";import{useEasel as Kie}from"efficient-easel/easel";import{ROOT_ZONE as Hw}from"efficient-easel/draw";var Td={};function _M(e){return Td={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Td}function AM(e){Td===e&&(Td={})}function ll(){return Td}import{jsx as Pt,jsxs as vH}from"react/jsx-runtime";import{createContext as Bie,useContext as Die,useEffect as Nie,useRef as Mie,useState as kH}from"react";import{jsx as Ia,jsxs as zM}from"react/jsx-runtime";import{useEffect as il,useRef as $M,useState as Rn}from"react";import{jsx as LM,Fragment as Ule,jsxs as Wle}from"react/jsx-runtime";import{useEffect as zle,useRef as RM,useState as $le}from"react";var Gle="#t=0.001",jle=2;function Kle(e,o){if(e.readyState<jle||!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 FM({src:e,objectPosition:o="50% 50%",onError:t}){let r=RM(null),a=RM(null),[n,s]=$le(!1);return zle(()=>{let l=r.current,d=a.current;if(n||!l||!d)return;let c=()=>{Kle(l,d)&&s(!0)};return c(),l.addEventListener("loadeddata",c),l.addEventListener("seeked",c),()=>{l.removeEventListener("loadeddata",c),l.removeEventListener("seeked",c)}},[n]),Wle(Ule,{children:[LM("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&&LM("video",{ref:r,src:`${e}${Gle}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as NM,imageSrcSet as Vle}from"efficient-shell/image-copies";var BM;function Aw(){return BM===void 0?{}:{host:BM}}var pGe="(max-width: 800px) 100vw, min(100vw, 1600px)",uGe="(max-width: 960px) 100vw, 50vw";function Lw(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=Vle(e,{...Aw(),...t===void 0?{}:{maxWidth:t}});return r?{src:NM(e,o,Aw()),srcSet:r}:{src:e}}var qle=/[\s"'()\\;]/,Yle={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function DM(e){return e.replace(/[\\"\n\r\f]/g,o=>Yle[o]??o)}function mGe(e){let o=NM(e,1920,Aw());return o===e?qle.test(e)?`url("${DM(e)}")`:`url(${e})`:`url("${DM(o)}")`}import{jsx as MM}from"react/jsx-runtime";import{createContext as Xle,useContext as Zle,useMemo as gGe}from"react";var HM=Xle(null);function UM({children:e}){return MM(HM.Provider,{value:"below",children:e})}function Pd(){return Zle(HM)}function Jle(){return Pd()==="below"?{loading:"lazy"}:{}}function WM(e){let o=Jle();return MM("img",{...e,...o})}var bGe="laterSlideIds";var Qle=.5;function Ed({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=Qle,objectPosition:d="50% 50%",objectPositionPhone:c,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:h=!1,laterOfLead:I=!1}){let g=YP(c,f),C=Pd(),[w,T]=Rn(!1),y=C==="below"&&!w,b=C==="first",P=a||"",H=n||"",E=$M(null),U=hd(E,!0,!0),O=U===void 0?void 0:U==="phone",D=Sc({video:e,av1:o,videoPhone:t,av1Phone:r},O===!0),v=D.video||"",_=yc(v,D.av1),[A,F]=Rn(!1),[z,$]=Rn(!1),[X,Q]=Rn(!1),[Fe,Oe]=Rn(!1),ze=p??!0,[Ke,ge]=Rn(!1),Te=C!=="first"&&!I,[_e,Ne]=Rn(!1),ao=$M(null);il(()=>{if(!Te)return;if(document.readyState==="complete"){Ne(!0);return}let Z=()=>Ne(!0);return window.addEventListener("load",Z,{once:!0}),()=>window.removeEventListener("load",Z)},[Te]),il(()=>{F(!1),$(!1),Q(!1),Oe(!1)},[v,P,H]),il(()=>{ze&&ge(!0)},[ze]),il(()=>{let Z=ao.current;Z&&(ze?Z.play()?.catch(()=>{}):Z.pause())},[ze,Ke,_e]),il(()=>{if(!h||Te&&!_e)return;let Z=()=>T(!0);if(typeof window.requestIdleCallback=="function"){let dt=window.requestIdleCallback(Z,{timeout:2e3});return()=>window.cancelIdleCallback(dt)}let Ae=setTimeout(Z,800);return()=>clearTimeout(Ae)},[h,Te,_e]),il(()=>{let Z=ao.current;if(!Z)return;let Ae=()=>{Z.playbackRate=l};return Ae(),Z.addEventListener("loadedmetadata",Ae),()=>Z.removeEventListener("loadedmetadata",Ae)},[v,l]);let bo=_k(P),ne=P&&(bo||H)&&!z?Lw(P):{src:P},Me=H&&!z?Lw(H):{src:H},Ve=H&&!y&&!w?[{sized:Me,media:ui},...P?[{sized:ne,media:Sl}]:[]]:[];return zM("div",{ref:E,className:"absolute inset-0 z-[1]",children:[Ia("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),Ve.map(({sized:Z,media:Ae})=>Ia("link",{rel:"preload",as:"image",href:Z.src,media:Ae,fetchPriority:"high",...Z.srcSet?{imageSrcSet:Z.srcSet,imageSizes:"100vw"}:{}},Ae)),(P||H)&&(bo||H?(()=>{let Z=Ia("img",{...P?{src:ne.src}:{},...ne.srcSet?{srcSet:ne.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&&(ne.srcSet||Me.srcSet?$(!0):F(!0))}},H?void 0:P);return H?zM("picture",{children:[Ia("source",{media:ui,srcSet:Me.srcSet||Me.src,sizes:"100vw"}),Z]},`${P} ${H}`):Z})():Ia(yD,{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&&Ia("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:()=>Q(!0),children:_.map(Z=>Ia("source",{src:Z.src,type:Z.type},Z.src))},v),s&&u&&v&&O!==void 0&&Ke&&(!Te||_e)&&!Fe&&(!P||A)&&Ia(FM,{src:v,objectPosition:d,onError:()=>Oe(!0)},v)]})}import{jsx as Fo,Fragment as QM,jsxs as Nw}from"react/jsx-runtime";import{jsx as dl}from"react/jsx-runtime";import{useRef as eie}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as oie,scrollAttrs as tie}from"efficient-shell/format";function GM({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:d,children:c}){let f=eie(null),u=xc(),p=qr(),h=n?p:es,I=md(f,!0,s),{attrs:g,style:C}=tie(e[I],o[I]),w=oie.includes(e[I].effect),T=Yr(`${Jn}${u.fill}${t?` ${t}`:""}`,h.className);if(w&&l==="picture")return h.scope(dl("div",{ref:f,className:T,...r,...h.attrs,...a?{style:a}:{},children:dl(xk,{attrs:g,style:C,children:u.inner(c)})}));let y=dl(Ik,{children:u.inner(c)});if(w){let P=d??(u.fill?"h-full":void 0);return h.scope(dl("div",{ref:f,className:T,...r,...h.attrs,style:{...a,overflow:"clip"},children:dl("div",{...P?{className:P}:{},...g,style:C,children:y})}))}let b=Object.keys(C).length||a?{style:{...a,...C}}:{};return h.scope(dl("div",{ref:f,className:T,...r,...h.attrs,...g,...b,children:y}))}import{MOTION_TIMING as rie}from"efficient-shell/format";var qM="grayscale(1) contrast(1.03)",GGe="Black and white";function aie(e){return e===!0?{filter:qM}:{}}function nie(e){let{filter:o}=aie(e);return o?{style:{filter:o}}:{}}var Fn="sf-photo-grayscale",Dw="data-sf-photo-host",jM={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Dm=`@media (hover:hover){.${Fn}{filter:${qM};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))}.${Fn}:hover,[data-sf-photo-host]:hover .${Fn}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Fn}{transition:none}}`;function YM(e){let o=rie.hover,t={...e.duration!==o.duration.default?{[jM.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[jM.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function XM(e,o,t){if(e===!0)return nie(!0);if(t?.kind==="mono"){let r=YM(t);return{className:Fn,sheet:Dm,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Fn}:{}}var ZM="data-sf-repeat",Rw="sf-photo-zoom",sie="--sf-photo-zoom",jGe="sf-photo-wash",Rm="sf-photo-wash-rest",Od="sf-photo-wash-hover",Bm="sf-photo-frame",JM=(e,o)=>`:not([${ZM}]:not(${o}) .${e})`,Bw=(e,o)=>`[${ZM}]${o} .${e}${JM(e,o)}`,Fw=(e,o)=>`${o},${Bw(e,":hover")},[${Dw}]:hover .${e}${JM(e,":hover")}`,KM=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))`,lie=`.${Od}{opacity:0}@media (hover:hover){.${Rm},.${Od}{transition:${KM("opacity")}}${Fw(Od,`.${Bm}:hover .${Od}`)}{opacity:1}${Fw(Rm,`.${Bm}:hover .${Rm}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Rw}{transition:${KM("transform")}}${Fw(Rw,`.${Bm}:hover .${Rw}`)}{transform:scale(var(${sie}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Rm},.${Od}{transition:none}}`,KGe="sf-photo-move";function VGe(e){if(!e||!e.zoom&&!e.darken)return null;let o=YM(e);return{className:Bm,sheet:lie,...o?{style:o}:{}}}function qGe(e){return e===!0?{[Fn]:Dm}:{}}var Fm="sf-box-reveal",YGe="sf-box-reveal",iie=8,VM=.3,XGe=`@media ${Sl}{.${Fm}{opacity:0;transform:translateY(${iie}px);transition:opacity ${VM}s ease-out,transform ${VM}s ease-out}${Bw(Fm,":hover")},${Bw(Fm,":focus-within")}{opacity:1;transform:none}}@media ${Sl} and (prefers-reduced-motion:reduce){.${Fm}{transition:none;transform:none}}`;import{hidableText as die}from"efficient-easel/draw";var cie={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"},fie={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 eH(e){let o=e.isVideo&&Xk(e.videoSource)==="youtube",t=e.isVideo&&Zk(e.videoPlayback)==="click",r=o?Jk(die(e.youtubeUrl)):null,a=$p(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:Rb(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Pi(e)>1}}function _d(e,o){return pc(xn({_partMotion:e},o))}function Ad(e,o){return ru(xn({_partMotion:e},o))}var Nm=e=>my({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),oH=Uh.img;function tH({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:d}){return e?Fo(lD,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:d}):o?Fo(GM,{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 cl(e,o){return XM(void 0,void 0,qC(xn({_partMotion:e},o)))}function rH(e){return ln.some(o=>cl(e,o).className)?{hostAttrs:{[Dw]:""},sheet:Dm}:{}}function Mm({treatment:e,children:o}){return e.className?Fo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Fo(QM,{children:o})}function Hm({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 Um({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let d=o&&t?{[_A]:e}:void 0;return Fo(tH,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:d,zoomLayerClass:oH,children:l})}function aH({partMotion:e,editing:o,children:t}){let r=_d(e,"media"),a=Ad(e,"media"),n=cl(e,"media"),s=Fo(gk,{fill:Uh,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(tH,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:oH,children:l}):Fo(QM,{children:l})}function nH({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return Nw("div",{className:`absolute inset-0 z-[1] grid ${cie[o]} ${fie[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Fo(Um,{part:"image",editing:t,marked:r,entrance:_d(a,"image"),scroll:Ad(a,"image"),origins:Nm(n),className:"relative overflow-hidden",children:Nw(Mm,{treatment:cl(a,"image"),children:[Fo(Ed,{posterSrc:ft(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Fo(Hm,{color:n.tintColor,opacity:n.tintOpacity})]})}),Fo(Um,{part:"image2",editing:t,marked:r,entrance:_d(a,"image2"),scroll:Ad(a,"image2"),origins:Nm(s),className:`relative overflow-hidden ${Zc({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:Nw(Mm,{treatment:cl(a,"image2"),children:[Fo(Ed,{posterSrc:ft(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Fo(Hm,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as ga,Fragment as pie,jsxs as uie}from"react/jsx-runtime";import{useEffect as mie,useRef as hie,useState as xie}from"react";import{PlaySolidIcon as Iie}from"efficient-shell/icons/efficient-looks";function sH({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=xie("large");return mie(()=>n("large"),[e]),e?uie(pie,{children:[!o&&a!=="none"&&ga(WM,{src:a==="large"?Qk(e):eT(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&&ga("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:ga("iframe",{src:Zh(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 lH({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let d=hie(null),c=hd(d,!0,!0)==="phone";if(!e&&!o)return null;let f=Sc({video:o,av1:t,videoPhone:r,av1Phone:a},c),u=yc(f.video,f.av1);return n&&!l?e?ga("iframe",{src:Zh(e,"click"),title:Jh,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"}):ga("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=>ga("source",{src:p.src,type:p.type},p.src))},f.video):ga("button",{ref:p=>{d.current=p},type:"button","aria-label":Jh,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:ga(Iie,{size:28})})}function iH(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 dH=["top","middle","bottom"],cH=["left","center","right"],fH="bottom",pH="left",gie={top:"Top",middle:"Middle",bottom:"Bottom"},bie={left:"Left",center:"Center",right:"Right"},kje="Up and down",Tje="Sideways",yie={top:"flex-start",middle:"center",bottom:"flex-end"},Sie={left:"flex-start",center:"center",right:"flex-end"},wie="--sf-hero-phone-y",Cie="--sf-hero-phone-x";function vie(e){return dH.includes(e)?e:fH}function kie(e){return cH.includes(e)?e:pH}function uH(e,o){let t=vie(e),r=kie(o),a={};return t!==fH&&(a[wie]=yie[t]),r!==pH&&(a[Cie]=Sie[r]),a}function Pje(){return dH.map(e=>({label:gie[e],value:e}))}function Eje(){return cH.map(e=>({label:bie[e],value:e}))}import{hexToRgb as Tie}from"efficient-shell/format";var Pie=!0;var Eie=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function mH(e){let o=Tie(e);return o?`${o.r},${o.g},${o.b}`:null}function hH(e){return e==null?Pie:e!==!1}function xH(e){let o=(e?mH(e):null)??mH(Nt);return`linear-gradient(180deg, ${Eie.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as IH}from"efficient-shell/format";var gH="bottom";var Oie=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],_ie={bottom:180,top:0,left:270,right:90},Aie=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],Lie=[[null,33],[.6,67],[.94,100]];function Rie(e,o){let{r:t,g:r,b:a}=IH(e)??IH(Nt);return`rgba(${t},${r},${a},${o})`}function bH(e){return io(Oie,gH,e)}function yH(e=Nt,o=gH){let t=bH(o),r=(t==="top"||t==="bottom"?Aie:Lie).map(([a,n])=>`${a===null?"transparent":Rie(e,a)} ${n}%`);return`linear-gradient(${_ie[t]}deg, ${r.join(", ")})`}function SH(e,o){let t=Se(e.overlayColor),r=Se(e.overlayPosition),a=Se(o)??Nt;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:bH(r)}}import{jsx as Fie}from"react/jsx-runtime";var wH="sf-photo-hover";function CH({sheet:e,name:o=wH}){return e?Fie("style",{href:o,precedence:wH,dangerouslySetInnerHTML:{__html:e}}):null}var Hie=Bie({});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:U,objectPosition2Phone:O,objectPosition2Tablet:D,tintColor2:v=Nt,tintOpacity2:_=0,videoSource:A,youtubeUrl:F,videoPlayback:z,partMotion:$,laterSlide:X=!1}){let Q=qr(),{alignment:Fe="left",textureOpacity:Oe,textureOn:ze,textureColor:Ke,quietVideo:ge,phoneUpDown:Te,phoneSideways:_e,holdReel:Ne,reelHeld:ao,shownSlide:bo,ratioMin:ne}=Die(Hie),Me=Pd(),Ve=X&&Me==="first",Z=Mie(null),[Ae,dt]=kH(bo===void 0?void 0:!1);Nie(()=>{let wa=Z.current;dt(bo===void 0||!wa?void 0:iH(wa.closest(".hero-track"),"data-slide-name")[bo]===wa)});let fo=t==="video",M=fo?ft(r):void 0,Re=fo?ft(n):ft(r)??ft(n),ye=fo?{av1:ft(s),phone:ft(l),av1Phone:ft(d),poster:ft(c)}:{},po=typeof a=="number"?a/100:1,{fromYouTube:Be,onClick:Ot,youTubeId:xr,backgroundFile:Ze,desktopLayout:Ir,phoneLayout:ba,twoPictures:Dn}=eH({isVideo:fo,videoSource:A,videoPlayback:z,youtubeUrl:F,mediaLayout:P,mediaLayoutPhone:H}),[Nn,gr]=kH(!1);Nn&&ao===!1&&gr(!1);let Wr=!Nn,ya=SH({overlayColor:y,overlayPosition:b},Ke),hl=fo?null:_d($,"image"),Sa=fo?null:Ad($,"image"),zd=rH($),xl=Pt(Mm,{treatment:fo?{}:cl($,"image"),children:Pt(Ed,{videoSrc:Ze?M:void 0,videoAv1Src:Ze?ye.av1:void 0,videoSrcPhone:Ze?ye.phone:void 0,videoAv1SrcPhone:Ze?ye.av1Phone:void 0,posterSrc:Re,posterSrcPhone:ye.poster,showVideo:Ze,playbackRate:po,objectPosition:f,objectPositionPhone:fo?void 0:u,objectPositionTablet:fo?void 0:p,quiet:ge,slideShown:Ae,laterSlide:X,laterOfLead:Ve})}),$d=vH("section",{ref:Z,className:Yr(`${ne?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${w?` ${w}`:""}`,Q.className),...Q.attrs,style:T,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ze&&M?"video":"still",...zd.hostAttrs,children:[Pt(CH,{sheet:zd.sheet}),Pt(aH,{partMotion:$,editing:C,children:Dn?Pt(nH,{laterSlide:X,desktopLayout:Ir,phoneLayout:ba,editing:C,marked:!1,partMotion:$,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:h,tintOpacity:I},second:{src:E,objectPosition:U,objectPositionPhone:O,objectPositionTablet:D,tintColor:v,tintOpacity:_}}):Be||hl||Sa?vH(Um,{part:fo?"media":"image",editing:C,marked:!1,entrance:hl,scroll:Sa,origins:Nm({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[xl,Be&&Pt(sH,{youTubeId:xr,ownPoster:!!Re,background:!Ot,editing:C})]}):xl}),Ot&&Pt(lH,{youTubeId:xr,fileSrc:Be?void 0:M,fileAv1Src:Be?void 0:ye.av1,fileSrcPhone:Be?void 0:ye.phone,fileAv1SrcPhone:Be?void 0:ye.av1Phone,playing:Nn,onPlay:()=>{gr(!0),Ne?.()},editing:C}),Wr&&!Dn&&Pt(Hm,{color:h,opacity:I,passClicks:!1}),Wr&&hH(ze)&&Pt("div",{className:"absolute inset-0 z-[2]",style:{background:ya.own?yH(ya.color,ya.position??void 0):xH(ya.color),...Oe!==void 0?{opacity:Oe/100}:null}}),Wr&&Pt("div",{className:[ne?"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:{...nk,...uH(Te,_e)},children:g&&Pt(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return Q.scope(Ve?Pt(UM,{children:$d}):$d)}var TH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as EH}from"efficient-easel/draw";import{isNodeList as Uie}from"efficient-easel/data";var OH=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Uie(r)?r.map(a=>OH(a,o)):r]))}}),Wie=e=>{let[o]=$n([VS()],a=>EH(a)),{id:t,...r}=OH(o,e).props;return r},mr={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>TH.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${gl.toLowerCase()}`,seeds:()=>[],addBlocked:Mh,notice:Hh},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${gl.toLowerCase()}`,seeds:()=>[],addBlocked:Mh,notice:Hh},ProcessSteps:{slot:gm,childType:oe,addLabel:`Add ${gl.toLowerCase()}`,seeds:e=>Array.from({length:KS},()=>Wie(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},PH=1,zie={slot:Ti,childType:oe,addLabel:`Add ${gl.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=PH?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>PH?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},_H={Hero:{[Ti]:zie}};function uKe(e){for(let[o,t]of Object.entries(e)){if($e(mr,o)&&j(mr,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);mr[o]=t}}function mKe(e,o){let t=j(mr,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:EH(t.childType),...r}}))}:null}var $ie={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},Gie={"Footprint.source":"typed"};function Mw(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries($ie)){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(Gie)){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],pC(l)&&l!==a&&!Zt(d)&&(d[yo]=l),o=d,t=!0}if(e.type&&o){let r=Sv(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=ts({props:o},a=>os(a,Mw));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function bKe(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(Mw);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(Mw);return d.some((c,f)=>c!==l[f])&&(a=!0),[s,d]}));a&&(r.zones=n,t=!0)}return t?r:e}function AH(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 FH(e){let o=Kie(c=>c.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=ue(),d=jie(new Set);LH(()=>{let c=RH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});c&&Vie(uF(o,void 0,c),e,d.current)},[o,e,t,r,a,n,s,l]),LH(()=>{let c=_M(RH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>AM(c)},[t,r,a,n,s,l])}function RH(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=AH({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 Vie(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(Hw,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(Hw,r+1+l,s),o.replaceComponent(Hw,r+1+l,s)}))}}import{ROOT_ZONE as fl,missingPinnedTypes as Qie,pinnedDuplicateIds as zw}from"efficient-easel/draw";function BH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function DH(e,o){let t=e.some(l=>l?.type===We),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 NH(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(Pc(r,t)),!0)}function MH(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:d,tokenRef:c}=Zie(),f=Jie(),{hasSiteSettings:u,hasPinnedChrome:p}=r;FH(e);let h=!!r.editsPinnedInPlace&&a!==Mt,I=a===Mt,g=Xie().getState,C=Yie(null);qie(()=>{if(!BH({docId:n,saveStatus:l,seededDocId:C.current})||(C.current=n,!p))return;let w=g().appState.data,T=w.content,y=s?.content??[],b=(U,O)=>U.some(D=>D?.type===O);if(!u){let U=new Set(zw(T)),O=U.size?T.filter(v=>!U.has(v.props.id)):T;if(U.size&&e.setDocument({...w,content:O}),I)return;let D=Qie(O,y);if(D.includes(Xe)){let v=O.length,_=e.insertSection(Xe,v);e.replaceComponent(fl,v,{type:Xe,props:{id:_,blocks:Ou()}})}D.includes(Jo)&&e.insertNode(fl,0,Eu());return}if(I){let U=ns(T);if(U!==T&&e.setDocument({...w,content:[...U]}),!U.find(O=>O.type===Xe)&&!b(y,Xe)&&!b(U,We)&&!b(y,We)){let O=(v,_)=>Uw(o,v,_),D={type:Xe,props:{blocks:Ou()}};e.insertNode(fl,U.length,qi(D,O,Ww(We),Sd))}return}if(h){let U=!!t?.pinnedChrome?.state().docId,O=DH(T,{hasChromeDoc:U}),D=new Set([...O.remove,...zw(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,We)){let _=(F,z)=>Uw(o,F,z),A={type:Xe,props:{blocks:Ou()}};e.insertNode(fl,v.length,qi(A,_,Ww(We),Sd))}if(O.seedHeader&&!b(y,Jo)){let _=v[0]?.type===Ye?1:0;e.insertNode(fl,_,Eu())}if(O.seedSiteHeader&&!b(y,Ye)&&!b(y,Xe)&&!b(y,We)){let _=n;NH({blocks:Qc(f),make:(A,F)=>Uw(o,A,F),id:Ww(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(U=>U.type!==Xe),H=new Set(zw(P)),E=H.size?P.filter(U=>!H.has(U.props.id)):P;E.length!==T.length&&e.setDocument({...w,content:E}),!b(E,Jo)&&!b(y,Jo)&&e.insertNode(fl,0,Eu())},[n,l,s,g,e,u,p,I,h,t,f,d,c])}import{useEffect as t4,useMemo as ude,useRef as r4}from"react";import{useEasel as mde}from"efficient-easel/easel";import{useEaselHost as hde}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as lde}from"efficient-easel/screen/lib/host";import{isNode as Gw}from"efficient-easel/data";import{SITE_SIDE as WH}from"efficient-easel/screen/lib/content/length-units";var HH=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],t8e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:ZC,separator:JC,scrollDirection:Fi}};var UH=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],n8e={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 zH(e,o,t){return Bo(oe,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Wm={Manifesto:(e,o)=>({type:oe,props:{...e(oe),id:o(oe),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Bo(oe,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:WH,sectionPaddingRight:WH,content:[Bo("Text",e,o,vr()),Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("Stats",e,o)]}),zH(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:oe,props:{...e(oe),id:o(oe),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[Bo(oe,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)]}),zH(e,o,{direction:"column",name:"Image",content:[Bo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:oe,props:{...e(oe),id:o(oe),direction:"column",name:"Subscribe",content:[Bo("Text",e,o,jr()),Bo("Text",e,o),Bo("Form",e,o)]}}),Ticker:(e,o)=>$H("Scrolling Bar",lm,cd,HH.map(t=>({text:t.text,style:im,muted:!0})),e,o),SpecStrip:(e,o,t)=>$H("Spec Strip",t?.theme?{...pd,sectionAccent:ic(xo(t.theme))}:{...pd,sectionBorder:{top:1}},fd,UH().map(r=>({text:r.text??"",style:ud,muted:r.tone==="muted"})),e,o)};function $H(e,o,t,r,a,n){return Bo(oe,a,n,{...Pn,...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 GH(e){return j(Wm,e)??null}import{isNodeList as $w}from"efficient-easel/data";var O8e=Object.keys(hw),ede={Logos:qB,DocMasthead:uN,DocTabs:CN,Timeline:DD,TimelineTrack:ND},ode={PaymentBadges:YB,PaymentLogosBlock:XB};function zm(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]=$w(n)?n.map(s=>zm(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var jH=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function $m(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Xs({type:e,props:{...a(e),...r(),id:n(e)}},o,jH(s));return zm(l[t],a,n)}}var tde={Stats:ade,Cards:rde};function rde(){let e=da("Cards");if(!e)return null;let o=$m("Cards",e,0,wB);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function ade(){let e=da("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Xs({type:"StatsParagraph",props:{...o("StatsParagraph"),...FB(),id:t("StatsParagraph")}},e,jH(r)),n=a[0],s=$w(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=VH(gS(BB(),"table")),d=s.map(KH),c=zm({...n,props:{...n.props,content:[...d,l]}},o,t);return{...c,props:{...c.props,name:"Stats section"}}}:null}function KH(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:$w(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(KH)}}:e}var VH=e=>$n([e],(o,t)=>`${o}-seed-${t}`)[0];function nde(e,o){if(!pF(e,o))return null;let t=j(tde,e);if(t)return t();let r=da(e);return r?$m(e,r,0,j(ede,e)??j(M2,e)??j(ode,e)):null}function sde(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=zm(VH(gS([],"list")),o,t);return{...l,props:{...l.props,name:"Numbers"}}}let s=ts(n,l=>os(l,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function pl(e,o=Xi){let t=GH(e);return t?sde(t):nde(e,o)}function Ld(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function ide(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function jw(e,o,t,r){e.forEach((a,n)=>{if(Gw(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(Gw)&&jw(l,a,s,r)}})}function dde(e){let o=[];jw(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&jw(t,null,"",o);return o}function XH(e,o){return dde(e).find(t=>String(t.node.props.id)===o)}function ZH(e,o,t){if(!t)return null;let r=XH(o,t);if(!r)return null;let a=Ld(e,r.node.type),n=r.parent?`${Ld(e,r.parent.type)} \xB7 ${ide(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var cde=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 fde(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[lde]: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=cde(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=JH(l))}return r}function JH(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=fde(r);a&&(o[t]=a)}return o}function QH(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Ld(e,t),fields:JH(r.fields),...e4(t)?{retired:!0}:{}});return o}function e4(e){return $e(xC,e)}function qH(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function pde(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 Kw(e,o){return e.findIndex(t=>Gw(t)&&String(t.props.id)===o)}function YH(e,o,t){let r=o||t;if(!r)return e.length;let a=Kw(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function o4(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=XH(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=pde(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}`),e4(l.type)&&c(`${Ld(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=pl(l.type),u=Object.keys(l.props??{}).filter(h=>h!=="id");f&&u.length&&c(`${Ld(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=>qH(e,h),r,a):{type:l.type,props:{...qH(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(YH(s,l.after,l.before),0,p);break}case"remove_block":{let f=Kw(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=Kw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(YH(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 Vw=e=>Se(e.requestId)??null;function a4(){let e=hde(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=mde(p=>p),s=n,l=r4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let d=r4(new Map),c=t?.props?.id,f=ude(()=>ZH(s,o.data,c),[s,o.data,c]),u=f?JSON.stringify(f):"";t4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),t4(()=>e.subscribe(p=>{let{appState:h,dispatch:I,history:g,blockConfig:C}=l.current;switch(p.type){case"storefront-editor:request-document":{let w=Vw(p);if(!w)return;e.send("storefront-editor:document",{requestId:w,document:h.data,blocks:QH(C)});return}case"storefront-editor:apply-page-edits":{let w=Vw(p);if(!w)return;let T=Array.isArray(p.ops)?p.ops:[],y=T.length?o4(C,h.data,T,b=>`${b}-${crypto.randomUUID()}`,ll()):{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=Vw(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 l4,useState as i4}from"react";var Gm=new Map;async function xde(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 n4(e,o){let t=Gm.get(o);return t||(t=xde(e,o),Gm.set(o,t),t.catch(()=>{Gm.get(o)===t&&Gm.delete(o)})),t}var Ide=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function qw(e){return!!e&&Ide.test(e)}function s4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Wc?"/":`/${encodeURIComponent(o)}`;if(!qw(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function d4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=i4(null),[s,l]=i4(null),d=Ok();l4(()=>{try{l(new URL(gc()).hostname)}catch{l(null)}},[d]),l4(()=>{if(!qw(s)||!t||!r){n(null);return}let f=!1;return n4(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let c=s4({pageSlug:o,siteSlug:a,hostname:s});return d?`${d}${c}`:c}import{jsx as Rd}from"react/jsx-runtime";import{useEffect as gde,useRef as c4,useState as bde}from"react";import{ExternalIcon as f4}from"efficient-easel/icons";import{EaselIconButton as yde}from"efficient-easel/chrome";import{Tooltip as Sde,iconButtonClasses as wde}from"efficient-shell/ui";import{useSettledPress as Cde}from"efficient-easel/easel";import{useScreenDocument as vde}from"efficient-easel/screen/components/ScreenDocumentContext";async function kde({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 p4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=vde(),a=c4(r);a.current=r;let n=Cde(),[s,l]=bde(!1),d=c4(null);if(gde(()=>()=>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),kde({pageId:o,liveHref:e,draftLink:t,ready:c}).finally(()=>l(!1)))};return Rd(yde,{label:i("Preview your saved draft in a new tab"),tip:i("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:Rd(f4,{})})}return Rd(Sde,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:Rd("a",{className:wde({className:"es-iconbtn"}),href:e,...rd,"aria-label":i("Preview the live site in a new tab"),children:Rd(f4,{})})})}import{createElement as _de,useCallback as Ade,useEffect as O4,useRef as _4,useState as Lde}from"react";import{ClockIcon as Rde}from"efficient-shell/icons/efficient";import{useScreenDocument as Fde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as Tde}from"react";import{useScreenDocument as Pde}from"efficient-easel/screen/components/ScreenDocumentContext";var Ede=()=>()=>{},u4=()=>null;function jm(e){return Tde(e?e.subscribe:Ede,e?e.state:u4,e?e.state:u4)}function Km(){let{adapter:e}=Pde();return e?.pinnedChrome}import{useSyncExternalStore as x4}from"react";var Fd=!1,ul=null,Yw=new Set;function Dd(){for(let e of Yw)e()}function I4(e){return Yw.add(e),()=>{Yw.delete(e)}}function g4(){Fd||(Fd=!0,Dd())}function b4(){Fd&&(Fd=!1,Dd())}function m4(){return Fd}function y4(){return x4(I4,m4,m4)}function h4(){return ul}function Vm(){ul&&(ul=null,Dd())}function S4(){return x4(I4,h4,h4)}var Bd=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function w4(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Bd;let n=await e.restore(o,t);return ff(n.liveState),a(),n}async function C4({access:e,version:o,page:t,...r}){let a=await w4(e,o.id,t?{page:t.id}:{},r);ul={title:Ode(o,t??null),undo:a.undo},Dd()}async function v4({access:e,...o}){let t=ul?.undo;t&&(await w4(e,t,{},o),ul=null,Dd())}function k4(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function Ode(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 T4(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Wo("{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($h(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function P4(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function E4(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=$h(),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 A4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Fde(),s=zR(WR(o??null),r),l=jm(Km()),d=n.siteLiveState;O4(()=>{if(d)return tI(d),Or(0),()=>tI(null)},[d]);let c=pf(),[f,u]=Lde(!1),p=_4(e);p.current=e;let h=_4(!0);O4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=Ade(()=>{u(!0),a(p.current).then(()=>{Vm()}).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=My({live:g,onPress:I,busy:f,goingLive:$R(c?.changes??[])});return n.siteVersions?{...C,menuItems:Bde()}:C}return My({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Bde(){return[{key:"version-history",label:i("Version history"),icon:_de(Rde),onSelect:g4}]}import{jsx as re,jsxs as it,Fragment as Hd}from"react/jsx-runtime";import{useCallback as Dde,useEffect as Nde,useId as F4,useRef as Mde,useState as Et}from"react";import{useSettledAction as Hde}from"efficient-easel/easel";import{Avatar as Ude,Banner as Nd,Button as Bn,ColoredBadge as Xw,Dialog as B4,Drawer as Wde,DropdownMenu as zde,FormField as D4,iconButtonClasses as $de,Inline as Zw,Input as Gde,ListRow as jde,Select as Kde,SortableList as Vde,Stack as Md}from"efficient-shell/ui";import{EditIcon as qde,EyeIcon as L4,MenuIcon as Yde,MoreIcon as Xde,PageIcon as N4,RevertIcon as R4,StylesIcon as Zde}from"efficient-shell/icons/efficient";import{useScreenDocument as M4}from"efficient-easel/screen/components/ScreenDocumentContext";var Jde={page:N4,menu:Yde};function Qde(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function ece(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 oce({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let d=F4();if(!e)return null;let c=e.kind==="draft_before_restore",f=e.number,u=T4(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 re(B4,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:it(Hd,{children:[re(Bn,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),re(Bn,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:it(Md,{gap:4,children:[o&&e.pages.length>1?re(D4,{label:i("Page"),htmlFor:d,children:re(Kde,{id:d,value:o.id,options:e.pages.map(g=>({value:g.id,label:g.name})),onChange:l,disabled:r})}):null,re("p",{children:h}),re("p",{children:i("Your live website does not change until you press Publish.")}),I>0?re(Nd,{tone:"warning",children:Wo("{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?re(Nd,{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?re(Nd,{tone:"danger",children:a}):null]})})}function tce({version:e,onCancel:o,onSave:t}){let r=F4(),[a,n]=Et(null),[s,l]=Et(""),[d,c]=Et(!1),[f,u]=Et(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 re(B4,{open:!0,onClose:()=>{d||o()},size:"sm",title:i("Name this version"),footer:it(Hd,{children:[re(Bn,{variant:"secondary",onClick:o,disabled:d,children:i("Cancel")}),re(Bn,{onClick:()=>{h()},loading:d,disabled:d||p,children:i("Save")})]}),children:re(D4,{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:re(Gde,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function rce({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",d=!e.live,c=e.changes.length,f=[...l?[]:[{key:"preview",label:i("Preview"),icon:re(L4,{}),onSelect:r}],...d?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:re(R4,{}),onSelect:a}]:[],...d&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:re(N4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:re(qde,{}),onSelect:s}]];return re(jde,{title:it("span",{className:"sf-version-title",children:[re("span",{children:k4(e)}),e.live?re(Xw,{tone:"success",size:"xs",children:i("Live")}):null,e.name?re(Xw,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?re(Xw,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:re(zde,{align:"end","aria-label":i("More"),items:f,triggerClassName:$de({variant:"ghost",size:"sm"}),trigger:re(Xde,{})}),below:it(Md,{gap:3,children:[it(Zw,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[re(Ude,{name:e.createdBy,size:"xs"}),re("span",{children:e.createdBy}),re("span",{"aria-hidden":"true",children:"\xB7"}),re("span",{children:E4(e.createdAt)}),c?it(Hd,{children:[re("span",{"aria-hidden":"true",children:"\xB7"}),re("span",{children:Wo("{n} change","{n} changes",c)})]}):null]}),o?it(Md,{gap:3,children:[c?re(Md,{gap:2,children:e.changes.map(u=>{let p=Jde[u.kind]??Zde;return it(Zw,{gap:2,align:"center",children:[re(p,{size:16}),re("span",{children:P4(u)})]},`${u.kind}:${u.id}`)})}):null,it(Zw,{gap:2,children:[l?null:re(Bn,{variant:"secondary",size:"sm",leftIcon:re(L4,{}),onClick:r,children:i("Preview")}),d?re(Bn,{variant:"secondary",size:"sm",leftIcon:re(R4,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function ace({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=M4(),[l,d]=Et(null),[c,f]=Et(!1),[u,p]=Et(null),[h,I]=Et(null),[g,C]=Et(!1),[w,T]=Et(null),[y,b]=Et(null),[P,H]=Et(!1),E=Mde(0),U=Dde(()=>{let _=++E.current;f(!1),t.list().then(A=>{_===E.current&&d(A)},()=>{_===E.current&&f(!0)})},[t]);Nde(()=>{e&&U()},[e,U]);let O=_=>{H(!1),ece(t,_.id).catch(()=>H(!0))},D=async()=>{if(!(!h||g)){C(!0),T(null);try{await C4({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(_){T(_ instanceof Bd?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=Hde({onPress:()=>{D()},busy:g});return it(Hd,{children:[re(Wde,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:it(Hd,{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:re("span",{className:"sf-version-foot",children:i("The newest 30 are kept. Named versions are always kept.")}),children:it(Md,{gap:3,children:[P?re(Nd,{tone:"danger",onDismiss:()=>H(!1),children:i("The preview did not open. Try again.")}):null,c?re(Nd,{tone:"danger",action:re(Bn,{variant:"secondary",size:"sm",onClick:U,children:i("Try again")}),children:i("Version history did not load.")}):l===null?re("p",{className:"sf-version-foot",children:i("Loading versions")}):l.length===0?re("p",{className:"sf-version-foot",children:i("No versions yet. Every Publish from now on keeps one.")}):re(Vde,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(_=>re(rce,{version:_,expanded:u===_.id,onToggle:()=>p(A=>A===_.id?null:_.id),onPreview:()=>O(_),onRestore:()=>{T(null),I({version:_,page:null})},onRestorePage:()=>{T(null),I({version:_,page:Qde(_,s)})},onName:()=>b(_)},_.id))})]})}),re(oce,{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})}),re(tce,{version:y,onCancel:()=>b(null),onSave:async _=>{await t.name(y.id,_),b(null),U()}})]})}function H4(){let{adapter:e,hasUnsavedEdits:o}=M4(),t=e.siteVersions,r=y4(),a=pf();return t?re(ace,{open:r,onClose:b4,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as N5}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as D7e,categoryLabel as N7e,paletteWithoutPinned as M7e,pinnedSection as H7e}from"efficient-easel/screen/lib/document/palette-sections";var nce={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 U4(e){return j(nce,e)?.label}var W4=gC;import{currentEaselSession as j4}from"efficient-easel/screen/lib/session";import{blockTypesIn as z4}from"efficient-easel/screen/lib/document/block-types-in";var $4=()=>({}),G4=new Map;function sce(e){let o=G4.get(e);if(o)return o;let t=new Set,r=j(mr,e);if(r)for(let s of r.seeds($4))for(let l of z4({type:r.childType,props:s}))t.add(l);let a=pl(e);if(a){let s=0;for(let l of z4(a($4,d=>`${d}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return G4.set(e,n),n}function lce(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=By(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=IC(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)&&sce(d).every(l);return s.set(d,f),f};return{sets:o,offers:l}}var ice="block-offer";function Jw(e=j4()){return e.cache(ice,()=>lce(Qc(e)))}function K4(e,o=j4()){let t=Jw(o);return t?t.offers(e):!0}function dce(e){let o=Wm.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Ab.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Ab.sectionAccent}}}var cce={Hero:{[Ti]:{newChild:dce,childLabel:jd.Ticker}}},V4=Object.fromEntries(Object.entries(_H).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...j(cce,e)?.[t]}]))]));function q4(e,o=0,t,r){let a=pce(uce(e,o,r),t),n=a?Jw():null;return a&&n?fce(a,n):a}function fce(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 pce(e,o){if(!e||e.source!=="container"||!o||!Cv())return e;let t=ac({data:o.data},o.id),r=typeof t?.type=="string"?vv(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 uce(e,o,t){let r=t?j(V4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=j(mr,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=bC(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=oF(e);return s?{source:"footer",slot:eF,choices:s,spec:null}:null}function Y4(e,o=Pv(e.type)){return Tv(e.type)?o.map(t=>{let r=Ev(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as mce}from"react";var Qw=null,eC=new Set;function X4(e){if(Qw!==e){Qw=e;for(let o of eC)o()}}function hce(e){return eC.add(e),()=>{eC.delete(e)}}function gVe(){return mce(hce,()=>Qw,()=>null)}function Z4(e){return Ol(e)?.ownerId??null}function J4(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 Q4="sf-editor-left-view";function e5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(Q4);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function o5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(Q4,e)}catch{}}function t5(e,o){return e==="styles"&&!o?"sections":e}function r5(e,o){return e?"sections":o}import{copyNode as xce}from"efficient-easel/data";function a5(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 n5={usedOn:e=>{let o=Bt(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>_c()?.openPage(e),adopt:(e,o)=>Bt()?.adopt(e.props.id,o),nodeOf:e=>Bt()?.place(e)??null,detach:e=>{let o=_c()?.config;return o?xce(e,o):e},removed:()=>_c()?.reload()};import{sharedSectionsOf as Cfe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as vfe,scrollPreviewToTop as _5}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as rC,Fragment as zce,jsxs as $ce}from"react/jsx-runtime";import{useContext as Gce,useEffect as jce,useMemo as sC,useRef as x5}from"react";import{EaselCanvas as Kce,repeatCopyAt as Vce,useEasel as qce}from"efficient-easel/easel";import{jsx as d5,Fragment as Cce,jsxs as vce}from"react/jsx-runtime";import{useEffect as c5,useLayoutEffect as kce}from"react";var qm="data-theme",s5="light";function Ice(e){return e.getAttribute(qm)===s5?"light":"dark"}function gce(e,o){return Ice(e)===o?!1:(o==="light"?e.setAttribute(qm,s5):e.removeAttribute(qm),!0)}function bce(e){return zh(e).getItem(Oh)}function OVe(e,o){zh(e).setItem(Oh,o)}function yce(e,o,t=new Date().getHours()){return Nv({mode:o.mode,override:bce(e),switchShown:o.switchShown,hour:t})}function l5(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>gce(t,yce(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[qm]}),()=>n.disconnect()}var Sce="style";function wce(e,o){let t=Vv(o),r=!1;for(let a of Kv){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function i5(e,o){let t=e.body;if(!t)return()=>{};let r=()=>wce(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Sce]}),()=>n.disconnect()}var Tce=`
338
+ [${jt}][${jt}] { cursor: text; }
339
+ `;function f5({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ue(),n=xo(t);return c5(()=>{if(o)return l5(o,{mode:r,switchShown:a})},[o,r,a]),c5(()=>{if(o)return i5(o,n)},[o,n]),kce(()=>{if(o)return mF(o)},[o]),vce(Cce,{children:[d5(zk,{}),d5("style",{children:Tce}),e]})}import{jsx as oC}from"react/jsx-runtime";import{useEffect as Pce,useState as Ece}from"react";import{Banner as Oce}from"efficient-shell/ui";var Ym={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."},_ce={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."},Ace=Ym.load,Lce=Ym.lock,Rce=Ym.conflict,Fce=Ym.save;function Bce(e){if(!e)return null;if(e.loadFailed)return i(Ace);if(e.lockHolder)return i(Lce,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(Rce);if(e.saveFailed)return i(Fce);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(_ce[o.problem],{section:t,name:r})}function Dce({report:e}){let o=Bce(jm(e)),[t,r]=Ece(null);return Pce(()=>{o||r(null)},[o]),!o||t===o?null:oC("aside",{className:"sf-canvas-notice",children:oC(Oce,{tone:"warning",onDismiss:()=>r(o),children:o})})}function p5(){return oC(Dce,{report:Km()})}import{jsx as Xm}from"react/jsx-runtime";import{useState as u5}from"react";import{Banner as Nce,Button as Mce}from"efficient-shell/ui";import{UndoIcon as Hce}from"efficient-shell/icons/efficient";import{useScreenDocument as Uce}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as Wce}from"efficient-easel/easel";function m5(){let e=S4(),{adapter:o,flushSave:t,reloadFromServer:r}=Uce(),a=o.siteVersions,[n,s]=u5(!1),[l,d]=u5(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await v4({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=Wce({onPress:()=>{c()},busy:n});return e?Xm("aside",{className:"sf-canvas-notice",children:Xm(Nce,{tone:l?"danger":"info",title:e.title,onDismiss:Vm,action:a&&e.undo?Xm(Mce,{variant:"secondary",size:"sm",leftIcon:Xm(Hce,{}),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 Yce,REPEAT_ATTRIBUTE as aC,REPEAT_INDEX_ATTRIBUTE as nC}from"efficient-easel/draw";import{usePreviewParts as Xce}from"efficient-easel/draw/client";var h5=null;function tC(e){h5=e}function o9e(){return h5}import{ScreenDocumentContext as Zce}from"efficient-easel/screen/components/ScreenDocumentContext";function I5(e){let{mirrorHostStyles:o}=jh(),t=Gk(),{sectionBackgroundWidth:r,themeFromDocument:a}=ue(),n=Lk(),s=Gce(Zce),l=Ac(s?.docId??null),d=qce(w=>w.appState.data),c=wT(l,d),f=JSON.stringify(c),u=sC(()=>c,[f]),p=sC(()=>({...e.metadata??t??{},...UE(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);jce(()=>(tC(n),()=>tC(null)),[n]);let h=x5(null),I=Jce(h),{onDocument:g}=e,C=w=>{h.current=w,g?.(w)};return $ce(zce,{children:[rC(m5,{}),rC(p5,{}),rC(Kce,{...e,onDocument:C,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:f5})]})}function Jce(e){let o=vc(),t=Xce(),r=x5({parts:t});return r.current={parts:t},sC(()=>{let a=(n,s)=>{let l=lp(n,o),d,c=null,f=s??(l?null:Bg(null,e.current,n)),u=!l&&f?Vce(f):null,p=u?Yce(n):null;if(u&&f&&p?.propKey){l=dp({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let C=f.closest(`[${aC}][${nC}]`),w=`[${aC}="${ip(C?.getAttribute(aC)??"")}"][${nC}="${ip(C?.getAttribute(nC)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(w)??null}if(!l)return null;let h=f,I=()=>(h=Bg(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?cs(wP(g)):void 0,colorNameOf:rt}}:null};return{at:n=>{let s=n.closest(`[${jt}]`),l=s?.getAttribute(jt);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>x_(n,o),copyValue:n=>h_(n,o),onChange:n=>{if(!n.typing){Dg(null);return}let s=n.element.closest(`[${jt}]`)?.getAttribute(jt)??null;Dg(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Qce=Ak.mediaFields,efe=/video|poster|focal|phone/i;function ofe(e){return(j(Qce,e)??[]).find(o=>!o.includes("[]")&&!efe.test(o))??null}function tfe(e){let o=ofe(e.type);return e.type!==oe?o&&rc(e.type,e.props,o)?{fromData:!0}:o:jc(e.props)?{fromData:!0}:o}var g5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:tfe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var b5={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 Zm}from"react/jsx-runtime";import{useState as rfe}from"react";import{Button as afe,Tooltip as nfe,toast as y5}from"efficient-shell/ui";import{TemplateIcon as sfe}from"efficient-easel/icons";import{useSettledAction as lfe}from"efficient-easel/easel";import{useScreenDocument as ife}from"efficient-easel/screen/components/ScreenDocumentContext";function w5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=ife(),[a,n]=rfe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():y5.error(i(S5))}catch{y5.error(i(S5))}finally{n(!1)}}},l=lfe({onPress:()=>{s()},busy:a});return Zm(nfe,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:Zm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:Zm(afe,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:Zm(sfe,{size:15}),children:i("Save as Template")})})})}var S5="Your last changes did not save, so the template was not made. Try again.";var dfe="Save your page changes first";function C5(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:dfe}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var v5="storefront-editor:save-as-template";var Ud="ContactLocations",cfe="CityPictures",ffe="CityMaps",pfe=[{key:cfe,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:ffe,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function k5(e=Xi){let o=hC.find(t=>t.sections.some(r=>r.type===Ud))?.key;return!e.includes(Ud)||!o?[]:pfe.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:Ud,desc:a,alias:"locations offices stores branches",insert:s=>{let l=da(Ud);return l?$m(Ud,l,n)(s.nodeDefaults,s.newNodeId,ll()):null}}))}function P5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=pl(e);if(n)return n(o,t,ll());if(uv(e)&&a(oe)&&a(jn)){let l=j(kr,e);return{type:oe,props:{...o(oe),id:t(oe),direction:"column",name:`${r(e)} section`,content:[{type:jn,props:{...o(jn),id:t(jn),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...td(e)!==td(jn)?{eyebrowLook:td(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...T5(e,t)}}]}}}if(j(mr,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=T5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function T5(e,o){return e==="Cards"?{template:dv(t=>o(t))}:e===fv?{template:pv(t=>o(t))}:{}}import{useEffect as ufe,useState as mfe}from"react";import{useEaselSession as hfe}from"efficient-easel/screen/lib/session-context";function E5(){let e=hfe().chrome?.products?.list,[o,t]=mfe(null);return ufe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function M5({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=SA(),a=D5().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=ml(d=>{d&&(o({kind:"ticker",heroId:d}),vfe(d))},[o]);return hr(()=>{t(s)},[s,t]),hr(()=>{r(l)},[r,l]),{partRows:(d,{rowClick:c})=>{let f=String(d.props.id);return d.type==="Hero"&&Lb(d.props)&&To(F5,{icon:To(cn,{type:"ticker",size:13}),name:i(ki),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function H5({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=zp(),a=D5().tree,{appState:n}=B5(p=>p),s=n.data.content??[],l=xfe(s);l.current=s;let d=e,c=ln.find(p=>Ei[p]===d.kind),f=c&&"nodeId"in d?Oi(String(d.nodeId),c):null,u=ml(p=>{let h=OA(p);if(!h)return;let I=l.current.findIndex(C=>String(C.props.id)===h.nodeId);if(I<0)return;let g={kind:Ei[h.part],nodeId:h.nodeId};o({index:I},g)},[o]);return hr(()=>{t(f)},[f,t]),hr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let I=String(p.props.id),g=EA(p);if(g.length===0)return null;let C=y=>{let b=Oi(I,y.part);return To(F5,{icon:To(cn,{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 Wd(R5,{children:[C(w),T.length>0&&To(Sfe,{children:T.map(C)})]})}}}function U5(e,o){return{partRows:(t,r)=>Wd(R5,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function kfe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=Jm(),{hasPreviewLink:f}=t,u=to(N5()).preview?.draftLink,p=A4(e.data),h=C5({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=ml(()=>{!a||!r||d(v5,{siteId:a,slug:r})},[d,a,r]),g=d4({pageSlug:r,siteId:a,token:c}),C=o.previewHref?.(r)??g;return{barLead:()=>h.visible&&To(w5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&To(p4,{liveHref:C,pageId:n??null,draftLink:u}),mainAction:p}}function Tfe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=Jm(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=O5(Ds[0].id),[p,h]=O5(!1),{surface:I,setSurface:g}=yA(),C=()=>{if(l){c("styles"),o.reveal(),_5();return}e.show(yw),e.reveal(),_5()},w={id:"pages",label:i("Pages"),icon:To(gfe,{}),panel:({onHide:y})=>To(cA,{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(yfe,{}),active:e.kind==="website",onSelect:C}),l&&T.push({id:"styles",label:i("Styles"),icon:To(bfe,{}),panel:({onHide:y,notify:b})=>To(iM,{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=>t5(y,l),openSettings:C,openStyles:()=>{u(V1),c("styles")},openPageStyles:l?()=>{u(Ms),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(X2),e.reveal()}:void 0}}function Pfe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=Jm(),a=B5(s=>s.config),n=N5();hr(()=>(nx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>nx(null)),[e,o,t,a]),hr(()=>{let s=Bt();if(!s||!r)return;let l=!1;return Cfe(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function W5(){let e=vc();return ml(o=>{I_(o,e)},[e])}function Efe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;hr(()=>{X4(s?.type==="BookingBox"&&s.props.region==="confirm"?Z4(l(String(s.props.id))):null)},[s?.props.id]);let d=OM(e,o),{capabilities:{hasSiteSettings:c}}=Jm();Pfe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=Wp(),I=ml(()=>n(Z2),[n]),g=a==="chat";hr(()=>{p(g)},[g,p]),hr(()=>{h(I)},[h,I]);let{setOpenHandler:C}=vi(),w=ml(()=>n(J2),[n]);hr(()=>{C(w)},[C,w]);let T=U5(M5(e),H5(e)),y=kfe(o),b=Tfe(e,r),P=t.device,H=W5();return{...T,...y,...b,hasOwnRows:E=>E.type===Lm,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:H,wrap:E=>To(Kh.Provider,{value:!0,children:Wd(wfe.Provider,{value:P,children:[E,To(H4,{})]})}),addPanelRow:E=>c?Wd("div",{className:"sf-addside-sitewide",children:[To("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:To(cn,{type:"chat",size:16})}),Wd("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(Ife,{checked:f.enabled,onChange:U=>u({enabled:U}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var A5=null,lC=new WeakMap;function Ofe(e){let o=Uk();if(!e||!o)return e;A5!==o&&(A5=o,lC=new WeakMap);let t=lC.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},lC.set(e,t)),t}var _fe={isLockedBlock:(e,o)=>su(e,o)||!!(o&&Bt()?.heldElsewhere(o.props.id)),duplicateBlocked:_u,nestDepth:(e,o,t)=>o===fk?mk(e,t):0,newSectionNode:P5,canAddTo:(e,o,t,r)=>Ofe(q4(e,o,r,t)),blockIsOffered:K4,slotsOf:Y4,resolveOnInsert:!0},Afe=new Proxy(b5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),Lfe={labelAtLevel:(e,o,t)=>i(eh(e,o,t)),descriptions:Afe,categoryLabel:e=>{let o=U4(e);return o===void 0?void 0:i(o)},firstSection:W4,blockRowName:J4,rowName:lu,plainText:Sr,Icon:cn,Thumbnail:sM,useProducts:E5,presets:k5()},Rfe={desktop:2e3,tablet:800,mobile:390},L5="desktop",Ffe={options:xA,initial:L5,fluid:L5,widths:Rfe,hidesPerView:!0},Bfe={read:e5,write:e=>o5(e),forSelection:(e,o)=>r5(e,o)},Dfe={first:Jo,last:Xe,firstGroup:Ye,lastGroup:We,isSectionGroup:as,sectionGroupZone:rT,panelOf:e=>e===Jo?Y2:null,get sharedReach(){return hn()?Mfe:void 0},get shared(){return Bt()?n5:void 0},get groupTab(){return hn()?tF:void 0},get groupBadge(){return hn()?Gy({type:We})??void 0:void 0},get changeNotice(){return hn()?rF():void 0},get band(){return hn()?Nfe:void 0},get groupAccepts(){return hn()?sT:void 0}},Nfe={foldable:!0},Mfe=e=>Gy(e)??a5(e);function Hfe(e){return{...U5(M5(e),H5(e)),onCopyItem:W5(),openSettings:()=>e.show(yw)}}function Ufe(e,o){MH(e,o),a4()}var xYe={useOwnerName:Hs,useDocumentLabel:J1,useBridges:Efe,useStandaloneBridges:Hfe,useDocumentPass:Ufe,blockRules:_fe,blockLook:Lfe,devices:Ffe,leftView:Bfe,pinned:Dfe,Canvas:I5,canvasDrag:{media:g5},Inspector:eM};export{By as a,to as b,Qc as c,Lu as d,SNe as e,cr as f,fr as g,Co as h,LNe as i,Ky as j,IAe as k,qp as l,Ri as m,Fi as n,VA as o,gAe as p,qA as q,bAe as r,nZ as s,YA as t,yAe as u,ZA as v,HH as w,t8e as x,$fe as y,le as z,i as A,Wo as B,UH as C,n8e as D,uo as E,d$ as F,mI as G,ybe as H,V0 as I,Cbe as J,nt as K,hI as L,kbe as M,Tbe as N,Pbe as O,bf as P,Ebe as Q,yf as R,Obe as S,_be as T,X0 as U,Z0 as V,I$ as W,g$ as X,Fbe as Y,Dbe as Z,Nbe as _,Mbe as $,Hbe as aa,ME as ba,Ka as ca,BG as da,Vye as ea,DG as fa,qye as ga,lo as ha,Yye as ia,NG as ja,Xye as ka,Zye as la,Jye as ma,Qye as na,eSe as oa,oSe as pa,Ss as qa,tSe as ra,zNe as sa,$Ne as ta,GNe as ua,jNe as va,KNe as wa,VNe as xa,xJ as ya,CL as za,vL as Aa,kL as Ba,Gs as Ca,ru as Da,FLe as Ea,uye as Fa,Ga,iG as Ha,PI as Ia,Zl as Ja,mye as Ka,hye as La,OI as Ma,gE as Na,xye as Oa,$pe as Pa,wye as Qa,Cye as Ra,vye as Sa,kye as Ta,ql as Ua,G$ as Va,eE as Wa,gI as Xa,sr as Ya,Vbe as Za,Vl as _a,bI as $a,yI as ab,qbe as bb,Ybe as cb,vF as db,wP as eb,she as fb,lhe as gb,ea as hb,oU as ib,ihe as jb,dhe as kb,Ax as lb,che as mb,fhe as nb,phe as ob,vP as pb,kP as qb,uhe as rb,Ml as sb,Lx as tb,mhe as ub,hhe as vb,xhe as wb,Ihe as xb,kF as yb,yn as zb,ZNe as Ab,JNe as Bb,QNe as Cb,TF as Db,e2e as Eb,PF as Fb,Du as Gb,LF as Hb,u2e as Ib,m2e as Jb,oi as Kb,lr as Lb,Hl as Mb,She as Nb,whe as Ob,vo as Pb,Cn as Qb,J as Rb,Js as Sb,ae as Tb,te as Ub,ie as Vb,de as Wb,Ie as Xb,G2e as Yb,pe as Zb,Qs as _b,Qy as $b,ed as ac,od as bc,DF as cc,q2e as dc,Vte as ec,NF as fc,Z2e as gc,J2e as hc,MF as ic,qte as jc,HF as kc,Yte as lc,td as mc,UF as nc,tMe as oc,oS as pc,nMe as qc,sMe as rc,lMe as sc,iMe as tc,dMe as uc,cMe as vc,Uc as wc,uMe as xc,zu as yc,rd as zc,mMe as Ac,hMe as Bc,zF as Cc,xMe as Dc,ere as Ec,ore as Fc,IMe as Gc,tre as Hc,gMe as Ic,$F as Jc,CMe as Kc,vMe as Lc,kMe as Mc,TMe as Nc,PMe as Oc,EMe as Pc,nre as Qc,sre as Rc,OMe as Sc,_Me as Tc,AMe as Uc,LMe as Vc,RMe as Wc,FMe as Xc,BMe as Yc,DMe as Zc,NMe as _c,ju as $c,VF as ad,Ire as bd,GMe as cd,jMe as dd,Vu as ed,rS as fd,XF as gd,qu as hd,XMe as id,gre as jd,bre as kd,yre as ld,ZMe as md,ot as nd,Tn as od,rl as pd,FHe as qd,BHe as rd,DHe as sd,DB as td,NB as ud,rae as vd,e4e as wd,MB as xd,HB as yd,UB as zd,r4e as Ad,s4e as Bd,l4e as Cd,i4e as Dd,sm as Ed,WB as Fd,iae as Gd,d4e as Hd,Wz as Id,Mt as Jd,Dge as Kd,Nge as Ld,Mge as Md,Hge as Nd,hf as Od,Uge as Pd,Ef as Qd,Ql as Rd,Eye as Sd,Oye as Td,_ye as Ud,TE as Vd,PE as Wd,EE as Xd,Aye as Yd,Ye as Zd,We as _d,Tpe as $d,aT as ae,Pc as be,nF as ce,T4e as de,P4e as ee,ZB as fe,E4e as ge,O4e as he,Ps as ie,Wl as je,Sg as ke,vg as le,tp as me,jt as ne,qve as oe,Yve as pe,Xve as qe,Zve as re,$8 as se,G8 as te,Jve as ue,Es as ve,Tg as we,Qve as xe,eke as ye,yp as ze,xi as Ae,Jg as Be,Ls as Ce,tn as De,DPe as Ee,Ii as Fe,r1 as Ge,NPe as He,lb as Ie,MPe as Je,HPe as Ke,UPe as Le,ZV as Me,WPe as Ne,o9 as Oe,t9 as Pe,zPe as Qe,$Pe as Re,a9 as Se,lD as Te,CS as Ue,Mi as Ve,xR as We,IR as Xe,Hi as Ye,ZL as Ze,Py as _e,nFe as $e,xn as af,Oy as bf,eR as cf,oR as df,_y as ef,ZQ as ff,tR as gf,fu as hf,rR as if,s5e as jf,pD as kf,l5e as lf,i5e as mf,d5e as nf,gd as of,cm as pf,x5e as qf,b5e as rf,L5e as sf,OS as tf,R5e as uf,bD as vf,yD as wf,Nr as xf,G5e as yf,wD as zf,j5e as Af,vD as Bf,co as Cf,Ge as Df,pm as Ef,PD as Ff,J5e as Gf,um as Hf,ED as If,r3e as Jf,b3e as Kf,HD as Lf,US as Mf,UD as Nf,w3e as Of,C3e as Pf,v3e as Qf,WS as Rf,k3e as Sf,T3e as Tf,WD as Uf,gm as Vf,Pne as Wf,bm as Xf,f6e as Yf,YS as Zf,Ane as _f,XS as $f,Hne as ag,T6e as bg,IN as cg,gN as dg,P6e as eg,E6e as fg,Eg as gg,ike as hg,Og as ig,o_ as jg,U6e as kg,_N as lg,AN as mg,nUe as ng,hUe as og,xUe as pg,IUe as qg,cw as rg,BE as sg,zye as tg,WI as ug,zI as vg,$I as wg,yUe as xg,ose as yg,tse as zg,HN as Ag,SUe as Bg,wUe as Cg,KUe as Dg,l2 as Eg,VUe as Fg,i2 as Gg,YUe as Hg,Tse as Ig,x2 as Jg,rWe as Kg,Cm as Lg,pWe as Mg,yd as Ng,hWe as Og,w2 as Pg,IWe as Qg,C2 as Rg,v2 as Sg,yWe as Tg,pw as Ug,Ase as Vg,CWe as Wg,Lse as Xg,vWe as Yg,kWe as Zg,vm as _g,E2 as $g,OWe as ah,_We as bh,AWe as ch,LWe as dh,Mr as eh,NWe as fh,H2 as gh,pGe as hh,uGe as ih,Lw as jh,mGe as kh,YP as lh,N1 as mh,j0e as nh,K0e as oh,H9 as ph,V0e as qh,q0e as rh,Y0e as sh,X0e as th,U9 as uh,Z0e as vh,J0e as wh,Q0e as xh,eEe as yh,G9 as zh,oEe as Ah,Jle as Bh,WM as Ch,bGe as Dh,Ed as Eh,GM as Fh,Zr as Gh,iue as Hh,G3 as Ih,ux as Jh,Rl as Kh,due as Lh,pue as Mh,K3 as Nh,FT as Oh,uue as Ph,Fa as Qh,Z3 as Rh,bue as Sh,yue as Th,Fl as Uh,Sue as Vh,wue as Wh,gx as Xh,HT as Yh,_ue as Zh,kA as _h,u_e as $h,Rb as ai,dn as bi,I_e as ci,g_e as di,b_e as ei,y_e as fi,BY as gi,S_e as hi,Oi as ii,OA as ji,_A as ki,GGe as li,Dw as mi,XM as ni,ZM as oi,Rw as pi,sie as qi,jGe as ri,Rm as si,Od as ti,Bm as ui,KGe as vi,VGe as wi,qGe as xi,Fm as yi,YGe as zi,XGe as Ai,I3 as Bi,zo as Ci,hpe as Di,g3 as Ei,b3 as Fi,gpe as Gi,y3 as Hi,S3 as Ii,bpe as Ji,ype as Ki,Spe as Li,wpe as Mi,eH as Ni,_d as Oi,Ad as Pi,Nm as Qi,tH as Ri,cl as Si,rH as Ti,Mm as Ui,Hm as Vi,Um as Wi,aH as Xi,nH as Yi,sH as Zi,lH as _i,iH as $i,fH as aj,pH as bj,kje as cj,Tje as dj,Pje as ej,Eje as fj,Nt as gj,Pie as hj,gH as ij,Oie as jj,yH as kj,SH as lj,CH as mj,Hie as nj,oKe as oj,CA as pj,i_e as qj,uKe as rj,mKe as sj,lce as tj,uG as uj,gs as vj,gye as wj,yx as xj,wx as yj,VT as zj,Cx as Aj,d6 as Bj,Vue as Cj,Mc as Dj,eP as Ej,c6 as Fj,f6 as Gj,p6 as Hj,Xue as Ij,Zue as Jj,Jue as Kj,Que as Lj,qpe as Mj,o9e as Nj,ZFe as Oj,hR as Pj,ki as Qj,t_e as Rj,SA as Sj,r_e as Tj,a_e as Uj,n_e as Vj,W$e as Wj,dM as Xj,cM as Yj,fM as Zj,WE as _j,Va as $j,Oo as ak,xt as bk,ri as ck,ws as dk,pSe as ek,uSe as fk,hSe as gk,xSe as hk,ISe as ik,gSe as jk,bSe as kk,SSe as lk,Ff as mk,ai as nk,$E as ok,KI as pk,ZG as qk,GE as rk,qI as sk,Due as tk,GT as uk,$ue as vk,Hc as wk,Wc as xk,Nl as yk,nP as zk,dme as Ak,cme as Bk,fP as Ck,Tx as Dk,J6 as Ek,Xme as Fk,khe as Gk,Lhe as Hk,Rhe as Ik,kU as Jk,Yo as Kk,Ul as Lk,Gx as Mk,jx as Nk,wxe as Ok,jP as Pk,Cxe as Qk,vxe as Rk,kxe as Sk,ZP as Tk,QP as Uk,Or as Vk,l0 as Wk,cz as Xk,GIe as Yk,x0 as Zk,ZIe as _k,g0 as $k,w0 as al,C0 as bl,v0 as cl,k0 as dl,T0 as el,P0 as fl,sI as gl,Oz as hl,_z as il,jl,lI as kl,O0 as ll,bge as ml,Lz as nl,yge as ol,Sge as pl,wge as ql,A0 as rl,Tge as sl,Bz as tl,Pge as ul,Ege as vl,Nz as wl,iI as xl,Hz as yl,Lge as zl,Uz as Al,Rge as Bl,fI as Cl,qge as Dl,D0 as El,jz as Fl,Xge as Gl,Kl as Hl,n$ as Il,xbe as Jl,J$ as Kl,aye as Ll,eG as Ml,nye as Nl,sye as Ol,lye as Pl,ys as Ql,Af as Rl,Nye as Sl,Mye as Tl,Hye as Ul,JG as Vl,QG as Wl,vSe as Xl,rj as Yl,aj as Zl,kSe as _l,TSe as $l,PSe as am,ESe as bm,OSe as cm,DSe as dm,NSe as em,MSe as fm,HSe as gm,USe as hm,WSe as im,zSe as jm,$Se as km,GSe as lm,jSe as mm,KSe as nm,jE as om,VSe as pm,qSe as qm,sa as rm,uj as sm,la as tm,Xa as um,LCe as vm,RCe as wm,FCe as xm,BCe as ym,DCe as zm,NCe as Am,MCe as Bm,zCe as Cm,$Ce as Dm,bK as Em,GCe as Fm,jCe as Gm,KCe as Hm,VCe as Im,qCe as Jm,YCe as Km,XCe as Lm,ZCe as Mm,CK as Nm,JCe as Om,pg as Pm,QCe as Qm,jf as Rm,Kf as Sm,Zo as Tm,zt as Um,kO as Vm,oa as Wm,TO as Xm,PO as Ym,Vf as Zm,eve as _m,ove as $m,YK as an,tve as bn,rve as cn,ave as dn,nve as en,sve as fn,lve as gn,Po as hn,ive as in,dve as jn,Hf as kn,qf as ln,Yf as mn,hg as nn,Zf as on,cve as pn,FO as qn,fve as rn,g8 as sn,pve as tn,uve as un,NO as vn,mve as wn,hve as xn,xve as yn,Ive as zn,gve as An,bve as Bn,bg as Cn,yve as Dn,HO as En,Sve as Fn,wve as Gn,ks as Hn,WO as In,Cve as Jn,vve as Kn,kve as Ln,Tve as Mn,nRe as Nn,sRe as On,lRe as Pn,lu as Qn,GL as Rn,wy as Sn,ERe as Tn,ORe as Un,YL as Vn,gt as Wn,Zp as Xn,KZ as Yn,VZ as Zn,JAe as _n,QAe as $n,eLe as ao,oLe as bo,fL as co,aLe as do,nLe as eo,sLe as fo,pV as go,U_ as ho,W_ as io,Hp as jo,fA as ko,pA as lo,mA as mo,Up as no,MOe as oo,HOe as po,Wp as qo,TY as ro,YOe as so,vi as to,QOe as uo,yA as vo,rs as wo,h3 as xo,ppe as yo,upe as zo,BDe as Ao,DDe as Bo,NDe as Co,bKe as Do,f_e as Eo,zp as Fo,epe as Go,V8 as Ho,bke as Io,yke as Jo,n_ as Ko,Ske as Lo,wke as Mo,Gg as No,f1 as Oo,r0e as Po,a0e as Qo,n0e as Ro,s0e as So,D1 as To,pEe as Uo,uEe as Vo,LA as Wo,aAe as Xo,HA as Yo,Wi as Zo,Mee as _o,uBe as $o,SBe as ap,xu as bp,Xe as cp,Ou as dp,Xt as ep,mM as fp,vd as gp,hM as hp,xM as ip,K$e as jp,V$e as kp,n4 as lp,qw as mp,s4 as np,q4 as op,gVe as pp,qm as qp,Ice as rp,gce as sp,OVe as tp,Vfe as up,Zfe as vp,xYe as wp};