efficient-storefront-blocks 0.121.2 → 0.122.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 (53) hide show
  1. package/CHANGELOG.md +42 -0
  2. package/dist/chunks/{EditorPreviewCheckout-CDSVQFZG.js → EditorPreviewCheckout-HGXPPOPY.js} +4 -4
  3. package/dist/chunks/{SiteEditorProvider-6ZJ5MKW3.js → SiteEditorProvider-R3ZNQPAI.js} +1 -1
  4. package/dist/chunks/chunk-7OV26TMN.js +1 -0
  5. package/dist/chunks/chunk-IJC4EEZC.js +1 -0
  6. package/dist/chunks/{chunk-7D4OUJUE.js → chunk-NYZMVYQ4.js} +1 -1
  7. package/dist/chunks/chunk-PNXEY4EH.js +96 -0
  8. package/dist/chunks/chunk-TAV4GVJC.js +342 -0
  9. package/dist/chunks/{fitment-data-SWQZTLG6.js → fitment-data-QP4XEFXC.js} +1 -1
  10. package/dist/editor/components/HeaderSettingsPanel.d.ts +1 -1
  11. package/dist/editor/components/HeaderSettingsPanel.js +1 -1
  12. package/dist/editor/lib/document/blocks/commerce/DetailRows/fields.js +1 -1
  13. package/dist/editor/lib/document/blocks/commerce/FitmentPicker/fields.js +1 -1
  14. package/dist/editor/lib/document/blocks/commerce/shared-fields.js +1 -1
  15. package/dist/editor/lib/document/blocks/service/SignUp/fields.js +1 -1
  16. package/dist/editor/lib/document/blocks/service/SiteHeader/fields.js +1 -1
  17. package/dist/editor/lib/document/box-header.js +1 -1
  18. package/dist/editor.css +1 -1
  19. package/dist/index.js +74 -56
  20. package/dist/render/built-with.json +1 -1
  21. package/dist/render/components/GalleryShowcase.js +1 -1
  22. package/dist/render/components/Header.js +1 -1
  23. package/dist/render/components/HeaderToolBlocks.d.ts +2 -1
  24. package/dist/render/components/SignUpSection.d.ts +2 -1
  25. package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
  26. package/dist/render/components/fitment/FitmentPickerPart.d.ts +2 -1
  27. package/dist/render/components/pdp-dynamic/DynamicDetailRows.d.ts +2 -1
  28. package/dist/render/lib/api/index.js +1 -1
  29. package/dist/render/lib/content/english-variant.d.ts +3 -1
  30. package/dist/render/lib/content/english-variant.js +1 -1
  31. package/dist/render/lib/content/header-bar.d.ts +26 -1
  32. package/dist/render/lib/content/header-bar.js +1 -1
  33. package/dist/render/lib/content/tab-strip.d.ts +5 -2
  34. package/dist/render/lib/content/tab-strip.js +1 -1
  35. package/dist/render/lib/document/blocks/commerce/DetailRows/meta.d.ts +8 -0
  36. package/dist/render/lib/document/blocks/commerce/DetailRows/meta.js +1 -1
  37. package/dist/render/lib/document/blocks/commerce/DetailRows/render.js +1 -1
  38. package/dist/render/lib/document/blocks/commerce/FitmentPicker/meta.d.ts +8 -0
  39. package/dist/render/lib/document/blocks/commerce/FitmentPicker/meta.js +1 -1
  40. package/dist/render/lib/document/blocks/commerce/FitmentPicker/render.js +1 -1
  41. package/dist/render/lib/document/blocks/service/OpeningHours/render.js +1 -1
  42. package/dist/render/lib/document/blocks/service/SignUp/meta.d.ts +8 -0
  43. package/dist/render/lib/document/blocks/service/SignUp/meta.js +1 -1
  44. package/dist/render/lib/document/blocks/service/SignUp/render.js +1 -1
  45. package/dist/render/lib/wheels/plp-filters.js +1 -1
  46. package/dist/words.d.ts +3 -0
  47. package/dist/words.js +1 -1
  48. package/package.json +4 -4
  49. package/dist/chunks/chunk-ERY7GVI7.js +0 -96
  50. package/dist/chunks/chunk-HPCPOXEL.js +0 -1
  51. package/dist/chunks/chunk-JGBM6X5G.js +0 -1
  52. package/dist/chunks/chunk-PTRZMZVD.js +0 -342
  53. /package/dist/chunks/{chunk-PTRZMZVD.js.LEGAL.txt → chunk-TAV4GVJC.js.LEGAL.txt} +0 -0
@@ -0,0 +1,96 @@
1
+ import{a as ve}from"./chunk-IJC4EEZC.js";import{jsx as Da}from"react/jsx-runtime";import{createContext as dl,useCallback as m,useContext as hl,useMemo as ul,useState as pl}from"react";import{createContext as wa,useContext as St}from"react";import{createContext as dr}from"react";var fa=dr(null);var hr=wa(null),Tt=wa({logo:null,placeholder:!1,wordmark:null});function Sp(){let e=St(fa),t=St(hr),o=St(Tt),a=!e&&o.placeholder,s=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:s,reversedSrc:e?e.logoReversed:o.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:o.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:o.wordmark,siteName:e?.siteName??t?.siteName}}import{contrastRatio as Pp,hexToRgb as Ue,parseHexColor as G,readableInk as Sa,relativeLuminance as Ye}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as gr,pictureShadowColor as br}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as yr}from"efficient-easel/screen/lib/content/length-units";import{VIEW_TIERS as ur,viewKeyAt as ga}from"efficient-easel/screen/lib/content/view-tiers";var D=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{isLengthUnit as _t,lengthOf as pr,rowGrid as mr}from"efficient-easel/screen/lib/content/length-units";function vt(e,t){let o=pr(e,xt(t));return typeof o=="number"?`${o}px`:o}function xt(e,t="px"){return _t(e)?e:t}function kp(e,t,o){return t.unitKey?xt(e[ga(t.unitKey,o)],t.base??"px"):t.base??"px"}function Ap(e,t=ur){return e.unitKey?t.map(o=>ga(e.unitKey,o)):[]}function fr(e,t,o){let a=mr({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function Ot(e,t,o,a){let s=D(e);if(!_t(t)||t==="px"||s===void 0)return null;let n=fr(o,t,a),i=Math.min(n.max,Math.max(n.min,s));return Math.round(i*100)/100}function Rp(e,t,o,a){let s=Ot(e,t,o,a);return s===null?null:vt(s,t)}var wr={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 Cp(e){let t=e;return Object.fromEntries(Object.entries(wr).map(([o,a])=>[o,xt(t[a])]))}function Lp(e,t,o){let a=D(e);return _t(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as um}from"efficient-easel/screen/lib/document/shadow-values";var Mp="storefront-theme",Fp="sf:theme-mode",Gp="sf:theme-switch",Wp="hide",Ht="light",Dt=!1,Er=7,Sr=18;function Tr(e){return e>=Er&&e<Sr}function Up(e){let{mode:t,override:o,switchShown:a,hour:s}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?Tr(s)?"light":"dark":t==="light"?"light":"dark"}var ae={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},_r=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Ke={selected:0,themes:_r};function Ta(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Ke}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function kt(e,t,o){let a=Ue(e),s=Ue(t);if(a===null||s===null)return e;let n=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${n(a.r,s.r)}${n(a.g,s.g)}${n(a.b,s.b)}`}var vr={light:"#ffffff",dark:"#0a0a0a"},Yp=["light","dark"];function Kp(e,t){let o=vr[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:kt(e,a,.1),line:kt(e,a,.22),muted:kt(o,e,.35),brandInk:t}}function ne(e){let t=Ta(e);return t.themes[t.selected]}function se(e){return{text:e.text,accent:e.accent,background:e.background||ae.background,surface:e.surface||ae.surface,line:e.line||ae.line,muted:e.muted||ae.muted}}var xr=.4,Or="#f5f1e8",ba="#0a0a0a";function kr(e){let t=ne(e).text,o=Ye(t);return o===null||o>=xr?t:null}var Ar=4.5,Rr=3,$p={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Vp(e){return e>=Ar?"good":e>=Rr?"large-only":"hard"}var Cr=["#000000","#ffffff"];function $e(e){return Sa(e,Cr)}function _a(e,t){let o=t!==void 0&&Ye(t)!==null?t:Or;return Sa(e,[ba,o])===o&&o!==ba}var Lr=[.25,.4,.55];function jp(e){let t=Ue(e);return t===null?[]:Lr.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function Xp(e){let t={"--theme-fg":ne(e).text},o=kr(e);return o!==null&&(t["--overlay-fg"]=o),t}var Nr=82;function Bt(e){return`color-mix(in srgb, ${e} ${Nr}%, #000)`}function zp(e){let t=ne(e);return{"--theme-accent":t.accent,"--theme-accent-2":Bt(t.accent),"--theme-accent-ink":$e(t.accent)}}function Mt(e){let t=e?.button;return t&&G(t)===t.toLowerCase()?t.toLowerCase():null}function qp(e){let t=ne(e),o=Mt(t),a=va(t);if(o===null&&a===null)return{};let s={};return o!==null&&(s["--theme-btn"]=o,s["--theme-btn-2"]=Bt(o)),s["--theme-btn-ink"]=a??$e(o),s}function va(e){let t=e?.buttonInk;return t&&G(t)===t.toLowerCase()?t.toLowerCase():null}function Ir(e,t){return va(e)??$e(Mt(e)??t)}function Zp(e){let t=ne(e);return{fill:Mt(t)??t.accent.toLowerCase(),ink:Ir(t,t.accent)}}function Qp(e){let t={};return Ta(e).themes.forEach((o,a)=>{let s=se(o);t[`--theme-preset-${a}-accent`]=s.accent,t[`--theme-preset-${a}-accent-2`]=Bt(s.accent),t[`--theme-preset-${a}-accent-ink`]=$e(s.accent),t[`--theme-preset-${a}-bg`]=s.background,t[`--theme-preset-${a}-fg`]=s.text,t[`--theme-preset-${a}-surface`]=s.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${s.surface} 60%, ${s.line})`,t[`--theme-preset-${a}-line`]=s.line,t[`--theme-preset-${a}-muted`]=s.muted}),t}var At=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},Rt=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function ya([e,t,o]){let[a,s,n]=[At(e),At(t),At(o)],i=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*n),r=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*n),l=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*n);return[.2104542553*i+.793617785*r-.0040720468*l,1.9779984951*i-2.428592205*r+.4505937099*l,.0259040371*i+.7827717662*r-.808675766*l]}function Pr([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,s=(e-.1055613458*t-.0638541728*o)**3,n=(e-.0894841775*t-1.291485548*o)**3;return[Rt(4.0767416621*a-3.3077115913*s+.2309699292*n),Rt(-1.2684380046*a+2.6097574011*s-.3413193965*n),Rt(-.0041960863*a-.7034186147*s+1.707614701*n)]}var Nt=e=>{let t=Ue(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},xa=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],Oa=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,ka=e=>xa(Nt(e.surface),Nt(e.line),.6);function Jp(e){return Oa(ka(se(e)))}function Hr(e){let t=se(e);return Oa(Pr(xa(ya(ka(t)),ya(Nt(t.text)),.92)))}function Aa(e,t,o,a){let s=e[t];if(!s)return-1;let n=o(s);if(!n)return-1;let i=se(s);return e.findIndex((r,l)=>{if(l===t)return!1;let d=se(r);return G(d.background)!==n?!1:!a||G(d.text??"")===G(i.text??"")&&G(d.accent??"")===G(i.accent??"")})}function em(e,t){return Aa(e,t,Hr,!1)}function tm(e,t){return Aa(e,t,o=>G(o.surface??""),!0)}var Dr=1;function Br(e,t){let o=(e??[]).flatMap((a,s)=>{let n=Ye(a.background??""),i=Ye(a.text??"");return n!==null&&i!==null&&n<i?[s]:[]});return o.find(a=>a!==t)??o[0]??Dr}function om(e){return Br(e?.themes,e?.selected)}var am=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function sm(e){let t=se(ne(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!==ae.surface||t.line!==ae.line)&&(a["--theme-surface-2"]=o),a}var Mr=["heading","body","label"];function nm(e){if(!e)return null;for(let t of Mr)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var Ra=["headingLarge","headingMedium","headingSmall","accent","body","label"];var Ft={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},Fr=8,Gr=200;function Wr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=Fr&&t<=Gr?t:null}function Ur(e){let t={};for(let o of Ra)t[o]=Wr(e?.[o]);return t}function im(e){let t=Ur(e),o={};for(let a of Ra){let s=t[a];s!==null&&(o[`--size-${a}`]=`${s}px`)}return o}var Yr=["square","small","large"],Kr="small";function rm(e){return Yr.includes(e??"")?e:Kr}var Ve=0,Ca=40,$r={min:Ve,max:Ca,step:1},lm={square:0,small:null,large:16},It={"--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 Gt(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(Ca,Math.max(Ve,Math.round(t))):null}function Ea(e,t){if(yr(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(It).map(([s,n])=>{let i=Math.round(a*n*1e4)/1e4;return[s,i===0?"0":vt(i,t)]}))}let o=Gt(e);return o===null?{}:Object.fromEntries(Object.entries(It).map(([a,s])=>{let n=o*s/16;return[a,n===0?"0":`${n}rem`]}))}function cm(e){return(Gt(e)??Ve)*It["--sf-button-radius"]}function dm(e,t){let o=Ot(e,t,"radius",$r);return o!==null?Ea(o,t):Ea(Gt(e)??Ve)}var Vr=["none","soft","lifted"],jr="soft",La="none",Xr=["tight","normal","roomy"],zr="normal",je="normal",qr=["none","lift","highlight"],Zr="lift",Qr="highlight";function Na(e){return Vr.includes(e??"")?e:jr}function Jr(e){return Xr.includes(e??"")?e:zr}function Ia(e){return qr.includes(e??"")?e:Zr}function pm(e){let t=Na(e);return t===La?void 0:t}function mm(e){let t=Jr(e);return t===je?void 0:t}function fm(e){let t=Ia(e);return t===Qr?void 0:t}function wm(e,t,o){let a=br(t);return a===gr?{}:Na(e)!==La||Ia(o)==="lift"?{"--sf-shadow-color":a}:{}}var el=["normal","tight","compressed"],xe="normal";function Pa(e){return el.includes(e??"")?e:xe}function gm(e){let t=Pa(e);return t===xe?void 0:t}function bm(e){switch(Pa(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var Wt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},Ct=100,Lt=900,tl=24,ol=200;function We(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function Ha(e){let t=We(e?.weight,Ct,Lt),o=e?.case==="sentence"?"sentence":"authored",a=n=>n==null?t:We(n,Ct,Lt),s=n=>n==="sentence"?"sentence":n==="authored"?"authored":o;return{case:o,weight:t,weightStrong:We(e?.weightStrong,Ct,Lt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:We(e?.maxPx,tl,ol),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:s(e?.case2),case3:s(e?.case3)}}function ym(e){let t=Ha(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 Em(e){return Ha({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 Pt="siteTheme";function al(e){let t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(a=>!!a&&typeof a=="object"))return{};let o=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[Pt]:{selected:o,themes:t.themes}}}function Sm(e){return al(e?.[Pt])[Pt]}var Oe=[{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}],re=new Map(Oe.map(e=>[e.key,e]));function _m(e){return re.get(e)}var Ut=["heading","heading2","heading3","body","accent","label"];function vm(e){return typeof e=="string"&&Ut.includes(e)?e:null}var xm={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},sl=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],nl=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,Om={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},il={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function km(e){let t=e?nl.exec(e):null;return t?il[t[1]]??null:rl(e)}function rl(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 sl)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 ll(e){let t=o=>{let a=e?.[o];if(a&&re.has(a))return a;if(o==="heading2"||o==="heading3"){let s=e?.heading;return s&&re.has(s)?s:V.heading}return V[o]};return Object.fromEntries(Ut.map(o=>[o,t(o)]))}function cl(e,t){return re.get(e[t])??re.get(V[t])}function ie(e,t){return`var(${cl(e,t).cssVar})`}var Am=[...new Set(Ut.map(e=>re.get(V[e]).cssVar))],Rm=[...new Set(Oe.map(e=>e.cssVar))];function Cm(e){let t=ll(e);return{"--font-role-heading":ie(t,"heading"),"--font-role-heading2":ie(t,"heading2"),"--font-role-heading3":ie(t,"heading3"),"--font-role-body":ie(t,"body"),"--font-role-accent":ie(t,"accent"),"--font-role-label":ie(t,"label"),fontFamily:"var(--font-role-body)"}}var Ba={},Ma=dl({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:Ht,setThemeMode:()=>{},themeSwitchShown:Dt,setThemeSwitchShown:()=>{},theme:Ke,themeRow:"none",setTheme:()=>{},fonts:V,setFonts:()=>{},sizes:Ft,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:je,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:xe,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:Ba,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:Wt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function Bm({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:s=!1,themeMode:n=Ht,onThemeModeChange:i,themeSwitchShown:r=Dt,onThemeSwitchShownChange:l,theme:d=Ke,themeRow:g="none",onThemeChange:w,fonts:P=V,onFontsChange:H,sizes:$=Ft,onSizesChange:Fe,cornerRadiusPx:yt=null,onCornerRadiusPxChange:Ge,cardShadow:Et=null,onCardShadowChange:Vo,shadowColor:bi=null,onShadowColorChange:jo,cardGap:yi=je,onCardGapChange:Xo,hoverEffect:Ei=null,onHoverEffectChange:zo,headingCompression:Si=xe,onHeadingCompressionChange:qo,siteWidth:Ti=null,onSiteWidthChange:Zo,siteGutter:_i=null,siteGutterPhone:vi=null,blockGap:xi=null,blockGapPhone:Oi=null,siteLengthUnits:ki=Ba,onSiteLengthUnitsChange:Qo,onSiteGutterChange:Jo,onSiteGutterPhoneChange:ea,onBlockGapChange:ta,onBlockGapPhoneChange:oa,headingTypography:Ai=Wt,onHeadingTypographyChange:aa,textStyles:Ri=null,onTextStylesChange:sa,wordStyles:Ci=null,heroBackgroundFollowsWidth:Li=null,onHeroBackgroundFollowsWidthChange:na,sectionBackgroundWidth:Ni=null,onSectionBackgroundWidthChange:ia,sectionContentWidth:Ii=null,onSectionContentWidthChange:ra,photographyGrayscale:Pi=null,onPhotographyGrayscaleChange:la,shareButtonOnPosts:Hi=null,onShareButtonOnPostsChange:ca,themeFromDocument:Di=!1}){let[_e,da]=pl(null),Bi=m(c=>da(cr=>cr??c),[]),Mi=m(c=>i?.(c),[i]),Fi=m(c=>l?.(c),[l]),Gi=m(c=>w?.(c),[w]),Wi=m(c=>H?.(c),[H]),Ui=m(c=>Fe?.(c),[Fe]),Yi=m(c=>Zo?.(c),[Zo]),Ki=m(c=>Jo?.(c),[Jo]),$i=m(c=>ea?.(c),[ea]),Vi=m(c=>ta?.(c),[ta]),ji=m(c=>oa?.(c),[oa]),Xi=m(c=>Qo?.(c),[Qo]),zi=m(c=>na?.(c),[na]),qi=m(c=>ia?.(c),[ia]),Zi=m(c=>ra?.(c),[ra]),Qi=m(c=>la?.(c),[la]),Ji=m(c=>ca?.(c),[ca]),er=m(c=>Ge?.(c),[Ge]),tr=m(c=>Vo?.(c),[Vo]),or=m(c=>jo?.(c),[jo]),ar=m(c=>Xo?.(c),[Xo]),sr=m(c=>zo?.(c),[zo]),nr=m(c=>qo?.(c),[qo]),ir=m(c=>aa?.(c),[aa]),rr=m(c=>sa?.(c),[sa]),ha=_e?.logoUrl,ua=_e?.logoReversed,pa=_e?.logoInkIsDark,ma=_e!==null,lr=ul(()=>({logo:ma?{logoUrl:ha,logoReversed:ua,logoInkIsDark:pa}:null,placeholder:o||s,wordmark:o?a:t}),[ma,ha,ua,pa,o,s,a,t]);return Da(Tt.Provider,{value:lr,children:Da(Ma.Provider,{value:{settings:_e,setSettings:da,primeSettings:Bi,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:s,themeMode:n,setThemeMode:Mi,themeSwitchShown:r,setThemeSwitchShown:Fi,theme:d,themeRow:g,setTheme:Gi,fonts:P,setFonts:Wi,sizes:$,setSizes:Ui,cornerRadiusPx:yt,setCornerRadiusPx:er,cardShadow:Et,setCardShadow:tr,shadowColor:bi,setShadowColor:or,cardGap:yi,setCardGap:ar,hoverEffect:Ei,setHoverEffect:sr,headingCompression:Si,setHeadingCompression:nr,siteWidth:Ti,setSiteWidth:Yi,siteGutter:_i,siteGutterPhone:vi,blockGap:xi,blockGapPhone:Oi,siteLengthUnits:ki,setSiteLengthUnits:Xi,setSiteGutter:Ki,setSiteGutterPhone:$i,setBlockGap:Vi,setBlockGapPhone:ji,headingTypography:Ai,setHeadingTypography:ir,textStyles:Ri,setTextStyles:rr,wordStyles:Ci,heroBackgroundFollowsWidth:Li,setHeroBackgroundFollowsWidth:zi,sectionBackgroundWidth:Ni,setSectionBackgroundWidth:qi,sectionContentWidth:Ii,setSectionContentWidth:Zi,photographyGrayscale:Pi,setPhotographyGrayscale:Qi,shareButtonOnPosts:Hi,setShareButtonOnPosts:Ji,themeFromDocument:Di},children:e})})}var ml=()=>hl(Ma);function Mm(e,t,o){return e?t===o?"read":"loading":"none"}function Fm(e,t){return{value:e,readFor:t}}function Gm(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function Wm(){let{sectionContentWidth:e,themeFromDocument:t}=ml();return t?null:e}var B=e=>typeof e=="string"&&e?e:void 0;function ke(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function le(e,t){return Object.hasOwn(e,t)}var Vm=["general","commerce","service"],ce=[{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 jm(){return Object.fromEntries(ce.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var fl="2027-02-05",wl="2027-02-14",Fa={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 ${fl}). 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 ${wl}. 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.'}},gl=Object.fromEntries(Object.entries(Fa).map(([e,t])=>[e,t.note])),Xm=["Grid","Spacer","TyreFitment"],zm=Array.from(new Set([...ce.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(gl)])),bl=Object.fromEntries(Object.entries(Fa).map(([e,t])=>[e,t.label])),qm={...bl,...Object.fromEntries(ce.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},yl={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",HostPart:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",WheelDiagram:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",ProductBuyButton:"commerce",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"},Yt={...yl,...Object.fromEntries(ce.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function Zm(e){return ke(Yt,e)}function Kt(e){return Object.keys(Yt).filter(t=>ke(Yt,t)===e).sort()}var Qm=Kt("general"),Jm=Kt("commerce"),ef=Kt("service"),El="Flex",Xe="Box",tf=`${Xe}es`;function Sl(e){return e==="section"?"Blank section":Xe}function of(e,t,o){return e===El?Sl(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:"^^"}},nf=Object.fromEntries(j.map(e=>[L[e].kind,e])),rf="data-sf-ws",Tl=["accent","text","labels"],_l={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},vl=80,xl=120,Ol=100,kl=900,Al=.5,Rl=3,Cl=-.1,Ll=.5,Nl=3,$t={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},Il={highlight:{...$t},strong:{...$t},quiet:{...$t}};function Ga(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function Wa(e,t,o){if(typeof e!="number"||!Number.isFinite(e))return null;let a=10**Nl;return Math.round(Math.min(Math.max(e,t),o)*a)/a}function Ua(e){return typeof e=="boolean"?e:null}function Pl(e){let t=typeof e?.font=="string"&&Oe.some(a=>a.key===e.font)?e.font:null,o=typeof e?.colour=="string"&&Tl.includes(e.colour)?e.colour:null;return{font:t,size:Ga(e?.size,vl,xl),weight:Ga(e?.weight,Ol,kl),bold:Ua(e?.bold),italic:Ua(e?.italic),lineGap:Wa(e?.lineGap,Al,Rl),textGap:Wa(e?.textGap,Cl,Ll),colour:o}}function Ya(e){let t={};for(let o of j)t[o]=e&&o in e&&e[o]?Pl(e[o]):{...Il[o]};return t}function lf(e){let t=Ya(e),o={};for(let a of j){let s=t[a],n=`--sf-ws-${a}`;if(s.font){let i=Oe.find(r=>r.key===s.font);i&&(o[`${n}-font`]=`var(${i.cssVar})`)}s.size!==null&&(o[`${n}-size`]=`${s.size/100}em`),s.weight!==null&&(o[`${n}-weight`]=String(s.weight)),s.bold!==null&&(o[`${n}-weight-bold`]=s.bold?"700":"400"),s.italic!==null&&(o[`${n}-style`]=s.italic?"italic":"normal"),s.lineGap!==null&&(o[`${n}-line`]=String(s.lineGap)),s.textGap!==null&&(o[`${n}-track`]=`${s.textGap}em`),s.colour!==null&&(o[`${n}-color`]=_l[s.colour])}return o}function cf(e){let t=e?.word_styles??void 0,o={};for(let a of j)t&&a in t&&(o[a]=t[a]??null);return Ya(o)}import{applyMark as uf,markupTools as pf,MARKUP_TOOLS as mf,COPY_FIELD_TOOLS as ff,STOREFRONT_MARKUP as wf,tokenizeInline as gf,stripInline as bf,isSafeLinkHref as yf}from"efficient-shell/markup";import{applyMark as Hl,clearStyle as Dl,markedAt as Bl,markupTools as Ml,MARKUP_TOOLS as Fl,parseMarkup as Gl,RETIRED_MARKS as Wl,STOREFRONT_MARKUP as Ul,tokenizeInline as Sf}from"efficient-shell/markup";var Yl=new Set(["strong"]),Ka=j.map(e=>({open:L[e].delimiter,close:L[e].delimiter,kind:L[e].kind,...Yl.has(e)?{wordStart:!0}:{}})),_f=[{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`}],Kl=new Set(Ka.map(e=>e.open)),Vt=[...Ul.filter(e=>!Kl.has(e.open)),...Ka];function $l(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function $a(e){return Gl(typeof e=="string"?e:"",Vt)}var Vl=Fl.map(e=>e.style).filter(e=>!Wl.includes(e)).filter(e=>Vt.some(t=>t.kind===e));function vf(){return Ml(Vl)}var Va=Object.fromEntries(j.map(e=>[L[e].kind,L[e].delimiter]));function xf(e,t,o,a){let s=Va[a];if(!s)return Hl(e,t,o,a);let n=e.slice(t,o),i=e.slice(Math.max(0,t-s.length),t),r=e.slice(o,o+s.length);if(i===s&&r===s)return{text:e.slice(0,t-s.length)+n+e.slice(o+s.length),selectionStart:t-s.length,selectionEnd:t-s.length+n.length};let l=n||"styled text";return{text:e.slice(0,t)+s+l+s+e.slice(o),selectionStart:t+s.length,selectionEnd:t+s.length+l.length}}function Of(e,t,o,a){let s=Va[a];return s?t>=s.length&&e.slice(t-s.length,t)===s&&e.slice(o,o+s.length)===s:Bl(e,t,o,a)}function ja(e){return e.replace(/==(.+?)==/g,(t,o)=>o.startsWith("_")&&o.endsWith("_")?t:`==_${o}_==`)}function kf(e){return $a(e).map(t=>$l(t)+Xa(t.children)).join(`
96
+ `)}function Af(e,t,o){return Dl(e,t,o,Vt)}function Xa(e){return e.map(t=>t.kind==="text"?t.text:Xa(t.children)).join("")}function Rf(e){let t=o=>o.some(a=>a.kind==="link"||"children"in a&&t(a.children));return $a(e).some(o=>t(o.children))}import{VIEW_DESKTOP_MIN as jl,VIEW_TABLET_MIN as Xl}from"efficient-easel/screen/lib/content/view-tiers";var qa="v1",Za=800,za={"view-tablet":Xl,"view-desktop":jl,"view-wide":Za};function Nf(e){let t=e.startsWith("max-"),o=t?e.slice(4):e;if(o in za)return{px:za[o],max:t};let a=/^(max|min)-\[(\d+)px\]$/.exec(e);return a?{px:Number(a[2]),max:a[1]==="max"}:void 0}var If=`(min-width: ${Za}px)`,zl="data-sf-line",ql="edge",Pf={[zl]:ql},Ae=(e,t)=>e==="edge"||e!=="section"&&t;import{isNodeList as Zl}from"efficient-easel/data";var ze=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],Ja="bottom-left",z=4,Ql=z+1,Qa=40,Jl=30,ec=100,tc=60,Bf=100;var jt={"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 oc(e){let t=ze.indexOf(de(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function ac(e){return 1+oc(e).band*(Ql+1)}function Mf(e){return ac(e)+1}function de(e){return ze.includes(e)?e:Ja}function Ff(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-Qa,Math.min(Qa,Math.round(t)))}function Gf(e,t=tc){let o=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(Jl,Math.min(ec,Math.round(o)))}function Xt(e,t){let o=de(t);return e.filter(a=>de(a?.props?.placement)===o).length}function es(e){return`${jt[de(e)]} already holds ${z} boxes. Move one somewhere else first.`}function Wf(e,t){let o=e.filter(a=>a?.props?.id!==t);return ze.map(a=>{let s=Xt(o,a)>=z,n=jt[a];return s?{value:a,label:n,disabled:!0,title:es(a)}:{value:a,label:n}})}function sc(e,t){let o=t===void 0?Ja:de(t?.props?.placement);return Xt(e,o)>=z?es(o):null}var ts="HeroGroup";function Uf(e){let t=new Map,o=!1,a=e.filter(s=>{let n=de(s?.props?.placement),i=(t.get(n)??0)+1;return t.set(n,i),i<=z?!0:(o=!0,!1)});return o?a:e}function nc(e){return ze.map(t=>{let o=Xt(e,t);return{anchor:t,total:o,hidden:o-z}}).filter(t=>t.hidden>0)}function Yf(e){let t=nc(e);return t.length===0?null:t.map(({anchor:o,total:a,hidden:s})=>{let n=jt[o],i=s===1?"1 is not shown":`${s} are not shown`;return`${n} holds ${a} boxes. The published page draws the first ${z}, so ${i}. ${s===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function Kf(e,t){let o=t;if(o?.type!==ts)return null;let a=o.props?.id===void 0?"":String(o.props.id);return a?sc(ic(e,a),o):null}function ic(e,t){let o=os(e,t);return o&&o.ownerType===lc?o.siblings:[]}function $f(e,t){let o=os(e,t);return o?o.ancestorTypes.filter(a=>a===ts).length:rc}var rc=1,lc="HeroSlide";function os(e,t){let o=(a,s,n)=>{if(s>12||!a||typeof a!="object")return null;if(Zl(a)){if(a.some(i=>i?.props?.id===t))return{siblings:a,ownerType:n.at(-1)??null,ancestorTypes:n};for(let i of a){let r=i.type,l=o(i,s+1,[...n,String(r)]);if(l)return l}return null}for(let i of Object.values(a)){let r=o(i,s+1,n);if(r)return r}return null};return o(e,0,[])}import{forwardRef as cc}from"react";import{jsx as uc}from"react/jsx-runtime";function dc(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 hc=cc(function({href:t,prefetch:o,replace:a,scroll:s,shallow:n,legacyBehavior:i,passHref:r,locale:l,onClick:d,children:g,...w},P){let H=$=>{d?.($),!($.defaultPrevented||w.target==="_blank")&&$.preventDefault()};return uc("a",{ref:P,href:dc(t),onClick:H,...w,children:g})}),Xf=hc;var pc="Website";function Zf(e){return e?.trim()||pc}var as=["instagram","facebook","tiktok","youtube","x","linkedin","pinterest","whatsapp","telegram","line","wechat"],mc={instagram:"Instagram",facebook:"Facebook",tiktok:"TikTok",youtube:"YouTube",x:"X",linkedin:"LinkedIn",pinterest:"Pinterest",whatsapp:"WhatsApp",telegram:"Telegram",line:"LINE",wechat:"WeChat"},fc={};function Jf(e){if(!e||typeof e!="object")return fc;let t={};for(let o of as){let a=e[o];if(typeof a!="string")continue;let s=a.trim();!s||!/^https?:\/\//i.test(s)||(t[o]=s)}return t}function ew(e){return as.flatMap(t=>{let o=e[t];return o?[{platform:t,href:o,label:mc[t]}]:[]})}var tw=e=>`${e}_url`;function he(e,t){let o=globalThis,a=Symbol.for(e),s=o[a];return s===void 0&&(s=t(),o[a]=s),s}function Re(){return he("efficient.slot-field-blocks",()=>new Set)}var wc="dataSource",cw="dataSourceOptions",gc="dataRows",dw="countKey",hw="counts",uw="location-payment-methods",pw="shop-payment-methods",mw="delivery-options",fw="blog-categories",zt="dealers";function bc(e){return typeof e.open=="function"}var is=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function ww(e){return typeof e=="string"&&is.test(e)}var ss=new Set([zt]);function Ce(){return he("efficient.block-sources",()=>({sources:new Map,revision:0}))}var yc=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),Ec=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),ns=e=>typeof e=="string"&&e.trim()!=="";function Sc(e){if(!e||!ns(e.label))return null;if(bc(e))return{label:e.label.trim(),open:e.open};let t=e.href;return ns(t)?{label:e.label.trim(),href:t.trim()}:null}function Tc(e){if(typeof e.key!="string"||!is.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=>Re().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=Sc(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(a=>ls(a)).filter(a=>a!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(yc)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(Ec).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 gw(e){let t=e.map(Tc),o=Ce();for(let a of t)o.sources.set(a.key,a);t.length&&(o.revision+=1)}function rs(e){let t=[...Ce().sources.values()],o=[...t.filter(a=>!ss.has(a.key)),...t.filter(a=>ss.has(a.key))];return e===void 0?o:o.filter(a=>a.blocks.includes(e))}function qe(e){return Ce().sources.get(e)??null}function bw(e){return Ce().sources.get(e)?.choices??[]}function yw(){return Ce().revision}function x(e){let t=e?.[wc];return typeof t=="string"?t.trim():""}function ls(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[o,a]of Object.entries(e)){let s=B(a);s&&(t[o]=s)}return Object.keys(t).length?t:null}function _c(e){let t=e?.[gc];return Array.isArray(t)?t.map(ls).filter(o=>o!==null):null}function Ew(e,t,o=[]){let a=_c(e);if(a!==null&&(a.length||!t))return{rows:a,sample:!1};if(!t)return{rows:[],sample:!1};let s=qe(x(e))?.sample;return{rows:s?.length?s:o,sample:!0}}var b="rowField",O="rowLinkField",h="template",A="CardList",Le="hideWhenRowEmpty",qt=["Text","ImageBlock","ButtonBlock","Flex"];function q(){return{type:"slot",allow:[...qt]}}var cs=qt.filter(e=>e!=="ButtonBlock");function Zt(){return{type:"slot",allow:[...cs]}}var vc="boxes",ds={CardList:{template:Zt()},Cards:{template:q()},FAQ:{template:q()},Flex:{rowTitle:{type:"slot",allow:["Text"]},content:{type:"slot"}},Footprint:{template:q()},Grid:{content:{type:"slot"}},Hero:{slides:{type:"slot",ownPictures:!0},strip:{type:"slot",allow:["Flex"]}},HeroGroup:{content:{type:"slot"}},HeroSingle:{boxes:{type:"slot",allow:["HeroGroup"]}},HeroSlide:{groups:{type:"slot",allow:["HeroGroup"]}},Logos:{logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},OrderSummary:{template:q()},ProcessSteps:{[vc]:{type:"slot"},template:q()}};import{isNodeList as hs,slotsOf as xc,storedKeyOrder as Oc}from"efficient-easel/data";var kc={},Ac=null;function Rc(){let e=Object.fromEntries(Object.entries(ds).map(([t,o])=>[t,{fields:o}]));return Ac??={components:{...e,...kc}}}function ue(e){let t=e.props??{},o=typeof e.type=="string"?e.type:"",a=Rc(),s=o!==""&&Object.prototype.hasOwnProperty.call(a.components,o)?xc({type:o,props:t},a).map(r=>r.slot).filter(r=>!r.includes(".")):[],n=s.filter(r=>hs(t[r])),i=Oc(Object.keys(t).filter(r=>!s.includes(r)&&hs(t[r])));return[...n,...i]}function kw(e){let t=e.props??{};return ue(e).map(o=>t[o])}function Aw(e,t){let o=null;return e.forEach((a,s)=>{let n=t(a,s);n!==a&&((o??=e.slice())[s]=n)}),o??e}function Rw(e,t){let o=null;for(let a of ue(e)){let s=e.props[a],n=t(s,a);n!==s&&((o??={...e.props})[a]=n)}return o?{...e,props:o}:e}function Cc(e,t){let o=e;if(!o||!Array.isArray(o.content))return e;let a=t(o.content);return a===o.content?e:{...o,content:a}}function Cw(e,t){let o=Cc(e,t),a=e?.zones;if(!a||typeof a!="object")return o;let s=null;for(let[n,i]of Object.entries(a)){if(!Array.isArray(i))continue;let r=t(i);r!==i&&((s??={...a})[n]=r)}return s?{...o,zones:s}:o}var p="content",f="Flex",Lc="Text & media",Nc="Layout & structure",ps=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],Ic=[...ps,{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:Lc})),Pc=(ce.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Nc})),us=[...Ic,...Pc],Qt=[...ps,{type:"HeroGroup",label:Xe}],Pw=Qt.map(e=>e.type),Hc=1,Dc=Qt.filter(e=>e.type!=="HeroGroup");function Bc(e){return e<Hc?Qt:Dc}var Mc={Flex:{slot:p,choices:()=>us},Grid:{slot:p,choices:()=>us},HeroGroup:{slot:p,choices:Bc}};function Hw(e,t=0){let o=ke(Mc,e);return o?{slot:o.slot,choices:o.choices(t)}:null}import{AUTO_RULES as Fc,FOLLOW_RULES as Gc,isAuto as Wc,resolveViewValue as Uc}from"efficient-easel/screen/lib/content/view-tiers";function Yc(){return qa==="v2"?Fc:Gc}function Ze(e,t,o,a,s=Yc()){let n=Uc(e,t,o,a,s),i={},r=(l,d)=>!Wc(l)||d!=null&&d!==t;return r(o,n.tablet)&&(i.tablet=n.tablet),r(a,n.phone)&&(i.phone=n.phone),i}var Ww={left:"start",center:"center",right:"end"},Uw={left:"justify-start",center:"justify-center",right:"justify-end"},Yw={left:"",center:"mx-auto",right:"ml-auto"},ms={left:"",center:"text-center",right:"text-right"},Kc={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"}},$c={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"}},Vc={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"}},jc={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 Qe(e){return e==="left"||e==="center"||e==="right"?e:void 0}function Kw(e){return e==="start"?"left":e==="end"?"right":Qe(e)}function Xc(e,t,o){let a=Qe(e)??"left",s=Ze("same",a,Qe(t),Qe(o)),n={};return s.tablet&&s.tablet!==a&&(n.tablet=s.tablet),s.phone&&s.phone!==a&&(n.phone=s.phone),n}function $w(e,t,o,a,{atSectionLine:s=!1}={}){let n=Xc(t,o,a),i=s?Vc:Kc,r=s?jc:$c;return[n.tablet?i[e][n.tablet]:"",n.phone?r[e][n.phone]:""].filter(Boolean).join(" ")}var Jt="rowImageField",zc="boxOutsideCopy",qc={all:[{field:Jt,set:!0},{not:{context:zc,is:!0}}]},jw={any:[{field:"bgImage",set:!0},qc]},fs="boxInCopy",Zc={any:[{not:{field:Jt,set:!0}},{not:{context:fs,is:!0}}]},Xw={all:[{not:{field:"bgImage",set:!0}},Zc]},ws={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${Jt}`,set:!0}},{not:{context:fs,is:!0}}]}]};var Qc="small",Jc="dot",ed=[{label:"Small",value:"small"},{label:"Display",value:"display"}],eo=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],gs={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},td={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)]"},od={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 Zw(e){return ve(ed,Qc,e)}function bs(e){return ve(eo,Jc,e)}function Qw(e){return td[e]}function ys(e,t){return od[e][t]}var tg=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function Es(e){return eo.some(t=>t.value===e)?bs(e):void 0}var ad="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"&&Es(t)!==void 0}function og(e,t){return Z(e,t)?ad:""}var sd="[&>*: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 ag(e,t){return Z(e,t)?sd:""}function sg(e,t){if(!Z(e,t))return{};let o=Es(t),a=/^text-\[([\d.]+)em\]$/.exec(ys("small",o))?.[1],s=gs[o];return{"--sf-sep-mark":s===""?"none":JSON.stringify(s),...a?{"--sf-sep-k":a}:{}}}var vs={sectionPaddingTop:0,sectionPaddingBottom:0},Ne={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},me={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},hg=[...new Set([...Object.keys(me),...Object.keys(ms)])];function ug(e,t){let o=typeof e=="string"&&le(Ne,e)?Ne[e]:"",a=typeof t=="string"&&le(me,t)?me[t]:"";return[o,a].filter(Boolean).join(" ")}function nd(e){return e===!0||e==="wrap"?"flex-wrap":""}var id={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!"},rd={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},ld={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!"},cd={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},dd={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function ee(e,t){return typeof t=="string"&&le(e,t)?t:void 0}function oo(e,t,o){let a=Ze("same",e,t,o),s={};return a.tablet!==void 0&&a.tablet!==e&&(s.tablet=a.tablet),a.phone!==void 0&&a.phone!==e&&(s.phone=a.phone),s}function ao(e,t,o){return[e.tablet?t[e.tablet]:"",e.phone?o[e.phone]:""].filter(Boolean).join(" ")}function hd(e,t,o){return oo(ee(Ne,e)??"start",ee(Ne,t),ee(Ne,o))}function pg(e,t,o){return ao(hd(e,t,o),id,rd)}function mg(e,t,o){let a=ee(me,e)??"stretch";if(a==="stretch")return"";let s=oo(a,ee(me,t),ee(me,o));return ao(s,ld,cd)}function to(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function fg(e,t){let o=nd(e)===""?"nowrap":"wrap",a=to(t);return a&&a!==o?dd[a]:""}var wg="Block widths",xs=[{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]}],ud="data-sf-box-items",gg=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${ud}\\][^\\s"'\`]*`,"g");var bg=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function yg(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in Je?"custom":"content"}var Os=4,Ss=10;function pd(e,t){if(!Number.isInteger(t)||t<2||t>Os||e.length!==t-1||!e.every(s=>typeof s=="number"&&Number.isFinite(s)))return;let o=[],a=0;return e.forEach((s,n)=>{let i=100-a-Ss*(t-1-n),r=Math.min(i,Math.max(Ss,Math.round(s)));o.push(r),a+=r}),o}function Ts(e,t,o){if(!Array.isArray(t))return;let a=pd(t,o),s=a?[...a,100-a.reduce((i,r)=>i+r,0)]:[],n={};for(let i=0;i<Os;i+=1)n[`--${e}-${i+1}`]=s[i]??1;return n}function Eg(e,t,o){let a=Ts("sf-share",e,o),s=Ts("sf-share-tablet",t,o);return a||s?{...a,...s}:void 0}function md(e,t){let o=Array.from({length:t},()=>1),a=xs.find(i=>i.value===e);if(!a?.weights||t<1)return o;let[s,n]=a.weights;return s>1&&(o[0]=s),n>1&&(o[t-1]=n),o}function Sg(e,t){if(typeof e!="string"||!(e in Je)||e==="equal")return e;let o=md(e,t),a=o.reduce((s,n)=>s+n,0);return o.slice(0,-1).map(s=>Math.round(s/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",Je={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]`},fd=`${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 wd(e){return Array.isArray(e)?fd:typeof e=="string"?Je[e]??"":""}var ks={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}},ws,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(Je)}]}]}]},As="view-wide:max-view-desktop:flex-row!",J=`${As} [&>*: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!`,Rs={content:`${As} [&>*: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:J,bigLeft:`${J} [&>*: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:`${J} [&>*: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:`${J} [&>*: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:`${J} [&>*: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:`${J} [&>*: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]!`},gd=`${J} [&>*: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 bd(e){return Array.isArray(e)||typeof e=="string"&&e in Rs?e:null}function Tg(e){if(e.direction!=="row"||Z(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||Cs(e.columns)!==""||Ls(e.columnsTablet)!=="")return"";let t=bd(e.shareTablet);return t===null?"":typeof t=="string"?Rs[t]:gd}var yd="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function _g(e){return wd(e)===""?yd:""}var vg="Columns",xg=1,Og=3,so={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)]"},kg=xs.filter(e=>e.value==="content"||e.value==="equal"),Ag="equal",Rg=1,Cg=6,pe="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:`${pe} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${pe} [&>*]: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:`${pe} [&>*]: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:`${pe} [&>*]: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:`${pe} [&>*]: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:`${pe} [&>*]: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 Cs(e){return typeof e=="number"?Ed[e]??"":""}var Sd={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 Ls(e){return typeof e=="number"?Sd[e]??"":""}function Lg(e){return e.direction!=="row"||Z(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":Ls(e.columnsTablet)}function Ng(e){return e.direction!=="row"||Z(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":Cs(e.columns)}var Ns={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"},Is={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},Ig=Object.keys(Ns).map(Number),Pg=Object.keys(Is).map(Number);function Hg(e,t,o=!1){let a=typeof e=="number"?Ns[e]??"":"",s=Is[Number(t)]??"";return!a&&!s?"":[a,s,o?"gap-y-0!":""].filter(Boolean).join(" ")}var Td="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]",_d={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)]"},vd="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 xd(e,t){return(to(e)??to(t)??"wrap")==="nowrap"}function Dg(e,t,o,a){let s=so[Number(e)];if(!s)return"max-view-wide:flex-col";let n=xd(o,a);return Ps(e,t)?n?vd:Td:n?_d[Number(e)]:s}function Bg(e,t){return Number(e)in so&&!Ps(e,t)}function Ps(e,t){return Number(e)in so&&t==="content"}var Mg="Block spacing",Fg=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],Od="sf-box-gap-only";function Gg(e){return e==="gap"?Od:""}var _s={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},kd={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function Wg(e,t,o){let a=n=>ee(_s,n),s=oo(e==="gap"?"gap":"each",a(t),a(o));return ao(s,_s,kd)}var Hs={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Vg,tag:jg,...Ad}=Hs.defaultProps,E=Ad,_={...E,tone:"dim"},Rd={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},y={...Rd,direction:"column",...vs},M=(e,t=e,o=e,a=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:o,sectionPaddingRightPhone:a,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:a}),Cd=e=>({fillColor:e}),Ds=(e,t,o={})=>({...y,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?Cd(t):{},...o}),S=(e,t,o,a)=>({sizeToken:{step:e,px:t,...a?{stepPhone:a}:{},...o?{pxPhone:o}:{}}}),Xg=e=>({textStyle:"body-1",...S("body",e),lineHeight:1.625}),Bs={case:"upper"},no={textStyle:"body-5",...Bs},io=(e,t)=>({...S("label",e,t),letterSpacing:.2,...Bs}),ro=(e,t)=>({...no,...io(e,t)});function T(e,t,o=""){return e.map((a,s)=>{let n=o?`${o}.${s}`:String(s),i={...a.props??{}};for(let[r,l]of Object.entries(a.slots??{}))i[r]=T(l,t,n);return{type:a.type,props:{...i,id:t(a.type,n)}}})}function W(e,t){return typeof e.id=="string"&&e.id.trim()?e.id:t}var fe=(e,t)=>(o,a)=>a==="0"?`${e}~${t}`:`${e}~${t}.${a.slice(2)}`;function U(e,t,o,a){return e[t]!==void 0?e:{...e,[t]:a(W(e,o))}}var we={min:0,max:360,step:1},Ms="angle";function Zg(e){let t=D(e);if(t===void 0)return null;let o=Math.min(we.max,Math.max(we.min,t));return o===we.min||o===we.max?null:{rotate:`${o}deg`}}import{MEDIA_ZONES as Ld,MEDIA_ZONE_LABELS as Nd}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as Id,hoverKindsOf as tt,motionSeconds as et}from"efficient-shell/format";var R="hover",ab="_gHover",Pd={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},te="highlight",Hd="Highlight",sb=["none",te],nb={none:Pd.none,[te]:Hd};function Dd(e){return e[R]===te?te:"none"}var ib="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)]",rb="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 lb(e,t){return Dd(e)!==te?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var Bd=tt(["none","lift"]);function cb(e){let t=e[R];return Bd.includes(t)?t:"none"}var Ws=tt(["none","nextImage","rotate"]),k={kind:R,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},uo="spinOnHover",Fs=we,Us={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},db=Object.keys(Us);function Md(e){return Us[e]??"none"}var Fd=Id.rotateFallbackDeg,Gd=e=>e==="rendering"?"renderings":e,Wd=e=>e==="renderings"?"rendering":e,Ys=Object.freeze(Ld.filter(e=>e!=="videos").map(Gd)),hb=Object.freeze(Object.fromEntries(Ys.map(e=>[e,Nd[Wd(e)]]))),Ud=["finish","first"],ub={finish:"Same finish",first:"First group"},Yd=["card","picture"],pb={card:"Whole card",picture:"Picture"},lo={kind:"photos",group:"finish",cover:"card"},co=(e,t,o)=>e.includes(t)?t:o;function Ks(e){return{kind:co(Ys,e[k.mediaKind],lo.kind),group:co(Ud,e[k.mediaGroup],lo.group),cover:co(Yd,e[k.cover],lo.cover)}}function mb(){return{field:k.kind,is:"nextImage"}}function Kd(e,t){let o=e[k.kind];if(Ws.includes(o))return o;let a=e[uo];return typeof a=="boolean"?a?"rotate":"none":t}function $d(e){let t=D(e);return t===void 0?Fd:Math.min(Fs.max,Math.max(Fs.min,t))}function fb(e,t){let o=Md(t),a=Kd(e,o);return{kind:a,angle:a==="rotate"?$d(e[k.angle]):null,duration:et("hover","duration",a==="rotate"?e[k.duration]:void 0),delay:et("hover","delay",a==="rotate"?e[k.delay]:void 0),...a==="nextImage"?{media:Ks(e)}:{}}}function wb(e){let t={field:k.kind,in:[...Ws]};return{any:[{field:k.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:uo,is:!1}}:{field:uo,is:!0}]}]}}var $s=tt(["none","mono"]),Vd=tt(["none","nextImage","mono"]),Vs={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},gb=Object.keys(Vs);function jd(e){return Vs[e]??"none"}var js={zoom:"hoverZoom",darken:"hoverDarken"},ho={min:100,max:150,step:1,unit:"%"};function Xd(e){let t=D(e[js.zoom]);if(t===void 0)return null;let o=Math.min(ho.max,Math.max(ho.min,t));return o===ho.min?null:String(o/100)}function zd(e){let t=D(e[js.darken]);return t!==void 0&&t>0?t:null}var bb="hoverShow",yb="cardHover",Eb="always",qd=["ImageBlock","Flex"];function Zd(e,t,o=$s){let a=e[R];return o.includes(a)?a:t}function Sb(e,t=""){let o=qd.includes(t)?Vd:$s,a=Zd(e,jd(t),o),s=a==="mono";return{kind:a,duration:et("hover","duration",s?e[k.duration]:void 0),delay:et("hover","delay",s?e[k.delay]:void 0),...a==="nextImage"?{media:Ks(e),...t==="Flex"?Gs(e):{}}:Gs(e)}}function Gs(e){let t=Xd(e),o=zd(e);return{...t?{zoom:t}:{},...o?{darken:o}:{}}}function Tb(){return{not:{field:R,is:"nextImage"}}}function _b(e){return e==="none"?{field:R,in:["mono","nextImage"]}:{not:{field:R,is:"none"}}}function vb(e){return e==="none"?{field:R,is:"mono"}:{not:{field:R,in:["none","nextImage"]}}}var kb=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),Xs=()=>({_partStyles:{text:{...no,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var ge="Cards",Qd={...y,gap:12,gapPhone:12,...M(32,32,28,28)},Jd={textStyle:"heading-3",...S("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},Ie={textStyle:"body-1",...S("body",15),lineHeight:1.6},u=(e,t,o,a=!1)=>({type:"Text",props:{...t,text:"",[b]:e,_partStyles:{text:{...a?Xs()._partStyles?.text??{}:{},...o}}}}),be={title:"title",body:"body"},ot={title:"name",body:"note"},eh=(e=be)=>({type:f,props:{...Qd,name:"Card"},slots:{[p]:[u(e.title,{...E,tag:"p",widthFit:"fill"},Jd),u(e.body,{..._,tag:"p",widthFit:"fill"},Ie)]}}),qs=(e,t)=>T([eh(t)],e),zs={label:be.title,href:"href"},th={textStyle:"body-1",fontRole:"heading",color:"text",...S("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},oh=Ds(9,"main",{[Ms]:45}),ah=(e=!1)=>({type:f,props:{...y,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...M(32,28),[O]:zs.href,...e?{[R]:te}:{}},slots:{[p]:[{type:f,props:{...oh,name:"Mark"}},u(zs.label,{...E,tag:"p",widthFit:"fill"},th)]}}),Zs=e=>fe(e,"card"),Qs=(e,t=!1)=>T([ah(t)],e);var po="ArticleBody",sh={textStyle:"heading-3",...S("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},nh={...Ie,align:"center"},Js=640,ih=()=>[u("heading",{...E,tag:"h2",align:"center",maxWidth:Js},sh),u("paragraph",{..._,tag:"p",align:"center",maxWidth:Js},nh)],rh=e=>T(ih(),e);function lh(e){return rh((t,o)=>`${e}~${o==="0"?"heading":"paragraph"}`)}function en(e){return U(e,h,po,lh)}import{addShowWhenFacts as ch}from"efficient-shell/format";import{showWhenOf as Ub,shownForOption as Yb,truthy as Kb,withRowRules as $b,withRowsShownWhen as tn,withShowWhen as Vb}from"efficient-shell/format";var jb=ch;function Xb(e,t,o){return e.slice(0,-1).reduceRight((a,s)=>({any:[{all:[t(s),o(s)]},{all:[{not:t(s)},a]}]}),o(e[e.length-1]))}var dh="inline",hh=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var uh={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"}},Jb="SectionHeader";function ey(e){return le(uh,e)}function on(e){return ve(hh,dh,e)}var ph=new Set(["Flex"]);function ty(e){return!!e?.type&&ph.has(e.type)}var an={not:{field:"headPlacement",is:"own-box"}},oy={not:an};function ay(e,t,o){return tn(e,o,an)}var ny="data-sf-spec-region";function iy(e){return e.writable===!0&&e.sized===!0}function ry(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 ly(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 sn(e){return`@${e}`}function cy(e,t){if(!t.startsWith("@"))return null;let o=t.slice(1);return o in e?o:null}function dy(e,t){return t&&t in e?t:null}function rn(e,t){if(e!==ge)return t;if(t[h]!==void 0)return nn(t);let o=W(t,ge),a=Zs(o);if(t.cardStyle==="label-only"){let n=Array.isArray(t.items)&&t.items.some(i=>B(i?.href)!==void 0);return nn({...t,[h]:Qs(a,n)})}let s=x(t)?ot:be;return{...t,[h]:qs(a,s)}}var mh=e=>{let[t,o]=e?[be,ot]:[ot,be];return new Map([[t.title,o.title],[t.body,o.body]])};function ln(e,t){let o=null;return e.forEach((a,s)=>{let n=a?.props;if(!n)return;let i=n,r=n[b];a.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[b]:t.get(r)});let l=n[p];if(Array.isArray(l)){let d=ln(l,t);d!==l&&(i={...i,[p]:d})}i!==n&&(o??=[...e],o[s]={...a,props:i})}),o??e}function nn(e,t){if(!Array.isArray(e[h]))return e;let o=mh(!!x(e)),a=t?new Map([...o].filter(([n,i])=>t(i)&&!t(n))):o;if(!a.size)return e;let s=ln(e[h],a);return s===e[h]?e:{...e,[h]:s}}var cn="OrderSummary";var fh="label";function at(e){return U(e,h,A,t=>T([wh()],fe(t,"item")))}function wh(){return{type:f,props:{...y,name:"Item"},slots:{[p]:[u(fh,{...E,tag:"p"},Ie)]}}}var dn="ProcessSteps",gh={eyebrow:"eyebrow",title:"title",copy:"copy",image:"image",tag:"tag",specs:"specs"},ye=gh,bh=()=>({type:f,props:{...y,name:"Row",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[p]:[{type:f,props:{...y,name:"Picture",direction:"column",gap:12},slots:{[p]:[{type:"ImageBlock",props:{[b]:ye.image,aspect:"1/1",fit:"contain"}},u(ye.tag,{..._,tag:"p"},ro(11))]}},{type:f,props:{...y,name:"Words",direction:"column",gap:16},slots:{[p]:[u(ye.eyebrow,{...E,tag:"p"},{...ro(13),color:"accent"}),u(ye.title,{...E,tag:"h2"},{textStyle:"heading-2",...S("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),u(ye.copy,{..._,tag:"p"},{textStyle:"body-1",...S("body",15),lineHeight:1.6}),{type:A,props:{[b]:ye.specs}}]}}]}});function hn(e){return e.map(t=>{let o=t.props;for(let a of ue(t))o={...o,[a]:hn(o[a])};return t.type===A?{...t,props:at(o)}:{...t,props:o}})}function Ly(e){return hn(T([bh()],fe(e,"row")))}var yh="label",Eh=()=>({type:"LogoBlock",props:{[b]:yh}}),st="Logos",un=e=>T([Eh()],()=>`${e}~logo`);function pn(e){return x(e)?U(e,h,st,un):e}function Dy(e){if(!x(e))return e;let t=e[h];return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:{...e,[h]:un(W(e,st))}}var mo={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}},My=mo;var fo="FAQ",Sh="question",Th="answer",_h={textStyle:"body-1",fontRole:"heading",...S("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},vh={textStyle:"body-1",...S("body",15),lineHeight:1.7};function Xy(){return Object.keys(mo).map(sn)}var xh=()=>({type:f,props:{...y,gap:0,name:"Question"},slots:{rowTitle:[u(Sh,{...E,tag:"p",widthFit:"fill"},_h)],[p]:[u(Th,{..._,tag:"p",widthFit:"fill",maxWidth:760},vh)]}});function Oh(e){return on(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>B(e[t])!==void 0)}function mn(e){return Oh(e)?e:U(e,h,fo,t=>{let o=0;return T([xh()],a=>a===f?`${t}~row`:`${t}~row.${o++}`)})}var kh=["below","left","right"];function Ah(e){return kh.includes(e)?e:"below"}function wo(e){return Ah(e)!=="below"}function go(e){return Array.isArray(e)?e.map(go):!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,go(o)]))}var Y=e=>JSON.stringify(go(e));var it="Footprint",gn=e=>x(e)===zt,nt=io(11),Rh={textStyle:"body-1",...S("body",18),weight:500,lineHeight:1.2},nE=()=>({type:f,props:{...y,gap:8,gapPhone:8,...M(20,24,20,20),name:"Office"},slots:{[p]:[u("badge",{...E,tag:"p",widthFit:"fill"},nt,!0),u("role",{...E,tag:"p",widthFit:"fill"},nt,!0),u("city",{...E,tag:"p",widthFit:"fill"},Rh),u("country",{..._,tag:"p",widthFit:"fill"},nt),u("address",{..._,tag:"p",widthFit:"fill"},nt),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[b]:"linkLabel",[O]:"href"}}]}}),bn={textStyle:"body-1",fontRole:"heading",...S("body",16),weight:500,lineHeight:1.25},yo={textStyle:"body-1",...S("body",14),lineHeight:1.5},Ch=()=>({type:f,props:{...y,gap:4,gapPhone:4,...M(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[p]:[u("city",{...E,tag:"p",widthFit:"fill"},bn),u("address",{..._,tag:"p",widthFit:"fill"},yo),u("phone",{..._,tag:"p",widthFit:"fill"},yo)]}});function yn(e){let t=W(e,it),o=0;return T([Ch()],a=>a===f?`${t}~office`:`${t}~office.${o++}`)}function En(e){return Array.isArray(e[h])&&e[h].length>0&&Y(e[h])===Y(yn(e))}var Sn=e=>e===void 0||Array.isArray(e)&&e.length===0;function fn(e){return wo(e.listPosition)?!Sn(e[h])||gn(e)?e:{...e,[h]:yn(e)}:En(e)?{...e,[h]:[]}:e}var Lh=bn,Nh=yo,Ih={textFit:"line"},Eo=(e,t,o="",a={},s={})=>{let n=u(e,{...t?_:E,tag:"p",...a},{...Nh,...s});return o?{...n,props:{...n.props,[O]:o}}:n},bo=(e,t,o,a)=>({type:f,props:{...y,gap:0,gapPhone:0,[Le]:[e],name:a},slots:{[p]:[Eo(e,t,o,Ih,{align:"right"})]}}),Ph=e=>({type:f,props:{...y,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:{[p]:[{type:f,props:{...y,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[p]:[{type:f,props:{...y,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[p]:[u("name",{...E,tag:"p",widthFit:"fill"},Lh),Eo("address",!0)]}},Eo("place",!0,"",{widthFit:"fill"})]}},{type:f,props:{...y,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[p]:[bo("distance",!0,"","Dealer distance"),bo("phone",!1,"phoneHref","Dealer phone"),bo("website",!1,"websiteHref","Dealer website")]}}]}}),Hh=e=>{let t=Ph(e),o={type:f,props:{...y,...M(0,12),name:"Dealer"},slots:{[p]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:o};function So(e,t){let o=W(e,it),a=0;return T([Hh(t)],(s,n)=>n==="0"?`${o}~dealer`:`${o}~dealer.${a++}`)}function wn(e){if(!Array.isArray(e[h])||e[h].length===0)return!1;let t=Y(e[h]);return t===Y(So(e,!0))||t===Y(So(e,!1))}function Tn(e){if(gn(e)){let o=So(e,!wo(e.listPosition));return!(Sn(e[h])||En(e)||wn(e))||Y(e[h]??[])===Y(o)?e:{...e,[h]:o}}if(!wn(e))return fn(e);let t={...e,[h]:[]};return fn(t)}var Dh="Card template",_n="items",vn="itemFields";function oe(e,t){if(!t)return e;let o=typeof t=="string"?[t]:t;return e.filter(a=>o.includes(a.kind??"text"))}var Bh=[{block:cn,typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:fo,typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>mn(e)},{block:it,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=>Tn(e)},{block:ge,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=>rn(ge,e)},{block:dn,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:st,fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>pn(e)},{block:A,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:_n,seed:e=>at(e)},{block:po,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>en(e)}];function v(){return he("efficient.card-templates",()=>new Map(Bh.map(e=>[e.block,e])))}function xE(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===rt)throw new Error(`The card template of ${t.block} names "${rt}" 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 s=a.some(i=>i.fields);if(s&&(t.fields.some(i=>i.everySource)||rs(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);s?Re().add(t.block):Re().delete(t.block);let n=B(t.typedRows);v().set(t.block,{block:t.block,...a.length?{slots:a}:{},fields:t.fields.map(i=>({...i})),blocks:o,typedRows:n,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function Mh(e,t){let o=e?v().get(e)?.seed:void 0;return o?o(t):t}function OE(e,t){let o=Gh(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 s={...t};for(let r of a)delete s[r];let n=e?v().get(e)?.seedOnInsert:void 0,i=n?n(s):Mh(e,s);return i===s?t:i}function kE(){for(let e of v().values())if(e.blocks?.length)return!0;return!1}function AE(e){return v().get(e)?.blocks??[]}function RE(e){for(let t of v().values())if(t.blocks?.some(o=>o.type===e))return!0;return!1}function CE(e){return typeof e=="string"&&v().get(e)?.typedRows||""}function LE(e){return typeof e=="string"&&v().get(e)?.linesBetween===!0}function NE(e){return typeof e=="string"&&v().has(e)}var Fh=[{slot:h}];function lt(e){if(typeof e!="string")return[];let t=v().get(e);return t?t.slots??Fh:[]}function Gh(e){return lt(e).map(t=>t.slot)}function Wh(e,t){return lt(e).some(o=>o.slot===t)}function IE(e,t){let o=lt(e).find(a=>a.slot===t);return o?o.label??Dh:null}function To(e,t){return t?lt(e).find(o=>o.slot===t)?.fields:void 0}function Uh(e,t){let o=v().get(e)?.fields??[];return oe(o,t)}function Yh(e,t){if(typeof e!="string")return"";let o=To(e,t);return(o?oe(o,"list"):Uh(e,"list"))[0]?.key??""}function Kh(e,t,o){return vo(e)||Yh(t,o)}function xn(e,t,o){let a=typeof e?.type=="string"?e.type:"";if(!a)return[];let s=To(a,o);if(s)return oe(s,t);let n=v().get(a)?.fields??[],i=qe(x(e?.props))?.fields,r=i?.length?[...i.map(l=>({...l})),...n.filter(l=>l.everySource&&!i.some(d=>d.key===l.key))]:n;return oe(r,t)}function $h(e,t,o,a){if(!e)return null;let s=To(e,a);return s?s.find(n=>n.key===t)??null:o?xn(o).find(n=>n.key===t)??null:v().get(e)?.fields.find(n=>n.key===t)??null}function _o(e,t){return!e||!t?null:e.fields?.find(o=>o.key===t)??$h(e.ownerType,t,e.owner,e.slot)}function PE(e,t){return _o(e,t)?.plain===!0}function HE(e,t){return _o(e,t)?.kind==="date"}function vo(e,t=b){let o=e?.[t];return typeof o=="string"?o.trim():""}function DE(e,t){return e.key||String(t+1)}function BE(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 ME(e,t){let o=e[Le];return!t||!Array.isArray(o)||!o.length?!1:o.every(a=>typeof a!="string"||!t[a]?.trim())}var xo={Text:{text:b,href:O},ImageBlock:{src:b,href:O},ButtonBlock:{label:b,href:O},LogoBlock:{alt:b,href:O},Breadcrumb:{currentCrumb:b}},FE=xo,Vh=new Set(["ButtonBlock.label","LogoBlock.alt"]);function GE(e,t,o){return jh(e,t,o)&&!Vh.has(`${e}.${o}`)}function jh(e,t,o){return Xh(e,t,o)!==""}function Xh(e,t,o){let a=xo[e]?.[o];return a?vo(t,a):""}function On(e,t){return!t||!e?null:e[t]??""}function zh(e,t){return On(e,t)?.trim()||void 0}function WE(e,t,o,a,s,n){if(!o)return t;let i=null;for(let[r,l]of Object.entries(xo[e]??{})){let d=vo(t,l),g=On(o,d);if(g!==null){if(i??={...t},l===O){i[r]=zh(o,d);continue}i[r]=_o({ownerType:a,fields:s,slot:n},d)?.mark==="accentItalic"?ja(g):g}}return i??t}function ct(e,t){let o=e?.data?.content;if(!Array.isArray(o)||typeof t!="string")return;let a=(n,i)=>{for(let r of n){if(r?.props?.id===t)return i;for(let l of ue(r??{})){let d=r.props[l],g=Wh(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}}},s=a(o,null);return s===void 0?null:s}function qh(e,t){let o=ct(e,t);return o&&o.owner}function Zh(e,t){let o=ct(e,t);return o&&o.slot}function UE(e,t){let o=ct(e,t);return o&&(o.direct?o.owner:null)}function YE(e,t){let o=ct(e,t);if(o!==void 0)return o===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:o.nested,underBox:o.underBox}}function KE(e,t,o){if(t?.type!==A)return[];let a=qh(e,t.props?.id);if(!a){let r=qe(x(t.props))?.fields,l=r?.length?r.map(w=>({...w})):Qh(t.props),d=(v().get(A)?.fields??[]).filter(w=>w.everySource&&!l.some(P=>P.key===w.key)),g=[...l,...d];return oe(g,o)}let s=Zh(e,t.props?.id)??void 0,n=Kh(t.props,a.type,s),i=n&&xn(a,"list",s).find(r=>r.key===n)?.fields||[];return oe(i,o)}function $E(e,t){return{[b]:"",[_n]:e.map(o=>({...o})),[vn]:t.map(o=>({...o}))}}function Qh(e,t){let o=e?.[vn];if(!Array.isArray(o))return[];let a=o.flatMap(s=>{if(!s||typeof s!="object")return[];let{key:n,label:i,kind:r,multiline:l,alt:d,next:g}=s;if(typeof n!="string"||!n||typeof i!="string")return[];let w=r==="image"||r==="link"||r==="colour"||r==="date"?r:void 0;return[{key:n,label:i,...w?{kind:w}:{},...l===!0?{multiline:!0}:{},...typeof d=="string"&&d?{alt:d}:{},...typeof g=="string"&&g?{next:g}:{}}]});return oe(a,t)}var rt="HostPart";import{parseHexColor as Jh}from"efficient-shell/format";var Oo=[{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}],eu=Oo.filter(e=>e.ink);function kn(e){let t={color:e.fg};for(let{role:o,token:a}of eu)t[a]=e[o];return t}var tu={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},ou=Object.freeze(kn(tu)),au={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)"},su=Object.freeze(kn(au));function zE(e,t){let o=e?Jh(e):null;return o?_a(o,t)?ou:su:null}var An=-1,nu="sf-section-accent",QE="Color",Rn=new Set(["CategoryBar","DocTabs"]),JE=new Set(["Flex"]),iu=0;function ru(e){return e===An?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:iu}function eS(e){return e??An}function lu(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 Oo)o[`--sf-sec-${a}`]=`var(${t}-${a}, var(--theme-${a}))`;return o}function tS(e){let t=ru(e.sectionAccent);return t===null?null:{className:nu,style:lu(t)}}import{FOLLOW_RULES as du,resolveViewValue as hu,viewKeyAt as uu}from"efficient-easel/screen/lib/content/view-tiers";var ko={desktop:"desktop",tablet:"tablet",phone:"mobile"},cu=Object.keys(ko);function Cn(e){return ko[e??"desktop"]}function aS(e){return cu.find(t=>ko[t]===e)??"desktop"}var Co=["desktop","tablet","phone"],Ro=(e,t)=>uu(e,Cn(t)),Ln=e=>e.flatMap(t=>Co.map(o=>Ro(t,o))),Ao=e=>e===null||e===""?void 0:e,pu=(e,t,o)=>hu("same",Ao(e),Ao(t),Ao(o),du);function Nn(e,t,o,a=e[t]){return pu(a,e[Ro(t,"tablet")],e[Ro(t,"phone")])[o]}import{createContext as di,createElement as Be,useContext as Me}from"react";import{Fragment as sp,jsx as N}from"react/jsx-runtime";import{createContext as Yo,useContext as I}from"react";import{jsx as Te,Fragment as $n}from"react/jsx-runtime";import{createContext as Lu,useContext as Vn,useEffect as Nu,useRef as Iu,useState as Pu}from"react";import{SCROLL_ZOOM_VAR as Yn}from"efficient-shell/format";import{readEntrance as fu}from"efficient-shell/format";var Pe={kind:"entrance",from:"entranceFrom",duration:"entranceDuration",delay:"entranceDelay"},Lo="sectionAnimation",mu=Ln(Object.values(Pe));var In="sf-entrance",wu=e=>e!=null&&e!=="";function gu(e,t){let o=e[Pe[t]];return t==="kind"&&!wu(o)?e[Lo]:o}var dt=(e,t,o)=>Nn(e,Pe[t],o,gu(e,t));function No(e,t){return fu(dt(e,"kind",t),dt(e,"from",t),dt(e,"duration",t),dt(e,"delay",t))}var bu=e=>({desktop:No(e,"desktop"),tablet:No(e,"tablet"),phone:No(e,"phone")});function wS(e){let t=bu(e);return Co.every(o=>t[o].kind==="none")?null:t}var yu={...Object.fromEntries([...Rn].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)",[rt]:"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"},gS=new Set(Object.keys(yu));function Pn(e,t,o,a){return t<=0?1/0:a?2*(e-4)/(t+o):2*(e-o/2-4)/t}function Hn(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 s=e.left+e.width/2,n=e.top+e.height/2,i=o;for(let{rect:r,mark:l}of t){let d=Math.abs(r.left+r.width/2-s),g=Math.abs(r.top+r.height/2-n),w=Math.max(Pn(d,e.width,r.width,l),Pn(g,e.height,r.height,l));i=Math.min(i,Math.max(1,w))}return i}var Dn=["cover","contain"],Eu={cover:"Cover",contain:"Contain"},ES="Image fit";function Io(e,t){return Dn.includes(e)?e:t}function SS(){return Dn.map(e=>({label:Eu[e],value:e}))}function TS(e){return e==="contain"?"object-contain":"object-cover"}function Po(e,t){return e!=="auto"&&t==="cover"}function ht(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}function OS(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"screen":return"aspect-[16/10]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";case"custom":return"aspect-[var(--shape-ratio)]";default:return"aspect-square"}}var Ee=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"screen",image:"16/10",ratio:[16,10],label:"Screen 16:10"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"},{shape:"custom",image:"custom",ratio:null,label:"Custom W:H"}],Ho="custom",Su=/^(\d{1,4}(?:\.\d{1,2})?)\/(\d{1,4}(?:\.\d{1,2})?)$/;function ut(e){if(typeof e!="string")return null;let t=Su.exec(e);if(!t)return null;let o=Number(t[1]),a=Number(t[2]);return o>0&&a>0?[o,a]:null}function He(e){return Ee.every(t=>t.shape!==e&&t.image!==e)&&ut(e)!==null}function kS(e,t,o){let a=Ee.find(s=>s.ratio!==null&&s.ratio[0]*t===s.ratio[1]*e);return a?a[o]:`${e}/${t}`}function Do(e){return`${e[0]} / ${e[1]}`}var Tu={desktop:"--shape-ratio",tablet:"--shape-ratio-tablet",phone:"--shape-ratio-phone"};function Bn(e){let t={};for(let o of["desktop","phone","tablet"]){let a=He(e[o])?ut(e[o]):null;a&&(t[Tu[o]]=Do(a))}return Object.keys(t).length?t:null}function AS(e){return Ee.filter(t=>e.includes(t.shape))}function RS(e){return e==="below"}var CS=`linear-gradient(180deg, transparent 40%, ${ht(.85)} 100%)`,LS=`linear-gradient(0deg, transparent 40%, ${ht(.85)} 100%)`,NS=ht(.45);var _u=Ee.map(e=>e.image).filter(e=>e!==Ho),pt=e=>He(e)?Ho:e,F="fill",BS={label:"Fill row",value:F,showWhen:ks},Bo="4/3",Mn={frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},Gn={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:Mn,tablet:Mn,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 MS(e,t,o){return t&&!Se(o)?"all":e??"wide"}function Fn(e){return Gn[e]}var FS=Gn.all;function Wn(e){return e?`${e.img} h-full w-full`:"relative h-full w-full"}var vu={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]",custom:"aspect-[var(--shape-ratio)]"},xu={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]",custom:"view-wide:aspect-[var(--shape-ratio)]"},Ou={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]",custom:"max-view-wide:aspect-[var(--shape-ratio-phone)]"},ku={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]!",custom:"max-view-wide:aspect-[var(--shape-ratio-phone)]!"},Mo=e=>_u.includes(e)||He(e),Se=Mo;function GS(e){let t=Mo(e)?He(e)?ut(e):Ee.find(o=>o.image===e)?.ratio:null;return t?Do(t):null}function WS(e,t){return Bn({desktop:e,phone:t})}function US(e,t,o){return o==="contain"?!0:[e,t??e].every(a=>a!==F&&(!Mo(a)||a==="auto"))}function YS(e,t){return e===F&&!t?Bo:e}function KS(e){return e===F?Bo:Se(e)?e:void 0}function Un(e,t){return Se(t)?t===e?null:t:e===F?Bo:null}function Au(e,t){let o=Un(e,t);return Po(e,"cover")||o!==null&&Po(o,"cover")}function Ru(e,t,o){return Io(e,"cover")==="cover"&&Au(t,o)}function $S(e,t,o,a){return e==="desktop"?Ru(t,o,a):Io(t,"cover")!=="cover"?!1:Cu(e==="tablet"?o:Un(o,a)??o)}var Cu=e=>e===F||Se(e)&&e!=="auto";function VS(e,t,o="wide"){return e===F&&o==="all"?Fn("all").frame:t===null?Se(e)?vu[pt(e)]:"":[e===F?Fn(o).frame:Se(e)?xu[pt(e)]:"",e===F&&o==="desktop"?ku[pt(t)]:Ou[pt(t)]].filter(Boolean).join(" ")}var ft=Lu(null);function eT({attrs:e,style:t,children:o}){return Te(ft.Provider,{value:{attrs:e,style:t},children:o})}function jn({children:e}){return Te(ft.Provider,{value:null,children:e})}function tT({fill:e=null,children:t}){let o=Vn(ft);return o?Te("div",{className:Wn(e),...o.attrs,style:o.style,children:t}):Te($n,{children:t})}var mt="data-sf-mark";function Kn(e){let t=e.getBoundingClientRect(),o=e.firstElementChild,a=o&&typeof o.offsetWidth=="number"?o:e,s=Math.max(a.offsetWidth,e.offsetWidth),n=Math.max(a.offsetHeight,e.offsetHeight);return{left:t.left+t.width/2-s/2,top:t.top+t.height/2-n/2,width:s,height:n}}function Hu(e){return e.closest(`[${mt}]`)||e.closest("style, script")?!1:[...e.childNodes].some(t=>t.nodeType===3&&(t.textContent??"").trim()!=="")}var Xn=e=>e.closest(`.${In}`)??e.ownerDocument.body;function Du(e,t){let o=Xn(e),a=[];for(let s of o.querySelectorAll(`[${mt}]`))s!==e&&a.push({rect:Kn(s),mark:!0});for(let s of o.querySelectorAll("*")){if(s.contains(e)||!Hu(s))continue;let n=s.getBoundingClientRect();n.width===0||n.height===0||a.push({rect:{left:n.left,top:n.top,width:n.width,height:n.height},mark:!1})}return Hn(Kn(e),a,t)}function oT({inCell:e=!1,children:t}){let o=Vn(ft),a=Iu(null),[s,n]=Pu(null),i=o?Number.parseFloat(String(o.style[Yn])):Number.NaN;if(Nu(()=>{let l=a.current;if(!l||!Number.isFinite(i))return;let d=()=>n(Du(l,i));d();let g=l.ownerDocument.defaultView?.ResizeObserver;if(!g)return;let w=new g(d),P=Xn(l);w.observe(l),w.observe(P);for(let H of P.querySelectorAll(`[${mt}]`))H!==l&&w.observe(H);return()=>w.disconnect()},[i]),!o)return Te($n,{children:t});let r=Number.isFinite(i)?{...o.style,[Yn]:String(s??1)}:o.style;return Te("span",{ref:a,className:e?"inline-flex min-w-0 max-w-full items-center justify-center":"inline-flex items-center justify-center",[mt]:"",...o.attrs,style:r,children:t})}import{FOLLOW_RULES as Bu,VIEW_TIERS as Mu,resolveViewValue as Fu}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as Gu}from"efficient-easel/screen/lib/content/length-units";var Wu=["auto","fixed","screen","fill"],Uu=Gu.filter(e=>e==="px"||e==="%"),Yu="svh",Ku="vh",$u="var(--sf-header-h, 88px)",Vu={min:40,max:2e3,step:10,fallback:600},ju={min:10,max:200,step:5,fallback:100},Xu="sf-section-minh",De="grid-cols-[minmax(0,1fr)]",zn={base:"--sf-section-minh",small:"--sf-section-minh-s"},Go=e=>typeof e=="string"&&Wu.includes(e),zu=e=>typeof e=="string"&&Uu.includes(e);function wt(e){let t=Go(e.sectionHeightMode)?e.sectionHeightMode:"auto",o=t==="screen"?"%":zu(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=t==="screen"?ju.fallback:Vu.fallback,s=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:t,value:s,unit:o}}function Qn(e){let{mode:t,value:o,unit:a}=wt(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&a==="px")return[`${o}px`,null];let s=o/100,n=i=>t==="screen"?`(100${i} - ${$u})`:`100${i}`;return[`calc(${n(Ku)} * ${s})`,`calc(${n(Yu)} * ${s})`]}function Jn(e){let t=Qn(e);if(!t)return;let[o,a]=t;return{display:"grid",[zn.base]:o,...a?{[zn.small]:a}:{}}}var iT=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),rT="Height",ei="sf-section-minh-phone",qn={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function ti(e){return Go(e.sectionHeightModePhone)}function qu(e){return wt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var oi="sf-section-minh-tablet",Zn={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function ai(e){return Go(e.sectionHeightModeTablet)}function Zu(e){return wt({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function Wo(e){let t=Jn(e),o=(r,l,d)=>Qn({sectionHeightMode:r,sectionHeightValue:l,sectionHeightUnit:d})??(t?["auto",null]:void 0),a=ai(e)?o(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,s=ti(e)?o(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):a;if(!t&&!a&&!s)return null;let n=[Xu,De],i={...t??{}};return a&&(n.push(oi),i[Zn.base]=a[0],a[1]&&(i[Zn.small]=a[1])),s&&(n.push(ei),i[qn.base]=s[0],s[1]&&(i[qn.small]=s[1])),{className:n.join(" "),style:i}}function lT(e){return Wo(e)!==null||gt(e).length>0}var Fo=`grid ${De}`,si="h-full",Qu="view-tablet:max-view-desktop:grid",ni="max-view-tablet:grid",Ju="view-wide:max-view-desktop:grid",ep="max-view-wide:grid",tp=`${ni} ${De}`;function cT(e,{atSectionLine:t=!1}={}){if(gt(e).length>0)return Fo;let o=Wo(e);if(!o)return"";if(Jn(e))return Fo;let a=o.className.split(" "),s=t?Qu:Ju,n=t?ni:ep;if(!a.includes(oi))return t?tp:`${n} ${De}`;let i=a.includes(ei);return[s,i?n:"",De].filter(Boolean).join(" ")}var ii="data-sf-height-fill",op=Mu,ap={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 gt(e){let t=e,o=Fu("heightMode",wt(t).mode,ai(t)?Zu(t).mode:null,ti(t)?qu(t).mode:null,Bu),a={desktop:o.desktop==="fill",tablet:o.tablet==="fill",mobile:o.phone==="fill"};return op.filter(s=>a[s])}function dT(e){return gt(e).map(t=>ap[t]).join(" ")}function hT(e){let t=Wo(e);return gt(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:Fo}}var ri={stretchedRow:!1,fillingColumn:!1},C=Yo(null),li=()=>I(C)!==null;function yT({line:e,draw:t}){return N(sp,{children:t(Ae(e,li()))})}var ET=(e="by-box")=>Ae(e,li()),ST=()=>I(C),TT=()=>I(C)?.id??null,K=Yo(!1);function np(){let e=I(C)?.stretchedRow===!0,t=I(K);return e&&!t}var ip=()=>I(K);function rp(){let e=I(C),t=np(),o=ip();return{fill:o?` ${si}`:"",inner:a=>{let s=t||o?N(K.Provider,{value:!0,children:a}):a;return e?.columnsRow?N(C.Provider,{value:{...e,columnsRow:!1},children:s}):s}}}function _T({className:e,style:t,attrs:o,children:a}){let{fill:s,inner:n}=rp(),i=Ko();return i.scope(N("div",{className:$o(`${e}${s}`,i.className),...t?{style:t}:{},...o,...i.attrs,children:n(a)}))}var Uo=Yo(!1);function vT({children:e}){return N(Uo.Provider,{value:!0,children:N(K.Provider,{value:!0,children:e})})}function xT({children:e,ownPictures:t=!1}){let o=I(C),a=I(Uo),s=I(K),n=a&&s,i=o===null?null:o.id===void 0?ri:{...ri,id:o.id};return N(C.Provider,{value:i,children:N(Uo.Provider,{value:!1,children:N(K.Provider,{value:n,children:t?e:N(jn,{children:e})})})})}var bt=di(null),ci="data-sf-view-hide",hi=e=>Be(bt.Provider,{value:null},e),ui={className:"",attrs:{},scope:hi},lp=ui,pi=di(null),LT=(e,t)=>e?{className:e,views:t}:null,cp=e=>Be(bt.Provider,{value:null},Be(pi.Provider,{value:null},Be(K.Provider,{value:!0},e))),NT=(e,t,o={})=>e?{className:e,words:t,...o}:null,mi=(e,t)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:Ae(e.line??"by-box",t)?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function Ko(){let e=Me(bt),t=Me(pi),o=Me(C)!==null;if(e===null&&t===null)return lp;let a=e===null?null:mi(e,o);return t===null?{className:a.className,attrs:{[ci]:a.words},scope:hi}:{className:a?`${a.className} ${t.className}`:t.className,attrs:{...a?{[ci]:a.words}:{},[ii]:t.views},scope:cp}}function IT(){let e=Me(bt),t=Me(C)!==null;return e===null?"":mi(e,t).className}var $o=(e,t)=>t?e?`${e} ${t}`:t:e;function PT(e){let t=Ko(),o=e.takes===!1?ui:t,a={},s=!1;for(let[n,i]of Object.entries(e))n==="as"||n==="takes"||n==="children"||(n==="className"?(a.className=$o(i,o.className),s=!0):a[n]=i);return!s&&o.className&&(a.className=o.className),o.scope(Be(e.as??"div",{...a,...o.attrs},e.children))}var DT={small:54,medium:66,large:84},dp=44,hp=16,up=140,BT={min:hp,max:up,step:1},MT=dp*4;import{forwardRef as pp}from"react";import{imageCopyUrl as fi,imageSrcSet as wi}from"efficient-shell/image-copies";import{jsx as wp}from"react/jsx-runtime";var mp={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"};function gi(e,t,o){if(o){let a=wi(e);return a?{src:fi(e,1280),srcSet:a,sizes:o}:{src:e,sizes:o}}if(t&&t>0){let a=wi(e,{maxWidth:t*3});return a?{src:fi(e,t*2),srcSet:a,sizes:`${t}px`}:{src:e}}return{src:e}}var fp=pp(function({src:t,width:o,height:a,fill:s,priority:n,loading:i,style:r,quality:l,placeholder:d,blurDataURL:g,unoptimized:w,loader:P,overrideSrc:H,sizes:$,...Fe},yt){let Ge=H??(typeof t=="string"?t:t.src),Et=gi(Ge,s?void 0:Number(o)||void 0,$??(s?"100vw":void 0));return wp("img",{ref:yt,...Et,width:s?void 0:o,height:s?void 0:a,loading:n?"eager":i??"lazy",fetchPriority:n?"high":void 0,decoding:"async",style:s?{...mp,...r}:{color:"transparent",...r},...Fe})}),UT=fp;function YT(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:gi(t,o,e.sizes??(e.fill?"100vw":void 0))}}export{he as a,B as b,wc as c,cw as d,gc as e,dw as f,hw as g,uw as h,pw as i,mw as j,fw as k,zt as l,bc as m,ww as n,gw as o,rs as p,qe as q,bw as r,yw as s,x as t,_c as u,Ew as v,b as w,O as x,h as y,A as z,Le as A,q as B,vc as C,ds as D,ue as E,kw as F,Aw as G,Rw as H,Cc as I,Cw as J,ke as K,le as L,Vm as M,ce as N,jm as O,gl as P,Xm as Q,zm as R,qm as S,Zm as T,El as U,Xe as V,of as W,p as X,f as Y,us as Z,Pw as _,Hw as $,Oe as aa,_m as ba,Ut as ca,vm as da,xm as ea,Om as fa,km as ga,rl as ha,V as ia,ll as ja,Cm as ka,nf as la,rf as ma,_l as na,lf as oa,cf as pa,yf as qa,Vt as ra,$l as sa,$a as ta,vf as ua,xf as va,Of as wa,ja as xa,kf as ya,Af as za,Rf as Aa,D as Ba,we as Ca,Ms as Da,Zg as Ea,R as Fa,ab as Ga,Pd as Ha,te as Ia,Hd as Ja,sb as Ka,nb as La,ib as Ma,rb as Na,lb as Oa,Bd as Pa,cb as Qa,Ws as Ra,k as Sa,uo as Ta,db as Ua,Md as Va,Fd as Wa,Ys as Xa,hb as Ya,Ud as Za,ub as _a,Yd as $a,pb as ab,lo as bb,mb as cb,Kd as db,$d as eb,fb,wb as gb,$s as hb,Vd as ib,gb as jb,jd as kb,js as lb,ho as mb,bb as nb,yb as ob,Eb as pb,qd as qb,Zd as rb,Sb as sb,Tb as tb,_b as ub,vb,Za as wb,za as xb,Nf as yb,If as zb,Pf as Ab,Yc as Bb,Ze as Cb,Ww as Db,Uw as Eb,Yw as Fb,ms as Gb,Qe as Hb,Kw as Ib,Xc as Jb,$w as Kb,Jt as Lb,zc as Mb,jw as Nb,fs as Ob,Xw as Pb,Qc as Qb,Jc as Rb,ed as Sb,gs as Tb,Zw as Ub,bs as Vb,Qw as Wb,ys as Xb,tg as Yb,Es as Zb,Z as _b,og as $b,ag as ac,sg as bc,vs as cc,me as dc,ug as ec,nd as fc,hd as gc,pg as hc,mg as ic,to as jc,fg as kc,wg as lc,ud as mc,bg as nc,yg as oc,Eg as pc,Sg as qc,wd as rc,bd as sc,Tg as tc,_g as uc,vg as vc,xg as wc,Og as xc,kg as yc,Ag as zc,Rg as Ac,Cg as Bc,Cs as Cc,Ls as Dc,Lg as Ec,Ng as Fc,Ig as Gc,Pg as Hc,Hg as Ic,xd as Jc,Dg as Kc,Bg as Lc,Ps as Mc,Mg as Nc,Fg as Oc,Od as Pc,Gg as Qc,Wg as Rc,Hs as Sc,E as Tc,_ as Uc,Rd as Vc,y as Wc,M as Xc,Cd as Yc,Ds as Zc,S as _c,Xg as $c,no as ad,io as bd,ro as cd,T as dd,W as ed,kb as fd,Xs as gd,ge as hd,Ie as id,u as jd,be as kd,ot as ld,eh as md,qs as nd,zs as od,ah as pd,Zs as qd,nn as rd,dn as sd,Ly as td,po as ud,rh as vd,en as wd,Eh as xd,Dy as yd,Ub as zd,Yb as Ad,Kb as Bd,$b as Cd,tn as Dd,Vb as Ed,jb as Fd,Xb as Gd,uh as Hd,Jb as Id,ey as Jd,on as Kd,ty as Ld,an as Md,oy as Nd,ay as Od,ny as Pd,iy as Qd,ry as Rd,ly as Sd,sn as Td,cy as Ud,dy as Vd,mo as Wd,My as Xd,Xy as Yd,xh as Zd,Ah as _d,Y as $d,nE as ae,Tn as be,_n as ce,vn as de,oe as ee,xE as fe,Mh as ge,OE as he,kE as ie,AE as je,RE as ke,CE as le,LE as me,NE as ne,Gh as oe,Wh as pe,IE as qe,Uh as re,Kh as se,xn as te,_o as ue,PE as ve,HE as we,vo as xe,DE as ye,BE as ze,ME as Ae,FE as Be,GE as Ce,jh as De,Xh as Ee,On as Fe,zh as Ge,WE as He,qh as Ie,Zh as Je,UE as Ke,YE as Le,KE as Me,$E as Ne,rt as Oe,vt as Pe,xt as Qe,kp as Re,Ap as Se,fr as Te,Ot as Ue,Rp as Ve,wr as We,Cp as Xe,Lp as Ye,Pp as Ze,Mp as _e,Fp as $e,Gp as af,Wp as bf,Ht as cf,Dt as df,Up as ef,ae as ff,_r as gf,Ta as hf,Yp as if,Kp as jf,ne as kf,se as lf,Or as mf,kr as nf,$p as of,Vp as pf,$e as qf,_a as rf,jp as sf,Xp as tf,zp as uf,Mt as vf,qp as wf,va as xf,Ir as yf,Zp as zf,Qp as Af,Jp as Bf,Hr as Cf,em as Df,tm as Ef,om as Ff,am as Gf,sm as Hf,nm as If,Ft as Jf,Ur as Kf,im as Lf,rm as Mf,Ve as Nf,Ca as Of,$r as Pf,lm as Qf,Gt as Rf,Ea as Sf,cm as Tf,dm as Uf,Vr as Vf,jr as Wf,La as Xf,je as Yf,qr as Zf,Zr as _f,Qr as $f,Na as ag,Jr as bg,Ia as cg,pm as dg,mm as eg,fm as fg,wm as gg,xe as hg,Pa as ig,gm as jg,bm as kg,Wt as lg,Ha as mg,ym as ng,Em as og,Sm as pg,Oo as qg,eu as rg,ou as sg,zE as tg,An as ug,QE as vg,Rn as wg,JE as xg,iu as yg,ru as zg,eS as Ag,lu as Bg,tS as Cg,ze as Dg,Ja as Eg,Qa as Fg,Jl as Gg,ec as Hg,tc as Ig,Bf as Jg,oc as Kg,Mf as Lg,de as Mg,Ff as Ng,Gf as Og,Wf as Pg,sc as Qg,ts as Rg,Uf as Sg,Yf as Tg,Kf as Ug,ic as Vg,$f as Wg,lc as Xg,ht as Yg,OS as Zg,Ee as _g,Ho as $g,ut as ah,He as bh,kS as ch,Bn as dh,AS as eh,RS as fh,ko as gh,Cn as hh,aS as ih,Co as jh,Ro as kh,Ln as lh,pu as mh,Nn as nh,Pe as oh,Lo as ph,mu as qh,In as rh,No as sh,bu as th,wS as uh,gS as vh,Eu as wh,ES as xh,Io as yh,SS as zh,TS as Ah,F as Bh,BS as Ch,MS as Dh,Fn as Eh,FS as Fh,Wn as Gh,GS as Hh,WS as Ih,US as Jh,YS as Kh,KS as Lh,Un as Mh,Au as Nh,Ru as Oh,$S as Ph,VS as Qh,eT as Rh,jn as Sh,tT as Th,oT as Uh,Wu as Vh,Vu as Wh,ju as Xh,De as Yh,wt as Zh,iT as _h,rT as $h,ti as ai,ai as bi,Zu as ci,lT as di,Fo as ei,si as fi,cT as gi,gt as hi,dT as ii,hT as ji,C as ki,yT as li,ET as mi,ST as ni,TT as oi,K as pi,np as qi,ip as ri,rp as si,_T as ti,vT as ui,xT as vi,bt as wi,ui as xi,pi as yi,LT as zi,NT as Ai,Ko as Bi,IT as Ci,$o as Di,PT as Ei,DT as Fi,dp as Gi,hp as Hi,BT as Ii,MT as Ji,UT as Ki,YT as Li,Xf as Mi,fa as Ni,Sp as Oi,Bm as Pi,ml as Qi,Mm as Ri,Fm as Si,Gm as Ti,Wm as Ui,pc as Vi,Zf as Wi,as as Xi,mc as Yi,fc as Zi,Jf as _i,ew as $i,tw as aj};