efficient-storefront-blocks 0.122.0 → 0.123.1
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 +32 -0
- package/dist/chunks/{EditorPreviewCheckout-HGXPPOPY.js → EditorPreviewCheckout-GKVO7FIF.js} +1 -1
- package/dist/chunks/SiteEditorProvider-INLF7RK2.js +1 -0
- package/dist/chunks/chunk-3UESM7IL.js +1 -0
- package/dist/chunks/{chunk-7OV26TMN.js → chunk-A4GCH4L7.js} +1 -1
- package/dist/chunks/{chunk-PNXEY4EH.js → chunk-ABH43N7O.js} +1 -1
- package/dist/chunks/chunk-HG7XPHVS.js +34 -0
- package/dist/chunks/chunk-HG7XPHVS.js.LEGAL.txt +31 -0
- package/dist/chunks/chunk-JRGIFGZA.js +1 -0
- package/dist/chunks/chunk-MFXGST7A.js +342 -0
- package/dist/chunks/{fitment-data-QP4XEFXC.js → fitment-data-6YOZL3W4.js} +1 -1
- package/dist/chunks/section-css-style-TIXCQNGX.js +1 -0
- package/dist/editor/components/CategorySource.d.ts +5 -2
- package/dist/editor/components/CategorySource.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +2 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +33 -65
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/BoxHeaderBar.js +1 -1
- package/dist/render/components/FinishSwatches.js +2 -2
- package/dist/render/components/FooterLogo.js +1 -1
- package/dist/render/components/FooterMenu.js +1 -1
- package/dist/render/components/FooterSection.js +1 -1
- package/dist/render/components/FooterSocial.js +1 -1
- package/dist/render/components/GridCardTemplate.js +1 -1
- package/dist/render/components/HeaderNavItem.js +1 -1
- package/dist/render/components/LegalLine.js +1 -1
- package/dist/render/components/MenuLinkBlock.js +1 -1
- package/dist/render/components/ProductGridSection.js +1 -1
- package/dist/render/components/SectionGroupBody.js +1 -1
- package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
- package/dist/render/components/card-pieces/CardEyebrow.js +1 -1
- package/dist/render/components/card-pieces/CardName.js +1 -1
- package/dist/render/components/card-pieces/CardPicture.js +1 -1
- package/dist/render/components/card-pieces/CardPrice.js +1 -1
- package/dist/render/components/card-pieces/CardProductBadge.js +1 -1
- package/dist/render/components/card-pieces/CardProductPicture.js +1 -1
- package/dist/render/components/card-pieces/CardSizes.js +1 -1
- package/dist/render/components/card-pieces/CardSpecs.js +1 -1
- package/dist/render/components/card-pieces/CardSurfaceFrame.js +1 -1
- package/dist/render/components/card-pieces/card-row.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +3 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/lib/block-parts.d.ts +5 -0
- package/dist/render/lib/block-parts.js +1 -0
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.d.ts +3 -3
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.d.ts +4 -4
- package/dist/render/lib/document/blocks/commerce/FilterChipsBlock/meta.d.ts +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/meta.d.ts +3 -3
- package/dist/words.d.ts +4 -0
- package/dist/words.js +2 -2
- package/package.json +3 -3
- package/dist/chunks/SiteEditorProvider-R3ZNQPAI.js +0 -1
- package/dist/chunks/chunk-NYZMVYQ4.js +0 -1
- package/dist/chunks/chunk-TAV4GVJC.js +0 -342
- /package/dist/chunks/{chunk-TAV4GVJC.js.LEGAL.txt → chunk-MFXGST7A.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-IJC4EEZC.js → chunk-PGKDGGEE.js} +0 -0
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import{a as ve}from"./chunk-IJC4EEZC.js";import{jsx as Da}from"react/jsx-runtime";import{createContext as dl,useCallback as m,useContext as hl,useMemo as ul,useState as pl}from"react";import{createContext as wa,useContext as St}from"react";import{createContext as dr}from"react";var fa=dr(null);var hr=wa(null),Tt=wa({logo:null,placeholder:!1,wordmark:null});function Sp(){let e=St(fa),t=St(hr),o=St(Tt),a=!e&&o.placeholder,s=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:s,reversedSrc:e?e.logoReversed:o.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:o.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:o.wordmark,siteName:e?.siteName??t?.siteName}}import{contrastRatio as Pp,hexToRgb as Ue,parseHexColor as G,readableInk as Sa,relativeLuminance as Ye}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as gr,pictureShadowColor as br}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as yr}from"efficient-easel/screen/lib/content/length-units";import{VIEW_TIERS as ur,viewKeyAt as ga}from"efficient-easel/screen/lib/content/view-tiers";var D=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{isLengthUnit as _t,lengthOf as pr,rowGrid as mr}from"efficient-easel/screen/lib/content/length-units";function vt(e,t){let o=pr(e,xt(t));return typeof o=="number"?`${o}px`:o}function xt(e,t="px"){return _t(e)?e:t}function kp(e,t,o){return t.unitKey?xt(e[ga(t.unitKey,o)],t.base??"px"):t.base??"px"}function Ap(e,t=ur){return e.unitKey?t.map(o=>ga(e.unitKey,o)):[]}function fr(e,t,o){let a=mr({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function Ot(e,t,o,a){let s=D(e);if(!_t(t)||t==="px"||s===void 0)return null;let n=fr(o,t,a),i=Math.min(n.max,Math.max(n.min,s));return Math.round(i*100)/100}function Rp(e,t,o,a){let s=Ot(e,t,o,a);return s===null?null:vt(s,t)}var wr={cornerRadiusUnit:"corner_radius_unit",siteWidthUnit:"site_width_unit",siteGutterUnit:"site_gutter_unit",siteGutterPhoneUnit:"site_gutter_phone_unit",blockGapUnit:"block_gap_unit",blockGapPhoneUnit:"block_gap_phone_unit"};function Cp(e){let t=e;return Object.fromEntries(Object.entries(wr).map(([o,a])=>[o,xt(t[a])]))}function Lp(e,t,o){let a=D(e);return _t(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as um}from"efficient-easel/screen/lib/document/shadow-values";var Mp="storefront-theme",Fp="sf:theme-mode",Gp="sf:theme-switch",Wp="hide",Ht="light",Dt=!1,Er=7,Sr=18;function Tr(e){return e>=Er&&e<Sr}function Up(e){let{mode:t,override:o,switchShown:a,hour:s}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?Tr(s)?"light":"dark":t==="light"?"light":"dark"}var ae={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},_r=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Ke={selected:0,themes:_r};function Ta(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Ke}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function kt(e,t,o){let a=Ue(e),s=Ue(t);if(a===null||s===null)return e;let n=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${n(a.r,s.r)}${n(a.g,s.g)}${n(a.b,s.b)}`}var vr={light:"#ffffff",dark:"#0a0a0a"},Yp=["light","dark"];function Kp(e,t){let o=vr[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:kt(e,a,.1),line:kt(e,a,.22),muted:kt(o,e,.35),brandInk:t}}function ne(e){let t=Ta(e);return t.themes[t.selected]}function se(e){return{text:e.text,accent:e.accent,background:e.background||ae.background,surface:e.surface||ae.surface,line:e.line||ae.line,muted:e.muted||ae.muted}}var xr=.4,Or="#f5f1e8",ba="#0a0a0a";function kr(e){let t=ne(e).text,o=Ye(t);return o===null||o>=xr?t:null}var Ar=4.5,Rr=3,$p={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Vp(e){return e>=Ar?"good":e>=Rr?"large-only":"hard"}var Cr=["#000000","#ffffff"];function $e(e){return Sa(e,Cr)}function _a(e,t){let o=t!==void 0&&Ye(t)!==null?t:Or;return Sa(e,[ba,o])===o&&o!==ba}var Lr=[.25,.4,.55];function jp(e){let t=Ue(e);return t===null?[]:Lr.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function Xp(e){let t={"--theme-fg":ne(e).text},o=kr(e);return o!==null&&(t["--overlay-fg"]=o),t}var Nr=82;function Bt(e){return`color-mix(in srgb, ${e} ${Nr}%, #000)`}function zp(e){let t=ne(e);return{"--theme-accent":t.accent,"--theme-accent-2":Bt(t.accent),"--theme-accent-ink":$e(t.accent)}}function Mt(e){let t=e?.button;return t&&G(t)===t.toLowerCase()?t.toLowerCase():null}function qp(e){let t=ne(e),o=Mt(t),a=va(t);if(o===null&&a===null)return{};let s={};return o!==null&&(s["--theme-btn"]=o,s["--theme-btn-2"]=Bt(o)),s["--theme-btn-ink"]=a??$e(o),s}function va(e){let t=e?.buttonInk;return t&&G(t)===t.toLowerCase()?t.toLowerCase():null}function Ir(e,t){return va(e)??$e(Mt(e)??t)}function Zp(e){let t=ne(e);return{fill:Mt(t)??t.accent.toLowerCase(),ink:Ir(t,t.accent)}}function Qp(e){let t={};return Ta(e).themes.forEach((o,a)=>{let s=se(o);t[`--theme-preset-${a}-accent`]=s.accent,t[`--theme-preset-${a}-accent-2`]=Bt(s.accent),t[`--theme-preset-${a}-accent-ink`]=$e(s.accent),t[`--theme-preset-${a}-bg`]=s.background,t[`--theme-preset-${a}-fg`]=s.text,t[`--theme-preset-${a}-surface`]=s.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${s.surface} 60%, ${s.line})`,t[`--theme-preset-${a}-line`]=s.line,t[`--theme-preset-${a}-muted`]=s.muted}),t}var At=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},Rt=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function ya([e,t,o]){let[a,s,n]=[At(e),At(t),At(o)],i=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*n),r=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*n),l=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*n);return[.2104542553*i+.793617785*r-.0040720468*l,1.9779984951*i-2.428592205*r+.4505937099*l,.0259040371*i+.7827717662*r-.808675766*l]}function Pr([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,s=(e-.1055613458*t-.0638541728*o)**3,n=(e-.0894841775*t-1.291485548*o)**3;return[Rt(4.0767416621*a-3.3077115913*s+.2309699292*n),Rt(-1.2684380046*a+2.6097574011*s-.3413193965*n),Rt(-.0041960863*a-.7034186147*s+1.707614701*n)]}var Nt=e=>{let t=Ue(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},xa=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],Oa=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,ka=e=>xa(Nt(e.surface),Nt(e.line),.6);function Jp(e){return Oa(ka(se(e)))}function Hr(e){let t=se(e);return Oa(Pr(xa(ya(ka(t)),ya(Nt(t.text)),.92)))}function Aa(e,t,o,a){let s=e[t];if(!s)return-1;let n=o(s);if(!n)return-1;let i=se(s);return e.findIndex((r,l)=>{if(l===t)return!1;let d=se(r);return G(d.background)!==n?!1:!a||G(d.text??"")===G(i.text??"")&&G(d.accent??"")===G(i.accent??"")})}function em(e,t){return Aa(e,t,Hr,!1)}function tm(e,t){return Aa(e,t,o=>G(o.surface??""),!0)}var Dr=1;function Br(e,t){let o=(e??[]).flatMap((a,s)=>{let n=Ye(a.background??""),i=Ye(a.text??"");return n!==null&&i!==null&&n<i?[s]:[]});return o.find(a=>a!==t)??o[0]??Dr}function om(e){return Br(e?.themes,e?.selected)}var am=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function sm(e){let t=se(ne(e)),o=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,a={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==ae.surface||t.line!==ae.line)&&(a["--theme-surface-2"]=o),a}var Mr=["heading","body","label"];function nm(e){if(!e)return null;for(let t of Mr)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var Ra=["headingLarge","headingMedium","headingSmall","accent","body","label"];var Ft={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},Fr=8,Gr=200;function Wr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=Fr&&t<=Gr?t:null}function Ur(e){let t={};for(let o of Ra)t[o]=Wr(e?.[o]);return t}function im(e){let t=Ur(e),o={};for(let a of Ra){let s=t[a];s!==null&&(o[`--size-${a}`]=`${s}px`)}return o}var Yr=["square","small","large"],Kr="small";function rm(e){return Yr.includes(e??"")?e:Kr}var Ve=0,Ca=40,$r={min:Ve,max:Ca,step:1},lm={square:0,small:null,large:16},It={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function Gt(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;let t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(Ca,Math.max(Ve,Math.round(t))):null}function Ea(e,t){if(yr(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(It).map(([s,n])=>{let i=Math.round(a*n*1e4)/1e4;return[s,i===0?"0":vt(i,t)]}))}let o=Gt(e);return o===null?{}:Object.fromEntries(Object.entries(It).map(([a,s])=>{let n=o*s/16;return[a,n===0?"0":`${n}rem`]}))}function cm(e){return(Gt(e)??Ve)*It["--sf-button-radius"]}function dm(e,t){let o=Ot(e,t,"radius",$r);return o!==null?Ea(o,t):Ea(Gt(e)??Ve)}var Vr=["none","soft","lifted"],jr="soft",La="none",Xr=["tight","normal","roomy"],zr="normal",je="normal",qr=["none","lift","highlight"],Zr="lift",Qr="highlight";function Na(e){return Vr.includes(e??"")?e:jr}function Jr(e){return Xr.includes(e??"")?e:zr}function Ia(e){return qr.includes(e??"")?e:Zr}function pm(e){let t=Na(e);return t===La?void 0:t}function mm(e){let t=Jr(e);return t===je?void 0:t}function fm(e){let t=Ia(e);return t===Qr?void 0:t}function wm(e,t,o){let a=br(t);return a===gr?{}:Na(e)!==La||Ia(o)==="lift"?{"--sf-shadow-color":a}:{}}var el=["normal","tight","compressed"],xe="normal";function Pa(e){return el.includes(e??"")?e:xe}function gm(e){let t=Pa(e);return t===xe?void 0:t}function bm(e){switch(Pa(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var Wt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},Ct=100,Lt=900,tl=24,ol=200;function We(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function Ha(e){let t=We(e?.weight,Ct,Lt),o=e?.case==="sentence"?"sentence":"authored",a=n=>n==null?t:We(n,Ct,Lt),s=n=>n==="sentence"?"sentence":n==="authored"?"authored":o;return{case:o,weight:t,weightStrong:We(e?.weightStrong,Ct,Lt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:We(e?.maxPx,tl,ol),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:s(e?.case2),case3:s(e?.case3)}}function ym(e){let t=Ha(e),o={};return t.case==="sentence"&&(o["--sf-heading-case"]="none"),t.weight!==null&&(o["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(o["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(o["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(o["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(o["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(o["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(o["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),o}function Em(e){return Ha({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}var Pt="siteTheme";function al(e){let t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(a=>!!a&&typeof a=="object"))return{};let o=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[Pt]:{selected:o,themes:t.themes}}}function Sm(e){return al(e?.[Pt])[Pt]}var Oe=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"jost",label:"Jost",cssVar:"--font-jost",category:"sans",italic:!0,italicLoaded:!0},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],re=new Map(Oe.map(e=>[e.key,e]));function _m(e){return re.get(e)}var Ut=["heading","heading2","heading3","body","accent","label"];function vm(e){return typeof e=="string"&&Ut.includes(e)?e:null}var xm={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},sl=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],nl=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,Om={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},il={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function km(e){let t=e?nl.exec(e):null;return t?il[t[1]]??null:rl(e)}function rl(e){if(!e)return null;let t=e.split(/\s+/).filter(o=>!o.slice(0,o.lastIndexOf(":")+1).includes("&")).map(o=>o.slice(o.lastIndexOf(":")+1));for(let[o,a]of sl)if(t.includes(o))return a;return null}var V={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function ll(e){let t=o=>{let a=e?.[o];if(a&&re.has(a))return a;if(o==="heading2"||o==="heading3"){let s=e?.heading;return s&&re.has(s)?s:V.heading}return V[o]};return Object.fromEntries(Ut.map(o=>[o,t(o)]))}function cl(e,t){return re.get(e[t])??re.get(V[t])}function ie(e,t){return`var(${cl(e,t).cssVar})`}var Am=[...new Set(Ut.map(e=>re.get(V[e]).cssVar))],Rm=[...new Set(Oe.map(e=>e.cssVar))];function Cm(e){let t=ll(e);return{"--font-role-heading":ie(t,"heading"),"--font-role-heading2":ie(t,"heading2"),"--font-role-heading3":ie(t,"heading3"),"--font-role-body":ie(t,"body"),"--font-role-accent":ie(t,"accent"),"--font-role-label":ie(t,"label"),fontFamily:"var(--font-role-body)"}}var Ba={},Ma=dl({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:Ht,setThemeMode:()=>{},themeSwitchShown:Dt,setThemeSwitchShown:()=>{},theme:Ke,themeRow:"none",setTheme:()=>{},fonts:V,setFonts:()=>{},sizes:Ft,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:je,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:xe,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:Ba,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:Wt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function Bm({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:s=!1,themeMode:n=Ht,onThemeModeChange:i,themeSwitchShown:r=Dt,onThemeSwitchShownChange:l,theme:d=Ke,themeRow:g="none",onThemeChange:w,fonts:P=V,onFontsChange:H,sizes:$=Ft,onSizesChange:Fe,cornerRadiusPx:yt=null,onCornerRadiusPxChange:Ge,cardShadow:Et=null,onCardShadowChange:Vo,shadowColor:bi=null,onShadowColorChange:jo,cardGap:yi=je,onCardGapChange:Xo,hoverEffect:Ei=null,onHoverEffectChange:zo,headingCompression:Si=xe,onHeadingCompressionChange:qo,siteWidth:Ti=null,onSiteWidthChange:Zo,siteGutter:_i=null,siteGutterPhone:vi=null,blockGap:xi=null,blockGapPhone:Oi=null,siteLengthUnits:ki=Ba,onSiteLengthUnitsChange:Qo,onSiteGutterChange:Jo,onSiteGutterPhoneChange:ea,onBlockGapChange:ta,onBlockGapPhoneChange:oa,headingTypography:Ai=Wt,onHeadingTypographyChange:aa,textStyles:Ri=null,onTextStylesChange:sa,wordStyles:Ci=null,heroBackgroundFollowsWidth:Li=null,onHeroBackgroundFollowsWidthChange:na,sectionBackgroundWidth:Ni=null,onSectionBackgroundWidthChange:ia,sectionContentWidth:Ii=null,onSectionContentWidthChange:ra,photographyGrayscale:Pi=null,onPhotographyGrayscaleChange:la,shareButtonOnPosts:Hi=null,onShareButtonOnPostsChange:ca,themeFromDocument:Di=!1}){let[_e,da]=pl(null),Bi=m(c=>da(cr=>cr??c),[]),Mi=m(c=>i?.(c),[i]),Fi=m(c=>l?.(c),[l]),Gi=m(c=>w?.(c),[w]),Wi=m(c=>H?.(c),[H]),Ui=m(c=>Fe?.(c),[Fe]),Yi=m(c=>Zo?.(c),[Zo]),Ki=m(c=>Jo?.(c),[Jo]),$i=m(c=>ea?.(c),[ea]),Vi=m(c=>ta?.(c),[ta]),ji=m(c=>oa?.(c),[oa]),Xi=m(c=>Qo?.(c),[Qo]),zi=m(c=>na?.(c),[na]),qi=m(c=>ia?.(c),[ia]),Zi=m(c=>ra?.(c),[ra]),Qi=m(c=>la?.(c),[la]),Ji=m(c=>ca?.(c),[ca]),er=m(c=>Ge?.(c),[Ge]),tr=m(c=>Vo?.(c),[Vo]),or=m(c=>jo?.(c),[jo]),ar=m(c=>Xo?.(c),[Xo]),sr=m(c=>zo?.(c),[zo]),nr=m(c=>qo?.(c),[qo]),ir=m(c=>aa?.(c),[aa]),rr=m(c=>sa?.(c),[sa]),ha=_e?.logoUrl,ua=_e?.logoReversed,pa=_e?.logoInkIsDark,ma=_e!==null,lr=ul(()=>({logo:ma?{logoUrl:ha,logoReversed:ua,logoInkIsDark:pa}:null,placeholder:o||s,wordmark:o?a:t}),[ma,ha,ua,pa,o,s,a,t]);return Da(Tt.Provider,{value:lr,children:Da(Ma.Provider,{value:{settings:_e,setSettings:da,primeSettings:Bi,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:s,themeMode:n,setThemeMode:Mi,themeSwitchShown:r,setThemeSwitchShown:Fi,theme:d,themeRow:g,setTheme:Gi,fonts:P,setFonts:Wi,sizes:$,setSizes:Ui,cornerRadiusPx:yt,setCornerRadiusPx:er,cardShadow:Et,setCardShadow:tr,shadowColor:bi,setShadowColor:or,cardGap:yi,setCardGap:ar,hoverEffect:Ei,setHoverEffect:sr,headingCompression:Si,setHeadingCompression:nr,siteWidth:Ti,setSiteWidth:Yi,siteGutter:_i,siteGutterPhone:vi,blockGap:xi,blockGapPhone:Oi,siteLengthUnits:ki,setSiteLengthUnits:Xi,setSiteGutter:Ki,setSiteGutterPhone:$i,setBlockGap:Vi,setBlockGapPhone:ji,headingTypography:Ai,setHeadingTypography:ir,textStyles:Ri,setTextStyles:rr,wordStyles:Ci,heroBackgroundFollowsWidth:Li,setHeroBackgroundFollowsWidth:zi,sectionBackgroundWidth:Ni,setSectionBackgroundWidth:qi,sectionContentWidth:Ii,setSectionContentWidth:Zi,photographyGrayscale:Pi,setPhotographyGrayscale:Qi,shareButtonOnPosts:Hi,setShareButtonOnPosts:Ji,themeFromDocument:Di},children:e})})}var ml=()=>hl(Ma);function Mm(e,t,o){return e?t===o?"read":"loading":"none"}function Fm(e,t){return{value:e,readFor:t}}function Gm(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function Wm(){let{sectionContentWidth:e,themeFromDocument:t}=ml();return t?null:e}var B=e=>typeof e=="string"&&e?e:void 0;function ke(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function le(e,t){return Object.hasOwn(e,t)}var Vm=["general","commerce","service"],ce=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"GalleryB",label:"Gallery",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function jm(){return Object.fromEntries(ce.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var fl="2027-02-05",wl="2027-02-14",Fa={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
|
|
1
|
+
import{a as ve}from"./chunk-PGKDGGEE.js";import{jsx as Da}from"react/jsx-runtime";import{createContext as dl,useCallback as m,useContext as hl,useMemo as ul,useState as pl}from"react";import{createContext as wa,useContext as St}from"react";import{createContext as dr}from"react";var fa=dr(null);var hr=wa(null),Tt=wa({logo:null,placeholder:!1,wordmark:null});function Sp(){let e=St(fa),t=St(hr),o=St(Tt),a=!e&&o.placeholder,s=e?e.logoUrl:o.logo?.logoUrl??t?.logoUrl??null;return{src:a?null:s,reversedSrc:e?e.logoReversed:o.logo?.logoReversed??t?.logoReversed??null,inkIsDark:e?e.logoInkIsDark:o.logo?.logoInkIsDark??t?.logoInkIsDark??null,wordmark:e?null:o.wordmark,siteName:e?.siteName??t?.siteName}}import{contrastRatio as Pp,hexToRgb as Ue,parseHexColor as G,readableInk as Sa,relativeLuminance as Ye}from"efficient-shell/format";import{DEFAULT_SHADOW_COLOR as gr,pictureShadowColor as br}from"efficient-easel/screen/lib/document/shadow-values";import{isLengthUnit as yr}from"efficient-easel/screen/lib/content/length-units";import{VIEW_TIERS as ur,viewKeyAt as ga}from"efficient-easel/screen/lib/content/view-tiers";var D=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;import{isLengthUnit as _t,lengthOf as pr,rowGrid as mr}from"efficient-easel/screen/lib/content/length-units";function vt(e,t){let o=pr(e,xt(t));return typeof o=="number"?`${o}px`:o}function xt(e,t="px"){return _t(e)?e:t}function kp(e,t,o){return t.unitKey?xt(e[ga(t.unitKey,o)],t.base??"px"):t.base??"px"}function Ap(e,t=ur){return e.unitKey?t.map(o=>ga(e.unitKey,o)):[]}function fr(e,t,o){let a=mr({kind:e},t,o);return t!=="px"&&o.min>0?{...a,min:a.step}:a}function Ot(e,t,o,a){let s=D(e);if(!_t(t)||t==="px"||s===void 0)return null;let n=fr(o,t,a),i=Math.min(n.max,Math.max(n.min,s));return Math.round(i*100)/100}function Rp(e,t,o,a){let s=Ot(e,t,o,a);return s===null?null:vt(s,t)}var wr={cornerRadiusUnit:"corner_radius_unit",siteWidthUnit:"site_width_unit",siteGutterUnit:"site_gutter_unit",siteGutterPhoneUnit:"site_gutter_phone_unit",blockGapUnit:"block_gap_unit",blockGapPhoneUnit:"block_gap_phone_unit"};function Cp(e){let t=e;return Object.fromEntries(Object.entries(wr).map(([o,a])=>[o,xt(t[a])]))}function Lp(e,t,o){let a=D(e);return _t(t)&&t!=="px"&&a!==void 0?a:o(a??null)}import{DEFAULT_SHADOW_COLOR as um}from"efficient-easel/screen/lib/document/shadow-values";var Mp="storefront-theme",Fp="sf:theme-mode",Gp="sf:theme-switch",Wp="hide",Ht="light",Dt=!1,Er=7,Sr=18;function Tr(e){return e>=Er&&e<Sr}function Up(e){let{mode:t,override:o,switchShown:a,hour:s}=e;return a&&(o==="light"||o==="dark")?o:t==="auto"?Tr(s)?"light":"dark":t==="light"?"light":"dark"}var ae={background:"#0a0a0a",surface:"#131313",line:"#2a2a2a",muted:"#9a9388"},_r=[{text:"#2e2e2e",accent:"#2e2e2e",background:"#ffffff",surface:"#f7f7f7",line:"#e0e0e0",muted:"#5c5c5c"},{text:"#f7f7f7",accent:"#f7f7f7",background:"#0a0a0a",surface:"#1b1b1b",line:"#363636",muted:"#a3a3a3"},{text:"#ffffff",accent:"#ffffff",background:"#2e2e2e",surface:"#3d3d3d",line:"#545454",muted:"#b0b0b0"},{text:"#0a0a0a",accent:"#0a0a0a",background:"#f7f7f7",surface:"#ffffff",line:"#d9d9d9",muted:"#5c5c5c"}],Ke={selected:0,themes:_r};function Ta(e){return!e||!Array.isArray(e.themes)||e.themes.length===0?{...Ke}:{selected:Math.min(Math.max(0,e.selected??0),e.themes.length-1),themes:e.themes}}function kt(e,t,o){let a=Ue(e),s=Ue(t);if(a===null||s===null)return e;let n=(i,r)=>Math.max(0,Math.min(255,Math.round(i+(r-i)*o))).toString(16).padStart(2,"0");return`#${n(a.r,s.r)}${n(a.g,s.g)}${n(a.b,s.b)}`}var vr={light:"#ffffff",dark:"#0a0a0a"},Yp=["light","dark"];function Kp(e,t){let o=vr[t],a=t==="light"?"#ffffff":"#000000";return{text:o,accent:o,background:e,surface:kt(e,a,.1),line:kt(e,a,.22),muted:kt(o,e,.35),brandInk:t}}function ne(e){let t=Ta(e);return t.themes[t.selected]}function se(e){return{text:e.text,accent:e.accent,background:e.background||ae.background,surface:e.surface||ae.surface,line:e.line||ae.line,muted:e.muted||ae.muted}}var xr=.4,Or="#f5f1e8",ba="#0a0a0a";function kr(e){let t=ne(e).text,o=Ye(t);return o===null||o>=xr?t:null}var Ar=4.5,Rr=3,$p={good:"Good","large-only":"Large text only",hard:"Hard to read"};function Vp(e){return e>=Ar?"good":e>=Rr?"large-only":"hard"}var Cr=["#000000","#ffffff"];function $e(e){return Sa(e,Cr)}function _a(e,t){let o=t!==void 0&&Ye(t)!==null?t:Or;return Sa(e,[ba,o])===o&&o!==ba}var Lr=[.25,.4,.55];function jp(e){let t=Ue(e);return t===null?[]:Lr.map(o=>"#"+[t.r,t.g,t.b].map(a=>Math.round(a*(1-o)).toString(16).padStart(2,"0")).join(""))}function Xp(e){let t={"--theme-fg":ne(e).text},o=kr(e);return o!==null&&(t["--overlay-fg"]=o),t}var Nr=82;function Bt(e){return`color-mix(in srgb, ${e} ${Nr}%, #000)`}function zp(e){let t=ne(e);return{"--theme-accent":t.accent,"--theme-accent-2":Bt(t.accent),"--theme-accent-ink":$e(t.accent)}}function Mt(e){let t=e?.button;return t&&G(t)===t.toLowerCase()?t.toLowerCase():null}function qp(e){let t=ne(e),o=Mt(t),a=va(t);if(o===null&&a===null)return{};let s={};return o!==null&&(s["--theme-btn"]=o,s["--theme-btn-2"]=Bt(o)),s["--theme-btn-ink"]=a??$e(o),s}function va(e){let t=e?.buttonInk;return t&&G(t)===t.toLowerCase()?t.toLowerCase():null}function Ir(e,t){return va(e)??$e(Mt(e)??t)}function Zp(e){let t=ne(e);return{fill:Mt(t)??t.accent.toLowerCase(),ink:Ir(t,t.accent)}}function Qp(e){let t={};return Ta(e).themes.forEach((o,a)=>{let s=se(o);t[`--theme-preset-${a}-accent`]=s.accent,t[`--theme-preset-${a}-accent-2`]=Bt(s.accent),t[`--theme-preset-${a}-accent-ink`]=$e(s.accent),t[`--theme-preset-${a}-bg`]=s.background,t[`--theme-preset-${a}-fg`]=s.text,t[`--theme-preset-${a}-surface`]=s.surface,t[`--theme-preset-${a}-surface-2`]=`color-mix(in srgb, ${s.surface} 60%, ${s.line})`,t[`--theme-preset-${a}-line`]=s.line,t[`--theme-preset-${a}-muted`]=s.muted}),t}var At=e=>{let t=e/255;return t<=.04045?t/12.92:((t+.055)/1.055)**2.4},Rt=e=>255*(e<=.0031308?12.92*e:1.055*e**(1/2.4)-.055);function ya([e,t,o]){let[a,s,n]=[At(e),At(t),At(o)],i=Math.cbrt(.4122214708*a+.5363325363*s+.0514459929*n),r=Math.cbrt(.2119034982*a+.6806995451*s+.1073969566*n),l=Math.cbrt(.0883024619*a+.2817188376*s+.6299787005*n);return[.2104542553*i+.793617785*r-.0040720468*l,1.9779984951*i-2.428592205*r+.4505937099*l,.0259040371*i+.7827717662*r-.808675766*l]}function Pr([e,t,o]){let a=(e+.3963377774*t+.2158037573*o)**3,s=(e-.1055613458*t-.0638541728*o)**3,n=(e-.0894841775*t-1.291485548*o)**3;return[Rt(4.0767416621*a-3.3077115913*s+.2309699292*n),Rt(-1.2684380046*a+2.6097574011*s-.3413193965*n),Rt(-.0041960863*a-.7034186147*s+1.707614701*n)]}var Nt=e=>{let t=Ue(e);return t===null?[0,0,0]:[t.r,t.g,t.b]},xa=(e,t,o)=>[e[0]*o+t[0]*(1-o),e[1]*o+t[1]*(1-o),e[2]*o+t[2]*(1-o)],Oa=e=>`#${e.map(t=>Math.max(0,Math.min(255,Math.round(t))).toString(16).padStart(2,"0")).join("")}`,ka=e=>xa(Nt(e.surface),Nt(e.line),.6);function Jp(e){return Oa(ka(se(e)))}function Hr(e){let t=se(e);return Oa(Pr(xa(ya(ka(t)),ya(Nt(t.text)),.92)))}function Aa(e,t,o,a){let s=e[t];if(!s)return-1;let n=o(s);if(!n)return-1;let i=se(s);return e.findIndex((r,l)=>{if(l===t)return!1;let d=se(r);return G(d.background)!==n?!1:!a||G(d.text??"")===G(i.text??"")&&G(d.accent??"")===G(i.accent??"")})}function em(e,t){return Aa(e,t,Hr,!1)}function tm(e,t){return Aa(e,t,o=>G(o.surface??""),!0)}var Dr=1;function Br(e,t){let o=(e??[]).flatMap((a,s)=>{let n=Ye(a.background??""),i=Ye(a.text??"");return n!==null&&i!==null&&n<i?[s]:[]});return o.find(a=>a!==t)??o[0]??Dr}function om(e){return Br(e?.themes,e?.selected)}var am=["--theme-bg","--theme-surface","--theme-surface-2","--theme-line","--theme-muted"];function sm(e){let t=se(ne(e)),o=`color-mix(in srgb, ${t.surface} 60%, ${t.line})`,a={"--theme-bg":t.background,"--theme-surface":t.surface,"--theme-line":t.line,"--theme-muted":t.muted};return(t.surface!==ae.surface||t.line!==ae.line)&&(a["--theme-surface-2"]=o),a}var Mr=["heading","body","label"];function nm(e){if(!e)return null;for(let t of Mr)if(e.includes(`--size-${t}`))return t;return/--size-heading(Large|Medium|Small)/.test(e)?"heading":null}var Ra=["headingLarge","headingMedium","headingSmall","accent","body","label"];var Ft={headingLarge:null,headingMedium:null,headingSmall:null,accent:null,body:null,label:null},Fr=8,Gr=200;function Wr(e){if(typeof e!="number"||!Number.isFinite(e))return null;let t=Math.round(e);return t>=Fr&&t<=Gr?t:null}function Ur(e){let t={};for(let o of Ra)t[o]=Wr(e?.[o]);return t}function im(e){let t=Ur(e),o={};for(let a of Ra){let s=t[a];s!==null&&(o[`--size-${a}`]=`${s}px`)}return o}var Yr=["square","small","large"],Kr="small";function rm(e){return Yr.includes(e??"")?e:Kr}var Ve=0,Ca=40,$r={min:Ve,max:Ca,step:1},lm={square:0,small:null,large:16},It={"--sf-card-radius":1,"--sf-button-radius":.5,"--site-radius":.5,"--site-radius-xs":.25,"--site-radius-sm":.5,"--site-radius-md":.75,"--site-radius-lg":1,"--site-radius-xl":1.25,"--site-radius-2xl":1.5,"--site-radius-3xl":2,"--site-radius-4xl":2.5};function Gt(e){if(e==null||typeof e=="string"&&e.trim()==="")return null;let t=typeof e=="string"?Number(e):e;return Number.isFinite(t)?Math.min(Ca,Math.max(Ve,Math.round(t))):null}function Ea(e,t){if(yr(t)&&t!=="px"){if(typeof e!="number"||!Number.isFinite(e))return{};let a=Math.max(0,e);return Object.fromEntries(Object.entries(It).map(([s,n])=>{let i=Math.round(a*n*1e4)/1e4;return[s,i===0?"0":vt(i,t)]}))}let o=Gt(e);return o===null?{}:Object.fromEntries(Object.entries(It).map(([a,s])=>{let n=o*s/16;return[a,n===0?"0":`${n}rem`]}))}function cm(e){return(Gt(e)??Ve)*It["--sf-button-radius"]}function dm(e,t){let o=Ot(e,t,"radius",$r);return o!==null?Ea(o,t):Ea(Gt(e)??Ve)}var Vr=["none","soft","lifted"],jr="soft",La="none",Xr=["tight","normal","roomy"],zr="normal",je="normal",qr=["none","lift","highlight"],Zr="lift",Qr="highlight";function Na(e){return Vr.includes(e??"")?e:jr}function Jr(e){return Xr.includes(e??"")?e:zr}function Ia(e){return qr.includes(e??"")?e:Zr}function pm(e){let t=Na(e);return t===La?void 0:t}function mm(e){let t=Jr(e);return t===je?void 0:t}function fm(e){let t=Ia(e);return t===Qr?void 0:t}function wm(e,t,o){let a=br(t);return a===gr?{}:Na(e)!==La||Ia(o)==="lift"?{"--sf-shadow-color":a}:{}}var el=["normal","tight","compressed"],xe="normal";function Pa(e){return el.includes(e??"")?e:xe}function gm(e){let t=Pa(e);return t===xe?void 0:t}function bm(e){switch(Pa(e)){case"tight":return{lineHeight:.95,letterSpacing:-.01};case"compressed":return{lineHeight:.86,letterSpacing:-.01};default:return{}}}var Wt={case:"authored",weight:null,weightStrong:null,italicStrong:null,maxPx:null,weight2:null,weight3:null,case2:"authored",case3:"authored"},Ct=100,Lt=900,tl=24,ol=200;function We(e,t,o){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),o))}function Ha(e){let t=We(e?.weight,Ct,Lt),o=e?.case==="sentence"?"sentence":"authored",a=n=>n==null?t:We(n,Ct,Lt),s=n=>n==="sentence"?"sentence":n==="authored"?"authored":o;return{case:o,weight:t,weightStrong:We(e?.weightStrong,Ct,Lt),italicStrong:typeof e?.italicStrong=="boolean"?e.italicStrong:null,maxPx:We(e?.maxPx,tl,ol),weight2:a(e?.weight2),weight3:a(e?.weight3),case2:s(e?.case2),case3:s(e?.case3)}}function ym(e){let t=Ha(e),o={};return t.case==="sentence"&&(o["--sf-heading-case"]="none"),t.weight!==null&&(o["--sf-heading-weight"]=String(t.weight)),t.weightStrong!==null&&(o["--sf-heading-weight-strong"]=String(t.weightStrong)),t.maxPx!==null&&(o["--sf-heading-max"]=`${t.maxPx}px`),t.weight2!==null&&t.weight2!==t.weight&&(o["--sf-heading-2-weight"]=String(t.weight2)),t.weight3!==null&&t.weight3!==t.weight&&(o["--sf-heading-3-weight"]=String(t.weight3)),t.case2!==t.case&&(o["--sf-heading-2-case"]=t.case2==="sentence"?"none":"uppercase"),t.case3!==t.case&&(o["--sf-heading-3-case"]=t.case3==="sentence"?"none":"uppercase"),o}function Em(e){return Ha({case:e?.heading_case??void 0,weight:e?.heading_weight,weightStrong:e?.heading_weight_strong,italicStrong:e?.accent_italic,maxPx:e?.heading_max_px,weight2:e?.heading_2_weight??void 0,weight3:e?.heading_3_weight??void 0,case2:e?.heading_2_case??void 0,case3:e?.heading_3_case??void 0})}var Pt="siteTheme";function al(e){let t=e;if(!t||typeof t!="object"||!Array.isArray(t.themes)||!t.themes.every(a=>!!a&&typeof a=="object"))return{};let o=typeof t.selected=="number"&&Number.isInteger(t.selected)&&t.selected>=0?t.selected:0;return{[Pt]:{selected:o,themes:t.themes}}}function Sm(e){return al(e?.[Pt])[Pt]}var Oe=[{key:"space-grotesk",label:"Space Grotesk",cssVar:"--font-display",category:"sans",italic:!1,italicLoaded:!1},{key:"inter",label:"Inter",cssVar:"--font-body",category:"sans",italic:!0,italicLoaded:!0},{key:"poppins",label:"Poppins",cssVar:"--font-poppins",category:"sans",italic:!0,italicLoaded:!0},{key:"dm-sans",label:"DM Sans",cssVar:"--font-dm-sans",category:"sans",italic:!0,italicLoaded:!0},{key:"sora",label:"Sora",cssVar:"--font-sora",category:"sans",italic:!1,italicLoaded:!1},{key:"oswald",label:"Oswald",cssVar:"--font-oswald",category:"sans",italic:!1,italicLoaded:!1},{key:"archivo",label:"Archivo",cssVar:"--font-archivo",category:"sans",italic:!0,italicLoaded:!0},{key:"outfit",label:"Outfit",cssVar:"--font-outfit",category:"sans",italic:!1,italicLoaded:!1},{key:"manrope",label:"Manrope",cssVar:"--font-manrope",category:"sans",italic:!1,italicLoaded:!1},{key:"big-shoulders",label:"Big Shoulders",cssVar:"--font-big-shoulders",category:"sans",italic:!1,italicLoaded:!1},{key:"michroma",label:"Michroma",cssVar:"--font-michroma",category:"sans",italic:!1,italicLoaded:!1},{key:"assistant",label:"Assistant",cssVar:"--font-assistant",category:"sans",italic:!1,italicLoaded:!1},{key:"jost",label:"Jost",cssVar:"--font-jost",category:"sans",italic:!0,italicLoaded:!0},{key:"fraunces",label:"Fraunces",cssVar:"--font-serif",category:"serif",italic:!0,italicLoaded:!0},{key:"playfair-display",label:"Playfair Display",cssVar:"--font-playfair",category:"serif",italic:!0,italicLoaded:!0},{key:"cormorant",label:"Cormorant",cssVar:"--font-cormorant",category:"serif",italic:!0,italicLoaded:!0},{key:"jetbrains-mono",label:"JetBrains Mono",cssVar:"--font-mono-loaded",category:"mono",italic:!0,italicLoaded:!0}],re=new Map(Oe.map(e=>[e.key,e]));function _m(e){return re.get(e)}var Ut=["heading","heading2","heading3","body","accent","label"];function vm(e){return typeof e=="string"&&Ut.includes(e)?e:null}var xm={heading:"Heading 1",heading2:"Heading 2",heading3:"Heading 3",body:"Body",accent:"Emphasis",label:"Labels"},sl=[["font-heading2","heading2"],["font-heading3","heading3"],["font-display","heading"],["font-serif","accent"],["font-mono","label"],["font-body","body"]],nl=/var\(--size-(headingLarge|headingMedium|headingSmall|accent|body|label)\s*,/,Om={heading:"headingLarge",heading2:"headingMedium",heading3:"headingSmall",accent:"accent",body:"body",label:"label"},il={headingLarge:"heading",headingMedium:"heading2",headingSmall:"heading3",accent:"accent",body:"body",label:"label"};function km(e){let t=e?nl.exec(e):null;return t?il[t[1]]??null:rl(e)}function rl(e){if(!e)return null;let t=e.split(/\s+/).filter(o=>!o.slice(0,o.lastIndexOf(":")+1).includes("&")).map(o=>o.slice(o.lastIndexOf(":")+1));for(let[o,a]of sl)if(t.includes(o))return a;return null}var V={heading:"space-grotesk",heading2:"space-grotesk",heading3:"space-grotesk",body:"inter",accent:"fraunces",label:"jetbrains-mono"};function ll(e){let t=o=>{let a=e?.[o];if(a&&re.has(a))return a;if(o==="heading2"||o==="heading3"){let s=e?.heading;return s&&re.has(s)?s:V.heading}return V[o]};return Object.fromEntries(Ut.map(o=>[o,t(o)]))}function cl(e,t){return re.get(e[t])??re.get(V[t])}function ie(e,t){return`var(${cl(e,t).cssVar})`}var Am=[...new Set(Ut.map(e=>re.get(V[e]).cssVar))],Rm=[...new Set(Oe.map(e=>e.cssVar))];function Cm(e){let t=ll(e);return{"--font-role-heading":ie(t,"heading"),"--font-role-heading2":ie(t,"heading2"),"--font-role-heading3":ie(t,"heading3"),"--font-role-body":ie(t,"body"),"--font-role-accent":ie(t,"accent"),"--font-role-label":ie(t,"label"),fontFamily:"var(--font-role-body)"}}var Ba={},Ma=dl({settings:null,setSettings:()=>{},primeSettings:()=>{},websiteName:null,templateChrome:!1,templateName:null,chromePlaceholder:!1,themeMode:Ht,setThemeMode:()=>{},themeSwitchShown:Dt,setThemeSwitchShown:()=>{},theme:Ke,themeRow:"none",setTheme:()=>{},fonts:V,setFonts:()=>{},sizes:Ft,setSizes:()=>{},cornerRadiusPx:null,setCornerRadiusPx:()=>{},cardShadow:null,setCardShadow:()=>{},shadowColor:null,setShadowColor:()=>{},cardGap:je,setCardGap:()=>{},hoverEffect:null,setHoverEffect:()=>{},headingCompression:xe,setHeadingCompression:()=>{},siteWidth:null,setSiteWidth:()=>{},siteGutter:null,siteGutterPhone:null,blockGap:null,blockGapPhone:null,siteLengthUnits:Ba,setSiteLengthUnits:()=>{},setSiteGutter:()=>{},setSiteGutterPhone:()=>{},setBlockGap:()=>{},setBlockGapPhone:()=>{},headingTypography:Wt,setHeadingTypography:()=>{},textStyles:null,setTextStyles:()=>{},wordStyles:null,heroBackgroundFollowsWidth:null,setHeroBackgroundFollowsWidth:()=>{},sectionBackgroundWidth:null,setSectionBackgroundWidth:()=>{},sectionContentWidth:null,setSectionContentWidth:()=>{},photographyGrayscale:null,setPhotographyGrayscale:()=>{},shareButtonOnPosts:null,setShareButtonOnPosts:()=>{},themeFromDocument:!1});function Bm({children:e,websiteName:t=null,templateChrome:o=!1,templateName:a=null,chromePlaceholder:s=!1,themeMode:n=Ht,onThemeModeChange:i,themeSwitchShown:r=Dt,onThemeSwitchShownChange:l,theme:d=Ke,themeRow:g="none",onThemeChange:w,fonts:P=V,onFontsChange:H,sizes:$=Ft,onSizesChange:Fe,cornerRadiusPx:yt=null,onCornerRadiusPxChange:Ge,cardShadow:Et=null,onCardShadowChange:Vo,shadowColor:bi=null,onShadowColorChange:jo,cardGap:yi=je,onCardGapChange:Xo,hoverEffect:Ei=null,onHoverEffectChange:zo,headingCompression:Si=xe,onHeadingCompressionChange:qo,siteWidth:Ti=null,onSiteWidthChange:Zo,siteGutter:_i=null,siteGutterPhone:vi=null,blockGap:xi=null,blockGapPhone:Oi=null,siteLengthUnits:ki=Ba,onSiteLengthUnitsChange:Qo,onSiteGutterChange:Jo,onSiteGutterPhoneChange:ea,onBlockGapChange:ta,onBlockGapPhoneChange:oa,headingTypography:Ai=Wt,onHeadingTypographyChange:aa,textStyles:Ri=null,onTextStylesChange:sa,wordStyles:Ci=null,heroBackgroundFollowsWidth:Li=null,onHeroBackgroundFollowsWidthChange:na,sectionBackgroundWidth:Ni=null,onSectionBackgroundWidthChange:ia,sectionContentWidth:Ii=null,onSectionContentWidthChange:ra,photographyGrayscale:Pi=null,onPhotographyGrayscaleChange:la,shareButtonOnPosts:Hi=null,onShareButtonOnPostsChange:ca,themeFromDocument:Di=!1}){let[_e,da]=pl(null),Bi=m(c=>da(cr=>cr??c),[]),Mi=m(c=>i?.(c),[i]),Fi=m(c=>l?.(c),[l]),Gi=m(c=>w?.(c),[w]),Wi=m(c=>H?.(c),[H]),Ui=m(c=>Fe?.(c),[Fe]),Yi=m(c=>Zo?.(c),[Zo]),Ki=m(c=>Jo?.(c),[Jo]),$i=m(c=>ea?.(c),[ea]),Vi=m(c=>ta?.(c),[ta]),ji=m(c=>oa?.(c),[oa]),Xi=m(c=>Qo?.(c),[Qo]),zi=m(c=>na?.(c),[na]),qi=m(c=>ia?.(c),[ia]),Zi=m(c=>ra?.(c),[ra]),Qi=m(c=>la?.(c),[la]),Ji=m(c=>ca?.(c),[ca]),er=m(c=>Ge?.(c),[Ge]),tr=m(c=>Vo?.(c),[Vo]),or=m(c=>jo?.(c),[jo]),ar=m(c=>Xo?.(c),[Xo]),sr=m(c=>zo?.(c),[zo]),nr=m(c=>qo?.(c),[qo]),ir=m(c=>aa?.(c),[aa]),rr=m(c=>sa?.(c),[sa]),ha=_e?.logoUrl,ua=_e?.logoReversed,pa=_e?.logoInkIsDark,ma=_e!==null,lr=ul(()=>({logo:ma?{logoUrl:ha,logoReversed:ua,logoInkIsDark:pa}:null,placeholder:o||s,wordmark:o?a:t}),[ma,ha,ua,pa,o,s,a,t]);return Da(Tt.Provider,{value:lr,children:Da(Ma.Provider,{value:{settings:_e,setSettings:da,primeSettings:Bi,websiteName:t,templateChrome:o,templateName:a,chromePlaceholder:s,themeMode:n,setThemeMode:Mi,themeSwitchShown:r,setThemeSwitchShown:Fi,theme:d,themeRow:g,setTheme:Gi,fonts:P,setFonts:Wi,sizes:$,setSizes:Ui,cornerRadiusPx:yt,setCornerRadiusPx:er,cardShadow:Et,setCardShadow:tr,shadowColor:bi,setShadowColor:or,cardGap:yi,setCardGap:ar,hoverEffect:Ei,setHoverEffect:sr,headingCompression:Si,setHeadingCompression:nr,siteWidth:Ti,setSiteWidth:Yi,siteGutter:_i,siteGutterPhone:vi,blockGap:xi,blockGapPhone:Oi,siteLengthUnits:ki,setSiteLengthUnits:Xi,setSiteGutter:Ki,setSiteGutterPhone:$i,setBlockGap:Vi,setBlockGapPhone:ji,headingTypography:Ai,setHeadingTypography:ir,textStyles:Ri,setTextStyles:rr,wordStyles:Ci,heroBackgroundFollowsWidth:Li,setHeroBackgroundFollowsWidth:zi,sectionBackgroundWidth:Ni,setSectionBackgroundWidth:qi,sectionContentWidth:Ii,setSectionContentWidth:Zi,photographyGrayscale:Pi,setPhotographyGrayscale:Qi,shareButtonOnPosts:Hi,setShareButtonOnPosts:Ji,themeFromDocument:Di},children:e})})}var ml=()=>hl(Ma);function Mm(e,t,o){return e?t===o?"read":"loading":"none"}function Fm(e,t){return{value:e,readFor:t}}function Gm(e,t,o){return{value:t,readFor:e.readFor===o?o:null}}function Wm(){let{sectionContentWidth:e,themeFromDocument:t}=ml();return t?null:e}var B=e=>typeof e=="string"&&e?e:void 0;function ke(e,t){return Object.hasOwn(e,t)?e[t]:void 0}function le(e,t){return Object.hasOwn(e,t)}var Vm=["general","commerce","service"],ce=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"GalleryB",label:"Gallery",set:"commerce"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocBody",label:"Document Text",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function jm(){return Object.fromEntries(ce.map(e=>[e.key,{title:e.title,components:e.sections.map(t=>t.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var fl="2027-02-05",wl="2027-02-14",Fa={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
|
|
2
2
|
|
|
3
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
4
|
|