efficient-storefront-blocks 0.116.0 → 0.117.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (42) hide show
  1. package/CHANGELOG.md +9 -0
  2. package/README.md +9 -10
  3. package/dist/chunks/{EditorPreviewCheckout-ZLZS26RB.js → EditorPreviewCheckout-JKTRIRSH.js} +4 -4
  4. package/dist/chunks/{SiteEditorProvider-E5ZSDH4Y.js → SiteEditorProvider-ZVNXSXBQ.js} +1 -1
  5. package/dist/chunks/{chunk-VTAJ6NIH.js → chunk-3XS3LIPN.js} +1 -1
  6. package/dist/chunks/chunk-NMYHWA3M.js +96 -0
  7. package/dist/chunks/chunk-XVPVTQYY.js +342 -0
  8. package/dist/chunks/{chunk-6MJVBHOY.js → chunk-XZPK5PGX.js} +1 -1
  9. package/dist/chunks/{fitment-data-25XLESAA.js → fitment-data-3N56LEBE.js} +1 -1
  10. package/dist/editor/components/HeaderSettingsPanel.js +1 -1
  11. package/dist/editor/components/MenuPicker.d.ts +3 -0
  12. package/dist/editor/components/MenuPicker.js +1 -1
  13. package/dist/editor/lib/storefront-editor-words.d.ts +3 -0
  14. package/dist/editor/lib/storefront-editor-words.js +1 -1
  15. package/dist/editor.css +1 -1
  16. package/dist/index.js +103 -31
  17. package/dist/links.js +1 -1
  18. package/dist/render/built-with.json +1 -1
  19. package/dist/render/components/ChatContext.d.ts +1 -1
  20. package/dist/render/components/ChatContext.js +1 -1
  21. package/dist/render/components/ChatWidget.js +1 -1
  22. package/dist/render/components/DeliveryOptionsSource.js +1 -1
  23. package/dist/render/components/HeaderNavItem.js +1 -1
  24. package/dist/render/components/checkout/checkout-parts.js +1 -1
  25. package/dist/render/components/checkout/checkout-state.d.ts +1 -0
  26. package/dist/render/components/fitment/FitmentFinder.js +1 -1
  27. package/dist/render/components/fitment/FitmentPickerGrid.js +1 -1
  28. package/dist/render/components/fitment/PickerField.d.ts +2 -1
  29. package/dist/render/components/fitment/PickerField.js +1 -1
  30. package/dist/render/components/fitment/useFitmentCascade.d.ts +8 -0
  31. package/dist/render/components/fitment/useFitmentCascade.js +1 -1
  32. package/dist/render/components/fitment/useVehicleFit.js +1 -1
  33. package/dist/render/components/fitment/vehicle-level-state.d.ts +1 -0
  34. package/dist/render/components/fitment/vehicle-level-state.js +1 -1
  35. package/dist/render/lib/api/types.d.ts +1 -0
  36. package/dist/words.d.ts +12 -0
  37. package/dist/words.js +4 -4
  38. package/package.json +4 -4
  39. package/dist/chunks/chunk-57R5GY5W.js +0 -341
  40. package/dist/chunks/chunk-P4KTLII2.js +0 -96
  41. /package/dist/chunks/{chunk-LBW7HOQO.js → chunk-JVAY6GGN.js} +0 -0
  42. /package/dist/chunks/{chunk-57R5GY5W.js.LEGAL.txt → chunk-XVPVTQYY.js.LEGAL.txt} +0 -0
@@ -1,96 +0,0 @@
1
- import{jsx as Oa}from"react/jsx-runtime";import{createContext as Zr,useCallback as p,useContext as Qr,useMemo as Jr,useState as el}from"react";import{createContext as ia,useContext as gt}from"react";import{createContext as Qi}from"react";var sa=Qi(null);var Ji=ia(null),bt=ia({logo:null,placeholder:!1,wordmark:null});function tm(){let e=gt(sa),t=gt(Ji),o=gt(bt),a=!e&&o.placeholder,n=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:n,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}}import{contrastRatio as pm,hexToRgb as Fe,parseHexColor as G,readableInk as ha,relativeLuminance as Ge}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as sr,pictureShadowColor as ir}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as rr}from"efficient-easel/screen/lib/content/length-units";import{viewKeyAt as ra}from"efficient-easel/screen/lib/content/view-tiers";var D=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{VIEW_ABOVE as Be,isLengthUnit as yt,lengthOf as er,rowGrid as tr}from"efficient-easel/screen/lib/content/length-units";var or=(()=>{let e=Object.keys(Be),t=e.filter(o=>Be[o]===null);for(let o=e.find(a=>Be[a]===t[0]);o&&!t.includes(o);o=e.find(a=>Be[a]===t[t.length-1]))t.push(o);return t})();function Et(e,t){let o=er(e,St(t));return typeof o=="number"?`${o}px`:o}function St(e,t="px"){return yt(e)?e:t}function rm(e,t,o){return t.unitKey?St(e[ra(t.unitKey,o)],t.base??"px"):t.base??"px"}function lm(e,t=or){return e.unitKey?t.map(o=>ra(e.unitKey,o)):[]}function ar(e,t,o){let a=tr({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function Tt(e,t,o,a){let n=D(e);if(!yt(t)||t==="px"||n===void 0)return null;let s=ar(o,t,a),i=Math.min(s.max,Math.max(s.min,n));return Math.round(i*100)/100}function cm(e,t,o,a){let n=Tt(e,t,o,a);return n===null?null:Et(n,t)}var nr={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 dm(e){let t=e;return Object.fromEntries(Object.entries(nr).map(([o,a])=>[o,St(t[a])]))}function hm(e,t,o){let a=D(e);return yt(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as Vm}from"efficient-easel/screen/lib/document/shadow-values";var bm="storefront-theme",ym="sf:theme-mode",Em="sf:theme-switch",Sm="hide",Ct="light",Lt=!1,lr=7,cr=18;function dr(e){return e>=lr&&e<cr}function Tm(e){let{mode:t,override:o,switchShown:a,hour:n}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?dr(n)?"light":"dark":t==="light"?"light":"dark"}var te={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},hr=[{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"}],We={selected:0,themes:hr};function ua(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...We}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function _t(e,t,o){let a=Fe(e),n=Fe(t);if(a===null||n===null)return e;let s=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${s(a.r,n.r)}${s(a.g,n.g)}${s(a.b,n.b)}`}var ur={light:"#ffffff",dark:"#0a0a0a"},_m=["light","dark"];function vm(e,t){let o=ur[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:_t(e,a,.1),line:_t(e,a,.22),muted:_t(o,e,.35),brandInk:t}}function ae(e){let t=ua(e);return t.themes[t.selected]}function oe(e){return{text:e.text,accent:e.accent,background:e.background||te.background,surface:e.surface||te.surface,line:e.line||te.line,muted:e.muted||te.muted}}var mr=.4,pr="#f5f1e8",la="#0a0a0a";function fr(e){let t=ae(e).text,o=Ge(t);return o===null||o>=mr?t:null}var wr=4.5,gr=3,xm={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Om(e){return e>=wr?"good":e>=gr?"large-only":"hard"}var br=["#000000","#ffffff"];function Ye(e){return ha(e,br)}function ma(e,t){let o=t!==void 0&&Ge(t)!==null?t:pr;return ha(e,[la,o])===o&&o!==la}var yr=[.25,.4,.55];function km(e){let t=Fe(e);return t===null?[]:yr.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function Am(e){let t={"--theme-fg":ae(e).text},o=fr(e);return o!==null&&(t["--overlay-fg"]=o),t}var Er=82;function Nt(e){return`color-mix(in srgb, ${e} ${Er}%, #000)`}function Rm(e){let t=ae(e);return{"--theme-accent":t.accent,"--theme-accent-2":Nt(t.accent),"--theme-accent-ink":Ye(t.accent)}}function It(e){let t=e?.button;return t&&G(t)===t.toLowerCase()?t.toLowerCase():null}function Cm(e){let t=ae(e),o=It(t),a=pa(t);if(o===null&&a===null)return{};let n={};return o!==null&&(n["--theme-btn"]=o,n["--theme-btn-2"]=Nt(o)),n["--theme-btn-ink"]=a??Ye(o),n}function pa(e){let t=e?.buttonInk;return t&&G(t)===t.toLowerCase()?t.toLowerCase():null}function Sr(e,t){return pa(e)??Ye(It(e)??t)}function Lm(e){let t=ae(e);return{fill:It(t)??t.accent.toLowerCase(),ink:Sr(t,t.accent)}}function Nm(e){let t={};return ua(e).themes.forEach((o,a)=>{let n=oe(o);t[`--theme-preset-${a}-accent`]=n.accent,t[`--theme-preset-${a}-accent-2`]=Nt(n.accent),t[`--theme-preset-${a}-accent-ink`]=Ye(n.accent),t[`--theme-preset-${a}-bg`]=n.background,t[`--theme-preset-${a}-fg`]=n.text,t[`--theme-preset-${a}-surface`]=n.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${n.surface} 60%, ${n.line})`,t[`--theme-preset-${a}-line`]=n.line,t[`--theme-preset-${a}-muted`]=n.muted}),t}var vt=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},xt=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function ca([e,t,o]){let[a,n,s]=[vt(e),vt(t),vt(o)],i=Math.cbrt(.4122214708*a+.5363325363*n+.0514459929*s),r=Math.cbrt(.2119034982*a+.6806995451*n+.1073969566*s),l=Math.cbrt(.0883024619*a+.2817188376*n+.6299787005*s);return[.2104542553*i+.793617785*r-.0040720468*l,1.9779984951*i-2.428592205*r+.4505937099*l,.0259040371*i+.7827717662*r-.808675766*l]}function Tr([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,n=(e-.1055613458*t-.0638541728*o)**3,s=(e-.0894841775*t-1.291485548*o)**3;return[xt(4.0767416621*a-3.3077115913*n+.2309699292*s),xt(-1.2684380046*a+2.6097574011*n-.3413193965*s),xt(-.0041960863*a-.7034186147*n+1.707614701*s)]}var At=e=>{let t=Fe(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},fa=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],wa=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,ga=e=>fa(At(e.surface),At(e.line),.6);function Im(e){return wa(ga(oe(e)))}function _r(e){let t=oe(e);return wa(Tr(fa(ca(ga(t)),ca(At(t.text)),.92)))}function ba(e,t,o,a){let n=e[t];if(!n)return-1;let s=o(n);if(!s)return-1;let i=oe(n);return e.findIndex((r,l)=>{if(l===t)return!1;let d=oe(r);return G(d.background)!==s?!1:!a||G(d.text??"")===G(i.text??"")&&G(d.accent??"")===G(i.accent??"")})}function Pm(e,t){return ba(e,t,_r,!1)}function Hm(e,t){return ba(e,t,o=>G(o.surface??""),!0)}var vr=1;function xr(e,t){let o=(e??[]).flatMap((a,n)=>{let s=Ge(a.background??""),i=Ge(a.text??"");return s!==null&&i!==null&&s<i?[n]:[]});return o.find(a=>a!==t)??o[0]??vr}function Dm(e){return xr(e?.themes,e?.selected)}var Bm=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function Mm(e){let t=oe(ae(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!==te.surface||t.line!==te.line)&&(a["--theme-surface-2"]=o),a}var Or=["heading","body","label"];function Fm(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 ya=["headingLarge","headingMedium","headingSmall","accent","body","label"];var Pt={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},kr=8,Ar=200;function Rr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=kr&&t<=Ar?t:null}function Cr(e){let t={};for(let o of ya)t[o]=Rr(e?.[o]);return t}function Gm(e){let t=Cr(e),o={};for(let a of ya){let n=t[a];n!==null&&(o[`--size-${a}`]=`${n}px`)}return o}var Lr=["square","small","large"],Nr="small";function Wm(e){return Lr.includes(e??"")?e:Nr}var Ue=0,Ea=40,Ir={min:Ue,max:Ea,step:1},Ym={square:0,small:null,large:16},Rt={"--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 Ht(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(Ea,Math.max(Ue,Math.round(t))):null}function da(e,t){if(rr(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(Rt).map(([n,s])=>{let i=Math.round(a*s*1e4)/1e4;return[n,i===0?"0":Et(i,t)]}))}let o=Ht(e);return o===null?{}:Object.fromEntries(Object.entries(Rt).map(([a,n])=>{let s=o*n/16;return[a,s===0?"0":`${s}rem`]}))}function Um(e){return(Ht(e)??Ue)*Rt["--sf-button-radius"]}function $m(e,t){let o=Tt(e,t,"radius",Ir);return o!==null?da(o,t):da(Ht(e)??Ue)}var Pr=["none","soft","lifted"],Hr="soft",Sa="none",Dr=["tight","normal","roomy"],Br="normal",$e="normal",Mr=["none","lift","highlight"],Fr="lift",Gr="highlight";function Ta(e){return Pr.includes(e??"")?e:Hr}function Wr(e){return Dr.includes(e??"")?e:Br}function _a(e){return Mr.includes(e??"")?e:Fr}function jm(e){let t=Ta(e);return t===Sa?void 0:t}function Xm(e){let t=Wr(e);return t===$e?void 0:t}function zm(e){let t=_a(e);return t===Gr?void 0:t}function qm(e,t,o){let a=ir(t);return a===sr?{}:Ta(e)!==Sa||_a(o)==="lift"?{"--sf-shadow-color":a}:{}}var Yr=["normal","tight","compressed"],Ee="normal";function va(e){return Yr.includes(e??"")?e:Ee}function Zm(e){let t=va(e);return t===Ee?void 0:t}function Qm(e){switch(va(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var Dt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},Ot=100,kt=900,Ur=24,$r=200;function Me(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function xa(e){let t=Me(e?.weight,Ot,kt),o=e?.case==="sentence"?"sentence":"authored",a=s=>s==null?t:Me(s,Ot,kt),n=s=>s==="sentence"?"sentence":s==="authored"?"authored":o;return{case:o,weight:t,weightStrong:Me(e?.weightStrong,Ot,kt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:Me(e?.maxPx,Ur,$r),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:n(e?.case2),case3:n(e?.case3)}}function Jm(e){let t=xa(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 ep(e){return xa({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 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}],se=new Map(Se.map(e=>[e.key,e]));function op(e){return se.get(e)}var Bt=["heading","heading2","heading3","body","accent","label"];function ap(e){return typeof e=="string"&&Bt.includes(e)?e:null}var np={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},Kr=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],Vr=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,sp={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},jr={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function ip(e){let t=e?Vr.exec(e):null;return t?jr[t[1]]??null:Xr(e)}function Xr(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 Kr)if(t.includes(o))return a;return null}var V={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function zr(e){let t=o=>{let a=e?.[o];if(a&&se.has(a))return a;if(o==="heading2"||o==="heading3"){let n=e?.heading;return n&&se.has(n)?n:V.heading}return V[o]};return Object.fromEntries(Bt.map(o=>[o,t(o)]))}function qr(e,t){return se.get(e[t])??se.get(V[t])}function ne(e,t){return`var(${qr(e,t).cssVar})`}var rp=[...new Set(Bt.map(e=>se.get(V[e]).cssVar))],lp=[...new Set(Se.map(e=>e.cssVar))];function cp(e){let t=zr(e);return{"--font-role-heading":ne(t,"heading"),"--font-role-heading2":ne(t,"heading2"),"--font-role-heading3":ne(t,"heading3"),"--font-role-body":ne(t,"body"),"--font-role-accent":ne(t,"accent"),"--font-role-label":ne(t,"label"),fontFamily:"var(--font-role-body)"}}var ka={},Aa=Zr({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:Ct,setThemeMode:()=>{},themeSwitchShown:Lt,setThemeSwitchShown:()=>{},theme:We,themeRow:"none",setTheme:()=>{},fonts:V,setFonts:()=>{},sizes:Pt,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:$e,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:Ee,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:ka,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:Dt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function wp({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:n=!1,themeMode:s=Ct,onThemeModeChange:i,themeSwitchShown:r=Lt,onThemeSwitchShownChange:l,theme:d=We,themeRow:g="none",onThemeChange:w,fonts:P=V,onFontsChange:H,sizes:K=Pt,onSizesChange:He,cornerRadiusPx:ft=null,onCornerRadiusPxChange:De,cardShadow:wt=null,onCardShadowChange:Do,shadowColor:ii=null,onShadowColorChange:Bo,cardGap:ri=$e,onCardGapChange:Mo,hoverEffect:li=null,onHoverEffectChange:Fo,headingCompression:ci=Ee,onHeadingCompressionChange:Go,siteWidth:di=null,onSiteWidthChange:Wo,siteGutter:hi=null,siteGutterPhone:ui=null,blockGap:mi=null,blockGapPhone:pi=null,siteLengthUnits:fi=ka,onSiteLengthUnitsChange:Yo,onSiteGutterChange:Uo,onSiteGutterPhoneChange:$o,onBlockGapChange:Ko,onBlockGapPhoneChange:Vo,headingTypography:wi=Dt,onHeadingTypographyChange:jo,textStyles:gi=null,onTextStylesChange:Xo,wordStyles:bi=null,heroBackgroundFollowsWidth:yi=null,onHeroBackgroundFollowsWidthChange:zo,sectionBackgroundWidth:Ei=null,onSectionBackgroundWidthChange:qo,sectionContentWidth:Si=null,onSectionContentWidthChange:Zo,photographyGrayscale:Ti=null,onPhotographyGrayscaleChange:Qo,shareButtonOnPosts:_i=null,onShareButtonOnPostsChange:Jo,themeFromDocument:vi=!1}){let[ye,ea]=el(null),xi=p(c=>ea(Zi=>Zi??c),[]),Oi=p(c=>i?.(c),[i]),ki=p(c=>l?.(c),[l]),Ai=p(c=>w?.(c),[w]),Ri=p(c=>H?.(c),[H]),Ci=p(c=>He?.(c),[He]),Li=p(c=>Wo?.(c),[Wo]),Ni=p(c=>Uo?.(c),[Uo]),Ii=p(c=>$o?.(c),[$o]),Pi=p(c=>Ko?.(c),[Ko]),Hi=p(c=>Vo?.(c),[Vo]),Di=p(c=>Yo?.(c),[Yo]),Bi=p(c=>zo?.(c),[zo]),Mi=p(c=>qo?.(c),[qo]),Fi=p(c=>Zo?.(c),[Zo]),Gi=p(c=>Qo?.(c),[Qo]),Wi=p(c=>Jo?.(c),[Jo]),Yi=p(c=>De?.(c),[De]),Ui=p(c=>Do?.(c),[Do]),$i=p(c=>Bo?.(c),[Bo]),Ki=p(c=>Mo?.(c),[Mo]),Vi=p(c=>Fo?.(c),[Fo]),ji=p(c=>Go?.(c),[Go]),Xi=p(c=>jo?.(c),[jo]),zi=p(c=>Xo?.(c),[Xo]),ta=ye?.logoUrl,oa=ye?.logoReversed,aa=ye?.logoInkIsDark,na=ye!==null,qi=Jr(()=>({logo:na?{logoUrl:ta,logoReversed:oa,logoInkIsDark:aa}:null,placeholder:o||n,wordmark:o?a:t}),[na,ta,oa,aa,o,n,a,t]);return Oa(bt.Provider,{value:qi,children:Oa(Aa.Provider,{value:{settings:ye,setSettings:ea,primeSettings:xi,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:n,themeMode:s,setThemeMode:Oi,themeSwitchShown:r,setThemeSwitchShown:ki,theme:d,themeRow:g,setTheme:Ai,fonts:P,setFonts:Ri,sizes:K,setSizes:Ci,cornerRadiusPx:ft,setCornerRadiusPx:Yi,cardShadow:wt,setCardShadow:Ui,shadowColor:ii,setShadowColor:$i,cardGap:ri,setCardGap:Ki,hoverEffect:li,setHoverEffect:Vi,headingCompression:ci,setHeadingCompression:ji,siteWidth:di,setSiteWidth:Li,siteGutter:hi,siteGutterPhone:ui,blockGap:mi,blockGapPhone:pi,siteLengthUnits:fi,setSiteLengthUnits:Di,setSiteGutter:Ni,setSiteGutterPhone:Ii,setBlockGap:Pi,setBlockGapPhone:Hi,headingTypography:wi,setHeadingTypography:Xi,textStyles:gi,setTextStyles:zi,wordStyles:bi,heroBackgroundFollowsWidth:yi,setHeroBackgroundFollowsWidth:Bi,sectionBackgroundWidth:Ei,setSectionBackgroundWidth:Mi,sectionContentWidth:Si,setSectionContentWidth:Fi,photographyGrayscale:Ti,setPhotographyGrayscale:Gi,shareButtonOnPosts:_i,setShareButtonOnPosts:Wi,themeFromDocument:vi},children:e})})}var tl=()=>Qr(Aa);function gp(e,t,o){return e?t===o?"read":"loading":"none"}function bp(e,t){return{value:e,readFor:t}}function yp(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function Ep(){let{sectionContentWidth:e,themeFromDocument:t}=tl();return t?null:e}var B=e=>typeof e=="string"&&e?e:void 0;function Te(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function ie(e,t){return Object.hasOwn(e,t)}var xp=["general","commerce","service"],re=[{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 Op(){return Object.fromEntries(re.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var ol="2027-02-05",al="2027-02-14",Ra={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
-
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
-
5
- WHAT A MERCHANT LOSES: typed tabs with typed counts (the Menu draws the blog's categories, or a Console menu); the Archive and RSS links at the bar's right end (a Box beside the Menu holds Buttons, if wanted); the first tab marked when no page matches (the Menu marks the page's own entry); the blur behind the bar.
6
-
7
- 0 Category Bars are stored on the US sites (34 pages, draft and published; read only, 2026-11-09). Old sites stay as they are (owner, 2026-11-06).
8
-
9
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding a Category Bar still renders through it and can still be edited; no document is rewritten. Delete the component when CategoryBar is on SECTION_TO_BOX_ON and the stored count on the US sites is 0.`},Masthead:{label:"Issue Header",note:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
10
-
11
- WHAT REPLACES IT: Page Header, a Box of Text blocks: a Header Box (the eyebrow, the title, a Details Box of one Text per line) over a Deck Box. Every Issue Header field is plain words with no data source, so the merchant makes the issue shape from Text blocks in that Box: the issue lines are Details lines, the lead is the Deck, and the "In this issue" panel is a Box of Texts beside it. Its converter row (\`section-to-box-rows-pageheader\` \`masthead\`, OFF) stays for a stored page that moves later.
12
-
13
- WHAT A MERCHANT LOSES: a press that lays down the two-row issue shape with its "In this issue" panel; the merchant builds it from Boxes and Text blocks. No field is lost.
14
-
15
- 1 Issue Header is stored on the US sites (journal, draft and published; read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
16
-
17
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding an Issue Header still renders through it and can still be edited; no document is rewritten.`},Grid:{label:"Grid",note:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A \u2014 shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or Custom, and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` \u2014 256 documents): 2 Grid nodes, and they are ONE Grid counted twice \u2014 the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 \u2014 equal thirds \u2014 and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n\u26A0\uFE0F THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned \u2014 hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. \u26D4 So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says \u2014 Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS \u2014 the owner redoes live sections himself.\n\n\u26A0\uFE0F AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot \u2014 a Box included \u2014 refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` \xA73 pins it.'},CompatibleTyres:{label:"Compatible Tyres",note:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings \u2014 it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 \u2014 it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n\u26A0\uFE0F THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call \u2014 nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n \u2022 settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT \u2014 the map holds only TimelineTrack and Footprint, both AUTHORED lists\n \u2022 read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n \u2022 panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n \u2022 head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero \u2014 neither can style them \u2014 and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS \u2014 the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n\u26A0\uFE0F AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.'},Spacer:{label:"Spacer",note:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
18
-
19
- WHAT REPLACES IT: a Divider with Style set to None. It draws no line, only its space, and that space is the Divider's Padding row (top and bottom, each with its phone value): the Spacer's 24 / 48 / 96 / 160 px are None with Padding 12 + 12, 24 + 24, 48 + 48, 80 + 80. \`scripts/test-divider-holds-the-spacer.tsx\` \xA75 holds it.
20
-
21
- WHAT A MERCHANT LOSES on a NEW space: nothing the Spacer had. Four fixed sizes become any number on the 4px grid, top and bottom apart, and a phone value.
22
-
23
- NO CONVERTER ROW: 0 Spacer nodes on any page, draft or published, in any schema of the local production clone (read-only count, 2026-10-26), and none in the backend's seed files. This entry is its reason in the guard (\`scripts/test-section-to-box.tsx\` \xA75: a retired type is accounted for).
24
-
25
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Spacer anywhere still renders through it and can still be edited; no document is rewritten.`},KeyFeatures:{label:"Key Features",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds Cards and Key Features; Key Features' diamond cells are the card style "Label only". Retired by card [MERGE] One Text Block And Click Through Parts (2026-10-22).
26
-
27
- WHAT REPLACES IT: a Cards section with Card style set to Label only. Every cell is a copy of the Label only card template (Cards/card-seed \`labelOnlyCardSeed\`): a cell Box (its link from the row's \`href\`), a 9px Mark Box in the main colour turned 45 degrees, and the label Text; the eyebrow starts on the pill look when none is stored. A cell's words are the card's \`title\` (row "Feature label"), its link the card's \`href\` (row "Link"). The Key Features conversion lands on the same card (\`scripts/test-key-features-diamond.tsx\`).
28
-
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
-
31
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${ol}). 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
-
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
-
35
- WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints; a short row no longer keeps 4 columns; the count is one plain Text, its figure no longer in the text ink; a card with no count still draws the footer line.
36
-
37
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Recurring Columns still renders through it and can still be edited; no document is rewritten.`},DocMetaCards:{label:"Document Detail Cards",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).
38
-
39
- WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value and a Card body. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
40
-
41
- WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints, not the old 40 (16 on a phone).
42
-
43
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`},StatsParagraph:{label:"Stats with Text",note:`Lewis, 2026-10-10 (approved): one Stats holds Stats and Stats with Text. Its head (eyebrow, heading, body) and each number's Prefix, Unit, Superscript, Label, "Use accent color" and text go into Stats; Card style Table (the old Stats with Text) or List (the old Stats). 2026-10-27: no Number block, the cards are Box + Text. Retired when the two became one Stats (2026-11-06).
44
-
45
- WHAT REPLACES IT: a Stats press, a Box of real parts: three head Texts, then a Stats Box holding ONE Card list, Card style Table. Each number is a row of the Card list; its card is a figure Text (the prefix and number typed in it, the unit marked \`==_yr_==\`, which draws the section theme's Main colour; a whole number in that colour is \`==_8_==\`), a superscript Text beside it, a label Text and a body Text, each showing its row's field, and a row may link its own live number. The Stats Box's Card style row (Table / List) writes the Box's Gap and the card's own Border, Padding and Height.
46
-
47
- WHAT A MERCHANT LOSES: the numbers do not count up (the Text block's Count up numbers setting is its own change, held); the figure has no tabular numbers; a unit is not a lighter weight than its number; rows of four stack below 800px, not two columns from 1100px.
48
-
49
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Stats with Text still renders through it and can still be edited; no document is rewritten (owner 2026-11-06: old sites stay as they are).`},Testimonials:{label:"Testimonials",note:"Lewis, 2026-10-10 (section-merges.md group 6, approved): Testimonials goes into Reviews, whose Review content is Manual (typed quotes) or Reviews (the store's approved reviews), with a product choice in place of the old Design code. Retired by card [MERGE] Remaining Section Merges (2026-11-06), after Reviews took typed quotes and a card template (efficient-storefront-blocks #242) and the product choice (#359).\n\nWHAT REPLACES IT: Reviews with Review content set to Manual. Every Testimonials key has the same key there: `eyebrow`, `eyebrowLook`, `title`, `items[]` (`quote`, `name`, `role`), `columns` 1-3 and `headPlacement` (both split their head). A typed review also has a `title` and a `rating`, empty for a quote that has none.\n\nWHAT A MERCHANT LOSES on a NEW quote list: nothing this section had. Reviews is in the service set where this section was general; no host narrows the sets (2026-11-06).\n\nNO CONVERTER ROW HERE: its Box row is efficient-storefront-blocks' (`section-to-box-rows-reviews`, OFF). 0 Testimonials nodes on the US sites, draft or published (read only, 2026-11-06). Old sites stay as they are (owner, 2026-11-06).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Testimonials anywhere still renders through it and can still be edited; no document is rewritten."},SubscribeBlogs:{label:"Subscribe with Posts",note:"card 66396 \u2014 folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},RelatedProducts:{label:"Related Products",note:`Owner, 2026-11-06 (plan productgrid-card-template-2026-11-06, inovit row 19): a Product Grid with "Show the current product's related" on IS the related grid, so offering both asked a merchant to choose between two names for one section.
50
-
51
- WHAT REPLACES IT: Product Grid, bound to the current product. Both draw every card through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
52
-
53
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Related Products node is read as that grid by the host (\`relatedToGrid\`) and draws the same cards; no document is rewritten. Its footnote is the one value the grid has no home for.`},BundleOffer:{label:"Bundle Products",note:`Plan section-parts bundles grid source (2026-11-07): a Product Grid that shows "Bundles with this product" IS the bundle section, so offering both asked a merchant to choose between two names for one section.
54
-
55
- WHAT REPLACES IT: Product Grid, bound to the current product, Show set to its bundles. Both draw every kit through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
56
-
57
- THE TYPE KEY STAYS AND SO DOES THE DRAWING. A stored Bundle Products node is read as that grid by the host (\`bundleToGrid\`) and draws its kits; no document is rewritten.`},TyreFitment:{label:"Tyre Fitment Form",note:`Owner, 2026-10-10 (approved): the Tyre Fitment Form goes into the Fitment Form, whose answer follows the page. One vehicle section, not two.
58
-
59
- WHAT REPLACES IT: the Fitment Form, a Box of a head, the vehicle picker (\`FitmentPicker\`), its answer (\`StockFitment\`) and a Button. On a tyre product page the answer part draws one verdict per size against the picked car, the same \`TyreFitVerdicts\` drawing this section made; on every other page it draws the car's OEM fitment card (efficient-storefront-blocks 0.87.0). The old escape link is the Box's Button.
60
-
61
- WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a press seeds the Fitment Form's own head. The page decides the answer, so there is no mode row.
62
-
63
- NO CONVERTER ROW: 0 TyreFitment nodes on the US sites, draft or published (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
64
-
65
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`},EuTyreLabel:{label:"EU Tyre Label",note:`Owner, 2026-10-10 (approved): the EU Tyre Label becomes a Spec Table display chip. One place for a tyre's sheet, not two sections.
66
-
67
- WHAT REPLACES IT: the Spec Table's "EU tyre label" Display chip (efficient-storefront-blocks, default off), which draws this page's grades under the tyre sheet; and the EU Tyre Label block (\`EuTyreLabelBlock\`, efficient-storefront-blocks), the same grades as a block of their own. Both read the grades live through the one grades draw (\`EuTyreLabelGrades\`), as this section did. Default on for sites that sell to the EU or UK waits for a site market source (a later step).
68
-
69
- WHAT A MERCHANT LOSES: the label as a section of its own, with its fixed head ("EU tyre label.") and its section number (\`num\`, its only field). The grades, their source line and the live read are not lost.
70
-
71
- NO CONVERTER ROW: 0 EU Tyre Labels are stored on the US and AU sites (inovit_us and inovit_au, \`layout\` and \`published_layout\`; read only, 2026-11-10). Old sites stay as they are (owner, 2026-11-06).
72
-
73
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},Integrations:{label:"Integrations Grid",note:`Never listed: the Integrations Grid was registered but never offered (2026-11-14: a press of this type lays down a Box of real parts, SECTION_TO_BOX_PRESS, and its converter row \`section-to-box-rows-integrations\` moves a stored one).
74
-
75
- WHAT REPLACES IT: a Box. \`eyebrow\`, \`title\` and \`body\` are Text blocks; each of \`apps\` is a Logo block named by the app in a Logos wall, Logo style Chips (the shell's brand mark beside the name, efficient-shell/icons/brands), dealt round-robin into three scrolling rows; \`statValue\`, \`statLabel\` and \`note\` are Text blocks.
76
-
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
-
79
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until ${al}. 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
-
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
-
83
- WHAT A MERCHANT LOSES: nothing a row sets. The single Hero's own copy rows (eyebrow, title, level, alignment) were deleted on 2026-09-09; their words were already Box blocks.
84
-
85
- Old sites stay as they are; moving a stored page (lib/sections/hero-single-to-hero) is a separate write that needs the owner's word.
86
-
87
- THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Hero Single still renders through it and can still be edited; no document is rewritten.`},ContactLocations:{label:"Contact / Locations",note:`Owner, 2026-10-27/30: Contact / Locations is TWO sections, each with its own look, the city photo wall and the city cards with their own map. Its row (\`section-to-box-rows-locations\`) makes two Boxes, so the old row leaves the Add menu and each Box is a preset of its own (lib/sections/city-presets). A press of this type lays down that row (SECTION_TO_BOX_PRESS).
88
-
89
- WHAT REPLACES IT: City maps, a Box with one Box per region group (its head: key, name, "N locations"), and in it one City Box per city: Words (name, state and country, time zone, address, a Directions button, hours) and a Map block (LocationMap); then the OpenStreetMap credit. City pictures, the head (number, heading, tagline) over the photo wall, comes back to the menu when the wall is redone: the owner, 2026-11-02, hid the photo groups until then (\`CITY_PHOTO_WALL_HIDDEN\`).
90
-
91
- WHAT A MERCHANT LOSES until the wall is redone: the photo wall and the section head on a new insert (a Text section gives a heading). The look gaps of the Boxes are listed in the row.
92
-
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
-
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.'}},nl=Object.fromEntries(Object.entries(Ra).map(([e,t])=>[e,t.note])),kp=["Grid","Spacer","TyreFitment"],Ap=Array.from(new Set([...re.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(nl)])),sl=Object.fromEntries(Object.entries(Ra).map(([e,t])=>[e,t.label])),Rp={...sl,...Object.fromEntries(re.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},il={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",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"},Mt={...il,...Object.fromEntries(re.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function Cp(e){return Te(Mt,e)}function Ft(e){return Object.keys(Mt).filter(t=>Te(Mt,t)===e).sort()}var Lp=Ft("general"),Np=Ft("commerce"),Ip=Ft("service"),rl="Flex",Ke="Box",Pp=`${Ke}es`;function ll(e){return e==="section"?"Blank section":Ke}function Hp(e,t,o){return e===rl?ll(t):o}var j=["highlight","strong","quiet"],X={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},L={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},Mp=Object.fromEntries(j.map(e=>[L[e].kind,e])),Fp="data-sf-ws",cl=["accent","text","labels"],dl={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},hl=80,ul=120,ml=100,pl=900,fl=.5,wl=3,gl=-.1,bl=.5,yl=3,Gt={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},El={highlight:{...Gt},strong:{...Gt},quiet:{...Gt}};function Ca(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function La(e,t,o){if(typeof e!="number"||!Number.isFinite(e))return null;let a=10**yl;return Math.round(Math.min(Math.max(e,t),o)*a)/a}function Na(e){return typeof e=="boolean"?e:null}function Sl(e){let t=typeof e?.font=="string"&&Se.some(a=>a.key===e.font)?e.font:null,o=typeof e?.colour=="string"&&cl.includes(e.colour)?e.colour:null;return{font:t,size:Ca(e?.size,hl,ul),weight:Ca(e?.weight,ml,pl),bold:Na(e?.bold),italic:Na(e?.italic),lineGap:La(e?.lineGap,fl,wl),textGap:La(e?.textGap,gl,bl),colour:o}}function Ia(e){let t={};for(let o of j)t[o]=e&&o in e&&e[o]?Sl(e[o]):{...El[o]};return t}function Gp(e){let t=Ia(e),o={};for(let a of j){let n=t[a],s=`--sf-ws-${a}`;if(n.font){let i=Se.find(r=>r.key===n.font);i&&(o[`${s}-font`]=`var(${i.cssVar})`)}n.size!==null&&(o[`${s}-size`]=`${n.size/100}em`),n.weight!==null&&(o[`${s}-weight`]=String(n.weight)),n.bold!==null&&(o[`${s}-weight-bold`]=n.bold?"700":"400"),n.italic!==null&&(o[`${s}-style`]=n.italic?"italic":"normal"),n.lineGap!==null&&(o[`${s}-line`]=String(n.lineGap)),n.textGap!==null&&(o[`${s}-track`]=`${n.textGap}em`),n.colour!==null&&(o[`${s}-color`]=dl[n.colour])}return o}function Wp(e){let t=e?.word_styles??void 0,o={};for(let a of j)t&&a in t&&(o[a]=t[a]??null);return Ia(o)}import{applyMark as $p,markupTools as Kp,MARKUP_TOOLS as Vp,COPY_FIELD_TOOLS as jp,STOREFRONT_MARKUP as Xp,tokenizeInline as zp,stripInline as qp,isSafeLinkHref as Zp}from"efficient-shell/markup";import{applyMark as Tl,clearStyle as _l,markedAt as vl,markupTools as xl,MARKUP_TOOLS as Ol,parseMarkup as kl,RETIRED_MARKS as Al,STOREFRONT_MARKUP as Rl,tokenizeInline as Jp}from"efficient-shell/markup";var Cl=new Set(["strong"]),Pa=j.map(e=>({open:L[e].delimiter,close:L[e].delimiter,kind:L[e].kind,...Cl.has(e)?{wordStart:!0}:{}})),tf=[{style:L.highlight.kind,label:X.highlight,title:`${X.highlight} word style`},{style:L.strong.kind,label:X.strong,title:`${X.strong} word style`},{style:L.quiet.kind,label:X.quiet,title:`${X.quiet} word style`}],Ll=new Set(Pa.map(e=>e.open)),Wt=[...Rl.filter(e=>!Ll.has(e.open)),...Pa];function Nl(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Ha(e){return kl(typeof e=="string"?e:"",Wt)}var Il=Ol.map(e=>e.style).filter(e=>!Al.includes(e)).filter(e=>Wt.some(t=>t.kind===e));function of(){return xl(Il)}var Da=Object.fromEntries(j.map(e=>[L[e].kind,L[e].delimiter]));function af(e,t,o,a){let n=Da[a];if(!n)return Tl(e,t,o,a);let s=e.slice(t,o),i=e.slice(Math.max(0,t-n.length),t),r=e.slice(o,o+n.length);if(i===n&&r===n)return{text:e.slice(0,t-n.length)+s+e.slice(o+n.length),selectionStart:t-n.length,selectionEnd:t-n.length+s.length};let l=s||"styled text";return{text:e.slice(0,t)+n+l+n+e.slice(o),selectionStart:t+n.length,selectionEnd:t+n.length+l.length}}function nf(e,t,o,a){let n=Da[a];return n?t>=n.length&&e.slice(t-n.length,t)===n&&e.slice(o,o+n.length)===n:vl(e,t,o,a)}function Ba(e){return e.replace(/==(.+?)==/g,(t,o)=>o.startsWith("_")&&o.endsWith("_")?t:`==_${o}_==`)}function sf(e){return Ha(e).map(t=>Nl(t)+Ma(t.children)).join(`
96
- `)}function rf(e,t,o){return _l(e,t,o,Wt)}function Ma(e){return e.map(t=>t.kind==="text"?t.text:Ma(t.children)).join("")}function lf(e){let t=o=>o.some(a=>a.kind==="link"||"children"in a&&t(a.children));return Ha(e).some(o=>t(o.children))}import{isNodeList as Pl}from"efficient-easel/data";var Ve=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],Ga="bottom-left",le=4,Hl=le+1,Fa=40,Dl=30,Bl=100,Ml=60,hf=100;var Yt={"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 Fl(e){let t=Ve.indexOf(_e(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function Gl(e){return 1+Fl(e).band*(Hl+1)}function uf(e){return Gl(e)+1}function _e(e){return Ve.includes(e)?e:Ga}function mf(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-Fa,Math.min(Fa,Math.round(t)))}function pf(e,t=Ml){let o=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(Dl,Math.min(Bl,Math.round(o)))}function Ut(e,t){let o=_e(t);return e.filter(a=>_e(a?.props?.placement)===o).length}function Wa(e){return`${Yt[_e(e)]} already holds ${le} boxes. Move one somewhere else first.`}function ff(e,t){let o=e.filter(a=>a?.props?.id!==t);return Ve.map(a=>{let n=Ut(o,a)>=le,s=Yt[a];return n?{value:a,label:s,disabled:!0,title:Wa(a)}:{value:a,label:s}})}function Wl(e,t){let o=t===void 0?Ga:_e(t?.props?.placement);return Ut(e,o)>=le?Wa(o):null}var Ya="HeroGroup";function Yl(e){return Ve.map(t=>{let o=Ut(e,t);return{anchor:t,total:o,hidden:o-le}}).filter(t=>t.hidden>0)}function wf(e){let t=Yl(e);return t.length===0?null:t.map(({anchor:o,total:a,hidden:n})=>{let s=Yt[o],i=n===1?"1 is not shown":`${n} are not shown`;return`${s} holds ${a} boxes. The published page draws the first ${le}, so ${i}. ${n===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function gf(e,t){let o=t;if(o?.type!==Ya)return null;let a=o.props?.id===void 0?"":String(o.props.id);return a?Wl(Ul(e,a),o):null}function Ul(e,t){let o=Ua(e,t);return o&&o.ownerType===Kl?o.siblings:[]}function bf(e,t){let o=Ua(e,t);return o?o.ancestorTypes.filter(a=>a===Ya).length:$l}var $l=1,Kl="HeroSlide";function Ua(e,t){let o=(a,n,s)=>{if(n>12||!a||typeof a!="object")return null;if(Pl(a)){if(a.some(i=>i?.props?.id===t))return{siblings:a,ownerType:s.at(-1)??null,ancestorTypes:s};for(let i of a){let r=i.type,l=o(i,n+1,[...s,String(r)]);if(l)return l}return null}for(let i of Object.values(a)){let r=o(i,n+1,s);if(r)return r}return null};return o(e,0,[])}import{forwardRef as Vl}from"react";import{jsx as zl}from"react/jsx-runtime";function jl(e){if(typeof e=="string")return e;let t=e.query?`?${new URLSearchParams(e.query).toString()}`:"",o=e.hash?e.hash.startsWith("#")?e.hash:`#${e.hash}`:"";return`${e.pathname??""}${t}${o}`}var Xl=Vl(function({href:t,prefetch:o,replace:a,scroll:n,shallow:s,legacyBehavior:i,passHref:r,locale:l,onClick:d,children:g,...w},P){let H=K=>{d?.(K),!(K.defaultPrevented||w.target==="_blank")&&K.preventDefault()};return zl("a",{ref:P,href:jl(t),onClick:H,...w,children:g})}),Sf=Xl;var ql="Website";function vf(e){return e?.trim()||ql}var $a=["instagram","facebook","tiktok","youtube","x","linkedin","pinterest","whatsapp","telegram","line","wechat"],Zl={instagram:"Instagram",facebook:"Facebook",tiktok:"TikTok",youtube:"YouTube",x:"X",linkedin:"LinkedIn",pinterest:"Pinterest",whatsapp:"WhatsApp",telegram:"Telegram",line:"LINE",wechat:"WeChat"},Ql={};function Of(e){if(!e||typeof e!="object")return Ql;let t={};for(let o of $a){let a=e[o];if(typeof a!="string")continue;let n=a.trim();!n||!/^https?:\/\//i.test(n)||(t[o]=n)}return t}function kf(e){return $a.flatMap(t=>{let o=e[t];return o?[{platform:t,href:o,label:Zl[t]}]:[]})}var Af=e=>`${e}_url`;function ce(e,t){let o=globalThis,a=Symbol.for(e),n=o[a];return n===void 0&&(n=t(),o[a]=n),n}function ve(){return ce("efficient.slot-field-blocks",()=>new Set)}var Jl="dataSource",Df="dataSourceOptions",ec="dataRows",Bf="countKey",Mf="counts",Ff="location-payment-methods",Gf="shop-payment-methods",Wf="delivery-options",Yf="blog-categories",$t="dealers";function tc(e){return typeof e.open=="function"}var ja=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Uf(e){return typeof e=="string"&&ja.test(e)}var Ka=new Set([$t]);function xe(){return ce("efficient.block-sources",()=>({sources:new Map,revision:0}))}var oc=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),ac=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),Va=e=>typeof e=="string"&&e.trim()!=="";function nc(e){if(!e||!Va(e.label))return null;if(tc(e))return{label:e.label.trim(),open:e.open};let t=e.href;return Va(t)?{label:e.label.trim(),href:t.trim()}:null}function sc(e){if(typeof e.key!="string"||!ja.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=>ve().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=nc(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(a=>za(a)).filter(a=>a!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(oc)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(ac).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 $f(e){let t=e.map(sc),o=xe();for(let a of t)o.sources.set(a.key,a);t.length&&(o.revision+=1)}function Xa(e){let t=[...xe().sources.values()],o=[...t.filter(a=>!Ka.has(a.key)),...t.filter(a=>Ka.has(a.key))];return e===void 0?o:o.filter(a=>a.blocks.includes(e))}function je(e){return xe().sources.get(e)??null}function Kf(e){return xe().sources.get(e)?.choices??[]}function Vf(){return xe().revision}function x(e){let t=e?.[Jl];return typeof t=="string"?t.trim():""}function za(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[o,a]of Object.entries(e)){let n=B(a);n&&(t[o]=n)}return Object.keys(t).length?t:null}function ic(e){let t=e?.[ec];return Array.isArray(t)?t.map(za).filter(o=>o!==null):null}function jf(e,t,o=[]){let a=ic(e);if(a!==null&&(a.length||!t))return{rows:a,sample:!1};if(!t)return{rows:[],sample:!1};let n=je(x(e))?.sample;return{rows:n?.length?n:o,sample:!0}}var m="content",f="Flex",rc="Text & media",lc="Layout & structure",Za=[{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=[...Za,{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=(re.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:lc})),qa=[...cc,...dc],Kt=[...Za,{type:"HeroGroup",label:Ke}],Zf=Kt.map(e=>e.type),hc=1,uc=Kt.filter(e=>e.type!=="HeroGroup");function mc(e){return e<hc?Kt:uc}var pc={Flex:{slot:m,choices:()=>qa},Grid:{slot:m,choices:()=>qa},HeroGroup:{slot:m,choices:mc}};function Qf(e,t=0){let o=Te(pc,e);return o?{slot:o.slot,choices:o.choices(t)}:null}import{AUTO_RULES as yc,FOLLOW_RULES as Ec,isAuto as Sc,resolveViewValue as Tc}from"efficient-easel/screen/lib/content/view-tiers";import{VIEW_DESKTOP_MIN as fc,VIEW_TABLET_MIN as wc}from"efficient-easel/screen/lib/content/view-tiers";var Ja="v1",en=800,Qa={"view-tablet":wc,"view-desktop":fc,"view-wide":en};function tw(e){let t=e.startsWith("max-"),o=t?e.slice(4):e;if(o in Qa)return{px:Qa[o],max:t};let a=/^(max|min)-\[(\d+)px\]$/.exec(e);return a?{px:Number(a[2]),max:a[1]==="max"}:void 0}var ow=`(min-width: ${en}px)`,gc="data-sf-line",bc="edge",aw={[gc]:bc},Oe=(e,t)=>e==="edge"||e!=="section"&&t;function _c(){return Ja==="v2"?yc:Ec}function Xe(e,t,o,a,n=_c()){let s=Tc(e,t,o,a,n),i={},r=(l,d)=>!Sc(l)||d!=null&&d!==t;return r(o,s.tablet)&&(i.tablet=s.tablet),r(a,s.phone)&&(i.phone=s.phone),i}var cw={left:"start",center:"center",right:"end"},dw={left:"justify-start",center:"justify-center",right:"justify-end"},hw={left:"",center:"mx-auto",right:"ml-auto"},tn={left:"",center:"text-center",right:"text-right"},vc={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"}},xc={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"}},Oc={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"}},kc={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 ze(e){return e==="left"||e==="center"||e==="right"?e:void 0}function uw(e){return e==="start"?"left":e==="end"?"right":ze(e)}function Ac(e,t,o){let a=ze(e)??"left",n=Xe("same",a,ze(t),ze(o)),s={};return n.tablet&&n.tablet!==a&&(s.tablet=n.tablet),n.phone&&n.phone!==a&&(s.phone=n.phone),s}function mw(e,t,o,a,{atSectionLine:n=!1}={}){let s=Ac(t,o,a),i=n?Oc:vc,r=n?kc:xc;return[s.tablet?i[e][s.tablet]:"",s.phone?r[e][s.phone]:""].filter(Boolean).join(" ")}var Vt="rowImageField",Rc="boxOutsideCopy",Cc={all:[{field:Vt,set:!0},{not:{context:Rc,is:!0}}]},fw={any:[{field:"bgImage",set:!0},Cc]},on="boxInCopy",Lc={any:[{not:{field:Vt,set:!0}},{not:{context:on,is:!0}}]},ww={all:[{not:{field:"bgImage",set:!0}},Lc]},an={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${Vt}`,set:!0}},{not:{context:on,is:!0}}]}]};function ke(e,t,o){return e.some(a=>(typeof a=="object"?a.value:a)===o)?o:t}var Nc="small",Ic="dot",Pc=[{label:"Small",value:"small"},{label:"Display",value:"display"}],jt=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],nn={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},Hc={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)]"},Dc={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 Ew(e){return ke(Pc,Nc,e)}function sn(e){return ke(jt,Ic,e)}function Sw(e){return Hc[e]}function rn(e,t){return Dc[e][t]}var vw=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function ln(e){return jt.some(t=>t.value===e)?sn(e):void 0}var Bc="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 z(e,t){return e==="row"&&ln(t)!==void 0}function xw(e,t){return z(e,t)?Bc:""}var Mc="[&>*: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 Ow(e,t){return z(e,t)?Mc:""}function kw(e,t){if(!z(e,t))return{};let o=ln(t),a=/^text-\[([\d.]+)em\]$/.exec(rn("small",o))?.[1],n=nn[o];return{"--sf-sep-mark":n===""?"none":JSON.stringify(n),...a?{"--sf-sep-k":a}:{}}}var un={sectionPaddingTop:0,sectionPaddingBottom:0},Ae={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},he={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},Pw=[...new Set([...Object.keys(he),...Object.keys(tn)])];function Hw(e,t){let o=typeof e=="string"&&ie(Ae,e)?Ae[e]:"",a=typeof t=="string"&&ie(he,t)?he[t]:"";return[o,a].filter(Boolean).join(" ")}function Fc(e){return e===!0||e==="wrap"?"flex-wrap":""}var Gc={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!"},Wc={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},Yc={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!"},Uc={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},$c={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function Q(e,t){return typeof t=="string"&&ie(e,t)?t:void 0}function zt(e,t,o){let a=Xe("same",e,t,o),n={};return a.tablet!==void 0&&a.tablet!==e&&(n.tablet=a.tablet),a.phone!==void 0&&a.phone!==e&&(n.phone=a.phone),n}function qt(e,t,o){return[e.tablet?t[e.tablet]:"",e.phone?o[e.phone]:""].filter(Boolean).join(" ")}function Kc(e,t,o){return zt(Q(Ae,e)??"start",Q(Ae,t),Q(Ae,o))}function Dw(e,t,o){return qt(Kc(e,t,o),Gc,Wc)}function Bw(e,t,o){let a=Q(he,e)??"stretch";if(a==="stretch")return"";let n=zt(a,Q(he,t),Q(he,o));return qt(n,Yc,Uc)}function Xt(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function Mw(e,t){let o=Fc(e)===""?"nowrap":"wrap",a=Xt(t);return a&&a!==o?$c[a]:""}var Fw="Block widths",mn=[{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]}],Vc="data-sf-box-items",Gw=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${Vc}\\][^\\s"'\`]*`,"g");var Ww=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function Yw(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in qe?"custom":"content"}var pn=4,cn=10;function jc(e,t){if(!Number.isInteger(t)||t<2||t>pn||e.length!==t-1||!e.every(n=>typeof n=="number"&&Number.isFinite(n)))return;let o=[],a=0;return e.forEach((n,s)=>{let i=100-a-cn*(t-1-s),r=Math.min(i,Math.max(cn,Math.round(n)));o.push(r),a+=r}),o}function dn(e,t,o){if(!Array.isArray(t))return;let a=jc(t,o),n=a?[...a,100-a.reduce((i,r)=>i+r,0)]:[],s={};for(let i=0;i<pn;i+=1)s[`--${e}-${i+1}`]=n[i]??1;return s}function Uw(e,t,o){let a=dn("sf-share",e,o),n=dn("sf-share-tablet",t,o);return a||n?{...a,...n}:void 0}function Xc(e,t){let o=Array.from({length:t},()=>1),a=mn.find(i=>i.value===e);if(!a?.weights||t<1)return o;let[n,s]=a.weights;return n>1&&(o[0]=n),s>1&&(o[t-1]=s),o}function $w(e,t){if(typeof e!="string"||!(e in qe)||e==="equal")return e;let o=Xc(e,t),a=o.reduce((n,s)=>n+s,0);return o.slice(0,-1).map(n=>Math.round(n/a*100))}var q="[&>*]: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",qe={equal:q,bigLeft:`${q} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${q} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${q} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${q} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${q} [&>*: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]`},zc=`${q} [&>*: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 qc(e){return Array.isArray(e)?zc:typeof e=="string"?qe[e]??"":""}var fn={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}},an,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(qe)}]}]}]},wn="view-wide:max-view-desktop:flex-row!",Z=`${wn} [&>*: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!`,gn={content:`${wn} [&>*: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:Z,bigLeft:`${Z} [&>*: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:`${Z} [&>*: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:`${Z} [&>*: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:`${Z} [&>*: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:`${Z} [&>*: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]!`},Zc=`${Z} [&>*: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 Qc(e){return Array.isArray(e)||typeof e=="string"&&e in gn?e:null}function Kw(e){if(e.direction!=="row"||z(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||bn(e.columns)!==""||yn(e.columnsTablet)!=="")return"";let t=Qc(e.shareTablet);return t===null?"":typeof t=="string"?gn[t]:Zc}var Jc="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function Vw(e){return qc(e)===""?Jc:""}var jw="Columns",Xw=1,zw=3,Zt={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)]"},qw=mn.filter(e=>e.value==="content"||e.value==="equal"),Zw="equal",Qw=1,Jw=6,de="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!",ed={1:`${de} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${de} [&>*]: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:`${de} [&>*]: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:`${de} [&>*]: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:`${de} [&>*]: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:`${de} [&>*]: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 bn(e){return typeof e=="number"?ed[e]??"":""}var td={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 yn(e){return typeof e=="number"?td[e]??"":""}function eg(e){return e.direction!=="row"||z(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":yn(e.columnsTablet)}function tg(e){return e.direction!=="row"||z(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":bn(e.columns)}var En={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"},Sn={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},og=Object.keys(En).map(Number),ag=Object.keys(Sn).map(Number);function ng(e,t,o=!1){let a=typeof e=="number"?En[e]??"":"",n=Sn[Number(t)]??"";return!a&&!n?"":[a,n,o?"gap-y-0!":""].filter(Boolean).join(" ")}var od="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]",ad={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)]"},nd="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 sd(e,t){return(Xt(e)??Xt(t)??"wrap")==="nowrap"}function sg(e,t,o,a){let n=Zt[Number(e)];if(!n)return"max-view-wide:flex-col";let s=sd(o,a);return Tn(e,t)?s?nd:od:s?ad[Number(e)]:n}function ig(e,t){return Number(e)in Zt&&!Tn(e,t)}function Tn(e,t){return Number(e)in Zt&&t==="content"}var rg="Block spacing",lg=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],id="sf-box-gap-only";function cg(e){return e==="gap"?id:""}var hn={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},rd={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function dg(e,t,o){let a=s=>Q(hn,s),n=zt(e==="gap"?"gap":"each",a(t),a(o));return qt(n,hn,rd)}var _n={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:fg,tag:wg,...ld}=_n.defaultProps,E=ld,_={...E,tone:"dim"},cd={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},b={...cd,direction:"column",...un},M=(e,t=e,o=e,a=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:o,sectionPaddingRightPhone:a,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:a}),dd=e=>({fillColor:e}),vn=(e,t,o={})=>({...b,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?dd(t):{},...o}),S=(e,t,o,a)=>({sizeToken:{step:e,px:t,...a?{stepPhone:a}:{},...o?{pxPhone:o}:{}}}),gg=e=>({textStyle:"body-1",...S("body",e),lineHeight:1.625}),xn={case:"upper"},Qt={textStyle:"body-5",...xn},Jt=(e,t)=>({...S("label",e,t),letterSpacing:.2,...xn}),eo=(e,t)=>({...Qt,...Jt(e,t)});function T(e,t,o=""){return e.map((a,n)=>{let s=o?`${o}.${n}`:String(n),i={...a.props??{}};for(let[r,l]of Object.entries(a.slots??{}))i[r]=T(l,t,s);return{type:a.type,props:{...i,id:t(a.type,s)}}})}function W(e,t){return typeof e.id=="string"&&e.id.trim()?e.id:t}var ue=(e,t)=>(o,a)=>a==="0"?`${e}~${t}`:`${e}~${t}.${a.slice(2)}`;function Y(e,t,o,a){return e[t]!==void 0?e:{...e,[t]:a(W(e,o))}}var y="rowField",O="rowLinkField",h="template",A="CardList",Re="hideWhenRowEmpty";var me={min:0,max:360,step:1},On="angle";function Sg(e){let t=D(e);if(t===void 0)return null;let o=Math.min(me.max,Math.max(me.min,t));return o===me.min||o===me.max?null:{rotate:`${o}deg`}}import{MEDIA_ZONES as hd,MEDIA_ZONE_LABELS as ud}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as md,hoverKindsOf as Qe,motionSeconds as Ze}from"efficient-shell/format";var R="hover",kg="_gHover",pd={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},J="highlight",fd="Highlight",Ag=["none",J],Rg={none:pd.none,[J]:fd};function wd(e){return e[R]===J?J:"none"}var Cg="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)]",Lg="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 Ng(e,t){return wd(e)!==J?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var gd=Qe(["none","lift"]);function Ig(e){let t=e[R];return gd.includes(t)?t:"none"}var Rn=Qe(["none","nextImage","rotate"]),k={kind:R,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},no="spinOnHover",kn=me,Cn={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},Pg=Object.keys(Cn);function bd(e){return Cn[e]??"none"}var yd=md.rotateFallbackDeg,Ed=e=>e==="rendering"?"renderings":e,Sd=e=>e==="renderings"?"rendering":e,Ln=Object.freeze(hd.filter(e=>e!=="videos").map(Ed)),Hg=Object.freeze(Object.fromEntries(Ln.map(e=>[e,ud[Sd(e)]]))),Td=["finish","first"],Dg={finish:"Same finish",first:"First group"},_d=["card","picture"],Bg={card:"Whole card",picture:"Picture"},to={kind:"photos",group:"finish",cover:"card"},oo=(e,t,o)=>e.includes(t)?t:o;function Nn(e){return{kind:oo(Ln,e[k.mediaKind],to.kind),group:oo(Td,e[k.mediaGroup],to.group),cover:oo(_d,e[k.cover],to.cover)}}function Mg(){return{field:k.kind,is:"nextImage"}}function vd(e,t){let o=e[k.kind];if(Rn.includes(o))return o;let a=e[no];return typeof a=="boolean"?a?"rotate":"none":t}function xd(e){let t=D(e);return t===void 0?yd:Math.min(kn.max,Math.max(kn.min,t))}function Fg(e,t){let o=bd(t),a=vd(e,o);return{kind:a,angle:a==="rotate"?xd(e[k.angle]):null,duration:Ze("hover","duration",a==="rotate"?e[k.duration]:void 0),delay:Ze("hover","delay",a==="rotate"?e[k.delay]:void 0),...a==="nextImage"?{media:Nn(e)}:{}}}function Gg(e){let t={field:k.kind,in:[...Rn]};return{any:[{field:k.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:no,is:!1}}:{field:no,is:!0}]}]}}var In=Qe(["none","mono"]),Od=Qe(["none","nextImage","mono"]),Pn={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Wg=Object.keys(Pn);function kd(e){return Pn[e]??"none"}var Hn={zoom:"hoverZoom",darken:"hoverDarken"},ao={min:100,max:150,step:1,unit:"%"};function Ad(e){let t=D(e[Hn.zoom]);if(t===void 0)return null;let o=Math.min(ao.max,Math.max(ao.min,t));return o===ao.min?null:String(o/100)}function Rd(e){let t=D(e[Hn.darken]);return t!==void 0&&t>0?t:null}var Yg="hoverShow",Ug="cardHover",$g="always",Cd=["ImageBlock","Flex"];function Ld(e,t,o=In){let a=e[R];return o.includes(a)?a:t}function Kg(e,t=""){let o=Cd.includes(t)?Od:In,a=Ld(e,kd(t),o),n=a==="mono";return{kind:a,duration:Ze("hover","duration",n?e[k.duration]:void 0),delay:Ze("hover","delay",n?e[k.delay]:void 0),...a==="nextImage"?{media:Nn(e),...t==="Flex"?An(e):{}}:An(e)}}function An(e){let t=Ad(e),o=Rd(e);return{...t?{zoom:t}:{},...o?{darken:o}:{}}}function Vg(){return{not:{field:R,is:"nextImage"}}}function jg(e){return e==="none"?{field:R,in:["mono","nextImage"]}:{not:{field:R,is:"none"}}}function Xg(e){return e==="none"?{field:R,is:"mono"}:{not:{field:R,in:["none","nextImage"]}}}var Zg=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),Dn=()=>({_partStyles:{text:{...Qt,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var pe="Cards",Nd={...b,gap:12,gapPhone:12,...M(32,32,28,28)},Id={textStyle:"heading-3",...S("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},Ce={textStyle:"body-1",...S("body",15),lineHeight:1.6},u=(e,t,o,a=!1)=>({type:"Text",props:{...t,text:"",[y]:e,_partStyles:{text:{...a?Dn()._partStyles?.text??{}:{},...o}}}}),fe={title:"title",body:"body"},Je={title:"name",body:"note"},Pd=(e=fe)=>({type:f,props:{...Nd,name:"Card"},slots:{[m]:[u(e.title,{...E,tag:"p",widthFit:"fill"},Id),u(e.body,{..._,tag:"p",widthFit:"fill"},Ce)]}}),Mn=(e,t)=>T([Pd(t)],e),Bn={label:fe.title,href:"href"},Hd={textStyle:"body-1",fontRole:"heading",color:"text",...S("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},Dd=vn(9,"main",{[On]:45}),Bd=(e=!1)=>({type:f,props:{...b,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...M(32,28),[O]:Bn.href,...e?{[R]:J}:{}},slots:{[m]:[{type:f,props:{...Dd,name:"Mark"}},u(Bn.label,{...E,tag:"p",widthFit:"fill"},Hd)]}}),Fn=e=>ue(e,"card"),Gn=(e,t=!1)=>T([Bd(t)],e);var so="ArticleBody",Md={textStyle:"heading-3",...S("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},Fd={...Ce,align:"center"},Wn=640,Gd=()=>[u("heading",{...E,tag:"h2",align:"center",maxWidth:Wn},Md),u("paragraph",{..._,tag:"p",align:"center",maxWidth:Wn},Fd)],Wd=e=>T(Gd(),e);function Yd(e){return Wd((t,o)=>`${e}~${o==="0"?"heading":"paragraph"}`)}function Yn(e){return Y(e,h,so,Yd)}import{addShowWhenFacts as Ud}from"efficient-shell/format";import{showWhenOf as ub,shownForOption as mb,truthy as pb,withRowRules as fb,withRowsShownWhen as Un,withShowWhen as wb}from"efficient-shell/format";var gb=Ud;function bb(e,t,o){return e.slice(0,-1).reduceRight((a,n)=>({any:[{all:[t(n),o(n)]},{all:[{not:t(n)},a]}]}),o(e[e.length-1]))}var $d="inline",Kd=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var Vd={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 vb(e){return ie(Vd,e)}function $n(e){return ke(Kd,$d,e)}var jd=new Set(["Flex"]);function xb(e){return!!e?.type&&jd.has(e.type)}var Kn={not:{field:"headPlacement",is:"own-box"}},Ob={not:Kn};function kb(e,t,o){return Un(e,o,Kn)}var Rb="data-sf-spec-region";function Cb(e){return e.writable===!0&&e.sized===!0}function Lb(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 Nb(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 Vn(e){return`@${e}`}function Ib(e,t){if(!t.startsWith("@"))return null;let o=t.slice(1);return o in e?o:null}function Pb(e,t){return t&&t in e?t:null}import{isNodeList as gh}from"efficient-easel/data";function Xn(e,t){if(e!==pe)return t;if(t[h]!==void 0)return jn(t);let o=W(t,pe),a=Fn(o);if(t.cardStyle==="label-only"){let s=Array.isArray(t.items)&&t.items.some(i=>B(i?.href)!==void 0);return jn({...t,[h]:Gn(a,s)})}let n=x(t)?Je:fe;return{...t,[h]:Mn(a,n)}}var Xd=e=>{let[t,o]=e?[fe,Je]:[Je,fe];return new Map([[t.title,o.title],[t.body,o.body]])};function zn(e,t){let o=null;return e.forEach((a,n)=>{let s=a?.props;if(!s)return;let i=s,r=s[y];a.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[y]:t.get(r)});let l=s[m];if(Array.isArray(l)){let d=zn(l,t);d!==l&&(i={...i,[m]:d})}i!==s&&(o??=[...e],o[n]={...a,props:i})}),o??e}function jn(e,t){if(!Array.isArray(e[h]))return e;let o=Xd(!!x(e)),a=t?new Map([...o].filter(([s,i])=>t(i)&&!t(s))):o;if(!a.size)return e;let n=zn(e[h],a);return n===e[h]?e:{...e,[h]:n}}var qn="OrderSummary";var zd="label";function et(e){return Y(e,h,A,t=>T([qd()],ue(t,"item")))}function qd(){return{type:f,props:{...b,name:"Item"},slots:{[m]:[u(zd,{...E,tag:"p"},Ce)]}}}import{isNodeList as Zd}from"efficient-easel/data";var Zn="ProcessSteps",Qd={eyebrow:"eyebrow",title:"title",copy:"copy",image:"image",tag:"tag",specs:"specs"},we=Qd,Jd=()=>({type:f,props:{...b,name:"Row",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[m]:[{type:f,props:{...b,name:"Picture",direction:"column",gap:12},slots:{[m]:[{type:"ImageBlock",props:{[y]:we.image,aspect:"1/1",fit:"contain"}},u(we.tag,{..._,tag:"p"},eo(11))]}},{type:f,props:{...b,name:"Words",direction:"column",gap:16},slots:{[m]:[u(we.eyebrow,{...E,tag:"p"},{...eo(13),color:"accent"}),u(we.title,{...E,tag:"h2"},{textStyle:"heading-2",...S("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),u(we.copy,{..._,tag:"p"},{textStyle:"body-1",...S("body",15),lineHeight:1.6}),{type:A,props:{[y]:we.specs}}]}}]}});function Qn(e){return e.map(t=>{let o=t.props;for(let[a,n]of Object.entries(o))Zd(n)&&(o={...o,[a]:Qn(n)});return t.type===A?{...t,props:et(o)}:{...t,props:o}})}function ty(e){return Qn(T([Jd()],ue(e,"row")))}var eh="label",th=()=>({type:"LogoBlock",props:{[y]:eh}}),tt="Logos",Jn=e=>T([th()],()=>`${e}~logo`);function es(e){return x(e)?Y(e,h,tt,Jn):e}function iy(e){if(!x(e))return e;let t=e[h];return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:{...e,[h]:Jn(W(e,tt))}}var io={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=io;var ro="FAQ",oh="question",ah="answer",nh={textStyle:"body-1",fontRole:"heading",...S("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},sh={textStyle:"body-1",...S("body",15),lineHeight:1.7};function by(){return Object.keys(io).map(Vn)}var ih=()=>({type:f,props:{...b,gap:0,name:"Question"},slots:{rowTitle:[u(oh,{...E,tag:"p",widthFit:"fill"},nh)],[m]:[u(ah,{..._,tag:"p",widthFit:"fill",maxWidth:760},sh)]}});function rh(e){return $n(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>B(e[t])!==void 0)}function ts(e){return rh(e)?e:Y(e,h,ro,t=>{let o=0;return T([ih()],a=>a===f?`${t}~row`:`${t}~row.${o++}`)})}var lh=["below","left","right"];function ch(e){return lh.includes(e)?e:"below"}function lo(e){return ch(e)!=="below"}function co(e){return Array.isArray(e)?e.map(co):!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,co(o)]))}var U=e=>JSON.stringify(co(e));var at="Footprint",ns=e=>x(e)===$t,ot=Jt(11),dh={textStyle:"body-1",...S("body",18),weight:500,lineHeight:1.2},Ry=()=>({type:f,props:{...b,gap:8,gapPhone:8,...M(20,24,20,20),name:"Office"},slots:{[m]:[u("badge",{...E,tag:"p",widthFit:"fill"},ot,!0),u("role",{...E,tag:"p",widthFit:"fill"},ot,!0),u("city",{...E,tag:"p",widthFit:"fill"},dh),u("country",{..._,tag:"p",widthFit:"fill"},ot),u("address",{..._,tag:"p",widthFit:"fill"},ot),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[y]:"linkLabel",[O]:"href"}}]}}),ss={textStyle:"body-1",fontRole:"heading",...S("body",16),weight:500,lineHeight:1.25},uo={textStyle:"body-1",...S("body",14),lineHeight:1.5},hh=()=>({type:f,props:{...b,gap:4,gapPhone:4,...M(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[m]:[u("city",{...E,tag:"p",widthFit:"fill"},ss),u("address",{..._,tag:"p",widthFit:"fill"},uo),u("phone",{..._,tag:"p",widthFit:"fill"},uo)]}});function is(e){let t=W(e,at),o=0;return T([hh()],a=>a===f?`${t}~office`:`${t}~office.${o++}`)}function rs(e){return Array.isArray(e[h])&&e[h].length>0&&U(e[h])===U(is(e))}var ls=e=>e===void 0||Array.isArray(e)&&e.length===0;function os(e){return lo(e.listPosition)?!ls(e[h])||ns(e)?e:{...e,[h]:is(e)}:rs(e)?{...e,[h]:[]}:e}var uh=ss,mh=uo,ph={textFit:"line"},mo=(e,t,o="",a={},n={})=>{let s=u(e,{...t?_:E,tag:"p",...a},{...mh,...n});return o?{...s,props:{...s.props,[O]:o}}:s},ho=(e,t,o,a)=>({type:f,props:{...b,gap:0,gapPhone:0,[Re]:[e],name:a},slots:{[m]:[mo(e,t,o,ph,{align:"right"})]}}),fh=e=>({type:f,props:{...b,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?M(20,24):{...M(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[m]:[{type:f,props:{...b,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[m]:[{type:f,props:{...b,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[m]:[u("name",{...E,tag:"p",widthFit:"fill"},uh),mo("address",!0)]}},mo("place",!0,"",{widthFit:"fill"})]}},{type:f,props:{...b,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[m]:[ho("distance",!0,"","Dealer distance"),ho("phone",!1,"phoneHref","Dealer phone"),ho("website",!1,"websiteHref","Dealer website")]}}]}}),wh=e=>{let t=fh(e),o={type:f,props:{...b,...M(0,12),name:"Dealer"},slots:{[m]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:o};function po(e,t){let o=W(e,at),a=0;return T([wh(t)],(n,s)=>s==="0"?`${o}~dealer`:`${o}~dealer.${a++}`)}function as(e){if(!Array.isArray(e[h])||e[h].length===0)return!1;let t=U(e[h]);return t===U(po(e,!0))||t===U(po(e,!1))}function cs(e){if(ns(e)){let o=po(e,!lo(e.listPosition));return!(ls(e[h])||rs(e)||as(e))||U(e[h]??[])===U(o)?e:{...e,[h]:o}}if(!as(e))return os(e);let t={...e,[h]:[]};return os(t)}var bh="Card template",ds=["Text","ImageBlock","ButtonBlock","Flex"];function zy(){return{type:"slot",allow:[...ds]}}var yh=ds.filter(e=>e!=="ButtonBlock"),hs="items",us="itemFields";function qy(){return{type:"slot",allow:[...yh]}}function ee(e,t){if(!t)return e;let o=typeof t=="string"?[t]:t;return e.filter(a=>o.includes(a.kind??"text"))}var Eh=[{block:qn,typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:ro,typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>ts(e)},{block:at,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=>cs(e)},{block:pe,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=>Xn(pe,e)},{block:Zn,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:A,label:"Card list"}]},{block:tt,fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>es(e)},{block:A,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:hs,seed:e=>et(e)},{block:so,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>Yn(e)}];function v(){return ce("efficient.card-templates",()=>new Map(Eh.map(e=>[e.block,e])))}function Zy(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===nt)throw new Error(`The card template of ${t.block} names "${nt}" 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=B(i.label),l=Array.isArray(i.fields)?{fields:i.fields.map(d=>({...d}))}:null;a.some(d=>d.slot===i.slot)||a.push({slot:i.slot,...r?{label:r}:null,...l})}let n=a.some(i=>i.fields);if(n&&(t.fields.some(i=>i.everySource)||Xa(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.`);n?ve().add(t.block):ve().delete(t.block);let s=B(t.typedRows);v().set(t.block,{block:t.block,...a.length?{slots:a}:{},fields:t.fields.map(i=>({...i})),blocks:o,typedRows:s,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function Sh(e,t){let o=e?v().get(e)?.seed:void 0;return o?o(t):t}function Qy(e,t){let o=_h(e),a=(o.length?o:[h]).filter(r=>t[r]===void 0||Array.isArray(t[r])&&t[r].length===0);if(!a.length)return t;let n={...t};for(let r of a)delete n[r];let s=e?v().get(e)?.seedOnInsert:void 0,i=s?s(n):Sh(e,n);return i===n?t:i}function Jy(){for(let e of v().values())if(e.blocks?.length)return!0;return!1}function eE(e){return v().get(e)?.blocks??[]}function tE(e){for(let t of v().values())if(t.blocks?.some(o=>o.type===e))return!0;return!1}function oE(e){return typeof e=="string"&&v().get(e)?.typedRows||""}function aE(e){return typeof e=="string"&&v().get(e)?.linesBetween===!0}function nE(e){return typeof e=="string"&&v().has(e)}var Th=[{slot:h}];function st(e){if(typeof e!="string")return[];let t=v().get(e);return t?t.slots??Th:[]}function _h(e){return st(e).map(t=>t.slot)}function vh(e,t){return st(e).some(o=>o.slot===t)}function sE(e,t){let o=st(e).find(a=>a.slot===t);return o?o.label??bh:null}function fo(e,t){return t?st(e).find(o=>o.slot===t)?.fields:void 0}function xh(e,t){let o=v().get(e)?.fields??[];return ee(o,t)}function Oh(e,t){if(typeof e!="string")return"";let o=fo(e,t);return(o?ee(o,"list"):xh(e,"list"))[0]?.key??""}function kh(e,t,o){return go(e)||Oh(t,o)}function ms(e,t,o){let a=typeof e?.type=="string"?e.type:"";if(!a)return[];let n=fo(a,o);if(n)return ee(n,t);let s=v().get(a)?.fields??[],i=je(x(e?.props))?.fields,r=i?.length?[...i.map(l=>({...l})),...s.filter(l=>l.everySource&&!i.some(d=>d.key===l.key))]:s;return ee(r,t)}function Ah(e,t,o,a){if(!e)return null;let n=fo(e,a);return n?n.find(s=>s.key===t)??null:o?ms(o).find(s=>s.key===t)??null:v().get(e)?.fields.find(s=>s.key===t)??null}function wo(e,t){return!e||!t?null:e.fields?.find(o=>o.key===t)??Ah(e.ownerType,t,e.owner,e.slot)}function iE(e,t){return wo(e,t)?.plain===!0}function rE(e,t){return wo(e,t)?.kind==="date"}function go(e,t=y){let o=e?.[t];return typeof o=="string"?o.trim():""}function lE(e,t){return e.key||String(t+1)}function cE(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 dE(e,t){let o=e[Re];return!t||!Array.isArray(o)||!o.length?!1:o.every(a=>typeof a!="string"||!t[a]?.trim())}var ps={Text:{text:y,href:O},ImageBlock:{src:y,href:O},ButtonBlock:{label:y,href:O},LogoBlock:{alt:y,href:O},Breadcrumb:{currentCrumb:y}};var Rh=new Set(["ButtonBlock.label","LogoBlock.alt"]);function hE(e,t,o){return Ch(e,t,o)&&!Rh.has(`${e}.${o}`)}function Ch(e,t,o){return Lh(e,t,o)!==""}function Lh(e,t,o){let a=ps[e]?.[o];return a?go(t,a):""}function fs(e,t){return!t||!e?null:e[t]??""}function Nh(e,t){return fs(e,t)?.trim()||void 0}function uE(e,t,o,a,n,s){if(!o)return t;let i=null;for(let[r,l]of Object.entries(ps[e]??{})){let d=go(t,l),g=fs(o,d);if(g!==null){if(i??={...t},l===O){i[r]=Nh(o,d);continue}i[r]=wo({ownerType:a,fields:n,slot:s},d)?.mark==="accentItalic"?Ba(g):g}}return i??t}function it(e,t){let o=e?.data?.content;if(!Array.isArray(o)||typeof t!="string")return;let a=(s,i)=>{for(let r of s){if(r?.props?.id===t)return i;for(let[l,d]of Object.entries(r?.props??{})){if(!gh(d))continue;let g=vh(r.type,l)?{owner:r,slot:l,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},w=a(d,g);if(w!==void 0)return w}}},n=a(o,null);return n===void 0?null:n}function Ih(e,t){let o=it(e,t);return o&&o.owner}function Ph(e,t){let o=it(e,t);return o&&o.slot}function mE(e,t){let o=it(e,t);return o&&(o.direct?o.owner:null)}function pE(e,t){let o=it(e,t);if(o!==void 0)return o===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:o.nested,underBox:o.underBox}}function fE(e,t,o){if(t?.type!==A)return[];let a=Ih(e,t.props?.id);if(!a){let r=je(x(t.props))?.fields,l=r?.length?r.map(w=>({...w})):Hh(t.props),d=(v().get(A)?.fields??[]).filter(w=>w.everySource&&!l.some(P=>P.key===w.key)),g=[...l,...d];return ee(g,o)}let n=Ph(e,t.props?.id)??void 0,s=kh(t.props,a.type,n),i=s&&ms(a,"list",n).find(r=>r.key===s)?.fields||[];return ee(i,o)}function wE(e,t){return{[y]:"",[hs]:e.map(o=>({...o})),[us]:t.map(o=>({...o}))}}function Hh(e,t){let o=e?.[us];if(!Array.isArray(o))return[];let a=o.flatMap(n=>{if(!n||typeof n!="object")return[];let{key:s,label:i,kind:r,multiline:l,alt:d,next:g}=n;if(typeof s!="string"||!s||typeof i!="string")return[];let w=r==="image"||r==="link"||r==="colour"||r==="date"?r:void 0;return[{key:s,label:i,...w?{kind:w}:{},...l===!0?{multiline:!0}:{},...typeof d=="string"&&d?{alt:d}:{},...typeof g=="string"&&g?{next:g}:{}}]});return ee(a,t)}var nt="HostPart";import{parseHexColor as Dh}from"efficient-shell/format";var bo=[{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}],Bh=bo.filter(e=>e.ink);function ws(e){let t={color:e.fg};for(let{role:o,token:a}of Bh)t[a]=e[o];return t}var Mh={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},Fh=Object.freeze(ws(Mh)),Gh={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)"},Wh=Object.freeze(ws(Gh));function EE(e,t){let o=e?Dh(e):null;return o?ma(o,t)?Fh:Wh:null}var gs=-1,Yh="sf-section-accent",_E="Color",bs=new Set(["CategoryBar","DocTabs"]),vE=new Set(["Flex"]),Uh=0;function $h(e){return e===gs?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Uh}function xE(e){return e??gs}function Kh(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 bo)o[`--sf-sec-${a}`]=`var(${t}-${a}, var(--theme-${a}))`;return o}function OE(e){let t=$h(e.sectionAccent);return t===null?null:{className:Yh,style:Kh(t)}}import{FOLLOW_RULES as jh,resolveViewValue as Xh,viewKeyAt as zh}from"efficient-easel/screen/lib/content/view-tiers";var yo={desktop:"desktop",tablet:"tablet",phone:"mobile"},Vh=Object.keys(yo);function ys(e){return yo[e??"desktop"]}function AE(e){return Vh.find(t=>yo[t]===e)??"desktop"}var To=["desktop","tablet","phone"],So=(e,t)=>zh(e,ys(t)),Es=e=>e.flatMap(t=>To.map(o=>So(t,o))),Eo=e=>e===null||e===""?void 0:e,qh=(e,t,o)=>Xh("same",Eo(e),Eo(t),Eo(o),jh);function Ss(e,t,o,a=e[t]){return qh(a,e[So(t,"tablet")],e[So(t,"phone")])[o]}import{createContext as Qs,createElement as Ie,useContext as Pe}from"react";import{Fragment as Mu,jsx as N}from"react/jsx-runtime";import{createContext as Io,useContext as I}from"react";import{jsx as be,Fragment as Is}from"react/jsx-runtime";import{createContext as uu,useContext as Ps,useEffect as mu,useRef as pu,useState as fu}from"react";import{SCROLL_ZOOM_VAR as Ls}from"efficient-shell/format";import{readEntrance as Qh}from"efficient-shell/format";var Le={kind:"entrance",from:"entranceFrom",duration:"entranceDuration",delay:"entranceDelay"},_o="sectionAnimation",Zh=Es(Object.values(Le));var Ts="sf-entrance",Jh=e=>e!=null&&e!=="";function eu(e,t){let o=e[Le[t]];return t==="kind"&&!Jh(o)?e[_o]:o}var rt=(e,t,o)=>Ss(e,Le[t],o,eu(e,t));function vo(e,t){return Qh(rt(e,"kind",t),rt(e,"from",t),rt(e,"duration",t),rt(e,"delay",t))}var tu=e=>({desktop:vo(e,"desktop"),tablet:vo(e,"tablet"),phone:vo(e,"phone")});function WE(e){let t=tu(e);return To.every(o=>t[o].kind==="none")?null:t}var ou={...Object.fromEntries([...bs].map(e=>[e,"a root position: sticky bar; an outer box becomes its sticky containing block and the pin collapses (the same fact every wrapper pass excludes it for, lib/content/section-surface)"])),HeroSlide:"a slide is a direct child of the Hero's transform track ([&>*]:basis-full); a wrapper would take its width, and the Hero already moves one slide in at a time",HeroGroup:"a slide box is placed by grid-item properties on its own root (--sf-hg-row, justify-self); a wrapper becomes the grid item and the box loses its anchor (lib/document/blocks/general/HeroGroup/meta)",[nt]:"a host part draws its data block's answer with no element of its own (lib/content/card-template HOST_PART_TYPE); a wrapper would be one, and the host's content is not the merchant's to animate"},YE=new Set(Object.keys(ou));function _s(e,t,o,a){return t<=0?1/0:a?2*(e-4)/(t+o):2*(e-o/2-4)/t}function vs(e,t,o){let a=r=>r.width>0&&r.height>0;if(!a(e)||t.some(r=>r.mark&&!a(r.rect)))return 1;let n=e.left+e.width/2,s=e.top+e.height/2,i=o;for(let{rect:r,mark:l}of t){let d=Math.abs(r.left+r.width/2-n),g=Math.abs(r.top+r.height/2-s),w=Math.max(_s(d,e.width,r.width,l),_s(g,e.height,r.height,l));i=Math.min(i,Math.max(1,w))}return i}var xs=["cover","contain"],au={cover:"Cover",contain:"Contain"},KE="Image fit";function xo(e,t){return xs.includes(e)?e:t}function VE(){return xs.map(e=>({label:au[e],value:e}))}function jE(e){return e==="contain"?"object-contain":"object-cover"}function Oo(e,t){return e!=="auto"&&t==="cover"}function lt(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}function ZE(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"";default:return"aspect-square"}}var ct=[{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"}];function QE(e){return ct.filter(t=>e.includes(t.shape))}function JE(e){return e==="below"}var eS=`linear-gradient(180deg, transparent 40%, ${lt(.85)} 100%)`,tS=`linear-gradient(0deg, transparent 40%, ${lt(.85)} 100%)`,oS=lt(.45);var nu=ct.map(e=>e.image),F="fill",rS={label:"Fill row",value:F,showWhen:fn},ko="4/3",Os={frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},As={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:Os,tablet:Os,desktop:{frame:"view-desktop:h-full view-desktop:min-h-[240px] max-view-desktop:aspect-[4/3]",img:"view-desktop:absolute view-desktop:inset-0",figure:"view-desktop:h-full"}};function lS(e,t,o){return t&&!ge(o)?"all":e??"wide"}function ks(e){return As[e]}var cS=As.all;function Rs(e){return e?`${e.img} h-full w-full`:"relative h-full w-full"}var su={auto:"","3/4":"aspect-[3/4]","2/1":"aspect-[2/1]","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","16/10":"aspect-[16/10]","1/1":"aspect-square","9/16":"aspect-[9/16]","2/3":"aspect-[2/3]","4/5":"aspect-[4/5]"},iu={auto:"","3/4":"view-wide:aspect-[3/4]","2/1":"view-wide:aspect-[2/1]","21/9":"view-wide:aspect-[21/9]","16/9":"view-wide:aspect-[16/9]","4/3":"view-wide:aspect-[4/3]","16/10":"view-wide:aspect-[16/10]","1/1":"view-wide:aspect-square","9/16":"view-wide:aspect-[9/16]","2/3":"view-wide:aspect-[2/3]","4/5":"view-wide:aspect-[4/5]"},ru={auto:"","3/4":"max-view-wide:aspect-[3/4]","2/1":"max-view-wide:aspect-[2/1]","21/9":"max-view-wide:aspect-[21/9]","16/9":"max-view-wide:aspect-[16/9]","4/3":"max-view-wide:aspect-[4/3]","16/10":"max-view-wide:aspect-[16/10]","1/1":"max-view-wide:aspect-square","9/16":"max-view-wide:aspect-[9/16]","2/3":"max-view-wide:aspect-[2/3]","4/5":"max-view-wide:aspect-[4/5]"},lu={auto:"max-view-wide:aspect-auto!","3/4":"max-view-wide:aspect-[3/4]!","2/1":"max-view-wide:aspect-[2/1]!","21/9":"max-view-wide:aspect-[21/9]!","16/9":"max-view-wide:aspect-[16/9]!","4/3":"","16/10":"max-view-wide:aspect-[16/10]!","1/1":"max-view-wide:aspect-square!","9/16":"max-view-wide:aspect-[9/16]!","2/3":"max-view-wide:aspect-[2/3]!","4/5":"max-view-wide:aspect-[4/5]!"},Ao=e=>nu.includes(e),ge=Ao;function dS(e){let t=Ao(e)?ct.find(o=>o.image===e)?.ratio:null;return t?`${t[0]} / ${t[1]}`:null}function hS(e,t,o){return o==="contain"?!0:[e,t??e].every(a=>a!==F&&(!Ao(a)||a==="auto"))}function uS(e,t){return e===F&&!t?ko:e}function mS(e){return e===F?ko:ge(e)?e:void 0}function Cs(e,t){return ge(t)?t===e?null:t:e===F?ko:null}function cu(e,t){let o=Cs(e,t);return Oo(e,"cover")||o!==null&&Oo(o,"cover")}function du(e,t,o){return xo(e,"cover")==="cover"&&cu(t,o)}function pS(e,t,o,a){return e==="desktop"?du(t,o,a):xo(t,"cover")!=="cover"?!1:hu(e==="tablet"?o:Cs(o,a)??o)}var hu=e=>e===F||ge(e)&&e!=="auto";function fS(e,t,o="wide"){return e===F&&o==="all"?ks("all").frame:t===null?ge(e)?su[e]:"":[e===F?ks(o).frame:ge(e)?iu[e]:"",e===F&&o==="desktop"?lu[t]:ru[t]].filter(Boolean).join(" ")}var ht=uu(null);function _S({attrs:e,style:t,children:o}){return be(ht.Provider,{value:{attrs:e,style:t},children:o})}function Hs({children:e}){return be(ht.Provider,{value:null,children:e})}function vS({fill:e=null,children:t}){let o=Ps(ht);return o?be("div",{className:Rs(e),...o.attrs,style:o.style,children:t}):be(Is,{children:t})}var dt="data-sf-mark";function Ns(e){let t=e.getBoundingClientRect(),o=e.firstElementChild,a=o&&typeof o.offsetWidth=="number"?o:e,n=Math.max(a.offsetWidth,e.offsetWidth),s=Math.max(a.offsetHeight,e.offsetHeight);return{left:t.left+t.width/2-n/2,top:t.top+t.height/2-s/2,width:n,height:s}}function wu(e){return e.closest(`[${dt}]`)||e.closest("style, script")?!1:[...e.childNodes].some(t=>t.nodeType===3&&(t.textContent??"").trim()!=="")}var Ds=e=>e.closest(`.${Ts}`)??e.ownerDocument.body;function gu(e,t){let o=Ds(e),a=[];for(let n of o.querySelectorAll(`[${dt}]`))n!==e&&a.push({rect:Ns(n),mark:!0});for(let n of o.querySelectorAll("*")){if(n.contains(e)||!wu(n))continue;let s=n.getBoundingClientRect();s.width===0||s.height===0||a.push({rect:{left:s.left,top:s.top,width:s.width,height:s.height},mark:!1})}return vs(Ns(e),a,t)}function xS({inCell:e=!1,children:t}){let o=Ps(ht),a=pu(null),[n,s]=fu(null),i=o?Number.parseFloat(String(o.style[Ls])):Number.NaN;if(mu(()=>{let l=a.current;if(!l||!Number.isFinite(i))return;let d=()=>s(gu(l,i));d();let g=l.ownerDocument.defaultView?.ResizeObserver;if(!g)return;let w=new g(d),P=Ds(l);w.observe(l),w.observe(P);for(let H of P.querySelectorAll(`[${dt}]`))H!==l&&w.observe(H);return()=>w.disconnect()},[i]),!o)return be(Is,{children:t});let r=Number.isFinite(i)?{...o.style,[Ls]:String(n??1)}:o.style;return be("span",{ref:a,className:e?"inline-flex min-w-0 max-w-full items-center justify-center":"inline-flex items-center justify-center",[dt]:"",...o.attrs,style:r,children:t})}import{FOLLOW_RULES as bu,resolveViewValue as yu}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as Eu}from"efficient-easel/screen/lib/content/length-units";var Su=["auto","fixed","screen","fill"],Tu=Eu.filter(e=>e==="px"||e==="%"),_u="svh",vu="vh",xu="var(--sf-header-h, 88px)",Ou={min:40,max:2e3,step:10,fallback:600},ku={min:10,max:200,step:5,fallback:100},Au="sf-section-minh",Ne="grid-cols-[minmax(0,1fr)]",Bs={base:"--sf-section-minh",small:"--sf-section-minh-s"},Co=e=>typeof e=="string"&&Su.includes(e),Ru=e=>typeof e=="string"&&Tu.includes(e);function ut(e){let t=Co(e.sectionHeightMode)?e.sectionHeightMode:"auto",o=t==="screen"?"%":Ru(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=t==="screen"?ku.fallback:Ou.fallback,n=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:t,value:n,unit:o}}function Gs(e){let{mode:t,value:o,unit:a}=ut(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&a==="px")return[`${o}px`,null];let n=o/100,s=i=>t==="screen"?`(100${i} - ${xu})`:`100${i}`;return[`calc(${s(vu)} * ${n})`,`calc(${s(_u)} * ${n})`]}function Ws(e){let t=Gs(e);if(!t)return;let[o,a]=t;return{display:"grid",[Bs.base]:o,...a?{[Bs.small]:a}:{}}}var RS=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),CS="Height",Ys="sf-section-minh-phone",Ms={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Us(e){return Co(e.sectionHeightModePhone)}function Cu(e){return ut({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var $s="sf-section-minh-tablet",Fs={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function Ks(e){return Co(e.sectionHeightModeTablet)}function Lu(e){return ut({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function Lo(e){let t=Ws(e),o=(r,l,d)=>Gs({sectionHeightMode:r,sectionHeightValue:l,sectionHeightUnit:d})??(t?["auto",null]:void 0),a=Ks(e)?o(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,n=Us(e)?o(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):a;if(!t&&!a&&!n)return null;let s=[Au,Ne],i={...t??{}};return a&&(s.push($s),i[Fs.base]=a[0],a[1]&&(i[Fs.small]=a[1])),n&&(s.push(Ys),i[Ms.base]=n[0],n[1]&&(i[Ms.small]=n[1])),{className:s.join(" "),style:i}}function LS(e){return Lo(e)!==null||mt(e).length>0}var Ro=`grid ${Ne}`,Vs="h-full",Nu="view-tablet:max-view-desktop:grid",js="max-view-tablet:grid",Iu="view-wide:max-view-desktop:grid",Pu="max-view-wide:grid",Hu=`${js} ${Ne}`;function NS(e,{atSectionLine:t=!1}={}){if(mt(e).length>0)return Ro;let o=Lo(e);if(!o)return"";if(Ws(e))return Ro;let a=o.className.split(" "),n=t?Nu:Iu,s=t?js:Pu;if(!a.includes($s))return t?Hu:`${s} ${Ne}`;let i=a.includes(Ys);return[n,i?s:"",Ne].filter(Boolean).join(" ")}var Xs="data-sf-height-fill",Du=["desktop","tablet","mobile"],Bu={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 mt(e){let t=e,o=yu("heightMode",ut(t).mode,Ks(t)?Lu(t).mode:null,Us(t)?Cu(t).mode:null,bu),a={desktop:o.desktop==="fill",tablet:o.tablet==="fill",mobile:o.phone==="fill"};return Du.filter(n=>a[n])}function IS(e){return mt(e).map(t=>Bu[t]).join(" ")}function PS(e){let t=Lo(e);return mt(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:Ro}}var zs={stretchedRow:!1,fillingColumn:!1},C=Io(null),qs=()=>I(C)!==null;function YS({line:e,draw:t}){return N(Mu,{children:t(Oe(e,qs()))})}var US=(e="by-box")=>Oe(e,qs()),$S=()=>I(C),KS=()=>I(C)?.id??null,$=Io(!1);function Fu(){let e=I(C)?.stretchedRow===!0,t=I($);return e&&!t}var Gu=()=>I($);function Wu(){let e=I(C),t=Fu(),o=Gu();return{fill:o?` ${Vs}`:"",inner:a=>{let n=t||o?N($.Provider,{value:!0,children:a}):a;return e?.columnsRow?N(C.Provider,{value:{...e,columnsRow:!1},children:n}):n}}}function VS({className:e,style:t,attrs:o,children:a}){let{fill:n,inner:s}=Wu(),i=Po();return i.scope(N("div",{className:Ho(`${e}${n}`,i.className),...t?{style:t}:{},...o,...i.attrs,children:s(a)}))}var No=Io(!1);function jS({children:e}){return N(No.Provider,{value:!0,children:N($.Provider,{value:!0,children:e})})}function XS({children:e,ownPictures:t=!1}){let o=I(C),a=I(No),n=I($),s=a&&n,i=o===null?null:o.id===void 0?zs:{...zs,id:o.id};return N(C.Provider,{value:i,children:N(No.Provider,{value:!1,children:N($.Provider,{value:s,children:t?e:N(Hs,{children:e})})})})}var pt=Qs(null),Zs="data-sf-view-hide",Js=e=>Ie(pt.Provider,{value:null},e),ei={className:"",attrs:{},scope:Js},Yu=ei,ti=Qs(null),eT=(e,t)=>e?{className:e,views:t}:null,Uu=e=>Ie(pt.Provider,{value:null},Ie(ti.Provider,{value:null},Ie($.Provider,{value:!0},e))),tT=(e,t,o={})=>e?{className:e,words:t,...o}:null,oi=(e,t)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:Oe(e.line??"by-box",t)?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function Po(){let e=Pe(pt),t=Pe(ti),o=Pe(C)!==null;if(e===null&&t===null)return Yu;let a=e===null?null:oi(e,o);return t===null?{className:a.className,attrs:{[Zs]:a.words},scope:Js}:{className:a?`${a.className} ${t.className}`:t.className,attrs:{...a?{[Zs]:a.words}:{},[Xs]:t.views},scope:Uu}}function oT(){let e=Pe(pt),t=Pe(C)!==null;return e===null?"":oi(e,t).className}var Ho=(e,t)=>t?e?`${e} ${t}`:t:e;function aT(e){let t=Po(),o=e.takes===!1?ei:t,a={},n=!1;for(let[s,i]of Object.entries(e))s==="as"||s==="takes"||s==="children"||(s==="className"?(a.className=Ho(i,o.className),n=!0):a[s]=i);return!n&&o.className&&(a.className=o.className),o.scope(Ie(e.as??"div",{...a,...o.attrs},e.children))}var sT={small:54,medium:66,large:84},$u=44,Ku=16,Vu=140,iT={min:Ku,max:Vu,step:1},rT=$u*4;import{forwardRef as ju}from"react";import{imageCopyUrl as ai,imageSrcSet as ni}from"efficient-shell/image-copies";import{jsx as qu}from"react/jsx-runtime";var Xu={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"};function si(e,t,o){if(o){let a=ni(e);return a?{src:ai(e,1280),srcSet:a,sizes:o}:{src:e,sizes:o}}if(t&&t>0){let a=ni(e,{maxWidth:t*3});return a?{src:ai(e,t*2),srcSet:a,sizes:`${t}px`}:{src:e}}return{src:e}}var zu=ju(function({src:t,width:o,height:a,fill:n,priority:s,loading:i,style:r,quality:l,placeholder:d,blurDataURL:g,unoptimized:w,loader:P,overrideSrc:H,sizes:K,...He},ft){let De=H??(typeof t=="string"?t:t.src),wt=si(De,n?void 0:Number(o)||void 0,K??(n?"100vw":void 0));return qu("img",{ref:ft,...wt,width:n?void 0:o,height:n?void 0:a,loading:s?"eager":i??"lazy",fetchPriority:s?"high":void 0,decoding:"async",style:n?{...Xu,...r}:{color:"transparent",...r},...He})}),hT=zu;function uT(e){let t=e.overrideSrc??(typeof e.src=="string"?e.src:e.src.src),o=e.fill?void 0:Number(e.width)||void 0;return{props:si(t,o,e.sizes??(e.fill?"100vw":void 0))}}export{ce as a,B as b,Jl as c,Df as d,ec as e,Bf as f,Mf as g,Ff as h,Gf as i,Wf as j,Yf as k,$t as l,tc as m,Uf as n,$f as o,Xa as p,je as q,Kf as r,Vf as s,x as t,ic as u,jf as v,Te as w,ie as x,xp as y,re as z,Op as A,nl as B,kp as C,Ap as D,Rp as E,Cp as F,rl as G,Ke as H,Hp as I,m as J,f as K,qa as L,Zf as M,Qf as N,Se as O,op as P,Bt as Q,ap as R,np as S,sp as T,ip as U,Xr as V,V as W,zr as X,cp as Y,Mp as Z,Fp as _,dl as $,Gp as aa,Wp as ba,Zp as ca,Wt as da,Nl as ea,Ha as fa,of as ga,af as ha,nf as ia,Ba as ja,sf as ka,rf as la,lf as ma,y as na,O as oa,h as pa,A as qa,Re as ra,D as sa,me as ta,On as ua,Sg as va,R as wa,kg as xa,pd as ya,J as za,fd as Aa,Ag as Ba,Rg as Ca,Cg as Da,Lg as Ea,Ng as Fa,gd as Ga,Ig as Ha,Rn as Ia,k as Ja,no as Ka,Pg as La,bd as Ma,yd as Na,Ln as Oa,Hg as Pa,Td as Qa,Dg as Ra,_d as Sa,Bg as Ta,to as Ua,Mg as Va,vd as Wa,xd as Xa,Fg as Ya,Gg as Za,In as _a,Od as $a,Wg as ab,kd as bb,Hn as cb,ao as db,Yg as eb,Ug as fb,$g as gb,Cd as hb,Ld as ib,Kg as jb,Vg as kb,jg as lb,Xg as mb,en as nb,Qa as ob,tw as pb,ow as qb,aw as rb,_c as sb,Xe as tb,cw as ub,dw as vb,hw as wb,tn as xb,ze as yb,uw as zb,Ac as Ab,mw as Bb,Vt as Cb,Rc as Db,fw as Eb,on as Fb,ww as Gb,ke as Hb,Nc as Ib,Ic as Jb,Pc as Kb,nn as Lb,Ew as Mb,sn as Nb,Sw as Ob,rn as Pb,vw as Qb,ln as Rb,z as Sb,xw as Tb,Ow as Ub,kw as Vb,un as Wb,he as Xb,Hw as Yb,Fc as Zb,Kc as _b,Dw as $b,Bw as ac,Xt as bc,Mw as cc,Fw as dc,Vc as ec,Ww as fc,Yw as gc,Uw as hc,$w as ic,qc as jc,Qc as kc,Kw as lc,Vw as mc,jw as nc,Xw as oc,zw as pc,qw as qc,Zw as rc,Qw as sc,Jw as tc,bn as uc,yn as vc,eg as wc,tg as xc,og as yc,ag as zc,ng as Ac,sd as Bc,sg as Cc,ig as Dc,Tn as Ec,rg as Fc,lg as Gc,id as Hc,cg as Ic,dg as Jc,_n as Kc,E as Lc,_ as Mc,cd as Nc,b as Oc,M as Pc,dd as Qc,vn as Rc,S as Sc,gg as Tc,Qt as Uc,Jt as Vc,eo as Wc,T as Xc,W as Yc,Zg as Zc,Dn as _c,pe as $c,Ce as ad,u as bd,fe as cd,Je as dd,Pd as ed,Mn as fd,Bn as gd,Bd as hd,Fn as id,jn as jd,Zn as kd,ty as ld,so as md,Wd as nd,Yn as od,th as pd,iy as qd,ub as rd,mb as sd,pb as td,fb as ud,Un as vd,wb as wd,gb as xd,bb as yd,Vd as zd,_b as Ad,vb as Bd,$n as Cd,xb as Dd,Kn as Ed,Ob as Fd,kb as Gd,Rb as Hd,Cb as Id,Lb as Jd,Nb as Kd,Vn as Ld,Ib as Md,Pb as Nd,io as Od,ly as Pd,by as Qd,ih as Rd,ch as Sd,U as Td,Ry as Ud,cs as Vd,zy as Wd,hs as Xd,us as Yd,qy as Zd,ee as _d,Zy as $d,Sh as ae,Qy as be,Jy as ce,eE as de,tE as ee,oE as fe,aE as ge,nE as he,_h as ie,vh as je,sE as ke,xh as le,kh as me,ms as ne,wo as oe,iE as pe,rE as qe,go as re,lE as se,cE as te,dE as ue,hE as ve,Ch as we,Lh as xe,fs as ye,Nh as ze,uE as Ae,Ih as Be,Ph as Ce,mE as De,pE as Ee,fE as Fe,wE as Ge,nt as He,Et as Ie,St as Je,rm as Ke,lm as Le,ar as Me,Tt as Ne,cm as Oe,nr as Pe,dm as Qe,hm as Re,pm as Se,bm as Te,ym as Ue,Em as Ve,Sm as We,Ct as Xe,Lt as Ye,Tm as Ze,te as _e,hr as $e,ua as af,_m as bf,vm as cf,ae as df,oe as ef,fr as ff,xm as gf,Om as hf,Ye as if,ma as jf,km as kf,Am as lf,Rm as mf,It as nf,Cm as of,pa as pf,Sr as qf,Lm as rf,Nm as sf,Im as tf,_r as uf,Pm as vf,Hm as wf,Dm as xf,Bm as yf,Mm as zf,Fm as Af,Pt as Bf,Cr as Cf,Gm as Df,Wm as Ef,Ue as Ff,Ea as Gf,Ir as Hf,Ym as If,Ht as Jf,da as Kf,Um as Lf,$m as Mf,Pr as Nf,Hr as Of,Sa as Pf,$e as Qf,Mr as Rf,Fr as Sf,Gr as Tf,Ta as Uf,Wr as Vf,_a as Wf,jm as Xf,Xm as Yf,zm as Zf,qm as _f,Ee as $f,va as ag,Zm as bg,Qm as cg,Dt as dg,xa as eg,Jm as fg,ep as gg,bo as hg,Bh as ig,Fh as jg,EE as kg,gs as lg,_E as mg,bs as ng,vE as og,Uh as pg,$h as qg,xE as rg,Kh as sg,OE as tg,Ve as ug,Ga as vg,Fa as wg,Dl as xg,Bl as yg,Ml as zg,hf as Ag,Fl as Bg,uf as Cg,_e as Dg,mf as Eg,pf as Fg,ff as Gg,Wl as Hg,Ya as Ig,wf as Jg,gf as Kg,Ul as Lg,bf as Mg,lt as Ng,ZE as Og,ct as Pg,QE as Qg,JE as Rg,yo as Sg,ys as Tg,AE as Ug,To as Vg,So as Wg,Es as Xg,qh as Yg,Ss as Zg,Le as _g,_o as $g,Zh as ah,Ts as bh,vo as ch,tu as dh,WE as eh,YE as fh,au as gh,KE as hh,xo as ih,VE as jh,jE as kh,F as lh,rS as mh,lS as nh,ks as oh,cS as ph,Rs as qh,dS as rh,hS as sh,uS as th,mS as uh,Cs as vh,cu as wh,du as xh,pS as yh,fS as zh,_S as Ah,Hs as Bh,vS as Ch,xS as Dh,Su as Eh,Ou as Fh,ku as Gh,Ne as Hh,ut as Ih,RS as Jh,CS as Kh,Us as Lh,Ks as Mh,Lu as Nh,LS as Oh,Ro as Ph,Vs as Qh,NS as Rh,mt as Sh,IS as Th,PS as Uh,C as Vh,YS as Wh,US as Xh,$S as Yh,KS as Zh,$ as _h,Fu as $h,Gu as ai,Wu as bi,VS as ci,jS as di,XS as ei,pt as fi,ei as gi,ti as hi,eT as ii,tT as ji,Po as ki,oT as li,Ho as mi,aT as ni,sT as oi,$u as pi,Ku as qi,iT as ri,rT as si,hT as ti,uT as ui,Sf as vi,sa as wi,tm as xi,wp as yi,tl as zi,gp as Ai,bp as Bi,yp as Ci,Ep as Di,ql as Ei,vf as Fi,$a as Gi,Zl as Hi,Ql as Ii,Of as Ji,kf as Ki,Af as Li};