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