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