efficient-storefront-blocks 0.111.0 → 0.112.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 +19 -0
- package/dist/chunks/{EditorPreviewCheckout-C42GCC3T.js → EditorPreviewCheckout-NBZP252D.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-P4HVFXUX.js → SiteEditorProvider-6V6EJFTL.js} +1 -1
- package/dist/chunks/{chunk-FRCI3FAV.js → chunk-7UBABYIY.js} +1 -1
- package/dist/chunks/{chunk-RFFTWKCU.js → chunk-7ZIXVUD7.js} +20 -20
- package/dist/chunks/{chunk-MVJVIU2F.js → chunk-IY3JZXIQ.js} +1 -1
- package/dist/chunks/{chunk-CPAF23MT.js → chunk-X6YHQFHP.js} +1 -1
- package/dist/chunks/{fitment-data-EGBXHTFW.js → fitment-data-7BV7JBDK.js} +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +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 +30 -30
- package/dist/links.js +1 -1
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/DefaultProductHero.js +1 -1
- package/dist/render/components/Events.js +1 -1
- package/dist/render/components/ProductHeroPanel.d.ts +2 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/booking/BookingFormState.js +1 -1
- package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
- package/dist/render/components/card-pieces/CardSave.js +1 -1
- package/dist/render/components/catalog/ShopperChips.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicProductHero.js +1 -1
- package/dist/render/lib/content/article-page-seed.js +1 -1
- package/dist/render/lib/content/booking-card-seed.js +1 -1
- package/dist/render/lib/content/contact-card-seed.js +1 -1
- package/dist/render/lib/content/event-post.js +1 -1
- package/dist/render/lib/content/facet-row-seed.js +1 -1
- package/dist/render/lib/content/filter-card-seed.js +1 -1
- package/dist/render/lib/content/hero-buy-seed.d.ts +11 -0
- package/dist/render/lib/content/hero-buy-seed.js +1 -0
- package/dist/render/lib/content/hero-option-seed.js +1 -1
- package/dist/render/lib/content/hero-price-seed.js +1 -1
- package/dist/render/lib/content/host-part-seed.d.ts +2 -0
- package/dist/render/lib/content/host-part-seed.js +1 -0
- package/dist/render/lib/content/menu-card-seed.js +1 -1
- package/dist/render/lib/content/product-card-seed.js +1 -1
- package/dist/render/lib/content/rail-row-seed.js +1 -1
- package/dist/render/lib/content/seed-ids.d.ts +6 -0
- package/dist/render/lib/content/seed-ids.js +1 -0
- package/dist/render/lib/document/blocks/commerce/ProductBuyButton/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/service/subscribe.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/document-nodes.d.ts +6 -10
- package/dist/render/lib/document/document-nodes.js +1 -1
- package/dist/render/lib/sections/product-grid-pages.d.ts +1 -0
- package/dist/render/lib/wheels/shopper-first-paint.d.ts +2 -2
- package/dist/words.d.ts +2 -0
- package/dist/words.js +1 -1
- package/package.json +2 -2
- package/dist/render/lib/content/article-body-seed.d.ts +0 -9
- package/dist/render/lib/content/article-body-seed.js +0 -1
- /package/dist/chunks/{chunk-GB6OHYUY.js → chunk-37WWMI27.js} +0 -0
- /package/dist/chunks/{chunk-RFFTWKCU.js.LEGAL.txt → chunk-7ZIXVUD7.js.LEGAL.txt} +0 -0
|
@@ -77,4 +77,4 @@ WHAT REPLACES IT: a Box. \`eyebrow\`, \`title\` and \`body\` are Text blocks; ea
|
|
|
77
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
78
|
|
|
79
79
|
THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until ${$r}. A stored Integrations node still renders through it and can still be edited; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items \xB7 Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. \u26D4 A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},Kr=Object.fromEntries(Object.entries(wn).map(([e,t])=>[e,t.note])),dp=["Grid","Spacer","TyreFitment"],hp=Array.from(new Set([...ae.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(Kr)])),Vr=Object.fromEntries(Object.entries(wn).map(([e,t])=>[e,t.label])),up={...Vr,...Object.fromEntries(ae.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},jr={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",HostPart:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",WheelDiagram:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EuTyreLabel:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},kt={...jr,...Object.fromEntries(ae.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function mp(e){return pe(kt,e)}function At(e){return Object.keys(kt).filter(t=>pe(kt,t)===e).sort()}var pp=At("general"),fp=At("commerce"),wp=At("service"),Xr="Flex",De="Box",gp=`${De}es`;function zr(e){return e==="section"?"Blank section":De}function bp(e,t,a){return e===Xr?zr(t):a}var Y=["highlight","strong","quiet"],$={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},R={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},vp=Object.fromEntries(Y.map(e=>[R[e].kind,e])),Sp="data-sf-ws",qr=["accent","text","labels"],Zr={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},Qr=80,Jr=120,el=100,tl=900,al=.5,nl=3,ol=-.1,sl=.5,il=3,Rt={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},rl={highlight:{...Rt},strong:{...Rt},quiet:{...Rt}};function gn(e,t,a){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),a))}function bn(e,t,a){if(typeof e!="number"||!Number.isFinite(e))return null;let n=10**il;return Math.round(Math.min(Math.max(e,t),a)*n)/n}function yn(e){return typeof e=="boolean"?e:null}function ll(e){let t=typeof e?.font=="string"&&me.some(n=>n.key===e.font)?e.font:null,a=typeof e?.colour=="string"&&qr.includes(e.colour)?e.colour:null;return{font:t,size:gn(e?.size,Qr,Jr),weight:gn(e?.weight,el,tl),bold:yn(e?.bold),italic:yn(e?.italic),lineGap:bn(e?.lineGap,al,nl),textGap:bn(e?.textGap,ol,sl),colour:a}}function En(e){let t={};for(let a of Y)t[a]=e&&a in e&&e[a]?ll(e[a]):{...rl[a]};return t}function _p(e){let t=En(e),a={};for(let n of Y){let o=t[n],s=`--sf-ws-${n}`;if(o.font){let i=me.find(r=>r.key===o.font);i&&(a[`${s}-font`]=`var(${i.cssVar})`)}o.size!==null&&(a[`${s}-size`]=`${o.size/100}em`),o.weight!==null&&(a[`${s}-weight`]=String(o.weight)),o.bold!==null&&(a[`${s}-weight-bold`]=o.bold?"700":"400"),o.italic!==null&&(a[`${s}-style`]=o.italic?"italic":"normal"),o.lineGap!==null&&(a[`${s}-line`]=String(o.lineGap)),o.textGap!==null&&(a[`${s}-track`]=`${o.textGap}em`),o.colour!==null&&(a[`${s}-color`]=Zr[o.colour])}return a}function Tp(e){let t=e?.word_styles??void 0,a={};for(let n of Y)t&&n in t&&(a[n]=t[n]??null);return En(a)}import{applyMark as kp,markupTools as Ap,MARKUP_TOOLS as Rp,COPY_FIELD_TOOLS as Cp,STOREFRONT_MARKUP as Lp,tokenizeInline as Np,stripInline as Ip,isSafeLinkHref as Pp}from"efficient-shell/markup";import{applyMark as cl,clearStyle as dl,markedAt as hl,markupTools as ul,MARKUP_TOOLS as ml,parseMarkup as pl,RETIRED_MARKS as fl,STOREFRONT_MARKUP as wl,tokenizeInline as Dp}from"efficient-shell/markup";var gl=new Set(["strong"]),vn=Y.map(e=>({open:R[e].delimiter,close:R[e].delimiter,kind:R[e].kind,...gl.has(e)?{wordStart:!0}:{}})),Mp=[{style:R.highlight.kind,label:$.highlight,title:`${$.highlight} word style`},{style:R.strong.kind,label:$.strong,title:`${$.strong} word style`},{style:R.quiet.kind,label:$.quiet,title:`${$.quiet} word style`}],bl=new Set(vn.map(e=>e.open)),Ct=[...wl.filter(e=>!bl.has(e.open)),...vn];function yl(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Sn(e){return pl(typeof e=="string"?e:"",Ct)}var El=ml.map(e=>e.style).filter(e=>!fl.includes(e)).filter(e=>Ct.some(t=>t.kind===e));function Fp(){return ul(El)}var _n=Object.fromEntries(Y.map(e=>[R[e].kind,R[e].delimiter]));function Gp(e,t,a,n){let o=_n[n];if(!o)return cl(e,t,a,n);let s=e.slice(t,a),i=e.slice(Math.max(0,t-o.length),t),r=e.slice(a,a+o.length);if(i===o&&r===o)return{text:e.slice(0,t-o.length)+s+e.slice(a+o.length),selectionStart:t-o.length,selectionEnd:t-o.length+s.length};let l=s||"styled text";return{text:e.slice(0,t)+o+l+o+e.slice(a),selectionStart:t+o.length,selectionEnd:t+o.length+l.length}}function Wp(e,t,a,n){let o=_n[n];return o?t>=o.length&&e.slice(t-o.length,t)===o&&e.slice(a,a+o.length)===o:hl(e,t,a,n)}function Tn(e){return e.replace(/==(.+?)==/g,(t,a)=>a.startsWith("_")&&a.endsWith("_")?t:`==_${a}_==`)}function Up(e){return Sn(e).map(t=>yl(t)+xn(t.children)).join(`
|
|
80
|
-
`)}function Yp(e,t,a){return dl(e,t,a,Ct)}function xn(e){return e.map(t=>t.kind==="text"?t.text:xn(t.children)).join("")}function $p(e){let t=a=>a.some(n=>n.kind==="link"||"children"in n&&t(n.children));return Sn(e).some(a=>t(a.children))}import{isNodeList as vl}from"efficient-easel/data";var Be=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],kn="bottom-left",ne=4,Sl=ne+1,On=40,_l=30,Tl=100,xl=60,jp=100;var Lt={"top-left":"Top left","top-center":"Top center","top-right":"Top right",left:"Left",center:"Center",right:"Right","bottom-left":"Bottom left","bottom-center":"Bottom center","bottom-right":"Bottom right"};function Ol(e){let t=Be.indexOf(fe(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function kl(e){return 1+Ol(e).band*(Sl+1)}function Xp(e){return kl(e)+1}function fe(e){return Be.includes(e)?e:kn}function zp(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-On,Math.min(On,Math.round(t)))}function qp(e,t=xl){let a=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(_l,Math.min(Tl,Math.round(a)))}function Nt(e,t){let a=fe(t);return e.filter(n=>fe(n?.props?.placement)===a).length}function An(e){return`${Lt[fe(e)]} already holds ${ne} boxes. Move one somewhere else first.`}function Zp(e,t){let a=e.filter(n=>n?.props?.id!==t);return Be.map(n=>{let o=Nt(a,n)>=ne,s=Lt[n];return o?{value:n,label:s,disabled:!0,title:An(n)}:{value:n,label:s}})}function Al(e,t){let a=t===void 0?kn:fe(t?.props?.placement);return Nt(e,a)>=ne?An(a):null}var Rn="HeroGroup";function Rl(e){return Be.map(t=>{let a=Nt(e,t);return{anchor:t,total:a,hidden:a-ne}}).filter(t=>t.hidden>0)}function Qp(e){let t=Rl(e);return t.length===0?null:t.map(({anchor:a,total:n,hidden:o})=>{let s=Lt[a],i=o===1?"1 is not shown":`${o} are not shown`;return`${s} holds ${n} boxes. The published page draws the first ${ne}, so ${i}. ${o===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function Jp(e,t){let a=t;if(a?.type!==Rn)return null;let n=a.props?.id===void 0?"":String(a.props.id);return n?Al(Cl(e,n),a):null}function Cl(e,t){let a=Cn(e,t);return a&&a.ownerType===Nl?a.siblings:[]}function ef(e,t){let a=Cn(e,t);return a?a.ancestorTypes.filter(n=>n===Rn).length:Ll}var Ll=1,Nl="HeroSlide";function Cn(e,t){let a=(n,o,s)=>{if(o>12||!n||typeof n!="object")return null;if(vl(n)){if(n.some(i=>i?.props?.id===t))return{siblings:n,ownerType:s.at(-1)??null,ancestorTypes:s};for(let i of n){let r=i.type,l=a(i,o+1,[...s,String(r)]);if(l)return l}return null}for(let i of Object.values(n)){let r=a(i,o+1,s);if(r)return r}return null};return a(e,0,[])}import{forwardRef as Il}from"react";import{jsx as Dl}from"react/jsx-runtime";function Pl(e){if(typeof e=="string")return e;let t=e.query?`?${new URLSearchParams(e.query).toString()}`:"",a=e.hash?e.hash.startsWith("#")?e.hash:`#${e.hash}`:"";return`${e.pathname??""}${t}${a}`}var Hl=Il(function({href:t,prefetch:a,replace:n,scroll:o,shallow:s,legacyBehavior:i,passHref:r,locale:l,onClick:d,children:m,...h},I){let P=W=>{d?.(W),!(W.defaultPrevented||h.target==="_blank")&&W.preventDefault()};return Dl("a",{ref:I,href:Pl(t),onClick:P,...h,children:m})}),nf=Hl;var Bl="Website";function rf(e){return e?.trim()||Bl}var Ln=["instagram","facebook","tiktok","youtube","x","linkedin","pinterest","whatsapp","telegram","line","wechat"],Ml={instagram:"Instagram",facebook:"Facebook",tiktok:"TikTok",youtube:"YouTube",x:"X",linkedin:"LinkedIn",pinterest:"Pinterest",whatsapp:"WhatsApp",telegram:"Telegram",line:"LINE",wechat:"WeChat"},Fl={};function cf(e){if(!e||typeof e!="object")return Fl;let t={};for(let a of Ln){let n=e[a];if(typeof n!="string")continue;let o=n.trim();!o||!/^https?:\/\//i.test(o)||(t[a]=o)}return t}function df(e){return Ln.flatMap(t=>{let a=e[t];return a?[{platform:t,href:a,label:Ml[t]}]:[]})}var hf=e=>`${e}_url`;function oe(e,t){let a=globalThis,n=Symbol.for(e),o=a[n];return o===void 0&&(o=t(),a[n]=o),o}function we(){return oe("efficient.slot-field-blocks",()=>new Set)}var Gl="dataSource",yf="dataSourceOptions",Wl="dataRows",Ef="countKey",vf="counts",Sf="location-payment-methods",_f="shop-payment-methods",Tf="delivery-options",xf="blog-categories",It="dealers";function Ul(e){return typeof e.open=="function"}var Pn=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Of(e){return typeof e=="string"&&Pn.test(e)}var Nn=new Set([It]);function ge(){return oe("efficient.block-sources",()=>({sources:new Map,revision:0}))}var Yl=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),$l=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),In=e=>typeof e=="string"&&e.trim()!=="";function Kl(e){if(!e||!In(e.label))return null;if(Ul(e))return{label:e.label.trim(),open:e.open};let t=e.href;return In(t)?{label:e.label.trim(),href:t.trim()}:null}function Vl(e){if(typeof e.key!="string"||!Pn.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(n=>typeof n!="string"||!n))throw new Error(`The block source ${e.key} names no block it can fill.`);let t=e.blocks.find(n=>we().has(n));if(t)throw new Error(`The block source ${e.key} names ${t}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);let a=Kl(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(n=>Dn(n)).filter(n=>n!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(Yl)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter($l).map(n=>({...n}))}:{},...a?{edit:a}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(n=>typeof n=="string"&&n.trim()!=="").map(n=>n.trim())}:{}}}function kf(e){let t=e.map(Vl),a=ge();for(let n of t)a.sources.set(n.key,n);t.length&&(a.revision+=1)}function Hn(e){let t=[...ge().sources.values()],a=[...t.filter(n=>!Nn.has(n.key)),...t.filter(n=>Nn.has(n.key))];return e===void 0?a:a.filter(n=>n.blocks.includes(e))}function Me(e){return ge().sources.get(e)??null}function Af(e){return ge().sources.get(e)?.choices??[]}function Rf(){return ge().revision}function T(e){let t=e?.[Gl];return typeof t=="string"?t.trim():""}function Dn(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[a,n]of Object.entries(e)){let o=g(n);o&&(t[a]=o)}return Object.keys(t).length?t:null}function jl(e){let t=e?.[Wl];return Array.isArray(t)?t.map(Dn).filter(a=>a!==null):null}function Cf(e,t,a=[]){let n=jl(e);if(n!==null&&(n.length||!t))return{rows:n,sample:!1};if(!t)return{rows:[],sample:!1};let o=Me(T(e))?.sample;return{rows:o?.length?o:a,sample:!0}}var p="content",w="Flex",Xl="Text & media",zl="Layout & structure",Mn=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],ql=[...Mn,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:Xl})),Zl=(ae.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:zl})),Bn=[...ql,...Zl],Pt=[...Mn,{type:"HeroGroup",label:De}],Pf=Pt.map(e=>e.type),Ql=1,Jl=Pt.filter(e=>e.type!=="HeroGroup");function ec(e){return e<Ql?Pt:Jl}var tc={Flex:{slot:p,choices:()=>Bn},Grid:{slot:p,choices:()=>Bn},HeroGroup:{slot:p,choices:ec}};function Hf(e,t=0){let a=pe(tc,e);return a?{slot:a.slot,choices:a.choices(t)}:null}import{AUTO_RULES as ic,FOLLOW_RULES as rc,isAuto as lc,resolveViewValue as cc}from"efficient-easel/screen/lib/content/view-tiers";import{VIEW_DESKTOP_MIN as ac,VIEW_TABLET_MIN as nc}from"efficient-easel/screen/lib/content/view-tiers";var Gn="v1",Wn=800,Fn={"view-tablet":nc,"view-desktop":ac,"view-wide":Wn};function Mf(e){let t=e.startsWith("max-"),a=t?e.slice(4):e;if(a in Fn)return{px:Fn[a],max:t};let n=/^(max|min)-\[(\d+)px\]$/.exec(e);return n?{px:Number(n[2]),max:n[1]==="max"}:void 0}var Ff=`(min-width: ${Wn}px)`,oc="data-sf-line",sc="edge",Gf={[oc]:sc},be=(e,t)=>e==="edge"||e!=="section"&&t;function dc(){return Gn==="v2"?ic:rc}function Fe(e,t,a,n,o=dc()){let s=cc(e,t,a,n,o),i={},r=(l,d)=>!lc(l)||d!=null&&d!==t;return r(a,s.tablet)&&(i.tablet=s.tablet),r(n,s.phone)&&(i.phone=s.phone),i}var Vf={left:"start",center:"center",right:"end"},jf={left:"justify-start",center:"justify-center",right:"justify-end"},Xf={left:"",center:"mx-auto",right:"ml-auto"},Un={left:"",center:"text-center",right:"text-right"},hc={text:{left:"view-wide:max-view-desktop:text-left",center:"view-wide:max-view-desktop:text-center",right:"view-wide:max-view-desktop:text-right"},place:{left:"view-wide:max-view-desktop:mx-0",center:"view-wide:max-view-desktop:mx-auto",right:"view-wide:max-view-desktop:ml-auto view-wide:max-view-desktop:mr-0"},items:{left:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-start",center:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-center",right:"view-wide:max-view-desktop:justify-items-end"},justify:{left:"view-wide:max-view-desktop:justify-start",center:"view-wide:max-view-desktop:justify-center",right:"view-wide:max-view-desktop:justify-end"}},uc={text:{left:"max-view-wide:text-left",center:"max-view-wide:text-center",right:"max-view-wide:text-right"},place:{left:"max-view-wide:mx-0",center:"max-view-wide:mx-auto",right:"max-view-wide:ml-auto max-view-wide:mr-0"},items:{left:"max-view-wide:grid-cols-1 max-view-wide:justify-items-start",center:"max-view-wide:grid-cols-1 max-view-wide:justify-items-center",right:"max-view-wide:justify-items-end"},justify:{left:"max-view-wide:justify-start",center:"max-view-wide:justify-center",right:"max-view-wide:justify-end"}},mc={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},pc={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function Ge(e){return e==="left"||e==="center"||e==="right"?e:void 0}function zf(e){return e==="start"?"left":e==="end"?"right":Ge(e)}function fc(e,t,a){let n=Ge(e)??"left",o=Fe("same",n,Ge(t),Ge(a)),s={};return o.tablet&&o.tablet!==n&&(s.tablet=o.tablet),o.phone&&o.phone!==n&&(s.phone=o.phone),s}function qf(e,t,a,n,{atSectionLine:o=!1}={}){let s=fc(t,a,n),i=o?mc:hc,r=o?pc:uc;return[s.tablet?i[e][s.tablet]:"",s.phone?r[e][s.phone]:""].filter(Boolean).join(" ")}var Ht="rowImageField",wc="boxOutsideCopy",gc={all:[{field:Ht,set:!0},{not:{context:wc,is:!0}}]},Qf={any:[{field:"bgImage",set:!0},gc]},Yn="boxInCopy",bc={any:[{not:{field:Ht,set:!0}},{not:{context:Yn,is:!0}}]},Jf={all:[{not:{field:"bgImage",set:!0}},bc]},$n={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${Ht}`,set:!0}},{not:{context:Yn,is:!0}}]}]};function ye(e,t,a){return e.some(n=>(typeof n=="object"?n.value:n)===a)?a:t}var yc="small",Ec="dot",vc=[{label:"Small",value:"small"},{label:"Display",value:"display"}],Dt=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],Kn={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},Sc={small:"font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.25em] max-view-wide:text-[length:var(--size-label,12px)]",display:"font-display font-medium text-[length:var(--size-headingMedium,44px)] uppercase leading-none tracking-[0.005em] max-view-wide:text-[length:var(--size-headingMedium,28px)]"},_c={small:{dot:"",cross:"text-[0.77em]",slash:"text-[0.77em]",triangle:"",none:""},display:{dot:"text-[0.3em]",cross:"text-[0.64em]",slash:"text-[0.64em]",triangle:"text-[0.3em]",none:""}};function nw(e){return ye(vc,yc,e)}function Vn(e){return ye(Dt,Ec,e)}function ow(e){return Sc[e]}function jn(e,t){return _c[e][t]}var rw=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function Xn(e){return Dt.some(t=>t.value===e)?Vn(e):void 0}var Tc="overflow-x-clip [&>*]:shrink-0 [&>[data-sf-box-items]>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>[data-sf-box-items]>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function K(e,t){return e==="row"&&Xn(t)!==void 0}function lw(e,t){return K(e,t)?Tc:""}var xc="[&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:inline-flex [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:items-center [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:align-top [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:h-[calc(1lh/var(--sf-sep-k,1))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:ml-[var(--sf-gap-len,0px)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:after:ml-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-accent [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]:last-child>*:not(:last-child)_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-none";function cw(e,t){return K(e,t)?xc:""}function dw(e,t){if(!K(e,t))return{};let a=Xn(t),n=/^text-\[([\d.]+)em\]$/.exec(jn("small",a))?.[1],o=Kn[a];return{"--sf-sep-mark":o===""?"none":JSON.stringify(o),...n?{"--sf-sep-k":n}:{}}}var Qn={sectionPaddingTop:0,sectionPaddingBottom:0},Ee={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},ie={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},gw=[...new Set([...Object.keys(ie),...Object.keys(Un)])];function bw(e,t){let a=typeof e=="string"&&te(Ee,e)?Ee[e]:"",n=typeof t=="string"&&te(ie,t)?ie[t]:"";return[a,n].filter(Boolean).join(" ")}function Oc(e){return e===!0||e==="wrap"?"flex-wrap":""}var kc={start:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!",end:"view-wide:max-view-desktop:justify-end!"},Ac={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},Rc={start:"view-wide:max-view-desktop:items-start!",center:"view-wide:max-view-desktop:items-center!",end:"view-wide:max-view-desktop:items-end!",stretch:"view-wide:max-view-desktop:items-stretch!"},Cc={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},Lc={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function X(e,t){return typeof t=="string"&&te(e,t)?t:void 0}function Mt(e,t,a){let n=Fe("same",e,t,a),o={};return n.tablet!==void 0&&n.tablet!==e&&(o.tablet=n.tablet),n.phone!==void 0&&n.phone!==e&&(o.phone=n.phone),o}function Ft(e,t,a){return[e.tablet?t[e.tablet]:"",e.phone?a[e.phone]:""].filter(Boolean).join(" ")}function Nc(e,t,a){return Mt(X(Ee,e)??"start",X(Ee,t),X(Ee,a))}function yw(e,t,a){return Ft(Nc(e,t,a),kc,Ac)}function Ew(e,t,a){let n=X(ie,e)??"stretch";if(n==="stretch")return"";let o=Mt(n,X(ie,t),X(ie,a));return Ft(o,Rc,Cc)}function Bt(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function vw(e,t){let a=Oc(e)===""?"nowrap":"wrap",n=Bt(t);return n&&n!==a?Lc[n]:""}var Sw="Block widths",Jn=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{value:"bigLeft",weights:[2,1]},{value:"bigRight",weights:[1,2]},{value:"biggerLeft",weights:[3,1]},{value:"biggerRight",weights:[1,3]},{value:"twoThree",weights:[2,3]}],Ic="data-sf-box-items",_w=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${Ic}\\][^\\s"'\`]*`,"g");var Tw=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function xw(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in We?"custom":"content"}var eo=4,zn=10;function Pc(e,t){if(!Number.isInteger(t)||t<2||t>eo||e.length!==t-1||!e.every(o=>typeof o=="number"&&Number.isFinite(o)))return;let a=[],n=0;return e.forEach((o,s)=>{let i=100-n-zn*(t-1-s),r=Math.min(i,Math.max(zn,Math.round(o)));a.push(r),n+=r}),a}function qn(e,t,a){if(!Array.isArray(t))return;let n=Pc(t,a),o=n?[...n,100-n.reduce((i,r)=>i+r,0)]:[],s={};for(let i=0;i<eo;i+=1)s[`--${e}-${i+1}`]=o[i]??1;return s}function Ow(e,t,a){let n=qn("sf-share",e,a),o=qn("sf-share-tablet",t,a);return n||o?{...n,...o}:void 0}function Hc(e,t){let a=Array.from({length:t},()=>1),n=Jn.find(i=>i.value===e);if(!n?.weights||t<1)return a;let[o,s]=n.weights;return o>1&&(a[0]=o),s>1&&(a[t-1]=s),a}function kw(e,t){if(typeof e!="string"||!(e in We)||e==="equal")return e;let a=Hc(e,t),n=a.reduce((o,s)=>o+s,0);return a.slice(0,-1).map(o=>Math.round(o/n*100))}var V="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",We={equal:V,bigLeft:`${V} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${V} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${V} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${V} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${V} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},Dc=`${V} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function Bc(e){return Array.isArray(e)?Dc:typeof e=="string"?We[e]??"":""}var to={all:[{context:"parentType",is:"Flex"},{context:"parent.direction",is:"row"},{any:[{not:{context:"parent.align",set:!0}},{context:"parent.align",is:"stretch"}]},{not:{context:"parent.separator",set:!0}},{not:{context:"parent.loop",is:"scroll"}},{not:{context:"parent.line",is:!0}},$n,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(We)}]}]}]},ao="view-wide:max-view-desktop:flex-row!",j=`${ao} [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-0!`,no={content:`${ao} [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]!`,equal:j,bigLeft:`${j} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,bigRight:`${j} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,biggerLeft:`${j} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,biggerRight:`${j} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,twoThree:`${j} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`},Mc=`${j} [&>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>[data-sf-box-items]>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>[data-sf-box-items]>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>[data-sf-box-items]>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]! [&>[data-sf-box-items]>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]!`;function Fc(e){return Array.isArray(e)||typeof e=="string"&&e in no?e:null}function Aw(e){if(e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||oo(e.columns)!==""||so(e.columnsTablet)!=="")return"";let t=Fc(e.shareTablet);return t===null?"":typeof t=="string"?no[t]:Mc}var Gc="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function Rw(e){return Bc(e)===""?Gc:""}var Cw="Columns",Lw=1,Nw=3,Gt={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},Iw=Jn.filter(e=>e.value==="content"||e.value==="equal"),Pw="equal",Hw=1,Dw=6,se="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",Wc={1:`${se} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function oo(e){return typeof e=="number"?Wc[e]??"":""}var Uc={1:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]!",2:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function so(e){return typeof e=="number"?Uc[e]??"":""}function Bw(e){return e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":so(e.columnsTablet)}function Mw(e){return e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":oo(e.columns)}var io={2:"view-wide:grid view-wide:grid-cols-2",3:"view-wide:grid view-wide:grid-cols-3",4:"view-wide:grid view-wide:grid-cols-4",5:"view-wide:grid view-wide:grid-cols-5",6:"view-wide:grid view-wide:grid-cols-6"},ro={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},Fw=Object.keys(io).map(Number),Gw=Object.keys(ro).map(Number);function Ww(e,t,a=!1){let n=typeof e=="number"?io[e]??"":"",o=ro[Number(t)]??"";return!n&&!o?"":[n,o,a?"gap-y-0!":""].filter(Boolean).join(" ")}var Yc="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]",$c={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},Kc="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]";function Vc(e,t){return(Bt(e)??Bt(t)??"wrap")==="nowrap"}function Uw(e,t,a,n){let o=Gt[Number(e)];if(!o)return"max-view-wide:flex-col";let s=Vc(a,n);return lo(e,t)?s?Kc:Yc:s?$c[Number(e)]:o}function Yw(e,t){return Number(e)in Gt&&!lo(e,t)}function lo(e,t){return Number(e)in Gt&&t==="content"}var $w="Block spacing",Kw=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],jc="sf-box-gap-only";function Vw(e){return e==="gap"?jc:""}var Zn={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},Xc={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function jw(e,t,a){let n=s=>X(Zn,s),o=Mt(e==="gap"?"gap":"each",n(t),n(a));return Ft(o,Zn,Xc)}var co={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Qw,tag:Jw,...zc}=co.defaultProps,b=zc,x={...b,tone:"dim"},qc={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},y={...qc,direction:"column",...Qn},D=(e,t=e,a=e,n=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:a,sectionPaddingRightPhone:n,sectionPaddingBottomPhone:a,sectionPaddingLeftPhone:n}),Zc=e=>({fillColor:e}),ho=(e,t,a={})=>({...y,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?Zc(t):{},...a}),v=(e,t,a,n)=>({sizeToken:{step:e,px:t,...n?{stepPhone:n}:{},...a?{pxPhone:a}:{}}}),eg=e=>({textStyle:"body-1",...v("body",e),lineHeight:1.625}),uo={case:"upper"},Wt={textStyle:"body-5",...uo},Ut=(e,t)=>({...v("label",e,t),letterSpacing:.2,...uo}),tg=(e,t)=>({...Wt,...Ut(e,t)});function S(e,t,a=""){return e.map((n,o)=>{let s=a?`${a}.${o}`:String(o),i={...n.props??{}};for(let[r,l]of Object.entries(n.slots??{}))i[r]=S(l,t,s);return{type:n.type,props:{...i,id:t(n.type,s)}}})}import{isNodeList as kd}from"efficient-easel/data";function go(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return mo(t);let a=g(t.id)??"Cards",n=fo(a);if(t.cardStyle==="label-only"){let s=Array.isArray(t.items)&&t.items.some(i=>g(i?.href)!==void 0);return mo({...t,template:wo(n,s)})}let o=T(t)?Ue:re;return{...t,template:po(n,o)}}var Qc=e=>{let[t,a]=e?[re,Ue]:[Ue,re];return new Map([[t.title,a.title],[t.body,a.body]])};function bo(e,t){let a=null;return e.forEach((n,o)=>{let s=n?.props;if(!s)return;let i=s,r=s[E];n.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[E]:t.get(r)});let l=s[p];if(Array.isArray(l)){let d=bo(l,t);d!==l&&(i={...i,[p]:d})}i!==s&&(a??=[...e],a[o]={...n,props:i})}),a??e}function mo(e,t){if(!Array.isArray(e.template))return e;let a=Qc(!!T(e)),n=t?new Map([...a].filter(([s,i])=>t(i)&&!t(s))):a;if(!n.size)return e;let o=bo(e.template,n);return o===e.template?e:{...e,template:o}}var Jc="label";function yo(e){if(e.template!==void 0)return e;let t=g(e.id)??"CardList",a={type:w,props:{...y,name:"Item"},slots:{[p]:[f(Jc,{...b,tag:"p"},ve)]}};return{...e,template:S([a],(n,o)=>o==="0"?`${t}~item`:`${t}~item.${o.slice(2)}`)}}var Yt="ArticleBody",ed={textStyle:"heading-3",...v("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},td={...ve,align:"center"},Eo=640,ad=()=>[f("heading",{...b,tag:"h2",align:"center",maxWidth:Eo},ed),f("paragraph",{...x,tag:"p",align:"center",maxWidth:Eo},td)],nd=e=>S(ad(),e);function od(e){return nd((t,a)=>`${e}~${a==="0"?"heading":"paragraph"}`)}function vo(e){if(e.template!==void 0)return e;let t=typeof e.id=="string"&&e.id.trim()?e.id:Yt;return{...e,template:od(t)}}var sd="label",id=()=>({type:"LogoBlock",props:{[E]:sd}}),So=e=>{let t=g(e.id)??"Logos";return{...e,template:S([id()],()=>`${t}~logo`)}};function _o(e){return!T(e)||e.template!==void 0?e:So(e)}function vg(e){if(!T(e))return e;let t=e.template;return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:So(e)}import{addShowWhenFacts as rd}from"efficient-shell/format";import{showWhenOf as xg,shownForOption as Og,truthy as kg,withRowRules as Ag,withRowsShownWhen as To,withShowWhen as Rg}from"efficient-shell/format";var Cg=rd;function Lg(e,t,a){return e.slice(0,-1).reduceRight((n,o)=>({any:[{all:[t(o),a(o)]},{all:[{not:t(o)},n]}]}),a(e[e.length-1]))}var ld="inline",cd=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var dd={ProductGrid:{num:"num",title:"title",description:"description",headRows:["num","title","titleSize","description","linkText","linkHref"],renderer:"ProductGridSection",padKey:"padTop",linkProp:"link"},TyreSizes:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreSizes"},FitmentFinder:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentFinder"},TyreFitment:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreFitment"},BundleOffer:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},CompatibleTyres:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},RelatedProducts:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},SpecTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"SpecTable"},FAQ:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"FAQ"},GalleryB:{num:"num",title:"title",headRows:["num","title","linkText","linkHref"],renderer:"GalleryGrid"},FitmentTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentTable"},Events:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"Events"},ProcessSteps:{num:"num",title:"title",description:"description",headRows:["num","title","description"],headStyle:"editorial",renderer:"ProcessSteps",padKey:"padTop"},LongRead:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"LongRead"},Series:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Series"},Subscribe:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Subscribe"},TimelineTrack:{num:"eyebrow",title:"title",description:"intro",headRows:["eyebrow","title","intro"],headStyle:"editorial",renderer:"TimelineTrack",padKey:"padTop"},StatsParagraph:{num:"eyebrow",title:"title",description:"desc",headRows:["eyebrow","title","desc"],headStyle:"editorial",renderer:"StatsParagraph"},Footprint:{num:"sectionNumber",title:"heading",description:"tagline",headRows:["sectionNumber","heading","tagline"],headStyle:"editorial",renderer:"Footprint",padKey:"padTop"},Collections:{num:"eyebrow",title:"heading",headRows:["eyebrow","heading"],renderer:"Collections"},Cards:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Cards"},Testimonials:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Testimonials"},Reviews:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Reviews"},Prose:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"essay",renderer:"Prose"},ReviewForm:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"simple",renderer:"ReviewForm"},DeliveryOptions:{num:"eyebrow",title:"title",description:"body",headRows:["eyebrow","title","body"],headStyle:"natural",headRowGap:"gap-3",headDescriptionSize:"text-[15px]",renderer:"DeliveryOptions"}},Dg="SectionHeader";function Bg(e){return te(dd,e)}function xo(e){return ye(cd,ld,e)}var hd=new Set(["Flex"]);function Mg(e){return!!e?.type&&hd.has(e.type)}var Oo={not:{field:"headPlacement",is:"own-box"}},Fg={not:Oo};function Gg(e,t,a){return To(e,a,Oo)}var Ug="data-sf-spec-region";function Yg(e){return e.writable===!0&&e.sized===!0}function $g(e,t,a){if(!e)return;let n=a[e];if(n)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${n}, ${t.builtIn})`}}function Kg(e){let t=/var\(--size-[A-Za-z]+, ?([0-9.]+px)\)/.exec(e);if(!t)throw new Error(`builtInOf: no --size-* fallback in ${e}`);return t[1]}function ko(e){return`@${e}`}function Vg(e,t){if(!t.startsWith("@"))return null;let a=t.slice(1);return a in e?a:null}function jg(e,t){return t&&t in e?t:null}var $t={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0,sized:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0,sized:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0,sized:!0}},zg=$t;var ud="question",md="answer",pd={textStyle:"body-1",fontRole:"heading",...v("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},fd={textStyle:"body-1",...v("body",15),lineHeight:1.7};function ob(){return Object.keys($t).map(ko)}var wd=()=>({type:w,props:{...y,gap:0,name:"Question"},slots:{rowTitle:[f(ud,{...b,tag:"p",widthFit:"fill"},pd)],[p]:[f(md,{...x,tag:"p",widthFit:"fill",maxWidth:760},fd)]}});function gd(e){return xo(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>g(e[t])!==void 0)}function Ao(e){if(e.template!==void 0||gd(e))return e;let t=g(e.id)??"FAQ",a=0;return{...e,template:S([wd()],n=>n===w?`${t}~row`:`${t}~row.${a++}`)}}var bd=["below","left","right"];function yd(e){return bd.includes(e)?e:"below"}function Kt(e){return yd(e)!=="below"}function Vt(e){return Array.isArray(e)?e.map(Vt):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([t,a])=>t!=="id"&&a!==void 0&&!(Array.isArray(a)&&a.length===0)).sort(([t],[a])=>t<a?-1:t>a?1:0).map(([t,a])=>[t,Vt(a)]))}var F=e=>JSON.stringify(Vt(e));var Lo=e=>T(e)===It,Ye=Ut(11),Ed={textStyle:"body-1",...v("body",18),weight:500,lineHeight:1.2},wb=()=>({type:w,props:{...y,gap:8,gapPhone:8,...D(20,24,20,20),name:"Office"},slots:{[p]:[f("badge",{...b,tag:"p",widthFit:"fill"},Ye,!0),f("role",{...b,tag:"p",widthFit:"fill"},Ye,!0),f("city",{...b,tag:"p",widthFit:"fill"},Ed),f("country",{...x,tag:"p",widthFit:"fill"},Ye),f("address",{...x,tag:"p",widthFit:"fill"},Ye),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[E]:"linkLabel",[C]:"href"}}]}}),No={textStyle:"body-1",fontRole:"heading",...v("body",16),weight:500,lineHeight:1.25},Xt={textStyle:"body-1",...v("body",14),lineHeight:1.5},vd=()=>({type:w,props:{...y,gap:4,gapPhone:4,...D(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[p]:[f("city",{...b,tag:"p",widthFit:"fill"},No),f("address",{...x,tag:"p",widthFit:"fill"},Xt),f("phone",{...x,tag:"p",widthFit:"fill"},Xt)]}});function Io(e){let t=g(e.id)??"Footprint",a=0;return S([vd()],n=>n===w?`${t}~office`:`${t}~office.${a++}`)}function Po(e){return Array.isArray(e.template)&&e.template.length>0&&F(e.template)===F(Io(e))}var Ho=e=>e===void 0||Array.isArray(e)&&e.length===0;function Ro(e){return Kt(e.listPosition)?!Ho(e.template)||Lo(e)?e:{...e,template:Io(e)}:Po(e)?{...e,template:[]}:e}var Sd=No,_d=Xt,Td={textFit:"line"},zt=(e,t,a="",n={},o={})=>{let s=f(e,{...t?x:b,tag:"p",...n},{..._d,...o});return a?{...s,props:{...s.props,[C]:a}}:s},jt=(e,t,a,n)=>({type:w,props:{...y,gap:0,gapPhone:0,[Zt]:[e],name:n},slots:{[p]:[zt(e,t,a,Td,{align:"right"})]}}),xd=e=>({type:w,props:{...y,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?D(20,24):{...D(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[p]:[{type:w,props:{...y,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[p]:[{type:w,props:{...y,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[p]:[f("name",{...b,tag:"p",widthFit:"fill"},Sd),zt("address",!0)]}},zt("place",!0,"",{widthFit:"fill"})]}},{type:w,props:{...y,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[p]:[jt("distance",!0,"","Dealer distance"),jt("phone",!1,"phoneHref","Dealer phone"),jt("website",!1,"websiteHref","Dealer website")]}}]}}),Od=e=>{let t=xd(e),a={type:w,props:{...y,...D(0,12),name:"Dealer"},slots:{[p]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:a};function qt(e,t){let a=g(e.id)??"Footprint",n=0;return S([Od(t)],(o,s)=>s==="0"?`${a}~dealer`:`${a}~dealer.${n++}`)}function Co(e){if(!Array.isArray(e.template)||e.template.length===0)return!1;let t=F(e.template);return t===F(qt(e,!0))||t===F(qt(e,!1))}function Do(e){if(Lo(e)){let a=qt(e,!Kt(e.listPosition));return!(Ho(e.template)||Po(e)||Co(e))||F(e.template??[])===F(a)?e:{...e,template:a}}if(!Co(e))return Ro(e);let t={...e,template:[]};return Ro(t)}var Bo="template",Ad="Card template",$e="CardList",Mo=["Text","ImageBlock","ButtonBlock","Flex"],E="rowField",C="rowLinkField";function Lb(){return{type:"slot",allow:[...Mo]}}var Rd=Mo.filter(e=>e!=="ButtonBlock"),Fo="items",Go="itemFields";function Nb(){return{type:"slot",allow:[...Rd]}}var Cd=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Ao(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region \xB7 country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>Do(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>go("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:$e,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>_o(e)},{block:$e,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:Fo,seed:e=>yo(e)},{block:Yt,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>vo(e)}];function _(){return oe("efficient.card-templates",()=>new Map(Cd.map(e=>[e.block,e])))}function Ib(e){for(let t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");let a=[];for(let i of t.blocks??[]){if(typeof i?.type!="string"||!i.type)throw new Error(`The card template of ${t.block} names an empty block.`);if(i.type===Ke)throw new Error(`The card template of ${t.block} names "${Ke}" in its blocks. Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`);a.some(r=>r.type===i.type)||a.push({type:i.type,label:i.label||i.type})}let n=[];for(let i of t.slots??[]){if(typeof i?.slot!="string"||!i.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);let r=g(i.label),l=Array.isArray(i.fields)?{fields:i.fields.map(d=>({...d}))}:null;n.some(d=>d.slot===i.slot)||n.push({slot:i.slot,...r?{label:r}:null,...l})}let o=n.some(i=>i.fields);if(o&&(t.fields.some(i=>i.everySource)||Hn(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);o?we().add(t.block):we().delete(t.block);let s=g(t.typedRows);_().set(t.block,{block:t.block,...n.length?{slots:n}:{},fields:t.fields.map(i=>({...i})),blocks:a,typedRows:s,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function Ld(e,t){let a=e?_().get(e)?.seed:void 0;return a?a(t):t}function Pb(e,t){let a=Id(e),n=(a.length?a:[Bo]).filter(r=>t[r]===void 0||Array.isArray(t[r])&&t[r].length===0);if(!n.length)return t;let o={...t};for(let r of n)delete o[r];let s=e?_().get(e)?.seedOnInsert:void 0,i=s?s(o):Ld(e,o);return i===o?t:i}function Hb(){for(let e of _().values())if(e.blocks?.length)return!0;return!1}function Db(e){return _().get(e)?.blocks??[]}function Bb(e){for(let t of _().values())if(t.blocks?.some(a=>a.type===e))return!0;return!1}function Mb(e){return typeof e=="string"&&_().get(e)?.typedRows||""}function Fb(e){return typeof e=="string"&&_().get(e)?.linesBetween===!0}function Gb(e){return typeof e=="string"&&_().has(e)}var Nd=[{slot:Bo}];function Ve(e){if(typeof e!="string")return[];let t=_().get(e);return t?t.slots??Nd:[]}function Id(e){return Ve(e).map(t=>t.slot)}function Pd(e,t){return Ve(e).some(a=>a.slot===t)}function Wb(e,t){let a=Ve(e).find(n=>n.slot===t);return a?a.label??Ad:null}function Qt(e,t){return t?Ve(e).find(a=>a.slot===t)?.fields:void 0}function Hd(e,t){let a=_().get(e)?.fields??[];return t?a.filter(n=>(n.kind??"text")===t):a}function Dd(e,t){if(typeof e!="string")return"";let a=Qt(e,t);return(a?a.filter(n=>n.kind==="list"):Hd(e,"list"))[0]?.key??""}function Bd(e,t,a){return Jt(e)||Dd(t,a)}function Wo(e,t,a){let n=typeof e?.type=="string"?e.type:"";if(!n)return[];let o=Qt(n,a);if(o)return t?o.filter(l=>(l.kind??"text")===t):o;let s=_().get(n)?.fields??[],i=Me(T(e?.props))?.fields,r=i?.length?[...i.map(l=>({...l})),...s.filter(l=>l.everySource&&!i.some(d=>d.key===l.key))]:s;return t?r.filter(l=>(l.kind??"text")===t):r}function Md(e,t,a,n){if(!e)return null;let o=Qt(e,n);return o?o.find(s=>s.key===t)??null:a?Wo(a).find(s=>s.key===t)??null:_().get(e)?.fields.find(s=>s.key===t)??null}function Uo(e,t){return!e||!t?null:e.fields?.find(a=>a.key===t)??Md(e.ownerType,t,e.owner,e.slot)}function Ub(e,t){return Uo(e,t)?.plain===!0}function Jt(e,t=E){let a=e?.[t];return typeof a=="string"?a.trim():""}function Yb(e,t){return e.key||String(t+1)}function $b(e){let t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[a,n]of Object.entries(e))typeof n=="string"&&(t[a]=n);return t}var Zt="hideWhenRowEmpty";function Kb(e,t){let a=e[Zt];return!t||!Array.isArray(a)||!a.length?!1:a.every(n=>typeof n!="string"||!t[n]?.trim())}var Yo={Text:{text:E,href:C},ImageBlock:{src:E,href:C},ButtonBlock:{label:E,href:C},LogoBlock:{alt:E,href:C},Breadcrumb:{currentCrumb:E}};var Fd=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Vb(e,t,a){return Gd(e,t,a)&&!Fd.has(`${e}.${a}`)}function Gd(e,t,a){return Wd(e,t,a)!==""}function Wd(e,t,a){let n=Yo[e]?.[a];return n?Jt(t,n):""}function $o(e,t){return!t||!e?null:e[t]??""}function Ud(e,t){return $o(e,t)?.trim()||void 0}function jb(e,t,a,n,o,s){if(!a)return t;let i=null;for(let[r,l]of Object.entries(Yo[e]??{})){let d=Jt(t,l),m=$o(a,d);if(m!==null){if(i??={...t},l===C){i[r]=Ud(a,d);continue}i[r]=Uo({ownerType:n,fields:o,slot:s},d)?.mark==="accentItalic"?Tn(m):m}}return i??t}function je(e,t){let a=e?.data?.content;if(!Array.isArray(a)||typeof t!="string")return;let n=(s,i)=>{for(let r of s){if(r?.props?.id===t)return i;for(let[l,d]of Object.entries(r?.props??{})){if(!kd(d))continue;let m=Pd(r.type,l)?{owner:r,slot:l,direct:!0,nested:i!==null,underBox:!1}:i&&{owner:i.owner,slot:i.slot,direct:!1,nested:i.nested,underBox:i.underBox||r.type===w},h=n(d,m);if(h!==void 0)return h}}},o=n(a,null);return o===void 0?null:o}function Yd(e,t){let a=je(e,t);return a&&a.owner}function $d(e,t){let a=je(e,t);return a&&a.slot}function Xb(e,t){let a=je(e,t);return a&&(a.direct?a.owner:null)}function zb(e,t){let a=je(e,t);if(a!==void 0)return a===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:a.nested,underBox:a.underBox}}function qb(e,t,a){if(t?.type!==$e)return[];let n=Yd(e,t.props?.id);if(!n){let r=Me(T(t.props))?.fields,l=r?.length?r.map(h=>({...h})):Kd(t.props),d=(_().get($e)?.fields??[]).filter(h=>h.everySource&&!l.some(I=>I.key===h.key)),m=[...l,...d];return a?m.filter(h=>(h.kind??"text")===a):m}let o=$d(e,t.props?.id)??void 0,s=Bd(t.props,n.type,o),i=s&&Wo(n,"list",o).find(r=>r.key===s)?.fields||[];return a?i.filter(r=>(r.kind??"text")===a):i}function Zb(e,t){return{[E]:"",[Fo]:e.map(a=>({...a})),[Go]:t.map(a=>({...a}))}}function Kd(e,t){let a=e?.[Go];if(!Array.isArray(a))return[];let n=a.flatMap(o=>{if(!o||typeof o!="object")return[];let{key:s,label:i,kind:r,multiline:l,alt:d,next:m}=o;if(typeof s!="string"||!s||typeof i!="string")return[];let h=r==="image"||r==="link"||r==="colour"?r:void 0;return[{key:s,label:i,...h?{kind:h}:{},...l===!0?{multiline:!0}:{},...typeof d=="string"&&d?{alt:d}:{},...typeof m=="string"&&m?{next:m}:{}}]});return t?n.filter(o=>(o.kind??"text")===t):n}var Ke="HostPart";var le={min:0,max:360,step:1},Ko="angle";function ey(e){let t=H(e);if(t===void 0)return null;let a=Math.min(le.max,Math.max(le.min,t));return a===le.min||a===le.max?null:{rotate:`${a}deg`}}import{MEDIA_ZONES as Vd,MEDIA_ZONE_LABELS as jd}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as Xd,hoverKindsOf as ze,motionSeconds as Xe}from"efficient-shell/format";var k="hover",iy="_gHover",zd={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},z="highlight",qd="Highlight",ry=["none",z],ly={none:zd.none,[z]:qd};function Zd(e){return e[k]===z?z:"none"}var cy="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]",dy="hover:[--fg:var(--sf-hl-ink)]! hover:[--fg-dim:inherit]! hover:[--site-line:inherit]! hover:[color:inherit]! active:[--fg:var(--sf-hl-ink)]! active:[--fg-dim:inherit]! active:[--site-line:inherit]! active:[color:inherit]!";function hy(e,t){return Zd(e)!==z?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var Qd=ze(["none","lift"]);function uy(e){let t=e[k];return Qd.includes(t)?t:"none"}var Xo=ze(["none","nextImage","rotate"]),O={kind:k,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},na="spinOnHover",Vo=le,zo={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},my=Object.keys(zo);function Jd(e){return zo[e]??"none"}var eh=Xd.rotateFallbackDeg,th=e=>e==="rendering"?"renderings":e,ah=e=>e==="renderings"?"rendering":e,qo=Object.freeze(Vd.filter(e=>e!=="videos").map(th)),py=Object.freeze(Object.fromEntries(qo.map(e=>[e,jd[ah(e)]]))),nh=["finish","first"],fy={finish:"Same finish",first:"First group"},oh=["card","picture"],wy={card:"Whole card",picture:"Picture"},ea={kind:"photos",group:"finish",cover:"card"},ta=(e,t,a)=>e.includes(t)?t:a;function Zo(e){return{kind:ta(qo,e[O.mediaKind],ea.kind),group:ta(nh,e[O.mediaGroup],ea.group),cover:ta(oh,e[O.cover],ea.cover)}}function gy(){return{field:O.kind,is:"nextImage"}}function sh(e,t){let a=e[O.kind];if(Xo.includes(a))return a;let n=e[na];return typeof n=="boolean"?n?"rotate":"none":t}function ih(e){let t=H(e);return t===void 0?eh:Math.min(Vo.max,Math.max(Vo.min,t))}function by(e,t){let a=Jd(t),n=sh(e,a);return{kind:n,angle:n==="rotate"?ih(e[O.angle]):null,duration:Xe("hover","duration",n==="rotate"?e[O.duration]:void 0),delay:Xe("hover","delay",n==="rotate"?e[O.delay]:void 0),...n==="nextImage"?{media:Zo(e)}:{}}}function yy(e){let t={field:O.kind,in:[...Xo]};return{any:[{field:O.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:na,is:!1}}:{field:na,is:!0}]}]}}var Qo=ze(["none","mono"]),rh=ze(["none","nextImage","mono"]),Jo={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Ey=Object.keys(Jo);function lh(e){return Jo[e]??"none"}var es={zoom:"hoverZoom",darken:"hoverDarken"},aa={min:100,max:150,step:1,unit:"%"};function ch(e){let t=H(e[es.zoom]);if(t===void 0)return null;let a=Math.min(aa.max,Math.max(aa.min,t));return a===aa.min?null:String(a/100)}function dh(e){let t=H(e[es.darken]);return t!==void 0&&t>0?t:null}var vy="hoverShow",Sy="cardHover",_y="always",hh=["ImageBlock","Flex"];function uh(e,t,a=Qo){let n=e[k];return a.includes(n)?n:t}function Ty(e,t=""){let a=hh.includes(t)?rh:Qo,n=uh(e,lh(t),a),o=n==="mono";return{kind:n,duration:Xe("hover","duration",o?e[O.duration]:void 0),delay:Xe("hover","delay",o?e[O.delay]:void 0),...n==="nextImage"?{media:Zo(e),...t==="Flex"?jo(e):{}}:jo(e)}}function jo(e){let t=ch(e),a=dh(e);return{...t?{zoom:t}:{},...a?{darken:a}:{}}}function xy(){return{not:{field:k,is:"nextImage"}}}function Oy(e){return e==="none"?{field:k,in:["mono","nextImage"]}:{not:{field:k,is:"none"}}}function ky(e){return e==="none"?{field:k,is:"mono"}:{not:{field:k,in:["none","nextImage"]}}}var Cy=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),ts=()=>({_partStyles:{text:{...Wt,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var mh={...y,gap:12,gapPhone:12,...D(32,32,28,28)},ph={textStyle:"heading-3",...v("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},ve={textStyle:"body-1",...v("body",15),lineHeight:1.6},f=(e,t,a,n=!1)=>({type:"Text",props:{...t,text:"",[E]:e,_partStyles:{text:{...n?ts()._partStyles?.text??{}:{},...a}}}}),re={title:"title",body:"body"},Ue={title:"name",body:"note"},fh=(e=re)=>({type:w,props:{...mh,name:"Card"},slots:{[p]:[f(e.title,{...b,tag:"p",widthFit:"fill"},ph),f(e.body,{...x,tag:"p",widthFit:"fill"},ve)]}}),po=(e,t)=>S([fh(t)],e),as={label:re.title,href:"href"},wh={textStyle:"body-1",fontRole:"heading",color:"text",...v("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},gh=ho(9,"main",{[Ko]:45}),bh=(e=!1)=>({type:w,props:{...y,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...D(32,28),[C]:as.href,...e?{[k]:z}:{}},slots:{[p]:[{type:w,props:{...gh,name:"Mark"}},f(as.label,{...b,tag:"p",widthFit:"fill"},wh)]}}),fo=e=>(t,a)=>a==="0"?`${e}~card`:`${e}~card.${a.slice(2)}`,wo=(e,t=!1)=>S([bh(t)],e);import{parseHexColor as yh}from"efficient-shell/format";var oa=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],Eh=oa.filter(e=>e.ink);function ns(e){let t={color:e.fg};for(let{role:a,token:n}of Eh)t[n]=e[a];return t}var vh={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},Sh=Object.freeze(ns(vh)),_h={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},Th=Object.freeze(ns(_h));function Wy(e,t){let a=e?yh(e):null;return a?Ja(a,t)?Sh:Th:null}var os=-1,xh="sf-section-accent",$y="Color",ss=new Set(["CategoryBar","DocTabs"]),Ky=new Set(["Flex"]),Oh=0;function kh(e){return e===os?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Oh}function Vy(e){return e??os}function Ah(e){let t=`--theme-preset-${e}`,a={"--sf-sec-accent":`var(${t}-accent)`,"--sf-sec-accent-2":`var(${t}-accent-2)`,"--sf-sec-accent-ink":`var(${t}-accent-ink)`};for(let{role:n}of oa)a[`--sf-sec-${n}`]=`var(${t}-${n}, var(--theme-${n}))`;return a}function jy(e){let t=kh(e.sectionAccent);return t===null?null:{className:xh,style:Ah(t)}}import{FOLLOW_RULES as Ch,resolveViewValue as Lh,viewKeyAt as Nh}from"efficient-easel/screen/lib/content/view-tiers";var sa={desktop:"desktop",tablet:"tablet",phone:"mobile"},Rh=Object.keys(sa);function is(e){return sa[e??"desktop"]}function zy(e){return Rh.find(t=>sa[t]===e)??"desktop"}var la=["desktop","tablet","phone"],ra=(e,t)=>Nh(e,is(t)),rs=e=>e.flatMap(t=>la.map(a=>ra(t,a))),ia=e=>e===null||e===""?void 0:e,Ih=(e,t,a)=>Lh("same",ia(e),ia(t),ia(a),Ch);function ls(e,t,a,n=e[t]){return Ih(n,e[ra(t,"tablet")],e[ra(t,"phone")])[a]}import{createContext as Fs,createElement as Te,useContext as xe}from"react";import{Fragment as vu,jsx as L}from"react/jsx-runtime";import{createContext as ya,useContext as N}from"react";import{jsx as de,Fragment as Es}from"react/jsx-runtime";import{createContext as zh,useContext as vs,useEffect as qh,useRef as Zh,useState as Qh}from"react";import{SCROLL_ZOOM_VAR as bs}from"efficient-shell/format";import{readEntrance as Hh}from"efficient-shell/format";var Se={kind:"entrance",from:"entranceFrom",duration:"entranceDuration",delay:"entranceDelay"},ca="sectionAnimation",Ph=rs(Object.values(Se));var cs="sf-entrance",Dh=e=>e!=null&&e!=="";function Bh(e,t){let a=e[Se[t]];return t==="kind"&&!Dh(a)?e[ca]:a}var qe=(e,t,a)=>ls(e,Se[t],a,Bh(e,t));function da(e,t){return Hh(qe(e,"kind",t),qe(e,"from",t),qe(e,"duration",t),qe(e,"delay",t))}var Mh=e=>({desktop:da(e,"desktop"),tablet:da(e,"tablet"),phone:da(e,"phone")});function lE(e){let t=Mh(e);return la.every(a=>t[a].kind==="none")?null:t}var Fh={...Object.fromEntries([...ss].map(e=>[e,"a root position: sticky bar; an outer box becomes its sticky containing block and the pin collapses (the same fact every wrapper pass excludes it for, lib/content/section-surface)"])),HeroSlide:"a slide is a direct child of the Hero's transform track ([&>*]:basis-full); a wrapper would take its width, and the Hero already moves one slide in at a time",HeroGroup:"a slide box is placed by grid-item properties on its own root (--sf-hg-row, justify-self); a wrapper becomes the grid item and the box loses its anchor (lib/document/blocks/general/HeroGroup/meta)",[Ke]:"a host part draws its data block's answer with no element of its own (lib/content/card-template HOST_PART_TYPE); a wrapper would be one, and the host's content is not the merchant's to animate"},cE=new Set(Object.keys(Fh));function ds(e,t,a,n){return t<=0?1/0:n?2*(e-4)/(t+a):2*(e-a/2-4)/t}function hs(e,t,a){let n=r=>r.width>0&&r.height>0;if(!n(e)||t.some(r=>r.mark&&!n(r.rect)))return 1;let o=e.left+e.width/2,s=e.top+e.height/2,i=a;for(let{rect:r,mark:l}of t){let d=Math.abs(r.left+r.width/2-o),m=Math.abs(r.top+r.height/2-s),h=Math.max(ds(d,e.width,r.width,l),ds(m,e.height,r.height,l));i=Math.min(i,Math.max(1,h))}return i}var us=["cover","contain"],Gh={cover:"Cover",contain:"Contain"},uE="Image fit";function ha(e,t){return us.includes(e)?e:t}function mE(){return us.map(e=>({label:Gh[e],value:e}))}function pE(e){return e==="contain"?"object-contain":"object-cover"}function ua(e,t){return e!=="auto"&&t==="cover"}function Ze(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}function bE(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"screen":return"aspect-[16/10]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";default:return"aspect-square"}}var Qe=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"screen",image:"16/10",ratio:[16,10],label:"Screen 16:10"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"}];function yE(e){return Qe.filter(t=>e.includes(t.shape))}function EE(e){return e==="below"}var vE=`linear-gradient(180deg, transparent 40%, ${Ze(.85)} 100%)`,SE=`linear-gradient(0deg, transparent 40%, ${Ze(.85)} 100%)`,_E=Ze(.45);var Wh=Qe.map(e=>e.image),B="fill",AE={label:"Fill row",value:B,showWhen:to},ma="4/3",ms={frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},fs={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:ms,tablet:ms,desktop:{frame:"view-desktop:h-full view-desktop:min-h-[240px] max-view-desktop:aspect-[4/3]",img:"view-desktop:absolute view-desktop:inset-0",figure:"view-desktop:h-full"}};function RE(e,t,a){return t&&!ce(a)?"all":e??"wide"}function ps(e){return fs[e]}var CE=fs.all;function ws(e){return e?`${e.img} h-full w-full`:"relative h-full w-full"}var Uh={auto:"","3/4":"aspect-[3/4]","2/1":"aspect-[2/1]","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","16/10":"aspect-[16/10]","1/1":"aspect-square","9/16":"aspect-[9/16]","2/3":"aspect-[2/3]","4/5":"aspect-[4/5]"},Yh={auto:"","3/4":"view-wide:aspect-[3/4]","2/1":"view-wide:aspect-[2/1]","21/9":"view-wide:aspect-[21/9]","16/9":"view-wide:aspect-[16/9]","4/3":"view-wide:aspect-[4/3]","16/10":"view-wide:aspect-[16/10]","1/1":"view-wide:aspect-square","9/16":"view-wide:aspect-[9/16]","2/3":"view-wide:aspect-[2/3]","4/5":"view-wide:aspect-[4/5]"},$h={auto:"","3/4":"max-view-wide:aspect-[3/4]","2/1":"max-view-wide:aspect-[2/1]","21/9":"max-view-wide:aspect-[21/9]","16/9":"max-view-wide:aspect-[16/9]","4/3":"max-view-wide:aspect-[4/3]","16/10":"max-view-wide:aspect-[16/10]","1/1":"max-view-wide:aspect-square","9/16":"max-view-wide:aspect-[9/16]","2/3":"max-view-wide:aspect-[2/3]","4/5":"max-view-wide:aspect-[4/5]"},Kh={auto:"max-view-wide:aspect-auto!","3/4":"max-view-wide:aspect-[3/4]!","2/1":"max-view-wide:aspect-[2/1]!","21/9":"max-view-wide:aspect-[21/9]!","16/9":"max-view-wide:aspect-[16/9]!","4/3":"","16/10":"max-view-wide:aspect-[16/10]!","1/1":"max-view-wide:aspect-square!","9/16":"max-view-wide:aspect-[9/16]!","2/3":"max-view-wide:aspect-[2/3]!","4/5":"max-view-wide:aspect-[4/5]!"},pa=e=>Wh.includes(e),ce=pa;function LE(e){let t=pa(e)?Qe.find(a=>a.image===e)?.ratio:null;return t?`${t[0]} / ${t[1]}`:null}function NE(e,t,a){return a==="contain"?!0:[e,t??e].every(n=>n!==B&&(!pa(n)||n==="auto"))}function IE(e,t){return e===B&&!t?ma:e}function PE(e){return e===B?ma:ce(e)?e:void 0}function gs(e,t){return ce(t)?t===e?null:t:e===B?ma:null}function Vh(e,t){let a=gs(e,t);return ua(e,"cover")||a!==null&&ua(a,"cover")}function jh(e,t,a){return ha(e,"cover")==="cover"&&Vh(t,a)}function HE(e,t,a,n){return e==="desktop"?jh(t,a,n):ha(t,"cover")!=="cover"?!1:Xh(e==="tablet"?a:gs(a,n)??a)}var Xh=e=>e===B||ce(e)&&e!=="auto";function DE(e,t,a="wide"){return e===B&&a==="all"?ps("all").frame:t===null?ce(e)?Uh[e]:"":[e===B?ps(a).frame:ce(e)?Yh[e]:"",e===B&&a==="desktop"?Kh[t]:$h[t]].filter(Boolean).join(" ")}var et=zh(null);function $E({attrs:e,style:t,children:a}){return de(et.Provider,{value:{attrs:e,style:t},children:a})}function Ss({children:e}){return de(et.Provider,{value:null,children:e})}function KE({fill:e=null,children:t}){let a=vs(et);return a?de("div",{className:ws(e),...a.attrs,style:a.style,children:t}):de(Es,{children:t})}var Je="data-sf-mark";function ys(e){let t=e.getBoundingClientRect(),a=e.firstElementChild,n=a&&typeof a.offsetWidth=="number"?a:e,o=Math.max(n.offsetWidth,e.offsetWidth),s=Math.max(n.offsetHeight,e.offsetHeight);return{left:t.left+t.width/2-o/2,top:t.top+t.height/2-s/2,width:o,height:s}}function Jh(e){return e.closest(`[${Je}]`)||e.closest("style, script")?!1:[...e.childNodes].some(t=>t.nodeType===3&&(t.textContent??"").trim()!=="")}var _s=e=>e.closest(`.${cs}`)??e.ownerDocument.body;function eu(e,t){let a=_s(e),n=[];for(let o of a.querySelectorAll(`[${Je}]`))o!==e&&n.push({rect:ys(o),mark:!0});for(let o of a.querySelectorAll("*")){if(o.contains(e)||!Jh(o))continue;let s=o.getBoundingClientRect();s.width===0||s.height===0||n.push({rect:{left:s.left,top:s.top,width:s.width,height:s.height},mark:!1})}return hs(ys(e),n,t)}function VE({inCell:e=!1,children:t}){let a=vs(et),n=Zh(null),[o,s]=Qh(null),i=a?Number.parseFloat(String(a.style[bs])):Number.NaN;if(qh(()=>{let l=n.current;if(!l||!Number.isFinite(i))return;let d=()=>s(eu(l,i));d();let m=l.ownerDocument.defaultView?.ResizeObserver;if(!m)return;let h=new m(d),I=_s(l);h.observe(l),h.observe(I);for(let P of I.querySelectorAll(`[${Je}]`))P!==l&&h.observe(P);return()=>h.disconnect()},[i]),!a)return de(Es,{children:t});let r=Number.isFinite(i)?{...a.style,[bs]:String(o??1)}:a.style;return de("span",{ref:n,className:e?"inline-flex min-w-0 max-w-full items-center justify-center":"inline-flex items-center justify-center",[Je]:"",...a.attrs,style:r,children:t})}import{FOLLOW_RULES as tu,resolveViewValue as au}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as nu}from"efficient-easel/screen/lib/content/length-units";var ou=["auto","fixed","screen","fill"],su=nu.filter(e=>e==="px"||e==="%"),iu="svh",ru="vh",lu="var(--sf-header-h, 88px)",cu={min:40,max:2e3,step:10,fallback:600},du={min:10,max:200,step:5,fallback:100},hu="sf-section-minh",_e="grid-cols-[minmax(0,1fr)]",Ts={base:"--sf-section-minh",small:"--sf-section-minh-s"},wa=e=>typeof e=="string"&&ou.includes(e),uu=e=>typeof e=="string"&&su.includes(e);function tt(e){let t=wa(e.sectionHeightMode)?e.sectionHeightMode:"auto",a=t==="screen"?"%":uu(e.sectionHeightUnit)?e.sectionHeightUnit:"px",n=t==="screen"?du.fallback:cu.fallback,o=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:n;return{mode:t,value:o,unit:a}}function ks(e){let{mode:t,value:a,unit:n}=tt(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&n==="px")return[`${a}px`,null];let o=a/100,s=i=>t==="screen"?`(100${i} - ${lu})`:`100${i}`;return[`calc(${s(ru)} * ${o})`,`calc(${s(iu)} * ${o})`]}function As(e){let t=ks(e);if(!t)return;let[a,n]=t;return{display:"grid",[Ts.base]:a,...n?{[Ts.small]:n}:{}}}var qE=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ZE="Height",Rs="sf-section-minh-phone",xs={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Cs(e){return wa(e.sectionHeightModePhone)}function mu(e){return tt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var Ls="sf-section-minh-tablet",Os={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function Ns(e){return wa(e.sectionHeightModeTablet)}function pu(e){return tt({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function ga(e){let t=As(e),a=(r,l,d)=>ks({sectionHeightMode:r,sectionHeightValue:l,sectionHeightUnit:d})??(t?["auto",null]:void 0),n=Ns(e)?a(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,o=Cs(e)?a(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):n;if(!t&&!n&&!o)return null;let s=[hu,_e],i={...t??{}};return n&&(s.push(Ls),i[Os.base]=n[0],n[1]&&(i[Os.small]=n[1])),o&&(s.push(Rs),i[xs.base]=o[0],o[1]&&(i[xs.small]=o[1])),{className:s.join(" "),style:i}}function QE(e){return ga(e)!==null||at(e).length>0}var fa=`grid ${_e}`,Is="h-full",fu="view-tablet:max-view-desktop:grid",Ps="max-view-tablet:grid",wu="view-wide:max-view-desktop:grid",gu="max-view-wide:grid",bu=`${Ps} ${_e}`;function JE(e,{atSectionLine:t=!1}={}){if(at(e).length>0)return fa;let a=ga(e);if(!a)return"";if(As(e))return fa;let n=a.className.split(" "),o=t?fu:wu,s=t?Ps:gu;if(!n.includes(Ls))return t?bu:`${s} ${_e}`;let i=n.includes(Rs);return[o,i?s:"",_e].filter(Boolean).join(" ")}var Hs="data-sf-height-fill",yu=["desktop","tablet","mobile"],Eu={desktop:"view-desktop:[.flex-col>&]:grow! view-desktop:[.flex-row>&]:self-stretch",tablet:"view-wide:max-view-desktop:[.flex-col>&]:grow! view-wide:max-view-desktop:[.flex-row>&]:self-stretch",mobile:"max-view-wide:[.flex-col>&]:grow!"};function at(e){let t=e,a=au("heightMode",tt(t).mode,Ns(t)?pu(t).mode:null,Cs(t)?mu(t).mode:null,tu),n={desktop:a.desktop==="fill",tablet:a.tablet==="fill",mobile:a.phone==="fill"};return yu.filter(o=>n[o])}function ev(e){return at(e).map(t=>Eu[t]).join(" ")}function tv(e){let t=ga(e);return at(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:fa}}var Ds={stretchedRow:!1,fillingColumn:!1},A=ya(null),Bs=()=>N(A)!==null;function cv({line:e,draw:t}){return L(vu,{children:t(be(e,Bs()))})}var dv=(e="by-box")=>be(e,Bs()),hv=()=>N(A),uv=()=>N(A)?.id??null,G=ya(!1);function Su(){let e=N(A)?.stretchedRow===!0,t=N(G);return e&&!t}var _u=()=>N(G);function Tu(){let e=N(A),t=Su(),a=_u();return{fill:a?` ${Is}`:"",inner:n=>{let o=t||a?L(G.Provider,{value:!0,children:n}):n;return e?.columnsRow?L(A.Provider,{value:{...e,columnsRow:!1},children:o}):o}}}function mv({className:e,style:t,attrs:a,children:n}){let{fill:o,inner:s}=Tu(),i=Ea();return i.scope(L("div",{className:va(`${e}${o}`,i.className),...t?{style:t}:{},...a,...i.attrs,children:s(n)}))}var ba=ya(!1);function pv({children:e}){return L(ba.Provider,{value:!0,children:L(G.Provider,{value:!0,children:e})})}function fv({children:e,ownPictures:t=!1}){let a=N(A),n=N(ba),o=N(G),s=n&&o,i=a===null?null:a.id===void 0?Ds:{...Ds,id:a.id};return L(A.Provider,{value:i,children:L(ba.Provider,{value:!1,children:L(G.Provider,{value:s,children:t?e:L(Ss,{children:e})})})})}var nt=Fs(null),Ms="data-sf-view-hide",Gs=e=>Te(nt.Provider,{value:null},e),Ws={className:"",attrs:{},scope:Gs},xu=Ws,Us=Fs(null),vv=(e,t)=>e?{className:e,views:t}:null,Ou=e=>Te(nt.Provider,{value:null},Te(Us.Provider,{value:null},Te(G.Provider,{value:!0},e))),Sv=(e,t,a={})=>e?{className:e,words:t,...a}:null,Ys=(e,t)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:be(e.line??"by-box",t)?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function Ea(){let e=xe(nt),t=xe(Us),a=xe(A)!==null;if(e===null&&t===null)return xu;let n=e===null?null:Ys(e,a);return t===null?{className:n.className,attrs:{[Ms]:n.words},scope:Gs}:{className:n?`${n.className} ${t.className}`:t.className,attrs:{...n?{[Ms]:n.words}:{},[Hs]:t.views},scope:Ou}}function _v(){let e=xe(nt),t=xe(A)!==null;return e===null?"":Ys(e,t).className}var va=(e,t)=>t?e?`${e} ${t}`:t:e;function Tv(e){let t=Ea(),a=e.takes===!1?Ws:t,n={},o=!1;for(let[s,i]of Object.entries(e))s==="as"||s==="takes"||s==="children"||(s==="className"?(n.className=va(i,a.className),o=!0):n[s]=i);return!o&&a.className&&(n.className=a.className),a.scope(Te(e.as??"div",{...n,...a.attrs},e.children))}var Ov={small:54,medium:66,large:84},ku=44,Au=16,Ru=140,kv={min:Au,max:Ru,step:1},Av=ku*4;import{forwardRef as Cu}from"react";import{imageCopyUrl as $s,imageSrcSet as Ks}from"efficient-shell/image-copies";import{jsx as Iu}from"react/jsx-runtime";var Lu={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"};function Vs(e,t,a){if(a){let n=Ks(e);return n?{src:$s(e,1280),srcSet:n,sizes:a}:{src:e,sizes:a}}if(t&&t>0){let n=Ks(e,{maxWidth:t*3});return n?{src:$s(e,t*2),srcSet:n,sizes:`${t}px`}:{src:e}}return{src:e}}var Nu=Cu(function({src:t,width:a,height:n,fill:o,priority:s,loading:i,style:r,quality:l,placeholder:d,blurDataURL:m,unoptimized:h,loader:I,overrideSrc:P,sizes:W,...Oe},ot){let ke=P??(typeof t=="string"?t:t.src),st=Vs(ke,o?void 0:Number(a)||void 0,W??(o?"100vw":void 0));return Iu("img",{ref:ot,...st,width:o?void 0:a,height:o?void 0:n,loading:s?"eager":i??"lazy",fetchPriority:s?"high":void 0,decoding:"async",style:o?{...Lu,...r}:{color:"transparent",...r},...Oe})}),Nv=Nu;function Iv(e){let t=e.overrideSrc??(typeof e.src=="string"?e.src:e.src.src),a=e.fill?void 0:Number(e.width)||void 0;return{props:Vs(t,a,e.sizes??(e.fill?"100vw":void 0))}}export{oe as a,g as b,Gl as c,yf as d,Wl as e,Ef as f,vf as g,Sf as h,_f as i,Tf as j,xf as k,It as l,Ul as m,Of as n,kf as o,Hn as p,Me as q,Af as r,Rf as s,T as t,jl as u,Cf as v,pe as w,te as x,lp as y,ae as z,cp as A,Kr as B,dp as C,hp as D,up as E,mp as F,Xr as G,De as H,bp as I,p as J,w as K,Bn as L,Pf as M,Hf as N,me as O,Fm as P,Ot as Q,Gm as R,Wm as S,Um as T,Ym as U,Hr as V,U as W,Dr as X,Vm as Y,vp as Z,Sp as _,Zr as $,_p as aa,Tp as ba,Pp as ca,Ct as da,yl as ea,Sn as fa,Fp as ga,Gp as ha,Wp as ia,Tn as ja,Up as ka,Yp as la,$p as ma,H as na,le as oa,Ko as pa,ey as qa,k as ra,iy as sa,zd as ta,z as ua,qd as va,ry as wa,ly as xa,cy as ya,dy as za,hy as Aa,Qd as Ba,uy as Ca,Xo as Da,O as Ea,na as Fa,my as Ga,Jd as Ha,eh as Ia,qo as Ja,py as Ka,nh as La,fy as Ma,oh as Na,wy as Oa,ea as Pa,gy as Qa,sh as Ra,ih as Sa,by as Ta,yy as Ua,Qo as Va,rh as Wa,Ey as Xa,lh as Ya,es as Za,aa as _a,vy as $a,Sy as ab,_y as bb,hh as cb,uh as db,Ty as eb,xy as fb,Oy as gb,ky as hb,Wn as ib,Fn as jb,Mf as kb,Ff as lb,Gf as mb,dc as nb,Fe as ob,Vf as pb,jf as qb,Xf as rb,Un as sb,Ge as tb,zf as ub,fc as vb,qf as wb,Ht as xb,wc as yb,Qf as zb,Yn as Ab,Jf as Bb,ye as Cb,yc as Db,Ec as Eb,vc as Fb,Kn as Gb,nw as Hb,Vn as Ib,ow as Jb,jn as Kb,rw as Lb,Xn as Mb,K as Nb,lw as Ob,cw as Pb,dw as Qb,Qn as Rb,ie as Sb,bw as Tb,Oc as Ub,Nc as Vb,yw as Wb,Ew as Xb,Bt as Yb,vw as Zb,Sw as _b,Ic as $b,Tw as ac,xw as bc,Ow as cc,kw as dc,Bc as ec,Fc as fc,Aw as gc,Rw as hc,Cw as ic,Lw as jc,Nw as kc,Iw as lc,Pw as mc,Hw as nc,Dw as oc,oo as pc,so as qc,Bw as rc,Mw as sc,Fw as tc,Gw as uc,Ww as vc,Vc as wc,Uw as xc,Yw as yc,lo as zc,$w as Ac,Kw as Bc,jc as Cc,Vw as Dc,jw as Ec,co as Fc,b as Gc,x as Hc,qc as Ic,y as Jc,D as Kc,Zc as Lc,ho as Mc,v as Nc,eg as Oc,Wt as Pc,Ut as Qc,tg as Rc,S as Sc,Cy as Tc,ts as Uc,ve as Vc,f as Wc,re as Xc,Ue as Yc,fh as Zc,po as _c,as as $c,bh as ad,fo as bd,mo as cd,yo as dd,Yt as ed,nd as fd,id as gd,vg as hd,xg as id,Og as jd,kg as kd,Ag as ld,To as md,Rg as nd,Cg as od,Lg as pd,dd as qd,Dg as rd,Bg as sd,xo as td,Mg as ud,Oo as vd,Fg as wd,Gg as xd,Ug as yd,Yg as zd,$g as Ad,Kg as Bd,ko as Cd,Vg as Dd,jg as Ed,$t as Fd,zg as Gd,ob as Hd,wd as Id,yd as Jd,F as Kd,wb as Ld,Do as Md,Bo as Nd,$e as Od,E as Pd,C as Qd,Lb as Rd,Fo as Sd,Go as Td,Nb as Ud,Ib as Vd,Ld as Wd,Pb as Xd,Hb as Yd,Db as Zd,Bb as _d,Mb as $d,Fb as ae,Gb as be,Id as ce,Pd as de,Wb as ee,Hd as fe,Bd as ge,Wo as he,Uo as ie,Ub as je,Jt as ke,Yb as le,$b as me,Zt as ne,Kb as oe,Vb as pe,Gd as qe,Wd as re,$o as se,Ud as te,jb as ue,Yd as ve,$d as we,Xb as xe,zb as ye,qb as ze,Zb as Ae,Ke as Be,ct as Ce,dt as De,$u as Ee,Ku as Fe,$i as Ge,ht as He,Vu as Ie,Ki as Je,ju as Ke,Xu as Le,Zu as Me,tm as Ne,am as Oe,nm as Pe,om as Qe,yt as Re,Et as Se,sm as Te,q as Ue,Qi as Ve,Qa as We,im as Xe,rm as Ye,Q as Ze,Z as _e,ar as $e,lm as af,cm as bf,Ie as cf,Ja as df,dm as ef,hm as ff,um as gf,St as hf,mm as if,en as jf,lr as kf,pm as lf,fm as mf,wm as nf,dr as of,gm as pf,bm as qf,ym as rf,Em as sf,vm as tf,Sm as uf,_t as vf,gr as wf,_m as xf,Tm as yf,Pe as zf,rn as Af,Er as Bf,xm as Cf,Tt as Df,qa as Ef,Om as Ff,km as Gf,vr as Hf,Sr as If,ln as Jf,He as Kf,xr as Lf,Or as Mf,kr as Nf,cn as Of,Ar as Pf,dn as Qf,Cm as Rf,Lm as Sf,Nm as Tf,Im as Uf,ue as Vf,hn as Wf,Pm as Xf,Hm as Yf,xt as Zf,un as _f,Dm as $f,Bm as ag,oa as bg,Eh as cg,Sh as dg,Wy as eg,os as fg,$y as gg,ss as hg,Ky as ig,Oh as jg,kh as kg,Vy as lg,Ah as mg,jy as ng,Be as og,kn as pg,On as qg,_l as rg,Tl as sg,xl as tg,jp as ug,Ol as vg,Xp as wg,fe as xg,zp as yg,qp as zg,Zp as Ag,Al as Bg,Rn as Cg,Qp as Dg,Jp as Eg,Cl as Fg,ef as Gg,Ze as Hg,bE as Ig,Qe as Jg,yE as Kg,EE as Lg,sa as Mg,is as Ng,zy as Og,la as Pg,ra as Qg,rs as Rg,Ih as Sg,ls as Tg,Se as Ug,ca as Vg,Ph as Wg,cs as Xg,da as Yg,Mh as Zg,lE as _g,cE as $g,Gh as ah,uE as bh,ha as ch,mE as dh,pE as eh,B as fh,AE as gh,RE as hh,ps as ih,CE as jh,ws as kh,LE as lh,NE as mh,IE as nh,PE as oh,gs as ph,Vh as qh,jh as rh,HE as sh,DE as th,$E as uh,Ss as vh,KE as wh,VE as xh,ou as yh,cu as zh,du as Ah,_e as Bh,tt as Ch,qE as Dh,ZE as Eh,Cs as Fh,Ns as Gh,pu as Hh,QE as Ih,fa as Jh,Is as Kh,JE as Lh,at as Mh,ev as Nh,tv as Oh,A as Ph,cv as Qh,dv as Rh,hv as Sh,uv as Th,G as Uh,Su as Vh,_u as Wh,Tu as Xh,mv as Yh,pv as Zh,fv as _h,nt as $h,Ws as ai,Us as bi,vv as ci,Sv as di,Ea as ei,_v as fi,va as gi,Tv as hi,Ov as ii,ku as ji,Au as ki,kv as li,Av as mi,Nv as ni,Iv as oi,nf as pi,Ka as qi,Mu as ri,Jm as si,Ur as ti,ep as ui,tp as vi,ap as wi,np as xi,Bl as yi,rf as zi,Ln as Ai,Ml as Bi,Fl as Ci,cf as Di,df as Ei,hf as Fi};
|
|
80
|
+
`)}function Yp(e,t,a){return dl(e,t,a,Ct)}function xn(e){return e.map(t=>t.kind==="text"?t.text:xn(t.children)).join("")}function $p(e){let t=a=>a.some(n=>n.kind==="link"||"children"in n&&t(n.children));return Sn(e).some(a=>t(a.children))}import{isNodeList as vl}from"efficient-easel/data";var Be=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],kn="bottom-left",ne=4,Sl=ne+1,On=40,_l=30,Tl=100,xl=60,jp=100;var Lt={"top-left":"Top left","top-center":"Top center","top-right":"Top right",left:"Left",center:"Center",right:"Right","bottom-left":"Bottom left","bottom-center":"Bottom center","bottom-right":"Bottom right"};function Ol(e){let t=Be.indexOf(fe(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function kl(e){return 1+Ol(e).band*(Sl+1)}function Xp(e){return kl(e)+1}function fe(e){return Be.includes(e)?e:kn}function zp(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-On,Math.min(On,Math.round(t)))}function qp(e,t=xl){let a=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(_l,Math.min(Tl,Math.round(a)))}function Nt(e,t){let a=fe(t);return e.filter(n=>fe(n?.props?.placement)===a).length}function An(e){return`${Lt[fe(e)]} already holds ${ne} boxes. Move one somewhere else first.`}function Zp(e,t){let a=e.filter(n=>n?.props?.id!==t);return Be.map(n=>{let o=Nt(a,n)>=ne,s=Lt[n];return o?{value:n,label:s,disabled:!0,title:An(n)}:{value:n,label:s}})}function Al(e,t){let a=t===void 0?kn:fe(t?.props?.placement);return Nt(e,a)>=ne?An(a):null}var Rn="HeroGroup";function Rl(e){return Be.map(t=>{let a=Nt(e,t);return{anchor:t,total:a,hidden:a-ne}}).filter(t=>t.hidden>0)}function Qp(e){let t=Rl(e);return t.length===0?null:t.map(({anchor:a,total:n,hidden:o})=>{let s=Lt[a],i=o===1?"1 is not shown":`${o} are not shown`;return`${s} holds ${n} boxes. The published page draws the first ${ne}, so ${i}. ${o===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function Jp(e,t){let a=t;if(a?.type!==Rn)return null;let n=a.props?.id===void 0?"":String(a.props.id);return n?Al(Cl(e,n),a):null}function Cl(e,t){let a=Cn(e,t);return a&&a.ownerType===Nl?a.siblings:[]}function ef(e,t){let a=Cn(e,t);return a?a.ancestorTypes.filter(n=>n===Rn).length:Ll}var Ll=1,Nl="HeroSlide";function Cn(e,t){let a=(n,o,s)=>{if(o>12||!n||typeof n!="object")return null;if(vl(n)){if(n.some(i=>i?.props?.id===t))return{siblings:n,ownerType:s.at(-1)??null,ancestorTypes:s};for(let i of n){let r=i.type,l=a(i,o+1,[...s,String(r)]);if(l)return l}return null}for(let i of Object.values(n)){let r=a(i,o+1,s);if(r)return r}return null};return a(e,0,[])}import{forwardRef as Il}from"react";import{jsx as Dl}from"react/jsx-runtime";function Pl(e){if(typeof e=="string")return e;let t=e.query?`?${new URLSearchParams(e.query).toString()}`:"",a=e.hash?e.hash.startsWith("#")?e.hash:`#${e.hash}`:"";return`${e.pathname??""}${t}${a}`}var Hl=Il(function({href:t,prefetch:a,replace:n,scroll:o,shallow:s,legacyBehavior:i,passHref:r,locale:l,onClick:d,children:m,...h},I){let P=W=>{d?.(W),!(W.defaultPrevented||h.target==="_blank")&&W.preventDefault()};return Dl("a",{ref:I,href:Pl(t),onClick:P,...h,children:m})}),nf=Hl;var Bl="Website";function rf(e){return e?.trim()||Bl}var Ln=["instagram","facebook","tiktok","youtube","x","linkedin","pinterest","whatsapp","telegram","line","wechat"],Ml={instagram:"Instagram",facebook:"Facebook",tiktok:"TikTok",youtube:"YouTube",x:"X",linkedin:"LinkedIn",pinterest:"Pinterest",whatsapp:"WhatsApp",telegram:"Telegram",line:"LINE",wechat:"WeChat"},Fl={};function cf(e){if(!e||typeof e!="object")return Fl;let t={};for(let a of Ln){let n=e[a];if(typeof n!="string")continue;let o=n.trim();!o||!/^https?:\/\//i.test(o)||(t[a]=o)}return t}function df(e){return Ln.flatMap(t=>{let a=e[t];return a?[{platform:t,href:a,label:Ml[t]}]:[]})}var hf=e=>`${e}_url`;function oe(e,t){let a=globalThis,n=Symbol.for(e),o=a[n];return o===void 0&&(o=t(),a[n]=o),o}function we(){return oe("efficient.slot-field-blocks",()=>new Set)}var Gl="dataSource",yf="dataSourceOptions",Wl="dataRows",Ef="countKey",vf="counts",Sf="location-payment-methods",_f="shop-payment-methods",Tf="delivery-options",xf="blog-categories",It="dealers";function Ul(e){return typeof e.open=="function"}var Pn=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Of(e){return typeof e=="string"&&Pn.test(e)}var Nn=new Set([It]);function ge(){return oe("efficient.block-sources",()=>({sources:new Map,revision:0}))}var Yl=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),$l=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),In=e=>typeof e=="string"&&e.trim()!=="";function Kl(e){if(!e||!In(e.label))return null;if(Ul(e))return{label:e.label.trim(),open:e.open};let t=e.href;return In(t)?{label:e.label.trim(),href:t.trim()}:null}function Vl(e){if(typeof e.key!="string"||!Pn.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(n=>typeof n!="string"||!n))throw new Error(`The block source ${e.key} names no block it can fill.`);let t=e.blocks.find(n=>we().has(n));if(t)throw new Error(`The block source ${e.key} names ${t}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);let a=Kl(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(n=>Dn(n)).filter(n=>n!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(Yl)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter($l).map(n=>({...n}))}:{},...a?{edit:a}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(n=>typeof n=="string"&&n.trim()!=="").map(n=>n.trim())}:{}}}function kf(e){let t=e.map(Vl),a=ge();for(let n of t)a.sources.set(n.key,n);t.length&&(a.revision+=1)}function Hn(e){let t=[...ge().sources.values()],a=[...t.filter(n=>!Nn.has(n.key)),...t.filter(n=>Nn.has(n.key))];return e===void 0?a:a.filter(n=>n.blocks.includes(e))}function Me(e){return ge().sources.get(e)??null}function Af(e){return ge().sources.get(e)?.choices??[]}function Rf(){return ge().revision}function T(e){let t=e?.[Gl];return typeof t=="string"?t.trim():""}function Dn(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[a,n]of Object.entries(e)){let o=g(n);o&&(t[a]=o)}return Object.keys(t).length?t:null}function jl(e){let t=e?.[Wl];return Array.isArray(t)?t.map(Dn).filter(a=>a!==null):null}function Cf(e,t,a=[]){let n=jl(e);if(n!==null&&(n.length||!t))return{rows:n,sample:!1};if(!t)return{rows:[],sample:!1};let o=Me(T(e))?.sample;return{rows:o?.length?o:a,sample:!0}}var p="content",w="Flex",Xl="Text & media",zl="Layout & structure",Mn=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],ql=[...Mn,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:Xl})),Zl=(ae.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:zl})),Bn=[...ql,...Zl],Pt=[...Mn,{type:"HeroGroup",label:De}],Pf=Pt.map(e=>e.type),Ql=1,Jl=Pt.filter(e=>e.type!=="HeroGroup");function ec(e){return e<Ql?Pt:Jl}var tc={Flex:{slot:p,choices:()=>Bn},Grid:{slot:p,choices:()=>Bn},HeroGroup:{slot:p,choices:ec}};function Hf(e,t=0){let a=pe(tc,e);return a?{slot:a.slot,choices:a.choices(t)}:null}import{AUTO_RULES as ic,FOLLOW_RULES as rc,isAuto as lc,resolveViewValue as cc}from"efficient-easel/screen/lib/content/view-tiers";import{VIEW_DESKTOP_MIN as ac,VIEW_TABLET_MIN as nc}from"efficient-easel/screen/lib/content/view-tiers";var Gn="v1",Wn=800,Fn={"view-tablet":nc,"view-desktop":ac,"view-wide":Wn};function Mf(e){let t=e.startsWith("max-"),a=t?e.slice(4):e;if(a in Fn)return{px:Fn[a],max:t};let n=/^(max|min)-\[(\d+)px\]$/.exec(e);return n?{px:Number(n[2]),max:n[1]==="max"}:void 0}var Ff=`(min-width: ${Wn}px)`,oc="data-sf-line",sc="edge",Gf={[oc]:sc},be=(e,t)=>e==="edge"||e!=="section"&&t;function dc(){return Gn==="v2"?ic:rc}function Fe(e,t,a,n,o=dc()){let s=cc(e,t,a,n,o),i={},r=(l,d)=>!lc(l)||d!=null&&d!==t;return r(a,s.tablet)&&(i.tablet=s.tablet),r(n,s.phone)&&(i.phone=s.phone),i}var Vf={left:"start",center:"center",right:"end"},jf={left:"justify-start",center:"justify-center",right:"justify-end"},Xf={left:"",center:"mx-auto",right:"ml-auto"},Un={left:"",center:"text-center",right:"text-right"},hc={text:{left:"view-wide:max-view-desktop:text-left",center:"view-wide:max-view-desktop:text-center",right:"view-wide:max-view-desktop:text-right"},place:{left:"view-wide:max-view-desktop:mx-0",center:"view-wide:max-view-desktop:mx-auto",right:"view-wide:max-view-desktop:ml-auto view-wide:max-view-desktop:mr-0"},items:{left:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-start",center:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-center",right:"view-wide:max-view-desktop:justify-items-end"},justify:{left:"view-wide:max-view-desktop:justify-start",center:"view-wide:max-view-desktop:justify-center",right:"view-wide:max-view-desktop:justify-end"}},uc={text:{left:"max-view-wide:text-left",center:"max-view-wide:text-center",right:"max-view-wide:text-right"},place:{left:"max-view-wide:mx-0",center:"max-view-wide:mx-auto",right:"max-view-wide:ml-auto max-view-wide:mr-0"},items:{left:"max-view-wide:grid-cols-1 max-view-wide:justify-items-start",center:"max-view-wide:grid-cols-1 max-view-wide:justify-items-center",right:"max-view-wide:justify-items-end"},justify:{left:"max-view-wide:justify-start",center:"max-view-wide:justify-center",right:"max-view-wide:justify-end"}},mc={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},pc={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function Ge(e){return e==="left"||e==="center"||e==="right"?e:void 0}function zf(e){return e==="start"?"left":e==="end"?"right":Ge(e)}function fc(e,t,a){let n=Ge(e)??"left",o=Fe("same",n,Ge(t),Ge(a)),s={};return o.tablet&&o.tablet!==n&&(s.tablet=o.tablet),o.phone&&o.phone!==n&&(s.phone=o.phone),s}function qf(e,t,a,n,{atSectionLine:o=!1}={}){let s=fc(t,a,n),i=o?mc:hc,r=o?pc:uc;return[s.tablet?i[e][s.tablet]:"",s.phone?r[e][s.phone]:""].filter(Boolean).join(" ")}var Ht="rowImageField",wc="boxOutsideCopy",gc={all:[{field:Ht,set:!0},{not:{context:wc,is:!0}}]},Qf={any:[{field:"bgImage",set:!0},gc]},Yn="boxInCopy",bc={any:[{not:{field:Ht,set:!0}},{not:{context:Yn,is:!0}}]},Jf={all:[{not:{field:"bgImage",set:!0}},bc]},$n={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${Ht}`,set:!0}},{not:{context:Yn,is:!0}}]}]};function ye(e,t,a){return e.some(n=>(typeof n=="object"?n.value:n)===a)?a:t}var yc="small",Ec="dot",vc=[{label:"Small",value:"small"},{label:"Display",value:"display"}],Dt=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],Kn={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},Sc={small:"font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.25em] max-view-wide:text-[length:var(--size-label,12px)]",display:"font-display font-medium text-[length:var(--size-headingMedium,44px)] uppercase leading-none tracking-[0.005em] max-view-wide:text-[length:var(--size-headingMedium,28px)]"},_c={small:{dot:"",cross:"text-[0.77em]",slash:"text-[0.77em]",triangle:"",none:""},display:{dot:"text-[0.3em]",cross:"text-[0.64em]",slash:"text-[0.64em]",triangle:"text-[0.3em]",none:""}};function nw(e){return ye(vc,yc,e)}function Vn(e){return ye(Dt,Ec,e)}function ow(e){return Sc[e]}function jn(e,t){return _c[e][t]}var rw=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function Xn(e){return Dt.some(t=>t.value===e)?Vn(e):void 0}var Tc="overflow-x-clip [&>*]:shrink-0 [&>[data-sf-box-items]>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>[data-sf-box-items]>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function K(e,t){return e==="row"&&Xn(t)!==void 0}function lw(e,t){return K(e,t)?Tc:""}var xc="[&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:inline-flex [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:items-center [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:align-top [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:h-[calc(1lh/var(--sf-sep-k,1))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:ml-[var(--sf-gap-len,0px)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:after:ml-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-accent [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*:last-child_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]:last-child>*:not(:last-child)_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:after:content-none";function cw(e,t){return K(e,t)?xc:""}function dw(e,t){if(!K(e,t))return{};let a=Xn(t),n=/^text-\[([\d.]+)em\]$/.exec(jn("small",a))?.[1],o=Kn[a];return{"--sf-sep-mark":o===""?"none":JSON.stringify(o),...n?{"--sf-sep-k":n}:{}}}var Qn={sectionPaddingTop:0,sectionPaddingBottom:0},Ee={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},ie={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"},gw=[...new Set([...Object.keys(ie),...Object.keys(Un)])];function bw(e,t){let a=typeof e=="string"&&te(Ee,e)?Ee[e]:"",n=typeof t=="string"&&te(ie,t)?ie[t]:"";return[a,n].filter(Boolean).join(" ")}function Oc(e){return e===!0||e==="wrap"?"flex-wrap":""}var kc={start:"view-wide:max-view-desktop:justify-start!",center:"view-wide:max-view-desktop:justify-center!",between:"view-wide:max-view-desktop:justify-between!",end:"view-wide:max-view-desktop:justify-end!"},Ac={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},Rc={start:"view-wide:max-view-desktop:items-start!",center:"view-wide:max-view-desktop:items-center!",end:"view-wide:max-view-desktop:items-end!",stretch:"view-wide:max-view-desktop:items-stretch!"},Cc={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},Lc={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function X(e,t){return typeof t=="string"&&te(e,t)?t:void 0}function Mt(e,t,a){let n=Fe("same",e,t,a),o={};return n.tablet!==void 0&&n.tablet!==e&&(o.tablet=n.tablet),n.phone!==void 0&&n.phone!==e&&(o.phone=n.phone),o}function Ft(e,t,a){return[e.tablet?t[e.tablet]:"",e.phone?a[e.phone]:""].filter(Boolean).join(" ")}function Nc(e,t,a){return Mt(X(Ee,e)??"start",X(Ee,t),X(Ee,a))}function yw(e,t,a){return Ft(Nc(e,t,a),kc,Ac)}function Ew(e,t,a){let n=X(ie,e)??"stretch";if(n==="stretch")return"";let o=Mt(n,X(ie,t),X(ie,a));return Ft(o,Rc,Cc)}function Bt(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function vw(e,t){let a=Oc(e)===""?"nowrap":"wrap",n=Bt(t);return n&&n!==a?Lc[n]:""}var Sw="Block widths",Jn=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{value:"bigLeft",weights:[2,1]},{value:"bigRight",weights:[1,2]},{value:"biggerLeft",weights:[3,1]},{value:"biggerRight",weights:[1,3]},{value:"twoThree",weights:[2,3]}],Ic="data-sf-box-items",_w=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${Ic}\\][^\\s"'\`]*`,"g");var Tw=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function xw(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in We?"custom":"content"}var eo=4,zn=10;function Pc(e,t){if(!Number.isInteger(t)||t<2||t>eo||e.length!==t-1||!e.every(o=>typeof o=="number"&&Number.isFinite(o)))return;let a=[],n=0;return e.forEach((o,s)=>{let i=100-n-zn*(t-1-s),r=Math.min(i,Math.max(zn,Math.round(o)));a.push(r),n+=r}),a}function qn(e,t,a){if(!Array.isArray(t))return;let n=Pc(t,a),o=n?[...n,100-n.reduce((i,r)=>i+r,0)]:[],s={};for(let i=0;i<eo;i+=1)s[`--${e}-${i+1}`]=o[i]??1;return s}function Ow(e,t,a){let n=qn("sf-share",e,a),o=qn("sf-share-tablet",t,a);return n||o?{...n,...o}:void 0}function Hc(e,t){let a=Array.from({length:t},()=>1),n=Jn.find(i=>i.value===e);if(!n?.weights||t<1)return a;let[o,s]=n.weights;return o>1&&(a[0]=o),s>1&&(a[t-1]=s),a}function kw(e,t){if(typeof e!="string"||!(e in We)||e==="equal")return e;let a=Hc(e,t),n=a.reduce((o,s)=>o+s,0);return a.slice(0,-1).map(o=>Math.round(o/n*100))}var V="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",We={equal:V,bigLeft:`${V} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${V} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${V} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${V} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${V} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},Dc=`${V} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function Bc(e){return Array.isArray(e)?Dc:typeof e=="string"?We[e]??"":""}var to={all:[{context:"parentType",is:"Flex"},{context:"parent.direction",is:"row"},{any:[{not:{context:"parent.align",set:!0}},{context:"parent.align",is:"stretch"}]},{not:{context:"parent.separator",set:!0}},{not:{context:"parent.loop",is:"scroll"}},{not:{context:"parent.line",is:!0}},$n,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(We)}]}]}]},ao="view-wide:max-view-desktop:flex-row!",j=`${ao} [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-0!`,no={content:`${ao} [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[content]!`,equal:j,bigLeft:`${j} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,bigRight:`${j} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]!`,biggerLeft:`${j} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,biggerRight:`${j} [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`,twoThree:`${j} [&>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>[data-sf-box-items]:first-child>*:first-child:nth-child(n)]:view-wide:max-view-desktop:grow-[2]! [&>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]! [&>[data-sf-box-items]:last-child>*:last-child:nth-child(n)]:view-wide:max-view-desktop:grow-[3]!`},Mc=`${j} [&>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>[data-sf-box-items]>*:nth-child(1):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-1,1)]! [&>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>[data-sf-box-items]>*:nth-child(2):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-2,1)]! [&>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>[data-sf-box-items]>*:nth-child(3):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-3,1)]! [&>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]! [&>[data-sf-box-items]>*:nth-child(4):nth-child(n)]:view-wide:max-view-desktop:grow-[var(--sf-share-tablet-4,1)]!`;function Fc(e){return Array.isArray(e)||typeof e=="string"&&e in no?e:null}function Aw(e){if(e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||oo(e.columns)!==""||so(e.columnsTablet)!=="")return"";let t=Fc(e.shareTablet);return t===null?"":typeof t=="string"?no[t]:Mc}var Gc="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function Rw(e){return Bc(e)===""?Gc:""}var Cw="Columns",Lw=1,Nw=3,Gt={2:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},Iw=Jn.filter(e=>e.value==="content"||e.value==="equal"),Pw="equal",Hw=1,Dw=6,se="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",Wc={1:`${se} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function oo(e){return typeof e=="number"?Wc[e]??"":""}var Uc={1:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc(100%/1)]!",2:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px)))/2)]!",3:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_2)/3)]!",4:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_3)/4)]!",5:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_4)/5)]!",6:"view-wide:max-view-desktop:flex-row! view-wide:max-view-desktop:flex-wrap! [&>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:min-w-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:grow-0! [&>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]! [&>[data-sf-box-items]>*:nth-child(n)]:view-wide:max-view-desktop:basis-[calc((100%_-_var(--sf-gap-len-tablet,var(--sf-gap-len,0px))_*_5)/6)]!"};function so(e){return typeof e=="number"?Uc[e]??"":""}function Bw(e){return e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":so(e.columnsTablet)}function Mw(e){return e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":oo(e.columns)}var io={2:"view-wide:grid view-wide:grid-cols-2",3:"view-wide:grid view-wide:grid-cols-3",4:"view-wide:grid view-wide:grid-cols-4",5:"view-wide:grid view-wide:grid-cols-5",6:"view-wide:grid view-wide:grid-cols-6"},ro={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},Fw=Object.keys(io).map(Number),Gw=Object.keys(ro).map(Number);function Ww(e,t,a=!1){let n=typeof e=="number"?io[e]??"":"",o=ro[Number(t)]??"";return!n&&!o?"":[n,o,a?"gap-y-0!":""].filter(Boolean).join(" ")}var Yc="max-view-wide:flex-wrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]",$c={2:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px)))/2)]",3:"max-view-wide:flex-nowrap [&>*]:max-view-wide:min-w-0 [&>[data-sf-box-items]>*]:max-view-wide:min-w-0 [&>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)] [&>[data-sf-box-items]>*]:max-view-wide:basis-[calc((100%_-_var(--sf-gap-len-phone,var(--sf-gap-len,0px))_*_2)/3)]"},Kc="max-view-wide:flex-nowrap [&>*]:max-view-wide:grow-0 [&>[data-sf-box-items]>*]:max-view-wide:grow-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content]";function Vc(e,t){return(Bt(e)??Bt(t)??"wrap")==="nowrap"}function Uw(e,t,a,n){let o=Gt[Number(e)];if(!o)return"max-view-wide:flex-col";let s=Vc(a,n);return lo(e,t)?s?Kc:Yc:s?$c[Number(e)]:o}function Yw(e,t){return Number(e)in Gt&&!lo(e,t)}function lo(e,t){return Number(e)in Gt&&t==="content"}var $w="Block spacing",Kw=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],jc="sf-box-gap-only";function Vw(e){return e==="gap"?jc:""}var Zn={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},Xc={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function jw(e,t,a){let n=s=>X(Zn,s),o=Mt(e==="gap"?"gap":"each",n(t),n(a));return Ft(o,Zn,Xc)}var co={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Qw,tag:Jw,...zc}=co.defaultProps,b=zc,x={...b,tone:"dim"},qc={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},y={...qc,direction:"column",...Qn},D=(e,t=e,a=e,n=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:a,sectionPaddingRightPhone:n,sectionPaddingBottomPhone:a,sectionPaddingLeftPhone:n}),Zc=e=>({fillColor:e}),ho=(e,t,a={})=>({...y,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?Zc(t):{},...a}),v=(e,t,a,n)=>({sizeToken:{step:e,px:t,...n?{stepPhone:n}:{},...a?{pxPhone:a}:{}}}),eg=e=>({textStyle:"body-1",...v("body",e),lineHeight:1.625}),uo={case:"upper"},Wt={textStyle:"body-5",...uo},Ut=(e,t)=>({...v("label",e,t),letterSpacing:.2,...uo}),tg=(e,t)=>({...Wt,...Ut(e,t)});function S(e,t,a=""){return e.map((n,o)=>{let s=a?`${a}.${o}`:String(o),i={...n.props??{}};for(let[r,l]of Object.entries(n.slots??{}))i[r]=S(l,t,s);return{type:n.type,props:{...i,id:t(n.type,s)}}})}import{isNodeList as kd}from"efficient-easel/data";function go(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return mo(t);let a=g(t.id)??"Cards",n=fo(a);if(t.cardStyle==="label-only"){let s=Array.isArray(t.items)&&t.items.some(i=>g(i?.href)!==void 0);return mo({...t,template:wo(n,s)})}let o=T(t)?Ue:re;return{...t,template:po(n,o)}}var Qc=e=>{let[t,a]=e?[re,Ue]:[Ue,re];return new Map([[t.title,a.title],[t.body,a.body]])};function bo(e,t){let a=null;return e.forEach((n,o)=>{let s=n?.props;if(!s)return;let i=s,r=s[E];n.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[E]:t.get(r)});let l=s[p];if(Array.isArray(l)){let d=bo(l,t);d!==l&&(i={...i,[p]:d})}i!==s&&(a??=[...e],a[o]={...n,props:i})}),a??e}function mo(e,t){if(!Array.isArray(e.template))return e;let a=Qc(!!T(e)),n=t?new Map([...a].filter(([s,i])=>t(i)&&!t(s))):a;if(!n.size)return e;let o=bo(e.template,n);return o===e.template?e:{...e,template:o}}var Jc="label";function yo(e){if(e.template!==void 0)return e;let t=g(e.id)??"CardList",a={type:w,props:{...y,name:"Item"},slots:{[p]:[f(Jc,{...b,tag:"p"},ve)]}};return{...e,template:S([a],(n,o)=>o==="0"?`${t}~item`:`${t}~item.${o.slice(2)}`)}}var Yt="ArticleBody",ed={textStyle:"heading-3",...v("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},td={...ve,align:"center"},Eo=640,ad=()=>[f("heading",{...b,tag:"h2",align:"center",maxWidth:Eo},ed),f("paragraph",{...x,tag:"p",align:"center",maxWidth:Eo},td)],nd=e=>S(ad(),e);function od(e){return nd((t,a)=>`${e}~${a==="0"?"heading":"paragraph"}`)}function vo(e){if(e.template!==void 0)return e;let t=typeof e.id=="string"&&e.id.trim()?e.id:Yt;return{...e,template:od(t)}}var sd="label",id=()=>({type:"LogoBlock",props:{[E]:sd}}),So=e=>{let t=g(e.id)??"Logos";return{...e,template:S([id()],()=>`${t}~logo`)}};function _o(e){return!T(e)||e.template!==void 0?e:So(e)}function vg(e){if(!T(e))return e;let t=e.template;return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:So(e)}import{addShowWhenFacts as rd}from"efficient-shell/format";import{showWhenOf as xg,shownForOption as Og,truthy as kg,withRowRules as Ag,withRowsShownWhen as To,withShowWhen as Rg}from"efficient-shell/format";var Cg=rd;function Lg(e,t,a){return e.slice(0,-1).reduceRight((n,o)=>({any:[{all:[t(o),a(o)]},{all:[{not:t(o)},n]}]}),a(e[e.length-1]))}var ld="inline",cd=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var dd={ProductGrid:{num:"num",title:"title",description:"description",headRows:["num","title","titleSize","description","linkText","linkHref"],renderer:"ProductGridSection",padKey:"padTop",linkProp:"link"},TyreSizes:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreSizes"},FitmentFinder:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentFinder"},TyreFitment:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreFitment"},BundleOffer:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},CompatibleTyres:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},RelatedProducts:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},SpecTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"SpecTable"},FAQ:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"FAQ"},GalleryB:{num:"num",title:"title",headRows:["num","title","linkText","linkHref"],renderer:"GalleryGrid"},FitmentTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentTable"},Events:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"Events"},ProcessSteps:{num:"num",title:"title",description:"description",headRows:["num","title","description"],headStyle:"editorial",renderer:"ProcessSteps",padKey:"padTop"},LongRead:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"LongRead"},Series:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Series"},Subscribe:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Subscribe"},TimelineTrack:{num:"eyebrow",title:"title",description:"intro",headRows:["eyebrow","title","intro"],headStyle:"editorial",renderer:"TimelineTrack",padKey:"padTop"},StatsParagraph:{num:"eyebrow",title:"title",description:"desc",headRows:["eyebrow","title","desc"],headStyle:"editorial",renderer:"StatsParagraph"},Footprint:{num:"sectionNumber",title:"heading",description:"tagline",headRows:["sectionNumber","heading","tagline"],headStyle:"editorial",renderer:"Footprint",padKey:"padTop"},Collections:{num:"eyebrow",title:"heading",headRows:["eyebrow","heading"],renderer:"Collections"},Cards:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Cards"},Testimonials:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Testimonials"},Reviews:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Reviews"},Prose:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"essay",renderer:"Prose"},ReviewForm:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"simple",renderer:"ReviewForm"},DeliveryOptions:{num:"eyebrow",title:"title",description:"body",headRows:["eyebrow","title","body"],headStyle:"natural",headRowGap:"gap-3",headDescriptionSize:"text-[15px]",renderer:"DeliveryOptions"}},Dg="SectionHeader";function Bg(e){return te(dd,e)}function xo(e){return ye(cd,ld,e)}var hd=new Set(["Flex"]);function Mg(e){return!!e?.type&&hd.has(e.type)}var Oo={not:{field:"headPlacement",is:"own-box"}},Fg={not:Oo};function Gg(e,t,a){return To(e,a,Oo)}var Ug="data-sf-spec-region";function Yg(e){return e.writable===!0&&e.sized===!0}function $g(e,t,a){if(!e)return;let n=a[e];if(n)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${n}, ${t.builtIn})`}}function Kg(e){let t=/var\(--size-[A-Za-z]+, ?([0-9.]+px)\)/.exec(e);if(!t)throw new Error(`builtInOf: no --size-* fallback in ${e}`);return t[1]}function ko(e){return`@${e}`}function Vg(e,t){if(!t.startsWith("@"))return null;let a=t.slice(1);return a in e?a:null}function jg(e,t){return t&&t in e?t:null}var $t={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0,sized:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0,sized:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0,sized:!0}},zg=$t;var ud="question",md="answer",pd={textStyle:"body-1",fontRole:"heading",...v("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},fd={textStyle:"body-1",...v("body",15),lineHeight:1.7};function ob(){return Object.keys($t).map(ko)}var wd=()=>({type:w,props:{...y,gap:0,name:"Question"},slots:{rowTitle:[f(ud,{...b,tag:"p",widthFit:"fill"},pd)],[p]:[f(md,{...x,tag:"p",widthFit:"fill",maxWidth:760},fd)]}});function gd(e){return xo(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>g(e[t])!==void 0)}function Ao(e){if(e.template!==void 0||gd(e))return e;let t=g(e.id)??"FAQ",a=0;return{...e,template:S([wd()],n=>n===w?`${t}~row`:`${t}~row.${a++}`)}}var bd=["below","left","right"];function yd(e){return bd.includes(e)?e:"below"}function Kt(e){return yd(e)!=="below"}function Vt(e){return Array.isArray(e)?e.map(Vt):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([t,a])=>t!=="id"&&a!==void 0&&!(Array.isArray(a)&&a.length===0)).sort(([t],[a])=>t<a?-1:t>a?1:0).map(([t,a])=>[t,Vt(a)]))}var F=e=>JSON.stringify(Vt(e));var Lo=e=>T(e)===It,Ye=Ut(11),Ed={textStyle:"body-1",...v("body",18),weight:500,lineHeight:1.2},wb=()=>({type:w,props:{...y,gap:8,gapPhone:8,...D(20,24,20,20),name:"Office"},slots:{[p]:[f("badge",{...b,tag:"p",widthFit:"fill"},Ye,!0),f("role",{...b,tag:"p",widthFit:"fill"},Ye,!0),f("city",{...b,tag:"p",widthFit:"fill"},Ed),f("country",{...x,tag:"p",widthFit:"fill"},Ye),f("address",{...x,tag:"p",widthFit:"fill"},Ye),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[E]:"linkLabel",[C]:"href"}}]}}),No={textStyle:"body-1",fontRole:"heading",...v("body",16),weight:500,lineHeight:1.25},Xt={textStyle:"body-1",...v("body",14),lineHeight:1.5},vd=()=>({type:w,props:{...y,gap:4,gapPhone:4,...D(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[p]:[f("city",{...b,tag:"p",widthFit:"fill"},No),f("address",{...x,tag:"p",widthFit:"fill"},Xt),f("phone",{...x,tag:"p",widthFit:"fill"},Xt)]}});function Io(e){let t=g(e.id)??"Footprint",a=0;return S([vd()],n=>n===w?`${t}~office`:`${t}~office.${a++}`)}function Po(e){return Array.isArray(e.template)&&e.template.length>0&&F(e.template)===F(Io(e))}var Ho=e=>e===void 0||Array.isArray(e)&&e.length===0;function Ro(e){return Kt(e.listPosition)?!Ho(e.template)||Lo(e)?e:{...e,template:Io(e)}:Po(e)?{...e,template:[]}:e}var Sd=No,_d=Xt,Td={textFit:"line"},zt=(e,t,a="",n={},o={})=>{let s=f(e,{...t?x:b,tag:"p",...n},{..._d,...o});return a?{...s,props:{...s.props,[C]:a}}:s},jt=(e,t,a,n)=>({type:w,props:{...y,gap:0,gapPhone:0,[Zt]:[e],name:n},slots:{[p]:[zt(e,t,a,Td,{align:"right"})]}}),xd=e=>({type:w,props:{...y,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?D(20,24):{...D(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[p]:[{type:w,props:{...y,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[p]:[{type:w,props:{...y,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[p]:[f("name",{...b,tag:"p",widthFit:"fill"},Sd),zt("address",!0)]}},zt("place",!0,"",{widthFit:"fill"})]}},{type:w,props:{...y,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[p]:[jt("distance",!0,"","Dealer distance"),jt("phone",!1,"phoneHref","Dealer phone"),jt("website",!1,"websiteHref","Dealer website")]}}]}}),Od=e=>{let t=xd(e),a={type:w,props:{...y,...D(0,12),name:"Dealer"},slots:{[p]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:a};function qt(e,t){let a=g(e.id)??"Footprint",n=0;return S([Od(t)],(o,s)=>s==="0"?`${a}~dealer`:`${a}~dealer.${n++}`)}function Co(e){if(!Array.isArray(e.template)||e.template.length===0)return!1;let t=F(e.template);return t===F(qt(e,!0))||t===F(qt(e,!1))}function Do(e){if(Lo(e)){let a=qt(e,!Kt(e.listPosition));return!(Ho(e.template)||Po(e)||Co(e))||F(e.template??[])===F(a)?e:{...e,template:a}}if(!Co(e))return Ro(e);let t={...e,template:[]};return Ro(t)}var Bo="template",Ad="Card template",$e="CardList",Mo=["Text","ImageBlock","ButtonBlock","Flex"],E="rowField",C="rowLinkField";function Lb(){return{type:"slot",allow:[...Mo]}}var Rd=Mo.filter(e=>e!=="ButtonBlock"),Fo="items",Go="itemFields";function Nb(){return{type:"slot",allow:[...Rd]}}var Cd=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Ao(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region \xB7 country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>Do(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>go("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:$e,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>_o(e)},{block:$e,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:Fo,seed:e=>yo(e)},{block:Yt,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>vo(e)}];function _(){return oe("efficient.card-templates",()=>new Map(Cd.map(e=>[e.block,e])))}function Ib(e){for(let t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");let a=[];for(let i of t.blocks??[]){if(typeof i?.type!="string"||!i.type)throw new Error(`The card template of ${t.block} names an empty block.`);if(i.type===Ke)throw new Error(`The card template of ${t.block} names "${Ke}" in its blocks. Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`);a.some(r=>r.type===i.type)||a.push({type:i.type,label:i.label||i.type})}let n=[];for(let i of t.slots??[]){if(typeof i?.slot!="string"||!i.slot)throw new Error(`The card template of ${t.block} names an empty slot.`);let r=g(i.label),l=Array.isArray(i.fields)?{fields:i.fields.map(d=>({...d}))}:null;n.some(d=>d.slot===i.slot)||n.push({slot:i.slot,...r?{label:r}:null,...l})}let o=n.some(i=>i.fields);if(o&&(t.fields.some(i=>i.everySource)||Hn(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);o?we().add(t.block):we().delete(t.block);let s=g(t.typedRows);_().set(t.block,{block:t.block,...n.length?{slots:n}:{},fields:t.fields.map(i=>({...i})),blocks:a,typedRows:s,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function Ld(e,t){let a=e?_().get(e)?.seed:void 0;return a?a(t):t}function Pb(e,t){let a=Id(e),n=(a.length?a:[Bo]).filter(r=>t[r]===void 0||Array.isArray(t[r])&&t[r].length===0);if(!n.length)return t;let o={...t};for(let r of n)delete o[r];let s=e?_().get(e)?.seedOnInsert:void 0,i=s?s(o):Ld(e,o);return i===o?t:i}function Hb(){for(let e of _().values())if(e.blocks?.length)return!0;return!1}function Db(e){return _().get(e)?.blocks??[]}function Bb(e){for(let t of _().values())if(t.blocks?.some(a=>a.type===e))return!0;return!1}function Mb(e){return typeof e=="string"&&_().get(e)?.typedRows||""}function Fb(e){return typeof e=="string"&&_().get(e)?.linesBetween===!0}function Gb(e){return typeof e=="string"&&_().has(e)}var Nd=[{slot:Bo}];function Ve(e){if(typeof e!="string")return[];let t=_().get(e);return t?t.slots??Nd:[]}function Id(e){return Ve(e).map(t=>t.slot)}function Pd(e,t){return Ve(e).some(a=>a.slot===t)}function Wb(e,t){let a=Ve(e).find(n=>n.slot===t);return a?a.label??Ad:null}function Qt(e,t){return t?Ve(e).find(a=>a.slot===t)?.fields:void 0}function Hd(e,t){let a=_().get(e)?.fields??[];return t?a.filter(n=>(n.kind??"text")===t):a}function Dd(e,t){if(typeof e!="string")return"";let a=Qt(e,t);return(a?a.filter(n=>n.kind==="list"):Hd(e,"list"))[0]?.key??""}function Bd(e,t,a){return Jt(e)||Dd(t,a)}function Wo(e,t,a){let n=typeof e?.type=="string"?e.type:"";if(!n)return[];let o=Qt(n,a);if(o)return t?o.filter(l=>(l.kind??"text")===t):o;let s=_().get(n)?.fields??[],i=Me(T(e?.props))?.fields,r=i?.length?[...i.map(l=>({...l})),...s.filter(l=>l.everySource&&!i.some(d=>d.key===l.key))]:s;return t?r.filter(l=>(l.kind??"text")===t):r}function Md(e,t,a,n){if(!e)return null;let o=Qt(e,n);return o?o.find(s=>s.key===t)??null:a?Wo(a).find(s=>s.key===t)??null:_().get(e)?.fields.find(s=>s.key===t)??null}function Uo(e,t){return!e||!t?null:e.fields?.find(a=>a.key===t)??Md(e.ownerType,t,e.owner,e.slot)}function Ub(e,t){return Uo(e,t)?.plain===!0}function Jt(e,t=E){let a=e?.[t];return typeof a=="string"?a.trim():""}function Yb(e,t){return e.key||String(t+1)}function $b(e){let t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[a,n]of Object.entries(e))typeof n=="string"&&(t[a]=n);return t}var Zt="hideWhenRowEmpty";function Kb(e,t){let a=e[Zt];return!t||!Array.isArray(a)||!a.length?!1:a.every(n=>typeof n!="string"||!t[n]?.trim())}var Yo={Text:{text:E,href:C},ImageBlock:{src:E,href:C},ButtonBlock:{label:E,href:C},LogoBlock:{alt:E,href:C},Breadcrumb:{currentCrumb:E}};var Fd=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Vb(e,t,a){return Gd(e,t,a)&&!Fd.has(`${e}.${a}`)}function Gd(e,t,a){return Wd(e,t,a)!==""}function Wd(e,t,a){let n=Yo[e]?.[a];return n?Jt(t,n):""}function $o(e,t){return!t||!e?null:e[t]??""}function Ud(e,t){return $o(e,t)?.trim()||void 0}function jb(e,t,a,n,o,s){if(!a)return t;let i=null;for(let[r,l]of Object.entries(Yo[e]??{})){let d=Jt(t,l),m=$o(a,d);if(m!==null){if(i??={...t},l===C){i[r]=Ud(a,d);continue}i[r]=Uo({ownerType:n,fields:o,slot:s},d)?.mark==="accentItalic"?Tn(m):m}}return i??t}function je(e,t){let a=e?.data?.content;if(!Array.isArray(a)||typeof t!="string")return;let n=(s,i)=>{for(let r of s){if(r?.props?.id===t)return i;for(let[l,d]of Object.entries(r?.props??{})){if(!kd(d))continue;let m=Pd(r.type,l)?{owner:r,slot:l,direct:!0,nested:i!==null,underBox:!1}:i&&{owner:i.owner,slot:i.slot,direct:!1,nested:i.nested,underBox:i.underBox||r.type===w},h=n(d,m);if(h!==void 0)return h}}},o=n(a,null);return o===void 0?null:o}function Yd(e,t){let a=je(e,t);return a&&a.owner}function $d(e,t){let a=je(e,t);return a&&a.slot}function Xb(e,t){let a=je(e,t);return a&&(a.direct?a.owner:null)}function zb(e,t){let a=je(e,t);if(a!==void 0)return a===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:a.nested,underBox:a.underBox}}function qb(e,t,a){if(t?.type!==$e)return[];let n=Yd(e,t.props?.id);if(!n){let r=Me(T(t.props))?.fields,l=r?.length?r.map(h=>({...h})):Kd(t.props),d=(_().get($e)?.fields??[]).filter(h=>h.everySource&&!l.some(I=>I.key===h.key)),m=[...l,...d];return a?m.filter(h=>(h.kind??"text")===a):m}let o=$d(e,t.props?.id)??void 0,s=Bd(t.props,n.type,o),i=s&&Wo(n,"list",o).find(r=>r.key===s)?.fields||[];return a?i.filter(r=>(r.kind??"text")===a):i}function Zb(e,t){return{[E]:"",[Fo]:e.map(a=>({...a})),[Go]:t.map(a=>({...a}))}}function Kd(e,t){let a=e?.[Go];if(!Array.isArray(a))return[];let n=a.flatMap(o=>{if(!o||typeof o!="object")return[];let{key:s,label:i,kind:r,multiline:l,alt:d,next:m}=o;if(typeof s!="string"||!s||typeof i!="string")return[];let h=r==="image"||r==="link"||r==="colour"?r:void 0;return[{key:s,label:i,...h?{kind:h}:{},...l===!0?{multiline:!0}:{},...typeof d=="string"&&d?{alt:d}:{},...typeof m=="string"&&m?{next:m}:{}}]});return t?n.filter(o=>(o.kind??"text")===t):n}var Ke="HostPart";var le={min:0,max:360,step:1},Ko="angle";function ey(e){let t=H(e);if(t===void 0)return null;let a=Math.min(le.max,Math.max(le.min,t));return a===le.min||a===le.max?null:{rotate:`${a}deg`}}import{MEDIA_ZONES as Vd,MEDIA_ZONE_LABELS as jd}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as Xd,hoverKindsOf as ze,motionSeconds as Xe}from"efficient-shell/format";var k="hover",iy="_gHover",zd={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},z="highlight",qd="Highlight",ry=["none",z],ly={none:zd.none,[z]:qd};function Zd(e){return e[k]===z?z:"none"}var cy="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]",dy="hover:[--fg:var(--sf-hl-ink)]! hover:[--fg-dim:inherit]! hover:[--site-line:inherit]! hover:[color:inherit]! active:[--fg:var(--sf-hl-ink)]! active:[--fg-dim:inherit]! active:[--site-line:inherit]! active:[color:inherit]!";function hy(e,t){return Zd(e)!==z?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var Qd=ze(["none","lift"]);function uy(e){let t=e[k];return Qd.includes(t)?t:"none"}var Xo=ze(["none","nextImage","rotate"]),O={kind:k,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},na="spinOnHover",Vo=le,zo={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},my=Object.keys(zo);function Jd(e){return zo[e]??"none"}var eh=Xd.rotateFallbackDeg,th=e=>e==="rendering"?"renderings":e,ah=e=>e==="renderings"?"rendering":e,qo=Object.freeze(Vd.filter(e=>e!=="videos").map(th)),py=Object.freeze(Object.fromEntries(qo.map(e=>[e,jd[ah(e)]]))),nh=["finish","first"],fy={finish:"Same finish",first:"First group"},oh=["card","picture"],wy={card:"Whole card",picture:"Picture"},ea={kind:"photos",group:"finish",cover:"card"},ta=(e,t,a)=>e.includes(t)?t:a;function Zo(e){return{kind:ta(qo,e[O.mediaKind],ea.kind),group:ta(nh,e[O.mediaGroup],ea.group),cover:ta(oh,e[O.cover],ea.cover)}}function gy(){return{field:O.kind,is:"nextImage"}}function sh(e,t){let a=e[O.kind];if(Xo.includes(a))return a;let n=e[na];return typeof n=="boolean"?n?"rotate":"none":t}function ih(e){let t=H(e);return t===void 0?eh:Math.min(Vo.max,Math.max(Vo.min,t))}function by(e,t){let a=Jd(t),n=sh(e,a);return{kind:n,angle:n==="rotate"?ih(e[O.angle]):null,duration:Xe("hover","duration",n==="rotate"?e[O.duration]:void 0),delay:Xe("hover","delay",n==="rotate"?e[O.delay]:void 0),...n==="nextImage"?{media:Zo(e)}:{}}}function yy(e){let t={field:O.kind,in:[...Xo]};return{any:[{field:O.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:na,is:!1}}:{field:na,is:!0}]}]}}var Qo=ze(["none","mono"]),rh=ze(["none","nextImage","mono"]),Jo={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Ey=Object.keys(Jo);function lh(e){return Jo[e]??"none"}var es={zoom:"hoverZoom",darken:"hoverDarken"},aa={min:100,max:150,step:1,unit:"%"};function ch(e){let t=H(e[es.zoom]);if(t===void 0)return null;let a=Math.min(aa.max,Math.max(aa.min,t));return a===aa.min?null:String(a/100)}function dh(e){let t=H(e[es.darken]);return t!==void 0&&t>0?t:null}var vy="hoverShow",Sy="cardHover",_y="always",hh=["ImageBlock","Flex"];function uh(e,t,a=Qo){let n=e[k];return a.includes(n)?n:t}function Ty(e,t=""){let a=hh.includes(t)?rh:Qo,n=uh(e,lh(t),a),o=n==="mono";return{kind:n,duration:Xe("hover","duration",o?e[O.duration]:void 0),delay:Xe("hover","delay",o?e[O.delay]:void 0),...n==="nextImage"?{media:Zo(e),...t==="Flex"?jo(e):{}}:jo(e)}}function jo(e){let t=ch(e),a=dh(e);return{...t?{zoom:t}:{},...a?{darken:a}:{}}}function xy(){return{not:{field:k,is:"nextImage"}}}function Oy(e){return e==="none"?{field:k,in:["mono","nextImage"]}:{not:{field:k,is:"none"}}}function ky(e){return e==="none"?{field:k,is:"mono"}:{not:{field:k,in:["none","nextImage"]}}}var Cy=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),ts=()=>({_partStyles:{text:{...Wt,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var mh={...y,gap:12,gapPhone:12,...D(32,32,28,28)},ph={textStyle:"heading-3",...v("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},ve={textStyle:"body-1",...v("body",15),lineHeight:1.6},f=(e,t,a,n=!1)=>({type:"Text",props:{...t,text:"",[E]:e,_partStyles:{text:{...n?ts()._partStyles?.text??{}:{},...a}}}}),re={title:"title",body:"body"},Ue={title:"name",body:"note"},fh=(e=re)=>({type:w,props:{...mh,name:"Card"},slots:{[p]:[f(e.title,{...b,tag:"p",widthFit:"fill"},ph),f(e.body,{...x,tag:"p",widthFit:"fill"},ve)]}}),po=(e,t)=>S([fh(t)],e),as={label:re.title,href:"href"},wh={textStyle:"body-1",fontRole:"heading",color:"text",...v("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},gh=ho(9,"main",{[Ko]:45}),bh=(e=!1)=>({type:w,props:{...y,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...D(32,28),[C]:as.href,...e?{[k]:z}:{}},slots:{[p]:[{type:w,props:{...gh,name:"Mark"}},f(as.label,{...b,tag:"p",widthFit:"fill"},wh)]}}),fo=e=>(t,a)=>a==="0"?`${e}~card`:`${e}~card.${a.slice(2)}`,wo=(e,t=!1)=>S([bh(t)],e);import{parseHexColor as yh}from"efficient-shell/format";var oa=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],Eh=oa.filter(e=>e.ink);function ns(e){let t={color:e.fg};for(let{role:a,token:n}of Eh)t[n]=e[a];return t}var vh={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},Sh=Object.freeze(ns(vh)),_h={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},Th=Object.freeze(ns(_h));function Wy(e,t){let a=e?yh(e):null;return a?Ja(a,t)?Sh:Th:null}var os=-1,xh="sf-section-accent",$y="Color",ss=new Set(["CategoryBar","DocTabs"]),Ky=new Set(["Flex"]),Oh=0;function kh(e){return e===os?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Oh}function Vy(e){return e??os}function Ah(e){let t=`--theme-preset-${e}`,a={"--sf-sec-accent":`var(${t}-accent)`,"--sf-sec-accent-2":`var(${t}-accent-2)`,"--sf-sec-accent-ink":`var(${t}-accent-ink)`};for(let{role:n}of oa)a[`--sf-sec-${n}`]=`var(${t}-${n}, var(--theme-${n}))`;return a}function jy(e){let t=kh(e.sectionAccent);return t===null?null:{className:xh,style:Ah(t)}}import{FOLLOW_RULES as Ch,resolveViewValue as Lh,viewKeyAt as Nh}from"efficient-easel/screen/lib/content/view-tiers";var sa={desktop:"desktop",tablet:"tablet",phone:"mobile"},Rh=Object.keys(sa);function is(e){return sa[e??"desktop"]}function zy(e){return Rh.find(t=>sa[t]===e)??"desktop"}var la=["desktop","tablet","phone"],ra=(e,t)=>Nh(e,is(t)),rs=e=>e.flatMap(t=>la.map(a=>ra(t,a))),ia=e=>e===null||e===""?void 0:e,Ih=(e,t,a)=>Lh("same",ia(e),ia(t),ia(a),Ch);function ls(e,t,a,n=e[t]){return Ih(n,e[ra(t,"tablet")],e[ra(t,"phone")])[a]}import{createContext as Fs,createElement as Te,useContext as xe}from"react";import{Fragment as vu,jsx as L}from"react/jsx-runtime";import{createContext as ya,useContext as N}from"react";import{jsx as de,Fragment as Es}from"react/jsx-runtime";import{createContext as zh,useContext as vs,useEffect as qh,useRef as Zh,useState as Qh}from"react";import{SCROLL_ZOOM_VAR as bs}from"efficient-shell/format";import{readEntrance as Hh}from"efficient-shell/format";var Se={kind:"entrance",from:"entranceFrom",duration:"entranceDuration",delay:"entranceDelay"},ca="sectionAnimation",Ph=rs(Object.values(Se));var cs="sf-entrance",Dh=e=>e!=null&&e!=="";function Bh(e,t){let a=e[Se[t]];return t==="kind"&&!Dh(a)?e[ca]:a}var qe=(e,t,a)=>ls(e,Se[t],a,Bh(e,t));function da(e,t){return Hh(qe(e,"kind",t),qe(e,"from",t),qe(e,"duration",t),qe(e,"delay",t))}var Mh=e=>({desktop:da(e,"desktop"),tablet:da(e,"tablet"),phone:da(e,"phone")});function lE(e){let t=Mh(e);return la.every(a=>t[a].kind==="none")?null:t}var Fh={...Object.fromEntries([...ss].map(e=>[e,"a root position: sticky bar; an outer box becomes its sticky containing block and the pin collapses (the same fact every wrapper pass excludes it for, lib/content/section-surface)"])),HeroSlide:"a slide is a direct child of the Hero's transform track ([&>*]:basis-full); a wrapper would take its width, and the Hero already moves one slide in at a time",HeroGroup:"a slide box is placed by grid-item properties on its own root (--sf-hg-row, justify-self); a wrapper becomes the grid item and the box loses its anchor (lib/document/blocks/general/HeroGroup/meta)",[Ke]:"a host part draws its data block's answer with no element of its own (lib/content/card-template HOST_PART_TYPE); a wrapper would be one, and the host's content is not the merchant's to animate"},cE=new Set(Object.keys(Fh));function ds(e,t,a,n){return t<=0?1/0:n?2*(e-4)/(t+a):2*(e-a/2-4)/t}function hs(e,t,a){let n=r=>r.width>0&&r.height>0;if(!n(e)||t.some(r=>r.mark&&!n(r.rect)))return 1;let o=e.left+e.width/2,s=e.top+e.height/2,i=a;for(let{rect:r,mark:l}of t){let d=Math.abs(r.left+r.width/2-o),m=Math.abs(r.top+r.height/2-s),h=Math.max(ds(d,e.width,r.width,l),ds(m,e.height,r.height,l));i=Math.min(i,Math.max(1,h))}return i}var us=["cover","contain"],Gh={cover:"Cover",contain:"Contain"},uE="Image fit";function ha(e,t){return us.includes(e)?e:t}function mE(){return us.map(e=>({label:Gh[e],value:e}))}function pE(e){return e==="contain"?"object-contain":"object-cover"}function ua(e,t){return e!=="auto"&&t==="cover"}function Ze(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}function bE(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"screen":return"aspect-[16/10]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";default:return"aspect-square"}}var Qe=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"screen",image:"16/10",ratio:[16,10],label:"Screen 16:10"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"}];function yE(e){return Qe.filter(t=>e.includes(t.shape))}function EE(e){return e==="below"}var vE=`linear-gradient(180deg, transparent 40%, ${Ze(.85)} 100%)`,SE=`linear-gradient(0deg, transparent 40%, ${Ze(.85)} 100%)`,_E=Ze(.45);var Wh=Qe.map(e=>e.image),B="fill",AE={label:"Fill row",value:B,showWhen:to},ma="4/3",ms={frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},fs={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:ms,tablet:ms,desktop:{frame:"view-desktop:h-full view-desktop:min-h-[240px] max-view-desktop:aspect-[4/3]",img:"view-desktop:absolute view-desktop:inset-0",figure:"view-desktop:h-full"}};function RE(e,t,a){return t&&!ce(a)?"all":e??"wide"}function ps(e){return fs[e]}var CE=fs.all;function ws(e){return e?`${e.img} h-full w-full`:"relative h-full w-full"}var Uh={auto:"","3/4":"aspect-[3/4]","2/1":"aspect-[2/1]","21/9":"aspect-[21/9]","16/9":"aspect-[16/9]","4/3":"aspect-[4/3]","16/10":"aspect-[16/10]","1/1":"aspect-square","9/16":"aspect-[9/16]","2/3":"aspect-[2/3]","4/5":"aspect-[4/5]"},Yh={auto:"","3/4":"view-wide:aspect-[3/4]","2/1":"view-wide:aspect-[2/1]","21/9":"view-wide:aspect-[21/9]","16/9":"view-wide:aspect-[16/9]","4/3":"view-wide:aspect-[4/3]","16/10":"view-wide:aspect-[16/10]","1/1":"view-wide:aspect-square","9/16":"view-wide:aspect-[9/16]","2/3":"view-wide:aspect-[2/3]","4/5":"view-wide:aspect-[4/5]"},$h={auto:"","3/4":"max-view-wide:aspect-[3/4]","2/1":"max-view-wide:aspect-[2/1]","21/9":"max-view-wide:aspect-[21/9]","16/9":"max-view-wide:aspect-[16/9]","4/3":"max-view-wide:aspect-[4/3]","16/10":"max-view-wide:aspect-[16/10]","1/1":"max-view-wide:aspect-square","9/16":"max-view-wide:aspect-[9/16]","2/3":"max-view-wide:aspect-[2/3]","4/5":"max-view-wide:aspect-[4/5]"},Kh={auto:"max-view-wide:aspect-auto!","3/4":"max-view-wide:aspect-[3/4]!","2/1":"max-view-wide:aspect-[2/1]!","21/9":"max-view-wide:aspect-[21/9]!","16/9":"max-view-wide:aspect-[16/9]!","4/3":"","16/10":"max-view-wide:aspect-[16/10]!","1/1":"max-view-wide:aspect-square!","9/16":"max-view-wide:aspect-[9/16]!","2/3":"max-view-wide:aspect-[2/3]!","4/5":"max-view-wide:aspect-[4/5]!"},pa=e=>Wh.includes(e),ce=pa;function LE(e){let t=pa(e)?Qe.find(a=>a.image===e)?.ratio:null;return t?`${t[0]} / ${t[1]}`:null}function NE(e,t,a){return a==="contain"?!0:[e,t??e].every(n=>n!==B&&(!pa(n)||n==="auto"))}function IE(e,t){return e===B&&!t?ma:e}function PE(e){return e===B?ma:ce(e)?e:void 0}function gs(e,t){return ce(t)?t===e?null:t:e===B?ma:null}function Vh(e,t){let a=gs(e,t);return ua(e,"cover")||a!==null&&ua(a,"cover")}function jh(e,t,a){return ha(e,"cover")==="cover"&&Vh(t,a)}function HE(e,t,a,n){return e==="desktop"?jh(t,a,n):ha(t,"cover")!=="cover"?!1:Xh(e==="tablet"?a:gs(a,n)??a)}var Xh=e=>e===B||ce(e)&&e!=="auto";function DE(e,t,a="wide"){return e===B&&a==="all"?ps("all").frame:t===null?ce(e)?Uh[e]:"":[e===B?ps(a).frame:ce(e)?Yh[e]:"",e===B&&a==="desktop"?Kh[t]:$h[t]].filter(Boolean).join(" ")}var et=zh(null);function $E({attrs:e,style:t,children:a}){return de(et.Provider,{value:{attrs:e,style:t},children:a})}function Ss({children:e}){return de(et.Provider,{value:null,children:e})}function KE({fill:e=null,children:t}){let a=vs(et);return a?de("div",{className:ws(e),...a.attrs,style:a.style,children:t}):de(Es,{children:t})}var Je="data-sf-mark";function ys(e){let t=e.getBoundingClientRect(),a=e.firstElementChild,n=a&&typeof a.offsetWidth=="number"?a:e,o=Math.max(n.offsetWidth,e.offsetWidth),s=Math.max(n.offsetHeight,e.offsetHeight);return{left:t.left+t.width/2-o/2,top:t.top+t.height/2-s/2,width:o,height:s}}function Jh(e){return e.closest(`[${Je}]`)||e.closest("style, script")?!1:[...e.childNodes].some(t=>t.nodeType===3&&(t.textContent??"").trim()!=="")}var _s=e=>e.closest(`.${cs}`)??e.ownerDocument.body;function eu(e,t){let a=_s(e),n=[];for(let o of a.querySelectorAll(`[${Je}]`))o!==e&&n.push({rect:ys(o),mark:!0});for(let o of a.querySelectorAll("*")){if(o.contains(e)||!Jh(o))continue;let s=o.getBoundingClientRect();s.width===0||s.height===0||n.push({rect:{left:s.left,top:s.top,width:s.width,height:s.height},mark:!1})}return hs(ys(e),n,t)}function VE({inCell:e=!1,children:t}){let a=vs(et),n=Zh(null),[o,s]=Qh(null),i=a?Number.parseFloat(String(a.style[bs])):Number.NaN;if(qh(()=>{let l=n.current;if(!l||!Number.isFinite(i))return;let d=()=>s(eu(l,i));d();let m=l.ownerDocument.defaultView?.ResizeObserver;if(!m)return;let h=new m(d),I=_s(l);h.observe(l),h.observe(I);for(let P of I.querySelectorAll(`[${Je}]`))P!==l&&h.observe(P);return()=>h.disconnect()},[i]),!a)return de(Es,{children:t});let r=Number.isFinite(i)?{...a.style,[bs]:String(o??1)}:a.style;return de("span",{ref:n,className:e?"inline-flex min-w-0 max-w-full items-center justify-center":"inline-flex items-center justify-center",[Je]:"",...a.attrs,style:r,children:t})}import{FOLLOW_RULES as tu,resolveViewValue as au}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as nu}from"efficient-easel/screen/lib/content/length-units";var ou=["auto","fixed","screen","fill"],su=nu.filter(e=>e==="px"||e==="%"),iu="svh",ru="vh",lu="var(--sf-header-h, 88px)",cu={min:40,max:2e3,step:10,fallback:600},du={min:10,max:200,step:5,fallback:100},hu="sf-section-minh",_e="grid-cols-[minmax(0,1fr)]",Ts={base:"--sf-section-minh",small:"--sf-section-minh-s"},wa=e=>typeof e=="string"&&ou.includes(e),uu=e=>typeof e=="string"&&su.includes(e);function tt(e){let t=wa(e.sectionHeightMode)?e.sectionHeightMode:"auto",a=t==="screen"?"%":uu(e.sectionHeightUnit)?e.sectionHeightUnit:"px",n=t==="screen"?du.fallback:cu.fallback,o=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:n;return{mode:t,value:o,unit:a}}function ks(e){let{mode:t,value:a,unit:n}=tt(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&n==="px")return[`${a}px`,null];let o=a/100,s=i=>t==="screen"?`(100${i} - ${lu})`:`100${i}`;return[`calc(${s(ru)} * ${o})`,`calc(${s(iu)} * ${o})`]}function As(e){let t=ks(e);if(!t)return;let[a,n]=t;return{display:"grid",[Ts.base]:a,...n?{[Ts.small]:n}:{}}}var qE=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ZE="Height",Rs="sf-section-minh-phone",xs={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Cs(e){return wa(e.sectionHeightModePhone)}function mu(e){return tt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var Ls="sf-section-minh-tablet",Os={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function Ns(e){return wa(e.sectionHeightModeTablet)}function pu(e){return tt({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function ga(e){let t=As(e),a=(r,l,d)=>ks({sectionHeightMode:r,sectionHeightValue:l,sectionHeightUnit:d})??(t?["auto",null]:void 0),n=Ns(e)?a(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,o=Cs(e)?a(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):n;if(!t&&!n&&!o)return null;let s=[hu,_e],i={...t??{}};return n&&(s.push(Ls),i[Os.base]=n[0],n[1]&&(i[Os.small]=n[1])),o&&(s.push(Rs),i[xs.base]=o[0],o[1]&&(i[xs.small]=o[1])),{className:s.join(" "),style:i}}function QE(e){return ga(e)!==null||at(e).length>0}var fa=`grid ${_e}`,Is="h-full",fu="view-tablet:max-view-desktop:grid",Ps="max-view-tablet:grid",wu="view-wide:max-view-desktop:grid",gu="max-view-wide:grid",bu=`${Ps} ${_e}`;function JE(e,{atSectionLine:t=!1}={}){if(at(e).length>0)return fa;let a=ga(e);if(!a)return"";if(As(e))return fa;let n=a.className.split(" "),o=t?fu:wu,s=t?Ps:gu;if(!n.includes(Ls))return t?bu:`${s} ${_e}`;let i=n.includes(Rs);return[o,i?s:"",_e].filter(Boolean).join(" ")}var Hs="data-sf-height-fill",yu=["desktop","tablet","mobile"],Eu={desktop:"view-desktop:[.flex-col>&]:grow! view-desktop:[.flex-row>&]:self-stretch",tablet:"view-wide:max-view-desktop:[.flex-col>&]:grow! view-wide:max-view-desktop:[.flex-row>&]:self-stretch",mobile:"max-view-wide:[.flex-col>&]:grow!"};function at(e){let t=e,a=au("heightMode",tt(t).mode,Ns(t)?pu(t).mode:null,Cs(t)?mu(t).mode:null,tu),n={desktop:a.desktop==="fill",tablet:a.tablet==="fill",mobile:a.phone==="fill"};return yu.filter(o=>n[o])}function ev(e){return at(e).map(t=>Eu[t]).join(" ")}function tv(e){let t=ga(e);return at(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:fa}}var Ds={stretchedRow:!1,fillingColumn:!1},A=ya(null),Bs=()=>N(A)!==null;function cv({line:e,draw:t}){return L(vu,{children:t(be(e,Bs()))})}var dv=(e="by-box")=>be(e,Bs()),hv=()=>N(A),uv=()=>N(A)?.id??null,G=ya(!1);function Su(){let e=N(A)?.stretchedRow===!0,t=N(G);return e&&!t}var _u=()=>N(G);function Tu(){let e=N(A),t=Su(),a=_u();return{fill:a?` ${Is}`:"",inner:n=>{let o=t||a?L(G.Provider,{value:!0,children:n}):n;return e?.columnsRow?L(A.Provider,{value:{...e,columnsRow:!1},children:o}):o}}}function mv({className:e,style:t,attrs:a,children:n}){let{fill:o,inner:s}=Tu(),i=Ea();return i.scope(L("div",{className:va(`${e}${o}`,i.className),...t?{style:t}:{},...a,...i.attrs,children:s(n)}))}var ba=ya(!1);function pv({children:e}){return L(ba.Provider,{value:!0,children:L(G.Provider,{value:!0,children:e})})}function fv({children:e,ownPictures:t=!1}){let a=N(A),n=N(ba),o=N(G),s=n&&o,i=a===null?null:a.id===void 0?Ds:{...Ds,id:a.id};return L(A.Provider,{value:i,children:L(ba.Provider,{value:!1,children:L(G.Provider,{value:s,children:t?e:L(Ss,{children:e})})})})}var nt=Fs(null),Ms="data-sf-view-hide",Gs=e=>Te(nt.Provider,{value:null},e),Ws={className:"",attrs:{},scope:Gs},xu=Ws,Us=Fs(null),vv=(e,t)=>e?{className:e,views:t}:null,Ou=e=>Te(nt.Provider,{value:null},Te(Us.Provider,{value:null},Te(G.Provider,{value:!0},e))),Sv=(e,t,a={})=>e?{className:e,words:t,...a}:null,Ys=(e,t)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:be(e.line??"by-box",t)?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function Ea(){let e=xe(nt),t=xe(Us),a=xe(A)!==null;if(e===null&&t===null)return xu;let n=e===null?null:Ys(e,a);return t===null?{className:n.className,attrs:{[Ms]:n.words},scope:Gs}:{className:n?`${n.className} ${t.className}`:t.className,attrs:{...n?{[Ms]:n.words}:{},[Hs]:t.views},scope:Ou}}function _v(){let e=xe(nt),t=xe(A)!==null;return e===null?"":Ys(e,t).className}var va=(e,t)=>t?e?`${e} ${t}`:t:e;function Tv(e){let t=Ea(),a=e.takes===!1?Ws:t,n={},o=!1;for(let[s,i]of Object.entries(e))s==="as"||s==="takes"||s==="children"||(s==="className"?(n.className=va(i,a.className),o=!0):n[s]=i);return!o&&a.className&&(n.className=a.className),a.scope(Te(e.as??"div",{...n,...a.attrs},e.children))}var Ov={small:54,medium:66,large:84},ku=44,Au=16,Ru=140,kv={min:Au,max:Ru,step:1},Av=ku*4;import{forwardRef as Cu}from"react";import{imageCopyUrl as $s,imageSrcSet as Ks}from"efficient-shell/image-copies";import{jsx as Iu}from"react/jsx-runtime";var Lu={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"};function Vs(e,t,a){if(a){let n=Ks(e);return n?{src:$s(e,1280),srcSet:n,sizes:a}:{src:e,sizes:a}}if(t&&t>0){let n=Ks(e,{maxWidth:t*3});return n?{src:$s(e,t*2),srcSet:n,sizes:`${t}px`}:{src:e}}return{src:e}}var Nu=Cu(function({src:t,width:a,height:n,fill:o,priority:s,loading:i,style:r,quality:l,placeholder:d,blurDataURL:m,unoptimized:h,loader:I,overrideSrc:P,sizes:W,...Oe},ot){let ke=P??(typeof t=="string"?t:t.src),st=Vs(ke,o?void 0:Number(a)||void 0,W??(o?"100vw":void 0));return Iu("img",{ref:ot,...st,width:o?void 0:a,height:o?void 0:n,loading:s?"eager":i??"lazy",fetchPriority:s?"high":void 0,decoding:"async",style:o?{...Lu,...r}:{color:"transparent",...r},...Oe})}),Nv=Nu;function Iv(e){let t=e.overrideSrc??(typeof e.src=="string"?e.src:e.src.src),a=e.fill?void 0:Number(e.width)||void 0;return{props:Vs(t,a,e.sizes??(e.fill?"100vw":void 0))}}export{oe as a,g as b,Gl as c,yf as d,Wl as e,Ef as f,vf as g,Sf as h,_f as i,Tf as j,xf as k,It as l,Ul as m,Of as n,kf as o,Hn as p,Me as q,Af as r,Rf as s,T as t,jl as u,Cf as v,pe as w,te as x,lp as y,ae as z,cp as A,Kr as B,dp as C,hp as D,up as E,mp as F,Xr as G,De as H,bp as I,p as J,w as K,Bn as L,Pf as M,Hf as N,me as O,Fm as P,Ot as Q,Gm as R,Wm as S,Um as T,Ym as U,Hr as V,U as W,Dr as X,Vm as Y,vp as Z,Sp as _,Zr as $,_p as aa,Tp as ba,Pp as ca,Ct as da,yl as ea,Sn as fa,Fp as ga,Gp as ha,Wp as ia,Tn as ja,Up as ka,Yp as la,$p as ma,H as na,le as oa,Ko as pa,ey as qa,k as ra,iy as sa,zd as ta,z as ua,qd as va,ry as wa,ly as xa,cy as ya,dy as za,hy as Aa,Qd as Ba,uy as Ca,Xo as Da,O as Ea,na as Fa,my as Ga,Jd as Ha,eh as Ia,qo as Ja,py as Ka,nh as La,fy as Ma,oh as Na,wy as Oa,ea as Pa,gy as Qa,sh as Ra,ih as Sa,by as Ta,yy as Ua,Qo as Va,rh as Wa,Ey as Xa,lh as Ya,es as Za,aa as _a,vy as $a,Sy as ab,_y as bb,hh as cb,uh as db,Ty as eb,xy as fb,Oy as gb,ky as hb,Wn as ib,Fn as jb,Mf as kb,Ff as lb,Gf as mb,dc as nb,Fe as ob,Vf as pb,jf as qb,Xf as rb,Un as sb,Ge as tb,zf as ub,fc as vb,qf as wb,Ht as xb,wc as yb,Qf as zb,Yn as Ab,Jf as Bb,ye as Cb,yc as Db,Ec as Eb,vc as Fb,Kn as Gb,nw as Hb,Vn as Ib,ow as Jb,jn as Kb,rw as Lb,Xn as Mb,K as Nb,lw as Ob,cw as Pb,dw as Qb,Qn as Rb,ie as Sb,bw as Tb,Oc as Ub,Nc as Vb,yw as Wb,Ew as Xb,Bt as Yb,vw as Zb,Sw as _b,Ic as $b,Tw as ac,xw as bc,Ow as cc,kw as dc,Bc as ec,Fc as fc,Aw as gc,Rw as hc,Cw as ic,Lw as jc,Nw as kc,Iw as lc,Pw as mc,Hw as nc,Dw as oc,oo as pc,so as qc,Bw as rc,Mw as sc,Fw as tc,Gw as uc,Ww as vc,Vc as wc,Uw as xc,Yw as yc,lo as zc,$w as Ac,Kw as Bc,jc as Cc,Vw as Dc,jw as Ec,co as Fc,b as Gc,x as Hc,qc as Ic,y as Jc,D as Kc,Zc as Lc,ho as Mc,v as Nc,eg as Oc,Wt as Pc,Ut as Qc,tg as Rc,S as Sc,Cy as Tc,ts as Uc,ve as Vc,f as Wc,re as Xc,Ue as Yc,fh as Zc,po as _c,as as $c,bh as ad,fo as bd,mo as cd,yo as dd,Yt as ed,nd as fd,vo as gd,id as hd,vg as id,xg as jd,Og as kd,kg as ld,Ag as md,To as nd,Rg as od,Cg as pd,Lg as qd,dd as rd,Dg as sd,Bg as td,xo as ud,Mg as vd,Oo as wd,Fg as xd,Gg as yd,Ug as zd,Yg as Ad,$g as Bd,Kg as Cd,ko as Dd,Vg as Ed,jg as Fd,$t as Gd,zg as Hd,ob as Id,wd as Jd,yd as Kd,F as Ld,wb as Md,Do as Nd,Bo as Od,$e as Pd,E as Qd,C as Rd,Lb as Sd,Fo as Td,Go as Ud,Nb as Vd,Ib as Wd,Ld as Xd,Pb as Yd,Hb as Zd,Db as _d,Bb as $d,Mb as ae,Fb as be,Gb as ce,Id as de,Pd as ee,Wb as fe,Hd as ge,Bd as he,Wo as ie,Uo as je,Ub as ke,Jt as le,Yb as me,$b as ne,Zt as oe,Kb as pe,Vb as qe,Gd as re,Wd as se,$o as te,Ud as ue,jb as ve,Yd as we,$d as xe,Xb as ye,zb as ze,qb as Ae,Zb as Be,Ke as Ce,ct as De,dt as Ee,$u as Fe,Ku as Ge,$i as He,ht as Ie,Vu as Je,Ki as Ke,ju as Le,Xu as Me,Zu as Ne,tm as Oe,am as Pe,nm as Qe,om as Re,yt as Se,Et as Te,sm as Ue,q as Ve,Qi as We,Qa as Xe,im as Ye,rm as Ze,Q as _e,Z as $e,ar as af,lm as bf,cm as cf,Ie as df,Ja as ef,dm as ff,hm as gf,um as hf,St as if,mm as jf,en as kf,lr as lf,pm as mf,fm as nf,wm as of,dr as pf,gm as qf,bm as rf,ym as sf,Em as tf,vm as uf,Sm as vf,_t as wf,gr as xf,_m as yf,Tm as zf,Pe as Af,rn as Bf,Er as Cf,xm as Df,Tt as Ef,qa as Ff,Om as Gf,km as Hf,vr as If,Sr as Jf,ln as Kf,He as Lf,xr as Mf,Or as Nf,kr as Of,cn as Pf,Ar as Qf,dn as Rf,Cm as Sf,Lm as Tf,Nm as Uf,Im as Vf,ue as Wf,hn as Xf,Pm as Yf,Hm as Zf,xt as _f,un as $f,Dm as ag,Bm as bg,oa as cg,Eh as dg,Sh as eg,Wy as fg,os as gg,$y as hg,ss as ig,Ky as jg,Oh as kg,kh as lg,Vy as mg,Ah as ng,jy as og,Be as pg,kn as qg,On as rg,_l as sg,Tl as tg,xl as ug,jp as vg,Ol as wg,Xp as xg,fe as yg,zp as zg,qp as Ag,Zp as Bg,Al as Cg,Rn as Dg,Qp as Eg,Jp as Fg,Cl as Gg,ef as Hg,Ze as Ig,bE as Jg,Qe as Kg,yE as Lg,EE as Mg,sa as Ng,is as Og,zy as Pg,la as Qg,ra as Rg,rs as Sg,Ih as Tg,ls as Ug,Se as Vg,ca as Wg,Ph as Xg,cs as Yg,da as Zg,Mh as _g,lE as $g,cE as ah,Gh as bh,uE as ch,ha as dh,mE as eh,pE as fh,B as gh,AE as hh,RE as ih,ps as jh,CE as kh,ws as lh,LE as mh,NE as nh,IE as oh,PE as ph,gs as qh,Vh as rh,jh as sh,HE as th,DE as uh,$E as vh,Ss as wh,KE as xh,VE as yh,ou as zh,cu as Ah,du as Bh,_e as Ch,tt as Dh,qE as Eh,ZE as Fh,Cs as Gh,Ns as Hh,pu as Ih,QE as Jh,fa as Kh,Is as Lh,JE as Mh,at as Nh,ev as Oh,tv as Ph,A as Qh,cv as Rh,dv as Sh,hv as Th,uv as Uh,G as Vh,Su as Wh,_u as Xh,Tu as Yh,mv as Zh,pv as _h,fv as $h,nt as ai,Ws as bi,Us as ci,vv as di,Sv as ei,Ea as fi,_v as gi,va as hi,Tv as ii,Ov as ji,ku as ki,Au as li,kv as mi,Av as ni,Nv as oi,Iv as pi,nf as qi,Ka as ri,Mu as si,Jm as ti,Ur as ui,ep as vi,tp as wi,ap as xi,np as yi,Bl as zi,rf as Ai,Ln as Bi,Ml as Ci,Fl as Di,cf as Ei,df as Fi,hf as Gi};
|