efficient-storefront-blocks 0.137.0 → 0.138.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +32 -0
- package/dist/chunks/{CustomHtmlCodeWindow-Z6VOLUDK.js → CustomHtmlCodeWindow-4OS3BLNS.js} +1 -1
- package/dist/chunks/EditorPreviewCheckout-RF2M6FBA.js +4 -0
- package/dist/chunks/SiteEditorProvider-445QTFDY.js +1 -0
- package/dist/chunks/{chunk-JBOIT52E.js → chunk-55HCCLM4.js} +1 -1
- package/dist/chunks/chunk-6VZXQPDK.js +337 -0
- package/dist/chunks/chunk-DXVVHVFA.js +11 -0
- package/dist/chunks/chunk-JZT76GOY.js +1 -0
- package/dist/chunks/{chunk-HTPROWNP.js → chunk-LAUTWUIM.js} +1 -1
- package/dist/chunks/{chunk-FI4EXF37.js → chunk-MCIZHB3Z.js} +1 -1
- package/dist/chunks/{chunk-ZVHG5QQR.js → chunk-OAHMFUHH.js} +1 -1
- package/dist/chunks/{chunk-2XZFXVKX.js → chunk-U54HRBBL.js} +1 -1
- package/dist/chunks/{fitment-data-QZLRTN6S.js → fitment-data-5CQLYPUS.js} +1 -1
- package/dist/chunks/{section-css-style-MHLXSGS3.js → section-css-style-GS3GFILD.js} +1 -1
- package/dist/editor/lib/efficient-backend.js +1 -1
- package/dist/index.js +25 -25
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/CouponField.js +1 -1
- package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
- package/dist/render/components/checkout/checkout-parts.js +1 -1
- package/dist/render/lib/api/index.d.ts +38 -2
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/api/types.d.ts +26 -0
- package/dist/render/lib/cart/shipping-status.d.ts +1 -0
- package/dist/render/lib/cart/shipping-status.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/dist/words.d.ts +1 -0
- package/dist/words.js +1 -1
- package/package.json +2 -2
- package/dist/chunks/EditorPreviewCheckout-2VQTCCYW.js +0 -4
- package/dist/chunks/SiteEditorProvider-DRHFIJIM.js +0 -1
- package/dist/chunks/chunk-4AVKWZMD.js +0 -1
- package/dist/chunks/chunk-JRZLQGD3.js +0 -337
- package/dist/chunks/chunk-MYDBTUHM.js +0 -9
- /package/dist/chunks/{chunk-MHHLECYD.js → chunk-4BGF2KJJ.js} +0 -0
- /package/dist/chunks/{chunk-JRZLQGD3.js.LEGAL.txt → chunk-6VZXQPDK.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-PAE6QL75.js → chunk-EWEX5KJD.js} +0 -0
- /package/dist/chunks/{chunk-ZVHG5QQR.js.LEGAL.txt → chunk-OAHMFUHH.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-BKBFZATI.js → chunk-T3YKEXOD.js} +0 -0
|
@@ -1,9 +0,0 @@
|
|
|
1
|
-
import{b as hu,c as gu,d as ku,e as Iu,g as Ks,h as Au,i as Ru}from"./chunk-JBOIT52E.js";import{$ as be,$f as eu,$h as wo,Aa as Ac,Ac as Ps,Af as Ze,Ag as lu,Bc as _o,Bg as Gs,Bh as _u,Ca as O,Cc as Dc,Ci as B,Da as bo,Db as Nc,Dc as Fc,De as jc,E as vc,Ec as Bc,Ed as As,Fb as Ut,Fc as ks,Gb as Me,Gc as Mc,Hi as Du,Ia as ws,Jd as le,Jf as qc,Ka as Rc,Kf as Bs,Lf as ke,Lg as ht,Lh as Ws,Md as $c,Mf as Zc,Mh as vo,Nf as Jc,Ng as cu,Nh as Tu,Of as Wt,Oh as $,Pb as yo,Pf as ce,Pg as uu,Rg as du,Sc as Hc,Sf as Kt,Sh as Eu,Tc as Is,Td as Uc,Tf as jt,Tg as pu,Th as xu,Uh as vu,Vh as wu,Wd as Gc,Wf as Qc,Xg as fu,Xh as Cu,Yg as mu,Ze as Eo,Zf as Ms,Zh as Yt,_h as Ou,aa as wc,ag as Hs,ah as gt,ai as Pu,b as W,ba as Cc,bh as zs,c as Xe,ca as Oc,dg as tu,ea as dt,eg as nu,eh as bu,fe as Rs,ff as Ds,ga as go,i as bc,ic as Lc,ka as _n,l as mo,lg as ou,m as yc,me as To,mg as $s,n as Sc,oa as pt,oe as Gt,og as au,p as _c,pc as ft,pe as mt,pf as H,pg as ae,q as Tc,qf as F,qg as su,qh as yu,r as Ec,rc as Cs,rf as Vc,rg as ru,sc as Os,se as zc,sf as zt,sg as Ie,t as ho,te as Ns,tf as Yc,tg as Vt,u as xc,uc as So,ue as Wc,uf as Fs,va as Pc,vf as En,vi as Lu,wa as kc,wf as Xc,wg as iu,wh as Su,xa as Ic,xe as Kc,xg as Us,yb as Tn,ye as Ls,za as vs,zf as qe,zh as xo}from"./chunk-2XZFXVKX.js";import{a as j,b as ge}from"./chunk-PAE6QL75.js";import{d as Nu}from"./chunk-BKBFZATI.js";var Bu="en",Co=null,Mu=Bu,Hu=null;function ZR(e,t,n){Co=e??null,Mu=t||Bu,Hu=n??null}function P(){return Hu}function JR(){return Mu}function QR(){return Co}function Fu(e,t){return t?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(n,o)=>ge(t,o)?String(j(t,o)):n):e}function c(e,t){let n=Co?j(Co,e):void 0;if(typeof n=="function"){try{let o=W(n(t??{}));if(o)return o}catch{}return Fu(e,t)}return Fu(W(n)??e,t)}function xn(e,t,n,o){return c(n===1?e:t,{...o,n})}import{parseHexColor as Wu}from"efficient-shell/format";import{COLOR_SLOTS as Ku,FILL_COLOR_SLOTS as ty,colorRole as ny,fillColorRole as ju}from"efficient-shell/markup";import{parseHexColor as $u}from"efficient-shell/format";import{FILL_COLOR_SLOTS as Zb}from"efficient-shell/markup";var Oo=e=>{let t=pu.find(n=>n.role===e);return t?`var(${t.token})`:""},Jb=e=>Oo(e)?`var(--theme-${e})`:"",Qb={main:{ink:pt.accent,page:pt.accent,key:"accent",label:()=>c("Main"),words:e=>c("Theme {n} main color",{n:e})},text:{ink:pt.text,page:pt.text,key:"text",label:()=>c("Text"),words:e=>c("Theme {n} text color",{n:e})},background:{ink:Oo("bg"),page:Jb("bg"),key:"background",label:()=>c("Background"),words:e=>c("Theme {n} background",{n:e})},muted:{ink:pt.labels,page:pt.labels,key:"muted",label:()=>c("Muted"),words:e=>c("Theme {n} muted color",{n:e})},surface:{ink:Oo("surface"),page:Oo("surface"),key:"surface",label:()=>c("Surface"),words:e=>c("Theme {n} surface color",{n:e})}};function Je(e){return j(Qb,e)}var js="#9ca3af";function Xt(e,t,n){let o=Je(e);return o?{hex:$u(t[o.key]??"")??"",words:o.words(n)}:null}function Uu(e,t){return Zb.flatMap(n=>{let o=Xt(n,e,t);return o&&Je(n)?.ink?[{name:n,label:o.words,value:o.hex||js}]:[]})}var ey=["main","text","background"];function Gu(e){let t=new Set,n=[];return ke(e).themes.forEach((o,a)=>{for(let s of ey){let r=Je(s),i=r?o[r.key]:void 0,l=typeof i=="string"&&i?$u(i):null;!r||!l||t.has(l)||(t.add(l),n.push({value:l,label:r.words(a+1)}))}}),n}function He(e){return Je(e)?.ink??""}function Ae(e){if(typeof e!="string")return null;let t=ju(e.trim());return t?.kind==="slot"&&He(t.slot)?t.slot:null}var oy={accent:"main",labels:"muted"};function $e(e){return j(oy,e)??e}function Po(e){if(!e)return"";if(e.startsWith("#"))return Wu(e)===e.toLowerCase()?e:"";let t=ny($e(e));return t?.kind==="slot"?He(t.slot):""}function Vu(e,t=Ku){return t.flatMap(n=>{let o=Je(n);return o?.ink?[{name:n,label:o.label(),value:e?.[n]||js}]:[]})}function Yu(e){let t=ju($e(e));return t?.kind==="slot"?He(t.slot):""}function f0(e){let t=e?.trim();return t?ty.find(n=>He(n)===t)??null:null}function m0(e){let t={},n=e.ownerDocument,o=n?.defaultView;if(!n||!o)return t;let a=o.getComputedStyle(e),s=n.createElement("canvas").getContext("2d");for(let r of Ku){let i=He(r);if(!i)continue;let l=i.replace(/^var\((--[\w-]+)\)$/,"$1"),u=a.getPropertyValue(l).trim();if(!u)continue;let d=zu(u);!d&&s&&(s.fillStyle="#000000",s.fillStyle=u,d=zu(String(s.fillStyle))),d&&(t[r]=d)}return t}function zu(e){let t=e.trim().toLowerCase();if(t.startsWith("#"))return Wu(t);let n=t.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return n?`#${n.slice(1,4).map(o=>Math.min(255,Number(o)).toString(16).padStart(2,"0")).join("")}`:null}var ko="sf.gapContainer",Ue={min:-32,max:64,step:2},td={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},qt={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},ay=new Set(["Events","GalleryB"]);function vn(e,t,n){if(typeof t=="number"&&Number.isFinite(t)&&t>=Ue.min)return t;if(typeof t=="string"){let o=td[e]?.[t];if(typeof o=="number")return o}return typeof n=="number"&&Number.isFinite(n)?n:qt[e]}var sy="sf-gap-overlap",ry="--sf-gap-overlap",Vs="--sf-block-gap",Xu="--sf-block-gap-rem",ye={min:0,max:Ue.max,step:Ue.step};function wn(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.min(Math.max(Math.round(e),ye.min),ye.max);return t-t%ye.step}function b0(e,t){let n=En(e,t,"gap",ye);if(n!==null)return{[Vs]:n,[Xu]:n};let o=wn(e);return o===null?{}:{[Vs]:`${o}px`,[Xu]:`${o/16}rem`}}var qu="--sf-block-gap-phone",Zu="--sf-block-gap-phone-rem",iy="--sf-block-gap-on-phone",ly="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]",cy="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function y0(e,t){let n=En(e,t,"gap",ye);if(n!==null)return{[qu]:n,[Zu]:n};let o=wn(e);return o===null?{}:{[qu]:`${o}px`,[Zu]:`${o/16}rem`}}function S0(e){return wn(e)===null?"":`${ly} ${cy}`}var Ju="sf-gap-zone",Qu="--sf-gap-len";function Io(e,t){return typeof t=="number"&&Number.isFinite(t)&&t>=Ue.min?!0:typeof t=="string"&&typeof td[e]?.[t]=="number"}var ed="--sf-gap-len-phone",uy="--sf-gap-len-tablet",Cn={min:0,max:Ue.max,step:Ue.step};function Qe(e){return typeof e=="number"&&Number.isFinite(e)&&e>=Cn.min}function Ys(e){return e/2}function Xs(e,t,n){return Qe(n)&&!Io(e,t)}function qs(e,t,n,o,a){return Qe(t)?t:Xs(e,n,a)?a:Ys(vn(e,n,o))}var dy={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function _0(e,t,n,o,a){let s={...Qe(o)?{[ed]:`${o}px`}:null,...Qe(a)?{[uy]:`${a}px`}:null};if(!Io(e,t)){let i=`${qt[e]}px`,l=ay.has(e)?`var(--sf-card-gap, ${i})`:i;return{className:` ${Ju}`,style:{[Qu]:`var(${Vs}, ${l})`,[ed]:`var(${iy})`,...s}}}let r=vn(e,t);return r>=0?{className:` ${Ju}`,style:{[Qu]:`${r}px`,...s}}:{className:` ${sy} ${dy[n]}`,style:{gap:"0px",[ry]:`${-r/2}px`}}}import{jsx as Js,Fragment as Sy,jsxs as _y}from"react/jsx-runtime";import{createContext as Ty,useContext as Ey,useMemo as xy}from"react";var py=4,fy={sans:"Arial",condensed:"Arial Narrow",serif:"Times New Roman",mono:"Courier New"},my={sans:"sans-serif",serif:"serif",mono:"monospace"},hy="latin",gy=/^\/(?![\/\\])[^\s"'()\\<>:]+$/,by=/^U\+[0-9A-Fa-f?]{1,6}(?:-[0-9A-Fa-f]{1,6})?(?:\s*,\s*U\+[0-9A-Fa-f?]{1,6}(?:-[0-9A-Fa-f]{1,6})?)*$/,Zs=e=>`"${Au(e)}"`,nd=e=>`${e} Fallback`;function yy(e){return typeof e?.url=="string"&&gy.test(e.url)&&typeof e.unicodeRange=="string"&&by.test(e.unicodeRange.trim())&&Number.isInteger(e.weight)&&e.weight>=1&&e.weight<=1e3&&(e.style==="normal"||e.style==="italic")}var Ao=e=>`${e}%`,Ro=e=>typeof e=="number"&&Number.isFinite(e);function od(e,t){let n={css:"",vars:{},preload:[]};if(e.siteFonts.size===0)return n;let o=[],a=[];for(let s of new Set(t)){let r=e.siteFonts.get(s),i=e.byKey.get(s);if(!r||!i)continue;let l=Zs(r.family);for(let p of r.files??[])yy(p)&&(o.push(`@font-face { font-family: ${l}; src: url("${p.url}") format("woff2"); font-weight: ${p.weight}; font-style: ${p.style}; unicode-range: ${p.unicodeRange.trim()}; font-display: swap; }`),p.subset===hy&&a.push(p));let u=r.fallbackMetrics,d=!!u&&Ro(u.ascent)&&Ro(u.descent)&&Ro(u.lineGap)&&Ro(u.sizeAdjust);if(d){let p=fy[r.condensed?"condensed":i.category];o.push(`@font-face { font-family: ${Zs(nd(r.family))}; src: local("${p}"); ascent-override: ${Ao(u.ascent)}; descent-override: ${Ao(u.descent)}; line-gap-override: ${Ao(u.lineGap)}; size-adjust: ${Ao(u.sizeAdjust)}; }`)}n.vars[i.cssVar]=Ks([l,...d?[Zs(nd(r.family))]:[],my[i.category]].join(", "))}return n.css=Ks(o.join(`
|
|
2
|
-
`)),n.preload=[...a.filter(s=>s.style==="normal"),...a.filter(s=>s.style!=="normal")].slice(0,py),n}var sd=Ty(be);function k0({siteFonts:e,children:t}){let n=xy(()=>wc(e),[e]);return Js(sd.Provider,{value:n,children:t})}function On(){return Ey(sd)}var ad="sf-site-fonts";function I0({usedKeys:e,preload:t=!0}){let n=On(),o=od(n,e),a=Object.entries(o.vars),s=[o.css,a.length?`:root { ${a.map(([r,i])=>`${r}: ${i}`).join("; ")} }`:""].filter(Boolean).join(`
|
|
3
|
-
`);return s?_y(Sy,{children:[(t?o.preload:[]).map(r=>Js("link",{rel:"preload",as:"font",type:"font/woff2",href:r.url,crossOrigin:""},r.id)),Js("style",{href:`${ad}-${Ru(s)}`,precedence:ad,dangerouslySetInnerHTML:{__html:s}})]}):null}import{jsx as Y,jsxs as yt,Fragment as mS}from"react/jsx-runtime";import{useCallback as _d,useContext as hS,useId as xd,useRef as Td,useState as Ed}from"react";import{ThemeIcon as gS}from"efficient-easel/icons";import{Button as bS,useClickOutside as yS}from"efficient-shell/ui";import{SettingsField as SS}from"efficient-easel/panel";import{ScreenDocumentContext as _S}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as k,jsxs as tt,Fragment as Vy}from"react/jsx-runtime";import{parseHexColor as Yy}from"efficient-shell/format";import{Button as nr,IconButton as Xy,Tooltip as qy}from"efficient-shell/ui";import{jsx as et,jsxs as Hy}from"react/jsx-runtime";import{AccentIcon as $y}from"efficient-easel/icons";import{Button as Uy,Tooltip as Gy}from"efficient-shell/ui";import{jsx as se,jsxs as er}from"react/jsx-runtime";import{useRef as vy}from"react";import{ColorPicker as wy,ColorPickerPanel as Cy,ColorSwatch as Oy,HexInput as Py,Popover as ky,Tooltip as Iy,colorFill as Ay,colorSwatchClasses as Ry,useShellStrings as Ny}from"efficient-shell/ui";import{SettingsDefaultReset as Ly,SettingsField as Dy}from"efficient-easel/panel";import{typedHex as Qs}from"efficient-easel/pick";var rd="Not set";function id({value:e,onChange:t,label:n,id:o,caption:a,inherited:s,ariaLabel:r,choices:i}){return se(By,{value:e,onChange:t,label:c(r??n),id:o,caption:a,inherited:s,choices:i})}function Fy(){let{theme:e}=B();return Gu(e)}function By({value:e,onChange:t,label:n,id:o,caption:a,inherited:s,choices:r}){let i=Fy(),l=e?null:Qs(s??""),u=a!==void 0&&(!e||Qs(a)!==Qs(e))?a:null,d=p=>{p!==e&&t(p)};return er("div",{className:"sf-colour",children:[r?se(My,{id:o,value:e,onChange:t,label:n,presets:i,follows:l,choices:r}):se(wy,{id:o,value:e,onChange:d,label:n,presets:i,fallback:l??void 0,size:"md",align:"start"}),u!==null?se("span",{className:"sf-colour-caption",children:u}):se("span",{className:"sf-colour-hexwrap",children:se(Py,{value:e||l||"",onChange:d,label:c("{label} hex code",{label:n}),placeholder:e||l?void 0:c(rd),className:l?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function My({value:e,onChange:t,label:n,id:o,presets:a,follows:s,choices:r}){let i=Ny().color,l=e||s||"",u=r.findIndex(f=>f.selected),d=u>=0,p=vy(u);return d&&(p.current=u),se(ky,{id:o,trigger:se("span",{"aria-hidden":"true",className:"absolute inset-0",style:Ay(l)}),triggerLabel:i.swatch(n,l.toUpperCase()||i.none),triggerClassName:Ry({size:"md"}),"aria-label":i.panel(n),align:"start",children:er("div",{className:"sf-colour-window",children:[se("div",{role:"group","aria-label":n,className:"sf-colour-choices",children:r.map(f=>se(Iy,{content:f.label,children:se(Oy,{color:f.color,"aria-label":f.label,selected:f.selected,onClick:()=>{f.selected||f.onPick()}})},f.label))}),se(Cy,{value:d?"":e,onChange:t,label:n,presets:a,fallback:(d?l:s)??void 0},p.current)]})})}function Se({label:e,icon:t,changed:n,hint:o,onReset:a,resetTo:s,children:r,...i}){return se(Dy,{label:e,icon:t,htmlFor:i.id,changed:n,hint:o,action:a?se(Ly,{words:P()?.panel,label:e,changed:!!n,detail:s,onReset:a}):void 0,children:r?er("div",{className:"es-width-stack",children:[id({...i,label:e}),r]}):id({...i,label:e})})}function Pn({label:e,icon:t,value:n,inherited:o,resetTo:a,onChange:s,onReset:r,hint:i,choices:l,children:u}){let d=!!n;return se(Se,{label:e,icon:t,value:n,inherited:d?void 0:o,onChange:s,changed:d,onReset:r,resetTo:a,hint:i,choices:l,children:u})}function tr(e){return ce(e).background}function zy(e){let t=qe(e.accent,tr(e));return t===null?null:{ratio:t,grade:jt(t)}}function Wy(e){let t=tr(e),n=qe(e.accent,t);return n===null?[]:Qc(e.accent).filter(o=>{let a=qe(o,t);return a!==null&&a>n&&jt(a)==="good"})}var Ky={good:"Easy to read","large-only":Kt["large-only"],hard:Kt.hard};function ld({value:e,onChange:t}){let n=zy(e),o=n?.grade,a=n&&n.grade!=="good"?Wy(e):[];return et(Se,{label:c("Main color"),icon:et($y,{}),hint:n?c(Ky[n.grade]):void 0,value:e.accent,onChange:s=>t({...e,accent:s}),children:a.length>0?et("div",{className:"w-full min-w-0",children:Hy("div",{className:"sf-readability",children:[et("p",{className:"sf-readability-advice",children:jy(o,!0)}),et("div",{className:"sf-readability-suggestions",children:a.map(s=>{let r=qe(s,tr(e));return et(Gy,{content:c("Use {colour}",{colour:s.toUpperCase()}),children:et(Uy,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:et("span",{className:"sf-readability-chip",style:{background:s},"aria-hidden":!0}),onClick:()=>t({...e,accent:s}),children:r?`${r.toFixed(1)}:1`:s.toUpperCase()})},s)})})]})}):null})}function jy(e,t){return e?e==="good"?c("This color reads clearly on your pages."):t?c("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):c("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."):c("Pick a color to see how it reads.")}import{ButtonIcon as Zy,ChevronDownIcon as ud,ChevronUpIcon as Jy,GroundIcon as Qy,LayoutIcon as eS,SquareIcon as tS,TextSmallIcon as nS,TypeIcon as cd}from"efficient-easel/icons";var kn=e=>c("Theme {n}",{n:e+1});function dd({colors:e}){let t=ce(e),n=Ms(e)??t.accent;return tt("span",{className:"sf-theme-page",style:{background:t.background,color:t.text},"aria-hidden":!0,children:[k("span",{className:"sf-theme-eyebrow",style:{color:t.muted},children:c("label")}),tt("span",{className:"sf-theme-headline",children:[c("Heading")," ",k("span",{style:{color:t.accent},children:c("main")})]}),k("span",{className:"sf-theme-body",children:c("body text")}),tt("span",{className:"sf-theme-row",children:[k("span",{className:"sf-theme-btn",style:{background:n,color:Hs(e,t.accent)},children:c("button")}),k("span",{className:"sf-theme-mini",style:{background:t.surface,borderColor:t.line},children:c("card")})]})]})}var or={"Text color":k(cd,{}),"Label color":k(nS,{}),Background:k(Qy,{}),"Panels & cards":k(eS,{}),Borders:k(tS,{}),"Button color":k(Zy,{}),"Button text color":k(cd,{})};function oS({label:e,colorKey:t,value:n,onChange:o,idPrefix:a="sf-theme-ink"}){let s=`${a}-${t}`;return k(Se,{label:c(e),icon:or[e],id:s,value:n,onChange:r=>o(t,r)})}function aS({value:e,accent:t,onChange:n,idPrefix:o="sf-theme-ink"}){let a=`${o}-button`,s=e!==void 0&&Yy(e)===e.toLowerCase(),r=s?e:t;return k(Se,{label:c("Button color"),icon:or["Button color"],id:a,value:r,caption:s?r:c("Main"),onChange:n})}function sS({colors:e,accent:t,onChange:n,idPrefix:o="sf-theme-ink"}){let a=`${o}-button-ink`,s=eu(e),r=Hs(e,t),i=Ms(e)??t,l=jt(qe(r,i)??0);return k(Se,{label:c("Button text color"),icon:or["Button text color"],hint:s&&l!=="good"?c("{grade} on the button",{grade:c(Kt[l])}):void 0,id:a,value:r,caption:s?r:c("Auto"),onChange:n})}var rS=[{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 ar({colors:e,onChange:t,idPrefix:n}){let o=ce(e);return k(Vy,{children:rS.map(a=>"colour"in a?k(ld,{value:e,onChange:t},"colour"):"moduleBreak"in a?k("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?k(aS,{value:e.button,accent:o.accent,onChange:s=>t({...e,button:s}),idPrefix:n},"button"):"buttonInk"in a?k(sS,{colors:e,accent:o.accent,onChange:s=>t({...e,buttonInk:s}),idPrefix:n},"buttonInk"):k(oS,{label:a.label,colorKey:a.key,value:o[a.key],onChange:(s,r)=>t({...e,[s]:r}),idPrefix:n},a.key))})}function No({index:e,colors:t,selected:n,role:o="radio",open:a,editable:s=!0,onPick:r,onEdit:i,onChangeColors:l}){let u=ce(t),d=kn(e),p=e<Bs.length&&!t.brandInk?Bs[e]:null,f=jt(qe(u.text,u.background)??0),m=p?JSON.stringify(t)!==JSON.stringify(p):!1,b=a!==void 0;return tt("div",{className:`sf-theme-card${n?" is-selected":""}`,children:[k("button",{type:"button",role:o,"aria-checked":o==="radio"?n:void 0,"aria-selected":o==="option"?n:void 0,"aria-label":d,className:"sf-theme-pick",onClick:r,children:k(dd,{colors:t})}),tt("div",{className:"sf-theme-foot",children:[k("span",{className:"sf-theme-name",children:d}),f!=="good"&&k("span",{className:"sf-theme-warn",children:c(Kt[f])}),s&&i&&b&&k("span",{className:"sf-theme-edit",children:k(qy,{content:a?c("Collapse"):c("Edit colors"),children:k(Xy,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?c("Collapse {name}",{name:d}):c("Edit colors for {name}",{name:d}),onClick:i,children:a?k(Jy,{size:14}):k(ud,{size:14})})})}),s&&i&&!b&&k(nr,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:d}),onClick:i,children:c("Edit")})]}),a&&tt("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[k(ar,{colors:t,onChange:y=>l?.(y)}),p&&k(nr,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!m,onClick:()=>l?.({...p}),children:m?c("Reset {name} to the preset",{name:d}):c("Not changed")})]})]})}function pd({colors:e,name:t,nameId:n,open:o,menuId:a,labelId:s,buttonRef:r,onClick:i,onKeyDown:l,onEdit:u}){return tt("div",{className:"sf-secttheme-btn",children:[k("button",{ref:r,type:"button",className:"sf-theme-pick","aria-expanded":o,"aria-controls":a,"aria-labelledby":`${s} ${n}`,onClick:i,onKeyDown:l,children:e?k(dd,{colors:e}):k("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),tt("div",{className:"sf-theme-foot",children:[k("span",{id:n,className:"sf-theme-name",children:t}),u&&k(nr,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":c("Edit {name}",{name:t}),onClick:u,children:c("Edit")}),k("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:k(ud,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as cr,useEffect as bd,useRef as Do}from"react";import{currentEaselSession as uS}from"efficient-easel/screen/lib/session";import{backendOf as iS}from"efficient-easel/screen/lib/session";var xe=iS,rN=e=>e.blocks;import{useEaselSession as dS}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as lS}from"react";var md,sr=null,bt=null,Lo=0,rr=new Set;function ir(e){md=e;for(let t of rr)t()}function cN(e){sr=e,Lo+=1,bt&&clearTimeout(bt),bt=null,ir(void 0)}function uN(e){Lo+=1,ir(e)}function hd(e=250){sr&&(bt&&clearTimeout(bt),bt=setTimeout(()=>{bt=null;let t=sr;if(!t)return;let n=++Lo;t().then(o=>{n===Lo&&ir(o)}).catch(()=>{})},e))}function fd(){return md}function cS(e){return rr.add(e),()=>{rr.delete(e)}}function dN(){return lS(cS,fd,fd)}var lr=new Set;function gd(e){return lr.add(e),()=>{lr.delete(e)}}async function fN(){let e=(await Promise.allSettled([...lr].map(async t=>t()))).find(t=>t.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as pS}from"efficient-easel/screen/lib/backend-error";function yd(e=uS()){return(t,n,o)=>{let a=xe(e).theme;return a?a.update(t,o?{siteId:o}:void 0):Promise.reject(new pS("invalid","This backend stores no site theme."))}}function Sd(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function fS(e,t=yd()){let{themeFromDocument:n,token:o,siteId:a,patch:s}=e,r=Sd({themeFromDocument:n,token:o});if(r)return r;if(Object.keys(s).length===0)return{status:"skipped",reason:"empty"};try{return await t(s,o,a??void 0),{status:"saved"}}catch(i){return{status:"failed",error:i}}}function Fo({themeFromDocument:e,tokenRef:t,siteId:n,onResult:o}){let a=Do(null),s=Do({}),r=dS(),i=Do(o);i.current=o;let l=Do(null),u=cr(f=>{if(f.status==="skipped"){let m=`skipped:${f.reason}`;if(l.current===m)return;l.current=m}else l.current=null;i.current?.(f)},[]),d=cr(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let f=s.current;s.current={};let m=await fS({themeFromDocument:e,token:t?.current,siteId:n,patch:f},yd(r));return u(m),m.status==="saved"&&hd(),m.status==="failed"&&(s.current={...f,...s.current}),m},[e,t,n,u,r]),p=cr((f,m=!1)=>{let b=Sd({themeFromDocument:e,token:t?.current});if(b){u(b);return}s.current={...s.current,...f},a.current&&clearTimeout(a.current),m?d():a.current=setTimeout(()=>{d()},500)},[e,t,d,u]);return bd(()=>()=>{d()},[d]),bd(()=>gd(async()=>{if(!a.current&&Object.keys(s.current).length===0)return;let f=await d();if(f.status==="failed")throw f.error}),[d]),{persist:p,flush:d}}var TS="Follow the page",DN="Follow the slideshow",ES=e=>c("Editing {name} changes it everywhere.",{name:e});function xS({colors:e}){if(!e)return Y("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let t=ce(e);return yt("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Y("i",{style:{background:t.background}}),Y("i",{className:"sf-secttheme-chip-accent",style:{background:t.accent}})]})}function vS({themes:e,value:t,onPick:n,onEdit:o,menuId:a,followLabel:s}){return yt("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[s!==void 0&&yt(mS,{children:[yt("button",{type:"button",role:"option","aria-selected":t===null,className:`sf-secttheme-item${t===null?" is-active":""}`,onClick:()=>n(fu),children:[Y(xS,{}),Y("span",{className:"sf-secttheme-name",children:c(s)})]}),Y("div",{className:"sf-secttheme-sep",role:"presentation"})]}),t!==null&&e[t]&&Y("p",{className:"sf-secttheme-oncard",role:"presentation",children:c("{name} is on this section",{name:kn(t)})}),e.map((r,i)=>i===t?null:Y(No,{role:"option",index:i,colors:r,selected:!1,onPick:()=>n(i),onEdit:o?()=>o(i):void 0},i))]})}function wS({index:e,colors:t,onChange:n,onDone:o}){let a=kn(e),s=xd();return yt("div",{className:"sf-secttheme-sheet",children:[yt("div",{className:"sf-secttheme-sheet-head",children:[Y("span",{children:a}),Y(bS,{variant:"secondary",className:"sf-secttheme-done",onClick:o,children:c("Done")})]}),Y("div",{className:"sf-secttheme-rows",children:Y(ar,{colors:t,onChange:n,idPrefix:s})}),Y("p",{className:"sf-secttheme-warn",children:ES(a)})]})}function vd({value:e,onChange:t,followLabel:n,hint:o,canEdit:a=!0}){let{theme:s,setTheme:r}=B(),i=ke(s),l=hS(_S),u=l?.tokenRef,d=l?.siteId??null,p=!l?.capabilities?.hasSiteTheme,{persist:f,flush:m}=Fo({themeFromDocument:p,tokenRef:u,siteId:d}),b=ke(i),y=b.themes,_=gt(e),S=_!==null?y[_]:void 0,E=S??(y.length?Wt(b):void 0),[x,v]=Ed(!1),[w,R]=Ed(null),C=Td(null),D=Td(null),z=xd(),Ee=_d(()=>{v(!1),R(null)},[]),uo=_d(()=>{!x&&w===null||(m(),Ee())},[x,w,Ee,m]);yS(C,uo);let po=X=>{t(X),Ee()},fo=X=>{if(w===null)return;let Yb=y.map((Xb,qb)=>qb===w?X:Xb),xs={...b,themes:Yb};r(xs),f({selected_preset:xs.selected,theme_presets:xs.themes})};return yt("div",{className:"sf-secttheme",ref:C,children:[Y(SS,{label:c("Theme"),icon:Y(gS,{}),labelId:`${z}-label`,hint:o,children:Y(pd,{colors:E,onEdit:a&&_!==null?()=>{R(_),v(!1)}:void 0,name:S?kn(_):c(n??TS),nameId:`${z}-value`,labelId:`${z}-label`,open:x,menuId:z,buttonRef:D,onClick:()=>{R(null),v(X=>!X)},onKeyDown:X=>{X.key==="Escape"&&(x||w!==null)&&(X.preventDefault(),Ee())}})}),x&&w===null&&Y("div",{onKeyDown:X=>{X.key==="Escape"&&(X.preventDefault(),Ee(),D.current?.focus())},children:Y(vS,{themes:y,value:_,onPick:po,onEdit:a?X=>{R(X),v(!1)}:void 0,menuId:z,followLabel:n})}),a&&w!==null&&y[w]&&Y(wS,{index:w,colors:y[w],onChange:fo,onDone:()=>{m(),Ee(),D.current?.focus()}})]})}import{defaultTextStyles as op,textStyleCaseCss as q_}from"efficient-easel/text-styles/model";import{resolveViewValue as ap}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as wd,VIEW_TABLET_MIN as Cd}from"efficient-easel/draw";var Bo=.02,Od=`(min-width: ${Tn}px) and (max-width: ${wd-Bo}px)`,Pd=`(max-width: ${Tn-Bo}px)`,Mo=`(min-width: ${Cd}px) and (max-width: ${wd-Bo}px)`,Ho=`(max-width: ${Cd-Bo}px)`;import{textStyleCaseCss as jS,textStyleCaseOfCss as VS,viewKeyAt as Zd}from"efficient-easel/draw";function $o(e,t){return t?`${e}[${t.index}].${t.rowKey}`:e}function CS(e){let t=/^([A-Za-z0-9_$]+)\[(\d+)\]\.([A-Za-z0-9_$]+)$/u.exec(e);return t?{key:t[1],row:{index:Number(t[2]),rowKey:t[3]}}:{key:e,row:null}}import{decodePartId as fr,encodePartId as d1}from"efficient-easel/draw";import{LINK_FIELD_MARKER as Hd,SCAFFOLD_FIELD_MARKER as Bd,TEXT_FIELD_MARKER as Wo}from"efficient-easel/draw";import{readHidable as $d}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as HS}from"efficient-easel/draw";var kd={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Id={Events:["posts"],SubscribeBlogs:["posts"]};var OS=["anchor"],PS=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function In(e){return OS.includes(e)||PS.test(e)}var kS={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"}}};kS.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var KN=Object.fromEntries(Object.entries(kd).map(([e,t])=>[e,Object.keys(t)])),jN=Object.fromEntries(Object.entries(Id).map(([e,t])=>[e,[...t]]));var ur="__ownBox";function Ad(e){return!!e&&typeof e=="object"&&e[ur]===!0}var dr="sfPanelOnly";function Uo(e){return!!e&&typeof e=="object"&&e[dr]===!0}import{TEXT_FIELD_MARKER as DS}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as Rd}from"efficient-easel/draw";import{readHidable as Nd}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as IS}from"efficient-easel/draw";var AS=IS,RS=["text","textarea"],NS=["textarea","plainTextarea"];function LS(e){return!e||typeof e!="object"?null:e[Rd]?.control??null}function Ld(e){let t=LS(e);return t&&AS.includes(t)?t:null}function QN(e){return NS.includes(e)}function e1(e){return!e||typeof e!="object"?void 0:e[Rd]?.placeholder}function Go(e){return Nd(e).text}function pr(e,t,n){return RS.includes(e)?{text:n,hidden:Nd(t).hidden}:n}function t1(e,t,n,o){return Go(e[t])===o?null:{...e,[t]:pr(n,e[t],o)}}function Dd(e){if(!(!e||typeof e!="object"))return e[DS]}function FS(e){if(!e||typeof e!="object")return null;let t=e.arrayFields;return t&&typeof t=="object"?t:null}function Fd(e,t){if(!Array.isArray(t))return[];let n=Dd(e),o=[];if(n?.control==="textList"){let s=n.itemKey??"text";return t.forEach((r,i)=>{let l=W(r?.[s]);l&&o.push({row:{index:i,rowKey:s},text:l})}),o}let a=FS(e);return a?(t.forEach((s,r)=>{for(let[i,l]of Object.entries(a)){if(!Ld(l))continue;let u=Go(s?.[i])||Dd(l)?.placeholder||"";u&&o.push({row:{index:r,rowKey:i},text:u})}}),o):[]}function BS(e,t){if(Array.isArray(e))return e[t.index]?.[t.rowKey]}function MS(e,t,n,o){let a=e[t];return!Array.isArray(a)||n.index<0||n.index>=a.length?null:{...e,[t]:a.map((s,r)=>r===n.index?{...s,[n.rowKey]:o}:s)}}function i1(e,t,n,o,a){let s=BS(e[t],n);return Go(s)===a?null:MS(e,t,n,pr(o,s,a))}function l1(e,t){return t?`${e} \xB7 row ${t.index+1}`:e}var T1="data-sf-part",E1="data-sf-region-part",x1="data-sf-part-row";function v1(e,t){return`${e}[${t}]`}var w1="data-sf-part-kind",$S="data-sf-part-style-owner",US="data-sf-part-style-kind";function C1(e){for(let t=e;t;t=t.parentElement){let n=t.getAttribute($S),o=t.getAttribute(US);if(n&&o)return{owner:n,kind:o};if(t.getAttribute("data-easel-block"))return null}return null}var Md=2;function Zt(e){return vs(e).replace(/\s+/gu,"")}function zo(e,t,n){let o=e[Wo];if(o){if(o.control==="textList"){let s=o.itemKey??"text";if(!Array.isArray(t))return;for(let r of t){let i=r?.[s];typeof i=="string"&&n.push(i)}return}let{text:a}=$d(t);a?n.push(a):o.placeholder&&n.push(o.placeholder);return}if(!e[Hd]){if(e.type==="text"||e.type==="textarea"){let a=W(t);a&&n.push(a);return}if(e.arrayFields&&Array.isArray(t)){for(let a of t)for(let[s,r]of Object.entries(e.arrayFields))zo(r,a?.[s],n);return}if(e.objectFields&&t&&typeof t=="object")for(let[a,s]of Object.entries(e.objectFields))zo(s,t[a],n)}}function GS(e){if(!e||typeof e!="object")return!1;let t=e;return t[Hd]?!1:!!t[Wo]||t.type==="text"||t.type==="textarea"}function Ud(e,t){let n=e[Wo];return n?.label?n.label:typeof e.label=="string"?e.label:t}function zS(e){let t=e.indexOf(" (");return(t>0?e.slice(0,t):e).trim()}function O1(e,t,n){if(!e)return[];let o=[];for(let[a,s]of Object.entries(e)){if(!s||typeof s!="object"||In(a))continue;let r=s,i=[];zo(r,t?.[a],i),!i.length&&r[Bd]!==void 0&&zo(r,r[Bd],i);let l=Ud(r,a);if(n?.(a)&&GS(r)){i.length&&o.push({key:a,label:l,texts:[],keyed:!0});continue}let u=new Set;for(let{row:f,text:m}of Fd(r,t?.[a])){let b=Zt(m);b.length<Md||(u.add(b),o.push({key:a,label:l,texts:[b],row:f}))}let d=new Set(u),p=[];for(let f of i){let m=Zt(f);m.length<Md||d.has(m)||(d.add(m),p.push(m))}p.length&&o.push({key:a,label:l,texts:p})}return o}function WS(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var KS=HS;function Gd(e,t){if(!t||typeof t!="object"||In(e)||Ad(t))return null;let n=t[Wo];return!n||!KS.includes(n.control)?null:n}function P1(e,t){let n=Gd(e,t);return n!==null&&n.identifier!==!0}function k1(e,t){if(!e)return[];let n=[];for(let[o,a]of Object.entries(e)){let s=Gd(o,a);if(!s)continue;let{text:r,hidden:i}=$d(t?.[o]);if(WS({offPage:s.offPage===!0,hidden:!!i,panelOnly:Uo(a)}))continue;let l=r||s.placeholder||"",u=vs(l).replace(/\s+/gu," ").trim();n.push({key:o,label:zS(Ud(a,o)),preview:u,offPage:s.offPage===!0,identifier:s.identifier===!0,hidden:!!i})}return n}function Jt(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Ko(e,t){return Jt(e?.[t])??{}}function zd(e,t,n){let o=Ko(e,t);return Jt(j(o,n))??{}}function Wd(e,t,n,o){let{[n]:a,...s}=Ko(e,t),r=o?{...s,[n]:o}:s,{[t]:i,...l}=e;return Object.keys(r).length?{...l,[t]:r}:l}import{isLengthUnit as Sr}from"efficient-easel/screen/lib/content/length-units";var _r="_partStyles",YS="data-sf-part-styled",jo="data-sf-text-style",XS=/^(heading|body)-[1-7]$/;function Et(e){return typeof e=="string"&&XS.test(e)}var Vo={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function qS(e){if(!e)return null;for(let[t,n]of Object.entries(Vo))if(n===e)return t;return null}function W1(e){if(Et(e.textStyle))return e.textStyle;let t=dt(e.role);return t?Vo[t]:void 0}var ZS=[400,500,600,700],Rn=["left","center","right","justify"],mr=5,hr=1e3,JS=-5,QS=10,e_=0,t_=64,n_=2,Kd={size:{min:mr,max:hr,step:1},sizeTablet:{min:mr,max:hr,step:1},sizePhone:{min:mr,max:hr,step:1},padding:{min:e_,max:t_,step:n_}},o_=.05,a_=.01,s_=["line","letter"],r_=.5,i_=2.5,l_=-1,c_=1,u_=0,d_=400,p_=[...new Set(Object.values(go))];function K1(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 j1(e){return Ko(e,_r)}function f_(e,t){return zd(e,_r,t)}function Jd(e,t,n){return Wd(e,_r,t,m_(n).length?n:null)}function m_(e){return Object.entries(e).filter(([,t])=>t!==void 0)}function h_(e){return s_.includes(e)}var An=(e,t,n)=>Math.min(n,Math.max(t,e)),g_=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function gr(e){let t=Zd("sizeUnit",e),n=g_.find(o=>o===t);if(!n)throw new Error(`a part stores no unit key ${t}`);return n}var St={size:gr("desktop"),sizeTablet:gr("tablet"),sizePhone:gr("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},Qd=Object.values(St);function Re(e,t){return F(e[St[t]])}function b_(e,t,n={}){if(Qd.includes(e))return Sr(t)&&t!=="px"?t:null;if(ge(St,e)&&Re(n,e)!=="px"){let o=Tt(Number(t),2);return!Number.isFinite(o)||o<0||o===0&&e!=="padding"?null:o}if(h_(e)){let o=Math.round(Number(t));return!Number.isFinite(o)||o===0?null:An(o,JS,QS)}if(e==="lineHeight"){let o=Number(t);return Number.isFinite(o)?Tt(An(o,r_,i_),3):null}if(e==="letterSpacing"){let o=Number(t);return Number.isFinite(o)?Tt(An(o,l_,c_),4):null}if(e==="paragraphSpacing"){let o=Math.round(Number(t));return!Number.isFinite(o)||o<=0?null:An(o,u_,d_)}if(ge(Kd,e)){let{min:o,max:a}=Kd[e],s=Math.round(Number(t));return Number.isFinite(s)?An(s,o,a):null}return e==="italic"?typeof t=="boolean"?t:null:e==="role"||e==="fontRole"?dt(t)?t:null:e==="sizeToken"?Tr(t)?t:null:e==="textStyle"?Et(t)?t:null:e==="alignPhone"||e==="alignTablet"?Rn.includes(t)?t:null:t}var y_=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function Qt(e){let t=null,n=o=>{t??={...e},delete t[o]};for(let o of y_){let a=e[o];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&n(o)}e.align!==void 0&&!Rn.includes(e.align)&&n("align"),e.alignTablet!==void 0&&!Rn.includes(e.alignTablet)&&n("alignTablet"),e.alignPhone!==void 0&&!Rn.includes(e.alignPhone)&&n("alignPhone"),e.textStyle!==void 0&&!Et(e.textStyle)&&n("textStyle"),e.sizeToken!==void 0&&!Tr(e.sizeToken)&&n("sizeToken"),e.fontRole!==void 0&&!dt(e.fontRole)&&n("fontRole");for(let o of Qd)e[o]!==void 0&&!Sr(e[o])&&n(o);return t??e}function Tr(e){if(!e||typeof e!="object")return!1;let{step:t,px:n,stepPhone:o,pxPhone:a,fluid:s}=e,r=l=>typeof l=="number"&&Number.isFinite(l)&&l>0,i=l=>typeof l=="string"&&p_.includes(l);return i(t)&&r(n)&&(o===void 0||i(o))&&(a===void 0||r(a))&&(s===void 0||S_(s,n))}function S_(e,t){if(!e||typeof e!="object"||Array.isArray(e))return!1;let{minPx:n,vw:o,...a}=e;return Object.keys(a).length===0&&typeof n=="number"&&Number.isFinite(n)&&n>0&&n<t&&typeof o=="number"&&Number.isFinite(o)&&o>0&&o<=100}function Er(e){return e?.pxPhone&&Tr(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function ep({step:e,px:t,fluid:n}){let o=n?`clamp(${n.minPx}px, ${n.vw}vw, ${t}px)`:`${t}px`,a=`var(--size-${e}, ${o})`;return e.startsWith("heading")?`min(${a}, var(--sf-heading-max,9999px))`:a}var __=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function T_(e){let t=[];for(let[n,o]of __)n===e?t.push(o):o===e&&t.push(n);return t}function V1(e,t,n,o){let a={...f_(e,t)},s=o==null?null:b_(n,o,a);if(s===null)delete a[n];else{a[n]=s;for(let r of T_(n))delete a[r]}return Jd(e,t,a)}function Y1(e,t){return Jd(e,t,{})}function E_(e){return VS(e)??"none"}function x_(e){return jS(e)??""}var jd={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 v_(e,t){return dt(e.role)||(t?.blockDrawsStyle?null:qS(e.textStyle))}var w_="--sf-part-size-cap";function xr(e,t){return e&&t?.sizeCap?`min(${e}, var(${w_}, ${e}))`:e}function X1(e,t){return e?.[t]===!0}function q1(e,t){return e==="Text"&&t==="text"}var C_={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 O_(e){let t=go[e],n=j(C_,t);return n?`var(--size-${t}, ${n})`:`var(--size-${t})`}function vr(e){let t={};return typeof e.lineHeight=="number"?t.lineHeight=e.lineHeight:e.line&&(t.lineHeight=Tt(P_+e.line*o_,3)),typeof e.letterSpacing=="number"?t.letterSpacingEm=e.letterSpacing:e.letter&&(t.letterSpacingEm=Tt(e.letter*a_,4)),t}var P_=1,_t="--sf-part-para";function k_(e,t){e=Qt(e);let n={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)n.fontSize=H(e.sizePhone,Re(e,"sizePhone"));else{let a=Er(e.sizeToken);if(a)n.fontSize=ep(a);else{let s=Xo(e);s!==void 0&&(n.fontSize=H(s,Re(e,"sizeTablet")))}}n.fontSize&&(n.fontSize=xr(n.fontSize,t));let o=e.alignPhone??Yo(e);return o&&(n.textAlign=o),n}function Yo(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Xo(e){let t=e.sizeTablet!==void 0&&Re(e,"sizeTablet")!==Re(e,"size")?e.sizeTablet:Me("textSize",e.size,e.sizeTablet,void 0).tablet;return t&&t>0?t:void 0}function I_(e,t){let n=Qt(e),o={},a=Xo(n);a!==void 0&&(o.fontSize=xr(H(a,Re(n,"sizeTablet")),t));let s=Yo(n);return s&&(o.textAlign=s),o}function Z1(e,t){if(t==="desktop")return;let n=Qt(e);return(t==="mobile"?Yo(n):void 0)??n.align}function A_(e,t){if(t==="desktop")return e;let n=Qt(e),o=Xo(n),a=Yo(n);if(t==="tablet"){let i=e;return o!==void 0&&(i={...i,size:o,sizeUnit:n[St.sizeTablet]}),a&&(i={...i,align:a}),i}let s=e;if(typeof n.sizePhone=="number"&&n.sizePhone>0)s={...s,size:n.sizePhone,sizeUnit:n[St.sizePhone]};else{let i=Er(n.sizeToken);i?s={...s,size:void 0,sizeToken:i}:o!==void 0&&(s={...s,size:o,sizeUnit:n[St.sizeTablet]})}let r=n.alignPhone??a;return r&&(s={...s,align:r}),s}function wr(e,t,n){return Cr(A_(e,t),qo,n)}function R_(e){return Zd("size",e)}function J1(e,t){if(t==="desktop")return null;let n=Qt(e);if(t==="mobile"){if(Er(n.sizeToken))return null;let o=Xo(n);if(o!==void 0)return{px:o,view:"tablet"}}return typeof n.size=="number"&&n.size>0?{px:n.size,view:"desktop"}:null}function tp(e,t){let n=R_(t);if(!ge(e,n))return e;let o={...e};return delete o[n],o}function Q1(e,t,n){let o=wr(tp(e,t),t,n);return{fontFamily:o.fontFamily,fontSize:o.fontSize}}function Cr(e,t,n){e=Qt(e);let o=v_(e,n),a=vr(e),s=xr(e.size?H(e.size,Re(e,"size")):e.sizeToken?ep(e.sizeToken):o?O_(o):"",n);return{fontFamily:e.font?F_(e.font,n?.fonts):e.fontRole?`var(${jd[e.fontRole]})`:o?`var(${jd[o]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:s,minWidth:s?"0":"",overflowWrap:s?"break-word":"",lineHeight:a.lineHeight!==void 0?String(a.lineHeight):"",letterSpacing:a.letterSpacingEm!==void 0?`${a.letterSpacingEm}em`:"",[_t]:e.paragraphSpacing?H(e.paragraphSpacing,Re(e,"paragraphSpacing")):"",textTransform:x_(e.case),textAlign:e.align??"",paddingTop:Vd(e.padding,Re(e,"padding")),paddingBottom:Vd(e.padding,Re(e,"padding")),color:N_(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var N_=e=>Po(e),Vd=(e,t)=>e===void 0?"":H(e,t),Tt=(e,t)=>Number(e.toFixed(t));function eL(e,t){let n=Number.parseFloat(e.fontSize)||16,o=Number.parseFloat(e.lineHeight),a=Number.parseFloat(e.letterSpacing),s=Number.parseFloat(e.paddingTop);return{fontKey:t,sizePx:n,weight:L_(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(o)?Tt(o/n,3):1.2,letterEm:Number.isFinite(a)?Tt(a/n,4):0,align:D_(e.textAlign),case:E_(e.textTransform),paddingPx:Number.isFinite(s)?Math.round(s):0}}function L_(e){return Number.isFinite(e)?ZS.reduce((t,n)=>Math.abs(n-e)<Math.abs(t-e)?n:t):400}function D_(e){for(let t of Rn)if(t===e)return t;return e==="end"?"right":"left"}function tL(e,t,n=be){let o=Yd(e);if(!o)return"";for(let a of n.options)if(Yd(t(a.cssVar))===o)return a.key;return""}var Yd=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function F_(e,t=be){let n=Oc(e,t);return n?`var(${n.cssVar})`:""}function nL(e,t,n,o){return!t||fr(t)?.nodeId!==e?null:n.find(a=>o(a.getAttribute("class")))??n[0]??null}function B_(e,t){return Jt(j(e,t))??{}}function oL(e,t,n=()=>qo,o=u=>u,a=$_,s="desktop",r=()=>!1,i=()=>!1,l=be){let u=0;for(let{element:d,partId:p}of e){let f=fr(p)?.propKey;if(!f)continue;let m=B_(t,o(f)),b=wr(m,s,{blockDrawsStyle:r(f),sizeCap:i(f),fonts:l});Et(m.textStyle)?d.setAttribute?.(jo,m.textStyle):d.removeAttribute?.(jo);let y=br.some(S=>d.style[S]),_=!1;for(let[S,E]of Object.entries(b))z_(d,S,E),E&&(_=!0);if(y||br.some(S=>b[S]))for(let S of M_(d,a))for(let E of br)S.style[E]=b[E]??"";_&&(u+=1)}return u}function M_(e,t){let n=Zt(e.textContent??""),o=[],a=e;for(let s=0;s<H_&&t(a);s+=1){let r=a.parentElement;if(!r||Zt(r.textContent??"")!==n)break;o.push(r),a=r}return o}var H_=8;function $_(e){let t=e;return typeof window>"u"||!t?.ownerDocument?!1:window.getComputedStyle(t).display==="inline"}var qo={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function U_(e){if(!e||typeof e!="object")return null;let t={};Et(e.textStyle)&&(t.textStyle=e.textStyle),typeof e.size=="number"&&e.size>0&&(t.size=e.size),typeof e.sizeTablet=="number"&&e.sizeTablet>0&&(t.sizeTablet=e.sizeTablet),typeof e.sizePhone=="number"&&e.sizePhone>0&&(t.sizePhone=e.sizePhone);for(let n of["size","sizeTablet","sizePhone"]){let o=St[n];t[n]!==void 0&&Sr(e[o])&&(t[o]=e[o])}return Object.keys(t).length?t:null}function G_(e,t,n){let o=U_(e);if(!o)return{};let a=wr(o,t,{...n?.sizeCap?{sizeCap:!0}:{},...n?.fonts?{fonts:n.fonts}:{}});return{...a.fontFamily?{fontFamily:a.fontFamily}:{},...a.fontSize?{fontSize:a.fontSize}:{}}}function aL(e){return Et(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function sL(e,t,n,o){if(!e||typeof e!="object")return{};let a=Gc(e.role,t,go)??{},s=t.sized?G_(tp(e,n),n,o?{fonts:o}:void 0):{};return{...a,...s}}function rL(e,t,n){n.fontFamily&&e.fontFamily===n.fontFamily&&(e.fontFamily=t.fontFamily),n.fontSize&&e.fontSize===n.fontSize&&(e.fontSize=t.fontSize)}function z_(e,t,n){if(!t.startsWith("--")){e.style[t]=n;return}let o=e.style;typeof o.setProperty=="function"?n?o.setProperty(t,n):o.removeProperty?.(t):o[t]=n;let a=e;t===_t&&(n?a.setAttribute?.(Xd,""):a.removeAttribute?.(Xd))}var Xd="data-sf-part-para",W_=Object.keys(Cr({},qo)),yr=new Set(["color","overflowWrap",_t,"fontStyle"]),br=W_.filter(e=>!yr.has(e));function iL(e,t,n,o=u=>u,a=()=>!1,s=()=>null,r=[],i=()=>!1,l=be){let u=new Map;for(let m of e){let b=$o(m.key,m.row);for(let y of m.texts){let _=u.get(y);_?(_.keys.add(m.key),_.partKeys.add(b)):u.set(y,{keys:new Set([m.key]),partKeys:new Set([b])})}}let d=new Map;for(let m of new Set([...Object.keys(t),...r])){if(!K_(m))continue;let b=qd(n,m,Jt(t[m])??{},{blockDrawsStyle:!1,sizeCap:i(m),fonts:l},s(m));b&&d.set(m,b)}let p=m=>{let b=o(m),y=s(b);if(!ge(t,b)&&!y)return null;let _=Jt(t[b])??{};return qd(n,m,_,{blockDrawsStyle:a(m),sizeCap:i(m),fonts:l},y)},f=new Map;for(let[m,{keys:b,partKeys:y}]of u){let _=y.size===1?[...y][0]:b.size===1?[...b][0]:null;if(!_)continue;let S=p(_);S&&f.set(m,S)}for(let m of e){if(!m.keyed)continue;let b=p($o(m.key,m.row));b&&d.set(m.key,b)}return f.size||d.size?{rules:f,kindRules:d,drawn:new Set(u.keys())}:null}function qd(e,t,n,o,a){let s=Cr(n,qo,o),r=I_(n,o),i=k_(n,o),l=Et(n.textStyle)?n.textStyle:void 0;return!Object.values(s).some(Boolean)&&!Object.keys(r).length&&!Object.keys(i).length&&!l&&!a?null:{stamp:j_(e,t),declarations:s,...Object.keys(r).length?{tablet:r}:{},...Object.keys(i).length?{phone:i}:{},...l?{textStyle:l}:{},...a?{motion:a}:{}}}function K_(e){return e.startsWith("@")}function lL(e,t){return e?.kindRules.get(t)??null}function j_(e,t){let n=o=>o.replace(/[^A-Za-z0-9_-]+/g,"-");return`${n(e)}~${n(t)}`}function V_(e){return e?{tablet:Od,phone:Pd}:{tablet:Mo,phone:Ho}}function cL(e,{inBox:t=!1}={}){let{tablet:n,phone:o}=V_(t),a=[],s=new Set,r=i=>{let{stamp:l,declarations:u}=i;if(s.has(l))return;s.add(l);let d=Object.entries(u).filter(([,S])=>S!==""),p=S=>S.map(([E,x])=>`${Y_(E)}: ${x}`).join("; "),f=`[${YS}="${l}"]`,m=d.filter(([S])=>!yr.has(S)),b=d.filter(([S])=>yr.has(S));m.length&&a.push(`${f}, *:has(> ${f}) { ${p(m)} }`),b.length&&a.push(`${f} { ${p(b)} }`),u[_t]&&(a.push(`*:has(> ${f}) { ${_t}: ${u[_t]} }`),a.push(...Zo(f,`*:has(> ${f})`)));let y=Object.entries(i.tablet??{}).filter(([,S])=>S!=="");y.length&&a.push(`@media ${n} { ${f}, *:has(> ${f}) { ${p(y)} } }`);let _=Object.entries(i.phone??{}).filter(([,S])=>S!=="");_.length&&a.push(`@media ${o} { ${f}, *:has(> ${f}) { ${p(_)} } }`)};for(let i of e.rules.values())r(i);for(let i of e.kindRules.values())r(i);return a.join(`
|
|
4
|
-
`)}function Zo(e,t){let n=`var(${_t})`,o=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${n} }`,`${e} ${o}:not(:first-child) { margin-top: ${n} }`,`${e} ${o}:not(:last-child) { margin-bottom: ${n} }`,`:is(${t}) + :is(${t}) { margin-top: ${n} }`]}var Y_=e=>e.replace(/[A-Z]/g,t=>`-${t.toLowerCase()}`);function uL(e,t){if(!e)return null;let n=Zt(t),o=e.rules.get(n);if(o)return o;if(n.length<X_||e.drawn.has(n))return null;let a=null;for(let[s,r]of e.rules)if(s.includes(n)){if(a&&a.stamp!==r.stamp)return null;a=r}return a}var X_=8;var Or=e=>e==="sentence"?"none":void 0,sp=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],en=["desktop","tablet","phone"],xt=(e,t)=>$(e,t);function Ir(e,t,n,o=Ut()){return ap("textSize",t,e.sizeTablet,e.sizePhone,o)[n]}var Z_=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function Pr(e){for(let[t,n,o]of Z_)for(let a of en)if(e===xt(t,a))return{key:$(n,a),view:a,spacing:o};return{key:e,view:"desktop",spacing:null}}function Ne(e){let t={};for(let n of sp)e[n]!==void 0&&(t[n]=e[n]);return t}function Ar(e,t){let{auto:n,...o}=e,a=new Set(t??[]),s=sp.filter(r=>a.has(r)&&e.values[r]===void 0);return s.length?{...o,auto:s}:o}function rp(e){let t=e.fonts,n=e.sizes,o=e.typography,a=cu(e.compression),s={"heading-1":{font:W(t.heading),size:O(n.headingLarge),weight:O(o.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Or(o.case),largestSize:O(o.maxPx)},"heading-2":{font:W(t.heading2),size:O(n.headingMedium),weight:O(o.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Or(o.case2)},"heading-3":{font:W(t.heading3),size:O(n.headingSmall),weight:O(o.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Or(o.case3)},"body-1":{font:W(t.body),size:O(n.body)},"body-5":{font:W(t.label),size:O(n.label)}};return op().map(({id:r,kind:i,name:l})=>({id:r,kind:i,name:l,values:Ne(s[r]??{})}))}function Rr(e){return Array.isArray(e)&&e.every(t=>t&&typeof t=="object"&&typeof t.id=="string"&&(t.kind==="heading"||t.kind==="body")&&typeof t.name=="string")?e.map(t=>Ar({...t,values:Ne(t.values??{})},Array.isArray(t.auto)?t.auto:void 0)):null}function xL(e){return Rr(e)??[]}function ip(e){return Rr(e)??op().map(({id:t,kind:n,name:o})=>({id:t,kind:n,name:o,values:{}}))}function nn(e,t){let n=rp(t),o=Rr(e);return o?o.map(a=>{let s={...kr(n,a.id)};for(let r of a.auto??[])delete s[r];return{...a,values:Ne({...s,...a.values})}}):n}var kr=(e,t)=>e.find(n=>n.id===t)?.values??{},np=["heading-1","heading-2","heading-3"];function lp({saved:e,old:t,cur:n,next:o,sizeOf:a,panelView:s="desktop"}){let r=rp(t),i=ip(e),l=nn(i,t),u=[],d=o.map(f=>{let m=n.find(w=>w.id===f.id),b=i.find(w=>w.id===f.id);if(!m||!b){let w=J_([f],a,s)[0],R=w.values.color;return R===void 0?w:{...w,values:{...w.values,color:$e(R)}}}let y={...b.values},_=new Set(b.auto??[]),S=f.values,E=m.values,x=[...new Set([...Object.keys(S),...Object.keys(E)])].filter(w=>JSON.stringify(S[w])!==JSON.stringify(E[w])),v=w=>Pr(w).spacing==="letter";x.sort((w,R)=>Number(v(w))-Number(v(R)));for(let w of x){let{key:R,view:C,spacing:D}=Pr(w),z=R,Ee=S[w];if(Ee===void 0){delete y[z],kr(r,f.id)[z]!==void 0&&(u.push([f.id,z]),_.add(z));continue}if(_.delete(z),D==="line")y[z]=tn(Ee/100,3);else if(D==="letter"){let uo={...l.find(X=>X.id===f.id)?.values??{}};for(let X of x)S[X]===void 0&&delete uo[Pr(X).key];let po=Ne({...uo,...y}),fo=Ir(po,a({...f,values:po}),C);y[z]=fo?tn(Ee/fo,4):0}else y[z]=Ee}return Ar({id:f.id,kind:f.kind,name:f.name,values:Ne(y)},_)}),p=t.compression;if(u.some(([f,m])=>(m==="lineHeight"||m==="letterSpacing")&&np.includes(f))&&ht(p)!=="normal"){for(let f of np){let m=d.find(y=>y.id===f);if(!m)continue;let b={...m.values};for(let y of["lineHeight","letterSpacing"])u.some(([_,S])=>_===f&&S===y)||b[y]===void 0&&!(m.auto??[]).includes(y)&&(b[y]=kr(r,f)[y]);m.values=Ne(b)}p="normal"}return{saved:d,old:{...t,compression:p}}}function cp(e,t){let n={text_styles:e.saved};return e.old.compression!==t.compression&&(n.heading_compression=ht(e.old.compression)),n}var tn=(e,t)=>Number(e.toFixed(t)),up=(e,t)=>en.indexOf(e)<en.indexOf(t)?t:e;function dp(e,t,n="desktop"){return e.map(o=>{let a={...o.values},s=t(o);for(let r of en){let i=$("lineHeight",r),l=o.values[i],u=o.values[$("letterSpacing",r)];delete a[i],l!==void 0&&(a[xt("lineSpacing",r)]=tn(l*100,1));let d=up(r,n);u!==void 0&&(a[xt("letterSpacing",r)]=tn(u*Ir(o.values,s,d),d===r?2:4))}return{id:o.id,kind:o.kind,name:o.name,values:a}})}function J_(e,t,n="desktop"){return e.map(o=>{let a=o.values,s={...a};for(let u of en)delete s[xt("lineSpacing",u)],delete s[xt("letterSpacing",u)];let r={id:o.id,kind:o.kind,name:o.name,values:Ne(s)},i={...r.values},l=t({...r,values:{...r.values}});for(let u of en){let d=a[xt("lineSpacing",u)],p=a[xt("letterSpacing",u)];if(typeof d=="number"&&(i[$("lineHeight",u)]=tn(d/100,3)),typeof p=="number"){let f=Ir(r.values,l,up(u,n));i[$("letterSpacing",u)]=f?tn(p/f,4):0}}return{...r,values:Ne(i)}})}function vL(e,t=be){let n={fonts:_n({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},t),sizes:$s({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:ht(e.heading_compression),typography:du(e)},o=e.text_styles??null,a=Array.isArray(o)?Nr(nn(o,n),n):n;return{fonts:_n(a.fonts,t),sizes:$s(a.sizes),compression:ht(a.compression),typography:a.typography,textStyles:o}}function Nr(e,t){let n=f=>e.find(m=>m.id===f)?.values??{},o=n("heading-1"),a=n("heading-2"),s=n("heading-3"),r=n("body-1"),i=n("body-5"),l=t.fonts,u=t.sizes,d=t.typography,p=f=>f==="none"?"sentence":"authored";return{fonts:{...l,heading:o.font??l.heading,heading2:a.font??o.font??l.heading2,heading3:s.font??o.font??l.heading3,body:r.font??l.body,label:i.font??l.label},sizes:{...u,headingLarge:o.size??null,headingMedium:a.size??null,headingSmall:s.size??null,body:r.size??null,label:i.size??null},compression:t.compression,typography:{...d,case:p(o.letterCase),weight:o.weight??null,maxPx:o.largestSize??null,weight2:a.weight??null,weight3:s.weight??null,case2:p(a.letterCase),case3:p(s.letterCase)}}}function wL(e,t=be){let n=[];for(let o of e){let a=o.values,s=`.${ku(o)}`,r=`[${jo}="${o.id}"]`,i=`${s}, ${r}`,l=[],u=a.font!==void 0?t.byKey.get(a.font)?.cssVar:void 0;if(u&&l.push(`font-family: var(${u})`),a.size!==void 0){let m=a.largestSize!==void 0?Math.min(a.size,a.largestSize):a.size;l.push(`font-size: ${m}px`)}let d=Po(a.color);d&&l.push(`color: ${d}`),a.italic===!0&&l.push("font-style: italic"),a.weight!==void 0&&l.push(`font-weight: ${a.weight}`);let p=[];a.lineHeight!==void 0&&p.push(`line-height: ${a.lineHeight}`),a.letterSpacing!==void 0&&p.push(`letter-spacing: ${a.letterSpacing}em`),o.kind==="body"&&l.push(...p);let f=q_(a.letterCase);f&&o.kind==="body"&&l.push(`text-transform: ${f}`),a.paragraphSpacing&&l.push(`--sf-part-para: ${a.paragraphSpacing}px`),l.length&&n.push(`${i} { ${l.join("; ")} }`),o.kind==="heading"&&p.length&&n.push(`${i}, ${s}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${p.join("; ")} }`),o.kind==="heading"&&f&&n.push(`${r}, ${s}:is(h1, h2, h3, h4) { text-transform: ${f} }`),a.paragraphSpacing&&(n.push(`*:has(> ${r}) { --sf-part-para: ${a.paragraphSpacing}px }`),n.push(...Zo(`:is(${i})`,`*:has(> ${r})`))),n.push(...Q_(o,i,s,r))}return n.join(`
|
|
5
|
-
`)}function Q_(e,t,n,o){let a=e.values,s=Me("textSize",a.size,a.sizeTablet,a.sizePhone),r=Me("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),i=Me("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),l=Me("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),u=Me("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),d=ap("textSize",a.size,a.sizeTablet,a.sizePhone,Ut()),p=eT[e.id],f=[];for(let[m,b]of[["tablet",Mo],["phone",Ho]]){let y=[],_=[],S=d[m],E=r[m],x=s[m]===void 0&&E===void 0||S===void 0?void 0:E===void 0?S:Math.min(S,E);x!==void 0&&_.push(`font-size: ${x}px`);let v=[];i[m]!==void 0&&v.push(`line-height: ${i[m]}`),l[m]!==void 0&&v.push(`letter-spacing: ${l[m]}em`),e.kind==="body"&&_.push(...v),u[m]!==void 0&&_.push(`--sf-part-para: ${u[m]}px`),_.length&&y.push(`${t} { ${_.join("; ")} }`),e.kind==="heading"&&v.length&&y.push(`${t}, ${n}:is(h1, h2, h3, h4), ${o}:is(h1, h2, h3, h4) { ${v.join("; ")} }`),u[m]!==void 0&&y.push(`*:has(> ${o}) { --sf-part-para: ${u[m]}px }`),u[m]!==void 0&&!a.paragraphSpacing&&y.push(...Zo(`:is(${t})`,`*:has(> ${o})`)),x!==void 0&&p&&y.push(`.sf-themed-content { --size-${p}: ${x}px !important }`),y.length&&f.push(`@media ${b} { ${y.join(" ")} }`)}return f}var eT=Object.fromEntries(Object.entries(Iu).map(([e,{step:t}])=>[e,t]));function CL(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function OL(e){return e?Vo[e]:void 0}function tT(e){let t=vr(e);return Ne({font:e.font,color:e.color===void 0?void 0:$e(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:t.lineHeight,letterSpacing:t.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function PL(e){return Object.keys(tT(e)).length>0}function kL({saved:e,old:t,styleId:n,values:o}){let a=ip(e);return{saved:nT(a,n,o),old:t}}function nT(e,t,n){return e.map(o=>o.id===t?Ar({...o,values:Ne({...o.values,...n})},o.auto):o)}import{jsx as oT}from"react/jsx-runtime";import{useMemo as aT,useState as sT}from"react";import{TextStylesList as rT}from"efficient-easel/text-styles";import{usePreviewDevice as iT}from"efficient-easel/draw/client";var pp=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],lT=["size","lineSpacing","letterSpacing","letterCase"],cT=500;function Jo(e=be){return Cc(e).map(t=>({value:t.key,label:t.label,family:`var(${t.cssVar})`,italic:t.italicLoaded}))}var HL=Jo();function fp({saved:e,old:t,colours:n,colourNameOf:o,sizeOf:a,onChange:s,openId:r,onOpenChange:i,readOnly:l=!1,withoutSize:u=!1,onPick:d}){let p=iT(),f=On(),m=aT(()=>Jo(f),[f]),[b,y]=sT(null),_=nn(e,t),S=vo(p),E=dp(_,a,S);return oT(rT,{styles:E,onChange:x=>s(lp({saved:e,old:t,cur:E,next:x,sizeOf:a,panelView:S})),fonts:m,colours:n,colourNameOf:o,settings:u?pp.filter(x=>x!=="size"):pp,auto:lT,openId:r===void 0?b:r,onOpenChange:i??y,readOnly:l,device:S,onPick:d?x=>{let v=_.find(w=>w.id===x.id);v&&d(v)}:void 0,fallback:x=>{let v=_.find(R=>R.id===(x.kind==="heading"?"heading-1":"body-1")),w={};return v?.values.font&&x.id!==v.id&&(w.font=v.values.font),x.kind==="heading"&&(w.weight=cT),w}})}var mp="background";function hp(e){let t=ce(Wt(e));return Vu({main:t.accent,text:t.text,background:t.background,muted:t.muted}).map(n=>({key:n.name,name:n.label??n.name,value:n.value}))}function gp(e){return hp(e).filter(t=>t.key!==mp)}function bp(e){let t=hp(e).filter(n=>n.key===mp);return n=>{let o=$e(n);return t.find(a=>a.key===o)?.value??o}}import{useEasel as uT}from"efficient-easel/easel";function yp({themeFromDocument:e,persist:t}){let{appState:n,dispatch:o}=uT(C=>C),{fonts:a,setFonts:s,sizes:r,setSizes:i,headingCompression:l,setHeadingCompression:u,headingTypography:d,setHeadingTypography:p,textStyles:f,setTextStyles:m}=B(),b=n.data,y=b.root?.props??{},_=e?_n(y.fonts):a,S=e?ou:r,E=e?ht(y.headingCompression):l,x=e?uu(y.headingTypography):d,v={fonts:_,sizes:S,compression:E,typography:x},w=e?y.textStyles:f,R=C=>o({type:"replaceRoot",root:{...b.root,props:{...y,...C}},recordHistory:!0});return{fonts:_,sizes:S,compression:E,typography:x,old:v,saved:w,write:(C,D)=>{let z=Nr(nn(C.saved,C.old),C.old);e?R({textStyles:C.saved,fonts:z.fonts,headingCompression:z.compression,headingTypography:z.typography}):(m(C.saved),s(z.fonts),i(z.sizes),u(z.compression),p(z.typography)),t(cp(C,v),D)},writeRoot:R}}import{jsx as L,Fragment as Sn,jsxs as $t}from"react/jsx-runtime";import{useEasel as jb,useRootFields as cR}from"efficient-easel/easel";import{Inspector as uR}from"efficient-easel/fields";import{SettingsGroup as dR}from"efficient-easel/panel";import{useEffect as pR,useRef as fR,useState as hc}from"react";import{jsx as vt,Fragment as mT,jsxs as hT}from"react/jsx-runtime";import{useState as Ep}from"react";import{SettingsDefaultReset as gT,SettingsField as bT}from"efficient-easel/panel";import{useEaselStrings as yT}from"efficient-easel/strings";import{AddIcon as ST}from"efficient-easel/icons";import{Button as _T}from"efficient-shell/ui";import{iconOf as TT,noGlyph as ET}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Qo,Fragment as dT,jsxs as Sp}from"react/jsx-runtime";import{Button as _p,Dialog as pT}from"efficient-shell/ui";function fT(e){return xn("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 Tp({count:e,onCancel:t,onConfirm:n}){return Sp(pT,{open:!0,onClose:t,role:"alertdialog",size:"sm",title:c("Clear this site\u2019s colors?"),footer:Sp(dT,{children:[Qo(_p,{variant:"secondary",onClick:t,children:c("Cancel")}),Qo(_p,{variant:"danger",onClick:n,children:c("Clear colors")})]}),children:[Qo("p",{children:fT(e)}),Qo("p",{className:"mt-2 font-medium",children:c("This cannot be undone.")})]})}var xT=ET("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"),vT="Reset color",wT={selected:0,themes:[]};function CT(e){e(wT)}function xp({value:e,onChange:t}){let n=e?.themes??[],o=n.length===0,a=ke(e),[s,r]=Ep(!1),i=yT(),[l,u]=Ep(null),d=(S,E)=>{t({...a,themes:a.themes.map((x,v)=>v===S?E:x)})},p=Wt(a).accent,f=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),m=Zc.filter(S=>!f.has(S)).map(S=>Jc(p,S)),b=[...a.themes,...m],y=S=>{if(S<a.themes.length)return t({...a,selected:S});let E=[...a.themes,b[S]];t({...a,themes:E,selected:E.length-1})},_=()=>{let S=[...a.themes,{...ce(a.themes[a.selected])}];t({...a,themes:S,selected:S.length-1}),u(S.length-1)};return hT(mT,{children:[o?null:vt(bT,{label:c(vT),icon:TT(xT),labelId:"sf-theme-reset",action:vt(gT,{label:c("all theme colors"),words:i.panel,changed:!0,onReset:()=>r(!0)})}),s&&vt(Tp,{count:n.length,onCancel:()=>r(!1),onConfirm:()=>{r(!1),CT(t)}}),vt("div",{className:"sf-theme-list",role:"radiogroup","aria-label":c("Theme"),children:b.map((S,E)=>vt(No,{index:E,colors:S,selected:E===a.selected,open:l===E&&E<a.themes.length,editable:E<a.themes.length,onPick:()=>y(E),onEdit:()=>u(x=>x===E?null:E),onChangeColors:x=>d(E,x)},E))}),vt(_T,{variant:"secondary",leftIcon:vt(ST,{}),onClick:_,className:"sf-theme-add",children:c("Add new theme")})]})}import{jsx as ls}from"react/jsx-runtime";import{SettingsDefaultReset as vI,SettingsField as wI}from"efficient-easel/panel";import{SquareIcon as CI}from"efficient-easel/icons";import{jsx as g,jsxs as Ke,Fragment as Ve}from"react/jsx-runtime";import{parseOption as wp}from"efficient-shell/format";var Lr=["image","video"],Cp={image:"imageFocal",image2:"imageFocal2"},OT={HeroSingle:"image",HeroSlide:"video"};function fD(e,t){return wp(Lr,OT[e],t)}var Op=["one","side","stacked"],PT="one",mD={one:"One",side:"Side by side",stacked:"Stacked"};function Pp(e){return wp(Op,PT,e)}function vp(e){return e==="one"?1:2}function kT(e,t){if(Op.includes(e))return e;let n=Pp(t);return n==="side"?"stacked":n}function hD(e){let t=Pp(e.mediaLayout);return Math.max(vp(t),vp(kT(e.mediaLayoutPhone,t)))}import{cloneElement as Ll,createContext as zO,useContext as dg,useEffect as WO,useId as pg,useRef as no,useState as oo}from"react";import{useEasel as as,useSelectedHost as Lt}from"efficient-easel/easel";import{PIN_LENGTH as Za,toDateKey as vW,fromDateKey as wW,parseOption as KO}from"efficient-shell/format";function IT(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function re(e){return typeof e=="string"?e:IT(e)?e.src:""}function bD(e,t,n){return Dr(e,t.split("."),n)}function Dr(e,t,n){if(t.length===0)return n(e);let[o,...a]=t,s=o.endsWith("[]"),r=s?o.slice(0,-2):o;if(!e||typeof e!="object"||Array.isArray(e))return e;let i=e;if(!(r in i))return e;let l=i[r];if(s){if(!Array.isArray(l))return e;let d=!1,p=l.map(f=>{let m=Dr(f,a,n);return m!==f&&(d=!0),m});return d?{...i,[r]:p}:e}let u=Dr(l,a,n);return u===l?e:{...i,[r]:u}}import{parseOption as Ip}from"efficient-shell/format";var AT=["upload","youtube"],RT="upload",TD={upload:"Upload",youtube:"YouTube"},NT=["background","click","scroll"],LT="background",ED={background:"Background",click:"Click to play",scroll:"Follows the scroll"},DT=["none","bar","names"],xD={none:"None",bar:"Bar",names:"Names"};function vD(e,t,n){return n||t==="click"?"none":typeof e=="string"&&DT.includes(e)?e:t==="scroll"?"bar":"none"}function wD(e){return Ip(AT,RT,e)}function CD(e){return Ip(NT,LT,e)}var kp=/^[A-Za-z0-9_-]{11}$/,FT=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function OD(e){let t=typeof e=="string"?e.trim():"";if(!t)return null;if(kp.test(t))return t;let n;try{n=new URL(/^[a-z]+:\/\//i.test(t)?t:`https://${t}`)}catch{return null}if(n.protocol!=="https:"&&n.protocol!=="http:"||!FT.test(n.hostname))return null;let o=n.pathname.split("/").filter(Boolean),a=n.hostname.endsWith("youtu.be")?o[0]:o[0]==="watch"?n.searchParams.get("v"):o[0]==="embed"||o[0]==="shorts"||o[0]==="live"||o[0]==="v"?o[1]:null;return a&&kp.test(a)?a:null}function PD(e,t){let n=t==="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}?${n}`}function kD(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function ID(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var AD="Play video";var Fr={frame:"Video frame",image:"Image"},RD={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Nn(e){let t=e.loadingShows;return t==="image"?"image":t!=null&&t!==""?"frame":re(e.poster)?"image":"frame"}function ND(e,t="desktop"){let[n,o]=t==="phone"?[e.posterPhone,e.videoFramePhone]:[e.poster,e.videoFrame],[a,s]=Nn(e)==="image"?[n,o]:[o,n];return re(a)||re(s)||void 0}function Ap(e){if(re(e.mediaVideo)){if(Nn(e)==="frame")return re(e.videoFrame)?void 0:re(e.poster)?"frame-missing-image":"frame-missing-surface";if(!re(e.poster))return re(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var ea="videoFrames",Br="videoFramesNotOwn";function Rp(e,t,n){let o=re(e.mediaVideo);if(!o||!t||Nn(e)!=="frame"||re(e.videoFrame))return;let a=t[o],s=!!re(e.poster);if(a?.state==="ready")return null;if(s)return!a||a.state==="pending"?void 0:"image-no-frame";if(!a)return n?"save-makes-frame":void 0;switch(a.state){case"pending":return a.noted!=="save"&&n?"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 BT(e,t){let n=re(e),o=n&&t?t[n]:void 0;return o?.state==="ready"&&o.frame?o.frame:void 0}function LD(e,t,n){let o=n?.[Br];if(!(Array.isArray(o)&&o.includes(e)))return BT(t,n?.[ea])}import{useSyncExternalStore as MT}from"react";function Np(){let e=new Map,t=new Set,n=o=>(t.add(o),()=>{t.delete(o)});return{get:o=>e.get(o),has:o=>e.has(o),set(o,a){if(!(e.has(o)&&e.get(o)===a)){e.set(o,a);for(let s of t)s()}},use(o){let a=()=>o?e.get(o):void 0;return MT(n,a,a)}}}import{zoneKey as HT}from"efficient-easel/data";var ve="SiteHeader",Ge="SiteFooter",Mr="sections",HD=[ve,Ge],ta=e=>e===ve||e===Ge,$D=e=>HT({parentId:e,slot:Mr});function UD(e,t,n=[]){return{type:e,props:{id:t,[Mr]:n}}}var $T=new Set(["Footer",ve,Ge]);function na(e){let t=new Set,n=!1,o=e.filter(a=>{let s=a?.type??"";return s==="Header"?(n=!0,!1):$T.has(s)?t.has(s)?(n=!0,!1):(t.add(s),!0):!0});return n?o:e}function GD(e,t){return e.some(n=>n?.type===t.type)?e:t.type===ve?[t,...e]:[...e,t]}var Lp={[ve]:{max:3,takes:["Flex","Ticker"]},[Ge]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function zD(e,t,n){if(!ta(e))return!0;let o=Lp[e];return n<o.max&&o.takes.includes(t)}function WD(e,t){let n=t,o=n?.props?.id;if(o==null)return null;let a=e?.content;if(!Array.isArray(a))return null;for(let s of a){if(!ta(s?.type))continue;let r=s.props?.[Mr];if(!Array.isArray(r)||!r.some(l=>l?.props?.id===o))continue;let i=Lp[s.type];return i.takes.includes(n?.type??"")?r.length>=i.max?{group:s.type,why:"full"}:null:{group:s.type,why:"type"}}return null}import{locateNode as UT}from"efficient-easel/draw";function Hr(e){if(!e)return null;let t=e.lastIndexOf(":");return t>0?{ownerId:e.slice(0,t),slot:e.slice(t+1)}:null}function oa(e,t,n){let o=Hr(n?.zone),a=o?UT(e,t,o.ownerId):null;return a&&o?{...a,slot:o.slot}:null}import{isNode as gE}from"efficient-easel/data";import{convertLength as GT,rowGrid as zT}from"efficient-easel/screen/lib/content/length-units";var V={min:1e3,max:2e3,step:50,default:1600};function WT(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var Gr="--sf-site-width",Wr=`var(${Gr},${V.default}px)`,ZD="100vw",JD=`max-w-[${Wr}]`,QD=`max-w-[${V.default}px]`;function Fp(e){return typeof e!="number"||!Number.isFinite(e)?V.default:Math.round(Math.min(Math.max(e,V.min),V.max))}function eF(e,t){let n=En(e,t,"size",V);if(n!==null)return{[Gr]:n};let o=Fp(e);return o===V.default?{}:{[Gr]:`${o}px`}}var ie={min:0,max:80,step:4,default:40,typedMax:Number.POSITIVE_INFINITY},zr="--sf-site-gutter",Le={min:0,max:24,step:4,typedMax:Number.POSITIVE_INFINITY},KT=zT({kind:"spacing"},"vw",ie).max;function Bp(e,t){return e<=t?`${e}px`:`min(${e}px, ${KT}vw)`}var Dp="--sf-site-gutter-phone",jT="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",VT="max-view-wide:[&_[data-sf-line~=edge]:not([data-sf-line~=edge]_*)]:[--sf-site-gutter:var(--sf-site-gutter-phone)]",we=`var(${zr},${ie.default}px)`,YT=`px-[${we}]`;var nt={md:`min(24px,${we})`,sm:`min(20px,${we})`,frame:`min(24px,${we})`,tabs:`min(16px,${we})`},tF=[[`max-view-desktop:px-[${nt.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${nt.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${nt.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${nt.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${nt.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${nt.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${nt.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${nt.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${we}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${we})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${we})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${we})]`,"max-view-tablet:-mx-5"],[`-mx-[${we}]`,"-mx-10"],[YT,"px-10"]];var wt="sideSpaceOnce",nF="data-sf-side",XT="once";function oF(e){if(!(!e||typeof e!="object"))return e[wt]===!0?XT:void 0}var Mp="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function Kr(e){return Dn[e??"box"]}var aa="[[data-sf-side=once]_&]:max-view-wide:px-[var(--sf-site-gutter-phone,min(24px,var(--sf-site-gutter,40px)))]",Ln="[[data-sf-side=once]_&]:max-view-wide:px-[var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]",sa={"max-[960px]":aa,"max-[900px]":aa,"max-view-desktop":aa,"max-[1100px]":aa,"max-view-wide":Ln,"max-view-tablet":Ln,"max-[720px]":Ln,"max-[640px]":Ln,"max-[800px]":Ln},$r="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",Ur="[--sf-edge-g:var(--sf-pad-site)]",Dn={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:$r,edge:Ur,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]",once:"[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(24px,var(--sf-box-g,var(--sf-site-gutter,40px))))]",onceFrame:sa["max-[960px]"],onceGutter:"[[data-sf-side=once]_&]:max-[960px]:[--sf-box-g:min(24px,var(--sf-site-gutter,40px))] [[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,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:$r,edge:Ur,frame:Mp,once:"[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(20px,var(--sf-box-g,var(--sf-site-gutter,40px))))]",onceFrame:sa["max-view-wide"],onceGutter:"[[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]"},none:{className:"[--sf-pad-site:0px] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:$r,edge:Ur,frame:"view-wide:px-0 max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",once:"[[data-sf-side=once]_&]:max-view-wide:[--sf-pad-site:var(--sf-site-gutter-phone,min(20px,var(--sf-box-g,var(--sf-site-gutter,40px))))]",onceFrame:sa["max-view-wide"],onceGutter:"[[data-sf-side=once]_&]:max-view-wide:[--sf-box-g:var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]"}},aF=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${Mp}`,sF="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]",qT="[[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter-phone:0px]";function rF(e){return`${qT} ${Dn[e].onceGutter}`}var ZT="[[data-sf-side=once]_&]:[--sf-box-g:var(--sf-site-gutter,40px)] [[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter:0px] [[data-sf-side=once]_&]:[&>*]:[--sf-site-gutter-phone:0px]",JT="[[data-sf-side=once]_&]:max-view-wide:-mx-[var(--sf-site-gutter-phone,min(20px,var(--sf-site-gutter,40px)))]",QT=/^([^\s:]+):px-\[min\((?:20|24)px,var\(--sf-site-gutter,40px\)\)\]$/,eE="max-view-wide:-mx-[min(20px,var(--sf-site-gutter,40px))]";function tE(e){if(!e)return"";let t=[];for(let n of e.split(/\s+/)){let o=QT.exec(n)?.[1],a=o?j(sa,o):void 0;a?t.push(a):n===eE&&t.push(JT)}return t.join(" ")}var iF="[[data-sf-side=once]_&]:[--sf-pad-site:inherit]",lF="[[data-sf-side=once]_&]:[--sf-edge-g:var(--sf-box-g,var(--sf-site-gutter,40px))]";function nE(e){if(!e)return"";let t=e.split(" "),n=["none","site","box"].find(o=>Dn[o].className.split(" ").every(a=>t.includes(a)));return n?`${ZT} ${Dn[n].once} ${Dn[n].onceGutter}`:""}function cF(e,t){let n=t?[nE(e),tE(e)].filter(Boolean).join(" "):"";return n?`${e} ${n}`:e}var uF="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 Hp(e){return typeof e!="number"||!Number.isFinite(e)?ie.default:Math.round(Math.min(Math.max(e,ie.min),ie.typedMax))}function $p(e,t,n){let o=Fs(e,t,"spacing",n);return o===null?null:H(o,"vw")}function dF(e,t){let n=$p(e,t,ie);if(n!==null)return{[zr]:n};let o=Hp(e);return o===ie.default?{}:{[zr]:Bp(o,ie.max)}}function Up(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,Le.min),Le.typedMax))}function Gp(e){return typeof e=="number"&&Number.isFinite(e)?Fp(e):null}function pF(e,t){let n=$p(e,t,Le);if(n!==null)return{[Dp]:n};let o=Up(e);return o===null?{}:{[Dp]:Bp(o,Le.max)}}function fF(e){return Up(e)===null?"":`${jT} ${VT}`}function zp(e,t){let n=Fs(e,t,"spacing",ie),o=n===null?Hp(e):GT(n,F(t),"px","mobile",Le);return Math.min(Le.max,o)}var Wp=Wr,mF=`max-w-[${Wp}]`,hF=`max-w-[min(var(--sf-page-cap,${V.default}px),${V.default}px)]`,Kp="--sf-hero-cap",oE=`var(${Kp},none)`,gF=`max-w-[${oE}]`,aE="--sf-hero-bleed-m",sE="--sf-hero-bleed-w",rE="--sf-hero-chrome-x",iE="--sf-hero-chrome-cap";function bF(e){return e===!0?{[Kp]:Wp,[aE]:"auto",[sE]:"100%",[rE]:"24px",[iE]:"none"}:{}}var jr=`calc(${Wr} - ${we}*2)`,yF=`max-w-[${jr.replace(/ /g,"_")}]`;var lE="--sf-chrome-cap",cE=`var(${lE},${jr})`,SF="data-page-width";function _F(e){return e==="full"?"full":null}function TF(e){return e==="full"?null:WT(e==="content"?jr:cE)}function EF(e){if(e==="full")return"full";if(e==="content")return"content"}var wF="data-sf-site-css",uE="site",Fn="siteCustomCss";function dE(e){return e&&typeof e=="object"?gu(e,Fn):""}function CF(e){return dE(e)?uE:void 0}var pE=["tall","square","wide"],fE="tall";function kF(e){return pE.includes(String(e??""))?String(e):fE}var IF={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"},AF=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
6
|
-
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
|
|
7
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],mE=/^https?:\/\//i;function RF(e){let t=(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:Rs(e.lat),lng:Rs(e.lng),mapsUrl:mE.test(t)?t:""}}function jp(e){let t=String(e??"").split(" \xB7 ");return{state:(t[0]??"").trim(),country:(t[1]??"").trim()}}var NF="other",LF={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"}]};var ot="siteOffices",on=e=>typeof e=="string"?e:"",Vp=e=>O(e)??0;function hE(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t=e;return{role:on(t.role),city:on(t.city),country:on(t.country),address:on(t.address),phone:on(t.phone),group:on(t.group),hq:t.hq===!0,lat:Vp(t.lat),lng:Vp(t.lng)}}function HF(e){let t=e&&typeof e=="object"?e[ot]:void 0;return Array.isArray(t)?t.map(hE).filter(n=>n!==null):[]}function $F(e){let{state:t,country:n}=e.country.includes(" \xB7 ")?jp(e.country):{state:"",country:e.country.trim()};return{photo:"",group:e.group??"",groupName:"",name:e.city,state:t,country:n,timezone:"",address:e.address??"",phone:e.phone??"",hours:"",lat:e.lat,lng:e.lng,mapsUrl:""}}var Yp={key:yc,label:"Site offices",blocks:["Footprint","ContactLocations"]};var Yr="Footer",Xp=[ve,Yr,Ge],Bn=[wt,ot,Fn],bE=[Ge,Yr],Xr=e=>bE.includes(e?.type??"");function yE(e){let t=e?.props;if(!t||!Bn.some(o=>o in t))return e;let n={};for(let[o,a]of Object.entries(t))Bn.includes(o)||(n[o]=a);return{...e,props:n}}function SE(e,t){let n=Bn.filter(a=>t&&a in t);if(!n.length)return e;let o={...e.props??{}};for(let a of n)o[a]=t[a];return{...e,props:o}}function YF(e){return Array.isArray(e)?e.find(t=>Xr(t))?.props??null:null}function _E(e,t){if(!t)return e;let n=Bn.filter(a=>a in t&&(!e||JSON.stringify(e[a])!==JSON.stringify(t[a])));if(!n.length)return e;let o={...e??{}};for(let a of n)o[a]=t[a];return o}var at=e=>{let t=e?.content;return Array.isArray(t)?t:[]},st=e=>{let t=e?.zones;return t&&typeof t=="object"&&!Array.isArray(t)?t:null},an=e=>{let t=e?.props?.id;return typeof t=="string"?t:void 0},qp=e=>Hr(e)?.ownerId??"";function Zp(e){let t=na(at(e)),n=t.some(o=>o?.type===Ge);return t.filter(o=>o?.type===ve||o?.type===Ge||o?.type===Yr&&!n)}function ra(e,t){let n=new Set,o=a=>{if(Array.isArray(a)){for(let s of a)o(s);return}if(!(!a||typeof a!="object")){if(gE(a)){let s=an(a);s&&n.add(s)}for(let s of Object.values(a))o(s)}};if(o(e),t){let a=!0,s=new Set;for(;a;){a=!1;for(let[r,i]of Object.entries(t))s.has(r)||!n.has(qp(r))||(s.add(r),o(i),a=!0)}}return n}function Jp(e,t){let n=at(e).filter(o=>{let a=an(o);return typeof o?.type=="string"&&Xp.includes(o.type)||a!==void 0&&t(a)});return n.length?ra(n,st(e)):new Set}function Vr(e,t){let n={},o={};for(let[a,s]of Object.entries(e??{}))(t.has(qp(a))?n:o)[a]=s;return{owned:n,rest:o}}function Qp(e){let t=e?.root,n=t&&typeof t=="object"?t.props:void 0;return n&&typeof n=="object"&&!Array.isArray(n)?n:null}function XF(e,t){if(!t)return e;let n=Zp(t);if(!n.length)return e;let o=n.filter(l=>l.type===ve),a=Qp(t),s=n.filter(l=>l.type!==ve).map(l=>Xr(l)?SE(l,a):l),r={...e,content:[...o,...at(e),...s]},{owned:i}=Vr(st(t),ra(n,st(t)));return Object.keys(i).length&&(r.zones={...st(e)??{},...i}),r}function qF(e,t){if(!t)return{page:e,chrome:null};let n=Zp(t),o=new Set(n.map(an).filter(v=>!!v)),a=[],s=[],r=null;for(let v of at(e)){let w=an(v),R=w&&o.has(w)||ta(v?.type);if(R&&Xr(v)&&!r){r={};for(let D of Bn)v.props&&D in v.props&&(r[D]=v.props[D])}let C=yE(v);R?s.push(C):a.push(C)}let i=new Map(s.map(v=>[an(v),v])),l=new Set,u=na(at(t)).flatMap(v=>{let w=an(v);if(!w||!o.has(w))return[v];let R=i.get(w);return R?(l.add(R),[R]):[]});for(let v of s)l.has(v)||u.some(w=>w?.type===v.type)||(u=v.type===ve?[v,...u]:[...u,v]);u=na(u);let d=u.length===at(t).length&&u.every((v,w)=>v===at(t)[w]||JSON.stringify(v)===JSON.stringify(at(t)[w])),p=st(e),f=ra(u,p),{owned:m,rest:b}=Vr(p,f),y=Vr(st(t),ra(n,st(t))).owned,_={...t,content:d?t.content:[...u]},S=TE(t,r);S!==t.root&&(_.root=S);let E=st(t);if(E||Object.keys(m).length){let v={};for(let[w,R]of Object.entries(E??{}))w in y?w in m&&(v[w]=m[w]):v[w]=R;for(let[w,R]of Object.entries(m))w in v||(v[w]=R);_.zones=v,E&&EE(_.zones,E)&&(_.zones=E)}let x={...e,content:a};return p&&(Object.keys(b).length||!Object.keys(y).length?x.zones=b:delete x.zones),{page:x,chrome:_}}function TE(e,t){let n=Qp(e),o=_E(n,t);return o===n?e.root:{...e.root&&typeof e.root=="object"?e.root:{},props:o}}function EE(e,t){let n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&n.every((a,s)=>a===o[s]&&e[a]===t[a])}function ZF(e,t){return n=>e(n)||n!==void 0&&Xp.includes(n)&&t()}var ef=null;function QF(e){ef=e}function tf(){return ef}var nf=null;function eB(e){nf=e}function tB(){return nf}var qr=Np();function of(e,t,n){if(!t)return;let o={...qr.get(e)};for(let[a,s]of Object.entries(t))o[a]={...s,noted:n};qr.set(e,o)}function iB(e,t){of(e,t,"load")}function lB(e,t){of(e,t,"save")}function af(e){return qr.use(e)}var Zr=e=>!!tf()?.sectionOf(e);function sf(e,t=Zr){return Jp(e,t)}function rf(e,t,n,o=Zr){if(n)return e&&sf(t,o).has(e)?void 0:n}function cB(e,t,n=Zr){if(!e)return{};let o=[...sf(t,n)];return o.length?{[ea]:e,[Br]:o}:{[ea]:e}}import{ScreenDocumentContext as jO}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as VO,hidableText as YO}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as fg,LINK_FIELD_MARKER as XO,MEDIA_FIELD_MARKER as qO,SCAFFOLD_FIELD_MARKER as ZO,TEXT_FIELD_MARKER as je,foldMetaOf as mg,textFieldIdentifier as NW}from"efficient-easel/draw";import{jsx as mf}from"react/jsx-runtime";import{useCallback as OE}from"react";import{useEasel as PE}from"efficient-easel/easel";import{SettingsAction as kE}from"efficient-easel/panel";import{isLengthUnit as wE}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as ia,hasCornerSubset as Mn,normalizeCornerSides as De}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as xE}from"efficient-easel/screen/lib/content/length-units";var Jr={kind:"radius",unitKey:"sectionCornersUnit"};function Qr(e){return typeof e=="number"&&Number.isFinite(e)}function mB(e,t,n){if(!Qr(e))return;let o=xE(n)&&n!=="px"?Vt(e,n):Vt(Ie(e));if(Object.keys(o).length===0)return;let a=o[ei];if(typeof a!="string")return o;let s=Mn(t)?Ct(a,De(t)??[]):a;return{...o,[vE]:s}}var vE="--sf-section-radius",ei="--sf-card-radius";function Ct(e,t){return ia.map(n=>t.includes(n)?e:"0").join(" ")}var lf=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Hn={kind:"radius",unitKey:"cardCornersUnit"},CE="--sf-card-box-radius";function ti(e){return typeof e=="number"&&Number.isFinite(e)}function SB(e,t,n){if(!ti(e))return;let o=(wE(n)&&n!=="px"?Vt(e,n):Vt(Ie(e)))[ei];if(typeof o!="string")return;let a=Mn(t)?Ct(o,De(t)??[]):o;return{[CE]:a}}function cf(e,t){let n=e.find(r=>r?.props?.id===t);if(!n)return[...e];let o=n.props?.cardCorners,a=n.props?.cardCornerSides,s=n.props?.[Hn.unitKey];return e.map(r=>r?.props?.id===t?r:{...r,props:{...r.props,cardCorners:o,cardCornerSides:a,[Hn.unitKey]:s}})}function uf(e,t,n){let o=oa(e,t,n),a=o?.slot??"",s=o&&Array.isArray(o.item.props[a])?o.item.props[a]:[],r=n?.index??-1,i=r>=0?s[r]:void 0,l=i?.props?.id?String(i.props.id):"",u=Math.max(s.length-1,0);return!o||!l?{can:!1,reason:"unreachable",others:0}:s.length<=1?{can:!1,reason:"alone",others:u}:ti(i?.props?.cardCorners)?{can:!0,others:u,zone:o.zone,index:o.index,data:{...o.item,props:{...o.item.props,[a]:cf(s,l)}}}:{can:!1,reason:"unset",others:u}}function df(e){return e.can?xn("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?c("This is the only card in the section."):e.reason==="unset"?c("Set this card's corners first."):c("This card is not in a section that can share corners.")}function pf(e){return xn("Applied to {n} card","Applied to {n} cards",e)}function ff(e,t){e.can&&t(e.zone,e.index,e.data)}import{useSectionOps as IE}from"efficient-easel/screen/lib/document/use-section-ops";var AE="apply-corners-to-siblings",RE="Apply to all cards";function NE({plan:e,onPress:t}){return mf(kE,{id:AE,label:c(RE),note:df(e),disabled:!e.can,doneLabel:pf(e.others),onPress:t})}function hf(){let{appState:e,config:t}=PE(s=>s),n=IE(),o=uf(t,e.data.content??[],e.ui.itemSelector),a=OE(()=>{ff(o,n.replaceComponent)},[o,n]);return mf(NE,{plan:o,onPress:a})}import{isShown as vf,lazyShowWhenContext as YE}from"efficient-shell/format";var rt="product",la="recordType",gf={key:rt,label:"Product",fields:[]},LE=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,DE=/^[a-z][A-Za-z0-9]*$/,FE=["text","date","images"],ni=new Map,bf=0;function BE(e){if(typeof e.key!="string"||!LE.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===rt)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 t=new Set;for(let n of e.fields){if(typeof n.key!="string"||!DE.test(n.key)||t.has(n.key))throw new Error(`The record type ${e.key} has a field key it cannot use: ${JSON.stringify(n.key)}.`);if(!FE.includes(n.kind))throw new Error(`The field ${n.key} of ${e.key} has no kind ${JSON.stringify(n.kind)}.`);t.add(n.key)}return{key:e.key,label:e.label.trim(),fields:e.fields.map(n=>({...n}))}}function NB(e){let t=e.map(BE);for(let n of t)ni.set(n.key,n);t.length&&(bf+=1)}function oi(){return[gf,...ni.values()]}function ME(e){return e===rt?gf:ni.get(e)??null}function ai(){return bf}function $n(e){let t=e?.[la];return typeof t!="string"?rt:t.trim()||rt}function si(e){return $n(e)===rt}function LB(e,t){let n=ME(e)?.fields??[];return t?n.filter(o=>t.includes(o.kind)):n}var ca="product",yf="tyre",HE=[ca,yf];function BB(e){return HE.includes(e)}var $E="productType",UE={[ca]:"alloy-wheel",[yf]:"tyre"},GE=["alloy-wheel","tyre"];function Sf(e,t){return si(t)?_f(t)??UE[e]??null:null}function _f(e){if(!si(e))return null;let t=e?.[$E];return typeof t=="string"&&GE.includes(t)?t:null}function MB(e){let t=e?.root;return _f(t?.props)}var zE="Main Pages",WE="Dynamic Pages",KE="dynamic",jE="dynamic";function ri(e){return e.kind===jE}var ii="lightbox";function $B(e){return e.kind===ii}function UB(e){let t=[],n=[];for(let o of e){if(ri(o)){n.push(o);continue}let a=o.groupKey??(o.group?`folder:${o.group}`:"top"),s=t[t.length-1];s&&s.key===a?s.rows.push(o):t.push({key:a,label:o.group??zE,rows:[o]})}if(n.length){let o=t.findIndex(a=>a.key.startsWith("system:"));t.splice(o===-1?t.length:o,0,{key:KE,label:WE,rows:n})}return t}var ua=null,Tf=null;function VE(e,t){ua=e,Tf=t}function jB(e){VE(e,null)}function VB(){return ua}function Un(){return ri({kind:Tf})||ua===ca}function YB(e){return Sf(ua??"",e)??"alloy-wheel"}function Ef(e){return Un()?$n(e):null}function rM(e,t,n){let o=!1,a={};for(let[s,r]of Object.entries(e)){if(!vf(As(r),t??{},n)){o=!0;continue}let i=XE(r,t?.[s],t??{},n);i!==r&&(o=!0),a[s]=i}return o?a:e}function XE(e,t,n,o){let a=e?.options;if(!Array.isArray(a))return e;let s=a.filter(r=>r?.value===t||!r?.showWhen||vf(r.showWhen,n,o));return s.length===a.length?e:{...e,options:s}}function iM(e,t,n,o){let a=oa(t,n,o);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function xf(e,t){if(!e||typeof e!="object")return!1;let n=e;if(typeof n.context=="string"&&(n.context===t||n.context.startsWith(`${t}.`)))return!0;if("not"in n)return xf(n.not,t);for(let o of[n.all,n.any])if(Array.isArray(o)&&o.some(a=>xf(a,t)))return!0;return!1}function lM(e,t={}){return YE({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Un(),root:()=>e.appState?.data?.root?.props,...t})}import{isLengthUnit as qE}from"efficient-easel/screen/lib/content/length-units";var wf=1,ZE="cardImageUnit",li={kind:"radius",unitKey:ZE},Cf={kind:"radius"};function JE(e){return Ie(e)}function mM(e,t){if(qE(t)&&t!=="px"){let o=O(e);return o!==void 0&&o>=0?{"--sf-card-image-radius":H(o,t)}:{}}let n=JE(e);return n===null?{}:{"--sf-card-image-radius":`${n}px`}}import{isLengthUnit as QE}from"efficient-easel/screen/lib/content/length-units";var Of={kind:"radius",unitKey:"cornersUnit"},Pf=1,kf="Corners";function ex(e){return Ie(e)}function TM(e,t,n){let o=QE(n)&&n!=="px"?O(e):void 0,a=o===void 0?ex(e):null;if(o===void 0&&a===null)return null;let s=o!==void 0?H(Math.max(0,o),n):`${a}px`;return{borderRadius:Mn(t)?Ct(s,De(t)??[]):s}}import{phoneKey as Ff}from"efficient-easel/screen/lib/content/view-tiers";var If=12,sn=6,tx=Tn,da={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"},mosaic:{label:"Mosaic",across:4,acrossPhone:2,desktop:[[6,2],[3,1],[3,1],[6,1],[6,1],[3,1],[3,1],[6,2],[6,1],[6,1]],tail:{1:{1:[12,2]},2:{2:[6,2]},3:{2:[6,1],3:[6,1]},5:{5:[12,1]},6:{6:[6,1]},8:{8:[12,2]},9:{9:[6,2]}},phone:[[6,2],[3,1],[3,1],[6,1],[3,1],[3,1],[6,2],[3,1],[3,1],[6,1]],tailPhone:{2:{2:[6,1]},5:{5:[6,1]},8:{8:[6,1]}}}},Af=["phone","acrossPhone","leadPhone","tailPhone"];var nx=new Set(Af),Gn=Object.fromEntries(Object.entries(da).map(([e,t])=>[e,Object.fromEntries(Object.entries(t).filter(([n])=>!nx.has(n)))])),ui=Object.keys(da),Rf=[2,3,4,6];function di(e,t){return ui.filter(n=>n===t||e===null||Gn[n].across===e)}function Nf(e){let t=e.layout;return typeof t=="string"&&ge(da,t)?t:null}function pi(e){let t=Nf(e);return t?ox(t,e.layoutPhone):null}var pa={oneAcross:{label:"One across",phone:[[sn,2]],acrossPhone:1}};function Lf(e){return typeof e=="string"&&ge(pa,e)?e:null}function ci(e,t){return t?sn/e.acrossPhone:If/e.across}function CM(e,t,n,o){let a=(t?e.leadPhone:e.lead)??[],s=t?e.phone:e.desktop;if(n<a.length)return a[n];let r=Number.isFinite(o)?(o-a.length)%s.length:0;if(r>0&&n>=o-r){let i=t?e.tailPhone:e.tail;if(!i)return[ci(e,t),1];let l=i[r]?.[n-(o-r)+1];if(l)return l}return s[(n-a.length)%s.length]}function fi(e){return e.ratio?_u.find(t=>t.shape===e.ratio)?.ratio??null:null}function Df(e){return[...e.lead??[],...e.desktop]}function ox(e,t){let n=da[e],o=Lf(t);if(!o)return n;let{phone:a,acrossPhone:s}=pa[o],r=Object.fromEntries(Af.map(i=>[i,void 0]));return{...n,...r,phone:a,acrossPhone:s}}var ax="sf-wall--";function sx(e){let t=Nf(e);if(!t)return"";let n=Lf(e.layoutPhone);return`${ax}${t}${n?`--${n}`:""}`}function OM(e){let t=pi(e);if(!t)return"";let n=`.${sx(e)}`,o=[],a=(l,u,d)=>`${n}:has(> :nth-child(${l}n+${u+d}):last-child) > :nth-last-child(-n+${d})`,s=(l,u)=>Object.entries(u).flatMap(([d,p])=>Object.entries(p).map(([f,m])=>({r:Number(d),k:Number(f),cell:m,selector:`${n}:has(> :nth-child(${l}n+${d}):last-child) > :nth-last-child(${Number(d)-Number(f)+1})`}))),r=(l,u,d=[],p)=>{let f=[],m=l.length,b=d.length;if(d.forEach(([y,_],S)=>{f.push(`${n} > :nth-child(${S+1}){grid-column:span ${y};grid-row:span ${_}}`)}),l.forEach(([y,_],S)=>{f.push(`${n} > :nth-child(${m}n+${b+S+1}){grid-column:span ${y};grid-row:span ${_}}`)}),p){for(let{selector:y,cell:_}of s(m,p))f.push(`${y}{grid-column:span ${_[0]};grid-row:span ${_[1]}}`);return f}for(let y=1;y<m;y+=1)f.push(`${a(m,b,y)}{grid-column:span ${u};grid-row:span 1}`);return f};o.push(`${n}{grid-template-columns:repeat(${If},minmax(0,1fr))}`);let i=fi(t);if(i&&(o.push(`${n}${n}{grid-auto-rows:auto}`),o.push(`${n}${n} > *{aspect-ratio:${i[0]}/${i[1]};height:auto}`)),o.push(...r(t.desktop,ci(t,!1),t.lead,t.tail)),o.push(`@media (max-width:${tx}px){`),o.push(`${n}{grid-template-columns:repeat(${sn},minmax(0,1fr))}`),o.push(...r(t.phone,ci(t,!0),t.leadPhone,t.tailPhone)),t.tail){let l=t.phone.length===1&&!t.leadPhone?.length;for(let{r:u,k:d,selector:p}of s(t.desktop.length,t.tail)){let[f,m]=l?t.phone[0]:t.tailPhone?.[u]?.[d]??t.phone[d-1];o.push(`${p}{grid-column:span ${f};grid-row:span ${m}}`)}}else if(t.phone.length===1&&!t.leadPhone?.length){let[l,u]=t.phone[0],d=t.lead?.length??0;for(let p=1;p<t.desktop.length;p+=1)o.push(`${a(t.desktop.length,d,p)}{grid-column:span ${l};grid-row:span ${u}}`)}return o.push("}"),o.join("")}var fa=12,Bf=1,ma=3;var rx=3;function rn(e,t,n){let o=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(o)?Math.min(n,Math.max(t,Math.trunc(o))):null}function ix(e){return rn(e,1,fa)??rx}function AM(e,t){return rn(e,Bf,ma)??(ix(t)===4?2:Bf)}function RM(e){return e==null||e===""?null:rn(e,1,fa)}var NM="data-sf-span",ha=4;function lx(e){return e==null||e===""?null:rn(e,1,ha)}var LM="data-sf-row-span",mi="gridTileAt",hi=48;function DM(e){return e==null||e===""?null:rn(e,1,hi)}var FM="--sf-tile-at";function BM(e){return e==null||e===""?null:rn(e,1,ma)}function MM(e){return lx(e)}var HM="data-sf-span-phone",$M="data-sf-row-span-phone",UM=["gridSpan","gridRowSpan",mi,Ff("gridSpan"),Ff("gridRowSpan")];function GM(e,t){if(!e)return!1;if(cx(e,t)||e.type==="Grid")return!0;if(e.type==="GalleryB"){if(pi(e.props??{}))return!1;let n=e.props?.columns;return n!=null&&n!==""}return!1}var Mf=new Map;function zM(e,t){Mf.set(e,[...t])}function cx(e,t){if(!e||typeof e.type!="string"||typeof t!="string")return!1;let n=Mf.get(e.type);return n?n.some(o=>{let a=e.props?.[o];return Array.isArray(a)&&a.some(s=>s?.props?.id===t)}):!1}import{jsx as ux}from"react/jsx-runtime";import*as dx from"efficient-easel/icons";function Hf(e){let t=e.replace(/(^|-)([a-z])/g,(o,a,s)=>s.toUpperCase()),n=dx[`${t}Icon`];return n?ux(n,{size:16}):null}import{jsx as it,Fragment as mx,jsxs as Yf}from"react/jsx-runtime";import{useContext as hx,useEffect as gx,useId as bx,useState as Xf}from"react";import{SettingsField as yx,SettingsSwitch as Sx}from"efficient-easel/panel";import{AnchorIcon as _x}from"efficient-easel/icons";import{ScreenDocumentContext as Tx}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as Ex}from"efficient-shell/ui";import{slugify as xx}from"efficient-shell/format";import{slugify as px}from"efficient-shell/format";function gi(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var YM=e=>px(gi(e));var $f="homepage";import{slugify as fx}from"efficient-shell/format";var Uf=[{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 Gf(e){return e.offersCommerce&&e.offersService?Uf:Uf.filter(t=>!t.needs||(t.needs==="commerce"?e.offersCommerce:e.offersService))}var bi="#popup:";function zf(e){return`${bi}${e}`}function Wf(e){return e.startsWith(bi)&&e.slice(bi.length).trim()||null}function zn(e){return e===$f?"/":`/${e}`}function Kf(e){return`/journal/${e}`}function eH(e){return`/wheels/${e}`}function ga(e,t){return`${zn(e)}#${t}`}function jf(...e){let t=new Set,n=[];for(let o of e)for(let a of o?.content??[]){let s=gi(a?.props?.anchor);if(!s)continue;let r=fx(s);!r||t.has(r)||(t.add(r),n.push({slug:r,name:s}))}return n}function tH(e){let t=e.indexOf("#"),n=t===-1?e:e.slice(0,t),o=n.indexOf("?");return o===-1?n:n.slice(0,o)}function Vf(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as vx}from"efficient-easel/draw";function qf({value:e,onChange:t,nameBox:n}){let o=vx(e).text,[a,s]=Xf(!1),r=a||o.trim()!=="",i=bx();return Yf(mx,{children:[it(yx,{label:c("Add an anchor"),labelId:i,icon:it(_x,{}),action:it(Sx,{checked:r,ariaLabelledBy:i,onChange:l=>{s(l),!l&&o!==""&&t("")}})}),r&&n(e,t),r&&it(wx,{name:o})]})}function wx({name:e}){let t=hx(Tx),n=t?.templateId?"":t?.currentSlug??"",[o,a]=Xf("");gx(()=>a(Nu()),[]);let s=xx(e);if(!s||!n)return null;let r=`${o}${ga(n,s)}`,i=r.replace(/^https?:\/\//,""),l=i.lastIndexOf("#");return it("div",{className:"sf-anchor-link",children:it(Ex,{value:r,label:c("link"),size:"sm",children:Yf("span",{className:"sf-anchor-link-text",children:[it("span",{className:"sf-anchor-link-path",children:i.slice(0,l)}),it("span",{className:"sf-anchor-link-hash",children:i.slice(l)})]})})})}import{jsx as Fe,jsxs as Cx}from"react/jsx-runtime";import{Fragment as Ox}from"react";import{Button as ba,Tooltip as Px}from"efficient-shell/ui";function ya({status:e,statusText:t,onRefresh:n,busy:o=!1,edit:a,hint:s,spaced:r=!0,compact:i=!1,oneLine:l=!1}){return i?Fe("div",{className:`sf-blogsource sf-blogsource--compact${l?" sf-blogsource--line":""}`,style:r?{marginTop:8}:void 0,children:Fe(Px,{content:s,className:l?"sf-name-tip":void 0,children:Fe("p",{className:"sf-blogsource-status","data-state":e,children:[t?Fe(Ox,{children:t},"status"):null,n?Fe(ba,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:n,disabled:o,children:c("Refresh now")},"refresh"):null,a?Fe(ba,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((u,d)=>d?[" \xB7 ",u]:[u])})})}):Cx("div",{className:"sf-blogsource",style:r?{marginTop:9}:void 0,children:[Fe("p",{className:"sf-blogsource-status","data-state":e,children:t}),n?Fe(ba,{variant:"secondary",className:"sf-blogsource-action",onClick:n,disabled:o,children:c("Refresh now")}):null,a?Fe(ba,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Fe("p",{className:"es-field-hint",children:s})]})}import{AdjustIcon as JO,EyeIcon as QO,AnimationIcon as eP,BackgroundIcon as eg,BorderAllIcon as tP,BlockSectionIcon as nP,BoxYCenterIcon as oP,ColumnWidthsIcon as ts,ColumnsIcon as hg,CornerIcon as gg,DirectionDownIcon as aP,DirectionLeftIcon as sP,DirectionRightIcon as rP,DirectionUpIcon as bg,EditIcon as iP,GapIcon as lP,GridIcon as yg,GroundIcon as Al,HashIcon as Sg,HeightIcon as ns,ImageIcon as cP,ListIcon as uP,LocationIcon as tg,PaddingBottomIcon as _g,PaddingLeftIcon as Tg,PaddingRightIcon as Eg,PaddingTopIcon as Dl,PageIcon as dP,PhoneIcon as pP,StickyIcon as xg,SearchIcon as fP,SquareIcon as mP,TypeIcon as hP,WidthIcon as gP}from"efficient-easel/icons";import{jsx as U,Fragment as Ot,jsxs as Pt}from"react/jsx-runtime";import{CaptionIcon as kx,DateIcon as Ix,FlagIcon as Ax,TitleIcon as Rx,ButtonIcon as Nx,DollarIcon as Lx,HashIcon as Dx,LinkIcon as Fx,NoteIcon as Bx,TagIcon as Mx,TextLinesIcon as Hx}from"efficient-easel/icons";var Zf={body:Hx,button:Nx,link:Fx,label:Mx,number:Dx,price:Lx,note:Bx,name:Ax,date:Ix,caption:kx,title:Rx},Jf={eyebrow:Pt(Ot,{children:[U("path",{d:"M5 6.5h5"}),U("path",{d:"M5 12.5h14"}),U("path",{d:"M5 18h11"})]}),heading:Pt(Ot,{children:[U("path",{d:"M6.5 5v14"}),U("path",{d:"M17.5 5v14"}),U("path",{d:"M6.5 12h11"})]}),intro:Pt(Ot,{children:[U("path",{d:"M4 5.5v13"}),U("path",{d:"M8 7.5h12"}),U("path",{d:"M8 12h12"}),U("path",{d:"M8 16.5h8"})]}),value:Pt(Ot,{children:[U("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),U("path",{d:"M6.5 12h7"})]}),quote:Pt(Ot,{children:[U("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),U("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Pt(Ot,{children:[U("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),U("path",{d:"M8 9.5h8"}),U("path",{d:"M12 9.5v5"})]}),meta:Pt(Ot,{children:[U("path",{d:"M4 7h16"}),U("path",{d:"M4 14h3.5"}),U("path",{d:"M10.5 14h3"}),U("path",{d:"M17 14h3"})]})};function yi({noun:e,size:t=14,strokeWidth:n=1.8,className:o,style:a}){let s=Zf[e];return s?U("span",{className:o,style:{display:"inline-flex",...a},"aria-hidden":"true",children:U(s,{size:t})}):U("svg",{className:o,style:a,width:t,height:t,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:n,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:Jf[e]})}var EH=Object.keys(Zf);var xH=Object.keys(Jf);import{parseHexColor as $x}from"efficient-shell/format";var Ux="#ffffff";function Si(e){return Qf(e)||(Gx(e)?e:Ux)}function Qf(e){let t=Ae(e);return t?Je(t)?.page??"":""}function Gx(e){return typeof e=="string"&&$x(e)===e.toLowerCase()||Qf(e)!==""}function PH(e){return{"--bg":Si(e)}}import{parseHexColor as zx}from"efficient-shell/format";import{fillColorRole as Wx}from"efficient-shell/markup";function kt(e,t,n,o){let a=o??n??t,s=n!==null&&n!==t,r=a!==null&&a!==t;return{className:[s?e.tabletClass:"",r?e.phoneClass:""].filter(Boolean).join(" "),style:{...s?{[e.tabletVar]:n}:{},...r?{[e.phoneVar]:a}:{}}}}var _i=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}];var UH="sf-card",GH="[--sf-card-lift:none] [--sf-card-shadow-hover:var(--sf-card-shadow,none)]",em={min:0,max:100,step:5,fallback:0,unit:"%"},Kx="68%",WH={desktop:20,phone:20,side:40,sidePhone:24},KH="sf-box-sides";function jx(e){return typeof e=="string"&&e.trim()!==""}function jH(e){return jx(typeof e?.bgImage=="string"?e.bgImage:null)||nm(e)}function nm(e){return Eo(e,yo)!==""}function VH(e,t){return t||!nm(e)?e:{...e,[yo]:""}}function YH(e,t){return Ds(t,Eo(e,yo))?.trim()||null}function tm(e,t){let n=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(n)||n<=0)return null;let o=(Math.min(em.max,Math.max(em.min,n))/100).toFixed(2);return t!=="bottom"?{background:xo(Number(o))}:{background:`linear-gradient(0deg, ${xo(Number(o))} 0%, ${xo(0)} ${Kx})`}}var Sa=[{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"}],om="fillFade",Ti=Sa[1].value,_a=e=>e===Ti?Ti:Sa[0].value,Vx=[{mix:"12%",at:"50%"},{mix:"19%",at:"70%"},{mix:"50%",at:"95%"}];function XH(e){return _a(e)!==Ti?null:{backgroundImage:`linear-gradient(to bottom, transparent, ${Vx.map(t=>`color-mix(in srgb, var(--bg) ${t.mix}, transparent) ${t.at}`).join(", ")})`}}var Ta=e=>typeof e=="string"?zx(e.trim()):null,Wn=e=>{let t=Ta(e);if(t!==null||typeof e!="string")return t;let n=e.trim();return n&&!n.startsWith("#")&&Yu(n)||null},Ea=e=>{if(typeof e!="string")return null;let t=Wx($e(e.trim()));return t?.kind==="slot"?t.slot:null},Ei="swatch";function qH(e,t){if(!t)return null;let n=Ds(t,Eo(e,Ei)),o=Ae(n);return Ta(n)??(o&&He(o)||null)}var Yx={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function ZH(e,t,n){return kt(Yx,Wn(e),Wn(t),Wn(n))}var Xx={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function JH(e){let t=tm(e.darken,e.darkenStyle);if(!t)return{className:"",style:{}};let n=(p,f)=>String(tm(p,f)?.background??"none"),o=p=>(typeof p=="number"||typeof p=="string"&&p.trim()!=="")&&Number.isFinite(Number(p))?p:void 0,a=p=>_i.some(f=>f.value===p)?p:void 0,[s,r,i,l]=[o(e.darkenTablet),a(e.darkenStyleTablet),o(e.darkenPhone),a(e.darkenStylePhone)],u=s??e.darken,d=r??e.darkenStyle;return kt(Xx,String(t.background),s!==void 0||r!==void 0?n(u,d):null,i!==void 0||l!==void 0?n(i??u,l??d):null)}function QH(e,t){let n={"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"]},[o,a]=n[e]??n.center,[s,r]=t==="column"?[a,o]:[o,a];return Lc(s,r)}function am(e,t){let n=e?.content;if(!Array.isArray(n))return null;for(let o of n){if(!o||typeof o!="object")continue;let{type:a,props:s}=o;if(s?.id===t)return null;if(xi(o,t,0))return{type:typeof a=="string"?a:"",props:s??{}}}return null}function xi(e,t,n){if(n>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>xi(a,t,n+1));let o=e.props;return o&&typeof o=="object"&&o.id===t?!0:Object.values(e).some(a=>xi(a,t,n+1))}function sm(e,t){let n=e?.content;return Array.isArray(n)?xa(n,t,0)??[]:[]}function xa(e,t,n){if(n>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let s=xa(a,t,n+1);if(s)return s}return null}let o=e.props;if(o&&typeof o=="object"){if(o.id===t)return[];for(let a of Object.values(o)){let s=xa(a,t,n+1);if(s)return[o,...s]}return null}for(let a of Object.values(e)){let s=xa(a,t,n+1);if(s)return s}return null}import{SettingsDefaultReset as oe,SettingsDrill as bP,SettingsField as K,SettingsGroup as yP,SettingsSegmented as SP,SettingsBorder as _P,SettingsSidesEach as TP,SettingsSwitch as Fl,borderSides as EP,borderStartEach as xP}from"efficient-easel/panel";import{ListField as vP}from"efficient-easel/fields";import{CodeIcon as wP}from"efficient-shell/icons/efficient";import{DisplayChips as CP}from"efficient-shell/ui";import{HIDDEN_KEY as qx,hiddenInEveryView as Zx,hiddenInView as vi,hiddenKeyOf as rm}from"efficient-easel/screen/lib/content/view-hide";import{VIEW_TIERS as Jx}from"efficient-easel/screen/lib/content/view-tiers";var Qx={"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"},ev={"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"},im=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function lm(e,{atSectionLine:t=!1}={}){return(t?ev:Qx)[im(e)]}var a$=[qx,rm("tablet"),rm("mobile")];function cm(e){return{desktop:vi(e,"desktop"),tablet:vi(e,"tablet"),mobile:vi(e,"mobile")}}function s$(e){return Zx(e)}function r$(e){let t=cm(e);return Jx.filter(n=>t[n]).join(" ")}var tv={"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!"},nv={"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 i$(e,{atSectionLine:t=!1}={}){return(t?nv:tv)[im(cm(e))]}function ln(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let t={};for(let[n,o]of Object.entries(e))typeof o=="boolean"&&(t[n]=o);return t}function va(e,t){return ln(e)[t]!==!1}function wi(e,t,n){let o=ln(t)[n];return typeof o=="boolean"?o:va(e,n)}function um(e){return Object.values(ln(e)).some(t=>t===!1)}function dm(e){return Object.keys(ln(e)).length>0}function pm(e,t,n){let o={...ln(e)};return n?delete o[t]:o[t]=!1,Object.keys(o).length?o:void 0}function fm(e,t,n){return{...ln(e),[t]:n}}function u$(e,t,n,{atSectionLine:o=!0}={}){let a=!va(e,n);return lm({desktop:a,tablet:a,mobile:!wi(e,t,n)},{atSectionLine:o})}import{ColorSwatch as OP,CornersInput as PP,DatePicker as a4,DateTimePicker as kP,FOCAL_DEFAULT as s4,IconPicker as vg,COLUMN_COUNT_MAX as ng,COLUMN_SHARE_MIN as IP,COLUMN_SHARES_EQUAL as AP,resolveColumnShares as wg,WidthsBar as RP,useShellStrings as NP,IconButton as Cg,InputNumber as og,Slider as LP,Textarea as DP,Tooltip as Bl}from"efficient-shell/ui";async function mm(e){let t=e.trim();if(!t)return null;let n=xe().geocode;if(!n)throw new Error("geocode_unavailable");return n.locate(t)}var Ci="Lookup busy \u2014 try again in a moment.",wa=e=>typeof e=="number"&&Number.isFinite(e);function Ca(e){return e.some(t=>{let n=t?.geocode;return n?n.pending||n.manual&&n.lat===void 0&&n.lng===void 0?!0:wa(n.lat)&&n.lat!==t.lat||wa(n.lng)&&n.lng!==t.lng:!1})}async function hm(e,t,{geocode:n=mm,courtesyGapMs:o=1100}={}){let a=r=>new Promise(i=>setTimeout(i,r)),s=e.slice();if(e.some(r=>r?.geocode?.pending)){let r=[],i=!1;for(let l of e){if(!l?.geocode?.pending){r.push(l);continue}i&&o>0&&await a(o),i=!0;try{let u=await n(t(l));r.push(u?{...l,lat:u.lat,lng:u.lng,geocode:{...l.geocode,pending:!1,ok:!0,status:`Found \u2014 ${u.label.split(",").slice(0,3).join(",").trim()}`,lat:u.lat,lng:u.lng}}:{...l,geocode:{...l.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{r.push({...l,geocode:{...l.geocode,pending:!1,ok:!1,status:Ci}})}}s=r}return s.map(r=>{let i=r?.geocode;if(!i)return r;if(i.manual&&i.lat===void 0&&i.lng===void 0)return{...r,geocode:{...i,lat:r.lat,lng:r.lng}};let l=wa(i.lat)&&i.lat!==r.lat?i.lat:r.lat,u=wa(i.lng)&&i.lng!==r.lng?i.lng:r.lng;return l!==r.lat||u!==r.lng?{...r,lat:l,lng:u}:r})}import{keptByRow as Rl}from"efficient-easel/screen/lib/document/style-fields";import{jsx as ov}from"react/jsx-runtime";import{useEffect as av,useState as sv}from"react";import{clearRangeOf as rv,markSelection as iv,useCaretEdit as lv}from"efficient-easel/copy";import{TextToolbar as cv}from"efficient-shell/ui";function uv(e,t,n){return iv(e,t,n,kc)}function gm(e,t){let n=rv(t,e.length),o=Ac(e,n.start,n.end);return o.text===e?null:o}function dv(e){let[t,n]=sv(null);return av(()=>{let o=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!o)return;let a=()=>{let s=e.current;if(!s||o.activeElement!==s)return;let r=s.selectionStart??s.value.length,i=s.selectionEnd??r;n(l=>l&&l.start===r&&l.end===i?l:{start:r,end:i})};return o.addEventListener("selectionchange",a),()=>o.removeEventListener("selectionchange",a)},[e]),[t,n]}function pv({target:e,value:t,onChange:n,disabled:o=!1,label:a="Formatting"}){let s=lv({target:e,onChange:n}),[r,i]=dv(e),l=f=>s(m=>{let b=uv(t,f,m);return i({start:b.selectionStart,end:b.selectionEnd}),b}),u=Pc(),d={};if(r)for(let f of u)d[f.style]=Ic(t,r.start,r.end,f.style);let p=o?null:gm(t,r);return ov(cv,{offered:new Set(u.map(f=>f.style)),onMark:f=>l(f),pressed:d,disabled:o,"aria-label":c(a),className:"sf-markup-bar",clear:p?{onClear:()=>s(()=>{let f=e.current,m=f&&f.ownerDocument.activeElement===f?{start:f.selectionStart??0,end:f.selectionEnd??0}:null,b=gm(t,m)??{text:t,selectionStart:m?.start??0,selectionEnd:m?.end??0};return i({start:b.selectionStart,end:b.selectionEnd}),b})}:void 0})}var Oi=pv;import{deviceField as te}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as FP,NoControlMark as BP,noControlField as Og}from"efficient-easel/screen/lib/document/panel-no-control-mark";function Oa(e,t,n){return typeof e=="number"?e:typeof t=="number"?t:n}var Pa=void 0;import{phoneKey as lt,tabletKey as Ml,viewKeyAt as Hl}from"efficient-easel/draw";import{jsx as ka,Fragment as fv,jsxs as mv}from"react/jsx-runtime";import{useRef as hv}from"react";import{SettingsDefaultReset as gv}from"efficient-easel/panel";import{effectTiles as bv}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as bm,describedAs as yv,onDesktopWords as Sv,phoneTwinFields as ym}from"efficient-easel/screen/lib/document/box-fields";function _v({row:e,read:t,...n}){let o=t(Z(),n.followsView??"desktop");return e({...n,follows:o})}function ze(e,t){return Object.fromEntries(Tu.map(n=>{let o=$(e,n);return[o,ym(e,t(n),bm)[o]]}))}function R$(e,t,n){let o=t.render,a={...t,render:s=>ka(_v,{...s,row:o,read:n})};return ze(e,s=>s==="desktop"?t:a)}function Tv({spec:e,...t}){let n=e.values.includes(t.value),o="follows"in t,a=e.read(Z(),t.followsView??"desktop"),s=n?t.value:a,r=hv(null),{preview:i}=e,l=bv({label:c(e.label),options:e.values.map(d=>({value:d,label:c(e.word(d)),picture:e.picture(d)})),fallback:e.fallback,onPreview:i?d=>r.current&&i(r.current,d):void 0}).render,u=l({value:s,onChange:d=>t.onChange(d??e.fallback)});return mv(fv,{children:[i?ka("div",{ref:r,style:{display:"contents"},children:u}):u,o&&n&&ka(gv,{words:P()?.panel,label:c(e.tileWord),changed:!0,detail:Sv(d=>c(d),c(e.word(a)),t.followsView),onReset:()=>t.onChange(void 0)})]})}function N$(e,t){let n=yv({type:"custom",render:o=>ka(Tv,{...o,spec:t})},{type:"select",label:t.label,options:t.values.map(o=>({value:o,label:t.word(o)}))});return ym(e,n,bm)}import{jsx as Pi,Fragment as Ev}from"react/jsx-runtime";import{createContext as xv,useContext as vv}from"react";import{NoControlMark as wv}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Sm=xv(!1);function H$({children:e}){return Pi(Sm.Provider,{value:!0,children:e})}function Cv(){return vv(Sm)}function _m({name:e,children:t}){return!Cv()||!e||!Ov(e)||In(e)?Pi(Ev,{children:t}):Pi(wv,{})}function Ov(e){return/^[A-Za-z0-9_$]+$/u.test(e)}import{parseOption as Pv}from"efficient-shell/format";var ki="off",Em="none",Ii=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],xm=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function G$(e){return Pv(Ii,ki,e)}var Tm="sf-card-index",Kn="sf-card-index",z$="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",kv={plain:`counter(${Kn})`,padded:`counter(${Kn}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Kn}, decimal-leading-zero)`};function W$(e,t){return t==="off"?"":`.${e}{counter-reset:${Kn}}.${e} .${Tm}{counter-increment:${Kn}}.${e} .${Tm}::before{content:${kv[t]}}`}function K$(e){return e==="hairline"?"border border-line hover:border-accent":""}var vm=[{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 MP}from"efficient-easel/draw";import{jsx as ue}from"react/jsx-runtime";import{SettingsDefaultReset as Bv,SettingsField as Ai}from"efficient-easel/panel";import{useSelectedHost as Mv}from"efficient-easel/easel";import{FOCAL_DEFAULT as Hv}from"efficient-shell/format";import{ImageIcon as Ri,PlayIcon as wm}from"efficient-easel/icons";import{ImageFocusPoint as $v,MediaUploadField as Uv}from"efficient-shell/ui";import{useContext as Gv}from"react";import{ScreenDocumentContext as zv}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as Wv,viewKeyAt as Kv}from"efficient-easel/draw";import{usePreviewDevice as jv}from"efficient-easel/draw/client";import{formatFocal as Iv,parseFocal as Av}from"efficient-shell/format";var Rv="sf-focus-phone",Nv="--sf-focus-phone",Lv="sf-focus-tablet",Dv="--sf-focus-tablet",jn=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:t,y:n}=Av(e);return Iv(t,n)};function q$(e,t){return kt(Fv,null,jn(t),jn(e))}var Fv={tabletClass:Lv,tabletVar:Dv,phoneClass:Rv,phoneVar:Nv};import{shownTier as Ni}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as Vv}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as Yv}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Xv}from"efficient-easel/screen/lib/host";import{useEaselSession as qv}from"efficient-easel/screen/lib/session-context";function Zv(e,t,n,o=!0){let a=Ni(n),s=typeof e[t]=="string"&&e[t]?String(e[t]):Hv;if(a==="desktop")return{ownView:!1,followed:s,followsView:"desktop",own:void 0,focus:s,key:t};let r=Kv(t,a),i=jn(e[r])??void 0,l=a==="mobile"&&o?jn(e[Wv(t)])??void 0:void 0,u=l??s;return{ownView:!0,followed:u,followsView:l?"tablet":"desktop",own:i,focus:i??u,key:r}}function Jv(e,t,n){let o=Mv();if(!t||!o)return null;let a=o.values??{};if(n&&!n(a,Ni(e)))return null;let s=Zv(a,t,e,n?n(a,"tablet"):!0),r=o.onChange;return{...s,set:i=>r(s.key,i),clear:()=>r(s.key,Pa)}}function Cm({value:e,onChange:t,label:n,accept:o,placeholder:a,focusKey:s,focusWhen:r,frameKey:i,fieldKey:l}){let u=Xv(),d=qv(),p=c(n),f=jv(),m=o.startsWith("video"),b=Jv(f,m?void 0:s,r),y=!!s&&Ni(f)!=="desktop",_=Gv(zv),S=cn(),E=i&&l?{video:l,frame:i}:null,x=C=>Yv(u,{accept:o,title:p,...C?{file:C}:{}}).then(D=>!D||!E?D?.url??null:(S({[E.video]:D.url,[E.frame]:D.posterUrl??""}),null)),v=E?C=>C?t(C):S({[E.video]:"",[E.frame]:""}):t,w=re(e);if(y&&(!b||!w))return null;if(_&&!_.capabilities.mediaEditing)return ue(Ai,{label:p,icon:m?ue(wm,{}):ue(Ri,{}),children:ue("div",{className:"sf-image-slot-inert",children:m?c("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):c("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let R=b?.ownView&&w?ue(Bv,{words:P()?.panel,label:c("Image focus"),changed:!!b.own,detail:Vv(C=>c(C),b.followed,b.followsView),onReset:b.clear}):void 0;return y&&b?ue(Ai,{label:p,icon:ue(Ri,{}),action:R,children:ue("div",{style:{flex:"1 1 auto",minWidth:0},children:ue($v,{value:b.focus,onChange:b.set,label:c("Image focus"),image:w,hint:null})})}):ue(Ai,{label:p,icon:m?ue(wm,{}):ue(Ri,{}),children:ue("div",{style:{flex:"1 1 auto",minWidth:0},children:ue(Uv,{value:w,onChange:v,onPick:x,accept:m?"video/*":"image/*",kind:m?"video":"image",placeholder:a===void 0?void 0:c(a),maxSizeBytes:xe(d).media.maxUploadBytes,...b?{focus:b.focus,onFocusChange:b.set}:{}})})})}import{jsx as Om}from"react/jsx-runtime";import{useId as Qv}from"react";import{FieldSelect as ew}from"efficient-easel/fields";import{SettingsField as tw}from"efficient-easel/panel";function nw(e){return e.map(({value:t,label:n,note:o})=>({value:t,label:n,...o?{meta:o}:{}}))}function Pm({label:e,options:t,value:n,onChange:o,emptyLabel:a,icon:s,hint:r}){let i=Qv(),l=`${i}-label`,u=`${i}-button`,d=Array.isArray(n)?n:[];return Om(tw,{label:c(e),labelId:l,icon:s,hint:r,children:Om(ew,{id:u,multiple:!0,value:d,options:nw(t),onChange:o,placeholder:a===void 0?c("None"):c(a),ariaLabelledBy:`${l} ${u}`,inline:!0})})}import{jsx as km}from"react/jsx-runtime";import{useId as ow}from"react";import{FieldSelect as aw}from"efficient-easel/fields";import{SettingsField as sw}from"efficient-easel/panel";function rw(e){return e.map(({value:t,label:n,group:o,thumb:a,meta:s})=>({value:t,label:n,...o!==void 0?{group:o}:{},...a!==void 0?{thumb:a}:{},...s!==void 0?{meta:s}:{}}))}function AU({label:e,options:t,fallback:n,value:o,onChange:a,placeholder:s,bare:r=!1,icon:i}){let l=ow(),u=`${l}-label`,d=`${l}-button`,p=o??"",f=t.some(_=>_.value===p)?p:n,m=c(e),b=s===void 0?void 0:c(s),y=km(aw,{id:d,value:f,options:rw(t),onChange:a,placeholder:b,searchPlaceholder:b,...r?{ariaLabel:m}:{ariaLabelledBy:`${u} ${d}`},searchable:!0,groupCount:!0,inline:!0});return r?y:km(sw,{label:m,labelId:u,icon:i,children:y})}import{jsx as At,jsxs as Uw}from"react/jsx-runtime";import{SettingsField as Zm}from"efficient-easel/panel";import{LinkIcon as Gw}from"efficient-easel/icons";import{LinkPicker as zw,TextLinkField as Ww}from"efficient-shell/ui";import{useEffect as qm,useMemo as Na,useRef as Kw,useState as Ra}from"react";import{currentEaselSession as iw}from"efficient-easel/screen/lib/session";function Im(){return iw().auth.token}import{currentEaselSession as jw}from"efficient-easel/screen/lib/session";import{useScreenDocument as Vw}from"efficient-easel/screen/components/ScreenDocumentContext";var lw=()=>({choosePage:c("Choose a page"),chooseSection:c("Choose a section"),noSections:c("No section anchors yet"),sectionHint:c("Jumps to a section on that page."),choosePost:c("Choose a post"),chooseProduct:c("Choose a product"),choosePopup:c("Choose a popup")});function Am(e,t,n){if(!e)return"page";if(Wf(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(Vf(e))return"product";if(e.includes("#")){let o=e.slice(0,e.indexOf("#"));if(o===""||o==="/"||t.includes(o))return"anchor"}return e==="/"||t.includes(e)||n&&n.listingPaths.includes(n.targetOf(e))?"page":"custom"}function Li(e,t){let n=lw(),o=e.pages.map(d=>({value:zn(d.slug),label:d.title})),a=t?.pageOptions?t.pageOptions(o):o,s=a.map(d=>d.value),r=e.pages.map(d=>({label:d.title,options:jf(...d.docs).map(p=>({value:ga(d.slug,p.slug),label:p.name}))})).filter(d=>d.options.length>0),i=d=>{switch(d){case"page":return{type:"select",options:a,placeholder:n.choosePage};case"anchor":return{type:"groups",groups:r,placeholder:r.length?n.chooseSection:n.noSections};case"blog":return{type:"select",options:e.posts.map(p=>({value:Kf(p.slug),label:p.title||p.slug})),placeholder:n.choosePost};case"product":return{type:"select",options:e.products.map(p=>({value:p.href,label:p.name||p.href})),placeholder:n.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(p=>({value:zf(p.slug),label:p.title||p.slug})),placeholder:n.choosePopup};case"custom":return{type:"text"}}},l=Gf(e.offers).map(d=>({value:d.value,label:c(d.label),target:i(d.value),...d.value==="anchor"?{hint:n.sectionHint}:{},...d.value==="blog"||d.value==="product"||d.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!t)return{kinds:l,rules:{kindOf:d=>Am(d,s),targetOf:d=>d,readFilter:()=>null,withFilter:d=>d}};let u=d=>{let p=t.withFilter(d,null);return t.listingPaths.includes(p)?p:d};return{kinds:l,rules:{kindOf:d=>Am(d,s,{listingPaths:t.listingPaths,targetOf:u}),targetOf:u,readFilter:t.readFilter,withFilter:t.withFilter},filtersFor:d=>t.listingPaths.includes(d)?t.filtersFor(d):null}}import{useEaselSession as Yw}from"efficient-easel/screen/lib/session-context";function J(e,t){if(typeof e=="string")return e||t;if(e&&typeof e=="object"&&"text"in e){let n=e.text;return W(n)??t}return t}function Rm(e,t){return O(e)??t}function We(e,t){return typeof e=="boolean"?e:t}function Ia(e,t){if(!Array.isArray(e))return t;let n=e.map(o=>typeof o=="string"?o:J(o?.text,"")).map(o=>o.trim()).filter(Boolean);return n.length?n:t}var Lm=["delay","scroll","exit"],Dm=["all","chosen","except"],Fm=["visit","days","never","once"],cw=["all","desktop","phone"],uw=["stop","continue"],Bm={min:0,max:60},Mm={min:10,max:90},Hm={min:1,max:90},Ce={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function fe(e,t,n){return typeof t=="string"&&e.includes(t)?t:n}function un(e,t,n){let o=Rm(e,n);return Math.min(t.max,Math.max(t.min,Math.round(o)))}function dw(e){return typeof e.hideAfter=="string"?fe(Fm,e.hideAfter,Ce.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Ce.hideAfter}function pw(e){return Array.isArray(e)?e.map(t=>typeof t=="string"?t.trim():"").filter(Boolean).map(t=>t.startsWith("/")?t:`/${t}`):[]}function Nm(e){if(typeof e!="string")return null;let t=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(t)?t:null}function $m(e){let t=e??{},n=Ce;return{autoOpen:We(t.autoOpen,n.autoOpen),trigger:fe(Lm,t.trigger,n.trigger),autoOpenDelaySec:un(t.autoOpenDelaySec,Bm,n.autoOpenDelaySec),scrollPercent:un(t.scrollPercent,Mm,n.scrollPercent),showOn:fe(Dm,t.showOn,n.showOn),showOnPages:pw(t.showOnPages),devices:fe(cw,t.devices,n.devices),hideAfter:dw(t),hideDays:un(t.hideDays,Hm,n.hideDays),afterSubmit:fe(uw,t.afterSubmit,n.afterSubmit),startDate:Nm(t.startDate),endDate:Nm(t.endDate)}}import{parseHexColor as fw}from"efficient-shell/format";var Um="#000000";var Di="popup",mw=bu,hw=["auto","full"],gw=["inside","outside","none"],bw={min:240,max:1440},yw={min:0,max:100},Vn={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Um,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function Sw(e,t){let n=typeof e=="string"?e.trim():"";return n&&fw(n)===n.toLowerCase()?n:t}function Fi(e,t=Vn){let n=e??{},o=t;return{placement:fe(mw,n.placement,o.placement),fullWidth:We(n.fullWidth,o.fullWidth),width:un(n.width,bw,o.width),height:fe(hw,n.height,o.height),tintColor:Sw(n.tintColor,o.tintColor),tintOpacity:un(n.tintOpacity,yw,o.tintOpacity),outsideClick:We(n.outsideClick,o.outsideClick),closeButton:fe(gw,n.closeButton,o.closeButton)}}var Gm="cart-drawer",QU="cart-drawer",_w={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 e2(e,t){return t===0?e.subtitleEmpty:t===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(t))}function t2(e){let t=e??{},n=_w;return{kickerBadge:J(t.kickerBadge,n.kickerBadge),kickerText:J(t.kickerText,n.kickerText),titleLead:J(t.titleLead,n.titleLead),titleAccent:J(t.titleAccent,n.titleAccent),subtitleEmpty:J(t.subtitleEmpty,n.subtitleEmpty),subtitleOne:J(t.subtitleOne,n.subtitleOne),subtitleMany:J(t.subtitleMany,n.subtitleMany),leadTimeValue:J(t.leadTimeValue,n.leadTimeValue),shipsToFallback:J(t.shipsToFallback,n.shipsToFallback),promises:Ia(t.promises,n.promises),emptyKicker:J(t.emptyKicker,n.emptyKicker),emptyBody:J(t.emptyBody,n.emptyBody)}}var Tw=["right","left"],Ew={...Vn,width:520,tintOpacity:68};function n2(e){let t=e??{};return{...Fi(t,Ew),placement:fe(Tw,t.placement,"right"),height:"full",fullWidth:!1,autoOpen:We(t.autoOpen,!0)}}var Wm="consent-banner",r2="consent-banner";var xw=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],i2="Layout",zm={layout:"bar"},vw=e=>xw.some(t=>t.value===e);function l2(e){let t=J((e??{}).layout,zm.layout);return{layout:vw(t)?t:zm.layout}}var c2={...Vn,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var ww="consentWords",Cw=["eyebrow","notice","accept","reject","choose"];function Ow(e){let t=(e??{})[ww];return typeof t=="string"&&Cw.includes(t)?t:null}function Pw(e){let t=e?.props;return t?Ow(t)!==null?!0:Object.values(t).some(n=>Array.isArray(n)&&n.some(o=>o&&typeof o=="object"&&"props"in o&&Pw(o))):!1}var kw=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],p2={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"},Iw={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"},f2={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 Km(e){let t={};for(let n of kw){let o=dt(e[Iw[n]]);o&&(t[n]=o)}return t}var g2={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},Aw={lead:"We accept"},b2={...Aw,methods:[],size:"sm",align:"start",dataSource:bc},Mi="site-footer";var Hi=Mi,y2={desktop:!0,tablet:!0,mobile:!0},S2={desktop:!1,tablet:!1,mobile:!1},Bi=1,jm=6,_2=Array.from({length:jm-Bi+1},(e,t)=>Bi+t),Aa={desktop:6,tablet:3,mobile:2},Rw={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}},It=e=>Math.min(Math.max(Math.round(e),Bi),jm);function T2(e){if(typeof e=="number")return Rw[It(e)]??{desktop:It(e),tablet:It(e),mobile:It(e)};if(e&&typeof e=="object"){let t=e;return{desktop:It(t.desktop??Aa.desktop),tablet:It(t.tablet??Aa.tablet),mobile:It(t.mobile??Aa.mobile)}}return{...Aa}}var $i="subscribe-popup",k2="subscribe-popup",Nw=[$i,Mi,Gm,Wm];function Ym(e){return Nw.includes(e)}var Lw=["right","left"],Dw={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
|
|
8
|
-
*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:Ce.autoOpen,autoOpenDelaySec:Ce.autoOpenDelaySec,formSlug:"",trigger:Ce.trigger,scrollPercent:Ce.scrollPercent,showOn:Ce.showOn,showOnPages:[],hideAfter:Ce.hideAfter,hideDays:Ce.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},G=J,Fw=We,Xm=Ia;function Vm(e,t){if(e==null)return t;let n=o=>o.trim()?o:"";if(typeof e=="string")return n(e);if(typeof e=="object"&&"text"in e){let o=e.text;return typeof o=="string"?n(o):""}return t}function Bw(e,t){return Array.isArray(e)?Xm(e,[]):t}function Mw(e,t){return Array.isArray(e)?e.map(n=>{let o=n??{};return{label:G(o.label,""),value:G(o.value,"")}}).filter(n=>n.label||n.value):t}function A2(e){let t=e??{},n=Dw,o=$m(t);return{metaLabel:G(t.metaLabel,n.metaLabel),issueLabel:Vm(t.issueLabel,n.issueLabel),issueNumber:Vm(t.issueNumber,n.issueNumber),kicker:G(t.kicker,n.kicker),heading:G(t.heading,n.heading),deck:G(t.deck,n.deck),stats:Mw(t.stats,n.stats),formLabel:G(t.formLabel,n.formLabel),formHeading:G(t.formHeading,n.formHeading),formIntro:G(t.formIntro,n.formIntro),firstNameLabel:G(t.firstNameLabel,n.firstNameLabel),firstNamePlaceholder:G(t.firstNamePlaceholder,n.firstNamePlaceholder),emailLabel:G(t.emailLabel,n.emailLabel),emailPlaceholder:G(t.emailPlaceholder,n.emailPlaceholder),interestsLabel:G(t.interestsLabel,n.interestsLabel),interests:Xm(t.interests,n.interests),frequencyLabel:G(t.frequencyLabel,n.frequencyLabel),frequencies:Bw(t.frequencies,n.frequencies),submitText:G(t.submitText,n.submitText),finePrint:G(t.finePrint,n.finePrint),dismissText:G(t.dismissText,n.dismissText),emailInvalidText:G(t.emailInvalidText,n.emailInvalidText),submitErrorText:G(t.submitErrorText,n.submitErrorText),successHeading:G(t.successHeading,n.successHeading),successBody:G(t.successBody,n.successBody),keepBrowsingText:G(t.keepBrowsingText,n.keepBrowsingText),formSlug:typeof t.formSlug=="string"?t.formSlug.trim():n.formSlug,autoOpen:o.autoOpen,autoOpenDelaySec:o.autoOpenDelaySec,trigger:o.trigger,scrollPercent:o.scrollPercent,showOn:o.showOn,showOnPages:o.showOnPages,hideAfter:o.hideAfter,hideDays:o.hideDays,formSide:fe(Lw,t.formSide,n.formSide),valuePanelOnPhone:Fw(t.valuePanelOnPhone,n.valuePanelOnPhone),sectionAccent:t.sectionAccent,sectionCorners:t.sectionCorners,sectionCornerSides:t.sectionCornerSides,textStyles:Km(t)}}function Hw(e,t=Math.random){for(;;){let n=`popup-${Math.floor(t()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(n))return n}}function $w(e){return{root:{props:{title:e,kind:Di}},content:[],zones:{}}}function D2(e,t,n){return{slug:Hw(t,n),title:e,kind:ii,layout:$w(e)}}function Ui(e){return e?.root?.props?.kind===Di}function Jm(e){let t=new Map;return(n="")=>{let o=Im(),a=t.get(n);if(!a||a.token===null&&o!==null){let s=o||!jw().usesBridgedToken?e(o??"",n).catch(()=>[]):Promise.resolve([]);return t.set(n,{promise:s,token:o}),s}return a.promise}}var Xw=Jm(async(e,t)=>{let n=t?{siteId:t}:void 0,{pages:o}=xe();return o.linkTargets?o.linkTargets(n):(await o.list(n)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),qw=Jm(async(e,t)=>await xe().blog?.posts(t?{siteId:t}:void 0)??[]);function Zw({value:e,onChange:t,label:n="Link",data:o,filters:a}){let s=Na(()=>Li(o,a),[o,a]),r=c(n);return At(Zm,{label:r,icon:At(Gw,{}),children:At(zw,{value:e,onChange:i=>t(i),kinds:s.kinds,rules:s.rules,filtersFor:s.filtersFor,label:r})})}function Qm(){let{siteId:e,capabilities:t}=Vw(),{offersCommerce:n,hasBlog:o}=t,[a,s]=Ra([]),[r,i]=Ra([]),[l,u]=Ra([]),[d,p]=Ra(null),f=Yw().chrome,m=f?.products?.list,b=f?.linkFilters,y=b?void 0:f?.linkRow,_=Kw(!0);qm(()=>(_.current=!0,()=>{_.current=!1}),[]),qm(()=>{let x=!0;return Xw(e??void 0).then(v=>x&&_.current&&s(v)),o&&qw(e??void 0).then(v=>x&&_.current&&i(v)),n&&m?.().then(v=>x&&_.current&&u(v)),n&&b?b.load(e).catch(()=>null).then(v=>x&&_.current&&p(()=>v)):p(null),()=>{x=!1}},[e,n,o,m,b]);let S=Na(()=>({pages:a.filter(x=>!Ym(x.slug)&&!Ui(x.layout)).map(x=>({slug:x.slug,title:x.label,docs:[x.layout]})),popups:a.filter(x=>x.slug===$i||Ui(x.layout)).map(x=>({slug:x.slug,title:x.label})),posts:o?r.map(x=>({slug:x.slug,title:x.title})):[],products:n?l.map(x=>({href:x.href,name:x.name})):[],offers:{offersCommerce:n,offersService:o}}),[a,r,l,n,o]),E=Na(()=>d?d(S.pages):null,[d,S]);return{data:S,filters:E,pages:a,offersCommerce:n,HostLinkRow:y}}function J2({label:e,icon:t,text:n,onTextChange:o,link:a,onLinkChange:s}){let{data:r,filters:i}=Qm(),l=Na(()=>Li(r,i),[r,i]),u=c(e);return At(Zm,{label:u,icon:t,children:At(Ww,{label:u,text:n,onTextChange:o,link:a,onLinkChange:d=>s(d),kinds:l.kinds,rules:l.rules,filtersFor:l.filtersFor})})}function eh({value:e,onChange:t,label:n="Link"}){let o=typeof e=="string"?e:"",{data:a,filters:s,pages:r,offersCommerce:i,HostLinkRow:l}=Qm(),u=a.pages.map(p=>zn(p.slug)),d=i&&l&&(o==="/"||u.includes(o))?l:void 0;return Uw("div",{children:[At(Zw,{value:o,onChange:t,label:n,data:a,filters:s}),d&&At(d,{value:o,onChange:t,pages:r})]})}import{UiIcon as ag}from"efficient-easel/draw/client";import{VIEW_TIERS as Fa,phoneKey as th,resolveViewValue as Jw,tabletKey as nh,viewKeyAt as M}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as rh,SITE_SIDE as Qw,VIEW_ABOVE as eC,convertLength as ih,isLengthUnit as tC,isSiteSide as lh,sideLengthAt as nC,sideValueAt as oC,withLength as Ba}from"efficient-easel/screen/lib/content/length-units";var me={min:10,max:200,step:10};function aC(e,t,n,o=0){let a=O(e),s=O(t);if(a===void 0&&s===void 0)return;let r=Rt(n),i=l=>l===void 0?void 0:r==="px"?l:Ba(l,r,o);return{paddingTop:i(a),paddingBottom:i(s)}}var Rt=e=>F(e),Gi=(e,t)=>typeof e=="object"?e[t]:e??0,sC=e=>typeof e=="object"&&e!==null&&"top"in e,Yn=(e,t,n)=>sC(e)?Gi(e[t],n):Gi(e,n),rC={top:"top",bottom:"bottom"};function iC(e,t,n,o){let a=O(e),s=O(t);if(a===void 0&&s===void 0)return;let r=Rt(n),i=(l,u)=>l===void 0?void 0:r==="px"?l:Ba(l,r,u);return{paddingTop:i(a,o("top","desktop")),paddingBottom:i(s,o("bottom","desktop"))}}var lC="sf-pad-top-phone",cC="sf-pad-bottom-phone",uC="--sf-pad-t-phone",dC="--sf-pad-b-phone",pC="sf-pad-left-phone",fC="sf-pad-right-phone",mC="--sf-pad-l-phone",hC="--sf-pad-r-phone",gC="sf-pad-top-tablet",bC="sf-pad-bottom-tablet",yC="sf-pad-left-tablet",SC="sf-pad-right-tablet",_C="--sf-pad-t-tablet",TC="--sf-pad-b-tablet",EC="--sf-pad-l-tablet",xC="--sf-pad-r-tablet",ji="sf-section-pad";function Vi(e){let t={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},n=e.totals?.length||typeof e.frame=="object"?(s,r)=>e.totals?.includes(M(s,r))?0:Yn(e.frame,s,r):e.frame,o=typeof n=="function"?iC(e.top,e.bottom,e.unit,n):aC(e.top,e.bottom,e.unit,n),a=Yi({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},t,n,e.sideSpace);return o===void 0&&!a.classes.length&&!Object.keys(a.style).length?null:{className:[ji,...a.classes].join(" "),style:{...o,...a.style}}}var vC=e=>lh(e)?e:O(e),wC=[["top","paddingTop",[gC,_C],[lC,uC]],["bottom","paddingBottom",[bC,TC],[cC,dC]],["left","paddingLeft",[yC,EC],[pC,mC]],["right","paddingRight",[SC,xC],[fC,hC]]];function zi(e,t,n){return!tC(t)||t==="px"?e:ih(e,"px",t,n,{min:0,max:me.max,step:1})}var ch=e=>{let t=eC[e];return t?[e,...ch(t)]:[e]},La=Object.fromEntries(Fa.map(e=>[e,ch(e)]));function CC(e,t,n,o={},a=0){let s={desktop:!0,tablet:t!==void 0,mobile:n!==void 0},r=(b,y,_)=>{if(y==="px")return`${b}px`;let S=La[_].find(x=>s[x])??"desktop",E=Ba(b,y,Gi(a,S));return typeof E=="number"?`${E}px`:E},i={n:e,[nh("n")]:t,[th("n")]:n,u:o.desktop,[nh("u")]:o.tablet,[th("u")]:o.phone},l=Jw("spacing",O(e),O(t),O(n),Ut()),u=(b,y,_)=>{if(oC(i,{side:"n"},b,"side",["side"])?.value===Qw)return Kr().value;let S=nC(i,{side:"n"},"u",b,"side");if(!S)return;let E=y!==null&&!_&&S.unit==="px"&&typeof l[y]=="number";return r(E?l[y]:S.value,S.unit,b)},d=u("desktop",null,!0),p={},f=u("tablet","tablet",t!==void 0);f!==void 0&&(t!==void 0||f!==d)&&(p.tablet=f);let m=u("mobile","phone",n!==void 0);return m!==void 0&&(n!==void 0||m!==d)&&(p.phone=m),p}function Yi(e,t,n={},o=e,a={},s=0,r="box"){let i={},l={},u=[],d=Kr(r),p=!1;for(let[f,m,...b]of wC){let y=f==="left"||f==="right"?vC:O,_=y(e[f]),S=j(rC,f),E=S?typeof s=="function"?{desktop:s(S,"desktop"),tablet:s(S,"tablet"),mobile:s(S,"mobile")}:s:0,x=typeof E=="object"?E.desktop:E;lh(_)?(i[m]=d.value,p=!0):_!==void 0&&(i[m]=Rt(a.desktop)==="px"?_:Ba(_,Rt(a.desktop),x));let v=CC(y(o[f]),y(n[f]),y(t[f]),a,E);for(let[w,[R,C]]of[["tablet",b[0]],["phone",b[1]]]){let D=v[w];D!==void 0&&(u.push(R),l[C]=D,D===d.value&&(p=!0))}}return p&&u.push(...d.className.split(" ")),{classes:u,style:{...i,...l}}}var uh={top:"padTop",bottom:"padBottom",left:"padLeft",right:"padRight"},Xi="padUnit";function OC(e,t){let n=e[Xi],o=(a,s,r)=>{let i=O(a)??(r===void 0?void 0:zi(r,n,"desktop")),l=O(s);return l===void 0?i:(i??0)+zi(l,n,"desktop")};return{top:o(e.padTop,e.sectionPaddingTop,t.top),bottom:o(e.padBottom,e.sectionPaddingBottom,t.bottom)}}function lG(e,t,n={}){let o=OC(e,t),a={...PC(e,uh,!0,Xi),top:o.top,bottom:o.bottom};n.noTop&&Object.assign(a,{top:0,topTablet:void 0,topPhone:void 0});let s=Vi(a),r=s?s.className.split(" ").filter(i=>i!==ji):[];return{...r.length?{className:r.join(" ")}:{},style:s?.style??{}}}var Da={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"},cG=[...["top","bottom","left","right"].map(e=>[uh[e],Da[e]]),[Xi,rh]].flatMap(([e,t])=>[[e,t],...["tablet","mobile"].map(n=>[M(e,n),M(t,n)])]);function PC(e,t=Da,n=!0,o=t===Da?rh:void 0){let a={};if(o){e[o]!==void 0&&(a.unit=e[o]);for(let r of["tablet","mobile"])e[M(o,r)]!==void 0&&(a[M("unit",r)]=e[M(o,r)])}for(let r of n?["top","bottom","left","right"]:["top","bottom"]){a[r]=e[t[r]];for(let i of["tablet","mobile"])a[M(r,i)]=e[M(t[r],i)]}let s=e[kC];if(Array.isArray(s)){let r=dh.flatMap(i=>Fa.filter(l=>s.includes(M(t[i],l))).map(l=>M(i,l)));r.length&&(a.totals=r)}return a}var kC="padTotal",dh=["top","bottom"];function uG(e=Da){return dh.flatMap(t=>Fa.map(n=>M(e[t],n)))}var Wi=16,Ki=24,IC={text:Wi,heading:Ki,line:0},oh={all:{12:"py-3",16:"py-4",24:"py-6"},edge:{12:"max-view-wide:py-3"}},AC={[Wi]:oh.all[Wi],[Ki]:oh.all[Ki],[IC.line]:""};function dG(e,t){return{className:AC[t]??"",...e?{pad:{values:e,frame:t}}:{}}}var pG=e=>({desktop:e.top,tablet:e.top,mobile:e.topPhone});function fG(e,t){if(!t)return{root:sh(e.values,e.frame),outer:null};if(!e.values.totals?.length)return{root:null,outer:ah(e.values)};let n=e.values,{top:o,bottom:a,topTablet:s,bottomTablet:r,topPhone:i,bottomPhone:l,left:u,right:d,leftTablet:p,rightTablet:f,leftPhone:m,rightPhone:b,...y}=n,_={...y,top:o,bottom:a,topTablet:s,bottomTablet:r,topPhone:i,bottomPhone:l},S=sh(e.drawsFrame?RC(_,e.frame):_,e.frame),E=S&&e.drawsFrame?{...S,className:S.className.split(" ").filter(v=>v!==ji).join(" ")}:S,x=["tablet","mobile"].some(v=>["top","bottom"].some(w=>typeof n[M(w,v)]=="number"&&!n.totals?.includes(M(w,v))));return{root:E&&e.edge&&E.className&&!x?{...E,attrs:Nc}:E,outer:ah({...y,totals:void 0,left:u,right:d,leftTablet:p,rightTablet:f,leftPhone:m,rightPhone:b})}}function RC(e,t){let n={...e},o=[...e.totals??[]];for(let a of Fa)for(let s of["top","bottom"]){if(La[a].some(l=>O(e[M(s,l)])!==void 0))continue;let r=l=>Yn(t,s,l),i=La[a][1];i&&r(i)===r(a)||(n[M(s,a)]=zi(r(a),e[M("unit",a)],a),o.push(M(s,a)))}return{...n,totals:o}}function NC(e,t){let n={...e};for(let o of["tablet","mobile"]){let a=M("unit",o),s=["top","bottom","left","right"].some(r=>O(e[M(r,o)])!==void 0);for(let r of["top","bottom"]){if(O(n[M(r,o)])!==void 0)continue;let i=La[o].slice(1).find(d=>O(n[M(r,d)])!==void 0);if(!i||Yn(t,r,i)===Yn(t,r,o)||e.totals?.includes(M(r,i)))continue;let l=O(n[M(r,i)]),u=Rt(n[M("unit",i)]);if(s){let d=Rt(n[a]);n[M(r,o)]=u===d?l:ih(l,u,d,o,{min:0,max:me.max,step:1})}else n[M(r,o)]=l,n[a]=n[M("unit",i)]}}return n}function ah(e){return Vi(e)}function sh(e,t){let n=typeof t=="object"?NC(e,t):e,o=(a,s,r,i,l)=>typeof a!="number"?void 0:Rt(s)==="px"&&!n.totals?.includes(r)?a+Yn(t,i,l):a;return Vi({...n,frame:t,top:o(n.top,n.unit,"top","top","desktop"),bottom:o(n.bottom,n.unit,"bottom","bottom","desktop"),topTablet:o(n.topTablet,n.unitTablet,"topTablet","top","tablet"),bottomTablet:o(n.bottomTablet,n.unitTablet,"bottomTablet","bottom","tablet"),topPhone:o(n.topPhone,n.unitPhone,"topPhone","top","mobile"),bottomPhone:o(n.bottomPhone,n.unitPhone,"bottomPhone","bottom","mobile")})}import{BUTTON_PAD_KEYS as Ma,buttonBorderOf as LC,buttonFillOpacityOf as DC,buttonPadSidesOf as FC,viewKeyAt as BC}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as qi,lengthOf as MC}from"efficient-easel/screen/lib/content/length-units";var HC="px-6 py-4",$C=4,Ha=e=>{let t=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(HC);if(!t)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return t[1]!==void 0?Number(t[1]):Number(t[2])*$C},EG={top:Ha("y"),right:Ha("x"),bottom:Ha("y"),left:Ha("x")},fh="var(--btn)";function UC(e){let t=e.variant==="ghost",n=DC(e.buttonFillOpacity),o=LC(e.buttonBorder),a=W(e.buttonColor);return{fillOpacity:n??(t?0:100),border:{width:o?.width??1,color:o?.color??a??(t?"currentColor":fh)},changed:n!==void 0||o!==void 0}}function xG(e){let t=UC(e);if(!t.changed)return null;let n=W(e.buttonColor)??fh;return{background:t.fillOpacity===0?"transparent":t.fillOpacity===100?n:`color-mix(in srgb, ${n} ${t.fillOpacity}%, transparent)`,borderWidth:MC(t.border.width,F(e.buttonBorderUnit)),borderStyle:"solid",borderColor:t.border.color}}var GC="var(--sf-button-radius, 0)";function vG(e){let t=O(e.buttonCorners),n=De(e.buttonCornerSides);if(t===void 0&&n===null)return null;let o=t===void 0?GC:H(Math.max(0,t),e.buttonCornersUnit);return{borderRadius:n===null?o:Ct(o,n)}}function wG(e){let t=(r,i)=>e[BC(r,i)],n=r=>FC({top:t(Ma.top,r),right:t(Ma.right,r),bottom:t(Ma.bottom,r),left:t(Ma.left,r)})??{},o={desktop:t(qi,"desktop"),tablet:t(qi,"tablet"),phone:t(qi,"mobile")},{classes:a,style:s}=Yi(n("desktop"),n("mobile"),n("tablet"),void 0,o);return Object.keys(s).length?{className:a.join(" "),style:s}:null}var ph="upper";function mh(e,t,n){let o=e&&typeof e=="object"?e:{},a=W(o.textStyle),s=a?W(t?.find(d=>d?.id===a)?.name):void 0,r=a?/^(heading|body)-(\d+)$/.exec(a):null,i=a?s||(r?n.styleName({kind:r[1],n:Number(r[2])}):a):n.noStyle,{cases:l}=n,u=W(o.case)??ph;return`${i} \xB7 ${l[u]??l[ph]}`}import{usePreviewParts as HP}from"efficient-easel/draw/client";import{encodePartId as $P}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as UP,useEaselStrings as GP}from"efficient-easel/strings";import{PIN_STICK_VAR as zC,PIN_TRACK_POSITION_VAR as WC,pinAttrs as hh,pinStickVars as KC,readPin as Qi,readPinEnd as gh}from"efficient-shell/format";var AG="Stick to top",_e={min:0,max:200,step:4,fallback:0},Xn={kind:"position",unitKey:"stickTopDistanceUnit"},bh=zt(Xn),[jC,VC,YC]=bh,tl="Pin while scrolling",yh="Scroll",Oe={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"},qn="stickTopScreens",XC=[qn,"stickTopScreensTablet","stickTopScreensPhone"],nl="Screens",ol="stickTopStop",dn="screen",Sh="Pin stops at",_h=[{value:"header",label:"Under the header"},{value:dn,label:"Screen top"}],Th="header",Eh="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 al(e){return e===dn?dn:"header"}function xh(e){return e===dn?dn:void 0}var sl="stickAbove",vh="Stays above",wh="On: the pinned box stays on top, and the sections after it scroll under it.";function qC(e){return e.stickAbove===!0}var rl="stickEnd",el="away",Ch="Pin ends",Oh=[{value:"over",label:"Next slides over"},{value:el,label:"Scrolls away"}],Ph="over",kh="Next slides over: the next section covers this one before it moves. Scrolls away: this section goes up with the page, and the next section follows under it.";function il(e){return gh(e)}function Ih(e){return gh(e)===el?el:void 0}var ll="scrollCenter",Ah="Center on screen",Rh="On: a scroll that reaches this section stops with it in the middle of the screen. The next scroll goes on. Sections next to it with this on stop together.";function RG(e){return e.scrollCenter===!0}var NG=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...bh,...XC,ol,sl,rl,ll],LG=new Set(["IntroBleed"]),DG=new Set(["CategoryBar","DocTabs","Contents"]);function ZC(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var Zi=e=>Qi(!0,e).length,cl={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},Nh={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function Ji(e,t="px"){let n=O(e)??_e.fallback;return t!=="px"?Math.max(_e.min,n):Math.min(_e.max,Math.max(_e.min,Math.round(n)))}function ul(e){return typeof e.stickTopTablet=="boolean"}function dl(e){return typeof e.stickTopPhone=="boolean"}function pn(e,t={}){let n=t.intro?ZC(e):e.stickTop===!0,o=e,a=F(o[jC]),s=Ji(e.stickTopDistance,a),r=Zi(e.stickTopScreens),i=ul(e),l=i?e.stickTopTablet===!0:n,u=i?F(o[VC]):a,d=i?Ji(e.stickTopDistanceTablet,u):s,p=i?Zi(e.stickTopScreensTablet):r,f=dl(e),m=f?e.stickTopPhone===!0:l,b=f?F(o[YC]):u,y=f?Ji(e.stickTopDistancePhone,b):d,_=f?Zi(e.stickTopScreensPhone):p;return{desktop:n,desktopDistance:s,desktopUnit:a,desktopScreens:r,tablet:l,tabletDistance:d,tabletUnit:u,tabletScreens:p,ownTablet:i,phone:m,phoneDistance:y,phoneUnit:b,phoneScreens:_,ownPhone:f}}function FG(e,t={}){let n=pn(e,{intro:t.atScreenTop});if(!n.desktop&&!n.tablet&&!n.phone)return null;let o=t.atScreenTop===!0&&typeof e.stickTop!="boolean",a=n.desktop&&n.desktopScreens>0||n.tablet&&n.tabletScreens>0||n.phone&&n.phoneScreens>0,s=t.above===!0&&qC(e),r=t.track===!0&&!o&&a&&!s,i=(p,f,m,b)=>kt({tabletClass:"",tabletVar:`${p}-tablet`,phoneClass:"",phoneVar:`${p}-phone`},f,m,b).style,l={...t.atScreenTop||al(e.stickTopStop)===dn?{[Oe.header]:"0px"}:{},[Oe.distance]:H(n.desktopDistance,n.desktopUnit),...i(Oe.distance,H(n.desktopDistance,n.desktopUnit),H(n.tabletDistance,n.tabletUnit),H(n.phoneDistance,n.phoneUnit))};if(r){let p=b=>b?"1":"0",f={...l,...n.desktop?{}:{[Oe.on]:"0"},...i(Oe.on,p(n.desktop),p(n.tablet),p(n.phone)),[Oe.length]:String(n.desktopScreens),...i(Oe.length,String(n.desktopScreens),String(n.tabletScreens),String(n.phoneScreens)),...JC(n.desktop&&n.desktopScreens===0,n.tablet&&n.tabletScreens===0,n.phone&&n.phoneScreens===0,i)},m=hh(Qi(!0),"track",{end:il(e.stickEnd)});return{attrs:m.attrs,style:{...f,...m.style}}}let u=p=>p?"sticky":"static",d={...l,...n.desktop?{}:{[Oe.position]:"static"},...i(Oe.position,u(n.desktop),u(n.tablet),u(n.phone))};return{attrs:hh(Qi(!0),"stick",s?{above:s}:{}).attrs,style:d}}function JC(e,t,n,o){let a=[[Oe.stick,zC],[Oe.trackPosition,WC]],[s,r,i]=[e,t,n].map(KC);return Object.fromEntries(a.flatMap(([l,u])=>[...e?[[l,s[u]]]:[],...Object.entries(o(l,s[u],r[u],i[u]))]))}import{parseOption as QC}from"efficient-shell/format";var eO=["column","row","tabs","accordion"];var tO={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},Lh={Flex:eO,HeroGroup:["column","row"]},nO={Flex:"row",HeroGroup:"column"},oO={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function $a(e,t){return QC(Lh[e],nO[e],t)}function HG(e,t){return oO[$a(e,t)]}function Dh(e){return Lh[e].map(t=>({label:tO[t],value:t}))}import{viewKeyAt as pl}from"efficient-easel/screen/lib/content/view-tiers";import{BORDER_WIDTH_MAX as Ga}from"efficient-easel/screen/lib/content/style-keys";var aO=["solid","dashed","dotted"],za=["top","right","bottom","left"],WG="sf-section-border",KG="sf-section-border-self",sO=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,rO=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Ga,Math.max(0,Math.round(e)))}px`:void 0,Zn={kind:"border",unitKey:"sectionBorderUnit"},jG=zt(Zn);function VG(e){let t=Zn.unitKey;return{desktop:e[pl(t,"desktop")],tablet:e[pl(t,"tablet")],phone:e[pl(t,"mobile")]}}var Fh=(e,t)=>t==="px"?rO(e):typeof e=="number"&&Number.isFinite(e)?H(Math.max(0,e),t):void 0;function Ua(e,{phone:t=!1,tablet:n=!1,unit:o}={}){if(!e||typeof e!="object")return;let a=t?"-phone":n?"-tablet":"",s={},r=F(o);for(let i of za){let l=Fh(e[i],r)??Fh(e.width,r);l!==void 0&&(s[`--sf-border-${i}-width${a}`]=l)}return typeof e.style=="string"&&aO.includes(e.style)&&(s[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&sO.test(e.color)&&(s[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(s).length?s:void 0}function fl(e){let{width:t,...n}=e;return typeof t!="number"?e:{...n,...Object.fromEntries(za.map(o=>[o,n[o]??t]))}}function YG(e,t,n,o={}){let a=Ua(e,{unit:o.desktop}),s=Ua(n,{tablet:!0,unit:o.tablet}),r=Ua(n,{phone:!0,unit:o.tablet}),i=Ua(t,{phone:!0,unit:o.phone}),l=r||i?{...r,...i}:void 0;return a||s||l?{...a,...s,...l}:void 0}import{parseHexColor as iO}from"efficient-shell/format";var fn="var(--section-bg)",ml="inherit";function hl(e,t){return e===ml?fn:e===void 0?t:Wa(e)}var lO=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Wa(e){let t=Ae(e);return t?He(t):e.replace(lO,"var(--site-$1")}var cO={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function gl(e,t,n){let o=hl(e,t);if(!o||o==="transparent")return n.background.toLowerCase();let a=o.trim(),s=a.startsWith("#")?iO(a):null;if(s)return s.toLowerCase();let r=cO[a.replace(/\s+/g,"")];return(r?n[r]:n.background).toLowerCase()}var bl="transparent";function Bh(e,t){let n=hl(e,t);return!n||n===bl?"none":n===fn?"band":null}function Mh(e,t,n=t){let o=s=>!s||s==="transparent",a=hl(e,t);return a===n||o(a)&&o(n)}var Hh=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],$h={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},mn="var(--wheel-stage)",Ka="transparent",Jn="inherit";function ez(e,t){return Wa(yl(e,t))}function yl(e,t){return e===Jn?mn:e==null?t:e===!0?mn:e===!1?Ka:e}function tz(e){return typeof e=="string"&&e!==Jn?Wa(e):mn}function nz(e){return e!==Ka&&e!=="none"&&e!==""}function Uh(e,t){return e===Jn||e===!0?!0:e==null?t===mn:!1}var Gh="inherit",ja="fixed",zh=e=>typeof e!="number"&&e!==ja,uO="var(--sf-heading-max, 9999px)";function sz(e,t,n,o,a){if(typeof e=="number")return H(e,a);if(e===ja)return t;let s=o?`var(--size-${o}, ${t})`:t;return n==="heading"?`min(${s}, ${uO})`:s}var Sl={kind:"fontSize",unitKey:"titleSizeUnit"},_l={kind:"fontSize",unitKey:"bodySizeUnit"},dO=["desktop","mobile"],rz=[Sl,_l].flatMap(e=>zt(e,dO));function iz(e){let t=(n,o)=>Vc(e,n,o);return{titleDesktop:t(Sl,"desktop"),titleMobile:t(Sl,"mobile"),bodyDesktop:t(_l,"desktop"),bodyMobile:t(_l,"mobile")}}var pO=["page","full"],Wh=["full","page"],Nt={full:"Full",page:"Content"},Tl="inherit",fO=e=>typeof e=="string"&&pO.includes(e),mO=e=>e===Tl;function hO(e,t){return mO(e.widthMode)?{mode:"full",inherited:!0}:fO(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:t,inherited:t==="full"}}function pz(e){return hO(e,"page").mode==="full"}var gO={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 fz(e){return ge(gO,e)}var ne={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},mz={kind:"size",unitKey:ne.contentMaxUnit};function bO(e){let t=e[ne.contentMaxUnit],n=F(t),o=e[ne.contentMax],a=n==="px"?Gp(o):typeof o=="number"&&Number.isFinite(o)&&o>0?o:null,s=hn(e[ne.content])??(a===null?null:"content");return{background:hn(e[ne.background]),content:s,contentMax:s==="content"?a:null,contentMaxUnit:n}}function hz(e){let t=bO(e);return t.content===null&&e.fullWidth===!0?{...t,content:"full"}:t}function gz(e){return e.background!==null||e.content!==null}var bz=e=>({[ne.background]:e}),yz=e=>e==="full"?{[ne.content]:e,[ne.contentMax]:void 0,[ne.contentMaxUnit]:void 0}:{[ne.content]:e},Sz=e=>({[ne.content]:"content",[ne.contentMax]:e}),_z=e=>e==="background"?{[ne.background]:void 0}:{[ne.content]:void 0,[ne.contentMax]:void 0,[ne.contentMaxUnit]:void 0},Kh="siteWidths",yO=e=>e==="full"||e==="content";function hn(e){return yO(e)?e:null}function Tz(e,t){return{[Kh]:{background:hn(e),content:hn(t)}}}function Ez(e){let t=e.editor?.metadata?.[Kh];return{background:hn(t?.background),content:hn(t?.content)}}import{useEaselSession as zP}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as WP,describedAs as ct,group as Te,iconOf as Dt,sharedStyleKinds as ro}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as Pg,onDesktopWords as Ft,phoneTwinFields as Nl,saidAlignmentGrid as KP,useLengthUnit as jP}from"efficient-easel/screen/lib/document/box-fields";import{createElement as de}from"react";import{SettingsDefaultReset as SO,SettingsField as jh}from"efficient-easel/panel";import{boxFieldBuilders as _O,describedAs as Vh,iconOf as Yh,onDesktopWords as TO}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as EO}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as xO,PictureTiles as vO,Tooltip as wO,useShellStrings as CO}from"efficient-shell/ui";import{RotateIcon as OO}from"efficient-easel/icons";var Xh=e=>c(e),Qn=EO,q=_O(Xh,{lengthUnits:Qn}),Be=q.slider,Q=q.select,eo=q.Segmented,gn=q.segmented,Rz=q.alignmentField,Nz=q.alignmentFields,Lz=q.blockAlignmentField,Dz=q.blockAlignmentFields,Fz=q.boxJustifyField,Bz=q.boxAlignField,Mz=q.boxWrapField,qh=q.directionField,Va=q.gapField,Hz=q.placementField,$z=q.PlacementGridView,Uz=q.positionFields,Gz=q.sidesPaddingFields,to=q.lengthUnitFields;function zz(e,t){return Be("Angle",de(OO),bo.min,bo.max,bo.step,e,"\xB0",t)}var El=Symbol("efficient-web-builder.picture-picker-row"),PO={width:"3.5rem",height:"2.75rem",words:!0};function kO({value:e}){return CO().iconNames[e]??e}function xl(e,t,n){return de(wO,{content:n,className:"sf-pick-tip",children:de("span",{className:"sf-pick"},de("span",{className:"sf-pick-pic"},e),de("span",{className:"sf-pick-cap"},t))})}function IO(e){let t=n=>n.label===void 0?de(kO,{value:n.value}):c(n.label);return e.map(n=>({value:n.value,...n.label===void 0?{}:{label:c(n.hint??n.label)},icon:xl(n.picture,t(n),n.hint===void 0?t(n):c(n.hint))}))}function Zh(e,t){return de("span",{className:"sf-pick"},de("span",{className:"sf-pick-pic"},e),de("span",{className:"sf-pick-cap sf-pick-cap-closed"},t))}function Wz(e,t,n,o){let a=r=>n.some(i=>i.value===r),s=n.map(r=>({value:r.value,label:r.label}));return{type:"custom",...Vh({},{type:"radio",label:e,options:s}),options:s,render:r=>{let i=r.field?.currentValue,l=a(r.value)?r.value:a(i)?i:o;return de(jh,{label:c(e),icon:Yh(t)},de(vO,{label:c(e),captions:!0,columns:n.length,className:"sf-tiles-row",value:l,onChange:u=>{r.readOnly!==!0&&r.onChange(u)},options:n.map(u=>({value:u.value,label:c(u.label),picture:u.picture}))}))}}}function vl(e,t,n,o,a={}){let s=l=>n.some(u=>u.value===l),r=l=>a.resolve?a.resolve(l):s(l)?l:void 0,i=n.map(l=>({value:l.value,...l.label===void 0?{}:{label:l.label},...l.showWhen?{showWhen:l.showWhen}:{}}));return{type:"custom",[El]:!0,...Vh({},{type:"radio",label:e,options:i}),options:i,render:l=>{let{value:u,onChange:d,field:p}=l,f=p?.options,m=IO(n.filter(v=>!f||f.some(w=>w.value===v.value))),b="follows"in l,y=b?r(a.phoneRest?a.phoneRest(l.follows):l.follows)??o:void 0,_=p?.currentValue,S=r(u)??y??r(_)??o,E=u!=null&&u!=="",x=y===void 0?void 0:n.find(v=>v.value===y);return de(jh,{label:c(e),icon:Yh(t),action:b?de(SO,{words:P()?.panel,label:c(e),changed:E,detail:x?.label!==void 0?TO(Xh,c(x.label),l.followsView):void 0,disabled:l.readOnly===!0,onReset:()=>d(void 0)}):void 0},de(xO,{label:c(e),value:S,options:m,onChange:d,columns:a.columns,cell:a.cell??PO,tooltips:!1,disabled:l.readOnly===!0}))}}}import{VIEW_ABOVE as Ol}from"efficient-easel/screen/lib/content/length-units";import{jsx as h,jsxs as A}from"react/jsx-runtime";import{NoSymbolIcon as HO}from"efficient-easel/icons";import{useId as $O}from"react";import{parseOption as Jh}from"efficient-shell/format";var AO="line",RO=[{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"}],wl={"stripes-fine":{ink:4,period:12},"stripes-medium":{ink:8,period:18},"stripes-bold":{ink:14,period:28}},Vz=28,NO="-45deg",LO="color-mix(in oklab, var(--accent) 50%, var(--bg))";function DO(e){return e!=="line"&&e!=="none"}var FO={sm:24,md:48,lg:80},BO="md",MO=Object.keys(FO);function Yz(e){return Jh(MO,BO,e)}function Xz(e){return Jh(RO,AO,e)}function qz(e){if(!DO(e))return null;let{ink:t,period:n}=wl[e];return`repeating-linear-gradient(${NO}, ${LO} 0 ${t}px, transparent ${t}px ${n}px)`}var Zz={kind:"border",unitKey:"thicknessUnit"},Jz={kind:"size",base:"%",unitKey:"lengthPctUnit"};var Ya=44,Xa=28;function I({children:e}){return h("svg",{width:Ya,height:Xa,viewBox:`0 0 ${Ya} ${Xa}`,"aria-hidden":"true",fill:"currentColor",stroke:"currentColor",strokeWidth:1.25,children:e})}var T=({x:e,y:t,w:n,t:o=2,faint:a=!1})=>h("rect",{x:e,y:t,width:n,height:o,rx:o/2,stroke:"none",opacity:a?.45:1}),N=({x:e,y:t,w:n,h:o})=>h("rect",{x:e,y:t,width:n,height:o,rx:2,fill:"none"}),he=({x:e,y:t})=>h("circle",{cx:e,cy:t,r:1.75,stroke:"none"}),ee=({x1:e,y1:t,x2:n,y2:o})=>h("line",{x1:e,y1:t,x2:n,y2:o});function Cl(e){let t=20/sn,n=5,o=1,a=[],s=0,r=0,i=0;for(let[d,p]of e)s+d>sn&&(r+=i*(n+o),s=0,i=0),a.push({x:12+s*t,y:r,w:d*t-o,h:p*n+(p-1)*o}),s+=d,i=Math.max(i,p);let l=r+i*(n+o)-o,u=(Xa-l)/2;return h(I,{children:a.map((d,p)=>h("rect",{x:d.x,y:u+d.y,width:d.w,height:d.h,rx:1,stroke:"none",opacity:.6},p))})}var sW={bars:A(I,{children:[h(T,{x:8,y:14,w:5,t:10}),h(T,{x:16,y:8,w:5,t:16}),h(T,{x:24,y:18,w:5,t:6}),h(T,{x:32,y:11,w:5,t:13})]}),line:A(I,{children:[h("polyline",{points:"6,22 14,15 22,18 30,8 38,11",fill:"none",strokeWidth:1.75,strokeLinejoin:"round"}),h(ee,{x1:6,y1:25,x2:38,y2:25})]}),donut:A(I,{children:[h("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,opacity:.45}),h("circle",{cx:22,cy:14,r:9,fill:"none",strokeWidth:5,strokeDasharray:"34 57",transform:"rotate(-90 22 14)"})]})};function rW(e){if(e==="none")return h("span",{style:{display:"flex",width:Ya,height:Xa,alignItems:"center",justifyContent:"center"},children:h(HO,{size:20})});if(e==="line")return h(I,{children:h(ee,{x1:4,y1:14,x2:40,y2:14})});let{ink:t,period:n}=wl[e],o=.4,a=[];for(let s=-12;s<Ya;s+=n*o)a.push(h("polygon",{points:`${s},22 ${s+t*o},22 ${s+t*o+10},6 ${s+10},6`,stroke:"none"},s));return h(UO,{children:a})}function UO({children:e}){let t=`sf-div-${$O().replace(/[^\w-]/g,"")}`;return A(I,{children:[h("clipPath",{id:t,children:h("rect",{x:4,y:6,width:36,height:16,rx:2})}),h("g",{clipPath:`url(#${t})`,children:e})]})}var qa=({x:e,y:t,w:n,h:o})=>h("rect",{x:e,y:t,width:n,height:o,rx:2,stroke:"none",opacity:.3}),iW={tabs:A(I,{children:[h(T,{x:5,y:10,w:9}),h(T,{x:18,y:10,w:9,faint:!0}),h(T,{x:31,y:10,w:9,faint:!0}),h(ee,{x1:4,y1:17,x2:40,y2:17}),h(T,{x:4,y:16,w:11,t:2})]}),largeTabs:A(I,{children:[h(ee,{x1:4,y1:5,x2:40,y2:5}),h(he,{x:7,y:10}),h(T,{x:11,y:9,w:16}),h(T,{x:31,y:9,w:9,faint:!0}),h(ee,{x1:4,y1:14,x2:40,y2:14}),h(he,{x:7,y:19}),h(T,{x:11,y:18,w:13,faint:!0}),h(T,{x:31,y:18,w:9,faint:!0}),h(ee,{x1:4,y1:23,x2:40,y2:23})]})},lW={card:A(I,{children:[h(N,{x:10,y:3,w:24,h:22}),h(qa,{x:12,y:5,w:20,h:10}),h(T,{x:13,y:18,w:16}),h(T,{x:13,y:21,w:11,t:1.5,faint:!0})]}),cover:A(I,{children:[h(qa,{x:10,y:3,w:24,h:22}),h(N,{x:10,y:3,w:24,h:22}),h(T,{x:13,y:17,w:16}),h(T,{x:13,y:21,w:11,t:1.5})]})},cW={cards:A(I,{children:[h(N,{x:3,y:5,w:11,h:18}),h(N,{x:17,y:5,w:11,h:18}),h(N,{x:31,y:5,w:11,h:18}),h(T,{x:5,y:9,w:7}),h(T,{x:19,y:9,w:7}),h(T,{x:33,y:9,w:7}),h(T,{x:5,y:13,w:5,t:1.5,faint:!0}),h(T,{x:19,y:13,w:5,t:1.5,faint:!0}),h(T,{x:33,y:13,w:5,t:1.5,faint:!0})]}),"label-only":A(I,{children:[h("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"}),h(T,{x:5,y:18,w:7}),h(T,{x:19,y:18,w:7}),h(T,{x:33,y:18,w:7})]})},uW={table:A(I,{children:[h(N,{x:3,y:5,w:38,h:18}),h(ee,{x1:15.7,y1:5,x2:15.7,y2:23}),h(ee,{x1:28.3,y1:5,x2:28.3,y2:23}),h("path",{d:"M15.7 5v18M28.3 5v18",fill:"none",strokeWidth:2.5}),h(T,{x:6,y:9,w:6,t:3}),h(T,{x:19,y:9,w:6,t:3}),h(T,{x:31,y:9,w:6,t:3}),h(T,{x:6,y:18,w:7,t:1.5,faint:!0}),h(T,{x:19,y:18,w:7,t:1.5,faint:!0}),h(T,{x:31,y:18,w:7,t:1.5,faint:!0})]}),list:A(I,{children:[h(ee,{x1:3,y1:7,x2:13,y2:7}),h(ee,{x1:17,y1:7,x2:27,y2:7}),h(ee,{x1:31,y1:7,x2:41,y2:7}),h(T,{x:3,y:11,w:6,t:3}),h(T,{x:17,y:11,w:6,t:3}),h(T,{x:31,y:11,w:6,t:3}),h(T,{x:3,y:17,w:8,t:1.5,faint:!0}),h(T,{x:17,y:17,w:8,t:1.5,faint:!0}),h(T,{x:31,y:17,w:8,t:1.5,faint:!0})]})},dW={plain:A(I,{children:[h(T,{x:5,y:12,w:9,t:4}),h(T,{x:18,y:12,w:9,t:4}),h(T,{x:31,y:12,w:9,t:4})]}),cards:A(I,{children:[h(N,{x:3,y:7,w:11,h:14}),h(N,{x:17,y:7,w:11,h:14}),h(N,{x:31,y:7,w:11,h:14}),h(T,{x:5,y:13,w:7}),h(T,{x:19,y:13,w:7}),h(T,{x:33,y:13,w:7})]}),marks:A(I,{children:[h(T,{x:8,y:12,w:6,t:4}),h(T,{x:17,y:12,w:6,t:4}),h(T,{x:26,y:12,w:6,t:4}),h(T,{x:35,y:12,w:3,t:4})]}),chips:A(I,{children:[h(N,{x:3,y:9,w:18,h:10}),h(N,{x:23,y:9,w:18,h:10}),h(he,{x:7,y:14}),h(T,{x:10,y:13,w:8}),h(he,{x:27,y:14}),h(T,{x:30,y:13,w:8})]})},pW={overlay:A(I,{children:[h(qa,{x:4,y:3,w:36,h:22}),h(N,{x:4,y:3,w:36,h:22}),h(T,{x:8,y:15,w:18,t:3}),h(T,{x:8,y:20,w:12})]}),stacked:A(I,{children:[h(T,{x:4,y:3,w:18,t:3}),h(T,{x:4,y:8,w:12}),h(qa,{x:4,y:13,w:36,h:12}),h(N,{x:4,y:13,w:36,h:12})]})},fW={split:A(I,{children:[h(T,{x:4,y:6,w:12,t:3}),h(T,{x:4,y:11,w:9,faint:!0}),h(ee,{x1:20,y1:4,x2:20,y2:24}),h(T,{x:24,y:6,w:16}),h(T,{x:24,y:10,w:11,faint:!0}),h(T,{x:24,y:17,w:16}),h(T,{x:24,y:21,w:11,faint:!0})]}),spine:A(I,{children:[h(ee,{x1:9,y1:4,x2:9,y2:24}),h(he,{x:9,y:8}),h(T,{x:14,y:7,w:24}),h(he,{x:9,y:14}),h(T,{x:14,y:13,w:20}),h(he,{x:9,y:20}),h(T,{x:14,y:19,w:24})]}),alternating:A(I,{children:[h(ee,{x1:22,y1:4,x2:22,y2:24}),h(he,{x:22,y:8}),h(T,{x:4,y:7,w:14}),h(he,{x:22,y:14}),h(T,{x:26,y:13,w:14}),h(he,{x:22,y:20}),h(T,{x:4,y:19,w:14})]}),track:A(I,{children:[h(ee,{x1:4,y1:12,x2:40,y2:12}),h(he,{x:8,y:12}),h(he,{x:22,y:12}),h(he,{x:36,y:12}),h(T,{x:4,y:17,w:8}),h(T,{x:18,y:17,w:8}),h(T,{x:32,y:17,w:8}),h(T,{x:4,y:21,w:6,faint:!0}),h(T,{x:18,y:21,w:6,faint:!0}),h(T,{x:32,y:21,w:6,faint:!0})]})},mW={standard:A(I,{children:[h(T,{x:4,y:5,w:10,t:1.5,faint:!0}),h(T,{x:4,y:10,w:28,t:4}),h(T,{x:4,y:18,w:34,faint:!0}),h(T,{x:4,y:22,w:24,faint:!0})]}),editorial:A(I,{children:[h(T,{x:4,y:5,w:5,t:1.5,faint:!0}),h(T,{x:4,y:10,w:20,t:5}),h(T,{x:28,y:11,w:12,faint:!0}),h(T,{x:28,y:15,w:9,faint:!0}),h(ee,{x1:4,y1:22,x2:40,y2:22})]}),simple:A(I,{children:[h(T,{x:4,y:8,w:10,t:1.5,faint:!0}),h(T,{x:4,y:13,w:26,t:4})]}),statement:A(I,{children:[h(T,{x:4,y:6,w:36,t:7}),h(T,{x:4,y:16,w:24,t:7})]}),natural:A(I,{children:[h(T,{x:4,y:8,w:22,t:3}),h(T,{x:4,y:15,w:34,faint:!0}),h(T,{x:4,y:19,w:28,faint:!0})]}),essay:A(I,{children:[h(T,{x:4,y:5,w:24,t:4}),h(T,{x:4,y:13,w:36,faint:!0}),h(T,{x:4,y:17,w:36,faint:!0}),h(T,{x:4,y:21,w:30,faint:!0})]})},hW={"spec-card":A(I,{children:[h(N,{x:4,y:3,w:36,h:22}),h(T,{x:8,y:7,w:14}),h(N,{x:8,y:12,w:8,h:9}),h(N,{x:18,y:12,w:8,h:9}),h(N,{x:28,y:12,w:8,h:9})]}),fitment:A(I,{children:[h(N,{x:4,y:4,w:10,h:5}),h(N,{x:16,y:4,w:10,h:5}),h(N,{x:28,y:4,w:10,h:5}),h(T,{x:4,y:14,w:34,faint:!0}),h(T,{x:4,y:18,w:34,faint:!0}),h(T,{x:4,y:22,w:34,faint:!0})]}),portal:A(I,{children:[h(N,{x:4,y:3,w:36,h:22}),h(T,{x:8,y:7,w:10,t:4}),h(T,{x:8,y:14,w:16,faint:!0}),h(T,{x:26,y:18,w:10,t:4})]}),kanban:A(I,{children:[h(N,{x:4,y:3,w:10,h:22}),h(N,{x:17,y:3,w:10,h:22}),h(N,{x:30,y:3,w:10,h:22}),h(T,{x:6,y:6,w:6,t:4}),h(T,{x:6,y:12,w:6,t:4}),h(T,{x:19,y:6,w:6,t:4}),h(T,{x:32,y:6,w:6,t:4}),h(T,{x:32,y:12,w:6,t:4})]}),claims:A(I,{children:[h(T,{x:4,y:5,w:12,faint:!0}),h(T,{x:20,y:4,w:18,t:4}),h(T,{x:4,y:12,w:12,faint:!0}),h(T,{x:20,y:11,w:10,t:4}),h(T,{x:4,y:19,w:12,faint:!0}),h(T,{x:20,y:18,w:14,t:4})]}),browser:A(I,{children:[h(N,{x:4,y:3,w:36,h:22}),h(ee,{x1:4,y1:8,x2:40,y2:8}),h(T,{x:8,y:11,w:28,t:5,faint:!0}),h(N,{x:8,y:18,w:8,h:4}),h(N,{x:18,y:18,w:8,h:4}),h(N,{x:28,y:18,w:8,h:4})]}),terminal:A(I,{children:[h(N,{x:4,y:3,w:36,h:22}),h("polyline",{points:"8,9 11,11 8,13",fill:"none"}),h(T,{x:13,y:10,w:14}),h(T,{x:8,y:16,w:22,faint:!0}),h(T,{x:8,y:20,w:16,faint:!0})]})},Qh={width:"5.75rem",height:"3.75rem",words:!0},gW={width:"8.5rem",height:"3.75rem",words:!0},bW={columns:A(I,{children:[h(N,{x:3,y:4,w:11,h:8}),h(N,{x:17,y:4,w:11,h:8}),h(N,{x:31,y:4,w:11,h:8}),h(T,{x:3,y:16,w:9}),h(T,{x:17,y:16,w:9}),h(T,{x:31,y:16,w:9}),h(T,{x:3,y:20,w:7,t:1.5,faint:!0}),h(T,{x:17,y:20,w:7,t:1.5,faint:!0}),h(T,{x:31,y:20,w:7,t:1.5,faint:!0})]}),"rows-left":A(I,{children:[h(N,{x:6,y:3,w:14,h:9}),h(T,{x:24,y:5,w:14}),h(T,{x:24,y:9,w:10,t:1.5,faint:!0}),h(N,{x:24,y:16,w:14,h:9}),h(T,{x:6,y:18,w:14}),h(T,{x:6,y:22,w:10,t:1.5,faint:!0})]}),"rows-right":A(I,{children:[h(N,{x:24,y:3,w:14,h:9}),h(T,{x:6,y:5,w:14}),h(T,{x:6,y:9,w:10,t:1.5,faint:!0}),h(N,{x:6,y:16,w:14,h:9}),h(T,{x:24,y:18,w:14}),h(T,{x:24,y:22,w:10,t:1.5,faint:!0})]})};import{TEXT_CONTROL_KINDS as fK,SCALAR_TEXT_CONTROLS as mK}from"efficient-easel/draw";function Bt(e,t){return c("{value} from {from}",{value:e,from:t})}function VP(){let{blockGap:e}=B();return e===null?c("this container's own spacing"):Bt(`${e}px`,c("Styles"))}function YP({inherited:e,onReset:t,label:n}){return g(oe,{words:P()?.panel,label:c(n),changed:!e,detail:VP(),onReset:t})}function XP(e){return Va({...WP,builtIn:qt[e],resolve:(t,n)=>vn(e,t,n?.siteGap),action:(t,n)=>g(YP,{inherited:!Io(e,t),onReset:()=>n(void 0),label:"Gap"}),mark:{[ko]:e}})}function qP(e){return le(te("mobile",{[ko]:e,type:"custom",render:t=>g(QP,{container:e,...t})}),kg)}function ZP(e){return le(te("tablet",{[ko]:e,type:"custom",render:t=>g(JP,{container:e,...t})}),kg)}var kg={not:{field:"gap",in:Array.from({length:-Ue.min},(e,t)=>Ue.min+t)}};function aK(e){return{gap:te("desktop",XP(e)),[Ml("gap")]:ZP(e),[lt("gap")]:qP(e)}}function JP({container:e,...t}){let[n]=Pe("gap"),{siteGap:o}=t.field??{},a=Math.max(Cn.min,vn(e,n,o));return Va({...Cn,builtIn:a,resolve:s=>Qe(s)?s:a,action:(s,r)=>g(oe,{words:P()?.panel,label:c("Gap"),changed:Qe(s),detail:Ft(i=>c(i),`${a}px`),onReset:()=>r(void 0)})}).render(t)}function QP({container:e,...t}){let[n]=Pe("gap"),{siteGap:o,siteGapPhone:a}=t.field??{},s=qs(e,void 0,n,o,a);return Va({...Cn,builtIn:s,resolve:r=>qs(e,r,n,o,a),action:(r,i)=>g(oe,{words:P()?.panel,label:c("Gap"),changed:Qe(r),detail:Bt(`${s}px`,Xs(e,n,a)?c("Styles"):c("Desktop")),onReset:()=>i(void 0)})}).render(t)}function sK(e){return qh({offered:Dh(e),fallback:$a(e,void 0),resolve:t=>$a(e,t)})}function rK(e,t){return yu(t?Su(e,t):[],t)}function ek({inherited:e,onReset:t,label:n}){return g(oe,{words:P()?.panel,label:c(n),changed:!e,detail:Bt(c("Full"),c("the page")),onReset:t})}function Mt({value:e,onChange:t,label:n,placeholder:o,hint:a,multiline:s,hideable:r=!0,markup:i=!0}){let{text:l,hidden:u}=VO(e),d=no(null),p=no(null),f=E=>t(r?{text:E,hidden:u}:E),m=()=>t({text:l,hidden:!u}),b=r&&u,y=pg(),_=a?sk(a)?g("span",{className:"sf-hint-while-typing",children:c(a)}):c(a):void 0,S=u?c("Show {label} on the slide",{label:c(n)}):c("Hide {label} on the slide",{label:c(n)});return g(K,{label:c(n),icon:g(hP,{}),htmlFor:y,className:b?"is-hidden":void 0,hint:_,action:r?g(Bl,{content:S,children:g(Cg,{"aria-pressed":u,"aria-label":S,onClick:m,children:u?g(ag,{name:"eye-off",size:14}):g(ag,{name:"eye",size:14})})}):void 0,children:Ke("div",{className:"sf-copybox",children:[i&&g(Oi,{target:s?p:d,value:l,onChange:f}),s?g("textarea",{id:y,ref:p,value:l,placeholder:o===void 0?void 0:c(o),onChange:E=>f(E.target.value)}):g("input",{id:y,ref:d,type:"text",value:l,placeholder:o===void 0?void 0:c(o),onChange:E=>f(E.target.value)})]})})}function iK(e,t){return{...e,[ZO]:t}}function lK(e){let t=e[je];if(!t)throw new Error("withOffPage: the field holds no authored text");return{...e,[je]:{...t,offPage:!0}}}function cK(e){return!e||typeof e!="object"?!1:e[je]?.offPage===!0}function $l(e){if(!e[je])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[dr]:!0}}function uK(e){return Uo(e)}function dK(e){let t=e[je];if(!t)throw new Error("withIdentifier: the field holds no authored text");return{...e,[je]:{...t,identifier:!0}}}function hK(e,t){if(!e[je])throw new Error("inOwnBox: the field holds no authored text");let{[FP]:n,...o}=e;return{...o,[ur]:!0,render:t}}var tk=new Set(MP),os={type:"radio",options:[{value:!0},{value:!1}]},Ig={text:{type:"object",objectFields:{text:{type:"text"},hidden:os}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:os}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Ht=(e,t)=>{let n=ct({...t,[je]:e},{...Ig[e.control],label:e.label});if(!tk.has(e.control))return n;let o=t.render;return{...Og(n,"authored-copy"),render:a=>g(_m,{name:a.name,children:o(a)})}},gK="Everything else on this block comes from the linked post. Unlink it to edit by hand.",nk={field:"source.slug",set:!0},bK={not:nk},ok="Select a word, then press the highlighter.",ak=new Set([ok]),sk=e=>ak.has(e);function ss(e,t,n){return Ht({control:"text",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n})})}function Ul(e,t,n){return Ht({control:"textarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n,multiline:!0})})}function bn(e,t,n){return Ht({control:"plainText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n,hideable:!1,markup:!1})})}function Ag(e,t,n){return Ht({control:"copyText",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n,hideable:!1})})}function yK(e){return{type:"custom",[XO]:{label:e},...ct({},{type:"text",label:e}),render:({value:t,onChange:n})=>g(eh,{value:YO(t),onChange:n,label:e})}}function SK(e,t,n){return Ht({control:"plainTextarea",label:e,placeholder:t,hint:n},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:e,placeholder:t,hint:n,multiline:!0,hideable:!1})})}var _K={Design:JO,Animation:eP};function TK(e,t){return{type:"custom",render:()=>g(rk,{text:e,values:t})}}function rk({text:e,values:t}){return g("p",{className:"sf-note",children:c(e,t)})}function EK(e){return mg(e)!==null&&e?.tabs!==void 0}var sg=new Map;function xK(e,t){let n=`${e}\0${t?t.join(""):""}`,o=sg.get(n)??{type:"custom",tabs:t,[fg]:{label:e,level:1},bucket:e,marker:!0,render:()=>g(Ve,{})};return sg.set(n,o),o}var rg=new Map;function vK(e){let t=rg.get(e)??{type:"custom",[fg]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>g(Ve,{})};return rg.set(e,t),t}function ik(e){let t=e;return t?.marker===!0&&typeof t.fold=="string"?t.fold:null}function wK(e,t){return ik(e)===t?e:{...e,marker:!0,fold:t,render:()=>g(Ve,{})}}function CK(e){let t=e;if(t.marker===!0&&t.fold===void 0)return e;let{fold:n,...o}=e;return{...o,marker:!0,render:()=>g(Ve,{})}}function OK({title:e,children:t}){let[n,o]=oo(()=>!Pl.has(e));return g(yP,{title:e,open:n,onToggle:a=>{o(a),a?Pl.delete(e):Pl.add(e)},children:t})}var Pl=new Set;function lk({swatches:e,current:t,onPick:n,names:o}){let a=e.find(i=>i.toLowerCase()===t.toLowerCase()),s=a?o?.[a]:void 0,r=s?c(s):t;return Ke("div",{className:"sf-swatches",children:[e.map(i=>{let l=o?.[i]?c(o[i]):i;return g(Bl,{content:l,children:g(OP,{color:i,selected:t.toLowerCase()===i.toLowerCase(),onClick:()=>n(i),"aria-label":l})},i)}),g("span",{className:"sf-swatch-hex",children:r})]})}function PK(e,t,n=!1){return{type:"custom",render:({value:o,onChange:a})=>g(ck,{label:e,builtIn:t,followsBand:n,value:o,onChange:a})}}function ck({label:e,builtIn:t,followsBand:n,value:o,onChange:a}){let s=typeof o=="string"?o:void 0,{colors:r,n:i}=jl(),l={background:r.background,surface:r.surface,surface2:tu(r),band:nu(r)},u=n?fn:t,d=Mh(s,t,u),p=gl(void 0,u,l),f=n?ml:void 0,m=u===fn?c("the theme's section background"):c("Theme {n} background",{n:i}),b=uk(s,t,r,i,l,a),y=Bt(p.toUpperCase(),m),_=Ae(s),S=_?Xt(_,r,i):null;return S?g(Se,{label:c(e),icon:g(eg,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(f),resetTo:y,choices:b}):g(Pn,{label:c(e),icon:g(eg,{}),value:d?"":gl(s,t,l),inherited:p,resetTo:y,onChange:a,onReset:()=>a(f),choices:b})}function uk(e,t,n,o,a,s){let r=Bh(e,t);return[{label:c("No fill"),color:"",selected:r==="none",onPick:()=>s(bl)},{label:`${c("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:r==="band",onPick:()=>s(fn)},...Kl(Ae(e)??"",n,o,s)]}function dk(e,t){return{type:"custom",render:({value:n,onChange:o})=>{let a=n,s=Uh(a,t);return g(K,{label:c(e),icon:g(Al,{}),changed:!s,action:g(oe,{words:P()?.panel,label:c(e),changed:!s,detail:c("the theme's image stage"),onReset:()=>o(Jn)}),children:lk({swatches:Hh,current:s?mn:yl(a,t),onPick:o,names:$h})})}}}function kK(e=n=>n,t){return ro({_gSectionTheme:Te(mu),sectionAccent:{type:"custom",render:({value:n,onChange:o})=>g(vd,{value:e(n),onChange:o,followLabel:t})}})}function rs(e){let t=Z(),n=Ws(e?.view),o=r=>Hl(e.valueKey,r),a=e.numbersIn??(r=>O(t[o(r)])!==void 0),s=e.followsView??Ck(n,a);return jP({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:Qn,label:c(e.label),grid:e.grid,hasOwn:a(n),view:{tier:n,numbersIn:a,followsView:s},convertTo:e.convertTo??(r=>{let i=O(t[o(n)]);return i===void 0?{}:{[o(n)]:r(i)}})})}function pe({min:e,max:t,step:n,value:o,onChange:a,suffix:s="",readout:r=!0,notch:i,ariaLabel:l,disabled:u=!1,placeholder:d,placeholderWord:p,onClear:f,units:m,inputMax:b}){let y=i!==void 0&&Number.isFinite(i)&&i>=e&&i<=t;return g("div",{className:y?"sf-slider has-notch":"sf-slider",style:y?{"--sf-notch":(i-e)/(t-e)}:void 0,children:g(LP,{min:e,max:t,step:n,value:o,...o===null&&d!==void 0?{placeholderValue:d}:{},...p?{emptyLabel:c(p)}:{},suffix:s||void 0,...m?{units:m}:{},...b!==void 0?{inputMax:b}:{},showInput:r,label:l===void 0?void 0:c(l),disabled:u,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:_=>{_===null?f?.():_!==o&&a(_)}})})}function pk(e,t){let{min:n,max:o,step:a=1,unsetLabel:s,hint:r,restTrack:i,unsetMark:l,icon:u,unit:d="px"}=t;return{type:"custom",render:({value:p,onChange:f})=>{let m=typeof p=="number"?p:null,b=m===null;return g(K,{label:c(e),icon:u?Dt(u):void 0,value:b?l||s===void 0?void 0:c(s):`${m}${d}`,changed:!b,action:l?Ll(l,{changed:!b,onReset:()=>f(null)}):g(oe,{words:P()?.panel,label:c(e),changed:!b,onReset:()=>f(null)}),hint:typeof r=="string"?c(r):r,children:i?i({min:n,max:o,step:a,px:m,label:e,onChange:f}):pe({min:n,max:o,step:a,value:m??n,readout:!1,ariaLabel:e,onChange:f})})}}}var ao="Corners",fk={kind:"radius"};function Gl(e){return{type:"custom",render:t=>{let{value:n,onChange:o}=t,a=typeof n=="number"&&Number.isFinite(n)?n:null,s=a!==null;return g(K,{label:c(ao),icon:g(gg,{}),changed:s,action:Ll(e.mark,{changed:s,onReset:()=>o(null)}),hint:e.hint,children:g(mk,{tier:e,px:a,name:t.name,onRadius:o})})}}}function Pe(e){let t=Lt();return[t?.values?.[e],n=>t?.onChange(e,n)]}function Rg(){return Og({type:"custom",render:()=>g(BP,{})},"always")}function cn(){let e=Lt();return t=>e?.onChangeMany(t)}function mk({tier:e,px:t,name:n,onRadius:o}){let a=e.useFollowed(),[s,r]=Pe(e.sidesKey),i=cn(),l=rs({row:e.row??fk,label:ao,grid:{min:ae,max:Ze,step:e.step??1},valueKey:n??"",view:"desktop"}),u=De(s)??[...ia];return g(PP,{label:c(ao),value:u,corners:lf,onChange:d=>{let p=De(d)??[];r(p.length===ia.length?null:p)},radius:t,onRadiusChange:l&&n?d=>i({[n]:d,...l.unitPatch(d===null)}):o,radiusMin:l?.grid.min??ae,radiusMax:l?.grid.max??Ze,radiusStep:l?.grid.step??e.step??1,radiusPlaceholder:l&&l.unit!=="px"?"\u2013":String(a),...l?{radiusUnit:l.unit,units:l.units}:{}})}function Ng(e,t){return to(e,t)}function Lg(){return Rg()}function hk({label:e,changed:t=!1,onReset:n=()=>{}}){let{cornerRadiusPx:o}=B(),a=typeof o=="number"?`${o}px`:c("not set");return g(oe,{words:P()?.panel,label:c(e),changed:t,detail:o==null?c("the built-in corners"):Bt(a,c("Styles")),onReset:n})}function gk(){let{cornerRadiusPx:e}=B();return typeof e=="number"?e:ae}function bk(){return Gl({sidesKey:"sectionCornerSides",row:Jr,useFollowed:gk,mark:g(hk,{label:ao}),hint:yk})}var yk="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function IK(){return ro({_gShape:Te("Shape"),sectionCorners:bk(),...Ng(Jr,"sectionCorners"),sectionCornerSides:Lg(),...ze("sectionBorder",wk),...to(Zn,"sectionBorder",{tablet:!0,phone:!0})})}var Sk=()=>({width:c("Border width"),sides:{top:c("Border top"),right:c("Border right"),bottom:c("Border bottom"),left:c("Border left")},style:c("Border style"),styles:{solid:c("Solid"),dashed:c("Dashed"),dotted:c("Dotted")},color:c("Border color"),unit:"px"});function _k(e){let t=Object.fromEntries(Object.entries(e).filter(([,n])=>n!=null&&n!==""));return Object.keys(t).length?t:void 0}function Tk(){let e;try{let t=ke(B().theme);e=t.themes[t.selected]?.line}catch{e=void 0}return e||qc.line}function Ek({value:e,onChange:t,placeholder:n,presets:o,sides:a=!0,styles:s=!0,above:r={},length:i}){let l=e&&typeof e=="object"?e:{},[u,d]=oo(()=>a?xP(l,r):!1),p=Sk(),f=m=>_k(a&&s?m:{width:m.width,color:m.color,...s?{style:m.style}:{}});return g(K,{label:c("Border"),icon:g(tP,{}),action:a?g(TP,{each:u,label:c("Each side"),onChange:d}):void 0,children:g(_P,{label:c("Border"),value:l,each:u,onChange:m=>t(f(m)),placeholder:n,presets:o,words:i?{...p,unit:i.unit}:p,styles:s,max:i?.grid.max??Ga,...i?{step:i.grid.step,units:i.units}:{}})})}function xk({value:e,onChange:t,view:n}){let[o]=Pe("sectionBorder"),[a]=Pe(Ml("sectionBorder")),s=Tk(),r=f=>f&&typeof f=="object"?f:{},i=n==="phone"?{...fl(r(o)),...fl(r(a))}:n==="tablet"?r(o):{},l=Z(),u=cn(),d=$("sectionBorder",n),p=rs({row:Zn,label:"Border",grid:{min:0,max:Ga,step:1},valueKey:"sectionBorder",view:n,numbersIn:f=>kl(l[Hl("sectionBorder",f)]),convertTo:f=>{let m=r(l[d]);return kl(m)?{[d]:vk(m,f)}:{}}});return g(Ek,{value:e,length:p,onChange:p?f=>u({[d]:f,...p.unitPatch(!kl(f))}):t,placeholder:{sides:EP(i),style:i.style??"solid",color:i.color||s},presets:[s],above:i})}var Dg=["width",...za];function kl(e){if(!e||typeof e!="object")return!1;let t=e;return Dg.some(n=>O(t[n])!==void 0)}function vk(e,t){let n={...e};for(let o of Dg){let a=O(n[o]);a!==void 0&&(n[o]=t(a))}return n}function wk(e){return{type:"custom",render:({value:t,onChange:n})=>g(xk,{value:t,onChange:n,view:e})}}function Ck(e,t){let n=Ol[e];for(;n&&Ol[n]!==null&&!t(n);)n=Ol[n];return n??e}function AK(e){return{type:"custom",render:()=>g(Ok,{partKey:e})}}function Ok({partKey:e}){let[t]=Pe("id"),[n]=Pe("_partStyles"),{textStyles:o}=B(),a=GP(),s=null;try{s=HP().select}catch{s=null}let r=n&&typeof n=="object"?n[e]:void 0,i=Array.isArray(o)?o:null;return g(bP,{name:c("Text"),preview:mh(r,i,{noStyle:c("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??UP.copy.panel).cases}),onOpen:()=>{s&&typeof t=="string"&&s($P(t,e))}})}function Fg(e){let{cornerRadiusPx:t}=B(),n=typeof t=="number"?t:e,o=null;try{let{appState:s,selectedItem:r}=as(l=>l),i=r?.props?.id?String(r.props.id):void 0;o=i?am(s?.data,i)?.props??null:null}catch{o=null}if(!o)return n;let a=o.sectionCorners;return Qr(a)?a:n}function Pk({label:e,changed:t=!1,onReset:n=()=>{}}){let o=Fg(ae);return g(oe,{words:P()?.panel,label:c(e),changed:t,detail:Bt(`${o}px`,c("the section")),onReset:n})}function kk(){return g(Ve,{children:c("Follows the section's Corners until you set a number here.")})}function Ik(){return Gl({sidesKey:"cardCornerSides",row:Hn,useFollowed:()=>Fg(ae),mark:g(Pk,{label:ao}),hint:g(kk,{})})}function Ak(){return{type:"custom",render:()=>g(hf,{})}}function RK(){return{_gShape:Te("Shape"),cardCorners:Ik(),...Ng(Hn,"cardCorners"),cardCornerSides:Lg(),cardCornersApplyAll:Ak()}}function Rk(){return ct({type:"custom",[El]:!0,render:e=>g(Lk,{...e})},{type:"select",label:ft,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 Nk(e,t){let n=Os(e);if(n!=="custom")return c(Cs.find(a=>a.value===n)?.label??"");let o=wg(So(e,t),t);return o?[...o,100-o.reduce((a,s)=>a+s,0)].join(" / "):c("Custom")}function Lk(e){let{value:t,onChange:n}=e,[o]=Pe("content"),a=Array.isArray(o)?o.length:0,s="follows"in e,r=t!=null,i=r?t:s?e.follows:void 0,l=Os(i),u=a>=2&&a<=ng,d=()=>[...AP[a]??[]],p=no(null),f=S=>{let E=p.current;E&&JSON.stringify(S)===JSON.stringify(E.shares)?n(E.value):S&&n(S)},m=S=>{S===l||S==="custom"&&!u||n(S==="custom"?d():S)},b=c("The width bar works for 2 to {count} blocks.",{count:ng}),y=r&&(s||t!=="content"),_=NP().widths.hint(a,IP);return g(K,{label:c(ft),icon:g(ts,{}),changed:y,hint:l!=="custom"?void 0:u?_:b,action:g(oe,{words:P()?.panel,label:c(ft),changed:y,disabled:e.readOnly===!0,detail:s?Ft(S=>c(S),Nk(e.follows,a),e.followsView):c("Fit content"),onReset:()=>n(void 0)}),children:Ke("div",{className:"sf-share-row",children:[g("div",{className:"sf-share-pick",children:g(vg,{label:c(ft),value:l,options:Cs.map(S=>({value:S.value,label:S.value==="custom"&&!u?b:c(S.label),icon:xl(g("span",{className:"sf-gallery-pic sf-share-pic",children:Bg(S.weights).map((E,x)=>g("i",{style:{gridColumn:`span ${E}`}},x))}),c(S.label),S.value==="custom"&&!u?b:c(S.label))})),onChange:m,columns:3,cell:Mg,tooltips:!1,disabled:e.readOnly===!0})}),l==="custom"&&u?g("div",{onFocus:()=>{p.current={value:t,shares:wg(So(i,a),a)}},onBlur:()=>{p.current=null},children:g(RP,{label:c(ft),count:a,value:So(i,a),onChange:f,readOnly:e.readOnly===!0})}):null]})})}function Bg(e){if(!e)return[3,4];let t=e.reduce((n,o)=>n+o,0);return e.map(n=>Math.round(n/t*12))}function NK(){return Q(Hc,g(lP,{}),Is,Is[0].value)}function LK(e){return Q("On a phone",g(pP,{}),[{label:"In the header",value:"header"},{label:"In the menu",value:"menu"}],e)}function DK(){return te("mobile",vl(ft,g(ts,{}),Fc.map(e=>({label:e.label,value:e.value,picture:g("span",{className:"sf-gallery-pic sf-share-pic",children:Bg(e.weights).map((t,n)=>g("i",{style:{gridColumn:`span ${t}`}},n))})})),Bc,{columns:2,cell:Mg}))}var Mg={width:"5.75rem",height:"3.25rem",words:!0};function FK(){return Nl("share",Rk(),Pg)[Ml("share")]}function Dk(){return te("mobile",Be(Ps,g(hg,{}),_o,Dc,1,_o,"",{clear:{phoneFollows:!1,hint:_o}}))}var ig={read:e=>e.phoneRow,write:(e,t,n)=>({phoneRow:n}),fieldKey:()=>"phoneRow",ownField:!0};function BK(){let e=Be(Ps,g(hg,{}),ks,Mc,1,ks,"",{clear:{emptyLabel:"Auto"}}),t=Nl("columns",e,{...ig,tablet:Pg.tablet}),n=Nl("columns",e,ig,{phoneRow:Dk()});return{...t,phoneRow:n.phoneRow}}function MK(e,t,n,o,a,s,r){return{type:"custom",render:({value:i,onChange:l,name:u})=>g(Fk,{label:e,min:t,max:n,step:o,fallback:a,role:s,value:i,onChange:l,name:u??"",length:r})}}function Fk({label:e,min:t,max:n,step:o,fallback:a,role:s,value:r,onChange:i,name:l,length:u}){let d=Z(),p=cn(),f=Ws(u?.view),m=rs({row:u?.row??{kind:"fontSize"},label:e,grid:{min:t,max:n,step:o},valueKey:u?l:"",view:u?.view??"desktop",numbersIn:y=>y===f&&typeof d[l]=="number",followsView:f,convertTo:y=>typeof d[l]=="number"?{[l]:y(d[l])}:{}}),b=y=>m?p({[l]:y,...m.unitPatch(typeof y!="number")}):i(y);return g(K,{label:c(e),icon:g(yi,{noun:s}),action:g(oe,{words:P()?.panel,label:c(e),changed:!zh(r),detail:c("the Text style in Styles"),onReset:()=>b(Gh),defaultAction:{onPress:()=>b(ja),title:c("Keep this section's own built-in size"),icon:g(nP,{})}}),children:pe({min:m?.grid.min??t,max:m?.grid.max??n,step:m?.grid.step??o,value:typeof r=="number"?r:a,...m?{suffix:m.unit,units:m.units}:{suffix:"px"},ariaLabel:e,onChange:b})})}function Ja(e,t,n){return[{label:"Auto",value:""},...Array.from({length:e},(o,a)=>({label:a===0?`1 ${t}`:`${a+1} ${n}`,value:String(a+1)}))]}function HK(){return{_gCellWidth:Te("Cell size"),gridSpan:te("desktop",Q("Positions",g(ts,{}),Ja(fa,"position","positions"),"")),gridRowSpan:te("desktop",Q("Rows tall",g(ns,{}),Ja(ha,"row","rows"),"")),[mi]:Be("At card",g(Sg,{}),1,hi,1,1,""),[lt("gridSpan")]:te("mobile",Q("Positions",g(ts,{}),[{label:"Full row",value:""},...Ja(ma,"position","positions").slice(1)],"")),[lt("gridRowSpan")]:te("mobile",Q("Rows tall",g(ns,{}),Ja(ha,"row","rows"),""))}}function Z(){let e=null,t=null;try{e=dg(Bk),t=as(n=>n).selectedItem}catch{t=null}return e??t?.props??{}}var Bk=zO(null);function Mk({min:e,max:t,step:n,px:o,label:a,onChange:s,desktopKey:r,fallback:i}){let l=Z()[r],u=Oa(void 0,l,i);return g(Ve,{children:pe({min:e,max:t,step:n,value:Oa(o,l,i),readout:!1,ariaLabel:a,notch:u,onChange:s})})}function Hk({label:e,desktopKey:t,fallback:n,unit:o="px",changed:a=!1,onReset:s=()=>{}}){let r=Z()[t],i=Oa(void 0,r,n);return g(oe,{words:P()?.panel,label:c(e),changed:a,detail:Ft(l=>c(l),`${i}${o}`),onReset:s})}function $k(e){return pk(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:g(Hk,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:t=>g(Mk,{...t,desktopKey:e.desktopKey,fallback:e.fallback})})}var Uk={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Gk={Top:Dl,Bottom:_g,Left:Tg,Right:Eg},zk=e=>{let t=Gk[e];return g(t,{})};function $K(e={}){let t=e.keys?.top??"sectionPaddingTop",n=e.keys?.bottom??"sectionPaddingBottom",o=e.group!==!1,a=_=>Uk[_],s=_=>Be(a("Top"),g(Dl,{}),me.min,me.max,me.step,_,"px"),r=(_,S,E,x=me)=>te("mobile",$k({label:a(_),icon:zk(_),desktopKey:S,min:x.min,max:x.max,step:x.step,fallback:E})),i=e.top??me.min,l=e.bottom??me.min,u="sectionPaddingLeft",d="sectionPaddingRight",p=e.sideBounds??me,f=e.side??p.min,m=e.sidePhone??f,b=e.phone===!0,y=_=>b?te("desktop",_):_;return ro({...o?{_gSpacing:Te("Padding")}:{},[t]:y(s(i)),...b?{[lt(t)]:r("Top",t,i)}:{},...e.only==="top"?{}:{[n]:y(Be(a("Bottom"),g(_g,{}),me.min,me.max,me.step,l,"px")),...b?{[lt(n)]:r("Bottom",n,l)}:{}},...e.sides?{[u]:y(Be(a("Left"),g(Tg,{}),p.min,p.max,p.step,f,"px")),...b?{[lt(u)]:r("Left",u,m,p)}:{},[d]:y(Be(a("Right"),g(Eg,{}),p.min,p.max,p.step,f,"px")),...b?{[lt(d)]:r("Right",d,m,p)}:{}}:{}})}function UK(e,t){let n=Object.fromEntries(Object.entries(t).map(([s,r])=>[s,s in e&&mg(r)?e[s]:r])),o={},a=!1;for(let[s,r]of Object.entries(e)){if(s in t){a||Object.assign(o,n),a=!0;continue}o[s]=r}return a||Object.assign(o,n),o}var Qa="Width";function GK(e,t=Wh,n=!0){let o=t.map(a=>({label:Nt[a],value:a}));return ro({...n?{_gWidth:Te(Qa)}:{},widthMode:{type:"custom",render:({onChange:a,field:s})=>g(K,{label:c(Qa),icon:g(gP,{}),action:n?g(ek,{inherited:s?.inherited??!1,onReset:()=>a(Tl),label:Qa}):void 0,children:eo({options:o,value:s?.currentValue||e,onChange:a,ariaLabel:Qa})})}})}function zK({fill:e=!1}={}){let t=(a,s)=>({type:"custom",render:({value:r,onChange:i})=>g(Wk,{value:r,onChange:i,view:a,badge:s,fill:e})}),n=()=>Rl("sectionHeightMode"),o=()=>Rl("sectionHeightMode");return ro({_gHeight:Te(Yt),...ze("sectionHeightMode",a=>a==="desktop"?t(a):t(a,s=>g(Yk,{view:a,onClear:()=>s(void 0)}))),...ze("sectionHeightValue",n),...ze("sectionHeightUnit",o)})}function Wk({value:e,onChange:t,view:n,badge:o,fill:a=!1}){let s=Z(),{mode:r,number:i,unit:l}=Kk(n,s,e);return g(K,{label:Yt,icon:Dt(g(ns,{})),action:o?o(t):void 0,children:Ke("div",{className:"es-width-stack",children:[eo({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:r,onChange:t,ariaLabel:Yt}),i?g(Vk,{view:n,mode:r,menu:l}):null]})})}function Hg(e,t){return e==="phone"&&wo(t)?Pu(t):Cu(t)}function is(e,t){return e==="desktop"||(e==="tablet"?wo(t):Ou(t))?null:Hg(e,t)}function Kk(e,t,n){let o=(a=>Eu.includes(a))(n)?n:is(e,t)?.mode??"auto";return{mode:o,number:o!=="auto"&&o!=="fill",unit:o==="fixed"}}function jk(e,t,n,o){let a=is(e,t);return!a||e==="desktop"?null:o===void 0?{}:{[$("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[$("sectionHeightUnit",e)]:a.unit}:{},...n==="sectionHeightUnit"?{[$("sectionHeightValue",e)]:a.value}:{},[$(n,e)]:o}}function lg(e,t,n){let o=Lt(),a=is(e,Z());return!o||!a?{followed:null,write:n}:{followed:a,write:s=>o.onChangeMany(r=>{let i=jk(e,r,t,s);return i===null?{[$(t,e)]:s}:Object.keys(i).length?i:null})}}function Vk({view:e,mode:t,menu:n}){let o=Lt(),a=Z(),s=$("sectionHeightValue",e),r=$("sectionHeightUnit",e),i=_=>S=>o?.onChangeMany(()=>({[_]:S})),{followed:l,write:u}=lg(e,"sectionHeightValue",i(s)),{write:d}=lg(e,"sectionHeightUnit",i(r)),p=t==="screen"?"%":a[r],f=KO(xu,"px",l?l.unit:p),m=f==="%"?wu:vu,b=a[s],y=n?{options:["px","%"],label:c("Unit"),onChange:_=>d(_)}:void 0;return pe({min:m.min,max:m.max,step:m.step,value:l?null:typeof b=="number"?b:m.fallback,...l?{placeholder:l.value}:{},suffix:f,...y?{units:y}:{},ariaLabel:Yt,onChange:u})}function Yk({view:e,onClear:t}){let n=Z(),o=is(e,n)===null,a=e==="phone"&&wo(n),s=Hg(e,n),r=Ft(i=>c(i),s.mode==="auto"?c("Auto"):`${s.value}${s.unit}`,a?"tablet":"desktop");return g(oe,{words:P()?.panel,label:c(Yt),changed:o,detail:r,onReset:t})}function WK(e={}){let t=e.intro===!0,n=s=>({type:"custom",render:({value:r,onChange:i,id:l,name:u})=>g(oI,{value:r,onChange:i,labelId:`${l??u??"stickTop"}-label`,view:s,intro:t})}),o=s=>({type:"custom",render:({value:r,onChange:i})=>g(eI,{value:r,onChange:i,view:s,intro:t})}),a=s=>({type:"custom",render:({value:r,onChange:i})=>g(tI,{value:r,onChange:i,view:s,intro:t})});return{_gStick:Te(yh,{dot:t?Qk:cl}),...ze("stickTop",n),...e.center&&!t?{[ll]:Jk()}:{},...ze("stickTopDistance",o),...to(Xn,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?ze(qn,a):{},...e.screens?{[rl]:qk()}:{},...t?{}:{[ol]:Xk()},...t||e.above===!1?{}:{[sl]:Zk()}}}function Xk(){return $g(Q(Sh,g(Dl,{}),_h,Th),Eh,al,xh)}function qk(){return $g(Q(Ch,g(bg,{}),Oh,Ph),kh,il,Ih)}function $g(e,t,n,o){return te("desktop",{...e,render:a=>{let s=e.render({...a,value:n(a.value),onChange:r=>a.onChange(o(r))});return Ll(s,{hint:c(t)})}})}function Zk(){return Ug(Ye(vh,!1,g(xg,{}),wh))}function Jk(){return Ug(Ye(Ah,!1,g(oP,{}),Rh))}function Ug(e){return te("desktop",{...e,render:t=>e.render({...t,onChange:n=>t.onChange(n===!0?!0:void 0)})})}var Qk={any:[cl,Nh]};function Gg(e,t,n,o,a){let s=Lt(),r=Z(),i=e==="desktop"||so(e,r)?null:zl(e,pn(r,{intro:o}));return{followed:i,write:(i||a)&&s?l=>s.onChangeMany(u=>{let d=nI(e,u,l,t,o),p=d===null?{[$(t,e)]:l}:d;return Object.keys(p).length?{...p,...a?.(l)??{}}:null}):n}}function eI({value:e,onChange:t,view:n,intro:o}){let a=Z(),s=pn(a,{intro:o}),r=d=>{let p=vo(d);return p==="desktop"||so(p,a)},i=rs({row:Xn,label:"Distance from top",grid:{min:_e.min,max:_e.max,step:_e.step},valueKey:"stickTopDistance",view:n,numbersIn:d=>r(d)&&O(a[Hl("stickTopDistance",d)])!==void 0,followsView:n==="phone"&&s.ownTablet?"tablet":"desktop"}),{followed:l,write:u}=Gg(n,"stickTopDistance",t,o,i?d=>i.unitPatch(d===void 0):void 0);return g("div",{className:"sf-field",children:pe({min:i?.grid.min??_e.min,max:i?.grid.max??_e.max,step:i?.grid.step??_e.step,value:l?null:typeof e=="number"?e:_e.fallback,...l?{placeholder:l.distance}:{},...i?{suffix:i.unit,units:i.units}:{suffix:"px"},ariaLabel:c("Distance from top"),onChange:u})})}function tI({value:e,onChange:t,view:n,intro:o}){let{followed:a,write:s}=Gg(n,qn,t,o);return g(K,{label:c(nl),icon:Dt(g(ns,{})),children:pe({min:Za.min,max:Za.max,step:Za.step,value:a?null:O(e)??Za.default,...a?{placeholder:a.screens}:{},ariaLabel:c(nl),onChange:s})})}function so(e,t){return e==="tablet"?ul(t):dl(t)}function zl(e,t){return e==="phone"?{on:t.tablet,distance:t.tabletDistance,unit:t.tabletUnit,screens:t.tabletScreens}:{on:t.desktop,distance:t.desktopDistance,unit:t.desktopUnit,screens:t.desktopScreens}}function nI(e,t,n,o="stickTopDistance",a=!1){if(e==="desktop"||so(e,t))return null;if(n===void 0)return{};let s=zl(e,pn(t,{intro:a})),r=e==="phone"&&so("tablet",t)?d=>$(d,"tablet"):d=>d,i=(d,p)=>t[r(d)]==null?{}:{[$(d,e)]:p},l=Xn.unitKey,u=t[r(l)]==null?{}:{[$(l,e)]:s.unit};return{[$("stickTop",e)]:!0,...i("stickTopDistance",s.distance),...u,...i(qn,s.screens),[$(o,e)]:n}}function oI({value:e,onChange:t,labelId:n,view:o,intro:a}){let s=Z(),r=pn(s,{intro:a}),i=o==="phone"?r.phone:o==="tablet"?r.tablet:a?r.desktop:e===!0,l=o==="phone"&&r.ownTablet,u=o==="desktop"?null:zl(o,r),d=u?.on?H(u.distance,u.unit):c("Off");return g(K,{label:c(tl),labelId:n,icon:Dt(g(xg,{})),action:Ke(Ve,{children:[o!=="desktop"?g(oe,{words:P()?.panel,label:c(tl),changed:so(o,s),detail:Ft(p=>c(p),d,l?"tablet":"desktop"),onReset:()=>t(void 0)}):null,g(Fl,{checked:i,onChange:t,ariaLabelledBy:n})]})})}var cg="e.g. about";function KK(){return{_gAnchor:Te("Anchor"),anchor:Ht({control:"plainText",label:"Name",placeholder:cg},{type:"custom",render:({value:e,onChange:t})=>g(qf,{value:e,onChange:t,nameBox:(n,o)=>g(Mt,{value:n,onChange:o,label:"Name",placeholder:cg,hideable:!1,markup:!1})})})}}function jK(){return{_gAdvanced:Te("Advanced"),[hu]:Wl}}var Wl={type:"custom",render:({value:e,onChange:t})=>g(K,{label:c("Custom CSS"),icon:Dt(g(wP,{})),children:g(DP,{"aria-label":c("Custom CSS"),spellCheck:!1,autoGrow:!0,className:"font-mono",value:typeof e=="string"?e:"",onChange:n=>t(n.target.value)})})};function VK(e,t,n){return{type:"custom",render:({value:o,onChange:a,id:s,name:r})=>{let i=`${s??r??e}-datetime`,l=Date.parse(typeof o=="string"?o:"");return g(K,{label:c(e),icon:t,htmlFor:i,hint:n===void 0?void 0:c(n),children:g(kP,{id:i,value:Number.isFinite(l)?new Date(l):null,onChange:u=>a(u?u.toISOString():"")})})}}}function Ye(e,t,n,o){return{type:"custom",...ct({},{...os,label:e}),render:a=>{let{value:s,onChange:r,id:i,name:l}=a,u="follows"in a,d=a,p=typeof s=="boolean",f=typeof d.follows=="boolean"?d.follows:t,m=p?s:u?f:t,b=`${i??l??e}-label`,y=d.readOnly===!0,_=g(Fl,{checked:m,onChange:r,disabled:y,ariaLabelledBy:b});return g(K,{label:c(e),labelId:b,icon:n,hint:o===void 0?void 0:c(o),action:u?Ke(Ve,{children:[g(oe,{words:P()?.panel,label:c(e),changed:p,detail:d.followsNoView?c(f?"On":"Off"):Ft(S=>c(S),c(f?"On":"Off"),d.followsView),disabled:y,onReset:()=>r(void 0)}),_]}):_})}}}function zg(){return{type:"custom",render:({value:e,onChange:t,id:n,name:o})=>{let a=`${String(n??o??"pageBackground")}-colour`;return g(aI,{label:"Background",icon:g(dP,{}),id:a,value:e,shown:Si(e),onChange:t})}}}function YK(e,t,n){return{type:"custom",render:({value:o,onChange:a})=>g(Se,{label:c(e),icon:n,value:o||t,onChange:a})}}function aI({label:e,icon:t,id:n,value:o,shown:a,onChange:s}){let{colors:r,n:i}=jl(),l=Ae(o),u=l?Xt(l,r,i):null;return g(Se,{label:c(e),icon:t,id:n,value:u?u.hex:a,caption:u?.words,onChange:s,choices:Kl(l??"",r,i,s)})}function XK(){return{type:"custom",render:e=>{let{value:t,onChange:n}=e,o=e;return g(sI,{value:typeof t=="string"?t:"",onChange:n,twin:"follows"in e?{follows:o.follows,view:o.followsView}:void 0})}}}function Kl(e,t,n,o){let a=Ea(e);return Uu(t,n).map(s=>({label:s.label,color:s.value,selected:a===s.name,onPick:()=>o(s.name)}))}function sI({value:e,onChange:t,twin:n}){let{colors:o,n:a}=jl(),s=o.background,r=Bt(s.toUpperCase(),c("Theme {n} background",{n:a})),[i,l]=Pe(om),[u]=Pe(Ei),d=typeof u=="string"&&u.trim()!=="",p=_a(i),f=v=>l(_a(v)||void 0),m=Ea(e),b=m?Xt(m,o,a):null,y=Kl(e,o,a,t),_=n?()=>t(void 0):()=>t(""),S=s,E=r;if(n){let v=Ea(n.follows),w=Ta(n.follows),R=v?Xt(v,o,a):w?{hex:w,words:w.toUpperCase()}:null;S=R?.hex??s,E=Ft(C=>c(C),R?R.words:r,n.view)}let x=!n&&(Wn(e)||d)?g(rI,{value:p,onChange:f}):null;return b?g(Se,{label:c("Fill"),icon:g(Al,{}),value:b.hex,caption:b.words,onChange:t,changed:!0,onReset:_,resetTo:E,choices:y,children:x}):g(Pn,{label:c("Fill"),icon:g(Al,{}),value:e,inherited:S,resetTo:E,onChange:t,onReset:_,choices:y,children:x})}function rI({value:e,onChange:t}){return eo({options:Sa.map(n=>({label:n.label,value:n.value,hint:n.hint})),value:e,onChange:t,ariaLabel:c("Fill")})}function iI(e,t,n){if((e?.content??[]).some(s=>s?.props?.id===t))return gt(n);let o=sm(e,t);if(o.length===0)return null;let a=gt(zs(n));if(a!==null)return a;for(let s=o.length-1;s>0;s-=1){let r=gt(zs(o[s].sectionAccent));if(r!==null)return r}return gt(o[0].sectionAccent)}function jl(){let e=ke(B().theme),[t]=Pe("sectionAccent"),n=null;try{let{appState:a,selectedItem:s}=as(i=>i),r=s?.props?.id?String(s.props.id):void 0;n=r?iI(a?.data,r,t):null}catch{n=null}let o=n!==null&&e.themes[n]?n:e.selected;return{colors:ce(e.themes[o]),n:o+1}}function qK(){return Rg()}var ZK={top:g(bg,{}),right:g(rP,{}),bottom:g(aP,{}),left:g(sP,{})};function JK(e,t,n,o,a,s,r){let i=p=>t.find(f=>f.value===p),l=p=>({value:p,label:"",disabled:!0,title:o}),u=p=>{let f=t.find(b=>b.cell===p);if(!f)return l(`missing-${p}`);let m=s?.[p];return m?{value:f.value,label:f.label,icon:m}:{value:f.value,label:f.label}},d=[l("corner-top-left"),u("top"),l("corner-top-right"),u("left"),l("centre"),u("right"),l("corner-bottom-left"),u("bottom"),l("corner-bottom-right")];return{type:"custom",render:({value:p,onChange:f})=>{let m=t.some(b=>b.value===p)?p:n;return g(K,{label:c(e),icon:a,value:i(m)?.label?c(i(m).label):r?c(r):"",children:KP(c,{label:e,value:m,onChange:f,points:d})})}}}function QK(e,t,n){return{type:"custom",options:t,render:({value:o,onChange:a,field:s})=>g(Pm,{label:e,options:(s.options??t).map(r=>({...r,label:c(r.label)})),value:Array.isArray(o)?o:[],onChange:a,...n?{emptyLabel:c(n)}:{}})}}function Wg(e,t={}){return{type:"custom",render:({value:n,onChange:o})=>{let a={value:n,onChange:o,...t};return g(e,{...a})}}}var lI={image:"Image",video:"Video"},ej=Lr.map(e=>({label:lI[e],value:e}));function tj(e,t,n){let o=Object.keys(Fr).map(a=>({label:Fr[a],value:a,picture:n[a]}));return{type:"custom",...ct({},{type:"radio",label:e,options:o.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>g(uI,{label:e,icon:t,options:o,onChange:a})}}function cI(e,t,n){let o=Rp(e,t,n);if(o!==void 0)return o==="save-makes-frame"?c("A frame is made from this video when you save the page."):o==="starts-dark"?c("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."):o==="outside"?c("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."):o==="unsupported"?c("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):o==="failed"?c("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."):o==="image-no-frame"?c("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=Ap(e);return a==="frame-missing-image"?c("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?c("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?c("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?c("No image yet. The slide shows its background colour until you choose one."):void 0}function uI({label:e,icon:t,options:n,onChange:o}){let a=Lt(),s=a?.values??{},r=Nn(s),i=dg(jO),l=af(i?.docId??null),u=null;try{u=as(p=>p.appState.data)}catch{u=null}let d=rf(a?.id,u,l);return g(K,{label:c(e),icon:Dt(t),hint:cI(s,d,i?.hasUnsavedEdits??!1),children:eo({options:n,value:r,onChange:o,ariaLabel:e})})}function nj(e,t,n,o={}){let a={type:"custom",[qO]:!0,render:({value:s,onChange:r,name:i})=>g(Cm,{value:s||"",onChange:r,fieldKey:i,label:e,accept:t,placeholder:n,focusKey:o.focus,focusWhen:o.focusWhen,frameKey:o.frame}),...o.focus?{focusKey:o.focus}:{},...o.focusWhen?{focusWhen:o.focusWhen}:{}};return o.focus?te("each",a):a}var oj={HeroSingle:[Cp.image],HeroSlide:["videoFrame","videoFramePhone"],ContactLocations:["locations[].photo"],ProcessSteps:["steps[].image"]};function dI(e){let t=c(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${t} \xB7 ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:t}function Kg({value:e,onChange:t,label:n}){let o=e||{},a=Lt(),s=a?a.values!==a.node.props:!0,r=!!o.pending&&s,i=!!o.pending&&!s,l=!!xe(zP()).geocode,u=pg(),d=(p,f)=>t({...o,[p]:f??void 0});return Ke(Ve,{children:[g(K,{label:c(n),icon:g(tg,{}),action:l?g(Bl,{content:c("Find from the address (OpenStreetMap)"),children:g(Cg,{"aria-label":c("Find from the address"),"aria-busy":r||void 0,disabled:r,onClick:()=>t({...o,pending:!0,ok:!1,status:"Finding\u2026"}),children:g(fP,{})})}):void 0,children:l&&o.status?g(ya,{compact:!0,oneLine:!0,spaced:!1,status:r?"busy":o.ok&&!i?"found":"notfound",statusText:r?c("Finding\u2026"):i?c(Ci):c(o.status),hint:dI(o)}):null}),g(K,{label:c("Enter by hand"),labelId:u,icon:g(iP,{}),action:g(Fl,{checked:!!o.manual,onChange:p=>t({...o,manual:p}),ariaLabelledBy:u})}),o.manual&&g(K,{label:c("Latitude, longitude"),icon:g(tg,{}),children:Ke("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[g(og,{value:typeof o.lat=="number"?o.lat:null,onChange:p=>d("lat",p),min:-90,max:90,step:1e-4,placeholder:c("Latitude")}),g(og,{value:typeof o.lng=="number"?o.lng:null,onChange:p=>d("lng",p),min:-180,max:180,step:1e-4,placeholder:c("Longitude")})]})})]})}function pI(e,t){return t===null||t<0||t>=e.length?"":e[t]?.text??""}function fI(e,t,n){let o=e.map(a=>({text:a?.text??""}));return t===null||t<0||t>=e.length?o:o.map((a,s)=>s===t?{text:n}:a)}function mI(e,t,n){if(n===null||n>=t.length)return null;for(let o=0;o<n;o+=1)if(e[o]!==t[o])return null;return e[n]!==t[n]&&t.includes(e[n])||e[n]!==t[n]&&t.length!==e.length?null:n}var aj={label:"Ticker items",icon:g(uP,{})};function sj(e,t,n,o){return{type:"custom",[je]:{control:"textList",label:e,placeholder:n,itemKey:"text",rendering:o},...ct({},{...Ig.textList,label:e}),render:({value:a,onChange:s})=>g(hI,{label:e,icon:Dt(t),items:Array.isArray(a)?a:[],placeholder:n,onChange:s,markup:o==="markup"})}}function hI({label:e,icon:t,items:n,placeholder:o,onChange:a,markup:s=!1}){let r=no(null),[i,l]=oo(null),u=p=>p.map(f=>({text:f?.text??""})),d=p=>{let f=mI(n,p,i);f===null&&(r.current=null),l(f),a(u(p))};return g(vP,{label:c(e),icon:t,noun:c("item"),items:n,onChange:d,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:s?g(Oi,{target:r,value:pI(n,i),onChange:p=>a(fI(n,i??-1,p)),disabled:i===null,label:i===null?c("Formatting \u2014 click a row first"):c("Formatting \u2014 row {n}",{n:i+1})}):void 0,renderRow:(p,f,m)=>g("input",{type:"text",className:s&&i===f?"sf-list-marking":void 0,value:p?.text??"",placeholder:c(o),"aria-label":c("{label} {n}",{label:c(e),n:f+1}),onChange:b=>m({text:b.target.value}),onFocus:b=>{r.current=b.currentTarget,l(f)}})})}function rj(e,t){let n=`${e.label} \u2014 row ${t+1}`;return Ht({control:"plainText",label:n,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:o,onChange:a})=>g(Mt,{value:o,onChange:a,label:c("{label} \u2014 row {n}",{label:c(e.label),n:t+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function ij(e){return{_gCards:Te("Cards"),coverIndex:Q("Cover image",g(cP,{}),vm,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:dk("Image background",Ka),cardImage:jg()}}function lj(){return{outline:Q("Card outline",g(mP,{}),xm,Em),indexBadge:Q("Card number",g(Sg,{}),Ii,ki),showBadge:Ye("Product badge",!0,g(yi,{noun:"tag"}))}}function cj(e){let t=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},n=a=>({...os,label:es.find(s=>s.id===a).label}),o=a=>ct(Rl(Il),n(a));return{_gShowOnCard:Te("Show on a card"),[Il]:ct({type:"custom",render:()=>g(gI,{rest:{showCardPrice:!0,showCardFinishes:!0,...t}})},n(Il)),showCardFinishes:o("showCardFinishes"),showCardSizes:o("showCardSizes"),showCardBuy:o("showCardBuy"),showCardPage:o("showCardPage")}}var Il="showCardPrice",es=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function gI({rest:e}){let t=Z(),n=cn(),o=r=>typeof t[r]=="boolean"?t[r]:void 0,a=r=>o(r)??e[r],s=es.some(({id:r})=>o(r)!==void 0&&o(r)!==e[r]);return g(Vl,{parts:es,changed:s,shown:a,onPress:(r,i)=>n({[r]:i}),onReset:()=>n(Object.fromEntries(es.map(({id:r})=>[r,void 0])))})}function uj(e,t="display"){let n=lt(t);return{[t]:te("desktop",{type:"custom",render:({value:o,onChange:a})=>g(Vl,{parts:e,changed:um(o),shown:s=>va(o,s),onPress:(s,r)=>a(pm(o,s,r)),onReset:()=>a(void 0)})}),[n]:te("mobile",{type:"custom",render:({value:o,onChange:a})=>g(bI,{parts:e,desktopKey:t,value:o,onChange:a})})}}function Vl({parts:e,changed:t,shown:n,onPress:o,onReset:a,detail:s,disabledReason:r}){let i=c("Display");return g(K,{label:i,icon:g(QO,{}),changed:t,action:g(oe,{words:P()?.panel,label:i,changed:t,detail:s,onReset:a}),children:g(CP,{label:i,items:e.map(l=>({id:l.id,label:c(l.label),shown:n(l.id),...r?{disabled:!0,disabledReason:c(r)}:{}})),onChange:o})})}function bI({parts:e,desktopKey:t,value:n,onChange:o}){let a=Z()[t];return g(Vl,{parts:e,changed:dm(n),shown:s=>wi(a,n,s),onPress:(s,r)=>o(fm(n,s,r)),onReset:()=>o(Pa),detail:c("the same as Desktop")})}function jg(e=Cf){return Be("Card image",g(gg,{}),ae,Ze,wf,ae,e,{clear:{hint:ae},hint:"Rounds the picture. The card's own corner is in Styles."})}function yI(){return to(li,"cardImage")}function dj(){return{cardImage:jg(li),...yI()}}function pj(){return Gl({sidesKey:"cornerSides",row:Of,step:Pf,useFollowed:()=>ae,mark:g(SI,{label:kf}),hint:c("Rounds the picture. Left alone it stays square.")})}function SI({label:e,changed:t=!1,onReset:n=()=>{}}){return g(oe,{words:P()?.panel,label:c(e),changed:t,onReset:n})}function fj(){return{type:"custom",render:({value:e,onChange:t})=>g(xI,{value:typeof e=="string"?e:"",onChange:t})}}var ug="own";function mj(){let e=[{value:ug,label:"Layout's own",picture:Cl(Array.from({length:8},()=>[3,1]))},...Object.entries(pa).map(([t,n])=>({value:t,label:n.label,picture:Cl([...n.phone,...n.phone])}))];return te("mobile",vl("Layout",g(yg,{}),e,ug,{columns:2,cell:Qh}))}function _I({layout:e,width:t}){let n=fi(e),o=n?`${n[0]}/${n[1]}`:void 0;return g("span",{"aria-hidden":"true",style:{display:"grid",width:t,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:o?"auto":6,gridAutoFlow:"row dense",gap:2},children:Df(e).map(([a,s],r)=>g("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${s}`,aspectRatio:o}},r))})}var TI={width:"3.5rem",height:"2.5rem",words:!1},EI=200;function xI({value:e,onChange:t}){let[n,o]=oo(null),[a,s]=oo(4),r=no(null);WO(()=>{let m=r.current;if(!m||typeof ResizeObserver!="function")return;let b=()=>s(m.getBoundingClientRect().width>=EI?4:3);b();let y=new ResizeObserver(b);return y.observe(m),()=>y.disconnect()},[]);let i=e?j(Gn,e):void 0,l=i?e:"",u=di(n,l),d=di(n,"").length,p=Hf("no-symbol"),f=[{value:"",label:c("Not chosen"),icon:Zh(p,c("Not chosen"))},...u.map(m=>({value:m,label:c(Gn[m].label),icon:g(_I,{layout:Gn[m],width:40})}))];return g(K,{label:c("Layout"),icon:g(yg,{}),value:i?c(i.label):void 0,children:g("div",{ref:r,style:{flex:"1 1 auto",minWidth:0},children:g(vg,{label:c("Layout"),value:l,options:f,onChange:t,columns:a,cell:TI,header:Ke("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[g("span",{className:"text-2xs text-ink-faint",children:c("Photos in a row")}),g(SP,{options:[{id:"all",label:c("All")},...Rf.map(m=>({id:String(m),label:String(m)}))],value:n===null?"all":String(n),ariaLabel:c("Photos in a row"),onChange:m=>o(m==="all"?null:Number(m))}),g("span",{className:"text-2xs text-ink-faint",children:c("{n} of {total} layouts",{n:d,total:ui.length})})]})})})})}var OI="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",Yl="Corners";function Vg({value:e,onChange:t,length:n}){let o=e===null;return ls(wI,{label:c(Yl),icon:ls(CI,{}),changed:!o,action:ls(vI,{words:P()?.panel,label:c(Yl),changed:!o,detail:c("the built-in corners"),onReset:()=>t(null)}),hint:c(OI),children:ls(pe,{min:n?.grid.min??ae,max:n?.grid.max??Ze,step:n?.grid.step??1,value:e,...e===null?{}:{suffix:n?.unit??"px",...n?{units:n.units}:{}},placeholder:ae,placeholderWord:"Auto",onClear:()=>t(null),ariaLabel:c(Yl),onChange:t})})}import{jsx as io}from"react/jsx-runtime";import{SettingsDefaultReset as PI,SettingsField as kI}from"efficient-easel/panel";import{IconPicker as II}from"efficient-shell/ui";import{ShadowIcon as AI}from"efficient-easel/icons";import{SHADOW_PREVIEW as RI}from"efficient-easel/screen/lib/document/shadow-values";var Xl={none:"None",soft:"Soft",lifted:"Lifted"},NI="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function Yg({value:e,onChange:t}){let n=e===null,o=e??Us;return io(kI,{label:c("Card shadow"),icon:io(AI,{}),value:c(Xl[o]),changed:!n,action:io(PI,{words:P()?.panel,label:c("Card shadow"),changed:!n,detail:c(Xl[Us]),onReset:()=>t(null)}),hint:c(NI),children:io(II,{label:c("Card shadow"),value:o,options:iu.map(a=>({value:a,label:c(Xl[a]),icon:io("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:RI[a]}})})),onChange:t})})}import{jsx as Xg}from"react/jsx-runtime";import{ShadowIcon as LI}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as qg}from"efficient-easel/screen/lib/document/shadow-values";var DI="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 Zg({value:e,onChange:t}){let n=e===null;return Xg(Pn,{label:c("Shadow color"),icon:Xg(LI,{}),value:e??"",inherited:qg,resetTo:qg,onChange:t,onReset:()=>t(null),hint:c(DI)})}import{jsx as us}from"react/jsx-runtime";import{SettingsDefaultReset as FI,SettingsField as BI}from"efficient-easel/panel";import{AlignSeparateIcon as MI}from"efficient-easel/icons";function cs(e,t){return e==="tablet"?null:e==="mobile"?t.phone:t.desktop}var HI="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",$I="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.",ql="Block gap",Jg=qt.Grid;function Qg(e,t){return cs(e,{desktop:{key:"block_gap",value:t.gap,followsPx:null},phone:{key:"block_gap_phone",value:t.phone,followsPx:t.gap===null?null:Ys(t.gap)}})}function eb({value:e,onChange:t,followsPx:n=null,length:o,followsUnit:a="px"}){let s=e===null,r=n===null?null:`${n}${a}`,i=a==="px"&&(o?.unit??"px")==="px",l=n===null?Jg:i?wn(n)??Jg:n;return us(BI,{label:c(ql),labelId:"sf-block-gap",icon:us(MI,{}),changed:!s,action:us(FI,{words:P()?.panel,label:c(ql),changed:!s,detail:r??c("each block's own spacing"),onReset:()=>t(null)}),hint:c(r===null?HI:$I),children:us(pe,{min:(o?.grid??ye).min,max:(o?.grid??ye).max,step:(o?.grid??ye).step,value:e,...e===null&&n===null?{}:{suffix:o?.unit??"px",...o?{units:o.units}:{}},placeholder:l,...n===null?{placeholderWord:"Auto"}:i&&n===l?{}:{placeholderWord:String(n)},onClear:()=>t(null),ariaLabel:c(ql),onChange:t})})}import{jsx as ds}from"react/jsx-runtime";import{SettingsDefaultReset as UI,SettingsField as GI,SettingsSegmented as zI}from"efficient-easel/panel";import{HoverIcon as WI}from"efficient-easel/icons";var Zl={none:ws.none,lift:ws.lift,highlight:Rc},KI="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 tb({value:e,onChange:t}){let n=e===null,o=e??Gs;return ds(GI,{label:c("Hover effect"),icon:ds(WI,{}),value:c(Zl[o]),changed:!n,action:ds(UI,{words:P()?.panel,label:c("Hover effect"),changed:!n,detail:c(Zl[Gs]),onReset:()=>t(null)}),hint:c(KI),children:ds(zI,{options:lu.map(a=>({id:a,label:c(Zl[a])})),value:o,ariaLabel:c("Hover effect"),onChange:t})})}import{jsx as ps}from"react/jsx-runtime";import{SettingsDefaultReset as jI,SettingsField as VI,SettingsSegmented as YI}from"efficient-easel/panel";import{DropIcon as XI}from"efficient-easel/icons";var Jl="Photography",nb={shot:"As shot",mono:"Black and white"},Ql=[{grayscale:!1,label:nb.shot},{grayscale:!0,label:nb.mono}],qI="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function ob({value:e,onChange:t}){let n=e===null,o=e??!1;return ps(VI,{label:c(Jl),icon:ps(XI,{}),value:c(Ql.find(a=>a.grayscale===o).label),changed:!n,action:ps(jI,{words:P()?.panel,label:c(Jl),changed:!n,detail:c(Ql.find(a=>!a.grayscale).label),onReset:()=>t(null)}),hint:c(qI),children:ps(YI,{options:Ql.map(a=>({id:a.grayscale,label:c(a.label)})),value:o,ariaLabel:c(Jl),onChange:t})})}import{jsx as ec}from"react/jsx-runtime";import{useId as ZI}from"react";import{SettingsField as JI,SettingsSwitch as QI}from"efficient-easel/panel";import{ShareIcon as eA}from"efficient-easel/icons";var tA="Share button",nA="On every blog post.";function ab({value:e,onChange:t}){let n=ZI();return ec(JI,{label:c(tA),labelId:n,icon:ec(eA,{}),action:ec(QI,{checked:e===!0,onChange:t,ariaLabelledBy:n}),hint:c(nA)})}import{usePreviewDevice as gc}from"efficient-easel/draw/client";import{jsx as fs}from"react/jsx-runtime";import{SettingsDefaultReset as oA,SettingsField as aA}from"efficient-easel/panel";import{PaddingXIcon as sA}from"efficient-easel/icons";var tc="Side space",sb=ie.default,rA="The room left at the left and right edge of every page.";function rb(e,t){return cs(e,{desktop:{key:"site_gutter",value:t.gutter,unsetPx:sb,bounds:ie},phone:{key:"site_gutter_phone",value:t.phone,unsetPx:zp(t.gutter,t.gutterUnit),bounds:Le}})}function ib({value:e,onChange:t,unsetPx:n=sb,bounds:o=ie,length:a,restsOn:s=n}){let r=e===null;return fs(aA,{label:c(tc),labelId:"sf-side-space",icon:fs(sA,{}),changed:!r,action:fs(oA,{words:P()?.panel,label:c(tc),changed:!r,detail:`${n}px`,onReset:()=>t(null)}),hint:c(rA),children:fs(pe,{min:(a?.grid??o).min,max:(a?.grid??o).max,step:(a?.grid??o).step,value:e,suffix:a?.unit??"px",...a?{units:a.units}:{},...o.typedMax!==void 0&&(a?.unit??"px")==="px"?{inputMax:o.typedMax}:{},placeholder:s,onClear:()=>t(null),ariaLabel:c(tc),onChange:t})})}import{jsx as nc}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as _3,SettingsBackgroundWidth as iA,SettingsContentWidth as lA}from"efficient-easel/panel";var cA="Background width",uA="Content width";var ms=e=>c(Nt[e==="content"?"page":"full"]),lb="The width of every section's background.",cb="The width of every section's content.";function ub({value:e,changed:t,detail:n,onChange:o,onReset:a,hint:s,labelId:r}){return nc(iA,{value:e,changed:t,detail:n,onChange:o,onReset:a,hint:s?c(s):void 0,labelId:r,words:{label:c(cA),full:ms("full"),content:ms("content")},resetWords:P()?.panel})}function db({mode:e,px:t,max:n=V.max,min:o=V.min,changed:a,detail:s,fullClosed:r,onMode:i,onPx:l,onReset:u,hint:d,labelId:p,length:f}){let m=c(uA),b=f?.grid.min??o,y=f?.grid.max??n,_=e!=="full"?nc(pe,{min:b,max:y,step:f?.grid.step??V.step,value:Math.min(Math.max(t,b),y),onChange:l,...f?{suffix:f.unit,units:f.units}:{suffix:"px"},ariaLabel:m}):null;return nc(lA,{mode:e,onMode:i,number:_,changed:a,detail:s,fullClosed:r,onReset:u,hint:d?c(d):void 0,labelId:p,words:{label:m,full:ms("full"),content:ms("content")},resetWords:P()?.panel})}import{jsx as pb}from"react/jsx-runtime";import{useMemo as dA}from"react";import{TextStyleItem as pA,TextStylesGroup as fA}from"efficient-easel/text-styles";var fb=["font","size","weight","emphasis"],mA=500;function hA({font:e,size:t,weight:n,italic:o}){let a={font:e};return t!==null&&(a.size=t),n!==null&&(a.weight=n),o!==null&&(a.italic=o),{id:"accent",kind:"heading",name:c("Emphasis"),values:a}}function gA(e,t){let n=[],o=e.values,a=t.values;return a.font!==o.font&&a.font!==void 0&&n.push({key:"font",value:a.font}),a.size!==o.size&&n.push({key:"size",value:a.size??null}),a.weight!==o.weight&&n.push({key:"weight",value:a.weight??null}),a.italic!==o.italic&&n.push({key:"italic",value:a.italic??null}),n}function mb(e){let{headingWeight:t,open:n,onOpenChange:o,onChange:a,withoutSize:s=!1}=e,r=hA(e),i=On(),l=dA(()=>Jo(i),[i]);return pb(fA,{label:c("Emphasis"),children:pb(pA,{style:r,fonts:l,settings:s?fb.filter(u=>u!=="size"):fb,auto:["size"],fallback:()=>({weight:t??mA}),open:n,onOpenChange:o,onChange:u=>gA(r,u).forEach(a)})})}import{viewKeyAt as Sb}from"efficient-easel/draw";import{shownUnitAt as EA,unitKeyOnWrite as xA}from"efficient-easel/screen/lib/content/length-units";import{convertRowLength as bA,rowUnits as yA,unitPickPatch as SA}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as _A}from"efficient-easel/draw";var TA=["cornerRadius","siteWidth","siteGutter","siteGutterPhone","blockGap","blockGapPhone"],hs={cornerRadius:{number:"corner_radius_px",kind:"radius",grid:su,tier:"desktop"},siteWidth:{number:"site_width",kind:"size",grid:V,tier:"desktop"},siteGutter:{number:"site_gutter",kind:"spacing",grid:ie,tier:"desktop"},siteGutterPhone:{number:"site_gutter_phone",kind:"spacing",grid:Le,tier:"mobile"},blockGap:{number:"block_gap",kind:"gap",grid:ye,tier:"desktop"},blockGapPhone:{number:"block_gap_phone",kind:"gap",grid:ye,tier:"mobile"}};function gs(e){return{number:hs[e].number,unit:Xc[`${e}Unit`]}}function hb(e,t,n){let o=F(n),{number:a,unit:s}=gs(e);return{[a]:t,[s]:t===null||o==="px"?null:o}}function bs(e,t,n,o){let{kind:a,grid:s,tier:r}=hs[e],i=F(n),l=F(o),u=s.typedMax,d=u!==void 0&&l==="px"?{...s,max:u}:s;return i===l?t:bA(t,i,l,r,{kind:a},d)}function gb(e,t,n,o){let{number:a,unit:s}=gs(e),r=SA({[a]:t},i=>bs(e,i,n,o),s,F(o),"px");return{[a]:r[a],[s]:r[s]??null}}function bb(e,t){let{kind:n,grid:o}=hs[e];return Yc(n,F(t),o)}function yb(e){return yA({kind:hs[e].kind},Qn)}function oc(e,t){let n=_A(e,t);if(!TA.includes(n))throw new Error(`no site length row ${n}`);return n}function lo(e,t,n,o,a){let{siteLengthUnits:s,setSiteLengthUnits:r}=B(),i=`${e}Unit`,l=s[i],u=EA({n:a?.figure??null,u:a?.unit??null,[Sb("n","mobile")]:t,[Sb("u","mobile")]:l??null},{n:"n"},"u","mobile"),d=b=>r({[i]:b==="px"?null:b}),p=b=>{n(b);let y=xA(i,l,u,"px",b===null);i in y&&d(y[i]==null?null:F(y[i])),o(hb(e,b,u),b===null)},f=b=>{let y=F(b);if(y===u||(d(y),t===null))return;let _=gb(e,t,u,y);n(_[gs(e).number]),o(_,!0)},m=a?a.unit===u?a.figure:bs(e,a.figure,a.unit,u):null;return{length:{unit:u,grid:bb(e,u),units:{options:yb(e),onChange:f,label:c("Unit")}},write:p,rest:m,shown:b=>bs(e,b,"px",u)}}import{EmptyState as mR,SliderGroup as hR,Tabs as gR,Tooltip as GY,tabButtonId as bR,tabPanelId as yR}from"efficient-shell/ui";import{ContrastIcon as SR,SettingsIcon as _R,TypeIcon as TR}from"efficient-easel/icons";function _b(e){switch(e.status){case"saved":return null;case"failed":return{msg:c("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:c("Not saved. Reload the page."),tone:"error"};case"template":return{msg:c("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as Ts}from"react/jsx-runtime";import{ListIcon as ZA,PaddingTopIcon as JA,PaddingXIcon as QA}from"efficient-easel/icons";import{jsx as ys}from"react/jsx-runtime";import{SettingsDefaultReset as vA,SettingsField as wA,SettingsSegmented as CA}from"efficient-easel/panel";import{WidthIcon as OA}from"efficient-easel/icons";function Tb({value:e,resolved:t,onChange:n,label:o="Width",labelId:a,followsLabel:s,hint:r}){let i=e===void 0,l=i?t:e,u=c(o);return ys(wA,{label:u,labelId:a,icon:ys(OA,{}),value:i?s:void 0,changed:!i,action:ys(vA,{words:P()?.panel,label:u,changed:!i,onReset:()=>n(void 0)}),hint:r,children:ys(CA,{options:[{label:c(Nt.full),id:"full"},{label:c(Nt.page),id:"content"}],value:l,ariaLabel:u,onChange:n})})}import{group as eR}from"efficient-easel/screen/lib/document/box-fields";import{jsx as ut}from"react/jsx-runtime";import{ColumnsIcon as HA,HeadquartersIcon as $A,HeightIcon as UA,LayoutIcon as GA,LocationIcon as zA,MapIcon as WA,SearchIcon as KA,ThemeIcon as jA}from"efficient-easel/icons";import{group as ic}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as yn}from"efficient-easel/screen/lib/document/device-fields";import{jsx as sc}from"react/jsx-runtime";import{ListIcon as PA}from"efficient-easel/icons";import{NoControlMark as kA,noControlField as IA}from"efficient-easel/screen/lib/document/panel-no-control-mark";function kb(e,t){return Q(e,sc(PA,{}),[{label:t,value:""}],"")}var AA="_sourceEdit";function dV(){return IA({type:"custom",render:()=>sc(kA,{})},"always")}var Eb=new Map,xb=new WeakMap,vb=(e,t)=>({type:"custom",render:()=>sc(ya,{compact:!0,status:"ok",hint:c("Where this content is edited."),edit:{label:e,onClick:t}})});function RA(e){if(Sc(e)){let o=xb.get(e.open);o||xb.set(e.open,o=new Map);let a=o.get(e.label);return a||o.set(e.label,a=vb(e.label,e.open)),a}let t=`${e.label}\0${e.href}`,n=Eb.get(t);return n||(n=vb(e.label,()=>window.open(e.href,"_blank","noopener")),Eb.set(t,n)),n}var wb=new WeakMap,Cb=-1,ac={},Ob=new WeakMap;function Ib(e,t,n){return Tc(e).filter(o=>!o.records||o.key===t||n!==null&&o.records.includes(n))}function NA(e,t,n,o){Cb!==ho()&&(Cb=ho(),ac={});let a=wb.get(t);(!a||Ob.get(a)!==ac)&&(a=new Map,Ob.set(a,ac),wb.set(t,a));let s=Ib(e,n,o),r=n&&!s.some(u=>u.key===n)?n:"",i=`${e}\0${r}\0${o??""}\0${s.map(u=>u.key).join(",")}`,l=a.get(i);return l||(l={...t,options:[...t.options,...s.map(u=>({label:u.label,value:u.key})),...r?[{label:r,value:r}]:[]]},a.set(i,l)),l}var Pb=new WeakMap,LA={not:{field:Xe,set:!0}};function Ab(e,t,n,o={}){let a=t[Xe];if(!a)return t;let s=xc(n),r=Ef(o.root),i=Ib(e,s,r).length>0||s!=="",l=i?NA(e,a,s,r):null,u=Pb.get(t);u||Pb.set(t,u=new Map);let d=`${ho()}\0${i?"1":"0"}\0${s}\0${(o.hides??[]).join(",")}\0${r??""}`,p=u.get(d);if(p)return p;let f=new Set(o.hides??[]),m=s?Ec(s)?.edit:void 0,b={};for(let[y,_]of Object.entries(t))y===Xe?l&&(b[y]=l):y===AA?m&&(b[y]=RA(m)):b[y]=f.has(y)&&_&&typeof _=="object"?le(_,LA):_;return u.set(d,b),b}import{createContext as DA,useContext as FA}from"react";var Rb=DA(null),hV=Rb.Provider,gV=()=>FA(Rb);function bV(e){let t=[];for(let n of e)n.placement!=="located"&&n.placement!=="approximate"||n.lat===null||n.lng===null||t.push({key:n.id,label:n.name,lat:n.lat,lng:n.lng,glyph:"",tone:"",approximate:n.placement==="approximate"});return t}function BA(e){return e===null||!Number.isFinite(e)?"":e<10?`${e.toFixed(1)} km`:`${Math.round(e)} km`}function yV(e,t){let n=[e.city,[e.state,e.postcode].filter(Boolean).join(" ")].filter(Boolean).join(" ");return{name:e.name,address:e.address,place:n,distance:t?BA(e.distanceKm):"",phone:e.phone,phoneHref:e.phone?`tel:${e.phone.replace(/[^\d+]/g,"")}`:"",website:e.website.replace(/^https?:\/\//,"").replace(/\/$/,""),websiteHref:e.website&&!/^[a-z][a-z\d+.-]*:/i.test(e.website)?`https://${e.website}`:e.website}}var MA=[{key:"name",label:"Dealer name",plain:!0},{key:"address",label:"Address"},{key:"place",label:"City \xB7 state \xB7 postcode",plain:!0},{key:"distance",label:"Distance",plain:!0},{key:"phone",label:"Phone"},{key:"phoneHref",label:"Phone link",kind:"link"},{key:"website",label:"Website",plain:!0},{key:"websiteHref",label:"Website link",kind:"link"}],Nb={key:mo,label:"Dealers",blocks:["Footprint"],fields:MA};function SV(e){return[e.name,e.city].filter(Boolean).join(", ")}var TV={text:"Button label",href:"#"},EV=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),co={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 Ss={sectionNumber:co.sectionNumber,heading:`${co.heading}
|
|
9
|
-
*${co.accent}*`,tagline:co.body},rc=vc.Footprint,OV={label:"Locations Map",fields:rc,defaultProps:{sectionNumber:"",heading:"",tagline:"",offices:[],mapTheme:To.mapTheme,padTop:120,padBottom:120,search:!1,searchHint:"",noMatchText:"",listPosition:"below",showDistance:!0}};var Db={field:Xe,is:mo,default:""},lc={field:Gt,is:mt,default:mt},VA={field:Gt,is:"list",default:mt},YA={field:Gt,is:"map",default:mt},Fb={all:[lc,{field:"listPosition",in:["left","right"],default:"below"}]},Bb={any:[{all:[Db,{not:YA}]},Fb]},XA={any:[{all:[lc,{field:"listPosition",is:"below",default:"below"}]},VA]},Lb={all:[Bb,{field:"search",is:!0,default:!1}]};_c([Nb,Yp]);async function cc(e){return Ca(e)?hm(e,t=>[t.address,t.city,t.country].map(n=>String(n??"").replace(/\*/g,"").trim()).filter(Boolean).join(", ")):e}var qA={fields:{_gContent:ic("Section"),sectionNumber:ss("Section number",Ss.sectionNumber),heading:Ul("Heading",Ss.heading),tagline:Ul("Body",Ss.tagline),_gOffices:ic("Offices"),[Xe]:kb("Office content","Manual"),offices:{type:"array",label:"Offices",arrayFields:{role:bn("Role"),city:bn("City"),country:bn("Region \xB7 country"),address:Ag("Address"),phone:bn("Phone"),group:bn("Group"),hq:Ye("HQ",!1,ut($A,{})),geocode:Wg(Kg,{label:"Coordinates"})},defaultItemProps:{role:"Sales & Distribution",city:"City",country:"Country",address:"",phone:"",group:"",hq:!1,lat:0,lng:0},getItemSummary:e=>e?.city||"Office"},...rc,[Gt]:gn("Shows",ut(WA,{}),[{label:"Map and list",value:mt},{label:"Map only",value:"map"},{label:"List only",value:"list"}],mt),mapTheme:gn("Map theme",ut(jA,{}),[{label:"Auto",value:"auto"},{label:"Dark",value:"dark"},{label:"Light",value:"light"}],To.mapTheme),_gList:ic("List"),listPosition:yn("desktop",le(gn("Position",ut(GA,{}),[{label:"Left",value:"left"},{label:"Right",value:"right"},{label:"Below",value:"below"}],"below"),lc)),listColumns:yn("desktop",le(gn("Columns",ut(HA,{}),[{label:"Auto",value:Ls},...Kc.map(e=>({label:String(e),value:String(e)}))],Ls),XA)),[zc]:yn("desktop",le(gn("Map height",ut(UA,{}),[{label:"Fixed",value:Ns},{label:"Full height",value:Wc}],Ns),Fb)),search:yn("desktop",le(Ye("Search",!1,ut(KA,{})),Bb)),searchHint:yn("desktop",le($l(ss("Hint","Type a postcode or address")),Lb)),noMatchText:yn("desktop",le($l(ss("No match","No place found. Try another postcode.")),Lb)),showDistance:le(Ye("Distance",!0,ut(zA,{})),Db)},resolveData:async(e,t)=>{let n=t?.changed,o=e.props;if(n?.listPosition===!0||n?.[Gt]===!0||n?.[Xe]===!0){let i=jc(o);i!==o&&(e={...e,props:i})}let a=e.props,s=a.offices??[],r=await cc(s);return r===s?e:{...e,props:{...a,offices:[...r]}}},resolveFields:(e,{fields:t})=>Uc(Ab("Footprint",t,e.props,{hides:["offices"]}),e.props.headPlacement,$c.Footprint.headRows)},Mb=qA.fields.offices;var _s=null;function jV(e){_s=e}function VV(){return!!(_s&&_s.state().lockHolder)}function uc(){return _s!==null}import{BUCKET_KEY as tR}from"efficient-easel/screen/lib/document/field-buckets";function nR(){return{type:"custom",render:({value:e,onChange:t})=>Ts(Tb,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:c("Follows the site"),hint:c("Whether this page sits on the site's content column, or runs edge to edge."),onChange:n=>t(n)})}}var oR=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],fY={pageBackground:zg(),topSpace:Q("Top space",Ts(JA,{}),oR,Lu),widthChoice:nR()},zb=["pageBackground","topSpace","widthChoice"],aR="Record type",dc=new Map,Hb=-1;function sR(e){Hb!==ai()&&(dc.clear(),Hb=ai());let t=oi(),n=t.some(a=>a.key===e)?"":e,o=dc.get(n);return o||(o=Q(aR,Ts(ZA,{}),[...t.map(a=>({label:a.label,value:a.key})),...n?[{label:n,value:n}]:[]],rt),dc.set(n,o)),o}var $b=new WeakMap;function mY(e,t){if(!Un()||oi().length<2||la in e)return e;let n=sR($n(t)),o=$b.get(e);if(o&&o.row===n)return o.fields;let a={[la]:n,...e};return $b.set(e,{row:n,fields:a}),a}var rR="On: the site's Side space is counted once at each edge of every page. Off: as before.",iR=Ye("Count side space once",!1,Ts(QA,{}),rR),pc={_gWebsite:eR("Website"),[wt]:iR,[ot]:Mb,[Fn]:Wl},Ub=new WeakMap;function hY(e,t){if(t?.kind!==Hi||wt in e)return e;let n=Ub.get(e);return n||(n={...e,...pc},Ub.set(e,n)),n}function gY(e){if(!uc()||wt in e)return e;let t=Gb.get(e);if(!t){t={};let n=!1;for(let[o,a]of Object.entries(e))o===lR&&!n&&(Object.assign(t,pc),n=!0),t[o]=a;n||Object.assign(t,pc),Gb.set(e,t)}return t}var lR=tR.Animation,Gb=new WeakMap;function bY(e){return uc()?Wb(e):e}function Wb(e){let t=e?.props;if(!t||!Array.isArray(t[ot]))return e;let n=t[ot];return Ca(n)?cc(n).then(o=>({...e,props:{...t,[ot]:[...o]}})):e}function yY(e){return e?.props?.kind===Hi?Wb(e):e}import{previewFrame as ER}from"efficient-easel/screen/lib/document/preview-dom";import{pictureShadowColor as xR}from"efficient-easel/screen/lib/document/shadow-values";var mc="sf-site-styles",vR="sf-site-styles-tabpanel",o5="text",Vb="basics",Kb="this-page-group",Es=[{id:Vb,label:"Basics",icon:L(_R,{})},{id:"theme",label:"Theme",icon:L(SR,{})},{id:"text",label:"Text",icon:L(TR,{})}];function wR({themeFromDocument:e,persist:t}){let{appState:n,dispatch:o}=jb(u=>u),{theme:a,setTheme:s}=B(),r=n.data,i=r.root?.props??{},l=u=>{if(e){let d={...i,theme:u};o({type:"replaceRoot",root:{...r.root,props:d},recordHistory:!0})}else s(u);t({selected_preset:u.selected,theme_presets:u.themes})};return L(xp,{value:e?i.theme:a,onChange:l})}function CR({themeFromDocument:e,persist:t}){let[n,o]=hc(null),{theme:a,setFonts:s,setSizes:r,setHeadingTypography:i}=B(),l=yp({themeFromDocument:e,persist:t}),{old:u,saved:d,writeRoot:p}=l,f=l.fonts,m=l.sizes,b=l.typography,y=kR,_=C=>l.write(C),S=gp(a),E=bp(a),x=C=>{let D={...f,accent:C};e?p({fonts:D}):s(D),t({accent_font:C})},v=C=>{r({...m,accent:C}),t({accent_size_px:C})},w=C=>{let D={...b,weightStrong:C};e?p({headingTypography:D}):i(D),t({heading_weight_strong:C})},R=C=>{let D={...b,italicStrong:C};e?p({headingTypography:D}):i(D),t({accent_italic:C})};return $t(Sn,{children:[L(fp,{saved:d,old:u,colours:S,colourNameOf:E,sizeOf:y,onChange:_,openId:n===fc?null:n,onOpenChange:o,withoutSize:e}),L(mb,{font:f.accent,size:m.accent,weight:b.weightStrong,italic:b.italicStrong,headingWeight:b.weight,open:n===fc,onOpenChange:C=>o(C?fc:null),onChange:C=>{C.key==="font"?x(C.value):C.key==="size"?v(C.value):C.key==="weight"?w(C.value):R(C.value)},withoutSize:e})]})}var fc="accent",OR={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},PR={heading:32,body:14};function kR(e){return e.values.size??AR(j(OR,e.id)??"body")??PR[e.kind]}var IR={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 AR(e){if(typeof document>"u")return null;let t=(ER()?.contentDocument??document).querySelector(IR[e]);if(!t)return null;let n=parseFloat(getComputedStyle(t).fontSize);return Number.isFinite(n)?n:null}function RR({themeFromDocument:e,persist:t}){let{appState:n,dispatch:o}=jb(f=>f),{cornerRadiusPx:a,setCornerRadiusPx:s}=B(),r=n.data,i=r.root?.props??{},l=i.cornerRadiusPx===void 0?ru[au(i.cornerStyle)]:Ie(i.cornerRadiusPx),u=e?l:a,d=lo("cornerRadius",a,s,t),p=f=>o({type:"replaceRoot",root:{...r.root,props:{...i,...f}},recordHistory:!0});return L(Vg,{value:u,onChange:f=>{e?(p({cornerRadiusPx:f}),t({corner_radius_px:f})):d.write(f)},...e?{}:{length:d.length}})}function NR({persist:e}){let{siteWidth:t,setSiteWidth:n,sectionBackgroundWidth:o,setSectionBackgroundWidth:a,sectionContentWidth:s,setSectionContentWidth:r}=B(),i=gc(),l=lo("siteWidth",t??null,n,e);if(i!=="desktop")return null;let u=typeof t=="number"?t:l.shown(V.default),d=l.write,p=m=>{a(m),e({section_background_width:m},!0)},f=m=>{r(m),e({section_content_width:m},!0)};return $t(Sn,{children:[L(ub,{value:o??"full",changed:o!==null,detail:c("Full width"),onChange:p,onReset:()=>p(null),hint:lb}),L(db,{mode:s??"content",px:u,min:V.min,max:V.max,changed:typeof t=="number"||s!==null,detail:`${c("Content width")} ${V.default}px`,onMode:f,onPx:m=>d(m),onReset:()=>{f(null),d(null)},hint:cb,length:l.length})]})}function LR({persist:e}){let{siteGutter:t,siteGutterPhone:n,setSiteGutter:o,setSiteGutterPhone:a,siteLengthUnits:s}=B(),r=rb(gc(),{gutter:t,phone:n,gutterUnit:s.siteGutterUnit}),i=r?.key==="site_gutter_phone",l=lo(oc("siteGutter",i?"mobile":"desktop"),r?.value??null,i?a:o,e);return r?L(ib,{value:r.value,onChange:l.write,unsetPx:r.unsetPx,restsOn:l.shown(r.unsetPx),bounds:r.bounds,length:l.length}):null}function DR({persist:e}){let{blockGap:t,blockGapPhone:n,setBlockGap:o,setBlockGapPhone:a,siteLengthUnits:s}=B(),r=Qg(gc(),{gap:t,phone:n}),i=r?.key==="block_gap_phone",l=r?.followsPx==null?null:{figure:r.followsPx,unit:F(s.blockGapUnit)},u=lo(oc("blockGap",i?"mobile":"desktop"),r?.value??null,i?a:o,e,l);return r?L(eb,{value:r.value,onChange:u.write,followsPx:u.rest,followsUnit:u.length.unit,length:u.length}):null}function FR({persist:e}){return $t(Sn,{children:[L(NR,{persist:e}),L(LR,{persist:e}),L(DR,{persist:e})]})}function BR(e){return{card_shadow:e}}function MR(e){return e===null?{shadow_color:null}:{shadow_color:xR(e)}}function HR(e){return{hover_effect:e}}function $R({persist:e}){let{cardShadow:t,setCardShadow:n,shadowColor:o,setShadowColor:a,hoverEffect:s,setHoverEffect:r}=B();return $t(Sn,{children:[L(Yg,{value:t,onChange:i=>{n(i),e(BR(i),!0)}}),L(Zg,{value:o,onChange:i=>{a(i),e(MR(i),i===null)}}),L(tb,{value:s,onChange:i=>{r(i),e(HR(i),!0)}})]})}function UR(e){return{photography_grayscale:e}}function GR({persist:e}){let{photographyGrayscale:t,setPhotographyGrayscale:n}=B();return L(ob,{value:t,onChange:o=>{n(o),e(UR(o),!0)}})}function zR({persist:e}){return L(Sn,{children:L(GR,{persist:e})})}function WR(e){return{share_button_on_posts:e}}function KR({persist:e}){let{shareButtonOnPosts:t,setShareButtonOnPosts:n}=B();return L(ab,{value:t,onChange:o=>{n(o),e(WR(o),!0)}})}function a5(){let{websiteName:e}=B();return e?.trim()||Du}function s5({themeFromDocument:e=!1,tokenRef:t,siteId:n,onNotify:o,tab:a,onTabChange:s,initialTab:r,revealPageGroup:i=!1,onPageGroupRevealed:l}){let{persist:u}=Fo({themeFromDocument:e,tokenRef:t,siteId:n,onResult:_=>{let S=_b(_);S&&o?.(S.msg,S.tone)}}),[d,p]=hc(r??Es[0].id),f=a!==void 0,m=f?a:d,b=f?s??(()=>{}):p,y=Es.find(_=>_.id===m)??Es[0];return $t(hR,{children:[L(YR,{activeId:y.id,onSelect:b}),$t("div",{id:yR(mc,y.id),className:vR,role:"tabpanel","aria-labelledby":bR(mc,y.id),children:[m===Vb&&$t(Sn,{children:[L(RR,{themeFromDocument:e,persist:u}),!e&&L($R,{persist:u}),!e&&L(FR,{persist:u}),!e&&L(zR,{persist:u}),!e&&L(KR,{persist:u}),L(jR,{reveal:i,onRevealed:l})]}),m==="theme"&&L(wR,{themeFromDocument:e,persist:u}),m==="text"&&L(CR,{themeFromDocument:e,persist:u})]})]})}function jR({reveal:e,onRevealed:t}){let[n,o]=hc(!0),a=fR(t);return a.current=t,pR(()=>{if(!e)return;o(!0);let s=requestAnimationFrame(()=>{document.getElementById(Kb)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(s)},[e]),L(dR,{title:c("This page"),open:n,onToggle:o,id:Kb,children:L(VR,{})})}function VR(){let{fields:e,values:t,readOnly:n,onChange:o}=cR(),a=Object.fromEntries(zb.filter(s=>s in e).map(s=>[s,e[s]]));return Object.keys(a).length===0?L(mR,{variant:"none",icon:!1,message:c("This page has no look of its own to set.")}):L(uR,{fields:a,values:t,onChange:o,readOnly:n,tabs:!1,idPrefix:"this-page",ariaLabel:c("This page")})}function YR({activeId:e,onSelect:t}){return L("div",{className:"es-insp-tabs",children:L(gR,{variant:"underline",block:!0,labelsFit:!0,"aria-label":c("Styles"),idPrefix:mc,value:e,onChange:t,items:Es.map(n=>{let o=c(n.label);return{id:n.id,icon:n.icon,label:o}})})})}export{xe as a,rN as b,ZR as c,P as d,JR as e,QR as f,c as g,xn as h,V as i,WT as j,Wr as k,ZD as l,Fp as m,eF as n,ie as o,zr as p,Le as q,we as r,nt as s,nF as t,XT as u,oF as v,Kr as w,aF as x,sF as y,rF as z,ZT as A,iF as B,lF as C,cF as D,uF as E,Hp as F,dF as G,Up as H,pF as I,fF as J,zp as K,Wp as L,Kp as M,rE as N,iE as O,bF as P,SF as Q,_F as R,TF as S,EF as T,Wh as U,Nt as V,hO as W,pz as X,gO as Y,fz as Z,ne as _,mz as $,bO as aa,hz as ba,gz as ca,bz as da,yz as ea,Sz as fa,_z as ga,hn as ha,Tz as ia,Ez as ja,If as ka,sn as la,tx as ma,ui as na,pi as oa,CM as pa,fi as qa,sx as ra,OM as sa,fa as ta,Bf as ua,ma as va,rx as wa,ix as xa,AM as ya,RM as za,NM as Aa,lx as Ba,LM as Ca,mi as Da,DM as Ea,FM as Fa,BM as Ga,MM as Ha,HM as Ia,$M as Ja,UM as Ka,GM as La,zM as Ma,cx as Na,Lr as Oa,Cp as Pa,OT as Qa,fD as Ra,Op as Sa,PT as Ta,mD as Ua,Pp as Va,kT as Wa,hD as Xa,AG as Ya,qn as Za,XC as _a,ol as $a,dn as ab,sl as bb,rl as cb,ll as db,RG as eb,NG as fb,LG as gb,DG as hb,cl as ib,Nh as jb,FG as kb,De as lb,Jr as mb,mB as nb,Ct as ob,WG as pb,KG as qb,jG as rb,VG as sb,YG as tb,Yn as ub,Vi as vb,vC as wb,zi as xb,Yi as yb,uh as zb,Xi as Ab,OC as Bb,lG as Cb,Da as Db,cG as Eb,PC as Fb,kC as Gb,uG as Hb,IC as Ib,oh as Jb,dG as Kb,pG as Lb,fG as Mb,wF as Nb,uE as Ob,dE as Pb,CF as Qb,$e as Rb,Po as Sb,Vu as Tb,f0 as Ub,m0 as Vb,zu as Wb,_i as Xb,UH as Yb,GH as Zb,em as _b,WH as $b,KH as ac,jx as bc,jH as cc,nm as dc,VH as ec,YH as fc,tm as gc,om as hc,XH as ic,Wn as jc,Ei as kc,qH as lc,ZH as mc,JH as nc,QH as oc,$o as pc,CS as qc,kd as rc,Id as sc,In as tc,kS as uc,Uo as vc,Ld as wc,QN as xc,e1 as yc,pr as zc,t1 as Ac,Dd as Bc,FS as Cc,BS as Dc,MS as Ec,i1 as Fc,l1 as Gc,fr as Hc,d1 as Ic,T1 as Jc,E1 as Kc,x1 as Lc,v1 as Mc,w1 as Nc,$S as Oc,US as Pc,C1 as Qc,Zt as Rc,GS as Sc,Ud as Tc,zS as Uc,O1 as Vc,WS as Wc,P1 as Xc,k1 as Yc,Pd as Zc,Ho as _c,Ko as $c,zd as ad,Wd as bd,_r as cd,YS as dd,jo as ed,Et as fd,W1 as gd,e_ as hd,t_ as id,n_ as jd,K1 as kd,j1 as ld,f_ as md,St as nd,V1 as od,Y1 as pd,w_ as qd,X1 as rd,q1 as sd,vr as td,Z1 as ud,wr as vd,R_ as wd,J1 as xd,Q1 as yd,Cr as zd,eL as Ad,tL as Bd,nL as Cd,B_ as Dd,oL as Ed,U_ as Fd,G_ as Gd,aL as Hd,sL as Id,rL as Jd,W_ as Kd,iL as Ld,lL as Md,V_ as Nd,cL as Od,uL as Pd,fn as Qd,ml as Rd,hl as Sd,Bh as Td,lm as Ud,a$ as Vd,cm as Wd,s$ as Xd,r$ as Yd,i$ as Zd,gi as _d,YM as $d,g2 as ae,Aw as be,b2 as ce,Mi as de,Hi as ee,y2 as fe,S2 as ge,_2 as he,Aa as ie,T2 as je,ko as ke,qt as le,vn as me,Vs as ne,wn as oe,b0 as pe,y0 as qe,S0 as re,Ju as se,Qu as te,ed as ue,_0 as ve,ve as we,Ge as xe,Mr as ye,HD as ze,ta as Ae,$D as Be,UD as Ce,na as De,GD as Ee,zD as Fe,WD as Ge,k0 as He,On as Ie,I0 as Je,TV as Ke,EV as Le,co as Me,kF as Ne,IF as Oe,AF as Pe,RF as Qe,jp as Re,NF as Se,LF as Te,Gh as Ue,sz as Ve,Sl as We,_l as Xe,rz as Ye,iz as Ze,q$ as _e,rt as $e,NB as af,ME as bf,ai as cf,$n as df,LB as ef,BB as ff,$E as gf,Sf as hf,MB as if,zE as jf,KE as kf,ri as lf,$B as mf,UB as nf,VE as of,jB as pf,VB as qf,Un as rf,YB as sf,Ef as tf,Hr as uf,rM as vf,iM as wf,xf,lM as yf,IT as zf,re as Af,bD as Bf,AT as Cf,RT as Df,TD as Ef,NT as Ff,LT as Gf,ED as Hf,DT as If,xD as Jf,vD as Kf,wD as Lf,CD as Mf,OD as Nf,PD as Of,kD as Pf,ID as Qf,AD as Rf,RD as Sf,ND as Tf,LD as Uf,Um as Vf,tO as Wf,$a as Xf,HG as Yf,SB as Zf,Xh as _f,Qn as $f,Be as ag,Q as bg,eo as cg,gn as dg,Rz as eg,Nz as fg,Dz as gg,Fz as hg,Bz as ig,Mz as jg,Hz as kg,Uz as lg,Gz as mg,to as ng,zz as og,kO as pg,IO as qg,Zh as rg,Wz as sg,vl as tg,Np as ug,HF as vg,$F as wg,bE as xg,yE as yg,YF as zg,_E as Ag,Qp as Bg,XF as Cg,qF as Dg,ZF as Eg,QF as Fg,tf as Gg,eB as Hg,tB as Ig,iB as Jg,lB as Kg,af as Lg,cB as Mg,mM as Ng,Of as Og,TM as Pg,Hf as Qg,$f as Rg,zf as Sg,zn as Tg,Kf as Ug,eH as Vg,tH as Wg,ya as Xg,yi as Yg,Gx as Zg,PH as _g,sm as $g,u$ as ah,Ca as bh,hm as ch,Fy as dh,Se as eh,Pn as fh,H$ as gh,ki as hh,Ii as ih,G$ as jh,Tm as kh,z$ as lh,W$ as mh,K$ as nh,Cm as oh,Pm as ph,cN as qh,uN as rh,hd as sh,dN as th,gd as uh,fN as vh,Fo as wh,TS as xh,DN as yh,vd as zh,AU as Ah,Im as Bh,Lm as Ch,Dm as Dh,Fm as Eh,Bm as Fh,Mm as Gh,Hm as Hh,Di as Ih,bw as Jh,yw as Kh,Vn as Lh,Fi as Mh,Gm as Nh,QU as Oh,_w as Ph,e2 as Qh,t2 as Rh,n2 as Sh,Wm as Th,r2 as Uh,xw as Vh,i2 as Wh,l2 as Xh,ww as Yh,Ow as Zh,Pw as _h,kw as $h,p2 as ai,Iw as bi,f2 as ci,$i as di,k2 as ei,Ym as fi,Dw as gi,A2 as hi,D2 as ii,Ui as ji,Xw as ki,J2 as li,HC as mi,EG as ni,UC as oi,xG as pi,vG as qi,wG as ri,mn as si,Ka as ti,ez as ui,tz as vi,nz as wi,AO as xi,RO as yi,Vz as zi,FO as Ai,BO as Bi,Yz as Ci,Xz as Di,qz as Ei,Zz as Fi,Jz as Gi,sW as Hi,rW as Ii,iW as Ji,lW as Ki,cW as Li,uW as Mi,dW as Ni,pW as Oi,fW as Pi,mW as Qi,hW as Ri,Qh as Si,gW as Ti,bW as Ui,VO as Vi,YO as Wi,mg as Xi,Bt as Yi,aK as Zi,sK as _i,rK as $i,iK as aj,lK as bj,cK as cj,$l as dj,uK as ej,dK as fj,hK as gj,gK as hj,nk as ij,bK as jj,ss as kj,Ul as lj,bn as mj,Ag as nj,yK as oj,SK as pj,_K as qj,TK as rj,rk as sj,EK as tj,xK as uj,vK as vj,wK as wj,CK as xj,OK as yj,PK as zj,kK as Aj,rs as Bj,pe as Cj,Pe as Dj,Rg as Ej,cn as Fj,Ng as Gj,Lg as Hj,IK as Ij,AK as Jj,RK as Kj,Rk as Lj,NK as Mj,LK as Nj,DK as Oj,FK as Pj,BK as Qj,MK as Rj,HK as Sj,Z as Tj,Bk as Uj,$K as Vj,UK as Wj,Qa as Xj,GK as Yj,zK as Zj,WK as _j,KK as $j,jK as ak,VK as bk,Ye as ck,YK as dk,aI as ek,XK as fk,qK as gk,ZK as hk,JK as ik,QK as jk,Wg as kk,ej as lk,tj as mk,nj as nk,Kg as ok,aj as pk,sj as qk,hI as rk,rj as sk,ij as tk,lj as uk,cj as vk,uj as wk,Vl as xk,jg as yk,dj as zk,pj as Ak,fj as Bk,mj as Ck,R$ as Dk,N$ as Ek,jV as Fk,VV as Gk,uc as Hk,uA as Ik,ub as Jk,db as Kk,tc as Lk,xL as Mk,nn as Nk,vL as Ok,wL as Pk,CL as Qk,OL as Rk,tT as Sk,PL as Tk,kL as Uk,fp as Vk,Tb as Wk,kb as Xk,AA as Yk,dV as Zk,LA as _k,Ab as $k,gV as al,bV as bl,yV as cl,MA as dl,SV as el,Ss as fl,OV as gl,qA as hl,fY as il,zb as jl,mY as kl,hY as ll,gY as ml,bY as nl,yY as ol,gp as pl,bp as ql,yp as rl,o5 as sl,Vb as tl,Es as ul,kR as vl,a5 as wl,s5 as xl};
|