efficient-storefront-blocks 0.133.0 → 0.133.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (32) hide show
  1. package/CHANGELOG.md +31 -0
  2. package/dist/chunks/{CustomHtmlCodeWindow-VMHVWWU4.js → CustomHtmlCodeWindow-ZPYYAXIT.js} +1 -1
  3. package/dist/chunks/EditorPreviewCheckout-BYCGH5HR.js +4 -0
  4. package/dist/chunks/{SiteEditorProvider-XQBBIEX4.js → SiteEditorProvider-WZHTXNWZ.js} +1 -1
  5. package/dist/chunks/{chunk-6YESFEQM.js → chunk-I4IY2GTB.js} +5 -5
  6. package/dist/chunks/chunk-JBFEQFNX.js +1 -0
  7. package/dist/chunks/{chunk-PDLGLUEV.js → chunk-MJ4NDWP7.js} +1 -1
  8. package/dist/chunks/chunk-RG2VEZZ7.js +9 -0
  9. package/dist/chunks/{chunk-DI3WYPQW.js → chunk-UQDOJWLM.js} +1 -1
  10. package/dist/editor/components/EditorPreviewCheckout.js +1 -1
  11. package/dist/editor/lib/document/blocks/service/Form/fields.js +1 -1
  12. package/dist/editor/lib/storefront-editor-words.d.ts +4 -0
  13. package/dist/editor/lib/storefront-editor-words.js +1 -1
  14. package/dist/index.js +26 -26
  15. package/dist/render/app/globals.css +12 -2
  16. package/dist/render/components/FormBlock.d.ts +23 -2
  17. package/dist/render/components/FormBlock.js +1 -1
  18. package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
  19. package/dist/render/components/checkout/checkout-parts.js +1 -1
  20. package/dist/render/components/checkout/checkout-state.d.ts +3 -1
  21. package/dist/render/components/checkout/checkout-state.js +3 -3
  22. package/dist/render/lib/document/blocks/service/Form/render.js +1 -1
  23. package/dist/render/lib/document/blocks/text-part-shapes.json +7 -0
  24. package/dist/routine-index.json +1 -1
  25. package/dist/value-index.json +1 -1
  26. package/dist/words.d.ts +4 -0
  27. package/dist/words.js +1 -1
  28. package/package.json +1 -1
  29. package/dist/chunks/EditorPreviewCheckout-ZZWN45X3.js +0 -4
  30. package/dist/chunks/chunk-GXZNWNY6.js +0 -1
  31. package/dist/chunks/chunk-Z5XT44JU.js +0 -9
  32. /package/dist/chunks/{chunk-PDLGLUEV.js.LEGAL.txt → chunk-MJ4NDWP7.js.LEGAL.txt} +0 -0
@@ -1,4 +1,4 @@
1
- import{a as P,b as Q}from"./chunk-IHBF4FM5.js";var A=e=>typeof e=="string"&&e?e:void 0;var Se=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"jost",label:"Jost",cssVar:"--font-jost",category:"sans",italic:!0,italicLoaded:!0},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],_e=new Map(Se.map(e=>[e.key,e])),Go="site-",fi="--font-site-",wi=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,v={options:Se,byKey:_e,siteFonts:new Map};function gi(e){if(typeof e?.key!="string"||!e.key.startsWith(Go))return null;let t=e.key.slice(Go.length);if(!wi.test(t))return null;let o=e.italic===!0;return{key:e.key,label:A(e.label)??e.family,cssVar:`${fi}${t}`,category:Object.hasOwn(Wo,e.category)?e.category:"sans",italic:o,italicLoaded:o}}function hu(e){if(!e?.length)return v;let t=new Map(_e),o=[],a=new Map;for(let s of e){let n=gi(s);!n||t.has(n.key)||(t.set(n.key,n),o.push(n),a.set(n.key,s))}return a.size===0?v:{options:[...o,...Se],byKey:t,siteFonts:a}}var Wo={sans:"Sans",serif:"Serif",mono:"Mono"};function bi(e=v){return Object.keys(Wo).map(t=>[t,e.options.filter(o=>o.category===t)]).filter(([,t])=>t.length>0)}function uu(e=v){return bi(e).flatMap(([,t])=>t)}function pu(e,t=v){return t.byKey.get(e)}var Je=["heading","heading2","heading3","body","accent","label"];function mu(e){return typeof e=="string"&&Je.includes(e)?e:null}var fu={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},yi=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],Ei=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,wu={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},Ti={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function gu(e){let t=e?Ei.exec(e):null;return t?P(Ti,t[1])??null:Si(e)}function Si(e){if(!e)return null;let t=e.split(/\s+/).filter(o=>!o.slice(0,o.lastIndexOf(":")+1).includes("&")).map(o=>o.slice(o.lastIndexOf(":")+1));for(let[o,a]of yi)if(t.includes(o))return a;return null}var G={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function _i(e,t=v){let o=t.byKey,a=s=>{let n=e?.[s];if(n&&o.has(n))return n;if(s==="heading2"||s==="heading3"){let i=e?.heading;return i&&o.has(i)?i:G.heading}return G[s]};return Object.fromEntries(Je.map(s=>[s,a(s)]))}function Oi(e,t,o){return o.byKey.get(e[t])??_e.get(G[t])}function Z(e,t,o){return`var(${Oi(e,t,o).cssVar})`}var bu=[...new Set(Je.map(e=>_e.get(G[e]).cssVar))],yu=[...new Set(Se.map(e=>e.cssVar))];function Eu(e,t=v){let o=_i(e,t);return{"--font-role-heading":Z(o,"heading",t),"--font-role-heading2":Z(o,"heading2",t),"--font-role-heading3":Z(o,"heading3",t),"--font-role-body":Z(o,"body",t),"--font-role-accent":Z(o,"accent",t),"--font-role-label":Z(o,"label",t),fontFamily:"var(--font-role-body)"}}import{VIEW_DESKTOP_MIN as vi,VIEW_TABLET_MIN as xi}from"efficient-easel/screen/lib/content/view-tiers";var Uo="v1",Yo=800,Ou=961,ki={"view-tablet":xi,"view-desktop":vi,"view-wide":Yo};function vu(e){let t=e.startsWith("max-"),o=t?e.slice(4):e,a=P(ki,o);if(a!==void 0)return{px:a,max:t};let s=/^(max|min)-\[(\d+)px\]$/.exec(e);return s?{px:Number(s[2]),max:s[1]==="max"}:void 0}var xu=`(min-width: ${Yo}px)`,Ri="data-sf-line",Ai="edge",ku={[Ri]:Ai},Ru=(e,t)=>e==="edge"||e!=="section"&&t;import{contrastRatio as Wu,hexToRgb as ve,parseHexColor as D,readableInk as zo,relativeLuminance as xe,parseOption as ct}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as Hi,pictureShadowColor as Di}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as Bi}from"efficient-easel/screen/lib/content/length-units";import{CORNER_RADIUS_MAX as qo}from"efficient-easel/screen/lib/content/style-keys";import{VIEW_TIERS as Li,viewKeyAt as Ko}from"efficient-easel/screen/lib/content/view-tiers";var N=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{isLengthUnit as et,lengthOf as Ci,rowGrid as Ii}from"efficient-easel/screen/lib/content/length-units";function tt(e,t){let o=Ci(e,ot(t));return typeof o=="number"?`${o}px`:o}function ot(e,t="px"){return et(e)?e:t}function Nu(e,t,o){return t.unitKey?ot(e[Ko(t.unitKey,o)],t.base??"px"):t.base??"px"}function Hu(e,t=Li){return e.unitKey?t.map(o=>Ko(e.unitKey,o)):[]}function Pi(e,t,o){let a=Ii({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function at(e,t,o,a){let s=N(e);if(!et(t)||t==="px"||s===void 0)return null;let n=Pi(o,t,a),i=Math.min(n.max,Math.max(n.min,s));return Math.round(i*100)/100}function Du(e,t,o,a){let s=at(e,t,o,a);return s===null?null:tt(s,t)}var Ni={cornerRadiusUnit:"corner_radius_unit",siteWidthUnit:"site_width_unit",siteGutterUnit:"site_gutter_unit",siteGutterPhoneUnit:"site_gutter_phone_unit",blockGapUnit:"block_gap_unit",blockGapPhoneUnit:"block_gap_phone_unit"};function Bu(e){let t=e;return Object.fromEntries(Object.entries(Ni).map(([o,a])=>[o,ot(t[a])]))}function Mu(e,t,o){let a=N(e);return et(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as Tp}from"efficient-easel/screen/lib/document/shadow-values";var Vu="storefront-theme",ju="sf:theme-mode",Xu="sf:theme-switch",zu="hide",qu=["light","dark","auto"],pt="light",mt=!1,Mi=7,Fi=18;function Gi(e){return e>=Mi&&e<Fi}function Qu(e){let{mode:t,override:o,switchShown:a,hour:s}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?Gi(s)?"light":"dark":ct(["light","dark"],"dark",t)}var J={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},Wi=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],ke={selected:0,themes:Wi};function Qo(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...ke}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function st(e,t,o){let a=ve(e),s=ve(t);if(a===null||s===null)return e;let n=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${n(a.r,s.r)}${n(a.g,s.g)}${n(a.b,s.b)}`}var Ui={light:"#ffffff",dark:"#0a0a0a"},Zu=["light","dark"];function Ju(e,t){let o=Ui[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:st(e,a,.1),line:st(e,a,.22),muted:st(o,e,.35),brandInk:t}}function te(e){let t=Qo(e);return t.themes[t.selected]}function ee(e){return{text:e.text,accent:e.accent,background:e.background||J.background,surface:e.surface||J.surface,line:e.line||J.line,muted:e.muted||J.muted}}var Yi=.4,Ki="#f5f1e8",$o="#0a0a0a";function $i(e){let t=te(e).text,o=xe(t);return o===null||o>=Yi?t:null}var Vi=4.5,ji=3,ep={good:"Good","large-only":"Large text only",hard:"Hard to read"};function tp(e){return e>=Vi?"good":e>=ji?"large-only":"hard"}var Xi=["#000000","#ffffff"];function Re(e){return zo(e,Xi)}function Zo(e,t){let o=t!==void 0&&xe(t)!==null?t:Ki;return zo(e,[$o,o])===o&&o!==$o}var zi=[.25,.4,.55];function op(e){let t=ve(e);return t===null?[]:zi.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function ap(e){let t={"--theme-fg":te(e).text},o=$i(e);return o!==null&&(t["--overlay-fg"]=o),t}var qi=82;function ft(e){return`color-mix(in srgb, ${e} ${qi}%, #000)`}function sp(e){let t=te(e);return{"--theme-accent":t.accent,"--theme-accent-2":ft(t.accent),"--theme-accent-ink":Re(t.accent)}}function wt(e){let t=e?.button;return t&&D(t)===t.toLowerCase()?t.toLowerCase():null}function np(e){let t=te(e),o=wt(t),a=Jo(t);if(o===null&&a===null)return{};let s={};return o!==null&&(s["--theme-btn"]=o,s["--theme-btn-2"]=ft(o)),s["--theme-btn-ink"]=a??Re(o),s}function Jo(e){let t=e?.buttonInk;return t&&D(t)===t.toLowerCase()?t.toLowerCase():null}function Qi(e,t){return Jo(e)??Re(wt(e)??t)}function ip(e){let t=te(e);return{fill:wt(t)??t.accent.toLowerCase(),ink:Qi(t,t.accent)}}function rp(e){let t={};return Qo(e).themes.forEach((o,a)=>{let s=ee(o);t[`--theme-preset-${a}-accent`]=s.accent,t[`--theme-preset-${a}-accent-2`]=ft(s.accent),t[`--theme-preset-${a}-accent-ink`]=Re(s.accent),t[`--theme-preset-${a}-bg`]=s.background,t[`--theme-preset-${a}-fg`]=s.text,t[`--theme-preset-${a}-surface`]=s.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${s.surface} 60%, ${s.line})`,t[`--theme-preset-${a}-line`]=s.line,t[`--theme-preset-${a}-muted`]=s.muted}),t}var nt=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},it=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function Vo([e,t,o]){let[a,s,n]=[nt(e),nt(t),nt(o)],i=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*n),r=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*n),c=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*n);return[.2104542553*i+.793617785*r-.0040720468*c,1.9779984951*i-2.428592205*r+.4505937099*c,.0259040371*i+.7827717662*r-.808675766*c]}function Zi([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,s=(e-.1055613458*t-.0638541728*o)**3,n=(e-.0894841775*t-1.291485548*o)**3;return[it(4.0767416621*a-3.3077115913*s+.2309699292*n),it(-1.2684380046*a+2.6097574011*s-.3413193965*n),it(-.0041960863*a-.7034186147*s+1.707614701*n)]}var dt=e=>{let t=ve(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},ea=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],ta=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,oa=e=>ea(dt(e.surface),dt(e.line),.6);function lp(e){return ta(oa(ee(e)))}function Ji(e){let t=ee(e);return ta(Zi(ea(Vo(oa(t)),Vo(dt(t.text)),.92)))}function aa(e,t,o,a){let s=e[t];if(!s)return-1;let n=o(s);if(!n)return-1;let i=ee(s);return e.findIndex((r,c)=>{if(c===t)return!1;let h=ee(r);return D(h.background)!==n?!1:!a||D(h.text??"")===D(i.text??"")&&D(h.accent??"")===D(i.accent??"")})}function cp(e,t){return aa(e,t,Ji,!1)}function dp(e,t){return aa(e,t,o=>D(o.surface??""),!0)}var er=1;function tr(e,t){let o=(e??[]).flatMap((a,s)=>{let n=xe(a.background??""),i=xe(a.text??"");return n!==null&&i!==null&&n<i?[s]:[]});return o.find(a=>a!==t)??o[0]??er}function hp(e){return tr(e?.themes,e?.selected)}var up=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function pp(e){let t=ee(te(e)),o=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,a={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==J.surface||t.line!==J.line)&&(a["--theme-surface-2"]=o),a}var or=["heading","body","label"];function mp(e){if(!e)return null;for(let t of or)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var sa=["headingLarge","headingMedium","headingSmall","accent","body","label"];var gt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},ar=8,sr=200;function nr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=ar&&t<=sr?t:null}function ir(e){let t={};for(let o of sa)t[o]=nr(e?.[o]);return t}function fp(e){let t=ir(e),o={};for(let a of sa){let s=t[a];s!==null&&(o[`--size-${a}`]=`${s}px`)}return o}var rr=["square","small","large"],lr="small";function wp(e){return rr.includes(e??"")?e:lr}var Ae=0,cr={min:Ae,max:qo,step:1},gp={square:0,small:null,large:16},ht={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function bt(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;let t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(qo,Math.max(Ae,Math.round(t))):null}function jo(e,t){if(Bi(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(ht).map(([s,n])=>{let i=Math.round(a*n*1e4)/1e4;return[s,i===0?"0":tt(i,t)]}))}let o=bt(e);return o===null?{}:Object.fromEntries(Object.entries(ht).map(([a,s])=>{let n=o*s/16;return[a,n===0?"0":`${n}rem`]}))}function bp(e){return(bt(e)??Ae)*ht["--sf-button-radius"]}function yp(e,t){let o=at(e,t,"radius",cr);return o!==null?jo(o,t):jo(bt(e)??Ae)}var dr=["none","soft","lifted"],hr="soft",na="none",ur=["tight","normal","roomy"],pr="normal",Le="normal",mr=["none","lift","highlight"],fr="lift",wr="highlight";function ia(e){return dr.includes(e??"")?e:hr}function gr(e){return ur.includes(e??"")?e:pr}function ra(e){return mr.includes(e??"")?e:fr}function Sp(e){let t=ia(e);return t===na?void 0:t}function _p(e){let t=gr(e);return t===Le?void 0:t}function Op(e){let t=ra(e);return t===wr?void 0:t}function vp(e,t,o){let a=Di(t);return a===Hi?{}:ia(e)!==na||ra(o)==="lift"?{"--sf-shadow-color":a}:{}}var br=["normal","tight","compressed"],me="normal";function la(e){return br.includes(e??"")?e:me}function xp(e){let t=la(e);return t===me?void 0:t}function kp(e){switch(la(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var Xo=["authored","sentence"],yt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},rt=100,lt=900,yr=24,Er=200;function Oe(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function ca(e){let t=Oe(e?.weight,rt,lt),o=ct(Xo,"authored",e?.case),a=n=>n==null?t:Oe(n,rt,lt),s=n=>ct(Xo,o,n);return{case:o,weight:t,weightStrong:Oe(e?.weightStrong,rt,lt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:Oe(e?.maxPx,yr,Er),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:s(e?.case2),case3:s(e?.case3)}}function Rp(e){let t=ca(e),o={};return t.case==="sentence"&&(o["--sf-heading-case"]="none"),t.weight!==null&&(o["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(o["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(o["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(o["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(o["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(o["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(o["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),o}function Ap(e){return ca({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}var ut="siteTheme";function Tr(e){let t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(a=>!!a&&typeof a=="object"))return{};let o=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[ut]:{selected:o,themes:t.themes}}}function Lp(e){return Tr(e?.[ut])[ut]}import{parseHexColor as Sr}from"efficient-shell/format";var Et=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],_r=Et.filter(e=>e.ink);function da(e){let t={color:e.fg};for(let{role:o,token:a}of _r)t[a]=e[o];return t}var Or={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},vr=Object.freeze(da(Or)),xr={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},kr=Object.freeze(da(xr));function Np(e,t){let o=e?Sr(e):null;return o?Zo(o,t)?vr:kr:null}import{jsx as pa}from"react/jsx-runtime";import{createContext as Lr,useCallback as m,useContext as Cr,useMemo as Ir,useState as Pr}from"react";import{createContext as ua,useContext as Tt}from"react";import{createContext as Rr}from"react";var ha=Rr(null);var Ar=ua(null),St=ua({logo:null,placeholder:!1,wordmark:null});function Gp(){let e=Tt(ha),t=Tt(Ar),o=Tt(St),a=!e&&o.placeholder,s=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:s,reversedSrc:e?e.logoReversed:o.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:o.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:o.wordmark,siteName:e?.siteName??t?.siteName}}var ma={},fa=Lr({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:pt,setThemeMode:()=>{},themeSwitchShown:mt,setThemeSwitchShown:()=>{},theme:ke,themeRow:"none",setTheme:()=>{},fonts:G,setFonts:()=>{},sizes:gt,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:Le,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:me,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:ma,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:yt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function jp({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:s=!1,themeMode:n=pt,onThemeModeChange:i,themeSwitchShown:r=mt,onThemeSwitchShownChange:c,theme:h=ke,themeRow:_="none",onThemeChange:O,fonts:Ze=G,onFontsChange:mo,sizes:En=gt,onSizesChange:fo,cornerRadiusPx:Tn=null,onCornerRadiusPxChange:wo,cardShadow:Sn=null,onCardShadowChange:go,shadowColor:_n=null,onShadowColorChange:bo,cardGap:On=Le,onCardGapChange:yo,hoverEffect:vn=null,onHoverEffectChange:Eo,headingCompression:xn=me,onHeadingCompressionChange:To,siteWidth:kn=null,onSiteWidthChange:So,siteGutter:Rn=null,siteGutterPhone:An=null,blockGap:Ln=null,blockGapPhone:Cn=null,siteLengthUnits:In=ma,onSiteLengthUnitsChange:_o,onSiteGutterChange:Oo,onSiteGutterPhoneChange:vo,onBlockGapChange:xo,onBlockGapPhoneChange:ko,headingTypography:Pn=yt,onHeadingTypographyChange:Ro,textStyles:Nn=null,onTextStylesChange:Ao,wordStyles:Hn=null,heroBackgroundFollowsWidth:Dn=null,onHeroBackgroundFollowsWidthChange:Lo,sectionBackgroundWidth:Bn=null,onSectionBackgroundWidthChange:Co,sectionContentWidth:Mn=null,onSectionContentWidthChange:Io,photographyGrayscale:Fn=null,onPhotographyGrayscaleChange:Po,shareButtonOnPosts:Gn=null,onShareButtonOnPostsChange:No,themeFromDocument:Wn=!1}){let[pe,Ho]=Pr(null),Un=m(l=>Ho(mi=>mi??l),[]),Yn=m(l=>i?.(l),[i]),Kn=m(l=>c?.(l),[c]),$n=m(l=>O?.(l),[O]),Vn=m(l=>mo?.(l),[mo]),jn=m(l=>fo?.(l),[fo]),Xn=m(l=>So?.(l),[So]),zn=m(l=>Oo?.(l),[Oo]),qn=m(l=>vo?.(l),[vo]),Qn=m(l=>xo?.(l),[xo]),Zn=m(l=>ko?.(l),[ko]),Jn=m(l=>_o?.(l),[_o]),ei=m(l=>Lo?.(l),[Lo]),ti=m(l=>Co?.(l),[Co]),oi=m(l=>Io?.(l),[Io]),ai=m(l=>Po?.(l),[Po]),si=m(l=>No?.(l),[No]),ni=m(l=>wo?.(l),[wo]),ii=m(l=>go?.(l),[go]),ri=m(l=>bo?.(l),[bo]),li=m(l=>yo?.(l),[yo]),ci=m(l=>Eo?.(l),[Eo]),di=m(l=>To?.(l),[To]),hi=m(l=>Ro?.(l),[Ro]),ui=m(l=>Ao?.(l),[Ao]),Do=pe?.logoUrl,Bo=pe?.logoReversed,Mo=pe?.logoInkIsDark,Fo=pe!==null,pi=Ir(()=>({logo:Fo?{logoUrl:Do,logoReversed:Bo,logoInkIsDark:Mo}:null,placeholder:o||s,wordmark:o?a:t}),[Fo,Do,Bo,Mo,o,s,a,t]);return pa(St.Provider,{value:pi,children:pa(fa.Provider,{value:{settings:pe,setSettings:Ho,primeSettings:Un,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:s,themeMode:n,setThemeMode:Yn,themeSwitchShown:r,setThemeSwitchShown:Kn,theme:h,themeRow:_,setTheme:$n,fonts:Ze,setFonts:Vn,sizes:En,setSizes:jn,cornerRadiusPx:Tn,setCornerRadiusPx:ni,cardShadow:Sn,setCardShadow:ii,shadowColor:_n,setShadowColor:ri,cardGap:On,setCardGap:li,hoverEffect:vn,setHoverEffect:ci,headingCompression:xn,setHeadingCompression:di,siteWidth:kn,setSiteWidth:Xn,siteGutter:Rn,siteGutterPhone:An,blockGap:Ln,blockGapPhone:Cn,siteLengthUnits:In,setSiteLengthUnits:Jn,setSiteGutter:zn,setSiteGutterPhone:qn,setBlockGap:Qn,setBlockGapPhone:Zn,headingTypography:Pn,setHeadingTypography:hi,textStyles:Nn,setTextStyles:ui,wordStyles:Hn,heroBackgroundFollowsWidth:Dn,setHeroBackgroundFollowsWidth:ei,sectionBackgroundWidth:Bn,setSectionBackgroundWidth:ti,sectionContentWidth:Mn,setSectionContentWidth:oi,photographyGrayscale:Fn,setPhotographyGrayscale:ai,shareButtonOnPosts:Gn,setShareButtonOnPosts:si,themeFromDocument:Wn},children:e})})}var Nr=()=>Cr(fa);function Xp(e,t,o){return e?t===o?"read":"loading":"none"}function zp(e,t){return{value:e,readFor:t}}function qp(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function Qp(){let{sectionContentWidth:e,themeFromDocument:t}=Nr();return t?null:e}var em=["general","commerce","service"],oe=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"GalleryB",label:"Gallery",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function tm(){return Object.fromEntries(oe.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var Hr="2027-02-05",Dr="2027-02-14",wa={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
1
+ import{a as P,b as Q}from"./chunk-IHBF4FM5.js";var R=e=>typeof e=="string"&&e?e:void 0;var Te=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"jost",label:"Jost",cssVar:"--font-jost",category:"sans",italic:!0,italicLoaded:!0},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],_e=new Map(Te.map(e=>[e.key,e])),Wo="site-",bi="--font-site-",yi=/^[a-z0-9]+(?:-[a-z0-9]+)*$/,v={options:Te,byKey:_e,siteFonts:new Map};function Ei(e){if(typeof e?.key!="string"||!e.key.startsWith(Wo))return null;let t=e.key.slice(Wo.length);if(!yi.test(t))return null;let o=e.italic===!0;return{key:e.key,label:R(e.label)??e.family,cssVar:`${bi}${t}`,category:Object.hasOwn(Uo,e.category)?e.category:"sans",italic:o,italicLoaded:o}}function Ou(e){if(!e?.length)return v;let t=new Map(_e),o=[],a=new Map;for(let s of e){let n=Ei(s);!n||t.has(n.key)||(t.set(n.key,n),o.push(n),a.set(n.key,s))}return a.size===0?v:{options:[...o,...Te],byKey:t,siteFonts:a}}var Uo={sans:"Sans",serif:"Serif",mono:"Mono"};function Si(e=v){return Object.keys(Uo).map(t=>[t,e.options.filter(o=>o.category===t)]).filter(([,t])=>t.length>0)}function vu(e=v){return Si(e).flatMap(([,t])=>t)}function xu(e,t=v){return t.byKey.get(e)}var Je=["heading","heading2","heading3","body","accent","label"];function ku(e){return typeof e=="string"&&Je.includes(e)?e:null}var Au={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},Ti=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],_i=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,Ru={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},Oi={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function Lu(e){let t=e?_i.exec(e):null;return t?P(Oi,t[1])??null:vi(e)}function vi(e){if(!e)return null;let t=e.split(/\s+/).filter(o=>!o.slice(0,o.lastIndexOf(":")+1).includes("&")).map(o=>o.slice(o.lastIndexOf(":")+1));for(let[o,a]of Ti)if(t.includes(o))return a;return null}var G={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function xi(e,t=v){let o=t.byKey,a=s=>{let n=e?.[s];if(n&&o.has(n))return n;if(s==="heading2"||s==="heading3"){let i=e?.heading;return i&&o.has(i)?i:G.heading}return G[s]};return Object.fromEntries(Je.map(s=>[s,a(s)]))}function ki(e,t,o){return o.byKey.get(e[t])??_e.get(G[t])}function Z(e,t,o){return`var(${ki(e,t,o).cssVar})`}var Cu=[...new Set(Je.map(e=>_e.get(G[e]).cssVar))],Iu=[...new Set(Te.map(e=>e.cssVar))];function Pu(e,t=v){let o=xi(e,t);return{"--font-role-heading":Z(o,"heading",t),"--font-role-heading2":Z(o,"heading2",t),"--font-role-heading3":Z(o,"heading3",t),"--font-role-body":Z(o,"body",t),"--font-role-accent":Z(o,"accent",t),"--font-role-label":Z(o,"label",t),fontFamily:"var(--font-role-body)"}}import{VIEW_DESKTOP_MIN as Ai,VIEW_TABLET_MIN as Ri}from"efficient-easel/screen/lib/content/view-tiers";var Yo="v1",Ko=800,Bu=961,Li={"view-tablet":Ri,"view-desktop":Ai,"view-wide":Ko};function Mu(e){let t=e.startsWith("max-"),o=t?e.slice(4):e,a=P(Li,o);if(a!==void 0)return{px:a,max:t};let s=/^(max|min)-\[(\d+)px\]$/.exec(e);return s?{px:Number(s[2]),max:s[1]==="max"}:void 0}var Fu=`(min-width: ${Ko}px)`,Ci="data-sf-line",Ii="edge",Gu={[Ci]:Ii},Wu=(e,t)=>e==="edge"||e!=="section"&&t;import{contrastRatio as ep,hexToRgb as ve,parseHexColor as D,readableInk as qo,relativeLuminance as xe,parseOption as ct}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as Mi,pictureShadowColor as Fi}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as Gi}from"efficient-easel/screen/lib/content/length-units";import{CORNER_RADIUS_MAX as Qo}from"efficient-easel/screen/lib/content/style-keys";import{VIEW_TIERS as Pi,viewKeyAt as $o}from"efficient-easel/screen/lib/content/view-tiers";var N=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{isLengthUnit as et,lengthOf as Ni,rowGrid as Hi}from"efficient-easel/screen/lib/content/length-units";function tt(e,t){let o=Ni(e,ot(t));return typeof o=="number"?`${o}px`:o}function ot(e,t="px"){return et(e)?e:t}function ju(e,t,o){return t.unitKey?ot(e[$o(t.unitKey,o)],t.base??"px"):t.base??"px"}function Xu(e,t=Pi){return e.unitKey?t.map(o=>$o(e.unitKey,o)):[]}function Di(e,t,o){let a=Hi({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function at(e,t,o,a){let s=N(e);if(!et(t)||t==="px"||s===void 0)return null;let n=Di(o,t,a),i=Math.min(n.max,Math.max(n.min,s));return Math.round(i*100)/100}function zu(e,t,o,a){let s=at(e,t,o,a);return s===null?null:tt(s,t)}var Bi={cornerRadiusUnit:"corner_radius_unit",siteWidthUnit:"site_width_unit",siteGutterUnit:"site_gutter_unit",siteGutterPhoneUnit:"site_gutter_phone_unit",blockGapUnit:"block_gap_unit",blockGapPhoneUnit:"block_gap_phone_unit"};function qu(e){let t=e;return Object.fromEntries(Object.entries(Bi).map(([o,a])=>[o,ot(t[a])]))}function Qu(e,t,o){let a=N(e);return et(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as Np}from"efficient-easel/screen/lib/document/shadow-values";var np="storefront-theme",ip="sf:theme-mode",rp="sf:theme-switch",lp="hide",cp=["light","dark","auto"],pt="light",mt=!1,Wi=7,Ui=18;function Yi(e){return e>=Wi&&e<Ui}function dp(e){let{mode:t,override:o,switchShown:a,hour:s}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?Yi(s)?"light":"dark":ct(["light","dark"],"dark",t)}var J={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},Ki=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],ke={selected:0,themes:Ki};function Zo(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...ke}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function st(e,t,o){let a=ve(e),s=ve(t);if(a===null||s===null)return e;let n=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${n(a.r,s.r)}${n(a.g,s.g)}${n(a.b,s.b)}`}var $i={light:"#ffffff",dark:"#0a0a0a"},hp=["light","dark"];function up(e,t){let o=$i[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:st(e,a,.1),line:st(e,a,.22),muted:st(o,e,.35),brandInk:t}}function te(e){let t=Zo(e);return t.themes[t.selected]}function ee(e){return{text:e.text,accent:e.accent,background:e.background||J.background,surface:e.surface||J.surface,line:e.line||J.line,muted:e.muted||J.muted}}var Vi=.4,ji="#f5f1e8",Vo="#0a0a0a";function Xi(e){let t=te(e).text,o=xe(t);return o===null||o>=Vi?t:null}var zi=4.5,qi=3,pp={good:"Good","large-only":"Large text only",hard:"Hard to read"};function mp(e){return e>=zi?"good":e>=qi?"large-only":"hard"}var Qi=["#000000","#ffffff"];function Ae(e){return qo(e,Qi)}function Jo(e,t){let o=t!==void 0&&xe(t)!==null?t:ji;return qo(e,[Vo,o])===o&&o!==Vo}var Zi=[.25,.4,.55];function fp(e){let t=ve(e);return t===null?[]:Zi.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function wp(e){let t={"--theme-fg":te(e).text},o=Xi(e);return o!==null&&(t["--overlay-fg"]=o),t}var Ji=82;function ft(e){return`color-mix(in srgb, ${e} ${Ji}%, #000)`}function gp(e){let t=te(e);return{"--theme-accent":t.accent,"--theme-accent-2":ft(t.accent),"--theme-accent-ink":Ae(t.accent)}}function wt(e){let t=e?.button;return t&&D(t)===t.toLowerCase()?t.toLowerCase():null}function bp(e){let t=te(e),o=wt(t),a=ea(t);if(o===null&&a===null)return{};let s={};return o!==null&&(s["--theme-btn"]=o,s["--theme-btn-2"]=ft(o)),s["--theme-btn-ink"]=a??Ae(o),s}function ea(e){let t=e?.buttonInk;return t&&D(t)===t.toLowerCase()?t.toLowerCase():null}function er(e,t){return ea(e)??Ae(wt(e)??t)}function yp(e){let t=te(e);return{fill:wt(t)??t.accent.toLowerCase(),ink:er(t,t.accent)}}function Ep(e){let t={};return Zo(e).themes.forEach((o,a)=>{let s=ee(o);t[`--theme-preset-${a}-accent`]=s.accent,t[`--theme-preset-${a}-accent-2`]=ft(s.accent),t[`--theme-preset-${a}-accent-ink`]=Ae(s.accent),t[`--theme-preset-${a}-bg`]=s.background,t[`--theme-preset-${a}-fg`]=s.text,t[`--theme-preset-${a}-surface`]=s.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${s.surface} 60%, ${s.line})`,t[`--theme-preset-${a}-line`]=s.line,t[`--theme-preset-${a}-muted`]=s.muted}),t}var nt=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},it=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function jo([e,t,o]){let[a,s,n]=[nt(e),nt(t),nt(o)],i=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*n),r=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*n),c=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*n);return[.2104542553*i+.793617785*r-.0040720468*c,1.9779984951*i-2.428592205*r+.4505937099*c,.0259040371*i+.7827717662*r-.808675766*c]}function tr([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,s=(e-.1055613458*t-.0638541728*o)**3,n=(e-.0894841775*t-1.291485548*o)**3;return[it(4.0767416621*a-3.3077115913*s+.2309699292*n),it(-1.2684380046*a+2.6097574011*s-.3413193965*n),it(-.0041960863*a-.7034186147*s+1.707614701*n)]}var dt=e=>{let t=ve(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},ta=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],oa=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,aa=e=>ta(dt(e.surface),dt(e.line),.6);function Sp(e){return oa(aa(ee(e)))}function or(e){let t=ee(e);return oa(tr(ta(jo(aa(t)),jo(dt(t.text)),.92)))}function sa(e,t,o,a){let s=e[t];if(!s)return-1;let n=o(s);if(!n)return-1;let i=ee(s);return e.findIndex((r,c)=>{if(c===t)return!1;let h=ee(r);return D(h.background)!==n?!1:!a||D(h.text??"")===D(i.text??"")&&D(h.accent??"")===D(i.accent??"")})}function Tp(e,t){return sa(e,t,or,!1)}function _p(e,t){return sa(e,t,o=>D(o.surface??""),!0)}var ar=1;function sr(e,t){let o=(e??[]).flatMap((a,s)=>{let n=xe(a.background??""),i=xe(a.text??"");return n!==null&&i!==null&&n<i?[s]:[]});return o.find(a=>a!==t)??o[0]??ar}function Op(e){return sr(e?.themes,e?.selected)}var vp=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function xp(e){let t=ee(te(e)),o=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,a={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==J.surface||t.line!==J.line)&&(a["--theme-surface-2"]=o),a}var nr=["heading","body","label"];function kp(e){if(!e)return null;for(let t of nr)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var na=["headingLarge","headingMedium","headingSmall","accent","body","label"];var gt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},ir=8,rr=200;function lr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=ir&&t<=rr?t:null}function cr(e){let t={};for(let o of na)t[o]=lr(e?.[o]);return t}function Ap(e){let t=cr(e),o={};for(let a of na){let s=t[a];s!==null&&(o[`--size-${a}`]=`${s}px`)}return o}var dr=["square","small","large"],hr="small";function Rp(e){return dr.includes(e??"")?e:hr}var Re=0,ur={min:Re,max:Qo,step:1},Lp={square:0,small:null,large:16},ht={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function bt(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;let t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(Qo,Math.max(Re,Math.round(t))):null}function Xo(e,t){if(Gi(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(ht).map(([s,n])=>{let i=Math.round(a*n*1e4)/1e4;return[s,i===0?"0":tt(i,t)]}))}let o=bt(e);return o===null?{}:Object.fromEntries(Object.entries(ht).map(([a,s])=>{let n=o*s/16;return[a,n===0?"0":`${n}rem`]}))}function Cp(e){return(bt(e)??Re)*ht["--sf-button-radius"]}function Ip(e,t){let o=at(e,t,"radius",ur);return o!==null?Xo(o,t):Xo(bt(e)??Re)}var pr=["none","soft","lifted"],mr="soft",ia="none",fr=["tight","normal","roomy"],wr="normal",Le="normal",gr=["none","lift","highlight"],br="lift",yr="highlight";function ra(e){return pr.includes(e??"")?e:mr}function Er(e){return fr.includes(e??"")?e:wr}function la(e){return gr.includes(e??"")?e:br}function Hp(e){let t=ra(e);return t===ia?void 0:t}function Dp(e){let t=Er(e);return t===Le?void 0:t}function Bp(e){let t=la(e);return t===yr?void 0:t}function Mp(e,t,o){let a=Fi(t);return a===Mi?{}:ra(e)!==ia||la(o)==="lift"?{"--sf-shadow-color":a}:{}}var Sr=["normal","tight","compressed"],me="normal";function ca(e){return Sr.includes(e??"")?e:me}function Fp(e){let t=ca(e);return t===me?void 0:t}function Gp(e){switch(ca(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var zo=["authored","sentence"],yt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},rt=100,lt=900,Tr=24,_r=200;function Oe(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function da(e){let t=Oe(e?.weight,rt,lt),o=ct(zo,"authored",e?.case),a=n=>n==null?t:Oe(n,rt,lt),s=n=>ct(zo,o,n);return{case:o,weight:t,weightStrong:Oe(e?.weightStrong,rt,lt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:Oe(e?.maxPx,Tr,_r),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:s(e?.case2),case3:s(e?.case3)}}function Wp(e){let t=da(e),o={};return t.case==="sentence"&&(o["--sf-heading-case"]="none"),t.weight!==null&&(o["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(o["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(o["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(o["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(o["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(o["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(o["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),o}function Up(e){return da({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}var ut="siteTheme";function Or(e){let t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(a=>!!a&&typeof a=="object"))return{};let o=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[ut]:{selected:o,themes:t.themes}}}function Yp(e){return Or(e?.[ut])[ut]}import{parseHexColor as vr}from"efficient-shell/format";var Et=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],xr=Et.filter(e=>e.ink);function ha(e){let t={color:e.fg};for(let{role:o,token:a}of xr)t[a]=e[o];return t}var kr={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},Ar=Object.freeze(ha(kr)),Rr={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},Lr=Object.freeze(ha(Rr));function jp(e,t){let o=e?vr(e):null;return o?Jo(o,t)?Ar:Lr:null}import{jsx as ma}from"react/jsx-runtime";import{createContext as Pr,useCallback as m,useContext as Nr,useMemo as Hr,useState as Dr}from"react";import{createContext as pa,useContext as St}from"react";import{createContext as Cr}from"react";var ua=Cr(null);var Ir=pa(null),Tt=pa({logo:null,placeholder:!1,wordmark:null});function Jp(){let e=St(ua),t=St(Ir),o=St(Tt),a=!e&&o.placeholder,s=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:s,reversedSrc:e?e.logoReversed:o.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:o.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:o.wordmark,siteName:e?.siteName??t?.siteName}}var fa={},wa=Pr({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:pt,setThemeMode:()=>{},themeSwitchShown:mt,setThemeSwitchShown:()=>{},theme:ke,themeRow:"none",setTheme:()=>{},fonts:G,setFonts:()=>{},sizes:gt,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:Le,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:me,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:fa,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:yt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function im({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:s=!1,themeMode:n=pt,onThemeModeChange:i,themeSwitchShown:r=mt,onThemeSwitchShownChange:c,theme:h=ke,themeRow:_="none",onThemeChange:O,fonts:Ze=G,onFontsChange:fo,sizes:_n=gt,onSizesChange:wo,cornerRadiusPx:On=null,onCornerRadiusPxChange:go,cardShadow:vn=null,onCardShadowChange:bo,shadowColor:xn=null,onShadowColorChange:yo,cardGap:kn=Le,onCardGapChange:Eo,hoverEffect:An=null,onHoverEffectChange:So,headingCompression:Rn=me,onHeadingCompressionChange:To,siteWidth:Ln=null,onSiteWidthChange:_o,siteGutter:Cn=null,siteGutterPhone:In=null,blockGap:Pn=null,blockGapPhone:Nn=null,siteLengthUnits:Hn=fa,onSiteLengthUnitsChange:Oo,onSiteGutterChange:vo,onSiteGutterPhoneChange:xo,onBlockGapChange:ko,onBlockGapPhoneChange:Ao,headingTypography:Dn=yt,onHeadingTypographyChange:Ro,textStyles:Bn=null,onTextStylesChange:Lo,wordStyles:Mn=null,heroBackgroundFollowsWidth:Fn=null,onHeroBackgroundFollowsWidthChange:Co,sectionBackgroundWidth:Gn=null,onSectionBackgroundWidthChange:Io,sectionContentWidth:Wn=null,onSectionContentWidthChange:Po,photographyGrayscale:Un=null,onPhotographyGrayscaleChange:No,shareButtonOnPosts:Yn=null,onShareButtonOnPostsChange:Ho,themeFromDocument:Kn=!1}){let[pe,Do]=Dr(null),$n=m(l=>Do(gi=>gi??l),[]),Vn=m(l=>i?.(l),[i]),jn=m(l=>c?.(l),[c]),Xn=m(l=>O?.(l),[O]),zn=m(l=>fo?.(l),[fo]),qn=m(l=>wo?.(l),[wo]),Qn=m(l=>_o?.(l),[_o]),Zn=m(l=>vo?.(l),[vo]),Jn=m(l=>xo?.(l),[xo]),ei=m(l=>ko?.(l),[ko]),ti=m(l=>Ao?.(l),[Ao]),oi=m(l=>Oo?.(l),[Oo]),ai=m(l=>Co?.(l),[Co]),si=m(l=>Io?.(l),[Io]),ni=m(l=>Po?.(l),[Po]),ii=m(l=>No?.(l),[No]),ri=m(l=>Ho?.(l),[Ho]),li=m(l=>go?.(l),[go]),ci=m(l=>bo?.(l),[bo]),di=m(l=>yo?.(l),[yo]),hi=m(l=>Eo?.(l),[Eo]),ui=m(l=>So?.(l),[So]),pi=m(l=>To?.(l),[To]),mi=m(l=>Ro?.(l),[Ro]),fi=m(l=>Lo?.(l),[Lo]),Bo=pe?.logoUrl,Mo=pe?.logoReversed,Fo=pe?.logoInkIsDark,Go=pe!==null,wi=Hr(()=>({logo:Go?{logoUrl:Bo,logoReversed:Mo,logoInkIsDark:Fo}:null,placeholder:o||s,wordmark:o?a:t}),[Go,Bo,Mo,Fo,o,s,a,t]);return ma(Tt.Provider,{value:wi,children:ma(wa.Provider,{value:{settings:pe,setSettings:Do,primeSettings:$n,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:s,themeMode:n,setThemeMode:Vn,themeSwitchShown:r,setThemeSwitchShown:jn,theme:h,themeRow:_,setTheme:Xn,fonts:Ze,setFonts:zn,sizes:_n,setSizes:qn,cornerRadiusPx:On,setCornerRadiusPx:li,cardShadow:vn,setCardShadow:ci,shadowColor:xn,setShadowColor:di,cardGap:kn,setCardGap:hi,hoverEffect:An,setHoverEffect:ui,headingCompression:Rn,setHeadingCompression:pi,siteWidth:Ln,setSiteWidth:Qn,siteGutter:Cn,siteGutterPhone:In,blockGap:Pn,blockGapPhone:Nn,siteLengthUnits:Hn,setSiteLengthUnits:oi,setSiteGutter:Zn,setSiteGutterPhone:Jn,setBlockGap:ei,setBlockGapPhone:ti,headingTypography:Dn,setHeadingTypography:mi,textStyles:Bn,setTextStyles:fi,wordStyles:Mn,heroBackgroundFollowsWidth:Fn,setHeroBackgroundFollowsWidth:ai,sectionBackgroundWidth:Gn,setSectionBackgroundWidth:si,sectionContentWidth:Wn,setSectionContentWidth:ni,photographyGrayscale:Un,setPhotographyGrayscale:ii,shareButtonOnPosts:Yn,setShareButtonOnPosts:ri,themeFromDocument:Kn},children:e})})}var Br=()=>Nr(wa);function rm(e,t,o){return e?t===o?"read":"loading":"none"}function lm(e,t){return{value:e,readFor:t}}function cm(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function dm(){let{sectionContentWidth:e,themeFromDocument:t}=Br();return t?null:e}var pm=["general","commerce","service"],oe=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"GalleryB",label:"Gallery",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function mm(){return Object.fromEntries(oe.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var Mr="2027-02-05",Fr="2027-02-14",ga={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
2
2
 
3
3
  WHAT REPLACES IT: Tab Bar, a Box pinned under the header that stays above the sections after it, with a line below, holding the Menu block (One row, Menu style Tabs, Current page). Set the Menu's content to Blog categories: the blog's own categories, most posts first, each with its count in its cell (the host seeds the count card, Count on). Its converter row (\`section-to-box-rows-tabbar\` \`categoryBar\`, OFF) draws that bar for a stored page that moves later.
4
4
 
@@ -28,7 +28,7 @@ WHAT REPLACES IT: a Cards section with Card style set to Label only. Every cell
28
28
 
29
29
  WHAT A MERCHANT LOSES on a NEW Label only section: nothing this section had. It GAINS the Cards head split (its head can move into a box of its own), which Key Features never had: that head draws the shared \`simple\` head, eyebrow ABOVE the heading, where Key Features drew it beside.
30
30
 
31
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${Hr}). Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`},DeliveryOptions:{label:"Delivery Options",note:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` \xA75).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming."},Series:{label:"Recurring Columns",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
31
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${Mr}). Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`},DeliveryOptions:{label:"Delivery Options",note:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` \xA75).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming."},Series:{label:"Recurring Columns",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
32
32
 
33
33
  WHAT REPLACES IT: Cards drawn from its card template. A column's number is Number, its "Right Top Text" Corner note, its title Card title, its words Card body, its count and label one Count, and the one \`viewLabel\` a plain Text typed once in the template, so every card shows it; the background is the Box's. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
34
34
 
@@ -76,7 +76,7 @@ WHAT REPLACES IT: a Box. \`eyebrow\`, \`title\` and \`body\` are Text blocks; ea
76
76
 
77
77
  0 Integrations nodes are stored on the US sites (76 pages, read only, 2026-11-14). Old sites stay as they are (owner, 2026-11-06).
78
78
 
79
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until ${Dr}. A stored Integrations node still renders through it and can still be edited; no document is rewritten.`},HeroSingle:{label:"Hero Single",note:`Owner, 2026-10-10: three heroes into one, the Hero (the slideshow) is the base; a single hero is a Hero with one slide. Every row the single Hero has is a slide row now: the picture is Media \u203A Image, Image 2 on the slide as it was on the single Hero (lib/document/hero-media-parts), with the same rows from one home (blocks/hero-shared-fields: the two-picture Layout, Image 2 and its tint); the height, corners, border, stick, anchor, entrance, scroll, width and hide are the Hero's own section rows.
79
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until ${Fr}. A stored Integrations node still renders through it and can still be edited; no document is rewritten.`},HeroSingle:{label:"Hero Single",note:`Owner, 2026-10-10: three heroes into one, the Hero (the slideshow) is the base; a single hero is a Hero with one slide. Every row the single Hero has is a slide row now: the picture is Media \u203A Image, Image 2 on the slide as it was on the single Hero (lib/document/hero-media-parts), with the same rows from one home (blocks/hero-shared-fields: the two-picture Layout, Image 2 and its tint); the height, corners, border, stick, anchor, entrance, scroll, width and hide are the Hero's own section rows.
80
80
 
81
81
  WHAT REPLACES IT: a Hero with one slide (Hero \u203A Slide \u203A Box). The words are Boxes on the slide, as they were Boxes on the single Hero.
82
82
 
@@ -92,5 +92,5 @@ WHAT A MERCHANT LOSES until the wall is redone: the photo wall and the section h
92
92
 
93
93
  Old sites stay as they are (owner, 2026-11-06); moving a stored page is a separate write that needs the owner's word.
94
94
 
95
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Contact / Locations node still renders through it and can still be edited; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items \xB7 Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. \u26D4 A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},Br=Object.fromEntries(Object.entries(wa).map(([e,t])=>[e,t.note])),om=["Grid","Spacer","TyreFitment"],am=Array.from(new Set([...oe.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(Br)])),Mr=Object.fromEntries(Object.entries(wa).map(([e,t])=>[e,t.label])),sm={...Mr,...Object.fromEntries(oe.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},Fr={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",HostPart:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",WheelDiagram:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",ProductBuyButton:"commerce",ProductSku:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EuTyreLabel:"commerce",PaymentBadges:"general",ContactLocations:"general",HeroSingle:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},_t={...Fr,...Object.fromEntries(oe.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function nm(e){return P(_t,e)}function Ot(e){return Object.keys(_t).filter(t=>P(_t,t)===e).sort()}var im=Ot("general"),rm=Ot("commerce"),lm=Ot("service"),Gr="Flex",Ce="Box",cm=`${Ce}es`;function Wr(e){return e==="section"?"Blank section":Ce}function dm(e,t,o){return e===Gr?Wr(t):o}var W=["highlight","strong","quiet"],U={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},I={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},pm=Object.fromEntries(W.map(e=>[I[e].kind,e])),mm="data-sf-ws",Ur=["accent","text","labels"],Yr={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},Kr=80,$r=120,Vr=100,jr=900,Xr=.5,zr=3,qr=-.1,Qr=.5,Zr=3,vt={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},Jr={highlight:{...vt},strong:{...vt},quiet:{...vt}};function ga(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function ba(e,t,o){if(typeof e!="number"||!Number.isFinite(e))return null;let a=10**Zr;return Math.round(Math.min(Math.max(e,t),o)*a)/a}function ya(e){return typeof e=="boolean"?e:null}function el(e,t=v){let o=typeof e?.font=="string"&&t.byKey.has(e.font)?e.font:null,a=typeof e?.colour=="string"&&Ur.includes(e.colour)?e.colour:null;return{font:o,size:ga(e?.size,Kr,$r),weight:ga(e?.weight,Vr,jr),bold:ya(e?.bold),italic:ya(e?.italic),lineGap:ba(e?.lineGap,Xr,zr),textGap:ba(e?.textGap,qr,Qr),colour:a}}function Ea(e,t=v){let o={};for(let a of W)o[a]=e&&a in e&&e[a]?el(e[a],t):{...Jr[a]};return o}function fm(e,t=v){let o=Ea(e,t),a={};for(let s of W){let n=o[s],i=`--sf-ws-${s}`;if(n.font){let r=t.byKey.get(n.font);r&&(a[`${i}-font`]=`var(${r.cssVar})`)}n.size!==null&&(a[`${i}-size`]=`${n.size/100}em`),n.weight!==null&&(a[`${i}-weight`]=String(n.weight)),n.bold!==null&&(a[`${i}-weight-bold`]=n.bold?"700":"400"),n.italic!==null&&(a[`${i}-style`]=n.italic?"italic":"normal"),n.lineGap!==null&&(a[`${i}-line`]=String(n.lineGap)),n.textGap!==null&&(a[`${i}-track`]=`${n.textGap}em`),n.colour!==null&&(a[`${i}-color`]=Yr[n.colour])}return a}function wm(e,t=v){let o=e?.word_styles??void 0,a={};for(let s of W)o&&s in o&&(a[s]=o[s]??null);return Ea(a,t)}import{applyMark as ym,markupTools as Em,MARKUP_TOOLS as Tm,COPY_FIELD_TOOLS as Sm,STOREFRONT_MARKUP as _m,tokenizeInline as Om,stripInline as vm,isSafeLinkHref as xm}from"efficient-shell/markup";import{applyMark as tl,clearStyle as ol,markedAt as al,markupTools as sl,MARKUP_TOOLS as nl,parseMarkup as il,RETIRED_MARKS as rl,STOREFRONT_MARKUP as ll,tokenizeInline as Rm}from"efficient-shell/markup";var cl=new Set(["strong"]),Ta=W.map(e=>({open:I[e].delimiter,close:I[e].delimiter,kind:I[e].kind,...cl.has(e)?{wordStart:!0}:{}})),Lm=[{style:I.highlight.kind,label:U.highlight,title:`${U.highlight} word style`},{style:I.strong.kind,label:U.strong,title:`${U.strong} word style`},{style:I.quiet.kind,label:U.quiet,title:`${U.quiet} word style`}],dl=new Set(Ta.map(e=>e.open)),xt=[...ll.filter(e=>!dl.has(e.open)),...Ta];function hl(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Sa(e){return il(typeof e=="string"?e:"",xt)}var ul=nl.map(e=>e.style).filter(e=>!rl.includes(e)).filter(e=>xt.some(t=>t.kind===e));function Cm(){return sl(ul)}var _a=Object.fromEntries(W.map(e=>[I[e].kind,I[e].delimiter]));function Im(e,t,o,a){let s=_a[a];if(!s)return tl(e,t,o,a);let n=e.slice(t,o),i=e.slice(Math.max(0,t-s.length),t),r=e.slice(o,o+s.length);if(i===s&&r===s)return{text:e.slice(0,t-s.length)+n+e.slice(o+s.length),selectionStart:t-s.length,selectionEnd:t-s.length+n.length};let c=n||"styled text";return{text:e.slice(0,t)+s+c+s+e.slice(o),selectionStart:t+s.length,selectionEnd:t+s.length+c.length}}function Pm(e,t,o,a){let s=_a[a];return s?t>=s.length&&e.slice(t-s.length,t)===s&&e.slice(o,o+s.length)===s:al(e,t,o,a)}function Oa(e){return e.replace(/==(.+?)==/g,(t,o)=>o.startsWith("_")&&o.endsWith("_")?t:`==_${o}_==`)}function Nm(e){return Sa(e).map(t=>hl(t)+va(t.children)).join(`
96
- `)}function Hm(e,t,o){return ol(e,t,o,xt)}function va(e){return e.map(t=>t.kind==="text"?t.text:va(t.children)).join("")}function Dm(e){let t=o=>o.some(a=>a.kind==="link"||"children"in a&&t(a.children));return Sa(e).some(o=>t(o.children))}import{AUTO_RULES as pl,FOLLOW_RULES as ml,isAuto as fl,resolveViewValue as wl}from"efficient-easel/screen/lib/content/view-tiers";function gl(){return Uo==="v2"?pl:ml}function Ie(e,t,o,a,s=gl()){let n=wl(e,t,o,a,s),i={},r=(c,h)=>!fl(c)||h!=null&&h!==t;return r(o,n.tablet)&&(i.tablet=n.tablet),r(a,n.phone)&&(i.phone=n.phone),i}var xa=-1,bl="sf-section-accent",Um="Color",Ym=new Set(["CategoryBar","DocTabs"]),Km=new Set(["Flex"]),yl=0;function El(e){return e===xa?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:yl}function $m(e){return e??xa}function Tl(e){let t=`--theme-preset-${e}`,o={"--sf-sec-accent":`var(${t}-accent)`,"--sf-sec-accent-2":`var(${t}-accent-2)`,"--sf-sec-accent-ink":`var(${t}-accent-ink)`};for(let{role:a}of Et)o[`--sf-sec-${a}`]=`var(${t}-${a}, var(--theme-${a}))`;return o}function Vm(e){let t=El(e.sectionAccent);return t===null?null:{className:bl,style:Tl(t)}}import{isNodeList as Sl}from"efficient-easel/data";import{parseOption as _l}from"efficient-shell/format";var Pe=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],Ra="bottom-left",Y=4,Ol=Y+1,ka=40,vl=30,xl=100,kl=60,qm=100;var kt={"top-left":"Top left","top-center":"Top center","top-right":"Top right",left:"Left",center:"Center",right:"Right","bottom-left":"Bottom left","bottom-center":"Bottom center","bottom-right":"Bottom right"};function Rl(e){let t=Pe.indexOf(ae(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function Al(e){return 1+Rl(e).band*(Ol+1)}function Qm(e){return Al(e)+1}function ae(e){return _l(Pe,Ra,e)}function Zm(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-ka,Math.min(ka,Math.round(t)))}function Jm(e,t=kl){let o=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(vl,Math.min(xl,Math.round(o)))}function Rt(e,t){let o=ae(t);return e.filter(a=>ae(a?.props?.placement)===o).length}function Aa(e){return`${kt[ae(e)]} already holds ${Y} boxes. Move one somewhere else first.`}function ef(e,t){let o=e.filter(a=>a?.props?.id!==t);return Pe.map(a=>{let s=Rt(o,a)>=Y,n=kt[a];return s?{value:a,label:n,disabled:!0,title:Aa(a)}:{value:a,label:n}})}function Ll(e,t){let o=t===void 0?Ra:ae(t?.props?.placement);return Rt(e,o)>=Y?Aa(o):null}var La="HeroGroup";function tf(e){let t=new Map,o=!1,a=e.filter(s=>{let n=ae(s?.props?.placement),i=(t.get(n)??0)+1;return t.set(n,i),i<=Y?!0:(o=!0,!1)});return o?a:e}function Cl(e){return Pe.map(t=>{let o=Rt(e,t);return{anchor:t,total:o,hidden:o-Y}}).filter(t=>t.hidden>0)}function of(e){let t=Cl(e);return t.length===0?null:t.map(({anchor:o,total:a,hidden:s})=>{let n=kt[o],i=s===1?"1 is not shown":`${s} are not shown`;return`${n} holds ${a} boxes. The published page draws the first ${Y}, so ${i}. ${s===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function af(e,t){let o=t;if(o?.type!==La)return null;let a=o.props?.id===void 0?"":String(o.props.id);return a?Ll(Il(e,a),o):null}function Il(e,t){let o=Ca(e,t);return o&&o.ownerType===Nl?o.siblings:[]}function sf(e,t){let o=Ca(e,t);return o?o.ancestorTypes.filter(a=>a===La).length:Pl}var Pl=1,Nl="HeroSlide";function Ca(e,t){let o=(a,s,n)=>{if(s>12||!a||typeof a!="object")return null;if(Sl(a)){if(a.some(i=>i?.props?.id===t))return{siblings:a,ownerType:n.at(-1)??null,ancestorTypes:n};for(let i of a){let r=i.type,c=o(i,s+1,[...n,String(r)]);if(c)return c}return null}for(let i of Object.values(a)){let r=o(i,s+1,n);if(r)return r}return null};return o(e,0,[])}var At={desktop:"desktop",tablet:"tablet",phone:"mobile"},Hl=Object.keys(At);function Ia(e){return At[e??"desktop"]}function rf(e){return Hl.find(t=>At[t]===e)??"desktop"}import{FOLLOW_RULES as Dl,resolveViewValue as Bl,viewKeyAt as Ml}from"efficient-easel/screen/lib/content/view-tiers";var Fl=["desktop","tablet","phone"],Ct=(e,t)=>Ml(e,Ia(t)),hf=e=>e.flatMap(t=>Fl.map(o=>Ct(t,o))),Lt=e=>e===null||e===""?void 0:e,Gl=(e,t,o)=>Bl("same",Lt(e),Lt(t),Lt(o),Dl);function uf(e,t,o,a=e[t]){return Gl(a,e[Ct(t,"tablet")],e[Ct(t,"phone")])[o]}var Wl="Website";function mf(e){return e?.trim()||Wl}function se(e,t){let o=globalThis,a=Symbol.for(e),s=o[a];return s===void 0&&(s=t(),o[a]=s),s}function fe(){return se("efficient.slot-field-blocks",()=>new Set)}var Ul="dataSource",Sf="dataSourceOptions",Yl="dataRows",_f="countKey",Of="counts",vf="location-payment-methods",xf="shop-payment-methods",kf="delivery-options",Rf="blog-categories",It="dealers",Kl="site-offices";function $l(e){return typeof e.open=="function"}var Ha=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Af(e){return typeof e=="string"&&Ha.test(e)}var Pa=new Set([It,Kl]);function we(){return se("efficient.block-sources",()=>({sources:new Map,revision:0}))}var Vl=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),jl=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),Na=e=>typeof e=="string"&&e.trim()!=="";function Xl(e){if(!e||!Na(e.label))return null;if($l(e))return{label:e.label.trim(),open:e.open};let t=e.href;return Na(t)?{label:e.label.trim(),href:t.trim()}:null}function zl(e){if(typeof e.key!="string"||!Ha.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(a=>typeof a!="string"||!a))throw new Error(`The block source ${e.key} names no block it can fill.`);let t=e.blocks.find(a=>fe().has(a));if(t)throw new Error(`The block source ${e.key} names ${t}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);let o=Xl(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(a=>Ba(a)).filter(a=>a!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(Vl)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(jl).map(a=>({...a}))}:{},...o?{edit:o}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(a=>typeof a=="string"&&a.trim()!=="").map(a=>a.trim())}:{}}}function Lf(e){let t=e.map(zl),o=we();for(let a of t)o.sources.set(a.key,a);t.length&&(o.revision+=1)}function Da(e){let t=[...we().sources.values()],o=[...t.filter(a=>!Pa.has(a.key)),...t.filter(a=>Pa.has(a.key))];return e===void 0?o:o.filter(a=>a.blocks.includes(e))}function Ne(e){return we().sources.get(e)??null}function Cf(e){return we().sources.get(e)?.choices??[]}function If(){return we().revision}function x(e){let t=e?.[Ul];return typeof t=="string"?t.trim():""}function Ba(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[o,a]of Object.entries(e)){let s=A(a);s&&(t[o]=s)}return Object.keys(t).length?t:null}function ql(e){let t=e?.[Yl];return Array.isArray(t)?t.map(Ba).filter(o=>o!==null):null}function Pf(e,t,o=[]){let a=ql(e);if(a!==null&&(a.length||!t))return{rows:a,sample:!1};if(!t)return{rows:[],sample:!1};let s=Ne(x(e))?.sample;return{rows:s?.length?s:o,sample:!0}}var w="rowField",k="rowLinkField",d="template",L="CardList",ge="hideWhenRowEmpty",Pt=["Text","ImageBlock","ButtonBlock","Flex"];function K(){return{type:"slot",allow:[...Pt]}}var Ma=Pt.filter(e=>e!=="ButtonBlock");function Nt(){return{type:"slot",allow:[...Ma]}}var Ql="boxes",Fa={CardList:{template:Nt()},Cards:{template:K()},FAQ:{template:K()},Flex:{rowTitle:{type:"slot",allow:["Text"]},content:{type:"slot"}},Footprint:{template:K()},Grid:{content:{type:"slot"}},Hero:{slides:{type:"slot",ownPictures:!0},strip:{type:"slot",allow:["Flex"]}},HeroGroup:{content:{type:"slot"}},HeroSingle:{boxes:{type:"slot",allow:["HeroGroup"]}},HeroSlide:{groups:{type:"slot",allow:["HeroGroup"]}},Logos:{logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},OrderSummary:{template:K()},ProcessSteps:{[Ql]:{type:"slot"},template:K()}};import{isNodeList as Ga,slotsOf as Zl,storedKeyOrder as Jl}from"efficient-easel/data";var ec={},tc=null;function oc(){let e=Object.fromEntries(Object.entries(Fa).map(([t,o])=>[t,{fields:o}]));return tc??={components:{...e,...ec}}}function ne(e){let t=e.props??{},o=typeof e.type=="string"?e.type:"",a=oc(),s=o!==""&&Object.prototype.hasOwnProperty.call(a.components,o)?Zl({type:o,props:t},a).map(r=>r.slot).filter(r=>!r.includes(".")):[],n=s.filter(r=>Ga(t[r])),i=Jl(Object.keys(t).filter(r=>!s.includes(r)&&Ga(t[r])));return[...n,...i]}function Gf(e){let t=e.props??{};return ne(e).map(o=>t[o])}function Wf(e,t){let o=null;return e.forEach((a,s)=>{let n=t(a,s);n!==a&&((o??=e.slice())[s]=n)}),o??e}function Uf(e,t){let o=null;for(let a of ne(e)){let s=e.props[a],n=t(s,a);n!==s&&((o??={...e.props})[a]=n)}return o?{...e,props:o}:e}function ac(e,t){let o=e;if(!o||!Array.isArray(o.content))return e;let a=t(o.content);return a===o.content?e:{...o,content:a}}function Yf(e,t){let o=ac(e,t),a=e?.zones;if(!a||typeof a!="object")return o;let s=null;for(let[n,i]of Object.entries(a)){if(!Array.isArray(i))continue;let r=t(i);r!==i&&((s??={...a})[n]=r)}return s?{...o,zones:s}:o}var p="content",f="Flex",sc="Text & media",nc="Layout & structure",Ua=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],ic=[...Ua,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:sc})),rc=(oe.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:nc})),Wa=[...ic,...rc],Ht=[...Ua,{type:"HeroGroup",label:Ce}],jf=Ht.map(e=>e.type),lc=1,cc=Ht.filter(e=>e.type!=="HeroGroup");function dc(e){return e<lc?Ht:cc}var hc={Flex:{slot:p,choices:()=>Wa},Grid:{slot:p,choices:()=>Wa},HeroGroup:{slot:p,choices:dc}};function Xf(e,t=0){let o=P(hc,e);return o?{slot:o.slot,choices:o.choices(t)}:null}import{MEDIA_ZONES as uc,MEDIA_ZONE_LABELS as pc}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as mc,hoverKindsOf as De,motionSeconds as He,parseOption as be}from"efficient-shell/format";var ie={min:0,max:360,step:1},Ya="angle";function Qf(e){let t=N(e);if(t===void 0)return null;let o=Math.min(ie.max,Math.max(ie.min,t));return o===ie.min||o===ie.max?null:{rotate:`${o}deg`}}var C="hover",aw="_gHover",fc={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},$="highlight",wc="Highlight",sw=["none",$],nw={none:fc.none,[$]:wc};function gc(e){return e[C]===$?$:"none"}var iw="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]",rw="hover:[--fg:var(--sf-hl-ink)]! hover:[--fg-dim:inherit]! hover:[--site-line:inherit]! hover:[color:inherit]! active:[--fg:var(--sf-hl-ink)]! active:[--fg-dim:inherit]! active:[--site-line:inherit]! active:[color:inherit]!";function lw(e,t){return gc(e)!==$?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var bc=De(["none","lift"]);function cw(e){let t=e[C];return be(bc,"none",t)}var Va=De(["none","nextImage","rotate"]),R={kind:C,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},Mt="spinOnHover",Ka=ie,ja={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},dw=Object.keys(ja);function yc(e){return ja[e]??"none"}var Ec=mc.rotateFallbackDeg,Tc=e=>e==="rendering"?"renderings":e,Sc=e=>e==="renderings"?"rendering":e,Xa=Object.freeze(uc.filter(e=>e!=="videos").map(Tc)),hw=Object.freeze(Object.fromEntries(Xa.map(e=>[e,pc[Sc(e)]]))),_c=["finish","first"],uw={finish:"Same finish",first:"First group"},Oc=["card","picture"],pw={card:"Whole card",picture:"Picture"},Dt={kind:"photos",group:"finish",cover:"card"};function za(e){return{kind:be(Xa,Dt.kind,e[R.mediaKind]),group:be(_c,Dt.group,e[R.mediaGroup]),cover:be(Oc,Dt.cover,e[R.cover])}}function mw(){return{field:R.kind,is:"nextImage"}}function vc(e,t){let o=e[R.kind];if(Va.includes(o))return o;let a=e[Mt];return typeof a=="boolean"?a?"rotate":"none":t}function xc(e){let t=N(e);return t===void 0?Ec:Math.min(Ka.max,Math.max(Ka.min,t))}function fw(e,t){let o=yc(t),a=vc(e,o);return{kind:a,angle:a==="rotate"?xc(e[R.angle]):null,duration:He("hover","duration",a==="rotate"?e[R.duration]:void 0),delay:He("hover","delay",a==="rotate"?e[R.delay]:void 0),...a==="nextImage"?{media:za(e)}:{}}}function ww(e){let t={field:R.kind,in:[...Va]};return{any:[{field:R.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:Mt,is:!1}}:{field:Mt,is:!0}]}]}}var qa=De(["none","mono"]),kc=De(["none","nextImage","mono"]),Qa={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},gw=Object.keys(Qa);function Rc(e){return Qa[e]??"none"}var Za={zoom:"hoverZoom",darken:"hoverDarken"},Bt={min:100,max:150,step:1,unit:"%"};function Ac(e){let t=N(e[Za.zoom]);if(t===void 0)return null;let o=Math.min(Bt.max,Math.max(Bt.min,t));return o===Bt.min?null:String(o/100)}function Lc(e){let t=N(e[Za.darken]);return t!==void 0&&t>0?t:null}var bw="hoverShow",yw="cardHover",Ew="always",Cc=["ImageBlock","Flex"];function Ic(e,t,o=qa){let a=e[C];return be(o,t,a)}function Tw(e,t=""){let o=Cc.includes(t)?kc:qa,a=Ic(e,Rc(t),o),s=a==="mono";return{kind:a,duration:He("hover","duration",s?e[R.duration]:void 0),delay:He("hover","delay",s?e[R.delay]:void 0),...a==="nextImage"?{media:za(e),...t==="Flex"?$a(e):{}}:$a(e)}}function $a(e){let t=Ac(e),o=Lc(e);return{...t?{zoom:t}:{},...o?{darken:o}:{}}}function Sw(){return{not:{field:C,is:"nextImage"}}}function _w(e){return e==="none"?{field:C,in:["mono","nextImage"]}:{not:{field:C,is:"none"}}}function Ow(e){return e==="none"?{field:C,is:"mono"}:{not:{field:C,in:["none","nextImage"]}}}var kw={left:"start",center:"center",right:"end"},Rw={left:"justify-start",center:"justify-center",right:"justify-end"},Aw={left:"",center:"mx-auto",right:"ml-auto"},Ja={left:"",center:"text-center",right:"text-right"},Pc={text:{left:"view-wide:max-view-desktop:text-left",center:"view-wide:max-view-desktop:text-center",right:"view-wide:max-view-desktop:text-right"},place:{left:"view-wide:max-view-desktop:mx-0",center:"view-wide:max-view-desktop:mx-auto",right:"view-wide:max-view-desktop:ml-auto view-wide:max-view-desktop:mr-0"},items:{left:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-start",center:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-center",right:"view-wide:max-view-desktop:justify-items-end"},justify:{left:"view-wide:max-view-desktop:justify-start",center:"view-wide:max-view-desktop:justify-center",right:"view-wide:max-view-desktop:justify-end"}},Nc={text:{left:"max-view-wide:text-left",center:"max-view-wide:text-center",right:"max-view-wide:text-right"},place:{left:"max-view-wide:mx-0",center:"max-view-wide:mx-auto",right:"max-view-wide:ml-auto max-view-wide:mr-0"},items:{left:"max-view-wide:grid-cols-1 max-view-wide:justify-items-start",center:"max-view-wide:grid-cols-1 max-view-wide:justify-items-center",right:"max-view-wide:justify-items-end"},justify:{left:"max-view-wide:justify-start",center:"max-view-wide:justify-center",right:"max-view-wide:justify-end"}},Hc={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},Dc={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function Be(e){return e==="left"||e==="center"||e==="right"?e:void 0}function Lw(e){return e==="start"?"left":e==="end"?"right":Be(e)}function Bc(e,t,o){let a=Be(e)??"left",s=Ie("same",a,Be(t),Be(o)),n={};return s.tablet&&s.tablet!==a&&(n.tablet=s.tablet),s.phone&&s.phone!==a&&(n.phone=s.phone),n}function Cw(e,t,o,a,{atSectionLine:s=!1}={}){let n=Bc(t,o,a),i=s?Hc:Pc,r=s?Dc:Nc;return[n.tablet?i[e][n.tablet]:"",n.phone?r[e][n.phone]:""].filter(Boolean).join(" ")}var Ft="rowImageField",Mc="boxOutsideCopy",Fc={all:[{field:Ft,set:!0},{not:{context:Mc,is:!0}}]},Pw={any:[{field:"bgImage",set:!0},Fc]},es="boxInCopy",Gc={any:[{not:{field:Ft,set:!0}},{not:{context:es,is:!0}}]},Nw={all:[{not:{field:"bgImage",set:!0}},Gc]},ts={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${Ft}`,set:!0}},{not:{context:es,is:!0}}]}]};import{parseOption as os}from"efficient-shell/format";var Wc="small",Uc="dot",Yc=[{label:"Small",value:"small"},{label:"Display",value:"display"}],Gt=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],as={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},Kc={small:"font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.25em] max-view-wide:text-[length:var(--size-label,12px)]",display:"font-display font-medium text-[length:var(--size-headingMedium,44px)] uppercase leading-none tracking-[0.005em] max-view-wide:text-[length:var(--size-headingMedium,28px)]"},$c={small:{dot:"",cross:"text-[0.77em]",slash:"text-[0.77em]",triangle:"",none:""},display:{dot:"text-[0.3em]",cross:"text-[0.64em]",slash:"text-[0.64em]",triangle:"text-[0.3em]",none:""}};function Bw(e){return os(Yc,Wc,e)}function ss(e){return os(Gt,Uc,e)}function Mw(e){return Kc[e]}function ns(e,t){return $c[e][t]}var Ww=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function is(e){return Gt.some(t=>t.value===e)?ss(e):void 0}var Vc="overflow-x-clip [&>*]:shrink-0 [&>[data-sf-box-items]>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>[data-sf-box-items]>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function V(e,t){return e==="row"&&is(t)!==void 0}function Uw(e,t){return V(e,t)?Vc:""}var jc="[&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:inline-flex [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:items-center [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:align-top [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:h-[calc(1lh/var(--sf-sep-k,1))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:ml-[var(--sf-gap-len,0px)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:after:ml-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-accent [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]:last-child>*:not(:last-child)_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-none";function Yw(e,t){return V(e,t)?jc:""}function Kw(e,t){if(!V(e,t))return{};let o=is(t),a=/^text-\[([\d.]+)em\]$/.exec(ns("small",o))?.[1],s=as[o];return{"--sf-sep-mark":s===""?"none":JSON.stringify(s),...a?{"--sf-sep-k":a}:{}}}import{parseOption as Xc}from"efficient-shell/format";var ds={sectionPaddingTop:0,sectionPaddingBottom:0},ye={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},le={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},Zw=[...new Set([...Object.keys(le),...Object.keys(Ja)])];function Jw(e,t){let o=typeof e=="string"&&Q(ye,e)?ye[e]:"",a=typeof t=="string"&&Q(le,t)?le[t]:"";return[o,a].filter(Boolean).join(" ")}function zc(e){return e===!0||e==="wrap"?"flex-wrap":""}var qc={start:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!",end:"view-wide:max-view-desktop:justify-end!"},Qc={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},Zc={start:"view-wide:max-view-desktop:items-start!",center:"view-wide:max-view-desktop:items-center!",end:"view-wide:max-view-desktop:items-end!",stretch:"view-wide:max-view-desktop:items-stretch!"},Jc={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},ed={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function z(e,t){return typeof t=="string"&&Q(e,t)?t:void 0}function Ut(e,t,o){let a=Ie("same",e,t,o),s={};return a.tablet!==void 0&&a.tablet!==e&&(s.tablet=a.tablet),a.phone!==void 0&&a.phone!==e&&(s.phone=a.phone),s}function Yt(e,t,o){return[e.tablet?t[e.tablet]:"",e.phone?o[e.phone]:""].filter(Boolean).join(" ")}function td(e,t,o){return Ut(z(ye,e)??"start",z(ye,t),z(ye,o))}function eg(e,t,o){return Yt(td(e,t,o),qc,Qc)}function tg(e,t,o){let a=z(le,e)??"stretch";if(a==="stretch")return"";let s=Ut(a,z(le,t),z(le,o));return Yt(s,Zc,Jc)}function Wt(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function og(e,t){let o=zc(e)===""?"nowrap":"wrap",a=Wt(t);return a&&a!==o?ed[a]:""}var ag="Block widths",hs=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{value:"bigLeft",weights:[2,1]},{value:"bigRight",weights:[1,2]},{value:"biggerLeft",weights:[3,1]},{value:"biggerRight",weights:[1,3]},{value:"twoThree",weights:[2,3]}],od="data-sf-box-items",sg=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${od}\\][^\\s"'\`]*`,"g");var ng=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function ig(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in Me?"custom":"content"}var us=4,rs=10;function ad(e,t){if(!Number.isInteger(t)||t<2||t>us||e.length!==t-1||!e.every(s=>typeof s=="number"&&Number.isFinite(s)))return;let o=[],a=0;return e.forEach((s,n)=>{let i=100-a-rs*(t-1-n),r=Math.min(i,Math.max(rs,Math.round(s)));o.push(r),a+=r}),o}function ls(e,t,o){if(!Array.isArray(t))return;let a=ad(t,o),s=a?[...a,100-a.reduce((i,r)=>i+r,0)]:[],n={};for(let i=0;i<us;i+=1)n[`--${e}-${i+1}`]=s[i]??1;return n}function rg(e,t,o){let a=ls("sf-share",e,o),s=ls("sf-share-tablet",t,o);return a||s?{...a,...s}:void 0}function sd(e,t){let o=Array.from({length:t},()=>1),a=hs.find(i=>i.value===e);if(!a?.weights||t<1)return o;let[s,n]=a.weights;return s>1&&(o[0]=s),n>1&&(o[t-1]=n),o}function lg(e,t){if(typeof e!="string"||!(e in Me)||e==="equal")return e;let o=sd(e,t),a=o.reduce((s,n)=>s+n,0);return o.slice(0,-1).map(s=>Math.round(s/a*100))}var j="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",Me={equal:j,bigLeft:`${j} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${j} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${j} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${j} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${j} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},nd=`${j} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function id(e){return Array.isArray(e)?nd:typeof e=="string"?Me[e]??"":""}var cg={all:[{context:"parentType",is:"Flex"},{context:"parent.direction",is:"row"},{any:[{not:{context:"parent.align",set:!0}},{context:"parent.align",is:"stretch"}]},{not:{context:"parent.separator",set:!0}},{not:{context:"parent.loop",is:"scroll"}},{not:{context:"parent.line",is:!0}},ts,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(Me)}]}]}]},ps="view-wide:max-view-desktop:flex-row!",X=`${ps} [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-0!`,ms={content:`${ps} [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]!`,equal:X,bigLeft:`${X} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,bigRight:`${X} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,biggerLeft:`${X} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,biggerRight:`${X} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,twoThree:`${X} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`},rd=`${X} [&>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>[data-sf-box-items]>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>[data-sf-box-items]>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>[data-sf-box-items]>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]! [&>[data-sf-box-items]>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]!`;function ld(e){return Array.isArray(e)||typeof e=="string"&&e in ms?e:null}function dg(e){if(e.direction!=="row"||V(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||fs(e.columns)!==""||ws(e.columnsTablet)!=="")return"";let t=ld(e.shareTablet);return t===null?"":typeof t=="string"?ms[t]:rd}var cd="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function hg(e){return id(e)===""?cd:""}var ug="Columns",pg=1,mg=3,Kt={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},fg=hs.filter(e=>e.value==="content"||e.value==="equal"),wg="equal",gg=1,bg=6,re="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",dd={1:`${re} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function fs(e){return typeof e=="number"?dd[e]??"":""}var hd={1:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]!",2:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function ws(e){return typeof e=="number"?hd[e]??"":""}function yg(e){return e.direction!=="row"||V(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":ws(e.columnsTablet)}function Eg(e){return e.direction!=="row"||V(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":fs(e.columns)}var gs={2:"view-wide:grid view-wide:grid-cols-2",3:"view-wide:grid view-wide:grid-cols-3",4:"view-wide:grid view-wide:grid-cols-4",5:"view-wide:grid view-wide:grid-cols-5",6:"view-wide:grid view-wide:grid-cols-6"},bs={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},Tg=Object.keys(gs).map(Number),Sg=Object.keys(bs).map(Number);function _g(e,t,o=!1){let a=typeof e=="number"?gs[e]??"":"",s=bs[Number(t)]??"";return!a&&!s?"":[a,s,o?"gap-y-0!":""].filter(Boolean).join(" ")}var ud="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]",pd={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},md="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]";function fd(e,t){return(Wt(e)??Wt(t)??"wrap")==="nowrap"}function Og(e,t,o,a){let s=Kt[Number(e)];if(!s)return"max-view-wide:flex-col";let n=fd(o,a);return ys(e,t)?n?md:ud:n?pd[Number(e)]:s}function vg(e,t){return Number(e)in Kt&&!ys(e,t)}function ys(e,t){return Number(e)in Kt&&t==="content"}var xg="Block spacing",wd=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],gd="sf-box-gap-only";function kg(e){return e==="gap"?gd:""}var cs={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},bd={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function Rg(e,t,o){let a=n=>z(cs,n),s=Ut(Xc(wd,"each",e),a(t),a(o));return Yt(s,cs,bd)}var Es={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Pg,tag:Ng,...yd}=Es.defaultProps,b=yd,T={...b,tone:"dim"},Ed={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},g={...Ed,direction:"column",...ds},H=(e,t=e,o=e,a=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:o,sectionPaddingRightPhone:a,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:a}),Td=e=>({fillColor:e}),Ts=(e,t,o={})=>({...g,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?Td(t):{},...o}),y=(e,t,o,a)=>({sizeToken:{step:e,px:t,...a?{stepPhone:a}:{},...o?{pxPhone:o}:{}}}),Hg=e=>({textStyle:"body-1",...y("body",e),lineHeight:1.625}),Ss={case:"upper"},$t={textStyle:"body-5",...Ss},Vt=(e,t)=>({...y("label",e,t),letterSpacing:.2,...Ss}),jt=(e,t)=>({...$t,...Vt(e,t)});function E(e,t,o=""){return e.map((a,s)=>{let n=o?`${o}.${s}`:String(s),i={...a.props??{}};for(let[r,c]of Object.entries(a.slots??{}))i[r]=E(c,t,n);return{type:a.type,props:{...i,id:t(a.type,n)}}})}function B(e,t){return typeof e.id=="string"&&e.id.trim()?e.id:t}var ce=(e,t)=>(o,a)=>a==="0"?`${e}~${t}`:`${e}~${t}.${a.slice(2)}`;function M(e,t,o,a){return e[t]!==void 0?e:{...e,[t]:a(B(e,o))}}var Mg=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),_s=()=>({_partStyles:{text:{...$t,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var de="Cards",Sd={...g,gap:12,gapPhone:12,...H(32,32,28,28)},_d={textStyle:"heading-3",...y("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},Ee={textStyle:"body-1",...y("body",15),lineHeight:1.6},u=(e,t,o,a=!1)=>({type:"Text",props:{...t,text:"",[w]:e,_partStyles:{text:{...a?_s()._partStyles?.text??{}:{},...o}}}}),he={title:"title",body:"body"},Fe={title:"name",body:"note"},Od=(e=he)=>({type:f,props:{...Sd,name:"Card"},slots:{[p]:[u(e.title,{...b,tag:"p",widthFit:"fill"},_d),u(e.body,{...T,tag:"p",widthFit:"fill"},Ee)]}}),vs=(e,t)=>E([Od(t)],e),Os={label:he.title,href:"href"},vd={textStyle:"body-1",fontRole:"heading",color:"text",...y("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},xd=Ts(9,"main",{[Ya]:45}),kd=(e=!1)=>({type:f,props:{...g,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...H(32,28),[k]:Os.href,...e?{[C]:$}:{}},slots:{[p]:[{type:f,props:{...xd,name:"Mark"}},u(Os.label,{...b,tag:"p",widthFit:"fill"},vd)]}}),xs=e=>ce(e,"card"),ks=(e,t=!1)=>E([kd(t)],e);var Xt="ArticleBody",Rd={textStyle:"heading-3",...y("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},Ad={...Ee,align:"center"},Rs=640,Ld=()=>[u("heading",{...b,tag:"h2",align:"center",maxWidth:Rs},Rd),u("paragraph",{...T,tag:"p",align:"center",maxWidth:Rs},Ad)],Cd=e=>E(Ld(),e);function Id(e){return Cd((t,o)=>`${e}~${o==="0"?"heading":"paragraph"}`)}function As(e){return M(e,d,Xt,Id)}import{addShowWhenFacts as Pd}from"efficient-shell/format";import{showWhenOf as Jg,shownForOption as eb,truthy as tb,withRowRules as ob,withRowsShownWhen as Ls,withShowWhen as ab}from"efficient-shell/format";var sb=Pd;function nb(e,t,o){return e.slice(0,-1).reduceRight((a,s)=>({any:[{all:[t(s),o(s)]},{all:[{not:t(s)},a]}]}),o(e[e.length-1]))}import{parseOption as Nd}from"efficient-shell/format";var Hd="inline",Dd=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"},{label:"In the list column",value:"list-column",only:["Footprint"]}],Cs="list-column";var Bd={ProductGrid:{num:"num",title:"title",description:"description",headRows:["num","title","titleSize","description","linkText","linkHref"],renderer:"ProductGridSection",padKey:"padTop",linkProp:"link"},TyreSizes:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreSizes"},FitmentFinder:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentFinder"},TyreFitment:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreFitment"},BundleOffer:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},CompatibleTyres:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},RelatedProducts:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},SpecTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"SpecTable"},FAQ:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"FAQ"},GalleryB:{num:"num",title:"title",headRows:["num","title","linkText","linkHref"],renderer:"GalleryGrid"},FitmentTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentTable"},Events:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"Events"},ProcessSteps:{num:"num",title:"title",description:"description",headRows:["num","title","description"],headStyle:"editorial",renderer:"ProcessSteps",padKey:"padTop"},LongRead:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"LongRead"},Series:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Series"},Subscribe:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Subscribe"},TimelineTrack:{num:"eyebrow",title:"title",description:"intro",headRows:["eyebrow","title","intro"],headStyle:"editorial",renderer:"TimelineTrack",padKey:"padTop"},StatsParagraph:{num:"eyebrow",title:"title",description:"desc",headRows:["eyebrow","title","desc"],headStyle:"editorial",renderer:"StatsParagraph"},Footprint:{num:"sectionNumber",title:"heading",description:"tagline",headRows:["sectionNumber","heading","tagline"],headStyle:"editorial",renderer:"Footprint",padKey:"padTop"},Collections:{num:"eyebrow",title:"heading",headRows:["eyebrow","heading"],renderer:"Collections"},Cards:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Cards"},Testimonials:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Testimonials"},Reviews:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Reviews"},Prose:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"essay",renderer:"Prose"},ReviewForm:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"simple",renderer:"ReviewForm"},DeliveryOptions:{num:"eyebrow",title:"title",description:"body",headRows:["eyebrow","title","body"],headStyle:"natural",headRowGap:"gap-3",headDescriptionSize:"text-[15px]",renderer:"DeliveryOptions"}},db="SectionHeader";function hb(e){return Q(Bd,e)}function Ge(e){return Nd(Dd,Hd,e)}var Md=new Set(["Flex"]);function ub(e){return!!e?.type&&Md.has(e.type)}var Is={not:{field:"headPlacement",is:"own-box"}},pb={not:Is};function mb(e,t,o){return Ls(e,o,Is)}var wb="data-sf-spec-region";function gb(e){return e.writable===!0&&e.sized===!0}function bb(e,t,o){if(!e)return;let a=o[e];if(a)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${a}, ${t.builtIn})`}}function yb(e){let t=/var\(--size-[A-Za-z]+, ?([0-9.]+px)\)/.exec(e);if(!t)throw new Error(`builtInOf: no --size-* fallback in ${e}`);return t[1]}function Ps(e){return`@${e}`}function Eb(e,t){if(!t.startsWith("@"))return null;let o=t.slice(1);return o in e?o:null}function Tb(e,t){return t&&t in e?t:null}function Hs(e,t){if(e!==de)return t;if(t[d]!==void 0)return Ns(t);let o=B(t,de),a=xs(o);if(t.cardStyle==="label-only"){let n=Array.isArray(t.items)&&t.items.some(i=>A(i?.href)!==void 0);return Ns({...t,[d]:ks(a,n)})}let s=x(t)?Fe:he;return{...t,[d]:vs(a,s)}}var Fd=e=>{let[t,o]=e?[he,Fe]:[Fe,he];return new Map([[t.title,o.title],[t.body,o.body]])};function Ds(e,t){let o=null;return e.forEach((a,s)=>{let n=a?.props;if(!n)return;let i=n,r=n[w];a.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[w]:t.get(r)});let c=n[p];if(Array.isArray(c)){let h=Ds(c,t);h!==c&&(i={...i,[p]:h})}i!==n&&(o??=[...e],o[s]={...a,props:i})}),o??e}function Ns(e,t){if(!Array.isArray(e[d]))return e;let o=Fd(!!x(e)),a=t?new Map([...o].filter(([n,i])=>t(i)&&!t(n))):o;if(!a.size)return e;let s=Ds(e[d],a);return s===e[d]?e:{...e,[d]:s}}var Bs="OrderSummary";var Gd="label";function We(e){return M(e,d,L,t=>E([Wd()],ce(t,"item")))}function Wd(){return{type:f,props:{...g,name:"Item"},slots:{[p]:[u(Gd,{...b,tag:"p"},Ee)]}}}var Ms="ProcessSteps",Ud={eyebrow:"eyebrow",title:"title",copy:"copy",image:"image",tag:"tag",specs:"specs"},ue=Ud,Yd=()=>({type:f,props:{...g,name:"Row",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[p]:[{type:f,props:{...g,name:"Picture",direction:"column",gap:12},slots:{[p]:[{type:"ImageBlock",props:{[w]:ue.image,aspect:"1/1",fit:"contain"}},u(ue.tag,{...T,tag:"p"},jt(11))]}},{type:f,props:{...g,name:"Words",direction:"column",gap:16},slots:{[p]:[u(ue.eyebrow,{...b,tag:"p"},{...jt(13),color:"accent"}),u(ue.title,{...b,tag:"h2"},{textStyle:"heading-2",...y("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),u(ue.copy,{...T,tag:"p"},{textStyle:"body-1",...y("body",15),lineHeight:1.6}),{type:L,props:{[w]:ue.specs}}]}}]}});function Fs(e){return e.map(t=>{let o=t.props;for(let a of ne(t))o={...o,[a]:Fs(o[a])};return t.type===L?{...t,props:We(o)}:{...t,props:o}})}function Ub(e){return Fs(E([Yd()],ce(e,"row")))}var Kd="label",$d=()=>({type:"LogoBlock",props:{[w]:Kd}}),Ue="Logos",Gs=e=>E([$d()],()=>`${e}~logo`);function Ws(e){return x(e)?M(e,d,Ue,Gs):e}function jb(e){if(!x(e))return e;let t=e[d];return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:{...e,[d]:Gs(B(e,Ue))}}var zt={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0,sized:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0,sized:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0,sized:!0}},zb=zt;var qt="FAQ",Vd="question",jd="answer",Xd={textStyle:"body-1",fontRole:"heading",...y("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},zd={textStyle:"body-1",...y("body",15),lineHeight:1.7};function ny(){return Object.keys(zt).map(Ps)}var qd=()=>({type:f,props:{...g,gap:0,name:"Question"},slots:{rowTitle:[u(Vd,{...b,tag:"p",widthFit:"fill"},Xd)],[p]:[u(jd,{...T,tag:"p",widthFit:"fill",maxWidth:760},zd)]}});function Qd(e){return Ge(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>A(e[t])!==void 0)}function Us(e){return Qd(e)?e:M(e,d,qt,t=>{let o=0;return E([qd()],a=>a===f?`${t}~row`:`${t}~row.${o++}`)})}import{rootIsDark as Zd}from"efficient-shell/format";function ly(e="auto"){return e==="light"?!0:e==="dark"?!1:!Zd({whenUnset:!0})}function Ys(e,t){return Number.isFinite(e)&&Number.isFinite(t)&&!(e===0&&t===0)}function Qt(e){let t=Number.parseFloat(e??"");return Number.isFinite(t)?t:0}function dy(e,t,o){let a=[];return e.forEach((s,n)=>{let i=t(s),r=a.find(c=>c.key===i);r||(r={key:i,name:o(s),items:[]},a.push(r)),r.items.push({item:s,index:n})}),a}function Ks(e){return Jd[Zt(e)]}var Jd={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function Zt(e){if(e<=1)return 1;if(e<=4)return e;let t=o=>e%o||o;return t(4)>=t(3)?4:3}import{parseOption as Jt}from"efficient-shell/format";import{parseOption as eh}from"efficient-shell/format";var th=["below","left","right"];function $s(e){return eh(th,"below",e)}var oh=/^https?:\/\//i;function yy(e){let t=(e.href??"").trim(),o=(e.linkLabel??"").trim();return{role:e.role??"",city:e.city??"",country:e.country??"",address:e.address??"",hq:e.hq==="true",lat:Qt(e.lat),lng:Qt(e.lng),...t&&o&&oh.test(t)?{href:t,linkLabel:o}:{}}}function Ey(e){let t=o=>typeof o=="string"?o:"";return{badge:e.hq?"HQ":"",role:t(e.role),city:t(e.city),country:t(e.country),address:t(e.address),phone:t(e.phone),...e.href&&e.linkLabel?{href:e.href,linkLabel:e.linkLabel}:{}}}function Ty(e){return[e.city,e.country,e.address,e.role].map(t=>typeof t=="string"?t.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}var Sy={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function _y(e){let t=[];return e.forEach((o,a)=>{Ys(o.lat,o.lng)&&t.push({key:String(a),label:o.city||o.role||"Office",lat:o.lat,lng:o.lng,glyph:"",tone:"",...o.hq?{badge:"HQ"}:{}})}),t}var ah=["both","map","list"],Oy="shows",js="both";function sh(e){return Jt(ah,js,e.shows)}function Ke(e){return sh(e)===js?$s(e.listPosition):"below"}var nh=["fixed","full"],ih="mapHeight",Vs="fixed",vy="full",Xs=e=>Ke(e)!=="below";function xy(e){return Xs(e)?Jt(nh,Vs,e[ih]):Vs}function ky(e){return Xs(e)&&Ge(e.headPlacement)===Cs}var rh=[1,2,3,4],Ye="auto",lh=2,ch=1,dh=[Ye,...rh.map(String)];function Ry(e){let t=Jt(dh,Ye,e.listColumns);return t===Ye?t:Number(t)}var hh="max-view-desktop:grid-cols-2",uh="max-[700px]:grid-cols-1";function Ay(e,t){let o=e===Ye?Zt(t):e;return[Ks(o),[o>lh?hh:"",o>ch?uh:""].filter(Boolean).join(" ")].join(" ")}function eo(e){return Array.isArray(e)?e.map(eo):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([t,o])=>t!=="id"&&o!==void 0&&!(Array.isArray(o)&&o.length===0)).sort(([t],[o])=>t<o?-1:t>o?1:0).map(([t,o])=>[t,eo(o)]))}var F=e=>JSON.stringify(eo(e));var Ve="Footprint",Qs=e=>x(e)===It,$e=Vt(11),ph={textStyle:"body-1",...y("body",18),weight:500,lineHeight:1.2},Fy=()=>({type:f,props:{...g,gap:8,gapPhone:8,...H(20,24,20,20),name:"Office"},slots:{[p]:[u("badge",{...b,tag:"p",widthFit:"fill"},$e,!0),u("role",{...b,tag:"p",widthFit:"fill"},$e,!0),u("city",{...b,tag:"p",widthFit:"fill"},ph),u("country",{...T,tag:"p",widthFit:"fill"},$e),u("address",{...T,tag:"p",widthFit:"fill"},$e),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[w]:"linkLabel",[k]:"href"}}]}}),Zs={textStyle:"body-1",fontRole:"heading",...y("body",16),weight:500,lineHeight:1.25},oo={textStyle:"body-1",...y("body",14),lineHeight:1.5},mh=()=>({type:f,props:{...g,gap:4,gapPhone:4,...H(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[p]:[u("city",{...b,tag:"p",widthFit:"fill"},Zs),u("address",{...T,tag:"p",widthFit:"fill"},oo),u("phone",{...T,tag:"p",widthFit:"fill"},oo)]}});function Js(e){let t=B(e,Ve),o=0;return E([mh()],a=>a===f?`${t}~office`:`${t}~office.${o++}`)}function en(e){return Array.isArray(e[d])&&e[d].length>0&&F(e[d])===F(Js(e))}var tn=e=>e===void 0||Array.isArray(e)&&e.length===0;function zs(e){return Ke(e)==="below"?en(e)?{...e,[d]:[]}:e:!tn(e[d])||Qs(e)?e:{...e,[d]:Js(e)}}var fh=Zs,wh=oo,gh={textFit:"line"},ao=(e,t,o="",a={},s={})=>{let n=u(e,{...t?T:b,tag:"p",...a},{...wh,...s});return o?{...n,props:{...n.props,[k]:o}}:n},to=(e,t,o,a)=>({type:f,props:{...g,gap:0,gapPhone:0,[ge]:[e],name:a},slots:{[p]:[ao(e,t,o,gh,{align:"right"})]}}),bh=e=>({type:f,props:{...g,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?H(20,24):{...H(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[p]:[{type:f,props:{...g,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[p]:[{type:f,props:{...g,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[p]:[u("name",{...b,tag:"p",widthFit:"fill"},fh),ao("address",!0)]}},ao("place",!0,"",{widthFit:"fill"})]}},{type:f,props:{...g,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[p]:[to("distance",!0,"","Dealer distance"),to("phone",!1,"phoneHref","Dealer phone"),to("website",!1,"websiteHref","Dealer website")]}}]}}),yh=e=>{let t=bh(e),o={type:f,props:{...g,...H(0,12),name:"Dealer"},slots:{[p]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:o};function so(e,t){let o=B(e,Ve),a=0;return E([yh(t)],(s,n)=>n==="0"?`${o}~dealer`:`${o}~dealer.${a++}`)}function qs(e){if(!Array.isArray(e[d])||e[d].length===0)return!1;let t=F(e[d]);return t===F(so(e,!0))||t===F(so(e,!1))}function on(e){if(Qs(e)){let o=so(e,Ke(e)==="below");return!(tn(e[d])||en(e)||qs(e))||F(e[d]??[])===F(o)?e:{...e,[d]:o}}if(!qs(e))return zs(e);let t={...e,[d]:[]};return zs(t)}var Eh="Card template",sn="items",nn="itemFields";function q(e,t){if(!t)return e;let o=typeof t=="string"?[t]:t;return e.filter(a=>o.includes(a.kind??"text"))}var Th=[{block:Bs,typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:qt,typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Us(e)},{block:Ve,typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region \xB7 country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>on(e)},{block:de,typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>Hs(de,e)},{block:Ms,fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:L,label:"Card list"}]},{block:Ue,fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>Ws(e)},{block:L,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:sn,seed:e=>We(e)},{block:Xt,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>As(e)}];function S(){return se("efficient.card-templates",()=>new Map(Th.map(e=>[e.block,e])))}function nE(e){for(let t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");let o=[];for(let i of t.blocks??[]){if(typeof i?.type!="string"||!i.type)throw new Error(`The card template of ${t.block} names an empty block.`);if(i.type===an)throw new Error(`The card template of ${t.block} names "${an}" in its blocks. Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`);o.some(r=>r.type===i.type)||o.push({type:i.type,label:i.label||i.type})}let a=[];for(let i of t.slots??[]){if(typeof i?.slot!="string"||!i.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);let r=A(i.label),c=Array.isArray(i.fields)?{fields:i.fields.map(h=>({...h}))}:null;a.some(h=>h.slot===i.slot)||a.push({slot:i.slot,...r?{label:r}:null,...c})}let s=a.some(i=>i.fields);if(s&&(t.fields.some(i=>i.everySource)||Da(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);s?fe().add(t.block):fe().delete(t.block);let n=A(t.typedRows);S().set(t.block,{block:t.block,...a.length?{slots:a}:{},fields:t.fields.map(i=>({...i})),blocks:o,typedRows:n,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function Sh(e,t){let o=e?S().get(e)?.seed:void 0;return o?o(t):t}function iE(e,t){let o=Oh(e),a=(o.length?o:[d]).filter(r=>t[r]===void 0||Array.isArray(t[r])&&t[r].length===0);if(!a.length)return t;let s={...t};for(let r of a)delete s[r];let n=e?S().get(e)?.seedOnInsert:void 0,i=n?n(s):Sh(e,s);return i===s?t:i}function rE(){for(let e of S().values())if(e.blocks?.length)return!0;return!1}function lE(e){return S().get(e)?.blocks??[]}function cE(e){for(let t of S().values())if(t.blocks?.some(o=>o.type===e))return!0;return!1}function dE(e){return typeof e=="string"&&S().get(e)?.typedRows||""}function hE(e){return typeof e=="string"&&S().get(e)?.linesBetween===!0}function uE(e){return typeof e=="string"&&S().has(e)}var _h=[{slot:d}];function je(e){if(typeof e!="string")return[];let t=S().get(e);return t?t.slots??_h:[]}function Oh(e){return je(e).map(t=>t.slot)}function vh(e,t){return je(e).some(o=>o.slot===t)}function pE(e,t){let o=je(e).find(a=>a.slot===t);return o?o.label??Eh:null}function no(e,t){return t?je(e).find(o=>o.slot===t)?.fields:void 0}function xh(e,t){let o=S().get(e)?.fields??[];return q(o,t)}function kh(e,t){if(typeof e!="string")return"";let o=no(e,t);return(o?q(o,"list"):xh(e,"list"))[0]?.key??""}function Rh(e,t,o){return ro(e)||kh(t,o)}function rn(e,t,o){let a=typeof e?.type=="string"?e.type:"";if(!a)return[];let s=no(a,o);if(s)return q(s,t);let n=S().get(a)?.fields??[],i=Ne(x(e?.props))?.fields,r=i?.length?[...i.map(c=>({...c})),...n.filter(c=>c.everySource&&!i.some(h=>h.key===c.key))]:n;return q(r,t)}function Ah(e,t,o,a){if(!e)return null;let s=no(e,a);return s?s.find(n=>n.key===t)??null:o?rn(o).find(n=>n.key===t)??null:S().get(e)?.fields.find(n=>n.key===t)??null}function io(e,t){return!e||!t?null:e.fields?.find(o=>o.key===t)??Ah(e.ownerType,t,e.owner,e.slot)}function mE(e,t){return io(e,t)?.plain===!0}function fE(e,t){return io(e,t)?.kind==="date"}function ro(e,t=w){let o=e?.[t];return typeof o=="string"?o.trim():""}function wE(e,t){return e.key||String(t+1)}function gE(e){let t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[o,a]of Object.entries(e))typeof a=="string"&&(t[o]=a);return t}function bE(e,t){let o=e[ge];return!t||!Array.isArray(o)||!o.length?!1:o.every(a=>typeof a!="string"||!t[a]?.trim())}var lo={Text:{text:w,href:k},ImageBlock:{src:w,href:k},ButtonBlock:{label:w,href:k},LogoBlock:{alt:w,href:k},Breadcrumb:{currentCrumb:w}},yE=lo,Lh=new Set(["ButtonBlock.label","LogoBlock.alt"]);function EE(e,t,o){return Ch(e,t,o)&&!Lh.has(`${e}.${o}`)}function Ch(e,t,o){return Ih(e,t,o)!==""}function Ih(e,t,o){let a=lo[e]?.[o];return a?ro(t,a):""}function ln(e,t){return!t||!e?null:e[t]??""}function Ph(e,t){return ln(e,t)?.trim()||void 0}function TE(e,t,o,a,s,n){if(!o)return t;let i=null;for(let[r,c]of Object.entries(lo[e]??{})){let h=ro(t,c),_=ln(o,h);if(_!==null){if(i??={...t},c===k){i[r]=Ph(o,h);continue}i[r]=io({ownerType:a,fields:s,slot:n},h)?.mark==="accentItalic"?Oa(_):_}}return i??t}function Xe(e,t){let o=e?.data?.content;if(!Array.isArray(o)||typeof t!="string")return;let a=(n,i)=>{for(let r of n){if(r?.props?.id===t)return i;for(let c of ne(r??{})){let h=r.props[c],_=vh(r.type,c)?{owner:r,slot:c,direct:!0,nested:i!==null,underBox:!1}:i&&{owner:i.owner,slot:i.slot,direct:!1,nested:i.nested,underBox:i.underBox||r.type===f},O=a(h,_);if(O!==void 0)return O}}},s=a(o,null);return s===void 0?null:s}function Nh(e,t){let o=Xe(e,t);return o&&o.owner}function Hh(e,t){let o=Xe(e,t);return o&&o.slot}function SE(e,t){let o=Xe(e,t);return o&&(o.direct?o.owner:null)}function _E(e,t){let o=Xe(e,t);if(o!==void 0)return o===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:o.nested,underBox:o.underBox}}function OE(e,t,o){if(t?.type!==L)return[];let a=Nh(e,t.props?.id);if(!a){let r=Ne(x(t.props))?.fields,c=r?.length?r.map(O=>({...O})):Dh(t.props),h=(S().get(L)?.fields??[]).filter(O=>O.everySource&&!c.some(Ze=>Ze.key===O.key)),_=[...c,...h];return q(_,o)}let s=Hh(e,t.props?.id)??void 0,n=Rh(t.props,a.type,s),i=n&&rn(a,"list",s).find(r=>r.key===n)?.fields||[];return q(i,o)}function vE(e,t){return{[w]:"",[sn]:e.map(o=>({...o})),[nn]:t.map(o=>({...o}))}}function Dh(e,t){let o=e?.[nn];if(!Array.isArray(o))return[];let a=o.flatMap(s=>{if(!s||typeof s!="object")return[];let{key:n,label:i,kind:r,multiline:c,alt:h,next:_}=s;if(typeof n!="string"||!n||typeof i!="string")return[];let O=r==="image"||r==="link"||r==="colour"||r==="date"?r:void 0;return[{key:n,label:i,...O?{kind:O}:{},...c===!0?{multiline:!0}:{},...typeof h=="string"&&h?{alt:h}:{},...typeof _=="string"&&_?{next:_}:{}}]});return q(a,t)}var an="HostPart";function ze(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}import{FOLLOW_RULES as Bh,VIEW_TIERS as Mh,resolveViewValue as Fh}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as Gh}from"efficient-easel/screen/lib/content/length-units";var Wh=["auto","fixed","screen","fill"],Uh=Gh.filter(e=>e==="px"||e==="%"),Yh="svh",Kh="vh",$h="var(--sf-header-h, 88px)",Vh={min:40,max:2e3,step:10,fallback:600},jh={min:10,max:200,step:5,fallback:100},Xh="sf-section-minh",Te="grid-cols-[minmax(0,1fr)]",cn={base:"--sf-section-minh",small:"--sf-section-minh-s"},ho=e=>typeof e=="string"&&Wh.includes(e),zh=e=>typeof e=="string"&&Uh.includes(e);function qe(e){let t=ho(e.sectionHeightMode)?e.sectionHeightMode:"auto",o=t==="screen"?"%":zh(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=t==="screen"?jh.fallback:Vh.fallback,s=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:t,value:s,unit:o}}function un(e){let{mode:t,value:o,unit:a}=qe(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&a==="px")return[`${o}px`,null];let s=o/100,n=i=>t==="screen"?`(100${i} - ${$h})`:`100${i}`;return[`calc(${n(Kh)} * ${s})`,`calc(${n(Yh)} * ${s})`]}function pn(e){let t=un(e);if(!t)return;let[o,a]=t;return{display:"grid",[cn.base]:o,...a?{[cn.small]:a}:{}}}var LE=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),CE="Height",mn="sf-section-minh-phone",dn={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function fn(e){return ho(e.sectionHeightModePhone)}function qh(e){return qe({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var wn="sf-section-minh-tablet",hn={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function gn(e){return ho(e.sectionHeightModeTablet)}function Qh(e){return qe({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function uo(e){let t=pn(e),o=(r,c,h)=>un({sectionHeightMode:r,sectionHeightValue:c,sectionHeightUnit:h})??(t?["auto",null]:void 0),a=gn(e)?o(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,s=fn(e)?o(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):a;if(!t&&!a&&!s)return null;let n=[Xh,Te],i={...t??{}};return a&&(n.push(wn),i[hn.base]=a[0],a[1]&&(i[hn.small]=a[1])),s&&(n.push(mn),i[dn.base]=s[0],s[1]&&(i[dn.small]=s[1])),{className:n.join(" "),style:i}}function IE(e){return uo(e)!==null||Qe(e).length>0}var co=`grid ${Te}`,PE="h-full",Zh="view-tablet:max-view-desktop:grid",bn="max-view-tablet:grid",Jh="view-wide:max-view-desktop:grid",eu="max-view-wide:grid",tu=`${bn} ${Te}`;function NE(e,{atSectionLine:t=!1}={}){if(Qe(e).length>0)return co;let o=uo(e);if(!o)return"";if(pn(e))return co;let a=o.className.split(" "),s=t?Zh:Jh,n=t?bn:eu;if(!a.includes(wn))return t?tu:`${n} ${Te}`;let i=a.includes(mn);return[s,i?n:"",Te].filter(Boolean).join(" ")}var HE="data-sf-height-fill",ou=Mh,au={desktop:"view-desktop:[.flex-col>&]:grow! view-desktop:[.flex-row>&]:self-stretch",tablet:"view-wide:max-view-desktop:[.flex-col>&]:grow! view-wide:max-view-desktop:[.flex-row>&]:self-stretch",mobile:"max-view-wide:[.flex-col>&]:grow!"};function Qe(e){let t=e,o=Fh("heightMode",qe(t).mode,gn(t)?Qh(t).mode:null,fn(t)?qh(t).mode:null,Bh),a={desktop:o.desktop==="fill",tablet:o.tablet==="fill",mobile:o.phone==="fill"};return ou.filter(s=>a[s])}function DE(e){return Qe(e).map(t=>au[t]).join(" ")}function BE(e){let t=uo(e);return Qe(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:co}}function GE(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"screen":return"aspect-[16/10]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";case"custom":return"aspect-[var(--shape-ratio)]";default:return"aspect-square"}}var po=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"screen",image:"16/10",ratio:[16,10],label:"Screen 16:10"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"},{shape:"custom",image:"custom",ratio:null,label:"Custom W:H"}],WE="custom",su=/^(\d{1,4}(?:\.\d{1,2})?)\/(\d{1,4}(?:\.\d{1,2})?)$/;function yn(e){if(typeof e!="string")return null;let t=su.exec(e);if(!t)return null;let o=Number(t[1]),a=Number(t[2]);return o>0&&a>0?[o,a]:null}function nu(e){return po.every(t=>t.shape!==e&&t.image!==e)&&yn(e)!==null}function UE(e,t,o){let a=po.find(s=>s.ratio!==null&&s.ratio[0]*t===s.ratio[1]*e);return a?a[o]:`${e}/${t}`}function iu(e){return`${e[0]} / ${e[1]}`}var ru={desktop:"--shape-ratio",tablet:"--shape-ratio-tablet",phone:"--shape-ratio-phone"};function YE(e){let t={};for(let o of["desktop","phone","tablet"]){let a=nu(e[o])?yn(e[o]):null;a&&(t[ru[o]]=iu(a))}return Object.keys(t).length?t:null}function KE(e){return po.filter(t=>e.includes(t.shape))}function $E(e){return e==="below"}var VE=`linear-gradient(180deg, transparent 40%, ${ze(.85)} 100%)`,jE=`linear-gradient(0deg, transparent 40%, ${ze(.85)} 100%)`,XE=ze(.45);export{se as a,A as b,Ul as c,Sf as d,Yl as e,_f as f,Of as g,vf as h,xf as i,kf as j,Rf as k,It as l,Kl as m,$l as n,Af as o,Lf as p,Da as q,Ne as r,Cf as s,If as t,x as u,ql as v,Pf as w,w as x,k as y,d as z,L as A,ge as B,K as C,Ql as D,Fa as E,ne as F,Gf as G,Wf as H,Uf as I,ac as J,Yf as K,em as L,oe as M,tm as N,Br as O,om as P,am as Q,sm as R,nm as S,Gr as T,Ce as U,dm as V,p as W,f as X,Wa as Y,jf as Z,Xf as _,v as $,hu as aa,uu as ba,pu as ca,Je as da,mu as ea,fu as fa,wu as ga,gu as ha,Si as ia,G as ja,_i as ka,Eu as la,pm as ma,mm as na,Yr as oa,fm as pa,wm as qa,xm as ra,xt as sa,hl as ta,Sa as ua,Cm as va,Im as wa,Pm as xa,Oa as ya,Nm as za,Hm as Aa,Dm as Ba,N as Ca,ie as Da,Ya as Ea,Qf as Fa,C as Ga,aw as Ha,fc as Ia,$ as Ja,wc as Ka,sw as La,nw as Ma,iw as Na,rw as Oa,lw as Pa,bc as Qa,cw as Ra,Va as Sa,R as Ta,Mt as Ua,dw as Va,yc as Wa,Ec as Xa,Xa as Ya,hw as Za,_c as _a,uw as $a,Oc as ab,pw as bb,Dt as cb,mw as db,vc as eb,xc as fb,fw as gb,ww as hb,qa as ib,kc as jb,gw as kb,Rc as lb,Za as mb,Bt as nb,Ac as ob,bw as pb,yw as qb,Ew as rb,Cc as sb,Ic as tb,Tw as ub,Sw as vb,_w as wb,Ow as xb,Yo as yb,Ou as zb,ki as Ab,vu as Bb,xu as Cb,ku as Db,Ru as Eb,gl as Fb,Ie as Gb,kw as Hb,Rw as Ib,Aw as Jb,Ja as Kb,Be as Lb,Lw as Mb,Bc as Nb,Cw as Ob,Ft as Pb,Mc as Qb,Pw as Rb,es as Sb,Nw as Tb,Wc as Ub,Uc as Vb,Yc as Wb,as as Xb,Bw as Yb,ss as Zb,Mw as _b,ns as $b,Ww as ac,is as bc,V as cc,Uw as dc,Yw as ec,Kw as fc,ds as gc,le as hc,Jw as ic,zc as jc,td as kc,eg as lc,tg as mc,Wt as nc,og as oc,ag as pc,od as qc,ng as rc,ig as sc,rg as tc,lg as uc,id as vc,cg as wc,ld as xc,dg as yc,hg as zc,ug as Ac,pg as Bc,mg as Cc,fg as Dc,wg as Ec,gg as Fc,bg as Gc,fs as Hc,ws as Ic,yg as Jc,Eg as Kc,Tg as Lc,Sg as Mc,_g as Nc,fd as Oc,Og as Pc,vg as Qc,ys as Rc,xg as Sc,wd as Tc,gd as Uc,kg as Vc,Rg as Wc,Es as Xc,b as Yc,T as Zc,Ed as _c,g as $c,H as ad,Td as bd,Ts as cd,y as dd,Hg as ed,$t as fd,Vt as gd,jt as hd,E as id,B as jd,Mg as kd,_s as ld,de as md,Ee as nd,u as od,he as pd,Fe as qd,Od as rd,vs as sd,Os as td,kd as ud,xs as vd,Ns as wd,Ms as xd,Ub as yd,Xt as zd,Cd as Ad,As as Bd,$d as Cd,jb as Dd,Jg as Ed,eb as Fd,tb as Gd,ob as Hd,Ls as Id,ab as Jd,sb as Kd,nb as Ld,Bd as Md,db as Nd,hb as Od,Ge as Pd,ub as Qd,Is as Rd,pb as Sd,mb as Td,wb as Ud,gb as Vd,bb as Wd,yb as Xd,Ps as Yd,Eb as Zd,Tb as _d,zt as $d,zb as ae,ny as be,qd as ce,ly as de,Ys as ee,Qt as fe,dy as ge,Ks as he,Zt as ie,yy as je,Ey as ke,Ty as le,Sy as me,_y as ne,Oy as oe,js as pe,sh as qe,Ke as re,ih as se,Vs as te,vy as ue,xy as ve,ky as we,rh as xe,Ye as ye,Ry as ze,Ay as Ae,F as Be,Fy as Ce,on as De,sn as Ee,nn as Fe,q as Ge,nE as He,Sh as Ie,iE as Je,rE as Ke,lE as Le,cE as Me,dE as Ne,hE as Oe,uE as Pe,Oh as Qe,vh as Re,pE as Se,xh as Te,Rh as Ue,rn as Ve,io as We,mE as Xe,fE as Ye,ro as Ze,wE as _e,gE as $e,bE as af,yE as bf,EE as cf,Ch as df,Ih as ef,ln as ff,Ph as gf,TE as hf,Nh as if,Hh as jf,SE as kf,_E as lf,OE as mf,vE as nf,an as of,tt as pf,ot as qf,Nu as rf,Hu as sf,Pi as tf,at as uf,Du as vf,Ni as wf,Bu as xf,Mu as yf,Wu as zf,qo as Af,Vu as Bf,ju as Cf,Xu as Df,zu as Ef,qu as Ff,pt as Gf,mt as Hf,Qu as If,J as Jf,Wi as Kf,Qo as Lf,Zu as Mf,Ju as Nf,te as Of,ee as Pf,Ki as Qf,$i as Rf,ep as Sf,tp as Tf,Re as Uf,Zo as Vf,op as Wf,ap as Xf,sp as Yf,wt as Zf,np as _f,Jo as $f,Qi as ag,ip as bg,rp as cg,lp as dg,Ji as eg,cp as fg,dp as gg,hp as hg,up as ig,pp as jg,mp as kg,gt as lg,ir as mg,fp as ng,wp as og,Ae as pg,cr as qg,gp as rg,bt as sg,jo as tg,bp as ug,yp as vg,dr as wg,hr as xg,na as yg,Le as zg,mr as Ag,fr as Bg,wr as Cg,ia as Dg,gr as Eg,ra as Fg,Sp as Gg,_p as Hg,Op as Ig,vp as Jg,me as Kg,la as Lg,xp as Mg,kp as Ng,yt as Og,ca as Pg,Rp as Qg,Ap as Rg,Lp as Sg,Et as Tg,_r as Ug,vr as Vg,Np as Wg,xa as Xg,Um as Yg,Ym as Zg,Km as _g,yl as $g,El as ah,$m as bh,Tl as ch,Vm as dh,Pe as eh,Ra as fh,ka as gh,vl as hh,xl as ih,kl as jh,qm as kh,Rl as lh,Qm as mh,ae as nh,Zm as oh,Jm as ph,ef as qh,Ll as rh,La as sh,tf as th,of as uh,af as vh,Il as wh,sf as xh,Nl as yh,ze as zh,GE as Ah,po as Bh,WE as Ch,yn as Dh,nu as Eh,UE as Fh,iu as Gh,YE as Hh,KE as Ih,$E as Jh,At as Kh,Ia as Lh,rf as Mh,Fl as Nh,Ct as Oh,hf as Ph,Gl as Qh,uf as Rh,Wh as Sh,Uh as Th,Vh as Uh,jh as Vh,Te as Wh,qe as Xh,LE as Yh,CE as Zh,fn as _h,gn as $h,Qh as ai,IE as bi,co as ci,PE as di,NE as ei,HE as fi,Qe as gi,DE as hi,BE as ii,ha as ji,Gp as ki,jp as li,Nr as mi,Xp as ni,zp as oi,qp as pi,Qp as qi,Wl as ri,mf as si};
95
+ THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Contact / Locations node still renders through it and can still be edited; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items \xB7 Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. \u26D4 A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},Gr=Object.fromEntries(Object.entries(ga).map(([e,t])=>[e,t.note])),fm=["Grid","Spacer","TyreFitment"],wm=Array.from(new Set([...oe.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(Gr)])),Wr=Object.fromEntries(Object.entries(ga).map(([e,t])=>[e,t.label])),gm={...Wr,...Object.fromEntries(oe.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},Ur={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",HostPart:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",WheelDiagram:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",ProductBuyButton:"commerce",ProductSku:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EuTyreLabel:"commerce",PaymentBadges:"general",ContactLocations:"general",HeroSingle:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},_t={...Ur,...Object.fromEntries(oe.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function bm(e){return P(_t,e)}function Ot(e){return Object.keys(_t).filter(t=>P(_t,t)===e).sort()}var ym=Ot("general"),Em=Ot("commerce"),Sm=Ot("service"),Yr="Flex",Ce="Box",Tm=`${Ce}es`;function Kr(e){return e==="section"?"Blank section":Ce}function _m(e,t,o){return e===Yr?Kr(t):o}var W=["highlight","strong","quiet"],U={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},I={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},xm=Object.fromEntries(W.map(e=>[I[e].kind,e])),km="data-sf-ws",$r=["accent","text","labels"],Vr={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},jr=80,Xr=120,zr=100,qr=900,Qr=.5,Zr=3,Jr=-.1,el=.5,tl=3,vt={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},ol={highlight:{...vt},strong:{...vt},quiet:{...vt}};function ba(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function ya(e,t,o){if(typeof e!="number"||!Number.isFinite(e))return null;let a=10**tl;return Math.round(Math.min(Math.max(e,t),o)*a)/a}function Ea(e){return typeof e=="boolean"?e:null}function al(e,t=v){let o=typeof e?.font=="string"&&t.byKey.has(e.font)?e.font:null,a=typeof e?.colour=="string"&&$r.includes(e.colour)?e.colour:null;return{font:o,size:ba(e?.size,jr,Xr),weight:ba(e?.weight,zr,qr),bold:Ea(e?.bold),italic:Ea(e?.italic),lineGap:ya(e?.lineGap,Qr,Zr),textGap:ya(e?.textGap,Jr,el),colour:a}}function Sa(e,t=v){let o={};for(let a of W)o[a]=e&&a in e&&e[a]?al(e[a],t):{...ol[a]};return o}function Am(e,t=v){let o=Sa(e,t),a={};for(let s of W){let n=o[s],i=`--sf-ws-${s}`;if(n.font){let r=t.byKey.get(n.font);r&&(a[`${i}-font`]=`var(${r.cssVar})`)}n.size!==null&&(a[`${i}-size`]=`${n.size/100}em`),n.weight!==null&&(a[`${i}-weight`]=String(n.weight)),n.bold!==null&&(a[`${i}-weight-bold`]=n.bold?"700":"400"),n.italic!==null&&(a[`${i}-style`]=n.italic?"italic":"normal"),n.lineGap!==null&&(a[`${i}-line`]=String(n.lineGap)),n.textGap!==null&&(a[`${i}-track`]=`${n.textGap}em`),n.colour!==null&&(a[`${i}-color`]=Vr[n.colour])}return a}function Rm(e,t=v){let o=e?.word_styles??void 0,a={};for(let s of W)o&&s in o&&(a[s]=o[s]??null);return Sa(a,t)}import{applyMark as Im,markupTools as Pm,MARKUP_TOOLS as Nm,COPY_FIELD_TOOLS as Hm,STOREFRONT_MARKUP as Dm,tokenizeInline as Bm,stripInline as Mm,isSafeLinkHref as Fm}from"efficient-shell/markup";import{applyMark as sl,clearStyle as nl,markedAt as il,markupTools as rl,MARKUP_TOOLS as ll,parseMarkup as cl,RETIRED_MARKS as dl,STOREFRONT_MARKUP as hl,tokenizeInline as Wm}from"efficient-shell/markup";var ul=new Set(["strong"]),Ta=W.map(e=>({open:I[e].delimiter,close:I[e].delimiter,kind:I[e].kind,...ul.has(e)?{wordStart:!0}:{}})),Ym=[{style:I.highlight.kind,label:U.highlight,title:`${U.highlight} word style`},{style:I.strong.kind,label:U.strong,title:`${U.strong} word style`},{style:I.quiet.kind,label:U.quiet,title:`${U.quiet} word style`}],pl=new Set(Ta.map(e=>e.open)),xt=[...hl.filter(e=>!pl.has(e.open)),...Ta];function ml(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function _a(e){return cl(typeof e=="string"?e:"",xt)}var fl=ll.map(e=>e.style).filter(e=>!dl.includes(e)).filter(e=>xt.some(t=>t.kind===e));function Km(){return rl(fl)}var Oa=Object.fromEntries(W.map(e=>[I[e].kind,I[e].delimiter]));function $m(e,t,o,a){let s=Oa[a];if(!s)return sl(e,t,o,a);let n=e.slice(t,o),i=e.slice(Math.max(0,t-s.length),t),r=e.slice(o,o+s.length);if(i===s&&r===s)return{text:e.slice(0,t-s.length)+n+e.slice(o+s.length),selectionStart:t-s.length,selectionEnd:t-s.length+n.length};let c=n||"styled text";return{text:e.slice(0,t)+s+c+s+e.slice(o),selectionStart:t+s.length,selectionEnd:t+s.length+c.length}}function Vm(e,t,o,a){let s=Oa[a];return s?t>=s.length&&e.slice(t-s.length,t)===s&&e.slice(o,o+s.length)===s:il(e,t,o,a)}function va(e){return e.replace(/==(.+?)==/g,(t,o)=>o.startsWith("_")&&o.endsWith("_")?t:`==_${o}_==`)}function jm(e){return _a(e).map(t=>ml(t)+xa(t.children)).join(`
96
+ `)}function Xm(e,t,o){return nl(e,t,o,xt)}function xa(e){return e.map(t=>t.kind==="text"?t.text:xa(t.children)).join("")}function zm(e){let t=o=>o.some(a=>a.kind==="link"||"children"in a&&t(a.children));return _a(e).some(o=>t(o.children))}import{AUTO_RULES as wl,FOLLOW_RULES as gl,isAuto as bl,resolveViewValue as yl}from"efficient-easel/screen/lib/content/view-tiers";function El(){return Yo==="v2"?wl:gl}function Ie(e,t,o,a,s=El()){let n=yl(e,t,o,a,s),i={},r=(c,h)=>!bl(c)||h!=null&&h!==t;return r(o,n.tablet)&&(i.tablet=n.tablet),r(a,n.phone)&&(i.phone=n.phone),i}var ka=-1,Sl="sf-section-accent",tf="Color",of=new Set(["CategoryBar","DocTabs"]),af=new Set(["Flex"]),Tl=0;function _l(e){return e===ka?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Tl}function sf(e){return e??ka}function Ol(e){let t=`--theme-preset-${e}`,o={"--sf-sec-accent":`var(${t}-accent)`,"--sf-sec-accent-2":`var(${t}-accent-2)`,"--sf-sec-accent-ink":`var(${t}-accent-ink)`};for(let{role:a}of Et)o[`--sf-sec-${a}`]=`var(${t}-${a}, var(--theme-${a}))`;return o}function nf(e){let t=_l(e.sectionAccent);return t===null?null:{className:Sl,style:Ol(t)}}import{isNodeList as vl}from"efficient-easel/data";import{parseOption as xl}from"efficient-shell/format";var Pe=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],Ra="bottom-left",Y=4,kl=Y+1,Aa=40,Al=30,Rl=100,Ll=60,df=100;var kt={"top-left":"Top left","top-center":"Top center","top-right":"Top right",left:"Left",center:"Center",right:"Right","bottom-left":"Bottom left","bottom-center":"Bottom center","bottom-right":"Bottom right"};function Cl(e){let t=Pe.indexOf(ae(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function Il(e){return 1+Cl(e).band*(kl+1)}function hf(e){return Il(e)+1}function ae(e){return xl(Pe,Ra,e)}function uf(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-Aa,Math.min(Aa,Math.round(t)))}function pf(e,t=Ll){let o=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(Al,Math.min(Rl,Math.round(o)))}function At(e,t){let o=ae(t);return e.filter(a=>ae(a?.props?.placement)===o).length}function La(e){return`${kt[ae(e)]} already holds ${Y} boxes. Move one somewhere else first.`}function mf(e,t){let o=e.filter(a=>a?.props?.id!==t);return Pe.map(a=>{let s=At(o,a)>=Y,n=kt[a];return s?{value:a,label:n,disabled:!0,title:La(a)}:{value:a,label:n}})}function Pl(e,t){let o=t===void 0?Ra:ae(t?.props?.placement);return At(e,o)>=Y?La(o):null}var Ca="HeroGroup";function ff(e){let t=new Map,o=!1,a=e.filter(s=>{let n=ae(s?.props?.placement),i=(t.get(n)??0)+1;return t.set(n,i),i<=Y?!0:(o=!0,!1)});return o?a:e}function Nl(e){return Pe.map(t=>{let o=At(e,t);return{anchor:t,total:o,hidden:o-Y}}).filter(t=>t.hidden>0)}function wf(e){let t=Nl(e);return t.length===0?null:t.map(({anchor:o,total:a,hidden:s})=>{let n=kt[o],i=s===1?"1 is not shown":`${s} are not shown`;return`${n} holds ${a} boxes. The published page draws the first ${Y}, so ${i}. ${s===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function gf(e,t){let o=t;if(o?.type!==Ca)return null;let a=o.props?.id===void 0?"":String(o.props.id);return a?Pl(Hl(e,a),o):null}function Hl(e,t){let o=Ia(e,t);return o&&o.ownerType===Bl?o.siblings:[]}function bf(e,t){let o=Ia(e,t);return o?o.ancestorTypes.filter(a=>a===Ca).length:Dl}var Dl=1,Bl="HeroSlide";function Ia(e,t){let o=(a,s,n)=>{if(s>12||!a||typeof a!="object")return null;if(vl(a)){if(a.some(i=>i?.props?.id===t))return{siblings:a,ownerType:n.at(-1)??null,ancestorTypes:n};for(let i of a){let r=i.type,c=o(i,s+1,[...n,String(r)]);if(c)return c}return null}for(let i of Object.values(a)){let r=o(i,s+1,n);if(r)return r}return null};return o(e,0,[])}var Rt={desktop:"desktop",tablet:"tablet",phone:"mobile"},Ml=Object.keys(Rt);function Pa(e){return Rt[e??"desktop"]}function Ef(e){return Ml.find(t=>Rt[t]===e)??"desktop"}import{FOLLOW_RULES as Fl,resolveViewValue as Gl,viewKeyAt as Wl}from"efficient-easel/screen/lib/content/view-tiers";var Ul=["desktop","tablet","phone"],Ct=(e,t)=>Wl(e,Pa(t)),Of=e=>e.flatMap(t=>Ul.map(o=>Ct(t,o))),Lt=e=>e===null||e===""?void 0:e,Yl=(e,t,o)=>Gl("same",Lt(e),Lt(t),Lt(o),Fl);function vf(e,t,o,a=e[t]){return Yl(a,e[Ct(t,"tablet")],e[Ct(t,"phone")])[o]}var Kl="Website";function kf(e){return e?.trim()||Kl}function se(e,t){let o=globalThis,a=Symbol.for(e),s=o[a];return s===void 0&&(s=t(),o[a]=s),s}function fe(){return se("efficient.slot-field-blocks",()=>new Set)}var $l="dataSource",Hf="dataSourceOptions",Vl="dataRows",Df="countKey",Bf="counts",Mf="location-payment-methods",Ff="shop-payment-methods",Gf="delivery-options",Wf="blog-categories",It="dealers",jl="site-offices";function Xl(e){return typeof e.open=="function"}var Da=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Uf(e){return typeof e=="string"&&Da.test(e)}var Na=new Set([It,jl]);function we(){return se("efficient.block-sources",()=>({sources:new Map,revision:0}))}var zl=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),ql=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),Ha=e=>typeof e=="string"&&e.trim()!=="";function Ql(e){if(!e||!Ha(e.label))return null;if(Xl(e))return{label:e.label.trim(),open:e.open};let t=e.href;return Ha(t)?{label:e.label.trim(),href:t.trim()}:null}function Zl(e){if(typeof e.key!="string"||!Da.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(a=>typeof a!="string"||!a))throw new Error(`The block source ${e.key} names no block it can fill.`);let t=e.blocks.find(a=>fe().has(a));if(t)throw new Error(`The block source ${e.key} names ${t}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);let o=Ql(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(a=>Ma(a)).filter(a=>a!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(zl)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(ql).map(a=>({...a}))}:{},...o?{edit:o}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(a=>typeof a=="string"&&a.trim()!=="").map(a=>a.trim())}:{}}}function Yf(e){let t=e.map(Zl),o=we();for(let a of t)o.sources.set(a.key,a);t.length&&(o.revision+=1)}function Ba(e){let t=[...we().sources.values()],o=[...t.filter(a=>!Na.has(a.key)),...t.filter(a=>Na.has(a.key))];return e===void 0?o:o.filter(a=>a.blocks.includes(e))}function Ne(e){return we().sources.get(e)??null}function Kf(e){return we().sources.get(e)?.choices??[]}function $f(){return we().revision}function x(e){let t=e?.[$l];return typeof t=="string"?t.trim():""}function Ma(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[o,a]of Object.entries(e)){let s=R(a);s&&(t[o]=s)}return Object.keys(t).length?t:null}function Jl(e){let t=e?.[Vl];return Array.isArray(t)?t.map(Ma).filter(o=>o!==null):null}function Vf(e,t,o=[]){let a=Jl(e);if(a!==null&&(a.length||!t))return{rows:a,sample:!1};if(!t)return{rows:[],sample:!1};let s=Ne(x(e))?.sample;return{rows:s?.length?s:o,sample:!0}}var w="rowField",k="rowLinkField",d="template",L="CardList",ge="hideWhenRowEmpty",Pt=["Text","ImageBlock","ButtonBlock","Flex"];function K(){return{type:"slot",allow:[...Pt]}}var Fa=Pt.filter(e=>e!=="ButtonBlock");function Nt(){return{type:"slot",allow:[...Fa]}}var ec="boxes",Ga={CardList:{template:Nt()},Cards:{template:K()},FAQ:{template:K()},Flex:{rowTitle:{type:"slot",allow:["Text"]},content:{type:"slot"}},Footprint:{template:K()},Grid:{content:{type:"slot"}},Hero:{slides:{type:"slot",ownPictures:!0},strip:{type:"slot",allow:["Flex"]}},HeroGroup:{content:{type:"slot"}},HeroSingle:{boxes:{type:"slot",allow:["HeroGroup"]}},HeroSlide:{groups:{type:"slot",allow:["HeroGroup"]}},Logos:{logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},OrderSummary:{template:K()},ProcessSteps:{[ec]:{type:"slot"},template:K()}};import{isNodeList as Wa,slotsOf as tc,storedKeyOrder as oc}from"efficient-easel/data";var ac={},sc=null;function nc(){let e=Object.fromEntries(Object.entries(Ga).map(([t,o])=>[t,{fields:o}]));return sc??={components:{...e,...ac}}}function ne(e){let t=e.props??{},o=typeof e.type=="string"?e.type:"",a=nc(),s=o!==""&&Object.prototype.hasOwnProperty.call(a.components,o)?tc({type:o,props:t},a).map(r=>r.slot).filter(r=>!r.includes(".")):[],n=s.filter(r=>Wa(t[r])),i=oc(Object.keys(t).filter(r=>!s.includes(r)&&Wa(t[r])));return[...n,...i]}function Jf(e){let t=e.props??{};return ne(e).map(o=>t[o])}function ew(e,t){let o=null;return e.forEach((a,s)=>{let n=t(a,s);n!==a&&((o??=e.slice())[s]=n)}),o??e}function tw(e,t){let o=null;for(let a of ne(e)){let s=e.props[a],n=t(s,a);n!==s&&((o??={...e.props})[a]=n)}return o?{...e,props:o}:e}function ic(e,t){let o=e;if(!o||!Array.isArray(o.content))return e;let a=t(o.content);return a===o.content?e:{...o,content:a}}function ow(e,t){let o=ic(e,t),a=e?.zones;if(!a||typeof a!="object")return o;let s=null;for(let[n,i]of Object.entries(a)){if(!Array.isArray(i))continue;let r=t(i);r!==i&&((s??={...a})[n]=r)}return s?{...o,zones:s}:o}var p="content",f="Flex",rc="Text & media",lc="Layout & structure",Ya=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],cc=[...Ya,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:rc})),dc=(oe.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:lc})),Ua=[...cc,...dc],Ht=[...Ya,{type:"HeroGroup",label:Ce}],iw=Ht.map(e=>e.type),hc=1,uc=Ht.filter(e=>e.type!=="HeroGroup");function pc(e){return e<hc?Ht:uc}var mc={Flex:{slot:p,choices:()=>Ua},Grid:{slot:p,choices:()=>Ua},HeroGroup:{slot:p,choices:pc}};function rw(e,t=0){let o=P(mc,e);return o?{slot:o.slot,choices:o.choices(t)}:null}import{MEDIA_ZONES as fc,MEDIA_ZONE_LABELS as wc}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as gc,hoverKindsOf as De,motionSeconds as He,parseOption as be}from"efficient-shell/format";var ie={min:0,max:360,step:1},Ka="angle";function dw(e){let t=N(e);if(t===void 0)return null;let o=Math.min(ie.max,Math.max(ie.min,t));return o===ie.min||o===ie.max?null:{rotate:`${o}deg`}}var C="hover",ww="_gHover",bc={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},$="highlight",yc="Highlight",gw=["none",$],bw={none:bc.none,[$]:yc};function Ec(e){return e[C]===$?$:"none"}var yw="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]",Ew="hover:[--fg:var(--sf-hl-ink)]! hover:[--fg-dim:inherit]! hover:[--site-line:inherit]! hover:[color:inherit]! active:[--fg:var(--sf-hl-ink)]! active:[--fg-dim:inherit]! active:[--site-line:inherit]! active:[color:inherit]!";function Sw(e,t){return Ec(e)!==$?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var Sc=De(["none","lift"]);function Tw(e){let t=e[C];return be(Sc,"none",t)}var ja=De(["none","nextImage","rotate"]),A={kind:C,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},Mt="spinOnHover",$a=ie,Xa={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},_w=Object.keys(Xa);function Tc(e){return Xa[e]??"none"}var _c=gc.rotateFallbackDeg,Oc=e=>e==="rendering"?"renderings":e,vc=e=>e==="renderings"?"rendering":e,za=Object.freeze(fc.filter(e=>e!=="videos").map(Oc)),Ow=Object.freeze(Object.fromEntries(za.map(e=>[e,wc[vc(e)]]))),xc=["finish","first"],vw={finish:"Same finish",first:"First group"},kc=["card","picture"],xw={card:"Whole card",picture:"Picture"},Dt={kind:"photos",group:"finish",cover:"card"};function qa(e){return{kind:be(za,Dt.kind,e[A.mediaKind]),group:be(xc,Dt.group,e[A.mediaGroup]),cover:be(kc,Dt.cover,e[A.cover])}}function kw(){return{field:A.kind,is:"nextImage"}}function Ac(e,t){let o=e[A.kind];if(ja.includes(o))return o;let a=e[Mt];return typeof a=="boolean"?a?"rotate":"none":t}function Rc(e){let t=N(e);return t===void 0?_c:Math.min($a.max,Math.max($a.min,t))}function Aw(e,t){let o=Tc(t),a=Ac(e,o);return{kind:a,angle:a==="rotate"?Rc(e[A.angle]):null,duration:He("hover","duration",a==="rotate"?e[A.duration]:void 0),delay:He("hover","delay",a==="rotate"?e[A.delay]:void 0),...a==="nextImage"?{media:qa(e)}:{}}}function Rw(e){let t={field:A.kind,in:[...ja]};return{any:[{field:A.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:Mt,is:!1}}:{field:Mt,is:!0}]}]}}var Qa=De(["none","mono"]),Lc=De(["none","nextImage","mono"]),Za={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Lw=Object.keys(Za);function Cc(e){return Za[e]??"none"}var Ja={zoom:"hoverZoom",darken:"hoverDarken"},Bt={min:100,max:150,step:1,unit:"%"};function Ic(e){let t=N(e[Ja.zoom]);if(t===void 0)return null;let o=Math.min(Bt.max,Math.max(Bt.min,t));return o===Bt.min?null:String(o/100)}function Pc(e){let t=N(e[Ja.darken]);return t!==void 0&&t>0?t:null}var Cw="hoverShow",Iw="cardHover",Pw="always",Nc=["ImageBlock","Flex"];function Hc(e,t,o=Qa){let a=e[C];return be(o,t,a)}function Nw(e,t=""){let o=Nc.includes(t)?Lc:Qa,a=Hc(e,Cc(t),o),s=a==="mono";return{kind:a,duration:He("hover","duration",s?e[A.duration]:void 0),delay:He("hover","delay",s?e[A.delay]:void 0),...a==="nextImage"?{media:qa(e),...t==="Flex"?Va(e):{}}:Va(e)}}function Va(e){let t=Ic(e),o=Pc(e);return{...t?{zoom:t}:{},...o?{darken:o}:{}}}function Hw(){return{not:{field:C,is:"nextImage"}}}function Dw(e){return e==="none"?{field:C,in:["mono","nextImage"]}:{not:{field:C,is:"none"}}}function Bw(e){return e==="none"?{field:C,is:"mono"}:{not:{field:C,in:["none","nextImage"]}}}var Gw={left:"start",center:"center",right:"end"},Ww={left:"justify-start",center:"justify-center",right:"justify-end"},Uw={left:"",center:"mx-auto",right:"ml-auto"},es={left:"",center:"text-center",right:"text-right"},Dc={text:{left:"view-wide:max-view-desktop:text-left",center:"view-wide:max-view-desktop:text-center",right:"view-wide:max-view-desktop:text-right"},place:{left:"view-wide:max-view-desktop:mx-0",center:"view-wide:max-view-desktop:mx-auto",right:"view-wide:max-view-desktop:ml-auto view-wide:max-view-desktop:mr-0"},items:{left:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-start",center:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-center",right:"view-wide:max-view-desktop:justify-items-end"},justify:{left:"view-wide:max-view-desktop:justify-start",center:"view-wide:max-view-desktop:justify-center",right:"view-wide:max-view-desktop:justify-end"}},Bc={text:{left:"max-view-wide:text-left",center:"max-view-wide:text-center",right:"max-view-wide:text-right"},place:{left:"max-view-wide:mx-0",center:"max-view-wide:mx-auto",right:"max-view-wide:ml-auto max-view-wide:mr-0"},items:{left:"max-view-wide:grid-cols-1 max-view-wide:justify-items-start",center:"max-view-wide:grid-cols-1 max-view-wide:justify-items-center",right:"max-view-wide:justify-items-end"},justify:{left:"max-view-wide:justify-start",center:"max-view-wide:justify-center",right:"max-view-wide:justify-end"}},Mc={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},Fc={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function Be(e){return e==="left"||e==="center"||e==="right"?e:void 0}function Yw(e){return e==="start"?"left":e==="end"?"right":Be(e)}function Gc(e,t,o){let a=Be(e)??"left",s=Ie("same",a,Be(t),Be(o)),n={};return s.tablet&&s.tablet!==a&&(n.tablet=s.tablet),s.phone&&s.phone!==a&&(n.phone=s.phone),n}function Kw(e,t,o,a,{atSectionLine:s=!1}={}){let n=Gc(t,o,a),i=s?Mc:Dc,r=s?Fc:Bc;return[n.tablet?i[e][n.tablet]:"",n.phone?r[e][n.phone]:""].filter(Boolean).join(" ")}var Ft="rowImageField",Wc="boxOutsideCopy",Uc={all:[{field:Ft,set:!0},{not:{context:Wc,is:!0}}]},Vw={any:[{field:"bgImage",set:!0},Uc]},ts="boxInCopy",Yc={any:[{not:{field:Ft,set:!0}},{not:{context:ts,is:!0}}]},jw={all:[{not:{field:"bgImage",set:!0}},Yc]},os={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${Ft}`,set:!0}},{not:{context:ts,is:!0}}]}]};import{parseOption as as}from"efficient-shell/format";var Kc="small",$c="dot",Vc=[{label:"Small",value:"small"},{label:"Display",value:"display"}],Gt=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],ss={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},jc={small:"font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.25em] max-view-wide:text-[length:var(--size-label,12px)]",display:"font-display font-medium text-[length:var(--size-headingMedium,44px)] uppercase leading-none tracking-[0.005em] max-view-wide:text-[length:var(--size-headingMedium,28px)]"},Xc={small:{dot:"",cross:"text-[0.77em]",slash:"text-[0.77em]",triangle:"",none:""},display:{dot:"text-[0.3em]",cross:"text-[0.64em]",slash:"text-[0.64em]",triangle:"text-[0.3em]",none:""}};function qw(e){return as(Vc,Kc,e)}function ns(e){return as(Gt,$c,e)}function Qw(e){return jc[e]}function is(e,t){return Xc[e][t]}var eg=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function rs(e){return Gt.some(t=>t.value===e)?ns(e):void 0}var zc="overflow-x-clip [&>*]:shrink-0 [&>[data-sf-box-items]>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>[data-sf-box-items]>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function V(e,t){return e==="row"&&rs(t)!==void 0}function tg(e,t){return V(e,t)?zc:""}var qc="[&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:inline-flex [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:items-center [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:align-top [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:h-[calc(1lh/var(--sf-sep-k,1))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:ml-[var(--sf-gap-len,0px)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:after:ml-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-accent [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]:last-child>*:not(:last-child)_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-none";function og(e,t){return V(e,t)?qc:""}function ag(e,t){if(!V(e,t))return{};let o=rs(t),a=/^text-\[([\d.]+)em\]$/.exec(is("small",o))?.[1],s=ss[o];return{"--sf-sep-mark":s===""?"none":JSON.stringify(s),...a?{"--sf-sep-k":a}:{}}}import{parseOption as Qc}from"efficient-shell/format";var hs={sectionPaddingTop:0,sectionPaddingBottom:0},ye={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},le={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},hg=[...new Set([...Object.keys(le),...Object.keys(es)])];function ug(e,t){let o=typeof e=="string"&&Q(ye,e)?ye[e]:"",a=typeof t=="string"&&Q(le,t)?le[t]:"";return[o,a].filter(Boolean).join(" ")}function Zc(e){return e===!0||e==="wrap"?"flex-wrap":""}var Jc={start:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!",end:"view-wide:max-view-desktop:justify-end!"},ed={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},td={start:"view-wide:max-view-desktop:items-start!",center:"view-wide:max-view-desktop:items-center!",end:"view-wide:max-view-desktop:items-end!",stretch:"view-wide:max-view-desktop:items-stretch!"},od={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},ad={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function z(e,t){return typeof t=="string"&&Q(e,t)?t:void 0}function Ut(e,t,o){let a=Ie("same",e,t,o),s={};return a.tablet!==void 0&&a.tablet!==e&&(s.tablet=a.tablet),a.phone!==void 0&&a.phone!==e&&(s.phone=a.phone),s}function Yt(e,t,o){return[e.tablet?t[e.tablet]:"",e.phone?o[e.phone]:""].filter(Boolean).join(" ")}function sd(e,t,o){return Ut(z(ye,e)??"start",z(ye,t),z(ye,o))}function pg(e,t,o){return Yt(sd(e,t,o),Jc,ed)}function mg(e,t,o){let a=z(le,e)??"stretch";if(a==="stretch")return"";let s=Ut(a,z(le,t),z(le,o));return Yt(s,td,od)}function Wt(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function fg(e,t){let o=Zc(e)===""?"nowrap":"wrap",a=Wt(t);return a&&a!==o?ad[a]:""}var wg="Block widths",us=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{value:"bigLeft",weights:[2,1]},{value:"bigRight",weights:[1,2]},{value:"biggerLeft",weights:[3,1]},{value:"biggerRight",weights:[1,3]},{value:"twoThree",weights:[2,3]}],nd="data-sf-box-items",gg=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${nd}\\][^\\s"'\`]*`,"g");var bg=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function yg(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in Me?"custom":"content"}var ps=4,ls=10;function id(e,t){if(!Number.isInteger(t)||t<2||t>ps||e.length!==t-1||!e.every(s=>typeof s=="number"&&Number.isFinite(s)))return;let o=[],a=0;return e.forEach((s,n)=>{let i=100-a-ls*(t-1-n),r=Math.min(i,Math.max(ls,Math.round(s)));o.push(r),a+=r}),o}function cs(e,t,o){if(!Array.isArray(t))return;let a=id(t,o),s=a?[...a,100-a.reduce((i,r)=>i+r,0)]:[],n={};for(let i=0;i<ps;i+=1)n[`--${e}-${i+1}`]=s[i]??1;return n}function Eg(e,t,o){let a=cs("sf-share",e,o),s=cs("sf-share-tablet",t,o);return a||s?{...a,...s}:void 0}function rd(e,t){let o=Array.from({length:t},()=>1),a=us.find(i=>i.value===e);if(!a?.weights||t<1)return o;let[s,n]=a.weights;return s>1&&(o[0]=s),n>1&&(o[t-1]=n),o}function Sg(e,t){if(typeof e!="string"||!(e in Me)||e==="equal")return e;let o=rd(e,t),a=o.reduce((s,n)=>s+n,0);return o.slice(0,-1).map(s=>Math.round(s/a*100))}var j="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",Me={equal:j,bigLeft:`${j} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${j} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${j} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${j} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${j} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},ld=`${j} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function cd(e){return Array.isArray(e)?ld:typeof e=="string"?Me[e]??"":""}var Tg={all:[{context:"parentType",is:"Flex"},{context:"parent.direction",is:"row"},{any:[{not:{context:"parent.align",set:!0}},{context:"parent.align",is:"stretch"}]},{not:{context:"parent.separator",set:!0}},{not:{context:"parent.loop",is:"scroll"}},{not:{context:"parent.line",is:!0}},os,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(Me)}]}]}]},ms="view-wide:max-view-desktop:flex-row!",X=`${ms} [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-0!`,fs={content:`${ms} [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]!`,equal:X,bigLeft:`${X} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,bigRight:`${X} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,biggerLeft:`${X} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,biggerRight:`${X} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,twoThree:`${X} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`},dd=`${X} [&>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>[data-sf-box-items]>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>[data-sf-box-items]>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>[data-sf-box-items]>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]! [&>[data-sf-box-items]>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]!`;function hd(e){return Array.isArray(e)||typeof e=="string"&&e in fs?e:null}function _g(e){if(e.direction!=="row"||V(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||ws(e.columns)!==""||gs(e.columnsTablet)!=="")return"";let t=hd(e.shareTablet);return t===null?"":typeof t=="string"?fs[t]:dd}var ud="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function Og(e){return cd(e)===""?ud:""}var vg="Columns",xg=1,kg=3,Kt={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},Ag=us.filter(e=>e.value==="content"||e.value==="equal"),Rg="equal",Lg=1,Cg=6,re="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",pd={1:`${re} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${re} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function ws(e){return typeof e=="number"?pd[e]??"":""}var md={1:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]!",2:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function gs(e){return typeof e=="number"?md[e]??"":""}function Ig(e){return e.direction!=="row"||V(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":gs(e.columnsTablet)}function Pg(e){return e.direction!=="row"||V(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":ws(e.columns)}var bs={2:"view-wide:grid view-wide:grid-cols-2",3:"view-wide:grid view-wide:grid-cols-3",4:"view-wide:grid view-wide:grid-cols-4",5:"view-wide:grid view-wide:grid-cols-5",6:"view-wide:grid view-wide:grid-cols-6"},ys={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},Ng=Object.keys(bs).map(Number),Hg=Object.keys(ys).map(Number);function Dg(e,t,o=!1){let a=typeof e=="number"?bs[e]??"":"",s=ys[Number(t)]??"";return!a&&!s?"":[a,s,o?"gap-y-0!":""].filter(Boolean).join(" ")}var fd="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]",wd={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},gd="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]";function bd(e,t){return(Wt(e)??Wt(t)??"wrap")==="nowrap"}function Bg(e,t,o,a){let s=Kt[Number(e)];if(!s)return"max-view-wide:flex-col";let n=bd(o,a);return Es(e,t)?n?gd:fd:n?wd[Number(e)]:s}function Mg(e,t){return Number(e)in Kt&&!Es(e,t)}function Es(e,t){return Number(e)in Kt&&t==="content"}var Fg="Block spacing",yd=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],Ed="sf-box-gap-only";function Gg(e){return e==="gap"?Ed:""}var ds={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},Sd={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function Wg(e,t,o){let a=n=>z(ds,n),s=Ut(Qc(yd,"each",e),a(t),a(o));return Yt(s,ds,Sd)}var Ss={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Vg,tag:jg,...Td}=Ss.defaultProps,b=Td,S={...b,tone:"dim"},_d={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},g={..._d,direction:"column",...hs},H=(e,t=e,o=e,a=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:o,sectionPaddingRightPhone:a,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:a}),Od=e=>({fillColor:e}),Ts=(e,t,o={})=>({...g,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?Od(t):{},...o}),y=(e,t,o,a)=>({sizeToken:{step:e,px:t,...a?{stepPhone:a}:{},...o?{pxPhone:o}:{}}}),Xg=e=>({textStyle:"body-1",...y("body",e),lineHeight:1.625}),_s={case:"upper"},$t={textStyle:"body-5",..._s},Vt=(e,t)=>({...y("label",e,t),letterSpacing:.2,..._s}),jt=(e,t)=>({...$t,...Vt(e,t)});function E(e,t,o=""){return e.map((a,s)=>{let n=o?`${o}.${s}`:String(s),i={...a.props??{}};for(let[r,c]of Object.entries(a.slots??{}))i[r]=E(c,t,n);return{type:a.type,props:{...i,id:t(a.type,n)}}})}function B(e,t){return typeof e.id=="string"&&e.id.trim()?e.id:t}var ce=(e,t)=>(o,a)=>a==="0"?`${e}~${t}`:`${e}~${t}.${a.slice(2)}`;function M(e,t,o,a){return e[t]!==void 0?e:{...e,[t]:a(B(e,o))}}var Qg=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),Os=()=>({_partStyles:{text:{...$t,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var de="Cards",vd={...g,gap:12,gapPhone:12,...H(32,32,28,28)},xd={textStyle:"heading-3",...y("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},Ee={textStyle:"body-1",...y("body",15),lineHeight:1.6},u=(e,t,o,a=!1)=>({type:"Text",props:{...t,text:"",[w]:e,_partStyles:{text:{...a?Os()._partStyles?.text??{}:{},...o}}}}),he={title:"title",body:"body"},Fe={title:"name",body:"note"},kd=(e=he)=>({type:f,props:{...vd,name:"Card"},slots:{[p]:[u(e.title,{...b,tag:"p",widthFit:"fill"},xd),u(e.body,{...S,tag:"p",widthFit:"fill"},Ee)]}}),xs=(e,t)=>E([kd(t)],e),vs={label:he.title,href:"href"},Ad={textStyle:"body-1",fontRole:"heading",color:"text",...y("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},Rd=Ts(9,"main",{[Ka]:45}),Ld=(e=!1)=>({type:f,props:{...g,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...H(32,28),[k]:vs.href,...e?{[C]:$}:{}},slots:{[p]:[{type:f,props:{...Rd,name:"Mark"}},u(vs.label,{...b,tag:"p",widthFit:"fill"},Ad)]}}),ks=e=>ce(e,"card"),As=(e,t=!1)=>E([Ld(t)],e);var Xt="ArticleBody",Cd={textStyle:"heading-3",...y("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},Id={...Ee,align:"center"},Rs=640,Pd=()=>[u("heading",{...b,tag:"h2",align:"center",maxWidth:Rs},Cd),u("paragraph",{...S,tag:"p",align:"center",maxWidth:Rs},Id)],Nd=e=>E(Pd(),e);function Hd(e){return Nd((t,o)=>`${e}~${o==="0"?"heading":"paragraph"}`)}function Ls(e){return M(e,d,Xt,Hd)}import{addShowWhenFacts as Dd}from"efficient-shell/format";import{showWhenOf as ub,shownForOption as pb,truthy as mb,withRowRules as fb,withRowsShownWhen as Cs,withShowWhen as wb}from"efficient-shell/format";var gb=Dd;function bb(e,t,o){return e.slice(0,-1).reduceRight((a,s)=>({any:[{all:[t(s),o(s)]},{all:[{not:t(s)},a]}]}),o(e[e.length-1]))}import{parseOption as Bd}from"efficient-shell/format";var Md="inline",Fd=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"},{label:"In the list column",value:"list-column",only:["Footprint"]}],Is="list-column";var Gd={ProductGrid:{num:"num",title:"title",description:"description",headRows:["num","title","titleSize","description","linkText","linkHref"],renderer:"ProductGridSection",padKey:"padTop",linkProp:"link"},TyreSizes:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreSizes"},FitmentFinder:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentFinder"},TyreFitment:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreFitment"},BundleOffer:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},CompatibleTyres:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},RelatedProducts:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},SpecTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"SpecTable"},FAQ:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"FAQ"},GalleryB:{num:"num",title:"title",headRows:["num","title","linkText","linkHref"],renderer:"GalleryGrid"},FitmentTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentTable"},Events:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"Events"},ProcessSteps:{num:"num",title:"title",description:"description",headRows:["num","title","description"],headStyle:"editorial",renderer:"ProcessSteps",padKey:"padTop"},LongRead:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"LongRead"},Series:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Series"},Subscribe:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Subscribe"},TimelineTrack:{num:"eyebrow",title:"title",description:"intro",headRows:["eyebrow","title","intro"],headStyle:"editorial",renderer:"TimelineTrack",padKey:"padTop"},StatsParagraph:{num:"eyebrow",title:"title",description:"desc",headRows:["eyebrow","title","desc"],headStyle:"editorial",renderer:"StatsParagraph"},Footprint:{num:"sectionNumber",title:"heading",description:"tagline",headRows:["sectionNumber","heading","tagline"],headStyle:"editorial",renderer:"Footprint",padKey:"padTop"},Collections:{num:"eyebrow",title:"heading",headRows:["eyebrow","heading"],renderer:"Collections"},Cards:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Cards"},Testimonials:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Testimonials"},Reviews:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Reviews"},Prose:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"essay",renderer:"Prose"},ReviewForm:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"simple",renderer:"ReviewForm"},DeliveryOptions:{num:"eyebrow",title:"title",description:"body",headRows:["eyebrow","title","body"],headStyle:"natural",headRowGap:"gap-3",headDescriptionSize:"text-[15px]",renderer:"DeliveryOptions"}},_b="SectionHeader";function Ob(e){return Q(Gd,e)}function Ge(e){return Bd(Fd,Md,e)}var Wd=new Set(["Flex"]);function vb(e){return!!e?.type&&Wd.has(e.type)}var Ps={not:{field:"headPlacement",is:"own-box"}},xb={not:Ps};function kb(e,t,o){return Cs(e,o,Ps)}var Rb="data-sf-spec-region";function Lb(e){return e.writable===!0&&e.sized===!0}function Cb(e,t,o){if(!e)return;let a=o[e];if(a)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${a}, ${t.builtIn})`}}function Ib(e){let t=/var\(--size-[A-Za-z]+, ?([0-9.]+px)\)/.exec(e);if(!t)throw new Error(`builtInOf: no --size-* fallback in ${e}`);return t[1]}function Ns(e){return`@${e}`}function Pb(e,t){if(!t.startsWith("@"))return null;let o=t.slice(1);return o in e?o:null}function Nb(e,t){return t&&t in e?t:null}function Ds(e,t){if(e!==de)return t;if(t[d]!==void 0)return Hs(t);let o=B(t,de),a=ks(o);if(t.cardStyle==="label-only"){let n=Array.isArray(t.items)&&t.items.some(i=>R(i?.href)!==void 0);return Hs({...t,[d]:As(a,n)})}let s=x(t)?Fe:he;return{...t,[d]:xs(a,s)}}var Ud=e=>{let[t,o]=e?[he,Fe]:[Fe,he];return new Map([[t.title,o.title],[t.body,o.body]])};function Bs(e,t){let o=null;return e.forEach((a,s)=>{let n=a?.props;if(!n)return;let i=n,r=n[w];a.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[w]:t.get(r)});let c=n[p];if(Array.isArray(c)){let h=Bs(c,t);h!==c&&(i={...i,[p]:h})}i!==n&&(o??=[...e],o[s]={...a,props:i})}),o??e}function Hs(e,t){if(!Array.isArray(e[d]))return e;let o=Ud(!!x(e)),a=t?new Map([...o].filter(([n,i])=>t(i)&&!t(n))):o;if(!a.size)return e;let s=Bs(e[d],a);return s===e[d]?e:{...e,[d]:s}}var Ms="OrderSummary";var Yd="label";function We(e){return M(e,d,L,t=>E([Kd()],ce(t,"item")))}function Kd(){return{type:f,props:{...g,name:"Item"},slots:{[p]:[u(Yd,{...b,tag:"p"},Ee)]}}}var Fs="ProcessSteps",$d={eyebrow:"eyebrow",title:"title",copy:"copy",image:"image",tag:"tag",specs:"specs"},ue=$d,Vd=()=>({type:f,props:{...g,name:"Row",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[p]:[{type:f,props:{...g,name:"Picture",direction:"column",gap:12},slots:{[p]:[{type:"ImageBlock",props:{[w]:ue.image,aspect:"1/1",fit:"contain"}},u(ue.tag,{...S,tag:"p"},jt(11))]}},{type:f,props:{...g,name:"Words",direction:"column",gap:16},slots:{[p]:[u(ue.eyebrow,{...b,tag:"p"},{...jt(13),color:"accent"}),u(ue.title,{...b,tag:"h2"},{textStyle:"heading-2",...y("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),u(ue.copy,{...S,tag:"p"},{textStyle:"body-1",...y("body",15),lineHeight:1.6}),{type:L,props:{[w]:ue.specs}}]}}]}});function Gs(e){return e.map(t=>{let o=t.props;for(let a of ne(t))o={...o,[a]:Gs(o[a])};return t.type===L?{...t,props:We(o)}:{...t,props:o}})}function ty(e){return Gs(E([Vd()],ce(e,"row")))}var jd="label",Xd=()=>({type:"LogoBlock",props:{[w]:jd}}),Ue="Logos",Ws=e=>E([Xd()],()=>`${e}~logo`);function Us(e){return x(e)?M(e,d,Ue,Ws):e}function iy(e){if(!x(e))return e;let t=e[d];return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:{...e,[d]:Ws(B(e,Ue))}}var zt={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0,sized:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0,sized:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0,sized:!0}},ly=zt;var qt="FAQ",zd="question",qd="answer",Qd={textStyle:"body-1",fontRole:"heading",...y("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},Zd={textStyle:"body-1",...y("body",15),lineHeight:1.7};function by(){return Object.keys(zt).map(Ns)}var Jd=()=>({type:f,props:{...g,gap:0,name:"Question"},slots:{rowTitle:[u(zd,{...b,tag:"p",widthFit:"fill"},Qd)],[p]:[u(qd,{...S,tag:"p",widthFit:"fill",maxWidth:760},Zd)]}});function eh(e){return Ge(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>R(e[t])!==void 0)}function Ys(e){return eh(e)?e:M(e,d,qt,t=>{let o=0;return E([Jd()],a=>a===f?`${t}~row`:`${t}~row.${o++}`)})}import{rootIsDark as th}from"efficient-shell/format";function Sy(e="auto"){return e==="light"?!0:e==="dark"?!1:!th({whenUnset:!0})}function Ks(e,t){return Number.isFinite(e)&&Number.isFinite(t)&&!(e===0&&t===0)}function Qt(e){let t=Number.parseFloat(e??"");return Number.isFinite(t)?t:0}function _y(e,t,o){let a=[];return e.forEach((s,n)=>{let i=t(s),r=a.find(c=>c.key===i);r||(r={key:i,name:o(s),items:[]},a.push(r)),r.items.push({item:s,index:n})}),a}function $s(e){return oh[Zt(e)]}var oh={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function Zt(e){if(e<=1)return 1;if(e<=4)return e;let t=o=>e%o||o;return t(4)>=t(3)?4:3}import{parseOption as Jt}from"efficient-shell/format";import{parseOption as ah}from"efficient-shell/format";var sh=["below","left","right"];function Vs(e){return ah(sh,"below",e)}var nh=/^https?:\/\//i;function Iy(e){let t=(e.href??"").trim(),o=(e.linkLabel??"").trim();return{role:e.role??"",city:e.city??"",country:e.country??"",address:e.address??"",hq:e.hq==="true",lat:Qt(e.lat),lng:Qt(e.lng),...t&&o&&nh.test(t)?{href:t,linkLabel:o}:{}}}function Py(e){let t=o=>typeof o=="string"?o:"";return{badge:e.hq?"HQ":"",role:t(e.role),city:t(e.city),country:t(e.country),address:t(e.address),phone:t(e.phone),...e.href&&e.linkLabel?{href:e.href,linkLabel:e.linkLabel}:{}}}function Ny(e){return[e.city,e.country,e.address,e.role].map(t=>typeof t=="string"?t.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}var Hy={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function Dy(e){let t=[];return e.forEach((o,a)=>{Ks(o.lat,o.lng)&&t.push({key:String(a),label:o.city||o.role||"Office",lat:o.lat,lng:o.lng,glyph:"",tone:"",...o.hq?{badge:"HQ"}:{}})}),t}var ih=["both","map","list"],By="shows",Xs="both";function rh(e){return Jt(ih,Xs,e.shows)}function Ke(e){return rh(e)===Xs?Vs(e.listPosition):"below"}var lh=["fixed","full"],ch="mapHeight",js="fixed",My="full",zs=e=>Ke(e)!=="below";function Fy(e){return zs(e)?Jt(lh,js,e[ch]):js}function Gy(e){return zs(e)&&Ge(e.headPlacement)===Is}var dh=[1,2,3,4],Ye="auto",hh=2,uh=1,ph=[Ye,...dh.map(String)];function Wy(e){let t=Jt(ph,Ye,e.listColumns);return t===Ye?t:Number(t)}var mh="max-view-desktop:grid-cols-2",fh="max-[700px]:grid-cols-1";function Uy(e,t){let o=e===Ye?Zt(t):e;return[$s(o),[o>hh?mh:"",o>uh?fh:""].filter(Boolean).join(" ")].join(" ")}function eo(e){return Array.isArray(e)?e.map(eo):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([t,o])=>t!=="id"&&o!==void 0&&!(Array.isArray(o)&&o.length===0)).sort(([t],[o])=>t<o?-1:t>o?1:0).map(([t,o])=>[t,eo(o)]))}var F=e=>JSON.stringify(eo(e));var Ve="Footprint",Zs=e=>x(e)===It,$e=Vt(11),wh={textStyle:"body-1",...y("body",18),weight:500,lineHeight:1.2},Zy=()=>({type:f,props:{...g,gap:8,gapPhone:8,...H(20,24,20,20),name:"Office"},slots:{[p]:[u("badge",{...b,tag:"p",widthFit:"fill"},$e,!0),u("role",{...b,tag:"p",widthFit:"fill"},$e,!0),u("city",{...b,tag:"p",widthFit:"fill"},wh),u("country",{...S,tag:"p",widthFit:"fill"},$e),u("address",{...S,tag:"p",widthFit:"fill"},$e),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[w]:"linkLabel",[k]:"href"}}]}}),Js={textStyle:"body-1",fontRole:"heading",...y("body",16),weight:500,lineHeight:1.25},oo={textStyle:"body-1",...y("body",14),lineHeight:1.5},gh=()=>({type:f,props:{...g,gap:4,gapPhone:4,...H(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[p]:[u("city",{...b,tag:"p",widthFit:"fill"},Js),u("address",{...S,tag:"p",widthFit:"fill"},oo),u("phone",{...S,tag:"p",widthFit:"fill"},oo)]}});function en(e){let t=B(e,Ve),o=0;return E([gh()],a=>a===f?`${t}~office`:`${t}~office.${o++}`)}function tn(e){return Array.isArray(e[d])&&e[d].length>0&&F(e[d])===F(en(e))}var on=e=>e===void 0||Array.isArray(e)&&e.length===0;function qs(e){return Ke(e)==="below"?tn(e)?{...e,[d]:[]}:e:!on(e[d])||Zs(e)?e:{...e,[d]:en(e)}}var bh=Js,yh=oo,Eh={textFit:"line"},ao=(e,t,o="",a={},s={})=>{let n=u(e,{...t?S:b,tag:"p",...a},{...yh,...s});return o?{...n,props:{...n.props,[k]:o}}:n},to=(e,t,o,a)=>({type:f,props:{...g,gap:0,gapPhone:0,[ge]:[e],name:a},slots:{[p]:[ao(e,t,o,Eh,{align:"right"})]}}),Sh=e=>({type:f,props:{...g,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?H(20,24):{...H(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[p]:[{type:f,props:{...g,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[p]:[{type:f,props:{...g,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[p]:[u("name",{...b,tag:"p",widthFit:"fill"},bh),ao("address",!0)]}},ao("place",!0,"",{widthFit:"fill"})]}},{type:f,props:{...g,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[p]:[to("distance",!0,"","Dealer distance"),to("phone",!1,"phoneHref","Dealer phone"),to("website",!1,"websiteHref","Dealer website")]}}]}}),Th=e=>{let t=Sh(e),o={type:f,props:{...g,...H(0,12),name:"Dealer"},slots:{[p]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:o};function so(e,t){let o=B(e,Ve),a=0;return E([Th(t)],(s,n)=>n==="0"?`${o}~dealer`:`${o}~dealer.${a++}`)}function Qs(e){if(!Array.isArray(e[d])||e[d].length===0)return!1;let t=F(e[d]);return t===F(so(e,!0))||t===F(so(e,!1))}function an(e){if(Zs(e)){let o=so(e,Ke(e)==="below");return!(on(e[d])||tn(e)||Qs(e))||F(e[d]??[])===F(o)?e:{...e,[d]:o}}if(!Qs(e))return qs(e);let t={...e,[d]:[]};return qs(t)}var _h="Card template",nn="items",rn="itemFields";function q(e,t){if(!t)return e;let o=typeof t=="string"?[t]:t;return e.filter(a=>o.includes(a.kind??"text"))}var Oh=[{block:Ms,typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:qt,typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Ys(e)},{block:Ve,typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region \xB7 country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>an(e)},{block:de,typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>Ds(de,e)},{block:Fs,fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:L,label:"Card list"}]},{block:Ue,fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>Us(e)},{block:L,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:nn,seed:e=>We(e)},{block:Xt,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>Ls(e)}];function T(){return se("efficient.card-templates",()=>new Map(Oh.map(e=>[e.block,e])))}function bE(e){for(let t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");let o=[];for(let i of t.blocks??[]){if(typeof i?.type!="string"||!i.type)throw new Error(`The card template of ${t.block} names an empty block.`);if(i.type===sn)throw new Error(`The card template of ${t.block} names "${sn}" in its blocks. Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`);o.some(r=>r.type===i.type)||o.push({type:i.type,label:i.label||i.type})}let a=[];for(let i of t.slots??[]){if(typeof i?.slot!="string"||!i.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);let r=R(i.label),c=Array.isArray(i.fields)?{fields:i.fields.map(h=>({...h}))}:null;a.some(h=>h.slot===i.slot)||a.push({slot:i.slot,...r?{label:r}:null,...c})}let s=a.some(i=>i.fields);if(s&&(t.fields.some(i=>i.everySource)||Ba(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);s?fe().add(t.block):fe().delete(t.block);let n=R(t.typedRows);T().set(t.block,{block:t.block,...a.length?{slots:a}:{},fields:t.fields.map(i=>({...i})),blocks:o,typedRows:n,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function vh(e,t){let o=e?T().get(e)?.seed:void 0;return o?o(t):t}function yE(e,t){let o=kh(e),a=(o.length?o:[d]).filter(r=>t[r]===void 0||Array.isArray(t[r])&&t[r].length===0);if(!a.length)return t;let s={...t};for(let r of a)delete s[r];let n=e?T().get(e)?.seedOnInsert:void 0,i=n?n(s):vh(e,s);return i===s?t:i}function EE(){for(let e of T().values())if(e.blocks?.length)return!0;return!1}function SE(e){return T().get(e)?.blocks??[]}function TE(e){for(let t of T().values())if(t.blocks?.some(o=>o.type===e))return!0;return!1}function _E(e){return typeof e=="string"&&T().get(e)?.typedRows||""}function OE(e){return typeof e=="string"&&T().get(e)?.linesBetween===!0}function vE(e){return typeof e=="string"&&T().has(e)}var xh=[{slot:d}];function je(e){if(typeof e!="string")return[];let t=T().get(e);return t?t.slots??xh:[]}function kh(e){return je(e).map(t=>t.slot)}function Ah(e,t){return je(e).some(o=>o.slot===t)}function xE(e,t){let o=je(e).find(a=>a.slot===t);return o?o.label??_h:null}function no(e,t){return t?je(e).find(o=>o.slot===t)?.fields:void 0}function Rh(e,t){let o=T().get(e)?.fields??[];return q(o,t)}function Lh(e,t){if(typeof e!="string")return"";let o=no(e,t);return(o?q(o,"list"):Rh(e,"list"))[0]?.key??""}function Ch(e,t,o){return ro(e)||Lh(t,o)}function ln(e,t,o){let a=typeof e?.type=="string"?e.type:"";if(!a)return[];let s=no(a,o);if(s)return q(s,t);let n=T().get(a)?.fields??[],i=Ne(x(e?.props))?.fields,r=i?.length?[...i.map(c=>({...c})),...n.filter(c=>c.everySource&&!i.some(h=>h.key===c.key))]:n;return q(r,t)}function Ih(e,t,o,a){if(!e)return null;let s=no(e,a);return s?s.find(n=>n.key===t)??null:o?ln(o).find(n=>n.key===t)??null:T().get(e)?.fields.find(n=>n.key===t)??null}function io(e,t){return!e||!t?null:e.fields?.find(o=>o.key===t)??Ih(e.ownerType,t,e.owner,e.slot)}function kE(e,t){return io(e,t)?.plain===!0}function AE(e,t){return io(e,t)?.kind==="date"}function ro(e,t=w){let o=e?.[t];return typeof o=="string"?o.trim():""}function RE(e,t){return e.key||String(t+1)}function LE(e){let t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[o,a]of Object.entries(e))typeof a=="string"&&(t[o]=a);return t}function CE(e,t){let o=e[ge];return!t||!Array.isArray(o)||!o.length?!1:o.every(a=>typeof a!="string"||!t[a]?.trim())}var lo={Text:{text:w,href:k},ImageBlock:{src:w,href:k},ButtonBlock:{label:w,href:k},LogoBlock:{alt:w,href:k},Breadcrumb:{currentCrumb:w}},IE=lo,Ph=new Set(["ButtonBlock.label","LogoBlock.alt"]);function PE(e,t,o){return Nh(e,t,o)&&!Ph.has(`${e}.${o}`)}function Nh(e,t,o){return Hh(e,t,o)!==""}function Hh(e,t,o){let a=lo[e]?.[o];return a?ro(t,a):""}function cn(e,t){return!t||!e?null:e[t]??""}function Dh(e,t){return cn(e,t)?.trim()||void 0}function NE(e,t,o,a,s,n){if(!o)return t;let i=null;for(let[r,c]of Object.entries(lo[e]??{})){let h=ro(t,c),_=cn(o,h);if(_!==null){if(i??={...t},c===k){i[r]=Dh(o,h);continue}i[r]=io({ownerType:a,fields:s,slot:n},h)?.mark==="accentItalic"?va(_):_}}return i??t}function Xe(e,t){let o=e?.data?.content;if(!Array.isArray(o)||typeof t!="string")return;let a=(n,i)=>{for(let r of n){if(r?.props?.id===t)return i;for(let c of ne(r??{})){let h=r.props[c],_=Ah(r.type,c)?{owner:r,slot:c,direct:!0,nested:i!==null,underBox:!1}:i&&{owner:i.owner,slot:i.slot,direct:!1,nested:i.nested,underBox:i.underBox||r.type===f},O=a(h,_);if(O!==void 0)return O}}},s=a(o,null);return s===void 0?null:s}function Bh(e,t){let o=Xe(e,t);return o&&o.owner}function Mh(e,t){let o=Xe(e,t);return o&&o.slot}function HE(e,t){let o=Xe(e,t);return o&&(o.direct?o.owner:null)}function DE(e,t){let o=Xe(e,t);if(o!==void 0)return o===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:o.nested,underBox:o.underBox}}function BE(e,t,o){if(t?.type!==L)return[];let a=Bh(e,t.props?.id);if(!a){let r=Ne(x(t.props))?.fields,c=r?.length?r.map(O=>({...O})):Fh(t.props),h=(T().get(L)?.fields??[]).filter(O=>O.everySource&&!c.some(Ze=>Ze.key===O.key)),_=[...c,...h];return q(_,o)}let s=Mh(e,t.props?.id)??void 0,n=Ch(t.props,a.type,s),i=n&&ln(a,"list",s).find(r=>r.key===n)?.fields||[];return q(i,o)}function ME(e,t){return{[w]:"",[nn]:e.map(o=>({...o})),[rn]:t.map(o=>({...o}))}}function Fh(e,t){let o=e?.[rn];if(!Array.isArray(o))return[];let a=o.flatMap(s=>{if(!s||typeof s!="object")return[];let{key:n,label:i,kind:r,multiline:c,alt:h,next:_}=s;if(typeof n!="string"||!n||typeof i!="string")return[];let O=r==="image"||r==="link"||r==="colour"||r==="date"?r:void 0;return[{key:n,label:i,...O?{kind:O}:{},...c===!0?{multiline:!0}:{},...typeof h=="string"&&h?{alt:h}:{},...typeof _=="string"&&_?{next:_}:{}}]});return q(a,t)}var sn="HostPart";import{HEADER_TYPE as co,FOOTER_TYPE as Gh}from"efficient-easel/draw";import{parseOption as Wh}from"efficient-shell/format";var Uh=new Set(["Hero","HeroSingle","IntroBleed"]),dn={min:56,max:140,default:88},UE={min:0,max:120,step:2,default:32},YE=`var(--sf-header-h, ${dn.default}px)`,Yh="--sf-header-set-h",KE="--sf-header-h",$E=`var(${Yh}, ${dn.default}px)`,VE="sf-header-clearance",jE="sf-sticky-underheader";function Kh(e){return e?.find(t=>t?.type&&t.type!==co)??null}function hn(e){let t=Kh(e)?.type;return!t||!Uh.has(t)}function XE(e){return!hn(e)}function zE(e){return!!e?.some(t=>t?.type===co)}function qE(e){return!e||e.length===0?!1:!e.some(t=>t?.type===co||t?.type===Gh)}var $h=["auto","shared","own"],Vh="auto",jh="topSpace",QE="data-top-space";function Xh(e){return Wh($h,Vh,e)}function zh(e,t){let o=Xh(e?.props?.[jh]);return o==="own"?!0:o==="shared"?!1:hn(t)}function ZE(e,t){return zh(e,t)?"own":null}function ze(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}import{FOLLOW_RULES as qh,VIEW_TIERS as Qh,resolveViewValue as Zh}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as Jh}from"efficient-easel/screen/lib/content/length-units";var eu=["auto","fixed","screen","fill"],tu=Jh.filter(e=>e==="px"||e==="%"),ou="svh",au="vh",su="var(--sf-header-h, 88px)",nu={min:40,max:2e3,step:10,fallback:600},iu={min:10,max:200,step:5,fallback:100},ru="sf-section-minh",Se="grid-cols-[minmax(0,1fr)]",un={base:"--sf-section-minh",small:"--sf-section-minh-s"},uo=e=>typeof e=="string"&&eu.includes(e),lu=e=>typeof e=="string"&&tu.includes(e);function qe(e){let t=uo(e.sectionHeightMode)?e.sectionHeightMode:"auto",o=t==="screen"?"%":lu(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=t==="screen"?iu.fallback:nu.fallback,s=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:t,value:s,unit:o}}function fn(e){let{mode:t,value:o,unit:a}=qe(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&a==="px")return[`${o}px`,null];let s=o/100,n=i=>t==="screen"?`(100${i} - ${su})`:`100${i}`;return[`calc(${n(au)} * ${s})`,`calc(${n(ou)} * ${s})`]}function wn(e){let t=fn(e);if(!t)return;let[o,a]=t;return{display:"grid",[un.base]:o,...a?{[un.small]:a}:{}}}var aS=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),sS="Height",gn="sf-section-minh-phone",pn={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function bn(e){return uo(e.sectionHeightModePhone)}function cu(e){return qe({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var yn="sf-section-minh-tablet",mn={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function En(e){return uo(e.sectionHeightModeTablet)}function du(e){return qe({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function po(e){let t=wn(e),o=(r,c,h)=>fn({sectionHeightMode:r,sectionHeightValue:c,sectionHeightUnit:h})??(t?["auto",null]:void 0),a=En(e)?o(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,s=bn(e)?o(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):a;if(!t&&!a&&!s)return null;let n=[ru,Se],i={...t??{}};return a&&(n.push(yn),i[mn.base]=a[0],a[1]&&(i[mn.small]=a[1])),s&&(n.push(gn),i[pn.base]=s[0],s[1]&&(i[pn.small]=s[1])),{className:n.join(" "),style:i}}function nS(e){return po(e)!==null||Qe(e).length>0}var ho=`grid ${Se}`,iS="h-full",hu="view-tablet:max-view-desktop:grid",Sn="max-view-tablet:grid",uu="view-wide:max-view-desktop:grid",pu="max-view-wide:grid",mu=`${Sn} ${Se}`;function rS(e,{atSectionLine:t=!1}={}){if(Qe(e).length>0)return ho;let o=po(e);if(!o)return"";if(wn(e))return ho;let a=o.className.split(" "),s=t?hu:uu,n=t?Sn:pu;if(!a.includes(yn))return t?mu:`${n} ${Se}`;let i=a.includes(gn);return[s,i?n:"",Se].filter(Boolean).join(" ")}var lS="data-sf-height-fill",fu=Qh,wu={desktop:"view-desktop:[.flex-col>&]:grow! view-desktop:[.flex-row>&]:self-stretch",tablet:"view-wide:max-view-desktop:[.flex-col>&]:grow! view-wide:max-view-desktop:[.flex-row>&]:self-stretch",mobile:"max-view-wide:[.flex-col>&]:grow!"};function Qe(e){let t=e,o=Zh("heightMode",qe(t).mode,En(t)?du(t).mode:null,bn(t)?cu(t).mode:null,qh),a={desktop:o.desktop==="fill",tablet:o.tablet==="fill",mobile:o.phone==="fill"};return fu.filter(s=>a[s])}function cS(e){return Qe(e).map(t=>wu[t]).join(" ")}function dS(e){let t=po(e);return Qe(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:ho}}function pS(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"screen":return"aspect-[16/10]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";case"custom":return"aspect-[var(--shape-ratio)]";default:return"aspect-square"}}var mo=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"screen",image:"16/10",ratio:[16,10],label:"Screen 16:10"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"},{shape:"custom",image:"custom",ratio:null,label:"Custom W:H"}],mS="custom",gu=/^(\d{1,4}(?:\.\d{1,2})?)\/(\d{1,4}(?:\.\d{1,2})?)$/;function Tn(e){if(typeof e!="string")return null;let t=gu.exec(e);if(!t)return null;let o=Number(t[1]),a=Number(t[2]);return o>0&&a>0?[o,a]:null}function bu(e){return mo.every(t=>t.shape!==e&&t.image!==e)&&Tn(e)!==null}function fS(e,t,o){let a=mo.find(s=>s.ratio!==null&&s.ratio[0]*t===s.ratio[1]*e);return a?a[o]:`${e}/${t}`}function yu(e){return`${e[0]} / ${e[1]}`}var Eu={desktop:"--shape-ratio",tablet:"--shape-ratio-tablet",phone:"--shape-ratio-phone"};function wS(e){let t={};for(let o of["desktop","phone","tablet"]){let a=bu(e[o])?Tn(e[o]):null;a&&(t[Eu[o]]=yu(a))}return Object.keys(t).length?t:null}function gS(e){return mo.filter(t=>e.includes(t.shape))}function bS(e){return e==="below"}var yS=`linear-gradient(180deg, transparent 40%, ${ze(.85)} 100%)`,ES=`linear-gradient(0deg, transparent 40%, ${ze(.85)} 100%)`,SS=ze(.45);export{se as a,R as b,$l as c,Hf as d,Vl as e,Df as f,Bf as g,Mf as h,Ff as i,Gf as j,Wf as k,It as l,jl as m,Xl as n,Uf as o,Yf as p,Ba as q,Ne as r,Kf as s,$f as t,x as u,Jl as v,Vf as w,w as x,k as y,d as z,L as A,ge as B,K as C,ec as D,Ga as E,ne as F,Jf as G,ew as H,tw as I,ic as J,ow as K,pm as L,oe as M,mm as N,Gr as O,fm as P,wm as Q,gm as R,bm as S,Yr as T,Ce as U,_m as V,p as W,f as X,Ua as Y,iw as Z,rw as _,v as $,Ou as aa,vu as ba,xu as ca,Je as da,ku as ea,Au as fa,Ru as ga,Lu as ha,vi as ia,G as ja,xi as ka,Pu as la,xm as ma,km as na,Vr as oa,Am as pa,Rm as qa,Fm as ra,xt as sa,ml as ta,_a as ua,Km as va,$m as wa,Vm as xa,va as ya,jm as za,Xm as Aa,zm as Ba,N as Ca,ie as Da,Ka as Ea,dw as Fa,C as Ga,ww as Ha,bc as Ia,$ as Ja,yc as Ka,gw as La,bw as Ma,yw as Na,Ew as Oa,Sw as Pa,Sc as Qa,Tw as Ra,ja as Sa,A as Ta,Mt as Ua,_w as Va,Tc as Wa,_c as Xa,za as Ya,Ow as Za,xc as _a,vw as $a,kc as ab,xw as bb,Dt as cb,kw as db,Ac as eb,Rc as fb,Aw as gb,Rw as hb,Qa as ib,Lc as jb,Lw as kb,Cc as lb,Ja as mb,Bt as nb,Ic as ob,Cw as pb,Iw as qb,Pw as rb,Nc as sb,Hc as tb,Nw as ub,Hw as vb,Dw as wb,Bw as xb,Ko as yb,Bu as zb,Li as Ab,Mu as Bb,Fu as Cb,Gu as Db,Wu as Eb,El as Fb,Ie as Gb,Gw as Hb,Ww as Ib,Uw as Jb,es as Kb,Be as Lb,Yw as Mb,Gc as Nb,Kw as Ob,Ft as Pb,Wc as Qb,Vw as Rb,ts as Sb,jw as Tb,Kc as Ub,$c as Vb,Vc as Wb,ss as Xb,qw as Yb,ns as Zb,Qw as _b,is as $b,eg as ac,rs as bc,V as cc,tg as dc,og as ec,ag as fc,hs as gc,le as hc,ug as ic,Zc as jc,sd as kc,pg as lc,mg as mc,Wt as nc,fg as oc,wg as pc,nd as qc,bg as rc,yg as sc,Eg as tc,Sg as uc,cd as vc,Tg as wc,hd as xc,_g as yc,Og as zc,vg as Ac,xg as Bc,kg as Cc,Ag as Dc,Rg as Ec,Lg as Fc,Cg as Gc,ws as Hc,gs as Ic,Ig as Jc,Pg as Kc,Ng as Lc,Hg as Mc,Dg as Nc,bd as Oc,Bg as Pc,Mg as Qc,Es as Rc,Fg as Sc,yd as Tc,Ed as Uc,Gg as Vc,Wg as Wc,Ss as Xc,b as Yc,S as Zc,_d as _c,g as $c,H as ad,Od as bd,Ts as cd,y as dd,Xg as ed,$t as fd,Vt as gd,jt as hd,E as id,B as jd,Qg as kd,Os as ld,de as md,Ee as nd,u as od,he as pd,Fe as qd,kd as rd,xs as sd,vs as td,Ld as ud,ks as vd,Hs as wd,Fs as xd,ty as yd,Xt as zd,Nd as Ad,Ls as Bd,Xd as Cd,iy as Dd,ub as Ed,pb as Fd,mb as Gd,fb as Hd,Cs as Id,wb as Jd,gb as Kd,bb as Ld,Gd as Md,_b as Nd,Ob as Od,Ge as Pd,vb as Qd,Ps as Rd,xb as Sd,kb as Td,Rb as Ud,Lb as Vd,Cb as Wd,Ib as Xd,Ns as Yd,Pb as Zd,Nb as _d,zt as $d,ly as ae,by as be,Jd as ce,Sy as de,Ks as ee,Qt as fe,_y as ge,$s as he,Zt as ie,Iy as je,Py as ke,Ny as le,Hy as me,Dy as ne,By as oe,Xs as pe,rh as qe,Ke as re,ch as se,js as te,My as ue,Fy as ve,Gy as we,dh as xe,Ye as ye,Wy as ze,Uy as Ae,F as Be,Zy as Ce,an as De,nn as Ee,rn as Fe,q as Ge,bE as He,vh as Ie,yE as Je,EE as Ke,SE as Le,TE as Me,_E as Ne,OE as Oe,vE as Pe,kh as Qe,Ah as Re,xE as Se,Rh as Te,Ch as Ue,ln as Ve,io as We,kE as Xe,AE as Ye,ro as Ze,RE as _e,LE as $e,CE as af,IE as bf,PE as cf,Nh as df,Hh as ef,cn as ff,Dh as gf,NE as hf,Bh as if,Mh as jf,HE as kf,DE as lf,BE as mf,ME as nf,sn as of,tt as pf,ot as qf,ju as rf,Xu as sf,Di as tf,at as uf,zu as vf,Bi as wf,qu as xf,Qu as yf,ep as zf,Qo as Af,np as Bf,ip as Cf,rp as Df,lp as Ef,cp as Ff,pt as Gf,mt as Hf,dp as If,J as Jf,Ki as Kf,Zo as Lf,hp as Mf,up as Nf,te as Of,ee as Pf,ji as Qf,Xi as Rf,pp as Sf,mp as Tf,Ae as Uf,Jo as Vf,fp as Wf,wp as Xf,gp as Yf,wt as Zf,bp as _f,ea as $f,er as ag,yp as bg,Ep as cg,Sp as dg,or as eg,Tp as fg,_p as gg,Op as hg,vp as ig,xp as jg,kp as kg,gt as lg,cr as mg,Ap as ng,Rp as og,Re as pg,ur as qg,Lp as rg,bt as sg,Xo as tg,Cp as ug,Ip as vg,pr as wg,mr as xg,ia as yg,Le as zg,gr as Ag,br as Bg,yr as Cg,ra as Dg,Er as Eg,la as Fg,Hp as Gg,Dp as Hg,Bp as Ig,Mp as Jg,me as Kg,ca as Lg,Fp as Mg,Gp as Ng,yt as Og,da as Pg,Wp as Qg,Up as Rg,Yp as Sg,Et as Tg,xr as Ug,Ar as Vg,jp as Wg,ka as Xg,tf as Yg,of as Zg,af as _g,Tl as $g,_l as ah,sf as bh,Ol as ch,nf as dh,Pe as eh,Ra as fh,Aa as gh,Al as hh,Rl as ih,Ll as jh,df as kh,Cl as lh,hf as mh,ae as nh,uf as oh,pf as ph,mf as qh,Pl as rh,Ca as sh,ff as th,wf as uh,gf as vh,Hl as wh,bf as xh,Bl as yh,ze as zh,pS as Ah,mo as Bh,mS as Ch,Tn as Dh,bu as Eh,fS as Fh,yu as Gh,wS as Hh,gS as Ih,bS as Jh,Rt as Kh,Pa as Lh,Ef as Mh,Ul as Nh,Ct as Oh,Of as Ph,Yl as Qh,vf as Rh,eu as Sh,tu as Th,nu as Uh,iu as Vh,Se as Wh,qe as Xh,aS as Yh,sS as Zh,bn as _h,En as $h,du as ai,nS as bi,ho as ci,iS as di,rS as ei,lS as fi,Qe as gi,cS as hi,dS as ii,dn as ji,UE as ki,YE as li,Yh as mi,KE as ni,$E as oi,VE as pi,jE as qi,Kh as ri,XE as si,zE as ti,qE as ui,Vh as vi,QE as wi,zh as xi,ZE as yi,ua as zi,Jp as Ai,im as Bi,Br as Ci,rm as Di,lm as Ei,cm as Fi,dm as Gi,Kl as Hi,kf as Ii};