efficient-storefront-blocks 0.99.0 → 0.100.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 (111) hide show
  1. package/CHANGELOG.md +36 -0
  2. package/dist/chunks/EditorPreviewCheckout-OLTXWUGM.js +4 -0
  3. package/dist/chunks/{SiteEditorProvider-YAIB64UV.js → SiteEditorProvider-4XV2T5MD.js} +1 -1
  4. package/dist/chunks/chunk-4SYZK3TW.js +1 -0
  5. package/dist/chunks/chunk-G6OVBAOA.js +74 -0
  6. package/dist/chunks/chunk-OWUMH5VC.js +339 -0
  7. package/dist/chunks/chunk-SCTOV5CT.js +1 -0
  8. package/dist/chunks/{chunk-EIBYUCDE.js → chunk-WN7SFD3N.js} +1 -1
  9. package/dist/chunks/{fitment-data-OUHMES66.js → fitment-data-ZWKG2FFA.js} +1 -1
  10. package/dist/contract.js +1 -1
  11. package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
  12. package/dist/editor/lib/document/blocks/commerce/DetailRows/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/commerce/ProductGrid/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/service/DealerFinder/fields.d.ts +2 -0
  15. package/dist/editor/lib/document/blocks/service/DealerFinder/fields.js +1 -0
  16. package/dist/editor/lib/document/blocks/service/FooterLogo/fields.js +1 -1
  17. package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
  18. package/dist/editor/lib/document/blocks/service/index.js +1 -1
  19. package/dist/editor/lib/document/config.js +1 -1
  20. package/dist/editor/lib/storefront-editor-words.d.ts +4 -0
  21. package/dist/editor/lib/storefront-editor-words.js +1 -1
  22. package/dist/editor.css +1 -1
  23. package/dist/index.js +33 -31
  24. package/dist/render/built-with.json +1 -1
  25. package/dist/render/components/CouponField.d.ts +2 -1
  26. package/dist/render/components/CouponField.js +1 -1
  27. package/dist/render/components/DealerFinderSection.d.ts +18 -0
  28. package/dist/render/components/DealerFinderSection.js +1 -0
  29. package/dist/render/components/DetailRows.d.ts +2 -3
  30. package/dist/render/components/DetailRows.js +1 -1
  31. package/dist/render/components/Events.d.ts +2 -3
  32. package/dist/render/components/Events.js +1 -1
  33. package/dist/render/components/GalleryGrid.d.ts +2 -3
  34. package/dist/render/components/GalleryGrid.js +3 -3
  35. package/dist/render/components/GridCardTemplate.js +1 -1
  36. package/dist/render/components/ProductGridSection.d.ts +3 -2
  37. package/dist/render/components/ProductGridSection.js +1 -1
  38. package/dist/render/components/card-pieces/CardPrice.js +1 -1
  39. package/dist/render/components/card-pieces/useTaxNote.d.ts +1 -0
  40. package/dist/render/components/card-pieces/useTaxNote.js +1 -0
  41. package/dist/render/components/catalog/ShopperFilters.d.ts +3 -1
  42. package/dist/render/components/catalog/ShopperFilters.js +1 -1
  43. package/dist/render/components/checkout/checkout-parts.js +1 -1
  44. package/dist/render/components/checkout/checkout-state.d.ts +2 -0
  45. package/dist/render/components/checkout/checkout-state.js +3 -3
  46. package/dist/render/components/pdp-dynamic/DynamicDetailRows.d.ts +1 -2
  47. package/dist/render/components/pdp-dynamic/DynamicDetailRows.js +1 -1
  48. package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.d.ts +1 -2
  49. package/dist/render/components/pdp-dynamic/DynamicGalleryGrid.js +1 -1
  50. package/dist/render/components/useProductSelection.d.ts +2 -1
  51. package/dist/render/components/useProductSelection.js +1 -1
  52. package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +4 -2
  53. package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
  54. package/dist/render/components/wheels-plp/PlpFacetRows.d.ts +5 -2
  55. package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -1
  56. package/dist/render/components/wheels-plp/PlpSidebar.d.ts +17 -6
  57. package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
  58. package/dist/render/lib/api/index.d.ts +3 -0
  59. package/dist/render/lib/api/index.js +1 -1
  60. package/dist/render/lib/api/types.d.ts +3 -0
  61. package/dist/render/lib/catalog/default-variant.d.ts +2 -0
  62. package/dist/render/lib/catalog/default-variant.js +1 -0
  63. package/dist/render/lib/catalog/tax-note.d.ts +4 -0
  64. package/dist/render/lib/catalog/tax-note.js +1 -0
  65. package/dist/render/lib/content/facet-row-seed.d.ts +1 -0
  66. package/dist/render/lib/content/facet-row-seed.js +1 -1
  67. package/dist/render/lib/content/rail-row-seed.d.ts +16 -0
  68. package/dist/render/lib/content/rail-row-seed.js +1 -0
  69. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.d.ts +8 -0
  70. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js +1 -1
  71. package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
  72. package/dist/render/lib/document/blocks/commerce/DetailRows/meta.js +1 -1
  73. package/dist/render/lib/document/blocks/commerce/DetailRows/render.js +1 -1
  74. package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.d.ts +8 -0
  75. package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.js +1 -1
  76. package/dist/render/lib/document/blocks/commerce/FilterBlock/render.js +1 -1
  77. package/dist/render/lib/document/blocks/commerce/GalleryB/meta.js +1 -1
  78. package/dist/render/lib/document/blocks/commerce/GalleryB/render.js +1 -1
  79. package/dist/render/lib/document/blocks/commerce/ProductGrid/meta.js +1 -1
  80. package/dist/render/lib/document/blocks/commerce/ProductGrid/render.js +1 -1
  81. package/dist/render/lib/document/blocks/service/DealerFinder/meta.d.ts +2 -0
  82. package/dist/render/lib/document/blocks/service/DealerFinder/meta.js +1 -0
  83. package/dist/render/lib/document/blocks/service/DealerFinder/render.d.ts +4 -0
  84. package/dist/render/lib/document/blocks/service/DealerFinder/render.js +1 -0
  85. package/dist/render/lib/document/blocks/service/Events/meta.js +1 -1
  86. package/dist/render/lib/document/blocks/service/Events/render.js +1 -1
  87. package/dist/render/lib/document/blocks/service/metas.d.ts +1 -0
  88. package/dist/render/lib/document/blocks/service/metas.js +1 -1
  89. package/dist/render/lib/document/blocks/service/renders.d.ts +1 -0
  90. package/dist/render/lib/document/blocks/service/renders.js +1 -1
  91. package/dist/render/lib/document/blocks/text-part-shapes.json +10 -0
  92. package/dist/render/lib/document/card-templates.js +1 -1
  93. package/dist/render/lib/document/current-product.d.ts +2 -1
  94. package/dist/render/lib/document/current-product.js +1 -1
  95. package/dist/render/lib/document/lazy-draws.js +1 -1
  96. package/dist/render/lib/document/section-to-box-rows-listing.js +1 -1
  97. package/dist/render/lib/sections/band-padding.d.ts +23 -0
  98. package/dist/render/lib/sections/band-padding.js +1 -0
  99. package/dist/render/lib/sections/dealer-finder.d.ts +41 -0
  100. package/dist/render/lib/sections/dealer-finder.js +1 -0
  101. package/dist/words.d.ts +13 -0
  102. package/dist/words.js +4 -4
  103. package/package.json +2 -2
  104. package/dist/chunks/EditorPreviewCheckout-J76THKIJ.js +0 -4
  105. package/dist/chunks/chunk-B2IYTOE3.js +0 -1
  106. package/dist/chunks/chunk-GOVYQQA4.js +0 -1
  107. package/dist/chunks/chunk-KRMWJLBM.js +0 -412
  108. package/dist/chunks/chunk-QP2F42DV.js +0 -1
  109. package/dist/render/lib/sections/own-padding.d.ts +0 -3
  110. package/dist/render/lib/sections/own-padding.js +0 -1
  111. /package/dist/chunks/{chunk-KRMWJLBM.js.LEGAL.txt → chunk-OWUMH5VC.js.LEGAL.txt} +0 -0
@@ -0,0 +1,339 @@
1
+ import{$ as Pa,$a as Ea,$b as lh,$c as mh,$h as uk,Ac as L,Ae as Gr,B as aC,Ba as Xm,Bc as Do,Bd as lv,Be as yh,Ca as gC,Cb as zr,Cc as yr,Da as bC,Dc as VC,Dd as No,Dh as pc,E as $d,Ea as no,Ec as U,Ed as Lt,F as nC,Fa as yC,Fb as yl,Fc as jo,G as sC,Ga as SC,Gb as zn,Gc as qC,H as Il,Ha as wC,Hb as At,Hc as Rt,Hd as iv,He as vv,I as jm,Ia as CC,Ib as ah,Ic as $n,Id as xh,Ie as kv,Ig as Xv,J as Me,Ja as vC,Jc as $r,Je as Sh,Jf as Ra,Jg as Oh,Jh as uc,K as oe,Ka as kC,Kc as Sr,Ke as ho,Kg as Zv,La as TC,Le as Tv,Lf as Wv,Lg as _h,Ma as PC,Mc as Ke,Md as dv,Me as Pv,Mg as Jv,N as lC,Na as EC,Nc as YC,Nd as cv,Ne as qn,Nf as Uv,Ng as Qv,O as Ur,Oa as OC,Od as fv,Oe as Ko,Og as ek,Oh as es,P as Mn,Pa as Vd,Pc as XC,Pd as pv,Pf as zv,Pg as cc,Q as iC,Qa as qd,Qc as ZC,Qe as Yn,Qf as $v,R as Ir,Ra as _C,Rb as Oa,Rc as fh,Rd as uv,Re as Xn,Rf as Gv,Rg as ok,S as Km,Sa as AC,Sc as JC,Sf as jv,Sh as Kr,T as Hn,Tb as nh,Td as mv,Ua as RC,Ub as sh,Ud as hv,Ue as Ev,Uf as Jt,Uh as Vr,Va as LC,Vf as Kv,Vh as mc,Wa as Zm,Wb as Zd,Wc as QC,Wd as xv,X as gl,Xc as ev,Xe as vl,Xh as pk,Ya as FC,Yc as ph,Yf as Vv,Yg as Ah,Z as dC,Za as Jm,Ze as Ov,Zf as Qt,_ as cC,_a as Un,_c as uh,_d as Iv,_e as wh,_f as Th,a as zd,ab as Qm,ac as Jd,ae as Xt,b as Se,bb as eh,bc as zC,bd as _a,be as Cl,bf as ac,bg as Ph,bi as mk,c as bo,ca as fC,cb as oh,cc as $C,cd as Gn,ce as Ih,cf as _v,cg as Cr,d as xr,da as Gd,db as BC,dc as GC,dd as eo,de as gv,df as Av,dg as sc,ea as pC,eb as DC,ec as ih,ef as Rv,eg as Vo,f as _t,fa as jd,fb as NC,fc as jC,fd as Sl,ff as nc,fg as we,fi as ge,g as xl,ga as uC,gb as th,gd as wr,ge as oc,gf as Lv,gg as lc,ha as mC,hb as MC,hd as jn,he as bv,hf as Fv,hg as qv,hh as tk,i as Jw,ia as hC,ib as Yd,id as ov,ie as gh,ig as kl,ih as rk,ja as bl,jd as tv,jf as Bv,jg as ot,jh as ak,ji as gk,k as Qw,ka as gr,kb as Xd,kf as Ch,kg as Tl,ki as bk,la as xC,le as tc,lg as ic,lh as nk,me as yv,mf as Dv,mg as Jn,mh as sk,mi as bc,n as eC,na as q,nb as io,ne as bh,nf as Wo,ng as Eh,nh as lk,ni as yk,oa as Kd,ob as HC,od as Qd,of as jr,oi as Sk,pb as WC,pd as rv,pe as Sv,pf as Nv,pg as dc,ph as ik,qd as ec,qe as rc,qf as Zt,r as oC,ra as it,rb as UC,rc as KC,rd as Kn,rf as Zn,rh as Qn,sa as br,sc as dh,sd as hh,se as He,sh as dk,t as Yt,ta as Wn,tb as rh,td as wl,te as so,th as fc,ua as Vm,ue as wv,uf as Mv,uh as ck,va as IC,ve as Vn,vf as vh,w as j,wa as qm,wd as av,we as Cv,wg as Yv,x as Qe,xa as Ym,xc as K,xd as nv,xe as Aa,y as tC,yc as se,yd as sv,yf as Hv,yh as fk,z as rC,zc as ch,zf as kh}from"./chunk-G6OVBAOA.js";import{c as hk,d as hc,e as xc,i as xk,j as dt,k as Ic,l as gc,m as Ik,q as Rh}from"./chunk-SCTOV5CT.js";var Ck="en",yc=null,vk=Ck,kk=null;function bfe(e,o,t){yc=e??null,vk=o||Ck,kk=t??null}function le(){return kk}function Lh(){return vk}function Tk(){return yc}function wk(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>Qe(o,r)?String(j(o,r)):t):e}function i(e,o){let t=yc?j(yc,e):void 0;if(typeof t=="function"){try{let r=Se(t(o??{}));if(r)return r}catch{}return wk(e,o)}return wk(Se(t)??e,o)}function Uo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as Fh,Fragment as R5,jsxs as L5}from"react/jsx-runtime";import{createContext as F5,useContext as B5}from"react";var D5={mirrorHostStyles:!0,css:null,fontHrefs:[]},Pk=F5(D5);function Cfe({value:e,children:o}){return Fh(Pk.Provider,{value:e,children:o})}function Bh(){return B5(Pk)}function Ek(){let{css:e,fontHrefs:o}=Bh();return L5(R5,{children:[o.map(t=>Fh("link",{rel:"stylesheet",href:t},t)),e?Fh("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as N5}from"react/jsx-runtime";import{createContext as M5,useContext as H5}from"react";var Ok=M5(void 0);function Pfe({metadata:e,children:o}){return N5(Ok.Provider,{value:e,children:o})}var _k=()=>H5(Ok);import{jsx as To,Fragment as u5,jsxs as Hd}from"react/jsx-runtime";import{useCallback as ul,useEffect as pr,useRef as Kce,useState as d5}from"react";import{SettingsSwitch as Vce}from"efficient-easel/panel";import{PagesIcon as qce,StylesIcon as Yce}from"efficient-easel/rail";import{PaletteIcon as Xce}from"efficient-shell/icons/efficient";import{Subtree as Zce,TreeRow as m5}from"efficient-easel/tree";import{useEasel as h5}from"efficient-easel/easel";import{useEaselStrings as x5}from"efficient-easel/strings";import{createContext as W5,useContext as U5}from"react";var Dh=W5(!1),_fe=()=>U5(Dh);import{useMemo as z5,useRef as $5}from"react";import{useEaselApi as G5}from"efficient-easel/easel";import{useSectionOps as j5}from"efficient-easel/screen/lib/document/use-section-ops";function Sc(){let e=G5(),o=j5(),t=$5(o);return t.current=o,z5(()=>({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 B8}from"efficient-easel/draw";import{insertAt as D8,moveTo as N8,removeAt as M8}from"efficient-easel/fields";import{useSyncExternalStore as E8}from"react";import{isNodeList as Mh}from"efficient-easel/data";import{isNodeList as K5}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(!K5(a))continue;let n=o(a,r);n!==a&&((t??={...e.props})[r]=n)}return t?{...e,props:t}:e}var Ak="Flex";function rs(e,o){return Xt(e)?typeof e?.[_t]=="string"?Nh(o?.[_t]):"":Nh(e?.[_t])}var Nh=e=>typeof e=="string"?e.trim():"",V5=e=>e.type===Lt&&Array.isArray(e.props?.[xh])&&e.props[xh].some(o=>Nh(o?.[_t])!==""),q5=new Intl.NumberFormat("en-US");function Y5(e){return/^\d+$/.test(e)?q5.format(Number(e)):e}function zfe(e,o){let t=o?o.find(r=>r.key===e)?.value:oC(xl).find(r=>r.key===e)?.value;return t===void 0?null:Y5(t)}var X5={[_t]:"any"};function Hh(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(rs(t)!==""||o&&rs(t,X5)!==""),a=o||V5(e),n=ts(e,l=>os(l,d=>{let c=Hh(d,a);return c.names&&(r=!0),c.node})).props;if(e.type!==Ak)return{node:n===t?e:{...e,props:n},names:r};let s=Yt(n);if(r&&!s&&(n={...n,[bo]:xl}),!r&&s===xl){let{[bo]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function Rk(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!Mh(a))continue;let n=Rk(a,o,r.type===Ak?r:t);if(n!==void 0)return n}}}function $fe(e,o){if(!Mh(e))return!0;let t=Rk(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=Yt(t.props);return!r||r===xl}function Lk(e){let o=e?.content;if(!Mh(o))return e;let t=o.map(r=>Hh(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function Fk(e){return Hh(e).node}import{jsx as k,jsxs as _r,Fragment as Rr}from"react/jsx-runtime";import{cloneElement as KI,createContext as HG,useContext as $E,useEffect as WG,useId as GE,useRef as ai,useState as ni}from"react";import{useEasel as Df,useSelectedHost as qa}from"efficient-easel/easel";import{PIN_LENGTH as Rf,toDateKey as ESe,fromDateKey as OSe}from"efficient-shell/format";function Z5(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function zo(e){return typeof e=="string"?e:Z5(e)?e.src:""}function jfe(e,o,t){return Wh(e,o.split("."),t)}function Wh(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=Wh(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=Wh(d,a,t);return c===d?e:{...l,[s]:c}}var J5=["upload","youtube"],Q5="upload",qfe={upload:"Upload",youtube:"YouTube"},e3=["background","click"],o3="background",Yfe={background:"Background",click:"Click to play"};function Dk(e){return J5.includes(e)?e:Q5}function Nk(e){return e3.includes(e)?e:o3}var Bk=/^[A-Za-z0-9_-]{11}$/,t3=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function Mk(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(Bk.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:"||!t3.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&&Bk.test(a)?a:null}function Uh(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 Hk(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function Wk(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var zh="Play video";var $h={frame:"Video frame",image:"Image"},Xfe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Pl(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":zo(e.poster)?"image":"frame"}function Zfe(e,o="desktop"){let[t,r]=o==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,n]=Pl(e)==="image"?[t,r]:[r,t];return zo(a)||zo(n)||void 0}function Uk(e){if(zo(e.mediaVideo)){if(Pl(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 wc="videoFrames",Gh="videoFramesNotOwn";function zk(e,o,t){let r=zo(e.mediaVideo);if(!r||!o||Pl(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 r3(e,o){let t=zo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function Jfe(e,o,t){let r=t?.[Gh];if(!(Array.isArray(r)&&r.includes(e)))return r3(o,t?.[wc])}import{useSyncExternalStore as a3}from"react";function Cc(){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 a3(t,a,a)}}}var Ve="SiteHeader",We="SiteFooter",jh="sections",tpe=[Ve,We],as=e=>e===Ve||e===We,$k=e=>`${e}:${jh}`;function Gk(e,o,t=[]){return{type:e,props:{id:o,[jh]:t}}}var n3=new Set(["Footer",Ve,We]);function ns(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):n3.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function vc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ve?[o,...e]:[...e,o]}var jk={[Ve]:{max:3,takes:["Flex","Ticker"]},[We]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function Kk(e,o,t){if(!as(e))return!0;let r=jk[e];return t<r.max&&r.takes.includes(o)}function Vk(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?.[jh];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=jk[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 s3}from"efficient-easel/draw";function El(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function kc(e,o,t){let r=El(t?.zone),a=r?s3(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as l3}from"efficient-easel/data";var qk="Footer",Yk=[Ve,qk,We],La=e=>{let o=e?.content;return Array.isArray(o)?o:[]},qr=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},Xk=e=>El(e)?.ownerId??"";function Zk(e){let o=ns(La(e)),t=o.some(r=>r?.type===We);return o.filter(r=>r?.type===Ve||r?.type===We||r?.type===qk&&!t)}function Tc(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(l3(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(Xk(s))||(n.add(s),r(l),a=!0)}}return t}function Jk(e,o){let t=La(e).filter(r=>{let a=ss(r);return typeof r?.type=="string"&&Yk.includes(r.type)||a!==void 0&&o(a)});return t.length?Tc(t,qr(e)):new Set}function Kh(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(Xk(a))?t:r)[a]=n;return{owned:t,rest:r}}function Qk(e,o){if(!o)return e;let t=Zk(o);if(!t.length)return e;let r=t.filter(l=>l.type===Ve),a=t.filter(l=>l.type!==Ve),n={...e,content:[...r,...La(e),...a]},{owned:s}=Kh(qr(o),Tc(t,qr(o)));return Object.keys(s).length&&(n.zones={...qr(e)??{},...s}),n}function Vh(e,o){if(!o)return{page:e,chrome:null};let t=Zk(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===Ve?[T,...d]:[...d,T]);d=ns(d);let c=d.length===La(o).length&&d.every((T,y)=>T===La(o)[y]),f=qr(e),u=Tc(d,f),{owned:p,rest:h}=Kh(f,u),I=Kh(qr(o),Tc(t,qr(o))).owned,g={...o,content:c?o.content:[...d]},C=qr(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&&i3(g.zones,C)&&(g.zones=C)}let S={...e,content:a};return f&&(Object.keys(h).length||!Object.keys(I).length?S.zones=h:delete S.zones),{page:S,chrome:g}}function i3(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 eT(e,o){return t=>e(t)||t!==void 0&&Yk.includes(t)&&o()}var oT=null;function qh(e){oT=e}function Ft(){return oT}var tT=null;function Yh(e){tT=e}function Pc(){return tT}var Xh=Cc();function rT(e,o,t){if(!o)return;let r={...Xh.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};Xh.set(e,r)}function aT(e,o){rT(e,o,"load")}function nT(e,o){rT(e,o,"save")}function Ec(e){return Xh.use(e)}var Zh=e=>!!Ft()?.sectionOf(e);function sT(e,o=Zh){return Jk(e,o)}function lT(e,o,t,r=Zh){if(t)return e&&sT(o,r).has(e)?void 0:t}function iT(e,o,t=Zh){if(!e)return{};let r=[...sT(o,t)];return r.length?{[wc]:e,[Gh]:r}:{[wc]:e}}import{ScreenDocumentContext as UG}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as la,hidableText as zG}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as jE,LINK_FIELD_MARKER as $G,MEDIA_FIELD_MARKER as GG,SCAFFOLD_FIELD_MARKER as jG,TEXT_FIELD_MARKER as Ar,foldMetaOf as ia,textFieldIdentifier as NSe}from"efficient-easel/draw";import{jsx as hT}from"react/jsx-runtime";import{useCallback as u3}from"react";import{useEasel as m3}from"efficient-easel/easel";import{SettingsAction as h3}from"efficient-easel/panel";import{isLengthUnit as f3}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Oc,hasCornerSubset as Ol,normalizeCornerSides as er}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as d3}from"efficient-easel/screen/lib/content/length-units";var _l={kind:"radius",unitKey:"sectionCornersUnit"};function Jh(e){return typeof e=="number"&&Number.isFinite(e)}function bpe(e,o,t){if(!Jh(e))return;let r=d3(t)&&t!=="px"?Zn(e,t):Zn(Zt(e));if(Object.keys(r).length===0)return;let a=r[Qh];if(typeof a!="string")return r;let n=Ol(o)?Fa(a,er(o)??[]):a;return{...r,[c3]:n}}var c3="--sf-section-radius",Qh="--sf-card-radius";function Fa(e,o){return Oc.map(t=>o.includes(t)?e:"0").join(" ")}var dT=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Al={kind:"radius",unitKey:"cardCornersUnit"},p3="--sf-card-box-radius";function ex(e){return typeof e=="number"&&Number.isFinite(e)}function vpe(e,o,t){if(!ex(e))return;let r=(f3(t)&&t!=="px"?Zn(e,t):Zn(Zt(e)))[Qh];if(typeof r!="string")return;let a=Ol(o)?Fa(r,er(o)??[]):r;return{[p3]:a}}function cT(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?.[Al.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Al.unitKey]:n}})}function fT(e,o,t){let r=kc(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}:ex(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:cT(n,d)}}}:{can:!1,reason:"unset",others:c}}function pT(e){return e.can?Uo("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?i("This is the only card in the section."):e.reason==="unset"?i("Set this card's corners first."):i("This card is not in a section that can share corners.")}function uT(e){return Uo("Applied to {n} card","Applied to {n} cards",e)}function mT(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as x3}from"efficient-easel/screen/lib/document/use-section-ops";var I3="apply-corners-to-siblings",g3="Apply to all cards";function b3({plan:e,onPress:o}){return hT(h3,{id:I3,label:i(g3),note:pT(e),disabled:!e.can,doneLabel:uT(e.others),onPress:o})}function xT(){let{appState:e,config:o}=m3(n=>n),t=x3(),r=fT(o,e.data.content??[],e.ui.itemSelector),a=u3(()=>{mT(r,t.replaceComponent)},[r,t]);return hT(b3,{plan:r,onPress:a})}import{isShown as TT,lazyShowWhenContext as R3}from"efficient-shell/format";var Yr="product",_c="recordType",IT={key:Yr,label:"Product",fields:[]},y3=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,S3=/^[a-z][A-Za-z0-9]*$/,w3=["text","date","images"],ox=new Map,gT=0;function C3(e){if(typeof e.key!="string"||!y3.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===Yr)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"||!S3.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(!w3.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 Mpe(e){let o=e.map(C3);for(let t of o)ox.set(t.key,t);o.length&&(gT+=1)}function tx(){return[IT,...ox.values()]}function v3(e){return e===Yr?IT:ox.get(e)??null}function rx(){return gT}function Rl(e){let o=e?.[_c];return typeof o!="string"?Yr:o.trim()||Yr}function ax(e){return Rl(e)===Yr}function Hpe(e,o){let t=v3(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var Ac="product",bT="tyre",k3=[Ac,bT];function zpe(e){return k3.includes(e)}var T3="productType",P3={[Ac]:"alloy-wheel",[bT]:"tyre"},E3=["alloy-wheel","tyre"];function yT(e,o){return ax(o)?ST(o)??P3[e]??null:null}function ST(e){if(!ax(e))return null;let o=e?.[T3];return typeof o=="string"&&E3.includes(o)?o:null}function $pe(e){let o=e?.root;return ST(o?.props)}var nx="Main Pages",O3="Dynamic Pages",sx="dynamic",_3="dynamic";function Ba(e){return e.kind===_3}var lx="lightbox";function wT(e){return e.kind===lx}function CT(e){let o=[],t=[];for(let r of e){if(Ba(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??nx,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:sx,label:O3,rows:t})}return o}var Rc=null,vT=null;function A3(e,o){Rc=e,vT=o}function Ype(e){A3(e,null)}function Xpe(){return Rc}function Ll(){return Ba({kind:vT})||Rc===Ac}function Zpe(e){return yT(Rc??"",e)??"alloy-wheel"}function Jpe(e){return Ll()?Rl(e):null}function ix(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!TT(uh(s),o??{},t)){r=!0;continue}let l=L3(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function L3(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||TT(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function PT(e,o,t,r){let a=kc(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function kT(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 kT(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>kT(a,o)))return!0;return!1}function sue(e,o={}){return R3({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Ll(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as F3}from"efficient-easel/screen/lib/content/length-units";var ET=1,B3="cardImageUnit",dx={kind:"radius",unitKey:B3},OT={kind:"radius"};function D3(e){return Zt(e)}function pue(e,o){if(F3(o)&&o!=="px"){let r=q(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":He(r,o)}:{}}let t=D3(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as N3}from"efficient-easel/screen/lib/content/length-units";var _T={kind:"radius",unitKey:"cornersUnit"},AT=1,RT="Corners";function M3(e){return Zt(e)}function bue(e,o,t){let r=N3(t)&&t!=="px"?q(e):void 0,a=r===void 0?M3(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?He(Math.max(0,r),t):`${a}px`;return{borderRadius:Ol(o)?Fa(n,er(o)??[]):n}}var FT=12,cx=6,H3=800,Xr={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"}},fx=Object.keys(Xr),BT=[2,3,4,6];function px(e,o){return fx.filter(t=>t===o||e===null||Xr[t].across===e)}function DT(e){return typeof e!="string"||e===""?null:Xr[e]??null}var NT={oneAcross:{label:"One across",phone:[[cx,2]],acrossPhone:1}};function LT(e,o){return o?cx/e.acrossPhone:FT/e.across}function ux(e){return e.ratio?ok.find(o=>o.shape===e.ratio)?.ratio??null:null}function MT(e){return[...e.lead??[],...e.desktop]}var W3="sf-wall--";function U3(e,o){return`${W3}${e}${o?`--${o}`:""}`}function wue(e,o){let t=Xr[e],r=o?{...t,...NT[o],leadPhone:void 0}:t,a=`.${U3(e,o)}`,n=[],s=(c,f,u)=>`${a}:has(> :nth-child(${c}n+${f+u}):last-child) > :nth-last-child(-n+${u})`,l=(c,f,u=[])=>{let p=[],h=c.length,I=u.length;u.forEach(([g,C],S)=>{p.push(`${a} > :nth-child(${S+1}){grid-column:span ${g};grid-row:span ${C}}`)}),c.forEach(([g,C],S)=>{p.push(`${a} > :nth-child(${h}n+${I+S+1}){grid-column:span ${g};grid-row:span ${C}}`)});for(let g=1;g<h;g+=1)p.push(`${s(h,I,g)}{grid-column:span ${f};grid-row:span 1}`);return p};n.push(`${a}{grid-template-columns:repeat(${FT},minmax(0,1fr))}`);let d=ux(r);if(d&&(n.push(`${a}${a}{grid-auto-rows:auto}`),n.push(`${a}${a} > *{aspect-ratio:${d[0]}/${d[1]};height:auto}`)),n.push(...l(r.desktop,LT(r,!1),r.lead)),n.push(`@media (max-width:${H3}px){`),n.push(`${a}{grid-template-columns:repeat(${cx},minmax(0,1fr))}`),n.push(...l(r.phone,LT(r,!0),r.leadPhone)),r.phone.length===1&&!r.leadPhone?.length){let[c,f]=r.phone[0],u=r.lead?.length??0;for(let p=1;p<r.desktop.length;p+=1)n.push(`${s(r.desktop.length,u,p)}{grid-column:span ${c};grid-row:span ${f}}`)}return n.push("}"),n.join("")}var Lc=12,HT=1,z3=3;var $3=3;function mx(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 G3(e){return mx(e,1,Lc)??$3}function kue(e,o){return mx(e,HT,z3)??(G3(o)===4?2:HT)}function Tue(e){return e==null||e===""?null:mx(e,1,Lc)}var Pue="data-sf-span";function Eue(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(DT(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as j3}from"react/jsx-runtime";import*as K3 from"efficient-easel/icons";function Fc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=K3[`${o}Icon`];return t?j3(t,{size:16}):null}import{jsx as Zr,Fragment as Y3,jsxs as VT}from"react/jsx-runtime";import{useContext as X3,useEffect as Z3,useId as J3,useState as qT}from"react";import{SettingsField as Q3,SettingsSwitch as e6}from"efficient-easel/panel";import{AnchorIcon as o6}from"efficient-easel/icons";import{ScreenDocumentContext as t6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as r6}from"efficient-shell/ui";import{slugify as a6}from"efficient-shell/format";import{slugify as V3}from"efficient-shell/format";function Fl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Bc=e=>V3(Fl(e));var Dc="homepage";import{slugify as q3}from"efficient-shell/format";var WT=[{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 UT(e){return e.offersCommerce&&e.offersService?WT:WT.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var hx="#popup:";function zT(e){return`${hx}${e}`}function $T(e){return e.startsWith(hx)&&e.slice(hx.length).trim()||null}function Bl(e){return e===Dc?"/":`/${e}`}function GT(e){return`/journal/${e}`}function Mue(e){return`/wheels/${e}`}function Nc(e,o){return`${Bl(e)}#${o}`}function jT(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Fl(a?.props?.anchor);if(!n)continue;let s=q3(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function Hue(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 KT(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as n6}from"efficient-easel/draw";function YT({value:e,onChange:o,nameBox:t}){let r=n6(e).text,[a,n]=qT(!1),s=a||r.trim()!=="",l=J3();return VT(Y3,{children:[Zr(Q3,{label:i("Add an anchor"),labelId:l,icon:Zr(o6,{}),action:Zr(e6,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&Zr(s6,{name:r})]})}function s6({name:e}){let o=X3(t6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=qT("");Z3(()=>a(hc()),[]);let n=a6(e);if(!n||!t)return null;let s=`${r}${Nc(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return Zr("div",{className:"sf-anchor-link",children:Zr(r6,{value:s,label:i("link"),size:"sm",children:VT("span",{className:"sf-anchor-link-text",children:[Zr("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),Zr("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as or,jsxs as l6}from"react/jsx-runtime";import{Fragment as i6}from"react";import{Button as Mc,Tooltip as d6}from"efficient-shell/ui";function XT({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?or("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:or(d6,{content:n,className:d?"sf-name-tip":void 0,children:or("p",{className:"sf-blogsource-status","data-state":e,children:[o?or(i6,{children:o},"status"):null,t?or(Mc,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?or(Mc,{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])})})}):l6("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[or("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?or(Mc,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?or(Mc,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,or("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as KG,EyeIcon as VG,AnimationIcon as qG,BackgroundIcon as LE,BorderAllIcon as YG,BlockSectionIcon as XG,ColumnWidthsIcon as VI,ColumnsIcon as KE,CornerIcon as VE,DirectionDownIcon as ZG,DirectionLeftIcon as JG,DirectionRightIcon as QG,DirectionUpIcon as ej,EditIcon as oj,GapIcon as tj,GridIcon as rj,GroundIcon as $I,HashIcon as aj,HeightIcon as qE,ImageIcon as nj,ListIcon as sj,LocationIcon as FE,PaddingBottomIcon as YE,PaddingLeftIcon as XE,PaddingRightIcon as ZE,PaddingTopIcon as qI,PageIcon as lj,StickyIcon as JE,SearchIcon as ij,SquareIcon as dj,TypeIcon as cj,WidthIcon as fj}from"efficient-easel/icons";import{jsx as Xe,Fragment as Da,jsxs as Na}from"react/jsx-runtime";import{CaptionIcon as c6,DateIcon as f6,FlagIcon as p6,TitleIcon as u6,ButtonIcon as m6,DollarIcon as h6,HashIcon as x6,LinkIcon as I6,NoteIcon as g6,TagIcon as b6,TextLinesIcon as y6}from"efficient-easel/icons";var ZT={body:y6,button:m6,link:I6,label:b6,number:x6,price:h6,note:g6,name:p6,date:f6,caption:c6,title:u6},JT={eyebrow:Na(Da,{children:[Xe("path",{d:"M5 6.5h5"}),Xe("path",{d:"M5 12.5h14"}),Xe("path",{d:"M5 18h11"})]}),heading:Na(Da,{children:[Xe("path",{d:"M6.5 5v14"}),Xe("path",{d:"M17.5 5v14"}),Xe("path",{d:"M6.5 12h11"})]}),intro:Na(Da,{children:[Xe("path",{d:"M4 5.5v13"}),Xe("path",{d:"M8 7.5h12"}),Xe("path",{d:"M8 12h12"}),Xe("path",{d:"M8 16.5h8"})]}),value:Na(Da,{children:[Xe("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),Xe("path",{d:"M6.5 12h7"})]}),quote:Na(Da,{children:[Xe("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),Xe("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Na(Da,{children:[Xe("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),Xe("path",{d:"M8 9.5h8"}),Xe("path",{d:"M12 9.5v5"})]}),meta:Na(Da,{children:[Xe("path",{d:"M4 7h16"}),Xe("path",{d:"M4 14h3.5"}),Xe("path",{d:"M10.5 14h3"}),Xe("path",{d:"M17 14h3"})]})};function xx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=ZT[e];return n?Xe("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:Xe(n,{size:o})}):Xe("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:JT[e]})}var sme=Object.keys(ZT);var lme=Object.keys(JT);import{parseHexColor as E6}from"efficient-shell/format";import{parseHexColor as rP}from"efficient-shell/format";import{COLOR_SLOTS as aP,FILL_COLOR_SLOTS as k6,colorRole as T6,fillColorRole as nP}from"efficient-shell/markup";import{parseHexColor as QT}from"efficient-shell/format";import{FILL_COLOR_SLOTS as S6}from"efficient-shell/markup";var Hc=e=>{let o=$v.find(t=>t.role===e);return o?`var(${o.token})`:""},w6=e=>Hc(e)?`var(--theme-${e})`:"",C6={main:{ink:Pa.accent,page:Pa.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Pa.text,page:Pa.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:Hc("bg"),page:w6("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Pa.labels,page:Pa.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:Hc("surface"),page:Hc("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function Jr(e){return j(C6,e)}var Ix="#9ca3af";function ls(e,o,t){let r=Jr(e);return r?{hex:QT(o[r.key]??"")??"",words:r.words(t)}:null}function eP(e,o){return S6.flatMap(t=>{let r=ls(t,e,o);return r&&Jr(t)?.ink?[{name:t,label:r.words,value:r.hex||Ix}]:[]})}var v6=["main","text","background"];function oP(e){let o=new Set,t=[];return ho(e).themes.forEach((r,a)=>{for(let n of v6){let s=Jr(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?QT(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function vr(e){return Jr(e)?.ink??""}function tr(e){if(typeof e!="string")return null;let o=nP(e.trim());return o?.kind==="slot"&&vr(o.slot)?o.slot:null}var P6={accent:"main",labels:"muted"};function tt(e){return j(P6,e)??e}function is(e){if(!e)return"";if(e.startsWith("#"))return rP(e)===e.toLowerCase()?e:"";let o=T6(tt(e));return o?.kind==="slot"?vr(o.slot):""}function ds(e,o=aP){return o.flatMap(t=>{let r=Jr(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||Ix}]:[]})}function sP(e){let o=nP(tt(e));return o?.kind==="slot"?vr(o.slot):""}function gx(e){let o=e?.trim();return o?k6.find(t=>vr(t)===o)??null:null}function lP(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 aP){let l=vr(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=tP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=tP(String(n.fillStyle))),f&&(o[s]=f)}return o}function tP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return rP(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 O6="#ffffff";function bx(e){return iP(e)||(_6(e)?e:O6)}function iP(e){let o=tr(e);return o?Jr(o)?.page??"":""}function _6(e){return typeof e=="string"&&E6(e)===e.toLowerCase()||iP(e)!==""}function kme(e){return{"--bg":bx(e)}}import{parseHexColor as A6}from"efficient-shell/format";import{fillColorRole as R6}from"efficient-shell/markup";function Ma(e,o,t,r){let a=r??t??o,n=t!==null&&t!==o,s=a!==null&&a!==o;return{className:[n?e.tabletClass:"",s?e.phoneClass:""].filter(Boolean).join(" "),style:{...n?{[e.tabletVar]:t}:{},...s?{[e.phoneVar]:a}:{}}}}var Bme="sf-card",Dme="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",Qr={min:0,max:100,step:5,fallback:0,unit:"%"},L6=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],F6="68%",Nme={desktop:20,phone:20,side:40,sidePhone:24},Mme="sf-box-sides";function Sx(e){return typeof e=="string"&&e.trim()!==""}function Hme(e){return Sx(typeof e?.bgImage=="string"?e.bgImage:null)||Wc(e)}function Wc(e){return Xt(e,Yd)!==""}function Wme(e,o){return o||!Wc(e)?e:{...e,[Yd]:""}}function Ume(e,o){return gh(o,Xt(e,Yd))?.trim()||null}function dP(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(Qr.max,Math.max(Qr.min,t))/100).toFixed(2);return o!=="bottom"?{background:cc(Number(r))}:{background:`linear-gradient(0deg, ${cc(Number(r))} 0%, ${cc(0)} ${F6})`}}var Uc=[{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"}],cP="fillFade",yx=Uc[1].value,zc=e=>e===yx?yx:Uc[0].value,B6=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function zme(e){return zc(e)!==yx?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${B6.map(o=>`color-mix(in srgb, var(--bg) ${o.mix}, transparent) ${o.at}`).join(", ")})`}}var $c=e=>typeof e=="string"?A6(e.trim()):null,Dl=e=>{let o=$c(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&sP(t)||null},Gc=e=>{if(typeof e!="string")return null;let o=R6(tt(e.trim()));return o?.kind==="slot"?o.slot:null},wx="swatch";function $me(e,o){if(!o)return null;let t=gh(o,Xt(e,wx)),r=tr(t);return $c(t)??(r&&vr(r)||null)}var D6={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Gme(e,o,t){return Ma(D6,Dl(e),Dl(o),Dl(t))}var N6={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function jme(e){let o=dP(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(dP(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>L6.some(p=>p.value===u)?u:void 0,[n,s,l,d]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],c=n??e.darken,f=s??e.darkenStyle;return Ma(N6,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 Kme(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 fP(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let{type:a,props:n}=r;if(n?.id===o)return null;if(Cx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function Cx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Cx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Cx(a,o,t+1))}function pP(e,o){let t=e?.content;return Array.isArray(t)?jc(t,o,0)??[]:[]}function jc(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=jc(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=jc(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=jc(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Ho,SettingsDrill as pj,SettingsField as uo,SettingsGroup as uj,SettingsSegmented as mj,SettingsBorder as hj,SettingsSidesEach as xj,SettingsSwitch as YI,borderSides as Ij,borderStartEach as gj}from"efficient-easel/panel";import{ListField as bj}from"efficient-easel/fields";import{DisplayChips as yj}from"efficient-shell/ui";import{HIDDEN_KEY as M6,hiddenInEveryView as H6,hiddenInView as vx,hiddenKeyOf as uP}from"efficient-easel/screen/lib/content/view-hide";var W6={"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"},U6={"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"},mP=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function Kc(e,{atSectionLine:o=!1}={}){return(o?U6:W6)[mP(e)]}var cs=[M6,uP("tablet"),uP("mobile")];function hP(e){return{desktop:vx(e,"desktop"),tablet:vx(e,"tablet"),mobile:vx(e,"mobile")}}function Nl(e){return H6(e)}function Xme(e){let o=hP(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var z6={"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!"},$6={"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 Zme(e,{atSectionLine:o=!1}={}){return(o?$6:z6)[mP(hP(e))]}function fs(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 Vc(e,o){return fs(e)[o]!==!1}function kx(e,o,t){let r=fs(o)[t];return typeof r=="boolean"?r:Vc(e,t)}function xP(e){return Object.values(fs(e)).some(o=>o===!1)}function IP(e){return Object.keys(fs(e)).length>0}function gP(e,o,t){let r={...fs(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function bP(e,o,t){return{...fs(e),[o]:t}}function ehe(e,o,t,{atSectionLine:r=!0}={}){let a=!Vc(e,t);return Kc({desktop:a,tablet:a,mobile:!kx(e,o,t)},{atSectionLine:r})}import{ColorSwatch as Sj,CornersInput as wj,DatePicker as swe,DateTimePicker as Cj,FOCAL_DEFAULT as lwe,IconPicker as QE,COLUMN_COUNT_MAX as BE,COLUMN_SHARE_MIN as vj,COLUMN_SHARES_EQUAL as kj,resolveColumnShares as eO,WidthsBar as Tj,useShellStrings as Pj,IconButton as oO,InputNumber as DE,Slider as Ej,Tooltip as XI}from"efficient-shell/ui";import{backendOf as G6}from"efficient-easel/screen/lib/session";var oo=G6,qc=e=>e.blocks;async function yP(e){let o=e.trim();if(!o)return null;let t=oo().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var Tx="Lookup busy \u2014 try again in a moment.",Yc=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:Yc(t.lat)&&t.lat!==o.lat||Yc(t.lng)&&t.lng!==o.lng:!1})}async function ihe(e,o,{geocode:t=yP,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:Tx}})}}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=Yc(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=Yc(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 Ex}from"react/jsx-runtime";import{useRef as j6}from"react";import{ColorPicker as K6,ColorPickerPanel as V6,ColorSwatch as q6,HexInput as Y6,Popover as X6,Tooltip as Z6,colorFill as J6,colorSwatchClasses as Q6,useShellStrings as eW}from"efficient-shell/ui";import{SettingsDefaultReset as oW,SettingsField as tW}from"efficient-easel/panel";import{typedHex as Px}from"efficient-easel/pick";var SP="Not set";function wP({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return $o(aW,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function rW(){let{theme:e}=ge();return oP(e)}function aW({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=rW(),d=e?null:Px(n??""),c=a!==void 0&&(!e||Px(a)!==Px(e))?a:null,f=u=>{u!==e&&o(u)};return Ex("div",{className:"sf-colour",children:[s?$o(nW,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):$o(K6,{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(Y6,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(SP),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function nW({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=eW().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=j6(c);return f&&(u.current=c),$o(X6,{id:r,trigger:$o("span",{"aria-hidden":"true",className:"absolute inset-0",style:J6(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:Q6({size:"md"}),"aria-label":l.panel(t),align:"start",children:Ex("div",{className:"sf-colour-window",children:[$o("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>$o(Z6,{content:p.label,children:$o(q6,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),$o(V6,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?d:n)??void 0},u.current)]})})}function qo({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return $o(tW,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?$o(oW,{words:le()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:s?Ex("div",{className:"es-width-stack",children:[wP({...l,label:e}),s]}):wP({...l,label:e})})}function Ml({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(qo,{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 GI}from"efficient-easel/screen/lib/document/style-fields";import{jsx as sW}from"react/jsx-runtime";import{useEffect as lW,useState as iW}from"react";import{clearRangeOf as dW,markSelection as cW,useCaretEdit as fW}from"efficient-easel/copy";import{TextToolbar as pW}from"efficient-shell/ui";function uW(e,o,t){return cW(e,o,t,mC)}function CP(e,o){let t=dW(o,e.length),r=xC(e,t.start,t.end);return r.text===e?null:r}function mW(e){let[o,t]=iW(null);return lW(()=>{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 hW({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=fW({target:e,onChange:t}),[s,l]=mW(e),d=p=>n(h=>{let I=uW(o,p,h);return l({start:I.selectionStart,end:I.selectionEnd}),I}),c=uC(),f={};if(s)for(let p of c)f[p.style]=hC(o,s.start,s.end,p.style);let u=r?null:CP(o,s);return sW(pW,{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=CP(o,h)??{text:o,selectionStart:h?.start??0,selectionEnd:h?.end??0};return l({start:I.selectionStart,end:I.selectionEnd}),I})}:void 0})}var Ox=hW;import{deviceField as ht}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as Oj,NoControlMark as _j,noControlField as tO}from"efficient-easel/screen/lib/document/panel-no-control-mark";var _x="__ownBox";function vP(e){return!!e&&typeof e=="object"&&e[_x]===!0}var Ax="sfPanelOnly";function ps(e){return!!e&&typeof e=="object"&&e[Ax]===!0}function Xc(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var Zc=void 0;import{phoneKey as ws,tabletKey as ZI,viewKeyAt as JI}from"efficient-easel/draw";import{jsx as Jc,Fragment as xW,jsxs as IW}from"react/jsx-runtime";import{useRef as gW}from"react";import{SettingsDefaultReset as bW}from"efficient-easel/panel";import{effectTiles as yW}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as kP,describedAs as SW,onDesktopWords as wW,phoneTwinFields as TP}from"efficient-easel/screen/lib/document/box-fields";function CW({row:e,read:o,...t}){let r=o(Po(),t.followsView??"desktop");return e({...t,follows:r})}function kr(e,o){return Object.fromEntries(Vo.map(t=>{let r=we(e,t);return[r,TP(e,o(t),kP)[r]]}))}function Qc(e,o,t){let r=o.render,a={...o,render:n=>Jc(CW,{...n,row:r,read:t})};return kr(e,n=>n==="desktop"?o:a)}function vW({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=gW(null),{preview:l}=e,d=yW({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 IW(xW,{children:[l?Jc("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&Jc(bW,{words:le()?.panel,label:i(e.tileWord),changed:!0,detail:wW(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function ef(e,o){let t=SW({type:"custom",render:r=>Jc(vW,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return TP(e,t,kP)}import{jsx as Lx,Fragment as PW}from"react/jsx-runtime";import{createContext as EW,useContext as OW}from"react";var of={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},tf={Events:["posts"],SubscribeBlogs:["posts"]};var kW=["anchor"],TW=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Hl(e){return kW.includes(e)||TW.test(e)}var Rx={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"}}};Rx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var zhe=Object.fromEntries(Object.entries(of).map(([e,o])=>[e,Object.keys(o)])),$he=Object.fromEntries(Object.entries(tf).map(([e,o])=>[e,[...o]]));import{NoControlMark as _W}from"efficient-easel/screen/lib/document/panel-no-control-mark";var PP=EW(!1);function EP({children:e}){return Lx(PP.Provider,{value:!0,children:e})}function AW(){return OW(PP)}function OP({name:e,children:o}){return!AW()||!e||!RW(e)||Hl(e)?Lx(PW,{children:o}):Lx(_W,{})}function RW(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Fx="off",AP="none",Bx=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],RP=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function Zhe(e){return io(Bx,Fx,e)}var _P="sf-card-index",Wl="sf-card-index",Jhe="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",LW={plain:`counter(${Wl})`,padded:`counter(${Wl}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Wl}, decimal-leading-zero)`};function Qhe(e,o){return o==="off"?"":`.${e}{counter-reset:${Wl}}.${e} .${_P}{counter-increment:${Wl}}.${e} .${_P}::before{content:${LW[o]}}`}function exe(e){return e==="hairline"?"border border-line hover:border-accent":""}var LP=[{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 Aj}from"efficient-easel/draw";import{jsx as Yo}from"react/jsx-runtime";import{SettingsDefaultReset as UW,SettingsField as Dx}from"efficient-easel/panel";import{useSelectedHost as zW}from"efficient-easel/easel";import{FOCAL_DEFAULT as $W}from"efficient-shell/format";import{ImageIcon as Nx,PlayIcon as BP}from"efficient-easel/icons";import{ImageFocusPoint as GW,MediaUploadField as jW}from"efficient-shell/ui";import{useContext as KW}from"react";import{ScreenDocumentContext as VW}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as qW,viewKeyAt as YW}from"efficient-easel/draw";import{usePreviewDevice as XW}from"efficient-easel/draw/client";import{formatFocal as FW,parseFocal as BW}from"efficient-shell/format";var DW="sf-focus-phone",NW="--sf-focus-phone",MW="sf-focus-tablet",HW="--sf-focus-tablet",Ul=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=BW(e);return FW(o,t)};function FP(e,o){return Ma(WW,null,Ul(o),Ul(e))}var WW={tabletClass:MW,tabletVar:HW,phoneClass:DW,phoneVar:NW};import{shownTier as Mx}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as ZW}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as JW}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as QW}from"efficient-easel/screen/lib/host";import{useEaselSession as eU}from"efficient-easel/screen/lib/session-context";function oU(e,o,t,r=!0){let a=Mx(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):$W;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=YW(o,a),l=Ul(e[s])??void 0,d=a==="mobile"&&r?Ul(e[qW(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 tU(e,o,t){let r=zW();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,Mx(e)))return null;let n=oU(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,Zc)}}function DP({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=QW(),f=eU(),u=i(t),p=XW(),h=r.startsWith("video"),I=tU(p,h?void 0:n,s),g=!!n&&Mx(p)!=="desktop",C=KW(VW),S=ea(),T=l&&d?{video:d,frame:l}:null,y=E=>JW(c,{accept:r,title:u,...E?{file:E}:{}}).then(W=>!W||!T?W?.url??null:(S({[T.video]:W.url,[T.frame]:W.posterUrl??""}),null)),b=T?E=>E?o(E):S({[T.video]:"",[T.frame]:""}):o,P=zo(e);if(g&&(!I||!P))return null;if(C&&!C.capabilities.mediaEditing)return Yo(Dx,{label:u,icon:h?Yo(BP,{}):Yo(Nx,{}),children:Yo("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?Yo(UW,{words:le()?.panel,label:i("Image focus"),changed:!!I.own,detail:ZW(E=>i(E),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?Yo(Dx,{label:u,icon:Yo(Nx,{}),action:H,children:Yo("div",{style:{flex:"1 1 auto",minWidth:0},children:Yo(GW,{value:I.focus,onChange:I.set,label:i("Image focus"),image:P,hint:null})})}):Yo(Dx,{label:u,icon:h?Yo(BP,{}):Yo(Nx,{}),children:Yo("div",{style:{flex:"1 1 auto",minWidth:0},children:Yo(jW,{value:P,onChange:b,onPick:y,accept:h?"video/*":"image/*",kind:h?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:oo(f).media.maxUploadBytes,...I?{focus:I.focus,onFocusChange:I.set}:{}})})})}import{jsx as NP}from"react/jsx-runtime";import{useId as rU}from"react";import{FieldSelect as aU}from"efficient-easel/fields";import{SettingsField as nU}from"efficient-easel/panel";function sU(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function MP({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=rU(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return NP(nU,{label:i(e),labelId:d,icon:n,hint:s,children:NP(aU,{id:c,multiple:!0,value:f,options:sU(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as xo,jsxs as Wa,Fragment as BU}from"react/jsx-runtime";import{useCallback as ZP,useContext as DU,useId as e0,useRef as JP,useState as QP}from"react";import{ThemeIcon as NU}from"efficient-easel/icons";import{Button as MU,useClickOutside as HU}from"efficient-shell/ui";import{SettingsField as WU}from"efficient-easel/panel";import{ScreenDocumentContext as UU}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as ta,Fragment as hU}from"react/jsx-runtime";import{parseHexColor as xU}from"efficient-shell/format";import{Button as Wx,IconButton as IU,Tooltip as gU}from"efficient-shell/ui";import{jsx as oa,jsxs as lU}from"react/jsx-runtime";import{AccentIcon as iU}from"efficient-easel/icons";import{Button as dU,Tooltip as cU}from"efficient-shell/ui";function Hx(e){return Ko(e).background}function fU(e){let o=Gr(e.accent,Hx(e));return o===null?null:{ratio:o,grade:Xn(o)}}function pU(e){let o=Hx(e),t=Gr(e.accent,o);return t===null?[]:Ev(e.accent).filter(r=>{let a=Gr(r,o);return a!==null&&a>t&&Xn(a)==="good"})}var uU={good:"Easy to read","large-only":Yn["large-only"],hard:Yn.hard};function HP({value:e,onChange:o}){let t=fU(e),r=t?.grade,a=t&&t.grade!=="good"?pU(e):[];return oa(qo,{label:i("Main color"),icon:oa(iU,{}),hint:t?i(uU[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?oa("div",{className:"w-full min-w-0",children:lU("div",{className:"sf-readability",children:[oa("p",{className:"sf-readability-advice",children:mU(r,!0)}),oa("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Gr(n,Hx(e));return oa(cU,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:oa(dU,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:oa("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 mU(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 bU,ChevronDownIcon as UP,ChevronUpIcon as yU,GroundIcon as SU,LayoutIcon as wU,SquareIcon as CU,TextSmallIcon as vU,TypeIcon as WP}from"efficient-easel/icons";var zl=e=>i("Theme {n}",{n:e+1});function zP({colors:e}){let o=Ko(e),t=vl(e)??o.accent;return ta("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")}),ta("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")}),ta("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:wh(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var Ux={"Text color":fe(WP,{}),"Label color":fe(vU,{}),Background:fe(SU,{}),"Panels & cards":fe(wU,{}),Borders:fe(CU,{}),"Button color":fe(bU,{}),"Button text color":fe(WP,{})};function kU({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(qo,{label:i(e),icon:Ux[e],id:n,value:t,onChange:s=>r(o,s)})}function TU({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&xU(e)===e.toLowerCase(),s=n?e:o;return fe(qo,{label:i("Button color"),icon:Ux["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function PU({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=Ov(e),s=wh(e,o),l=vl(e)??o,d=Xn(Gr(s,l)??0);return fe(qo,{label:i("Button text color"),icon:Ux["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 EU=[{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 zx({colors:e,onChange:o,idPrefix:t}){let r=Ko(e);return fe(hU,{children:EU.map(a=>"colour"in a?fe(HP,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(TU,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(PU,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(kU,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function rf({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:d}){let c=Ko(o),f=zl(e),u=e<Sh.length&&!o.brandInk?Sh[e]:null,p=Xn(Gr(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return ta("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(zP,{colors:o})}),ta("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(gU,{content:a?i("Collapse"):i("Edit colors"),children:fe(IU,{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(yU,{size:14}):fe(UP,{size:14})})})}),n&&l&&!I&&fe(Wx,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&ta("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(zx,{colors:o,onChange:g=>d?.(g)}),u&&fe(Wx,{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 $P({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return ta("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(zP,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),ta("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),c&&fe(Wx,{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(UP,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as qx,useEffect as qP,useRef as lf}from"react";import{currentEaselSession as AU}from"efficient-easel/screen/lib/session";import{useEaselSession as RU}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as OU}from"react";var jP,$x=null,Ha=null,af=0,Gx=new Set;function jx(e){jP=e;for(let o of Gx)o()}function Kx(e){$x=e,af+=1,Ha&&clearTimeout(Ha),Ha=null,jx(void 0)}function nf(e){af+=1,jx(e)}function Tr(e=250){$x&&(Ha&&clearTimeout(Ha),Ha=setTimeout(()=>{Ha=null;let o=$x;if(!o)return;let t=++af;o().then(r=>{t===af&&jx(r)}).catch(()=>{})},e))}function GP(){return jP}function _U(e){return Gx.add(e),()=>{Gx.delete(e)}}function sf(){return OU(_U,GP,GP)}var Vx=new Set;function KP(e){return Vx.add(e),()=>{Vx.delete(e)}}async function VP(){let e=(await Promise.allSettled([...Vx].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as LU}from"efficient-easel/screen/lib/backend-error";function YP(e=AU()){return(o,t,r)=>{let a=oo(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new LU("invalid","This backend stores no site theme."))}}function XP(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function FU(e,o=YP()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=XP({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 us({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=lf(null),n=lf({}),s=RU(),l=lf(r);l.current=r;let d=lf(null),c=qx(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=qx(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await FU({themeFromDocument:e,token:o?.current,siteId:t,patch:p},YP(s));return c(h),h.status==="saved"&&Tr(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=qx((p,h=!1)=>{let I=XP({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 qP(()=>()=>{f()},[f]),qP(()=>KP(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 zU="Follow the page",bIe="Follow the slideshow",$U=e=>i("Editing {name} changes it everywhere.",{name:e});function GU({colors:e}){if(!e)return xo("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Ko(e);return Wa("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[xo("i",{style:{background:o.background}}),xo("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function jU({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Wa("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Wa(BU,{children:[Wa("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Jt),children:[xo(GU,{}),xo("span",{className:"sf-secttheme-name",children:i(n)})]}),xo("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&xo("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:zl(o)})}),e.map((s,l)=>l===o?null:xo(rf,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function KU({index:e,colors:o,onChange:t,onDone:r}){let a=zl(e),n=e0();return Wa("div",{className:"sf-secttheme-sheet",children:[Wa("div",{className:"sf-secttheme-sheet-head",children:[xo("span",{children:a}),xo(MU,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),xo("div",{className:"sf-secttheme-rows",children:xo(zx,{colors:o,onChange:t,idPrefix:n})}),xo("p",{className:"sf-secttheme-warn",children:$U(a)})]})}function o0({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=ge(),s=ho(a),l=DU(UU),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=us({themeFromDocument:f,tokenRef:d,siteId:c}),h=ho(s),I=h.themes,g=Qt(e),C=g!==null?I[g]:void 0,S=C??(I.length?qn(h):void 0),[T,y]=QP(!1),[b,P]=QP(null),H=JP(null),E=JP(null),W=e0(),O=ZP(()=>{y(!1),P(null)},[]),D=ZP(()=>{!T&&b===null||(p(),O())},[T,b,O,p]);HU(H,D);let v=A=>{o(A),O()},_=A=>{if(b===null)return;let F=I.map(($,X)=>X===b?A:$),z={...h,themes:F};n(z),u({selected_preset:z.selected,theme_presets:z.themes})};return Wa("div",{className:"sf-secttheme",ref:H,children:[xo(WU,{label:i("Theme"),icon:xo(NU,{}),labelId:`${W}-label`,hint:r,children:xo($P,{colors:S,onEdit:g!==null?()=>{P(g),y(!1)}:void 0,name:C?zl(g):i(t??zU),nameId:`${W}-value`,labelId:`${W}-label`,open:T,menuId:W,buttonRef:E,onClick:()=>{P(null),y(A=>!A)},onKeyDown:A=>{A.key==="Escape"&&(T||b!==null)&&(A.preventDefault(),O())}})}),T&&b===null&&xo("div",{onKeyDown:A=>{A.key==="Escape"&&(A.preventDefault(),O(),E.current?.focus())},children:xo(jU,{themes:I,value:g,onPick:v,onEdit:A=>{P(A),y(!1)},menuId:W,followLabel:t})}),b!==null&&I[b]&&xo(KU,{index:b,colors:I[b],onChange:_,onDone:()=>{p(),O(),E.current?.focus()}})]})}import{jsx as t0}from"react/jsx-runtime";import{useId as VU}from"react";import{FieldSelect as qU}from"efficient-easel/fields";import{SettingsField as YU}from"efficient-easel/panel";function XU(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 TIe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=VU(),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=t0(qU,{id:f,value:p,options:XU(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:t0(YU,{label:h,labelId:c,icon:l,children:g})}import{jsx as za,jsxs as Oz}from"react/jsx-runtime";import{SettingsField as k0}from"efficient-easel/panel";import{LinkIcon as _z}from"efficient-easel/icons";import{LinkPicker as Az,TextLinkField as Rz}from"efficient-shell/ui";import{useEffect as v0,useMemo as uf,useRef as Lz,useState as pf}from"react";import{currentEaselSession as ZU}from"efficient-easel/screen/lib/session";function r0(){return ZU().auth.token}import{currentEaselSession as Fz}from"efficient-easel/screen/lib/session";import{useScreenDocument as Bz}from"efficient-easel/screen/components/ScreenDocumentContext";var JU=()=>({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 a0(e,o,t){if(!e)return"page";if($T(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(KT(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 Yx(e,o){let t=JU(),r=e.pages.map(f=>({value:Bl(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:jT(...f.docs).map(u=>({value:Nc(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:GT(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:zT(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=UT(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=>a0(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=>a0(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 Dz}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 n0(e,o){return q(e)??o}function Pr(e,o){return typeof e=="boolean"?e:o}function df(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 l0=["delay","scroll","exit"],i0=["all","chosen","except"],d0=["visit","days","never","once"],QU=["all","desktop","phone"],ez=["stop","continue"],c0={min:0,max:60},f0={min:10,max:90},p0={min:1,max:90},Bt={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function rt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function ms(e,o,t){let r=n0(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function oz(e){return typeof e.hideAfter=="string"?rt(d0,e.hideAfter,Bt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Bt.hideAfter}function tz(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 u0(e){let o=e??{},t=Bt;return{autoOpen:Pr(o.autoOpen,t.autoOpen),trigger:rt(l0,o.trigger,t.trigger),autoOpenDelaySec:ms(o.autoOpenDelaySec,c0,t.autoOpenDelaySec),scrollPercent:ms(o.scrollPercent,f0,t.scrollPercent),showOn:rt(i0,o.showOn,t.showOn),showOnPages:tz(o.showOnPages),devices:rt(QU,o.devices,t.devices),hideAfter:oz(o),hideDays:ms(o.hideDays,p0,t.hideDays),afterSubmit:rt(ez,o.afterSubmit,t.afterSubmit),startDate:s0(o.startDate),endDate:s0(o.endDate)}}import{parseHexColor as rz}from"efficient-shell/format";var Dt="#000000";var Xx="popup",az=Yv,nz=["auto","full"],sz=["inside","outside","none"],lz={min:240,max:1440},iz={min:0,max:100},$l={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Dt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function dz(e,o){let t=typeof e=="string"?e.trim():"";return t&&rz(t)===t.toLowerCase()?t:o}function Zx(e,o=$l){let t=e??{},r=o;return{placement:rt(az,t.placement,r.placement),fullWidth:Pr(t.fullWidth,r.fullWidth),width:ms(t.width,lz,r.width),height:rt(nz,t.height,r.height),tintColor:dz(t.tintColor,r.tintColor),tintOpacity:ms(t.tintOpacity,iz,r.tintOpacity),outsideClick:Pr(t.outsideClick,r.outsideClick),closeButton:rt(sz,t.closeButton,r.closeButton)}}var m0="cart-drawer",qIe="cart-drawer",cz={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 YIe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function XIe(e){let o=e??{},t=cz;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:df(o.promises,t.promises),emptyKicker:Eo(o.emptyKicker,t.emptyKicker),emptyBody:Eo(o.emptyBody,t.emptyBody)}}var fz=["right","left"],pz={...$l,width:520,tintOpacity:68};function ZIe(e){let o=e??{};return{...Zx(o,pz),placement:rt(fz,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:Pr(o.autoOpen,!0)}}var x0="consent-banner",oge="consent-banner";var uz=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],tge="Layout",h0={layout:"bar"},mz=e=>uz.some(o=>o.value===e);function rge(e){let o=Eo((e??{}).layout,h0.layout);return{layout:mz(o)?o:h0.layout}}var age={...$l,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var hz="consentWords",xz=["eyebrow","notice","accept","reject","choose"];function Jx(e){let o=(e??{})[hz];return typeof o=="string"&&xz.includes(o)?o:null}function Qx(e){let o=e?.props;return o?Jx(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&Qx(r))):!1}var Iz=["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"},gz={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"},ige={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 I0(e){let o={};for(let t of Iz){let r=Ir(e[gz[t]]);r&&(o[t]=r)}return o}var g0={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},bz={lead:"We accept"},ff={...bz,methods:[],size:"sm",align:"start",dataSource:Jw},Nt="site-footer";var fge=Nt,pge={desktop:!0,tablet:!0,mobile:!0},uge={desktop:!1,tablet:!1,mobile:!1},eI=1,b0=6,mge=Array.from({length:b0-eI+1},(e,o)=>eI+o),cf={desktop:6,tablet:3,mobile:2},yz={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),eI),b0);function hge(e){if(typeof e=="number")return yz[Ua(e)]??{desktop:Ua(e),tablet:Ua(e),mobile:Ua(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ua(o.desktop??cf.desktop),tablet:Ua(o.tablet??cf.tablet),mobile:Ua(o.mobile??cf.mobile)}}return{...cf}}var oI="subscribe-popup",Cge="subscribe-popup",Sz=[oI,Nt,m0,x0];function S0(e){return Sz.includes(e)}var wz=["right","left"],Cz={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:Bt.autoOpen,autoOpenDelaySec:Bt.autoOpenDelaySec,formSlug:"",trigger:Bt.trigger,scrollPercent:Bt.scrollPercent,showOn:Bt.showOn,showOnPages:[],hideAfter:Bt.hideAfter,hideDays:Bt.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},to=Eo,vz=Pr,w0=df;function y0(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 kz(e,o){return Array.isArray(e)?w0(e,[]):o}function Tz(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:to(r.label,""),value:to(r.value,"")}}).filter(t=>t.label||t.value):o}function kge(e){let o=e??{},t=Cz,r=u0(o);return{metaLabel:to(o.metaLabel,t.metaLabel),issueLabel:y0(o.issueLabel,t.issueLabel),issueNumber:y0(o.issueNumber,t.issueNumber),kicker:to(o.kicker,t.kicker),heading:to(o.heading,t.heading),deck:to(o.deck,t.deck),stats:Tz(o.stats,t.stats),formLabel:to(o.formLabel,t.formLabel),formHeading:to(o.formHeading,t.formHeading),formIntro:to(o.formIntro,t.formIntro),firstNameLabel:to(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:to(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:to(o.emailLabel,t.emailLabel),emailPlaceholder:to(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:to(o.interestsLabel,t.interestsLabel),interests:w0(o.interests,t.interests),frequencyLabel:to(o.frequencyLabel,t.frequencyLabel),frequencies:kz(o.frequencies,t.frequencies),submitText:to(o.submitText,t.submitText),finePrint:to(o.finePrint,t.finePrint),dismissText:to(o.dismissText,t.dismissText),emailInvalidText:to(o.emailInvalidText,t.emailInvalidText),submitErrorText:to(o.submitErrorText,t.submitErrorText),successHeading:to(o.successHeading,t.successHeading),successBody:to(o.successBody,t.successBody),keepBrowsingText:to(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:rt(wz,o.formSide,t.formSide),valuePanelOnPhone:vz(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:I0(o)}}function Pz(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function Ez(e){return{root:{props:{title:e,kind:Xx}},content:[],zones:{}}}function C0(e,o,t){return{slug:Pz(o,t),title:e,kind:lx,layout:Ez(e)}}function Gl(e){return e?.root?.props?.kind===Xx}function T0(e){let o=new Map;return(t="")=>{let r=r0(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!Fz().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var Nz=T0(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=oo();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),Mz=T0(async(e,o)=>await oo().blog?.posts(o?{siteId:o}:void 0)??[]);function Hz({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=uf(()=>Yx(r,a),[r,a]),s=i(t);return za(k0,{label:s,icon:za(_z,{}),children:za(Az,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function P0(){let{siteId:e,capabilities:o}=Bz(),{offersCommerce:t,hasBlog:r}=o,[a,n]=pf([]),[s,l]=pf([]),[d,c]=pf([]),[f,u]=pf(null),p=Dz().chrome,h=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,C=Lz(!0);v0(()=>(C.current=!0,()=>{C.current=!1}),[]),v0(()=>{let y=!0;return Nz(e??void 0).then(b=>y&&C.current&&n(b)),r&&Mz(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 S=uf(()=>({pages:a.filter(y=>!S0(y.slug)&&!Gl(y.layout)).map(y=>({slug:y.slug,title:y.label,docs:[y.layout]})),popups:a.filter(y=>y.slug===oI||Gl(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=uf(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:T,pages:a,offersCommerce:t,HostLinkRow:g}}function jge({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=P0(),d=uf(()=>Yx(s,l),[s,l]),c=i(e);return za(k0,{label:c,icon:o,children:za(Rz,{label:c,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:d.kinds,rules:d.rules,filtersFor:d.filtersFor})})}function E0({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:d}=P0(),c=a.pages.map(u=>Bl(u.slug)),f=l&&d&&(r==="/"||c.includes(r))?d:void 0;return Oz("div",{children:[za(Hz,{value:r,onChange:o,label:t,data:a,filters:n}),f&&za(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as NE}from"efficient-easel/draw/client";import{phoneKey as N0,resolveViewValue as Zz,tabletKey as M0,viewKeyAt as $a}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as U0,SITE_SIDE as Jz,convertLength as Qz,isLengthUnit as e$,isSiteSide as z0,sideLengthAt as o$,sideValueAt as t$,withLength as lI}from"efficient-easel/screen/lib/content/length-units";var yo={min:1e3,max:2e3,step:50,default:1600};function Wz(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var tI="--sf-site-width",aI=`var(${tI},${yo.default}px)`,qge="100vw",Yge=`max-w-[${aI}]`,Xge=`max-w-[${yo.default}px]`;function R0(e){return typeof e!="number"||!Number.isFinite(e)?yo.default:Math.round(Math.min(Math.max(e,yo.min),yo.max))}function Zge(e,o){let t=Aa(e,o,"size",yo,{floor:!0});if(t!==null)return{[tI]:t};let r=R0(e);return r===yo.default?{}:{[tI]:`${r}px`}}var ct={min:0,max:80,step:4,default:40},rI="--sf-site-gutter",ra={min:0,max:24,step:4},O0="--sf-site-gutter-phone",Uz="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",at=`var(${rI},${ct.default}px)`,zz=`px-[${at}]`;var rr={md:`min(24px,${at})`,sm:`min(20px,${at})`,frame:`min(24px,${at})`,tabs:`min(16px,${at})`},Jge=[[`max-view-desktop:px-[${rr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${rr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${rr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${rr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${rr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${rr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${rr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${rr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${at}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${at})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${at})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${at})]`,"max-view-tablet:-mx-5"],[`-mx-[${at}]`,"-mx-10"],[zz,"px-10"]];var L0="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function nI(e){return $z[e??"box"]}var _0="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",A0="[--sf-edge-g:var(--sf-pad-site)]",$z={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:_0,edge:A0,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:_0,edge:A0,frame:L0}},Qge=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${L0}`,ebe="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var obe="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 mf(e){return typeof e!="number"||!Number.isFinite(e)?ct.default:Math.round(Math.min(Math.max(e,ct.min),ct.max))}function tbe(e,o){let t=Aa(e,o,"spacing",ct);if(t!==null)return{[rI]:t};let r=mf(e);return r===ct.default?{}:{[rI]:`${r}px`}}function hf(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,ra.min),ra.max))}function F0(e){return typeof e=="number"&&Number.isFinite(e)?R0(e):null}function rbe(e,o){let t=Aa(e,o,"spacing",ra);if(t!==null)return{[O0]:t};let r=hf(e);return r===null?{}:{[O0]:`${r}px`}}function abe(e){return hf(e)===null?"":Uz}function xf(e){return Math.min(ra.max,mf(e))}var B0=aI,nbe=`max-w-[${B0}]`,sbe=`max-w-[min(var(--sf-page-cap,${yo.default}px),${yo.default}px)]`,D0="--sf-hero-cap",Gz=`var(${D0},none)`,lbe=`max-w-[${Gz}]`,jz="--sf-hero-bleed-m",Kz="--sf-hero-bleed-w",Vz="--sf-hero-chrome-x",qz="--sf-hero-chrome-cap";function ibe(e){return e===!0?{[D0]:B0,[jz]:"auto",[Kz]:"100%",[Vz]:"24px",[qz]:"none"}:{}}var sI=`calc(${aI} - ${at}*2)`,dbe=`max-w-[${sI.replace(/ /g,"_")}]`;var Yz="--sf-chrome-cap",Xz=`var(${Yz},${sI})`,cbe="data-page-width";function fbe(e){return e==="full"?"full":null}function pbe(e){return e==="full"?null:Wz(e==="content"?sI:Xz)}function ube(e){if(e==="full")return"full";if(e==="content")return"content"}var ft={min:10,max:200,step:10};function r$(e,o,t,r=0){let a=q(e),n=q(o);if(a===void 0&&n===void 0)return;let s=If(t),l=d=>d===void 0?void 0:s==="px"?d:lI(d,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var If=e=>so(e),a$="sf-pad-top-phone",n$="sf-pad-bottom-phone",s$="--sf-pad-t-phone",l$="--sf-pad-b-phone",i$="sf-pad-left-phone",d$="sf-pad-right-phone",c$="--sf-pad-l-phone",f$="--sf-pad-r-phone",p$="sf-pad-top-tablet",u$="sf-pad-bottom-tablet",m$="sf-pad-left-tablet",h$="sf-pad-right-tablet",x$="--sf-pad-t-tablet",I$="--sf-pad-b-tablet",g$="--sf-pad-l-tablet",b$="--sf-pad-r-tablet",$0="sf-section-pad";function Kl(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=r$(e.top,e.bottom,e.unit,e.frame),r=iI({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:[$0,...r.classes].join(" "),style:{...t,...r.style}}}var y$=e=>z0(e)?e:q(e),S$=[["top","paddingTop",[p$,x$],[a$,s$]],["bottom","paddingBottom",[u$,I$],[n$,l$]],["left","paddingLeft",[m$,g$],[i$,c$]],["right","paddingRight",[h$,b$],[d$,f$]]];function H0(e,o,t){return!e$(o)||o==="px"?e:Qz(e,"px",o,t,{min:0,max:ft.max,step:1})}function w$(e,o,t,r={},a=0){let n=(h,I)=>{if(I==="px")return`${h}px`;let g=lI(h,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[M0("n")]:o,[N0("n")]:t,u:r.desktop,[M0("u")]:r.tablet,[N0("u")]:r.phone},l=Zz("spacing",q(e),q(o),q(t),zn()),d=(h,I,g)=>{if(t$(s,{side:"n"},h,"side",["side"])?.value===Jz)return nI().value;let C=o$(s,{side:"n"},"u",h,"side");if(!C)return;let S=I!==null&&!g&&C.unit==="px"&&typeof l[I]=="number";return n(S?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 iI(e,o,t={},r=e,a={},n=0,s="box"){let l={},d={},c=[],f=nI(s),u=!1;for(let[p,h,...I]of S$){let g=p==="left"||p==="right"?y$:q,C=g(e[p]),S=p==="top"||p==="bottom"?n:0;z0(C)?(l[h]=f.value,u=!0):C!==void 0&&(l[h]=If(a.desktop)==="px"?C:lI(C,If(a.desktop),S));let T=w$(g(r[p]),g(t[p]),g(o[p]),a,S);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}}}function W0(e,o,t){let r=q(e)??t,a=q(o);return r===void 0?a:a===void 0?r:r+a}function G0(e,o={}){return{top:W0(e.padTop,e.sectionPaddingTop,o.top),bottom:W0(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var aa={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Ga="padUnit";function Vl(e,o){let t=e[Ga],r=(a,n,s)=>{let l=q(a)??(s===void 0?void 0:H0(s,t,"desktop")),d=q(n);return d===void 0?l:(l??0)+H0(d,t,"desktop")};return{top:r(e.padTop,e.sectionPaddingTop,o.top),bottom:r(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function Sbe(e,o,t={}){let r=Vl(e,o),a={...cI(e,aa,!0,Ga),top:r.top,bottom:r.bottom};t.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let n=Kl(a),s=n?n.className.split(" ").filter(l=>l!==$0):[];return{...s.length?{className:s.join(" ")}:{},style:n?.style??{}}}var jl={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},dI=[...["top","bottom","left","right"].map(e=>[aa[e],jl[e]]),[Ga,U0]].flatMap(([e,o])=>[[e,o],...["tablet","mobile"].map(t=>[$a(e,t),$a(o,t)])]);function cI(e,o=jl,t=!0,r=o===jl?U0:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[$a(r,n)]!==void 0&&(a[$a("unit",n)]=e[$a(r,n)])}for(let n of t?["top","bottom","left","right"]:["top","bottom"]){a[n]=e[o[n]];for(let s of["tablet","mobile"])a[$a(n,s)]=e[$a(o[n],s)]}return a}function wbe(e){return Kl(e)}function Cbe(e,o){let t=(r,a)=>typeof r!="number"?void 0:If(a)==="px"?r+o:r;return Kl({...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 gf,buttonBorderOf as C$,buttonFillOpacityOf as v$,buttonPadSidesOf as k$,viewKeyAt as T$}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as fI,lengthOf as P$}from"efficient-easel/screen/lib/content/length-units";var E$="px-6 py-4",O$=4,bf=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(E$);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*O$},Rbe={top:bf("y"),right:bf("x"),bottom:bf("y"),left:bf("x")},K0="var(--btn)";function _$(e){let o=e.variant==="ghost",t=v$(e.buttonFillOpacity),r=C$(e.buttonBorder),a=Se(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":K0)},changed:t!==void 0||r!==void 0}}function Lbe(e){let o=_$(e);if(!o.changed)return null;let t=Se(e.buttonColor)??K0;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:P$(o.border.width,so(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var A$="var(--sf-button-radius, 0)";function Fbe(e){let o=q(e.buttonCorners),t=er(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?A$:He(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Fa(r,t)}}function Bbe(e){let o=(s,l)=>e[T$(s,l)],t=s=>k$({top:o(gf.top,s),right:o(gf.right,s),bottom:o(gf.bottom,s),left:o(gf.left,s)})??{},r={desktop:o(fI,"desktop"),tablet:o(fI,"tablet"),phone:o(fI,"mobile")},{classes:a,style:n}=iI(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var j0="upper";function V0(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)??j0;return`${l} \xB7 ${d[c]??d[j0]}`}import{usePreviewParts as Rj}from"efficient-easel/draw/client";import{encodePartId as Lj}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as Fj,useEaselStrings as Bj}from"efficient-easel/strings";import{PIN_STICK_VAR as R$,PIN_TRACK_POSITION_VAR as L$,pinAttrs as q0,pinStickVars as F$,readPin as mI}from"efficient-shell/format";var Ube="Stick to top",pt={min:0,max:200,step:4,fallback:0},ql={kind:"position",unitKey:"stickTopDistanceUnit"},Y0=Vn(ql),[B$,D$,N$]=Y0,hI="Pin while scrolling",X0="Scroll",Mt={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",stick:"--sf-pin-stick",trackPosition:"--sf-pin-track-position",header:"--sf-pin-header"},ja="stickTopScreens",M$=[ja,"stickTopScreensTablet","stickTopScreensPhone"],xI="Screens",II="stickTopStop",hs="screen",Z0="Pin stops at",J0=[{value:"header",label:"Under the header"},{value:hs,label:"Screen top"}],Q0="header",eE="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 gI(e){return e===hs?hs:"header"}function oE(e){return e===hs?hs:void 0}var Yl="stickAbove",tE="Stays above",rE="On: the pinned box stays on top, and the sections after it scroll under it.";function H$(e){return e.stickAbove===!0}var aE=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...Y0,...M$,II,Yl],zbe=new Set(["IntroBleed"]),$be=new Set(["CategoryBar","DocTabs","Contents"]);function W$(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var pI=e=>mI(!0,e).length,bI={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},nE={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function uI(e,o="px"){let t=q(e)??pt.fallback;return o!=="px"?Math.max(pt.min,t):Math.min(pt.max,Math.max(pt.min,Math.round(t)))}function yI(e){return typeof e.stickTopTablet=="boolean"}function SI(e){return typeof e.stickTopPhone=="boolean"}function xs(e,o={}){let t=o.intro?W$(e):e.stickTop===!0,r=e,a=so(r[B$]),n=uI(e.stickTopDistance,a),s=pI(e.stickTopScreens),l=yI(e),d=l?e.stickTopTablet===!0:t,c=l?so(r[D$]):a,f=l?uI(e.stickTopDistanceTablet,c):n,u=l?pI(e.stickTopScreensTablet):s,p=SI(e),h=p?e.stickTopPhone===!0:d,I=p?so(r[N$]):c,g=p?uI(e.stickTopDistancePhone,I):f,C=p?pI(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 Gbe(e,o={}){let t=xs(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&&H$(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,h,I)=>Ma({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,h,I).style,d={...o.atScreenTop||gI(e.stickTopStop)===hs?{[Mt.header]:"0px"}:{},[Mt.distance]:He(t.desktopDistance,t.desktopUnit),...l(Mt.distance,He(t.desktopDistance,t.desktopUnit),He(t.tabletDistance,t.tabletUnit),He(t.phoneDistance,t.phoneUnit))};if(s){let u=h=>h?"1":"0",p={...d,...t.desktop?{}:{[Mt.on]:"0"},...l(Mt.on,u(t.desktop),u(t.tablet),u(t.phone)),[Mt.length]:String(t.desktopScreens),...l(Mt.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...U$(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:q0(mI(!0),"track").attrs,style:p}}let c=u=>u?"sticky":"static",f={...d,...t.desktop?{}:{[Mt.position]:"static"},...l(Mt.position,c(t.desktop),c(t.tablet),c(t.phone))};return{attrs:q0(mI(!0),"stick",n?{above:n}:{}).attrs,style:f}}function U$(e,o,t,r){let a=[[Mt.stick,R$],[Mt.trackPosition,L$]],[n,s,l]=[e,o,t].map(F$);return Object.fromEntries(a.flatMap(([d,c])=>[...e?[[d,n[c]]]:[],...Object.entries(r(d,n[c],s[c],l[c]))]))}var z$=["column","row","tabs","accordion"];var $$={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},sE={Flex:z$,HeroGroup:["column","row"]},G$={Flex:"row",HeroGroup:"column"},j$={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Is(e,o){return sE[e].includes(o)?o:G$[e]}function Kbe(e,o){return j$[Is(e,o)]}function lE(e){return sE[e].map(o=>({label:$$[o],value:o}))}import{viewKeyAt as wI}from"efficient-easel/screen/lib/content/view-tiers";var Sf=20,K$=["solid","dashed","dotted"],wf=["top","right","bottom","left"],Xbe="sf-section-border",Zbe="sf-section-border-self",V$=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,q$=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Sf,Math.max(0,Math.round(e)))}px`:void 0,Xl={kind:"border",unitKey:"sectionBorderUnit"},dE=Vn(Xl);function Jbe(e){let o=Xl.unitKey;return{desktop:e[wI(o,"desktop")],tablet:e[wI(o,"tablet")],phone:e[wI(o,"mobile")]}}var iE=(e,o)=>o==="px"?q$(e):typeof e=="number"&&Number.isFinite(e)?He(Math.max(0,e),o):void 0;function yf(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=so(r);for(let l of wf){let d=iE(e[l],s)??iE(e.width,s);d!==void 0&&(n[`--sf-border-${l}-width${a}`]=d)}return typeof e.style=="string"&&K$.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&V$.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function CI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(wf.map(r=>[r,t[r]??o]))}}function Qbe(e,o,t,r={}){let a=yf(e,{unit:r.desktop}),n=yf(t,{tablet:!0,unit:r.tablet}),s=yf(t,{phone:!0,unit:r.tablet}),l=yf(o,{phone:!0,unit:r.phone}),d=s||l?{...s,...l}:void 0;return a||n||d?{...a,...n,...d}:void 0}var Cf="sf.gapContainer",Or={min:-32,max:64,step:2},xE={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},gs={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},Y$=new Set(["Events","GalleryB"]);function Ka(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Or.min)return o;if(typeof o=="string"){let r=xE[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:gs[e]}var X$="sf-gap-overlap",Z$="--sf-gap-overlap",vI="--sf-block-gap",cE="--sf-block-gap-rem",Er={min:0,max:Or.max,step:Or.step};function Zl(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Er.min),Er.max);return o-o%Er.step}function tye(e,o){let t=Aa(e,o,"gap",Er);if(t!==null)return{[vI]:t,[cE]:t};let r=Zl(e);return r===null?{}:{[vI]:`${r}px`,[cE]:`${r/16}rem`}}var fE="--sf-block-gap-phone",pE="--sf-block-gap-phone-rem",J$="--sf-block-gap-on-phone",Q$="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function rye(e,o){let t=Aa(e,o,"gap",Er);if(t!==null)return{[fE]:t,[pE]:t};let r=Zl(e);return r===null?{}:{[fE]:`${r}px`,[pE]:`${r/16}rem`}}function aye(e){return Zl(e)===null?"":Q$}var uE="sf-gap-zone",mE="--sf-gap-len";function vf(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Or.min?!0:typeof o=="string"&&typeof xE[e]?.[o]=="number"}var hE="--sf-gap-len-phone",eG="--sf-gap-len-tablet",Jl={min:0,max:Or.max,step:Or.step};function na(e){return typeof e=="number"&&Number.isFinite(e)&&e>=Jl.min}function kI(e){return e/2}function TI(e,o,t){return na(t)&&!vf(e,o)}function PI(e,o,t,r,a){return na(o)?o:TI(e,t,a)?a:kI(Ka(e,t,r))}var oG={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function nye(e,o,t,r,a){let n={...na(r)?{[hE]:`${r}px`}:null,...na(a)?{[eG]:`${a}px`}:null};if(!vf(e,o)){let l=`${gs[e]}px`,d=Y$.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${uE}`,style:{[mE]:`var(${vI}, ${d})`,[hE]:`var(${J$})`,...n}}}let s=Ka(e,o);return s>=0?{className:` ${uE}`,style:{[mE]:`${s}px`,...n}}:{className:` ${X$} ${oG[t]}`,style:{gap:"0px",[Z$]:`${-s/2}px`}}}import{parseHexColor as tG}from"efficient-shell/format";var Mo="var(--section-bg)",Ql="inherit";function ar(e,o){return e===Ql?Mo:e===void 0?o:kf(e)}var rG=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function kf(e){let o=tr(e);return o?vr(o):e.replace(rG,"var(--site-$1")}var aG={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function EI(e,o,t){let r=ar(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?tG(a):null;if(n)return n.toLowerCase();let s=aG[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var OI="transparent";function IE(e,o){let t=ar(e,o);return!t||t===OI?"none":t===Mo?"band":null}function gE(e,o,t=o){let r=n=>!n||n==="transparent",a=ar(e,o);return a===t||r(a)&&r(t)}var bE=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],yE={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},bs="var(--wheel-stage)",Tf="transparent",ei="inherit";function fye(e,o){return kf(_I(e,o))}function _I(e,o){return e===ei?bs:e==null?o:e===!0?bs:e===!1?Tf:e}function pye(e){return typeof e=="string"&&e!==ei?kf(e):bs}function uye(e){return e!==Tf&&e!=="none"&&e!==""}function SE(e,o){return e===ei||e===!0?!0:e==null?o===bs:!1}var wE="inherit",Pf="fixed",CE=e=>typeof e!="number"&&e!==Pf,nG="var(--sf-heading-max, 9999px)";function xye(e,o,t,r,a){if(typeof e=="number")return He(e,a);if(e===Pf)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${nG})`:n}var AI={kind:"fontSize",unitKey:"titleSizeUnit"},RI={kind:"fontSize",unitKey:"bodySizeUnit"},sG=["desktop","mobile"],vE=[AI,RI].flatMap(e=>Vn(e,sG));function LI(e){let o=(t,r)=>wv(e,t,r);return{titleDesktop:o(AI,"desktop"),titleMobile:o(AI,"mobile"),bodyDesktop:o(RI,"desktop"),bodyMobile:o(RI,"mobile")}}var lG=["page","full"],kE=["full","page"],Va={full:"Full",page:"Content"},FI="inherit",iG=e=>typeof e=="string"&&lG.includes(e),dG=e=>e===FI;function cG(e,o){return dG(e.widthMode)?{mode:"full",inherited:!0}:iG(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function Sye(e){return cG(e,"page").mode==="full"}var fG={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 wye(e){return Qe(fG,e)}var lo={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},Cye={kind:"size",unitKey:lo.contentMaxUnit};function pG(e){let o=e[lo.contentMaxUnit],t=so(o),r=e[lo.contentMax],a=t==="px"?F0(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=ys(e[lo.content])??(a===null?null:"content");return{background:ys(e[lo.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function vye(e){let o=pG(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function kye(e){return e.background!==null||e.content!==null}var Tye=e=>({[lo.background]:e}),Pye=e=>e==="full"?{[lo.content]:e,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0}:{[lo.content]:e},Eye=e=>({[lo.content]:"content",[lo.contentMax]:e}),Oye=e=>e==="background"?{[lo.background]:void 0}:{[lo.content]:void 0,[lo.contentMax]:void 0,[lo.contentMaxUnit]:void 0},TE="siteWidths",uG=e=>e==="full"||e==="content";function ys(e){return uG(e)?e:null}function PE(e,o){return{[TE]:{background:ys(e),content:ys(o)}}}function _ye(e){let o=e.editor?.metadata?.[TE];return{background:ys(o?.background),content:ys(o?.content)}}import{useEaselSession as Dj}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as Nj,describedAs as sa,group as Ut,iconOf as Cs,sharedStyleKinds as ii}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as rO,onDesktopWords as Ya,phoneTwinFields as jI,saidAlignmentGrid as Mj,useLengthUnit as Hj}from"efficient-easel/screen/lib/document/box-fields";import{createElement as ut}from"react";import{SettingsDefaultReset as mG,SettingsField as hG}from"efficient-easel/panel";import{boxFieldBuilders as xG,describedAs as IG,iconOf as gG,onDesktopWords as bG}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as yG}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as SG,Tooltip as wG,useShellStrings as CG}from"efficient-shell/ui";import{RotateIcon as vG}from"efficient-easel/icons";var EE=e=>i(e),oi=yG,So=xG(EE,{lengthUnits:oi}),Oo=So.slider,mt=So.select,ti=So.Segmented,Ss=So.segmented,Wye=So.alignmentField,Uye=So.alignmentFields,zye=So.blockAlignmentField,$ye=So.blockAlignmentFields,Gye=So.boxJustifyField,jye=So.boxAlignField,Kye=So.boxWrapField,OE=So.directionField,Ef=So.gapField,Vye=So.placementField,qye=So.PlacementGridView,Yye=So.positionFields,Of=So.sidesPaddingFields,ri=So.lengthUnitFields;function _E(e,o){return Oo("Angle",ut(vG),Kd.min,Kd.max,Kd.step,e,"\xB0",o)}var kG={width:"3.5rem",height:"2.75rem"};function BI({value:e}){return CG().iconNames[e]??e}function DI(e,o,t){return ut(wG,{content:t,className:"sf-pick-tip",children:ut("span",{className:"sf-pick"},ut("span",{className:"sf-pick-pic"},e),ut("span",{className:"sf-pick-cap"},o))})}function TG(e){let o=t=>t.label===void 0?ut(BI,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:DI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function AE(e,o){return ut("span",{className:"sf-pick"},ut("span",{className:"sf-pick-pic"},e),ut("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function RE(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",...IG({},{type:"radio",label:e,options:l}),options:l,render:d=>{let{value:c,onChange:f,field:u}=d,p=u?.options,h=TG(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,S=s(c)??g??s(C)??r,T=c!=null&&c!=="",y=g===void 0?void 0:t.find(b=>b.value===g);return ut(hG,{label:i(e),icon:gG(o),action:I?ut(mG,{words:le()?.panel,label:i(e),changed:T,detail:y?.label!==void 0?bG(EE,i(y.label),d.followsView):void 0,disabled:d.readOnly===!0,onReset:()=>f(void 0)}):void 0},ut(SG,{label:i(e),value:S,options:h,onChange:f,columns:a.columns,cell:a.cell??kG,tooltips:!1,disabled:d.readOnly===!0}))}}}import{VIEW_ABOVE as HI}from"efficient-easel/screen/lib/content/length-units";import{jsx as w,jsxs as be}from"react/jsx-runtime";import{NoSymbolIcon as BG}from"efficient-easel/icons";import{useId as DG}from"react";var PG="line",EG=[{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"}],NI={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},Jye=28,OG="-45deg",_G="color-mix(in oklab, var(--accent) 50%, var(--bg))";function AG(e){return e!=="line"&&e!=="none"}var RG={sm:24,md:48,lg:80},LG="md",FG=Object.keys(RG);function Qye(e){return io(FG,LG,e)}function eSe(e){return io(EG,PG,e)}function oSe(e){if(!AG(e))return null;let{ink:o,period:t}=NI[e];return`repeating-linear-gradient(${OG}, ${_G} 0 ${o}px, transparent ${o}px ${t}px)`}var tSe={kind:"border",unitKey:"thicknessUnit"},rSe={kind:"size",base:"%",unitKey:"lengthPctUnit"};var _f=44,MI=28;function me({children:e}){return w("svg",{width:_f,height:MI,viewBox:`0 0 ${_f} ${MI}`,"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})=>w("rect",{x:e,y:o,width:t,height:r,rx:r/2,stroke:"none",opacity:a?.45:1}),ve=({x:e,y:o,w:t,h:r})=>w("rect",{x:e,y:o,width:t,height:r,rx:2,fill:"none"}),Ht=({x:e,y:o})=>w("circle",{cx:e,cy:o,r:1.75,stroke:"none"}),_o=({x1:e,y1:o,x2:t,y2:r})=>w("line",{x1:e,y1:o,x2:t,y2:r});var dSe={bars:be(me,{children:[w(B,{x:8,y:14,w:5,t:10}),w(B,{x:16,y:8,w:5,t:16}),w(B,{x:24,y:18,w:5,t:6}),w(B,{x:32,y:11,w:5,t:13})]}),line:be(me,{children:[w("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),w(_o,{x1:6,y1:25,x2:38,y2:25})]}),donut:be(me,{children:[w("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),w("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function cSe(e){if(e==="none")return w("span",{style:{display:"flex",width:_f,height:MI,alignItems:"center",justifyContent:"center"},children:w(BG,{size:20})});if(e==="line")return w(me,{children:w(_o,{x1:4,y1:14,x2:40,y2:14})});let{ink:o,period:t}=NI[e],r=.4,a=[];for(let n=-12;n<_f;n+=t*r)a.push(w("polygon",{points:`${n},22 ${n+o*r},22 ${n+o*r+10},6 ${n+10},6`,stroke:"none"},n));return w(NG,{children:a})}function NG({children:e}){let o=`sf-div-${DG().replace(/[^\w-]/g,"")}`;return be(me,{children:[w("clipPath",{id:o,children:w("rect",{x:4,y:6,width:36,height:16,rx:2})}),w("g",{clipPath:`url(#${o})`,children:e})]})}var Af=({x:e,y:o,w:t,h:r})=>w("rect",{x:e,y:o,width:t,height:r,rx:2,stroke:"none",opacity:.3}),fSe={tabs:be(me,{children:[w(B,{x:5,y:10,w:9}),w(B,{x:18,y:10,w:9,faint:!0}),w(B,{x:31,y:10,w:9,faint:!0}),w(_o,{x1:4,y1:17,x2:40,y2:17}),w(B,{x:4,y:16,w:11,t:2})]}),largeTabs:be(me,{children:[w(_o,{x1:4,y1:5,x2:40,y2:5}),w(Ht,{x:7,y:10}),w(B,{x:11,y:9,w:16}),w(B,{x:31,y:9,w:9,faint:!0}),w(_o,{x1:4,y1:14,x2:40,y2:14}),w(Ht,{x:7,y:19}),w(B,{x:11,y:18,w:13,faint:!0}),w(B,{x:31,y:18,w:9,faint:!0}),w(_o,{x1:4,y1:23,x2:40,y2:23})]})},pSe={card:be(me,{children:[w(ve,{x:10,y:3,w:24,h:22}),w(Af,{x:12,y:5,w:20,h:10}),w(B,{x:13,y:18,w:16}),w(B,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:be(me,{children:[w(Af,{x:10,y:3,w:24,h:22}),w(ve,{x:10,y:3,w:24,h:22}),w(B,{x:13,y:17,w:16}),w(B,{x:13,y:21,w:11,t:1.5})]})},uSe={cards:be(me,{children:[w(ve,{x:3,y:5,w:11,h:18}),w(ve,{x:17,y:5,w:11,h:18}),w(ve,{x:31,y:5,w:11,h:18}),w(B,{x:5,y:9,w:7}),w(B,{x:19,y:9,w:7}),w(B,{x:33,y:9,w:7}),w(B,{x:5,y:13,w:5,t:1.5,faint:!0}),w(B,{x:19,y:13,w:5,t:1.5,faint:!0}),w(B,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":be(me,{children:[w("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"}),w(B,{x:5,y:18,w:7}),w(B,{x:19,y:18,w:7}),w(B,{x:33,y:18,w:7})]})},mSe={table:be(me,{children:[w(ve,{x:3,y:5,w:38,h:18}),w(_o,{x1:15.7,y1:5,x2:15.7,y2:23}),w(_o,{x1:28.3,y1:5,x2:28.3,y2:23}),w("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),w(B,{x:6,y:9,w:6,t:3}),w(B,{x:19,y:9,w:6,t:3}),w(B,{x:31,y:9,w:6,t:3}),w(B,{x:6,y:18,w:7,t:1.5,faint:!0}),w(B,{x:19,y:18,w:7,t:1.5,faint:!0}),w(B,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:be(me,{children:[w(_o,{x1:3,y1:7,x2:13,y2:7}),w(_o,{x1:17,y1:7,x2:27,y2:7}),w(_o,{x1:31,y1:7,x2:41,y2:7}),w(B,{x:3,y:11,w:6,t:3}),w(B,{x:17,y:11,w:6,t:3}),w(B,{x:31,y:11,w:6,t:3}),w(B,{x:3,y:17,w:8,t:1.5,faint:!0}),w(B,{x:17,y:17,w:8,t:1.5,faint:!0}),w(B,{x:31,y:17,w:8,t:1.5,faint:!0})]})},hSe={plain:be(me,{children:[w(B,{x:5,y:12,w:9,t:4}),w(B,{x:18,y:12,w:9,t:4}),w(B,{x:31,y:12,w:9,t:4})]}),cards:be(me,{children:[w(ve,{x:3,y:7,w:11,h:14}),w(ve,{x:17,y:7,w:11,h:14}),w(ve,{x:31,y:7,w:11,h:14}),w(B,{x:5,y:13,w:7}),w(B,{x:19,y:13,w:7}),w(B,{x:33,y:13,w:7})]}),marks:be(me,{children:[w(B,{x:8,y:12,w:6,t:4}),w(B,{x:17,y:12,w:6,t:4}),w(B,{x:26,y:12,w:6,t:4}),w(B,{x:35,y:12,w:3,t:4})]})},xSe={overlay:be(me,{children:[w(Af,{x:4,y:3,w:36,h:22}),w(ve,{x:4,y:3,w:36,h:22}),w(B,{x:8,y:15,w:18,t:3}),w(B,{x:8,y:20,w:12})]}),stacked:be(me,{children:[w(B,{x:4,y:3,w:18,t:3}),w(B,{x:4,y:8,w:12}),w(Af,{x:4,y:13,w:36,h:12}),w(ve,{x:4,y:13,w:36,h:12})]})},ISe={split:be(me,{children:[w(B,{x:4,y:6,w:12,t:3}),w(B,{x:4,y:11,w:9,faint:!0}),w(_o,{x1:20,y1:4,x2:20,y2:24}),w(B,{x:24,y:6,w:16}),w(B,{x:24,y:10,w:11,faint:!0}),w(B,{x:24,y:17,w:16}),w(B,{x:24,y:21,w:11,faint:!0})]}),spine:be(me,{children:[w(_o,{x1:9,y1:4,x2:9,y2:24}),w(Ht,{x:9,y:8}),w(B,{x:14,y:7,w:24}),w(Ht,{x:9,y:14}),w(B,{x:14,y:13,w:20}),w(Ht,{x:9,y:20}),w(B,{x:14,y:19,w:24})]}),alternating:be(me,{children:[w(_o,{x1:22,y1:4,x2:22,y2:24}),w(Ht,{x:22,y:8}),w(B,{x:4,y:7,w:14}),w(Ht,{x:22,y:14}),w(B,{x:26,y:13,w:14}),w(Ht,{x:22,y:20}),w(B,{x:4,y:19,w:14})]}),track:be(me,{children:[w(_o,{x1:4,y1:12,x2:40,y2:12}),w(Ht,{x:8,y:12}),w(Ht,{x:22,y:12}),w(Ht,{x:36,y:12}),w(B,{x:4,y:17,w:8}),w(B,{x:18,y:17,w:8}),w(B,{x:32,y:17,w:8}),w(B,{x:4,y:21,w:6,faint:!0}),w(B,{x:18,y:21,w:6,faint:!0}),w(B,{x:32,y:21,w:6,faint:!0})]})},gSe={standard:be(me,{children:[w(B,{x:4,y:5,w:10,t:1.5,faint:!0}),w(B,{x:4,y:10,w:28,t:4}),w(B,{x:4,y:18,w:34,faint:!0}),w(B,{x:4,y:22,w:24,faint:!0})]}),editorial:be(me,{children:[w(B,{x:4,y:5,w:5,t:1.5,faint:!0}),w(B,{x:4,y:10,w:20,t:5}),w(B,{x:28,y:11,w:12,faint:!0}),w(B,{x:28,y:15,w:9,faint:!0}),w(_o,{x1:4,y1:22,x2:40,y2:22})]}),simple:be(me,{children:[w(B,{x:4,y:8,w:10,t:1.5,faint:!0}),w(B,{x:4,y:13,w:26,t:4})]}),statement:be(me,{children:[w(B,{x:4,y:6,w:36,t:7}),w(B,{x:4,y:16,w:24,t:7})]}),natural:be(me,{children:[w(B,{x:4,y:8,w:22,t:3}),w(B,{x:4,y:15,w:34,faint:!0}),w(B,{x:4,y:19,w:28,faint:!0})]}),essay:be(me,{children:[w(B,{x:4,y:5,w:24,t:4}),w(B,{x:4,y:13,w:36,faint:!0}),w(B,{x:4,y:17,w:36,faint:!0}),w(B,{x:4,y:21,w:30,faint:!0})]})},bSe={"spec-card":be(me,{children:[w(ve,{x:4,y:3,w:36,h:22}),w(B,{x:8,y:7,w:14}),w(ve,{x:8,y:12,w:8,h:9}),w(ve,{x:18,y:12,w:8,h:9}),w(ve,{x:28,y:12,w:8,h:9})]}),fitment:be(me,{children:[w(ve,{x:4,y:4,w:10,h:5}),w(ve,{x:16,y:4,w:10,h:5}),w(ve,{x:28,y:4,w:10,h:5}),w(B,{x:4,y:14,w:34,faint:!0}),w(B,{x:4,y:18,w:34,faint:!0}),w(B,{x:4,y:22,w:34,faint:!0})]}),portal:be(me,{children:[w(ve,{x:4,y:3,w:36,h:22}),w(B,{x:8,y:7,w:10,t:4}),w(B,{x:8,y:14,w:16,faint:!0}),w(B,{x:26,y:18,w:10,t:4})]}),kanban:be(me,{children:[w(ve,{x:4,y:3,w:10,h:22}),w(ve,{x:17,y:3,w:10,h:22}),w(ve,{x:30,y:3,w:10,h:22}),w(B,{x:6,y:6,w:6,t:4}),w(B,{x:6,y:12,w:6,t:4}),w(B,{x:19,y:6,w:6,t:4}),w(B,{x:32,y:6,w:6,t:4}),w(B,{x:32,y:12,w:6,t:4})]}),claims:be(me,{children:[w(B,{x:4,y:5,w:12,faint:!0}),w(B,{x:20,y:4,w:18,t:4}),w(B,{x:4,y:12,w:12,faint:!0}),w(B,{x:20,y:11,w:10,t:4}),w(B,{x:4,y:19,w:12,faint:!0}),w(B,{x:20,y:18,w:14,t:4})]}),browser:be(me,{children:[w(ve,{x:4,y:3,w:36,h:22}),w(_o,{x1:4,y1:8,x2:40,y2:8}),w(B,{x:8,y:11,w:28,t:5,faint:!0}),w(ve,{x:8,y:18,w:8,h:4}),w(ve,{x:18,y:18,w:8,h:4}),w(ve,{x:28,y:18,w:8,h:4})]}),terminal:be(me,{children:[w(ve,{x:4,y:3,w:36,h:22}),w("polyline",{points:"8,9 11,11 8,13",fill:"none"}),w(B,{x:13,y:10,w:14}),w(B,{x:8,y:16,w:22,faint:!0}),w(B,{x:8,y:20,w:16,faint:!0})]})},ySe={width:"5.75rem",height:"3.75rem"},SSe={width:"8.5rem",height:"3.75rem"},wSe={columns:be(me,{children:[w(ve,{x:3,y:4,w:11,h:8}),w(ve,{x:17,y:4,w:11,h:8}),w(ve,{x:31,y:4,w:11,h:8}),w(B,{x:3,y:16,w:9}),w(B,{x:17,y:16,w:9}),w(B,{x:31,y:16,w:9}),w(B,{x:3,y:20,w:7,t:1.5,faint:!0}),w(B,{x:17,y:20,w:7,t:1.5,faint:!0}),w(B,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":be(me,{children:[w(ve,{x:6,y:3,w:14,h:9}),w(B,{x:24,y:5,w:14}),w(B,{x:24,y:9,w:10,t:1.5,faint:!0}),w(ve,{x:24,y:16,w:14,h:9}),w(B,{x:6,y:18,w:14}),w(B,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":be(me,{children:[w(ve,{x:24,y:3,w:14,h:9}),w(B,{x:6,y:5,w:14}),w(B,{x:6,y:9,w:10,t:1.5,faint:!0}),w(ve,{x:6,y:16,w:14,h:9}),w(B,{x:24,y:18,w:14}),w(B,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as uCe,SCALAR_TEXT_CONTROLS as mCe}from"efficient-easel/draw";function Xa(e,o){return i("{value} from {from}",{value:e,from:o})}function Wj(){let{blockGap:e}=ge();return e===null?i("this container's own spacing"):Xa(`${e}px`,i("Styles"))}function Uj({inherited:e,onReset:o,label:t}){return k(Ho,{words:le()?.panel,label:i(t),changed:!e,detail:Wj(),onReset:o})}function zj(e){return Ef({...Nj,builtIn:gs[e],resolve:(o,t)=>Ka(e,o,t?.siteGap),action:(o,t)=>k(Uj,{inherited:!vf(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Cf]:e}})}function $j(e){return eo(ht("mobile",{[Cf]:e,type:"custom",render:o=>k(Kj,{container:e,...o})}),aO)}function Gj(e){return eo(ht("tablet",{[Cf]:e,type:"custom",render:o=>k(jj,{container:e,...o})}),aO)}var aO={not:{field:"gap",in:Array.from({length:-Or.min},(e,o)=>Or.min+o)}};function nCe(e){return{gap:ht("desktop",zj(e)),[ZI("gap")]:Gj(e),[ws("gap")]:$j(e)}}function jj({container:e,...o}){let[t]=Wt("gap"),{siteGap:r}=o.field??{},a=Math.max(Jl.min,Ka(e,t,r));return Ef({...Jl,builtIn:a,resolve:n=>na(n)?n:a,action:(n,s)=>k(Ho,{words:le()?.panel,label:i("Gap"),changed:na(n),detail:Ya(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function Kj({container:e,...o}){let[t]=Wt("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=PI(e,void 0,t,r,a);return Ef({...Jl,builtIn:n,resolve:s=>PI(e,s,t,r,a),action:(s,l)=>k(Ho,{words:le()?.panel,label:i("Gap"),changed:na(s),detail:Xa(`${n}px`,TI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function sCe(e){return OE({offered:lE(e),fallback:Is(e,void 0),resolve:o=>Is(e,o)})}function lCe(e,o){return Xv(o?Qv(e,o):[],o)}function Vj({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}=la(e),f=ai(null),u=ai(null),p=T=>o(s?{text:T,hidden:c}:T),h=()=>o({text:d,hidden:!c}),I=s&&c,g=GE(),C=a?Jj(a)?k("span",{className:"sf-hint-while-typing",children:i(a)}):i(a):void 0,S=c?i("Show {label} on the slide",{label:i(t)}):i("Hide {label} on the slide",{label:i(t)});return k(uo,{label:i(t),icon:k(cj,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:C,action:s?k(XI,{content:S,children:k(oO,{"aria-pressed":c,"aria-label":S,onClick:h,children:c?k(NE,{name:"eye-off",size:14}):k(NE,{name:"eye",size:14})})}):void 0,children:_r("div",{className:"sf-copybox",children:[l&&k(Ox,{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 iCe(e,o){return{...e,[jG]:o}}function dCe(e){let o=e[Ar];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Ar]:{...o,offPage:!0}}}function Nf(e){return!e||typeof e!="object"?!1:e[Ar]?.offPage===!0}function cCe(e){if(!e[Ar])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Ax]:!0}}function nO(e){return ps(e)}function fCe(e){let o=e[Ar];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Ar]:{...o,identifier:!0}}}function hCe(e,o){if(!e[Ar])throw new Error("inOwnBox: the field holds no authored text");let{[Oj]:t,...r}=e;return{...r,[_x]:!0,render:o}}var qj=new Set(Aj),Bf={type:"radio",options:[{value:!0},{value:!1}]},sO={text:{type:"object",objectFields:{text:{type:"text"},hidden:Bf}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Bf}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Ja=(e,o)=>{let t=sa({...o,[Ar]:e},{...sO[e.control],label:e.label});if(!qj.has(e.control))return t;let r=o.render;return{...tO(t,"authored-copy"),render:a=>k(OP,{name:a.name,children:r(a)})}},xCe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",Yj={field:"source.slug",set:!0},ICe={not:Yj},Xj="Select a word, then press the highlighter.",Zj=new Set([Xj]),Jj=e=>Zj.has(e);function gCe(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 bCe(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 yCe(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 SCe(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 wCe(e){return{type:"custom",[$G]:{label:e},...sa({},{type:"text",label:e}),render:({value:o,onChange:t})=>k(E0,{value:zG(o),onChange:t,label:e})}}function CCe(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 lO={Design:KG,Animation:qG};function vCe(e,o){return{type:"custom",render:()=>k(Qj,{text:e,values:o})}}function Qj({text:e,values:o}){return k("p",{className:"sf-note",children:i(e,o)})}function kCe(e){return ia(e)!==null&&e?.tabs!==void 0}var ME=new Map;function Mf(e,o){let t=`${e}\0${o?o.join(""):""}`,r=ME.get(t)??{type:"custom",tabs:o,[jE]:{label:e,level:1},bucket:e,marker:!0,render:()=>k(Rr,{})};return ME.set(t,r),r}var HE=new Map;function QI(e){let o=HE.get(e)??{type:"custom",[jE]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>k(Rr,{})};return HE.set(e,o),o}function eK(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function iO(e,o){return eK(e)===o?e:{...e,marker:!0,fold:o,render:()=>k(Rr,{})}}function dO(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(Rr,{})}}function eg({title:e,children:o}){let[t,r]=ni(()=>!WI.has(e));return k(uj,{title:e,open:t,onToggle:a=>{r(a),a?WI.delete(e):WI.add(e)},children:o})}var WI=new Set;function oK({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 _r("div",{className:"sf-swatches",children:[e.map(l=>{let d=r?.[l]?i(r[l]):l;return k(XI,{content:d,children:k(Sj,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":d})},l)}),k("span",{className:"sf-swatch-hex",children:s})]})}function TCe(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}=sg(),d={background:s.background,surface:s.surface,surface2:ac(s),band:_v(s)},c=t?Mo:o,f=gE(n,o,c),u=EI(void 0,c,d),p=t?Ql:void 0,h=c===Mo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=rK(n,o,s,l,d,a),g=Xa(u.toUpperCase(),h),C=tr(n),S=C?ls(C,s,l):null;return S?k(qo,{label:i(e),icon:k(LE,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):k(Ml,{label:i(e),icon:k(LE,{}),value:f?"":EI(n,o,d),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function rK(e,o,t,r,a,n){let s=IE(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(OI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Mo)},...ng(tr(e)??"",t,r,n)]}function aK(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=SE(a,o);return k(uo,{label:i(e),icon:k($I,{}),changed:!n,action:k(Ho,{words:le()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(ei)}),children:oK({swatches:bE,current:n?bs:_I(a,o),onPick:r,names:yE})})}}}function Hf(e=t=>t,o){return ii({_gSectionTheme:Ut(Kv),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>k(o0,{value:e(t),onChange:r,followLabel:o})}})}function Wf(e){let o=Po(),t=Cr(e?.view),r=s=>JI(e.valueKey,s),a=e.numbersIn??(s=>q(o[r(s)])!==void 0),n=e.followsView??bK(t,a);return Hj({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:oi,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 Xo({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(Ej,{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 nK(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(uo,{label:i(e),icon:c?Cs(c):void 0,value:I?d||n===void 0?void 0:i(n):`${h}${f}`,changed:!I,action:d?KI(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}):Xo({min:t,max:r,step:a,value:h??t,readout:!1,ariaLabel:e,onChange:p})})}}}var si="Corners",sK={kind:"radius"};function og(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(uo,{label:i(si),icon:k(VE,{}),changed:n,action:KI(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:k(lK,{tier:e,px:a,name:o.name,onRadius:r})})}}}function Wt(e){let o=qa();return[o?.values?.[e],t=>o?.onChange(e,t)]}function cO(){return tO({type:"custom",render:()=>k(_j,{})},"always")}function ea(){let e=qa();return o=>e?.onChangeMany(o)}function lK({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=Wt(e.sidesKey),l=ea(),d=Wf({row:e.row??sK,label:si,grid:{min:Wo,max:jr,step:e.step??1},valueKey:t??"",view:"desktop"}),c=er(n)??[...Oc];return k(wj,{label:i(si),value:c,corners:dT,onChange:f=>{let u=er(f)??[];s(u.length===Oc.length?null:u)},radius:o,onRadiusChange:d&&t?f=>l({[t]:f,...d.unitPatch(f===null)}):r,radiusMin:d?.grid.min??Wo,radiusMax:d?.grid.max??jr,radiusStep:d?.grid.step??e.step??1,radiusPlaceholder:d&&d.unit!=="px"?"\u2013":String(a),...d?{radiusUnit:d.unit,units:d.units}:{}})}function fO(e,o){return ri(e,o)}function pO(){return cO()}function iK({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=ge(),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 dK(){let{cornerRadiusPx:e}=ge();return typeof e=="number"?e:Wo}function cK(){return og({sidesKey:"sectionCornerSides",row:_l,useFollowed:dK,mark:k(iK,{label:si}),hint:fK})}var fK="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function Uf(){return ii({_gShape:Ut("Shape"),sectionCorners:cK(),...fO(_l,"sectionCorners"),sectionCornerSides:pO(),...kr("sectionBorder",gK),...ri(Xl,"sectionBorder",{tablet:!0,phone:!0})})}var pK=()=>({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 uK(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=ho(ge().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||kv.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]=ni(()=>a?gj(d,s):!1),u=pK(),p=h=>uK(a&&n?h:{width:h.width,color:h.color,...n?{style:h.style}:{}});return k(uo,{label:i("Border"),icon:k(YG,{}),action:a?k(xj,{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??Sf,...l?{step:l.grid.step,units:l.units}:{}})})}function xK({value:e,onChange:o,view:t}){let[r]=Wt("sectionBorder"),[a]=Wt(ZI("sectionBorder")),n=mK(),s=p=>p&&typeof p=="object"?p:{},l=t==="phone"?{...CI(s(r)),...CI(s(a))}:t==="tablet"?s(r):{},d=Po(),c=ea(),f=we("sectionBorder",t),u=Wf({row:Xl,label:"Border",grid:{min:0,max:Sf,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>UI(d[JI("sectionBorder",p)]),convertTo:p=>{let h=s(d[f]);return UI(h)?{[f]:IK(h,p)}:{}}});return k(hK,{value:e,length:u,onChange:u?p=>c({[f]:p,...u.unitPatch(!UI(p))}):o,placeholder:{sides:Ij(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}var uO=["width",...wf];function UI(e){if(!e||typeof e!="object")return!1;let o=e;return uO.some(t=>q(o[t])!==void 0)}function IK(e,o){let t={...e};for(let r of uO){let a=q(t[r]);a!==void 0&&(t[r]=o(a))}return t}function gK(e){return{type:"custom",render:({value:o,onChange:t})=>k(xK,{value:o,onChange:t,view:e})}}function bK(e,o){let t=HI[e];for(;t&&HI[t]!==null&&!o(t);)t=HI[t];return t??e}function PCe(e){return{type:"custom",render:()=>k(yK,{partKey:e})}}function yK({partKey:e}){let[o]=Wt("id"),[t]=Wt("_partStyles"),{textStyles:r}=ge(),a=Bj(),n=null;try{n=Rj().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return k(pj,{name:i("Text"),preview:V0(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??Fj.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(Lj(o,e))}})}function mO(e){let{cornerRadiusPx:o}=ge(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=Df(d=>d),l=s?.props?.id?String(s.props.id):void 0;r=l?fP(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return Jh(a)?a:t}function SK({label:e,changed:o=!1,onReset:t=()=>{}}){let r=mO(Wo);return k(Ho,{words:le()?.panel,label:i(e),changed:o,detail:Xa(`${r}px`,i("the section")),onReset:t})}function wK(){return k(Rr,{children:i("Follows the section's Corners until you set a number here.")})}function CK(){return og({sidesKey:"cardCornerSides",row:Al,useFollowed:()=>mO(Wo),mark:k(SK,{label:si}),hint:k(wK,{})})}function vK(){return{type:"custom",render:()=>k(xT,{})}}function ECe(){return{_gShape:Ut("Shape"),cardCorners:CK(),...fO(Al,"cardCorners"),cardCornerSides:pO(),cardCornersApplyAll:vK()}}function kK(){return sa({type:"custom",render:e=>k(PK,{...e})},{type:"select",label:Oa,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function TK(e,o){let t=sh(e);if(t!=="custom")return i(nh.find(a=>a.value===t)?.label??"");let r=eO(Zd(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function PK(e){let{value:o,onChange:t}=e,[r]=Wt("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,l=s?o:n?e.follows:void 0,d=sh(l),c=a>=2&&a<=BE,f=()=>[...kj[a]??[]],u=ai(null),p=S=>{let T=u.current;T&&JSON.stringify(S)===JSON.stringify(T.shares)?t(T.value):S&&t(S)},h=S=>{S===d||S==="custom"&&!c||t(S==="custom"?f():S)},I=i("The width bar works for 2 to {count} blocks.",{count:BE}),g=s&&(n||o!=="content"),C=Pj().widths.hint(a,vj);return k(uo,{label:i(Oa),icon:k(VI,{}),changed:g,hint:d!=="custom"?void 0:c?C:I,action:k(Ho,{words:le()?.panel,label:i(Oa),changed:g,disabled:e.readOnly===!0,detail:n?Ya(S=>i(S),TK(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:_r("div",{className:"sf-share-row",children:[k("div",{className:"sf-share-pick",children:k(QE,{label:i(Oa),value:d,options:nh.map(S=>({value:S.value,label:S.value==="custom"&&!c?I:i(S.label),icon:DI(k("span",{className:"sf-gallery-pic sf-share-pic",children:hO(S.weights).map((T,y)=>k("i",{style:{gridColumn:`span ${T}`}},y))}),i(S.label),S.value==="custom"&&!c?I:i(S.label))})),onChange:h,columns:3,cell:xO,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&c?k("div",{onFocus:()=>{u.current={value:o,shares:eO(Zd(l,a),a)}},onBlur:()=>{u.current=null},children:k(Tj,{label:i(Oa),count:a,value:Zd(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function hO(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 OCe(){return mt(KC,k(tj,{}),dh,dh[0].value)}function _Ce(){return ht("mobile",RE(Oa,k(VI,{}),$C.map(e=>({label:e.label,value:e.value,picture:k("span",{className:"sf-gallery-pic sf-share-pic",children:hO(e.weights).map((o,t)=>k("i",{style:{gridColumn:`span ${o}`}},t))})})),GC,{columns:2,cell:xO}))}var xO={width:"5.75rem",height:"3.25rem"};function ACe(){return jI("share",kK(),rO)[ZI("share")]}function EK(){return ht("mobile",Oo(lh,k(KE,{}),Jd,zC,1,Jd,"",{clear:{phoneFollows:!1,hint:Jd}}))}var WE={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function RCe(){let e=Oo(lh,k(KE,{}),ih,jC,1,ih,"",{clear:{emptyLabel:"Auto"}}),o=jI("columns",e,{...WE,tablet:rO.tablet}),t=jI("columns",e,WE,{phoneRow:EK()});return{...o,phoneRow:t.phoneRow}}function LCe(e,o,t,r,a,n,s){return{type:"custom",render:({value:l,onChange:d,name:c})=>k(OK,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:l,onChange:d,name:c??"",length:s})}}function OK({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:l,name:d,length:c}){let f=Po(),u=ea(),p=Cr(c?.view),h=Wf({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(uo,{label:i(e),icon:k(xx,{noun:n}),action:k(Ho,{words:le()?.panel,label:i(e),changed:!CE(s),detail:i("the Text style in Styles"),onReset:()=>I(wE),defaultAction:{onPress:()=>I(Pf),title:i("Keep this section's own built-in size"),icon:k(XG,{})}}),children:Xo({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 FCe(){return{_gCellWidth:Ut("Cell width"),gridSpan:mt("Positions",k(VI,{}),[{label:"Auto",value:""},...Array.from({length:Lc},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function Po(){let e=null,o=null;try{e=$E(tg),o=Df(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var tg=HG(null);function _K({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let d=Po()[s],c=Xc(void 0,d,l);return k(Rr,{children:Xo({min:e,max:o,step:t,value:Xc(r,d,l),readout:!1,ariaLabel:a,notch:c,onChange:n})})}function AK({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=Po()[o],l=Xc(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 RK(e){return nK(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:k(AK,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>k(_K,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var LK={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},FK={Top:qI,Bottom:YE,Left:XE,Right:ZE},BK=e=>{let o=FK[e];return k(o,{})};function BCe(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=C=>LK[C],n=C=>Oo(a("Top"),k(qI,{}),ft.min,ft.max,ft.step,C,"px"),s=(C,S,T,y=ft)=>ht("mobile",RK({label:a(C),icon:BK(C),desktopKey:S,min:y.min,max:y.max,step:y.step,fallback:T})),l=e.top??ft.min,d=e.bottom??ft.min,c="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??ft,p=e.side??u.min,h=e.sidePhone??p,I=e.phone===!0,g=C=>I?ht("desktop",C):C;return ii({...r?{_gSpacing:Ut("Padding")}:{},[o]:g(n(l)),...I?{[ws(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(Oo(a("Bottom"),k(YE,{}),ft.min,ft.max,ft.step,d,"px")),...I?{[ws(t)]:s("Bottom",t,d)}:{}},...e.sides?{[c]:g(Oo(a("Left"),k(XE,{}),u.min,u.max,u.step,p,"px")),...I?{[ws(c)]:s("Left",c,h,u)}:{},[f]:g(Oo(a("Right"),k(ZE,{}),u.min,u.max,u.step,p,"px")),...I?{[ws(f)]:s("Right",f,h,u)}:{}}:{}})}function DCe(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&ia(s)?e[n]:s])),r={},a=!1;for(let[n,s]of Object.entries(e)){if(n in o){a||Object.assign(r,t),a=!0;continue}r[n]=s}return a||Object.assign(r,t),r}var Lf="Width";function zf(e,o=kE,t=!0){let r=o.map(a=>({label:Va[a],value:a}));return ii({...t?{_gWidth:Ut(Lf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>k(uo,{label:i(Lf),icon:k(fj,{}),action:t?k(Vj,{inherited:n?.inherited??!1,onReset:()=>a(FI),label:Lf}):void 0,children:ti({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:Lf})})}})}function $f({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:l})=>k(DK,{value:s,onChange:l,view:a,badge:n,fill:e})}),t=()=>GI("sectionHeightMode"),r=()=>GI("sectionHeightMode");return ii({_gHeight:Ut(Qn),...kr("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>k(WK,{view:a,onClear:()=>n(void 0)}))),...kr("sectionHeightValue",t),...kr("sectionHeightUnit",r)})}function DK({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=Po(),{mode:s,number:l,unit:d}=NK(t,n,e);return k(uo,{label:Qn,icon:Cs(k(qE,{})),action:r?r(o):void 0,children:_r("div",{className:"es-width-stack",children:[ti({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(HK,{view:t,mode:s,menu:d}):null]})})}function IO(e,o){return e==="phone"&&fc(o)?ck(o):ik(o)}function Gf(e,o){return e==="desktop"||(e==="tablet"?fc(o):dk(o))?null:IO(e,o)}function NK(e,o,t){let r=(a=>nk.includes(a))(t)?t:Gf(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function MK(e,o,t,r){let a=Gf(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 UE(e,o,t){let r=qa(),a=Gf(e,Po());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=MK(e,s,o,n);return l===null?{[we(o,e)]:n}:Object.keys(l).length?l:null})}}function HK({view:e,mode:o,menu:t}){let r=qa(),a=Po(),n=we("sectionHeightValue",e),s=we("sectionHeightUnit",e),l=C=>S=>r?.onChangeMany(()=>({[C]:S})),{followed:d,write:c}=UE(e,"sectionHeightValue",l(n)),{write:f}=UE(e,"sectionHeightUnit",l(s)),u=o==="screen"?"%":a[s],p=(d?d.unit:u)==="%"?"%":"px",h=p==="%"?lk:sk,I=a[n],g=t?{options:["px","%"],label:i("Unit"),onChange:C=>f(C)}:void 0;return Xo({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 WK({view:e,onClear:o}){let t=Po(),r=Gf(e,t)===null,a=e==="phone"&&fc(t),n=IO(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 rg(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:d,name:c})=>k(VK,{value:s,onChange:l,labelId:`${d??c??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>k(GK,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>k(jK,{value:s,onChange:l,view:n,intro:o})});return{_gStick:Ut(X0,{dot:o?$K:bI}),...kr("stickTop",t),...kr("stickTopDistance",r),...ri(ql,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?kr(ja,a):{},...o?{}:{[II]:UK()},...o||e.above===!1?{}:{[Yl]:zK()}}}function UK(){let e=mt(Z0,k(qI,{}),J0,Q0);return ht("desktop",{...e,render:o=>{let t=e.render({...o,value:gI(o.value),onChange:r=>o.onChange(oE(r))});return KI(t,{hint:i(eE)})}})}function zK(){let e=bO(tE,!1,k(JE,{}),rE);return ht("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var $K={any:[bI,nE]};function gO(e,o,t,r,a){let n=qa(),s=Po(),l=e==="desktop"||li(e,s)?null:ag(e,xs(s,{intro:r}));return{followed:l,write:(l||a)&&n?d=>n.onChangeMany(c=>{let f=KK(e,c,d,o,r),u=f===null?{[we(o,e)]:d}:f;return Object.keys(u).length?{...u,...a?.(d)??{}}:null}):t}}function GK({value:e,onChange:o,view:t,intro:r}){let a=Po(),n=xs(a,{intro:r}),s=f=>{let u=sc(f);return u==="desktop"||li(u,a)},l=Wf({row:ql,label:"Distance from top",grid:{min:pt.min,max:pt.max,step:pt.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&q(a[JI("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:d,write:c}=gO(t,"stickTopDistance",o,r,l?f=>l.unitPatch(f===void 0):void 0);return k("div",{className:"sf-field",children:Xo({min:l?.grid.min??pt.min,max:l?.grid.max??pt.max,step:l?.grid.step??pt.step,value:d?null:typeof e=="number"?e:pt.fallback,...d?{placeholder:d.distance}:{},...l?{suffix:l.unit,units:l.units}:{suffix:"px"},ariaLabel:i("Distance from top"),onChange:c})})}function jK({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=gO(t,ja,o,r);return k(uo,{label:i(xI),icon:Cs(k(qE,{})),children:Xo({min:Rf.min,max:Rf.max,step:Rf.step,value:a?null:q(e)??Rf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(xI),onChange:n})})}function li(e,o){return e==="tablet"?yI(o):SI(o)}function ag(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 KK(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||li(e,o))return null;if(t===void 0)return{};let n=ag(e,xs(o,{intro:a})),s=e==="phone"&&li("tablet",o)?f=>we(f,"tablet"):f=>f,l=(f,u)=>o[s(f)]==null?{}:{[we(f,e)]:u},d=ql.unitKey,c=o[s(d)]==null?{}:{[we(d,e)]:n.unit};return{[we("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...c,...l(ja,n.screens),[we(r,e)]:t}}function VK({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=Po(),s=xs(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:ag(r,s),f=c?.on?He(c.distance,c.unit):i("Off");return k(uo,{label:i(hI),labelId:t,icon:Cs(k(JE,{})),action:_r(Rr,{children:[r!=="desktop"?k(Ho,{words:le()?.panel,label:i(hI),changed:li(r,n),detail:Ya(u=>i(u),f,d?"tablet":"desktop"),onReset:()=>o(void 0)}):null,k(YI,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var zE="e.g. about";function jf(){return{_gAnchor:Ut("Anchor"),anchor:Ja({control:"plainText",label:"Name",placeholder:zE},{type:"custom",render:({value:e,onChange:o})=>k(YT,{value:e,onChange:o,nameBox:(t,r)=>k(Za,{value:t,onChange:r,label:"Name",placeholder:zE,hideable:!1,markup:!1})})})}}function NCe(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(uo,{label:i(e),icon:o,htmlFor:l,hint:t===void 0?void 0:i(t),children:k(Cj,{id:l,value:Number.isFinite(d)?new Date(d):null,onChange:c=>a(c?c.toISOString():"")})})}}}function bO(e,o,t,r){return{type:"custom",...sa({},{...Bf,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(YI,{checked:h,onChange:s,disabled:g,ariaLabelledBy:I});return k(uo,{label:i(e),labelId:I,icon:t,hint:r===void 0?void 0:i(r),action:c?_r(Rr,{children:[k(Ho,{words:le()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):Ya(S=>i(S),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),C]}):C})}}}function yO(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return k(qK,{label:"Background",icon:k(lj,{}),id:a,value:e,shown:bx(e),onChange:o})}}}function MCe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>k(qo,{label:i(e),icon:t,value:r||o,onChange:a})}}function qK({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=sg(),d=tr(r),c=d?ls(d,s,l):null;return k(qo,{label:i(e),icon:o,id:t,value:c?c.hex:a,caption:c?.words,onChange:n,choices:ng(d??"",s,l,n)})}function HCe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return k(YK,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function ng(e,o,t,r){let a=Gc(e);return eP(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function YK({value:e,onChange:o,twin:t}){let{colors:r,n:a}=sg(),n=r.background,s=Xa(n.toUpperCase(),i("Theme {n} background",{n:a})),[l,d]=Wt(cP),[c]=Wt(wx),f=typeof c=="string"&&c.trim()!=="",u=zc(l),p=b=>d(zc(b)||void 0),h=Gc(e),I=h?ls(h,r,a):null,g=ng(e,r,a,o),C=t?()=>o(void 0):()=>o(""),S=n,T=s;if(t){let b=Gc(t.follows),P=$c(t.follows),H=b?ls(b,r,a):P?{hex:P,words:P.toUpperCase()}:null;S=H?.hex??n,T=Ya(E=>i(E),H?H.words:s,t.view)}let y=!t&&(Dl(e)||f)?k(XK,{value:u,onChange:p}):null;return I?k(qo,{label:i("Fill"),icon:k($I,{}),value:I.hex,caption:I.words,onChange:o,changed:!0,onReset:C,resetTo:T,choices:g,children:y}):k(Ml,{label:i("Fill"),icon:k($I,{}),value:e,inherited:S,resetTo:T,onChange:o,onReset:C,choices:g,children:y})}function XK({value:e,onChange:o}){return ti({options:Uc.map(t=>({label:t.label,value:t.value,hint:t.hint})),value:e,onChange:o,ariaLabel:i("Fill")})}function ZK(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Qt(t);let r=pP(e,o);if(r.length===0)return null;let a=Qt(Th(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Qt(Th(r[n].sectionAccent));if(s!==null)return s}return Qt(r[0].sectionAccent)}function sg(){let e=ho(ge().theme),[o]=Wt("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=Df(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?ZK(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:Ko(e.themes[r]),n:r+1}}function WCe(){return cO()}var SO={top:k(ej,{}),right:k(QG,{}),bottom:k(ZG,{}),left:k(JG,{})};function wO(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(uo,{label:i(e),icon:a,value:l(h)?.label?i(l(h).label):s?i(s):"",children:Mj(i,{label:e,value:h,onChange:p,points:f})})}}}function UCe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>k(MP,{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 zCe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return k(e,{...a})}}}var $Ce=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function GCe(e,o,t){let r=Object.keys($h).map(a=>({label:$h[a],value:a,picture:t[a]}));return{type:"custom",...sa({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>k(QK,{label:e,icon:o,options:r,onChange:a})}}function JK(e,o,t){let r=zk(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=Uk(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 QK({label:e,icon:o,options:t,onChange:r}){let a=qa(),n=a?.values??{},s=Pl(n),l=$E(UG),d=Ec(l?.docId??null),c=null;try{c=Df(u=>u.appState.data)}catch{c=null}let f=lT(a?.id,c,d);return k(uo,{label:i(e),icon:Cs(o),hint:JK(n,f,l?.hasUnsavedEdits??!1),children:ti({options:t,value:s,onChange:r,ariaLabel:e})})}function jCe(e,o,t,r={}){let a={type:"custom",[GG]:!0,render:({value:n,onChange:s,name:l})=>k(DP,{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?ht("each",a):a}function e8(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 KCe({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=!!oo(Dj()).geocode,c=GE(),f=(u,p)=>o({...r,[u]:p??void 0});return _r(Rr,{children:[k(uo,{label:i(t),icon:k(FE,{}),action:d?k(XI,{content:i("Find from the address (OpenStreetMap)"),children:k(oO,{"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(ij,{})})}):void 0,children:d&&r.status?k(XT,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(Tx):i(r.status),hint:e8(r)}):null}),k(uo,{label:i("Enter by hand"),labelId:c,icon:k(oj,{}),action:k(YI,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:c})}),r.manual&&k(uo,{label:i("Latitude, longitude"),icon:k(FE,{}),children:_r("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[k(DE,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),k(DE,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function o8(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 r8(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 lg={label:"Ticker items",icon:k(sj,{})};function VCe(e,o,t,r){return{type:"custom",[Ar]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...sa({},{...sO.textList,label:e}),render:({value:a,onChange:n})=>k(ig,{label:e,icon:Cs(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function ig({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=ai(null),[l,d]=ni(null),c=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=r8(t,u,l);p===null&&(s.current=null),d(p),a(c(u))};return k(bj,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?k(Ox,{target:s,value:o8(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 CO(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 vO(e){return{_gCards:Ut("Cards"),coverIndex:mt("Cover image",k(nj,{}),LP,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:aK("Image background",Tf),cardImage:TO()}}function qCe(){return{outline:mt("Card outline",k(dj,{}),RP,AP),indexBadge:mt("Card number",k(aj,{}),Bx,Fx),showBadge:bO("Product badge",!0,k(xx,{noun:"tag"}))}}function kO(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...Bf,label:Ff.find(n=>n.id===a).label}),r=a=>sa(GI(zI),t(a));return{_gShowOnCard:Ut("Show on a card"),[zI]:sa({type:"custom",render:()=>k(a8,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(zI)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var zI="showCardPrice",Ff=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function a8({rest:e}){let o=Po(),t=ea(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Ff.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return k(vs,{parts:Ff,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(Ff.map(({id:s})=>[s,void 0])))})}function YCe(e,o="display"){let t=ws(o);return{[o]:ht("desktop",{type:"custom",render:({value:r,onChange:a})=>k(vs,{parts:e,changed:xP(r),shown:n=>Vc(r,n),onPress:(n,s)=>a(gP(r,n,s)),onReset:()=>a(void 0)})}),[t]:ht("mobile",{type:"custom",render:({value:r,onChange:a})=>k(n8,{parts:e,desktopKey:o,value:r,onChange:a})})}}function vs({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let l=i("Display");return k(uo,{label:l,icon:k(VG,{}),changed:o,action:k(Ho,{words:le()?.panel,label:l,changed:o,detail:n,onReset:a}),children:k(yj,{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 n8({parts:e,desktopKey:o,value:t,onChange:r}){let a=Po()[o];return k(vs,{parts:e,changed:IP(t),shown:n=>kx(a,t,n),onPress:(n,s)=>r(bP(t,n,s)),onReset:()=>r(Zc),detail:i("the same as Desktop")})}function TO(e=OT){return Oo("Card image",k(VE,{}),Wo,jr,ET,Wo,e,{clear:{hint:Wo},hint:"Rounds the picture. The card's own corner is in Styles."})}function s8(){return ri(dx,"cardImage")}function XCe(){return{cardImage:TO(dx),...s8()}}function ZCe(){return og({sidesKey:"cornerSides",row:_T,step:AT,useFollowed:()=>Wo,mark:k(l8,{label:RT}),hint:i("Rounds the picture. Left alone it stays square.")})}function l8({label:e,changed:o=!1,onReset:t=()=>{}}){return k(Ho,{words:le()?.panel,label:i(e),changed:o,onReset:t})}function JCe(){return{type:"custom",render:({value:e,onChange:o})=>k(f8,{value:typeof e=="string"?e:"",onChange:o})}}function i8({layout:e,width:o}){let t=ux(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:MT(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 d8={width:"3.5rem",height:"2.5rem"},c8=200;function f8({value:e,onChange:o}){let[t,r]=ni(null),[a,n]=ni(4),s=ai(null);WG(()=>{let h=s.current;if(!h||typeof ResizeObserver!="function")return;let I=()=>n(h.getBoundingClientRect().width>=c8?4:3);I();let g=new ResizeObserver(I);return g.observe(h),()=>g.disconnect()},[]);let l=e?j(Xr,e):void 0,d=l?e:"",c=px(t,d),f=px(t,"").length,u=Fc("no-symbol"),p=[{value:"",label:i("Not chosen"),icon:AE(u,i("Not chosen"))},...c.map(h=>({value:h,label:i(Xr[h].label),icon:k(i8,{layout:Xr[h],width:40})}))];return k(uo,{label:i("Layout"),icon:k(rj,{}),value:l?i(l.label):void 0,children:k("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:k(QE,{label:i("Layout"),value:d,options:p,onChange:o,columns:a,cell:d8,header:_r("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")},...BT.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:fx.length})})]})})})})}import{decodePartId as O8}from"efficient-easel/draw";import{decodePartId as pg,encodePartId as Xf}from"efficient-easel/draw";import{LINK_FIELD_MARKER as DO,SCAFFOLD_FIELD_MARKER as FO,TEXT_FIELD_MARKER as Zf}from"efficient-easel/draw";import{readHidable as NO}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as g8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as I8}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as PO}from"efficient-easel/draw";import{readHidable as EO}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as p8}from"efficient-easel/draw";var u8=p8,m8=["text","textarea"],h8=["textarea","plainTextarea"];function x8(e){return!e||typeof e!="object"?null:e[PO]?.control??null}function ks(e){let o=x8(e);return o&&u8.includes(o)?o:null}function Kf(e){return h8.includes(e)}function OO(e){return!e||typeof e!="object"?void 0:e[PO]?.placeholder}function Vf(e){return EO(e).text}function dg(e,o,t){return m8.includes(e)?{text:t,hidden:EO(o).hidden}:t}function _O(e,o,t,r){return Vf(e[o])===r?null:{...e,[o]:dg(t,e[o],r)}}function Ts(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function zt(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 qf(e){if(!(!e||typeof e!="object"))return e[I8]}function cg(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function AO(e,o){if(!Array.isArray(o))return[];let t=qf(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=cg(e);return a?(o.forEach((n,s)=>{for(let[l,d]of Object.entries(a)){if(!ks(d))continue;let c=Vf(n?.[l])||qf(d)?.placeholder||"";c&&r.push({row:{index:s,rowKey:l},text:c})}}),r):[]}function di(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function fg(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 RO(e,o,t,r,a){let n=di(e[o],t);return Vf(n)===a?null:fg(e,o,t,dg(r,n,a))}function LO(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var $t="data-sf-part",yve="data-sf-region-part",Sve="data-sf-part-row";function wve(e,o){return`${e}[${o}]`}var Cve="data-sf-part-kind",b8="data-sf-part-style-owner",y8="data-sf-part-style-kind";function vve(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(b8),r=o.getAttribute(y8);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var BO=2;function Ps(e){return gr(e).replace(/\s+/gu,"")}function Yf(e,o,t){let r=e[Zf];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}=NO(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[DO]){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))Yf(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))Yf(n,o[a],t)}}function ug(e){if(!e||typeof e!="object")return!1;let o=e;return o[DO]?!1:!!o[Zf]||o.type==="text"||o.type==="textarea"}function Jf(e,o){let t=e[Zf];return t?.label?t.label:typeof e.label=="string"?e.label:o}function mg(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function kve(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Hl(a))continue;let s=n,l=[];Yf(s,o?.[a],l),!l.length&&s[FO]!==void 0&&Yf(s,s[FO],l);let d=Jf(s,a);if(t?.(a)&&ug(s)){l.length&&r.push({key:a,label:d,texts:[],keyed:!0});continue}let c=new Set;for(let{row:p,text:h}of AO(s,o?.[a])){let I=Ps(h);I.length<BO||(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=Ps(p);h.length<BO||f.has(h)||(f.add(h),u.push(h))}u.length&&r.push({key:a,label:d,texts:u})}return r}function hg(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var S8=g8;function MO(e,o){if(!o||typeof o!="object"||Hl(e)||vP(o))return null;let t=o[Zf];return!t||!S8.includes(t.control)?null:t}function Tve(e,o){let t=MO(e,o);return t!==null&&t.identifier!==!0}function HO(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=MO(r,a);if(!n)continue;let{text:s,hidden:l}=NO(o?.[r]);if(hg({offPage:n.offPage===!0,hidden:!!l,panelOnly:ps(a)}))continue;let d=s||n.placeholder||"",c=gr(d).replace(/\s+/gu," ").trim();t.push({key:r,label:mg(Jf(a,r)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function Es(e,o){let t=qf(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?CO(t,o.index):null:cg(e)?.[o.rowKey]??null}function Qf(e,o,t){let r=e.node.props,{key:a,row:n}=zt(e.propKey),s=n?RO(r,a,n,e.kind,o):_O(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as $O}from"efficient-easel/draw";import{isNodeList as w8}from"efficient-easel/data";var xg=e=>String(e+1).padStart(2,"0"),Fve=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],Ig="two-digit",WO=e=>e==="plain"?"plain":Ig,ep=(e,o)=>e==="plain"?`${o+1}.`:xg(o);var bg="Contents",gg="Flex",UO="Text",C8="numberForm",jve="_contentsEntries",Kve="_kickerNumber",GO="data-sf-kicker-number",v8=e=>$O(e).text.trim(),jO=e=>Bc(e?.anchor),zO=e=>String(e.props?.id??""),k8=e=>!$O(e.props?.text).hidden&&!rs(e.props)&&!Xt(e.props);function ci(e){return Object.values(e.props??{}).filter(w8)}function KO(e){for(let o of ci(e))for(let t of o){if(Nl(t.props??{}))continue;if(t.type===UO&&k8(t))return t;if(t.type===UO)continue;let r=KO(t);if(r)return r}}function VO(e){return ci(e).some(o=>o.some(t=>t&&!Nl(t.props??{})&&(t.type===bg||VO(t))))}var qO=e=>e.type===gg&&Is(gg,e.props?.direction)==="row";function YO(e){return ci(e).some(o=>o.some(t=>t&&!Nl(t.props??{})&&(t.type===bg||!qO(t)&&YO(t))))}function T8(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Nl(n.props??{}))continue;if(n.type===bg){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(qO(n)&&YO(n)){let l={inRow:!0,open:null,waiting:[]};for(let d of ci(n))t(d,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===gg&&jO(n.props)&&s&&!VO(n)){s.push({box:n,kicker:KO(n)});continue}for(let l of ci(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function P8(e){return e.map(o=>({label:o.kicker?gr(v8(o.kicker.props?.text)):"",anchor:jO(o.box.props)}))}function Vve(e){let o=e?.length?T8(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=zO(a.contents);n&&t.set(n,P8(a.sections));let s=WO(a.contents.props?.[C8]);a.sections.forEach((l,d)=>{let c=l.kicker?zO(l.kicker):"";c&&r.set(c,ep(s,d))})}return{entries:t,numbers:r}}var qve=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var _8=`[${GO}]`,A8=["bold","italic","underline","strike","link","sup","sub"],R8=["bullet","number"];function wg(e,o){return e?[...A8,...o?R8:[]]:[]}function XO(e,o){let t=O8(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}=zt(a),c=o.components[n.type]?.fields?.[l],f=d?Es(c,d):c,u=ks(f);if(!u)return null;let p=n.props??{};if(Jx(p)!==null||!d&&oc(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?di(p[l],d):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:h,offPage:Nf(f),panelOnly:ps(f)}}function op(e,o){let t=XO(e,o);if(!t)return null;let{text:r,hidden:a}=la(t.stored);if(!hg({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=Kf(t.kind);return{partId:e,value:r,rules:Gd,multiline:n,skip:_8,offered:wg(t.kind!=="plainText",n),write:s=>{let l=XO(e,o);l&&Qf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function Cg(e,o,t){return e?.isConnected&&e.getAttribute($t)===t?e:o?.querySelector(`[${$t}="${tp(t)}"]`)??null}function tp(e){return e.replace(/["\\]/g,"\\$&")}function ZO(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var yg=null,Sg=new Set;function L8(){return yg}function vg(e){if(e!==yg){yg=e;for(let o of Sg)o()}}function F8(e){return Sg.add(e),()=>{Sg.delete(e)}}function JO(){return E8(F8,L8,()=>null)}function QO(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=uv(t.type);return!r||Yt(t.props)?null:{node:t,rows:r}}function H8(e,o){let t=QO(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=bv(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:B8(e.ownerId,Ts(t.rows,{index:e.index,rowKey:a}))}function rp(e,o){let t=H8(e,o);return t?op(t,o):null}function e_(e,o){return rp(e,o)?.value}function o_(e,o){let t=rp(e,o);return t?(t.write(e.text),!0):!1}function t_(e,o){let t=QO(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=D8(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=N8(n,s,d);break}case"delete":l=M8(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Te,Fragment as F1,jsxs as Si}from"react/jsx-runtime";import{Fragment as hq,useEffect as xq,useId as Iq,useMemo as B1,useRef as gq,useState as da}from"react";import{useScreenDocument as $1}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as xb}from"efficient-easel/draw/client";import bq from"efficient-easel/screen/components/SidePanelHead";import{jsx as Ce,Fragment as Ds,jsxs as nn}from"react/jsx-runtime";import{useEasel as T1,useRootFields as S9}from"efficient-easel/easel";import{Inspector as w9}from"efficient-easel/fields";import{SettingsGroup as C9}from"efficient-easel/panel";import{useEffect as v9,useRef as k9,useState as ub}from"react";import{jsx as Qa,Fragment as $8,jsxs as G8}from"react/jsx-runtime";import{useState as s_}from"react";import{SettingsDefaultReset as j8,SettingsField as K8}from"efficient-easel/panel";import{useEaselStrings as V8}from"efficient-easel/strings";import{AddIcon as q8}from"efficient-easel/icons";import{Button as Y8}from"efficient-shell/ui";import{iconOf as X8,noGlyph as Z8}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ap,Fragment as W8,jsxs as r_}from"react/jsx-runtime";import{Button as a_,Dialog as U8}from"efficient-shell/ui";function z8(e){return Uo("This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.",e)}function n_({count:e,onCancel:o,onConfirm:t}){return r_(U8,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:r_(W8,{children:[ap(a_,{variant:"secondary",onClick:o,children:i("Cancel")}),ap(a_,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[ap("p",{children:z8(e)}),ap("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var J8=Z8("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"),Q8="Reset color",e7={selected:0,themes:[]};function o7(e){e(e7)}function l_({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=ho(e),[n,s]=s_(!1),l=V8(),[d,c]=s_(null),f=(S,T)=>{o({...a,themes:a.themes.map((y,b)=>b===S?T:y)})},u=qn(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),h=Tv.filter(S=>!p.has(S)).map(S=>Pv(u,S)),I=[...a.themes,...h],g=S=>{if(S<a.themes.length)return o({...a,selected:S});let T=[...a.themes,I[S]];o({...a,themes:T,selected:T.length-1})},C=()=>{let S=[...a.themes,{...Ko(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),c(S.length-1)};return G8($8,{children:[r?null:Qa(K8,{label:i(Q8),icon:X8(J8),labelId:"sf-theme-reset",action:Qa(j8,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&Qa(n_,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),o7(o)}}),Qa("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((S,T)=>Qa(rf,{index:T,colors:S,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(Y8,{variant:"secondary",leftIcon:Qa(q8,{}),onClick:C,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as np}from"react/jsx-runtime";import{SettingsDefaultReset as t7,SettingsField as r7}from"efficient-easel/panel";import{SquareIcon as a7}from"efficient-easel/icons";var n7="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",kg="Corners";function i_({value:e,onChange:o}){let t=e===null;return np(r7,{label:i(kg),icon:np(a7,{}),changed:!t,action:np(t7,{words:le()?.panel,label:i(kg),changed:!t,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(n7),children:np(Xo,{min:Wo,max:jr,step:1,value:e,...e===null?{}:{suffix:"px"},placeholder:Wo,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(kg),onChange:o})})}import{jsx as fi}from"react/jsx-runtime";import{SettingsDefaultReset as s7,SettingsField as l7}from"efficient-easel/panel";import{IconPicker as i7}from"efficient-shell/ui";import{ShadowIcon as d7}from"efficient-easel/icons";import{SHADOW_PREVIEW as c7}from"efficient-easel/screen/lib/document/shadow-values";var Tg={none:"None",soft:"Soft",lifted:"Lifted"},f7="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function d_({value:e,onChange:o}){let t=e===null,r=e??vh;return fi(l7,{label:i("Card shadow"),icon:fi(d7,{}),value:i(Tg[r]),changed:!t,action:fi(s7,{words:le()?.panel,label:i("Card shadow"),changed:!t,detail:i(Tg[vh]),onReset:()=>o(null)}),hint:i(f7),children:fi(i7,{label:i("Card shadow"),value:r,options:Mv.map(a=>({value:a,label:i(Tg[a]),icon:fi("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:c7[a]}})})),onChange:o})})}import{jsx as c_}from"react/jsx-runtime";import{ShadowIcon as p7}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as f_}from"efficient-easel/screen/lib/document/shadow-values";var u7="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 c_(Ml,{label:i("Shadow color"),icon:c_(p7,{}),value:e??"",inherited:f_,resetTo:f_,onChange:o,onReset:()=>o(null),hint:i(u7)})}import{jsx as lp}from"react/jsx-runtime";import{SettingsDefaultReset as m7,SettingsField as h7}from"efficient-easel/panel";import{AlignSeparateIcon as x7}from"efficient-easel/icons";function sp(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var I7="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",g7="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.",Pg="Block gap",u_=gs.Grid;function m_(e,o){return sp(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:kI(o.gap)}})}function h_({value:e,onChange:o,followsPx:t=null}){let r=e===null,a=t===null?null:`${t}px`,n=t===null?u_:Zl(t)??u_;return lp(h7,{label:i(Pg),labelId:"sf-block-gap",icon:lp(x7,{}),changed:!r,action:lp(m7,{words:le()?.panel,label:i(Pg),changed:!r,detail:a??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(a===null?I7:g7),children:lp(Xo,{min:Er.min,max:Er.max,step:Er.step,value:e,...e===null&&t===null?{}:{suffix:"px"},placeholder:n,...t===null?{placeholderWord:"Auto"}:t===n?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:i(Pg),onChange:o})})}import{jsx as ip}from"react/jsx-runtime";import{SettingsDefaultReset as b7,SettingsField as y7,SettingsSegmented as S7}from"efficient-easel/panel";import{HoverIcon as w7}from"efficient-easel/icons";var Eg={none:Wn.none,lift:Wn.lift,highlight:IC},C7="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 x_({value:e,onChange:o}){let t=e===null,r=e??kh;return ip(y7,{label:i("Hover effect"),icon:ip(w7,{}),value:i(Eg[r]),changed:!t,action:ip(b7,{words:le()?.panel,label:i("Hover effect"),changed:!t,detail:i(Eg[kh]),onReset:()=>o(null)}),hint:i(C7),children:ip(S7,{options:Hv.map(a=>({id:a,label:i(Eg[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as dp}from"react/jsx-runtime";import{SettingsDefaultReset as v7,SettingsField as k7,SettingsSegmented as T7}from"efficient-easel/panel";import{DropIcon as P7}from"efficient-easel/icons";var Og="Photography",I_={shot:"As shot",mono:"Black and white"},_g=[{grayscale:!1,label:I_.shot},{grayscale:!0,label:I_.mono}],E7="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function g_({value:e,onChange:o}){let t=e===null,r=e??!1;return dp(k7,{label:i(Og),icon:dp(P7,{}),value:i(_g.find(a=>a.grayscale===r).label),changed:!t,action:dp(v7,{words:le()?.panel,label:i(Og),changed:!t,detail:i(_g.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(E7),children:dp(T7,{options:_g.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(Og),onChange:o})})}import{jsx as Ag}from"react/jsx-runtime";import{useId as O7}from"react";import{SettingsField as _7,SettingsSwitch as A7}from"efficient-easel/panel";import{ShareIcon as R7}from"efficient-easel/icons";var L7="Share button",F7="On every blog post.";function b_({value:e,onChange:o}){let t=O7();return Ag(_7,{label:i(L7),labelId:t,icon:Ag(R7,{}),action:Ag(A7,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(F7)})}import{usePreviewDevice as mb}from"efficient-easel/draw/client";import{jsx as cp}from"react/jsx-runtime";import{SettingsDefaultReset as B7,SettingsField as D7}from"efficient-easel/panel";import{PaddingXIcon as N7}from"efficient-easel/icons";var Rg="Side space",y_=ct.default,M7="The room left at the left and right edge of every page.";function S_(e,o){return sp(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:y_,bounds:ct},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:xf(o.gutter),bounds:ra}})}function w_({value:e,onChange:o,unsetPx:t=y_,bounds:r=ct}){let a=e===null;return cp(D7,{label:i(Rg),labelId:"sf-side-space",icon:cp(N7,{}),changed:!a,action:cp(B7,{words:le()?.panel,label:i(Rg),changed:!a,detail:`${t}px`,onReset:()=>o(null)}),hint:i(M7),children:cp(Xo,{min:r.min,max:r.max,step:r.step,value:e,suffix:"px",placeholder:t,onClear:()=>o(null),ariaLabel:i(Rg),onChange:o})})}import{jsx as Lg}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as MTe,SettingsBackgroundWidth as H7,SettingsContentWidth as W7}from"efficient-easel/panel";var U7="Background width",z7="Content width";var fp=e=>i(Va[e==="content"?"page":"full"]),C_="The width of every section's background.",v_="The width of every section's content.";function k_({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return Lg(H7,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(U7),full:fp("full"),content:fp("content")},resetWords:le()?.panel})}function T_({mode:e,px:o,max:t=yo.max,min:r=yo.min,changed:a,detail:n,fullClosed:s,onMode:l,onPx:d,onReset:c,hint:f,labelId:u,length:p}){let h=i(z7),I=p?.grid.min??r,g=p?.grid.max??t,C=e!=="full"?Lg(Xo,{min:I,max:g,step:p?.grid.step??yo.step,value:Math.min(Math.max(o,I),g),onChange:d,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:h}):null;return Lg(W7,{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:fp("full"),content:fp("content")},resetWords:le()?.panel})}import{jsx as p1}from"react/jsx-runtime";import{TextStyleItem as ZV,TextStylesGroup as JV}from"efficient-easel/text-styles";import{jsx as jV}from"react/jsx-runtime";import{useState as KV}from"react";import{TextStylesList as VV}from"efficient-easel/text-styles";import{usePreviewDevice as qV}from"efficient-easel/draw/client";import{defaultTextStyles as J_,textStyleCaseCss as HV}from"efficient-easel/text-styles/model";import{resolveViewValue as Q_}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as P_,VIEW_TABLET_MIN as E_}from"efficient-easel/draw";var pp=.02,O_=`(min-width: ${zr}px) and (max-width: ${P_-pp}px)`,pi=`(max-width: ${zr-pp}px)`,up=`(min-width: ${E_}px) and (max-width: ${P_-pp}px)`,mp=`(max-width: ${E_-pp}px)`;import{textStyleCaseCss as $7,textStyleCaseOfCss as G7,viewKeyAt as D_}from"efficient-easel/draw";function Os(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function _s(e,o){return Os(e?.[o])??{}}function hp(e,o,t){let r=_s(e,o);return Os(j(r,t))??{}}function xp(e,o,t,r){let{[t]:a,...n}=_s(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...d}=e;return Object.keys(s).length?{...d,[o]:s}:d}import{isLengthUnit as Hg}from"efficient-easel/screen/lib/content/length-units";var hi="_partStyles",Wg="data-sf-part-styled",As="data-sf-text-style",j7=/^(heading|body)-[1-7]$/;function tn(e){return typeof e=="string"&&j7.test(e)}var Ip={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function K7(e){if(!e)return null;for(let[o,t]of Object.entries(Ip))if(t===e)return o;return null}function Ug(e){if(tn(e.textStyle))return e.textStyle;let o=Ir(e.role);return o?Ip[o]:void 0}var V7=[400,500,600,700],mi=["left","center","right","justify"],Fg=5,Bg=1e3,q7=-5,Y7=10,zg=0,$g=64,Gg=2,__={size:{min:Fg,max:Bg,step:1},sizeTablet:{min:Fg,max:Bg,step:1},sizePhone:{min:Fg,max:Bg,step:1},padding:{min:zg,max:$g,step:Gg}},X7=.05,Z7=.01,J7=["line","letter"],Q7=.5,eV=2.5,oV=-1,tV=1,rV=0,aV=400,nV=[...new Set(Object.values(Hn))];function N_(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 iPe(e){return _s(e,hi)}function xi(e,o){return hp(e,hi,o)}function M_(e,o,t){return xp(e,hi,o,sV(t).length?t:null)}function sV(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function lV(e){return J7.includes(e)}var ui=(e,o,t)=>Math.min(t,Math.max(o,e)),iV=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function Dg(e){let o=D_("sizeUnit",e),t=iV.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var xt={size:Dg("desktop"),sizeTablet:Dg("tablet"),sizePhone:Dg("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},H_=Object.values(xt);function nr(e,o){return so(e[xt[o]])}function dV(e,o,t={}){if(H_.includes(e))return Hg(o)&&o!=="px"?o:null;if(Qe(xt,e)&&nr(t,e)!=="px"){let r=on(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(lV(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:ui(r,q7,Y7)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?on(ui(r,Q7,eV),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?on(ui(r,oV,tV),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:ui(r,rV,aV)}if(Qe(__,e)){let{min:r,max:a}=__[e],n=Math.round(Number(o));return Number.isFinite(n)?ui(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?Ir(o)?o:null:e==="sizeToken"?jg(o)?o:null:e==="textStyle"?tn(o)?o:null:e==="alignPhone"||e==="alignTablet"?mi.includes(o)?o:null:o}var cV=["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 cV){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!mi.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!mi.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!mi.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!tn(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!jg(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!Ir(e.fontRole)&&t("fontRole");for(let r of H_)e[r]!==void 0&&!Hg(e[r])&&t(r);return o??e}function jg(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"&&nV.includes(d);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||fV(n,t))}function fV(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 Kg(e){return e?.pxPhone&&jg(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function W_({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 pV=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function uV(e){let o=[];for(let[t,r]of pV)t===e?o.push(r):r===e&&o.push(t);return o}function rn(e,o,t,r){let a={...xi(e,o)},n=r==null?null:dV(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of uV(t))delete a[s]}return M_(e,o,a)}function U_(e,o){return M_(e,o,{})}function mV(e){return G7(e)??"none"}function hV(e){return $7(e)??""}var A_={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 xV(e,o){return Ir(e.role)||(o?.blockDrawsStyle?null:K7(e.textStyle))}function z_(e,o){return e==="Text"&&o==="text"}var IV={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 gV(e){let o=Hn[e],t=j(IV,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Ii(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=on(bV+e.line*X7,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=on(e.letter*Z7,4)),o}var bV=1,en="--sf-part-para";function yV(e){e=Rs(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=He(e.sizePhone,nr(e,"sizePhone"));else{let r=Kg(e.sizeToken);if(r)o.fontSize=W_(r);else{let a=bp(e);a!==void 0&&(o.fontSize=He(a,nr(e,"sizeTablet")))}}let t=e.alignPhone??gp(e);return t&&(o.textAlign=t),o}function gp(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function bp(e){let o=e.sizeTablet!==void 0&&nr(e,"sizeTablet")!==nr(e,"size")?e.sizeTablet:At("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function SV(e){let o=Rs(e),t={},r=bp(o);r!==void 0&&(t.fontSize=He(r,nr(o,"sizeTablet")));let a=gp(o);return a&&(t.textAlign=a),t}function $_(e,o){if(o==="desktop")return;let t=Rs(e);return(o==="mobile"?gp(t):void 0)??t.align}function wV(e,o){if(o==="desktop")return e;let t=Rs(e),r=bp(t),a=gp(t);if(o==="tablet"){let l=e;return r!==void 0&&(l={...l,size:r,sizeUnit:t[xt.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[xt.sizePhone]};else{let l=Kg(t.sizeToken);l?n={...n,size:void 0,sizeToken:l}:r!==void 0&&(n={...n,size:r,sizeUnit:t[xt.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function Vg(e,o,t){return Yg(wV(e,o),yp,t)}function qg(e){return D_("size",e)}function G_(e,o){if(o==="desktop")return null;let t=Rs(e);if(o==="mobile"){if(Kg(t.sizeToken))return null;let r=bp(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 j_(e,o){let t=qg(o);if(!Qe(e,t))return e;let r={...e};return delete r[t],r}function dPe(e,o,t){let r=Vg(j_(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function Yg(e,o,t){e=Rs(e);let r=xV(e,t),a=Ii(e),n=e.size?He(e.size,nr(e,"size")):e.sizeToken?W_(e.sizeToken):r?gV(r):"";return{fontFamily:e.font?TV(e.font):e.fontRole?`var(${A_[e.fontRole]})`:r?`var(${A_[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?He(e.paragraphSpacing,nr(e,"paragraphSpacing")):"",textTransform:hV(e.case),textAlign:e.align??"",paddingTop:R_(e.padding,nr(e,"padding")),paddingBottom:R_(e.padding,nr(e,"padding")),color:CV(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var CV=e=>is(e),R_=(e,o)=>e===void 0?"":He(e,o),on=(e,o)=>Number(e.toFixed(o));function cPe(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:vV(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:kV(e.textAlign),case:mV(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function vV(e){return Number.isFinite(e)?V7.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function kV(e){for(let o of mi)if(o===e)return o;return e==="end"?"right":"left"}function fPe(e,o){let t=L_(e);if(!t)return"";for(let r of Ur)if(L_(o(r.cssVar))===t)return r.key;return""}var L_=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function TV(e){let o=Mn(e);return o?`var(${o.cssVar})`:""}function pPe(e,o,t,r){return!o||pg(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function PV(e,o){return Os(j(e,o))??{}}function uPe(e,o,t=()=>yp,r=l=>l,a=_V,n="desktop",s=()=>!1){let l=0;for(let{element:d,partId:c}of e){let f=pg(c)?.propKey;if(!f)continue;let u=PV(o,r(f)),p=Vg(u,n,{blockDrawsStyle:s(f)});tn(u.textStyle)?d.setAttribute?.(As,u.textStyle):d.removeAttribute?.(As);let h=Ng.some(g=>d.style[g]),I=!1;for(let[g,C]of Object.entries(p))LV(d,g,C),C&&(I=!0);if(h||Ng.some(g=>p[g]))for(let g of EV(d,a))for(let C of Ng)g.style[C]=p[C]??"";I&&(l+=1)}return l}function EV(e,o){let t=Ps(e.textContent??""),r=[],a=e;for(let n=0;n<OV&&o(a);n+=1){let s=a.parentElement;if(!s||Ps(s.textContent??"")!==t)break;r.push(s),a=s}return r}var OV=8;function _V(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var yp={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function AV(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=xt[t];o[t]!==void 0&&Hg(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function RV(e,o){let t=AV(e);if(!t)return{};let r=Vg(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function K_(e){return tn(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function mPe(e,o,t){if(!e||typeof e!="object")return{};let r=ec(e.role,o,Hn)??{},a=o.sized?RV(j_(e,t),t):{};return{...r,...a}}function hPe(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function LV(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?.(F_,""):a.removeAttribute?.(F_))}var F_="data-sf-part-para",FV=Object.keys(Yg({},yp)),Mg=new Set(["color","overflowWrap",en,"fontStyle"]),Ng=FV.filter(e=>!Mg.has(e));function V_(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=Ts(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(!BV(u))continue;let p=B_(t,u,Os(o[u])??{},!1,n(u));p&&d.set(u,p)}let c=u=>{let p=r(u),h=n(p);if(!Qe(o,p)&&!h)return null;let I=Os(o[p])??{};return B_(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(Ts(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 B_(e,o,t,r,a){let n=Yg(t,yp,{blockDrawsStyle:r}),s=SV(t),l=yV(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:DV(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...d?{textStyle:d}:{},...a?{motion:a}:{}}}function BV(e){return e.startsWith("@")}function Xg(e,o){return e?.kindRules.get(o)??null}function DV(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function Zg(e){return e?{tablet:O_,phone:pi}:{tablet:up,phone:mp}}function q_(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=Zg(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(([,S])=>S!==""),u=S=>S.map(([T,y])=>`${NV(T)}: ${y}`).join("; "),p=`[${Wg}="${d}"]`,h=f.filter(([S])=>!Mg.has(S)),I=f.filter(([S])=>Mg.has(S));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(...Sp(p,`*:has(> ${p})`)));let g=Object.entries(l.tablet??{}).filter(([,S])=>S!=="");g.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(g)} } }`);let C=Object.entries(l.phone??{}).filter(([,S])=>S!=="");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 Sp(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 NV=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function Y_(e,o){if(!e)return null;let t=Ps(o),r=e.rules.get(t);if(r)return r;if(t.length<MV||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 MV=8;function X_(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 Jg=e=>e==="sentence"?"none":void 0,e1=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],Ls=["desktop","tablet","phone"],an=(e,o)=>we(e,o);function ob(e,o,t,r=zn()){return Q_("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var WV=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function Qg(e){for(let[o,t,r]of WV)for(let a of Ls)if(e===an(o,a))return{key:we(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function sr(e){let o={};for(let t of e1)e[t]!==void 0&&(o[t]=e[t]);return o}function tb(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=e1.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function o1(e){let o=e.fonts,t=e.sizes,r=e.typography,a=Wv(e.compression),n={"heading-1":{font:Se(o.heading),size:q(t.headingLarge),weight:q(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Jg(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:Jg(r.case2)},"heading-3":{font:Se(o.heading3),size:q(t.headingSmall),weight:q(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Jg(r.case3)},"body-1":{font:Se(o.body),size:q(t.body)},"body-5":{font:Se(o.label),size:q(t.label)}};return J_().map(({id:s,kind:l,name:d})=>({id:s,kind:l,name:d,values:sr(n[s]??{})}))}function rb(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=>tb({...o,values:sr(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function OPe(e){return rb(e)??[]}function t1(e){return rb(e)??J_().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Lr(e,o){let t=o1(o),r=rb(e);return r?r.map(a=>{let n={...eb(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:sr({...n,...a.values})}}):t}var eb=(e,o)=>e.find(t=>t.id===o)?.values??{},Z_=["heading-1","heading-2","heading-3"];function r1({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=o1(o),l=t1(e),d=Lr(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=UV([p],a,n)[0],H=P.values.color;return H===void 0?P:{...P,values:{...P.values,color:tt(H)}}}let g={...I.values},C=new Set(I.auto??[]),S=p.values,T=h.values,y=[...new Set([...Object.keys(S),...Object.keys(T)])].filter(P=>JSON.stringify(S[P])!==JSON.stringify(T[P])),b=P=>Qg(P).spacing==="letter";y.sort((P,H)=>Number(b(P))-Number(b(H)));for(let P of y){let{key:H,view:E,spacing:W}=Qg(P),O=H,D=S[P];if(D===void 0){delete g[O],eb(s,p.id)[O]!==void 0&&(c.push([p.id,O]),C.add(O));continue}if(C.delete(O),W==="line")g[O]=Fs(D/100,3);else if(W==="letter"){let v={...d.find(F=>F.id===p.id)?.values??{}};for(let F of y)S[F]===void 0&&delete v[Qg(F).key];let _=sr({...v,...g}),A=ob(_,a({...p,values:_}),E);g[O]=A?Fs(D/A,4):0}else g[O]=D}return tb({id:p.id,kind:p.kind,name:p.name,values:sr(g)},C)}),u=o.compression;if(c.some(([p,h])=>(h==="lineHeight"||h==="letterSpacing")&&Z_.includes(p))&&Ra(u)!=="normal"){for(let p of Z_){let h=f.find(g=>g.id===p);if(!h)continue;let I={...h.values};for(let g of["lineHeight","letterSpacing"])c.some(([C,S])=>C===p&&S===g)||I[g]===void 0&&!(h.auto??[]).includes(g)&&(I[g]=eb(s,p)[g]);h.values=sr(I)}u="normal"}return{saved:f,old:{...o,compression:u}}}function a1(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Ra(e.old.compression)),t}var Fs=(e,o)=>Number(e.toFixed(o)),n1=(e,o)=>Ls.indexOf(e)<Ls.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 Ls){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)]=Fs(d*100,1));let f=n1(s,t);c!==void 0&&(a[an("letterSpacing",s)]=Fs(c*ob(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function UV(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let c of Ls)delete n[an("lineSpacing",c)],delete n[an("letterSpacing",c)];let s={id:r.id,kind:r.kind,name:r.name,values:sr(n)},l={...s.values},d=o({...s,values:{...s.values}});for(let c of Ls){let f=a[an("lineSpacing",c)],u=a[an("letterSpacing",c)];if(typeof f=="number"&&(l[we("lineHeight",c)]=Fs(f/100,3)),typeof u=="number"){let p=ob(s.values,d,n1(c,t));l[we("letterSpacing",c)]=p?Fs(u/p,4):0}}return{...s,values:sr(l)}})}function _Pe(e){let o={fonts:gl({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:Ch({headingLarge:e.heading_size_large_px,headingMedium:e.heading_size_medium_px,headingSmall:e.heading_size_small_px,accent:e.accent_size_px,body:e.body_size_px,label:e.label_size_px}),compression:Ra(e.heading_compression),typography:zv(e)},t=e.text_styles??null,r=Array.isArray(t)?ab(Lr(t,o),o):o;return{fonts:gl(r.fonts),sizes:Ch(r.sizes),compression:Ra(r.compression),typography:r.typography,textStyles:t}}function ab(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 APe(e){let o=[];for(let t of e){let r=t.values,a=`.${X_(t)}`,n=`[${As}="${t.id}"]`,s=`${a}, ${n}`,l=[],d=r.font!==void 0?Ur.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=is(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=HV(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(...Sp(`:is(${s})`,`*:has(> ${n})`))),o.push(...zV(t,s,a,n))}return o.join(`
4
+ `)}function zV(e,o,t,r){let a=e.values,n=At("textSize",a.size,a.sizeTablet,a.sizePhone),s=At("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=At("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),d=At("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),c=At("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=Q_("textSize",a.size,a.sizeTablet,a.sizePhone,zn()),u=$V[e.id],p=[];for(let[h,I]of[["tablet",up],["phone",mp]]){let g=[],C=[],S=f[h],T=s[h],y=n[h]===void 0&&T===void 0||S===void 0?void 0:T===void 0?S:Math.min(S,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(...Sp(`: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 $V={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function RPe(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function l1(e){return e?Ip[e]:void 0}function nb(e){let o=Ii(e);return sr({font:e.font,color:e.color===void 0?void 0:tt(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function i1(e){return Object.keys(nb(e)).length>0}function d1({saved:e,old:o,styleId:t,values:r}){let a=t1(e);return{saved:GV(a,t,r),old:o}}function GV(e,o,t){return e.map(r=>r.id===o?tb({...r,values:sr({...r.values,...t})},r.auto):r)}var c1=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],YV=["size","lineSpacing","letterSpacing","letterCase"],XV=500,sb=Ur.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function f1({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:d=!1,withoutSize:c=!1}){let f=qV(),[u,p]=KV(null),h=Lr(e,o),I=sc(f),g=s1(h,a,I);return jV(VV,{styles:g,onChange:C=>n(r1({saved:e,old:o,cur:g,next:C,sizeOf:a,panelView:I})),fonts:sb,colours:t,colourNameOf:r,settings:c?c1.filter(C=>C!=="size"):c1,auto:YV,openId:s===void 0?u:s,onOpenChange:l??p,readOnly:d,device:I,fallback:C=>{let S=h.find(y=>y.id===(C.kind==="heading"?"heading-1":"body-1")),T={};return S?.values.font&&C.id!==S.id&&(T.font=S.values.font),C.kind==="heading"&&(T.weight=XV),T}})}var u1=["font","size","weight","emphasis"],QV=500;function e9({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 o9(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 m1(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=e9(e);return p1(JV,{label:i("Emphasis"),children:p1(ZV,{style:s,fonts:sb,settings:n?u1.filter(l=>l!=="size"):u1,auto:["size"],fallback:()=>({weight:o??QV}),open:t,onOpenChange:r,onChange:l=>o9(s,l).forEach(a)})})}import{EmptyState as T9,SliderGroup as P9,Tabs as E9,Tooltip as oEe,tabButtonId as O9,tabPanelId as _9}from"efficient-shell/ui";import{ContrastIcon as A9,SettingsIcon as R9,TypeIcon as L9}from"efficient-easel/icons";function h1(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 m9,PaddingTopIcon as h9}from"efficient-easel/icons";import{jsx as wp}from"react/jsx-runtime";import{SettingsDefaultReset as t9,SettingsField as r9,SettingsSegmented as a9}from"efficient-easel/panel";import{WidthIcon as n9}from"efficient-easel/icons";function x1({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 wp(r9,{label:c,labelId:a,icon:wp(n9,{}),value:l?n:void 0,changed:!l,action:wp(t9,{words:le()?.panel,label:c,changed:!l,onReset:()=>t(void 0)}),hint:s,children:wp(a9,{options:[{label:i(Va.full),id:"full"},{label:i(Va.page),id:"content"}],value:d,ariaLabel:c,onChange:t})})}import{HEADER_TYPE as lb,FOOTER_TYPE as s9}from"efficient-easel/draw";var l9=new Set(["Hero","HeroSingle","IntroBleed"]),I1={min:56,max:140,default:88},t0e={min:0,max:120,step:2,default:32},r0e=`var(--sf-header-h, ${I1.default}px)`,i9="--sf-header-set-h",a0e="--sf-header-h",n0e=`var(${i9}, ${I1.default}px)`,s0e="sf-header-clearance",l0e="sf-sticky-underheader";function d9(e){return e?.find(o=>o?.type&&o.type!==lb)??null}function g1(e){let o=d9(e)?.type;return!o||!l9.has(o)}function i0e(e){return!g1(e)}function d0e(e){return!!e?.some(o=>o?.type===lb)}function c0e(e){return!e||e.length===0?!1:!e.some(o=>o?.type===lb||o?.type===s9)}var c9=["auto","shared","own"],ib="auto",f9="topSpace",f0e="data-top-space";function p9(e){return c9.includes(e)?e:ib}function u9(e,o){let t=p9(e?.props?.[f9]);return t==="own"?!0:t==="shared"?!1:g1(o)}function p0e(e,o){return u9(e,o)?"own":null}function x9(){return{type:"custom",render:({value:e,onChange:o})=>cb(x1,{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 I9=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],C0e={pageBackground:yO(),topSpace:mt("Top space",cb(h9,{}),I9,ib),widthChoice:x9()},gi=["pageBackground","topSpace","widthChoice"],g9="Record type",db=new Map,b1=-1;function b9(e){b1!==rx()&&(db.clear(),b1=rx());let o=tx(),t=o.some(a=>a.key===e)?"":e,r=db.get(t);return r||(r=mt(g9,cb(m9,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Yr),db.set(t,r)),r}var y1=new WeakMap;function v0e(e,o){if(!Ll()||tx().length<2||_c in e)return e;let t=b9(Rl(o)),r=y1.get(e);if(r&&r.row===t)return r.fields;let a={[_c]:t,...e};return y1.set(e,{row:t,fields:a}),a}import{previewFrame as F9}from"efficient-easel/screen/lib/document/preview-dom";var S1="background";function w1(e){let o=Ko(qn(e));return ds({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 C1(e){return w1(e).filter(o=>o.key!==S1)}function v1(e){let o=w1(e).filter(t=>t.key===S1);return t=>{let r=tt(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as y9}from"efficient-easel/easel";function Cp({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=y9(E=>E),{fonts:a,setFonts:n,sizes:s,setSizes:l,headingCompression:d,setHeadingCompression:c,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:h}=ge(),I=t.data,g=I.root?.props??{},C=e?gl(g.fonts):a,S=e?Bv:s,T=e?Ra(g.headingCompression):d,y=e?Uv(g.headingTypography):f,b={fonts:C,sizes:S,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:S,compression:T,typography:y,old:b,saved:P,write:(E,W)=>{let O=ab(Lr(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(a1(E,b),W)},writeRoot:H}}import{pictureShadowColor as B9}from"efficient-easel/screen/lib/document/shadow-values";var pb="sf-site-styles",D9="sf-site-styles-tabpanel",P1="text",Ns="basics",k1="this-page-group",Bs=[{id:Ns,label:"Basics",icon:Ce(R9,{})},{id:"theme",label:"Theme",icon:Ce(A9,{})},{id:"text",label:"Text",icon:Ce(L9,{})}];function N9({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=T1(c=>c),{theme:a,setTheme:n}=ge(),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(l_,{value:e?l.theme:a,onChange:d})}function M9({themeFromDocument:e,persist:o}){let[t,r]=ub(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=ge(),d=Cp({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??z9(H9[E.id]??"body")??W9[E.kind],C=E=>d.write(E),S=C1(a),T=v1(a),y=E=>{let W={...p,accent:E};e?u({fonts:W}):n(W),o({accent_font:E})},b=E=>{s({...h,accent:E}),o({accent_size_px:E})},P=E=>{let W={...I,weightStrong:E};e?u({headingTypography:W}):l(W),o({heading_weight_strong:E})},H=E=>{let W={...I,italicStrong:E};e?u({headingTypography:W}):l(W),o({accent_italic:E})};return nn(Ds,{children:[Ce(f1,{saved:f,old:c,colours:S,colourNameOf:T,sizeOf:g,onChange:C,openId:t===fb?null:t,onOpenChange:r,withoutSize:e}),Ce(m1,{font:p.accent,size:h.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===fb,onOpenChange:E=>r(E?fb: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 fb="accent",H9={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},W9={heading:32,body:14},U9={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 z9(e){if(typeof document>"u")return null;let o=(F9()?.contentDocument??document).querySelector(U9[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function $9({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=T1(u=>u),{cornerRadiusPx:a,setCornerRadiusPx:n}=ge(),s=t.data,l=s.root?.props??{},d=l.cornerRadiusPx===void 0?Nv[Dv(l.cornerStyle)]:Zt(l.cornerRadiusPx),c=e?d:a,f=u=>r({type:"replaceRoot",root:{...s.root,props:{...l,...u}},recordHistory:!0});return Ce(i_,{value:c,onChange:u=>{e?f({cornerRadiusPx:u}):n(u),o({corner_radius_px:u})}})}function G9(e){return{site_width:e}}function j9({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=ge();if(mb()!=="desktop")return null;let l=typeof o=="number"?o:yo.default,d=u=>{t(u),e(G9(u),u===null)},c=u=>{a(u),e({section_background_width:u},!0)},f=u=>{s(u),e({section_content_width:u},!0)};return nn(Ds,{children:[Ce(k_,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:c,onReset:()=>c(null),hint:C_}),Ce(T_,{mode:n??"content",px:l,min:yo.min,max:yo.max,changed:typeof o=="number"||n!==null,detail:`${i("Content width")} ${yo.default}px`,onMode:f,onPx:u=>d(u),onReset:()=>{f(null),d(null)},hint:v_})]})}function K9(e){return{block_gap:e}}function V9(e){return{block_gap_phone:e}}function q9(e){return{site_gutter:e}}function Y9(e){return{site_gutter_phone:e}}function E1(e,[o,t],r){o(e),r(t(e),e===null)}function X9({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a}=ge(),n=S_(mb(),{gutter:o,phone:t});if(!n)return null;let s=n.key==="site_gutter_phone"?[a,Y9]:[r,q9];return Ce(w_,{value:n.value,onChange:l=>E1(l,s,e),unsetPx:n.unsetPx,bounds:n.bounds})}function Z9({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a}=ge(),n=m_(mb(),{gap:o,phone:t});if(!n)return null;let s=n.key==="block_gap_phone"?[a,V9]:[r,K9];return Ce(h_,{value:n.value,onChange:l=>E1(l,s,e),followsPx:n.followsPx})}function J9({persist:e}){return nn(Ds,{children:[Ce(j9,{persist:e}),Ce(X9,{persist:e}),Ce(Z9,{persist:e})]})}function Q9(e){return{card_shadow:e}}function eq(e){return e===null?{shadow_color:null}:{shadow_color:B9(e)}}function oq(e){return{hover_effect:e}}function tq({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=ge();return nn(Ds,{children:[Ce(d_,{value:o,onChange:l=>{t(l),e(Q9(l),!0)}}),Ce(p_,{value:r,onChange:l=>{a(l),e(eq(l),l===null)}}),Ce(x_,{value:n,onChange:l=>{s(l),e(oq(l),!0)}})]})}function rq(e){return{photography_grayscale:e}}function aq({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=ge();return Ce(g_,{value:o,onChange:r=>{t(r),e(rq(r),!0)}})}function nq({persist:e}){return Ce(Ds,{children:Ce(aq,{persist:e})})}function sq(e){return{share_button_on_posts:e}}function lq({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=ge();return Ce(b_,{value:o,onChange:r=>{t(r),e(sq(r),!0)}})}function Ms(){let{websiteName:e}=ge();return e?.trim()||bk}function vp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:d}){let{persist:c}=us({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let S=h1(C);S&&r?.(S.msg,S.tone)}}),[f,u]=ub(s??Bs[0].id),p=a!==void 0,h=p?a:f,I=p?n??(()=>{}):u,g=Bs.find(C=>C.id===h)??Bs[0];return nn(P9,{children:[Ce(cq,{activeId:g.id,onSelect:I}),nn("div",{id:_9(pb,g.id),className:D9,role:"tabpanel","aria-labelledby":O9(pb,g.id),children:[h===Ns&&nn(Ds,{children:[Ce($9,{themeFromDocument:e,persist:c}),!e&&Ce(tq,{persist:c}),!e&&Ce(J9,{persist:c}),!e&&Ce(nq,{persist:c}),!e&&Ce(lq,{persist:c}),Ce(iq,{reveal:l,onRevealed:d})]}),h==="theme"&&Ce(N9,{themeFromDocument:e,persist:c}),h==="text"&&Ce(M9,{themeFromDocument:e,persist:c})]})]})}function iq({reveal:e,onRevealed:o}){let[t,r]=ub(!0),a=k9(o);return a.current=o,v9(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(k1)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),Ce(C9,{title:i("This page"),open:t,onToggle:r,id:k1,children:Ce(dq,{})})}function dq(){let{fields:e,values:o,readOnly:t,onChange:r}=S9(),a=Object.fromEntries(gi.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?Ce(T9,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):Ce(w9,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function cq({activeId:e,onSelect:o}){return Ce("div",{className:"es-insp-tabs",children:Ce(E9,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:pb,value:e,onChange:o,items:Bs.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as yq}from"efficient-easel/chrome";import{Button as D1,Dialog as Sq,FormField as wq,Input as N1,PopupMenu as Cq,PopupMenuItem as M1,toast as H1}from"efficient-shell/ui";import{LayersTree as vq,TreeGroupLabel as kq,TreeRow as W1,TreeRowAction as Ep}from"efficient-easel/tree";import{AddIcon as Tq,DuplicateIcon as Pq,PageIcon as Eq,SettingsIcon as Oq}from"efficient-easel/icons";import{PagesIcon as _q}from"efficient-easel/rail";import{useEaselHost as Aq}from"efficient-easel/screen/lib/host";import{useEaselSession as G1}from"efficient-easel/screen/lib/session-context";import{useCallback as kp,useEffect as fq,useSyncExternalStore as pq}from"react";import{useScreenDocument as R1}from"efficient-easel/screen/components/ScreenDocumentContext";var O1=new WeakMap;function bi(e){let o=O1.get(e);return o||(o={rows:null,loading:null,listeners:new Set},O1.set(e,o)),o}function hb(e,o){e.rows=o;for(let t of e.listeners)t()}var Tp=new Set;function Pp(e,o){o?Tp.add(e):Tp.delete(e)}function _1(e){let o=bi(e),t=e.listPages().then(r=>hb(o,Tp.size?r.filter(a=>!Tp.has(a.id)):r),()=>hb(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var A1=()=>null,uq=()=>()=>{};function yi(){let{adapter:e,ready:o}=R1(),t=kp(l=>{let{listeners:d}=bi(e);return d.add(l),()=>d.delete(l)},[e]),r=kp(()=>bi(e).rows,[e]),a=pq(o?t:uq,o?r:A1,A1);fq(()=>{if(!o)return;let l=bi(e);l.rows===null&&!l.loading&&_1(e)},[e,o]);let n=kp(()=>o?_1(e):Promise.resolve(),[e,o]),s=kp(l=>hb(bi(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function mq(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function L1(){let{currentSlug:e}=R1(),{rows:o}=yi();return mq(o,e)}import{canDuplicatePage as Rq,DuplicatePageDialog as Lq,uniqueSlug as U1}from"efficient-easel/page-copy";var z1="sf-editor-pages-collapsed-groups";function Fq(){let e=G1(),{siteId:o,templateId:t}=$1(),r=oo(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function j1({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=G1().chrome?.pageRows,n=Aq(),{adapter:s,capabilities:l,ready:d,currentSlug:c}=$1(),f=Ms(),{rows:u,reload:p,setRows:h,getRows:I}=yi(),[g,C]=da(""),[S,T]=da(!1),[y,b]=da(null),[P,H]=da(!1),[E,W]=da(""),O=Iq(),D=Fq(),[v,_]=da(null),[A,F]=da(()=>{if(typeof window>"u")return new Set;try{let M=window.localStorage.getItem(z1);return new Set(M?JSON.parse(M):[])}catch{return new Set}});xq(()=>{try{window.localStorage.setItem(z1,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}),$=B1(()=>CT(u??[]),[u]),X=g.trim().toLowerCase(),Q=M=>!X||M.toLowerCase().includes(X),Le=M=>X?!0:!A.has(M),Ee=B1(()=>new Set((u??[]).map(M=>M.slug)),[u]),Ue=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}W(""),b(null),H(!0)},Ge=async()=>{let M=E.trim();if(!(!M||!d||S||!s.createPage)){T(!0),b(null);try{let Re=await s.createPage({slug:U1(M,Ee),title:M,layout:{}});await p(),H(!1),W(""),e(Re.slug)}catch{b(i("Couldn\u2019t add the page \u2014 please retry."))}finally{T(!1)}}},Ie=l.hasSiteSettings&&!!s.createPage,ke=async()=>{if(!(!d||S||!s.createPage)){T(!0),b(null);try{let M=await s.createPage(C0(i("New popup"),Ee));await p(),e(M.slug)}catch{b(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{T(!1)}}},Oe=gq(null),[De,ro]=da(null),go=()=>{if(!Ie)return Ue();if(De)return ro(null);let M=Oe.current?.getBoundingClientRect();M&&ro({top:M.bottom+6,right:Math.max(8,window.innerWidth-M.right)})},ne=M=>{let Re=u??[],ye=s.deletePage;if(!d||S||!ye||Re.length<=1)return;let po=Re.findIndex(Ye=>Ye.id===M.id),Fe=Re.filter(Ye=>Ye.id!==M.id),Et=M.slug===c;Pp(M.id,!0),h(Fe),b(null),Et&&Fe[0]&&e(Fe[0].slug);let ur=()=>{Pp(M.id,!1);let Ye=I()??[];if(Ye.some(ya=>ya.id===M.id))return;let mr=[...Ye];mr.splice(Math.max(0,Math.min(po,mr.length)),0,M),h(mr)};H1.undoable(i("Deleted \u201C{name}\u201D",{name:M.label}),{actionLabel:i("Undo"),commit:async Ye=>{await ye(M.id,Ye),Pp(M.id,!1)},undo:()=>{ur(),Et&&e(M.slug)},onFail:()=>{ur(),H1.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Ne=M=>n.send("storefront-editor:open-page",{slug:M}),je=M=>{if(!Q(M.label))return null;let Re=!t&&M.slug===c,ye=l.canDeletePagesInline&&(u??[]).length>1,po=Ba(M),Fe=wT(M),Et=[...po?[{label:i("Dynamic"),tone:"info"}]:[],...Fe?[{label:i("Lightbox"),tone:"success"}]:[],...M.draft?[{label:i("draft"),tone:"draft"}]:[]],ur=Et.length>0?Et:void 0,Ye=!!D&&Rq(M),mr=Ye||l.pageCreationInAdminForm||ye?Si(F1,{children:[Ye&&Te(Ep,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:M.label}),disabled:S,onClick:()=>_(M),children:Te(Pq,{size:13})}),l.pageCreationInAdminForm&&Te(Ep,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:M.label}),onClick:()=>Ne(M.slug),children:Te(Oq,{size:13})}),ye&&Te(Ep,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:M.label}),disabled:S,onClick:()=>ne(M),children:Te(xb,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Te(W1,{icon:Te(Eq,{size:14}),name:M.label,selected:Re,onSelect:()=>e(M.slug),badge:ur,actions:mr,rowProps:{"data-page-slug":M.slug}},M.id)},Z=(M,Re,ye)=>{let po=ye.filter(Boolean);if(po.length===0)return null;let Fe=Le(M);return Si(hq,{children:[Te(kq,{count:po.length,countLabel:Uo("{n} page","{n} pages",po.length),expanded:Fe,onToggle:()=>z(M),children:Re}),Fe&&po]},M)},_e=(a?.rows??[]).filter(M=>Q(M.label)).map(M=>{let Re=t===M.key;return Te(W1,{icon:M.icon,name:M.label,selected:Re,onSelect:()=>r(M.key),badge:{label:i("Preview"),tone:"warning"},actions:Te(Ep,{kind:"plain",label:i("Open the {name} in a new tab",{name:M.label}),onClick:()=>window.open(M.href,"_blank","noopener,noreferrer"),children:Te(xb,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":M.key}},M.key)}),lt=l.hasSiteSettings&&!!a,fo=(()=>{if(u===null)return null;let M=[],Re=!1;for(let ye of $){lt&&!Re&&ye.key.startsWith("system:")&&(M.push(Z("shop",a.title,_e)),Re=!0);let po=ye.key===sx||ye.label===nx?i(ye.label):ye.label;M.push(Z(ye.key,po,ye.rows.map(je)))}return lt&&!Re&&M.push(Z("shop",a.title,_e)),M})();return Si("div",{className:"sf-pages",children:[Te(bq,{icon:Te(_q,{}),title:i("Pages"),context:f,actions:Te(yq,{buttonRef:Oe,label:Ie?i("Add"):i("New page"),hasPopup:Ie?"menu":void 0,expanded:Ie?De!==null:void 0,onClick:go,children:Te(Tq,{size:15})})}),De&&Te(Cq,{portal:!0,style:{top:De.top,right:De.right},onClose:()=>ro(null),children:Si("div",{role:"menu","aria-label":i("Add"),children:[Te(M1,{role:"menuitem",onClick:()=>{ro(null),Ue()},children:i("Page")}),Te(M1,{role:"menuitem",disabled:S,onClick:()=>{ro(null),ke()},children:i("Popup")})]})}),Te("div",{className:"sf-pages-find",children:Te(N1,{type:"search",leftIcon:Te(xb,{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&&Te("div",{className:"sf-note sf-note--error",role:"alert",children:y}),fo===null?Te("div",{className:"sf-note",children:i("Loading\u2026")}):fo.some(Boolean)?Te(vq,{ariaLabel:i("Pages"),className:"sf-scroll",children:fo}):Te("div",{className:"sf-note",children:g.trim()?i("No pages match your search"):i("No pages yet. Add one with + above.")}),D&&v&&Te(Lq,{source:{title:v.label,slug:v.slug},taken:Ee,host:xc(),duplicate:M=>D(v,M),onClose:()=>_(null),onDuplicated:M=>{_(null),p(),e(M.slug)}},v.id),Te(Sq,{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:Si(F1,{children:[Te(D1,{variant:"secondary",onClick:()=>H(!1),children:i("Cancel")}),Te(D1,{onClick:()=>{Ge()},disabled:S||!E.trim(),loading:S,children:i("Add page")})]}),children:Te(wq,{label:i("Page name"),htmlFor:O,hint:E.trim()?i("URL: /{slug}",{slug:U1(E,Ee)}):void 0,error:y??void 0,children:Te(N1,{id:O,value:E,invalid:!!y,onChange:M=>W(M.target.value),onKeyDown:M=>{M.key==="Enter"&&Ge()},placeholder:i("e.g. About")})})})]})}import{jsx as q1}from"react/jsx-runtime";import{createContext as Dq,useCallback as Nq,useContext as Mq,useMemo as Hq,useState as Wq}from"react";import{CanvasChromeContext as Uq}from"efficient-easel/easel";import{useSelectHandler as zq}from"efficient-easel/draw/client";import{parseHexColor as Bq}from"efficient-shell/format";var Op=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Hs=Op[0];var sn="right";function _p(e){return Op.includes(e??"")?e:Hs}function K1(e){return e==="left"?"left":sn}function V1(e){return e&&Bq(e)===e.toLowerCase()?e.toLowerCase():""}var Y1="chat",Ap={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:sn,launcherLabel:"",showOnPhones:!0};function KEe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:V1(e.launcherColor),launcherIcon:e.launcherIcon?_p(e.launcherIcon):"",launcherPosition:K1(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var X1=Dq({chat:Ap,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function VEe({children:e,chat:o=Ap,onChatChange:t}){let[r,a]=Wq(!1),n=Nq(c=>t?.(c),[t]),{select:s,setSelectHandler:l}=zq(),d=Hq(()=>({selected:()=>r?Y1:null,select:c=>c===Y1&&s()}),[r,s]);return q1(X1.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:q1(Uq.Provider,{value:d,children:e})})}var Rp=()=>Mq(X1);import{jsx as Ib}from"react/jsx-runtime";import{DesktopIcon as $q,PhoneIcon as Gq,TabletIcon as jq}from"efficient-easel/icons";import{VIEW_TIERS as Kq,VIEW_TIER_LABEL as Vq}from"efficient-easel/draw";var qq={desktop:Ib($q,{}),tablet:Ib(jq,{}),mobile:Ib(Gq,{})},Z1=Kq.map(e=>({id:e,get label(){return i(Vq[e])},icon:qq[e]}));import{PreviewDeviceContext as Jce}from"efficient-easel/draw/client";import{jsx as Yq}from"react/jsx-runtime";import{createContext as Xq,useCallback as J1,useContext as Zq,useMemo as Jq,useRef as Qq}from"react";var eY=Object.fromEntries(bc.map(e=>[e,{value:"",error:null}])),Q1=Xq({links:Sk,rows:eY,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function rOe({children:e,value:o}){let t=Qq(()=>{}),r=J1(()=>t.current(),[]),a=J1(s=>{t.current=s},[]),n=Jq(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return Yq(Q1.Provider,{value:n,children:e})}var wi=()=>Zq(Q1);import{jsx as oY}from"react/jsx-runtime";import{createContext as tY,useContext as rY,useMemo as aY,useState as nY}from"react";var eA=tY(null);function lOe({children:e}){let[o,t]=nY(null),r=aY(()=>({surface:o,setSurface:t}),[o]);return oY(eA.Provider,{value:r,children:e})}function oA(){return rY(eA)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as sY}from"efficient-easel/draw/client";var Ci="Scrolling Bar",{Provider:cOe,useSelection:tA}=sY("selectedHeroId"),fOe="data-sf-hero-ticker";function pOe(e){return`${e}::ticker`}function uOe(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var rA=["","","","","",""],aA="#ticker",vi="strip",gb={sectionAccent:Jt,line:!1};function lY(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function bb(e){return lY(e).length>0}function xOe(e){return e.showTicker!==!1&&bb(e)}import{createPreviewSelectionContext as iY}from"efficient-easel/draw/client";var{Provider:bOe,useSelection:Lp}=iY("selectedHeroPart");var sA=["one","side","stacked"];var SOe={one:"One",side:"Side by side",stacked:"Stacked"};function Fp(e){return sA.includes(e)?e:"one"}function nA(e){return e==="one"?1:2}function yb(e,o){if(sA.includes(e))return e;let t=Fp(o);return t==="side"?"stacked":t}function ki(e){let o=Fp(e.mediaLayout);return Math.max(nA(o),nA(yb(e.mediaLayoutPhone,o)))}var ln=["media","image","image2"],dn={media:"Media",image:"Image",image2:"Image 2"},Ti={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Bp(e,o){return e==="image"&&ki(o)>1?"Image 1":dn[e]}var kOe="Video file",TOe="Upload a video file",POe="AV1 file",EOe="Upload an AV1 file";function dY(e,o){return{field:"mediaType",is:e,default:o}}var cY=new Set(["HeroSingle"]),lA="heroPart";function fY(e,o){return{...o,[lA]:e}}function OOe(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]=eo(n[l],dY(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=eo(n[s],l));for(let s of ln)for(let l of o[s]??[])n[l]=fY(s,n[l]);return n}function pY(e){let o=e?.[lA];return ln.includes(o)?o:null}function iA(e,o){let t={};for(let[r,a]of Object.entries(e))pY(a)===o&&(t[r]=a);return t}function dA(e){if(!cY.has(e.type))return[];let o=[{part:"media",label:dn.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Bp("image",e.props),depth:1}),ki(e.props)>1&&o.push({part:"image2",label:Bp("image2",e.props),depth:1})),o}function Pi(e,o){return`${e}::${o}`}function cA(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 fA="data-sf-hero-part";import{jsx as Pe,jsxs as Ia,Fragment as v2}from"react/jsx-runtime";import{useEasel as Tse,useRootFields as Pse}from"efficient-easel/easel";import{Button as Ese,EmptyState as Ose}from"efficient-shell/ui";function pA({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Ba({kind:e})?i("Template"):i("Page")}}import{headWords as E2,InspectorHead as _se,InspectorIconButton as k2}from"efficient-easel/chrome";import{DuplicateIcon as Ase,TrashIcon as Rse}from"efficient-easel/icons";import{panelFieldsOf as Lse}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as N,Fragment as ue,jsxs as he}from"react/jsx-runtime";import{BlockBannerIcon as hY,BlockBoxIcon as xY,BlockButtonIcon as IY,BlockDividerIcon as mA,BlockFooterIcon as hA,BlockHeadingIcon as gY,BlockProductIcon as bY,BlockSocialIcon as yY,BlockTextIcon as SY,CardPaymentIcon as wY,ChatIcon as CY,AccountIcon as vY,GlobeIcon as kY,GridIcon as TY,ImageIcon as wb,MapIcon as PY,MediaIcon as EY,PageIcon as OY}from"efficient-easel/icons";import{jsx as Sb,Fragment as uY,jsxs as mY}from"react/jsx-runtime";var uA=mY(uY,{children:[Sb("circle",{cx:"9",cy:"20",r:"1.3"}),Sb("circle",{cx:"18",cy:"20",r:"1.3"}),Sb("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 _Y={header:he(ue,{children:[N("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),N("path",{d:"M3 9.5h18"})]}),social:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{children:[N("circle",{cx:"11",cy:"11",r:"6"}),N("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:uA,CountrySwitchBlock:he(ue,{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:he(ue,{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:he(ue,{children:[N("path",{d:"M3 9h18"}),N("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:he(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{children:[N("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),N("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{children:[N("path",{d:"M3.5 20h17"}),N("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:he(ue,{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:he(ue,{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:he(ue,{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:he(ue,{children:[N("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),N("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:he(ue,{children:[N("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),N("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:he(ue,{children:[N("path",{d:"M4 8.5h4.5M11 8.5h9"}),N("path",{d:"M4 14.5h16"})]}),HeroGroup:he(ue,{children:[N("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),N("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:he(ue,{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(ue,{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:he(ue,{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:he(ue,{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:he(ue,{children:[N("path",{d:"M4 7h2M4 12h2M4 17h2"}),N("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:he(ue,{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"})},AY=N("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),RY={footer:hA,Footer:hA,Divider:mA,FooterDivider:mA,Banner:hY,Flex:xY,FooterSocial:yY,FooterPayment:wY,page:OY,website:kY,AccountBlock:vY,chat:CY,Heading:gY,Text:SY,ImageBlock:wb,ButtonBlock:IY,LocationMap:PY,Grid:TY,ProductRef:bY,heroMedia:EY,heroImage:wb,heroImage2:wb},LY={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function cn({type:e,size:o=16,className:t}){let r=LY[e]??e,a=RY[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:_Y[r]??AY})}import{PanelHideButton as T2}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Fse}from"efficient-easel/screen/lib/session-context";import{jsx as Ae,jsxs as Ei,Fragment as FY}from"react/jsx-runtime";import{useEffect as BY,useId as xA,useState as DY}from"react";import{IconPicker as NY}from"efficient-shell/ui";import{SettingsDefaultReset as MY,SettingsField as Oi,SettingsSegmented as HY,SettingsSwitch as IA}from"efficient-easel/panel";import{ButtonIcon as WY,ButtonIconIcon as UY,EyeIcon as zY,PhoneIcon as $Y,PlacementIcon as GY,TypeIcon as jY}from"efficient-easel/icons";var KY="Chat with us",VY="We usually reply within a few minutes",qY="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Dp({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=DY(o);BY(()=>l(o),[o]);let d=()=>{s!==o&&r(s)};return Ae(Oi,{label:e,icon:Ae(jY,{}),changed:o!=="",action:Ae(_i,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Ae("textarea",{value:s,placeholder:t,rows:3,onChange:c=>l(c.target.value),onBlur:d,"aria-label":e}):Ae("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 _i({label:e,changed:o,onReset:t}){return Ae(MY,{words:le()?.panel,label:e,changed:o,onReset:t})}function YY({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=xA();return Ae(Oi,{label:e,labelId:s,icon:o,changed:t!==r,action:Ei("span",{className:"inline-flex items-center gap-2",children:[Ae(IA,{checked:t,onChange:a,ariaLabelledBy:s}),Ae(_i,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var XY=Op.map(e=>({value:e,icon:Fc(e)}));function ZY(){let{theme:e}=ge(),o=ho(e).themes[0];return vl(o)??o?.accent??""}function gA(){let{chat:e,setChat:o}=Rp(),t=xA(),r=ZY(),a=e.launcherIcon?_p(e.launcherIcon):Hs;return Ei(FY,{children:[Ae(Oi,{label:i("Show the chat bubble"),labelId:t,icon:Ae(zY,{}),changed:!e.enabled,action:Ei("span",{className:"inline-flex items-center gap-2",children:[Ae(IA,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Ae(_i,{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.")}),Ei(eg,{title:i("Look"),children:[Ae(qo,{label:i("Button color"),icon:Ae(WY,{}),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:""})}),Ae(Oi,{label:i("Icon"),icon:Ae(UY,{}),value:Ae(BI,{value:a}),changed:a!==Hs,action:Ae(_i,{label:i("Icon"),changed:a!==Hs,onReset:()=>o({launcherIcon:""})}),children:Ae(NY,{label:i("Icon"),value:a,options:XY,onChange:n=>o({launcherIcon:n===Hs?"":n})})}),Ae(Oi,{label:i("Position"),icon:Ae(GY,{}),changed:e.launcherPosition!==sn,action:Ae(_i,{label:i("Position"),changed:e.launcherPosition!==sn,onReset:()=>o({launcherPosition:sn})}),children:Ae(HY,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),Ae(Dp,{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")}),Ae(YY,{label:i("Show on phones"),icon:Ae($Y,{}),checked:e.showOnPhones,fallback:Ap.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Ei(eg,{title:i("Wording"),children:[Ae(Dp,{label:i("Title"),value:e.title,placeholder:KY,onCommit:n=>o({title:n})}),Ae(Dp,{label:i("Subtitle"),value:e.subtitle,placeholder:VY,onCommit:n=>o({subtitle:n})}),Ae(Dp,{label:i("Greeting message"),value:e.greeting,placeholder:qY,onCommit:n=>o({greeting:n}),multiline:!0}),Ae("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as fn,Fragment as Gb,jsxs as CA}from"react/jsx-runtime";import{useEffect as PX,useId as SA,useState as wA}from"react";import{SettingsField as EX}from"efficient-easel/panel";import{jsx as gX}from"react/jsx-runtime";import{forwardRef as JY,createElement as Cb}from"react";var bA={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=JY(({color:n="currentColor",size:s=24,stroke:l=2,title:d,className:c,children:f,...u},p)=>Cb("svg",{ref:p,...bA[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&&Cb("title",{key:"svg-title"},d),...r.map(([h,I])=>Cb(h,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var QY=[["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"}]],vb=ce("outline","brand-facebook","BrandFacebook",QY);var eX=[["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"}]],kb=ce("outline","brand-instagram","BrandInstagram",eX);var oX=[["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"}]],Tb=ce("outline","brand-line","BrandLine",oX);var tX=[["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"}]],Pb=ce("outline","brand-linkedin","BrandLinkedin",tX);var rX=[["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"}]],Eb=ce("outline","brand-pinterest","BrandPinterest",rX);var aX=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Ob=ce("outline","brand-telegram","BrandTelegram",aX);var nX=[["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",nX);var sX=[["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"}]],Ab=ce("outline","brand-wechat","BrandWechat",sX);var lX=[["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"}]],Rb=ce("outline","brand-whatsapp","BrandWhatsapp",lX);var iX=[["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"}]],Lb=ce("outline","brand-x","BrandX",iX);var dX=[["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"}]],Fb=ce("outline","brand-youtube","BrandYoutube",dX);var cX=[["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"}]],Bb=ce("filled","brand-facebook-filled","BrandFacebookFilled",cX);var fX=[["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"}]],Db=ce("filled","brand-instagram-filled","BrandInstagramFilled",fX);var pX=[["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"}]],Nb=ce("filled","brand-linkedin-filled","BrandLinkedinFilled",pX);var uX=[["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"}]],Mb=ce("filled","brand-pinterest-filled","BrandPinterestFilled",uX);var mX=[["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"}]],Hb=ce("filled","brand-tiktok-filled","BrandTiktokFilled",mX);var hX=[["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"}]],Wb=ce("filled","brand-whatsapp-filled","BrandWhatsappFilled",hX);var xX=[["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"}]],Ub=ce("filled","brand-x-filled","BrandXFilled",xX);var IX=[["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"}]],zb=ce("filled","brand-youtube-filled","BrandYoutubeFilled",IX);var p1e="outline",Np={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},bX={},$b={fillRule:"evenodd"},yX=[["path",{...Np,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...$b,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],SX=[["path",{...Np,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",{...bX,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("")}]],wX=[["path",{...Np,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",{...Np,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",{...$b,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",{...$b,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("")}]],CX=ce("filled","brand-telegram-filled","BrandTelegramFilled",yX),vX=ce("filled","brand-line-filled","BrandLineFilled",SX),kX=ce("filled","brand-wechat-filled","BrandWechatFilled",wX),TX={instagram:{outline:kb,solid:Db},facebook:{outline:vb,solid:Bb},tiktok:{outline:_b,solid:Hb},youtube:{outline:Fb,solid:zb},x:{outline:Lb,solid:Ub},linkedin:{outline:Pb,solid:Nb},pinterest:{outline:Eb,solid:Mb},whatsapp:{outline:Rb,solid:Wb},telegram:{outline:Ob,solid:CX},line:{outline:Tb,solid:vX},wechat:{outline:Ab,solid:kX}};function yA({platform:e,iconStyle:o,size:t}){let r=TX[e][o];return gX(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var OX={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 _X({platform:e}){let{rows:o,saveLink:t}=wi(),{value:r,error:a}=o[e],[n,s]=wA(r),[l,d]=wA(!1),c=SA(),f=SA();PX(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}d(!0),await t(e,n),d(!1)},p=yk[e];return CA(Gb,{children:[fn(EX,{label:i(p),htmlFor:c,icon:fn(yA,{platform:e,iconStyle:"outline",size:18}),children:fn("input",{id:c,type:"text",inputMode:"url",value:n,placeholder:OX[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 vA({unavailable:e}){let{canSave:o}=wi();return!o&&e?fn(Gb,{children:e}):CA(Gb,{children:[fn("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),bc.map(t=>fn(_X,{platform:t},t))]})}import{jsx as In,Fragment as FQ,jsxs as BQ}from"react/jsx-runtime";import{useId as DQ,useMemo as NQ}from"react";import{useEasel as MQ}from"efficient-easel/easel";import{SettingsField as HQ,SettingsSwitch as WQ}from"efficient-easel/panel";import{EyeIcon as UQ}from"efficient-easel/icons";import{fieldShownInView as zQ}from"efficient-easel/fields";import{usePreviewDevice as $Q}from"efficient-easel/draw/client";import{jsx as un,Fragment as _Z,jsxs as AZ}from"react/jsx-runtime";import{createContext as RZ,useContext as LZ,useLayoutEffect as JA,useMemo as jp,useRef as QA,useState as Jb}from"react";import{useEasel as eR,useSelectedFields as FZ}from"efficient-easel/easel";import{fieldShownInView as BZ,Inspector as DZ,planFields as Qb}from"efficient-easel/fields";function kA({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 IZ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as gZ,deviceMetaOf as UA}from"efficient-easel/screen/lib/document/device-fields";import{jsx as wo}from"react/jsx-runtime";import{DirectionDownIcon as NX,DirectionIcon as MX,DirectionLeftIcon as HX,DirectionRightIcon as WX,DirectionUpIcon as UX,EntranceBounceIcon as zX,EntranceFadeIcon as $X,EntranceFlipIcon as GX,EntranceGlideIcon as jX,EntranceRevealIcon as KX,EntranceRiseIcon as VX,EntranceScaleIcon as qX,EntranceSpinIcon as YX,NoSymbolIcon as XX}from"efficient-easel/icons";import{NoControlMark as ZX,noControlField as JX}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as QX,group as eZ}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as oZ,ENTRANCE_FROM_DEFAULT as FA,ENTRANCE_KINDS as BA,ENTRANCE_KINDS_WITH_FROM as tZ,entranceAttrs as rZ,playEntrance as aZ,readEntrance as nZ}from"efficient-shell/format";import{jsx as Vb}from"react/jsx-runtime";import{ClockIcon as FX,DurationIcon as BX}from"efficient-easel/icons";import{MOTION_TIMING as AA}from"efficient-shell/format";import{useSelectedHost as DX}from"efficient-easel/easel";import{MOTION_EASING as AX,MOTION_TIMING as TA,motionSeconds as PA}from"efficient-shell/format";var jb="none",Mp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function k1e(e){return io(Mp,jb,e)}var Hp="_gLoop",Ai={field:"loop",is:"scroll"},Ri="left",Kb=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],RX={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function EA(e){return io(Kb,Ri,e)}function T1e(e){return e==="up"||e==="down"}function OA(e){return PA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var P1e=TA.loop.duration.default,LX=TA.loop.delay.default;function _A(e){return PA("loop","delay",e.loopDelay)}function E1e(e,o,t=LX){return`${RX[e]} ${o}s ${AX.loop}${t?` ${t}s`:""} infinite`}function Ws(e){let{min:o,max:t,step:r,default:a}=AA[e].duration;return Oo("Duration",Vb(BX,{}),o,t,r,a,"s")}function Us(e){let{min:o,max:t,step:r,default:a}=AA[e].delay;return Oo("Delay",Vb(FX,{}),o,t,r,a,"s")}function zs(e,o){let t=e.render,r=a=>{let n=DX();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>Vb(r,{...a})}}function Wp({readsSpeed:e}){return zs(Ws("loop"),(o,t)=>OA({loopDuration:o,speed:e?t?.speed:void 0}))}function Up(){return zs(Us("loop"),e=>_A({loopDelay:e}))}var RA="_gEntrance";var sZ={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},lZ={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},iZ={top:()=>wo(NX,{}),bottom:()=>wo(UX,{}),left:()=>wo(WX,{}),right:()=>wo(HX,{})},DA="Entrance",Yb=BA.filter(e=>e!=="none"),NA=e=>({any:[{field:ot.kind,in:e},{all:[{field:ot.kind,set:!1},{field:Tl,in:e}]}]}),LA=(e,o)=>Sl(Vo.slice(0,Vo.indexOf(e)+1).reverse().map(t=>we(ot.kind,t)),t=>({field:t,set:!0}),t=>t===ot.kind?NA(o):{field:t,in:o}),dZ={any:[NA(Yb),...Vo.slice(1).map(e=>({field:we(ot.kind,e),in:Yb}))]},cZ=Vo.flatMap(e=>[[[we(ot.from,e)],LA(e,tZ)],[[we(ot.duration,e),we(ot.delay,e)],LA(e,Yb)]]),fZ={none:()=>wo(XX,{}),fade:()=>wo($X,{}),rise:()=>wo(VX,{}),scale:()=>wo(qX,{}),glide:()=>wo(jX,{}),bounce:()=>wo(zX,{}),flip:()=>wo(GX,{}),reveal:()=>wo(KX,{}),spin:()=>wo(YX,{})},MA="data-entrance-tile";function pZ({kind:e}){let{attrs:o}=rZ(nZ(e,FA));return wo("span",{className:"sf-entrance-stage",[MA]:e,children:wo("i",{...o,children:fZ[e]()})})}var uZ=(e,o)=>{let t=e.querySelector(`[${MA}="${o}"] > i`);t&&aZ(t)},mZ="Effect",hZ=()=>ef(ot.kind,{label:DA,tileWord:mZ,values:BA,fallback:"none",word:e=>sZ[e],picture:e=>wo(pZ,{kind:e}),read:(e,o)=>Eh(e,o).kind,preview:uZ}),qb=(e,o)=>Qc(ot[e],o,(t,r)=>Eh(t,r)[e]),xZ=oZ.map(e=>({label:lZ[e],value:e,picture:iZ[e]()}));function Gt(){let e={[RA]:eZ(DA,{dot:dZ}),...hZ(),[Tl]:JX({type:"custom",render:()=>wo(ZX,{})},"always"),_cEntrance:QX(),...qb("from",Ss("From",wo(MX,{}),xZ,FA)),...qb("duration",Ws("entrance")),...qb("delay",Us("entrance"))};return _a(e,cZ)}import{DESIGN_GROUPS as Xb,SETTINGS_BUCKETS as bZ}from"efficient-easel/panel";import{BUCKET_KEY as It,DESIGN_GROUP_KEY as zp}from"efficient-easel/screen/lib/document/field-buckets";var Li=bZ;var yZ="Editor only \u2014 not shown live",Zb={"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",[yZ]:"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"},zA={"AlloyWheelsListing._gCards":"Design"},$A={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function HA(e,o,t){let r=`${e}.${o}`;return j($A,r)??j(zA,r)??j(Zb,t)}function SZ(e){return e==="Animation"?[It.Animation]:[It.Design,zp[e]]}function $p(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=UA(r),n=ia(a?a.inner:r),s=n?j(Zb,n.label):void 0;if(s)for(let l of SZ(s))o.includes(l)||o.push(l)}return o}var sAe=[...$p(Of({tablet:!0,siteSide:!0}),zf("full"),$f(),jf(),rg()),...Object.keys(Of({tablet:!0,siteSide:!0})),...Object.keys(zf("full")),...Object.keys($f()),...Object.keys(jf()),...Object.keys(rg())],lAe=[...$p(Hf()),...Object.keys(Hf())],iAe=[...$p(Uf()),...Object.keys(Uf())],dAe=[...$p(Gt()),...Object.keys(Gt())],cAe=Object.keys(vO()),fAe=Object.keys(kO()),wZ={"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)"},GA={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},jA={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Of({tablet:!0,siteSide:!0}),...zf("full"),...$f(),...jf(),...Hf(),...Uf(),...Gt()};for(let o of Object.keys(jA)){let t=ia(e[o]),r=t?j(Zb,t.label):void 0;if(!t||t.level!==2||!r||!GA[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 CZ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),vZ=new Map([[It.Design,"Content"],[It.Animation,"Animation"],...Xb.map(e=>[zp[e],e])]);function kZ(e){let o=`${e}.`;return Object.keys(wZ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function TZ(e,o){let t=UA(e),r=IZ(o);return t?gZ(t.tier,r):r}function PZ(e,o){let t=ia(o);return t?e==="Content"||e==="Animation"?iO(o,t.label):dO(o):o}function WA(e){return e==="Design"?Xb:["Animation"]}function KA(e,o){let t=[],r=new Set(kZ(o)),a=new Set,n=!1,s=null;for(let[p,h]of Object.entries(e)){let I=ia(h);if(CZ.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=vZ.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===It.Design||p===It.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)||Qe(jA,p)){let S=HA(o,p,I.label);if(I.level!==2||!S||!GA[S].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 ${S??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(p)&&a.add(p),t.push(s={place:S,entries:[]});continue}let C=HA(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 ${[...Xb,"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:TZ(h,I.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>ia(p)).map(([p])=>p));for(let[p,h]of[["BLOCK_KEY_GROUP",$A],["KEY_GROUP",zA]]){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=Li.filter(p=>WA(p).some(h=>c.has(h))),u={};for(let p of f){u[It[p]]=Mf(p,p===f[0]?f:null);for(let h of WA(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]]=QI(h));for(let C of I)for(let[S,T]of C.entries)u[S]=PZ(h,T)}}return u}function pAe(e){return It.Design in e?e:{[It.Design]:Mf("Design",null),[zp.Content]:QI("Content"),...e}}function uAe(e){return Li.some(o=>It[o]in e)}function mAe(e){let o=Li.filter(r=>It[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[It[r]]=Mf(r,r===o[0]?o:null);return t}import{jsx as EZ}from"react/jsx-runtime";import{EmptyState as OZ}from"efficient-shell/ui";function pn(){return EZ(OZ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as NZ}from"efficient-easel/draw/client";import{deviceField as MZ}from"efficient-easel/screen/lib/document/device-fields";var Gp=" text",VA="Text";function Fi(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function qA(e){return e.filter(Fi).map(o=>o.key)}function YA(e,o){let t=e.filter(a=>!Fi(a));if(t.length!==1)return null;let r=e.filter(Fi).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 XA(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 ZA(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var ey=new Map,Kp=new Set;function oR(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 HZ=Object.fromEntries(Li.map(e=>{let o=lO[e];return[e,un(o,{},e)]})),tR=RZ(null),WZ={_partBody:MZ("each",{type:"custom",render:()=>un(UZ,{})})};function UZ(){return un(_Z,{children:LZ(tR)})}function jt({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}=FZ(),p=jp(()=>a?{...c,...a.values}:c,[c,a?.values]),h=(ne,Ne)=>a?.keys.has(ne)?a.onChange(ne,Ne):u(ne,Ne),I=NZ(),{appState:g,config:C}=eR(ne=>ne),S=PT(I,C,g.data.content??[],g.ui.itemSelector),T=n===void 0?iA(d,t):WZ,y=jp(()=>{let ne=r?.length?Object.fromEntries(Object.entries(T).filter(([Ne])=>!r.includes(Ne))):T;return a?{...ne,...a.fields}:ne},[T,r,a?.fields]),b=ix(y,p,S),[P,H]=Jb(()=>new Set(Kp)),[E,W]=Jb(()=>new Set),O=QA(null),{bandRows:D,designBands:v,looseRows:_}=jp(()=>{let ne=new Map,Ne=new Set,je=[];for(let Z of Qb(b).rows){if(!Z.fold){Z.bucket==="Design"&&je.push(Z.name);continue}let _e=ne.get(Z.fold.key)??[];_e.push(Z.name),ne.set(Z.fold.key,_e),Z.bucket==="Design"&&Ne.add(Z.fold.key)}return{bandRows:ne,designBands:Ne,looseRows:new Map([["",je]])}},[b]),A=BZ({},I),F={key:Gp,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};JA(()=>{let ne=O.current?.parentElement;if(!ne)return;let Ne=oR(ne,D),je=new Set(qA(Ne)),Z=YA([F,...Ne.filter(_e=>v.has(_e.key))],oR(ne,_)[0].rows);Z&&je.add(Z),W(_e=>ZA(_e,je)?_e:je)});let z=jp(()=>XA(b,E),[b,E]),$=!Fi(F)&&!E.has(Gp)?{key:Gp,title:VA}:void 0,X=eR(ne=>ne.selectedItem)!==null,Q=a?.part??t??"",Le=`${l}:${Q}:${String(I)}`,[Ee,Ue]=Jb(()=>({tab:ey.get(Le)})),Ge=`${l}:${Q}`,Ie=QA(null),ke={...S,node:p},Oe=Qb(b,{values:p,context:ke}).buckets,De=kA({allTabs:X,remembered:ey.get(Le),inherited:Ie.current?.panel===Ge?Ie.current.tab:Ee.tab,buckets:Oe,hasText:A&&o>0}),ro=!A&&!Oe.includes(De)&&(Qb(ix(y,p,{...S,device:"desktop"}),{values:p,context:{...ke,device:"desktop"}}).buckets.includes(De)||De==="Design"&&o>0);JA(()=>{Ie.current={panel:Ge,tab:De}});let go=De==="Design";return un(tR.Provider,{value:n??null,children:un(tg.Provider,{value:a?p:null,children:AZ(DZ,{fields:z,values:p,onChange:h,readOnly:f,allTabs:X,showWhenContext:ke,context:{itemWord:s},tab:De,onTab:ne=>{ey.set(Le,ne),Ue({tab:ne})},tabIcons:HZ,idPrefix:l,ariaLabel:i("Section settings"),lead:go?e:null,leadFold:$,closedFolds:P,onFold:(ne,Ne)=>{Ne?Kp.delete(ne):Kp.add(ne),H(new Set(Kp))},children:[un("span",{ref:O,hidden:!0}),ro&&un(pn,{})]})})})}import{useMemo as TQ}from"react";import{useEasel as PQ}from"efficient-easel/easel";import{useSectionOps as EQ}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as gt}from"react/jsx-runtime";import{EntranceRevealIcon as qZ,NoSymbolIcon as YZ,PercentIcon as lR,ScrollFadeInIcon as XZ,ScrollFadeOutIcon as ZZ,ScrollMoveDownIcon as JZ,ScrollMoveUpIcon as QZ,ScrollParallaxIcon as eJ,ScrollZoomInIcon as oJ,ScrollZoomOutIcon as tJ,ZoomInIcon as rJ}from"efficient-easel/icons";import{customize as aJ,group as nJ}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as dR,SCROLL_EFFECTS_WITH_ZOOM as sJ,SCROLL_END as lJ,SCROLL_START as iJ,SCROLL_ZOOM as dJ}from"efficient-shell/format";import{parseFocal as jZ,formatFocal as KZ,readScroll as VZ}from"efficient-shell/format";import{phoneKey as zZ,tabletKey as $Z}from"efficient-easel/screen/lib/content/view-tiers";var GZ=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],rR=e=>[e,$Z(e),zZ(e)],NAe=[...new Set(GZ.flatMap(e=>rR(e.focus)))].sort();function aR(e,o){let[t,r,a]=rR(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"},nR="_gScroll",sR="_cScroll",Vp=lc(Object.values(Ao));function $s(e,o){return VZ(kl(e,Ao.effect,o),kl(e,Ao.zoom,o),kl(e,Ao.start,o),kl(e,Ao.end,o))}function qp(e){let o={desktop:$s(e,"desktop"),tablet:$s(e,"tablet"),phone:$s(e,"phone")};return Vo.every(t=>o[t].effect==="none")?null:o}function oy(e){let o=qv(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=jZ(a);return KZ(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function zAe(e,o){return oy(aR(e,o))}var cR="Scroll",cJ={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"},fJ={none:()=>gt(YZ,{}),"zoom-in":()=>gt(oJ,{}),"zoom-out":()=>gt(tJ,{}),"fade-in":()=>gt(XZ,{}),"fade-out":()=>gt(ZZ,{}),"move-up":()=>gt(QZ,{}),"move-down":()=>gt(JZ,{}),reveal:()=>gt(qZ,{}),parallax:()=>gt(eJ,{})},pJ="Effect",fR=dR.filter(e=>e!=="none"),iR=(e,o)=>Sl(Vo.slice(0,Vo.indexOf(e)+1).reverse().map(t=>we(Ao.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),uJ={any:Vo.map(e=>({field:we(Ao.effect,e),in:fR}))},mJ=Vo.flatMap(e=>[[[we(Ao.zoom,e)],iR(e,sJ)],[[we(Ao.start,e),we(Ao.end,e)],iR(e,fR)]]),hJ=()=>ef(Ao.effect,{label:cR,tileWord:pJ,values:dR,fallback:"none",word:e=>cJ[e],picture:e=>fJ[e](),read:(e,o)=>$s(e,o).effect}),ty=(e,o,t,r,a)=>Qc(e,Oo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>$s(n,s)[o]);function mn(){let e={[nR]:nJ(cR,{dot:uJ}),...hJ(),[sR]:aJ(),...ty(Ao.zoom,"zoom","Zoom",gt(rJ,{}),dJ),...ty(Ao.start,"start","Start",gt(lR,{}),iJ),...ty(Ao.end,"end","End",gt(lR,{}),lJ)};return _a(e,mJ)}import{jsx as Go}from"react/jsx-runtime";import{AccentIcon as xJ,ContrastIcon as IJ,EyeIcon as gJ,ExpandIcon as bJ,FinishIcon as yJ,ImagesIcon as SJ,NoSymbolIcon as uR,HoverLiftIcon as wJ,HoverNextImageIcon as CJ,HoverRotateIcon as vJ,HoverZoomIcon as mR,OpacityIcon as kJ}from"efficient-easel/icons";import{customize as TJ,describedAs as hR,group as PJ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as xR}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ro}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as EJ,noControlField as OJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Yp=e=>Ro("desktop",PJ("Hover",{dot:e})),IR=()=>Ro("desktop",TJ()),_J="What this does when a shopper points at it, or taps it on a phone.",AJ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",RJ="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.",LJ="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.",FJ="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",BJ="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.",DJ="Which of the product's pictures the card shows.",NJ="Same finish shows the photos of the finish the card shows, else the first group.",MJ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",HJ={none:()=>Go(uR,{}),nextImage:()=>Go(CJ,{}),rotate:()=>Go(vJ,{}),zoom:()=>Go(mR,{}),lift:()=>Go(wJ,{}),mono:()=>Go(IJ,{})};function ry(e,o){let t=xR({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(Wn[r]),picture:HJ[r]()})),fallback:o});return hR(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Wn[r]}))})}function gR(){return{[br]:Yp({field:it,in:Xm.filter(e=>e!=="none")}),[it]:Ro("desktop",{...ry(Xm,"none"),description:_J})}}function bR(e){let o=RC(e),t=qd(),r=_E(CC);return{[br]:Yp({any:[o,t]}),[no.kind]:Ro("desktop",{...zs(ry(bC,e),(a,n)=>_C(n??{},e)),description:BJ}),...ay(t),[yC]:OJ({type:"custom",render:()=>Go(EJ,{})},"always"),_cHover:IR(),[no.angle]:Ro("desktop",eo(zs(r,a=>AC(a)),o)),[no.duration]:Ro("desktop",eo(Ws("hover"),o)),[no.delay]:Ro("desktop",eo(Us("hover"),o))}}function ay(e){let o=mt("Type",Go(SJ,{}),vC.map(a=>({value:a,label:kC[a]})),Vd.kind),t=Ss("Group",Go(yJ,{}),TC.map(a=>({value:a,label:PC[a]})),Vd.group),r=Ss("Covers",Go(bJ,{}),EC.map(a=>({value:a,label:OC[a]})),Vd.cover);return{[no.mediaKind]:Ro("desktop",eo({...o,description:DJ},e)),[no.mediaGroup]:Ro("desktop",eo({...t,description:NJ},e)),[no.cover]:Ro("desktop",eo({...r,description:MJ},e))}}function ny(e,o="",t=oh.includes(o)){let r=th(e),a=MC(e);return{[br]:Yp(r),[no.kind]:sy(LC,e,AJ),...oh.includes(o)?ay(qd()):{},_cHover:IR(),...t?yR():{},[no.duration]:Ro("desktop",eo(Ws("hover"),a)),[no.delay]:Ro("desktop",eo(Us("hover"),a))}}function yR(e=!1){let o=a=>e?a:eo(a,NC()),t=Oo("Zoom",Go(mR,{}),Un.min,Un.max,Un.step,Un.min,Un.unit),r=Oo("Darken on hover",Go(kJ,{}),Qr.min,Qr.max,Qr.step,Qr.fallback,Qr.unit);return{[Jm.zoom]:Ro("desktop",o(t)),[Jm.darken]:Ro("desktop",o(r))}}function sy(e,o,t){let r=Ro("desktop",{...zs(ry(e,o),a=>BC({[it]:a},o,e)),description:t});return Object.assign(r,{[SR]:o})}var SR="sfPictureResting",pR=new WeakMap;function uRe(e,o,t){let r=e[no.kind],a=r?.[SR];if(!r||!a)return e;let n=o.props?.[it]==="nextImage",s=n?null:tc(t.appState,o.props?.id);if(!n&&!SC.includes(String(s?.type??"")))return e;let l=pR.get(e);return l||(l={...e,[no.kind]:sy(Zm,a,RJ)},pR.set(e,l)),l}var WJ="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.",UJ={none:()=>Go(uR,{}),[Vm]:()=>Go(xJ,{})},mRe=Ro("desktop",{...hR(xR({label:i("Hover effect"),options:qm.map(e=>({value:e,label:i(Ym[e]),picture:UJ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:qm.map(e=>({value:e,label:Ym[e]}))}),description:WJ}),zJ=Ro("desktop",{...Ss("Show",Go(gJ,{}),[{value:eh,label:"Always"},{value:Qm,label:"On card hover"}],eh),description:FJ});function wR(){let e={any:[th("none"),{field:it,is:Vm},{field:Ea,is:Qm}]},{[br]:o,[no.kind]:t,...r}=ny("none","",!0);return{[br]:Yp(e),[no.kind]:t,[Ea]:zJ,...ay(qd()),...r,...yR(!0)}}var hRe=sy(Zm,"none",LJ);import{jsx as Bi}from"react/jsx-runtime";import{isNodeList as KJ}from"efficient-easel/data";import{useEasel as VJ}from"efficient-easel/easel";import{hiddenInView as qJ,hiddenKeyOf as iy,hidePatch as YJ,slotChildName as XJ,slotChildRowName as ZJ}from"efficient-easel/draw";var Xp=null;function ly(e){Xp=e}function CR(){return!!(Xp&&Xp.state().lockHolder)}function hn(){return Xp!==null}var $J=new Set(["BookingBox","SubmitBox"]);function GJ(e){return typeof e=="string"&&$J.has(e)}var jJ=eT(GJ,CR);function Zp(e,o){return jJ(e)||Qx(o)}var Jp=(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 JJ}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as QJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var vR="notCardOfTemplate",kR={not:{context:vR,is:!0}},dy={any:[Xd,kR]},DRe={[vR]:(e,o)=>{let t=bh(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Qp(e){let o=e.props?.content;return KJ(o)?o:[]}var ou=(e,o)=>qJ(e.props??{},o),eQ=(e,o)=>e.props?.[iy(o)]!==void 0;function TR(e,o=()=>!1,t="desktop"){return Qp(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Qp(r).length&&!ou(r,t)?TR(r,o,t):o(r)?[]:[r])}function oQ(e,o,t,r="desktop"){let a=TR(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:!ou(l,r)}})}function eu(e,o,t){let r=a=>t==="desktop"?ou(a,t):eQ(a,t);return Qp(e).flatMap(a=>r(a)?o(a)?[]:[a,...eu(a,o,t)]:eu(a,o,t))}function tQ(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===iy("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=Qp(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let d=tQ(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 PR(e,o,t,r="desktop"){return cy(e,o,a=>r==="desktop"&&ou({props:a},r)===!t?{}:YJ(a,r,!t))}function rQ(e,o,t){return t==="desktop"?PR(e,o,!0,t):cy(e,o,()=>({[iy(t)]:void 0}))}function aQ(e,o,t,r,a,n){return XJ(e).trim()?t(e):Iv({ownerType:o,owner:r,fields:a,slot:n},Xt(e.props))?.label??t(e)}var nQ="This page is read-only.";function sQ({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:d="desktop"}){let c=p=>ZJ(p,n,gr,void 0,Jp),f=p=>Zp(p.type,p),u=oQ(e,p=>aQ(p,o,c,t,r,a),f,d);return u.length?Bi(vs,{parts:u,changed:eu(e,f,d).length>0,shown:p=>u.find(h=>h.id===p)?.shown??!0,disabledReason:l?nQ:void 0,onPress:(p,h)=>s(I=>PR(I,p,h,d)),onReset:()=>s(p=>eu(p,f,d).reduce((h,I)=>rQ(h,String(I.props.id),d),p))}):Bi(QJ,{})}function lQ(){try{let e=VJ(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=bh(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:Sv(e.appState,r),slot:yv(e.appState,t.props?.id)??void 0}}catch{return null}}function iQ({readOnly:e,view:o}){let t=lQ(),r=ea();return t?Bi(sQ,{...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}})}}):Bi(vs,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function NRe(e){return eo(JJ(e,{type:"custom",render:({readOnly:o})=>Bi(iQ,{readOnly:o,view:e})}),kR)}import{customize as gQ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as fy}from"react/jsx-runtime";import{DirectionIcon as dQ,LoopMarqueeIcon as cQ,NoSymbolIcon as fQ}from"efficient-easel/icons";import{customize as pQ,describedAs as uQ,group as mQ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as hQ}from"efficient-easel/screen/lib/document/effect-tiles";function py(){return wO("Direction",Kb,Ri,"A marquee cannot run diagonally, so the corners are not answers.",fy(dQ,{}),SO)}var uy=e=>mQ("Loop",e?{dot:e}:void 0),xQ={none:()=>fy(fQ,{}),scroll:()=>fy(cQ,{})};function IQ(){let e=hQ({label:i("Loop"),options:Mp.map(({value:o,label:t})=>({value:o,label:i(t),picture:xQ[o]()})),fallback:jb});return uQ(e,{type:"select",label:"Loop",options:Mp.map(({value:o,label:t})=>({value:o,label:t}))})}function ER(){return{[Hp]:uy(Ai),loop:IQ(),_cLoop:pQ(),scrollDirection:eo(py(),Ai),loopDuration:eo(Wp({readsSpeed:!1}),Ai),loopDelay:eo(Up(),Ai)}}var OR={field:Ea,set:!0};function bQ(){let e=wR(),o=[br,it],t=Gn(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Ea),Xd),r=Gn(t,[Ea],OR),a=Gn(r,[it],dy);return Gn(a,[br],{any:[dy,OR]})}function _R(e,o=""){switch(e){case"section":case"block":return{...Gt(),...mn()};case"box":return{...Gt(),...mn(),...ER(),...bQ()};case"picture":return{...Gt(),...mn(),...ny(FC(o),o)};case"textPart":return{...Gt(),...mn(),...gR()};case"cards":return{...Gt(),...mn(),...bR(wC(o))};case"marquee":return{...Gt(),...mn(),[Hp]:uy(),_cLoop:gQ(),scrollDirection:py(),loopDuration:Wp({readsSpeed:!0}),loopDelay:Up()}}}import{ENTRANCE_STATE_ATTR as yQ,entranceAttrs as SQ,scrollAttrs as wQ}from"efficient-shell/format";var RR={},my="_partMotion",hy=[...ic,it,no.duration,no.delay,...Vp];function uLe(e){return _s(e,my)}function xn(e,o){return hp(e,my,o)}var CQ=new Set([ot.kind,it,Ao.effect]);function LR(e,o,t,r){let{[t]:a,...n}=xn(e,o),s=r==null||r===""||r==="none"&&CQ.has(t)?n:{...n,[t]:r};return xp(e,my,o,Object.keys(s).length?s:null)}function xy(e){return{entrance:dc(e),hover:gC(e),scroll:qp(e)}}function FR(e){let o=xy(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function BR(e,o){let{attrs:t,style:r}=SQ(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(yQ)}}function DR(e,o){let{attrs:t,style:r}=wQ(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 vQ=4;function Iy(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&vQ)&&(o=t);return o}var kQ="data-sf-part-host";function NR(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(kQ)&&!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 tu="data-sf-part-lift",AR="sf-part-lift";function MR(e){if(e.getElementById(AR))return;let o=e.createElement("style");o.id=AR,o.textContent=N_(`[${tu}]`).join(`
5
+ `),e.head.appendChild(o)}var HR=new Map,OQ=e=>{let o=HR.get(e);return o||HR.set(e,o=KA(_R(e),`part:${e}`)),o},_Q=new Set(hy);function Gs(e,o,t){let{getItemById:r,getSelectorForId:a}=PQ(f=>f),n=EQ(),s=r(e)?.props??{},l=xn(s,o),d=JSON.stringify(l),c=TQ(()=>Object.fromEntries(hy.map(f=>[f,l[f]])),[d]);return{part:o,fields:OQ(t),values:c,keys:_Q,onChange:(f,u)=>{let p=a(e),h=r(e);if(!p||!h)return;let I=LR(h.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...h,props:I})}}}import{Fragment as AQ,createElement as RQ}from"react";import{deviceField as gy}from"efficient-easel/screen/lib/document/device-fields";var Lo=()=>({type:"custom",render:()=>RQ(AQ)});var by={words:Lo(),sourceNote:Lo(),style:Lo(),font:Lo(),italic:Lo(),fontSize:gy("each",Lo()),lineHeight:Lo(),letterSpacing:Lo(),paragraphSpacing:Lo(),padding:Lo(),align:gy("each",Lo()),letterCase:Lo(),fixedSizeHint:gy("each",Lo()),regionNote:Lo(),regionStyle:Lo()},LQ=["fontSize","align"];function WR(e){return LQ.includes(e)}var UR={showTicker:Lo(),items:Lo()};var GQ="root:default-zone";function zR({heroId:e}){let{appState:o,dispatch:t}=MQ(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=NQ(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:rA.map(I=>({text:I}))},[n]),d=DQ(),c=$Q(),f=h=>zQ(UR[h],c),u=Gs(e,aA,"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:GQ,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return In(jt,{motion:u,body:BQ(FQ,{children:[!f("showTicker")&&!f("items")&&In(pn,{}),f("showTicker")&&In(HQ,{label:i("Show ticker"),labelId:d,icon:In(UQ,{}),action:In(WQ,{checked:s,onChange:h=>p({showTicker:h}),ariaLabelledBy:d})}),f("items")&&In(ig,{label:lg.label,icon:lg.icon,items:l,placeholder:"item",onChange:h=>p({tickerItems:h}),markup:!0})]})})}import{jsx as ee,Fragment as Ui,jsxs as bt}from"react/jsx-runtime";import{useContext as uee,useEffect as yy,useRef as mee,useState as iL}from"react";import{FieldSelect as hee,InspectorField as xee,fieldShownInView as Iee}from"efficient-easel/fields";import{InertHint as IL,SettingsField as gee}from"efficient-easel/panel";import{InspectorUpLevel as cu}from"efficient-easel/chrome";import{StylesIcon as bee,TypeIcon as yee}from"efficient-easel/icons";import{useEasel as See}from"efficient-easel/easel";import{TextPartPanel as dL}from"efficient-easel/copy";import{Button as wee,IconButton as Cee,Tooltip as vee}from"efficient-shell/ui";import{jsx as jR,jsxs as jQ}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as KQ}from"efficient-easel/strings";import{COPY_CELLS as js,COPY_CELL_LENGTHS as $R,CopyBox as VQ,lengthCellUnits as qQ}from"efficient-easel/copy";import{PaddingYIcon as YQ}from"efficient-easel/icons";import{onDesktopWords as XQ}from"efficient-easel/screen/lib/document/box-fields";var GR=KQ.copy.cells,ZQ={kind:"spacing"},JQ=["left","center","right","justify"];function ru(e,o,t,r="desktop"){let a=Ii(e),n=qg(r),s=e[n]??e.size??o.sizePx,l=G_(e,r),d=(f,u,p,h,I)=>{let g=xt[p];return qQ({preset:f,row:u,table:oi,unit:e[g],value:e[p],tier:r,styleValue:h,label:i(I),onPick:(C,S)=>t({[g]:C??null,[p]:S??null}),onChange:(C,S)=>t({...S?{[g]:S.unit??null}:{},[p]:C??null})})},c={key:"padding",name:i("Padding"),icon:jR(YQ,{}),unit:"px",step:Gg,shiftStep:10,min:zg,max:$g};return[{...js.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...d(js.fontSize,$R.fontSize,n,Math.round(o.sizePx),GR.fontSize),...n==="size"?{}:{reset:{detail:l?XQ(f=>i(f),`${l.px}px`,l.view):void 0}}},{...js.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...js.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...js.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...d(js.paragraphSpacing,$R.paragraphSpacing,"paragraphSpacing",0,GR.paragraphSpacing)},{...c,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...d(c,ZQ,"padding",o.paddingPx,"Padding")}]}function KR({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=ru(n,s,l),I=wg(r,t);return jQ("div",{className:"sf-part-textbox",children:[u,jR(VQ,{value:e,onChange:o,multiline:t,placeholder:c,ariaLabel:f,rules:Gd,tools:I,barShows:p?"focus":"always",colors:r?d:[],colorNameOf:tt,align:a?{value:n.align??s.align,allow:JQ,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 cL}from"efficient-easel/draw/client";import{jsx as au,Fragment as QQ,jsxs as eee}from"react/jsx-runtime";import{Button as VR,Dialog as oee}from"efficient-shell/ui";function qR({styleName:e,onCancel:o,onConfirm:t}){return au(oee,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:eee(QQ,{children:[au(VR,{variant:"secondary",onClick:o,children:i("Cancel")}),au(VR,{variant:"primary",onClick:t,children:i("Update style")})]}),children:au("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 kee}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as Tee}from"efficient-easel/draw/client";import{shownTier as iu}from"efficient-easel/screen/lib/document/device-fields";import{jsx as tee}from"react/jsx-runtime";import{createContext as ree,useContext as aee,useMemo as nee,useState as see}from"react";var lee={partStyle:null,setPartStyle:()=>{}},YR=ree(lee);function nFe({children:e}){let[o,t]=see(null),r=nee(()=>({partStyle:o,setPartStyle:t}),[o]);return tee(YR.Provider,{value:r,children:e})}function XR(){return aee(YR)}import{TEXT_FIELD_MARKER as Pee,viewKeyAt as Eee}from"efficient-easel/draw";import{useSectionOps as Oee}from"efficient-easel/screen/lib/document/use-section-ops";var Di="@name",ZR="@body",JR="@value",QR={[Di]:"Name",[ZR]:"Body",[JR]:"Value"},iee={TimelineTrack:{"entries.date":Di,"entries.title":Di,"entries.blurb":ZR},Footprint:{"offices.city":Di},Stats:{"items.label":Di,"items.value":JR}};function dee(e){let{key:o,row:t}=zt(e);return t?`${o}.${t.rowKey}`:null}function Ni(e,o){if(!e)return o;let t=dee(o);return t?j(iee,e)?.[t]??o:o}import{useEaselHost as _ee}from"efficient-easel/screen/lib/host";function cee(e){let o=new Set([...Object.keys(j(of,e)??{}),...j(tf,e)??[]]);for(let[t,r]of Object.entries(j(Rx,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var fee={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},eL={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},oL="Open",tL={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 Ks(e){let o=e?.source?.slug;return Se(o)}function Mi(e){return j(fee,e)??null}function rL(e,o){let t=Mi(e);return t&&cee(e).includes(o)?t:null}function nu(e){let o=e?.menu?.id;return Se(o)}var Hi={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)]"},pee={tag:{label:"Tag",follows:"Labels",builtIn:Kn(Hi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Kn(Hi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Kn(Hi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Kn(Hi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Kn(Hi.link),writable:!0}},aL=pee;var su={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var SFe=Qd,nL={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 sL={SpecTable:nL,FAQ:av,Collections:aL,Contents:su};function lL(){return zd("efficient.section-text-regions",()=>new Map)}function OFe(e){let o=lL();for(let[t,r]of Object.entries(e)){if(Qe(sL,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 lu(e){return e?j(sL,e)??lL().get(e)??null:null}function Sy(e){return e?i(e):null}function fL(e){return e.kind==="role"?Km[e.role]:e.kind==="custom"?"Custom":null}function Aee(e){let o=Ir(e.role);return o?{kind:"role",role:o}:null}function Ree(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 du(e,o,t,r){return Aee(xi(e,o))??Ree(t,r)}function Lee(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function pL(e){return[{value:Wi,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 Wi="";function Fee({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Wi,a=[{label:i("No style"),value:Wi},...iC.map(n=>({label:i(Km[n]),value:n}))];return ee(hee,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Wi?null:n),renderOption:n=>n.value===Wi?bt(Ui,{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:Sy(fL(e))}),valueText:n=>Sy(fL(e))??n?.label??""})}var gL=["regionNote","regionStyle"],Bee=Object.keys(by).filter(e=>!gL.includes(e));function bL(e,o){return!e.some(o)}function Dee({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=bt(Ui,{children:[t,r,a]});return bt("div",{className:"sf-part-panel",children:[ee(cu,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function fu({source:e,slug:o,menuId:t}){let r=_ee(),a=tL[e],n=!a.needsSlug||!!o;return ee("div",{className:"sf-note sf-note--source",children:bt(IL,{children:[i(eL[e]),n?bt(Ui,{children:[" ",ee(wee,{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(oL)})]}):null]})})}var uL=4,Nee=120;function mL(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 hL({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 bt("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?bt(Ui,{children:[c,d("regionStyle")&&ee("p",{className:"es-field-hint",children:mL(e)})]}):a?d("regionStyle")?ee(Ui,{children:ee(gee,{label:i("Style"),icon:ee(bee,{}),hint:mL(e),children:ee(Fee,{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(fu,{source:n,slug:s}):null,bL([...gL,"sourceNote",...c?["fontSize"]:[]],p=>d(p)&&(p!=="sourceNote"||!!n))&&ee(pn,{}),ee(cu,{inline:!0,name:i("Page"),onSelect:l})]})}function Mee({onBack:e}){return bt("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(cu,{inline:!0,name:i("Page"),onSelect:e})]})}function Hee({onBack:e,partId:o,why:t}){return bt("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:bt("code",{children:[o," \u2014 ",t]})}),ee(cu,{inline:!0,name:i("Page"),onSelect:e})]})}function yL({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=See(V=>V),l=Oee(),d=JO(),{partStyle:c}=XR(),{fonts:f,textStyles:u}=ge(),p=uee(kee),h=!p?.capabilities?.hasSiteTheme,{persist:I}=us({themeFromDocument:h,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),g=Cp({themeFromDocument:h,persist:I}),[C,S]=iL(!1),T=Tee(),y=V=>(iu(T)!=="tablet"||WR(V))&&Iee(by[V],T),b=mee(null),P=a(e),H=n(e),E=P?s.components[P.type]:void 0,{key:W,row:O}=zt(o),D=E?.fields?.[W],v=O?Es(D,O):D,_=Xf(e,o),A=P?.props??{},F=ks(v),z=Nf(v),$=ug(v),X=P?Mi(P.type):null,Q=P?rL(P.type,W):null,Le=O?di(A[W],O):A[W],Ee=!!O&&!(Array.isArray(A[W])&&O.index<A[W].length);yy(()=>{ZO(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[_]);let[Ue,Ge]=iL(0);yy(()=>Ge(0),[_]);let Ie=!!P&&!Ee&&(!H||!v);yy(()=>{if(!Ie||Ue>=uL)return;let V=setTimeout(()=>Ge(ao=>ao+1),Nee);return()=>clearTimeout(V)},[Ie,Ue]);let ke=Ie&&Ue<uL,Oe=Gs(e,Ni(P?.type,o),"textPart");if(!P||Ee)return ee(Mee,{onBack:t});let De=lu(P.type),ro=De?wl(De,o):null;if(De&&ro){let V=c?.partId===_?c:null,ao=De[ro],Ot=ao.writable===!0&&!!H,Wr=ka=>{H&&l.replaceComponent(H.zone,H.index,{...P,props:rn(A,o,"role",ka)})};if(Ot&&rv(ao)){let ka=xi(A,o),Zw=Ta=>{if(!H)return;let Gm=A;for(let[_5,A5]of Object.entries(Ta))Gm=rn(Gm,o,_5,A5??null);l.replaceComponent(H.zone,H.index,{...P,props:Gm})},P5=Lr(g.saved,g.old),E5=Ug(ka)??"",O5=ru(ka,V?.base??xL,Zw,iu(T)).filter(Ta=>Ta.key==="fontSize"&&y(Ta.key));return ee(jt,{motion:Oe,body:ee(hL,{region:ao,sizePx:V?.base.sizePx??null,face:du(A,o,V,f),base:V?.base??null,source:X,slug:Ks(A),onBack:t,shows:y,ownLook:K_(ka),sizedStyle:ee(dL,{style:y("style")?{value:E5,options:pL(P5),onChange:Ta=>Zw(Ta?{textStyle:Ta}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:O5})})})}return ee(jt,{motion:Oe,body:ee(hL,{region:ao,sizePx:V?.base.sizePx??null,face:du(A,o,V,f),base:V?.base??null,onFollowStyle:Ot?Wr:void 0,source:X,slug:Ks(A),onBack:t,shows:y})})}if(!H||!v)return ke?ee("div",{className:"sf-note","aria-busy":"true"}):ee(Hee,{onBack:t,partId:_,why:H?"no field":"no selector"});let go=V=>{l.replaceComponent(H.zone,H.index,{...P,props:V})},ne=V=>{if(la(V).hidden!==la(Le).hidden||!F){let ao=O?fg(A,W,O,V):{...A,[W]:V};ao&&go(ao);return}Qf({node:P,propKey:o,kind:F,zone:H.zone,index:H.index},la(V).text,l.replaceComponent)},Ne=Le,je=c?.partId===_?c:null,Z=je?.styleOwner,_e=Z?a(Z.owner):null,lt=Z&&_e?n(Z.owner):null,fo=!!(Z&&_e&&lt),M=fo?_e.props??{}:A,Re=fo?V=>l.replaceComponent(lt.zone,lt.index,{..._e,props:V}):go,ye=fo?Z.kind:Ni(P?.type,o),po=xi(M,ye),Fe=[{partKey:ye,face:du(M,ye,je,f),sizeGroup:je?.sizeGroup??null,base:je?.base??xL,style:po}],Et=Lee(Fe,V=>V.sizeGroup),ur=ds(je?.inks),Ye=(V,ao)=>{let Ot=M;for(let Wr of Fe)Ot=rn(Ot,Wr.partKey,V,ao);Re(Ot)},mr=V=>V?Ye("textStyle",V):ya({textStyle:null,role:null}),ya=V=>{let ao=M;for(let Ot of Fe)for(let[Wr,ka]of Object.entries(V))ao=rn(ao,Ot.partKey,Wr,ka??null);Re(ao)},Dn=F==="text"||F==="textarea",{text:Nn,hidden:hr}=la(Le),Hr=v?.[Pee]?.label??o,Sa=hr?i("Show {label} on the slide",{label:i(Hr)}):i("Hide {label} on the slide",{label:i(Hr)}),ml=bt("div",{className:"sf-field-head",children:[ee(yee,{}),ee("span",{className:"sf-field-label sf-field-label--inline",children:i(Hr)}),Dn&&ee(vee,{content:Sa,children:ee(Cee,{"aria-pressed":hr,"aria-label":Sa,onClick:()=>ne({text:Nn,hidden:!hr}),children:hr?ee(cL,{name:"eye-off",size:14}):ee(cL,{name:"eye",size:14})})})]}),wa=!z&&$,Wd=!!F&&(nO(v)||z||hr||!$),hl=du(M,ye,je,f),Ud=hl.kind==="role"?hl.role:null,Ca=Ug(po)??l1(Ud),Xw=Lr(g.saved,g.old),w5=Object.entries(po).filter(([V,ao])=>V!=="role"&&V!=="textStyle"&&ao!==void 0).length,C5=()=>{let V=M;for(let ao of Fe){let{role:Ot,textStyle:Wr}=ao.style;V=U_(V,ao.partKey),Ot&&(V=rn(V,ao.partKey,"role",Ot)),Wr&&(V=rn(V,ao.partKey,"textStyle",Wr))}Re(V)},va=Ca,v5=i1(Fe[0].style),k5=va?Xw.find(V=>V.id===va)?.name??va:"",T5=()=>{S(!1),va&&(g.write(d1({saved:g.saved,old:g.old,styleId:va,values:nb(Fe[0].style)}),!0),C5())};return bt(Dee,{sectionName:E?.label??P.type,onBack:t,tabs:V=>ee(jt,{motion:Oe,body:V}),textEditor:y("words")?ee("div",{ref:b,className:"sf-part-text",children:Wd?ee(KR,{text:Nn,onTextChange:V=>ne(Dn?{text:V,hidden:hr}:V),multiline:Kf(F),markup:F!=="plainText",styled:!1,style:Fe[0].style,base:Fe[0].base,setValue:ya,colors:ur,placeholder:Sy(OO(v))??void 0,ariaLabel:i(Hr),head:ml,typedOnCanvas:d===_}):F?Dn?ml:null:ee(xee,{field:v,name:o,value:Ne,onChange:ne,id:`sf-part-${e}-${o}`})}):void 0,children:[Q&&y("sourceNote")&&ee(fu,{source:Q,slug:Ks(A),menuId:nu(A)}),wa&&ee(dL,{style:y("style")?{value:Ca??"",options:pL(Xw),onChange:V=>mr(V||null),changed:w5>0,onEditStyles:r,onUpdateStyle:va&&v5?()=>S(!0):void 0}:void 0,font:y("font")?{value:po.font??"",styleValue:Mn(Fe[0].base.fontKey)?.label,options:Ur.map(V=>({label:V.label,value:V.key})),onChange:V=>Ye("font",V||null)}:void 0,italic:y("italic")?{value:po.italic,styleValue:Uee(u,Ca),onChange:V=>Ye("italic",V??null)}:void 0,cells:ru(Fe[0].style,Fe[0].base,ya,iu(T)).filter(V=>y(V.key)),align:y("align")?Wee(po,Fe[0].base.align,iu(T),Ye):void 0,letterCase:y("letterCase")?{value:po.case??"",styleValue:Fe[0].base.case,onChange:V=>Ye("case",V||null)}:void 0}),C&&va&&ee(qR,{styleName:k5,onCancel:()=>S(!1),onConfirm:T5}),wa&&Et===null&&y("fixedSizeHint")&&ee(IL,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),bL(Bee,V=>y(V)&&(V==="words"||(V==="sourceNote"?!!Q:V==="fixedSizeHint"?wa&&Et===null:wa)))&&ee(pn,{})]})}function Wee(e,o,t,r){let a=Eee("align",t),n=$_(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function Uee(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var xL={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Kt,jsxs as Oy,Fragment as Yee}from"react/jsx-runtime";import{useCallback as Xee,useRef as Zee,useState as Gi}from"react";import{InspectorIconButton as Jee}from"efficient-easel/chrome";import{useEasel as Qee}from"efficient-easel/easel";import{PopupMenu as eoe,PopupMenuItem as ooe,PopupMenuLabel as gu}from"efficient-shell/ui";import{CopyToPageIcon as toe}from"efficient-easel/icons";import{useEaselSession as roe}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as aoe}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as noe}from"efficient-easel/draw";import{currentEaselSession as zee}from"efficient-easel/screen/lib/session";var $ee={general:!0,commerce:!0,service:!0};function wy(e){let o=e?.sets;return o?Object.fromEntries(tC.map(t=>[t,o.includes(t)])):$ee}function Cy(e=zee()){return wy(e.blocks)}import{isBackendError as Vs}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as _L}from"efficient-easel/screen/lib/session";var pu=Cc(),vy=pu.set;function uu(e,o){vy(e,o)}function mu(e,o){let t=pu.get(e);vy(e,o??(t==="live"?"changed":t))}function hu(e,o){vy(e,o??"live")}function SL(e){return pu.get(e)}function wL(e){return pu.use(e)}function CL(e,o){return e==="live"&&o?"changed":e}function ky({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 vL(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var kL="SharedSection",Gee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,zi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},$i=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function TL(e){if(e?.type!==kL)return null;let o=e.props?.section;return typeof o=="string"&&Gee.test(o)?o.toLowerCase():null}function PL(e){let o=[];for(let t of zi(e)){let r=TL(t),a=$i(t);r&&a&&o.push({refId:a,section:r})}return o}function xu(e){let o=zi(e)[0];return o&&typeof o=="object"&&$i(o)?o:null}function jee(e,o){return{type:kL,props:{id:e,section:o}}}function EL(e,o){let t=new Map,r=new Set,a=!1,n=zi(e).map(s=>{let l=TL(s),d=$i(s);if(!l||!d||r.has(l))return s;let c=xu(o.get(l)),f=$i(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 OL(e,o,t){let r=new Map,a=!1,n=zi(e).map(s=>{let l=$i(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=zi(c).slice(1),u=xu(c);return r.set(d.section,u===s?c:{...c,content:[s,...f]}),a=!0,d.reference??jee(d.refId,d.section)});return{page:a?{...e,content:n}:e,docs:r}}function Ey(e){return!!(e?.publish&&e.liveState)}function Kee(e,o){if(!Ey(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 Vee(e,o){return async(t,r)=>{try{await VP()}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"?nf({state:"live",changes:[]}):Tr(0),{version:r??null}}}function Py(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(uu(n.id,n.live),aT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(d=>(mu(a,d.live),nT(a,d.videoFrames),Tr(),d)),rereadVersion:e.version?a=>e.version(a):void 0,publish:Ey(t)?Vee(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(hu(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 qee(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=SL(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)},S=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=S(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=xu(S(O.layout)),v=typeof D?.props?.id=="string"?D.props.id:null;return!D||!v||!D.type?null:(P(O.id,O.layout,O.layout_updated_at,O.title),c.set(v,{section:O.id,refId:b()}),u.set(O.id,O.used_on),D)},usedOn:O=>u.get(O)??null,learn:O=>{for(let D of O){u.set(D.id,D.used_on);let v=d.get(D.id);v&&(v.title=D.title);let _=f.get(D.id);_&&f.set(D.id,{..._,title:D.title})}g({})}},W=async(O,D)=>{for(let[v,_]of O){let A=d.get(v),F=JSON.stringify(_);if(!(!A||F===A.savedJson||f.get(v)?.problem==="lock"))try{let z=await e.save(v,{layout:_},{version:A.version,clientId:D??""});mu(v,z.live),A.layout=_,A.version=z.version,A.savedJson=F,C(v,null)}catch(z){Vs(z,"changed-elsewhere")?C(v,"conflict"):Vs(z,"lock-taken")?C(v,"lock",z.holder??void 0):C(v,"save")}}O.size&&Tr(),g({})};return{resolve:async O=>{if(ly(O===Nt?null:H),qh(O===Nt?null:E),d=new Map,c=new Map,f=new Map,u=new Map,O===Nt)return t.resolve(O);let D=!1,[v,_]=await Promise.all([t.resolve(O),e.load({slug:Nt,...o}).catch(()=>(D=!0,null))]);if(_&&!Gl(v?.layout)){uu(_.id,_.live);let Q=S(_.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=S(v.layout),F=PL(A),z=await Promise.all(F.map(Q=>e.load({id:Q.section,...o}).catch(()=>null)));F.forEach((Q,Le)=>{let Ee=z[Le];Ee?(uu(Ee.id,Ee.live),P(Q.section,Ee.layout,Ee.version,"")):(d.delete(Q.section),f.set(Q.section,{section:Q.section,title:"",problem:"load"}))});let $=EL(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=Qk($.working,n.layout);return n.savedJson=JSON.stringify(Vh(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?Vh(D,A.layout):{page:D,chrome:null},z=OL(F.page,c,y()),$=await t.saveLayout(O,z.page,v,_);if(await W(z.docs,_),!A)return $;let X=JSON.stringify(F.chrome);if(!F.chrome||X===A.savedJson||p.lockHolder)return $;try{let Q=await e.save(A.id,{layout:F.chrome},{version:A.version,clientId:_??""});mu(A.id,Q.live),Tr(),A.layout=F.chrome,A.version=Q.version,A.savedJson=X,l=!0,g({conflict:null,saveFailed:!1})}catch(Q){Vs(Q,"changed-elsewhere")?g({conflict:Q.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Vs(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);hu(_.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);hu(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){Vs(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){Vs(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 Iu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:Lk(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 $Be(e,o,t){return e.update(o,Fk(t))}function GBe(e,o=oo(),t=Cy(),r={}){let a=_L(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=Ey(o.site)?o.site:void 0,u=Iu(o.pages),p=Py(u,e,f),h=c?qee(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,...AL(p.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Kee(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function jBe(e,o=oo(),t=Cy()){let r=_L(o),a=o.templates,n=a?Iu(a.pages(e)):{list:()=>Promise.reject(new Error(Ty)),load:()=>Promise.reject(new Error(Ty)),save:()=>Promise.reject(new Error(Ty))};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},...Py(n,void 0),...AL(Py(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function AL(e){return{resolve:o=>(ly(null),qh(null),e(o))}}var Ty="This editor's backend has no website templates.";function soe(e,o,t){let r=aoe(e,void 0,o);return t?.(r)??r}function RL({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Gi(!1),[d,c]=Gi(null),f=roe(),u=Qee(E=>E.config.components),[p,h]=Gi(!1),[I,g]=Gi(null),C=Zee(null),[S,T]=Gi(null),y=Xee(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{c(await oo(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),b=()=>{if(s){l(!1);return}let E=C.current?.getBoundingClientRect();E&&T({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),c(null),h(!1),y(),l(!0)},P=(d??[]).filter(E=>E.slug!==o),H=async E=>{if(I)return;g(E.slug);let W=soe(e,u,f.documentHooks?.storedNode),O=await a(()=>loe(oo(f).pages,E,W));g(null),l(!1),n?.(O?i("Duplicated to \u201C{name}\u201D",{name:E.label}):i("Couldn\u2019t duplicate the section \u2014 please retry"),O?"success":"error")};return Oy(Yee,{children:[Kt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Kt(Jee,{buttonRef:C,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:b,children:Kt(toe,{size:15})})}),s&&S&&Kt(eoe,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>l(!1),children:Oy("div",{role:"menu","aria-label":i("Duplicate to page"),children:[Kt(gu,{children:i("Duplicate to page")}),p?Kt(gu,{children:i("Couldn\u2019t load pages")}):d===null?Kt(gu,{children:i("Loading\u2026")}):P.length===0?Kt(gu,{children:i("No other pages")}):P.map(E=>Oy(ooe,{role:"menuitem",disabled:I!==null,onClick:()=>{H(E)},children:[Kt("span",{className:"min-w-0 flex-1 truncate",children:E.label}),I===E.slug?Kt("span",{className:"shrink-0 text-xs",children:i("Copying\u2026")}):E.draft&&Kt("span",{className:"shrink-0 text-xs",children:i("draft")})]},E.id))]})})]})}async function loe(e,o,t){let r=Iu(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===noe);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 Bse}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Dse}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as xze,isSelectionMode as sw}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as Nse}from"efficient-easel/draw/client";import{jsx as ji,jsxs as ioe}from"react/jsx-runtime";import{SettingsDrill as doe}from"efficient-easel/panel";import{UiIcon as coe}from"efficient-easel/draw/client";var foe="Not shown on the page";function poe({part:e,onOpen:o}){return ji(doe,{name:i(e.label),preview:e.offPage?i(foe):e.preview||i("Empty"),offPage:e.offPage,status:e.hidden?ji("span",{className:"sf-entry-eye",role:"img","aria-label":i("Hidden on the page"),children:ji(coe,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function _y(e){return e.filter(o=>!o.identifier)}function LL({parts:e,onOpen:o,heading:t=!0}){let r=_y(e);return r.length?ioe("div",{className:"sf-entries",children:[t?ji("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>ji(poe,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Mse,ROOT_ZONE as P2}from"efficient-easel/draw";import{HEADER_TYPE as Zo,FOOTER_TYPE as qe,newNodeId as uoe}from"efficient-easel/draw";function bu(){return{type:Zo,props:{id:uoe(Zo)}}}var FL=[{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"}],moe=FL.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),hoe="FooterGroup",BL="blocks";function DL(e){return e===qe?FL:e===hoe?moe:null}function yu(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...g0}),e("FooterPayment",{...ff})]}function Ay(e){switch(e?.type){case Ve:case We:return i("On every page");case Zo:case qe:return i("On every page \xB7 old style");default:return null}}var NL=()=>null,ML=()=>i("Changed on every page");function Su(e,o){let t=Jv(e,o);if(t)return t;let r=Vk(e,o);if(!r)return null;let a=r.group===Ve;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 Im,Fragment as Ise,jsxs as gse}from"react/jsx-runtime";import{useState as bse}from"react";import{createNode as yse,newId as Sse}from"efficient-easel/data";import{useEasel as wse}from"efficient-easel/easel";import{Banner as Cse,Button as aw}from"efficient-shell/ui";import{useScreenDocument as vse}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as xoe}from"efficient-easel/data";import{hiddenKeyOf as Ioe}from"efficient-easel/screen/lib/content/view-hide";var wu="Flex",goe={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},boe={FooterPayment:"PaymentLogosBlock"},yoe=e=>{let{id:o,...t}=e;return t},HL=e=>typeof e=="string"?e:"",qs={sm:12,md:13,lg:15},WL={sm:{mark:16,words:qs.sm},md:{mark:20,words:qs.md}},Soe="md",UL=1.5,woe={size:13,lineHeight:UL,width:280},Coe=14,voe=40,koe=e=>e==="center"||e==="right"?e:"left";function Toe(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 Poe(e,o,t){let r=t(e,yoe(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:zL(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=cv(e,r.props);return a===r.props?r:{...r,props:a}}function zL(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))xoe(s)&&(a[n]=zL(s,o,t));return{...r,props:a}})}function $L(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=j(goe,e.type)??j(boe,e.type);if(n)return[Poe(n,r,o)];switch(e.type){case"FooterLogo":{let s=koe(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(pk*((q(r.widthPct)??100)/100)),href:"/",align:s,...Toe(r)}),d=HL(r.tagline).trim();return d?[l,o("Text",{text:d,tone:"dim",align:s,_partStyles:{text:{...woe}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&Qe(qs,r.size)?r.size:Soe;return[o("Text",{text:HL(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:qs[s],lineHeight:UL}}})]}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?{[Ioe("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(wu,{direction:r.direction==="horizontal"?"row":"column",gap:Ka("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...ah,content:s.flatMap(l=>$L(l,o,t))})]}default:return[]}}function Ki(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(wu,{direction:"row",wrap:!0,share:"equal",gap:voe,content:f}),s=[],l=[];for(let f of a){let u=$L(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(wu,{direction:"column",gap:Coe,align:"stretch",...ah,content:u}))}(l.length||!s.length)&&s.push(n(l));let d=o(wu,{direction:"column",content:[o("LegalLineBlock")]}),c=Gk(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 Ooe}from"efficient-easel/draw";function Cu(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 ODe(e){return Eoe[Vi(e)]}var Eoe={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function Vi(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 lr=oe,ir=Me;function bn(e){if(e.theme)return ho(e.theme);let o=e.site?.themePresets;return o?ho({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function _oe(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var jL=new Set(["id"]),gn={},KL=[],Aoe={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"]},Roe=Object.keys(Aoe),qi=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ProcessSteps",...Roe,"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(Qe(gn,o)&&j(gn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);gn[o]=t}}function ca(e){return j(gn,e)}function Loe(e){return Qe(gn,e)&&KL.includes(e)}function VL(e,o=qi){return Qe(gn,e)&&(o.includes(e)||Loe(e))}function WDe(e){let o=j(wr,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 Ry=e=>Ooe(e),Ze=e=>Ry(e).text.trim()!=="";function Foe(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 Boe=e=>e==="heading"?$r():e==="eyebrow"?Sr():{};function Doe(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 Noe(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 GL(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 Moe(e){let o=new Set([...jL,"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 Ly=e=>tv(e.headPlacement)==="own-box";function Hoe(e){return Ly(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function Woe(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 Uoe(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 zoe(e,o,t){if(!t.press)for(let r of Uoe(e)){let a=Woe(o,r);if(a!==void 0)return a}}function Ys(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:Hoe(r))??zoe(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=Moe(o),p=0,h=(b,P)=>({type:b,props:{...P,id:`${n}~${b}-${++p}`}}),I=(b,P,H,E,W,O,D)=>{if(W){for(let _ of b??[]){let A=typeof _=="string"?_:_[0];H[A]!==void 0&&D(A,`nothing \u2014 the ${E} has no parts, so it is not drawn`)}return}let v=typeof P=="function"?P(r,t):P??{};return GL(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]:[],W=typeof b.props=="function"?b.props(r,t):b.props??{},O=E.map((F,z)=>{let $=F??{},X=b.item?.($,z,r)??{},Q=S(X.reverse?[...b.parts].reverse():b.parts,$,!1,`item ${z+1}: `);return b.flat?X.props?Q.map(Le=>({...Le,props:{...Le.props,...X.props,id:Le.props.id}})):Q:[h(lr,{name:`${b.name} ${z+1}`,...W,...X.props??{},[ir]: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"),Cu(E.map(z=>z??{}),F.of,F.of).map((z,$)=>{let X=z.items.map(Ie=>Ie.item),Q=F.parts?S(F.parts,F.head?.(X,r)??{},!1,`group ${$+1}: `):[],Le=z.items.map(Ie=>O[Ie.index]),Ee=F.perRow?.(X.length,r),Ue=Number.isInteger(Ee)&&Ee>=1?Ee:1,Ge=[];if(F.perRow&&Ue<Le.length)for(let Ie=0;Ie*Ue<Le.length;Ie++)Ge.push(Le.slice(Ie*Ue,(Ie+1)*Ue).flat());return h(lr,{name:`${F.name} ${$+1}`,...F.props??{},[ir]:[...Q,h(lr,{name:`${F.itemsName} ${$+1}`,...F.itemsProps?.(X.length,r)??{},[ir]:Ge.length?Ge.map((Ie,ke)=>h(lr,{name:`${F.rowName??`${F.itemsName} row`} ${ke+1}`,...F.rowProps??{},[ir]:Ie})):Le.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(lr,{name:`${b.rowName??`${b.name} row`} ${F+1}`,..._,[ir]:[...z,...Array.from({length:$},(X,Q)=>h(lr,{name:`Empty ${Q+1}`,...b.rowFiller,[ir]:[]}))]}))}return A},S=(b,P,H,E)=>{let W=[],O=(v,_)=>H?c(v,_):void 0,D=v=>H?f[v]:void 0;for(let v of b)if(!(v.when&&!v.when(r,H?void 0:P)))switch(v.kind){case"text":{let _=Ry(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=Boe(v.role??"body"),{_partStyles:F,...z}=A,$=Doe(A,v.styleFrom?{...v.style,...v.styleFrom(r,t)}:v.style,D(v.key),v.props?.align);W.push(h("Text",{text:v.mark==="accentLead"?Foe(_.text):v.mark==="accentItalic"?bl(_.text):_.text,...z,...v.props??{},...$,..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Text block: its words${_.hidden?", hidden":""}`);break}case"button":{let _=Ry(P[v.key]);if(!_.text.trim()){O(v.key,"nothing \u2014 no words, no button"),O(v.href,"nothing \u2014 no button to link"),typeof v.variant=="object"&&O(v.variant.key,"nothing \u2014 no button to style");break}let A=typeof P[v.href]=="string"&&P[v.href]?P[v.href]:"#",F={...v.style??{},...D(v.key)??{}};W.push(h("ButtonBlock",{label:_.text,href:A,...typeof v.props=="function"?v.props(P,t):v.props??{},...Noe(v.variant,P),...Object.keys(F).length?{_partStyles:{label:F}}:{},..._.hidden?{_hidden:!0}:{}})),O(v.key,`${E}Button block: its words`),O(v.href,`${E}Button block: its link`),typeof v.variant=="object"&&O(v.variant.key,`${E}Button block: its Style`);break}case"image":{let _=P[v.key];if(typeof _!="string"||!_){O(v.key,"nothing \u2014 no picture, no block"),v.alt&&O(v.alt,"nothing \u2014 no picture to describe");break}let A=v.alt&&typeof P[v.alt]=="string"?P[v.alt]:"";W.push(h("ImageBlock",{src:_,alt:A,...v.props??{}})),O(v.key,`${E}Image block: its picture`),v.alt&&O(v.alt,`${E}Image block: its alt text`);break}case"list":{W.push(...C(v,P,O));break}case"group":{let _=S(v.parts,P,H,E),A=I(v.box,v.props,P,`${v.name} Box`,!_.length&&!v.keepEmpty,E,O);A&&W.push(h(lr,{name:v.name,...A,[ir]:_}));break}case"block":{let _=v.parts?S(v.parts,P,H,E):[],A=I(v.box,v.props,P,`${v.type} block`,!!v.parts&&!_.length&&!v.keepEmpty,E,O);A&&W.push(h(v.type,{...A,...v.slot?{[v.slot]:_}:{}}));break}case"core":{let _=v.as??e.type,A={...v.headless?{}:{headPlacement:"own-box"},...v.props??{}},F=v.keep==="rest"?Object.keys(P).filter($=>!u.has($)&&!($ in A)):v.keep;for(let $ of F)P[$]!==void 0&&(A[$]=P[$],O($,`the ${_} block inside the Box`));if(v.keep==="rest"){for(let X of Object.keys(v.props??{}))P[X]!==void 0&&!u.has(X)&&O(X,`nothing \u2014 the ${_} block inside the Box has the row's own value`);P.headPlacement!==void 0&&O("headPlacement",`the ${_} block inside the Box: own-box`);let $=Object.fromEntries(Object.entries(f).filter(([X])=>!u.has(X)));Object.keys($).length&&(A._partStyles=$)}for(let[$,X]of Object.entries(v.rename??{}))P[$]!==void 0&&(A[X]=P[$],O($,`the ${_} block inside the Box: ${X}`));if(v.derive){Object.assign(A,v.derive.props(P,t));for(let $ of v.derive.reads)P[$]!==void 0&&O($,`the ${_} block inside the Box`)}let z=typeof v.slots=="function"?v.slots(P,t):v.slots??{};for(let[$,X]of Object.entries(z))A[$]=X.flatMap(Q=>"kind"in Q?C(Q,P,O):g([Q]));W.push(h(_,A));break}}return W},T=(b,P)=>{let H=P===0?"Box":`${b.name} Box`,E=S(b.parts,r,!0,P===0?"":`${H}: `),W=typeof b.boxProps=="function"?b.boxProps(r,t):b.boxProps??{},O=GL(b.box??[],W,r,(D,v,_)=>c(D,_?`nothing \u2014 the old value draws nothing (${H}: no ${v})`:`${H}: ${v}`),t);return{type:lr,props:{name:b.name,...O,[ir]:E,id:_oe(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))jL.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 qL(e,o=KL,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=Ys(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as qoe,BLOCK_SIZE_KEYS as Yoe,parseBlockWidthFit as ku,phoneKey as XL,parseTextFit as vu,tabletKey as ZL,viewKeyAt as JL}from"efficient-easel/draw";import{sideLengthAt as Xoe}from"efficient-easel/screen/lib/content/length-units";import{VIEW_DESKTOP_MIN as $oe,VIEW_TABLET_MIN as Goe}from"efficient-easel/screen/lib/content/view-tiers";var Fr={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"},nt=Fr,joe=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Koe=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(joe([nt.fit,nt.fitTablet,nt.fitPhone]))};
12
+ var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
13
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${zr};
14
+ var TABLET_MIN = ${Goe}, DESKTOP_MIN = ${$oe};
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(nt.fitTablet)}, ${JSON.stringify(nt.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(nt.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(nt.fit)}, ${JSON.stringify(nt.fitTablet)}, ${JSON.stringify(nt.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(nt.min)}, ${JSON.stringify(nt.minTablet)}, ${JSON.stringify(nt.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(nt))},
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);`,Voe="storefront-fit-words";function YL(e){let o=e.createElement("script");return o.id=Voe,o.textContent=Koe,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Zoe="sf-block-size",Yi=["width","minWidth","maxWidth"],Tu=e=>`${e}Unit`,fa=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,Joe={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"}},tF={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"}},Qoe={desktop:tF.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"}},ete={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},ote={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},tte={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},rte="data-sf-min-width",QL={two:{desktop:"wide",phone:Ph.phone},three:Ph},ate={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)]"]}},Fy={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)]"]}},nte={minWidth:{desktop:Fy.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:Fy.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)]"]}},ste=["widthFit",...Yi],eF={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},By={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!"},lte={desktop:By.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!"},rF={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"},ite={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:rF.phone},aF={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},oF={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:aF.phone};function XDe(e){let o=Dy(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>ete[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function ZDe(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=Dy(e),n=c=>o?QL.three[c]:QL.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[tte[c]]=s[c].join(" "));return s.min.length&&(d[rte]=s.min.join(" ")),d}function Dy(e){let o=ste.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?ku(n)!==void 0:fa(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=Tu(a),s={};for(let d of t)s[JL(a,Cr(d))]=fa(e[a]?.[d]),s[JL(n,Cr(d))]=e.units?.[a]?.[d];let l=d=>Xoe(s,{length:a},n,Cr(d),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(ku,e.widthFit)}}function JDe(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(_=>vu(e.textFit?.[_])==="ellipsis"),r=o&&!t,a=r?Qoe:tF,n=r?nte:Fy,s=r?lte:By,l=[],d={},c={},{three:f,sides:u,lengthPerSide:p,mode:h}=Dy(e),I=p("width");for(let _ of u){let A=h[_];!A||A==="fit"||(l.push(f?a[_][A]:Joe[_][A]),A==="fixed"&&(d[ote[_]]=He(I[_]?.value??qoe.fallback,I[_]?.unit)))}for(let _ of Yi.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]:ate[_][F];d[$]=He(z.value,z.unit),l.push(X)}}let g=vu(e.textFit?.desktop),C=vu(e.textFit?.phone),S=_=>{let A=fa(e.minFont?.[_]);return A===void 0?void 0:e.units?.minFont?.[_]==="vw"?`${A}vw`:String(A)},T=S("desktop"),y=S("phone"),b=vu(e.textFit?.tablet),P=b!==g||C!==void 0?b:void 0,H=S("tablet"),E=H!==T||y!==void 0?H:void 0,W=fa(e.maxWidth?.desktop),O=fa(e.maxWidth?.tablet)??W,D={desktop:W!==void 0,tablet:O!==void 0,phone:(fa(e.maxWidth?.phone)??O)!==void 0},v=(_,A,F)=>{if(A!=="line"&&A!=="ellipsis")return;let z=_==="tablet"?void 0:_,$=(X,Q)=>F||!z?X[_]:Q[z];if(A==="line"){l.push($(s,eF));return}if(l.push($(By,eF)),l.push($(ite,rF)),f&&!F&&_==="desktop")for(let X of["desktop","tablet"])D[X]||l.push(oF[X]);else D[_]||l.push($(oF,aF))};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[Fr.fit]=g),P&&(c[Fr.fitTablet]=P),C&&(c[Fr.fitPhone]=C),T!==void 0&&(c[Fr.min]=T),E!==void 0&&(c[Fr.minTablet]=E),y!==void 0&&(c[Fr.minPhone]=y),!r&&(P||E!==void 0)&&(c[Fr.edge]=""),l.length===0&&Object.keys(c).length===0?null:{className:[Zoe,...l].join(" "),style:d,attrs:c}}function QDe(e){if(fa(e.maxWidth?.desktop)!==void 0)return!0;let o=ku(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function eNe(e){return["desktop","tablet","phone"].some(o=>{let t=ku(e.widthFit?.[o]);return t==="fixed"||t==="fill"||fa(e.minWidth?.[o])!==void 0})}function oNe(e){let o={};for(let t of Yoe){let r=e[t],a=e[ZL(t)],n=e[XL(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=Tu(t),l={desktop:e[s],tablet:e[ZL(s)],phone:e[XL(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var nF={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as fte}from"react/jsx-runtime";import{SITE_SIDE as dte}from"efficient-easel/screen/lib/content/length-units";var sF="sideSpace",yn=dte,nNe=[{value:"box",label:"Box"},{value:yn,label:"Site"}],sNe="box",lNe="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function lF(e){return e===yn?yn:"box"}function iNe(e){return e===yn?yn:void 0}import{isNodeList as cte}from"efficient-easel/data";var Ny=new Set(["FAQ"]);function iF(e,o){if(!Ny.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:cte(t)}var cF={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}},fF=new Set(Object.keys(cF));function Hy(e,o){return o?.innerPadding??j(cF,e)}var Pu=e=>Hy(e)??{},pte={DetailRows:{top:100,bottom:100}},My=(e,o)=>o.innerPadding?void 0:j(pte,e);var pF=new Set(["Flex","Text","Heading","ImageBlock"]),ute=new Set(["Divider"]),mte=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),dF=new Set(["ProductGrid"]);function Wy(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=Kl({...cI(a,jl,t),sideSpace:lF(a.sideSpace)}),s=r(a),l=fk(a);return n?fte(mc,{className:l?`${n.className} ${l}`:n.className,style:n.style,children:s}):s}}var yNe={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!mte.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=My(o,e)?void 0:Hy(o,e);if(r){e.fields={...e.fields,...t.sidesPaddingFields({keys:aa,unitKey:Ga,fallback:r,tablet:!0,siteSide:!0})};return}My(o,e)||dF.has(o)||(e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})})},draw(e,o){let t=My(o,e);if(!(!t&&Hy(o,e))){if(t){let r=e.render,a=t;e.render=n=>{let s=G0(n,a);return r({...n,padTop:s.top,padBottom:s.bottom})};return}if(dF.has(o)){Wy(e);return}pF.has(o)||ute.has(o)||Wy(e,o==="Flex"?r=>Sx(r.bgImage):Ny.has(o)?r=>iF(o,r):void 0,!0)}}},hte=["Heading","Text","ImageBlock"],xte=["LogoBlock"],SNe={name:"blockPadding",applies:(e,o,t)=>(hte.includes(e)||xte.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){pF.has(o)||Wy(e,void 0,!0)}};import{parseHexColor as Ite}from"efficient-shell/format";import{convertLength as gte}from"efficient-easel/screen/lib/content/length-units";var dr=(e,o,t,r)=>o===t?e:gte(e,o,t,r,{min:0,max:200,step:4}),Sn={textFit:"line",textFitPhone:"wrap"},wn={...K,[_t]:""},{label:YNe,href:XNe,...bte}=nF.defaultProps,vo=bte,Cn={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},J={...ch,sectionAccent:0},Zs={sectionAccent:-1},ae=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",_l.unitKey,...dE,...aE,"anchor",Tl,...cs,...ic,...Vp,...lc(["widthFit",...Yi,...Yi.map(Tu)]),...Object.values(lo)],Xs="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:Xs,fullWidth:Xs,pageWidth:Xs,backgroundWidth:Xs,contentWidth:Xs,contentMax:Xs},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=so(e.sectionPaddingUnit),l=so(e.sectionPaddingUnitTablet),d=so(e.sectionPaddingUnitPhone),c=(u,p,h,I)=>{let g=q(u);if(g!==void 0)return g+dr(I,"px",d,"mobile");let C=p===void 0?{n:h,unit:s}:{n:p,unit:l};return dr(C.n,C.unit,d,"mobile")+dr(I,"px",d,"mobile")},f=(u,p,h,I,g)=>p!==void 0?{[u]:p+dr(g??I,"px",l,"tablet")}:g===void 0?{}:{[u]:dr(h,s,l,"tablet")+dr(g,"px",l,"tablet")};return{sectionPaddingTop:t+dr(o.top,"px",s,"desktop"),sectionPaddingBottom:r+dr(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 xe=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 yt(e,o){let t={};for(let[a,n]of dI)e[a]!==void 0&&(t[n]=e[a]);let r=Vl(e,Pu(o));return{...t,sectionPaddingTop:r.top,sectionPaddingBottom:r.bottom}}var pa=e=>[...dI.map(([o,t])=>[o,t,(r,a)=>yt(a,e)[t]]),["sectionPaddingTop","sectionPaddingTop",(o,t)=>yt(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>yt(t,e).sectionPaddingBottom]],yte={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},ZNe=e=>o=>Ze(o.props[e])?[yte]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:K,...o?{style:o}:{}}),Eu=e=>({kind:"group",name:"Chip",props:{...L,...yr("main"),...Do(6,14)},parts:[pe(e,{color:"background",...U("label",12),weight:600,letterSpacing:.16})]}),uF=e=>e.background!=="transparent",Ste=(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},Xi={align:"right",alignPhone:"left"},wte=(e,o,t)=>{let r=a=>Ste(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}},Zi=(e,o,t,r={})=>wte(e,o,{...wn,...Xi,...r,_partStyles:{text:{...jo,color:"labels",...t,case:jo.case,...Xi}}}),Js=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:bn(o)?.selected??0,mF="var(--site-surface-2)",Ou=(e,o)=>bn(o)?.themes[Js(e.sectionAccent??0,o)],Jo=(e,o)=>(t,r)=>{if(!o?.(t,r))return yr(e);let a=Ou(t,r)?.[e];return a?{fillColor:a}:{}},_u=(e,o)=>ua(e,o)>=0,hF=e=>e.startsWith("#")&&Ite(e)!==null,Au=(e,o,t)=>{let r=e?.trim();if(r&&hF(r))return{fillColor:r};let a=gx(r);if(a)return yr(a);let n=r===mF?Ou(o,t):void 0;return n?{fillColor:ac(n)}:{}},Ru=e=>{let o=e?.trim();return!o||o==="transparent"||o===Mo||gx(o)||o===mF||hF(o)?void 0:"it paints a colour that no Box Fill can hold"},ua=(e,o)=>{let t=bn(o)?.themes;return t&&uF(e)?Av(t,Js(e.sectionAccent,o)):-1},ma=(e,o,t)=>{let r=ua(o,t);return r>=0?r:e},Uy=(e,o)=>{let t=bn(o)?.themes,r=t?Rv(t,Js(e,o)):-1;return r>=0?r:e},vn=(e,o)=>{let t=ua(e,o);return t>=0?{sectionAccent:t}:{}},ha=(e,o)=>uF(e.props)&&ua(e.props,o)<0?[{kind:"band-preset",page:Js(e.props.sectionAccent,o)}]:[],Qs=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},d=Cr(o),c=(p,h,I)=>{let g=so(h),C=Cv(p,g,"spacing",I);return C===null?null:dr(C,g,"px",d)},f=c(a,n,ct)??mf(a),u=o==="desktop"?f:c(s,l,ra)??hf(s)??xf(f);return dr(Math.min(r,u),"px",t,d)},Ji=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),Qi=e=>({top:0,right:0,bottom:0,left:0,...e}),zy=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({...L,...Ji,...Jo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],no.kind,no.duration,no.delay],parts:r});import{phoneKey as eS,readHidable as oS}from"efficient-easel/draw";import{isNodeList as are,newId as nre}from"efficient-easel/data";function xF(e){return Math.min(4,Math.max(2,e??3))}var o2e={eyebrow:"Label",title:"Section *heading.*"},Cte={template:iv()},IF={label:"Cards",fields:Cte,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var a2e={eyebrow:"Highlight",title:"Key *features.*"},n2e=()=>[{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")}],gF={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var vte="plain",bF=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],kte="line",Tte={KeyFeatures:"filled"};function ed(e){return j(Tte,e)??vte}function yF(e,o){return io(bF,ed(o),e)}function d2e(e){return io(bF,kte,e)}var $y="cardPlace";function p2e(e){return e[$y]==="top-line"?"top-line":""}var u2e="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",m2e="data-sf-top-line",Pte=new Set(["Cards",Lt]);function h2e(e){return typeof e=="string"&&Pte.has(e)}var Ete=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 x2e(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Ete(e)?{...e,top:0}:e}var I2e="outsideFramedCard";function Ote(e,o){let t=e.trim();if(!Lu(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 y2e(e){return e.startsWith("/")||Lu(e)}function Lu(e){return/^(?:https?:)?\/\//i.test(e.trim())}var od=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function SF(e,o){return Ote(e,o)?{...od}:{}}function S2e(e){return typeof e=="string"?e.trim():""}var w2e="data-sf-box-link",wF="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",C2e="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",_te="data-sf-box-jump";function Ate(e){return`sf-box-jump-${e}`}function v2e(e,o){return e===!0?Bc(o):""}function Rte({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 k2e(e){let o=`[${_te}="${e}"]`,t=`.${Ate(e)}`,r=`[id="${e}"]:target`;return Rte({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 Lte=["selected","highlighted"],CF="data-sf-card-state",_2e="pointer-events-none absolute inset-0 border border-accent",A2e="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",R2e="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",L2e="absolute inset-y-0 left-0 w-[3px] bg-accent",F2e="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",B2e="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",vF=e=>{let o=Gv.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},Fte={[vF("muted")]:`var(${vF("fg")})`};function Bte(e){return e?.selected===!0}function Dte(e){return e?Lte.filter(o=>e[o]===!0).join(" "):""}function D2e(e,o="frame"){let t=Dte(e);return t?o==="frame"&&Bte(e)?{[CF]:t,className:"relative isolate",style:{...Fte}}:{[CF]:t,className:"relative"}:{}}var Nte={highlighted:!0},Mte={},Fu="badge";function N2e(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Cl(t,r)}))}function M2e(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Fu||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function H2e(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,[Fu]:s===a?t:""})),states:e.map((n,s)=>s===a?Nte:Mte)}}function W2e(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function U2e(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 z2e="data-sf-card-press",kF=`${wF} appearance-none bg-transparent border-0 p-0 m-0`,$2e=`${kF} cursor-pointer`,G2e=kF;var Bu={sectionBorder:{top:0,right:1,bottom:1,left:0},...yr("background")},Hte={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Du=e=>({direction:"row",columns:e,columnsTablet:e,...Hte}),TF=(e={})=>Ke(Fu,{...K,tag:"p",[$y]:"top-line"},e,!0),PF=(e=YC)=>{let o=XC(e);return{...o,props:{...Bu,...o.props},slots:{[Me]:[...o.slots?.[Me]??[],TF()]}}},Gy=(e=!1)=>{let o=JC(e);return{...o,props:{...Bu,...o.props}}},Wte={name:"name",time:"time",note:"note",price:"price"},Ute={textStyle:"body-1",...U("body",16),weight:500,lineHeight:1.5},zte={...jo,...U("label",12),letterSpacing:.18,lineHeight:1.5},$te={textStyle:"body-1",...U("body",14),lineHeight:1.6},Gte={textStyle:"body-1",fontRole:"heading",...U("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},jte={...U("label",11),letterSpacing:.25},Kte={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Vte=e=>({direction:"row",columns:e,...Kte}),Z2e=[...new Set([...Object.keys(Du(1)),...Object.keys(Vte(1))])],J2e=()=>{let e=Wte,o={tag:"p",widthFit:"fill"};return{type:oe,props:{...L,name:"Card",justify:"between",gap:16,gapPhone:16,...Do(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...yr("surface"),shadow:!0},slots:{[Me]:[TF(jte),{type:oe,props:{...L,name:"Words",gap:8,gapPhone:8},slots:{[Me]:[Ke(e.name,{...K,...o},Ute),Ke(e.time,{...se,...o},zte),Ke(e.note,{...se,...o},$te)]}},Ke(e.price,{...K,...o},Gte)]}}};import{tabletKey as AF}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as Nu}from"efficient-easel/draw";var Mu=zr,jy=Nu,EF=960,OF=zr,_F={min:Mu,max:1600,step:10},Hu="stackBelow";function rMe(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<_F.min||e>_F.max))return Math.round(e)}var qte=e=>`sf-stack-${e}`,Yte=e=>`sf-stack-${e}-gutter`,Xte=e=>`sf-stack-${e}-outer`,el=e=>`${e-.02}px`;function aMe(e,o={}){let t=o.gutter!==!1,r=`.${qte(e)}`,a=`.${Yte(e)}`,n=`.${Xte(e)}`,s=[];if(e>Mu){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,d=Math.min(e,Nu);s.push(`@media (min-width:${Mu}px) and (max-width:${el(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:${Mu}px) and (max-width:${el(d)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>Nu&&s.push(`@media (min-width:${Nu}px) and (max-width:${el(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${el(e)}){${a}${a}{padding-inline:${rr.frame}}}`),t&&e<EF&&s.push(`@media (min-width:${e}px) and (max-width:${el(EF)}){${a}${a}{padding-inline:${at}}}`),e>OF&&s.push(`@media (min-width:${OF}px) and (max-width:${el(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(wr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var td={standard:64,editorial:60,simple:36,essay:28,shelf:20},Zte={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function Jte(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=j(wr,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 Uu(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=Wu.get(r);if(a)return a;let n=BF({num:e,title:o,description:t,link:!1});return Wu.set(r,n),n}var Qo={[Hu]:jy},Vy={top:0,right:0,bottom:1,left:0},et=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),zu=(e,o,t={})=>pe(e,{...U("label",o),...t}),$u=(e,o)=>({kind:"text",key:e,role:"heading",props:K,style:{textStyle:"heading-2",...o}}),qy=800,Qte=jy,Yy=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...se,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:qy}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...U("body",o),...r,...a}}),FF={...vo,align:"right",alignPhone:"left",...Cn},Ky=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:FF,style:{...Rt(e),color:"labels"}}),RF=(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"?ere(Sr()):{},...t.style}}}}},ere=e=>e._partStyles.text??{},ol={widthFitPhone:"fill"};function Xy(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),...ol}):{...o,...ol}}}return{...e,parts:e.parts.map(Xy)}}function ore(e,o){let t=j(Zte,e),r=t==="accent",a=zu(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=$u(o.title,r?{...et("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...U("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:Vy,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{...L,...ol,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{...L,...ol,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[RF(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{...L,...ol},parts:[s,...l?[RF(o.title,`Three ranges,
319
+ one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{...L,...ol,gap:12,maxWidth:340,maxWidthPhone:qy},parts:[...o.description?[Yy(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[Ky(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...FF,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:Ky(14).style}}}]:[]]}]}}function Gu(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>Gu(t,o))}:e}function BF(e){let o=$u(e.title,{...et("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:Vy,sectionPaddingBottom:32,...Qo},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...Qo},parts:[{kind:"group",name:"Number",props:{...L,sectionPaddingBottom:8},parts:[{...zu(e.num,13),props:{...K,...Sn}}]},Gu(o,[e.title])]},{kind:"group",name:"Words",props:{...L,sectionPaddingBottom:4,maxWidth:360,[AF("maxWidth")]:Qte,maxWidthPhone:qy},parts:e.description?[Yy(e.description,14,void 0,{lineHeight:1.5},{[AF("align")]:"left"})]:[]}]}}function LF(e,o){return{kind:"group",name:"Header",props:{...L,gap:16,gapPhone:16},parts:[zu(e.num,13),$u(e.title,o)]}}var DF=[["para",{...Rt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...U("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...U("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...U("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...U("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],tre=e=>DF.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function rre(e){return{kind:"group",name:"Header",props:{...L,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:Vy,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{...L,direction:"row",align:"end",gap:24,share:"content"},parts:[zu(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...DF.map(([o,t])=>({...$u(e.title,t),when:r=>tre(r)===o}))]},{kind:"group",name:"Words",props:{...L,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[Yy(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[Ky(13)]:[]]}]}}function ju(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 Wu=new Map,Zy={...U("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function St(e){let o=Wu.get(e);if(o)return o;let t=Jte(e),r=kn(e),a=r==="editorial"?BF(t):r==="simple"?LF(t,Zy):r==="essay"?LF(t,{...U("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?rre(t):ore(e,t);return Wu.set(e,a),a}var Tn={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Mo,Stats:void 0};var rd=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),YF=e=>o=>xF(q(o.columns)??q(e.columns)),sre="inline is the head the row draws; an own-box node is skipped (`skip`)",lre={kind:"text",key:"title",role:"heading",props:K,style:{textStyle:"heading-3",...Zy}},NF={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Vu=e=>{let o=ar(typeof e.background=="string"?e.background:void 0,Tn.Series);return o&&o!=="transparent"?o:void 0},Ku=e=>Vu(e)===Mo,ire={...L,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},MF={...L,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[eS("share")]:"content"},dre=e=>{let o=Vu(e)?1:2;return{...L,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},Jy={...Rt(12),letterSpacing:.22,lineHeight:1.5},HF=e=>Ze(e.viewLabel)&&!oS(e.viewLabel).hidden,wt=e=>oS(e).text?.trim?.()??"",qu=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Se(o)!==void 0)),tS=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),cre=tS([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),fre=tS([["label","Label"],["value","Value"],["body","Card body",!0]]),ad=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Lt,headless:!0,keep:s,derive:{reads:n,props:l=>rc(r(l),t)},slots:(l,d)=>({[No]:[a(l,d)]})}]}),XF=e=>Array.isArray(e.cards)?e.cards:[],WF={top:76,bottom:76,topPhone:76,bottomPhone:76},ZF=e=>(Array.isArray(e.items)?e.items:[]).map(o=>qu({title:wt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Cl(Ih(o),t),...o})),pre=e=>ZF(e).some(o=>Se(o.href)!==void 0),JF=[{key:fh.label,label:"Feature label"},{key:fh.href,label:"Link",kind:"link"}],UF=e=>yF(e.eyebrowLook,"KeyFeatures")==="filled",ure={name:"Key Features",boxProps:(e,o)=>({...J,direction:"column",gap:44,gapPhone:32,...Jo("surface")(e,o),...rd(1,0,1,0),...de(e,WF)}),box:[...ae,...xe(WF)],parts:[{kind:"group",name:"Heading",props:{...L,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[eS("share")]:"content"},parts:[{...Eu("eyebrow"),when:UF},{...pe("eyebrow"),when:e=>!UF(e)},lre]},ad("Cards",e=>({...L,...Du(YF(gF.defaultProps)(e))}),JF,ZF,e=>Gy(pre(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"}},zF={top:72,bottom:72,topPhone:72,bottomPhone:72},$F=(e,o)=>({...Bu,...Jo("background")(e,o)}),GF=e=>{let o=YF(IF.defaultProps)(e);return{...L,...Du(o)}},mre=tS([["title","Card title"],["body","Card body",!0]]),QF=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Cl(Ih(o),t),title:wt(o?.title),body:wt(o?.body)})),eB=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(are(a)?t[r]=a.map(eB):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},jF=(e,o)=>{let t=Qy(e)?Gy(hre(e)):PF(),r=Array.isArray(e.template)?e.template.map(eB):[t],[a]=r;return r.length===1&&a.type===oe?{...a,props:{...$F(e,o),...a.props}}:{type:oe,props:{...L,...$F(e,o),name:"Card"},slots:{[Me]:r}}},Qy=e=>e.cardStyle==="label-only",oB=e=>QF(e).map((o,t)=>{let r=e.items[t]?.href;return qu({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),hre=e=>oB(e).some(o=>Se(o.href)!==void 0),KF=e=>Array.isArray(e.template)&&e.template.length===0,VF=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function tB(){let e=t=>({key:nre("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 xre={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...J,direction:"column",gap:36,gapPhone:28,...Jo("surface")(e,o),...de(e,zF)}),box:[...ae,...xe(zF)],parts:[{...St("Cards"),when:e=>!Ly(e)},{...ad("Cards",GF,mre,QF,jF,{reads:["items"],keep:VF}),when:e=>!KF(e)&&!Qy(e)},{...ad("Cards",GF,JF,oB,jF,{reads:["items"],keep:VF}),when:e=>!KF(e)&&Qy(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)"}},Ire={name:"Recurring Columns",boxProps:(e,o)=>({...J,direction:"column",gap:60,gapPhone:60,...rd(0,0,1,0),...Qo,...Ku(e)?vn(e,o):{},...Au(Vu(e),e,o),...de(e,NF)}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Ku(o)?ma(e,o,t):e],...xe(NF)],skip:e=>Ru(Vu(e)),site:(e,o)=>Ku(e.props)?ha(e,o):[],parts:[St("Series"),ad("Cards",dre,cre,e=>XF(e).map(o=>qu({num:wt(o.num),since:wt(o.since),title:wt(o.title),body:wt(o.desc),count:wt(o.entries),countLabel:wt(o.entriesLabel)})),(e,o)=>({type:oe,props:{...ire,...Jo("background",(t,r)=>Ku(t)&&_u(t,r))(e,o),name:"Card"},slots:{[Me]:[{type:oe,props:{...L,name:"Words",gap:16,gapPhone:16},slots:{[Me]:[{type:oe,props:{...MF,name:"Top"},slots:{[Me]:[Ke("num",K,U("label",13),!0),Ke("since",K,U("label",13),!0)]}},Ke("title",{...K,tag:"h3"},{textStyle:"heading-3",...U("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),Ke("body",se,{textStyle:"body-5",fontRole:"heading",...U("body",14),lineHeight:1.6})]}},{type:oe,props:{...MF,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...rd(1,0,0,0),...HF(e)?{}:{[gv]:["count","countLabel"]}},slots:{[Me]:[{type:oe,props:{...L,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[eS("share")]:"content"},slots:{[Me]:[Ke("count",K,Jy),Ke("countLabel",se,Jy)]}},...HF(e)?[{type:oe,props:{...L,name:"View",maxWidthPhone:266},slots:{[Me]:[{type:"Text",props:{...K,text:oS(e.viewLabel).text,_partStyles:{text:{...Sr()._partStyles.text,...Jy}}}}]}}]:[]]}}]}}))],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:sre}},qF={top:60,bottom:60,topPhone:40,bottomPhone:40},gre={...L,direction:"row",columns:3,gap:40,gapPhone:16},bre={...L,gap:8,gapPhone:8,...Do(24),...rd(1,1,1,1)},yre={name:"Document Detail Cards",boxProps:e=>({...J,direction:"column",gap:40,gapPhone:16,...rd(0,0,1,0),...de(e,qF)}),box:[...ae,...xe(qF)],parts:[ad("Cards",gre,fre,e=>XF(e).map(o=>qu({label:wt(o.label),value:wt(o.value),body:wt(o.desc)})),(e,o)=>({type:oe,props:{...bre,...Jo("surface")(e,o),name:"Card"},slots:{[Me]:[Ke("label",K,{...U("label",12),lineHeight:1.5},!0),{type:oe,props:{...L,name:"Words",gap:14,gapPhone:14},slots:{[Me]:[Ke("value",K,{textStyle:"heading-3",...U("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),Ke("body",se,{textStyle:"body-5",fontRole:"accent",...U("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...te,...ie}},rB={Cards:xre,KeyFeatures:ure,Series:Ire,DocMetaCards:yre};import{phoneKey as vre}from"efficient-easel/draw";import{newId as kre}from"efficient-easel/data";import{phoneKey as Sre}from"efficient-easel/draw";import{isNode as nd}from"efficient-easel/data";var tl="cardStyle";function aB(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Yu={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[Sre("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}}}},Ct={table:{...Yu.table,listCard:aB(Yu.table.card)},list:{...Yu.list,listCard:aB(Yu.list.card)}},UMe=[{label:"Table",value:"table"},{label:"List",value:"list"}],zMe=e=>e==="table"||e==="list",wre=e=>[...new Set([...Object.keys(Ct.table[e]),...Object.keys(Ct.list[e])])];function sd(e,o,t){let r={...e};for(let a of wre(o))delete r[a];return{...r,...structuredClone(Ct[t][o])}}function Cre(e,o,t){let r=e.props??{},a=Array.isArray(r[No])?r[No]:[],n=a.findIndex(d=>nd(d)&&d.type===t);if(n<0)return e;let s=a[n],l=a.map((d,c)=>c===n?{...s,props:sd(s.props??{},"listCard",o)}:d);return{...e,props:{...r,[No]:l}}}function $Me(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>nd(s)&&s.type===Lt)){let s=a.map(l=>nd(l)&&l.type===Lt?Cre(l,o,t):l);return{...sd(e,"items",o),[tl]:o,[r]:s}}let n=a.map(s=>{if(!nd(s)||s.type!==t)return s;let l=s.props??{},d=(Array.isArray(l[r])?l[r]:[]).map(c=>nd(c)&&c.type===t?{...c,props:sd(c.props??{},"card",o)}:c);return{...s,props:{...sd(l,"row",o),[r]:d}}});return{...sd(e,"grid",o),[tl]:o,[r]:n}}var rS=e=>typeof e=="string"?e.trim():"";function nB(e){let o=`${rS(e.prefix)}${rS(e.value)}`,t=rS(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var iB={textStyle:"heading-2",...et("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},aS={kind:"block",type:"Text",props:{...wn,_partStyles:{text:iB}},box:[["value","text",(e,o)=>nB(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&nB(o)!==""},sB=e=>Ze(e?.supSuffix),dB={textStyle:"body-1",fontRole:"heading",...U("body",16),lineHeight:1.5,letterSpacing:-.01},cB={color:"labels",...U("label",12),lineHeight:1.5,letterSpacing:.24},fB={...L,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[vre("share")]:"content"},pB={textStyle:"body-5",...U("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},nS=e=>ar(e.background,Tn.StatsParagraph),ld=e=>nS(e)===Mo,Xu=e=>({...e,sectionAccent:e.sectionAccent??0}),Tre=(e,o)=>ld(e)?Jo("background",(t,r)=>_u(Xu(t),r))(e,o):{},Pre={name:"Stats with Text",skip:e=>nS(e)&&nS(e)!=="transparent"&&!ld(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},...Qo,...yt(e,"StatsParagraph"),...ld(e)?vn(Xu(e),o):{}}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ld(o)?ma(e,Xu(o),t):e],...pa("StatsParagraph")],site:(e,o)=>ld(e.props)?ha({props:Xu(e.props)},o):[],parts:[St("StatsParagraph"),{kind:"group",name:"Stats",props:{...L,...Ct.table.grid,[tl]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...Ct.table.row},props:(e,o)=>({...L,...Ct.table.card,...Tre(e,o)}),parts:[{...aS,when:(e,o)=>!sB(o)&&aS.when(e,o)},{kind:"group",name:"Figure",props:fB,when:(e,o)=>sB(o),parts:[aS,{kind:"text",key:"supSuffix",props:K,style:pB}]},{kind:"group",name:"Words",props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:K,style:dB},pe("sub",cB)]}]}]}],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"}},Ere=new Set(["value","label",_t]),lB={top:48,bottom:48,topPhone:48,bottomPhone:48},Ore=e=>{let o=ar(typeof e.background=="string"?e.background:void 0,Tn.Stats);return!!o&&o!=="transparent"},_re={name:"Stats",skip:e=>Ore(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Ze(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Ze(o?.[_t]))?"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=>!Ere.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,lB)}),box:[...ae,...xe(lB)],parts:[pe("heading",{color:"labels",...U("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{...L,...Ct.list.grid,[tl]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>q(e.columns)??4,rowName:"Stats row",rowProps:{...L,direction:"row",share:"equal",phoneRow:2,...Ct.list.row},props:{...L,...Ct.list.card},parts:[{kind:"text",key:"value",props:wn,style:{textStyle:"heading-2",...U("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},pe("label",{color:"labels",...U("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"}},uB={StatsParagraph:Pre,Stats:_re};function mB(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var Are=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function hB(){let e=(o,t,r,a="")=>({key:kre("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 Rre(e){return{type:oe,props:{...L,name:"Card",...structuredClone(Ct[e].listCard)},slots:{[Me]:[{type:oe,props:{...fB,name:"Figure"},slots:{[Me]:[Ke("figure",wn,iB),Ke("superscript",K,pB)]}},{type:oe,props:{...L,name:"Words",gap:4,gapPhone:4},slots:{[Me]:[Ke("label",{...K,widthFit:"fill"},dB),Ke("body",{...K,widthFit:"fill"},cB,!0)]}}]}}}function sS(e,o,t=4){return{type:oe,props:{...L,name:"Stats",direction:"row",columns:t,...structuredClone(Ct[o].items),[tl]:o},slots:{[Me]:[{type:Lt,props:rc(e,Are),slots:{[No]:[Rre(o)]}}]}}}var xB={heading:"Trusted by *teams worldwide*"},IB=()=>[{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")}],Lre={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},lHe={label:"Logos",drawsPictures:!0,fields:Lre,defaultProps:{items:[],contained:!0}};var gB={heading:"Ways to pay"},bB=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],yB=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],cHe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};var uHe={left:"justify-start",center:"justify-center",right:"justify-end"},Fre={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"}},Bre={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"}},Dre={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"}},Nre={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 Zu(e){return e==="left"||e==="center"||e==="right"?e:void 0}function SB(e){return e==="start"?"left":e==="end"?"right":Zu(e)}function Mre(e,o,t){let r=Zu(e)??"left",a=At("same",r,Zu(o),Zu(t)),n={};return a.tablet&&a.tablet!==r&&(n.tablet=a.tablet),a.phone&&a.phone!==r&&(n.phone=a.phone),n}function mHe(e,o,t,r,{atSectionLine:a=!1}={}){let n=Mre(o,t,r),s=a?Dre:Fre,l=a?Nre:Bre;return[n.tablet?s[e][n.tablet]:"",n.phone?l[e][n.phone]:""].filter(Boolean).join(" ")}import{phoneKey as iS,readHidable as Hre}from"efficient-easel/draw";var dS={contained:!1},cS=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Ze(r?.src)||Ze(r?.[o])}]}]}),lS=e=>{let o=q(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Wre={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...K,align:"center"}},Ure={name:"Logos",boxProps:e=>({...J,direction:"column",gap:32,...de(e,lS(e))}),box:[...ae,...xe(lS),["bandPadding","sectionPaddingTop",(e,o)=>de(o,lS(o)).sectionPaddingTop]],parts:[Wre,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:dS,slots:cS("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"}},zre={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:VC(4,"main",{sectionCorners:2})},wB={top:24,bottom:24,topPhone:24,bottomPhone:24},$re={name:"Payment Methods",boxProps:e=>({...J,direction:"column",...de(e,wB)}),box:[...ae,...xe(wB)],parts:[{kind:"group",name:"Methods",props:{...L,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:[bo,xr],props:e=>Ze(e[bo])?{[bo]:e[bo],...e[xr]!==void 0?{[xr]:e[xr]}:{}}:{}},props:{...dS,look:"cards",grayscale:!1},slots:e=>({...cS("badges","label"),...Ze(e[bo])?{[No]:[ph()]}:{}})},{kind:"group",name:"Reassurance",props:{...L,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[iS("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Ze(o?.text)),props:{...L,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[iS("share")]:"content"},item:e=>Hre(e.text).hidden?{props:{_hidden:!0}}:{},parts:[zre,{kind:"text",key:"text",props:{...K,align:"center"},style:{...U("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`)"}},Gre={left:"start",center:"center",right:"end"},CB=e=>SB(e.align)??"left",vB=e=>e.size==="md"?"md":"sm",kB=12,TB={name:"Payment logos",boxProps:e=>({...L,direction:"row",wrap:!0,align:"center",justify:Gre[CB(e)],gap:kB,gapPhone:kB,phoneRow:2,[iS("share")]:"content"}),parts:[{kind:"text",key:"lead",props:se,styleFrom:e=>({size:qs[vB(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[bo,xr],props:e=>({logoHeight:WL[vB(e)].mark,align:CB(e),...Ze(e[bo])?{[bo]:e[bo],...e[xr]!==void 0?{[xr]:e[xr]}:{}}:{}})},props:{...dS,look:"marks",grayscale:!1,sectionAccent:Jt},slots:e=>({...cS("methods","label"),...Ze(e[bo])?{[No]:[ph()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},PB={Logos:Ure,PaymentBadges:$re,FooterPayment:TB,PaymentLogosBlock:TB},EB=()=>({heading:xB.heading,items:IB()}),OB=()=>({heading:gB.heading,badges:bB(),assurances:yB()}),_B=()=>({...ff,methods:[]});import{mixHex as Kre}from"efficient-shell/format";var AHe="none",RHe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function AB(e){return e==="above"||e==="below"?e:null}var LHe="sf-ticker-join";function jre(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function FHe(e){return`absolute inset-x-0 ${jre(e)}`}var Pn={direction:"row",share:"content",align:"center"},id={top:14,bottom:14,topPhone:12,bottomPhone:12},Ju={wrap:"nowrap",loop:"scroll",sectionAccent:Vv,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},RB={gap:120,gapPhone:64},Qu={...jo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},LB={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},dd={top:16,bottom:16,topPhone:12,bottomPhone:12},cd={justify:"between",wrap:"wrap",gap:32,separator:"none"},fd={...jo,letterSpacing:.1,lineHeight:1.5};var FB=e=>e.size==="display",Vre=(e,o)=>{let t=Ou(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Kre(t.text,t.background,.3):null;return r?{color:r}:{}},qre=(e,o)=>e.tone!=="plain"&&Qt(e.sectionAccent)===null?Jo("background")(e,o):{},BB=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:se,style:e,styleFrom:Vre}]}),Yre={name:"Scrolling Bar",boxProps:(e,o)=>({...J,...Pn,...Ju,...UC[rh(e.separator)]===""?RB:{},...de(e,id),...qre(e,o)}),box:[["scrollDirection","scrollDirection",e=>EA(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=>rh(e)],["join","join",e=>AB(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...ae,["tone","sectionAccent",(e,o)=>Qt(o.sectionAccent)??Jt],...xe(id)],parts:[BB(Qu,e=>!FB(e)),BB(LB,FB)],drop:{...te,...ie,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},DB=e=>e?.tone==="muted",NB=e=>nc(bn(e)),Xre={name:"Spec Strip",boxProps:(e,o)=>({...J,...Pn,...cd,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:NB(o)},...de(e,dd)}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:NB(t)],...xe(dd)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:K,style:fd,when:(e,o)=>!DB(o)},{kind:"text",key:"text",props:se,style:fd,when:(e,o)=>DB(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"}},MB={Ticker:Yre,SpecStrip:Xre};import{jsxs as On,jsx as Je}from"react/jsx-runtime";import{Fragment as bS}from"react";import{Fragment as cae,jsx as mS}from"react/jsx-runtime";import{Fragment as zB,jsx as md,jsxs as tae}from"react/jsx-runtime";import{createContext as uS,useContext as hd,useEffect as rae,useId as aae,useMemo as nae,useRef as sae}from"react";import{armEntrance as lae}from"efficient-shell/format";import{jsx as Zre}from"react/jsx-runtime";import{useEffect as WB,useRef as HB,useState as Jre}from"react";import{armEntrance as Qre,entranceAttrs as eae,playEntrance as oae}from"efficient-shell/format";function UB({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let d=HB(null),c=uc(),f=Kr(),u=n?f:es,p=pd(d,!0,s),{attrs:h,style:I}=eae(e[p]),g=HB(fS.seed(e)),C=JSON.stringify(e);return WB(()=>{let S=d.current;if(S){if(o){let T=fS.next(g.current,e,p);g.current=T.seen,T.play&&oae(S);return}return Qre(S)}},[C,p,o]),u.scope(Zre("div",{ref:d,className:Vr(`${Jn}${c.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...h,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:c.inner(l)}))}var fS={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=fS.seed(o);return{play:r[t]!==e[t],seen:r}}};function pd(e,o=!0,t=!1){return ud(e,o,t)??"desktop"}function ud(e,o=!0,t=!1){let[r,a]=Jre(void 0),n=pc()||t,{phone:s,tablet:l}=Zg(n);return WB(()=>{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 em=uS(null),GB=uS(null),jB=uS(null);function f4e({needles:e,styles:o,motions:t=RR,type:r,atEdge:a=!1,children:n}){let s=aae(),l=pc()||a,d=JSON.stringify([s,e,o,t,r]),c=nae(()=>{let u=Object.keys(t).filter(p=>FR(t[p]));return V_(e,o,s,p=>Ni(r,p),p=>z_(r,p),p=>u.includes(p)?xy(t[p]):null,u)},[d]);if(!c)return md(zB,{children:n});let f=q_(c,{inBox:l});return tae(zB,{children:[f&&md("style",{href:`${iae}${s}-${dae(f)}`,precedence:VB,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),md(em.Provider,{value:c,children:n})]})}var pS=new WeakMap;function $B(e,o){let t=Iy(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Iy(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)?(MR(e.ownerDocument),e.setAttribute(tu,"")):e.removeAttribute(tu)}function KB(e){let o=sae(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=pd(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,d=JSON.stringify([s,l]);return rae(()=>{let c=o.current,f=NR(c?.parentElement??null);if(!t&&!r&&!a||!c||!f)return;let u=s?()=>{let I=BR(f,s),g=lae(f);return()=>{g?.(),I()}}:null,p=pS.get(f)??[];pS.set(f,p);let h={element:c,arm:u,entering:s!==null&&s.kind!=="none",scroll:l?()=>DR(f,l):null,lift:a};return p.push(h),$B(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,$B(f,p),p.length||pS.delete(f))}},[d,a]),o}var VB="sf-part-styles",iae=`${VB}-`;function dae(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 qB(e){let o=hd(em),t=hd(GB),r=Y_(o,e);return r&&r.stamp!==t?r:null}function p4e(e){return Xg(hd(em),e)}function YB({stamp:e,children:o}){return md(GB.Provider,{value:e,children:o})}function u4e({children:e}){let o=hd(em);return md(jB.Provider,{value:o,children:e})}function m4e(e){return Xg(hd(jB),e)}function xd({value:e,children:o}){let t=qB(e),r=KB(t);return t?mS(YB,{stamp:t.stamp,children:mS("span",{ref:r,[Wg]:t.stamp,...t.textStyle?{[As]:t.textStyle}:{},children:o})}):mS(cae,{children:o})}import{jsx as hS,Fragment as fae}from"react/jsx-runtime";function XB({className:e=""}){return hS("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function om(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(hS(XB,{},`r${a}`))}),hS(fae,{children:t})}var S4e=XB;import{jsx as En}from"react/jsx-runtime";import{Component as hae,createContext as xae,lazy as _4e,Suspense as A4e,useContext as Iae,useSyncExternalStore as gae}from"react";var pae="hrefRewrite";function uae(){return zd("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function mae(){return typeof process<"u"&&!0}function v4e(e){let o=e?.[pae];return typeof o=="string"?o.trim():""}function ZB(e){if(!e)return null;let o=uae(),t=o.rewrites.get(e);return!t&&!mae()&&o.missed.add(e),t??null}var bae={Link:mk,Image:uk},JB=xae(bae);function N4e({runtime:e,children:o}){return En(JB.Provider,{value:e,children:o})}function IS(){return Iae(JB)}function M4e(){return IS().pagePath??null}var yae=()=>()=>{},Sae=()=>xc()||null,wae=()=>null;function Cae(){return gae(yae,Sae,wae)}function QB({hrefRewrite:e,newTab:o,...t}){let{Link:r}=IS(),a=Cae(),n=o===!0?{...t,...od}:o==="auto"?{...t,...SF(t.href,a)}:t,s=ZB(e);return s?En(xS,{name:s.name,href:n.href,fallback:En(r,{...n}),children:En(vae,{Link:r,rewrite:s.rewrite,...n})},s.key):En(r,{...n})}function vae({Link:e,rewrite:o,...t}){let r=Se(o(t.href)),a=r&&fC(r)?r:t.href;return En(e,{...t,href:a})}var xS=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 eD(e){let{Image:o}=IS();return En(o,{...e})}function Br(e,o=!1,t){let r=Aae(o),a=jd(e);if(a.length===1){let[s]=a,l=pC(s),d=l?Oae(l,s.children):s.children;return On(xd,{value:e,children:[t,tm(d,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Je("span",{"data-sf-bullet":"",className:kae,children:tm(s.children,r)},l));return}if(s.number!=null){n.push(On("span",{"data-sf-number":s.number,className:Tae,children:[On("span",{className:Pae,children:[s.number,"."]}),tm(s.children,r)]},l));return}l>0&&!Eae(a[l-1])&&n.push(Je("br",{},`br${l}`)),n.push(Je(bS,{children:tm(s.children,r)},l))}),On(xd,{value:e,children:[t,n]})}var kae="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",Tae="relative block pl-[2em]",Pae="absolute left-0 w-[1.6em] text-right tabular-nums";function Eae(e){return e.bullet||e.number!=null}var oD="text-accent underline underline-offset-[0.18em]";function Oae(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function _ae(e){return is(e)||void 0}function tm(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Je("span",{children:om(a.text)},n)),r=!0;return}r||t.push(Je("span",{},`e${n}`)),t.push(rD(a,n,o)),r=!1}),r||t.push(Je("span",{},"end")),t}function gS(e,o){return e.length===1&&e[0].kind==="text"?om(e[0].text):e.map((t,r)=>t.kind==="text"?Je(bS,{children:om(t.text)},r):rD(t,r,o))}function Aae(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function Y4e(e){return tD(e)}function tD(e,o){let t=e.split(`
320
+ `);return On(xd,{value:e,children:[o,t.map((r,a)=>On(bS,{children:[a>0?Je("br",{}):null,Je("span",{children:r})]},a))]})}function rD(e,o,t){if(e.kind==="link")return Lu(e.href)?Je(QB,{newTab:"auto",href:e.href,className:oD,children:gS(e.children,t)},o):Je("a",{href:e.href,className:oD,children:gS(e.children,t)},o);let r=gS(e.children,t),a=dC[e.kind];if(a)return Je("span",{[cC]:a,children:r},o);switch(e.kind){case"underline":return Je("u",{children:r},o);case"sup":return Je("sup",{children:r},o);case"sub":return Je("sub",{children:r},o);case"color":{let n=_ae(e.color);return n?Je("span",{style:{color:n},children:r},o):Je("span",{children:r},o)}case"accent":case"highlight":return Je("em",{className:t,children:r},o);case"bold":return Je("strong",{className:"font-semibold",children:r},o);case"italic":return Je("em",{className:"italic",children:r},o);case"strike":return Je("s",{className:"line-through",children:r},o);default:return Je("span",{children:r},o)}}function X4e(e,o=!0,t=!1){let r=e.split(`
321
+ `);return Je(xd,{value:e,children:r.map((a,n)=>On("span",{children:[t?tD(a):Br(a,o),n<r.length-1?Je("br",{}):null]},n))})}function aD(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{tabletKey as nD}from"efficient-easel/screen/lib/content/view-tiers";var sD={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[nD("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[nD("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},yS={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as Rae}from"efficient-easel/draw";var co={text:"Button label",href:"#"},cr=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),ze={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 rm={eyebrow:ze.eyebrow,title:`Section heading
322
+ *Highlight line*`,intro:ze.body,imageCaption:ze.imageCaption,imageMeta:ze.imageMeta,cta:co.text},lD=()=>[{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")}],r5e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var am={eyebrow:ze.eyebrow,title:ze.headingAccent,intro:ze.body,cta:co.text},iD=()=>[{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}],i5e={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Ql,padTop:120,padBottom:120}};var mD={buttonBorder:{width:0}},lm=(e,o,t={})=>({textStyle:"body-5",...U("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),rl=(e,o,t={})=>({...lm(e,o),...jo,...t}),im=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),Id=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),vt=(e,o,t={})=>({kind:"text",key:e,props:K,style:o,...t}),dD=(e,o)=>o?.future===!0,nm=e=>aD(typeof e?.body=="string"?e.body:""),kS=e=>ar(typeof e.background=="string"?e.background:void 0,Tn.TimelineTrack),SS=e=>kS(e)===Mo?e:{...e,background:"transparent"},Lae={name:"Milestone Timeline",skip:e=>Ru(kS(e)),boxProps:(e,o)=>{let t=ua(SS(e),o);return{...J,direction:"column",gap:60,[Rae("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...Qo,...yt(e,"TimelineTrack"),...Au(kS(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ma(e,SS(o),t)],...pa("TimelineTrack")],parts:[Xy(Gu(Uu("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{...L,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{...L,direction:"row",share:"equal",gap:0,line:!0,...Qo},parts:[{kind:"list",key:"entries",name:"Year",props:{...L,...sD},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:yS.name,props:{...L,...yS},parts:[vt("date",lm(13,.22,{color:"accent"}),{when:(e,o)=>!dD(e,o)}),vt("date",lm(13,.22,{color:"labels"}),{when:dD}),vt("title",{textStyle:"heading-3",...im(U("headingSmall",20),-.02,1.1)},{role:"heading"})]},vt("blurb",Id(U("body",13),1.55),{props:se,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...vo,align:"right",...mD},style:rl(13,.3)}]}]}],site:(e,o)=>ha({props:SS(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"}},PS=e=>typeof e.layout=="string"?e.layout:"split",sm=e=>PS(e)==="split",TS=e=>!sm(e),hD=e=>PS(e)==="spine",Fae=e=>TS(e)&&!hD(e),cD=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{...L,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Do(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{...L,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[vt("imageCaption",rl(11,.24,{color:"text"})),vt("imageMeta",rl(11,.24,{color:"accent"}),{props:{...K,align:"right"}})]}]}),fD=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...vo,...e,...mD},style:rl(13,.3)}),wS=()=>[vt("title",{textStyle:"heading-3",...im(U("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...K,_partStyles:{text:Id(U("body",17,16),1.6)}},box:[["body","text",(e,o)=>bl(nm(o)[0]??"")]],when:(e,o)=>nm(o).length>0},{kind:"block",type:"Text",props:{...se,_partStyles:{text:Id(U("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>bl(nm(o).slice(1).join(`
323
+
324
+ `))]],when:(e,o)=>nm(o).length>1}],CS=()=>vt("date",lm(13,.24,{color:"accent"})),vS=(e,o,t={})=>vt(e,o,{...t,props:{...K,...t.props??{},align:"center"}}),pD=et("headingMedium",40,5,76),uD={sectionBorder:{bottom:1}},Bae={name:"Story Timeline",skip:e=>PS(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>sm(e)?{...J,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...uD,...yt(e,"Timeline")}:{...J,direction:"column",gap:48,gapPhone:48,align:"center",...uD,...yt(e,"Timeline")},box:[...ae,...pa("Timeline")],parts:[{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24},when:sm,parts:[vt("eyebrow",rl(12,.3,{color:"accent"}),{role:"eyebrow"}),vt("title",{textStyle:"heading-2",...im(pD,-.03,.94)},{role:"heading",mark:"accentItalic"}),vt("intro",Id(U("body",14),1.6),{props:{...se,maxWidth:360},mark:"accentItalic"}),cD(667,419,{},()=>!0),fD()]},{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!1},when:sm,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[CS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:wS()}]}]},{kind:"group",name:"Heading",props:{...L,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:TS,parts:[vS("eyebrow",rl(12,.3,{color:"accent"}),{role:"eyebrow"}),vS("title",{textStyle:"heading-2",...im(pD,-.03,.94)},{role:"heading",mark:"accentItalic"}),vS("intro",Id(U("body",14),1.6),{props:{...se,maxWidth:520},mark:"accentItalic"}),fD({align:"center"})]},cD(506,192,{maxWidth:900,widthFit:"fill"},TS),{kind:"group",name:"Chapters",props:{...L,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:hD,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,gap:8,gapPhone:8},parts:[CS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:wS()}]}]},{kind:"group",name:"Chapters",props:{...L,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:Fae,parts:[{kind:"list",key:"entries",name:"Chapter",props:{...L,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{...L,gap:8,gapPhone:8},parts:[CS(),{kind:"group",name:"Words",props:{...L,gap:14,gapPhone:14},parts:wS()}]},{kind:"group",name:"Spacer",props:{...L},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)"}},xD=()=>({eyebrow:rm.eyebrow,title:cr(rm.title),intro:rm.intro,ctaText:co.text,ctaHref:co.href,entries:lD()}),ID=()=>({eyebrow:am.eyebrow,title:cr(am.title),intro:am.intro,ctaText:co.text,ctaHref:co.href,entries:iD()}),gD={TimelineTrack:Lae,Timeline:Bae};import{tabletKey as Wae}from"efficient-easel/draw";import{rootIsDark as Dae}from"efficient-shell/format";function v5e(e="auto"){return e==="light"?!0:e==="dark"?!1:!Dae({whenUnset:!0})}function bD(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function ES(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var Nae=["tall","square","wide"],Mae="tall";function yD(e){return Nae.includes(String(e??""))?String(e):Mae}var P5e={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"},E5e=[{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:""}],Hae=/^https?:\/\//i;function O5e(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:ES(e.lat),lng:ES(e.lng),mapsUrl:Hae.test(o)?o:""}}function OS(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var _5e="other",A5e={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 SD(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var kt=e=>typeof e=="string"?e:e==null?"":String(e),AS=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],al=e=>kt(e.group),_D=e=>`loc-${e}`,AD=e=>kt(e.state).trim()||OS(kt(e.region)).state,RD=e=>kt(e.country).trim()||OS(kt(e.region)).country,wD=e=>[AD(e),RD(e)].filter(Boolean).join(" \xB7 "),Uae=e=>AS(e).some(o=>kt(o.photo).trim()!==""),zae=e=>AS(e).some(o=>bD(Number(o.lat),Number(o.lng))),$ae=(e,o)=>AS(e).filter(t=>al(t)===al(o)).length,Gae=(e,o)=>$ae(e,o)===1?"wide":yD(e.imageShape),_S={top:100,bottom:100,topPhone:60,bottomPhone:60},CD=48,Vt=(e,o={})=>({...Rt(e),...o}),RS={top:1,right:1,bottom:1,left:1},LS={...L,direction:"row",share:"equal",gap:0},jae=e=>o=>o>Vi(o)?{...L,gap:0}:{...LS,...o>1?{phoneRow:e}:{}},Kae={kind:"group",name:"Gallery",props:{...L,gap:20,_hidden:!0},when:Uae,parts:[{kind:"group",name:"Gallery head",props:{...L,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[pe("galleryKicker",Vt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...se,align:"right",alignPhone:"left"},style:Vt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{...L,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{...L,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:RS,...Do(12,12)},item:(e,o,t)=>({props:{...kt(e.photo).trim()?{bgImage:kt(e.photo),hover:"mono"}:{},link:`#${_D(o)}`,boxShape:Gae(t,e)}}),parts:[{kind:"text",key:"name",props:K,style:Vt(11,{letterSpacing:.22,color:"text"})}],groups:{of:al,name:"Group",props:{...L,gap:10},head:e=>({label:al(e[0]??{})}),parts:[pe("label",Vt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:jae(2),perRow:Vi,rowName:"Row",rowProps:{...LS,phoneRow:2}}}]}]},Vae={kind:"group",name:"Words",props:{...L,gap:12,gapPhone:12,...Do(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{...L,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:K,style:{textStyle:"heading-3",...U("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...K,_partStyles:{text:Vt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>wD(t)]),when:(e,o)=>wD(o??{})!==""}]},{kind:"group",name:"Time zone",props:{...L,sectionBorder:RS,...Do(6,10)},parts:[{kind:"text",key:"timezone",props:{...se,textFit:"line"},style:Vt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:se,style:{textStyle:"body-5",fontRole:"heading",...U("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...vo,...Cn,variant:"ghost",arrow:!1,_partStyles:{label:Vt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>SD(kt(e))??"#"]],when:(e,o)=>kt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:se,style:Vt(12,{letterSpacing:.18,lineHeight:1.7})}]},qae={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)=>AD(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>RD(t)])]},Yae={kind:"group",name:"Map",props:{...L,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[qae]},Xae={kind:"list",key:"locations",name:"City",props:(e,o)=>({...L,gap:0,justify:"between",sectionBorder:RS,jumpHighlight:!0,sectionAccent:ua(e,o)>=0?Js(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:_D(o)}}),parts:[Vae,Yae],groups:{of:al,name:"Group",props:{...L,gap:20},head:e=>{let o=e[0]??{};return{key:al(o),groupName:kt(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{...L,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>kt(o?.key).trim()!=="",parts:[pe("key",Vt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:K,style:{textStyle:"heading-3",...U("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:se,style:Vt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...LS,columns:Vi(e),[Wae("columns")]:1})}},vD=Vt(10,{letterSpacing:.25}),Zae={kind:"block",type:lr,props:{...L,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:zae,slot:ir,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...se,text:"Location coordinates \xA9",_partStyles:{text:vD}}},{kind:"block",type:"ButtonBlock",props:{...vo,...Cn,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...vD,color:"labels"}}}}]},kD=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),TD=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],PD=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],ED=e=>e.map(o=>[o,o,(t,r)=>de(r,_S)[o]]),OD=["sectionAccent","sectionAccent",ma],Jae=["gridSpan",...cs,...Object.values(lo)],Qae={name:"City pictures",skip:e=>Yt(e)?`fed by the data source "${Yt(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",...Qo,...kD(de(e,_S),TD),sectionPaddingBottom:CD,sectionPaddingBottomPhone:CD,...vn(e,o)}),box:[...ae.filter(e=>e!=="sectionAccent"&&e!=="anchor"),OD,["anchor","anchor",e=>Fl(e).trim()?e:"studios"],...ED(TD)],parts:[Uu("sectionNumber","heading","tagline"),Kae],also:[{name:"City maps",boxProps:(e,o)=>({...J,direction:"column",gap:40,sectionBorder:{bottom:1},...Qo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...kD(de(e,_S),PD),...vn(e,o)}),box:[...Jae,OD,...ED(PD)],parts:[Xae,Zae]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:ha,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)"}},LD={ContactLocations:Qae};import{SITE_SIDE as BD,sideLengthAt as ene}from"efficient-easel/screen/lib/content/length-units";var dm="boxes",FS=3,BS=()=>({type:oe,props:{direction:"column"},slots:{[Me]:[{type:"ImageBlock"},{type:oe,props:{direction:"column"},slots:{[Me]:[{type:"Text",props:$r()},{type:"Text"}]}}]}}),FD=()=>Array.from({length:FS},BS);import{viewKeyAt as DS}from"efficient-easel/draw";var one=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var xa=(e,o)=>()=>({top:e,topPhone:o}),DD=e=>o=>{let t=Pu(e),r={...o,[aa.top]:Vl(o,t).top},a=d=>{let c=ene(r,aa,Ga,d,"top");return c?.unit==="px"?c.value:void 0},n=d=>q(o[DS(aa.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:xa(120,70),Events:xa(120,70),FAQ:xa(120,70),GalleryB:xa(120,70),FitmentTable:xa(120,80),SpecTable:xa(120,80),LongRead:xa(120,80),RelatedProducts:xa(0,0),Footprint:DD("Footprint"),ProcessSteps:DD("ProcessSteps"),ProductGrid:e=>({top:q(e.padTop)??120,topPhone:0})};function rne(e,o={}){let t=j(wr,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=St(e),s=ju(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($d,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"?Qo:{};return{...J,direction:"column",gap:td[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&&fF.has(e)?{[DS(a,"tablet")]:0,[DS(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 ane={...L,direction:"accordion",rowStyle:"numbered"},nne={sectionPaddingLeft:BD,sectionPaddingRight:BD},sne={Footprint:{slots:{[No]:[lv()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[dm]:FD().map(t=>({...t,props:{...t.props,...nne}}))}:{},boxProps:{gapPhone:td.editorial}},FAQ:{slots:{[No]:[sv()]},pressHeading:!0,coreBox:{name:"Questions",props:ane},coreProps:{sectionAccent:Jt},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[sF]:yn},skip:e=>{let o=e._partStyles??{},t=nv().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}}},ND=Object.fromEntries(one.map(e=>[e,rne(e,j(sne,e))]));import{BLOCK_WIDTH_LIMIT as ine}from"efficient-easel/draw";var cm={eyebrow:ze.eyebrow,title:ze.headingAccent,deck:"Add a sentence or two introducing this document."},x3e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var NS="titleLevel",lne=e=>e===2?"h2":"h1",MS=e=>lne(e?.[NS])==="h2";var jD={minWidth:ine.min},MD=(e,o,t)=>({...pe(e,{...o,...Xi}),props:{...K,align:"right",...Sn,...t}}),KD={top:1,bottom:0},WS=(e,o,t,r)=>({kind:"group",name:e,props:{...L,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),HD={widthFit:"fill",...jD},WD={top:100,bottom:60,topPhone:60,bottomPhone:40},dne={...U("label",13),letterSpacing:.22,lineHeight:1.8},UD={textStyle:"heading-1",...et("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},cne=()=>({name:"Page Header",boxProps:e=>({...J,direction:"column",gap:0,sectionBorder:{bottom:1},...de(e,WD)}),box:[...ae,...xe(WD)],parts:[{kind:"group",name:"Header",props:{...L,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[WS("Eyebrow",12,0,{...pe("eyebrow",U("label",13)),props:{...K,...Sn}}),{kind:"text",key:"title",role:"heading",props:{...K,tag:"h1",...HD},style:UD,mark:"accentItalic",when:e=>!MS(e)},{kind:"text",key:"title",role:"heading",props:{...K,tag:"h2",...HD},style:UD,mark:"accentItalic",when:MS},{kind:"group",name:"Details",props:{...L,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[Zi("label","value",dne,Sn)]}]}]},{kind:"group",name:"Deck",props:{...L,maxWidth:760,sectionBorder:KD,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:se,style:{textStyle:"body-1",fontRole:"accent",...U("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...te,...ie,[NS]:"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"}}),VD=()=>({eyebrow:cm.eyebrow,title:cr(cm.title),deck:cm.deck,meta:[{label:ze.label,value:ze.value},{label:ze.label,value:ze.value}]}),zD={top:80,bottom:40,topPhone:60,bottomPhone:32},fne={...U("label",13),letterSpacing:.18,lineHeight:1.8},$D={...U("label",13),letterSpacing:.22,lineHeight:1.9},pne=()=>({name:"Issue Header",boxProps:e=>({...J,direction:"column",gap:0,sectionBorder:{bottom:1},...de(e,zD)}),box:[...ae,...xe(zD)],parts:[{kind:"group",name:"Top",props:{...L,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[WS("Eyebrow",14,14,pe("eyebrow",U("label",14))),{kind:"group",name:"Issue",props:{...L,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[Zi("lead","rest",fne)]}]}]},{kind:"group",name:"Bottom",props:{...L,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:KD,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...K,maxWidth:720,...jD},style:{textStyle:"body-1",fontRole:"heading3",...U("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{...L,align:"stretch",gap:0},parts:[WS("Heading",6,6,{kind:"text",key:"issueHeading",props:{...K,align:"right",...Sn},style:{textStyle:"body-1",fontRole:"heading",...U("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...Xi}}),{kind:"group",name:"Lines",props:{...L,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[MD("text",{color:"labels",...$D})]}]},MD("issueTotal",$D)]}]}],drop:{...te,...ie}}),GD={top:24,bottom:24,topPhone:16,bottomPhone:16},HS={color:"labels",...U("label",13),letterSpacing:.2},qD=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),US=(e,o)=>o!==void 0&&qD(e).at(-1)===o,YD=(e,o)=>o!==void 0&&qD(e).includes(o),une=(e,o)=>YD(e,o)&&!US(e,o)&&Ze(o?.href),mne=()=>({name:"Breadcrumb",skip:e=>Ze(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,GD)}),box:[...ae,...xe(GD)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:une,props:{...vo,...Cn,icon:"none"},style:HS},{...pe("label",HS),when:(e,o)=>YD(e,o)&&!US(e,o)&&!Ze(o?.href)},{...pe("label",{...HS,color:"text"}),when:US}]}],drop:{...te,...ie,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),XD={DocMasthead:cne(),Masthead:pne(),Breadcrumb:mne()};import{BLOCK_WIDTH_LIMIT as xne,hiddenKeyOf as Ine}from"efficient-easel/draw";import{readHidable as zS}from"efficient-easel/draw";function hne(e,o,t){return e||(t?.isEditing?i(o):void 0)}function A3e(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function ZD(e,o,t){let r=zS(e);if(!r.hidden)return hne(r.text,o,t)}function JD(e){if(e==null)return;let o=zS(e);return o.hidden?"":o.text}function R3e(e,o,t){return zS(e).hidden?"":ZD(e,o,t)}function L3e(e,o,t){return{text:ZD(e,co.text,t),href:o||co.href}}var tN="MenuBlock",$S=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Ze(o.label)),QD=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(JD(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},eN={top:0,bottom:0,topPhone:0,bottomPhone:0},gne={...jo,color:"labels",...U("label",12),letterSpacing:.24},bne={kind:"group",name:"Note",props:{...L,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Ine("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>QD(e)!=="",props:e=>({...K,textFit:"line",text:QD(e),[hi]:{text:gne}})}]},rN=()=>({tabs:[],metaLabel:ze.label,metaValue:ze.value}),oN="the note Text inside the Box (the label, then the value in the accent); no words, no Text",aN={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:xne.min},nN=e=>({...e,boxProps:o=>({...J,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[ja]:0,[Yl]:!0,sectionBorder:{bottom:1},...de(o,eN)}),box:[...ae,...xe(eN)]}),yne=()=>nN({name:"Tab Bar",skip:e=>$S(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:oN,metaValue:oN},parts:[{kind:"block",type:tN,props:aN},bne],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"}}),Sne=()=>nN({name:"Category Bar",skip:e=>{if($S(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($S(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:tN,props:{...aN,[bo]:Qw}}],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"}}),sN={DocTabs:yne(),CategoryBar:Sne()};import{jsx as _n,jsxs as jS}from"react/jsx-runtime";import{slugify as wne}from"efficient-shell/format";import{jsx as GS,jsxs as lN}from"react/jsx-runtime";var j3e="sticky top-[120px]";var iN=(e,o)=>e?{[Qd]:o}:{},dN=(e,o)=>ec(e?.[hh(o)]?.role,su[o],Hn),cN=120;function fN({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=Ig,takesViewHide:l=!1}){let d=s==="plain",c=Kr(),f=l?c:es;return f.scope(lN("aside",{className:Vr(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&GS("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Br(e)}),o.map((u,p)=>{let h=GS("span",{...iN(a,"number"),style:dN(n,"number"),className:"text-accent",children:ep(s,p)});return lN("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${p===0?" border-t":""}`,children:[d&&h,GS("span",{...iN(a,"entry"),style:dN(n,"entry"),children:Br(u.label||"Section")}),!d&&h]},`${p}-${u.anchor}`)})]}))}function Cne(e,o){return wne(e)||`section-${o+1}`}var KS=e=>typeof e=="string"&&e.trim()!=="";function VS(e){return(e??[]).filter(o=>KS(o.heading)||KS(o.label)||KS(o.body))}function qS(e){let o=new Set;return e.map((t,r)=>{let a=Cne(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function YS(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=jd(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 vne=()=>[{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.")}],kne=cN;function c6e({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=kne}){let a=VS(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?vne():a,s=qS(n);return _n(mc,{as:"section",className:"relative z-[2] bg-bg",children:jS("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(fN,{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)=>jS("article",{id:s[d],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[jS("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[xg(d)," \xB7 ",Br(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:Br(l.heading)}),YS(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:Br(u)},p))},f):_n("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Br(c.text)},f))]},s[d]))})]})})}var pN={top:80,bottom:80,topPhone:60,bottomPhone:60},uN=18,mN=18,hN=8,Tne=10,XS=e=>typeof e=="string"&&e.trim()!=="",xN=e=>VS(e.sections),Pne=e=>YS(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}),ZS={...Rt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},IN={textStyle:"body-1",fontRole:"accent",...U("body",17)},Ene=[pe("label",ZS),{...pe("title",ZS),when:(e,o)=>!XS(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!XS(o?.label)&&!XS(o?.title),props:{...K,text:"Section",_partStyles:{text:ZS}}},{kind:"group",name:"Heading",props:{...L,sectionPaddingBottom:hN,sectionPaddingBottomPhone:hN},parts:[{kind:"group",name:"Heading line",props:{...L,sectionBorder:{bottom:1},sectionPaddingBottom:mN,sectionPaddingBottomPhone:mN},parts:[{kind:"text",key:"heading",role:"heading",props:K,style:{textStyle:"heading-2",...et("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:Pne,parts:[{kind:"text",key:"text",props:se,style:{...IN,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:se,style:{...IN,lineHeight:1.65,paragraphSpacing:Tne},when:(e,o)=>o?.kind==="ul"}]}],One=900,_ne={name:"Document Text",boxProps:e=>({...J,direction:"row",gap:80,gapPhone:40,[Hu]:One,sectionBorder:{bottom:1},...de(e,pN)}),box:["anchor","sectionAccent",...cs,...Object.values(lo),...xe(pN)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{...L,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>xN(e),props:{...L,gap:uN,gapPhone:uN},item:(e,o,t)=>({props:{anchor:qS(xN(t))[o]??`section-${o+1}`}}),parts:Ene}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...te,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},gN={DocBody:_ne};import{phoneKey as Lne}from"efficient-easel/draw";import{SITE_SIDE as Fne}from"efficient-easel/screen/lib/content/length-units";var y6e={eyebrow:"\u2014 Label",title:`Section headline *here.*
334
+ *Highlight line*`,body:"Describe this section in a sentence or two."},S6e={text:"Learn more"},w6e={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 JS(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var k6e="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",Ane="overlay",Rne=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function bN(e){return io(Rne,Ane,e)}var T6e={desktop:40,mobile:45,min:20,max:80,step:5};function P6e(e,o){return`${typeof e=="number"?e:o}%`}var yN=(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(xt.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(xt.sizePhone,t?.phone)}}},Bne=e=>bN(e.layout)==="stacked",SN=e=>Math.min(Math.max(q(e.overlay)??60,0),100),fm=e=>q(e)??100,Dne={textStyle:"heading-1",sizeToken:{...et("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},Nne=[pe("eyebrow",U("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:K,style:{...Dne,case:e?"upper":"none"},styleFrom:o=>{let t=LI(o);return yN(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",...U("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=LI(e);return yN(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{...L,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],wN=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)`,Mne=()=>({name:"Scroll-Over Text",skip:e=>Bne(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",...Ji,placement:"left",darken:SN(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:fm(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:fm(e.heightMobile)}),box:[...ae.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>SN(o)],["heightDesktop","sectionHeightValue",e=>fm(e)],["heightMobile","sectionHeightValuePhone",e=>fm(e)]],parts:Nne,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(vE.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:wN("Button color"),buttonTextColor:wN("Button text color"),...te}}),kN={textStyle:"heading-2",...U("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},Hne={textStyle:"body-1",...U("body",16),lineHeight:1.7},TN=e=>({kind:"text",key:"body",props:{...se,maxWidth:520},style:{...Hne,paragraphSpacing:e}}),um={top:0,bottom:0,topPhone:0,bottomPhone:0},QS=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},Wne=(e,o)=>{let t=QS(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"}},PN={boxShapePhone:"landscape"},EN="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)",Une=(e,o)=>({[e]:o,[Lne(e)]:o}),zne={textStyle:"heading-2",...U("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},CN=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),$ne=()=>({name:"Brand Text",boxProps:(e,o)=>({...J,...Jo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...de(e,um),...QS(e,100)}),box:[...ae,...xe(um)],parts:[{kind:"group",name:"Words",props:()=>({...L,justify:"center",gap:28,gapPhone:28,sectionBorder:Qi({right:1}),sectionBorderPhone:Qi({}),...Ji,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Fne}),parts:[pe("eyebrow",U("label",14)),{kind:"text",key:"heading",role:"heading",props:K,style:{...kN,case:"none"},mark:"accentItalic"},TN(28),{kind:"group",name:"Stats",props:{...L,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({...L,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(CN(e).length,1),3),...Une("sectionBorder",Qi({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:CN,props:{...L,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:wn,style:zne},pe("label",{...U("label",13),color:"labels",letterSpacing:.2})]}]}]}]},zy("Picture","imageSrc",PN)],drop:{...te,grayscale:EN,...ie}}),pm=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},Gne=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",jne=e=>Math.min(Math.max(q(e.overlay)??60,0),100),ON=e=>typeof e=="string"&&e.trim()!=="",Kne={...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},vN=e=>({...zy("Picture","imageSrc",(o,t)=>({...ON(o.imageSrc)&&JS(o.imageOverlay)>0?{darken:JS(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...PN,sectionBorder:Qi(e?{left:1}:{right:1}),..._N(e?"left":"right",Qs(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Kne,style:{...Rt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),_N=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Vne={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{...L,justify:"center",align:Gne(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...Wne(e,72),gap:24,gapPhone:24,...ON(e.textBgSrc)?{darken:jne(e),darkenStyle:"even"}:{},...Ji,sectionPaddingTop:100,sectionPaddingBottom:100,..._N(t?"right":"left",Qs(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",U("label",14)),styleFrom:pm},{kind:"text",key:"title",role:"heading",props:K,style:kN,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...pm(e)})},{...TN(24),styleFrom:pm},{kind:"group",name:"Button",props:{...L,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=pm(e);return{...vo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},qne=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...J,...Jo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...de(e,um),...QS(e,72)}),box:[...ae,...xe(um)],parts:[vN(!1),Vne,vN(!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:EN,...te,...ie}}),AN={IntroBleed:Mne(),Manifesto:$ne(),Split:qne()};var FN={headPlacement:void 0},RN={top:0,bottom:0,topPhone:0,bottomPhone:0},Yne=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...J,direction:"column",...de(e,RN)}),box:[...ae,...xe(RN)],parts:[{kind:"core",keep:"rest",props:FN}],drop:{...te,...ie}}),LN={top:120,bottom:120,topPhone:60,bottomPhone:60},Xne=()=>({name:"Photo Submission Form",boxProps:e=>({...J,direction:"column",gap:24,...de(e,LN)}),box:[...ae,...xe(LN)],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:FN}],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'}}),BN={Form:Yne(),SubmitBuild:Xne()};import{phoneKey as DN}from"efficient-easel/draw";var MN=1.5,NN={textStyle:"body-1",...U("body",15),lineHeight:MN},Zne={...jo,...U("label",12),letterSpacing:.12,lineHeight:MN},HN=()=>({type:oe,props:{...L,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[DN("share")]:"content",[DN("wrap")]:"nowrap",...Do(12,0),sectionBorder:{top:1},name:"Item"},slots:{[Me]:[{type:oe,props:{...L,gap:0,gapPhone:0,name:"Item words"},slots:{[Me]:[Ke("label",{...K,tag:"p"},NN),Ke("meta",{...se,tag:"p"},Zne)]}},Ke("amount",{...K,tag:"p"},NN)]}});var Jne=()=>({name:"Order Table",boxProps:()=>({...J,direction:"column"}),box:[...ae],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[No]:[HN()]}}],drop:{...te}}),WN={OrderSummary:Jne()};import{phoneKey as Qne}from"efficient-easel/draw";var Z6e={eyebrow:"By the numbers",title:`A picture worth
335
+ *a thousand rows.*`},UN=["eyebrow","title","body","caption"],J6e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var zN=["eyebrow","title","body"],eWe={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 jN={top:76,bottom:76,topPhone:76,bottomPhone:76},KN=()=>({kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{...L,direction:"row",phoneRow:2,[Qne("share")]:"content"},parts:[Eu("eyebrow")]},{kind:"text",key:"title",role:"heading",props:K,style:{textStyle:"heading-2",...U("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...se,maxWidth:435},style:{textStyle:"body-1",...U("body",15),lineHeight:1.625}}]}),VN=e=>(o,t)=>({...J,sectionAccent:Uy(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...de(o,jN)}),qN=[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Uy(e,t)],...xe(jN)],ese=()=>({name:"Chart",boxProps:VN([42]),box:qN,parts:[KN(),{kind:"group",name:"Chart",props:{...L,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Zs},pe("caption",{color:"muted",...U("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...UN],drop:{...te,...ie}}),$N=e=>e.align==="left",GN={kind:"group",name:"Card",keepEmpty:!0,props:L,parts:[{kind:"core",keep:"rest",props:Zs}]},ose=()=>({name:"Mockup Card",boxProps:VN("equal"),box:qN,parts:[{...GN,when:$N},KN(),{...GN,when:e=>!$N(e)}],pressKeepsEmpty:[...zN],drop:{...te,...ie}}),YN={Chart:ese(),Mockup:ose()};var tse={title:"Back online in",zeroText:"Almost done. Back very soon."},XN=["title"],iWe={label:"Countdown",defaultProps:{...tse,endsAt:"",showUnits:!0}};var ZN={top:48,bottom:48,topPhone:48,bottomPhone:48},rse={...pe("title",{...qC(12),color:"muted"}),props:{...K,align:"center"}},ase=()=>({name:"Countdown",boxProps:e=>({...J,direction:"column",align:"center",gap:16,gapPhone:16,...de(e,ZN)}),box:[...ae,...xe(ZN)],parts:[rse,{kind:"core",keep:"rest",props:Zs}],pressKeepsEmpty:[...XN],drop:{...te,...ie}}),JN={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},nse=()=>({name:"Feature Banner",boxProps:e=>({...J,direction:"column",sectionBorder:{bottom:1},...de(e,JN)}),box:[...ae,...xe(JN)],parts:[{kind:"core",keep:"rest",props:Zs}],drop:{...te,...ie}}),QN={Countdown:ase(),FeaturedCover:nse()};var e2={top:80,bottom:80,topPhone:60,bottomPhone:60},sse=()=>{let e=ju("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...J,direction:"column",gap:td[kn("FitmentFinder")],...de(o,e2)}),box:[...ae,...xe(e2)],parts:[St("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'}}},o2={FitmentFinder:sse()};var mm={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},IWe={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var gd={eyebrow:ze.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"},yWe={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var t2={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},wWe={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var r2={title:`Section heading
336
+ *Highlight line*`},a2=[{label:co.text,href:co.href,variant:"primary"},{label:co.text,href:co.href,variant:"outline"}],kWe={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var ew="solid",lse=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function EWe(e){return io(lse,ew,e)}var ise="sf-secnum-outline",OWe="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",_We=`@supports (-webkit-text-stroke: 1px currentColor){.${ise}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var hm="standard",i2=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],tw=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],ow=[...tw,"description"],n2={standard:["eyebrowLook"],editorial:[...tw,"eyebrowLook"],simple:ow,statement:ow,natural:tw,essay:ow},s2=["gap-5","gap-3"],l2=["text-[length:var(--size-body,16px)]","text-[15px]"];function FWe(e){return io(s2,s2[0],e)}function BWe(e){return io(l2,l2[0],e)}function DWe(e){return io(i2,hm,e)}function NWe(e){let o=i2.map(r=>r.value),t=[...new Set(Object.values(n2).flat())];return _a(e,t.map(r=>[[r],mh("headStyle",o,hm,o.filter(a=>!n2[a].includes(r)))]))}var Dr={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:ze.viewAll},zWe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:hm,num:Dr.num,numStyle:ew,title:Dr.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var d2={top:72,bottom:72,topPhone:72,bottomPhone:72},dse={name:"Editorial Text",boxProps:e=>({...J,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...de(e,d2)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...ae,...xe(d2)],parts:[St("Prose"),{kind:"text",key:"body",props:se,style:{textStyle:"body-1",...U("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)"}},c2={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},f2=(e,o)=>o?.variant==="primary",p2=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:f2,variant:"primary",style:{letterSpacing:.3},props:{...vo,...c2,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!f2(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...vo,...c2,...o}}]}),xm=e=>Ze(e.title),cse={name:"Call-to-Action Heading",boxProps:e=>({...J,direction:"row",align:"center",justify:xm(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...yt(e,"TitleWithButtons")}),box:[...ae,...pa("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...L,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:K,style:{textStyle:"heading-1",...et("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...L,gap:14,gapPhone:14,widthFitPhone:"fill",...xm(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[p2(xm,{widthFit:"fill",iconPosition:"end"}),p2(e=>!xm(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 fse(e,o){let t=Qs(o,{to:so(e.sectionPaddingUnit)}),r=Qs(o,{view:"phone",to:so(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var u2={top:40,bottom:64,topPhone:24,bottomPhone:36},pse={name:"Section Header",boxProps:(e,o)=>({...J,direction:"column",gap:0,...de(e,u2),...fse(e,o)}),box:[...ae,...xe(u2)],parts:[St("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"}},m2={...L,direction:"row",share:[67],gap:32},h2={...L,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},x2=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),use={name:"Lead Text",boxProps:e=>({...J,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...yt(e,"ParagraphsA")}),box:[...ae,...pa("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...m2,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...L,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[pe("eyebrow",{color:"labels",...U("label",12),letterSpacing:.24})]},x2("Stats column",L,{kind:"group",name:"Stats",props:{...h2,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Zi("value","label",{...U("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...m2,gapPhone:28},parts:[{kind:"group",name:"Lead",props:L,parts:[{kind:"group",name:"Measure",props:{...L,maxWidth:780},parts:[{kind:"text",key:"lead",props:K,style:{textStyle:"heading-3",...U("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},x2("Note column",{...L,justify:"end"},{kind:"group",name:"Founders",props:{...h2,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...L,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:K,style:{textStyle:"body-1",fontRole:"heading",...U("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:se,style:{textStyle:"body-5",fontRole:"heading",...U("body",14,12),lineHeight:1.7}}]},pe("attribution",{...U("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...te}},I2={top:24,bottom:24,topPhone:24,bottomPhone:24},mse={name:"Banner",boxProps:e=>({...J,direction:"column",gap:0,...de(e,I2)}),box:[...ae,"contained",...xe(I2)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...L,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...yr("surface"),...Do(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(q(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...L,gap:20,gapPhone:20},parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...K,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...U("headingMedium",44,32)}},{kind:"text",key:"body",props:{...K,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...U("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:vo}]}],drop:{...te,...ie}},rw={Prose:dse,TitleWithButtons:cse,SectionHeader:pse,ParagraphsA:use,Banner:mse},g2={Prose:()=>({eyebrow:mm.eyebrow,title:cr(mm.title),body:mm.body}),TitleWithButtons:()=>({title:cr(r2.title),buttons:a2.map(e=>({...e}))}),SectionHeader:()=>({num:Dr.num,title:cr(Dr.title),description:Dr.description,linkText:Dr.linkText,linkHref:co.href}),ParagraphsA:()=>({eyebrow:gd.eyebrow,lead:ze.body,foundersHeading:gd.foundersHeading,foundersBody:gd.foundersBody,attribution:gd.attribution}),Banner:()=>({...t2,ctaText:co.text,ctaHref:co.href}),ProcessSteps:()=>({num:Dr.num,title:cr(Dr.title)})};function b2(){Co(rw),Co(uB),Co(PB),Co(rB),Co(MB),Co(gD),Co(LD),Co(ND),Co(XD),Co(sN),Co(gN),Co(AN),Co(BN),Co(WN),Co(o2),Co(YN),Co(QN)}var xse=["FooterPayment"];function y2(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))hse(n)&&(r[a]=n.map(s=>y2(s,o)));return o(e.type,r)}var bd=(e,o)=>{if(!xse.includes(e.type))return null;b2();let t=ca(e.type);return t?Ys({type:e.type,props:{...e.props}},t).nodes.map(r=>y2(r,o)):null};function S2(){let{appState:e,dispatch:o,config:t}=wse(f=>f),{readOnly:r}=vse(),[a,n]=bse(!1),s=e.data.content;if(r||s.some(f=>f.type===We))return null;let l=s.find(f=>f.type===qe)??null,d=(f,u)=>yse(t,f,u),c=()=>{let f=Ki(l,d,Sse(We),bd);o({type:"setData",data:u=>({...u,content:[...vc(u.content,f)]}),recordHistory:!0}),n(!1)};return Im(Cse,{tone:"info",title:i("This footer uses the old layout"),action:a?gse(Ise,{children:[Im(aw,{variant:"primary",size:"sm",onClick:c,children:i("Switch now")}),Im(aw,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):Im(aw,{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 nw,jsxs as kse}from"react/jsx-runtime";import{InspectorUpLevel as w2}from"efficient-easel/chrome";function C2({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Lp(),n=Gs(e,o,"picture");return kse("div",{children:[o!=="media"?nw(w2,{inline:!0,name:i(dn.media),onSelect:()=>a(Pi(e,"media"))}):nw(w2,{inline:!0,name:i(t),onSelect:r}),nw(jt,{part:o,motion:n,itemWord:i(dn[o])})]})}import{HintsToggle as Hse,SettingsSwitch as Wse,hintsFoldClass as Use}from"efficient-easel/panel";import{useHints as zse}from"efficient-easel/screen/lib/hints";var O2={kind:"header"},iw={kind:"website"},_2={kind:"website",tab:Ns,revealPageGroup:!0},A2={kind:"chat"},R2={kind:"social"},yd="Part";function $se(e){return i("Part of {name}",{name:i(e)})}function Gse(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?$se(r.label):i(yd)}}function jse(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 L2({what:e}){let o=jse(e);return Ia("div",{className:"sf-note",children:[Pe("p",{children:Pe("strong",{children:o.title})}),Ia("p",{children:[i("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function lw(e){let o=Ti[e];return{name:dn[e],kindLabel:yd,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=E2({name:i(Bp(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?Pe(C2,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Kse={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Pe(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)=>Pe(vp,{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:()=>Pe(gA,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Pe(vA,{unavailable:Pe(L2,{what:"Social link"})})},ticker:{name:Ci,kindLabel:yd,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Gse(o,e.heroId,i(Ci)):null,render:e=>Pe(zR,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:lw("media"),heroImage:lw("image"),heroImage2:lw("image2"),part:{name:yd,kindLabel:yd,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}=zt(e.propKey),n=a?Es(t.fields[r],a):t.fields[r],s=lu(t.type),l=s?wl(s,e.propKey):null,d=s&&l?s[l].label:QR[e.propKey],c=d?i(d):LO(i(mg(Jf(n??{},r))),a),f=E2({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"?Pe(yL,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Vse=new Set(["header","website","chat"]);function qse(e,o){if(e==="selection")return null;let t=Kse[e];return Vse.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Pe(L2,{what:t.name})}:t}function F2({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}=Bse(),{rows:C}=yi(),S=C?.find(M=>M.slug===u)??null,T=Pse(),y=Object.keys(T.fields).some(M=>!M.startsWith("_")&&!gi.includes(M)),{websiteName:b}=ge(),P=Dse({readOnly:I}),{select:H}=Nse(),{selectedItem:E,getItemById:W,getSelectorForId:O,config:D,appState:v}=Tse(M=>M),_=Lse(D,E?{type:E.type,props:E.props}:null),A=E?HO(_??D.components[E.type]?.fields,E.props):[],F=M=>D.components[M]?.label??M,z=E?O(E.props.id):void 0,$=qse(e.kind,d),X=Fse(),Q={capabilities:d,tokenRef:c,hostPanels:X.chrome?.panels,describeNode:M=>{let Re=W(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},Le=$?.head?.(e,Q)??null,Ee=pA({kind:S?.kind,pageName:S?.label}),Ue=Le?.name??($?i($.name):E?i(F(E.type)):Ee.name),Ge=Le?.kindLabel??($?i($.kindLabel):E?z&&z.zone!==P2?i("Block"):i("Section"):Ee.kindLabel),Ie=$?$.icon:E?E.type:"page",ke=sw(e)&&E?Mi(E.type):null,Oe=!!E&&!!z&&z.zone===P2&&E.type!==qe&&E.type!==Mse,De=Su(v?.data,E),ro=()=>{De||z&&P.duplicateComponent(z.zone,z.index)},go=()=>{z&&(P.removeComponent(z.zone,z.index),P.select(null))},ne=E?D.components[E.type]?.defaultProps?.previewHover:void 0,Ne=sw(e)&&!!E&&!!z&&ne!==void 0,je=Ne&&E.props.previewHover===!0,Z=()=>{!E||!z||P.replaceComponent(z.zone,z.index,{...E,props:{...E.props,previewHover:!je}})},{shown:_e,setShown:lt}=zse(),fo=!!($||E||y);return Ia("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Use(_e)}`.trim(),children:[Pe(_se,{icon:Pe(cn,{type:Ie,size:15}),name:Ue,kind:Ge,actions:!n&&sw(e)&&E&&E.type!==qe?Ia(v2,{children:[Pe(k2,{label:i("Duplicate section"),title:De??void 0,disabled:De!==null,onClick:ro,children:Pe(Ase,{size:15})}),Oe&&d.hasSiteSettings&&Pe(RL,{node:E,currentSlug:u,siteId:p??void 0,tokenRef:c,runAuthed:h,onNotify:s}),Pe(k2,{label:i("Remove section"),danger:!0,onClick:go,children:Pe(Rse,{size:15})}),l?Pe(T2,{side:"right",onHide:l,divider:!0}):null]}):l?Pe(T2,{side:"right",onHide:l}):void 0}),Ne&&Ia("div",{className:"sf-preview-pin",children:[Ia("div",{className:"sf-preview-pin-text",children:[Pe("span",{className:"sf-preview-pin-label",children:i("Preview hover state")}),Pe("span",{className:"sf-preview-pin-hint",children:i("not shown live")})]}),Pe(Wse,{checked:je,onChange:Z,ariaLabel:i("Preview hover state")})]}),Ia("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$?$.render(e,Q):E?Ia(v2,{children:[E.type===qe&&d.hasSiteSettings&&Pe(S2,{}),Pe(EP,{children:Pe(jt,{entries:Pe(LL,{parts:A,heading:!1,onOpen:M=>H(Xf(E.props.id,M))}),entryCount:_y(A).length,itemWord:Ue})}),ke&&Pe(fu,{source:ke,slug:Ks(E?.props),menuId:nu(E?.props)})]}):y?Pe(jt,{omit:gi}):Pe(Ose,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&Pe(Ese,{variant:"secondary",onClick:r,children:i("This page")})}),fo&&Pe(Hse,{shown:_e,onChange:lt,label:i("Show hints")})]})]})}import{jsx as m,jsxs as R,Fragment as H2}from"react/jsx-runtime";var Io={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)"},dw="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:Io[t],flex:"none",...a}})}var Yse={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)"},$e=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Mr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return R("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[m("span",{style:r("8% 26% 30% 6%",x.mark1)}),m("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function bm({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function B2({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return R(H2,{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 cw({name:e,price:o}){return R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...$e(x.paper,x.paper2,150)},children:m(Mr,{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 Nr({k:e,v:o,ok:t}){return R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[m("span",{children:e}),R("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("b",{style:{color:x.text,fontWeight:700},children:o}),t&&m("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function Be({title:e,children:o}){return R("div",{style:{...Y,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(bm,{children:e}),o]})}function D2({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 fw({filled:e=5,size:o=6}){return R("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),m("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function Sd({n:e,label:o,tone:t=x.text}){return R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function mo({children:e,w:o}){return m("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function gm({label:e,w:o="100%",filled:t}){return R("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),m("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function N2({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 Xse={wheelslisting:m(Be,{title:"All wheels",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...$e(x.paper,x.paper2,150)},children:m(Mr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>R("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,m("span",{style:{opacity:.6},children:"\u2715"})]},e)),m("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...$e(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),R("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>R("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e)),m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:m(Be,{title:"Tyres that suit",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:x.ink},children:m("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:m(Be,{title:"Available sizes",children:m("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>m("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:R(Be,{title:"Will it fit your car?",children:[m("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>R("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:R("div",{style:{...Y,background:x.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>R("div",{style:{display:"flex",alignItems:"center",gap:3},children:[m("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),m("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[m("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:R("div",{style:{...Y,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(bm,{children:"Buy it with"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>m("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:x.card},children:m(Mr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),m("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...$e(x.ink,x.ink2)},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),m("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),m("span",{style:{fontSize:"3.65cqw",color:x.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:m(Be,{title:"Who do you need?",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:m(Be,{title:"Find us",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:m(Be,{title:"Our studios",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:x.muted},children:"A \xB7 AMERICAS"}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>R("div",{style:{position:"relative",minHeight:0},children:[m(G,{r:3,style:{...Y,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${$e(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(Be,{title:"Find us",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>R("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[m(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}),R("div",{style:{flex:1,minHeight:0,position:"relative"},children:[m(G,{r:3,style:{...Y,...$e(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(Be,{title:"Send us a message",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[R("div",{style:{display:"flex",gap:5},children:[m(gm,{label:"Name"}),m(gm,{label:"Email"})]}),m(gm,{label:"Message",filled:!0}),m(N2,{children:"SEND"})]})}),appointmentbooking:m(Be,{title:"Book a fitting",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?x.text:x.paper,color:o===2?x.onInk:x.muted},children:e},e))}),m("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:m(Be,{title:"Leave a review",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(fw,{filled:4,size:14}),m(gm,{label:"Your review",filled:!0}),m(N2,{children:"POST"})]})}),submitbuild:m(Be,{title:"Show us your build",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[m("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[m("span",{style:{height:1.5,background:x.text}}),m("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),R("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[m("span",{children:"Issue 14"}),m("span",{children:"Spring 2026"})]}),m("span",{style:{height:1,background:x.rule}})]}),featuredcover:R("div",{style:{...Y,overflow:"hidden",...$e(x.ink,x.inkSoft2)},children:[m(Mr,{size:92,style:{right:-18,top:-14}}),m("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),R("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.warm},children:"FEATURE"}),m("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:R("div",{style:{...Y,background:x.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:x.rust},children:"12 MIN READ"}),m("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),m(mo,{children:"Every failure starts in the same place:"}),m(mo,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:R("div",{style:{...Y,background:x.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[m("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"Why offset beats width"}),m(mo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),m(mo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),m(mo,{w:"80%",children:"Width follows from the space left."})]}),series:m(Be,{title:"Recurring columns",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),m("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:m(Be,{title:"Latest posts",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...$e(e,o,150)}}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:R("div",{style:{...Y,background:x.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.muted},children:"POLICY"}),m("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),m("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:m("div",{style:{...Y,background:x.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>R("div",{style:{display:"flex",gap:5},children:[m("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),m(mo,{children:o})]},e))}),docmetacards:m(Be,{title:"At a glance",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),m("span",{style:{height:1,background:x.rule}}),R("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[m(mo,{children:"Unfitted wheels come back within 30 days, no questions."}),m(mo,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:R("div",{style:{...Y,background:x.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[m("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:x.text},children:"The right wheel is the boring one."}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(mo,{children:"Forged, correctly offset, rated for what you actually"}),m(mo,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:m(Be,{title:"Key features",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),m("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:R("div",{style:{...Y,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[m(Sd,{n:"27k",label:"Rigs"}),m(Sd,{n:"4.9",label:"Rating"})]}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(mo,{children:"Twelve years of fitting the same three questions, and the"}),m(mo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:R(Be,{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",...$e(x.inkSoft,x.ink)},children:R("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[m("div",{style:{height:9,background:x.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>m("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:x.mark1}},e))}),R("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),m("span",{style:{height:14,borderRadius:2,...$e(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",...$e(x.ink,x.ink2)},children:R("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",m("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:m(Be,{title:"Our story",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>R("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&m("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:x.rule}}),m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),R("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m(mo,{children:o})]})]},e))})}),timelinetrack:R("div",{style:{...Y,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...$e(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),R("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[m("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[m("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?x.warm:x.mark1}}),m("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:R("div",{style:{...Y,overflow:"hidden",...$e(x.paper,x.paper2,150)},children:[m("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:x.mark1,opacity:.75}}),m("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:x.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>m("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:x.rust}},e)),m("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),m("span",{style:{fontSize:"3.98cqw",color:x.onInk,opacity:.8},children:"Fitted free, this month only."})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[m("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"Not sure what fits?"}),R("div",{style:{display:"flex",gap:5},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:m("div",{style:{...Y,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:m("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...$e(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.muted},children:"Back online in"}),m("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>R("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&m("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[m("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),m("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:m("div",{style:{...Y,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:R("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",m("span",{style:{opacity:.5},children:"/"})," Wheels ",m("span",{style:{opacity:.5},children:"/"})," ",m("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),m("span",{style:{height:1,background:x.rule}})]}),intro:R("div",{style:{...Y,overflow:"hidden",background:x.card},children:[m("div",{style:{position:"absolute",inset:0,...$e(x.ink,x.inkSoft2)}}),m(Mr,{size:64,style:{right:8,top:6}}),R("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),m(mo,{children:"One shed, one lathe, one idea."}),m(mo,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:m(Be,{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,...$e(e,o,140+t*22)}},t))})}),gallery:R(Be,{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,...$e(e,o,150+t*20)}},t))})]}),ordersummary:R(Be,{title:"Order summary",children:[R("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[m("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...$e(x.paper,x.paper2,150)},children:m(Mr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),R("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Nr,{k:"Subtotal",v:"$1,956"}),m(Nr,{k:"Fitting",v:"Free"}),R("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[m("b",{style:{color:x.text},children:"Total"}),m("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:m(Be,{title:"Delivery",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),m("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[m(bm,{children:"Ways to pay"}),m("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...$e(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),R("div",{style:{display:"flex",gap:8},children:[m(Sd,{n:"27k",label:"Rigs fitted",tone:x.onInk}),m(Sd,{n:"12",label:"Years",tone:x.onInk}),m(Sd,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:R("div",{style:{...Y,overflow:"hidden",background:x.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[m("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:x.rust,opacity:.16},children:"\u201D"}),m(fw,{filled:5,size:7}),m("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m(D2,{}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:R(Be,{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,...$e(e,o,140+t*15)}},t))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>R("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[m(D2,{size:12}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(fw,{filled:o})]}),m(mo,{children:t})]})]},e))})]}),logos:R("div",{style:{...Y,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...$e(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"As fitted by"}),m("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>m("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:x.onInk,opacity:.82},children:e},e))})]}),prose:R("div",{style:{...Y,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),R("div",{style:{display:"flex",gap:6},children:[m("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),R("div",{style:{display:"flex",flexDirection:"column"},children:[m(mo,{children:"he number on the back of your wheel decides whether the"}),m(mo,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:m(Be,{title:"What you get",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(mo,{children:o})]},e))})}),faq:m(Be,{title:"Questions",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>R("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&m(mo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:R("div",{style:{...Y,overflow:"hidden",...$e(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(B2,{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(Mr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:R("div",{style:{...Y,display:"flex",background:x.paper,overflow:"hidden"},children:[m("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:m(B2,{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",...$e(x.inkSoft,x.inkSoft2)},children:m(Mr,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(Be,{title:"Best sellers",children:R("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(cw,{name:"Ridge 19",price:"$365"}),m(cw,{name:"Ridge 29",price:"$410"}),m(cw,{name:"Ridge 39",price:"$455"})]})}),collections:m(Be,{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,...$e(o,t)},children:m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:R("div",{style:{...Y,display:"flex",background:x.card,overflow:"hidden"},children:[m("div",{style:{flex:1.1,position:"relative",...$e(x.paper,x.paper2,150)},children:m(Mr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:x.rust},children:"NITTO"}),m("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:m(Be,{title:"Specifications",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Nr,{k:"Diameter",v:'20"'}),m(Nr,{k:"Width",v:"9.0J"}),m(Nr,{k:"Offset",v:"+12"}),m(Nr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:m(Be,{title:"Will it fit?",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Nr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(Nr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(Nr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:R("div",{style:{...Y,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[m(bm,{children:"How it works"}),m("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),m("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:m("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=m("div",{style:{flex:1,...$e(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=R("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted,lineHeight:1.3},children:o})]},"tx");return m("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:m("div",{style:{...Y,background:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[m("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},M2={subscribe:R("div",{style:{...Y,padding:13,display:"flex",flexDirection:"column"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m(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:Io.line,marginBottom:10}}),R("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${Io.line}`,borderRadius:7,padding:10},children:[R("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}}),R("div",{style:{display:"flex",gap:5,marginTop:4},children:[m("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${Io.line}`,background:Io.block}}),m(G,{w:34,h:13,r:5,tone:"accent"})]})]}),R("div",{style:{flex:1,background:Io.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)=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${Io.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:R("div",{style:{...Y,display:"flex"},children:[m("div",{style:{width:"44%",background:dw}}),R("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:R(H2,{children:[m(G,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[R("div",{style:{display:"flex",alignItems:"center",gap:9},children:[m(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:R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m(G,{w:"22%",h:12,r:4,tone:"dark"}),R("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:R("div",{style:{...Y,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[R("div",{style:{display:"flex",gap:14},children:[R("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[m(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=>R("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:Io.line}}),R("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:Io.block}},o))}),blanksection:m("div",{style:{...Y,padding:14,display:"flex"},children:R("div",{style:{flex:1,border:`1px dashed ${Io.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:R("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:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:dw},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:R("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:dw}}),button:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center"},children:m(G,{w:"34%",h:16,r:8,tone:"accent"})}),menu:R("div",{style:{...Y,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(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:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m(G,{w:"56%",h:8,r:3,tone:"dark"}),R("div",{style:{display:"flex",gap:6},children:[m("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${Io.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:R("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:R("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${Io.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${Io.dark}`}}),m(G,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${Io.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${Io.dark}`},children:m(G,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:R("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${Io.line}`},children:[m(G,{w:22,h:6,r:2,tone:"dark"}),m(G,{w:6,h:4,r:1,tone:"soft"})]}),R("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${Io.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:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m("div",{style:{height:1,background:Io.line}}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(G,{w:"38%",h:5,r:2,tone:"soft"}),R("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:Io.block}})};function W2({type:e}){let o=Yse[e]??"",t=Xse[o]??M2[o]??M2.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 $m}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as nl,jsxs as U2}from"react/jsx-runtime";import Zse from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Jse}from"efficient-easel/rail";import{Tooltip as Qse}from"efficient-shell/ui";import{HintsToggle as ele,hintsFoldClass as ole}from"efficient-easel/panel";import{useHints as tle}from"efficient-easel/screen/lib/hints";function z2({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let d=Ms(),{shown:c,setShown:f}=tle();return U2("div",{className:`sf-styles ${ole(c)}`.trim(),children:[nl(Zse,{icon:nl(Jse,{}),title:i("Styles"),context:nl(Qse,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:d,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:nl("span",{className:"sf-name-text",children:d})})}),U2("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[nl(vp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),nl(ele,{shown:c,onChange:f,label:i("Show hints")})]})]})}import{jsx as ko,jsxs as Rn,Fragment as ile}from"react/jsx-runtime";import{Fragment as tM,useEffect as rM,useRef as Iw}from"react";import{useTreeDrag as aM}from"efficient-easel/drag";import{GlobeIcon as dle,ImageIcon as cle,LocationIcon as fle,MapIcon as ple,TextLinesIcon as ule,TrashIcon as nM}from"efficient-easel/icons";import{Subtree as sM,TreeRow as Cd,TreeRowAction as lM,TreeSeam as iM}from"efficient-easel/tree";import{useEaselStrings as mle}from"efficient-easel/strings";import{createPreviewSelectionContext as rle}from"efficient-easel/draw/client";var{Provider:Kze,useSelection:$2}=rle("selectedLocationPartId");function G2(e,o,t){return`${e}::${o}::${t}`}function j2(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 ale}from"react";var nle={level:"groups"},V2=nle,pw=new Set;function qt(e){V2=e;for(let o of pw)o()}function sle(e){return pw.add(e),()=>{pw.delete(e)}}var K2=()=>V2;function q2(){return ale(sle,K2,K2)}var wd=e=>String(e?.group??""),uw=new WeakMap,lle=0;function ym(e){let o=uw.get(e);return o||(o=`loc${++lle}`,uw.set(e,o)),o}var Y2=(e,o)=>o||e||"Ungrouped",X2={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 Cu(e,wd,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var mw=e=>e.flatMap(o=>o.cards),Z2=(e,o,t)=>Math.min(Math.max(e,o),t);function Sm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(wd(e[a])===o){if(r===t)return a;r++}return-1}function hw(e,o,t){let r=An(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=Z2(o<t?t-1:t,0,r.length);return r.splice(n,0,a),mw(r)}function xw(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&&uw.set(c,ym(d));let f=Z2(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,c),mw(n)}function J2(e,o){let t=An(e),r=t.find(n=>n.key===o),a={...X2,group:o,groupName:r?.name??""};return r?(r.cards.push(a),mw(t)):[...e,a]}function Q2(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,{...X2,group:r,groupName:""}],key:r}}function eM(e,o){return e.filter(t=>wd(t)!==o)}function oM(e,o,t){let r=Sm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Zze(e,o,t){let r=e.flatMap((s,l)=>wd(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 Jze(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>wd(n)===r);return a.length?a:t(r)})}var Cm="ContactLocations",wm=e=>({parentId:`locations-${e}`,slot:"groups"}),gw=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function dM(e,o){let{readOnly:t,selected:r}=o,a=mle().tree,n=o.data?.content??[],s=hle(e),l=Iw(null);rM(()=>{let y=r?.type===Cm?String(r.props.id):null;y&&y!==l.current&&qt({level:"groups"}),l.current=y},[r?.props.id]);let{selectedLocationPartId:d,setSelectedLocationPartId:c,setSelectHandler:f}=$2(),u=q2(),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=aM({keyOf:y=>`group:${y.si}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===wm(y.si).parentId&&b.slot==="groups",onDrop:(y,b)=>{p(y.si,hw(h(y.si),y.index,b.index)),u.level==="city"&&qt({level:"groups"})},onStep:(y,b)=>{p(y.si,hw(h(y.si),y.index,b<0?y.index-1:y.index+2)),u.level==="city"&&qt({level:"groups"})}}),g=aM({keyOf:y=>`city:${y.si}:${y.group}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===wm(y.si).parentId&&b.slot.startsWith("cities:"),onDrop:(y,b)=>{let P=b.slot.slice(7);p(y.si,xw(h(y.si),y.group,y.index,P,b.index)),qt({level:"group",key:P})},onStep:(y,b)=>{p(y.si,xw(h(y.si),y.group,y.index,y.group,b<0?y.index-1:y.index+2)),u.level==="city"&&qt({level:"group",key:y.group})}}),C=Iw(n);C.current=n;let S=Iw(()=>{});rM(()=>{f(y=>{let b=j2(y);if(!b)return;let P=C.current.findIndex(H=>H.props?.id===b.nodeId);P<0||S.current(P,{level:b.part,index:b.index})})},[f]);let T=(y,b)=>{l.current=n[y]?.props?.id??null,o.select(y),qt(b),e.reveal();let P=n[y]?.props?.id;typeof P=="string"&&(b.level==="city"||b.level==="image"||b.level==="map")?c(G2(P,b.index,b.level)):c(null),typeof P=="string"&&o.scrollTo(P)};return S.current=T,{renderLocationTree:(y,b,{rowClick:P,isCollapsed:H,toggleCollapse:E})=>{let W=h(b),O=An(W),D=String(y.props.id),v=s&&r?.props.id===D,_=F=>ko(iM,{...t?{}:I.seam({place:{...wm(b),index:F}})},`seam:${D}:groups:${F}`),A=(F,z)=>ko(iM,{...t?{}:g.seam({place:{...gw(b,F),index:z}})},`seam:${D}:cities:${F}:${z}`);return Rn(ile,{children:[ko(Cd,{icon:ko(ule,{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,Le=F.name||F.key?Y2(F.key,F.name):i("Ungrouped"),Ee={...gw(b,F.key),index:F.cards.length},Ue=g.row({item:{si:b,group:F.key,index:-1},place:Ee,into:Ee,canDrag:!1},{onClick:P(()=>T(b,{level:"group",key:F.key}))}),Ge=I.row({item:{si:b,index:z},place:{...wm(b),index:z}},Ue.rowProps);return Rn(tM,{children:[z===0&&_(0),ko(Cd,{icon:ko(dle,{size:13}),name:Le,words:a,onSelect:()=>T(b,{level:"group",key:F.key}),selected:Q,draggable:Ge.draggable,dragging:Ge.dragging,drop:Ge.drop??Ue.drop,fold:{open:!X,label:i("group"),onToggle:()=>E($)},actions:ko(lM,{kind:"delete",label:Uo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",F.cards.length,{label:Le}),onClick:()=>{p(b,eM(W,F.key)),qt({level:"groups"})},children:ko(nM,{size:15})}),rowProps:Ge.rowProps,count:F.cards.length,countLabel:Uo("{n} city","{n} cities",F.cards.length)}),!X&&Rn(sM,{children:[F.cards.map((Ie,ke)=>{let Oe=Sm(W,F.key,ke),De=v&&u.level==="city"&&u.index===Oe,ro=String(Ie?.name??"")||i("City"),go=`${D}::city::${ym(Ie)}`,ne=H(go),{rowProps:Ne,...je}=g.row({item:{si:b,group:F.key,index:ke},place:{...gw(b,F.key),index:ke}},{onClick:P(()=>T(b,{level:"city",index:Oe}))});return Rn(tM,{children:[ke===0&&A(F.key,0),ko(Cd,{icon:ko(fle,{size:13}),name:ro,words:a,onSelect:()=>T(b,{level:"city",index:Oe}),selected:De,...je,fold:{open:!ne,label:ro,onToggle:()=>E(go)},actions:ko(lM,{kind:"delete",label:i("Delete {name}",{name:ro}),onClick:()=>{p(b,oM(W,F.key,ke)),qt({level:"group",key:F.key})},children:ko(nM,{size:15})}),rowProps:Ne}),!ne&&Rn(sM,{children:[ko(Cd,{icon:ko(cle,{size:13}),name:i("Image"),words:a,onSelect:()=>T(b,{level:"image",index:Oe}),selected:v&&u.level==="image"&&u.index===Oe,rowProps:{onClick:P(()=>T(b,{level:"image",index:Oe}))}}),ko(Cd,{icon:ko(ple,{size:13}),name:i("Map"),words:a,onSelect:()=>T(b,{level:"map",index:Oe}),selected:v&&u.level==="map"&&u.index===Oe,rowProps:{onClick:P(()=>T(b,{level:"map",index:Oe}))}})]}),A(F.key,ke+1)]},ym(Ie))}),Rn("button",{type:"button",className:"sf-add-card",onClick:()=>{let Ie=J2(W,F.key);p(b,Ie);let ke=An(Ie).find(Oe=>Oe.key===F.key);qt(ke&&ke.cards.length?{level:"city",index:Sm(Ie,F.key,ke.cards.length-1)}:{level:"group",key:F.key})},children:[ko("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add city")]})]}),_(z+1)]},$)}),Rn("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:F,key:z}=Q2(W);p(b,F),T(b,{level:"group",key:z})},children:[ko("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add group")]})]})},sectionPressed:y=>{y?.type===Cm&&qt({level:"groups"})}}}import{useEffect as vie,useRef as kie}from"react";import{createNode as Ew,newId as Ow}from"efficient-easel/data";import{useEaselApi as Tie}from"efficient-easel/easel";import{useScreenDocument as Pie}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Eie}from"efficient-easel/screen/lib/session-context";import{useEffect as pH,useRef as Sie}from"react";import{useEasel as wie}from"efficient-easel/easel";import{ROOT_ZONE as Pw}from"efficient-easel/draw";var vd={};function cM(e){return vd={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},vd}function fM(e){vd===e&&(vd={})}function sl(){return vd}import{jsx as Tt,jsxs as aH}from"react/jsx-runtime";import{createContext as fie,useContext as pie,useEffect as uie,useRef as mie,useState as nH}from"react";import{jsx as ga,jsxs as wM}from"react/jsx-runtime";import{useEffect as ll,useRef as CM,useState as Ln}from"react";import{jsx as pM,Fragment as xle,jsxs as Ile}from"react/jsx-runtime";import{useEffect as gle,useRef as uM,useState as ble}from"react";var yle="#t=0.001",Sle=2;function wle(e,o){if(e.readyState<Sle||!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 mM({src:e,objectPosition:o="50% 50%",onError:t}){let r=uM(null),a=uM(null),[n,s]=ble(!1);return gle(()=>{let l=r.current,d=a.current;if(n||!l||!d)return;let c=()=>{wle(l,d)&&s(!0)};return c(),l.addEventListener("loadeddata",c),l.addEventListener("seeked",c),()=>{l.removeEventListener("loadeddata",c),l.removeEventListener("seeked",c)}},[n]),Ile(xle,{children:[pM("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&&pM("video",{ref:r,src:`${e}${yle}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as IM,imageSrcSet as Cle}from"efficient-shell/image-copies";var hM;function bw(){return hM===void 0?{}:{host:hM}}var I$e="(max-width: 800px) 100vw, min(100vw, 1600px)",g$e="(max-width: 960px) 100vw, 50vw";function yw(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=Cle(e,{...bw(),...t===void 0?{}:{maxWidth:t}});return r?{src:IM(e,o,bw()),srcSet:r}:{src:e}}var vle=/[\s"'()\\;]/,kle={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function xM(e){return e.replace(/[\\"\n\r\f]/g,o=>kle[o]??o)}function b$e(e){let o=IM(e,1920,bw());return o===e?vle.test(e)?`url("${xM(e)}")`:`url(${e})`:`url("${xM(o)}")`}import{jsx as gM}from"react/jsx-runtime";import{createContext as Tle,useContext as Ple,useMemo as C$e}from"react";var bM=Tle(null);function yM({children:e}){return gM(bM.Provider,{value:"below",children:e})}function kd(){return Ple(bM)}function Ele(){return kd()==="below"?{loading:"lazy"}:{}}function SM(e){let o=Ele();return gM("img",{...e,...o})}var v$e="laterSlideIds";var Ole=.5;function Td({videoSrc:e,videoAv1Src:o,videoSrcPhone:t,videoAv1SrcPhone:r,posterSrc:a,posterSrcPhone:n,showVideo:s=!0,playbackRate:l=Ole,objectPosition:d="50% 50%",objectPositionPhone:c,objectPositionTablet:f,quiet:u=!1,slideShown:p,laterSlide:h=!1,laterOfLead:I=!1}){let g=FP(c,f),C=kd(),[S,T]=Ln(!1),y=C==="below"&&!S,b=C==="first",P=a||"",H=n||"",E=CM(null),W=ud(E,!0,!0),O=W===void 0?void 0:W==="phone",D=gc({video:e,av1:o,videoPhone:t,av1Phone:r},O===!0),v=D.video||"",_=Ic(v,D.av1),[A,F]=Ln(!1),[z,$]=Ln(!1),[X,Q]=Ln(!1),[Le,Ee]=Ln(!1),Ue=p??!0,[Ge,Ie]=Ln(!1),ke=C!=="first"&&!I,[Oe,De]=Ln(!1),ro=CM(null);ll(()=>{if(!ke)return;if(document.readyState==="complete"){De(!0);return}let Z=()=>De(!0);return window.addEventListener("load",Z,{once:!0}),()=>window.removeEventListener("load",Z)},[ke]),ll(()=>{F(!1),$(!1),Q(!1),Ee(!1)},[v,P,H]),ll(()=>{Ue&&Ie(!0)},[Ue]),ll(()=>{let Z=ro.current;Z&&(Ue?Z.play()?.catch(()=>{}):Z.pause())},[Ue,Ge,Oe]),ll(()=>{if(!h||ke&&!Oe)return;let Z=()=>T(!0);if(typeof window.requestIdleCallback=="function"){let lt=window.requestIdleCallback(Z,{timeout:2e3});return()=>window.cancelIdleCallback(lt)}let _e=setTimeout(Z,800);return()=>clearTimeout(_e)},[h,ke,Oe]),ll(()=>{let Z=ro.current;if(!Z)return;let _e=()=>{Z.playbackRate=l};return _e(),Z.addEventListener("loadedmetadata",_e),()=>Z.removeEventListener("loadedmetadata",_e)},[v,l]);let go=xk(P),ne=P&&(go||H)&&!z?yw(P):{src:P},Ne=H&&!z?yw(H):{src:H},je=H&&!y&&!S?[{sized:Ne,media:pi},...P?[{sized:ne,media:yl}]:[]]:[];return wM("div",{ref:E,className:"absolute inset-0 z-[1]",children:[ga("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),je.map(({sized:Z,media:_e})=>ga("link",{rel:"preload",as:"image",href:Z.src,media:_e,fetchPriority:"high",...Z.srcSet?{imageSrcSet:Z.srcSet,imageSizes:"100vw"}:{}},_e)),(P||H)&&(go||H?(()=>{let Z=ga("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:_e=>{_e.currentTarget.currentSrc&&(ne.srcSet||Ne.srcSet?$(!0):F(!0))}},H?void 0:P);return H?wM("picture",{children:[ga("source",{media:pi,srcSet:Ne.srcSet||Ne.src,sizes:"100vw"}),Z]},`${P} ${H}`):Z})():ga(eD,{src:P,alt:"",fill:!0,...y?{}:S?{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&&Ge&&(!ke||Oe)&&!X&&ga("video",{ref:ro,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=>ga("source",{src:Z.src,type:Z.type},Z.src))},v),s&&u&&v&&O!==void 0&&Ge&&(!ke||Oe)&&!Le&&(!P||A)&&ga(mM,{src:v,objectPosition:d,onError:()=>Ee(!0)},v)]})}import{jsx as Fo,Fragment as LM,jsxs as kw}from"react/jsx-runtime";import{jsx as il}from"react/jsx-runtime";import{useRef as _le}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as Ale,scrollAttrs as Rle}from"efficient-shell/format";function vM({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=_le(null),u=uc(),p=Kr(),h=n?p:es,I=pd(f,!0,s),{attrs:g,style:C}=Rle(e[I],o[I]),S=Ale.includes(e[I].effect),T=Vr(`${Jn}${u.fill}${t?` ${t}`:""}`,h.className);if(S&&l==="picture")return h.scope(il("div",{ref:f,className:T,...r,...h.attrs,...a?{style:a}:{},children:il(tk,{attrs:g,style:C,children:u.inner(c)})}));let y=il(rk,{children:u.inner(c)});if(S){let P=d??(u.fill?"h-full":void 0);return h.scope(il("div",{ref:f,className:T,...r,...h.attrs,style:{...a,overflow:"clip"},children:il("div",{...P?{className:P}:{},...g,style:C,children:y})}))}let b=Object.keys(C).length||a?{style:{...a,...C}}:{};return h.scope(il("div",{ref:f,className:T,...r,...h.attrs,...g,...b,children:y}))}import{MOTION_TIMING as Lle}from"efficient-shell/format";var EM="grayscale(1) contrast(1.03)",Y$e="Black and white";function Fle(e){return e===!0?{filter:EM}:{}}function Ble(e){let{filter:o}=Fle(e);return o?{style:{filter:o}}:{}}var Fn="sf-photo-grayscale",vw="data-sf-photo-host",kM={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Pm=`@media (hover:hover){.${Fn}{filter:${EM};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 OM(e){let o=Lle.hover,t={...e.duration!==o.duration.default?{[kM.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[kM.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function _M(e,o,t){if(e===!0)return Ble(!0);if(t?.kind==="mono"){let r=OM(t);return{className:Fn,sheet:Pm,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Fn}:{}}var AM="data-sf-repeat",Sw="sf-photo-zoom",Dle="--sf-photo-zoom",X$e="sf-photo-wash",vm="sf-photo-wash-rest",Pd="sf-photo-wash-hover",Tm="sf-photo-frame",RM=(e,o)=>`:not([${AM}]:not(${o}) .${e})`,Cw=(e,o)=>`[${AM}]${o} .${e}${RM(e,o)}`,ww=(e,o)=>`${o},${Cw(e,":hover")},[${vw}]:hover .${e}${RM(e,":hover")}`,TM=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))`,Nle=`.${Pd}{opacity:0}@media (hover:hover){.${vm},.${Pd}{transition:${TM("opacity")}}${ww(Pd,`.${Tm}:hover .${Pd}`)}{opacity:1}${ww(vm,`.${Tm}:hover .${vm}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Sw}{transition:${TM("transform")}}${ww(Sw,`.${Tm}:hover .${Sw}`)}{transform:scale(var(${Dle}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${vm},.${Pd}{transition:none}}`,Z$e="sf-photo-move";function J$e(e){if(!e||!e.zoom&&!e.darken)return null;let o=OM(e);return{className:Tm,sheet:Nle,...o?{style:o}:{}}}function Q$e(e){return e===!0?{[Fn]:Pm}:{}}var km="sf-box-reveal",eGe="sf-box-reveal",Mle=8,PM=.3,oGe=`@media ${yl}{.${km}{opacity:0;transform:translateY(${Mle}px);transition:opacity ${PM}s ease-out,transform ${PM}s ease-out}${Cw(km,":hover")},${Cw(km,":focus-within")}{opacity:1;transform:none}}@media ${yl} and (prefers-reduced-motion:reduce){.${km}{transition:none;transform:none}}`;import{hidableText as Hle}from"efficient-easel/draw";var Wle={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"},Ule={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 FM(e){let o=e.isVideo&&Dk(e.videoSource)==="youtube",t=e.isVideo&&Nk(e.videoPlayback)==="click",r=o?Mk(Hle(e.youtubeUrl)):null,a=Fp(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:yb(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&ki(e)>1}}function Ed(e,o){return dc(xn({_partMotion:e},o))}function Od(e,o){return qp(xn({_partMotion:e},o))}var Em=e=>oy({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),BM=Ah.img;function DM({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:d}){return e?Fo(UB,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:d}):o?Fo(vM,{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 dl(e,o){return _M(void 0,void 0,DC(xn({_partMotion:e},o)))}function NM(e){return ln.some(o=>dl(e,o).className)?{hostAttrs:{[vw]:""},sheet:Pm}:{}}function Om({treatment:e,children:o}){return e.className?Fo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Fo(LM,{children:o})}function _m({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 Am({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let d=o&&t?{[fA]:e}:void 0;return Fo(DM,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:d,zoomLayerClass:BM,children:l})}function MM({partMotion:e,editing:o,children:t}){let r=Ed(e,"media"),a=Od(e,"media"),n=dl(e,"media"),s=Fo(ak,{fill:Ah,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(DM,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:BM,children:l}):Fo(LM,{children:l})}function HM({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return kw("div",{className:`absolute inset-0 z-[1] grid ${Wle[o]} ${Ule[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Fo(Am,{part:"image",editing:t,marked:r,entrance:Ed(a,"image"),scroll:Od(a,"image"),origins:Em(n),className:"relative overflow-hidden",children:kw(Om,{treatment:dl(a,"image"),children:[Fo(Td,{posterSrc:dt(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Fo(_m,{color:n.tintColor,opacity:n.tintOpacity})]})}),Fo(Am,{part:"image2",editing:t,marked:r,entrance:Ed(a,"image2"),scroll:Od(a,"image2"),origins:Em(s),className:`relative overflow-hidden ${Kc({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:kw(Om,{treatment:dl(a,"image2"),children:[Fo(Td,{posterSrc:dt(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Fo(_m,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as ba,Fragment as zle,jsxs as $le}from"react/jsx-runtime";import{useEffect as Gle,useRef as jle,useState as Kle}from"react";import{PlaySolidIcon as Vle}from"efficient-shell/icons/efficient-looks";function WM({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Kle("large");return Gle(()=>n("large"),[e]),e?$le(zle,{children:[!o&&a!=="none"&&ba(SM,{src:a==="large"?Hk(e):Wk(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&ba("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:ba("iframe",{src:Uh(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 UM({youTubeId:e,fileSrc:o,fileAv1Src:t,fileSrcPhone:r,fileAv1SrcPhone:a,playing:n,onPlay:s,editing:l}){let d=jle(null),c=ud(d,!0,!0)==="phone";if(!e&&!o)return null;let f=gc({video:o,av1:t,videoPhone:r,av1Phone:a},c),u=Ic(f.video,f.av1);return n&&!l?e?ba("iframe",{src:Uh(e,"click"),title:zh,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):ba("video",{ref:p=>{d.current=p},...u.length===1?{src:u[0].src}:{},controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain",children:u.length>1&&u.map(p=>ba("source",{src:p.src,type:p.type},p.src))},f.video):ba("button",{ref:p=>{d.current=p},type:"button","aria-label":zh,onClick:l?void 0:s,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${l?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:ba(Vle,{size:28})})}function zM(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 $M=["top","middle","bottom"],GM=["left","center","right"],jM="bottom",KM="left",qle={top:"Top",middle:"Middle",bottom:"Bottom"},Yle={left:"Left",center:"Center",right:"Right"},_Ge="Up and down",AGe="Sideways",Xle={top:"flex-start",middle:"center",bottom:"flex-end"},Zle={left:"flex-start",center:"center",right:"flex-end"},Jle="--sf-hero-phone-y",Qle="--sf-hero-phone-x";function eie(e){return $M.includes(e)?e:jM}function oie(e){return GM.includes(e)?e:KM}function VM(e,o){let t=eie(e),r=oie(o),a={};return t!==jM&&(a[Jle]=Xle[t]),r!==KM&&(a[Qle]=Zle[r]),a}function RGe(){return $M.map(e=>({label:qle[e],value:e}))}function LGe(){return GM.map(e=>({label:Yle[e],value:e}))}import{hexToRgb as tie}from"efficient-shell/format";var rie=!0;var aie=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function qM(e){let o=tie(e);return o?`${o.r},${o.g},${o.b}`:null}function YM(e){return e==null?rie:e!==!1}function XM(e){let o=(e?qM(e):null)??qM(Dt);return`linear-gradient(180deg, ${aie.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as ZM}from"efficient-shell/format";var JM="bottom";var nie=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],sie={bottom:180,top:0,left:270,right:90},lie=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],iie=[[null,33],[.6,67],[.94,100]];function die(e,o){let{r:t,g:r,b:a}=ZM(e)??ZM(Dt);return`rgba(${t},${r},${a},${o})`}function QM(e){return io(nie,JM,e)}function eH(e=Dt,o=JM){let t=QM(o),r=(t==="top"||t==="bottom"?lie:iie).map(([a,n])=>`${a===null?"transparent":die(e,a)} ${n}%`);return`linear-gradient(${sie[t]}deg, ${r.join(", ")})`}function oH(e,o){let t=Se(e.overlayColor),r=Se(e.overlayPosition),a=Se(o)??Dt;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:QM(r)}}import{jsx as cie}from"react/jsx-runtime";var tH="sf-photo-hover";function rH({sheet:e,name:o=tH}){return e?cie("style",{href:o,precedence:tH,dangerouslySetInnerHTML:{__html:e}}):null}var hie=fie({});function sje({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=Dt,tintOpacity:I=0,groups:g,editing:C=!1,themeClassName:S,themeStyle:T,overlayColor:y,overlayPosition:b,mediaLayout:P,mediaLayoutPhone:H,mediaImage2:E,objectPosition2:W,objectPosition2Phone:O,objectPosition2Tablet:D,tintColor2:v=Dt,tintOpacity2:_=0,videoSource:A,youtubeUrl:F,videoPlayback:z,partMotion:$,laterSlide:X=!1}){let Q=Kr(),{alignment:Le="left",textureOpacity:Ee,textureOn:Ue,textureColor:Ge,quietVideo:Ie,phoneUpDown:ke,phoneSideways:Oe,holdReel:De,reelHeld:ro,shownSlide:go,ratioMin:ne}=pie(hie),Ne=kd(),je=X&&Ne==="first",Z=mie(null),[_e,lt]=nH(go===void 0?void 0:!1);uie(()=>{let Ca=Z.current;lt(go===void 0||!Ca?void 0:zM(Ca.closest(".hero-track"),"data-slide-name")[go]===Ca)});let fo=t==="video",M=fo?dt(r):void 0,Re=fo?dt(n):dt(r)??dt(n),ye=fo?{av1:dt(s),phone:dt(l),av1Phone:dt(d),poster:dt(c)}:{},po=typeof a=="number"?a/100:1,{fromYouTube:Fe,onClick:Et,youTubeId:ur,backgroundFile:Ye,desktopLayout:mr,phoneLayout:ya,twoPictures:Dn}=FM({isVideo:fo,videoSource:A,videoPlayback:z,youtubeUrl:F,mediaLayout:P,mediaLayoutPhone:H}),[Nn,hr]=nH(!1);Nn&&ro===!1&&hr(!1);let Hr=!Nn,Sa=oH({overlayColor:y,overlayPosition:b},Ge),ml=fo?null:Ed($,"image"),wa=fo?null:Od($,"image"),Wd=NM($),hl=Tt(Om,{treatment:fo?{}:dl($,"image"),children:Tt(Td,{videoSrc:Ye?M:void 0,videoAv1Src:Ye?ye.av1:void 0,videoSrcPhone:Ye?ye.phone:void 0,videoAv1SrcPhone:Ye?ye.av1Phone:void 0,posterSrc:Re,posterSrcPhone:ye.poster,showVideo:Ye,playbackRate:po,objectPosition:f,objectPositionPhone:fo?void 0:u,objectPositionTablet:fo?void 0:p,quiet:Ie,slideShown:_e,laterSlide:X,laterOfLead:je})}),Ud=aH("section",{ref:Z,className:Vr(`${ne?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${S?` ${S}`:""}`,Q.className),...Q.attrs,style:T,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ye&&M?"video":"still",...Wd.hostAttrs,children:[Tt(rH,{sheet:Wd.sheet}),Tt(MM,{partMotion:$,editing:C,children:Dn?Tt(HM,{laterSlide:X,desktopLayout:mr,phoneLayout:ya,editing:C,marked:!1,partMotion:$,first:{src:r,objectPosition:f,objectPositionPhone:u,objectPositionTablet:p,tintColor:h,tintOpacity:I},second:{src:E,objectPosition:W,objectPositionPhone:O,objectPositionTablet:D,tintColor:v,tintOpacity:_}}):Fe||ml||wa?aH(Am,{part:fo?"media":"image",editing:C,marked:!1,entrance:ml,scroll:wa,origins:Em({objectPosition:f,objectPositionTablet:p,objectPositionPhone:u}),className:"absolute inset-0 z-[1]",children:[hl,Fe&&Tt(WM,{youTubeId:ur,ownPoster:!!Re,background:!Et,editing:C})]}):hl}),Et&&Tt(UM,{youTubeId:ur,fileSrc:Fe?void 0:M,fileAv1Src:Fe?void 0:ye.av1,fileSrcPhone:Fe?void 0:ye.phone,fileAv1SrcPhone:Fe?void 0:ye.av1Phone,playing:Nn,onPlay:()=>{hr(!0),De?.()},editing:C}),Hr&&!Dn&&Tt(_m,{color:h,opacity:I,passClicks:!1}),Hr&&YM(Ue)&&Tt("div",{className:"absolute inset-0 z-[2]",style:{background:Sa.own?eH(Sa.color,Sa.position??void 0):XM(Sa.color),...Ee!==void 0?{opacity:Ee/100}:null}}),Hr&&Tt("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:{...jv,...VM(ke,Oe)},children:g&&Tt(g,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return Q.scope(je?Tt(yM,{children:Ud}):Ud)}var sH=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as iH}from"efficient-easel/draw";import{isNodeList as xie}from"efficient-easel/data";var dH=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,xie(r)?r.map(a=>dH(a,o)):r]))}}),Iie=e=>{let[o]=$n([BS()],a=>iH(a)),{id:t,...r}=dH(o,e).props;return r},fr={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>sH.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Il.toLowerCase()}`,seeds:()=>[],addBlocked:Oh,notice:_h},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Il.toLowerCase()}`,seeds:()=>[],addBlocked:Oh,notice:_h},ProcessSteps:{slot:dm,childType:oe,addLabel:`Add ${Il.toLowerCase()}`,seeds:e=>Array.from({length:FS},()=>Iie(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},lH=1,gie={slot:vi,childType:oe,addLabel:`Add ${Il.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=lH?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>lH?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},cH={Hero:{[vi]:gie}};function gje(e){for(let[o,t]of Object.entries(e)){if(Qe(fr,o)&&j(fr,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);fr[o]=t}}function bje(e,o){let t=j(fr,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:iH(t.childType),...r}}))}:null}var bie={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},yie={"Footprint.source":"typed"};function Tw(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(bie)){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(yie)){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],eC(l)&&l!==a&&!Yt(d)&&(d[bo]=l),o=d,t=!0}if(e.type&&o){let r=dv(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=ts({props:o},a=>os(a,Tw));r.props!==o&&(o=r.props,t=!0)}return t?{...e,props:o}:e}function vje(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(Tw);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(Tw);return d.some((c,f)=>c!==l[f])&&(a=!0),[s,d]}));a&&(r.zones=n,t=!0)}return t?r:e}function fH(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 mH(e){let o=wie(c=>c.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=ge(),d=Sie(new Set);pH(()=>{let c=uH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});c&&Cie(qL(o,void 0,c),e,d.current)},[o,e,t,r,a,n,s,l]),pH(()=>{let c=cM(uH({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>fM(c)},[t,r,a,n,s,l])}function uH(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=fH({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 Cie(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(Pw,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(Pw,r+1+l,s),o.replaceComponent(Pw,r+1+l,s)}))}}import{ROOT_ZONE as cl,missingPinnedTypes as Oie,pinnedDuplicateIds as _w}from"efficient-easel/draw";function hH(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function xH(e,o){let t=e.some(l=>l?.type===We),r=e[e.length-1],a=!t&&r?.type===qe?r:null,n=e.filter(l=>l?.type===qe&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Zo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ve)}}async function IH(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!==Ve||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ve)?!1:(e.write(vc(r,t)),!0)}function gH(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:d,tokenRef:c}=Pie(),f=Eie(),{hasSiteSettings:u,hasPinnedChrome:p}=r;mH(e);let h=!!r.editsPinnedInPlace&&a!==Nt,I=a===Nt,g=Tie().getState,C=kie(null);vie(()=>{if(!hH({docId:n,saveStatus:l,seededDocId:C.current})||(C.current=n,!p))return;let S=g().appState.data,T=S.content,y=s?.content??[],b=(W,O)=>W.some(D=>D?.type===O);if(!u){let W=new Set(_w(T)),O=W.size?T.filter(v=>!W.has(v.props.id)):T;if(W.size&&e.setDocument({...S,content:O}),I)return;let D=Oie(O,y);if(D.includes(qe)){let v=O.length,_=e.insertSection(qe,v);e.replaceComponent(cl,v,{type:qe,props:{id:_,blocks:yu()}})}D.includes(Zo)&&e.insertNode(cl,0,bu());return}if(I){let W=ns(T);if(W!==T&&e.setDocument({...S,content:[...W]}),!W.find(O=>O.type===qe)&&!b(y,qe)&&!b(W,We)&&!b(y,We)){let O=(v,_)=>Ew(o,v,_),D={type:qe,props:{blocks:yu()}};e.insertNode(cl,W.length,Ki(D,O,Ow(We),bd))}return}if(h){let W=!!t?.pinnedChrome?.state().docId,O=xH(T,{hasChromeDoc:W}),D=new Set([...O.remove,..._w(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({...S,content:v}),O.seedFooter&&!b(y,qe)&&!b(y,We)){let _=(F,z)=>Ew(o,F,z),A={type:qe,props:{blocks:yu()}};e.insertNode(cl,v.length,Ki(A,_,Ow(We),bd))}if(O.seedHeader&&!b(y,Zo)){let _=v[0]?.type===Ve?1:0;e.insertNode(cl,_,bu())}if(O.seedSiteHeader&&!b(y,Ve)&&!b(y,qe)&&!b(y,We)){let _=n;IH({blocks:qc(f),make:(A,F)=>Ew(o,A,F),id:Ow(Ve),siteId:d??null,token:c.current,latest:()=>g().appState.data.content,stillOpen:()=>C.current===_,write:A=>{let F=g().appState.data;e.setDocument({...F,content:[...A]})}})}return}let P=T.filter(W=>W.type!==qe),H=new Set(_w(P)),E=H.size?P.filter(W=>!H.has(W.props.id)):P;E.length!==T.length&&e.setDocument({...S,content:E}),!b(E,Zo)&&!b(y,Zo)&&e.insertNode(cl,0,bu())},[n,l,s,g,e,u,p,I,h,t,f,d,c])}import{useEffect as DH,useMemo as $ie,useRef as NH}from"react";import{useEasel as Gie}from"efficient-easel/easel";import{useEaselHost as jie}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Nie}from"efficient-easel/screen/lib/host";import{isNode as Rw}from"efficient-easel/data";import{SITE_SIDE as SH}from"efficient-easel/screen/lib/content/length-units";var bH=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],lKe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:HC,separator:WC,scrollDirection:Ri}};var yH=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],cKe={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 wH(e,o,t){return Bo(oe,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Rm={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:SH,sectionPaddingRight:SH,content:[Bo("Text",e,o,Sr()),Bo("Text",e,o,$r()),Bo("Text",e,o),Bo("Stats",e,o)]}),wH(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,Sr()),Bo("Text",e,o,$r()),Bo("Text",e,o),Bo("ButtonBlock",e,o)]}),wH(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,$r()),Bo("Text",e,o),Bo("Form",e,o)]}}),Ticker:(e,o)=>CH("Scrolling Bar",Ju,id,bH.map(t=>({text:t.text,style:Qu,muted:!0})),e,o),SpecStrip:(e,o,t)=>CH("Spec Strip",t?.theme?{...cd,sectionAccent:nc(ho(t.theme))}:{...cd,sectionBorder:{top:1}},dd,yH().map(r=>({text:r.text??"",style:fd,muted:r.tone==="muted"})),e,o)};function CH(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 vH(e){return j(Rm,e)??null}import{isNodeList as Aw}from"efficient-easel/data";var FKe=Object.keys(rw),_ie={Logos:EB,DocMasthead:VD,DocTabs:rN,Timeline:xD,TimelineTrack:ID},Aie={PaymentBadges:OB,PaymentLogosBlock:_B};function Lm(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]=Aw(n)?n.map(s=>Lm(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var kH=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Fm(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ys({type:e,props:{...a(e),...r(),id:n(e)}},o,kH(s));return Lm(l[t],a,n)}}var Rie={Stats:Fie,Cards:Lie};function Lie(){let e=ca("Cards");if(!e)return null;let o=Fm("Cards",e,0,tB);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Fie(){let e=ca("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ys({type:"StatsParagraph",props:{...o("StatsParagraph"),...mB(),id:t("StatsParagraph")}},e,kH(r)),n=a[0],s=Aw(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=PH(sS(hB(),"table")),d=s.map(TH),c=Lm({...n,props:{...n.props,content:[...d,l]}},o,t);return{...c,props:{...c.props,name:"Stats section"}}}:null}function TH(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Aw(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(TH)}}:e}var PH=e=>$n([e],(o,t)=>`${o}-seed-${t}`)[0];function Bie(e,o){if(!VL(e,o))return null;let t=j(Rie,e);if(t)return t();let r=ca(e);return r?Fm(e,r,0,j(_ie,e)??j(g2,e)??j(Aie,e)):null}function Die(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let l=Lm(PH(sS([],"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 fl(e,o=qi){let t=vH(e);return t?Die(t):Bie(e,o)}function _d(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function Mie(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function Lw(e,o,t,r){e.forEach((a,n)=>{if(Rw(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(Rw)&&Lw(l,a,s,r)}})}function Hie(e){let o=[];Lw(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&Lw(t,null,"",o);return o}function _H(e,o){return Hie(e).find(t=>String(t.node.props.id)===o)}function AH(e,o,t){if(!t)return null;let r=_H(o,t);if(!r)return null;let a=_d(e,r.node.type),n=r.parent?`${_d(e,r.parent.type)} \xB7 ${Mie(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Wie=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 Uie(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Nie]: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=Wie(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=RH(l))}return r}function RH(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Uie(r);a&&(o[t]=a)}return o}function LH(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:_d(e,t),fields:RH(r.fields),...FH(t)?{retired:!0}:{}});return o}function FH(e){return Qe(aC,e)}function EH(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function zie(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 Fw(e,o){return e.findIndex(t=>Rw(t)&&String(t.props.id)===o)}function OH(e,o,t){let r=o||t;if(!r)return e.length;let a=Fw(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function BH(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=_H(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=zie(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}`),FH(l.type)&&c(`${_d(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=fl(l.type),u=Object.keys(l.props??{}).filter(h=>h!=="id");f&&u.length&&c(`${_d(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=>EH(e,h),r,a):{type:l.type,props:{...EH(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(OH(s,l.after,l.before),0,p);break}case"remove_block":{let f=Fw(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=Fw(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(OH(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 Bw=e=>Se(e.requestId)??null;function MH(){let e=jie(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Gie(p=>p),s=n,l=NH({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let d=NH(new Map),c=t?.props?.id,f=$ie(()=>AH(s,o.data,c),[s,o.data,c]),u=f?JSON.stringify(f):"";DH(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),DH(()=>e.subscribe(p=>{let{appState:h,dispatch:I,history:g,blockConfig:C}=l.current;switch(p.type){case"storefront-editor:request-document":{let S=Bw(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:h.data,blocks:LH(C)});return}case"storefront-editor:apply-page-edits":{let S=Bw(p);if(!S)return;let T=Array.isArray(p.ops)?p.ops:[],y=T.length?BH(C,h.data,T,b=>`${b}-${crypto.randomUUID()}`,sl()):{ok:!1,reason:"no changes"};y.ok&&(I({type:"setData",data:y.document,recordHistory:!0}),d.current.set(S,JSON.stringify(y.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:S,applied:y.ok,reason:y.ok?null:y.reason});return}case"storefront-editor:undo-page-edits":{let S=Bw(p);if(!S)return;let T=d.current.get(S),y=T!==void 0&&T===JSON.stringify(h.data.content??[]);y&&g.hasPast&&(g.back(),d.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,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 UH,useState as zH}from"react";var Bm=new Map;async function Kie(e,o){try{return(await oo().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function HH(e,o){let t=Bm.get(o);return t||(t=Kie(e,o),Bm.set(o,t),t.catch(()=>{Bm.get(o)===t&&Bm.delete(o)})),t}var Vie=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function Dw(e){return!!e&&Vie.test(e)}function WH(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Dc?"/":`/${encodeURIComponent(o)}`;if(!Dw(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function $H(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=zH(null),[s,l]=zH(null),d=hk();UH(()=>{try{l(new URL(hc()).hostname)}catch{l(null)}},[d]),UH(()=>{if(!Dw(s)||!t||!r){n(null);return}let f=!1;return HH(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let c=WH({pageSlug:o,siteSlug:a,hostname:s});return d?`${d}${c}`:c}import{jsx as Ad}from"react/jsx-runtime";import{useEffect as qie,useRef as GH,useState as Yie}from"react";import{ExternalIcon as jH}from"efficient-easel/icons";import{EaselIconButton as Xie}from"efficient-easel/chrome";import{Tooltip as Zie,iconButtonClasses as Jie}from"efficient-shell/ui";import{useSettledPress as Qie}from"efficient-easel/easel";import{useScreenDocument as ede}from"efficient-easel/screen/components/ScreenDocumentContext";async function ode({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 KH({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=ede(),a=GH(r);a.current=r;let n=Qie(),[s,l]=Yie(!1),d=GH(null);if(qie(()=>()=>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),ode({pageId:o,liveHref:e,draftLink:t,ready:c}).finally(()=>l(!1)))};return Ad(Xie,{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:Ad(jH,{})})}return Ad(Zie,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:Ad("a",{className:Jie({className:"es-iconbtn"}),href:e,...od,"aria-label":i("Preview the live site in a new tab"),children:Ad(jH,{})})})}import{createElement as sde,useCallback as lde,useEffect as d4,useRef as c4,useState as ide}from"react";import{ClockIcon as dde}from"efficient-shell/icons/efficient";import{useScreenDocument as cde}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as tde}from"react";import{useScreenDocument as rde}from"efficient-easel/screen/components/ScreenDocumentContext";var ade=()=>()=>{},VH=()=>null;function Dm(e){return tde(e?e.subscribe:ade,e?e.state:VH,e?e.state:VH)}function Nm(){let{adapter:e}=rde();return e?.pinnedChrome}import{useSyncExternalStore as XH}from"react";var Rd=!1,pl=null,Nw=new Set;function Fd(){for(let e of Nw)e()}function ZH(e){return Nw.add(e),()=>{Nw.delete(e)}}function JH(){Rd||(Rd=!0,Fd())}function QH(){Rd&&(Rd=!1,Fd())}function qH(){return Rd}function e4(){return XH(ZH,qH,qH)}function YH(){return pl}function Mm(){pl&&(pl=null,Fd())}function o4(){return XH(ZH,YH,YH)}var Ld=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function t4(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ld;let n=await e.restore(o,t);return nf(n.liveState),a(),n}async function r4({access:e,version:o,page:t,...r}){let a=await t4(e,o.id,t?{page:t.id}:{},r);pl={title:nde(o,t??null),undo:a.undo},Fd()}async function a4({access:e,...o}){let t=pl?.undo;t&&(await t4(e,t,{},o),pl=null,Fd())}function n4(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function nde(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 s4(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Uo("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(Lh(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function l4(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function i4(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Lh(),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 f4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=cde(),s=CL(wL(o??null),r),l=Dm(Nm()),d=n.siteLiveState;d4(()=>{if(d)return Kx(d),Tr(0),()=>Kx(null)},[d]);let c=sf(),[f,u]=ide(!1),p=c4(e);p.current=e;let h=c4(!0);d4(()=>(h.current=!0,()=>{h.current=!1}),[]);let I=lde(()=>{u(!0),a(p.current).then(()=>{Mm()}).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=ky({live:g,onPress:I,busy:f,goingLive:vL(c?.changes??[])});return n.siteVersions?{...C,menuItems:fde()}:C}return ky({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function fde(){return[{key:"version-history",label:i("Version history"),icon:sde(dde),onSelect:JH}]}import{jsx as re,jsxs as st,Fragment as Nd}from"react/jsx-runtime";import{useCallback as pde,useEffect as ude,useId as m4,useRef as mde,useState as Pt}from"react";import{useSettledAction as hde}from"efficient-easel/easel";import{Avatar as xde,Banner as Bd,Button as Bn,ColoredBadge as Mw,Dialog as h4,Drawer as Ide,DropdownMenu as gde,FormField as x4,iconButtonClasses as bde,Inline as Hw,Input as yde,ListRow as Sde,Select as wde,SortableList as Cde,Stack as Dd}from"efficient-shell/ui";import{EditIcon as vde,EyeIcon as p4,MenuIcon as kde,MoreIcon as Tde,PageIcon as I4,RevertIcon as u4,StylesIcon as Pde}from"efficient-shell/icons/efficient";import{useScreenDocument as g4}from"efficient-easel/screen/components/ScreenDocumentContext";var Ede={page:I4,menu:kde};function Ode(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function _de(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 Ade({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let d=m4();if(!e)return null;let c=e.kind==="draft_before_restore",f=e.number,u=s4(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(h4,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:st(Nd,{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:st(Dd,{gap:4,children:[o&&e.pages.length>1?re(x4,{label:i("Page"),htmlFor:d,children:re(wde,{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(Bd,{tone:"warning",children:Uo("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?re(Bd,{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(Bd,{tone:"danger",children:a}):null]})})}function Rde({version:e,onCancel:o,onSave:t}){let r=m4(),[a,n]=Pt(null),[s,l]=Pt(""),[d,c]=Pt(!1),[f,u]=Pt(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(h4,{open:!0,onClose:()=>{d||o()},size:"sm",title:i("Name this version"),footer:st(Nd,{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(x4,{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(yde,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&h()}})})})}function Lde({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(p4,{}),onSelect:r}],...d?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:re(u4,{}),onSelect:a}]:[],...d&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:re(I4,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:re(vde,{}),onSelect:s}]];return re(Sde,{title:st("span",{className:"sf-version-title",children:[re("span",{children:n4(e)}),e.live?re(Mw,{tone:"success",size:"xs",children:i("Live")}):null,e.name?re(Mw,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?re(Mw,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:re(gde,{align:"end","aria-label":i("More"),items:f,triggerClassName:bde({variant:"ghost",size:"sm"}),trigger:re(Tde,{})}),below:st(Dd,{gap:3,children:[st(Hw,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[re(xde,{name:e.createdBy,size:"xs"}),re("span",{children:e.createdBy}),re("span",{"aria-hidden":"true",children:"\xB7"}),re("span",{children:i4(e.createdAt)}),c?st(Nd,{children:[re("span",{"aria-hidden":"true",children:"\xB7"}),re("span",{children:Uo("{n} change","{n} changes",c)})]}):null]}),o?st(Dd,{gap:3,children:[c?re(Dd,{gap:2,children:e.changes.map(u=>{let p=Ede[u.kind]??Pde;return st(Hw,{gap:2,align:"center",children:[re(p,{size:16}),re("span",{children:l4(u)})]},`${u.kind}:${u.id}`)})}):null,st(Hw,{gap:2,children:[l?null:re(Bn,{variant:"secondary",size:"sm",leftIcon:re(p4,{}),onClick:r,children:i("Preview")}),d?re(Bn,{variant:"secondary",size:"sm",leftIcon:re(u4,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function Fde({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=g4(),[l,d]=Pt(null),[c,f]=Pt(!1),[u,p]=Pt(null),[h,I]=Pt(null),[g,C]=Pt(!1),[S,T]=Pt(null),[y,b]=Pt(null),[P,H]=Pt(!1),E=mde(0),W=pde(()=>{let _=++E.current;f(!1),t.list().then(A=>{_===E.current&&d(A)},()=>{_===E.current&&f(!0)})},[t]);ude(()=>{e&&W()},[e,W]);let O=_=>{H(!1),_de(t,_.id).catch(()=>H(!0))},D=async()=>{if(!(!h||g)){C(!0),T(null);try{await r4({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),I(null),o()}catch(_){T(_ instanceof Ld?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 st(Nd,{children:[re(Ide,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:st(Nd,{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:st(Dd,{gap:3,children:[P?re(Bd,{tone:"danger",onDismiss:()=>H(!1),children:i("The preview did not open. Try again.")}):null,c?re(Bd,{tone:"danger",action:re(Bn,{variant:"secondary",size:"sm",onClick:W,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(Cde,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(_=>re(Lde,{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:Ode(_,s)})},onName:()=>b(_)},_.id))})]})}),re(Ade,{version:h?.version??null,page:h?.page??null,waiting:r,busy:v.busy===!0,error:S,onCancel:()=>I(null),onConfirm:v.onPress,onPage:_=>I(A=>A&&{...A,page:A.version.pages.find(F=>F.id===_)??A.page})}),re(Rde,{version:y,onCancel:()=>b(null),onSave:async _=>{await t.name(y.id,_),b(null),W()}})]})}function b4(){let{adapter:e,hasUnsavedEdits:o}=g4(),t=e.siteVersions,r=e4(),a=sf();return t?re(Fde,{open:r,onClose:QH,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as I5}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as U8e,categoryLabel as z8e,paletteWithoutPinned as $8e,pinnedSection as G8e}from"efficient-easel/screen/lib/document/palette-sections";var Bde={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 y4(e){return j(Bde,e)?.label}var S4=sC;import{currentEaselSession as k4}from"efficient-easel/screen/lib/session";import{blockTypesIn as w4}from"efficient-easel/screen/lib/document/block-types-in";var C4=()=>({}),v4=new Map;function Dde(e){let o=v4.get(e);if(o)return o;let t=new Set,r=j(fr,e);if(r)for(let s of r.seeds(C4))for(let l of w4({type:r.childType,props:s}))t.add(l);let a=fl(e);if(a){let s=0;for(let l of w4(a(C4,d=>`${d}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return v4.set(e,n),n}function Nde(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=wy(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=nC(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)&&Dde(d).every(l);return s.set(d,f),f};return{sets:o,offers:l}}var Mde="block-offer";function Ww(e=k4()){return e.cache(Mde,()=>Nde(qc(e)))}function T4(e,o=k4()){let t=Ww(o);return t?t.offers(e):!0}function Hde(e){let o=Rm.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=gb.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:gb.sectionAccent}}}var Wde={Hero:{[vi]:{newChild:Hde,childLabel:$d.Ticker}}},P4=Object.fromEntries(Object.entries(cH).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...j(Wde,e)?.[t]}]))]));function E4(e,o=0,t,r){let a=zde($de(e,o,r),t),n=a?Ww():null;return a&&n?Ude(a,n):a}function Ude(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 zde(e,o){if(!e||e.source!=="container"||!o||!fv())return e;let t=tc({data:o.data},o.id),r=typeof t?.type=="string"?pv(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 $de(e,o,t){let r=t?j(P4,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=j(fr,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=lC(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=DL(e);return s?{source:"footer",slot:BL,choices:s,spec:null}:null}function O4(e,o=hv(e.type)){return mv(e.type)?o.map(t=>{let r=xv(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as Gde}from"react";var Uw=null,zw=new Set;function _4(e){if(Uw!==e){Uw=e;for(let o of zw)o()}}function jde(e){return zw.add(e),()=>{zw.delete(e)}}function C7e(){return Gde(jde,()=>Uw,()=>null)}function A4(e){return El(e)?.ownerId??null}function R4(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 L4="sf-editor-left-view";function F4(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(L4);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function B4(e){if(!(typeof window>"u"))try{window.localStorage.setItem(L4,e)}catch{}}function D4(e,o){return e==="styles"&&!o?"sections":e}function N4(e,o){return e?"sections":o}import{copyNode as Kde}from"efficient-easel/data";function M4(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=Ft(),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 H4={usedOn:e=>{let o=Ft(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Pc()?.openPage(e),adopt:(e,o)=>Ft()?.adopt(e.props.id,o),nodeOf:e=>Ft()?.place(e)??null,detach:e=>{let o=Pc()?.config;return o?Kde(e,o):e},removed:()=>Pc()?.reload()};import{sharedSectionsOf as Qce}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as efe,scrollPreviewToTop as c5}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as jw,Fragment as gce,jsxs as bce}from"react/jsx-runtime";import{useContext as yce,useEffect as Sce,useMemo as qw,useRef as X4}from"react";import{EaselCanvas as wce,repeatCopyAt as Cce,useEasel as vce}from"efficient-easel/easel";import{jsx as $4,Fragment as Qde,jsxs as ece}from"react/jsx-runtime";import{useEffect as G4,useLayoutEffect as oce}from"react";var Hm="data-theme",W4="light";function Vde(e){return e.getAttribute(Hm)===W4?"light":"dark"}function qde(e,o){return Vde(e)===o?!1:(o==="light"?e.setAttribute(Hm,W4):e.removeAttribute(Hm),!0)}function Yde(e){return Rh(e).getItem(yh)}function F7e(e,o){Rh(e).setItem(yh,o)}function Xde(e,o,t=new Date().getHours()){return vv({mode:o.mode,override:Yde(e),switchShown:o.switchShown,hour:t})}function U4(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>qde(t,Xde(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Hm]}),()=>n.disconnect()}var Zde="style";function Jde(e,o){let t=Fv(o),r=!1;for(let a of Lv){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function z4(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Jde(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Zde]}),()=>n.disconnect()}var tce=`
338
+ [${$t}][${$t}] { cursor: text; }
339
+ `;function j4({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ge(),n=ho(t);return G4(()=>{if(o)return U4(o,{mode:r,switchShown:a})},[o,r,a]),G4(()=>{if(o)return z4(o,n)},[o,n]),oce(()=>{if(o)return YL(o)},[o]),ece(Qde,{children:[$4(Ek,{}),$4("style",{children:tce}),e]})}import{jsx as $w}from"react/jsx-runtime";import{useEffect as rce,useState as ace}from"react";import{Banner as nce}from"efficient-shell/ui";var Wm={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."},sce={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."},lce=Wm.load,ice=Wm.lock,dce=Wm.conflict,cce=Wm.save;function fce(e){if(!e)return null;if(e.loadFailed)return i(lce);if(e.lockHolder)return i(ice,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(dce);if(e.saveFailed)return i(cce);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(sce[o.problem],{section:t,name:r})}function pce({report:e}){let o=fce(Dm(e)),[t,r]=ace(null);return rce(()=>{o||r(null)},[o]),!o||t===o?null:$w("aside",{className:"sf-canvas-notice",children:$w(nce,{tone:"warning",onDismiss:()=>r(o),children:o})})}function K4(){return $w(pce,{report:Nm()})}import{jsx as Um}from"react/jsx-runtime";import{useState as V4}from"react";import{Banner as uce,Button as mce}from"efficient-shell/ui";import{UndoIcon as hce}from"efficient-shell/icons/efficient";import{useScreenDocument as xce}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as Ice}from"efficient-easel/easel";function q4(){let e=o4(),{adapter:o,flushSave:t,reloadFromServer:r}=xce(),a=o.siteVersions,[n,s]=V4(!1),[l,d]=V4(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await a4({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=Ice({onPress:()=>{c()},busy:n});return e?Um("aside",{className:"sf-canvas-notice",children:Um(uce,{tone:l?"danger":"info",title:e.title,onDismiss:Mm,action:a&&e.undo?Um(mce,{variant:"secondary",size:"sm",leftIcon:Um(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 kce,REPEAT_ATTRIBUTE as Kw,REPEAT_INDEX_ATTRIBUTE as Vw}from"efficient-easel/draw";import{usePreviewParts as Tce}from"efficient-easel/draw/client";var Y4=null;function Gw(e){Y4=e}function sVe(){return Y4}import{ScreenDocumentContext as Pce}from"efficient-easel/screen/components/ScreenDocumentContext";function Z4(e){let{mirrorHostStyles:o}=Bh(),t=_k(),{sectionBackgroundWidth:r,themeFromDocument:a}=ge(),n=gk(),s=yce(Pce),l=Ec(s?.docId??null),d=vce(S=>S.appState.data),c=iT(l,d),f=JSON.stringify(c),u=qw(()=>c,[f]),p=qw(()=>({...e.metadata??t??{},...PE(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);Sce(()=>(Gw(n),()=>Gw(null)),[n]);let h=X4(null),I=Ece(h),{onDocument:g}=e,C=S=>{h.current=S,g?.(S)};return bce(gce,{children:[jw(q4,{}),jw(K4,{}),jw(wce,{...e,onDocument:C,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:j4})]})}function Ece(e){let o=Sc(),t=Tce(),r=X4({parts:t});return r.current={parts:t},qw(()=>{let a=(n,s)=>{let l=op(n,o),d,c=null,f=s??(l?null:Cg(null,e.current,n)),u=!l&&f?Cce(f):null,p=u?kce(n):null;if(u&&f&&p?.propKey){l=rp({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let C=f.closest(`[${Kw}][${Vw}]`),S=`[${Kw}="${tp(C?.getAttribute(Kw)??"")}"][${Vw}="${tp(C?.getAttribute(Vw)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!l)return null;let h=f,I=()=>(h=Cg(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?ds(lP(g)):void 0,colorNameOf:tt}}:null};return{at:n=>{let s=n.closest(`[${$t}]`),l=s?.getAttribute($t);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>o_(n,o),copyValue:n=>e_(n,o),onChange:n=>{if(!n.typing){vg(null);return}let s=n.element.closest(`[${$t}]`)?.getAttribute($t)??null;vg(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Oce=Ik.mediaFields,_ce=/video|poster|focal|phone/i;function Ace(e){return(j(Oce,e)??[]).find(o=>!o.includes("[]")&&!_ce.test(o))??null}function Rce(e){let o=Ace(e.type);return e.type!==oe?o&&oc(e.type,e.props,o)?{fromData:!0}:o:Wc(e.props)?{fromData:!0}:o}var J4={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Rce,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var Q4={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 Lce}from"react";import{Button as Fce,Tooltip as Bce,toast as e5}from"efficient-shell/ui";import{TemplateIcon as Dce}from"efficient-easel/icons";import{useSettledAction as Nce}from"efficient-easel/easel";import{useScreenDocument as Mce}from"efficient-easel/screen/components/ScreenDocumentContext";function t5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Mce(),[a,n]=Lce(!1),s=async()=>{if(!a){n(!0);try{await r()?t():e5.error(i(o5))}catch{e5.error(i(o5))}finally{n(!1)}}},l=Nce({onPress:()=>{s()},busy:a});return zm(Bce,{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(Fce,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:zm(Dce,{size:15}),children:i("Save as Template")})})})}var o5="Your last changes did not save, so the template was not made. Try again.";var Hce="Save your page changes first";function r5(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:Hce}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var a5="storefront-editor:save-as-template";var Md="ContactLocations",Wce="CityPictures",Uce="CityMaps",zce=[{key:Wce,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:Uce,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function n5(e=qi){let o=rC.find(t=>t.sections.some(r=>r.type===Md))?.key;return!e.includes(Md)||!o?[]:zce.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:Md,desc:a,alias:"locations offices stores branches",insert:s=>{let l=ca(Md);return l?Fm(Md,l,n)(s.nodeDefaults,s.newNodeId,sl()):null}}))}function l5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=fl(e);if(n)return n(o,t,sl());if(ov(e)&&a(oe)&&a(jn)){let l=j(wr,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}:{},...ed(e)!==ed(jn)?{eyebrowLook:ed(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...s5(e,t)}}]}}}if(j(fr,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=s5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function s5(e,o){return e==="Cards"?{template:ZC(t=>o(t))}:e===QC?{template:ev(t=>o(t))}:{}}import{useEffect as $ce,useState as Gce}from"react";import{useEaselSession as jce}from"efficient-easel/screen/lib/session-context";function i5(){let e=jce().chrome?.products?.list,[o,t]=Gce(null);return $ce(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function g5({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=tA(),a=x5().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=ul(d=>{d&&(o({kind:"ticker",heroId:d}),efe(d))},[o]);return pr(()=>{t(s)},[s,t]),pr(()=>{r(l)},[r,l]),{partRows:(d,{rowClick:c})=>{let f=String(d.props.id);return d.type==="Hero"&&bb(d.props)&&To(m5,{icon:To(cn,{type:"ticker",size:13}),name:i(Ci),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function b5({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Lp(),a=x5().tree,{appState:n}=h5(p=>p),s=n.data.content??[],l=Kce(s);l.current=s;let d=e,c=ln.find(p=>Ti[p]===d.kind),f=c&&"nodeId"in d?Pi(String(d.nodeId),c):null,u=ul(p=>{let h=cA(p);if(!h)return;let I=l.current.findIndex(C=>String(C.props.id)===h.nodeId);if(I<0)return;let g={kind:Ti[h.part],nodeId:h.nodeId};o({index:I},g)},[o]);return pr(()=>{t(f)},[f,t]),pr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let I=String(p.props.id),g=dA(p);if(g.length===0)return null;let C=y=>{let b=Pi(I,y.part);return To(m5,{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)},[S,...T]=g;return Hd(u5,{children:[C(S),T.length>0&&To(Zce,{children:T.map(C)})]})}}}function y5(e,o){return{partRows:(t,r)=>Hd(u5,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function ofe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=$m(),{hasPreviewLink:f}=t,u=oo(I5()).preview?.draftLink,p=f4(e.data),h=r5({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=ul(()=>{!a||!r||d(a5,{siteId:a,slug:r})},[d,a,r]),g=$H({pageSlug:r,siteId:a,token:c}),C=o.previewHref?.(r)??g;return{barLead:()=>h.visible&&To(t5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:I}),barView:()=>f&&r&&To(KH,{liveHref:C,pageId:n??null,draftLink:u}),mainAction:p}}function tfe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=$m(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=d5(Bs[0].id),[p,h]=d5(!1),{surface:I,setSurface:g}=oA(),C=()=>{if(l){c("styles"),o.reveal(),c5();return}e.show(iw),e.reveal(),c5()},S={id:"pages",label:i("Pages"),icon:To(qce,{}),panel:({onHide:y})=>To(j1,{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(Xce,{}),active:e.kind==="website",onSelect:C}),l&&T.push({id:"styles",label:i("Styles"),icon:To(Yce,{}),panel:({onHide:y,notify:b})=>To(z2,{tokenRef:n,siteId:a??void 0,onClose:y,onNotify:b,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>h(!1)})}),{railLead:[S],railTrail:T,resolveLeftView:y=>D4(y,l),openSettings:C,openStyles:()=>{u(P1),c("styles")},openPageStyles:l?()=>{u(Ns),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(_2),e.reveal()}:void 0}}function rfe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=$m(),a=h5(s=>s.config),n=I5();pr(()=>(Yh({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Yh(null)),[e,o,t,a]),pr(()=>{let s=Ft();if(!s||!r)return;let l=!1;return Qce(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function S5(){let e=Sc();return ul(o=>{t_(o,e)},[e])}function afe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;pr(()=>{_4(s?.type==="BookingBox"&&s.props.region==="confirm"?A4(l(String(s.props.id))):null)},[s?.props.id]);let d=dM(e,o),{capabilities:{hasSiteSettings:c}}=$m();rfe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=Rp(),I=ul(()=>n(A2),[n]),g=a==="chat";pr(()=>{p(g)},[g,p]),pr(()=>{h(I)},[h,I]);let{setOpenHandler:C}=wi(),S=ul(()=>n(R2),[n]);pr(()=>{C(S)},[C,S]);let T=y5(g5(e),b5(e)),y=ofe(o),b=tfe(e,r),P=t.device,H=S5();return{...T,...y,...b,hasOwnRows:E=>E.type===Cm,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:H,wrap:E=>To(Dh.Provider,{value:!0,children:Hd(Jce.Provider,{value:P,children:[E,To(b4,{})]})}),addPanelRow:E=>c?Hd("div",{className:"sf-addside-sitewide",children:[To("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:To(cn,{type:"chat",size:16})}),Hd("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(Vce,{checked:f.enabled,onChange:W=>u({enabled:W}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var f5=null,Yw=new WeakMap;function nfe(e){let o=Tk();if(!e||!o)return e;f5!==o&&(f5=o,Yw=new WeakMap);let t=Yw.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},Yw.set(e,t)),t}var sfe={isLockedBlock:(e,o)=>Zp(e,o)||!!(o&&Ft()?.heldElsewhere(o.props.id)),duplicateBlocked:Su,nestDepth:(e,o,t)=>o===Zv?ek(e,t):0,newSectionNode:l5,canAddTo:(e,o,t,r)=>nfe(E4(e,o,r,t)),blockIsOffered:T4,slotsOf:O4,resolveOnInsert:!0},lfe=new Proxy(Q4,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),ife={labelAtLevel:(e,o,t)=>i(jm(e,o,t)),descriptions:lfe,categoryLabel:e=>{let o=y4(e);return o===void 0?void 0:i(o)},firstSection:S4,blockRowName:R4,rowName:Jp,plainText:gr,Icon:cn,Thumbnail:W2,useProducts:i5,presets:n5()},dfe={desktop:2e3,tablet:800,mobile:390},p5="desktop",cfe={options:Z1,initial:p5,fluid:p5,widths:dfe,hidesPerView:!0},ffe={read:F4,write:e=>B4(e),forSelection:(e,o)=>N4(e,o)},pfe={first:Zo,last:qe,firstGroup:Ve,lastGroup:We,isSectionGroup:as,sectionGroupZone:$k,panelOf:e=>e===Zo?O2:null,get sharedReach(){return hn()?mfe:void 0},get shared(){return Ft()?H4:void 0},get groupTab(){return hn()?NL:void 0},get groupBadge(){return hn()?Ay({type:We})??void 0:void 0},get changeNotice(){return hn()?ML():void 0},get band(){return hn()?ufe:void 0},get groupAccepts(){return hn()?Kk:void 0}},ufe={foldable:!0},mfe=e=>Ay(e)??M4(e);function hfe(e){return{...y5(g5(e),b5(e)),onCopyItem:S5(),openSettings:()=>e.show(iw)}}function xfe(e,o){gH(e,o),MH()}var Sqe={useOwnerName:Ms,useDocumentLabel:L1,useBridges:afe,useStandaloneBridges:hfe,useDocumentPass:xfe,blockRules:sfe,blockLook:ife,devices:cfe,leftView:ffe,pinned:pfe,Canvas:Z4,canvasDrag:{media:J4},Inspector:F2};export{wy as a,oo as b,qc as c,Cu as d,ODe as e,lr as f,ir as g,Co as h,WDe as i,Ly as j,k1e as k,Hp as l,Ai as m,Ri as n,EA as o,T1e as p,OA as q,P1e as r,LX as s,_A as t,E1e as u,RA as v,bH as w,lKe as x,bfe as y,le as z,i as A,Uo as B,yH as C,cKe as D,yo as E,Wz as F,aI as G,qge as H,R0 as I,Zge as J,at as K,nI as L,Qge as M,ebe as N,obe as O,mf as P,tbe as Q,hf as R,rbe as S,abe as T,B0 as U,D0 as V,Vz as W,qz as X,ibe as Y,cbe as Z,fbe as _,pbe as $,ube as aa,kE as ba,Va as ca,cG as da,Sye as ea,fG as fa,wye as ga,lo as ha,Cye as ia,pG as ja,vye as ka,kye as la,Tye as ma,Pye as na,Eye as oa,Oye as pa,ys as qa,_ye as ra,XDe as sa,ZDe as ta,JDe as ua,QDe as va,eNe as wa,oNe as xa,GZ as ya,aR as za,nR as Aa,sR as Ba,$s as Ca,qp as Da,zAe as Ea,Ube as Fa,ja as Ga,M$ as Ha,II as Ia,Yl as Ja,zbe as Ka,$be as La,bI as Ma,nE as Na,Gbe as Oa,bpe as Pa,Xbe as Qa,Zbe as Ra,Jbe as Sa,Qbe as Ta,Kl as Ua,y$ as Va,H0 as Wa,iI as Xa,aa as Ya,Sbe as Za,jl as _a,dI as $a,cI as ab,wbe as bb,Cbe as cb,nF as db,lP as eb,Bme as fb,Dme as gb,Qr as hb,L6 as ib,Nme as jb,Mme as kb,Sx as lb,Hme as mb,Wme as nb,Ume as ob,dP as pb,cP as qb,zme as rb,Dl as sb,wx as tb,$me as ub,Gme as vb,jme as wb,Kme as xb,sF as yb,yn as zb,nNe as Ab,sNe as Bb,lNe as Cb,lF as Db,iNe as Eb,iF as Fb,Pu as Gb,pF as Hb,yNe as Ib,SNe as Jb,Ql as Kb,ar as Lb,Nl as Mb,Xme as Nb,Zme as Ob,vo as Pb,Cn as Qb,J as Rb,Zs as Sb,ae as Tb,te as Ub,ie as Vb,de as Wb,xe as Xb,ZNe as Yb,pe as Zb,Js as _b,Uy as $b,Ji as ac,Qi as bc,xF as cc,o2e as dc,Cte as ec,IF as fc,a2e as gc,n2e as hc,gF as ic,vte as jc,bF as kc,kte as lc,ed as mc,yF as nc,d2e as oc,$y as pc,p2e as qc,u2e as rc,m2e as sc,h2e as tc,x2e as uc,I2e as vc,Bc as wc,y2e as xc,Lu as yc,od as zc,S2e as Ac,w2e as Bc,wF as Cc,C2e as Dc,_te as Ec,Ate as Fc,v2e as Gc,Rte as Hc,k2e as Ic,CF as Jc,_2e as Kc,A2e as Lc,R2e as Mc,L2e as Nc,F2e as Oc,B2e as Pc,Bte as Qc,Dte as Rc,D2e as Sc,N2e as Tc,M2e as Uc,H2e as Vc,W2e as Wc,U2e as Xc,z2e as Yc,$2e as Zc,G2e as _c,Du as $c,PF as ad,Vte as bd,Z2e as cd,J2e as dd,Mu as ed,jy as fd,_F as gd,Hu as hd,rMe as id,qte as jd,Yte as kd,Xte as ld,aMe as md,et as nd,Tn as od,tl as pd,UMe as qd,zMe as rd,$Me as sd,xB as td,IB as ud,Lre as vd,lHe as wd,gB as xd,bB as yd,yB as zd,cHe as Ad,uHe as Bd,Zu as Cd,SB as Dd,Mre as Ed,mHe as Fd,bz as Gd,Nt as Hd,fge as Id,pge as Jd,uge as Kd,mge as Ld,cf as Md,hge as Nd,Cf as Od,Zl as Pd,tye as Qd,rye as Rd,aye as Sd,uE as Td,mE as Ud,hE as Vd,nye as Wd,Ve as Xd,We as Yd,tpe as Zd,Gk as _d,vc as $d,WL as ae,AHe as be,RHe as ce,AB as de,LHe as ee,FHe as fe,Ts as ge,Hl as he,dg as ie,pg as je,Xf as ke,$t as le,yve as me,Sve as ne,wve as oe,Cve as pe,b8 as qe,y8 as re,vve as se,Ps as te,mg as ue,kve as ve,Tve as we,mp as xe,hi as ye,Wg as ze,As as Ae,tn as Be,iPe as Ce,xi as De,z_ as Ee,dPe as Fe,Yg as Ge,cPe as He,fPe as Ie,pPe as Je,PV as Ke,uPe as Le,AV as Me,RV as Ne,mPe as Oe,hPe as Pe,FV as Qe,UB as Re,fS as Se,Di as Te,ZR as Ue,JR as Ve,Ni as We,RR as Xe,my as Ye,uLe as Ze,xn as _e,xy as $e,BR as af,DR as bf,Iy as cf,kQ as df,NR as ef,tu as ff,MR as gf,f4e as hf,KB as if,p4e as jf,u4e as kf,m4e as lf,xd as mf,om as nf,S4e as of,v4e as pf,N4e as qf,IS as rf,M4e as sf,QB as tf,eD as uf,Br as vf,Y4e as wf,tD as xf,X4e as yf,aD as zf,co as Af,ze as Bf,rm as Cf,lD as Df,r5e as Ef,am as Ff,iD as Gf,i5e as Hf,v5e as If,bD as Jf,ES as Kf,yD as Lf,P5e as Mf,E5e as Nf,O5e as Of,OS as Pf,_5e as Qf,A5e as Rf,SD as Sf,dm as Tf,rne as Uf,cm as Vf,x3e as Wf,NS as Xf,lne as Yf,MS as Zf,hne as _f,A3e as $f,ZD as ag,JD as bg,R3e as cg,L3e as dg,xg as eg,Fve as fg,Ig as gg,WO as hg,j3e as ig,cN as jg,fN as kg,c6e as lg,y6e as mg,S6e as ng,w6e as og,JS as pg,wE as qg,xye as rg,AI as sg,RI as tg,LI as ug,k6e as vg,Ane as wg,Rne as xg,bN as yg,T6e as zg,P6e as Ag,Z6e as Bg,UN as Cg,J6e as Dg,zN as Eg,eWe as Fg,tse as Gg,XN as Hg,iWe as Ig,mm as Jg,IWe as Kg,gd as Lg,yWe as Mg,t2 as Ng,wWe as Og,r2 as Pg,a2 as Qg,kWe as Rg,ew as Sg,lse as Tg,EWe as Ug,ise as Vg,OWe as Wg,_We as Xg,hm as Yg,i2 as Zg,FWe as _g,BWe as $g,DWe as ah,NWe as bh,Dr as ch,zWe as dh,b2 as eh,I$e as fh,g$e as gh,yw as hh,b$e as ih,FP as jh,I1 as kh,t0e as lh,r0e as mh,i9 as nh,a0e as oh,n0e as ph,s0e as qh,l0e as rh,d9 as sh,i0e as th,d0e as uh,c0e as vh,f0e as wh,u9 as xh,p0e as yh,Ele as zh,SM as Ah,v$e as Bh,Td as Ch,vM as Dh,Yr as Eh,Mpe as Fh,v3 as Gh,rx as Hh,Rl as Ih,Hpe as Jh,zpe as Kh,T3 as Lh,yT as Mh,$pe as Nh,Ba as Oh,A3 as Ph,Ype as Qh,Xpe as Rh,Ll as Sh,Zpe as Th,Jpe as Uh,ix as Vh,kT as Wh,sue as Xh,sA as Yh,SOe as Zh,yb as _h,dn as $h,kOe as ai,TOe as bi,POe as ci,EOe as di,dY as ei,OOe as fi,Pi as gi,cA as hi,fA as ii,Y$e as ji,vw as ki,_M as li,AM as mi,Sw as ni,Dle as oi,X$e as pi,vm as qi,Pd as ri,Tm as si,Z$e as ti,J$e as ui,Q$e as vi,km as wi,eGe as xi,oGe as yi,Z5 as zi,zo as Ai,jfe as Bi,J5 as Ci,Q5 as Di,qfe as Ei,e3 as Fi,o3 as Gi,Yfe as Hi,Xfe as Ii,Zfe as Ji,Jfe as Ki,FM as Li,Ed as Mi,Od as Ni,Em as Oi,DM as Pi,dl as Qi,NM as Ri,Om as Si,_m as Ti,Am as Ui,MM as Vi,HM as Wi,WM as Xi,UM as Yi,zM as Zi,jM as _i,KM as $i,_Ge as aj,AGe as bj,RGe as cj,LGe as dj,Dt as ej,rie as fj,JM as gj,nie as hj,eH as ij,oH as jj,rH as kj,hie as lj,sje as mj,aA as nj,xOe as oj,gje as pj,bje as qj,Nde as rj,$$ as sj,Is as tj,Kbe as uj,Xr as vj,DT as wj,LT as xj,ux as yj,U3 as zj,wue as Aj,Lc as Bj,HT as Cj,z3 as Dj,$3 as Ej,G3 as Fj,kue as Gj,Tue as Hj,Pue as Ij,Eue as Jj,vpe as Kj,sVe as Lj,nFe as Mj,XR as Nj,Ci as Oj,cOe as Pj,tA as Qj,fOe as Rj,pOe as Sj,uOe as Tj,Kze as Uj,$2 as Vj,G2 as Wj,j2 as Xj,EE as Yj,oi as Zj,Oo as _j,mt as $j,ti as ak,Ss as bk,Wye as ck,Uye as dk,$ye as ek,Gye as fk,jye as gk,Kye as hk,Vye as ik,Yye as jk,Of as kk,ri as lk,_E as mk,BI as nk,TG as ok,AE as pk,RE as qk,pue as rk,_T as sk,bue as tk,Fc as uk,Dc as vk,Bl as wk,GT as xk,Mue as yk,Hue as zk,XT as Ak,xx as Bk,_6 as Ck,kme as Dk,ehe as Ek,lhe as Fk,ihe as Gk,rW as Hk,qo as Ik,Ml as Jk,Fx as Kk,Bx as Lk,Zhe as Mk,_P as Nk,Jhe as Ok,Qhe as Pk,exe as Qk,DP as Rk,MP as Sk,Tr as Tk,KP as Uk,zU as Vk,bIe as Wk,o0 as Xk,TIe as Yk,r0 as Zk,l0 as _k,i0 as $k,d0 as al,c0 as bl,f0 as cl,p0 as dl,Xx as el,lz as fl,iz as gl,$l as hl,Zx as il,m0 as jl,qIe as kl,cz as ll,YIe as ml,XIe as nl,ZIe as ol,x0 as pl,oge as ql,uz as rl,tge as sl,rge as tl,hz as ul,Jx as vl,Iz as wl,lge as xl,gz as yl,ige as zl,oI as Al,Cge as Bl,S0 as Cl,Cz as Dl,kge as El,Gl as Fl,Nz as Gl,jge as Hl,E$ as Il,Rbe as Jl,_$ as Kl,Lbe as Ll,Fbe as Ml,Bbe as Nl,bs as Ol,Tf as Pl,fye as Ql,pye as Rl,uye as Sl,PG as Tl,EG as Ul,Jye as Vl,RG as Wl,LG as Xl,Qye as Yl,eSe as Zl,oSe as _l,tSe as $l,rSe as am,dSe as bm,cSe as cm,fSe as dm,pSe as em,uSe as fm,mSe as gm,hSe as hm,xSe as im,ISe as jm,gSe as km,bSe as lm,ySe as mm,SSe as nm,wSe as om,la as pm,zG as qm,ia as rm,Xa as sm,nCe as tm,sCe as um,lCe as vm,iCe as wm,dCe as xm,cCe as ym,fCe as zm,hCe as Am,xCe as Bm,Yj as Cm,ICe as Dm,gCe as Em,bCe as Fm,yCe as Gm,SCe as Hm,wCe as Im,CCe as Jm,vCe as Km,Qj as Lm,kCe as Mm,eg as Nm,TCe as Om,Hf as Pm,Wf as Qm,Xo as Rm,Wt as Sm,cO as Tm,ea as Um,fO as Vm,pO as Wm,Uf as Xm,PCe as Ym,ECe as Zm,kK as _m,OCe as $m,_Ce as an,ACe as bn,RCe as cn,LCe as dn,FCe as en,Po as fn,BCe as gn,DCe as hn,Lf as in,zf as jn,$f as kn,rg as ln,jf as mn,NCe as nn,bO as on,MCe as pn,qK as qn,HCe as rn,WCe as sn,wO as tn,UCe as un,zCe as vn,$Ce as wn,GCe as xn,jCe as yn,KCe as zn,lg as An,VCe as Bn,vO as Cn,qCe as Dn,YCe as En,vs as Fn,TO as Gn,XCe as Hn,ZCe as In,JCe as Jn,uRe as Kn,mRe as Ln,hRe as Mn,Jp as Nn,kR as On,dy as Pn,DRe as Qn,NRe as Rn,_R as Sn,It as Tn,zp as Un,yZ as Vn,SZ as Wn,sAe as Xn,lAe as Yn,iAe as Zn,dAe as _n,KA as $n,pAe as ao,uAe as bo,mAe as co,z7 as do,k_ as eo,T_ as fo,_p as go,K1 as ho,V1 as io,Y1 as jo,Ap as ko,KEe as lo,VEe as mo,Rp as no,eY as oo,rOe as po,wi as qo,lOe as ro,oA as so,rs as to,Y5 as uo,zfe as vo,$fe as wo,$Be as xo,GBe as yo,jBe as zo,vje as Ao,bOe as Bo,Lp as Co,_fe as Do,C8 as Eo,jve as Fo,Kve as Go,GO as Ho,Vve as Io,qve as Jo,Rg as Ko,X_ as Lo,OPe as Mo,_Pe as No,APe as Oo,RPe as Po,x1 as Qo,C0e as Ro,v0e as So,uA as To,p1e as Uo,yA as Vo,Hi as Wo,pee as Xo,SFe as Yo,OFe as Zo,lu as _o,qe as $o,yu as ap,qt as bp,q2 as cp,wd as dp,Y2 as ep,X2 as fp,Zze as gp,Jze as hp,HH as ip,Dw as jp,WH as kp,E4 as lp,C7e as mp,Hm as np,Vde as op,qde as pp,F7e as qp,Cfe as rp,Pfe as sp,Sqe as tp};