efficient-storefront-blocks 0.123.3 → 0.124.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 +7 -0
- package/dist/chunks/CustomHtmlCodeWindow-6QU56I6L.js +26 -0
- package/dist/chunks/{EditorPreviewCheckout-NQFCOASP.js → EditorPreviewCheckout-TRX42H6I.js} +4 -4
- package/dist/chunks/SiteEditorProvider-IBJ5A5V3.js +1 -0
- package/dist/chunks/chunk-27GSFHNV.js +1 -0
- package/dist/chunks/chunk-CDKQFBBA.js +1 -0
- package/dist/chunks/chunk-EKCLPISP.js +96 -0
- package/dist/chunks/{chunk-K5OPN6GZ.js → chunk-ESQTNC7T.js} +19 -18
- package/dist/chunks/chunk-JJ5MCDPE.js +1 -0
- package/dist/chunks/chunk-MC6E4ZLD.js +339 -0
- package/dist/chunks/chunk-O5WPKRAC.js +2 -0
- package/dist/chunks/chunk-S5N6H2MP.js +1 -0
- package/dist/chunks/chunk-T7CS442T.js +4 -0
- package/dist/chunks/chunk-YCL4MPLF.js +1 -0
- package/dist/chunks/fitment-data-MXT6XIW5.js +1 -0
- package/dist/chunks/{section-css-style-J4DULHLY.js → section-css-style-ZZ3ZOGPR.js} +1 -1
- package/dist/editor/components/HeaderSettingsPanel.js +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.js +136 -25
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/BoxHeaderBar.js +1 -1
- package/dist/render/components/GalleryShowcase.js +1 -1
- package/dist/render/components/card-pieces/CardProductPicture.js +1 -1
- package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/content/english-variant.js +1 -1
- package/dist/render/lib/content/header-bar.js +1 -1
- package/dist/render/lib/content/tab-strip.js +1 -1
- package/dist/render/lib/content/title-look.js +1 -1
- package/dist/render/lib/document/blocks/commerce/DetailRows/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentPicker/render.js +1 -1
- package/dist/render/lib/document/blocks/service/OpeningHours/render.js +1 -1
- package/dist/render/lib/document/blocks/service/SignUp/render.js +1 -1
- package/dist/render/lib/document/subscribe-content-type.js +1 -1
- package/dist/render/lib/sections/catalog-filter-layout.js +1 -1
- package/dist/render/lib/sections/fitment-cell-look.js +1 -1
- package/dist/render/lib/sections/hero-arrangement.js +1 -1
- package/dist/render/lib/sections/hero-gallery.js +1 -1
- package/dist/render/lib/sections/hero-price-placement.js +1 -1
- package/dist/render/lib/sections/product-grid-pages.js +1 -1
- package/dist/render/lib/sections/shopper-filters.js +1 -1
- package/dist/render/lib/wheels/plp-filters.js +1 -1
- package/dist/render/lib/wheels/set-mode.js +1 -1
- package/dist/routine-index.json +1 -1
- package/dist/value-index.json +1 -1
- package/dist/words.d.ts +17 -0
- package/dist/words.js +4 -4
- package/package.json +16 -4
- package/dist/chunks/SiteEditorProvider-D2OPKHNG.js +0 -1
- package/dist/chunks/chunk-2CQGGANM.js +0 -342
- package/dist/chunks/chunk-BVHE65VQ.js +0 -96
- package/dist/chunks/chunk-EMEK5XSJ.js +0 -1
- package/dist/chunks/chunk-GUMG6SIC.js +0 -1
- package/dist/chunks/chunk-QL4PL74K.js +0 -1
- package/dist/chunks/chunk-ZROLUHOX.js +0 -1
- package/dist/chunks/fitment-data-32VKLJVO.js +0 -1
- /package/dist/chunks/{chunk-K5OPN6GZ.js.LEGAL.txt → chunk-ESQTNC7T.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-2CQGGANM.js.LEGAL.txt → chunk-MC6E4ZLD.js.LEGAL.txt} +0 -0
|
@@ -1,96 +0,0 @@
|
|
|
1
|
-
import{a as u}from"./chunk-ZROLUHOX.js";import{jsx as Ga}from"react/jsx-runtime";import{createContext as El,useCallback as f,useContext as Sl,useMemo as Tl,useState as _l}from"react";import{createContext as ya,useContext as vt}from"react";import{createContext as Er}from"react";var ba=Er(null);var Sr=ya(null),Ot=ya({logo:null,placeholder:!1,wordmark:null});function Kp(){let e=vt(ba),t=vt(Sr),o=vt(Ot),a=!e&&o.placeholder,s=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:s,reversedSrc:e?e.logoReversed:o.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:o.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:o.wordmark,siteName:e?.siteName??t?.siteName}}import{contrastRatio as am,hexToRgb as Ue,parseHexColor as W,readableInk as Oa,relativeLuminance as Ye}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as kr,pictureShadowColor as Ar}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as Rr}from"efficient-easel/screen/lib/content/length-units";import{VIEW_TIERS as Tr,viewKeyAt as Ea}from"efficient-easel/screen/lib/content/view-tiers";var B=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{isLengthUnit as xt,lengthOf as _r,rowGrid as vr}from"efficient-easel/screen/lib/content/length-units";function kt(e,t){let o=_r(e,At(t));return typeof o=="number"?`${o}px`:o}function At(e,t="px"){return xt(e)?e:t}function qp(e,t,o){return t.unitKey?At(e[Ea(t.unitKey,o)],t.base??"px"):t.base??"px"}function Zp(e,t=Tr){return e.unitKey?t.map(o=>Ea(e.unitKey,o)):[]}function Or(e,t,o){let a=vr({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function Rt(e,t,o,a){let s=B(e);if(!xt(t)||t==="px"||s===void 0)return null;let n=Or(o,t,a),i=Math.min(n.max,Math.max(n.min,s));return Math.round(i*100)/100}function Qp(e,t,o,a){let s=Rt(e,t,o,a);return s===null?null:kt(s,t)}var xr={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 Jp(e){let t=e;return Object.fromEntries(Object.entries(xr).map(([o,a])=>[o,At(t[a])]))}function em(e,t,o){let a=B(e);return xt(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as Bm}from"efficient-easel/screen/lib/document/shadow-values";var lm="storefront-theme",cm="sf:theme-mode",dm="sf:theme-switch",hm="hide",um=["light","dark","auto"],Mt="light",Ft=!1,Cr=7,Lr=18;function Nr(e){return e>=Cr&&e<Lr}function pm(e){let{mode:t,override:o,switchShown:a,hour:s}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?Nr(s)?"light":"dark":u(["light","dark"],"dark",t)}var se={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},Ir=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Ke={selected:0,themes:Ir};function xa(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Ke}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function Ct(e,t,o){let a=Ue(e),s=Ue(t);if(a===null||s===null)return e;let n=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${n(a.r,s.r)}${n(a.g,s.g)}${n(a.b,s.b)}`}var Pr={light:"#ffffff",dark:"#0a0a0a"},mm=["light","dark"];function fm(e,t){let o=Pr[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:Ct(e,a,.1),line:Ct(e,a,.22),muted:Ct(o,e,.35),brandInk:t}}function ie(e){let t=xa(e);return t.themes[t.selected]}function ne(e){return{text:e.text,accent:e.accent,background:e.background||se.background,surface:e.surface||se.surface,line:e.line||se.line,muted:e.muted||se.muted}}var Hr=.4,Dr="#f5f1e8",Sa="#0a0a0a";function Br(e){let t=ie(e).text,o=Ye(t);return o===null||o>=Hr?t:null}var Mr=4.5,Fr=3,wm={good:"Good","large-only":"Large text only",hard:"Hard to read"};function gm(e){return e>=Mr?"good":e>=Fr?"large-only":"hard"}var Gr=["#000000","#ffffff"];function $e(e){return Oa(e,Gr)}function ka(e,t){let o=t!==void 0&&Ye(t)!==null?t:Dr;return Oa(e,[Sa,o])===o&&o!==Sa}var Wr=[.25,.4,.55];function bm(e){let t=Ue(e);return t===null?[]:Wr.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function ym(e){let t={"--theme-fg":ie(e).text},o=Br(e);return o!==null&&(t["--overlay-fg"]=o),t}var Ur=82;function Gt(e){return`color-mix(in srgb, ${e} ${Ur}%, #000)`}function Em(e){let t=ie(e);return{"--theme-accent":t.accent,"--theme-accent-2":Gt(t.accent),"--theme-accent-ink":$e(t.accent)}}function Wt(e){let t=e?.button;return t&&W(t)===t.toLowerCase()?t.toLowerCase():null}function Sm(e){let t=ie(e),o=Wt(t),a=Aa(t);if(o===null&&a===null)return{};let s={};return o!==null&&(s["--theme-btn"]=o,s["--theme-btn-2"]=Gt(o)),s["--theme-btn-ink"]=a??$e(o),s}function Aa(e){let t=e?.buttonInk;return t&&W(t)===t.toLowerCase()?t.toLowerCase():null}function Yr(e,t){return Aa(e)??$e(Wt(e)??t)}function Tm(e){let t=ie(e);return{fill:Wt(t)??t.accent.toLowerCase(),ink:Yr(t,t.accent)}}function _m(e){let t={};return xa(e).themes.forEach((o,a)=>{let s=ne(o);t[`--theme-preset-${a}-accent`]=s.accent,t[`--theme-preset-${a}-accent-2`]=Gt(s.accent),t[`--theme-preset-${a}-accent-ink`]=$e(s.accent),t[`--theme-preset-${a}-bg`]=s.background,t[`--theme-preset-${a}-fg`]=s.text,t[`--theme-preset-${a}-surface`]=s.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${s.surface} 60%, ${s.line})`,t[`--theme-preset-${a}-line`]=s.line,t[`--theme-preset-${a}-muted`]=s.muted}),t}var Lt=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},Nt=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function Ta([e,t,o]){let[a,s,n]=[Lt(e),Lt(t),Lt(o)],i=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*n),r=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*n),l=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*n);return[.2104542553*i+.793617785*r-.0040720468*l,1.9779984951*i-2.428592205*r+.4505937099*l,.0259040371*i+.7827717662*r-.808675766*l]}function Kr([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,s=(e-.1055613458*t-.0638541728*o)**3,n=(e-.0894841775*t-1.291485548*o)**3;return[Nt(4.0767416621*a-3.3077115913*s+.2309699292*n),Nt(-1.2684380046*a+2.6097574011*s-.3413193965*n),Nt(-.0041960863*a-.7034186147*s+1.707614701*n)]}var Ht=e=>{let t=Ue(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},Ra=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],Ca=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,La=e=>Ra(Ht(e.surface),Ht(e.line),.6);function vm(e){return Ca(La(ne(e)))}function $r(e){let t=ne(e);return Ca(Kr(Ra(Ta(La(t)),Ta(Ht(t.text)),.92)))}function Na(e,t,o,a){let s=e[t];if(!s)return-1;let n=o(s);if(!n)return-1;let i=ne(s);return e.findIndex((r,l)=>{if(l===t)return!1;let d=ne(r);return W(d.background)!==n?!1:!a||W(d.text??"")===W(i.text??"")&&W(d.accent??"")===W(i.accent??"")})}function Om(e,t){return Na(e,t,$r,!1)}function xm(e,t){return Na(e,t,o=>W(o.surface??""),!0)}var Vr=1;function jr(e,t){let o=(e??[]).flatMap((a,s)=>{let n=Ye(a.background??""),i=Ye(a.text??"");return n!==null&&i!==null&&n<i?[s]:[]});return o.find(a=>a!==t)??o[0]??Vr}function km(e){return jr(e?.themes,e?.selected)}var Am=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function Rm(e){let t=ne(ie(e)),o=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,a={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==se.surface||t.line!==se.line)&&(a["--theme-surface-2"]=o),a}var Xr=["heading","body","label"];function Cm(e){if(!e)return null;for(let t of Xr)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var Ia=["headingLarge","headingMedium","headingSmall","accent","body","label"];var Ut={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},zr=8,qr=200;function Zr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=zr&&t<=qr?t:null}function Qr(e){let t={};for(let o of Ia)t[o]=Zr(e?.[o]);return t}function Lm(e){let t=Qr(e),o={};for(let a of Ia){let s=t[a];s!==null&&(o[`--size-${a}`]=`${s}px`)}return o}var Jr=["square","small","large"],el="small";function Nm(e){return Jr.includes(e??"")?e:el}var Ve=0,Pa=40,tl={min:Ve,max:Pa,step:1},Im={square:0,small:null,large:16},Dt={"--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 Yt(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(Pa,Math.max(Ve,Math.round(t))):null}function _a(e,t){if(Rr(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(Dt).map(([s,n])=>{let i=Math.round(a*n*1e4)/1e4;return[s,i===0?"0":kt(i,t)]}))}let o=Yt(e);return o===null?{}:Object.fromEntries(Object.entries(Dt).map(([a,s])=>{let n=o*s/16;return[a,n===0?"0":`${n}rem`]}))}function Pm(e){return(Yt(e)??Ve)*Dt["--sf-button-radius"]}function Hm(e,t){let o=Rt(e,t,"radius",tl);return o!==null?_a(o,t):_a(Yt(e)??Ve)}var ol=["none","soft","lifted"],al="soft",Ha="none",sl=["tight","normal","roomy"],nl="normal",je="normal",il=["none","lift","highlight"],rl="lift",ll="highlight";function Da(e){return ol.includes(e??"")?e:al}function cl(e){return sl.includes(e??"")?e:nl}function Ba(e){return il.includes(e??"")?e:rl}function Mm(e){let t=Da(e);return t===Ha?void 0:t}function Fm(e){let t=cl(e);return t===je?void 0:t}function Gm(e){let t=Ba(e);return t===ll?void 0:t}function Wm(e,t,o){let a=Ar(t);return a===kr?{}:Da(e)!==Ha||Ba(o)==="lift"?{"--sf-shadow-color":a}:{}}var dl=["normal","tight","compressed"],Oe="normal";function Ma(e){return dl.includes(e??"")?e:Oe}function Um(e){let t=Ma(e);return t===Oe?void 0:t}function Ym(e){switch(Ma(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var va=["authored","sentence"],Kt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},It=100,Pt=900,hl=24,ul=200;function We(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function Fa(e){let t=We(e?.weight,It,Pt),o=u(va,"authored",e?.case),a=n=>n==null?t:We(n,It,Pt),s=n=>u(va,o,n);return{case:o,weight:t,weightStrong:We(e?.weightStrong,It,Pt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:We(e?.maxPx,hl,ul),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:s(e?.case2),case3:s(e?.case3)}}function Km(e){let t=Fa(e),o={};return t.case==="sentence"&&(o["--sf-heading-case"]="none"),t.weight!==null&&(o["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(o["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(o["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(o["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(o["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(o["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(o["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),o}function $m(e){return Fa({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 Bt="siteTheme";function pl(e){let t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(a=>!!a&&typeof a=="object"))return{};let o=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[Bt]:{selected:o,themes:t.themes}}}function Vm(e){return pl(e?.[Bt])[Bt]}var xe=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"jost",label:"Jost",cssVar:"--font-jost",category:"sans",italic:!0,italicLoaded:!0},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],le=new Map(xe.map(e=>[e.key,e]));function Xm(e){return le.get(e)}var $t=["heading","heading2","heading3","body","accent","label"];function zm(e){return typeof e=="string"&&$t.includes(e)?e:null}var qm={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},ml=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],fl=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,Zm={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},wl={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function Qm(e){let t=e?fl.exec(e):null;return t?wl[t[1]]??null:gl(e)}function gl(e){if(!e)return null;let t=e.split(/\s+/).filter(o=>!o.slice(0,o.lastIndexOf(":")+1).includes("&")).map(o=>o.slice(o.lastIndexOf(":")+1));for(let[o,a]of ml)if(t.includes(o))return a;return null}var j={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function bl(e){let t=o=>{let a=e?.[o];if(a&&le.has(a))return a;if(o==="heading2"||o==="heading3"){let s=e?.heading;return s&&le.has(s)?s:j.heading}return j[o]};return Object.fromEntries($t.map(o=>[o,t(o)]))}function yl(e,t){return le.get(e[t])??le.get(j[t])}function re(e,t){return`var(${yl(e,t).cssVar})`}var Jm=[...new Set($t.map(e=>le.get(j[e]).cssVar))],ef=[...new Set(xe.map(e=>e.cssVar))];function tf(e){let t=bl(e);return{"--font-role-heading":re(t,"heading"),"--font-role-heading2":re(t,"heading2"),"--font-role-heading3":re(t,"heading3"),"--font-role-body":re(t,"body"),"--font-role-accent":re(t,"accent"),"--font-role-label":re(t,"label"),fontFamily:"var(--font-role-body)"}}var Wa={},Ua=El({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:Mt,setThemeMode:()=>{},themeSwitchShown:Ft,setThemeSwitchShown:()=>{},theme:Ke,themeRow:"none",setTheme:()=>{},fonts:j,setFonts:()=>{},sizes:Ut,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:je,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:Oe,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:Wa,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:Kt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function cf({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:s=!1,themeMode:n=Mt,onThemeModeChange:i,themeSwitchShown:r=Ft,onThemeSwitchShownChange:l,theme:d=Ke,themeRow:b="none",onThemeChange:g,fonts:H=j,onFontsChange:D,sizes:V=Ut,onSizesChange:Fe,cornerRadiusPx:Tt=null,onCornerRadiusPxChange:Ge,cardShadow:_t=null,onCardShadowChange:zo,shadowColor:Ai=null,onShadowColorChange:qo,cardGap:Ri=je,onCardGapChange:Zo,hoverEffect:Ci=null,onHoverEffectChange:Qo,headingCompression:Li=Oe,onHeadingCompressionChange:Jo,siteWidth:Ni=null,onSiteWidthChange:ea,siteGutter:Ii=null,siteGutterPhone:Pi=null,blockGap:Hi=null,blockGapPhone:Di=null,siteLengthUnits:Bi=Wa,onSiteLengthUnitsChange:ta,onSiteGutterChange:oa,onSiteGutterPhoneChange:aa,onBlockGapChange:sa,onBlockGapPhoneChange:na,headingTypography:Mi=Kt,onHeadingTypographyChange:ia,textStyles:Fi=null,onTextStylesChange:ra,wordStyles:Gi=null,heroBackgroundFollowsWidth:Wi=null,onHeroBackgroundFollowsWidthChange:la,sectionBackgroundWidth:Ui=null,onSectionBackgroundWidthChange:ca,sectionContentWidth:Yi=null,onSectionContentWidthChange:da,photographyGrayscale:Ki=null,onPhotographyGrayscaleChange:ha,shareButtonOnPosts:$i=null,onShareButtonOnPostsChange:ua,themeFromDocument:Vi=!1}){let[ve,pa]=_l(null),ji=f(c=>pa(yr=>yr??c),[]),Xi=f(c=>i?.(c),[i]),zi=f(c=>l?.(c),[l]),qi=f(c=>g?.(c),[g]),Zi=f(c=>D?.(c),[D]),Qi=f(c=>Fe?.(c),[Fe]),Ji=f(c=>ea?.(c),[ea]),er=f(c=>oa?.(c),[oa]),tr=f(c=>aa?.(c),[aa]),or=f(c=>sa?.(c),[sa]),ar=f(c=>na?.(c),[na]),sr=f(c=>ta?.(c),[ta]),nr=f(c=>la?.(c),[la]),ir=f(c=>ca?.(c),[ca]),rr=f(c=>da?.(c),[da]),lr=f(c=>ha?.(c),[ha]),cr=f(c=>ua?.(c),[ua]),dr=f(c=>Ge?.(c),[Ge]),hr=f(c=>zo?.(c),[zo]),ur=f(c=>qo?.(c),[qo]),pr=f(c=>Zo?.(c),[Zo]),mr=f(c=>Qo?.(c),[Qo]),fr=f(c=>Jo?.(c),[Jo]),wr=f(c=>ia?.(c),[ia]),gr=f(c=>ra?.(c),[ra]),ma=ve?.logoUrl,fa=ve?.logoReversed,wa=ve?.logoInkIsDark,ga=ve!==null,br=Tl(()=>({logo:ga?{logoUrl:ma,logoReversed:fa,logoInkIsDark:wa}:null,placeholder:o||s,wordmark:o?a:t}),[ga,ma,fa,wa,o,s,a,t]);return Ga(Ot.Provider,{value:br,children:Ga(Ua.Provider,{value:{settings:ve,setSettings:pa,primeSettings:ji,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:s,themeMode:n,setThemeMode:Xi,themeSwitchShown:r,setThemeSwitchShown:zi,theme:d,themeRow:b,setTheme:qi,fonts:H,setFonts:Zi,sizes:V,setSizes:Qi,cornerRadiusPx:Tt,setCornerRadiusPx:dr,cardShadow:_t,setCardShadow:hr,shadowColor:Ai,setShadowColor:ur,cardGap:Ri,setCardGap:pr,hoverEffect:Ci,setHoverEffect:mr,headingCompression:Li,setHeadingCompression:fr,siteWidth:Ni,setSiteWidth:Ji,siteGutter:Ii,siteGutterPhone:Pi,blockGap:Hi,blockGapPhone:Di,siteLengthUnits:Bi,setSiteLengthUnits:sr,setSiteGutter:er,setSiteGutterPhone:tr,setBlockGap:or,setBlockGapPhone:ar,headingTypography:Mi,setHeadingTypography:wr,textStyles:Fi,setTextStyles:gr,wordStyles:Gi,heroBackgroundFollowsWidth:Wi,setHeroBackgroundFollowsWidth:nr,sectionBackgroundWidth:Ui,setSectionBackgroundWidth:ir,sectionContentWidth:Yi,setSectionContentWidth:rr,photographyGrayscale:Ki,setPhotographyGrayscale:lr,shareButtonOnPosts:$i,setShareButtonOnPosts:cr,themeFromDocument:Vi},children:e})})}var vl=()=>Sl(Ua);function df(e,t,o){return e?t===o?"read":"loading":"none"}function hf(e,t){return{value:e,readFor:t}}function uf(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function pf(){let{sectionContentWidth:e,themeFromDocument:t}=vl();return t?null:e}var M=e=>typeof e=="string"&&e?e:void 0;function ke(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function ce(e,t){return Object.hasOwn(e,t)}var bf=["general","commerce","service"],de=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"GalleryB",label:"Gallery",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function yf(){return Object.fromEntries(de.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var Ol="2027-02-05",xl="2027-02-14",Ya={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
|
|
2
|
-
|
|
3
|
-
WHAT REPLACES IT: Tab Bar, a Box pinned under the header that stays above the sections after it, with a line below, holding the Menu block (One row, Menu style Tabs, Current page). Set the Menu's content to Blog categories: the blog's own categories, most posts first, each with its count in its cell (the host seeds the count card, Count on). Its converter row (\`section-to-box-rows-tabbar\` \`categoryBar\`, OFF) draws that bar for a stored page that moves later.
|
|
4
|
-
|
|
5
|
-
WHAT A MERCHANT LOSES: typed tabs with typed counts (the Menu draws the blog's categories, or a Console menu); the Archive and RSS links at the bar's right end (a Box beside the Menu holds Buttons, if wanted); the first tab marked when no page matches (the Menu marks the page's own entry); the blur behind the bar.
|
|
6
|
-
|
|
7
|
-
0 Category Bars are stored on the US sites (34 pages, draft and published; read only, 2026-11-09). Old sites stay as they are (owner, 2026-11-06).
|
|
8
|
-
|
|
9
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding a Category Bar still renders through it and can still be edited; no document is rewritten. Delete the component when CategoryBar is on SECTION_TO_BOX_ON and the stored count on the US sites is 0.`},Masthead:{label:"Issue Header",note:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
|
|
10
|
-
|
|
11
|
-
WHAT REPLACES IT: Page Header, a Box of Text blocks: a Header Box (the eyebrow, the title, a Details Box of one Text per line) over a Deck Box. Every Issue Header field is plain words with no data source, so the merchant makes the issue shape from Text blocks in that Box: the issue lines are Details lines, the lead is the Deck, and the "In this issue" panel is a Box of Texts beside it. Its converter row (\`section-to-box-rows-pageheader\` \`masthead\`, OFF) stays for a stored page that moves later.
|
|
12
|
-
|
|
13
|
-
WHAT A MERCHANT LOSES: a press that lays down the two-row issue shape with its "In this issue" panel; the merchant builds it from Boxes and Text blocks. No field is lost.
|
|
14
|
-
|
|
15
|
-
1 Issue Header is stored on the US sites (journal, draft and published; read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
|
|
16
|
-
|
|
17
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding an Issue Header still renders through it and can still be edited; no document is rewritten.`},Grid:{label:"Grid",note:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A \u2014 shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or Custom, and its own `Columns` in the Phone view. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` \u2014 256 documents): 2 Grid nodes, and they are ONE Grid counted twice \u2014 the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 \u2014 equal thirds \u2014 and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n\u26A0\uFE0F THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned \u2014 hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. \u26D4 So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says \u2014 Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS \u2014 the owner redoes live sections himself.\n\n\u26A0\uFE0F AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/document/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot \u2014 a Box included \u2014 refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` \xA73 pins it.'},CompatibleTyres:{label:"Compatible Tyres",note:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings \u2014 it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 \u2014 it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n\u26A0\uFE0F THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call \u2014 nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n \u2022 settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT \u2014 the map holds only TimelineTrack and Footprint, both AUTHORED lists\n \u2022 read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n \u2022 panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n \u2022 head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero \u2014 neither can style them \u2014 and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/document/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS \u2014 the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n\u26A0\uFE0F AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.'},Spacer:{label:"Spacer",note:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
|
|
18
|
-
|
|
19
|
-
WHAT REPLACES IT: a Divider with Style set to None. It draws no line, only its space, and that space is the Divider's Padding row (top and bottom, each with its phone value): the Spacer's 24 / 48 / 96 / 160 px are None with Padding 12 + 12, 24 + 24, 48 + 48, 80 + 80. \`scripts/test-divider-holds-the-spacer.tsx\` \xA75 holds it.
|
|
20
|
-
|
|
21
|
-
WHAT A MERCHANT LOSES on a NEW space: nothing the Spacer had. Four fixed sizes become any number on the 4px grid, top and bottom apart, and a phone value.
|
|
22
|
-
|
|
23
|
-
NO CONVERTER ROW: 0 Spacer nodes on any page, draft or published, in any schema of the local production clone (read-only count, 2026-10-26), and none in the backend's seed files. This entry is its reason in the guard (\`scripts/test-section-to-box.tsx\` \xA75: a retired type is accounted for).
|
|
24
|
-
|
|
25
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Spacer anywhere still renders through it and can still be edited; no document is rewritten.`},KeyFeatures:{label:"Key Features",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds Cards and Key Features; Key Features' diamond cells are the card style "Label only". Retired by card [MERGE] One Text Block And Click Through Parts (2026-10-22).
|
|
26
|
-
|
|
27
|
-
WHAT REPLACES IT: a Cards section with Card style set to Label only. Every cell is a copy of the Label only card template (Cards/card-seed \`labelOnlyCardSeed\`): a cell Box (its link from the row's \`href\`), a 9px Mark Box in the main colour turned 45 degrees, and the label Text; the eyebrow starts on the pill look when none is stored. A cell's words are the card's \`title\` (row "Feature label"), its link the card's \`href\` (row "Link"). The Key Features conversion lands on the same card (\`scripts/test-key-features-diamond.tsx\`).
|
|
28
|
-
|
|
29
|
-
WHAT A MERCHANT LOSES on a NEW Label only section: nothing this section had. It GAINS the Cards head split (its head can move into a box of its own), which Key Features never had: that head draws the shared \`simple\` head, eyebrow ABOVE the heading, where Key Features drew it beside.
|
|
30
|
-
|
|
31
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${Ol}). Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`},DeliveryOptions:{label:"Delivery Options",note:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` \xA75).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming."},Series:{label:"Recurring Columns",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
|
|
32
|
-
|
|
33
|
-
WHAT REPLACES IT: Cards drawn from its card template. A column's number is Number, its "Right Top Text" Corner note, its title Card title, its words Card body, its count and label one Count, and the one \`viewLabel\` a plain Text typed once in the template, so every card shows it; the background is the Box's. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
|
|
34
|
-
|
|
35
|
-
WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints; a short row no longer keeps 4 columns; the count is one plain Text, its figure no longer in the text ink; a card with no count still draws the footer line.
|
|
36
|
-
|
|
37
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Recurring Columns still renders through it and can still be edited; no document is rewritten.`},DocMetaCards:{label:"Document Detail Cards",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
|
|
38
|
-
|
|
39
|
-
WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value and a Card body. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
|
|
40
|
-
|
|
41
|
-
WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints, not the old 40 (16 on a phone).
|
|
42
|
-
|
|
43
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`},StatsParagraph:{label:"Stats with Text",note:`Lewis, 2026-10-10 (approved): one Stats holds Stats and Stats with Text. Its head (eyebrow, heading, body) and each number's Prefix, Unit, Superscript, Label, "Use accent color" and text go into Stats; Card style Table (the old Stats with Text) or List (the old Stats). 2026-10-27: no Number block, the cards are Box + Text. Retired when the two became one Stats (2026-11-06).
|
|
44
|
-
|
|
45
|
-
WHAT REPLACES IT: a Stats press, a Box of real parts: three head Texts, then a Stats Box holding ONE Card list, Card style Table. Each number is a row of the Card list; its card is a figure Text (the prefix and number typed in it, the unit marked \`==_yr_==\`, which draws the section theme's Main colour; a whole number in that colour is \`==_8_==\`), a superscript Text beside it, a label Text and a body Text, each showing its row's field, and a row may link its own live number. The Stats Box's Card style row (Table / List) writes the Box's Gap and the card's own Border, Padding and Height.
|
|
46
|
-
|
|
47
|
-
WHAT A MERCHANT LOSES: the numbers do not count up (the Text block's Count up numbers setting is its own change, held); the figure has no tabular numbers; a unit is not a lighter weight than its number; rows of four stack below 800px, not two columns from 1100px.
|
|
48
|
-
|
|
49
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Stats with Text still renders through it and can still be edited; no document is rewritten (owner 2026-11-06: old sites stay as they are).`},Testimonials:{label:"Testimonials",note:"Lewis, 2026-10-10 (section-merges.md group 6, approved): Testimonials goes into Reviews, whose Review content is Manual (typed quotes) or Reviews (the store's approved reviews), with a product choice in place of the old Design code. Retired by card [MERGE] Remaining Section Merges (2026-11-06), after Reviews took typed quotes and a card template (efficient-storefront-blocks #242) and the product choice (#359).\n\nWHAT REPLACES IT: Reviews with Review content set to Manual. Every Testimonials key has the same key there: `eyebrow`, `eyebrowLook`, `title`, `items[]` (`quote`, `name`, `role`), `columns` 1-3 and `headPlacement` (both split their head). A typed review also has a `title` and a `rating`, empty for a quote that has none.\n\nWHAT A MERCHANT LOSES on a NEW quote list: nothing this section had. Reviews is in the service set where this section was general; no host narrows the sets (2026-11-06).\n\nNO CONVERTER ROW HERE: its Box row is efficient-storefront-blocks' (`section-to-box-rows-reviews`, OFF). 0 Testimonials nodes on the US sites, draft or published (read only, 2026-11-06). Old sites stay as they are (owner, 2026-11-06).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Testimonials anywhere still renders through it and can still be edited; no document is rewritten."},SubscribeBlogs:{label:"Subscribe with Posts",note:"card 66396 \u2014 folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},RelatedProducts:{label:"Related Products",note:`Owner, 2026-11-06 (plan productgrid-card-template-2026-11-06, inovit row 19): a Product Grid with "Show the current product's related" on IS the related grid, so offering both asked a merchant to choose between two names for one section.
|
|
50
|
-
|
|
51
|
-
WHAT REPLACES IT: Product Grid, bound to the current product. Both draw every card through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
|
|
52
|
-
|
|
53
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Related Products node is read as that grid by the host (\`relatedToGrid\`) and draws the same cards; no document is rewritten. Its footnote is the one value the grid has no home for.`},BundleOffer:{label:"Bundle Products",note:`Plan section-parts bundles grid source (2026-11-07): a Product Grid that shows "Bundles with this product" IS the bundle section, so offering both asked a merchant to choose between two names for one section.
|
|
54
|
-
|
|
55
|
-
WHAT REPLACES IT: Product Grid, bound to the current product, Show set to its bundles. Both draw every kit through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
|
|
56
|
-
|
|
57
|
-
THE TYPE KEY STAYS AND SO DOES THE DRAWING. A stored Bundle Products node is read as that grid by the host (\`bundleToGrid\`) and draws its kits; no document is rewritten.`},TyreFitment:{label:"Tyre Fitment Form",note:`Owner, 2026-10-10 (approved): the Tyre Fitment Form goes into the Fitment Form, whose answer follows the page. One vehicle section, not two.
|
|
58
|
-
|
|
59
|
-
WHAT REPLACES IT: the Fitment Form, a Box of a head, the vehicle picker (\`FitmentPicker\`), its answer (\`StockFitment\`) and a Button. On a tyre product page the answer part draws one verdict per size against the picked car, the same \`TyreFitVerdicts\` drawing this section made; on every other page it draws the car's OEM fitment card (efficient-storefront-blocks 0.87.0). The old escape link is the Box's Button.
|
|
60
|
-
|
|
61
|
-
WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a press seeds the Fitment Form's own head. The page decides the answer, so there is no mode row.
|
|
62
|
-
|
|
63
|
-
NO CONVERTER ROW: 0 TyreFitment nodes on the US sites, draft or published (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
|
|
64
|
-
|
|
65
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`},EuTyreLabel:{label:"EU Tyre Label",note:`Owner, 2026-10-10 (approved): the EU Tyre Label becomes a Spec Table display chip. One place for a tyre's sheet, not two sections.
|
|
66
|
-
|
|
67
|
-
WHAT REPLACES IT: the Spec Table's "EU tyre label" Display chip (efficient-storefront-blocks, default off), which draws this page's grades under the tyre sheet; and the EU Tyre Label block (\`EuTyreLabelBlock\`, efficient-storefront-blocks), the same grades as a block of their own. Both read the grades live through the one grades draw (\`EuTyreLabelGrades\`), as this section did. Default on for sites that sell to the EU or UK waits for a site market source (a later step).
|
|
68
|
-
|
|
69
|
-
WHAT A MERCHANT LOSES: the label as a section of its own, with its fixed head ("EU tyre label.") and its section number (\`num\`, its only field). The grades, their source line and the live read are not lost.
|
|
70
|
-
|
|
71
|
-
NO CONVERTER ROW: 0 EU Tyre Labels are stored on the US and AU sites (inovit_us and inovit_au, \`layout\` and \`published_layout\`; read only, 2026-11-10). Old sites stay as they are (owner, 2026-11-06).
|
|
72
|
-
|
|
73
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},Integrations:{label:"Integrations Grid",note:`Never listed: the Integrations Grid was registered but never offered (2026-11-14: a press of this type lays down a Box of real parts, SECTION_TO_BOX_PRESS, and its converter row \`section-to-box-rows-integrations\` moves a stored one).
|
|
74
|
-
|
|
75
|
-
WHAT REPLACES IT: a Box. \`eyebrow\`, \`title\` and \`body\` are Text blocks; each of \`apps\` is a Logo block named by the app in a Logos wall, Logo style Chips (the shell's brand mark beside the name, efficient-shell/icons/brands), dealt round-robin into three scrolling rows; \`statValue\`, \`statLabel\` and \`note\` are Text blocks.
|
|
76
|
-
|
|
77
|
-
0 Integrations nodes are stored on the US sites (76 pages, read only, 2026-11-14). Old sites stay as they are (owner, 2026-11-06).
|
|
78
|
-
|
|
79
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until ${xl}. A stored Integrations node still renders through it and can still be edited; no document is rewritten.`},HeroSingle:{label:"Hero Single",note:`Owner, 2026-10-10: three heroes into one, the Hero (the slideshow) is the base; a single hero is a Hero with one slide. Every row the single Hero has is a slide row now: the picture is Media \u203A Image, Image 2 on the slide as it was on the single Hero (lib/document/hero-media-parts), with the same rows from one home (blocks/hero-shared-fields: the two-picture Layout, Image 2 and its tint); the height, corners, border, stick, anchor, entrance, scroll, width and hide are the Hero's own section rows.
|
|
80
|
-
|
|
81
|
-
WHAT REPLACES IT: a Hero with one slide (Hero \u203A Slide \u203A Box). The words are Boxes on the slide, as they were Boxes on the single Hero.
|
|
82
|
-
|
|
83
|
-
WHAT A MERCHANT LOSES: nothing a row sets. The single Hero's own copy rows (eyebrow, title, level, alignment) were deleted on 2026-09-09; their words were already Box blocks.
|
|
84
|
-
|
|
85
|
-
Old sites stay as they are; moving a stored page (lib/sections/hero-single-to-hero) is a separate write that needs the owner's word.
|
|
86
|
-
|
|
87
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Hero Single still renders through it and can still be edited; no document is rewritten.`},ContactLocations:{label:"Contact / Locations",note:`Owner, 2026-10-27/30: Contact / Locations is TWO sections, each with its own look, the city photo wall and the city cards with their own map. Its row (\`section-to-box-rows-locations\`) makes two Boxes, so the old row leaves the Add menu and each Box is a preset of its own (lib/sections/city-presets). A press of this type lays down that row (SECTION_TO_BOX_PRESS).
|
|
88
|
-
|
|
89
|
-
WHAT REPLACES IT: City maps, a Box with one Box per region group (its head: key, name, "N locations"), and in it one City Box per city: Words (name, state and country, time zone, address, a Directions button, hours) and a Map block (LocationMap); then the OpenStreetMap credit. City pictures, the head (number, heading, tagline) over the photo wall, comes back to the menu when the wall is redone: the owner, 2026-11-02, hid the photo groups until then (\`CITY_PHOTO_WALL_HIDDEN\`).
|
|
90
|
-
|
|
91
|
-
WHAT A MERCHANT LOSES until the wall is redone: the photo wall and the section head on a new insert (a Text section gives a heading). The look gaps of the Boxes are listed in the row.
|
|
92
|
-
|
|
93
|
-
Old sites stay as they are (owner, 2026-11-06); moving a stored page is a separate write that needs the owner's word.
|
|
94
|
-
|
|
95
|
-
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Contact / Locations node still renders through it and can still be edited; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items \xB7 Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. \u26D4 A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},kl=Object.fromEntries(Object.entries(Ya).map(([e,t])=>[e,t.note])),Ef=["Grid","Spacer","TyreFitment"],Sf=Array.from(new Set([...de.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(kl)])),Al=Object.fromEntries(Object.entries(Ya).map(([e,t])=>[e,t.label])),Tf={...Al,...Object.fromEntries(de.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},Rl={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",HostPart:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",WheelDiagram:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",ProductBuyButton:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EuTyreLabel:"commerce",PaymentBadges:"general",ContactLocations:"general",HeroSingle:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},Vt={...Rl,...Object.fromEntries(de.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function _f(e){return ke(Vt,e)}function jt(e){return Object.keys(Vt).filter(t=>ke(Vt,t)===e).sort()}var vf=jt("general"),Of=jt("commerce"),xf=jt("service"),Cl="Flex",Xe="Box",kf=`${Xe}es`;function Ll(e){return e==="section"?"Blank section":Xe}function Af(e,t,o){return e===Cl?Ll(t):o}var X=["highlight","strong","quiet"],z={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},N={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},Lf=Object.fromEntries(X.map(e=>[N[e].kind,e])),Nf="data-sf-ws",Nl=["accent","text","labels"],Il={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},Pl=80,Hl=120,Dl=100,Bl=900,Ml=.5,Fl=3,Gl=-.1,Wl=.5,Ul=3,Xt={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},Yl={highlight:{...Xt},strong:{...Xt},quiet:{...Xt}};function Ka(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function $a(e,t,o){if(typeof e!="number"||!Number.isFinite(e))return null;let a=10**Ul;return Math.round(Math.min(Math.max(e,t),o)*a)/a}function Va(e){return typeof e=="boolean"?e:null}function Kl(e){let t=typeof e?.font=="string"&&xe.some(a=>a.key===e.font)?e.font:null,o=typeof e?.colour=="string"&&Nl.includes(e.colour)?e.colour:null;return{font:t,size:Ka(e?.size,Pl,Hl),weight:Ka(e?.weight,Dl,Bl),bold:Va(e?.bold),italic:Va(e?.italic),lineGap:$a(e?.lineGap,Ml,Fl),textGap:$a(e?.textGap,Gl,Wl),colour:o}}function ja(e){let t={};for(let o of X)t[o]=e&&o in e&&e[o]?Kl(e[o]):{...Yl[o]};return t}function If(e){let t=ja(e),o={};for(let a of X){let s=t[a],n=`--sf-ws-${a}`;if(s.font){let i=xe.find(r=>r.key===s.font);i&&(o[`${n}-font`]=`var(${i.cssVar})`)}s.size!==null&&(o[`${n}-size`]=`${s.size/100}em`),s.weight!==null&&(o[`${n}-weight`]=String(s.weight)),s.bold!==null&&(o[`${n}-weight-bold`]=s.bold?"700":"400"),s.italic!==null&&(o[`${n}-style`]=s.italic?"italic":"normal"),s.lineGap!==null&&(o[`${n}-line`]=String(s.lineGap)),s.textGap!==null&&(o[`${n}-track`]=`${s.textGap}em`),s.colour!==null&&(o[`${n}-color`]=Il[s.colour])}return o}function Pf(e){let t=e?.word_styles??void 0,o={};for(let a of X)t&&a in t&&(o[a]=t[a]??null);return ja(o)}import{applyMark as Bf,markupTools as Mf,MARKUP_TOOLS as Ff,COPY_FIELD_TOOLS as Gf,STOREFRONT_MARKUP as Wf,tokenizeInline as Uf,stripInline as Yf,isSafeLinkHref as Kf}from"efficient-shell/markup";import{applyMark as $l,clearStyle as Vl,markedAt as jl,markupTools as Xl,MARKUP_TOOLS as zl,parseMarkup as ql,RETIRED_MARKS as Zl,STOREFRONT_MARKUP as Ql,tokenizeInline as Vf}from"efficient-shell/markup";var Jl=new Set(["strong"]),Xa=X.map(e=>({open:N[e].delimiter,close:N[e].delimiter,kind:N[e].kind,...Jl.has(e)?{wordStart:!0}:{}})),Xf=[{style:N.highlight.kind,label:z.highlight,title:`${z.highlight} word style`},{style:N.strong.kind,label:z.strong,title:`${z.strong} word style`},{style:N.quiet.kind,label:z.quiet,title:`${z.quiet} word style`}],ec=new Set(Xa.map(e=>e.open)),zt=[...Ql.filter(e=>!ec.has(e.open)),...Xa];function tc(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function za(e){return ql(typeof e=="string"?e:"",zt)}var oc=zl.map(e=>e.style).filter(e=>!Zl.includes(e)).filter(e=>zt.some(t=>t.kind===e));function zf(){return Xl(oc)}var qa=Object.fromEntries(X.map(e=>[N[e].kind,N[e].delimiter]));function qf(e,t,o,a){let s=qa[a];if(!s)return $l(e,t,o,a);let n=e.slice(t,o),i=e.slice(Math.max(0,t-s.length),t),r=e.slice(o,o+s.length);if(i===s&&r===s)return{text:e.slice(0,t-s.length)+n+e.slice(o+s.length),selectionStart:t-s.length,selectionEnd:t-s.length+n.length};let l=n||"styled text";return{text:e.slice(0,t)+s+l+s+e.slice(o),selectionStart:t+s.length,selectionEnd:t+s.length+l.length}}function Zf(e,t,o,a){let s=qa[a];return s?t>=s.length&&e.slice(t-s.length,t)===s&&e.slice(o,o+s.length)===s:jl(e,t,o,a)}function Za(e){return e.replace(/==(.+?)==/g,(t,o)=>o.startsWith("_")&&o.endsWith("_")?t:`==_${o}_==`)}function Qf(e){return za(e).map(t=>tc(t)+Qa(t.children)).join(`
|
|
96
|
-
`)}function Jf(e,t,o){return Vl(e,t,o,zt)}function Qa(e){return e.map(t=>t.kind==="text"?t.text:Qa(t.children)).join("")}function ew(e){let t=o=>o.some(a=>a.kind==="link"||"children"in a&&t(a.children));return za(e).some(o=>t(o.children))}import{VIEW_DESKTOP_MIN as ac,VIEW_TABLET_MIN as sc}from"efficient-easel/screen/lib/content/view-tiers";var es="v1",ts=800,Ja={"view-tablet":sc,"view-desktop":ac,"view-wide":ts};function aw(e){let t=e.startsWith("max-"),o=t?e.slice(4):e;if(o in Ja)return{px:Ja[o],max:t};let a=/^(max|min)-\[(\d+)px\]$/.exec(e);return a?{px:Number(a[2]),max:a[1]==="max"}:void 0}var sw=`(min-width: ${ts}px)`,nc="data-sf-line",ic="edge",nw={[nc]:ic},Ae=(e,t)=>e==="edge"||e!=="section"&&t;import{isNodeList as rc}from"efficient-easel/data";var ze=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],as="bottom-left",q=4,lc=q+1,os=40,cc=30,dc=100,hc=60,cw=100;var qt={"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 uc(e){let t=ze.indexOf(he(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function pc(e){return 1+uc(e).band*(lc+1)}function dw(e){return pc(e)+1}function he(e){return u(ze,as,e)}function hw(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-os,Math.min(os,Math.round(t)))}function uw(e,t=hc){let o=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(cc,Math.min(dc,Math.round(o)))}function Zt(e,t){let o=he(t);return e.filter(a=>he(a?.props?.placement)===o).length}function ss(e){return`${qt[he(e)]} already holds ${q} boxes. Move one somewhere else first.`}function pw(e,t){let o=e.filter(a=>a?.props?.id!==t);return ze.map(a=>{let s=Zt(o,a)>=q,n=qt[a];return s?{value:a,label:n,disabled:!0,title:ss(a)}:{value:a,label:n}})}function mc(e,t){let o=t===void 0?as:he(t?.props?.placement);return Zt(e,o)>=q?ss(o):null}var ns="HeroGroup";function mw(e){let t=new Map,o=!1,a=e.filter(s=>{let n=he(s?.props?.placement),i=(t.get(n)??0)+1;return t.set(n,i),i<=q?!0:(o=!0,!1)});return o?a:e}function fc(e){return ze.map(t=>{let o=Zt(e,t);return{anchor:t,total:o,hidden:o-q}}).filter(t=>t.hidden>0)}function fw(e){let t=fc(e);return t.length===0?null:t.map(({anchor:o,total:a,hidden:s})=>{let n=qt[o],i=s===1?"1 is not shown":`${s} are not shown`;return`${n} holds ${a} boxes. The published page draws the first ${q}, so ${i}. ${s===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function ww(e,t){let o=t;if(o?.type!==ns)return null;let a=o.props?.id===void 0?"":String(o.props.id);return a?mc(wc(e,a),o):null}function wc(e,t){let o=is(e,t);return o&&o.ownerType===bc?o.siblings:[]}function gw(e,t){let o=is(e,t);return o?o.ancestorTypes.filter(a=>a===ns).length:gc}var gc=1,bc="HeroSlide";function is(e,t){let o=(a,s,n)=>{if(s>12||!a||typeof a!="object")return null;if(rc(a)){if(a.some(i=>i?.props?.id===t))return{siblings:a,ownerType:n.at(-1)??null,ancestorTypes:n};for(let i of a){let r=i.type,l=o(i,s+1,[...n,String(r)]);if(l)return l}return null}for(let i of Object.values(a)){let r=o(i,s+1,n);if(r)return r}return null};return o(e,0,[])}import{forwardRef as yc}from"react";import{jsx as Tc}from"react/jsx-runtime";function Ec(e){if(typeof e=="string")return e;let t=e.query?`?${new URLSearchParams(e.query).toString()}`:"",o=e.hash?e.hash.startsWith("#")?e.hash:`#${e.hash}`:"";return`${e.pathname??""}${t}${o}`}var Sc=yc(function({href:t,prefetch:o,replace:a,scroll:s,shallow:n,legacyBehavior:i,passHref:r,locale:l,onClick:d,children:b,...g},H){let D=V=>{d?.(V),!(V.defaultPrevented||g.target==="_blank")&&V.preventDefault()};return Tc("a",{ref:H,href:Ec(t),onClick:D,...g,children:b})}),Ew=Sc;var _c="Website";function _w(e){return e?.trim()||_c}var rs=["instagram","facebook","tiktok","youtube","x","linkedin","pinterest","whatsapp","telegram","line","wechat"],vc={instagram:"Instagram",facebook:"Facebook",tiktok:"TikTok",youtube:"YouTube",x:"X",linkedin:"LinkedIn",pinterest:"Pinterest",whatsapp:"WhatsApp",telegram:"Telegram",line:"LINE",wechat:"WeChat"},Oc={};function Ow(e){if(!e||typeof e!="object")return Oc;let t={};for(let o of rs){let a=e[o];if(typeof a!="string")continue;let s=a.trim();!s||!/^https?:\/\//i.test(s)||(t[o]=s)}return t}function xw(e){return rs.flatMap(t=>{let o=e[t];return o?[{platform:t,href:o,label:vc[t]}]:[]})}var kw=e=>`${e}_url`;function ue(e,t){let o=globalThis,a=Symbol.for(e),s=o[a];return s===void 0&&(s=t(),o[a]=s),s}function Re(){return ue("efficient.slot-field-blocks",()=>new Set)}var xc="dataSource",Hw="dataSourceOptions",kc="dataRows",Dw="countKey",Bw="counts",Mw="location-payment-methods",Fw="shop-payment-methods",Gw="delivery-options",Ww="blog-categories",Qt="dealers";function Ac(e){return typeof e.open=="function"}var ds=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Uw(e){return typeof e=="string"&&ds.test(e)}var ls=new Set([Qt]);function Ce(){return ue("efficient.block-sources",()=>({sources:new Map,revision:0}))}var Rc=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),Cc=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),cs=e=>typeof e=="string"&&e.trim()!=="";function Lc(e){if(!e||!cs(e.label))return null;if(Ac(e))return{label:e.label.trim(),open:e.open};let t=e.href;return cs(t)?{label:e.label.trim(),href:t.trim()}:null}function Nc(e){if(typeof e.key!="string"||!ds.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(a=>typeof a!="string"||!a))throw new Error(`The block source ${e.key} names no block it can fill.`);let t=e.blocks.find(a=>Re().has(a));if(t)throw new Error(`The block source ${e.key} names ${t}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);let o=Lc(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(a=>us(a)).filter(a=>a!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(Rc)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(Cc).map(a=>({...a}))}:{},...o?{edit:o}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(a=>typeof a=="string"&&a.trim()!=="").map(a=>a.trim())}:{}}}function Yw(e){let t=e.map(Nc),o=Ce();for(let a of t)o.sources.set(a.key,a);t.length&&(o.revision+=1)}function hs(e){let t=[...Ce().sources.values()],o=[...t.filter(a=>!ls.has(a.key)),...t.filter(a=>ls.has(a.key))];return e===void 0?o:o.filter(a=>a.blocks.includes(e))}function qe(e){return Ce().sources.get(e)??null}function Kw(e){return Ce().sources.get(e)?.choices??[]}function $w(){return Ce().revision}function x(e){let t=e?.[xc];return typeof t=="string"?t.trim():""}function us(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[o,a]of Object.entries(e)){let s=M(a);s&&(t[o]=s)}return Object.keys(t).length?t:null}function Ic(e){let t=e?.[kc];return Array.isArray(t)?t.map(us).filter(o=>o!==null):null}function Vw(e,t,o=[]){let a=Ic(e);if(a!==null&&(a.length||!t))return{rows:a,sample:!1};if(!t)return{rows:[],sample:!1};let s=qe(x(e))?.sample;return{rows:s?.length?s:o,sample:!0}}var y="rowField",k="rowLinkField",h="template",R="CardList",Le="hideWhenRowEmpty",Jt=["Text","ImageBlock","ButtonBlock","Flex"];function Z(){return{type:"slot",allow:[...Jt]}}var ps=Jt.filter(e=>e!=="ButtonBlock");function eo(){return{type:"slot",allow:[...ps]}}var Pc="boxes",ms={CardList:{template:eo()},Cards:{template:Z()},FAQ:{template:Z()},Flex:{rowTitle:{type:"slot",allow:["Text"]},content:{type:"slot"}},Footprint:{template:Z()},Grid:{content:{type:"slot"}},Hero:{slides:{type:"slot",ownPictures:!0},strip:{type:"slot",allow:["Flex"]}},HeroGroup:{content:{type:"slot"}},HeroSingle:{boxes:{type:"slot",allow:["HeroGroup"]}},HeroSlide:{groups:{type:"slot",allow:["HeroGroup"]}},Logos:{logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},OrderSummary:{template:Z()},ProcessSteps:{[Pc]:{type:"slot"},template:Z()}};import{isNodeList as fs,slotsOf as Hc,storedKeyOrder as Dc}from"efficient-easel/data";var Bc={},Mc=null;function Fc(){let e=Object.fromEntries(Object.entries(ms).map(([t,o])=>[t,{fields:o}]));return Mc??={components:{...e,...Bc}}}function pe(e){let t=e.props??{},o=typeof e.type=="string"?e.type:"",a=Fc(),s=o!==""&&Object.prototype.hasOwnProperty.call(a.components,o)?Hc({type:o,props:t},a).map(r=>r.slot).filter(r=>!r.includes(".")):[],n=s.filter(r=>fs(t[r])),i=Dc(Object.keys(t).filter(r=>!s.includes(r)&&fs(t[r])));return[...n,...i]}function Jw(e){let t=e.props??{};return pe(e).map(o=>t[o])}function eg(e,t){let o=null;return e.forEach((a,s)=>{let n=t(a,s);n!==a&&((o??=e.slice())[s]=n)}),o??e}function tg(e,t){let o=null;for(let a of pe(e)){let s=e.props[a],n=t(s,a);n!==s&&((o??={...e.props})[a]=n)}return o?{...e,props:o}:e}function Gc(e,t){let o=e;if(!o||!Array.isArray(o.content))return e;let a=t(o.content);return a===o.content?e:{...o,content:a}}function og(e,t){let o=Gc(e,t),a=e?.zones;if(!a||typeof a!="object")return o;let s=null;for(let[n,i]of Object.entries(a)){if(!Array.isArray(i))continue;let r=t(i);r!==i&&((s??={...a})[n]=r)}return s?{...o,zones:s}:o}var m="content",w="Flex",Wc="Text & media",Uc="Layout & structure",gs=[{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"}],Yc=[...gs,{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:Wc})),Kc=(de.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Uc})),ws=[...Yc,...Kc],to=[...gs,{type:"HeroGroup",label:Xe}],ig=to.map(e=>e.type),$c=1,Vc=to.filter(e=>e.type!=="HeroGroup");function jc(e){return e<$c?to:Vc}var Xc={Flex:{slot:m,choices:()=>ws},Grid:{slot:m,choices:()=>ws},HeroGroup:{slot:m,choices:jc}};function rg(e,t=0){let o=ke(Xc,e);return o?{slot:o.slot,choices:o.choices(t)}:null}import{AUTO_RULES as zc,FOLLOW_RULES as qc,isAuto as Zc,resolveViewValue as Qc}from"efficient-easel/screen/lib/content/view-tiers";function Jc(){return es==="v2"?zc:qc}function Ze(e,t,o,a,s=Jc()){let n=Qc(e,t,o,a,s),i={},r=(l,d)=>!Zc(l)||d!=null&&d!==t;return r(o,n.tablet)&&(i.tablet=n.tablet),r(a,n.phone)&&(i.phone=n.phone),i}var pg={left:"start",center:"center",right:"end"},mg={left:"justify-start",center:"justify-center",right:"justify-end"},fg={left:"",center:"mx-auto",right:"ml-auto"},bs={left:"",center:"text-center",right:"text-right"},ed={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"}},td={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"}},od={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"}},ad={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function Qe(e){return e==="left"||e==="center"||e==="right"?e:void 0}function wg(e){return e==="start"?"left":e==="end"?"right":Qe(e)}function sd(e,t,o){let a=Qe(e)??"left",s=Ze("same",a,Qe(t),Qe(o)),n={};return s.tablet&&s.tablet!==a&&(n.tablet=s.tablet),s.phone&&s.phone!==a&&(n.phone=s.phone),n}function gg(e,t,o,a,{atSectionLine:s=!1}={}){let n=sd(t,o,a),i=s?od:ed,r=s?ad:td;return[n.tablet?i[e][n.tablet]:"",n.phone?r[e][n.phone]:""].filter(Boolean).join(" ")}var oo="rowImageField",nd="boxOutsideCopy",id={all:[{field:oo,set:!0},{not:{context:nd,is:!0}}]},yg={any:[{field:"bgImage",set:!0},id]},ys="boxInCopy",rd={any:[{not:{field:oo,set:!0}},{not:{context:ys,is:!0}}]},Eg={all:[{not:{field:"bgImage",set:!0}},rd]},Es={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${oo}`,set:!0}},{not:{context:ys,is:!0}}]}]};var ld="small",cd="dot",dd=[{label:"Small",value:"small"},{label:"Display",value:"display"}],ao=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],Ss={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},hd={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)]"},ud={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 _g(e){return u(dd,ld,e)}function Ts(e){return u(ao,cd,e)}function vg(e){return hd[e]}function _s(e,t){return ud[e][t]}var kg=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function vs(e){return ao.some(t=>t.value===e)?Ts(e):void 0}var pd="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 Q(e,t){return e==="row"&&vs(t)!==void 0}function Ag(e,t){return Q(e,t)?pd:""}var md="[&>*: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 Rg(e,t){return Q(e,t)?md:""}function Cg(e,t){if(!Q(e,t))return{};let o=vs(t),a=/^text-\[([\d.]+)em\]$/.exec(_s("small",o))?.[1],s=Ss[o];return{"--sf-sep-mark":s===""?"none":JSON.stringify(s),...a?{"--sf-sep-k":a}:{}}}var As={sectionPaddingTop:0,sectionPaddingBottom:0},Ne={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},fe={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},Mg=[...new Set([...Object.keys(fe),...Object.keys(bs)])];function Fg(e,t){let o=typeof e=="string"&&ce(Ne,e)?Ne[e]:"",a=typeof t=="string"&&ce(fe,t)?fe[t]:"";return[o,a].filter(Boolean).join(" ")}function fd(e){return e===!0||e==="wrap"?"flex-wrap":""}var wd={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!"},gd={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},bd={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!"},yd={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},Ed={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function te(e,t){return typeof t=="string"&&ce(e,t)?t:void 0}function no(e,t,o){let a=Ze("same",e,t,o),s={};return a.tablet!==void 0&&a.tablet!==e&&(s.tablet=a.tablet),a.phone!==void 0&&a.phone!==e&&(s.phone=a.phone),s}function io(e,t,o){return[e.tablet?t[e.tablet]:"",e.phone?o[e.phone]:""].filter(Boolean).join(" ")}function Sd(e,t,o){return no(te(Ne,e)??"start",te(Ne,t),te(Ne,o))}function Gg(e,t,o){return io(Sd(e,t,o),wd,gd)}function Wg(e,t,o){let a=te(fe,e)??"stretch";if(a==="stretch")return"";let s=no(a,te(fe,t),te(fe,o));return io(s,bd,yd)}function so(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function Ug(e,t){let o=fd(e)===""?"nowrap":"wrap",a=so(t);return a&&a!==o?Ed[a]:""}var Yg="Block widths",Rs=[{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]}],Td="data-sf-box-items",Kg=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${Td}\\][^\\s"'\`]*`,"g");var $g=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function Vg(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in Je?"custom":"content"}var Cs=4,Os=10;function _d(e,t){if(!Number.isInteger(t)||t<2||t>Cs||e.length!==t-1||!e.every(s=>typeof s=="number"&&Number.isFinite(s)))return;let o=[],a=0;return e.forEach((s,n)=>{let i=100-a-Os*(t-1-n),r=Math.min(i,Math.max(Os,Math.round(s)));o.push(r),a+=r}),o}function xs(e,t,o){if(!Array.isArray(t))return;let a=_d(t,o),s=a?[...a,100-a.reduce((i,r)=>i+r,0)]:[],n={};for(let i=0;i<Cs;i+=1)n[`--${e}-${i+1}`]=s[i]??1;return n}function jg(e,t,o){let a=xs("sf-share",e,o),s=xs("sf-share-tablet",t,o);return a||s?{...a,...s}:void 0}function vd(e,t){let o=Array.from({length:t},()=>1),a=Rs.find(i=>i.value===e);if(!a?.weights||t<1)return o;let[s,n]=a.weights;return s>1&&(o[0]=s),n>1&&(o[t-1]=n),o}function Xg(e,t){if(typeof e!="string"||!(e in Je)||e==="equal")return e;let o=vd(e,t),a=o.reduce((s,n)=>s+n,0);return o.slice(0,-1).map(s=>Math.round(s/a*100))}var J="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",Je={equal:J,bigLeft:`${J} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${J} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${J} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${J} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${J} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},Od=`${J} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function xd(e){return Array.isArray(e)?Od:typeof e=="string"?Je[e]??"":""}var Ls={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}},Es,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(Je)}]}]}]},Ns="view-wide:max-view-desktop:flex-row!",ee=`${Ns} [&>*: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!`,Is={content:`${Ns} [&>*: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:ee,bigLeft:`${ee} [&>*: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:`${ee} [&>*: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:`${ee} [&>*: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:`${ee} [&>*: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:`${ee} [&>*: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]!`},kd=`${ee} [&>*: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 Ad(e){return Array.isArray(e)||typeof e=="string"&&e in Is?e:null}function zg(e){if(e.direction!=="row"||Q(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||Ps(e.columns)!==""||Hs(e.columnsTablet)!=="")return"";let t=Ad(e.shareTablet);return t===null?"":typeof t=="string"?Is[t]:kd}var Rd="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function qg(e){return xd(e)===""?Rd:""}var Zg="Columns",Qg=1,Jg=3,ro={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)]"},eb=Rs.filter(e=>e.value==="content"||e.value==="equal"),tb="equal",ob=1,ab=6,me="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!",Cd={1:`${me} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${me} [&>*]: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:`${me} [&>*]: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:`${me} [&>*]: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:`${me} [&>*]: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:`${me} [&>*]: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 Ps(e){return typeof e=="number"?Cd[e]??"":""}var Ld={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 Hs(e){return typeof e=="number"?Ld[e]??"":""}function sb(e){return e.direction!=="row"||Q(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":Hs(e.columnsTablet)}function nb(e){return e.direction!=="row"||Q(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":Ps(e.columns)}var Ds={2:"view-wide:grid view-wide:grid-cols-2",3:"view-wide:grid view-wide:grid-cols-3",4:"view-wide:grid view-wide:grid-cols-4",5:"view-wide:grid view-wide:grid-cols-5",6:"view-wide:grid view-wide:grid-cols-6"},Bs={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},ib=Object.keys(Ds).map(Number),rb=Object.keys(Bs).map(Number);function lb(e,t,o=!1){let a=typeof e=="number"?Ds[e]??"":"",s=Bs[Number(t)]??"";return!a&&!s?"":[a,s,o?"gap-y-0!":""].filter(Boolean).join(" ")}var Nd="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]",Id={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)]"},Pd="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 Hd(e,t){return(so(e)??so(t)??"wrap")==="nowrap"}function cb(e,t,o,a){let s=ro[Number(e)];if(!s)return"max-view-wide:flex-col";let n=Hd(o,a);return Ms(e,t)?n?Pd:Nd:n?Id[Number(e)]:s}function db(e,t){return Number(e)in ro&&!Ms(e,t)}function Ms(e,t){return Number(e)in ro&&t==="content"}var hb="Block spacing",Dd=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],Bd="sf-box-gap-only";function ub(e){return e==="gap"?Bd:""}var ks={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},Md={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function pb(e,t,o){let a=n=>te(ks,n),s=no(u(Dd,"each",e),a(t),a(o));return io(s,ks,Md)}var Fs={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:bb,tag:yb,...Fd}=Fs.defaultProps,S=Fd,v={...S,tone:"dim"},Gd={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},E={...Gd,direction:"column",...As},F=(e,t=e,o=e,a=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:o,sectionPaddingRightPhone:a,sectionPaddingBottomPhone:o,sectionPaddingLeftPhone:a}),Wd=e=>({fillColor:e}),Gs=(e,t,o={})=>({...E,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?Wd(t):{},...o}),T=(e,t,o,a)=>({sizeToken:{step:e,px:t,...a?{stepPhone:a}:{},...o?{pxPhone:o}:{}}}),Eb=e=>({textStyle:"body-1",...T("body",e),lineHeight:1.625}),Ws={case:"upper"},lo={textStyle:"body-5",...Ws},co=(e,t)=>({...T("label",e,t),letterSpacing:.2,...Ws}),ho=(e,t)=>({...lo,...co(e,t)});function _(e,t,o=""){return e.map((a,s)=>{let n=o?`${o}.${s}`:String(s),i={...a.props??{}};for(let[r,l]of Object.entries(a.slots??{}))i[r]=_(l,t,n);return{type:a.type,props:{...i,id:t(a.type,n)}}})}function U(e,t){return typeof e.id=="string"&&e.id.trim()?e.id:t}var we=(e,t)=>(o,a)=>a==="0"?`${e}~${t}`:`${e}~${t}.${a.slice(2)}`;function Y(e,t,o,a){return e[t]!==void 0?e:{...e,[t]:a(U(e,o))}}var ge={min:0,max:360,step:1},Us="angle";function _b(e){let t=B(e);if(t===void 0)return null;let o=Math.min(ge.max,Math.max(ge.min,t));return o===ge.min||o===ge.max?null:{rotate:`${o}deg`}}import{MEDIA_ZONES as Ud,MEDIA_ZONE_LABELS as Yd}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as Kd,hoverKindsOf as tt,motionSeconds as et}from"efficient-shell/format";var C="hover",Cb="_gHover",$d={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},oe="highlight",Vd="Highlight",Lb=["none",oe],Nb={none:$d.none,[oe]:Vd};function jd(e){return e[C]===oe?oe:"none"}var Ib="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]",Pb="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 Hb(e,t){return jd(e)!==oe?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var Xd=tt(["none","lift"]);function Db(e){let t=e[C];return u(Xd,"none",t)}var $s=tt(["none","nextImage","rotate"]),A={kind:C,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},mo="spinOnHover",Ys=ge,Vs={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},Bb=Object.keys(Vs);function zd(e){return Vs[e]??"none"}var qd=Kd.rotateFallbackDeg,Zd=e=>e==="rendering"?"renderings":e,Qd=e=>e==="renderings"?"rendering":e,js=Object.freeze(Ud.filter(e=>e!=="videos").map(Zd)),Mb=Object.freeze(Object.fromEntries(js.map(e=>[e,Yd[Qd(e)]]))),Jd=["finish","first"],Fb={finish:"Same finish",first:"First group"},eh=["card","picture"],Gb={card:"Whole card",picture:"Picture"},uo={kind:"photos",group:"finish",cover:"card"};function Xs(e){return{kind:u(js,uo.kind,e[A.mediaKind]),group:u(Jd,uo.group,e[A.mediaGroup]),cover:u(eh,uo.cover,e[A.cover])}}function Wb(){return{field:A.kind,is:"nextImage"}}function th(e,t){let o=e[A.kind];if($s.includes(o))return o;let a=e[mo];return typeof a=="boolean"?a?"rotate":"none":t}function oh(e){let t=B(e);return t===void 0?qd:Math.min(Ys.max,Math.max(Ys.min,t))}function Ub(e,t){let o=zd(t),a=th(e,o);return{kind:a,angle:a==="rotate"?oh(e[A.angle]):null,duration:et("hover","duration",a==="rotate"?e[A.duration]:void 0),delay:et("hover","delay",a==="rotate"?e[A.delay]:void 0),...a==="nextImage"?{media:Xs(e)}:{}}}function Yb(e){let t={field:A.kind,in:[...$s]};return{any:[{field:A.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:mo,is:!1}}:{field:mo,is:!0}]}]}}var zs=tt(["none","mono"]),ah=tt(["none","nextImage","mono"]),qs={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Kb=Object.keys(qs);function sh(e){return qs[e]??"none"}var Zs={zoom:"hoverZoom",darken:"hoverDarken"},po={min:100,max:150,step:1,unit:"%"};function nh(e){let t=B(e[Zs.zoom]);if(t===void 0)return null;let o=Math.min(po.max,Math.max(po.min,t));return o===po.min?null:String(o/100)}function ih(e){let t=B(e[Zs.darken]);return t!==void 0&&t>0?t:null}var $b="hoverShow",Vb="cardHover",jb="always",rh=["ImageBlock","Flex"];function lh(e,t,o=zs){let a=e[C];return u(o,t,a)}function Xb(e,t=""){let o=rh.includes(t)?ah:zs,a=lh(e,sh(t),o),s=a==="mono";return{kind:a,duration:et("hover","duration",s?e[A.duration]:void 0),delay:et("hover","delay",s?e[A.delay]:void 0),...a==="nextImage"?{media:Xs(e),...t==="Flex"?Ks(e):{}}:Ks(e)}}function Ks(e){let t=nh(e),o=ih(e);return{...t?{zoom:t}:{},...o?{darken:o}:{}}}function zb(){return{not:{field:C,is:"nextImage"}}}function qb(e){return e==="none"?{field:C,in:["mono","nextImage"]}:{not:{field:C,is:"none"}}}function Zb(e){return e==="none"?{field:C,is:"mono"}:{not:{field:C,in:["none","nextImage"]}}}var ey=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),Qs=()=>({_partStyles:{text:{...lo,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var be="Cards",ch={...E,gap:12,gapPhone:12,...F(32,32,28,28)},dh={textStyle:"heading-3",...T("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},Ie={textStyle:"body-1",...T("body",15),lineHeight:1.6},p=(e,t,o,a=!1)=>({type:"Text",props:{...t,text:"",[y]:e,_partStyles:{text:{...a?Qs()._partStyles?.text??{}:{},...o}}}}),ye={title:"title",body:"body"},ot={title:"name",body:"note"},hh=(e=ye)=>({type:w,props:{...ch,name:"Card"},slots:{[m]:[p(e.title,{...S,tag:"p",widthFit:"fill"},dh),p(e.body,{...v,tag:"p",widthFit:"fill"},Ie)]}}),en=(e,t)=>_([hh(t)],e),Js={label:ye.title,href:"href"},uh={textStyle:"body-1",fontRole:"heading",color:"text",...T("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},ph=Gs(9,"main",{[Us]:45}),mh=(e=!1)=>({type:w,props:{...E,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...F(32,28),[k]:Js.href,...e?{[C]:oe}:{}},slots:{[m]:[{type:w,props:{...ph,name:"Mark"}},p(Js.label,{...S,tag:"p",widthFit:"fill"},uh)]}}),tn=e=>we(e,"card"),on=(e,t=!1)=>_([mh(t)],e);var fo="ArticleBody",fh={textStyle:"heading-3",...T("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},wh={...Ie,align:"center"},an=640,gh=()=>[p("heading",{...S,tag:"h2",align:"center",maxWidth:an},fh),p("paragraph",{...v,tag:"p",align:"center",maxWidth:an},wh)],bh=e=>_(gh(),e);function yh(e){return bh((t,o)=>`${e}~${o==="0"?"heading":"paragraph"}`)}function sn(e){return Y(e,h,fo,yh)}import{addShowWhenFacts as Eh}from"efficient-shell/format";import{showWhenOf as fy,shownForOption as wy,truthy as gy,withRowRules as by,withRowsShownWhen as nn,withShowWhen as yy}from"efficient-shell/format";var Ey=Eh;function Sy(e,t,o){return e.slice(0,-1).reduceRight((a,s)=>({any:[{all:[t(s),o(s)]},{all:[{not:t(s)},a]}]}),o(e[e.length-1]))}var Sh="inline",Th=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"},{label:"In the list column",value:"list-column",only:["Footprint"]}],rn="list-column";var _h={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"}},xy="SectionHeader";function ky(e){return ce(_h,e)}function at(e){return u(Th,Sh,e)}var vh=new Set(["Flex"]);function Ay(e){return!!e?.type&&vh.has(e.type)}var ln={not:{field:"headPlacement",is:"own-box"}},Ry={not:ln};function Cy(e,t,o){return nn(e,o,ln)}var Ny="data-sf-spec-region";function Iy(e){return e.writable===!0&&e.sized===!0}function Py(e,t,o){if(!e)return;let a=o[e];if(a)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${a}, ${t.builtIn})`}}function Hy(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 cn(e){return`@${e}`}function Dy(e,t){if(!t.startsWith("@"))return null;let o=t.slice(1);return o in e?o:null}function By(e,t){return t&&t in e?t:null}function hn(e,t){if(e!==be)return t;if(t[h]!==void 0)return dn(t);let o=U(t,be),a=tn(o);if(t.cardStyle==="label-only"){let n=Array.isArray(t.items)&&t.items.some(i=>M(i?.href)!==void 0);return dn({...t,[h]:on(a,n)})}let s=x(t)?ot:ye;return{...t,[h]:en(a,s)}}var Oh=e=>{let[t,o]=e?[ye,ot]:[ot,ye];return new Map([[t.title,o.title],[t.body,o.body]])};function un(e,t){let o=null;return e.forEach((a,s)=>{let n=a?.props;if(!n)return;let i=n,r=n[y];a.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[y]:t.get(r)});let l=n[m];if(Array.isArray(l)){let d=un(l,t);d!==l&&(i={...i,[m]:d})}i!==n&&(o??=[...e],o[s]={...a,props:i})}),o??e}function dn(e,t){if(!Array.isArray(e[h]))return e;let o=Oh(!!x(e)),a=t?new Map([...o].filter(([n,i])=>t(i)&&!t(n))):o;if(!a.size)return e;let s=un(e[h],a);return s===e[h]?e:{...e,[h]:s}}var pn="OrderSummary";var xh="label";function st(e){return Y(e,h,R,t=>_([kh()],we(t,"item")))}function kh(){return{type:w,props:{...E,name:"Item"},slots:{[m]:[p(xh,{...S,tag:"p"},Ie)]}}}var mn="ProcessSteps",Ah={eyebrow:"eyebrow",title:"title",copy:"copy",image:"image",tag:"tag",specs:"specs"},Ee=Ah,Rh=()=>({type:w,props:{...E,name:"Row",direction:"row",share:"equal",align:"center",gap:48,sectionPaddingTop:60,sectionPaddingBottom:60,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60},slots:{[m]:[{type:w,props:{...E,name:"Picture",direction:"column",gap:12},slots:{[m]:[{type:"ImageBlock",props:{[y]:Ee.image,aspect:"1/1",fit:"contain"}},p(Ee.tag,{...v,tag:"p"},ho(11))]}},{type:w,props:{...E,name:"Words",direction:"column",gap:16},slots:{[m]:[p(Ee.eyebrow,{...S,tag:"p"},{...ho(13),color:"accent"}),p(Ee.title,{...S,tag:"h2"},{textStyle:"heading-2",...T("headingMedium",42,28),lineHeight:1.1,letterSpacing:-.02}),p(Ee.copy,{...v,tag:"p"},{textStyle:"body-1",...T("body",15),lineHeight:1.6}),{type:R,props:{[y]:Ee.specs}}]}}]}});function fn(e){return e.map(t=>{let o=t.props;for(let a of pe(t))o={...o,[a]:fn(o[a])};return t.type===R?{...t,props:st(o)}:{...t,props:o}})}function sE(e){return fn(_([Rh()],we(e,"row")))}var Ch="label",Lh=()=>({type:"LogoBlock",props:{[y]:Ch}}),nt="Logos",wn=e=>_([Lh()],()=>`${e}~logo`);function gn(e){return x(e)?Y(e,h,nt,wn):e}function cE(e){if(!x(e))return e;let t=e[h];return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:{...e,[h]:wn(U(e,nt))}}var wo={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}},hE=wo;var go="FAQ",Nh="question",Ih="answer",Ph={textStyle:"body-1",fontRole:"heading",...T("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},Hh={textStyle:"body-1",...T("body",15),lineHeight:1.7};function SE(){return Object.keys(wo).map(cn)}var Dh=()=>({type:w,props:{...E,gap:0,name:"Question"},slots:{rowTitle:[p(Nh,{...S,tag:"p",widthFit:"fill"},Ph)],[m]:[p(Ih,{...v,tag:"p",widthFit:"fill",maxWidth:760},Hh)]}});function Bh(e){return at(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>M(e[t])!==void 0)}function bn(e){return Bh(e)?e:Y(e,h,go,t=>{let o=0;return _([Dh()],a=>a===w?`${t}~row`:`${t}~row.${o++}`)})}import{rootIsDark as Mh}from"efficient-shell/format";function vE(e="auto"){return e==="light"?!0:e==="dark"?!1:!Mh({whenUnset:!0})}function yn(e,t){return Number.isFinite(e)&&Number.isFinite(t)&&!(e===0&&t===0)}function bo(e){let t=Number.parseFloat(e??"");return Number.isFinite(t)?t:0}function xE(e,t,o){let a=[];return e.forEach((s,n)=>{let i=t(s),r=a.find(l=>l.key===i);r||(r={key:i,name:o(s),items:[]},a.push(r)),r.items.push({item:s,index:n})}),a}function En(e){return Fh[yo(e)]}var Fh={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function yo(e){if(e<=1)return 1;if(e<=4)return e;let t=o=>e%o||o;return t(4)>=t(3)?4:3}var Gh=["below","left","right"];function Sn(e){return u(Gh,"below",e)}var Wh=/^https?:\/\//i;function HE(e){let t=(e.href??"").trim(),o=(e.linkLabel??"").trim();return{role:e.role??"",city:e.city??"",country:e.country??"",address:e.address??"",hq:e.hq==="true",lat:bo(e.lat),lng:bo(e.lng),...t&&o&&Wh.test(t)?{href:t,linkLabel:o}:{}}}function DE(e){let t=o=>typeof o=="string"?o:"";return{badge:e.hq?"HQ":"",role:t(e.role),city:t(e.city),country:t(e.country),address:t(e.address),phone:t(e.phone),...e.href&&e.linkLabel?{href:e.href,linkLabel:e.linkLabel}:{}}}function BE(e){return[e.city,e.country,e.address,e.role].map(t=>typeof t=="string"?t.replace(/[=*]/g,"").trim():"").filter(Boolean).join(" ")}var ME={sectionNumber:"",heading:"",tagline:"",mapTheme:"auto"};function FE(e){let t=[];return e.forEach((o,a)=>{yn(o.lat,o.lng)&&t.push({key:String(a),label:o.city||o.role||"Office",lat:o.lat,lng:o.lng,glyph:"",tone:"",...o.hq?{badge:"HQ"}:{}})}),t}var Uh=["both","map","list"],GE="shows",_n="both";function Yh(e){return u(Uh,_n,e.shows)}function rt(e){return Yh(e)===_n?Sn(e.listPosition):"below"}var Kh=["fixed","full"],$h="mapHeight",Tn="fixed",WE="full",vn=e=>rt(e)!=="below";function UE(e){return vn(e)?u(Kh,Tn,e[$h]):Tn}function YE(e){return vn(e)&&at(e.headPlacement)===rn}var Vh=[1,2,3,4],it="auto",jh=2,Xh=1,zh=[it,...Vh.map(String)];function KE(e){let t=u(zh,it,e.listColumns);return t===it?t:Number(t)}var qh="max-view-desktop:grid-cols-2",Zh="max-[700px]:grid-cols-1";function $E(e,t){let o=e===it?yo(t):e;return[En(o),[o>jh?qh:"",o>Xh?Zh:""].filter(Boolean).join(" ")].join(" ")}function Eo(e){return Array.isArray(e)?e.map(Eo):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([t,o])=>t!=="id"&&o!==void 0&&!(Array.isArray(o)&&o.length===0)).sort(([t],[o])=>t<o?-1:t>o?1:0).map(([t,o])=>[t,Eo(o)]))}var K=e=>JSON.stringify(Eo(e));var ct="Footprint",kn=e=>x(e)===Qt,lt=co(11),Qh={textStyle:"body-1",...T("body",18),weight:500,lineHeight:1.2},tS=()=>({type:w,props:{...E,gap:8,gapPhone:8,...F(20,24,20,20),name:"Office"},slots:{[m]:[p("badge",{...S,tag:"p",widthFit:"fill"},lt,!0),p("role",{...S,tag:"p",widthFit:"fill"},lt,!0),p("city",{...S,tag:"p",widthFit:"fill"},Qh),p("country",{...v,tag:"p",widthFit:"fill"},lt),p("address",{...v,tag:"p",widthFit:"fill"},lt),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[y]:"linkLabel",[k]:"href"}}]}}),An={textStyle:"body-1",fontRole:"heading",...T("body",16),weight:500,lineHeight:1.25},To={textStyle:"body-1",...T("body",14),lineHeight:1.5},Jh=()=>({type:w,props:{...E,gap:4,gapPhone:4,...F(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[m]:[p("city",{...S,tag:"p",widthFit:"fill"},An),p("address",{...v,tag:"p",widthFit:"fill"},To),p("phone",{...v,tag:"p",widthFit:"fill"},To)]}});function Rn(e){let t=U(e,ct),o=0;return _([Jh()],a=>a===w?`${t}~office`:`${t}~office.${o++}`)}function Cn(e){return Array.isArray(e[h])&&e[h].length>0&&K(e[h])===K(Rn(e))}var Ln=e=>e===void 0||Array.isArray(e)&&e.length===0;function On(e){return rt(e)==="below"?Cn(e)?{...e,[h]:[]}:e:!Ln(e[h])||kn(e)?e:{...e,[h]:Rn(e)}}var eu=An,tu=To,ou={textFit:"line"},_o=(e,t,o="",a={},s={})=>{let n=p(e,{...t?v:S,tag:"p",...a},{...tu,...s});return o?{...n,props:{...n.props,[k]:o}}:n},So=(e,t,o,a)=>({type:w,props:{...E,gap:0,gapPhone:0,[Le]:[e],name:a},slots:{[m]:[_o(e,t,o,ou,{align:"right"})]}}),au=e=>({type:w,props:{...E,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?F(20,24):{...F(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[m]:[{type:w,props:{...E,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[m]:[{type:w,props:{...E,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[m]:[p("name",{...S,tag:"p",widthFit:"fill"},eu),_o("address",!0)]}},_o("place",!0,"",{widthFit:"fill"})]}},{type:w,props:{...E,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[m]:[So("distance",!0,"","Dealer distance"),So("phone",!1,"phoneHref","Dealer phone"),So("website",!1,"websiteHref","Dealer website")]}}]}}),su=e=>{let t=au(e),o={type:w,props:{...E,...F(0,12),name:"Dealer"},slots:{[m]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:o};function vo(e,t){let o=U(e,ct),a=0;return _([su(t)],(s,n)=>n==="0"?`${o}~dealer`:`${o}~dealer.${a++}`)}function xn(e){if(!Array.isArray(e[h])||e[h].length===0)return!1;let t=K(e[h]);return t===K(vo(e,!0))||t===K(vo(e,!1))}function Nn(e){if(kn(e)){let o=vo(e,rt(e)==="below");return!(Ln(e[h])||Cn(e)||xn(e))||K(e[h]??[])===K(o)?e:{...e,[h]:o}}if(!xn(e))return On(e);let t={...e,[h]:[]};return On(t)}var nu="Card template",In="items",Pn="itemFields";function ae(e,t){if(!t)return e;let o=typeof t=="string"?[t]:t;return e.filter(a=>o.includes(a.kind??"text"))}var iu=[{block:pn,typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:go,typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>bn(e)},{block:ct,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=>Nn(e)},{block:be,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=>hn(be,e)},{block:mn,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:R,label:"Card list"}]},{block:nt,fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>gn(e)},{block:R,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:In,seed:e=>st(e)},{block:fo,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>sn(e)}];function O(){return ue("efficient.card-templates",()=>new Map(iu.map(e=>[e.block,e])))}function SS(e){for(let t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");let o=[];for(let i of t.blocks??[]){if(typeof i?.type!="string"||!i.type)throw new Error(`The card template of ${t.block} names an empty block.`);if(i.type===dt)throw new Error(`The card template of ${t.block} names "${dt}" in its blocks. Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`);o.some(r=>r.type===i.type)||o.push({type:i.type,label:i.label||i.type})}let a=[];for(let i of t.slots??[]){if(typeof i?.slot!="string"||!i.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);let r=M(i.label),l=Array.isArray(i.fields)?{fields:i.fields.map(d=>({...d}))}:null;a.some(d=>d.slot===i.slot)||a.push({slot:i.slot,...r?{label:r}:null,...l})}let s=a.some(i=>i.fields);if(s&&(t.fields.some(i=>i.everySource)||hs(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);s?Re().add(t.block):Re().delete(t.block);let n=M(t.typedRows);O().set(t.block,{block:t.block,...a.length?{slots:a}:{},fields:t.fields.map(i=>({...i})),blocks:o,typedRows:n,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function ru(e,t){let o=e?O().get(e)?.seed:void 0;return o?o(t):t}function TS(e,t){let o=cu(e),a=(o.length?o:[h]).filter(r=>t[r]===void 0||Array.isArray(t[r])&&t[r].length===0);if(!a.length)return t;let s={...t};for(let r of a)delete s[r];let n=e?O().get(e)?.seedOnInsert:void 0,i=n?n(s):ru(e,s);return i===s?t:i}function _S(){for(let e of O().values())if(e.blocks?.length)return!0;return!1}function vS(e){return O().get(e)?.blocks??[]}function OS(e){for(let t of O().values())if(t.blocks?.some(o=>o.type===e))return!0;return!1}function xS(e){return typeof e=="string"&&O().get(e)?.typedRows||""}function kS(e){return typeof e=="string"&&O().get(e)?.linesBetween===!0}function AS(e){return typeof e=="string"&&O().has(e)}var lu=[{slot:h}];function ht(e){if(typeof e!="string")return[];let t=O().get(e);return t?t.slots??lu:[]}function cu(e){return ht(e).map(t=>t.slot)}function du(e,t){return ht(e).some(o=>o.slot===t)}function RS(e,t){let o=ht(e).find(a=>a.slot===t);return o?o.label??nu:null}function Oo(e,t){return t?ht(e).find(o=>o.slot===t)?.fields:void 0}function hu(e,t){let o=O().get(e)?.fields??[];return ae(o,t)}function uu(e,t){if(typeof e!="string")return"";let o=Oo(e,t);return(o?ae(o,"list"):hu(e,"list"))[0]?.key??""}function pu(e,t,o){return ko(e)||uu(t,o)}function Hn(e,t,o){let a=typeof e?.type=="string"?e.type:"";if(!a)return[];let s=Oo(a,o);if(s)return ae(s,t);let n=O().get(a)?.fields??[],i=qe(x(e?.props))?.fields,r=i?.length?[...i.map(l=>({...l})),...n.filter(l=>l.everySource&&!i.some(d=>d.key===l.key))]:n;return ae(r,t)}function mu(e,t,o,a){if(!e)return null;let s=Oo(e,a);return s?s.find(n=>n.key===t)??null:o?Hn(o).find(n=>n.key===t)??null:O().get(e)?.fields.find(n=>n.key===t)??null}function xo(e,t){return!e||!t?null:e.fields?.find(o=>o.key===t)??mu(e.ownerType,t,e.owner,e.slot)}function CS(e,t){return xo(e,t)?.plain===!0}function LS(e,t){return xo(e,t)?.kind==="date"}function ko(e,t=y){let o=e?.[t];return typeof o=="string"?o.trim():""}function NS(e,t){return e.key||String(t+1)}function IS(e){let t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[o,a]of Object.entries(e))typeof a=="string"&&(t[o]=a);return t}function PS(e,t){let o=e[Le];return!t||!Array.isArray(o)||!o.length?!1:o.every(a=>typeof a!="string"||!t[a]?.trim())}var Ao={Text:{text:y,href:k},ImageBlock:{src:y,href:k},ButtonBlock:{label:y,href:k},LogoBlock:{alt:y,href:k},Breadcrumb:{currentCrumb:y}},HS=Ao,fu=new Set(["ButtonBlock.label","LogoBlock.alt"]);function DS(e,t,o){return wu(e,t,o)&&!fu.has(`${e}.${o}`)}function wu(e,t,o){return gu(e,t,o)!==""}function gu(e,t,o){let a=Ao[e]?.[o];return a?ko(t,a):""}function Dn(e,t){return!t||!e?null:e[t]??""}function bu(e,t){return Dn(e,t)?.trim()||void 0}function BS(e,t,o,a,s,n){if(!o)return t;let i=null;for(let[r,l]of Object.entries(Ao[e]??{})){let d=ko(t,l),b=Dn(o,d);if(b!==null){if(i??={...t},l===k){i[r]=bu(o,d);continue}i[r]=xo({ownerType:a,fields:s,slot:n},d)?.mark==="accentItalic"?Za(b):b}}return i??t}function ut(e,t){let o=e?.data?.content;if(!Array.isArray(o)||typeof t!="string")return;let a=(n,i)=>{for(let r of n){if(r?.props?.id===t)return i;for(let l of pe(r??{})){let d=r.props[l],b=du(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},g=a(d,b);if(g!==void 0)return g}}},s=a(o,null);return s===void 0?null:s}function yu(e,t){let o=ut(e,t);return o&&o.owner}function Eu(e,t){let o=ut(e,t);return o&&o.slot}function MS(e,t){let o=ut(e,t);return o&&(o.direct?o.owner:null)}function FS(e,t){let o=ut(e,t);if(o!==void 0)return o===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:o.nested,underBox:o.underBox}}function GS(e,t,o){if(t?.type!==R)return[];let a=yu(e,t.props?.id);if(!a){let r=qe(x(t.props))?.fields,l=r?.length?r.map(g=>({...g})):Su(t.props),d=(O().get(R)?.fields??[]).filter(g=>g.everySource&&!l.some(H=>H.key===g.key)),b=[...l,...d];return ae(b,o)}let s=Eu(e,t.props?.id)??void 0,n=pu(t.props,a.type,s),i=n&&Hn(a,"list",s).find(r=>r.key===n)?.fields||[];return ae(i,o)}function WS(e,t){return{[y]:"",[In]:e.map(o=>({...o})),[Pn]:t.map(o=>({...o}))}}function Su(e,t){let o=e?.[Pn];if(!Array.isArray(o))return[];let a=o.flatMap(s=>{if(!s||typeof s!="object")return[];let{key:n,label:i,kind:r,multiline:l,alt:d,next:b}=s;if(typeof n!="string"||!n||typeof i!="string")return[];let g=r==="image"||r==="link"||r==="colour"||r==="date"?r:void 0;return[{key:n,label:i,...g?{kind:g}:{},...l===!0?{multiline:!0}:{},...typeof d=="string"&&d?{alt:d}:{},...typeof b=="string"&&b?{next:b}:{}}]});return ae(a,t)}var dt="HostPart";import{parseHexColor as Tu}from"efficient-shell/format";var Ro=[{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}],_u=Ro.filter(e=>e.ink);function Bn(e){let t={color:e.fg};for(let{role:o,token:a}of _u)t[a]=e[o];return t}var vu={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},Ou=Object.freeze(Bn(vu)),xu={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)"},ku=Object.freeze(Bn(xu));function $S(e,t){let o=e?Tu(e):null;return o?ka(o,t)?Ou:ku:null}var Mn=-1,Au="sf-section-accent",XS="Color",Fn=new Set(["CategoryBar","DocTabs"]),zS=new Set(["Flex"]),Ru=0;function Cu(e){return e===Mn?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ru}function qS(e){return e??Mn}function Lu(e){let t=`--theme-preset-${e}`,o={"--sf-sec-accent":`var(${t}-accent)`,"--sf-sec-accent-2":`var(${t}-accent-2)`,"--sf-sec-accent-ink":`var(${t}-accent-ink)`};for(let{role:a}of Ro)o[`--sf-sec-${a}`]=`var(${t}-${a}, var(--theme-${a}))`;return o}function ZS(e){let t=Cu(e.sectionAccent);return t===null?null:{className:Au,style:Lu(t)}}import{FOLLOW_RULES as Iu,resolveViewValue as Pu,viewKeyAt as Hu}from"efficient-easel/screen/lib/content/view-tiers";var Co={desktop:"desktop",tablet:"tablet",phone:"mobile"},Nu=Object.keys(Co);function Gn(e){return Co[e??"desktop"]}function JS(e){return Nu.find(t=>Co[t]===e)??"desktop"}var Io=["desktop","tablet","phone"],No=(e,t)=>Hu(e,Gn(t)),Wn=e=>e.flatMap(t=>Io.map(o=>No(t,o))),Lo=e=>e===null||e===""?void 0:e,Du=(e,t,o)=>Pu("same",Lo(e),Lo(t),Lo(o),Iu);function Un(e,t,o,a=e[t]){return Du(a,e[No(t,"tablet")],e[No(t,"phone")])[o]}import{createContext as Ei,createElement as Be,useContext as Me}from"react";import{Fragment as kp,jsx as I}from"react/jsx-runtime";import{createContext as Vo,useContext as P}from"react";import{jsx as _e,Fragment as ti}from"react/jsx-runtime";import{createContext as ep,useContext as oi,useEffect as tp,useRef as op,useState as ap}from"react";import{SCROLL_ZOOM_VAR as Jn}from"efficient-shell/format";import{readEntrance as Mu}from"efficient-shell/format";var Pe={kind:"entrance",from:"entranceFrom",duration:"entranceDuration",delay:"entranceDelay"},Po="sectionAnimation",Bu=Wn(Object.values(Pe));var Yn="sf-entrance",Fu=e=>e!=null&&e!=="";function Gu(e,t){let o=e[Pe[t]];return t==="kind"&&!Fu(o)?e[Po]:o}var pt=(e,t,o)=>Un(e,Pe[t],o,Gu(e,t));function Ho(e,t){return Mu(pt(e,"kind",t),pt(e,"from",t),pt(e,"duration",t),pt(e,"delay",t))}var Wu=e=>({desktop:Ho(e,"desktop"),tablet:Ho(e,"tablet"),phone:Ho(e,"phone")});function uT(e){let t=Wu(e);return Io.every(o=>t[o].kind==="none")?null:t}var Uu={...Object.fromEntries([...Fn].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)",[dt]:"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"},pT=new Set(Object.keys(Uu));function Kn(e,t,o,a){return t<=0?1/0:a?2*(e-4)/(t+o):2*(e-o/2-4)/t}function $n(e,t,o){let a=r=>r.width>0&&r.height>0;if(!a(e)||t.some(r=>r.mark&&!a(r.rect)))return 1;let s=e.left+e.width/2,n=e.top+e.height/2,i=o;for(let{rect:r,mark:l}of t){let d=Math.abs(r.left+r.width/2-s),b=Math.abs(r.top+r.height/2-n),g=Math.max(Kn(d,e.width,r.width,l),Kn(b,e.height,r.height,l));i=Math.min(i,Math.max(1,g))}return i}var Vn=["cover","contain"],Yu={cover:"Cover",contain:"Contain"},gT="Image fit";function Do(e,t){return u(Vn,t,e)}function bT(){return Vn.map(e=>({label:Yu[e],value:e}))}function yT(e){return e==="contain"?"object-contain":"object-cover"}function Bo(e,t){return e!=="auto"&&t==="cover"}function mt(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}function _T(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"screen":return"aspect-[16/10]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";case"custom":return"aspect-[var(--shape-ratio)]";default:return"aspect-square"}}var Se=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"screen",image:"16/10",ratio:[16,10],label:"Screen 16:10"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"},{shape:"custom",image:"custom",ratio:null,label:"Custom W:H"}],Mo="custom",Ku=/^(\d{1,4}(?:\.\d{1,2})?)\/(\d{1,4}(?:\.\d{1,2})?)$/;function ft(e){if(typeof e!="string")return null;let t=Ku.exec(e);if(!t)return null;let o=Number(t[1]),a=Number(t[2]);return o>0&&a>0?[o,a]:null}function He(e){return Se.every(t=>t.shape!==e&&t.image!==e)&&ft(e)!==null}function vT(e,t,o){let a=Se.find(s=>s.ratio!==null&&s.ratio[0]*t===s.ratio[1]*e);return a?a[o]:`${e}/${t}`}function Fo(e){return`${e[0]} / ${e[1]}`}var $u={desktop:"--shape-ratio",tablet:"--shape-ratio-tablet",phone:"--shape-ratio-phone"};function jn(e){let t={};for(let o of["desktop","phone","tablet"]){let a=He(e[o])?ft(e[o]):null;a&&(t[$u[o]]=Fo(a))}return Object.keys(t).length?t:null}function OT(e){return Se.filter(t=>e.includes(t.shape))}function xT(e){return e==="below"}var kT=`linear-gradient(180deg, transparent 40%, ${mt(.85)} 100%)`,AT=`linear-gradient(0deg, transparent 40%, ${mt(.85)} 100%)`,RT=mt(.45);var Vu=Se.map(e=>e.image).filter(e=>e!==Mo),wt=e=>He(e)?Mo:e,G="fill",PT={label:"Fill row",value:G,showWhen:Ls},Go="4/3",Xn={frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},qn={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:Xn,tablet:Xn,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 HT(e,t,o){return t&&!Te(o)?"all":e??"wide"}function zn(e){return qn[e]}var DT=qn.all;function Zn(e){return e?`${e.img} h-full w-full`:"relative h-full w-full"}var ju={auto:"","3/4":"aspect-[3/4]","2/1":"aspect-[2/1]","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","16/10":"aspect-[16/10]","1/1":"aspect-square","9/16":"aspect-[9/16]","2/3":"aspect-[2/3]","4/5":"aspect-[4/5]",custom:"aspect-[var(--shape-ratio)]"},Xu={auto:"","3/4":"view-wide:aspect-[3/4]","2/1":"view-wide:aspect-[2/1]","21/9":"view-wide:aspect-[21/9]","16/9":"view-wide:aspect-[16/9]","4/3":"view-wide:aspect-[4/3]","16/10":"view-wide:aspect-[16/10]","1/1":"view-wide:aspect-square","9/16":"view-wide:aspect-[9/16]","2/3":"view-wide:aspect-[2/3]","4/5":"view-wide:aspect-[4/5]",custom:"view-wide:aspect-[var(--shape-ratio)]"},zu={auto:"","3/4":"max-view-wide:aspect-[3/4]","2/1":"max-view-wide:aspect-[2/1]","21/9":"max-view-wide:aspect-[21/9]","16/9":"max-view-wide:aspect-[16/9]","4/3":"max-view-wide:aspect-[4/3]","16/10":"max-view-wide:aspect-[16/10]","1/1":"max-view-wide:aspect-square","9/16":"max-view-wide:aspect-[9/16]","2/3":"max-view-wide:aspect-[2/3]","4/5":"max-view-wide:aspect-[4/5]",custom:"max-view-wide:aspect-[var(--shape-ratio-phone)]"},qu={auto:"max-view-wide:aspect-auto!","3/4":"max-view-wide:aspect-[3/4]!","2/1":"max-view-wide:aspect-[2/1]!","21/9":"max-view-wide:aspect-[21/9]!","16/9":"max-view-wide:aspect-[16/9]!","4/3":"","16/10":"max-view-wide:aspect-[16/10]!","1/1":"max-view-wide:aspect-square!","9/16":"max-view-wide:aspect-[9/16]!","2/3":"max-view-wide:aspect-[2/3]!","4/5":"max-view-wide:aspect-[4/5]!",custom:"max-view-wide:aspect-[var(--shape-ratio-phone)]!"},Wo=e=>Vu.includes(e)||He(e),Te=Wo;function BT(e){let t=Wo(e)?He(e)?ft(e):Se.find(o=>o.image===e)?.ratio:null;return t?Fo(t):null}function MT(e,t){return jn({desktop:e,phone:t})}function FT(e,t,o){return o==="contain"?!0:[e,t??e].every(a=>a!==G&&(!Wo(a)||a==="auto"))}function GT(e,t){return e===G&&!t?Go:e}function WT(e){return e===G?Go:Te(e)?e:void 0}function Qn(e,t){return Te(t)?t===e?null:t:e===G?Go:null}function Zu(e,t){let o=Qn(e,t);return Bo(e,"cover")||o!==null&&Bo(o,"cover")}function Qu(e,t,o){return Do(e,"cover")==="cover"&&Zu(t,o)}function UT(e,t,o,a){return e==="desktop"?Qu(t,o,a):Do(t,"cover")!=="cover"?!1:Ju(e==="tablet"?o:Qn(o,a)??o)}var Ju=e=>e===G||Te(e)&&e!=="auto";function YT(e,t,o="wide"){return e===G&&o==="all"?zn("all").frame:t===null?Te(e)?ju[wt(e)]:"":[e===G?zn(o).frame:Te(e)?Xu[wt(e)]:"",e===G&&o==="desktop"?qu[wt(t)]:zu[wt(t)]].filter(Boolean).join(" ")}var bt=ep(null);function ZT({attrs:e,style:t,children:o}){return _e(bt.Provider,{value:{attrs:e,style:t},children:o})}function ai({children:e}){return _e(bt.Provider,{value:null,children:e})}function QT({fill:e=null,children:t}){let o=oi(bt);return o?_e("div",{className:Zn(e),...o.attrs,style:o.style,children:t}):_e(ti,{children:t})}var gt="data-sf-mark";function ei(e){let t=e.getBoundingClientRect(),o=e.firstElementChild,a=o&&typeof o.offsetWidth=="number"?o:e,s=Math.max(a.offsetWidth,e.offsetWidth),n=Math.max(a.offsetHeight,e.offsetHeight);return{left:t.left+t.width/2-s/2,top:t.top+t.height/2-n/2,width:s,height:n}}function sp(e){return e.closest(`[${gt}]`)||e.closest("style, script")?!1:[...e.childNodes].some(t=>t.nodeType===3&&(t.textContent??"").trim()!=="")}var si=e=>e.closest(`.${Yn}`)??e.ownerDocument.body;function np(e,t){let o=si(e),a=[];for(let s of o.querySelectorAll(`[${gt}]`))s!==e&&a.push({rect:ei(s),mark:!0});for(let s of o.querySelectorAll("*")){if(s.contains(e)||!sp(s))continue;let n=s.getBoundingClientRect();n.width===0||n.height===0||a.push({rect:{left:n.left,top:n.top,width:n.width,height:n.height},mark:!1})}return $n(ei(e),a,t)}function JT({inCell:e=!1,children:t}){let o=oi(bt),a=op(null),[s,n]=ap(null),i=o?Number.parseFloat(String(o.style[Jn])):Number.NaN;if(tp(()=>{let l=a.current;if(!l||!Number.isFinite(i))return;let d=()=>n(np(l,i));d();let b=l.ownerDocument.defaultView?.ResizeObserver;if(!b)return;let g=new b(d),H=si(l);g.observe(l),g.observe(H);for(let D of H.querySelectorAll(`[${gt}]`))D!==l&&g.observe(D);return()=>g.disconnect()},[i]),!o)return _e(ti,{children:t});let r=Number.isFinite(i)?{...o.style,[Jn]:String(s??1)}:o.style;return _e("span",{ref:a,className:e?"inline-flex min-w-0 max-w-full items-center justify-center":"inline-flex items-center justify-center",[gt]:"",...o.attrs,style:r,children:t})}import{FOLLOW_RULES as ip,VIEW_TIERS as rp,resolveViewValue as lp}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as cp}from"efficient-easel/screen/lib/content/length-units";var dp=["auto","fixed","screen","fill"],hp=cp.filter(e=>e==="px"||e==="%"),up="svh",pp="vh",mp="var(--sf-header-h, 88px)",fp={min:40,max:2e3,step:10,fallback:600},wp={min:10,max:200,step:5,fallback:100},gp="sf-section-minh",De="grid-cols-[minmax(0,1fr)]",ni={base:"--sf-section-minh",small:"--sf-section-minh-s"},Yo=e=>typeof e=="string"&&dp.includes(e),bp=e=>typeof e=="string"&&hp.includes(e);function yt(e){let t=Yo(e.sectionHeightMode)?e.sectionHeightMode:"auto",o=t==="screen"?"%":bp(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=t==="screen"?wp.fallback:fp.fallback,s=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:t,value:s,unit:o}}function li(e){let{mode:t,value:o,unit:a}=yt(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&a==="px")return[`${o}px`,null];let s=o/100,n=i=>t==="screen"?`(100${i} - ${mp})`:`100${i}`;return[`calc(${n(pp)} * ${s})`,`calc(${n(up)} * ${s})`]}function ci(e){let t=li(e);if(!t)return;let[o,a]=t;return{display:"grid",[ni.base]:o,...a?{[ni.small]:a}:{}}}var a_=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),s_="Height",di="sf-section-minh-phone",ii={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function hi(e){return Yo(e.sectionHeightModePhone)}function yp(e){return yt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var ui="sf-section-minh-tablet",ri={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function pi(e){return Yo(e.sectionHeightModeTablet)}function Ep(e){return yt({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function Ko(e){let t=ci(e),o=(r,l,d)=>li({sectionHeightMode:r,sectionHeightValue:l,sectionHeightUnit:d})??(t?["auto",null]:void 0),a=pi(e)?o(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,s=hi(e)?o(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):a;if(!t&&!a&&!s)return null;let n=[gp,De],i={...t??{}};return a&&(n.push(ui),i[ri.base]=a[0],a[1]&&(i[ri.small]=a[1])),s&&(n.push(di),i[ii.base]=s[0],s[1]&&(i[ii.small]=s[1])),{className:n.join(" "),style:i}}function n_(e){return Ko(e)!==null||Et(e).length>0}var Uo=`grid ${De}`,mi="h-full",Sp="view-tablet:max-view-desktop:grid",fi="max-view-tablet:grid",Tp="view-wide:max-view-desktop:grid",_p="max-view-wide:grid",vp=`${fi} ${De}`;function i_(e,{atSectionLine:t=!1}={}){if(Et(e).length>0)return Uo;let o=Ko(e);if(!o)return"";if(ci(e))return Uo;let a=o.className.split(" "),s=t?Sp:Tp,n=t?fi:_p;if(!a.includes(ui))return t?vp:`${n} ${De}`;let i=a.includes(di);return[s,i?n:"",De].filter(Boolean).join(" ")}var wi="data-sf-height-fill",Op=rp,xp={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 Et(e){let t=e,o=lp("heightMode",yt(t).mode,pi(t)?Ep(t).mode:null,hi(t)?yp(t).mode:null,ip),a={desktop:o.desktop==="fill",tablet:o.tablet==="fill",mobile:o.phone==="fill"};return Op.filter(s=>a[s])}function r_(e){return Et(e).map(t=>xp[t]).join(" ")}function l_(e){let t=Ko(e);return Et(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:Uo}}var gi={stretchedRow:!1,fillingColumn:!1},L=Vo(null),bi=()=>P(L)!==null;function w_({line:e,draw:t}){return I(kp,{children:t(Ae(e,bi()))})}var g_=(e="by-box")=>Ae(e,bi()),b_=()=>P(L),y_=()=>P(L)?.id??null,$=Vo(!1);function Ap(){let e=P(L)?.stretchedRow===!0,t=P($);return e&&!t}var Rp=()=>P($);function Cp(){let e=P(L),t=Ap(),o=Rp();return{fill:o?` ${mi}`:"",inner:a=>{let s=t||o?I($.Provider,{value:!0,children:a}):a;return e?.columnsRow?I(L.Provider,{value:{...e,columnsRow:!1},children:s}):s}}}function E_({className:e,style:t,attrs:o,children:a}){let{fill:s,inner:n}=Cp(),i=jo();return i.scope(I("div",{className:Xo(`${e}${s}`,i.className),...t?{style:t}:{},...o,...i.attrs,children:n(a)}))}var $o=Vo(!1);function S_({children:e}){return I($o.Provider,{value:!0,children:I($.Provider,{value:!0,children:e})})}function T_({children:e,ownPictures:t=!1}){let o=P(L),a=P($o),s=P($),n=a&&s,i=o===null?null:o.id===void 0?gi:{...gi,id:o.id};return I(L.Provider,{value:i,children:I($o.Provider,{value:!1,children:I($.Provider,{value:n,children:t?e:I(ai,{children:e})})})})}var St=Ei(null),yi="data-sf-view-hide",Si=e=>Be(St.Provider,{value:null},e),Ti={className:"",attrs:{},scope:Si},Lp=Ti,_i=Ei(null),A_=(e,t)=>e?{className:e,views:t}:null,Np=e=>Be(St.Provider,{value:null},Be(_i.Provider,{value:null},Be($.Provider,{value:!0},e))),R_=(e,t,o={})=>e?{className:e,words:t,...o}:null,vi=(e,t)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:Ae(e.line??"by-box",t)?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function jo(){let e=Me(St),t=Me(_i),o=Me(L)!==null;if(e===null&&t===null)return Lp;let a=e===null?null:vi(e,o);return t===null?{className:a.className,attrs:{[yi]:a.words},scope:Si}:{className:a?`${a.className} ${t.className}`:t.className,attrs:{...a?{[yi]:a.words}:{},[wi]:t.views},scope:Np}}function C_(){let e=Me(St),t=Me(L)!==null;return e===null?"":vi(e,t).className}var Xo=(e,t)=>t?e?`${e} ${t}`:t:e;function L_(e){let t=jo(),o=e.takes===!1?Ti:t,a={},s=!1;for(let[n,i]of Object.entries(e))n==="as"||n==="takes"||n==="children"||(n==="className"?(a.className=Xo(i,o.className),s=!0):a[n]=i);return!s&&o.className&&(a.className=o.className),o.scope(Be(e.as??"div",{...a,...o.attrs},e.children))}var I_={small:54,medium:66,large:84},Ip=44,Pp=16,Hp=140,P_={min:Pp,max:Hp,step:1},H_=Ip*4;import{forwardRef as Dp}from"react";import{imageCopyUrl as Oi,imageSrcSet as xi}from"efficient-shell/image-copies";import{jsx as Fp}from"react/jsx-runtime";var Bp={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"};function ki(e,t,o){if(o){let a=xi(e);return a?{src:Oi(e,1280),srcSet:a,sizes:o}:{src:e,sizes:o}}if(t&&t>0){let a=xi(e,{maxWidth:t*3});return a?{src:Oi(e,t*2),srcSet:a,sizes:`${t}px`}:{src:e}}return{src:e}}var Mp=Dp(function({src:t,width:o,height:a,fill:s,priority:n,loading:i,style:r,quality:l,placeholder:d,blurDataURL:b,unoptimized:g,loader:H,overrideSrc:D,sizes:V,...Fe},Tt){let Ge=D??(typeof t=="string"?t:t.src),_t=ki(Ge,s?void 0:Number(o)||void 0,V??(s?"100vw":void 0));return Fp("img",{ref:Tt,..._t,width:s?void 0:o,height:s?void 0:a,loading:n?"eager":i??"lazy",fetchPriority:n?"high":void 0,decoding:"async",style:s?{...Bp,...r}:{color:"transparent",...r},...Fe})}),F_=Mp;function G_(e){let t=e.overrideSrc??(typeof e.src=="string"?e.src:e.src.src),o=e.fill?void 0:Number(e.width)||void 0;return{props:ki(t,o,e.sizes??(e.fill?"100vw":void 0))}}export{ue as a,M as b,xc as c,Hw as d,kc as e,Dw as f,Bw as g,Mw as h,Fw as i,Gw as j,Ww as k,Qt as l,Ac as m,Uw as n,Yw as o,hs as p,qe as q,Kw as r,$w as s,x as t,Ic as u,Vw as v,y as w,k as x,h as y,R as z,Le as A,Z as B,Pc as C,ms as D,pe as E,Jw as F,eg as G,tg as H,Gc as I,og as J,ke as K,ce as L,bf as M,de as N,yf as O,kl as P,Ef as Q,Sf as R,Tf as S,_f as T,Cl as U,Xe as V,Af as W,m as X,w as Y,ws as Z,ig as _,rg as $,xe as aa,Xm as ba,$t as ca,zm as da,qm as ea,Zm as fa,Qm as ga,gl as ha,j as ia,bl as ja,tf as ka,Lf as la,Nf as ma,Il as na,If as oa,Pf as pa,Kf as qa,zt as ra,tc as sa,za as ta,zf as ua,qf as va,Zf as wa,Za as xa,Qf as ya,Jf as za,ew as Aa,B as Ba,ge as Ca,Us as Da,_b as Ea,C as Fa,Cb as Ga,$d as Ha,oe as Ia,Vd as Ja,Lb as Ka,Nb as La,Ib as Ma,Pb as Na,Hb as Oa,Xd as Pa,Db as Qa,$s as Ra,A as Sa,mo as Ta,Bb as Ua,zd as Va,qd as Wa,js as Xa,Mb as Ya,Jd as Za,Fb as _a,eh as $a,Gb as ab,uo as bb,Wb as cb,th as db,oh as eb,Ub as fb,Yb as gb,zs as hb,ah as ib,Kb as jb,sh as kb,Zs as lb,po as mb,$b as nb,Vb as ob,jb as pb,rh as qb,lh as rb,Xb as sb,zb as tb,qb as ub,Zb as vb,ts as wb,Ja as xb,aw as yb,sw as zb,nw as Ab,Jc as Bb,Ze as Cb,pg as Db,mg as Eb,fg as Fb,bs as Gb,Qe as Hb,wg as Ib,sd as Jb,gg as Kb,oo as Lb,nd as Mb,yg as Nb,ys as Ob,Eg as Pb,ld as Qb,cd as Rb,dd as Sb,Ss as Tb,_g as Ub,Ts as Vb,vg as Wb,_s as Xb,kg as Yb,vs as Zb,Q as _b,Ag as $b,Rg as ac,Cg as bc,As as cc,fe as dc,Fg as ec,fd as fc,Sd as gc,Gg as hc,Wg as ic,so as jc,Ug as kc,Yg as lc,Td as mc,$g as nc,Vg as oc,jg as pc,Xg as qc,xd as rc,Ad as sc,zg as tc,qg as uc,Zg as vc,Qg as wc,Jg as xc,eb as yc,tb as zc,ob as Ac,ab as Bc,Ps as Cc,Hs as Dc,sb as Ec,nb as Fc,ib as Gc,rb as Hc,lb as Ic,Hd as Jc,cb as Kc,db as Lc,Ms as Mc,hb as Nc,Dd as Oc,Bd as Pc,ub as Qc,pb as Rc,Fs as Sc,S as Tc,v as Uc,Gd as Vc,E as Wc,F as Xc,Wd as Yc,Gs as Zc,T as _c,Eb as $c,lo as ad,co as bd,ho as cd,_ as dd,U as ed,ey as fd,Qs as gd,be as hd,Ie as id,p as jd,ye as kd,ot as ld,hh as md,en as nd,Js as od,mh as pd,tn as qd,dn as rd,mn as sd,sE as td,fo as ud,bh as vd,sn as wd,Lh as xd,cE as yd,fy as zd,wy as Ad,gy as Bd,by as Cd,nn as Dd,yy as Ed,Ey as Fd,Sy as Gd,_h as Hd,xy as Id,ky as Jd,at as Kd,Ay as Ld,ln as Md,Ry as Nd,Cy as Od,Ny as Pd,Iy as Qd,Py as Rd,Hy as Sd,cn as Td,Dy as Ud,By as Vd,wo as Wd,hE as Xd,SE as Yd,Dh as Zd,vE as _d,yn as $d,bo as ae,xE as be,En as ce,yo as de,HE as ee,DE as fe,BE as ge,ME as he,FE as ie,GE as je,_n as ke,Yh as le,rt as me,$h as ne,Tn as oe,WE as pe,UE as qe,YE as re,Vh as se,it as te,KE as ue,$E as ve,K as we,tS as xe,Nn as ye,In as ze,Pn as Ae,ae as Be,SS as Ce,ru as De,TS as Ee,_S as Fe,vS as Ge,OS as He,xS as Ie,kS as Je,AS as Ke,cu as Le,du as Me,RS as Ne,hu as Oe,pu as Pe,Hn as Qe,xo as Re,CS as Se,LS as Te,ko as Ue,NS as Ve,IS as We,PS as Xe,HS as Ye,DS as Ze,wu as _e,gu as $e,Dn as af,bu as bf,BS as cf,yu as df,Eu as ef,MS as ff,FS as gf,GS as hf,WS as if,dt as jf,kt as kf,At as lf,qp as mf,Zp as nf,Or as of,Rt as pf,Qp as qf,xr as rf,Jp as sf,em as tf,am as uf,lm as vf,cm as wf,dm as xf,hm as yf,um as zf,Mt as Af,Ft as Bf,pm as Cf,se as Df,Ir as Ef,xa as Ff,mm as Gf,fm as Hf,ie as If,ne as Jf,Dr as Kf,Br as Lf,wm as Mf,gm as Nf,$e as Of,ka as Pf,bm as Qf,ym as Rf,Em as Sf,Wt as Tf,Sm as Uf,Aa as Vf,Yr as Wf,Tm as Xf,_m as Yf,vm as Zf,$r as _f,Om as $f,xm as ag,km as bg,Am as cg,Rm as dg,Cm as eg,Ut as fg,Qr as gg,Lm as hg,Nm as ig,Ve as jg,Pa as kg,tl as lg,Im as mg,Yt as ng,_a as og,Pm as pg,Hm as qg,ol as rg,al as sg,Ha as tg,je as ug,il as vg,rl as wg,ll as xg,Da as yg,cl as zg,Ba as Ag,Mm as Bg,Fm as Cg,Gm as Dg,Wm as Eg,Oe as Fg,Ma as Gg,Um as Hg,Ym as Ig,Kt as Jg,Fa as Kg,Km as Lg,$m as Mg,Vm as Ng,Ro as Og,_u as Pg,Ou as Qg,$S as Rg,Mn as Sg,XS as Tg,Fn as Ug,zS as Vg,Ru as Wg,Cu as Xg,qS as Yg,Lu as Zg,ZS as _g,ze as $g,as as ah,os as bh,cc as ch,dc as dh,hc as eh,cw as fh,uc as gh,dw as hh,he as ih,hw as jh,uw as kh,pw as lh,mc as mh,ns as nh,mw as oh,fw as ph,ww as qh,wc as rh,gw as sh,bc as th,mt as uh,_T as vh,Se as wh,Mo as xh,ft as yh,He as zh,vT as Ah,jn as Bh,OT as Ch,xT as Dh,Co as Eh,Gn as Fh,JS as Gh,Io as Hh,No as Ih,Wn as Jh,Du as Kh,Un as Lh,Pe as Mh,Po as Nh,Bu as Oh,Yn as Ph,Ho as Qh,Wu as Rh,uT as Sh,pT as Th,Yu as Uh,gT as Vh,Do as Wh,bT as Xh,yT as Yh,G as Zh,PT as _h,HT as $h,zn as ai,DT as bi,Zn as ci,BT as di,MT as ei,FT as fi,GT as gi,WT as hi,Qn as ii,Zu as ji,Qu as ki,UT as li,YT as mi,ZT as ni,ai as oi,QT as pi,JT as qi,dp as ri,hp as si,fp as ti,wp as ui,De as vi,yt as wi,a_ as xi,s_ as yi,hi as zi,pi as Ai,Ep as Bi,n_ as Ci,Uo as Di,mi as Ei,i_ as Fi,Et as Gi,r_ as Hi,l_ as Ii,L as Ji,w_ as Ki,g_ as Li,b_ as Mi,y_ as Ni,$ as Oi,Ap as Pi,Rp as Qi,Cp as Ri,E_ as Si,S_ as Ti,T_ as Ui,St as Vi,Ti as Wi,_i as Xi,A_ as Yi,R_ as Zi,jo as _i,C_ as $i,Xo as aj,L_ as bj,I_ as cj,Ip as dj,Pp as ej,P_ as fj,H_ as gj,F_ as hj,G_ as ij,Ew as jj,ba as kj,Kp as lj,cf as mj,vl as nj,df as oj,hf as pj,uf as qj,pf as rj,_c as sj,_w as tj,rs as uj,vc as vj,Oc as wj,Ow as xj,xw as yj,kw as zj};
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
import{S as Se,_ as _t,aa as Rt,ba as Nt,da as q,g as wt}from"./chunk-GUMG6SIC.js";import{aj as xt,cj as Ve,dj as Xe,fj as St,qf as Ct,sj as xe,tj as Et,wj as Ye,xj as Pt}from"./chunk-BVHE65VQ.js";import{d as vt,p as pe}from"./chunk-ZROLUHOX.js";import{createContext as Ln,useContext as Ot,useEffect as An,useMemo as ve,useState as At}from"react";function It(e,t){return e.map(n=>({partNumber:n.partNumber,quantity:n.wheels*t}))}function me(e,t){if(e.length===0)return null;let n=0;for(let r of e){let o=r.prices?.[t];if(typeof o!="number"||!Number.isFinite(o)||o<=0)return null;n+=o*r.wheels}return n}var Qe=4,Yr=1,Qr={unit:"set",spares:0,spareSide:"left"};function Lt(e){return e.unit==="single"?1:Qe+e.spares}function jr(e,t){return[{partNumber:e.partNumber,wheels:Lt(t),prices:e.prices}]}function Zr(e,t){let n=Lt(t)-Qe;if(n<=0||e.length===0)return e;let r=Nn(e),o=r?r[t.spareSide]:0;return e.map((i,a)=>a===o?{...i,wheels:i.wheels+n}:i)}function Nn(e){let t,n;for(let r=0;r<e.length;r+=1){let o=e[r].hand;if(o!=="left"&&o!=="right")continue;if((o==="left"?t:n)!==void 0)return null;o==="left"?t=r:n=r}return t!==void 0&&n!==void 0?{left:t,right:n}:null}function kn(e,t){return t.spares>0?`${e} + spare`:e}function Jr(e){return e.unit==="single"?"Single":kn(`Set of ${Qe}`,e)}var eo="data-add-to-basket",je=9,In="en",kt=new Map;function Me(e,t,n){let r=`${e}|${t??""}|${n??""}`,o=kt.get(r);return o||(o=new Intl.NumberFormat(In,{style:"currency",currency:e,...t===void 0?{}:{minimumFractionDigits:t},...n===void 0?{}:{maximumFractionDigits:n}}),kt.set(r,o)),o}function j(e,t,n=0){return Me(t,0,n).format(e)}function to(e,t){return Me(t).format(e)}function no(e,t){let n=e.savings[t];if(n===void 0)return null;let r=j(n,t);return e.savingIsFrom?`Save from ${r}`:`Save ${r}`}import{jsx as Dn}from"react/jsx-runtime";var Tn="storefront-country",Tt=Tn,Ze=Ln(null);function On(e){return Mt(e,"catalogue")}function Mn(e){return Mt(e,"money")}function Mt(e,t){let n=new Map(e.map(r=>[r.code,r.decimalPlaces]));return(r,o)=>{if(!o)return"";let i=n.get(o)??0;return Me(o,t==="money"?i:0,i).format(r)}}function so({children:e,currencies:t,countries:n,defaultCurrency:r,defaultCountry:o}){let i=ve(()=>t??[],[t]),a=ve(()=>n??[],[n]),l=ve(()=>r||i.find(g=>g.isDefault)?.code||i[0]?.code||"",[r,i]),c=ve(()=>o||a.find(g=>g.isDefault)?.code||a[0]?.code||"",[o,a]),[u,m]=At(c),[C,d]=At(!1);An(()=>{let g=pe.getItem(Tt);g&&a.some(L=>L.code===g)&&m(g),d(!0)},[a]);function _(g){m(g),pe.setItem(Tt,g)}let k=ve(()=>{let g=a.find(b=>b.code===u)??null,L=g?.currency,I=L&&i.some(b=>b.code===L)?L:l,M=On(i),v=Mn(i);return{country:u,currency:I,setCountry:_,currencies:i,countries:a,activeCountry:g,formatPrice:(b,D)=>M(b,D??I),formatMoney:(b,D)=>v(b,D??I),ready:C}},[u,i,a,l,C]);return Dn(Ze.Provider,{value:k,children:e})}function Dt(e){let t=Ot(Ze);if(!t&&!e?.optional)throw new Error("useCurrency must be used within a CurrencyProvider");return t}function lo(){return Ot(Ze)?.country??""}import{createContext as Qn,useCallback as w,useContext as jn,useEffect as X,useMemo as jt,useRef as Z,useState as N}from"react";function Ft(){return"/edit"}function $t(e,t){return e.valid?!1:e.reason==="firstOrderOnly"?!0:e.reason==="notEligible"&&!t}var Ht="We'll confirm this discount when you place your order.",mo="Confirmed at checkout";function go(e){return e&&(e.valid||e.deferred)?e.code:void 0}var Ut="coupon_code: ";function ho(e){return!(e instanceof Se)||e.status!==400||!e.message.startsWith(Ut)?null:e.message.slice(Ut.length)}function Bt(e,t){return e.map(n=>({qty:n.qty,slug:n.slug,name:`${n.name.lead}${n.name.accent}`.trim(),finish:n.finishName,size:n.size,kind:n.kind,sku:n.sku,pack:n.pack,priceLabel:t(n)}))}var De="Price on request",Un="Request a quote",qt="from ",xo="From ",So="each",Wt="Free",vo="Updating";function Je(e){return typeof e=="number"&&Number.isFinite(e)&&e>0}function et(e,t){let n=e?.[t];return Je(n)?n:null}function Eo(e,t,n,r){let o=et(e,n),i=et(t,n);return o===null&&i===null?0:o===null?1:i===null?-1:r==="asc"?o-i:i-o}function Po(e,t,n,r){if(n==null&&r==null)return!0;let o=et(e,t);return!(o===null||n!=null&&o<n||r!=null&&o>r)}var $n={priced:!1,unit:null,was:null,onSale:!1,setTotal:null};function Hn(e,t,n){if(!Je(e))return $n;let r=Je(t)&&t>e?t:null;return{priced:!0,unit:e,was:r,onSale:r!==null,setTotal:n!=null?e*n:null}}function wo(e,t,n=""){return!e.priced||e.unit==null?De:`${n}${j(e.unit,t)}`}function _o(e,t){return e.was==null?null:j(e.was,t)}function Bn(e,t,n=1){let r=me(e,t);if(r===null)return{priced:!1,unit:null,isFrom:!1,setTotal:null};let o=e.reduce((a,l)=>a+l.wheels,0),i=Math.min(...e.map(a=>a.prices[t]));return{priced:!0,unit:i,isFrom:i*o!==r,setTotal:r*n}}var qn={priced:!1,unit:null,isFrom:!1,was:null,onSale:!1,setTotal:null};function Ro(e,t,n,r=1){let o=Hn(e.prices[n],e.msrpPrices?.[n],4),i=o.setTotal==null?null:o.setTotal*r;if(!t)return{priced:o.priced,unit:o.unit,isFrom:!0,was:o.was,onSale:o.onSale,setTotal:null,fromSetTotal:i};let a=Bn(t.components,n,r);return a.priced?{priced:!0,unit:a.unit,isFrom:a.isFrom,was:null,onSale:!1,setTotal:a.setTotal,fromSetTotal:i}:{...qn,fromSetTotal:i}}function Wn(e,t){return!e.priced||e.unit==null?De:`${e.isFrom?qt:""}${j(e.unit,t)}`}function No(e,t){return e.was==null?null:j(e.was,t)}function ko(e,t){return!e.priced||e.unit==null?Un:Wn(e,t)}function Io(e,t){let n=e.savings[t];if(n===void 0||e.components.length===0)return null;let r=0;for(let i of e.components){let a=i.prices?.[t];if(typeof a!="number")return null;r+=a*i.quantity}let o=j(r-n,t);return{was:j(r,t),amount:e.savingIsFrom?`${qt}${o}`:o}}var Gn=/^[^@\s]+@[^@\s]+\.[^@\s]+$/;function Gt(e){return Gn.test(e.trim())}var Kt="sf:ga-purchases",Kn=20;function Vt(){return typeof window>"u"||window.parent!==window}function Ee(...e){try{if(Vt()||typeof window.gtag!="function")return;window.gtag(...e)}catch{}}function zn(e,t){let n=e.config.find(r=>r.gold)?.label;return{item_id:`${e.slug}|${e.finishName}|${e.size}`,item_name:`${e.name.lead}${e.name.accent}`.trim(),...n?{item_variant:n}:{},price:me(e.components,t)??0,quantity:e.qty}}function tt(e,t){return e.filter(Fe).map(n=>zn(n,t))}function Do(e){Ee("event","view_item",{currency:e.currency,value:e.pricePerSet,items:[{item_id:e.itemId,item_name:e.itemName,...e.variant?{item_variant:e.variant}:{},price:e.pricePerSet,quantity:1}]})}function Xt(e,t){let n=tt([e],t);n.length!==0&&Ee("event","add_to_cart",{currency:t,value:n[0].price*n[0].quantity,items:n})}function Fo(e){let t=tt(e.lines,e.currency);t.length!==0&&Ee("event","begin_checkout",{currency:e.currency,value:e.value,...e.coupon?{coupon:e.coupon}:{},items:t})}var zt=new Set;function Vn(e){if(zt.has(e))return!1;zt.add(e);try{let t=JSON.parse(pe.getItem(Kt)??"[]");if(t.includes(e))return!1;pe.setItem(Kt,JSON.stringify([...t,e].slice(-Kn)))}catch{}return!0}function Uo(e){let t=e.confirmation;if(Vt()||!Vn(t.orderNumber))return;let n=t.currency,r=Number(t.grandTotal);Ee("event","purchase",{transaction_id:t.orderNumber,currency:n,value:r,shipping:Number(t.freightCharge),...t.couponCode?{coupon:t.couponCode}:{},items:tt(e.lines,n)}),e.adsSendTo&&Ee("event","conversion",{send_to:e.adsSendTo,transaction_id:t.orderNumber,currency:n,value:r})}var Xn="Arranged after review",Yt="Calculated at checkout",Yn=Yt,Bo=Yt;function Qt({quoted:e,optionCount:t,chosenAmount:n,couponWaivesFreight:r}){return e&&t===0?"arranged":r?"free":n===void 0?"pending":n===0?"free":"charged"}function qo(e){switch(e){case"arranged":return Xn;case"pending":return Yn;case"free":return Wt;case"charged":return null}}import{jsx as tr}from"react/jsx-runtime";var Zn=400,Jn=400,er=1500;function Fe(e){return(e.components?.length??0)>0}function Zt(e,t){return{code:e,valid:t.valid,deferred:$t(t,t.askedAsShopper),message:t.message||void 0,effects:t.effects??void 0}}function en(e,t){return me(e.components,t)}function nt(e,t){let n=en(e,t);return n===null?null:n*e.qty}function Jt(e){return e!=="tyre"}var tn=Qn(null);function ti({children:e,preview:t=!1}){let{currency:n,country:r,formatMoney:o}=Dt(),[i,a]=N(t),[l,c]=N([]),[u,m]=N([]),[C,d]=N([]),[_,k]=N(!1),g=Z(new Set),[L,I]=N([]),[M,v]=N(!1),[b,D]=N(null),[W,te]=N(null),[ue,y]=N(null),[E,x]=N(0),F=w(()=>x(s=>s+1),[]),[ne,ge]=N(void 0),[G,Ne]=N(null),[P,U]=N(null),[K,re]=N(!1),[O,ce]=N(null),oe=Z(void 0),z=w(()=>a(!0),[]),Y=w(()=>a(!1),[]),ke=w(()=>a(s=>!s),[]);X(()=>{t||typeof window>"u"||new URLSearchParams(window.location.search).get("cart")==="open"&&z()},[z,t]);let $=Ft(),V=Z($);X(()=>{V.current!==$&&(V.current=$,t||Y())},[$,t,Y]);let Ie=w(s=>{Ne(p=>p?.country===s?.country&&p?.subdivision===s?.subdivision&&p?.postcode===s?.postcode?p:s)},[]),T=w((s,p)=>{v(!0),!(!p||!Jt(s))&&I(f=>f.includes(p)?f:[...f,p])},[]),Le=M||l.length>0,ie=Z(!0);X(()=>(ie.current=!0,()=>{ie.current=!1}),[]),X(()=>{if(t)return;let s=[...L,...l.filter(f=>Jt(f.kind)).map(f=>f.slug)],p=[...new Set(s)].filter(f=>f&&!g.current.has(f));if(p.length!==0){for(let f of p)g.current.add(f);q.listWheelsBySlug(p).then(f=>{if(!ie.current||f.length===0)return;let h=new Set(f.map(S=>S.slug));m(S=>[...S.filter(se=>!h.has(se.slug)),...f])})}},[t,L,l]),X(()=>{if(t||!Le||_)return;let s=!0;return q.listBundles().then(p=>{s&&(d(p),k(!0))}),()=>{s=!1}},[t,Le,_]);let H=b?.deliveryOptions??[],he=b?.courier??null;X(()=>{b&&ce(s=>s&&H.some(p=>p.id===s)?s:H[0]?.id??null)},[b]);let ae=w(()=>l.filter(Fe).flatMap(s=>It(s.components,s.qty)),[l]),ye=w(async(s,p)=>{let f=s.trim().toUpperCase();if(!f)return;let h=ae();if(h.length===0){U({code:f,valid:!1,message:"Add a wheel to the cart first."});return}re(!0),oe.current=p;try{let S=await q.validateCoupon({code:f,items:h,currency:n,shippingMethodId:O??void 0,customerEmail:p});U(Zt(f,S))}catch{U({code:f,valid:!1,unchecked:!0,message:"Could not check that code. Please try again."})}finally{re(!1)}},[ae,n,O]),de=w(()=>{U(null),oe.current=void 0},[]),Ae=w(s=>{if(!P)return;let{code:p}=P;U(f=>f&&f.code===p?{code:p,valid:!1,refused:!0,message:s}:f)},[P]);X(()=>{if(!P||P.refused)return;let s=P.code,p=h=>h!==null&&h.code===s&&!h.refused,f=setTimeout(async()=>{let h=ae();if(h.length===0){U(S=>p(S)?{code:s,valid:!1,message:"Add a wheel to the cart first."}:S);return}re(!0);try{let S=await q.validateCoupon({code:s,items:h,currency:n,shippingMethodId:O??void 0,customerEmail:oe.current});U(se=>p(se)?Zt(s,S):se)}catch{}finally{re(!1)}},Zn);return()=>clearTimeout(f)},[l,n,O]);let be=P&&!P.refused?P.code:void 0;X(()=>{if(t)return;let s=!0,p=l,f=setTimeout(async()=>{let h=ae();if(h.length===0){D(null),te(null),ge(void 0);return}try{let S=await q.quoteCart({items:h,currency:n,shippingMethodId:O??void 0,couponCode:be,customerEmail:oe.current||void 0,country:G?.country||r||void 0,subdivision:G?.country&&G.subdivision||void 0,postcode:G?.country&&G.postcode||void 0});if(!s)return;D(S),te(p),y(null)}catch{if(!s)return;y(p)}ge(be)},Jn);return()=>{s=!1,clearTimeout(f)}},[l,n,O,be,r,G,E]);let R=w(s=>{c(p=>{let f=p.findIndex(h=>h.id===s.id);return f===-1?[...p,s]:p.map((h,S)=>S===f?{...h,qty:Math.min(je,h.qty+s.qty)}:h)}),Xt(s,n)},[n]),Q=w(s=>{c(p=>p.filter(f=>f.id!==s))},[]),Te=w((s,p)=>{let f=Math.max(1,Math.min(je,p));c(h=>h.map(S=>S.id===s?{...S,qty:f}:S))},[]),ut=w(s=>{c(s)},[]),[Ce,Sn]=N(null),ct=Z(null);ct.current=Ce;let B=Z(null),Ge=Z(""),dt=w((s,p)=>{let f=s.trim().toLowerCase();Gt(f)&&Sn(h=>h&&h.email===f&&h.firstName===(p??"")?h:{email:f,firstName:p??""})},[]);X(()=>{if(t||!Ce)return;let s=Bt(l.filter(Fe),h=>nt(h,n)===null?De:o(nt(h,n),n)),p={email:Ce.email,firstName:Ce.firstName,currency:n,items:s},f=JSON.stringify(p);if(f!==Ge.current)return B.current&&clearTimeout(B.current),B.current=setTimeout(()=>{B.current=null,Ge.current=f,q.captureCart(p).catch(h=>{})},er),()=>{B.current&&(clearTimeout(B.current),B.current=null)}},[l,Ce,n,t]);let ft=w(()=>{B.current&&(clearTimeout(B.current),B.current=null);let s=ct.current;s&&(Ge.current="",q.captureCart({email:s.email,firstName:s.firstName,currency:n,items:[]}).catch(p=>{}))},[n]),pt=jt(()=>{let s=l.reduce((A,fe)=>{let Oe=nt(fe,n);return Oe===null?A:A+Oe},0),p=l.some(A=>en(A,n)===null),f=l.reduce((A,fe)=>A+fe.qty,0),h=P?.valid?P.effects:void 0,S=h?Math.min(s,Number(h.discountAmount)):0,se=b?.bundleDiscount??0,En=b?.appliedBundles??[],Ke=!!h?.freeShipping,yt=H.find(A=>A.id===O),bt=Ke?0:b?.shipping??yt?.amount??0,Pn=Qt({quoted:b!==null,optionCount:H.length,chosenAmount:yt?.amount,couponWaivesFreight:Ke}),ze={};for(let A of h?.freeUnits??[])ze[A.partNumber]=(ze[A.partNumber]??0)+A.quantity;let wn=b?.tax??null,_n=b?b.grandTotal:s-S-se+bt;return{sets:f,units:l.reduce((A,fe)=>A+(fe.components??[]).reduce((Oe,Rn)=>Oe+Rn.wheels*fe.qty,0),0),subtotal:s,hasUnpricedLine:p,discount:S,bundleDiscount:se,appliedBundles:En,shipping:bt,freeShipping:Ke,shippingStatus:Pn,freeUnitsByPartNumber:ze,tax:wn,grand:_n,repricing:!!P?.refused&&b!==null&&ne===P?.code,quoted:b!==null&&W===l,serverSubtotal:b?.subtotal??null,quoteFailed:ue===l,currency:n}},[l,n,P,H,O,b,ne,W,ue]),mt=Z(!0),gt=w(s=>{mt.current=s},[]),ht=w(s=>{R(s),mt.current&&z()},[R,z]),vn=jt(()=>({isOpen:i,preview:t,open:z,close:Y,toggle:ke,items:l,catalog:u,bundles:C,warmCatalog:T,add:R,addAndOpen:ht,setAutoOpen:gt,remove:Q,setQty:Te,replaceItems:ut,identify:dt,clearCapturedCart:ft,coupon:P,applyCoupon:ye,removeCoupon:de,refuseCoupon:Ae,couponBusy:K,deliveryOptions:H,setQuoteDestination:Ie,courier:he,requote:F,shippingMethodId:O,setShippingMethodId:ce,totals:pt}),[i,t,z,Y,ke,l,u,C,T,R,ht,gt,Q,Te,ut,dt,ft,P,ye,de,Ae,K,H,Ie,he,F,O,pt]);return tr(tn.Provider,{value:vn,children:e})}function nn(){let e=jn(tn);if(!e)throw new Error("useCart() must be called inside <CartProvider>. Mount the provider in app/layout.tsx.");return e}import{cache as dr}from"react";function rn(e){return/(?:^|\|)(?:slug|xhost):/.test(e)}function on(e,t,n,r){for(;e.size>=t;){let o,i;for(let[l,c]of e){if(c.expiresAt<=r){o=l;break}i===void 0&&n(l)&&(i=l)}let a=o??i??e.keys().next().value;if(a===void 0)return;e.delete(a)}}var nr=6e4,rr=5e3,or=500,Ue=new Map;async function ir(e){let{host:t,matchesRequestHost:n}=await _t();if(!t)return"";let r=await Rt();return r?`${e}|slug:${encodeURIComponent(t)}/${encodeURIComponent(r)}`:n?`${e}|host:${t}`:`${e}|xhost:${t}`}async function an(e,t){if(await Nt()!==null)return t();let n=await ir(e);if(!n)return t();let r=Date.now(),o=Ue.get(n);if(o&&o.expiresAt>r)return o.load;let i=await t(),a=i.outcome.state==="failed",l=a?rr:nr,c=Ue.get(n)?.lastGood,u=i.outcome.state==="ok"?i:a?c:void 0,m=a&&u?u:i;return on(Ue,or,rn,r),Ue.set(n,{load:m,expiresAt:r+l,lastGood:u}),m}var ar=404;function sr(e){if(e instanceof Se&&e.status===ar)return{state:"absent"};let t=e instanceof Se?e.status:-1,n=e instanceof Error?e.message:String(e);return{state:"failed",status:t,detail:n}}var lr="[storefront:chrome-load-failed]";function ur(e,t){console.error(`${lr} ${e} status=${t.status} \u2014 serving fallback chrome`,t.detail)}async function sn(e,t,n,r){try{let o=await t();return r?.(o)?{value:o,outcome:{state:"absent"}}:{value:o,outcome:{state:"ok"}}}catch(o){let i=sr(o);return i.state==="failed"&&ur(e,i),{value:n,outcome:i}}}function cr(e){return e==="production"?"silent":"banner"}var ui=cr("production");function fr(e,t){return e?.trim()||t}function yi({legalName:e,foundedYear:t,siteName:n},r=new Date().getFullYear()){let o=fr(e,n);return`\xA9 ${t&&t<r?`${t}\u2013${r}`:`${r}`} ${o}`}var pr={name:xe,legalName:null,foundedYear:null,faviconUrl:null,currencies:[],defaultCurrency:null,countries:[],defaultCountry:null,commerceEnabled:!0,cardPayments:!1,paymentMethods:[],paypalClientId:null,paypalEnvironment:null,squareApplicationId:null,squareLocationId:null,squareEnvironment:null,ga4MeasurementId:null,googleAdsId:null,googleAdsConversionLabel:null,metaPixelId:null,consentEnabled:!1,consentPrivacyPage:null,consentNoticeOptOut:!1,privacyPage:null,termsPage:null,footerCookieSettings:!0,footerSitemap:!0,socialLinks:Ye},bi=dr(async()=>an("site",()=>sn("site",async()=>{let e=await q.getSite();return{name:Et(e.name),legalName:e.legalName?.trim()||null,foundedYear:e.foundedYear??null,faviconUrl:e.faviconUrl??null,currencies:e.currencies??[],defaultCurrency:e.defaultCurrency??null,countries:e.countries??[],defaultCountry:e.defaultCountry??null,commerceEnabled:e.commerceEnabled??!0,cardPayments:e.cardPayments??!1,paymentMethods:e.paymentMethods??(e.cardPayments?["card"]:[]),paypalClientId:e.paypalClientId??null,paypalEnvironment:e.paypalEnvironment??null,squareApplicationId:e.squareApplicationId??null,squareLocationId:e.squareLocationId??null,squareEnvironment:e.squareEnvironment??null,ga4MeasurementId:e.ga4MeasurementId??null,googleAdsId:e.googleAdsId??null,googleAdsConversionLabel:(e.googleAdsId?e.googleAdsConversionLabel:null)??null,metaPixelId:e.metaPixelId??null,consentEnabled:e.consentEnabled??!1,consentPrivacyPage:e.consentPrivacyPage??null,consentNoticeOptOut:e.consentNoticeOptOut??!1,privacyPage:e.privacyPage??null,termsPage:e.termsPage??null,footerCookieSettings:e.footerCookieSettings??!0,footerSitemap:e.footerSitemap??!0,socialLinks:Pt(e.socialLinks)}},pr)));var Ci={name:xe,legalName:null,foundedYear:null,faviconUrl:null,currencies:[{code:"USD",symbol:"$",decimalPlaces:2,isDefault:!0}],defaultCurrency:"USD",countries:[{code:"US",name:"United States",currency:"USD",url:"",isDefault:!0,chargeTax:!1,taxDisplay:"none",taxName:"",taxRate:null,postalLabel:"Zip Code"}],defaultCountry:"US",commerceEnabled:!0,cardPayments:!0,paymentMethods:["card"],paypalClientId:null,paypalEnvironment:null,squareApplicationId:null,squareLocationId:null,squareEnvironment:null,ga4MeasurementId:null,googleAdsId:null,googleAdsConversionLabel:null,metaPixelId:null,consentEnabled:!1,consentPrivacyPage:null,consentNoticeOptOut:!1,privacyPage:null,termsPage:null,footerCookieSettings:!0,footerSitemap:!0,socialLinks:Ye};import{jsx as mr}from"react/jsx-runtime";function Si({tone:e="bad",role:t,children:n}){return mr("div",{role:t,className:["border bg-surface px-4 py-3 text-[14px] leading-relaxed text-fg",e==="good"?"border-accent":e==="bad"?"border-alert":"border-line"].join(" "),children:n})}import{jsx as we,jsxs as rt}from"react/jsx-runtime";import{useEffect as $e,useId as br,useRef as un,useState as He}from"react";import{useRootIsDark as Cr}from"efficient-shell/theme";import{efficientClientOpen as gr}from"efficient-easel/screen/lib/session";var Pe=new Map,hr=64;async function yr(e){if(!gr())return null;try{let t=await fetch(`${vt()}/logo-analysis.json?url=${encodeURIComponent(e)}`);if(!t.ok)return null;let n=await t.json();if(!n||typeof n!="object")return null;let{reversed:r,inkIsDark:o}=n;return typeof r!="string"?null:{reversed:r,inkIsDark:typeof o=="boolean"?o:null}}catch{return null}}function ln(e){let t=Pe.get(e);if(t)return t;let n=yr(e);if(Pe.set(e,n),Pe.size>hr){let r=Pe.keys().next();r.done||Pe.delete(r.value)}return n}var xr=202/22,Sr=.88,Hi=16,vr="invert(1)";function Bi({variant:e="header",scrolled:t=!0,src:n,reverse:r=!1,color:o=null,onLightSurface:i,reversedSrc:a,inkIsDark:l,size:c="medium",sizePx:u,sizeUnit:m,wordmark:C,siteName:d=xe,fitToContainer:_=!1,fitWordmarkToContainer:k=!1,fitFloorPx:g,hideClass:L,hideAttrs:I,part:M}){let v=C&&C.trim()?C.trim():d,[b,D]=He(null),W=un(null),te=R=>{W.current=R};$e(()=>{D(W.current?.ownerDocument??null)},[]);let ue=!Cr({doc:b,whenUnset:!0}),y=n&&n.trim()?n.trim():null,E=!!y&&wt(y),x=i??(ue&&t),F=o&&o.trim()?o.trim():null,ne=r&&!F,ge=`logo-color-${br().replace(/[^A-Za-z0-9_-]/g,"")}`,G=ne&&E&&y&&a!=null?{reversed:a,inkIsDark:l??null}:null,Ne=G!==null,[P,U]=He(null);$e(()=>{if(!ne||!y||!E||Ne){U(null);return}let R=!1;return U(null),ln(y).then(Q=>{R||U(Q)}),()=>{R=!0}},[ne,y,E,Ne]);let K=G??P,re=!!K&&K.inkIsDark!==null&&(x?!K.inkIsDark:K.inkIsDark),O=ne&&!!y&&!E&&!x,ce=re&&K?K.reversed:y,oe=ce?[ce]:[],[z,Y]=He(0);$e(()=>{Y(0)},[y,re]);let ke=e==="footer"?Xe:Ve[c],$=u&&u>0?u:ke,V=(u&&u>0?Ct(u,m,"size",St):null)??`${$}px`,Ie=Math.round($*xr),T=z<oe.length?oe[z]:null,[Le,ie]=He(ce),H=T!==null&&T===Le,he=un(null);$e(()=>{let R=he.current;if(!R||!R.complete)return;if(R.naturalWidth>0||R.naturalHeight>0){ie(T);return}let Q=!1;return R.decode().then(()=>!Q&&ie(T),()=>!Q&&Y(Te=>Te+1)),()=>{Q=!0}},[T]);let ae=_||k,ye=`calc(100cqi / ${((v.length+1)*Sr).toFixed(2)})`,de=ae&&g&&g>0?V===`${$}px`?`${Math.min(g,$)}px`:`min(${g}px, ${V})`:null,Ae=ae?de===null?`min(${V}, ${ye})`:`clamp(${de}, ${ye}, ${V})`:V,be=rt("span",{className:`font-display font-bold tracking-[0.18em] ${de===null?"whitespace-nowrap":"whitespace-normal"}`,style:{fontSize:Ae,lineHeight:1,...F?{color:F}:{}},"aria-label":v,children:[v,we("span",{className:"text-accent",style:F?{color:F}:void 0,children:"."})]});return rt("span",{ref:te,className:xt("inline-flex items-center",L??""),...I,...M,children:[!H&&be,F&&T&&we("svg",{"aria-hidden":"true",focusable:"false",width:"0",height:"0",style:{position:"absolute"},children:rt("filter",{id:ge,colorInterpolationFilters:"sRGB",children:[we("feFlood",{style:{floodColor:F}}),we("feComposite",{in2:"SourceAlpha",operator:"in"})]})}),T&&we("img",{ref:he,src:T,alt:v,width:Ie,height:$,className:"shrink-0 object-contain",style:{...H?{height:V,width:"auto",..._?{maxWidth:"100cqi"}:{}}:{display:"none"},...O?{filter:vr}:{},...F?{filter:`url(#${ge})`}:{}},onLoad:()=>ie(T),onError:()=>Y(R=>R+1)},T)]})}var Wi="w-full border-2 border-line bg-bg px-4 py-4 font-display text-[17px] tracking-[-0.005em] text-fg outline-none transition-colors placeholder:text-fg-dim hover:border-fg-dim focus:border-accent",cn="w-0 min-w-0 flex-1",Gi="w-0 min-w-[7rem] flex-1";import{jsx as _e,jsxs as Pr}from"react/jsx-runtime";function Er({spokes:e,mesh:t=!1,className:n}){let a=c=>Math.round(c*1e3)/1e3,l=[];for(let c=0;c<e;c++){let u=c/e*Math.PI*2-Math.PI/2;if(l.push({x1:a(100+Math.cos(u)*22),y1:a(100+Math.sin(u)*22),x2:a(100+Math.cos(u)*86),y2:a(100+Math.sin(u)*86),main:!0}),t){let m=u+Math.PI/e;l.push({x1:a(100+Math.cos(m)*22*1.4),y1:a(100+Math.sin(m)*22*1.4),x2:a(100+Math.cos(m)*78),y2:a(100+Math.sin(m)*78),main:!1})}}return Pr("svg",{viewBox:"0 0 200 200",fill:"none",stroke:"currentColor",className:n??"block h-[70%] w-[70%] transition-transform duration-700 [transition-timing-function:cubic-bezier(.2,.6,.2,1)]",children:[_e("circle",{cx:100,cy:100,r:92,strokeWidth:2}),_e("circle",{cx:100,cy:100,r:84,strokeWidth:1,opacity:.4}),_e("circle",{cx:100,cy:100,r:22,strokeWidth:2}),_e("circle",{cx:100,cy:100,r:6,fill:"currentColor"}),l.map((c,u)=>_e("line",{x1:c.x1,y1:c.y1,x2:c.x2,y2:c.y2,stroke:"currentColor",strokeWidth:c.main?6:3,strokeLinecap:"round",opacity:c.main?1:.5},u))]})}var Xi="#c9a461",dn=[{f:"black",label:"Black",hex:"#171717"},{f:"silver",label:"Silver",hex:"#cccccc"},{f:"bronze",label:"Bronze",hex:"#8a6438"},{f:"graphite",label:"Graphite",hex:"#3a3c3f"},{f:"red",label:"Candy Red",hex:"#7a0f14"}],Yi={name:"",color:"var(--fg)",family:"silver",src:""};function wr(e,t){let n=r=>{let o=dn.findIndex(i=>i.f===r);return o===-1?dn.length:o};return n(e)-n(t)||e.localeCompare(t)}function Qi(e){let t=new Set;for(let n of e)for(let r of n.finishes??[])r?.family&&t.add(r.family);return[...t].sort(wr)}import{useEffect as _r,useRef as fn,useState as Rr}from"react";import{jsx as le,jsxs as ot}from"react/jsx-runtime";function Nr({customerEmail:e,disabled:t=!1}){let{coupon:n,applyCoupon:r,removeCoupon:o,couponBusy:i}=nn(),[a,l]=Rr(""),c=fn(!1),u=fn(null);_r(()=>{!c.current||n===null||(c.current=!1,u.current?.focus())},[n]);async function m(){t||i||!a.trim()||(c.current=!0,await r(a,e),l(""))}return ot("div",{className:"flex flex-col gap-2",children:[n===null?ot("div",{className:"flex border border-line",children:[le("input",{type:"text",value:a,onChange:C=>l(C.target.value),onKeyDown:C=>{C.key==="Enter"&&(C.preventDefault(),m())},placeholder:"Coupon code","aria-label":"Coupon code",disabled:t,className:`${cn} bg-transparent px-4 py-4 font-mono text-[11px] uppercase tracking-[0.18em] text-fg outline-none placeholder:text-fg-dim`}),le("button",{type:"button",onClick:()=>{m()},disabled:i||t,className:"border-l border-line px-4 font-mono text-[10px] uppercase tracking-[0.26em] text-btn transition-colors hover:bg-btn hover:text-btn-ink disabled:cursor-wait disabled:opacity-60",children:i?"\u2026":"Apply"})]}):ot("div",{className:["flex items-center justify-between gap-3 border px-4 py-3",n.valid?"border-accent":"border-line"].join(" "),style:n.valid?{background:"color-mix(in oklab, var(--accent) 8%, transparent)"}:void 0,children:[le("span",{className:["font-mono text-[11px] uppercase tracking-[0.22em]",n.valid?"text-accent":n.deferred||n.unchecked?"text-fg":"text-fg-dim line-through"].join(" "),children:n.code}),n.unchecked&&le("button",{type:"button",onClick:()=>{r(n.code,e)},disabled:i||t,className:"ml-auto font-mono text-[10px] uppercase tracking-[0.26em] text-btn transition-colors hover:text-fg disabled:cursor-wait disabled:opacity-60",children:i?"\u2026":"Try again"}),!t&&le("button",{ref:u,type:"button",onClick:o,"aria-label":`Remove coupon ${n.code}`,className:"font-mono text-[12px] text-fg-dim transition-colors hover:text-fg",children:"\u2715"})]}),n?.deferred?le("p",{className:"font-mono text-[10px] uppercase tracking-[0.18em] text-fg-dim",children:Ht}):n&&!n.valid&&n.message&&le("p",{role:"alert",className:"font-mono text-[10px] uppercase tracking-[0.18em] text-alert",children:n.message})]})}var it="Ads on. Shopper can opt out.",Be="Ads and analytics off until Accept",kr={us:{region:"us",name:"United States",model:"opt-out",law:"California CCPA / CPRA, other state laws",beforeChoice:it,footerLink:"Do Not Sell or Share My Personal Information",panelEyebrow:"Do not sell or share",adsRowName:"Sale or sharing for ads"},ca:{region:"ca",name:"Canada",model:"opt-in",law:"PIPEDA, Quebec Law 25",beforeChoice:Be,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},au:{region:"au",name:"Australia",model:"opt-out",law:"Privacy Act 1988 (APPs)",beforeChoice:it,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},nz:{region:"nz",name:"New Zealand",model:"opt-out",law:"Privacy Act 2020",beforeChoice:it,footerLink:"Privacy choices",panelEyebrow:"Privacy choices",adsRowName:"Advertising"},uk:{region:"uk",name:"United Kingdom",model:"opt-in",law:"PECR, UK GDPR",beforeChoice:Be,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"},eu:{region:"eu",name:"European Union",model:"opt-in",law:"ePrivacy Directive, GDPR",beforeChoice:Be,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"},other:{region:"other",name:"All other countries",model:"opt-in",law:"Safe default",beforeChoice:Be,footerLink:"Cookie settings",panelEyebrow:"Cookie settings",adsRowName:"Advertising"}};function Ir(e){let t=[...e.googleAds?["Google"]:[],...e.meta?["Facebook","Instagram"]:[]];return t.length<=1?t.join(""):`${t.slice(0,-1).join(", ")} and ${t[t.length-1]}`}function oa(e,t,n){let r=Ir(n),o=r?`We use cookies to count visits and to show you ${t} ads on ${r}.`:"We use cookies to count visits.";return e.model==="opt-in"?{heading:r?"Cookies and ads":"Cookies",before:`${o} Nothing loads until you choose. You can change this at any time with `,link:e.footerLink,after:" at the bottom of every page."}:{heading:r?"Cookies and ads":"Cookies",before:`${o} You can say no at any time: choose Privacy choices, or use `,link:e.footerLink,after:" at the bottom of every page."}}var ia={accept:"Accept all",reject:"Reject all",choose:"Choose",save:"Save",ok:"OK",privacyChoices:"Privacy choices",privacyPolicy:"Privacy Policy",alwaysOn:"Always on",close:"Close",cookieSettings:"Cookie settings"};var Lr={asked:!1,region:"other",model:"opt-in",analytics:!0,ads:!0,chosen:!0,gpc:!1};var Ar=Lr;function ua(e=Ar){if(e.asked)return e.ads?"granted":"denied"}function da(){let e=typeof crypto<"u"?crypto:void 0;if(typeof e?.randomUUID=="function")return e.randomUUID();let t=new Uint8Array(16);if(typeof e?.getRandomValues=="function")e.getRandomValues(t);else for(let r=0;r<t.length;r++)t[r]=Math.floor(Math.random()*256);t[6]=t[6]&15|64,t[8]=t[8]&63|128;let n=Array.from(t,r=>r.toString(16).padStart(2,"0")).join("");return`${n.slice(0,8)}-${n.slice(8,12)}-${n.slice(12,16)}-${n.slice(16,20)}-${n.slice(20)}`}import{Children as Or,isValidElement as Mr,useEffect as mn,useId as Dr,useLayoutEffect as yn,useRef as J,useState as gn}from"react";var qe=(e,t)=>!!e[t]&&!e[t].disabled;function at(e,t,n){let r=e.length;for(let o=1;o<=r;o++){let i=((t+n*o)%r+r)%r;if(qe(e,i))return i}return t}function st(e,t){return at(e,t===1?-1:e.length,t)}function lt(e,t){return qe(e,t)?t:Math.max(st(e,1),0)}function pn(e,t,n){let{open:r,focus:o}=e,i=a=>({...e,...a});if(t.length===1&&/\S/.test(t)){let a=e.typed+t.toLowerCase(),l=n.findIndex((c,u)=>qe(n,u)&&c.label.toLowerCase().startsWith(a));return{state:i({open:!0,typed:a,focus:l>=0?l:o}),handled:!0}}if(!r)return t==="ArrowDown"||t==="ArrowUp"||t==="Enter"||t===" "?{state:i({open:!0,typed:""}),handled:!0}:{state:e,handled:!1};switch(t){case"ArrowDown":return{state:i({focus:at(n,o,1)}),handled:!0};case"ArrowUp":return{state:i({focus:at(n,o,-1)}),handled:!0};case"Home":return{state:i({focus:st(n,1)}),handled:!0};case"End":return{state:i({focus:st(n,-1)}),handled:!0};case"Enter":case" ":return qe(n,o)?{state:i({open:!1,typed:""}),commit:o,refocus:!0,handled:!0}:{state:e,handled:!0};case"Escape":return{state:i({open:!1,typed:""}),refocus:!0,handled:!0};case"Tab":return{state:i({open:!1,typed:""}),handled:!1};default:return{state:e,handled:!1}}}import{placeMenu as Fr}from"efficient-shell/ui";import{Fragment as Gr,jsx as ee,jsxs as bn}from"react/jsx-runtime";var hn={body:"text-[length:var(--size-body,14px)]",label:"text-[length:var(--size-label,13px)]"};function Ur({items:e,value:t,onPick:n,open:r,onOpen:o,onClose:i}){let[a,l]=gn(!1),c=r!==void 0,u=c?r:a,[m,C]=gn(0),d=J({text:"",timer:0}),_=J(null),k=J(null),g=J(null),L=Dr(),I=J(null),M=e.findIndex(y=>y.value===t),v=y=>{y!==u&&(c||l(y),y?o?.():i?.())},b=y=>{let E=e[y];!E||E.disabled||(n(E.value),v(!1),k.current?.focus())},D=y=>{let E={open:u,focus:u?m:lt(e,M),typed:d.current.text},x=pn(E,y,e);return!x.handled&&x.state.open===u?!1:(x.state.typed!==E.typed&&(d.current.text=x.state.typed,window.clearTimeout(d.current.timer),d.current.timer=window.setTimeout(()=>{d.current.text=""},500)),C(x.state.focus),x.commit!==void 0?b(x.commit):v(x.state.open),x.refocus&&k.current?.focus(),x.handled)},W=J(D);W.current=D;let te=J(()=>v(!1));te.current=()=>v(!1);let ue=y=>{u||(I.current=y.nativeEvent,W.current(y.key)&&y.preventDefault())};return mn(()=>{if(!u)return;let y=x=>{_.current?.contains(x.target)||te.current()},E=x=>{x!==I.current&&W.current(x.key)&&x.preventDefault()};return document.addEventListener("mousedown",y),document.addEventListener("keydown",E),()=>{document.removeEventListener("mousedown",y),document.removeEventListener("keydown",E)}},[u]),mn(()=>{u&&(d.current.text||C(lt(e,M)))},[u]),yn(()=>{if(!u||!g.current)return;g.current.children.item(m)?.scrollIntoView({block:"nearest"})},[m,u]),{open:u,toggle:()=>v(!u),close:()=>v(!1),focusIdx:m,setFocusIdx:C,pick:y=>b(e.findIndex(E=>E.value===y)),wrapRef:_,triggerRef:k,listRef:g,listId:L,onTriggerKeyDown:ue,activeId:u?`${L}-${m}`:void 0}}var $r={select:{list:"absolute left-0 top-full z-50 mt-1 max-h-[280px] w-max min-w-full overflow-y-auto border-2 border-accent bg-bg shadow-xl",item:(e,t,n)=>["px-3 py-3 font-mono text-[13px] font-semibold uppercase tracking-[0.1em] transition-colors whitespace-nowrap",n?"cursor-not-allowed opacity-40":"cursor-pointer",e&&!n?"bg-accent text-bg":"bg-bg text-fg"].join(" ")},cell:{list:"absolute left-0 top-full z-50 mt-1 max-h-[320px] w-max min-w-full overflow-y-auto border-2 border-accent bg-bg shadow-xl",item:e=>[`cursor-pointer whitespace-nowrap px-6 py-3 font-mono ${hn.label} font-semibold uppercase tracking-[0.1em] transition-colors`,e?"bg-accent text-bg":"bg-bg text-fg"].join(" "),pickerMarker:!0},hairline:{list:"absolute left-0 top-full z-50 max-h-[320px] w-full overflow-y-auto border border-line bg-bg shadow-[0_6px_20px_rgba(0,0,0,0.10)]",item:(e,t)=>[`flex cursor-pointer items-center justify-between gap-4 border-b border-line px-4 py-3 text-left ${hn.body} transition-colors last:border-b-0`,t?"border-fg font-medium text-fg":e?"border-fg text-fg":"text-fg-dim"].join(" "),pickerMarker:!0},region:{list:"absolute right-0 top-full z-[200] mt-2 flex min-w-[240px] flex-col border border-line bg-surface text-fg",item:(e,t,n,r)=>["flex w-full cursor-pointer items-center gap-3 px-4 py-3 text-left transition-colors","font-mono text-[13px] uppercase tracking-[0.18em]",e?"bg-surface-2 text-fg":"",r?"":"border-b border-line",t?"text-accent":""].join(" "),itemStyle:e=>e?void 0:{color:"color-mix(in oklab, currentColor 80%, transparent)"}}};function Hr(e,t){yn(()=>{let n=e.current,r=n?.ownerDocument.defaultView;if(!n||!r)return;let o=()=>{let i=n.style;i.top=i.bottom=i.marginTop=i.marginBottom=i.maxHeight=i.overflowY=i.translate="";let a=n.offsetParent??n.parentElement;if(!a)return;let l=a.getBoundingClientRect(),c=n.getBoundingClientRect(),u=Math.abs(c.right-l.right)<Math.abs(c.left-l.left)?"end":"start",m=Fr({trigger:{left:l.left,right:l.right,top:l.top,bottom:l.bottom},menu:{width:c.width,height:c.height},bounds:{left:0,top:0,right:r.innerWidth,bottom:r.innerHeight},align:u,side:"bottom"});if(m.side==="top"){i.top="auto",i.bottom="100%",i.marginTop="0px";let d=m.top+Math.min(c.height,m.maxHeight);i.marginBottom=`${Math.max(0,l.top-d)}px`}m.maxHeight<c.height&&(i.maxHeight=`${m.maxHeight}px`,i.overflowY="auto");let C=m.left-c.left;C&&(i.translate=`${C}px`)};return o(),r.addEventListener("resize",o),r.addEventListener("scroll",o,!0),()=>{r.removeEventListener("resize",o),r.removeEventListener("scroll",o,!0)}},[e,t])}function Br(e){return e.split(" ").map(t=>t==="left-0"?"right-0":t).join(" ")}function qr({id:e,tone:t,items:n,value:r,focusIdx:o,onFocus:i,onPick:a,listRef:l,ariaLabel:c,align:u="start"}){let m=$r[t],C=J(null);return Hr(C,n.length),ee("ul",{ref:d=>{C.current=d,l&&(l.current=d)},id:e,role:"listbox","aria-label":c,...m.pickerMarker?{"data-picker-menu":""}:{},className:u==="end"?Br(m.list):m.list,children:n.map((d,_)=>{let k=d.value===r;return ee("li",{id:`${e}-${_}`,role:"option","aria-selected":k,"aria-disabled":d.disabled||void 0,onMouseEnter:()=>!d.disabled&&i(_),onMouseDown:g=>{g.preventDefault(),d.disabled||a(d.value)},className:m.item(_===o,k&&d.value!=="",!!d.disabled,_===n.length-1),style:m.itemStyle?.(k),children:d.meta===void 0?d.label:bn(Gr,{children:[d.lead,ee("span",{className:"flex-1 whitespace-nowrap",children:d.label}),ee("span",{className:"ml-auto text-[12px] opacity-50",children:d.meta})]})},`${d.value}_${_}`)})})}function Wr({value:e,onChange:t,disabled:n,children:r,className:o,style:i,name:a,id:l,"aria-label":c,align:u}){let m=Or.toArray(r).flatMap(g=>{if(!Mr(g))return[];if(g.type!=="option")return[];let I=g.props,M=I.value!==void 0?String(I.value):"",v=I.children,b=typeof v=="string"||typeof v=="number"?String(v):M;return[{value:M,label:b,disabled:!!I.disabled}]}),C=e??"",d=Ur({items:m,value:C,onPick:g=>t?.({target:{value:g}})}),k=m.find(g=>g.value===C)?.label??m[0]?.label??"";return bn("div",{ref:d.wrapRef,className:"relative",children:[a&&ee("input",{type:"hidden",name:a,value:C}),ee("button",{ref:g=>{d.triggerRef.current=g},type:"button",disabled:n,"aria-haspopup":"listbox","aria-expanded":d.open,"aria-controls":d.open?d.listId:void 0,"aria-activedescendant":d.activeId,"aria-label":c,id:l,onClick:()=>!n&&d.toggle(),onKeyDown:g=>!n&&d.onTriggerKeyDown(g),className:`block w-full ${o??""}`,style:i,children:ee("span",{className:"block w-full truncate text-left",children:k})}),d.open&&ee(qr,{id:d.listId,tone:"select",items:m,value:C,focusIdx:d.focusIdx,onFocus:d.setFocusIdx,onPick:d.pick,listRef:d.listRef,align:u})]})}import{jsx as Re,jsxs as We}from"react/jsx-runtime";var Kr="font-mono text-[length:var(--size-label,12px)]",zr="font-semibold uppercase tracking-[0.22em] text-fg";function Cn(e){return`${e??Kr} ${zr}`}function xn(){return Re("span",{className:"text-accent",children:" *"})}function Vr({children:e,required:t,labelFace:n}){return We("span",{className:Cn(n),children:[e,t?Re(xn,{}):null]})}function Xr({label:e,required:t,hint:n,separate:r,htmlFor:o,labelFace:i,className:a,children:l}){let c=a?`flex flex-col gap-2 ${a}`:"flex flex-col gap-2",u=n?Re("span",{className:"font-mono text-[11px] uppercase tracking-[0.22em] text-fg-dim",children:n}):null;return r||n?We("div",{className:c,children:[We("label",{htmlFor:o,className:Cn(i),children:[e,t?Re(xn,{}):null]}),l,u]}):We("label",{htmlFor:o,className:c,children:[Re(Vr,{required:t,labelFace:i,children:e}),l]})}export{Ft as a,mo as b,go as c,ho as d,It as e,Qe as f,Yr as g,Qr as h,jr as i,Zr as j,Nn as k,kn as l,Jr as m,eo as n,je as o,Me as p,j as q,to as r,no as s,De as t,Un as u,qt as v,xo as w,So as x,Wt as y,vo as z,et as A,Eo as B,Po as C,Hn as D,wo as E,_o as F,Bn as G,Ro as H,Wn as I,No as J,ko as K,Io as L,Gt as M,Do as N,Fo as O,Uo as P,Bo as Q,qo as R,so as S,Dt as T,lo as U,Fe as V,nt as W,ti as X,nn as Y,yi as Z,pr as _,Ci as $,Wi as aa,cn as ba,Gi as ca,Er as da,Xi as ea,dn as fa,Yi as ga,wr as ha,Qi as ia,Nr as ja,Si as ka,Hi as la,Bi as ma,kr as na,oa,ia as pa,Lr as qa,ua as ra,da as sa,Ur as ta,qr as ua,Wr as va,Vr as wa,Xr as xa};
|