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