efficient-storefront-blocks 0.101.0 → 0.109.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (90) hide show
  1. package/CHANGELOG.md +146 -0
  2. package/dist/chunks/{EditorPreviewCheckout-JMBBJSI7.js → EditorPreviewCheckout-IVYEDVVN.js} +1 -1
  3. package/dist/chunks/{SiteEditorProvider-BKZW7KVN.js → SiteEditorProvider-KN5FKGBX.js} +1 -1
  4. package/dist/chunks/chunk-5VN7IA5L.js +1 -0
  5. package/dist/chunks/chunk-G5XZ736Y.js +339 -0
  6. package/dist/chunks/{chunk-YSKMBJ7V.js → chunk-UBOGEIFX.js} +1 -1
  7. package/dist/chunks/chunk-X3ERHC7Y.js +1 -0
  8. package/dist/chunks/{fitment-data-HMD5DDDB.js → fitment-data-Z3FDYFU6.js} +1 -1
  9. package/dist/editor/components/HeaderSettingsPanel.js +1 -1
  10. package/dist/editor/components/MenuPicker.js +1 -1
  11. package/dist/editor/lib/document/blocks/service/SignUp/fields.d.ts +2 -0
  12. package/dist/editor/lib/document/blocks/service/SignUp/fields.js +1 -0
  13. package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
  14. package/dist/editor/lib/document/blocks/service/index.js +1 -1
  15. package/dist/editor/lib/document/box-header.d.ts +3 -4
  16. package/dist/editor/lib/document/box-header.js +1 -1
  17. package/dist/editor/lib/document/config.js +1 -1
  18. package/dist/editor/lib/storefront-editor-words.d.ts +18 -0
  19. package/dist/editor/lib/storefront-editor-words.js +1 -1
  20. package/dist/index.js +30 -30
  21. package/dist/render/app/globals.css +428 -145
  22. package/dist/render/built-with.json +1 -1
  23. package/dist/render/components/CartContext.d.ts +1 -1
  24. package/dist/render/components/CartContext.js +1 -1
  25. package/dist/render/components/FooterGroup.js +1 -1
  26. package/dist/render/components/FooterLogo.js +1 -1
  27. package/dist/render/components/Header.js +1 -1
  28. package/dist/render/components/HeaderDropdownPanel.d.ts +21 -0
  29. package/dist/render/components/HeaderDropdownPanel.js +1 -0
  30. package/dist/render/components/HeaderNavItem.d.ts +5 -5
  31. package/dist/render/components/HeaderNavItem.js +1 -1
  32. package/dist/render/components/MenuLinkBlock.js +1 -1
  33. package/dist/render/components/ProductGridSection.js +1 -1
  34. package/dist/render/components/ProductHeroPanel.d.ts +1 -1
  35. package/dist/render/components/ProductHeroPanel.js +1 -1
  36. package/dist/render/components/SignUpFind.d.ts +25 -0
  37. package/dist/render/components/SignUpFind.js +1 -0
  38. package/dist/render/components/SignUpLink.d.ts +13 -0
  39. package/dist/render/components/SignUpLink.js +1 -0
  40. package/dist/render/components/SignUpSection.d.ts +47 -0
  41. package/dist/render/components/SignUpSection.js +1 -0
  42. package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
  43. package/dist/render/components/card-pieces/CardQuantity.d.ts +1 -0
  44. package/dist/render/components/card-pieces/CardQuantity.js +1 -0
  45. package/dist/render/components/card-pieces/CardSave.d.ts +1 -0
  46. package/dist/render/components/card-pieces/CardSave.js +1 -0
  47. package/dist/render/components/card-pieces/CardStatedFacts.d.ts +1 -0
  48. package/dist/render/components/card-pieces/CardStatedFacts.js +1 -0
  49. package/dist/render/components/card-pieces/ProductCardState.d.ts +9 -0
  50. package/dist/render/components/wheels-plp/useVehicleCatalog.js +1 -1
  51. package/dist/render/lib/api/index.d.ts +31 -8
  52. package/dist/render/lib/api/index.js +1 -1
  53. package/dist/render/lib/api/types.d.ts +12 -0
  54. package/dist/render/lib/catalog/plp-vehicle-slice.d.ts +2 -2
  55. package/dist/render/lib/catalog/plp-vehicle-slice.js +1 -1
  56. package/dist/render/lib/document/blocks/service/ContactCards/meta.d.ts +1 -1
  57. package/dist/render/lib/document/blocks/service/SignUp/meta.d.ts +6 -0
  58. package/dist/render/lib/document/blocks/service/SignUp/meta.js +1 -0
  59. package/dist/render/lib/document/blocks/service/SignUp/render.d.ts +4 -0
  60. package/dist/render/lib/document/blocks/service/SignUp/render.js +1 -0
  61. package/dist/render/lib/document/blocks/service/metas.d.ts +1 -0
  62. package/dist/render/lib/document/blocks/service/metas.js +1 -1
  63. package/dist/render/lib/document/blocks/service/renders.d.ts +1 -0
  64. package/dist/render/lib/document/blocks/service/renders.js +1 -1
  65. package/dist/render/lib/document/blocks/text-part-shapes.json +34 -0
  66. package/dist/render/lib/document/lazy-draws.js +1 -1
  67. package/dist/render/lib/font-table.json +150 -0
  68. package/dist/render/lib/menu-link.d.ts +19 -2
  69. package/dist/render/lib/menu-link.js +1 -1
  70. package/dist/render/lib/next-fonts.js +1 -1
  71. package/dist/render/lib/sections/product-grid-pages.d.ts +1 -0
  72. package/dist/render/lib/sections/product-grid-pages.js +1 -1
  73. package/dist/render/lib/sections/sign-up-catalogue.d.ts +3 -0
  74. package/dist/render/lib/sections/sign-up-catalogue.js +1 -0
  75. package/dist/render/lib/sections/sign-up-look.d.ts +5 -0
  76. package/dist/render/lib/sections/sign-up-look.js +1 -0
  77. package/dist/render/lib/sections/sign-up.d.ts +205 -0
  78. package/dist/render/lib/sections/sign-up.js +1 -0
  79. package/dist/render/lib/wheels/plp-hydrate.d.ts +2 -1
  80. package/dist/render/lib/wheels/plp-hydrate.js +1 -1
  81. package/dist/render/lib/wheels/selected-ranges.d.ts +1 -0
  82. package/dist/render/lib/wheels/selected-ranges.js +1 -1
  83. package/dist/words.d.ts +20 -0
  84. package/dist/words.js +3 -3
  85. package/package.json +2 -2
  86. package/dist/chunks/chunk-AF5TRBQB.js +0 -1
  87. package/dist/chunks/chunk-GJZGQCDM.js +0 -1
  88. package/dist/chunks/chunk-KV3EHFHB.js +0 -339
  89. /package/dist/chunks/{chunk-KV3EHFHB.js.LEGAL.txt → chunk-G5XZ736Y.js.LEGAL.txt} +0 -0
  90. /package/dist/chunks/{chunk-XNUK2QNK.js → chunk-SUX7QH3R.js} +0 -0
@@ -71,4 +71,4 @@ WHAT A MERCHANT LOSES: the label as a section of its own, with its fixed head ("
71
71
  NO CONVERTER ROW: 0 EU Tyre Labels are stored on the US and AU sites (inovit_us and inovit_au, \`layout\` and \`published_layout\`; read only, 2026-11-10). Old sites stay as they are (owner, 2026-11-06).
72
72
 
73
73
  THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its width, heading level, settings groups and cover included; no document is rewritten.`},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.'}},Ur=Object.fromEntries(Object.entries(ma).map(([e,t])=>[e,t.note])),nm=["Grid","Spacer","TyreFitment"],am=Array.from(new Set([...ne.flatMap(e=>e.sections.map(t=>t.type)),...Object.keys(Ur)])),Yr=Object.fromEntries(Object.entries(ma).map(([e,t])=>[e,t.label])),om={...Yr,...Object.fromEntries(ne.flatMap(e=>e.sections.map(t=>[t.type,t.label])))},$r={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",HostPart:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CategoryBar:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",WheelDiagram:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",EuTyreLabel:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},xt={...$r,...Object.fromEntries(ne.flatMap(e=>e.sections.map(t=>[t.type,t.set])))};function sm(e){return pe(xt,e)}function Ot(e){return Object.keys(xt).filter(t=>pe(xt,t)===e).sort()}var im=Ot("general"),rm=Ot("commerce"),lm=Ot("service"),Kr="Flex",De="Box",cm=`${De}es`;function Vr(e){return e==="section"?"Blank section":De}function dm(e,t,n){return e===Kr?Vr(t):n}var Y=["highlight","strong","quiet"],$={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},R={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},pm=Object.fromEntries(Y.map(e=>[R[e].kind,e])),mm="data-sf-ws",Xr=["accent","text","labels"],jr={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},zr=80,qr=120,Zr=100,Qr=900,Jr=.5,el=3,tl=-.1,nl=.5,al=3,kt={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},ol={highlight:{...kt},strong:{...kt},quiet:{...kt}};function fa(e,t,n){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,t),n))}function ga(e,t,n){if(typeof e!="number"||!Number.isFinite(e))return null;let a=10**al;return Math.round(Math.min(Math.max(e,t),n)*a)/a}function wa(e){return typeof e=="boolean"?e:null}function sl(e){let t=typeof e?.font=="string"&&ue.some(a=>a.key===e.font)?e.font:null,n=typeof e?.colour=="string"&&Xr.includes(e.colour)?e.colour:null;return{font:t,size:fa(e?.size,zr,qr),weight:fa(e?.weight,Zr,Qr),bold:wa(e?.bold),italic:wa(e?.italic),lineGap:ga(e?.lineGap,Jr,el),textGap:ga(e?.textGap,tl,nl),colour:n}}function ba(e){let t={};for(let n of Y)t[n]=e&&n in e&&e[n]?sl(e[n]):{...ol[n]};return t}function fm(e){let t=ba(e),n={};for(let a of Y){let o=t[a],s=`--sf-ws-${a}`;if(o.font){let i=ue.find(r=>r.key===o.font);i&&(n[`${s}-font`]=`var(${i.cssVar})`)}o.size!==null&&(n[`${s}-size`]=`${o.size/100}em`),o.weight!==null&&(n[`${s}-weight`]=String(o.weight)),o.bold!==null&&(n[`${s}-weight-bold`]=o.bold?"700":"400"),o.italic!==null&&(n[`${s}-style`]=o.italic?"italic":"normal"),o.lineGap!==null&&(n[`${s}-line`]=String(o.lineGap)),o.textGap!==null&&(n[`${s}-track`]=`${o.textGap}em`),o.colour!==null&&(n[`${s}-color`]=jr[o.colour])}return n}function gm(e){let t=e?.word_styles??void 0,n={};for(let a of Y)t&&a in t&&(n[a]=t[a]??null);return ba(n)}import{applyMark as ym,markupTools as Em,MARKUP_TOOLS as Sm,COPY_FIELD_TOOLS as _m,STOREFRONT_MARKUP as Tm,tokenizeInline as vm,stripInline as xm,isSafeLinkHref as Om}from"efficient-shell/markup";import{applyMark as il,clearStyle as rl,markedAt as ll,markupTools as cl,MARKUP_TOOLS as dl,parseMarkup as hl,RETIRED_MARKS as ul,STOREFRONT_MARKUP as pl,tokenizeInline as Am}from"efficient-shell/markup";var ml=new Set(["strong"]),ya=Y.map(e=>({open:R[e].delimiter,close:R[e].delimiter,kind:R[e].kind,...ml.has(e)?{wordStart:!0}:{}})),Cm=[{style:R.highlight.kind,label:$.highlight,title:`${$.highlight} word style`},{style:R.strong.kind,label:$.strong,title:`${$.strong} word style`},{style:R.quiet.kind,label:$.quiet,title:`${$.quiet} word style`}],fl=new Set(ya.map(e=>e.open)),At=[...pl.filter(e=>!fl.has(e.open)),...ya];function gl(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Ea(e){return hl(typeof e=="string"?e:"",At)}var wl=dl.map(e=>e.style).filter(e=>!ul.includes(e)).filter(e=>At.some(t=>t.kind===e));function Lm(){return cl(wl)}var Sa=Object.fromEntries(Y.map(e=>[R[e].kind,R[e].delimiter]));function Nm(e,t,n,a){let o=Sa[a];if(!o)return il(e,t,n,a);let s=e.slice(t,n),i=e.slice(Math.max(0,t-o.length),t),r=e.slice(n,n+o.length);if(i===o&&r===o)return{text:e.slice(0,t-o.length)+s+e.slice(n+o.length),selectionStart:t-o.length,selectionEnd:t-o.length+s.length};let l=s||"styled text";return{text:e.slice(0,t)+o+l+o+e.slice(n),selectionStart:t+o.length,selectionEnd:t+o.length+l.length}}function Im(e,t,n,a){let o=Sa[a];return o?t>=o.length&&e.slice(t-o.length,t)===o&&e.slice(n,n+o.length)===o:ll(e,t,n,a)}function _a(e){return e.replace(/==(.+?)==/g,(t,n)=>n.startsWith("_")&&n.endsWith("_")?t:`==_${n}_==`)}function Pm(e){return Ea(e).map(t=>gl(t)+Ta(t.children)).join(`
74
- `)}function Hm(e,t,n){return rl(e,t,n,At)}function Ta(e){return e.map(t=>t.kind==="text"?t.text:Ta(t.children)).join("")}function Dm(e){let t=n=>n.some(a=>a.kind==="link"||"children"in a&&t(a.children));return Ea(e).some(n=>t(n.children))}import{isNodeList as bl}from"efficient-easel/data";var Be=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],xa="bottom-left",ae=4,yl=ae+1,va=40,El=30,Sl=100,_l=60,Fm=100;var Rt={"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 Tl(e){let t=Be.indexOf(me(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function vl(e){return 1+Tl(e).band*(yl+1)}function Gm(e){return vl(e)+1}function me(e){return Be.includes(e)?e:xa}function Wm(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-va,Math.min(va,Math.round(t)))}function Um(e,t=_l){let n=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(El,Math.min(Sl,Math.round(n)))}function Ct(e,t){let n=me(t);return e.filter(a=>me(a?.props?.placement)===n).length}function Oa(e){return`${Rt[me(e)]} already holds ${ae} boxes. Move one somewhere else first.`}function Ym(e,t){let n=e.filter(a=>a?.props?.id!==t);return Be.map(a=>{let o=Ct(n,a)>=ae,s=Rt[a];return o?{value:a,label:s,disabled:!0,title:Oa(a)}:{value:a,label:s}})}function xl(e,t){let n=t===void 0?xa:me(t?.props?.placement);return Ct(e,n)>=ae?Oa(n):null}var ka="HeroGroup";function Ol(e){return Be.map(t=>{let n=Ct(e,t);return{anchor:t,total:n,hidden:n-ae}}).filter(t=>t.hidden>0)}function $m(e){let t=Ol(e);return t.length===0?null:t.map(({anchor:n,total:a,hidden:o})=>{let s=Rt[n],i=o===1?"1 is not shown":`${o} are not shown`;return`${s} holds ${a} boxes. The published page draws the first ${ae}, so ${i}. ${o===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function Km(e,t){let n=t;if(n?.type!==ka)return null;let a=n.props?.id===void 0?"":String(n.props.id);return a?xl(kl(e,a),n):null}function kl(e,t){let n=Aa(e,t);return n&&n.ownerType===Rl?n.siblings:[]}function Vm(e,t){let n=Aa(e,t);return n?n.ancestorTypes.filter(a=>a===ka).length:Al}var Al=1,Rl="HeroSlide";function Aa(e,t){let n=(a,o,s)=>{if(o>12||!a||typeof a!="object")return null;if(bl(a)){if(a.some(i=>i?.props?.id===t))return{siblings:a,ownerType:s.at(-1)??null,ancestorTypes:s};for(let i of a){let r=i.type,l=n(i,o+1,[...s,String(r)]);if(l)return l}return null}for(let i of Object.values(a)){let r=n(i,o+1,s);if(r)return r}return null};return n(e,0,[])}import{forwardRef as Cl}from"react";import{jsx as Il}from"react/jsx-runtime";function Ll(e){if(typeof e=="string")return e;let t=e.query?`?${new URLSearchParams(e.query).toString()}`:"",n=e.hash?e.hash.startsWith("#")?e.hash:`#${e.hash}`:"";return`${e.pathname??""}${t}${n}`}var Nl=Cl(function({href:t,prefetch:n,replace:a,scroll:o,shallow:s,legacyBehavior:i,passHref:r,locale:l,onClick:d,children:p,...h},I){let P=W=>{d?.(W),!(W.defaultPrevented||h.target==="_blank")&&W.preventDefault()};return Il("a",{ref:I,href:Ll(t),onClick:P,...h,children:p})}),zm=Nl;var Pl="Website";function Qm(e){return e?.trim()||Pl}var Ra=["instagram","facebook","tiktok","youtube","x","linkedin","pinterest","whatsapp","telegram","line","wechat"],Hl={instagram:"Instagram",facebook:"Facebook",tiktok:"TikTok",youtube:"YouTube",x:"X",linkedin:"LinkedIn",pinterest:"Pinterest",whatsapp:"WhatsApp",telegram:"Telegram",line:"LINE",wechat:"WeChat"},Dl={};function ef(e){if(!e||typeof e!="object")return Dl;let t={};for(let n of Ra){let a=e[n];if(typeof a!="string")continue;let o=a.trim();!o||!/^https?:\/\//i.test(o)||(t[n]=o)}return t}function tf(e){return Ra.flatMap(t=>{let n=e[t];return n?[{platform:t,href:n,label:Hl[t]}]:[]})}var nf=e=>`${e}_url`;function oe(e,t){let n=globalThis,a=Symbol.for(e),o=n[a];return o===void 0&&(o=t(),n[a]=o),o}function fe(){return oe("efficient.slot-field-blocks",()=>new Set)}var Bl="dataSource",hf="dataSourceOptions",Ml="dataRows",uf="countKey",pf="counts",mf="location-payment-methods",ff="shop-payment-methods",gf="delivery-options",wf="blog-categories",Lt="dealers";function Fl(e){return typeof e.open=="function"}var Na=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function bf(e){return typeof e=="string"&&Na.test(e)}var Ca=new Set([Lt]);function ge(){return oe("efficient.block-sources",()=>({sources:new Map,revision:0}))}var Gl=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),Wl=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),La=e=>typeof e=="string"&&e.trim()!=="";function Ul(e){if(!e||!La(e.label))return null;if(Fl(e))return{label:e.label.trim(),open:e.open};let t=e.href;return La(t)?{label:e.label.trim(),href:t.trim()}:null}function Yl(e){if(typeof e.key!="string"||!Na.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 n=Ul(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(a=>Pa(a)).filter(a=>a!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(Gl)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(Wl).map(a=>({...a}))}:{},...n?{edit:n}:{},...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 yf(e){let t=e.map(Yl),n=ge();for(let a of t)n.sources.set(a.key,a);t.length&&(n.revision+=1)}function Ia(e){let t=[...ge().sources.values()],n=[...t.filter(a=>!Ca.has(a.key)),...t.filter(a=>Ca.has(a.key))];return e===void 0?n:n.filter(a=>a.blocks.includes(e))}function Me(e){return ge().sources.get(e)??null}function Ef(e){return ge().sources.get(e)?.choices??[]}function Sf(){return ge().revision}function v(e){let t=e?.[Bl];return typeof t=="string"?t.trim():""}function Pa(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[n,a]of Object.entries(e)){let o=w(a);o&&(t[n]=o)}return Object.keys(t).length?t:null}function $l(e){let t=e?.[Ml];return Array.isArray(t)?t.map(Pa).filter(n=>n!==null):null}function _f(e,t,n=[]){let a=$l(e);if(a!==null&&(a.length||!t))return{rows:a,sample:!1};if(!t)return{rows:[],sample:!1};let o=Me(v(e))?.sample;return{rows:o?.length?o:n,sample:!0}}var m="content",g="Flex",Kl="Text & media",Vl="Layout & structure",Da=[{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"}],Xl=[...Da,{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:Kl})),jl=(ne.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Vl})),Ha=[...Xl,...jl],Nt=[...Da,{type:"HeroGroup",label:De}],Of=Nt.map(e=>e.type),zl=1,ql=Nt.filter(e=>e.type!=="HeroGroup");function Zl(e){return e<zl?Nt:ql}var Ql={Flex:{slot:m,choices:()=>Ha},Grid:{slot:m,choices:()=>Ha},HeroGroup:{slot:m,choices:Zl}};function kf(e,t=0){let n=pe(Ql,e);return n?{slot:n.slot,choices:n.choices(t)}:null}import{AUTO_RULES as ac,FOLLOW_RULES as oc,isAuto as sc,resolveViewValue as ic}from"efficient-easel/screen/lib/content/view-tiers";import{VIEW_DESKTOP_MIN as Jl,VIEW_TABLET_MIN as ec}from"efficient-easel/screen/lib/content/view-tiers";var Ma="v1",Fa=800,Ba={"view-tablet":ec,"view-desktop":Jl,"view-wide":Fa};function Cf(e){let t=e.startsWith("max-"),n=t?e.slice(4):e;if(n in Ba)return{px:Ba[n],max:t};let a=/^(max|min)-\[(\d+)px\]$/.exec(e);return a?{px:Number(a[2]),max:a[1]==="max"}:void 0}var Lf=`(min-width: ${Fa}px)`,tc="data-sf-line",nc="edge",Nf={[tc]:nc},we=(e,t)=>e==="edge"||e!=="section"&&t;function rc(){return Ma==="v2"?ac:oc}function Ga(e,t,n,a,o=rc()){let s=ic(e,t,n,a,o),i={},r=(l,d)=>!sc(l)||d!=null&&d!==t;return r(n,s.tablet)&&(i.tablet=s.tablet),r(a,s.phone)&&(i.phone=s.phone),i}var It="rowImageField",lc="boxOutsideCopy",cc={all:[{field:It,set:!0},{not:{context:lc,is:!0}}]},Bf={any:[{field:"bgImage",set:!0},cc]},Wa="boxInCopy",dc={any:[{not:{field:It,set:!0}},{not:{context:Wa,is:!0}}]},Mf={all:[{not:{field:"bgImage",set:!0}},dc]},Ua={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${It}`,set:!0}},{not:{context:Wa,is:!0}}]}]};function be(e,t,n){return e.some(a=>(typeof a=="object"?a.value:a)===n)?n:t}var hc="small",uc="dot",pc=[{label:"Small",value:"small"},{label:"Display",value:"display"}],Pt=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],Ya={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},mc={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)]"},fc={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 Uf(e){return be(pc,hc,e)}function $a(e){return be(Pt,uc,e)}function Yf(e){return mc[e]}function Ka(e,t){return fc[e][t]}var Vf=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function Va(e){return Pt.some(t=>t.value===e)?$a(e):void 0}var gc="overflow-x-clip [&>*]:shrink-0 [&>[data-sf-box-items]>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>[data-sf-box-items]>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function K(e,t){return e==="row"&&Va(t)!==void 0}function Xf(e,t){return K(e,t)?gc:""}var wc="[&>*: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 jf(e,t){return K(e,t)?wc:""}function zf(e,t){if(!K(e,t))return{};let n=Va(t),a=/^text-\[([\d.]+)em\]$/.exec(Ka("small",n))?.[1],o=Ya[n];return{"--sf-sep-mark":o===""?"none":JSON.stringify(o),...a?{"--sf-sep-k":a}:{}}}var qa={sectionPaddingTop:0,sectionPaddingBottom:0},ye={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},Ee={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function tg(e,t){let n=typeof e=="string"&&te(ye,e)?ye[e]:"",a=typeof t=="string"&&te(Ee,t)?Ee[t]:"";return[n,a].filter(Boolean).join(" ")}function bc(e){return e===!0||e==="wrap"?"flex-wrap":""}var yc={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!"},Ec={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},Sc={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!"},_c={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},Tc={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function j(e,t){return typeof t=="string"&&te(e,t)?t:void 0}function Dt(e,t,n){let a=Ga("same",e,t,n),o={};return a.tablet!==void 0&&a.tablet!==e&&(o.tablet=a.tablet),a.phone!==void 0&&a.phone!==e&&(o.phone=a.phone),o}function Bt(e,t,n){return[e.tablet?t[e.tablet]:"",e.phone?n[e.phone]:""].filter(Boolean).join(" ")}function vc(e,t,n){return Dt(j(ye,e)??"start",j(ye,t),j(ye,n))}function ng(e,t,n){return Bt(vc(e,t,n),yc,Ec)}function ag(e,t,n){let a=j(Ee,e)??"stretch";if(a==="stretch")return"";let o=Dt(a,j(Ee,t),j(Ee,n));return Bt(o,Sc,_c)}function Ht(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function og(e,t){let n=bc(e)===""?"nowrap":"wrap",a=Ht(t);return a&&a!==n?Tc[a]:""}var sg="Block widths",Za=[{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]}],xc="data-sf-box-items",ig=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${xc}\\][^\\s"'\`]*`,"g");var rg=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function lg(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in Fe?"custom":"content"}var Qa=4,Xa=10;function Oc(e,t){if(!Number.isInteger(t)||t<2||t>Qa||e.length!==t-1||!e.every(o=>typeof o=="number"&&Number.isFinite(o)))return;let n=[],a=0;return e.forEach((o,s)=>{let i=100-a-Xa*(t-1-s),r=Math.min(i,Math.max(Xa,Math.round(o)));n.push(r),a+=r}),n}function ja(e,t,n){if(!Array.isArray(t))return;let a=Oc(t,n),o=a?[...a,100-a.reduce((i,r)=>i+r,0)]:[],s={};for(let i=0;i<Qa;i+=1)s[`--${e}-${i+1}`]=o[i]??1;return s}function cg(e,t,n){let a=ja("sf-share",e,n),o=ja("sf-share-tablet",t,n);return a||o?{...a,...o}:void 0}function kc(e,t){let n=Array.from({length:t},()=>1),a=Za.find(i=>i.value===e);if(!a?.weights||t<1)return n;let[o,s]=a.weights;return o>1&&(n[0]=o),s>1&&(n[t-1]=s),n}function dg(e,t){if(typeof e!="string"||!(e in Fe)||e==="equal")return e;let n=kc(e,t),a=n.reduce((o,s)=>o+s,0);return n.slice(0,-1).map(o=>Math.round(o/a*100))}var V="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",Fe={equal:V,bigLeft:`${V} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${V} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${V} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${V} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${V} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},Ac=`${V} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function Rc(e){return Array.isArray(e)?Ac:typeof e=="string"?Fe[e]??"":""}var Ja={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}},Ua,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(Fe)}]}]}]},eo="view-wide:max-view-desktop:flex-row!",X=`${eo} [&>*: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!`,to={content:`${eo} [&>*: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]!`},Cc=`${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 Lc(e){return Array.isArray(e)||typeof e=="string"&&e in to?e:null}function hg(e){if(e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||no(e.columns)!==""||ao(e.columnsTablet)!=="")return"";let t=Lc(e.shareTablet);return t===null?"":typeof t=="string"?to[t]:Cc}var Nc="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function ug(e){return Rc(e)===""?Nc:""}var pg="Columns",mg=1,fg=3,Mt={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)]"},gg=Za.filter(e=>e.value==="content"||e.value==="equal"),wg="equal",bg=1,yg=6,se="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",Ic={1:`${se} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function no(e){return typeof e=="number"?Ic[e]??"":""}var Pc={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 ao(e){return typeof e=="number"?Pc[e]??"":""}function Eg(e){return e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":ao(e.columnsTablet)}function Sg(e){return e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":no(e.columns)}var oo={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"},so={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},_g=Object.keys(oo).map(Number),Tg=Object.keys(so).map(Number);function vg(e,t,n=!1){let a=typeof e=="number"?oo[e]??"":"",o=so[Number(t)]??"";return!a&&!o?"":[a,o,n?"gap-y-0!":""].filter(Boolean).join(" ")}var Hc="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]",Dc={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)]"},Bc="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 Mc(e,t){return(Ht(e)??Ht(t)??"wrap")==="nowrap"}function xg(e,t,n,a){let o=Mt[Number(e)];if(!o)return"max-view-wide:flex-col";let s=Mc(n,a);return io(e,t)?s?Bc:Hc:s?Dc[Number(e)]:o}function Og(e,t){return Number(e)in Mt&&!io(e,t)}function io(e,t){return Number(e)in Mt&&t==="content"}var kg="Block spacing",Ag=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],Fc="sf-box-gap-only";function Rg(e){return e==="gap"?Fc:""}var za={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},Gc={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function Cg(e,t,n){let a=s=>j(za,s),o=Dt(e==="gap"?"gap":"each",a(t),a(n));return Bt(o,za,Gc)}var ro={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Hg,tag:Dg,...Wc}=ro.defaultProps,b=Wc,x={...b,tone:"dim"},Uc={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},y={...Uc,direction:"column",...qa},D=(e,t=e,n=e,a=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:n,sectionPaddingRightPhone:a,sectionPaddingBottomPhone:n,sectionPaddingLeftPhone:a}),Yc=e=>({fillColor:e}),lo=(e,t,n={})=>({...y,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?Yc(t):{},...n}),_=(e,t,n,a)=>({sizeToken:{step:e,px:t,...a?{stepPhone:a}:{},...n?{pxPhone:n}:{}}}),co={case:"upper"},Ft={textStyle:"body-5",...co},Gt=(e,t)=>({..._("label",e,t),letterSpacing:.2,...co}),Bg=(e,t)=>({...Ft,...Gt(e,t)});function S(e,t,n=""){return e.map((a,o)=>{let s=n?`${n}.${o}`:String(o),i={...a.props??{}};for(let[r,l]of Object.entries(a.slots??{}))i[r]=S(l,t,s);return{type:a.type,props:{...i,id:t(a.type,s)}}})}import{isNodeList as yd}from"efficient-easel/data";function fo(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return ho(t);let n=w(t.id)??"Cards",a=po(n);if(t.cardStyle==="label-only"){let s=Array.isArray(t.items)&&t.items.some(i=>w(i?.href)!==void 0);return ho({...t,template:mo(a,s)})}let o=v(t)?Ge:ie;return{...t,template:uo(a,o)}}var $c=e=>{let[t,n]=e?[ie,Ge]:[Ge,ie];return new Map([[t.title,n.title],[t.body,n.body]])};function go(e,t){let n=null;return e.forEach((a,o)=>{let s=a?.props;if(!s)return;let i=s,r=s[E];a.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[E]:t.get(r)});let l=s[m];if(Array.isArray(l)){let d=go(l,t);d!==l&&(i={...i,[m]:d})}i!==s&&(n??=[...e],n[o]={...a,props:i})}),n??e}function ho(e,t){if(!Array.isArray(e.template))return e;let n=$c(!!v(e)),a=t?new Map([...n].filter(([s,i])=>t(i)&&!t(s))):n;if(!a.size)return e;let o=go(e.template,a);return o===e.template?e:{...e,template:o}}var Kc="label";function wo(e){if(e.template!==void 0)return e;let t=w(e.id)??"CardList",n={type:g,props:{...y,name:"Item"},slots:{[m]:[f(Kc,{...b,tag:"p"},Se)]}};return{...e,template:S([n],(a,o)=>o==="0"?`${t}~item`:`${t}~item.${o.slice(2)}`)}}var Wt="ArticleBody",Vc={textStyle:"heading-3",..._("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},Xc={...Se,align:"center"},bo=640,jc=()=>[f("heading",{...b,tag:"h2",align:"center",maxWidth:bo},Vc),f("paragraph",{...x,tag:"p",align:"center",maxWidth:bo},Xc)],zc=e=>S(jc(),e);function qc(e){return zc((t,n)=>`${e}~${n==="0"?"heading":"paragraph"}`)}function yo(e){if(e.template!==void 0)return e;let t=typeof e.id=="string"&&e.id.trim()?e.id:Wt;return{...e,template:qc(t)}}var Zc="label",Qc=()=>({type:"LogoBlock",props:{[E]:Zc}}),Eo=e=>{let t=w(e.id)??"Logos";return{...e,template:S([Qc()],()=>`${t}~logo`)}};function So(e){return!v(e)||e.template!==void 0?e:Eo(e)}function aw(e){if(!v(e))return e;let t=e.template;return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:Eo(e)}import{addShowWhenFacts as Jc}from"efficient-shell/format";import{showWhenOf as rw,shownForOption as lw,truthy as cw,withRowRules as dw,withRowsShownWhen as _o,withShowWhen as hw}from"efficient-shell/format";var uw=Jc;function pw(e,t,n){return e.slice(0,-1).reduceRight((a,o)=>({any:[{all:[t(o),n(o)]},{all:[{not:t(o)},a]}]}),n(e[e.length-1]))}var ed="inline",td=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var nd={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"}},bw="SectionHeader";function yw(e){return te(nd,e)}function To(e){return be(td,ed,e)}var ad=new Set(["Flex"]);function Ew(e){return!!e?.type&&ad.has(e.type)}var vo={not:{field:"headPlacement",is:"own-box"}},Sw={not:vo};function _w(e,t,n){return _o(e,n,vo)}var vw="data-sf-spec-region";function xw(e){return e.writable===!0&&e.sized===!0}function Ow(e,t,n){if(!e)return;let a=n[e];if(a)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${a}, ${t.builtIn})`}}function kw(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 xo(e){return`@${e}`}function Aw(e,t){if(!t.startsWith("@"))return null;let n=t.slice(1);return n in e?n:null}function Rw(e,t){return t&&t in e?t:null}var Ut={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}},Lw=Ut;var od="question",sd="answer",id={textStyle:"body-1",fontRole:"heading",..._("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},rd={textStyle:"body-1",..._("body",15),lineHeight:1.7};function Gw(){return Object.keys(Ut).map(xo)}var ld=()=>({type:g,props:{...y,gap:0,name:"Question"},slots:{rowTitle:[f(od,{...b,tag:"p",widthFit:"fill"},id)],[m]:[f(sd,{...x,tag:"p",widthFit:"fill",maxWidth:760},rd)]}});function cd(e){return To(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>w(e[t])!==void 0)}function Oo(e){if(e.template!==void 0||cd(e))return e;let t=w(e.id)??"FAQ",n=0;return{...e,template:S([ld()],a=>a===g?`${t}~row`:`${t}~row.${n++}`)}}var dd=["below","left","right"];function hd(e){return dd.includes(e)?e:"below"}function Yt(e){return hd(e)!=="below"}function $t(e){return Array.isArray(e)?e.map($t):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([t,n])=>t!=="id"&&n!==void 0&&!(Array.isArray(n)&&n.length===0)).sort(([t],[n])=>t<n?-1:t>n?1:0).map(([t,n])=>[t,$t(n)]))}var F=e=>JSON.stringify($t(e));var Ro=e=>v(e)===Lt,We=Gt(11),ud={textStyle:"body-1",..._("body",18),weight:500,lineHeight:1.2},Qw=()=>({type:g,props:{...y,gap:8,gapPhone:8,...D(20,24,20,20),name:"Office"},slots:{[m]:[f("badge",{...b,tag:"p",widthFit:"fill"},We,!0),f("role",{...b,tag:"p",widthFit:"fill"},We,!0),f("city",{...b,tag:"p",widthFit:"fill"},ud),f("country",{...x,tag:"p",widthFit:"fill"},We),f("address",{...x,tag:"p",widthFit:"fill"},We),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[E]:"linkLabel",[C]:"href"}}]}}),Co={textStyle:"body-1",fontRole:"heading",..._("body",16),weight:500,lineHeight:1.25},Vt={textStyle:"body-1",..._("body",14),lineHeight:1.5},pd=()=>({type:g,props:{...y,gap:4,gapPhone:4,...D(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[m]:[f("city",{...b,tag:"p",widthFit:"fill"},Co),f("address",{...x,tag:"p",widthFit:"fill"},Vt),f("phone",{...x,tag:"p",widthFit:"fill"},Vt)]}});function Lo(e){let t=w(e.id)??"Footprint",n=0;return S([pd()],a=>a===g?`${t}~office`:`${t}~office.${n++}`)}function No(e){return Array.isArray(e.template)&&e.template.length>0&&F(e.template)===F(Lo(e))}var Io=e=>e===void 0||Array.isArray(e)&&e.length===0;function ko(e){return Yt(e.listPosition)?!Io(e.template)||Ro(e)?e:{...e,template:Lo(e)}:No(e)?{...e,template:[]}:e}var md=Co,fd=Vt,gd={textFit:"line"},Xt=(e,t,n="",a={},o={})=>{let s=f(e,{...t?x:b,tag:"p",...a},{...fd,...o});return n?{...s,props:{...s.props,[C]:n}}:s},Kt=(e,t,n,a)=>({type:g,props:{...y,gap:0,gapPhone:0,[zt]:[e],name:a},slots:{[m]:[Xt(e,t,n,gd,{align:"right"})]}}),wd=e=>({type:g,props:{...y,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?D(20,24):{...D(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[m]:[{type:g,props:{...y,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[m]:[{type:g,props:{...y,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[m]:[f("name",{...b,tag:"p",widthFit:"fill"},md),Xt("address",!0)]}},Xt("place",!0,"",{widthFit:"fill"})]}},{type:g,props:{...y,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[m]:[Kt("distance",!0,"","Dealer distance"),Kt("phone",!1,"phoneHref","Dealer phone"),Kt("website",!1,"websiteHref","Dealer website")]}}]}}),bd=e=>{let t=wd(e),n={type:g,props:{...y,...D(0,12),name:"Dealer"},slots:{[m]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:n};function jt(e,t){let n=w(e.id)??"Footprint",a=0;return S([bd(t)],(o,s)=>s==="0"?`${n}~dealer`:`${n}~dealer.${a++}`)}function Ao(e){if(!Array.isArray(e.template)||e.template.length===0)return!1;let t=F(e.template);return t===F(jt(e,!0))||t===F(jt(e,!1))}function Po(e){if(Ro(e)){let n=jt(e,!Yt(e.listPosition));return!(Io(e.template)||No(e)||Ao(e))||F(e.template??[])===F(n)?e:{...e,template:n}}if(!Ao(e))return ko(e);let t={...e,template:[]};return ko(t)}var Ho="template",Ed="Card template",Ue="CardList",Do=["Text","ImageBlock","ButtonBlock","Flex"],E="rowField",C="rowLinkField";function pb(){return{type:"slot",allow:[...Do]}}var Sd=Do.filter(e=>e!=="ButtonBlock"),Bo="items",Mo="itemFields";function mb(){return{type:"slot",allow:[...Sd]}}var _d=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Oo(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region \xB7 country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>Po(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>fo("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:Ue,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>So(e)},{block:Ue,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:Bo,seed:e=>wo(e)},{block:Wt,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>yo(e)}];function T(){return oe("efficient.card-templates",()=>new Map(_d.map(e=>[e.block,e])))}function fb(e){for(let t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");let n=[];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===Ye)throw new Error(`The card template of ${t.block} names "${Ye}" in its blocks. Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`);n.some(r=>r.type===i.type)||n.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=w(i.label),l=Array.isArray(i.fields)?{fields:i.fields.map(d=>({...d}))}:null;a.some(d=>d.slot===i.slot)||a.push({slot:i.slot,...r?{label:r}:null,...l})}let o=a.some(i=>i.fields);if(o&&(t.fields.some(i=>i.everySource)||Ia(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);o?fe().add(t.block):fe().delete(t.block);let s=w(t.typedRows);T().set(t.block,{block:t.block,...a.length?{slots:a}:{},fields:t.fields.map(i=>({...i})),blocks:n,typedRows:s,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function Td(e,t){let n=e?T().get(e)?.seed:void 0;return n?n(t):t}function gb(e,t){let n=xd(e),a=(n.length?n:[Ho]).filter(r=>t[r]===void 0||Array.isArray(t[r])&&t[r].length===0);if(!a.length)return t;let o={...t};for(let r of a)delete o[r];let s=e?T().get(e)?.seedOnInsert:void 0,i=s?s(o):Td(e,o);return i===o?t:i}function wb(){for(let e of T().values())if(e.blocks?.length)return!0;return!1}function bb(e){return T().get(e)?.blocks??[]}function yb(e){for(let t of T().values())if(t.blocks?.some(n=>n.type===e))return!0;return!1}function Eb(e){return typeof e=="string"&&T().get(e)?.typedRows||""}function Sb(e){return typeof e=="string"&&T().get(e)?.linesBetween===!0}function _b(e){return typeof e=="string"&&T().has(e)}var vd=[{slot:Ho}];function $e(e){if(typeof e!="string")return[];let t=T().get(e);return t?t.slots??vd:[]}function xd(e){return $e(e).map(t=>t.slot)}function Od(e,t){return $e(e).some(n=>n.slot===t)}function Tb(e,t){let n=$e(e).find(a=>a.slot===t);return n?n.label??Ed:null}function qt(e,t){return t?$e(e).find(n=>n.slot===t)?.fields:void 0}function kd(e,t){let n=T().get(e)?.fields??[];return t?n.filter(a=>(a.kind??"text")===t):n}function Ad(e,t){if(typeof e!="string")return"";let n=qt(e,t);return(n?n.filter(a=>a.kind==="list"):kd(e,"list"))[0]?.key??""}function Rd(e,t,n){return Zt(e)||Ad(t,n)}function Fo(e,t,n){let a=typeof e?.type=="string"?e.type:"";if(!a)return[];let o=qt(a,n);if(o)return t?o.filter(l=>(l.kind??"text")===t):o;let s=T().get(a)?.fields??[],i=Me(v(e?.props))?.fields,r=i?.length?[...i.map(l=>({...l})),...s.filter(l=>l.everySource&&!i.some(d=>d.key===l.key))]:s;return t?r.filter(l=>(l.kind??"text")===t):r}function Cd(e,t,n,a){if(!e)return null;let o=qt(e,a);return o?o.find(s=>s.key===t)??null:n?Fo(n).find(s=>s.key===t)??null:T().get(e)?.fields.find(s=>s.key===t)??null}function Go(e,t){return!e||!t?null:e.fields?.find(n=>n.key===t)??Cd(e.ownerType,t,e.owner,e.slot)}function vb(e,t){return Go(e,t)?.plain===!0}function Zt(e,t=E){let n=e?.[t];return typeof n=="string"?n.trim():""}function xb(e,t){return e.key||String(t+1)}function Ob(e){let t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[n,a]of Object.entries(e))typeof a=="string"&&(t[n]=a);return t}var zt="hideWhenRowEmpty";function kb(e,t){let n=e[zt];return!t||!Array.isArray(n)||!n.length?!1:n.every(a=>typeof a!="string"||!t[a]?.trim())}var Wo={Text:{text:E,href:C},ImageBlock:{src:E,href:C},ButtonBlock:{label:E,href:C},LogoBlock:{alt:E,href:C},Breadcrumb:{currentCrumb:E}};var Ld=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Ab(e,t,n){return Nd(e,t,n)&&!Ld.has(`${e}.${n}`)}function Nd(e,t,n){return Id(e,t,n)!==""}function Id(e,t,n){let a=Wo[e]?.[n];return a?Zt(t,a):""}function Uo(e,t){return!t||!e?null:e[t]??""}function Pd(e,t){return Uo(e,t)?.trim()||void 0}function Rb(e,t,n,a,o,s){if(!n)return t;let i=null;for(let[r,l]of Object.entries(Wo[e]??{})){let d=Zt(t,l),p=Uo(n,d);if(p!==null){if(i??={...t},l===C){i[r]=Pd(n,d);continue}i[r]=Go({ownerType:a,fields:o,slot:s},d)?.mark==="accentItalic"?_a(p):p}}return i??t}function Ke(e,t){let n=e?.data?.content;if(!Array.isArray(n)||typeof t!="string")return;let a=(s,i)=>{for(let r of s){if(r?.props?.id===t)return i;for(let[l,d]of Object.entries(r?.props??{})){if(!yd(d))continue;let p=Od(r.type,l)?{owner:r,slot:l,direct:!0,nested:i!==null,underBox:!1}:i&&{owner:i.owner,slot:i.slot,direct:!1,nested:i.nested,underBox:i.underBox||r.type===g},h=a(d,p);if(h!==void 0)return h}}},o=a(n,null);return o===void 0?null:o}function Hd(e,t){let n=Ke(e,t);return n&&n.owner}function Dd(e,t){let n=Ke(e,t);return n&&n.slot}function Cb(e,t){let n=Ke(e,t);return n&&(n.direct?n.owner:null)}function Lb(e,t){let n=Ke(e,t);if(n!==void 0)return n===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:n.nested,underBox:n.underBox}}function Nb(e,t,n){if(t?.type!==Ue)return[];let a=Hd(e,t.props?.id);if(!a){let r=Me(v(t.props))?.fields,l=r?.length?r.map(h=>({...h})):Bd(t.props),d=(T().get(Ue)?.fields??[]).filter(h=>h.everySource&&!l.some(I=>I.key===h.key)),p=[...l,...d];return n?p.filter(h=>(h.kind??"text")===n):p}let o=Dd(e,t.props?.id)??void 0,s=Rd(t.props,a.type,o),i=s&&Fo(a,"list",o).find(r=>r.key===s)?.fields||[];return n?i.filter(r=>(r.kind??"text")===n):i}function Ib(e,t){return{[E]:"",[Bo]:e.map(n=>({...n})),[Mo]:t.map(n=>({...n}))}}function Bd(e,t){let n=e?.[Mo];if(!Array.isArray(n))return[];let a=n.flatMap(o=>{if(!o||typeof o!="object")return[];let{key:s,label:i,kind:r,multiline:l,alt:d,next:p}=o;if(typeof s!="string"||!s||typeof i!="string")return[];let h=r==="image"||r==="link"||r==="colour"?r:void 0;return[{key:s,label:i,...h?{kind:h}:{},...l===!0?{multiline:!0}:{},...typeof d=="string"&&d?{alt:d}:{},...typeof p=="string"&&p?{next:p}:{}}]});return t?a.filter(o=>(o.kind??"text")===t):a}var Ye="HostPart";var re={min:0,max:360,step:1},Yo="angle";function Db(e){let t=H(e);if(t===void 0)return null;let n=Math.min(re.max,Math.max(re.min,t));return n===re.min||n===re.max?null:{rotate:`${n}deg`}}import{MEDIA_ZONES as Md,MEDIA_ZONE_LABELS as Fd}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as Gd,hoverKindsOf as Xe,motionSeconds as Ve}from"efficient-shell/format";var k="hover",Ub="_gHover",Wd={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},z="highlight",Ud="Highlight",Yb=["none",z],$b={none:Wd.none,[z]:Ud};function Yd(e){return e[k]===z?z:"none"}var Kb="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)]",Vb="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 Xb(e,t){return Yd(e)!==z?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var $d=Xe(["none","lift"]);function jb(e){let t=e[k];return $d.includes(t)?t:"none"}var Vo=Xe(["none","nextImage","rotate"]),O={kind:k,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},tn="spinOnHover",$o=re,Xo={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},zb=Object.keys(Xo);function Kd(e){return Xo[e]??"none"}var Vd=Gd.rotateFallbackDeg,Xd=e=>e==="rendering"?"renderings":e,jd=e=>e==="renderings"?"rendering":e,jo=Object.freeze(Md.filter(e=>e!=="videos").map(Xd)),qb=Object.freeze(Object.fromEntries(jo.map(e=>[e,Fd[jd(e)]]))),zd=["finish","first"],Zb={finish:"Same finish",first:"First group"},qd=["card","picture"],Qb={card:"Whole card",picture:"Picture"},Qt={kind:"photos",group:"finish",cover:"card"},Jt=(e,t,n)=>e.includes(t)?t:n;function zo(e){return{kind:Jt(jo,e[O.mediaKind],Qt.kind),group:Jt(zd,e[O.mediaGroup],Qt.group),cover:Jt(qd,e[O.cover],Qt.cover)}}function Jb(){return{field:O.kind,is:"nextImage"}}function Zd(e,t){let n=e[O.kind];if(Vo.includes(n))return n;let a=e[tn];return typeof a=="boolean"?a?"rotate":"none":t}function Qd(e){let t=H(e);return t===void 0?Vd:Math.min($o.max,Math.max($o.min,t))}function ey(e,t){let n=Kd(t),a=Zd(e,n);return{kind:a,angle:a==="rotate"?Qd(e[O.angle]):null,duration:Ve("hover","duration",a==="rotate"?e[O.duration]:void 0),delay:Ve("hover","delay",a==="rotate"?e[O.delay]:void 0),...a==="nextImage"?{media:zo(e)}:{}}}function ty(e){let t={field:O.kind,in:[...Vo]};return{any:[{field:O.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:tn,is:!1}}:{field:tn,is:!0}]}]}}var qo=Xe(["none","mono"]),Jd=Xe(["none","nextImage","mono"]),Zo={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},ny=Object.keys(Zo);function eh(e){return Zo[e]??"none"}var Qo={zoom:"hoverZoom",darken:"hoverDarken"},en={min:100,max:150,step:1,unit:"%"};function th(e){let t=H(e[Qo.zoom]);if(t===void 0)return null;let n=Math.min(en.max,Math.max(en.min,t));return n===en.min?null:String(n/100)}function nh(e){let t=H(e[Qo.darken]);return t!==void 0&&t>0?t:null}var ay="hoverShow",oy="cardHover",sy="always",ah=["ImageBlock","Flex"];function oh(e,t,n=qo){let a=e[k];return n.includes(a)?a:t}function iy(e,t=""){let n=ah.includes(t)?Jd:qo,a=oh(e,eh(t),n),o=a==="mono";return{kind:a,duration:Ve("hover","duration",o?e[O.duration]:void 0),delay:Ve("hover","delay",o?e[O.delay]:void 0),...a==="nextImage"?{media:zo(e),...t==="Flex"?Ko(e):{}}:Ko(e)}}function Ko(e){let t=th(e),n=nh(e);return{...t?{zoom:t}:{},...n?{darken:n}:{}}}function ry(){return{not:{field:k,is:"nextImage"}}}function ly(e){return e==="none"?{field:k,in:["mono","nextImage"]}:{not:{field:k,is:"none"}}}function cy(e){return e==="none"?{field:k,is:"mono"}:{not:{field:k,in:["none","nextImage"]}}}var uy=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),Jo=()=>({_partStyles:{text:{...Ft,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var sh={...y,gap:12,gapPhone:12,...D(32,32,28,28)},ih={textStyle:"heading-3",..._("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},Se={textStyle:"body-1",..._("body",15),lineHeight:1.6},f=(e,t,n,a=!1)=>({type:"Text",props:{...t,text:"",[E]:e,_partStyles:{text:{...a?Jo()._partStyles?.text??{}:{},...n}}}}),ie={title:"title",body:"body"},Ge={title:"name",body:"note"},rh=(e=ie)=>({type:g,props:{...sh,name:"Card"},slots:{[m]:[f(e.title,{...b,tag:"p",widthFit:"fill"},ih),f(e.body,{...x,tag:"p",widthFit:"fill"},Se)]}}),uo=(e,t)=>S([rh(t)],e),es={label:ie.title,href:"href"},lh={textStyle:"body-1",fontRole:"heading",color:"text",..._("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},ch=lo(9,"main",{[Yo]:45}),dh=(e=!1)=>({type:g,props:{...y,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...D(32,28),[C]:es.href,...e?{[k]:z}:{}},slots:{[m]:[{type:g,props:{...ch,name:"Mark"}},f(es.label,{...b,tag:"p",widthFit:"fill"},lh)]}}),po=e=>(t,n)=>n==="0"?`${e}~card`:`${e}~card.${n.slice(2)}`,mo=(e,t=!1)=>S([dh(t)],e);import{parseHexColor as hh}from"efficient-shell/format";var nn=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],uh=nn.filter(e=>e.ink);function ts(e){let t={color:e.fg};for(let{role:n,token:a}of uh)t[a]=e[n];return t}var ph={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},mh=Object.freeze(ts(ph)),fh={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},gh=Object.freeze(ts(fh));function Ty(e,t){let n=e?hh(e):null;return n?Qn(n,t)?mh:gh:null}var ns=-1,wh="sf-section-accent",Oy="Color",as=new Set(["CategoryBar","DocTabs"]),ky=new Set(["Flex"]),bh=0;function yh(e){return e===ns?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:bh}function Ay(e){return e??ns}function Eh(e){let t=`--theme-preset-${e}`,n={"--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 nn)n[`--sf-sec-${a}`]=`var(${t}-${a}, var(--theme-${a}))`;return n}function Ry(e){let t=yh(e.sectionAccent);return t===null?null:{className:wh,style:Eh(t)}}import{FOLLOW_RULES as _h,resolveViewValue as Th,viewKeyAt as vh}from"efficient-easel/screen/lib/content/view-tiers";var an={desktop:"desktop",tablet:"tablet",phone:"mobile"},Sh=Object.keys(an);function os(e){return an[e??"desktop"]}function Ly(e){return Sh.find(t=>an[t]===e)??"desktop"}var rn=["desktop","tablet","phone"],sn=(e,t)=>vh(e,os(t)),ss=e=>e.flatMap(t=>rn.map(n=>sn(t,n))),on=e=>e===null||e===""?void 0:e,xh=(e,t,n)=>Th("same",on(e),on(t),on(n),_h);function is(e,t,n,a=e[t]){return xh(a,e[sn(t,"tablet")],e[sn(t,"phone")])[n]}import{createContext as Bs,createElement as ve,useContext as xe}from"react";import{Fragment as pu,jsx as L}from"react/jsx-runtime";import{createContext as bn,useContext as N}from"react";import{jsx as ce,Fragment as bs}from"react/jsx-runtime";import{createContext as Wh,useContext as ys,useEffect as Uh,useRef as Yh,useState as $h}from"react";import{SCROLL_ZOOM_VAR as gs}from"efficient-shell/format";import{readEntrance as kh}from"efficient-shell/format";var _e={kind:"entrance",from:"entranceFrom",duration:"entranceDuration",delay:"entranceDelay"},ln="sectionAnimation",Oh=ss(Object.values(_e));var rs="sf-entrance",Ah=e=>e!=null&&e!=="";function Rh(e,t){let n=e[_e[t]];return t==="kind"&&!Ah(n)?e[ln]:n}var je=(e,t,n)=>is(e,_e[t],n,Rh(e,t));function cn(e,t){return kh(je(e,"kind",t),je(e,"from",t),je(e,"duration",t),je(e,"delay",t))}var Ch=e=>({desktop:cn(e,"desktop"),tablet:cn(e,"tablet"),phone:cn(e,"phone")});function $y(e){let t=Ch(e);return rn.every(n=>t[n].kind==="none")?null:t}var Lh={...Object.fromEntries([...as].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)",[Ye]:"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"},Ky=new Set(Object.keys(Lh));function ls(e,t,n,a){return t<=0?1/0:a?2*(e-4)/(t+n):2*(e-n/2-4)/t}function cs(e,t,n){let a=r=>r.width>0&&r.height>0;if(!a(e)||t.some(r=>r.mark&&!a(r.rect)))return 1;let o=e.left+e.width/2,s=e.top+e.height/2,i=n;for(let{rect:r,mark:l}of t){let d=Math.abs(r.left+r.width/2-o),p=Math.abs(r.top+r.height/2-s),h=Math.max(ls(d,e.width,r.width,l),ls(p,e.height,r.height,l));i=Math.min(i,Math.max(1,h))}return i}var ds=["cover","contain"],Nh={cover:"Cover",contain:"Contain"},jy="Image fit";function dn(e,t){return ds.includes(e)?e:t}function zy(){return ds.map(e=>({label:Nh[e],value:e}))}function qy(e){return e==="contain"?"object-contain":"object-cover"}function hn(e,t){return e!=="auto"&&t==="cover"}function ze(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}function eE(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"screen":return"aspect-[16/10]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";default:return"aspect-square"}}var qe=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"screen",image:"16/10",ratio:[16,10],label:"Screen 16:10"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"}];function tE(e){return qe.filter(t=>e.includes(t.shape))}function nE(e){return e==="below"}var aE=`linear-gradient(180deg, transparent 40%, ${ze(.85)} 100%)`,oE=`linear-gradient(0deg, transparent 40%, ${ze(.85)} 100%)`,sE=ze(.45);var Ih=qe.map(e=>e.image),B="fill",dE={label:"Fill row",value:B,showWhen:Ja},un="4/3",hs={frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},ps={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:hs,tablet:hs,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 hE(e,t,n){return t&&!le(n)?"all":e??"wide"}function us(e){return ps[e]}var uE=ps.all;function ms(e){return e?`${e.img} h-full w-full`:"relative h-full w-full"}var Ph={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]"},Hh={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]"},Dh={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]"},Bh={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]!"},pn=e=>Ih.includes(e),le=pn;function pE(e){let t=pn(e)?qe.find(n=>n.image===e)?.ratio:null;return t?`${t[0]} / ${t[1]}`:null}function mE(e,t,n){return n==="contain"?!0:[e,t??e].every(a=>a!==B&&(!pn(a)||a==="auto"))}function fE(e,t){return e===B&&!t?un:e}function gE(e){return e===B?un:le(e)?e:void 0}function fs(e,t){return le(t)?t===e?null:t:e===B?un:null}function Mh(e,t){let n=fs(e,t);return hn(e,"cover")||n!==null&&hn(n,"cover")}function Fh(e,t,n){return dn(e,"cover")==="cover"&&Mh(t,n)}function wE(e,t,n,a){return e==="desktop"?Fh(t,n,a):dn(t,"cover")!=="cover"?!1:Gh(e==="tablet"?n:fs(n,a)??n)}var Gh=e=>e===B||le(e)&&e!=="auto";function bE(e,t,n="wide"){return e===B&&n==="all"?us("all").frame:t===null?le(e)?Ph[e]:"":[e===B?us(n).frame:le(e)?Hh[e]:"",e===B&&n==="desktop"?Bh[t]:Dh[t]].filter(Boolean).join(" ")}var Qe=Wh(null);function OE({attrs:e,style:t,children:n}){return ce(Qe.Provider,{value:{attrs:e,style:t},children:n})}function Es({children:e}){return ce(Qe.Provider,{value:null,children:e})}function kE({fill:e=null,children:t}){let n=ys(Qe);return n?ce("div",{className:ms(e),...n.attrs,style:n.style,children:t}):ce(bs,{children:t})}var Ze="data-sf-mark";function ws(e){let t=e.getBoundingClientRect(),n=e.firstElementChild,a=n&&typeof n.offsetWidth=="number"?n:e,o=Math.max(a.offsetWidth,e.offsetWidth),s=Math.max(a.offsetHeight,e.offsetHeight);return{left:t.left+t.width/2-o/2,top:t.top+t.height/2-s/2,width:o,height:s}}function Kh(e){return e.closest(`[${Ze}]`)||e.closest("style, script")?!1:[...e.childNodes].some(t=>t.nodeType===3&&(t.textContent??"").trim()!=="")}var Ss=e=>e.closest(`.${rs}`)??e.ownerDocument.body;function Vh(e,t){let n=Ss(e),a=[];for(let o of n.querySelectorAll(`[${Ze}]`))o!==e&&a.push({rect:ws(o),mark:!0});for(let o of n.querySelectorAll("*")){if(o.contains(e)||!Kh(o))continue;let s=o.getBoundingClientRect();s.width===0||s.height===0||a.push({rect:{left:s.left,top:s.top,width:s.width,height:s.height},mark:!1})}return cs(ws(e),a,t)}function AE({inCell:e=!1,children:t}){let n=ys(Qe),a=Yh(null),[o,s]=$h(null),i=n?Number.parseFloat(String(n.style[gs])):Number.NaN;if(Uh(()=>{let l=a.current;if(!l||!Number.isFinite(i))return;let d=()=>s(Vh(l,i));d();let p=l.ownerDocument.defaultView?.ResizeObserver;if(!p)return;let h=new p(d),I=Ss(l);h.observe(l),h.observe(I);for(let P of I.querySelectorAll(`[${Ze}]`))P!==l&&h.observe(P);return()=>h.disconnect()},[i]),!n)return ce(bs,{children:t});let r=Number.isFinite(i)?{...n.style,[gs]:String(o??1)}:n.style;return ce("span",{ref:a,className:e?"inline-flex min-w-0 max-w-full items-center justify-center":"inline-flex items-center justify-center",[Ze]:"",...n.attrs,style:r,children:t})}import{FOLLOW_RULES as Xh,resolveViewValue as jh}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as zh}from"efficient-easel/screen/lib/content/length-units";var qh=["auto","fixed","screen","fill"],Zh=zh.filter(e=>e==="px"||e==="%"),Qh="svh",Jh="vh",eu="var(--sf-header-h, 88px)",tu={min:40,max:2e3,step:10,fallback:600},nu={min:10,max:200,step:5,fallback:100},au="sf-section-minh",Te="grid-cols-[minmax(0,1fr)]",_s={base:"--sf-section-minh",small:"--sf-section-minh-s"},fn=e=>typeof e=="string"&&qh.includes(e),ou=e=>typeof e=="string"&&Zh.includes(e);function Je(e){let t=fn(e.sectionHeightMode)?e.sectionHeightMode:"auto",n=t==="screen"?"%":ou(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=t==="screen"?nu.fallback:tu.fallback,o=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:t,value:o,unit:n}}function xs(e){let{mode:t,value:n,unit:a}=Je(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&a==="px")return[`${n}px`,null];let o=n/100,s=i=>t==="screen"?`(100${i} - ${eu})`:`100${i}`;return[`calc(${s(Jh)} * ${o})`,`calc(${s(Qh)} * ${o})`]}function Os(e){let t=xs(e);if(!t)return;let[n,a]=t;return{display:"grid",[_s.base]:n,...a?{[_s.small]:a}:{}}}var NE=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),IE="Height",ks="sf-section-minh-phone",Ts={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function As(e){return fn(e.sectionHeightModePhone)}function su(e){return Je({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var Rs="sf-section-minh-tablet",vs={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function Cs(e){return fn(e.sectionHeightModeTablet)}function iu(e){return Je({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function gn(e){let t=Os(e),n=(r,l,d)=>xs({sectionHeightMode:r,sectionHeightValue:l,sectionHeightUnit:d})??(t?["auto",null]:void 0),a=Cs(e)?n(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,o=As(e)?n(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):a;if(!t&&!a&&!o)return null;let s=[au,Te],i={...t??{}};return a&&(s.push(Rs),i[vs.base]=a[0],a[1]&&(i[vs.small]=a[1])),o&&(s.push(ks),i[Ts.base]=o[0],o[1]&&(i[Ts.small]=o[1])),{className:s.join(" "),style:i}}function PE(e){return gn(e)!==null||et(e).length>0}var mn=`grid ${Te}`,Ls="h-full",ru="view-tablet:max-view-desktop:grid",Ns="max-view-tablet:grid",lu="view-wide:max-view-desktop:grid",cu="max-view-wide:grid",du=`${Ns} ${Te}`;function HE(e,{atSectionLine:t=!1}={}){if(et(e).length>0)return mn;let n=gn(e);if(!n)return"";if(Os(e))return mn;let a=n.className.split(" "),o=t?ru:lu,s=t?Ns:cu;if(!a.includes(Rs))return t?du:`${s} ${Te}`;let i=a.includes(ks);return[o,i?s:"",Te].filter(Boolean).join(" ")}var Is="data-sf-height-fill",hu=["desktop","tablet","mobile"],uu={desktop:"view-desktop:[.flex-col>&]:grow! view-desktop:[.flex-row>&]:self-stretch",tablet:"view-wide:max-view-desktop:[.flex-col>&]:grow! view-wide:max-view-desktop:[.flex-row>&]:self-stretch",mobile:"max-view-wide:[.flex-col>&]:grow!"};function et(e){let t=e,n=jh("heightMode",Je(t).mode,Cs(t)?iu(t).mode:null,As(t)?su(t).mode:null,Xh),a={desktop:n.desktop==="fill",tablet:n.tablet==="fill",mobile:n.phone==="fill"};return hu.filter(o=>a[o])}function DE(e){return et(e).map(t=>uu[t]).join(" ")}function BE(e){let t=gn(e);return et(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:mn}}var Ps={stretchedRow:!1,fillingColumn:!1},A=bn(null),Hs=()=>N(A)!==null;function KE({line:e,draw:t}){return L(pu,{children:t(we(e,Hs()))})}var VE=(e="by-box")=>we(e,Hs()),XE=()=>N(A),jE=()=>N(A)?.id??null,G=bn(!1);function mu(){let e=N(A)?.stretchedRow===!0,t=N(G);return e&&!t}var fu=()=>N(G);function gu(){let e=N(A),t=mu(),n=fu();return{fill:n?` ${Ls}`:"",inner:a=>{let o=t||n?L(G.Provider,{value:!0,children:a}):a;return e?.columnsRow?L(A.Provider,{value:{...e,columnsRow:!1},children:o}):o}}}function zE({className:e,style:t,attrs:n,children:a}){let{fill:o,inner:s}=gu(),i=yn();return i.scope(L("div",{className:En(`${e}${o}`,i.className),...t?{style:t}:{},...n,...i.attrs,children:s(a)}))}var wn=bn(!1);function qE({children:e}){return L(wn.Provider,{value:!0,children:L(G.Provider,{value:!0,children:e})})}function ZE({children:e,ownPictures:t=!1}){let n=N(A),a=N(wn),o=N(G),s=a&&o,i=n===null?null:n.id===void 0?Ps:{...Ps,id:n.id};return L(A.Provider,{value:i,children:L(wn.Provider,{value:!1,children:L(G.Provider,{value:s,children:t?e:L(Es,{children:e})})})})}var tt=Bs(null),Ds="data-sf-view-hide",Ms=e=>ve(tt.Provider,{value:null},e),Fs={className:"",attrs:{},scope:Ms},wu=Fs,Gs=Bs(null),aS=(e,t)=>e?{className:e,views:t}:null,bu=e=>ve(tt.Provider,{value:null},ve(Gs.Provider,{value:null},ve(G.Provider,{value:!0},e))),oS=(e,t,n={})=>e?{className:e,words:t,...n}:null,Ws=(e,t)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:we(e.line??"by-box",t)?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function yn(){let e=xe(tt),t=xe(Gs),n=xe(A)!==null;if(e===null&&t===null)return wu;let a=e===null?null:Ws(e,n);return t===null?{className:a.className,attrs:{[Ds]:a.words},scope:Ms}:{className:a?`${a.className} ${t.className}`:t.className,attrs:{...a?{[Ds]:a.words}:{},[Is]:t.views},scope:bu}}function sS(){let e=xe(tt),t=xe(A)!==null;return e===null?"":Ws(e,t).className}var En=(e,t)=>t?e?`${e} ${t}`:t:e;function iS(e){let t=yn(),n=e.takes===!1?Fs:t,a={},o=!1;for(let[s,i]of Object.entries(e))s==="as"||s==="takes"||s==="children"||(s==="className"?(a.className=En(i,n.className),o=!0):a[s]=i);return!o&&n.className&&(a.className=n.className),n.scope(ve(e.as??"div",{...a,...n.attrs},e.children))}var lS={small:54,medium:66,large:84},yu=44,Eu=16,Su=140,cS={min:Eu,max:Su,step:1},dS=yu*4;import{forwardRef as _u}from"react";import{imageCopyUrl as Us,imageSrcSet as Ys}from"efficient-shell/image-copies";import{jsx as xu}from"react/jsx-runtime";var Tu={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"};function $s(e,t,n){if(n){let a=Ys(e);return a?{src:Us(e,1280),srcSet:a,sizes:n}:{src:e,sizes:n}}if(t&&t>0){let a=Ys(e,{maxWidth:t*3});return a?{src:Us(e,t*2),srcSet:a,sizes:`${t}px`}:{src:e}}return{src:e}}var vu=_u(function({src:t,width:n,height:a,fill:o,priority:s,loading:i,style:r,quality:l,placeholder:d,blurDataURL:p,unoptimized:h,loader:I,overrideSrc:P,sizes:W,...Oe},nt){let ke=P??(typeof t=="string"?t:t.src),at=$s(ke,o?void 0:Number(n)||void 0,W??(o?"100vw":void 0));return xu("img",{ref:nt,...at,width:o?void 0:n,height:o?void 0:a,loading:s?"eager":i??"lazy",fetchPriority:s?"high":void 0,decoding:"async",style:o?{...Tu,...r}:{color:"transparent",...r},...Oe})}),mS=vu;function fS(e){let t=e.overrideSrc??(typeof e.src=="string"?e.src:e.src.src),n=e.fill?void 0:Number(e.width)||void 0;return{props:$s(t,n,e.sizes??(e.fill?"100vw":void 0))}}export{oe as a,w as b,Bl as c,hf as d,Ml as e,uf as f,pf as g,mf as h,ff as i,gf as j,wf as k,Lt as l,Fl as m,bf as n,yf as o,Ia as p,Me as q,Ef as r,Sf as s,v as t,$l as u,_f as v,pe as w,te as x,em as y,ne as z,tm as A,Ur as B,nm as C,am as D,om as E,sm as F,Kr as G,De as H,dm as I,m as J,g as K,Ha as L,Of as M,kf as N,ue as O,Lp as P,vt as Q,Np as R,Ip as S,Pp as T,Hp as U,Ir as V,U as W,Pr as X,Mp as Y,pm as Z,mm as _,jr as $,fm as aa,gm as ba,Om as ca,At as da,gl as ea,Ea as fa,Lm as ga,Nm as ha,Im as ia,_a as ja,Pm as ka,Hm as la,Dm as ma,H as na,re as oa,Yo as pa,Db as qa,k as ra,Ub as sa,Wd as ta,z as ua,Ud as va,Yb as wa,$b as xa,Kb as ya,Vb as za,Xb as Aa,$d as Ba,jb as Ca,Vo as Da,O as Ea,tn as Fa,zb as Ga,Kd as Ha,Vd as Ia,jo as Ja,qb as Ka,zd as La,Zb as Ma,qd as Na,Qb as Oa,Qt as Pa,Jb as Qa,Zd as Ra,Qd as Sa,ey as Ta,ty as Ua,qo as Va,Jd as Wa,ny as Xa,eh as Ya,Qo as Za,en as _a,ay as $a,oy as ab,sy as bb,ah as cb,oh as db,iy as eb,ry as fb,ly as gb,cy as hb,It as ib,lc as jb,Bf as kb,Wa as lb,Mf as mb,be as nb,hc as ob,uc as pb,pc as qb,Ya as rb,Uf as sb,$a as tb,Yf as ub,Ka as vb,Vf as wb,Va as xb,K as yb,Xf as zb,jf as Ab,zf as Bb,Fa as Cb,Ba as Db,Cf as Eb,Lf as Fb,Nf as Gb,rc as Hb,Ga as Ib,qa as Jb,Ee as Kb,tg as Lb,bc as Mb,vc as Nb,ng as Ob,ag as Pb,Ht as Qb,og as Rb,sg as Sb,xc as Tb,rg as Ub,lg as Vb,cg as Wb,dg as Xb,Rc as Yb,Lc as Zb,hg as _b,ug as $b,pg as ac,mg as bc,fg as cc,gg as dc,wg as ec,bg as fc,yg as gc,no as hc,ao as ic,Eg as jc,Sg as kc,_g as lc,Tg as mc,vg as nc,Mc as oc,xg as pc,Og as qc,io as rc,kg as sc,Ag as tc,Fc as uc,Rg as vc,Cg as wc,ro as xc,b as yc,x as zc,Uc as Ac,y as Bc,D as Cc,Yc as Dc,lo as Ec,_ as Fc,Ft as Gc,Gt as Hc,Bg as Ic,S as Jc,uy as Kc,Jo as Lc,Se as Mc,f as Nc,ie as Oc,Ge as Pc,rh as Qc,uo as Rc,es as Sc,dh as Tc,po as Uc,ho as Vc,wo as Wc,Wt as Xc,zc as Yc,Qc as Zc,aw as _c,rw as $c,lw as ad,cw as bd,dw as cd,_o as dd,hw as ed,uw as fd,pw as gd,nd as hd,bw as id,yw as jd,To as kd,Ew as ld,vo as md,Sw as nd,_w as od,vw as pd,xw as qd,Ow as rd,kw as sd,xo as td,Aw as ud,Rw as vd,Ut as wd,Lw as xd,Gw as yd,ld as zd,hd as Ad,F as Bd,Qw as Cd,Po as Dd,Ho as Ed,Ue as Fd,E as Gd,C as Hd,pb as Id,Bo as Jd,Mo as Kd,mb as Ld,fb as Md,Td as Nd,gb as Od,wb as Pd,bb as Qd,yb as Rd,Eb as Sd,Sb as Td,_b as Ud,xd as Vd,Od as Wd,Tb as Xd,kd as Yd,Rd as Zd,Fo as _d,Go as $d,vb as ae,Zt as be,xb as ce,Ob as de,zt as ee,kb as fe,Ab as ge,Nd as he,Id as ie,Uo as je,Pd as ke,Rb as le,Hd as me,Dd as ne,Cb as oe,Lb as pe,Nb as qe,Ib as re,Ye as se,rt as te,lt as ue,Du as ve,Bu as we,Ui as xe,ct as ye,Mu as ze,Yi as Ae,Fu as Be,Gu as Ce,Yu as De,Xu as Ee,ju as Fe,zu as Ge,qu as He,wt as Ie,bt as Je,Zu as Ke,q as Le,qi as Me,Zn as Ne,Qu as Oe,Ju as Pe,Q as Qe,Z as Re,er as Se,ep as Te,tp as Ue,Ie as Ve,Qn as We,np as Xe,ap as Ye,op as Ze,Et as _e,sp as $e,Jn as af,ir as bf,ip as cf,rp as df,lp as ef,lr as ff,cp as gf,dp as hf,hp as if,up as jf,pp as kf,mp as lf,St as mf,fr as nf,fp as of,gp as pf,Pe as qf,sa as rf,br as sf,wp as tf,_t as uf,zn as vf,bp as wf,yp as xf,yr as yf,Er as zf,ia as Af,He as Bf,Tr as Cf,vr as Df,xr as Ef,ra as Ff,Or as Gf,la as Hf,_p as If,Tp as Jf,vp as Kf,xp as Lf,he as Mf,ca as Nf,Op as Of,kp as Pf,Tt as Qf,da as Rf,Ap as Sf,Rp as Tf,nn as Uf,uh as Vf,mh as Wf,Ty as Xf,ns as Yf,Oy as Zf,as as _f,ky as $f,bh as ag,yh as bg,Ay as cg,Eh as dg,Ry as eg,an as fg,os as gg,Ly as hg,rn as ig,sn as jg,ss as kg,xh as lg,is as mg,_e as ng,ln as og,Oh as pg,rs as qg,cn as rg,Ch as sg,$y as tg,Ky as ug,Nh as vg,jy as wg,dn as xg,zy as yg,qy as zg,Be as Ag,xa as Bg,va as Cg,El as Dg,Sl as Eg,_l as Fg,Fm as Gg,Tl as Hg,Gm as Ig,me as Jg,Wm as Kg,Um as Lg,Ym as Mg,xl as Ng,ka as Og,$m as Pg,Km as Qg,kl as Rg,Vm as Sg,ze as Tg,eE as Ug,qe as Vg,tE as Wg,nE as Xg,B as Yg,dE as Zg,hE as _g,us as $g,uE as ah,ms as bh,pE as ch,mE as dh,fE as eh,gE as fh,fs as gh,Mh as hh,Fh as ih,wE as jh,bE as kh,OE as lh,Es as mh,kE as nh,AE as oh,qh as ph,tu as qh,nu as rh,Te as sh,Je as th,NE as uh,IE as vh,As as wh,Cs as xh,iu as yh,PE as zh,mn as Ah,Ls as Bh,HE as Ch,et as Dh,DE as Eh,BE as Fh,A as Gh,KE as Hh,VE as Ih,XE as Jh,jE as Kh,G as Lh,mu as Mh,fu as Nh,gu as Oh,zE as Ph,qE as Qh,ZE as Rh,tt as Sh,Fs as Th,Gs as Uh,aS as Vh,oS as Wh,yn as Xh,sS as Yh,En as Zh,iS as _h,lS as $h,yu as ai,Eu as bi,cS as ci,dS as di,mS as ei,fS as fi,zm as gi,$n as hi,Cu as ii,Kp as ji,Gr as ki,Vp as li,Xp as mi,jp as ni,zp as oi,Pl as pi,Qm as qi,Ra as ri,Hl as si,Dl as ti,ef as ui,tf as vi,nf as wi};
74
+ `)}function Hm(e,t,n){return rl(e,t,n,At)}function Ta(e){return e.map(t=>t.kind==="text"?t.text:Ta(t.children)).join("")}function Dm(e){let t=n=>n.some(a=>a.kind==="link"||"children"in a&&t(a.children));return Ea(e).some(n=>t(n.children))}import{isNodeList as bl}from"efficient-easel/data";var Be=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],xa="bottom-left",ae=4,yl=ae+1,va=40,El=30,Sl=100,_l=60,Fm=100;var Rt={"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 Tl(e){let t=Be.indexOf(me(e));return{band:Math.floor(t/3),column:["start","center","end"][t%3]}}function vl(e){return 1+Tl(e).band*(yl+1)}function Gm(e){return vl(e)+1}function me(e){return Be.includes(e)?e:xa}function Wm(e){let t=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-va,Math.min(va,Math.round(t)))}function Um(e,t=_l){let n=typeof e=="number"&&Number.isFinite(e)?e:t;return Math.max(El,Math.min(Sl,Math.round(n)))}function Ct(e,t){let n=me(t);return e.filter(a=>me(a?.props?.placement)===n).length}function Oa(e){return`${Rt[me(e)]} already holds ${ae} boxes. Move one somewhere else first.`}function Ym(e,t){let n=e.filter(a=>a?.props?.id!==t);return Be.map(a=>{let o=Ct(n,a)>=ae,s=Rt[a];return o?{value:a,label:s,disabled:!0,title:Oa(a)}:{value:a,label:s}})}function xl(e,t){let n=t===void 0?xa:me(t?.props?.placement);return Ct(e,n)>=ae?Oa(n):null}var ka="HeroGroup";function Ol(e){return Be.map(t=>{let n=Ct(e,t);return{anchor:t,total:n,hidden:n-ae}}).filter(t=>t.hidden>0)}function $m(e){let t=Ol(e);return t.length===0?null:t.map(({anchor:n,total:a,hidden:o})=>{let s=Rt[n],i=o===1?"1 is not shown":`${o} are not shown`;return`${s} holds ${a} boxes. The published page draws the first ${ae}, so ${i}. ${o===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function Km(e,t){let n=t;if(n?.type!==ka)return null;let a=n.props?.id===void 0?"":String(n.props.id);return a?xl(kl(e,a),n):null}function kl(e,t){let n=Aa(e,t);return n&&n.ownerType===Rl?n.siblings:[]}function Vm(e,t){let n=Aa(e,t);return n?n.ancestorTypes.filter(a=>a===ka).length:Al}var Al=1,Rl="HeroSlide";function Aa(e,t){let n=(a,o,s)=>{if(o>12||!a||typeof a!="object")return null;if(bl(a)){if(a.some(i=>i?.props?.id===t))return{siblings:a,ownerType:s.at(-1)??null,ancestorTypes:s};for(let i of a){let r=i.type,l=n(i,o+1,[...s,String(r)]);if(l)return l}return null}for(let i of Object.values(a)){let r=n(i,o+1,s);if(r)return r}return null};return n(e,0,[])}import{forwardRef as Cl}from"react";import{jsx as Il}from"react/jsx-runtime";function Ll(e){if(typeof e=="string")return e;let t=e.query?`?${new URLSearchParams(e.query).toString()}`:"",n=e.hash?e.hash.startsWith("#")?e.hash:`#${e.hash}`:"";return`${e.pathname??""}${t}${n}`}var Nl=Cl(function({href:t,prefetch:n,replace:a,scroll:o,shallow:s,legacyBehavior:i,passHref:r,locale:l,onClick:d,children:p,...h},I){let P=W=>{d?.(W),!(W.defaultPrevented||h.target==="_blank")&&W.preventDefault()};return Il("a",{ref:I,href:Ll(t),onClick:P,...h,children:p})}),zm=Nl;var Pl="Website";function Qm(e){return e?.trim()||Pl}var Ra=["instagram","facebook","tiktok","youtube","x","linkedin","pinterest","whatsapp","telegram","line","wechat"],Hl={instagram:"Instagram",facebook:"Facebook",tiktok:"TikTok",youtube:"YouTube",x:"X",linkedin:"LinkedIn",pinterest:"Pinterest",whatsapp:"WhatsApp",telegram:"Telegram",line:"LINE",wechat:"WeChat"},Dl={};function ef(e){if(!e||typeof e!="object")return Dl;let t={};for(let n of Ra){let a=e[n];if(typeof a!="string")continue;let o=a.trim();!o||!/^https?:\/\//i.test(o)||(t[n]=o)}return t}function tf(e){return Ra.flatMap(t=>{let n=e[t];return n?[{platform:t,href:n,label:Hl[t]}]:[]})}var nf=e=>`${e}_url`;function oe(e,t){let n=globalThis,a=Symbol.for(e),o=n[a];return o===void 0&&(o=t(),n[a]=o),o}function fe(){return oe("efficient.slot-field-blocks",()=>new Set)}var Bl="dataSource",hf="dataSourceOptions",Ml="dataRows",uf="countKey",pf="counts",mf="location-payment-methods",ff="shop-payment-methods",gf="delivery-options",wf="blog-categories",Lt="dealers";function Fl(e){return typeof e.open=="function"}var Na=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function bf(e){return typeof e=="string"&&Na.test(e)}var Ca=new Set([Lt]);function ge(){return oe("efficient.block-sources",()=>({sources:new Map,revision:0}))}var Gl=e=>[e?.key,e?.label,e?.value].every(t=>typeof t=="string"&&t.trim()!==""),Wl=e=>[e?.key,e?.label].every(t=>typeof t=="string"&&t.trim()!==""),La=e=>typeof e=="string"&&e.trim()!=="";function Ul(e){if(!e||!La(e.label))return null;if(Fl(e))return{label:e.label.trim(),open:e.open};let t=e.href;return La(t)?{label:e.label.trim(),href:t.trim()}:null}function Yl(e){if(typeof e.key!="string"||!Na.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 n=Ul(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(a=>Pa(a)).filter(a=>a!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(Gl)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(Wl).map(a=>({...a}))}:{},...n?{edit:n}:{},...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 yf(e){let t=e.map(Yl),n=ge();for(let a of t)n.sources.set(a.key,a);t.length&&(n.revision+=1)}function Ia(e){let t=[...ge().sources.values()],n=[...t.filter(a=>!Ca.has(a.key)),...t.filter(a=>Ca.has(a.key))];return e===void 0?n:n.filter(a=>a.blocks.includes(e))}function Me(e){return ge().sources.get(e)??null}function Ef(e){return ge().sources.get(e)?.choices??[]}function Sf(){return ge().revision}function v(e){let t=e?.[Bl];return typeof t=="string"?t.trim():""}function Pa(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let t={};for(let[n,a]of Object.entries(e)){let o=w(a);o&&(t[n]=o)}return Object.keys(t).length?t:null}function $l(e){let t=e?.[Ml];return Array.isArray(t)?t.map(Pa).filter(n=>n!==null):null}function _f(e,t,n=[]){let a=$l(e);if(a!==null&&(a.length||!t))return{rows:a,sample:!1};if(!t)return{rows:[],sample:!1};let o=Me(v(e))?.sample;return{rows:o?.length?o:n,sample:!0}}var m="content",g="Flex",Kl="Text & media",Vl="Layout & structure",Da=[{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"}],Xl=[...Da,{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:Kl})),jl=(ne.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Vl})),Ha=[...Xl,...jl],Nt=[...Da,{type:"HeroGroup",label:De}],Of=Nt.map(e=>e.type),zl=1,ql=Nt.filter(e=>e.type!=="HeroGroup");function Zl(e){return e<zl?Nt:ql}var Ql={Flex:{slot:m,choices:()=>Ha},Grid:{slot:m,choices:()=>Ha},HeroGroup:{slot:m,choices:Zl}};function kf(e,t=0){let n=pe(Ql,e);return n?{slot:n.slot,choices:n.choices(t)}:null}import{AUTO_RULES as ac,FOLLOW_RULES as oc,isAuto as sc,resolveViewValue as ic}from"efficient-easel/screen/lib/content/view-tiers";import{VIEW_DESKTOP_MIN as Jl,VIEW_TABLET_MIN as ec}from"efficient-easel/screen/lib/content/view-tiers";var Ma="v1",Fa=800,Ba={"view-tablet":ec,"view-desktop":Jl,"view-wide":Fa};function Cf(e){let t=e.startsWith("max-"),n=t?e.slice(4):e;if(n in Ba)return{px:Ba[n],max:t};let a=/^(max|min)-\[(\d+)px\]$/.exec(e);return a?{px:Number(a[2]),max:a[1]==="max"}:void 0}var Lf=`(min-width: ${Fa}px)`,tc="data-sf-line",nc="edge",Nf={[tc]:nc},we=(e,t)=>e==="edge"||e!=="section"&&t;function rc(){return Ma==="v2"?ac:oc}function Ga(e,t,n,a,o=rc()){let s=ic(e,t,n,a,o),i={},r=(l,d)=>!sc(l)||d!=null&&d!==t;return r(n,s.tablet)&&(i.tablet=s.tablet),r(a,s.phone)&&(i.phone=s.phone),i}var It="rowImageField",lc="boxOutsideCopy",cc={all:[{field:It,set:!0},{not:{context:lc,is:!0}}]},Bf={any:[{field:"bgImage",set:!0},cc]},Wa="boxInCopy",dc={any:[{not:{field:It,set:!0}},{not:{context:Wa,is:!0}}]},Mf={all:[{not:{field:"bgImage",set:!0}},dc]},Ua={all:[{not:{context:"parent.bgImage",set:!0}},{any:[{not:{context:`parent.${It}`,set:!0}},{not:{context:Wa,is:!0}}]}]};function be(e,t,n){return e.some(a=>(typeof a=="object"?a.value:a)===n)?n:t}var hc="small",uc="dot",pc=[{label:"Small",value:"small"},{label:"Display",value:"display"}],Pt=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],Ya={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},mc={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)]"},fc={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 Uf(e){return be(pc,hc,e)}function $a(e){return be(Pt,uc,e)}function Yf(e){return mc[e]}function Ka(e,t){return fc[e][t]}var Vf=[{value:"none"},{value:"dot"},{value:"cross"},{value:"slash"},{value:"triangle"}];function Va(e){return Pt.some(t=>t.value===e)?$a(e):void 0}var gc="overflow-x-clip [&>*]:shrink-0 [&>[data-sf-box-items]>*]:shrink-0 [&>*]:max-view-wide:basis-[content] [&>[data-sf-box-items]>*]:max-view-wide:basis-[content] [&>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>[data-sf-box-items]>*_:is(p,h1,h2,h3,h4,h5,h6)]:max-w-none [&>*_:is(.sf-button-block>div)]:font-mono [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:font-mono [&>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:text-[length:var(--size-label,14px)] [&>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>[data-sf-box-items]>*_:is(.sf-button-block>div)]:tracking-[0.2em] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:inline-flex [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:items-center [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:align-top [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:h-[calc(1lh/var(--sf-sep-k,1))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:mr-[var(--sf-gap-len,0px)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:max-view-wide:before:mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len,0px)/2))] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-accent [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:text-[length:calc(var(--sf-sep-k,1)*1em)] [&>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)] [&>[data-sf-box-items]>*+*_:is(:is(p,h1,h2,h3,h4,h5,h6):first-child,.sf-button-block>div)]:before:content-[var(--sf-sep-mark)]";function K(e,t){return e==="row"&&Va(t)!==void 0}function Xf(e,t){return K(e,t)?gc:""}var wc="[&>*: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 jf(e,t){return K(e,t)?wc:""}function zf(e,t){if(!K(e,t))return{};let n=Va(t),a=/^text-\[([\d.]+)em\]$/.exec(Ka("small",n))?.[1],o=Ya[n];return{"--sf-sep-mark":o===""?"none":JSON.stringify(o),...a?{"--sf-sep-k":a}:{}}}var qa={sectionPaddingTop:0,sectionPaddingBottom:0},ye={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},Ee={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function tg(e,t){let n=typeof e=="string"&&te(ye,e)?ye[e]:"",a=typeof t=="string"&&te(Ee,t)?Ee[t]:"";return[n,a].filter(Boolean).join(" ")}function bc(e){return e===!0||e==="wrap"?"flex-wrap":""}var yc={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!"},Ec={start:"max-view-wide:justify-start",center:"max-view-wide:justify-center",between:"max-view-wide:justify-between",end:"max-view-wide:justify-end"},Sc={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!"},_c={start:"max-view-wide:items-start",center:"max-view-wide:items-center",end:"max-view-wide:items-end",stretch:"max-view-wide:items-stretch"},Tc={wrap:"view-wide:max-view-desktop:flex-wrap!",nowrap:"view-wide:max-view-desktop:flex-nowrap!"};function j(e,t){return typeof t=="string"&&te(e,t)?t:void 0}function Dt(e,t,n){let a=Ga("same",e,t,n),o={};return a.tablet!==void 0&&a.tablet!==e&&(o.tablet=a.tablet),a.phone!==void 0&&a.phone!==e&&(o.phone=a.phone),o}function Bt(e,t,n){return[e.tablet?t[e.tablet]:"",e.phone?n[e.phone]:""].filter(Boolean).join(" ")}function vc(e,t,n){return Dt(j(ye,e)??"start",j(ye,t),j(ye,n))}function ng(e,t,n){return Bt(vc(e,t,n),yc,Ec)}function ag(e,t,n){let a=j(Ee,e)??"stretch";if(a==="stretch")return"";let o=Dt(a,j(Ee,t),j(Ee,n));return Bt(o,Sc,_c)}function Ht(e){if(e===!0||e==="wrap")return"wrap";if(e===!1||e==="nowrap")return"nowrap"}function og(e,t){let n=bc(e)===""?"nowrap":"wrap",a=Ht(t);return a&&a!==n?Tc[a]:""}var sg="Block widths",Za=[{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]}],xc="data-sf-box-items",ig=new RegExp(`[ \\t]+[^\\s"'\`]*\\[${xc}\\][^\\s"'\`]*`,"g");var rg=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Custom",value:"custom",weights:[2,1]}];function lg(e){return Array.isArray(e)?"custom":e==="equal"?"equal":typeof e=="string"&&e in Fe?"custom":"content"}var Qa=4,Xa=10;function Oc(e,t){if(!Number.isInteger(t)||t<2||t>Qa||e.length!==t-1||!e.every(o=>typeof o=="number"&&Number.isFinite(o)))return;let n=[],a=0;return e.forEach((o,s)=>{let i=100-a-Xa*(t-1-s),r=Math.min(i,Math.max(Xa,Math.round(o)));n.push(r),a+=r}),n}function ja(e,t,n){if(!Array.isArray(t))return;let a=Oc(t,n),o=a?[...a,100-a.reduce((i,r)=>i+r,0)]:[],s={};for(let i=0;i<Qa;i+=1)s[`--${e}-${i+1}`]=o[i]??1;return s}function cg(e,t,n){let a=ja("sf-share",e,n),o=ja("sf-share-tablet",t,n);return a||o?{...a,...o}:void 0}function kc(e,t){let n=Array.from({length:t},()=>1),a=Za.find(i=>i.value===e);if(!a?.weights||t<1)return n;let[o,s]=a.weights;return o>1&&(n[0]=o),s>1&&(n[t-1]=s),n}function dg(e,t){if(typeof e!="string"||!(e in Fe)||e==="equal")return e;let n=kc(e,t),a=n.reduce((o,s)=>o+s,0);return n.slice(0,-1).map(o=>Math.round(o/a*100))}var V="[&>*]:min-w-0 [&>[data-sf-box-items]>*]:min-w-0 [&>*]:flex-1 [&>[data-sf-box-items]>*]:flex-1 [&>*]:basis-0 [&>[data-sf-box-items]>*]:basis-0",Fe={equal:V,bigLeft:`${V} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2]`,bigRight:`${V} [&>*:last-child]:view-wide:grow-[2] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[2]`,biggerLeft:`${V} [&>*:first-child]:view-wide:grow-[3] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[3]`,biggerRight:`${V} [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`,twoThree:`${V} [&>*:first-child]:view-wide:grow-[2] [&>[data-sf-box-items]:first-child>*:first-child]:view-wide:grow-[2] [&>*:last-child]:view-wide:grow-[3] [&>[data-sf-box-items]:last-child>*:last-child]:view-wide:grow-[3]`},Ac=`${V} [&>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>[data-sf-box-items]>*:nth-child(1)]:view-wide:grow-[var(--sf-share-1,1)] [&>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>[data-sf-box-items]>*:nth-child(2)]:view-wide:grow-[var(--sf-share-2,1)] [&>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>[data-sf-box-items]>*:nth-child(3)]:view-wide:grow-[var(--sf-share-3,1)] [&>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)] [&>[data-sf-box-items]>*:nth-child(4)]:view-wide:grow-[var(--sf-share-4,1)]`;function Rc(e){return Array.isArray(e)?Ac:typeof e=="string"?Fe[e]??"":""}var Ja={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}},Ua,{any:[{context:"parent.columns",in:[2,3,4,5,6]},{all:[{not:{context:"parent.columns",is:1}},{context:"parent.share",in:Object.keys(Fe)}]}]}]},eo="view-wide:max-view-desktop:flex-row!",X=`${eo} [&>*: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!`,to={content:`${eo} [&>*: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]!`},Cc=`${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 Lc(e){return Array.isArray(e)||typeof e=="string"&&e in to?e:null}function hg(e){if(e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0||no(e.columns)!==""||ao(e.columnsTablet)!=="")return"";let t=Lc(e.shareTablet);return t===null?"":typeof t=="string"?to[t]:Cc}var Nc="[&>*]:view-wide:basis-[content] [&>[data-sf-box-items]>*]:view-wide:basis-[content]";function ug(e){return Rc(e)===""?Nc:""}var pg="Columns",mg=1,fg=3,Mt={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)]"},gg=Za.filter(e=>e.value==="content"||e.value==="equal"),wg="equal",bg=1,yg=6,se="view-wide:flex-wrap [&>*]:view-wide:min-w-0 [&>[data-sf-box-items]>*]:view-wide:min-w-0 [&>*]:view-wide:grow-0! [&>[data-sf-box-items]>*]:view-wide:grow-0!",Ic={1:`${se} [&>*]:view-wide:basis-[calc(100%/1)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc(100%/1)]!`,2:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]!`,3:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]!`,4:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_3)/4)]!`,5:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_4)/5)]!`,6:`${se} [&>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]! [&>[data-sf-box-items]>*]:view-wide:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_5)/6)]!`};function no(e){return typeof e=="number"?Ic[e]??"":""}var Pc={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 ao(e){return typeof e=="number"?Pc[e]??"":""}function Eg(e){return e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":ao(e.columnsTablet)}function Sg(e){return e.direction!=="row"||K(e.direction,e.separator)||e.loop==="scroll"||e.line===!0?"":no(e.columns)}var oo={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"},so={2:"max-view-wide:grid max-view-wide:grid-cols-2",3:"max-view-wide:grid max-view-wide:grid-cols-3"},_g=Object.keys(oo).map(Number),Tg=Object.keys(so).map(Number);function vg(e,t,n=!1){let a=typeof e=="number"?oo[e]??"":"",o=so[Number(t)]??"";return!a&&!o?"":[a,o,n?"gap-y-0!":""].filter(Boolean).join(" ")}var Hc="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]",Dc={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)]"},Bc="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 Mc(e,t){return(Ht(e)??Ht(t)??"wrap")==="nowrap"}function xg(e,t,n,a){let o=Mt[Number(e)];if(!o)return"max-view-wide:flex-col";let s=Mc(n,a);return io(e,t)?s?Bc:Hc:s?Dc[Number(e)]:o}function Og(e,t){return Number(e)in Mt&&!io(e,t)}function io(e,t){return Number(e)in Mt&&t==="content"}var kg="Block spacing",Ag=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],Fc="sf-box-gap-only";function Rg(e){return e==="gap"?Fc:""}var za={each:"sf-box-each-tablet",gap:"sf-box-gap-only-tablet"},Gc={each:"sf-box-each-phone",gap:"sf-box-gap-only-phone"};function Cg(e,t,n){let a=s=>j(za,s),o=Dt(e==="gap"?"gap":"each",a(t),a(n));return Bt(o,za,Gc)}var ro={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Hg,tag:Dg,...Wc}=ro.defaultProps,b=Wc,x={...b,tone:"dim"},Uc={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},y={...Uc,direction:"column",...qa},D=(e,t=e,n=e,a=t)=>({sectionPaddingTop:e,sectionPaddingRight:t,sectionPaddingBottom:e,sectionPaddingLeft:t,sectionPaddingTopPhone:n,sectionPaddingRightPhone:a,sectionPaddingBottomPhone:n,sectionPaddingLeftPhone:a}),Yc=e=>({fillColor:e}),lo=(e,t,n={})=>({...y,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...t?Yc(t):{},...n}),_=(e,t,n,a)=>({sizeToken:{step:e,px:t,...a?{stepPhone:a}:{},...n?{pxPhone:n}:{}}}),co={case:"upper"},Ft={textStyle:"body-5",...co},Gt=(e,t)=>({..._("label",e,t),letterSpacing:.2,...co}),Bg=(e,t)=>({...Ft,...Gt(e,t)});function S(e,t,n=""){return e.map((a,o)=>{let s=n?`${n}.${o}`:String(o),i={...a.props??{}};for(let[r,l]of Object.entries(a.slots??{}))i[r]=S(l,t,s);return{type:a.type,props:{...i,id:t(a.type,s)}}})}import{isNodeList as yd}from"efficient-easel/data";function fo(e,t){if(e!=="Cards")return t;if(t.template!==void 0)return ho(t);let n=w(t.id)??"Cards",a=po(n);if(t.cardStyle==="label-only"){let s=Array.isArray(t.items)&&t.items.some(i=>w(i?.href)!==void 0);return ho({...t,template:mo(a,s)})}let o=v(t)?Ge:ie;return{...t,template:uo(a,o)}}var $c=e=>{let[t,n]=e?[ie,Ge]:[Ge,ie];return new Map([[t.title,n.title],[t.body,n.body]])};function go(e,t){let n=null;return e.forEach((a,o)=>{let s=a?.props;if(!s)return;let i=s,r=s[E];a.type==="Text"&&typeof r=="string"&&t.has(r)&&(i={...i,[E]:t.get(r)});let l=s[m];if(Array.isArray(l)){let d=go(l,t);d!==l&&(i={...i,[m]:d})}i!==s&&(n??=[...e],n[o]={...a,props:i})}),n??e}function ho(e,t){if(!Array.isArray(e.template))return e;let n=$c(!!v(e)),a=t?new Map([...n].filter(([s,i])=>t(i)&&!t(s))):n;if(!a.size)return e;let o=go(e.template,a);return o===e.template?e:{...e,template:o}}var Kc="label";function wo(e){if(e.template!==void 0)return e;let t=w(e.id)??"CardList",n={type:g,props:{...y,name:"Item"},slots:{[m]:[f(Kc,{...b,tag:"p"},Se)]}};return{...e,template:S([n],(a,o)=>o==="0"?`${t}~item`:`${t}~item.${o.slice(2)}`)}}var Wt="ArticleBody",Vc={textStyle:"heading-3",..._("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},Xc={...Se,align:"center"},bo=640,jc=()=>[f("heading",{...b,tag:"h2",align:"center",maxWidth:bo},Vc),f("paragraph",{...x,tag:"p",align:"center",maxWidth:bo},Xc)],zc=e=>S(jc(),e);function qc(e){return zc((t,n)=>`${e}~${n==="0"?"heading":"paragraph"}`)}function yo(e){if(e.template!==void 0)return e;let t=typeof e.id=="string"&&e.id.trim()?e.id:Wt;return{...e,template:qc(t)}}var Zc="label",Qc=()=>({type:"LogoBlock",props:{[E]:Zc}}),Eo=e=>{let t=w(e.id)??"Logos";return{...e,template:S([Qc()],()=>`${t}~logo`)}};function So(e){return!v(e)||e.template!==void 0?e:Eo(e)}function aw(e){if(!v(e))return e;let t=e.template;return t!==void 0&&!(Array.isArray(t)&&t.length===0)?e:Eo(e)}import{addShowWhenFacts as Jc}from"efficient-shell/format";import{showWhenOf as rw,shownForOption as lw,truthy as cw,withRowRules as dw,withRowsShownWhen as _o,withShowWhen as hw}from"efficient-shell/format";var uw=Jc;function pw(e,t,n){return e.slice(0,-1).reduceRight((a,o)=>({any:[{all:[t(o),n(o)]},{all:[{not:t(o)},a]}]}),n(e[e.length-1]))}var ed="inline",td=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var nd={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"}},bw="SectionHeader";function yw(e){return te(nd,e)}function To(e){return be(td,ed,e)}var ad=new Set(["Flex"]);function Ew(e){return!!e?.type&&ad.has(e.type)}var vo={not:{field:"headPlacement",is:"own-box"}},Sw={not:vo};function _w(e,t,n){return _o(e,n,vo)}var vw="data-sf-spec-region";function xw(e){return e.writable===!0&&e.sized===!0}function Ow(e,t,n){if(!e)return;let a=n[e];if(a)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${a}, ${t.builtIn})`}}function kw(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 xo(e){return`@${e}`}function Aw(e,t){if(!t.startsWith("@"))return null;let n=t.slice(1);return n in e?n:null}function Rw(e,t){return t&&t in e?t:null}var Ut={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}},Lw=Ut;var od="question",sd="answer",id={textStyle:"body-1",fontRole:"heading",..._("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},rd={textStyle:"body-1",..._("body",15),lineHeight:1.7};function Gw(){return Object.keys(Ut).map(xo)}var ld=()=>({type:g,props:{...y,gap:0,name:"Question"},slots:{rowTitle:[f(od,{...b,tag:"p",widthFit:"fill"},id)],[m]:[f(sd,{...x,tag:"p",widthFit:"fill",maxWidth:760},rd)]}});function cd(e){return To(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(t=>w(e[t])!==void 0)}function Oo(e){if(e.template!==void 0||cd(e))return e;let t=w(e.id)??"FAQ",n=0;return{...e,template:S([ld()],a=>a===g?`${t}~row`:`${t}~row.${n++}`)}}var dd=["below","left","right"];function hd(e){return dd.includes(e)?e:"below"}function Yt(e){return hd(e)!=="below"}function $t(e){return Array.isArray(e)?e.map($t):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([t,n])=>t!=="id"&&n!==void 0&&!(Array.isArray(n)&&n.length===0)).sort(([t],[n])=>t<n?-1:t>n?1:0).map(([t,n])=>[t,$t(n)]))}var F=e=>JSON.stringify($t(e));var Ro=e=>v(e)===Lt,We=Gt(11),ud={textStyle:"body-1",..._("body",18),weight:500,lineHeight:1.2},Qw=()=>({type:g,props:{...y,gap:8,gapPhone:8,...D(20,24,20,20),name:"Office"},slots:{[m]:[f("badge",{...b,tag:"p",widthFit:"fill"},We,!0),f("role",{...b,tag:"p",widthFit:"fill"},We,!0),f("city",{...b,tag:"p",widthFit:"fill"},ud),f("country",{...x,tag:"p",widthFit:"fill"},We),f("address",{...x,tag:"p",widthFit:"fill"},We),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[E]:"linkLabel",[C]:"href"}}]}}),Co={textStyle:"body-1",fontRole:"heading",..._("body",16),weight:500,lineHeight:1.25},Vt={textStyle:"body-1",..._("body",14),lineHeight:1.5},pd=()=>({type:g,props:{...y,gap:4,gapPhone:4,...D(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[m]:[f("city",{...b,tag:"p",widthFit:"fill"},Co),f("address",{...x,tag:"p",widthFit:"fill"},Vt),f("phone",{...x,tag:"p",widthFit:"fill"},Vt)]}});function Lo(e){let t=w(e.id)??"Footprint",n=0;return S([pd()],a=>a===g?`${t}~office`:`${t}~office.${n++}`)}function No(e){return Array.isArray(e.template)&&e.template.length>0&&F(e.template)===F(Lo(e))}var Io=e=>e===void 0||Array.isArray(e)&&e.length===0;function ko(e){return Yt(e.listPosition)?!Io(e.template)||Ro(e)?e:{...e,template:Lo(e)}:No(e)?{...e,template:[]}:e}var md=Co,fd=Vt,gd={textFit:"line"},Xt=(e,t,n="",a={},o={})=>{let s=f(e,{...t?x:b,tag:"p",...a},{...fd,...o});return n?{...s,props:{...s.props,[C]:n}}:s},Kt=(e,t,n,a)=>({type:g,props:{...y,gap:0,gapPhone:0,[zt]:[e],name:a},slots:{[m]:[Xt(e,t,n,gd,{align:"right"})]}}),wd=e=>({type:g,props:{...y,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?D(20,24):{...D(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[m]:[{type:g,props:{...y,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[m]:[{type:g,props:{...y,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[m]:[f("name",{...b,tag:"p",widthFit:"fill"},md),Xt("address",!0)]}},Xt("place",!0,"",{widthFit:"fill"})]}},{type:g,props:{...y,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[m]:[Kt("distance",!0,"","Dealer distance"),Kt("phone",!1,"phoneHref","Dealer phone"),Kt("website",!1,"websiteHref","Dealer website")]}}]}}),bd=e=>{let t=wd(e),n={type:g,props:{...y,...D(0,12),name:"Dealer"},slots:{[m]:[{...t,props:{...t.props,name:"Dealer row"}}]}};return e?t:n};function jt(e,t){let n=w(e.id)??"Footprint",a=0;return S([bd(t)],(o,s)=>s==="0"?`${n}~dealer`:`${n}~dealer.${a++}`)}function Ao(e){if(!Array.isArray(e.template)||e.template.length===0)return!1;let t=F(e.template);return t===F(jt(e,!0))||t===F(jt(e,!1))}function Po(e){if(Ro(e)){let n=jt(e,!Yt(e.listPosition));return!(Io(e.template)||No(e)||Ao(e))||F(e.template??[])===F(n)?e:{...e,template:n}}if(!Ao(e))return ko(e);let t={...e,template:[]};return ko(t)}var Ho="template",Ed="Card template",Ue="CardList",Do=["Text","ImageBlock","ButtonBlock","Flex"],E="rowField",C="rowLinkField";function pb(){return{type:"slot",allow:[...Do]}}var Sd=Do.filter(e=>e!=="ButtonBlock"),Bo="items",Mo="itemFields";function mb(){return{type:"slot",allow:[...Sd]}}var _d=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Oo(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region \xB7 country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>Po(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>fo("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:Ue,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>So(e)},{block:Ue,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:Bo,seed:e=>wo(e)},{block:Wt,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>yo(e)}];function T(){return oe("efficient.card-templates",()=>new Map(_d.map(e=>[e.block,e])))}function fb(e){for(let t of e){if(typeof t.block!="string"||!t.block)throw new Error("A card template names no block.");let n=[];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===Ye)throw new Error(`The card template of ${t.block} names "${Ye}" in its blocks. Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`);n.some(r=>r.type===i.type)||n.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=w(i.label),l=Array.isArray(i.fields)?{fields:i.fields.map(d=>({...d}))}:null;a.some(d=>d.slot===i.slot)||a.push({slot:i.slot,...r?{label:r}:null,...l})}let o=a.some(i=>i.fields);if(o&&(t.fields.some(i=>i.everySource)||Ia(t.block).length))throw new Error(`The card template of ${t.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);o?fe().add(t.block):fe().delete(t.block);let s=w(t.typedRows);T().set(t.block,{block:t.block,...a.length?{slots:a}:{},fields:t.fields.map(i=>({...i})),blocks:n,typedRows:s,...t.seed?{seed:t.seed}:{},...t.seedOnInsert?{seedOnInsert:t.seedOnInsert}:{},...t.linesBetween===!0?{linesBetween:!0}:{}})}}function Td(e,t){let n=e?T().get(e)?.seed:void 0;return n?n(t):t}function gb(e,t){let n=xd(e),a=(n.length?n:[Ho]).filter(r=>t[r]===void 0||Array.isArray(t[r])&&t[r].length===0);if(!a.length)return t;let o={...t};for(let r of a)delete o[r];let s=e?T().get(e)?.seedOnInsert:void 0,i=s?s(o):Td(e,o);return i===o?t:i}function wb(){for(let e of T().values())if(e.blocks?.length)return!0;return!1}function bb(e){return T().get(e)?.blocks??[]}function yb(e){for(let t of T().values())if(t.blocks?.some(n=>n.type===e))return!0;return!1}function Eb(e){return typeof e=="string"&&T().get(e)?.typedRows||""}function Sb(e){return typeof e=="string"&&T().get(e)?.linesBetween===!0}function _b(e){return typeof e=="string"&&T().has(e)}var vd=[{slot:Ho}];function $e(e){if(typeof e!="string")return[];let t=T().get(e);return t?t.slots??vd:[]}function xd(e){return $e(e).map(t=>t.slot)}function Od(e,t){return $e(e).some(n=>n.slot===t)}function Tb(e,t){let n=$e(e).find(a=>a.slot===t);return n?n.label??Ed:null}function qt(e,t){return t?$e(e).find(n=>n.slot===t)?.fields:void 0}function kd(e,t){let n=T().get(e)?.fields??[];return t?n.filter(a=>(a.kind??"text")===t):n}function Ad(e,t){if(typeof e!="string")return"";let n=qt(e,t);return(n?n.filter(a=>a.kind==="list"):kd(e,"list"))[0]?.key??""}function Rd(e,t,n){return Zt(e)||Ad(t,n)}function Fo(e,t,n){let a=typeof e?.type=="string"?e.type:"";if(!a)return[];let o=qt(a,n);if(o)return t?o.filter(l=>(l.kind??"text")===t):o;let s=T().get(a)?.fields??[],i=Me(v(e?.props))?.fields,r=i?.length?[...i.map(l=>({...l})),...s.filter(l=>l.everySource&&!i.some(d=>d.key===l.key))]:s;return t?r.filter(l=>(l.kind??"text")===t):r}function Cd(e,t,n,a){if(!e)return null;let o=qt(e,a);return o?o.find(s=>s.key===t)??null:n?Fo(n).find(s=>s.key===t)??null:T().get(e)?.fields.find(s=>s.key===t)??null}function Go(e,t){return!e||!t?null:e.fields?.find(n=>n.key===t)??Cd(e.ownerType,t,e.owner,e.slot)}function vb(e,t){return Go(e,t)?.plain===!0}function Zt(e,t=E){let n=e?.[t];return typeof n=="string"?n.trim():""}function xb(e,t){return e.key||String(t+1)}function Ob(e){let t={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[n,a]of Object.entries(e))typeof a=="string"&&(t[n]=a);return t}var zt="hideWhenRowEmpty";function kb(e,t){let n=e[zt];return!t||!Array.isArray(n)||!n.length?!1:n.every(a=>typeof a!="string"||!t[a]?.trim())}var Wo={Text:{text:E,href:C},ImageBlock:{src:E,href:C},ButtonBlock:{label:E,href:C},LogoBlock:{alt:E,href:C},Breadcrumb:{currentCrumb:E}};var Ld=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Ab(e,t,n){return Nd(e,t,n)&&!Ld.has(`${e}.${n}`)}function Nd(e,t,n){return Id(e,t,n)!==""}function Id(e,t,n){let a=Wo[e]?.[n];return a?Zt(t,a):""}function Uo(e,t){return!t||!e?null:e[t]??""}function Pd(e,t){return Uo(e,t)?.trim()||void 0}function Rb(e,t,n,a,o,s){if(!n)return t;let i=null;for(let[r,l]of Object.entries(Wo[e]??{})){let d=Zt(t,l),p=Uo(n,d);if(p!==null){if(i??={...t},l===C){i[r]=Pd(n,d);continue}i[r]=Go({ownerType:a,fields:o,slot:s},d)?.mark==="accentItalic"?_a(p):p}}return i??t}function Ke(e,t){let n=e?.data?.content;if(!Array.isArray(n)||typeof t!="string")return;let a=(s,i)=>{for(let r of s){if(r?.props?.id===t)return i;for(let[l,d]of Object.entries(r?.props??{})){if(!yd(d))continue;let p=Od(r.type,l)?{owner:r,slot:l,direct:!0,nested:i!==null,underBox:!1}:i&&{owner:i.owner,slot:i.slot,direct:!1,nested:i.nested,underBox:i.underBox||r.type===g},h=a(d,p);if(h!==void 0)return h}}},o=a(n,null);return o===void 0?null:o}function Hd(e,t){let n=Ke(e,t);return n&&n.owner}function Dd(e,t){let n=Ke(e,t);return n&&n.slot}function Cb(e,t){let n=Ke(e,t);return n&&(n.direct?n.owner:null)}function Lb(e,t){let n=Ke(e,t);if(n!==void 0)return n===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:n.nested,underBox:n.underBox}}function Nb(e,t,n){if(t?.type!==Ue)return[];let a=Hd(e,t.props?.id);if(!a){let r=Me(v(t.props))?.fields,l=r?.length?r.map(h=>({...h})):Bd(t.props),d=(T().get(Ue)?.fields??[]).filter(h=>h.everySource&&!l.some(I=>I.key===h.key)),p=[...l,...d];return n?p.filter(h=>(h.kind??"text")===n):p}let o=Dd(e,t.props?.id)??void 0,s=Rd(t.props,a.type,o),i=s&&Fo(a,"list",o).find(r=>r.key===s)?.fields||[];return n?i.filter(r=>(r.kind??"text")===n):i}function Ib(e,t){return{[E]:"",[Bo]:e.map(n=>({...n})),[Mo]:t.map(n=>({...n}))}}function Bd(e,t){let n=e?.[Mo];if(!Array.isArray(n))return[];let a=n.flatMap(o=>{if(!o||typeof o!="object")return[];let{key:s,label:i,kind:r,multiline:l,alt:d,next:p}=o;if(typeof s!="string"||!s||typeof i!="string")return[];let h=r==="image"||r==="link"||r==="colour"?r:void 0;return[{key:s,label:i,...h?{kind:h}:{},...l===!0?{multiline:!0}:{},...typeof d=="string"&&d?{alt:d}:{},...typeof p=="string"&&p?{next:p}:{}}]});return t?a.filter(o=>(o.kind??"text")===t):a}var Ye="HostPart";var re={min:0,max:360,step:1},Yo="angle";function Db(e){let t=H(e);if(t===void 0)return null;let n=Math.min(re.max,Math.max(re.min,t));return n===re.min||n===re.max?null:{rotate:`${n}deg`}}import{MEDIA_ZONES as Md,MEDIA_ZONE_LABELS as Fd}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as Gd,hoverKindsOf as Xe,motionSeconds as Ve}from"efficient-shell/format";var k="hover",Ub="_gHover",Wd={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},z="highlight",Ud="Highlight",Yb=["none",z],$b={none:Wd.none,[z]:Ud};function Yd(e){return e[k]===z?z:"none"}var Kb="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)]",Vb="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 Xb(e,t){return Yd(e)!==z?null:{"--sf-hl-bg":t("surface"),"--sf-hl-ink":t("main")}}var $d=Xe(["none","lift"]);function jb(e){let t=e[k];return $d.includes(t)?t:"none"}var Vo=Xe(["none","nextImage","rotate"]),O={kind:k,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},tn="spinOnHover",$o=re,Xo={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},zb=Object.keys(Xo);function Kd(e){return Xo[e]??"none"}var Vd=Gd.rotateFallbackDeg,Xd=e=>e==="rendering"?"renderings":e,jd=e=>e==="renderings"?"rendering":e,jo=Object.freeze(Md.filter(e=>e!=="videos").map(Xd)),qb=Object.freeze(Object.fromEntries(jo.map(e=>[e,Fd[jd(e)]]))),zd=["finish","first"],Zb={finish:"Same finish",first:"First group"},qd=["card","picture"],Qb={card:"Whole card",picture:"Picture"},Qt={kind:"photos",group:"finish",cover:"card"},Jt=(e,t,n)=>e.includes(t)?t:n;function zo(e){return{kind:Jt(jo,e[O.mediaKind],Qt.kind),group:Jt(zd,e[O.mediaGroup],Qt.group),cover:Jt(qd,e[O.cover],Qt.cover)}}function Jb(){return{field:O.kind,is:"nextImage"}}function Zd(e,t){let n=e[O.kind];if(Vo.includes(n))return n;let a=e[tn];return typeof a=="boolean"?a?"rotate":"none":t}function Qd(e){let t=H(e);return t===void 0?Vd:Math.min($o.max,Math.max($o.min,t))}function ey(e,t){let n=Kd(t),a=Zd(e,n);return{kind:a,angle:a==="rotate"?Qd(e[O.angle]):null,duration:Ve("hover","duration",a==="rotate"?e[O.duration]:void 0),delay:Ve("hover","delay",a==="rotate"?e[O.delay]:void 0),...a==="nextImage"?{media:zo(e)}:{}}}function ty(e){let t={field:O.kind,in:[...Vo]};return{any:[{field:O.kind,is:"rotate"},{all:[{not:t},e==="rotate"?{not:{field:tn,is:!1}}:{field:tn,is:!0}]}]}}var qo=Xe(["none","mono"]),Jd=Xe(["none","nextImage","mono"]),Zo={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},ny=Object.keys(Zo);function eh(e){return Zo[e]??"none"}var Qo={zoom:"hoverZoom",darken:"hoverDarken"},en={min:100,max:150,step:1,unit:"%"};function th(e){let t=H(e[Qo.zoom]);if(t===void 0)return null;let n=Math.min(en.max,Math.max(en.min,t));return n===en.min?null:String(n/100)}function nh(e){let t=H(e[Qo.darken]);return t!==void 0&&t>0?t:null}var ay="hoverShow",oy="cardHover",sy="always",ah=["ImageBlock","Flex"];function oh(e,t,n=qo){let a=e[k];return n.includes(a)?a:t}function iy(e,t=""){let n=ah.includes(t)?Jd:qo,a=oh(e,eh(t),n),o=a==="mono";return{kind:a,duration:Ve("hover","duration",o?e[O.duration]:void 0),delay:Ve("hover","delay",o?e[O.delay]:void 0),...a==="nextImage"?{media:zo(e),...t==="Flex"?Ko(e):{}}:Ko(e)}}function Ko(e){let t=th(e),n=nh(e);return{...t?{zoom:t}:{},...n?{darken:n}:{}}}function ry(){return{not:{field:k,is:"nextImage"}}}function ly(e){return e==="none"?{field:k,in:["mono","nextImage"]}:{not:{field:k,is:"none"}}}function cy(e){return e==="none"?{field:k,is:"mono"}:{not:{field:k,in:["none","nextImage"]}}}var uy=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),Jo=()=>({_partStyles:{text:{...Ft,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var sh={...y,gap:12,gapPhone:12,...D(32,32,28,28)},ih={textStyle:"heading-3",..._("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},Se={textStyle:"body-1",..._("body",15),lineHeight:1.6},f=(e,t,n,a=!1)=>({type:"Text",props:{...t,text:"",[E]:e,_partStyles:{text:{...a?Jo()._partStyles?.text??{}:{},...n}}}}),ie={title:"title",body:"body"},Ge={title:"name",body:"note"},rh=(e=ie)=>({type:g,props:{...sh,name:"Card"},slots:{[m]:[f(e.title,{...b,tag:"p",widthFit:"fill"},ih),f(e.body,{...x,tag:"p",widthFit:"fill"},Se)]}}),uo=(e,t)=>S([rh(t)],e),es={label:ie.title,href:"href"},lh={textStyle:"body-1",fontRole:"heading",color:"text",..._("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},ch=lo(9,"main",{[Yo]:45}),dh=(e=!1)=>({type:g,props:{...y,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...D(32,28),[C]:es.href,...e?{[k]:z}:{}},slots:{[m]:[{type:g,props:{...ch,name:"Mark"}},f(es.label,{...b,tag:"p",widthFit:"fill"},lh)]}}),po=e=>(t,n)=>n==="0"?`${e}~card`:`${e}~card.${n.slice(2)}`,mo=(e,t=!1)=>S([dh(t)],e);import{parseHexColor as hh}from"efficient-shell/format";var nn=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],uh=nn.filter(e=>e.ink);function ts(e){let t={color:e.fg};for(let{role:n,token:a}of uh)t[a]=e[n];return t}var ph={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},mh=Object.freeze(ts(ph)),fh={fg:"var(--overlay-fg-on-light)",line:"color-mix(in srgb, var(--overlay-fg-on-light) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg-on-light) 76%, transparent)"},gh=Object.freeze(ts(fh));function Ty(e,t){let n=e?hh(e):null;return n?Qn(n,t)?mh:gh:null}var ns=-1,wh="sf-section-accent",Oy="Color",as=new Set(["CategoryBar","DocTabs"]),ky=new Set(["Flex"]),bh=0;function yh(e){return e===ns?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:bh}function Ay(e){return e??ns}function Eh(e){let t=`--theme-preset-${e}`,n={"--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 nn)n[`--sf-sec-${a}`]=`var(${t}-${a}, var(--theme-${a}))`;return n}function Ry(e){let t=yh(e.sectionAccent);return t===null?null:{className:wh,style:Eh(t)}}import{FOLLOW_RULES as _h,resolveViewValue as Th,viewKeyAt as vh}from"efficient-easel/screen/lib/content/view-tiers";var an={desktop:"desktop",tablet:"tablet",phone:"mobile"},Sh=Object.keys(an);function os(e){return an[e??"desktop"]}function Ly(e){return Sh.find(t=>an[t]===e)??"desktop"}var rn=["desktop","tablet","phone"],sn=(e,t)=>vh(e,os(t)),ss=e=>e.flatMap(t=>rn.map(n=>sn(t,n))),on=e=>e===null||e===""?void 0:e,xh=(e,t,n)=>Th("same",on(e),on(t),on(n),_h);function is(e,t,n,a=e[t]){return xh(a,e[sn(t,"tablet")],e[sn(t,"phone")])[n]}import{createContext as Bs,createElement as ve,useContext as xe}from"react";import{Fragment as pu,jsx as L}from"react/jsx-runtime";import{createContext as bn,useContext as N}from"react";import{jsx as ce,Fragment as bs}from"react/jsx-runtime";import{createContext as Wh,useContext as ys,useEffect as Uh,useRef as Yh,useState as $h}from"react";import{SCROLL_ZOOM_VAR as gs}from"efficient-shell/format";import{readEntrance as kh}from"efficient-shell/format";var _e={kind:"entrance",from:"entranceFrom",duration:"entranceDuration",delay:"entranceDelay"},ln="sectionAnimation",Oh=ss(Object.values(_e));var rs="sf-entrance",Ah=e=>e!=null&&e!=="";function Rh(e,t){let n=e[_e[t]];return t==="kind"&&!Ah(n)?e[ln]:n}var je=(e,t,n)=>is(e,_e[t],n,Rh(e,t));function cn(e,t){return kh(je(e,"kind",t),je(e,"from",t),je(e,"duration",t),je(e,"delay",t))}var Ch=e=>({desktop:cn(e,"desktop"),tablet:cn(e,"tablet"),phone:cn(e,"phone")});function $y(e){let t=Ch(e);return rn.every(n=>t[n].kind==="none")?null:t}var Lh={...Object.fromEntries([...as].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)",[Ye]:"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"},Ky=new Set(Object.keys(Lh));function ls(e,t,n,a){return t<=0?1/0:a?2*(e-4)/(t+n):2*(e-n/2-4)/t}function cs(e,t,n){let a=r=>r.width>0&&r.height>0;if(!a(e)||t.some(r=>r.mark&&!a(r.rect)))return 1;let o=e.left+e.width/2,s=e.top+e.height/2,i=n;for(let{rect:r,mark:l}of t){let d=Math.abs(r.left+r.width/2-o),p=Math.abs(r.top+r.height/2-s),h=Math.max(ls(d,e.width,r.width,l),ls(p,e.height,r.height,l));i=Math.min(i,Math.max(1,h))}return i}var ds=["cover","contain"],Nh={cover:"Cover",contain:"Contain"},jy="Image fit";function dn(e,t){return ds.includes(e)?e:t}function zy(){return ds.map(e=>({label:Nh[e],value:e}))}function qy(e){return e==="contain"?"object-contain":"object-cover"}function hn(e,t){return e!=="auto"&&t==="cover"}function ze(e){return`color-mix(in srgb, var(--overlay-scrim) ${Math.round(Math.min(1,Math.max(0,e))*1e3)/10}%, transparent)`}function eE(e){switch(e){case"tall":return"aspect-[3/4]";case"wide":return"aspect-[2/1]";case"landscape":return"aspect-[4/3]";case"screen":return"aspect-[16/10]";case"portrait":return"aspect-[4/5]";case"video":return"aspect-[16/9]";case"panorama":return"aspect-[21/9]";case"story":return"aspect-[9/16]";case"poster":return"aspect-[2/3]";case"auto":return"";default:return"aspect-square"}}var qe=[{shape:"auto",image:"auto",ratio:null,label:"Auto"},{shape:"story",image:"9/16",ratio:[9,16],label:"Story 9:16"},{shape:"poster",image:"2/3",ratio:[2,3],label:"Poster 2:3"},{shape:"tall",image:"3/4",ratio:[3,4],label:"Tall 3:4"},{shape:"portrait",image:"4/5",ratio:[4,5],label:"Portrait 4:5"},{shape:"square",image:"1/1",ratio:[1,1],label:"Square 1:1"},{shape:"landscape",image:"4/3",ratio:[4,3],label:"Landscape 4:3"},{shape:"screen",image:"16/10",ratio:[16,10],label:"Screen 16:10"},{shape:"video",image:"16/9",ratio:[16,9],label:"Video 16:9"},{shape:"wide",image:"2/1",ratio:[2,1],label:"Wide 2:1"},{shape:"panorama",image:"21/9",ratio:[21,9],label:"Panorama 21:9"}];function tE(e){return qe.filter(t=>e.includes(t.shape))}function nE(e){return e==="below"}var aE=`linear-gradient(180deg, transparent 40%, ${ze(.85)} 100%)`,oE=`linear-gradient(0deg, transparent 40%, ${ze(.85)} 100%)`,sE=ze(.45);var Ih=qe.map(e=>e.image),B="fill",dE={label:"Fill row",value:B,showWhen:Ja},un="4/3",hs={frame:"view-wide:h-full view-wide:min-h-[240px]",img:"view-wide:absolute view-wide:inset-0",figure:"view-wide:h-full"},ps={all:{frame:"h-full min-h-[240px]",img:"absolute inset-0",figure:"h-full"},wide:hs,tablet:hs,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 hE(e,t,n){return t&&!le(n)?"all":e??"wide"}function us(e){return ps[e]}var uE=ps.all;function ms(e){return e?`${e.img} h-full w-full`:"relative h-full w-full"}var Ph={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]"},Hh={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]"},Dh={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]"},Bh={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]!"},pn=e=>Ih.includes(e),le=pn;function pE(e){let t=pn(e)?qe.find(n=>n.image===e)?.ratio:null;return t?`${t[0]} / ${t[1]}`:null}function mE(e,t,n){return n==="contain"?!0:[e,t??e].every(a=>a!==B&&(!pn(a)||a==="auto"))}function fE(e,t){return e===B&&!t?un:e}function gE(e){return e===B?un:le(e)?e:void 0}function fs(e,t){return le(t)?t===e?null:t:e===B?un:null}function Mh(e,t){let n=fs(e,t);return hn(e,"cover")||n!==null&&hn(n,"cover")}function Fh(e,t,n){return dn(e,"cover")==="cover"&&Mh(t,n)}function wE(e,t,n,a){return e==="desktop"?Fh(t,n,a):dn(t,"cover")!=="cover"?!1:Gh(e==="tablet"?n:fs(n,a)??n)}var Gh=e=>e===B||le(e)&&e!=="auto";function bE(e,t,n="wide"){return e===B&&n==="all"?us("all").frame:t===null?le(e)?Ph[e]:"":[e===B?us(n).frame:le(e)?Hh[e]:"",e===B&&n==="desktop"?Bh[t]:Dh[t]].filter(Boolean).join(" ")}var Qe=Wh(null);function OE({attrs:e,style:t,children:n}){return ce(Qe.Provider,{value:{attrs:e,style:t},children:n})}function Es({children:e}){return ce(Qe.Provider,{value:null,children:e})}function kE({fill:e=null,children:t}){let n=ys(Qe);return n?ce("div",{className:ms(e),...n.attrs,style:n.style,children:t}):ce(bs,{children:t})}var Ze="data-sf-mark";function ws(e){let t=e.getBoundingClientRect(),n=e.firstElementChild,a=n&&typeof n.offsetWidth=="number"?n:e,o=Math.max(a.offsetWidth,e.offsetWidth),s=Math.max(a.offsetHeight,e.offsetHeight);return{left:t.left+t.width/2-o/2,top:t.top+t.height/2-s/2,width:o,height:s}}function Kh(e){return e.closest(`[${Ze}]`)||e.closest("style, script")?!1:[...e.childNodes].some(t=>t.nodeType===3&&(t.textContent??"").trim()!=="")}var Ss=e=>e.closest(`.${rs}`)??e.ownerDocument.body;function Vh(e,t){let n=Ss(e),a=[];for(let o of n.querySelectorAll(`[${Ze}]`))o!==e&&a.push({rect:ws(o),mark:!0});for(let o of n.querySelectorAll("*")){if(o.contains(e)||!Kh(o))continue;let s=o.getBoundingClientRect();s.width===0||s.height===0||a.push({rect:{left:s.left,top:s.top,width:s.width,height:s.height},mark:!1})}return cs(ws(e),a,t)}function AE({inCell:e=!1,children:t}){let n=ys(Qe),a=Yh(null),[o,s]=$h(null),i=n?Number.parseFloat(String(n.style[gs])):Number.NaN;if(Uh(()=>{let l=a.current;if(!l||!Number.isFinite(i))return;let d=()=>s(Vh(l,i));d();let p=l.ownerDocument.defaultView?.ResizeObserver;if(!p)return;let h=new p(d),I=Ss(l);h.observe(l),h.observe(I);for(let P of I.querySelectorAll(`[${Ze}]`))P!==l&&h.observe(P);return()=>h.disconnect()},[i]),!n)return ce(bs,{children:t});let r=Number.isFinite(i)?{...n.style,[gs]:String(o??1)}:n.style;return ce("span",{ref:a,className:e?"inline-flex min-w-0 max-w-full items-center justify-center":"inline-flex items-center justify-center",[Ze]:"",...n.attrs,style:r,children:t})}import{FOLLOW_RULES as Xh,resolveViewValue as jh}from"efficient-easel/screen/lib/content/view-tiers";import{LENGTH_UNITS as zh}from"efficient-easel/screen/lib/content/length-units";var qh=["auto","fixed","screen","fill"],Zh=zh.filter(e=>e==="px"||e==="%"),Qh="svh",Jh="vh",eu="var(--sf-header-h, 88px)",tu={min:40,max:2e3,step:10,fallback:600},nu={min:10,max:200,step:5,fallback:100},au="sf-section-minh",Te="grid-cols-[minmax(0,1fr)]",_s={base:"--sf-section-minh",small:"--sf-section-minh-s"},fn=e=>typeof e=="string"&&qh.includes(e),ou=e=>typeof e=="string"&&Zh.includes(e);function Je(e){let t=fn(e.sectionHeightMode)?e.sectionHeightMode:"auto",n=t==="screen"?"%":ou(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=t==="screen"?nu.fallback:tu.fallback,o=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:t,value:o,unit:n}}function xs(e){let{mode:t,value:n,unit:a}=Je(e);if(t==="auto"||t==="fill")return;if(t==="fixed"&&a==="px")return[`${n}px`,null];let o=n/100,s=i=>t==="screen"?`(100${i} - ${eu})`:`100${i}`;return[`calc(${s(Jh)} * ${o})`,`calc(${s(Qh)} * ${o})`]}function Os(e){let t=xs(e);if(!t)return;let[n,a]=t;return{display:"grid",[_s.base]:n,...a?{[_s.small]:a}:{}}}var NE=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),IE="Height",ks="sf-section-minh-phone",Ts={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function As(e){return fn(e.sectionHeightModePhone)}function su(e){return Je({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}var Rs="sf-section-minh-tablet",vs={base:"--sf-section-minh-t",small:"--sf-section-minh-ts"};function Cs(e){return fn(e.sectionHeightModeTablet)}function iu(e){return Je({sectionHeightMode:e.sectionHeightModeTablet,sectionHeightValue:e.sectionHeightValueTablet,sectionHeightUnit:e.sectionHeightUnitTablet})}function gn(e){let t=Os(e),n=(r,l,d)=>xs({sectionHeightMode:r,sectionHeightValue:l,sectionHeightUnit:d})??(t?["auto",null]:void 0),a=Cs(e)?n(e.sectionHeightModeTablet,e.sectionHeightValueTablet,e.sectionHeightUnitTablet):void 0,o=As(e)?n(e.sectionHeightModePhone,e.sectionHeightValuePhone,e.sectionHeightUnitPhone):a;if(!t&&!a&&!o)return null;let s=[au,Te],i={...t??{}};return a&&(s.push(Rs),i[vs.base]=a[0],a[1]&&(i[vs.small]=a[1])),o&&(s.push(ks),i[Ts.base]=o[0],o[1]&&(i[Ts.small]=o[1])),{className:s.join(" "),style:i}}function PE(e){return gn(e)!==null||et(e).length>0}var mn=`grid ${Te}`,Ls="h-full",ru="view-tablet:max-view-desktop:grid",Ns="max-view-tablet:grid",lu="view-wide:max-view-desktop:grid",cu="max-view-wide:grid",du=`${Ns} ${Te}`;function HE(e,{atSectionLine:t=!1}={}){if(et(e).length>0)return mn;let n=gn(e);if(!n)return"";if(Os(e))return mn;let a=n.className.split(" "),o=t?ru:lu,s=t?Ns:cu;if(!a.includes(Rs))return t?du:`${s} ${Te}`;let i=a.includes(ks);return[o,i?s:"",Te].filter(Boolean).join(" ")}var Is="data-sf-height-fill",hu=["desktop","tablet","mobile"],uu={desktop:"view-desktop:[.flex-col>&]:grow! view-desktop:[.flex-row>&]:self-stretch",tablet:"view-wide:max-view-desktop:[.flex-col>&]:grow! view-wide:max-view-desktop:[.flex-row>&]:self-stretch",mobile:"max-view-wide:[.flex-col>&]:grow!"};function et(e){let t=e,n=jh("heightMode",Je(t).mode,Cs(t)?iu(t).mode:null,As(t)?su(t).mode:null,Xh),a={desktop:n.desktop==="fill",tablet:n.tablet==="fill",mobile:n.phone==="fill"};return hu.filter(o=>a[o])}function DE(e){return et(e).map(t=>uu[t]).join(" ")}function BE(e){let t=gn(e);return et(e).length===0?t:t?{className:`${t.className} grid`,style:t.style}:{className:mn}}var Ps={stretchedRow:!1,fillingColumn:!1},A=bn(null),Hs=()=>N(A)!==null;function KE({line:e,draw:t}){return L(pu,{children:t(we(e,Hs()))})}var VE=(e="by-box")=>we(e,Hs()),XE=()=>N(A),jE=()=>N(A)?.id??null,G=bn(!1);function mu(){let e=N(A)?.stretchedRow===!0,t=N(G);return e&&!t}var fu=()=>N(G);function gu(){let e=N(A),t=mu(),n=fu();return{fill:n?` ${Ls}`:"",inner:a=>{let o=t||n?L(G.Provider,{value:!0,children:a}):a;return e?.columnsRow?L(A.Provider,{value:{...e,columnsRow:!1},children:o}):o}}}function zE({className:e,style:t,attrs:n,children:a}){let{fill:o,inner:s}=gu(),i=yn();return i.scope(L("div",{className:En(`${e}${o}`,i.className),...t?{style:t}:{},...n,...i.attrs,children:s(a)}))}var wn=bn(!1);function qE({children:e}){return L(wn.Provider,{value:!0,children:L(G.Provider,{value:!0,children:e})})}function ZE({children:e,ownPictures:t=!1}){let n=N(A),a=N(wn),o=N(G),s=a&&o,i=n===null?null:n.id===void 0?Ps:{...Ps,id:n.id};return L(A.Provider,{value:i,children:L(wn.Provider,{value:!1,children:L(G.Provider,{value:s,children:t?e:L(Es,{children:e})})})})}var tt=Bs(null),Ds="data-sf-view-hide",Ms=e=>ve(tt.Provider,{value:null},e),Fs={className:"",attrs:{},scope:Ms},wu=Fs,Gs=Bs(null),aS=(e,t)=>e?{className:e,views:t}:null,bu=e=>ve(tt.Provider,{value:null},ve(Gs.Provider,{value:null},ve(G.Provider,{value:!0},e))),oS=(e,t,n={})=>e?{className:e,words:t,...n}:null,Ws=(e,t)=>e.sectionClassName===void 0?{className:e.className,words:e.words}:we(e.line??"by-box",t)?{className:e.className,words:`${e.words} edge`}:{className:e.sectionClassName,words:e.words};function yn(){let e=xe(tt),t=xe(Gs),n=xe(A)!==null;if(e===null&&t===null)return wu;let a=e===null?null:Ws(e,n);return t===null?{className:a.className,attrs:{[Ds]:a.words},scope:Ms}:{className:a?`${a.className} ${t.className}`:t.className,attrs:{...a?{[Ds]:a.words}:{},[Is]:t.views},scope:bu}}function sS(){let e=xe(tt),t=xe(A)!==null;return e===null?"":Ws(e,t).className}var En=(e,t)=>t?e?`${e} ${t}`:t:e;function iS(e){let t=yn(),n=e.takes===!1?Fs:t,a={},o=!1;for(let[s,i]of Object.entries(e))s==="as"||s==="takes"||s==="children"||(s==="className"?(a.className=En(i,n.className),o=!0):a[s]=i);return!o&&n.className&&(a.className=n.className),n.scope(ve(e.as??"div",{...a,...n.attrs},e.children))}var lS={small:54,medium:66,large:84},yu=44,Eu=16,Su=140,cS={min:Eu,max:Su,step:1},dS=yu*4;import{forwardRef as _u}from"react";import{imageCopyUrl as Us,imageSrcSet as Ys}from"efficient-shell/image-copies";import{jsx as xu}from"react/jsx-runtime";var Tu={position:"absolute",height:"100%",width:"100%",left:0,top:0,right:0,bottom:0,color:"transparent"};function $s(e,t,n){if(n){let a=Ys(e);return a?{src:Us(e,1280),srcSet:a,sizes:n}:{src:e,sizes:n}}if(t&&t>0){let a=Ys(e,{maxWidth:t*3});return a?{src:Us(e,t*2),srcSet:a,sizes:`${t}px`}:{src:e}}return{src:e}}var vu=_u(function({src:t,width:n,height:a,fill:o,priority:s,loading:i,style:r,quality:l,placeholder:d,blurDataURL:p,unoptimized:h,loader:I,overrideSrc:P,sizes:W,...Oe},nt){let ke=P??(typeof t=="string"?t:t.src),at=$s(ke,o?void 0:Number(n)||void 0,W??(o?"100vw":void 0));return xu("img",{ref:nt,...at,width:o?void 0:n,height:o?void 0:a,loading:s?"eager":i??"lazy",fetchPriority:s?"high":void 0,decoding:"async",style:o?{...Tu,...r}:{color:"transparent",...r},...Oe})}),mS=vu;function fS(e){let t=e.overrideSrc??(typeof e.src=="string"?e.src:e.src.src),n=e.fill?void 0:Number(e.width)||void 0;return{props:$s(t,n,e.sizes??(e.fill?"100vw":void 0))}}export{oe as a,w as b,Bl as c,hf as d,Ml as e,uf as f,pf as g,mf as h,ff as i,gf as j,wf as k,Lt as l,Fl as m,bf as n,yf as o,Ia as p,Me as q,Ef as r,Sf as s,v as t,$l as u,_f as v,pe as w,te as x,em as y,ne as z,tm as A,Ur as B,nm as C,am as D,om as E,sm as F,Kr as G,De as H,dm as I,m as J,g as K,Ha as L,Of as M,kf as N,ue as O,Lp as P,vt as Q,Np as R,Ip as S,Pp as T,Hp as U,Ir as V,U as W,Pr as X,Mp as Y,pm as Z,mm as _,jr as $,fm as aa,gm as ba,Om as ca,At as da,gl as ea,Ea as fa,Lm as ga,Nm as ha,Im as ia,_a as ja,Pm as ka,Hm as la,Dm as ma,H as na,re as oa,Yo as pa,Db as qa,k as ra,Ub as sa,Wd as ta,z as ua,Ud as va,Yb as wa,$b as xa,Kb as ya,Vb as za,Xb as Aa,$d as Ba,jb as Ca,Vo as Da,O as Ea,tn as Fa,zb as Ga,Kd as Ha,Vd as Ia,jo as Ja,qb as Ka,zd as La,Zb as Ma,qd as Na,Qb as Oa,Qt as Pa,Jb as Qa,Zd as Ra,Qd as Sa,ey as Ta,ty as Ua,qo as Va,Jd as Wa,ny as Xa,eh as Ya,Qo as Za,en as _a,ay as $a,oy as ab,sy as bb,ah as cb,oh as db,iy as eb,ry as fb,ly as gb,cy as hb,It as ib,lc as jb,Bf as kb,Wa as lb,Mf as mb,be as nb,hc as ob,uc as pb,pc as qb,Ya as rb,Uf as sb,$a as tb,Yf as ub,Ka as vb,Vf as wb,Va as xb,K as yb,Xf as zb,jf as Ab,zf as Bb,Fa as Cb,Ba as Db,Cf as Eb,Lf as Fb,Nf as Gb,rc as Hb,Ga as Ib,qa as Jb,Ee as Kb,tg as Lb,bc as Mb,vc as Nb,ng as Ob,ag as Pb,Ht as Qb,og as Rb,sg as Sb,xc as Tb,rg as Ub,lg as Vb,cg as Wb,dg as Xb,Rc as Yb,Lc as Zb,hg as _b,ug as $b,pg as ac,mg as bc,fg as cc,gg as dc,wg as ec,bg as fc,yg as gc,no as hc,ao as ic,Eg as jc,Sg as kc,_g as lc,Tg as mc,vg as nc,Mc as oc,xg as pc,Og as qc,io as rc,kg as sc,Ag as tc,Fc as uc,Rg as vc,Cg as wc,ro as xc,b as yc,x as zc,Uc as Ac,y as Bc,D as Cc,Yc as Dc,lo as Ec,_ as Fc,Ft as Gc,Gt as Hc,Bg as Ic,S as Jc,uy as Kc,Jo as Lc,Se as Mc,f as Nc,ie as Oc,Ge as Pc,rh as Qc,uo as Rc,es as Sc,dh as Tc,po as Uc,ho as Vc,wo as Wc,Wt as Xc,zc as Yc,Qc as Zc,aw as _c,rw as $c,lw as ad,cw as bd,dw as cd,_o as dd,hw as ed,uw as fd,pw as gd,nd as hd,bw as id,yw as jd,To as kd,Ew as ld,vo as md,Sw as nd,_w as od,vw as pd,xw as qd,Ow as rd,kw as sd,xo as td,Aw as ud,Rw as vd,Ut as wd,Lw as xd,Gw as yd,ld as zd,hd as Ad,F as Bd,Qw as Cd,Po as Dd,Ho as Ed,Ue as Fd,E as Gd,C as Hd,pb as Id,Bo as Jd,Mo as Kd,mb as Ld,fb as Md,Td as Nd,gb as Od,wb as Pd,bb as Qd,yb as Rd,Eb as Sd,Sb as Td,_b as Ud,xd as Vd,Od as Wd,Tb as Xd,kd as Yd,Rd as Zd,Fo as _d,Go as $d,vb as ae,Zt as be,xb as ce,Ob as de,zt as ee,kb as fe,Ab as ge,Nd as he,Id as ie,Uo as je,Pd as ke,Rb as le,Hd as me,Dd as ne,Cb as oe,Lb as pe,Nb as qe,Ib as re,Ye as se,rt as te,lt as ue,Du as ve,Bu as we,Ui as xe,ct as ye,Mu as ze,Yi as Ae,Fu as Be,Gu as Ce,Yu as De,Xu as Ee,ju as Fe,zu as Ge,qu as He,wt as Ie,bt as Je,Zu as Ke,q as Le,qi as Me,Zn as Ne,Qu as Oe,Ju as Pe,Q as Qe,Z as Re,er as Se,ep as Te,tp as Ue,Ie as Ve,Qn as We,np as Xe,ap as Ye,op as Ze,Et as _e,sp as $e,Jn as af,ir as bf,ip as cf,rp as df,lp as ef,lr as ff,cp as gf,dp as hf,hp as if,up as jf,pp as kf,mp as lf,St as mf,fr as nf,fp as of,gp as pf,Pe as qf,sa as rf,br as sf,wp as tf,_t as uf,zn as vf,bp as wf,yp as xf,yr as yf,Er as zf,ia as Af,He as Bf,Tr as Cf,vr as Df,xr as Ef,ra as Ff,Or as Gf,la as Hf,_p as If,Tp as Jf,vp as Kf,xp as Lf,he as Mf,ca as Nf,Op as Of,kp as Pf,Tt as Qf,da as Rf,Ap as Sf,Rp as Tf,nn as Uf,uh as Vf,mh as Wf,Ty as Xf,ns as Yf,Oy as Zf,as as _f,ky as $f,bh as ag,yh as bg,Ay as cg,Eh as dg,Ry as eg,Be as fg,xa as gg,va as hg,El as ig,Sl as jg,_l as kg,Fm as lg,Tl as mg,Gm as ng,me as og,Wm as pg,Um as qg,Ym as rg,xl as sg,ka as tg,$m as ug,Km as vg,kl as wg,Vm as xg,ze as yg,eE as zg,qe as Ag,tE as Bg,nE as Cg,an as Dg,os as Eg,Ly as Fg,rn as Gg,sn as Hg,ss as Ig,xh as Jg,is as Kg,_e as Lg,ln as Mg,Oh as Ng,rs as Og,cn as Pg,Ch as Qg,$y as Rg,Ky as Sg,Nh as Tg,jy as Ug,dn as Vg,zy as Wg,qy as Xg,B as Yg,dE as Zg,hE as _g,us as $g,uE as ah,ms as bh,pE as ch,mE as dh,fE as eh,gE as fh,fs as gh,Mh as hh,Fh as ih,wE as jh,bE as kh,OE as lh,Es as mh,kE as nh,AE as oh,qh as ph,tu as qh,nu as rh,Te as sh,Je as th,NE as uh,IE as vh,As as wh,Cs as xh,iu as yh,PE as zh,mn as Ah,Ls as Bh,HE as Ch,et as Dh,DE as Eh,BE as Fh,A as Gh,KE as Hh,VE as Ih,XE as Jh,jE as Kh,G as Lh,mu as Mh,fu as Nh,gu as Oh,zE as Ph,qE as Qh,ZE as Rh,tt as Sh,Fs as Th,Gs as Uh,aS as Vh,oS as Wh,yn as Xh,sS as Yh,En as Zh,iS as _h,lS as $h,yu as ai,Eu as bi,cS as ci,dS as di,mS as ei,fS as fi,zm as gi,$n as hi,Cu as ii,Kp as ji,Gr as ki,Vp as li,Xp as mi,jp as ni,zp as oi,Pl as pi,Qm as qi,Ra as ri,Hl as si,Dl as ti,ef as ui,tf as vi,nf as wi};