efficient-storefront-blocks 0.27.0 → 0.29.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.
@@ -0,0 +1,16 @@
1
+ import{B as Il,C as Ce,D as Se,E as Xe,F as je,H as hl,Ia as lt,Ja as Sl,K as Sa,La as Ie,M as gl,N as ya,Oa as yl,P as bl,Q as Cl,Qa as Fl,Z as xe,_ as Lo,a as cl,aa as ye,ba as nt,c as dl,d as ga,h as pl,i as yo,k as ml,r as ba,w as xl,x as Ca,y as Fo}from"./chunk-6ALFNHF5.js";import{a as sl,c as ee,l as ul,m as So,n as il,u as Fa}from"./chunk-NGRN4SN6.js";var ft=null,Qu="en",vl=null;function Qy(e,o,t){ft=e??null,Qu=o||"en",vl=t??null}function X(){return vl}function Jy(){return ft}function Ll(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,a)=>Object.prototype.hasOwnProperty.call(o,a)?String(o[a]):t):e}function s(e,o){let t=ft?ft[e]:void 0;if(typeof t=="function"){try{let a=t(o??{});if(typeof a=="string"&&a)return a}catch{}return Ll(e,o)}return Ll(typeof t=="string"&&t?t:e,o)}function La(e,o,t,a){return s(t===1?e:o,{...a,n:t})}import{EaselSessionProvider as tF,useEaselSession as Ye}from"efficient-easel/screen/lib/session-context";import{hostLoadRefusalOf as Ju,hostUnreachableMessage as ei,isBackendError as oi,provideHostFailures as ti,readHostFailure as ai,STATUS_UNREACHABLE as ri,WebsiteBackendError as va}from"efficient-easel/screen/lib/backend-error";import{createEaselHost as cF,DETACHED_EASEL_HOST as dF,EaselHostContext as uF,EaselHostProvider as iF,useEaselHost as Tl}from"efficient-easel/screen/lib/host";function W(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return typeof t=="string"&&t?t:o}return o}function El(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function Ol(e,o){return typeof e=="boolean"?e:o}function st(e,o){if(!Array.isArray(e))return o;let t=e.map(a=>typeof a=="string"?a:W(a?.text,"")).map(a=>a.trim()).filter(Boolean);return t.length?t:o}var Bl="cart-drawer",IF="cart-drawer";var ni={kickerBadge:"",kickerText:"Your order",titleLead:"Your",titleAccent:"cart.",subtitleEmpty:"Empty for now.",subtitleOne:"One set in your cart.",subtitleMany:"{count} sets in your cart.",leadTimeValue:"",shipsToFallback:"",promises:[],emptyKicker:"No wheels yet",emptyBody:"Your cart is empty. Pick a wheel to get started."};function hF(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function gF(e){let o=e??{},t=ni;return{kickerBadge:W(o.kickerBadge,t.kickerBadge),kickerText:W(o.kickerText,t.kickerText),titleLead:W(o.titleLead,t.titleLead),titleAccent:W(o.titleAccent,t.titleAccent),subtitleEmpty:W(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:W(o.subtitleOne,t.subtitleOne),subtitleMany:W(o.subtitleMany,t.subtitleMany),leadTimeValue:W(o.leadTimeValue,t.leadTimeValue),shipsToFallback:W(o.shipsToFallback,t.shipsToFallback),promises:st(o.promises,t.promises),emptyKicker:W(o.emptyKicker,t.emptyKicker),emptyBody:W(o.emptyBody,t.emptyBody)}}var li=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],SF={meta:"Meta line",eyebrow:"Eyebrow",heading:"Heading",body:"Body",statName:"Stat name",statValue:"Stat value",formEyebrow:"Form eyebrow",formHeading:"Form heading",formIntro:"Form intro",fieldLabel:"Field label",option:"Option",finePrint:"Fine print",dismiss:"Dismiss link",doneHeading:"Success heading",doneBody:"Success message"},fi={meta:"styleMeta",eyebrow:"styleEyebrow",heading:"styleHeading",body:"styleBody",statName:"styleStatName",statValue:"styleStatValue",formEyebrow:"styleFormEyebrow",formHeading:"styleFormHeading",formIntro:"styleFormIntro",fieldLabel:"styleFieldLabel",option:"styleOption",finePrint:"styleFinePrint",dismiss:"styleDismiss",doneHeading:"styleDoneHeading",doneBody:"styleDoneBody"},yF={meta:{font:"--pp-meta-font",size:"--pp-meta-size"},eyebrow:{font:"--pp-eyebrow-font",size:"--pp-eyebrow-size"},heading:{font:"--pp-heading-font",size:"--pp-heading-size"},body:{font:"--pp-body-font",size:"--pp-body-size"},statName:{font:"--pp-statname-font",size:"--pp-statname-size"},statValue:{font:"--pp-statvalue-font",size:"--pp-statvalue-size"},formEyebrow:{font:"--pp-formeyebrow-font",size:"--pp-formeyebrow-size"},formHeading:{font:"--pp-formheading-font",size:"--pp-formheading-size"},formIntro:{font:"--pp-formintro-font",size:"--pp-formintro-size"},fieldLabel:{font:"--pp-fieldlabel-font",size:"--pp-fieldlabel-size"},option:{font:"--pp-option-font",size:"--pp-option-size"},finePrint:{font:"--pp-fineprint-font",size:"--pp-fineprint-size"},dismiss:{font:"--pp-dismiss-font",size:"--pp-dismiss-size"},doneHeading:{font:"--pp-doneheading-font",size:"--pp-doneheading-size"},doneBody:{font:"--pp-donebody-font",size:"--pp-donebody-size"}};function si(e){return typeof e=="string"&&yo.includes(e)?e:null}function Pl(e){let o={};for(let t of li){let a=si(e[fi[t]]);a&&(o[t]=a)}return o}var Ea="site-footer";var LF=Ea,vF={desktop:!0,tablet:!0,mobile:!0},TF={desktop:!1,tablet:!1,mobile:!1},Ta=1,Al=6,EF=Array.from({length:Al-Ta+1},(e,o)=>Ta+o),ct={desktop:6,tablet:3,mobile:2},ci={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},_e=e=>Math.min(Math.max(Math.round(e),Ta),Al);function OF(e){if(typeof e=="number")return ci[_e(e)]??{desktop:_e(e),tablet:_e(e),mobile:_e(e)};if(e&&typeof e=="object"){let o=e;return{desktop:_e(o.desktop??ct.desktop),tablet:_e(o.tablet??ct.tablet),mobile:_e(o.mobile??ct.mobile)}}return{...ct}}function di(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type==="Footer")??null:null}function BF(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===ui)??di(e):null}var ui="SiteFooter",ii="SiteHeader";function PF(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===ii)??null:null}var pi="subscribe-popup",DF="subscribe-popup";var mi=[pi,Ea,Bl];function wl(e){return mi.includes(e)}var xi=["delay","scroll","exit"],Ii=["all","chosen"],hi=["visit","days","never"],gi=["right","left"],bi={min:0,max:60},Ci={min:10,max:90},Si={min:1,max:90},Ba={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
2
+ *Highlight line*`,deck:"Add a sentence or two of supporting copy.",stats:[{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"}],formLabel:"Section label",formHeading:"Main heading *highlight*",formIntro:"Add a sentence or two of supporting copy.",firstNameLabel:"Field label",firstNamePlaceholder:"Placeholder",emailLabel:"Field label",emailPlaceholder:"Placeholder",interestsLabel:"Field label",interests:["Option one","Option two","Option three"],frequencyLabel:"Field label",frequencies:["Option one","Option two","Option three"],submitText:"Button label",finePrint:"Fine print",dismissText:"Dismiss link",emailInvalidText:"Enter a valid email address.",submitErrorText:"Could not subscribe right now. Please try again.",successHeading:"Main heading *highlight*",successBody:"Add a sentence or two of supporting copy \u2014 the {email} and {issue} tokens are substituted here.",keepBrowsingText:"Button label",autoOpen:!1,autoOpenDelaySec:15,formSlug:"",trigger:"delay",scrollPercent:50,showOn:"all",showOnPages:[],hideAfter:"days",hideDays:7,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},R=W,yi=El,Rl=Ol,_l=st;function dt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Oa(e,o,t){let a=yi(e,t);return Math.min(o.max,Math.max(o.min,Math.round(a)))}function Fi(e){return typeof e.hideAfter=="string"?dt(hi,e.hideAfter,Ba.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Ba.hideAfter}function Li(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function kl(e,o){if(e==null)return o;let t=a=>a.trim()?a:"";if(typeof e=="string")return t(e);if(typeof e=="object"&&"text"in e){let a=e.text;return typeof a=="string"?t(a):""}return o}function vi(e,o){return Array.isArray(e)?_l(e,[]):o}function Ti(e,o){return Array.isArray(e)?e.map(t=>{let a=t??{};return{label:R(a.label,""),value:R(a.value,"")}}).filter(t=>t.label||t.value):o}function MF(e){let o=e??{},t=Ba;return{metaLabel:R(o.metaLabel,t.metaLabel),issueLabel:kl(o.issueLabel,t.issueLabel),issueNumber:kl(o.issueNumber,t.issueNumber),kicker:R(o.kicker,t.kicker),heading:R(o.heading,t.heading),deck:R(o.deck,t.deck),stats:Ti(o.stats,t.stats),formLabel:R(o.formLabel,t.formLabel),formHeading:R(o.formHeading,t.formHeading),formIntro:R(o.formIntro,t.formIntro),firstNameLabel:R(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:R(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:R(o.emailLabel,t.emailLabel),emailPlaceholder:R(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:R(o.interestsLabel,t.interestsLabel),interests:_l(o.interests,t.interests),frequencyLabel:R(o.frequencyLabel,t.frequencyLabel),frequencies:vi(o.frequencies,t.frequencies),submitText:R(o.submitText,t.submitText),finePrint:R(o.finePrint,t.finePrint),dismissText:R(o.dismissText,t.dismissText),emailInvalidText:R(o.emailInvalidText,t.emailInvalidText),submitErrorText:R(o.submitErrorText,t.submitErrorText),successHeading:R(o.successHeading,t.successHeading),successBody:R(o.successBody,t.successBody),keepBrowsingText:R(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:Rl(o.autoOpen,t.autoOpen),autoOpenDelaySec:Oa(o.autoOpenDelaySec,bi,t.autoOpenDelaySec),trigger:dt(xi,o.trigger,t.trigger),scrollPercent:Oa(o.scrollPercent,Ci,t.scrollPercent),showOn:dt(Ii,o.showOn,t.showOn),showOnPages:Li(o.showOnPages),hideAfter:Fi(o),hideDays:Oa(o.hideDays,Si,t.hideDays),formSide:dt(gi,o.formSide,t.formSide),valuePanelOnPhone:Rl(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:Pl(o)}}import{jsx as Ei}from"react/jsx-runtime";import{createContext as Oi,useCallback as Bi,useContext as Pi,useState as Pa}from"react";var Dl=Oi({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{}});function UF({children:e,editFooter:o}){let[t,a]=Pa(null),[r,n]=Pa(null),[l,f]=Pa(0),c=Bi(()=>f(u=>u+1),[]);return Ei(Dl.Provider,{value:{footerBlock:t,setFooterBlock:a,headerGroup:r,setHeaderGroup:n,editFooter:o,refreshToken:l,refreshFooter:c},children:e})}var WF=()=>Pi(Dl);var Ml=["general","commerce","service"],Ze=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero Slideshow",set:"general"},{type:"HeroSingle",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"BrandStrip",label:"Brand Strip",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"},{type:"SpecStrip",label:"Spec Strip",set:"general"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"DeliveryOptions",label:"Delivery Options",set:"commerce"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Cards",label:"Cards",set:"general"},{type:"KeyFeatures",label:"Key Features",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"Countdown",label:"Countdown",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Series",label:"Recurring Columns",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"},{type:"DocMetaCards",label:"Document Detail Cards",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Spacer",label:"Spacer",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]}];function $F(){return Object.fromEntries(Ze.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var Ai={Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A \u2014 shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or a shape (Big left, Big right, Bigger left, Bigger right) and its own `Columns on phone`. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` \u2014 256 documents): 2 Grid nodes, and they are ONE Grid counted twice \u2014 the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 \u2014 equal thirds \u2014 and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n\u26A0\uFE0F THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned \u2014 hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. \u26D4 So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says \u2014 Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS \u2014 the owner redoes live sections himself.\n\n\u26A0\uFE0F AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/puck/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot \u2014 a Box included \u2014 refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` \xA73 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings \u2014 it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 \u2014 it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n\u26A0\uFE0F THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call \u2014 nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n \u2022 settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT \u2014 the map holds only TimelineTrack and Footprint, both AUTHORED lists\n \u2022 read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n \u2022 panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n \u2022 head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero \u2014 neither can style them \u2014 and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/puck/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS \u2014 the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n\u26A0\uFE0F AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',SubscribeBlogs:"card 66396 \u2014 folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},zF=["Grid"],KF=Array.from(new Set([...Ze.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(Ai)])),VF=Object.fromEntries(Ze.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),Ri={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",MenuBlock:"service",EmailFormBlock:"service",SocialLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},ut={...Ri,...Object.fromEntries(Ze.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function Nl(e){return Object.prototype.hasOwnProperty.call(ut,e)?ut[e]:void 0}function Aa(e){return Object.keys(ut).filter(o=>ut[o]===e).sort()}var XF=Aa("general"),jF=Aa("commerce"),YF=Aa("service"),ki="Flex",Fe="Box",ZF=`${Fe}es`;function wi(e){return e==="section"?"Blank section":Fe}function QF(e,o,t){return e===ki?wi(o):t}var De=sl,Hl=e=>e.blocks;import{jsx as it}from"react/jsx-runtime";import{createContext as _i,lazy as Di,Suspense as Mi,useContext as Ni}from"react";var Hi={Link:dl,Image:cl},Gi=_i(Hi);function Gl(){return Ni(Gi)}function lL(e){let{Link:o}=Gl();return it(o,{...e})}function Ul(e){let{Image:o}=Gl();return it(o,{...e})}function fL(e){let o=Di(e);return function(t){return it(Mi,{fallback:null,children:it(o,{...t})})}}var oe=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],pt="bottom-left";var vo={"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 Ui(e){let o=oe.indexOf(Le(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function Wi(e){return 1+Ui(e).band*6}function cL(e){return Wi(e)+1}function Le(e){return oe.includes(e)?e:pt}function dL(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function uL(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function Ra(e,o){let t=Le(o);return e.filter(a=>Le(a?.props?.placement)===t).length}function Wl(e){return`${vo[Le(e)]} already holds 4 boxes. Move one somewhere else first.`}function ka(e,o){let t=e.filter(a=>a?.props?.id!==o);return oe.map(a=>{let r=Ra(t,a)>=4,n=vo[a];return r?{value:a,label:n,disabled:!0,title:Wl(a)}:{value:a,label:n}})}function mt(e,o){let t=o===void 0?pt:Le(o?.props?.placement);return Ra(e,t)>=4?Wl(t):null}var ql="HeroGroup";function iL(e){let o=new Map,t=!1,a=e.filter(r=>{let n=Le(r?.props?.placement),l=(o.get(n)??0)+1;return o.set(n,l),l<=4?!0:(t=!0,!1)});return t?a:e}function qi(e){return oe.map(o=>{let t=Ra(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function wa(e){let o=qi(e);return o.length===0?null:o.map(({anchor:t,total:a,hidden:r})=>{let n=vo[t],l=r===1?"1 is not shown":`${r} are not shown`;return`${n} holds ${a} boxes. The published page draws the first 4, so ${l}. ${r===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function pL(e,o){let t=o;if(t?.type!==ql)return null;let a=t.props?.id===void 0?"":String(t.props.id);return a?mt(_a(e,a),t):null}function _a(e,o){let t=$l(e,o);return t&&t.ownerType===zi?t.siblings:[]}function mL(e,o){let t=$l(e,o);return t?t.ancestorTypes.filter(a=>a===ql).length:$i}var $i=1,zi="HeroSlide";function $l(e,o){let t=r=>Array.isArray(r)&&r.length>0&&r.every(n=>!!n&&typeof n=="object"&&typeof n.type=="string"),a=(r,n,l)=>{if(n>12||!r||typeof r!="object")return null;if(t(r)){if(r.some(f=>f?.props?.id===o))return{siblings:r,ownerType:l.at(-1)??null,ancestorTypes:l};for(let f of r){let c=f.type,u=a(f,n+1,[...l,String(c)]);if(u)return u}return null}for(let f of Object.values(r)){let c=a(f,n+1,l);if(c)return c}return null};return a(e,0,[])}import{childSlotsOf as hL,FOOTER_TYPE as xt,HEADER_TYPE as Me,locateNode as zl,missingPinnedTypes as gL,nestsInTree as bL,newNodeId as To,pinnedDuplicateIds as CL,pinnedDuplicateIndices as SL,ROOT_ZONE as yL,slotFieldsOf as FL,TREE_MAX_DEPTH as LL}from"efficient-easel/screen/lib/puck/content-tree";import{jsx as Eo,jsxs as mp}from"react/jsx-runtime";import{createContext as xp,useContext as Ip}from"react";import{jsx as Qe,jsxs as jl}from"react/jsx-runtime";import{useEffect as Da,useRef as Ji,useState as It}from"react";import{jsx as Kl,Fragment as Ki,jsxs as Vi}from"react/jsx-runtime";import{useEffect as Xi,useRef as Vl,useState as ji}from"react";var Yi="#t=0.001",Zi=2;function Qi(e,o){if(e.readyState<Zi||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function Xl({src:e,objectPosition:o="50% 50%",onError:t}){let a=Vl(null),r=Vl(null),[n,l]=ji(!1);return Xi(()=>{let f=a.current,c=r.current;if(n||!f||!c)return;let u=()=>{Qi(f,c)&&l(!0)};return u(),f.addEventListener("loadeddata",u),f.addEventListener("seeked",u),()=>{f.removeEventListener("loadeddata",u),f.removeEventListener("seeked",u)}},[n]),Vi(Ki,{children:[Kl("canvas",{ref:r,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&Kl("video",{ref:a,src:`${e}${Yi}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var ep=.5;function Yl({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:a=ep,objectPosition:r="50% 50%",quiet:n=!1}){let l=o||"",f=e||"",[c,u]=It(!1),[i,m]=It(!1),[p,I]=It(!1),[x,h]=It(!1),S=Ji(null);Da(()=>{u(!1),m(!1),I(!1)},[e,o]),Da(()=>{if(typeof window>"u")return;let b=()=>{let y=window;y.requestIdleCallback?y.requestIdleCallback(()=>h(!0),{timeout:2e3}):setTimeout(()=>h(!0),800)};if(document.readyState==="complete"){b();return}return window.addEventListener("load",b,{once:!0}),()=>window.removeEventListener("load",b)},[]),Da(()=>{let b=S.current;if(!b)return;let y=()=>{b.playbackRate=a};return y(),b.addEventListener("loadedmetadata",y),()=>b.removeEventListener("loadedmetadata",y)},[e,a]);let O=ul(l);return jl("div",{className:"absolute inset-0 z-[1]",children:[Qe("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),l&&(O?Qe("img",{src:l,alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",style:{display:c?"none":"block",objectPosition:r},onError:()=>u(!0)},l):Qe(Ul,{src:l,alt:"",fill:!0,priority:!0,sizes:"100vw",className:"z-[2] object-cover",style:{display:c?"none":"block",objectPosition:r},onError:()=>u(!0)},l)),t&&!n&&f&&x&&!i&&jl("video",{ref:S,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:r},onError:()=>m(!0),children:[il(f)&&Qe("source",{src:f.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),Qe("source",{src:f,type:"video/mp4"})]},f),t&&n&&f&&x&&!p&&(!l||c)&&Qe(Xl,{src:f,objectPosition:r,onError:()=>I(!0)},f)]})}var Zl=["top","middle","bottom"],Ql=["left","center","right"],Jl="bottom",ef="left",op={top:"Top",middle:"Middle",bottom:"Bottom"},tp={left:"Left",center:"Center",right:"Right"};var _L="Up and down",DL="Sideways",ap={top:"flex-start",middle:"center",bottom:"flex-end"},rp={left:"flex-start",center:"center",right:"flex-end"},np="--sf-hero-phone-y",lp="--sf-hero-phone-x";function fp(e){return Zl.includes(e)?e:Jl}function sp(e){return Ql.includes(e)?e:ef}function of(e,o){let t=fp(e),a=sp(o),r={};return t!==Jl&&(r[np]=ap[t]),a!==ef&&(r[lp]=rp[a]),r}function ML(){return Zl.map(e=>({label:op[e],value:e}))}function NL(){return Ql.map(e=>({label:tp[e],value:e}))}var cp="#0A0A0A",dp=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function tf(e){let o=e.trim().replace(/^#/,""),t=o.length===3?o.split("").map(r=>r+r).join(""):o;if(!/^[0-9a-fA-F]{6}$/.test(t))return null;let a=Number.parseInt(t,16);return`${a>>16&255},${a>>8&255},${a&255}`}function af(e){return e==null?!0:e!==!1}function rf(e){let o=(e?tf(e):null)??tf(cp);return`linear-gradient(180deg, ${dp.map(([t,a])=>`rgba(${o},${a}) ${t}%`).join(", ")})`}var Ma=[{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}],up=Ma.filter(e=>e.ink);function ip(e){let o={color:e.fg};for(let{role:t,token:a}of up)o[a]=e[t];return o}var pp={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},nf=Object.freeze(ip(pp));var Na=xp({});function jL({name:e,process:o,mediaType:t="video",mediaSrc:a,videoSpeed:r,poster:n,objectPosition:l,tintColor:f="#000000",tintOpacity:c=0,groups:u,editing:i=!1,themeClassName:m,themeStyle:p}){let{alignment:I="left",textureOpacity:x,textureOn:h,textureColor:S,quietVideo:O,phoneUpDown:b,phoneSideways:y}=Ip(Na),B=t==="video",H=B?So(a):void 0,pe=B?So(n):So(a)??So(n),Z=typeof r=="number"?r/100:1;return mp("section",{className:m?`relative h-full w-full overflow-hidden ${m}`:"relative h-full w-full overflow-hidden",style:p,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":H?"video":"still",children:[Eo(Yl,{videoSrc:H,posterSrc:pe,showVideo:B,playbackRate:Z,objectPosition:l,quiet:O}),c>0&&Eo("div",{className:"absolute inset-0 z-[2]",style:{background:f,opacity:Math.min(Math.max(c,0),100)/100}}),af(h)&&Eo("div",{className:"absolute inset-0 z-[2]",style:{background:rf(S),...x!==void 0?{opacity:x/100}:null}}),Eo("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...nf,...of(b,y)},children:u&&Eo(u,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var lf=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));var Je="content",D="Flex",hp="Text & media",gp="Layout & structure",bp=[{type:"Eyebrow",label:"Eyebrow"},{type:"Heading",label:"Heading"},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"ButtonBlock",label:"Button"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats"},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"}].map(e=>({...e,group:hp})),Cp=(Ze.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:gp})),ff=[...bp,...Cp],Ha=[{type:"Eyebrow",label:"Eyebrow"},{type:"Heading",label:"Heading"},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"ButtonBlock",label:"Button"},{type:"HeroGroup",label:Fe}],QL=Ha.map(e=>e.type),Sp=1,yp=Ha.filter(e=>e.type!=="HeroGroup");function Fp(e){return e<Sp?Ha:yp}var Lp={Flex:{slot:Je,choices:()=>ff},Grid:{slot:Je,choices:()=>ff},HeroGroup:{slot:Je,choices:Fp}};function sf(e,o=0){let t=Lp[e];return t?{slot:t.slot,choices:t.choices(o)}:null}var vp="ImageBlock",Tp=3,ht=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:To(e),...t}}),Ep=e=>({...e?.(D)??{},direction:"column",[Je]:[ht(vp,e),ht(D,e,{direction:"column",[Je]:[ht("Heading",e),ht("Text",e)]})]}),ve={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>lf.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Fe.toLowerCase()}`,seeds:()=>[],addBlocked:mt,notice:wa},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Fe.toLowerCase()}`,seeds:()=>[],addBlocked:mt,notice:wa},ProcessSteps:{slot:"boxes",childType:D,addLabel:`Add ${Fe.toLowerCase()}`,seeds:e=>Array.from({length:Tp},()=>Ep(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function nv(e){for(let[o,t]of Object.entries(e)){if(o in ve&&ve[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);ve[o]=t}}function lv(e,o){let t=ve[e];return t?{slot:t.slot,children:t.seeds(o).map(a=>({type:t.childType,props:{id:To(t.childType),...a}}))}:null}var Op={general:!0,commerce:!0,service:!0};function Ga(e){let o=e?.sets;return o?Object.fromEntries(Ml.map(t=>[t,o.includes(t)])):Op}function dv(e=ee()){return Ga(e.blocks)}function G(e,o,t,a={}){return{type:e,props:{...o(e),id:t(e),...a}}}var Bp={Manifesto:(e,o)=>({type:D,props:{...e(D),id:o(D),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[G(D,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[G("Eyebrow",e,o,{eyebrowLook:"plain"}),G("Heading",e,o),G("Text",e,o),G("Stats",e,o)]}),G(D,e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:D,props:{...e(D),id:o(D),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[G(D,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[G("Eyebrow",e,o,{eyebrowLook:"plain"}),G("Heading",e,o),G("Text",e,o),G("ButtonBlock",e,o)]}),G(D,e,o,{direction:"column",name:"Image",content:[G("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:D,props:{...e(D),id:o(D),direction:"column",name:"Subscribe",content:[G("Heading",e,o),G("Text",e,o),G("Form",e,o)]}})};function cf(e){return Bp[e]??null}import{blockTypesIn as Ua}from"efficient-easel/screen/lib/puck/block-types-in";var df=()=>({}),uf=new Map;function Pp(e){let o=uf.get(e);if(o)return o;let t=new Set,a=ve[e];if(a)for(let l of a.seeds(df))for(let f of Ua({type:a.childType,props:l}))t.add(f);let r=cf(e);if(r){let l=0;for(let f of Ua(r(df,c=>`${c}-${l+=1}`)))t.add(f)}t.delete(e);let n=[...t].sort();return uf.set(e,n),n}function Ap(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Ga(e),t=e.allow?new Set(e.allow):null,a=new Set(e.deny??[]),r=new Set(Object.keys(e.host??{})),n=c=>{if(a.has(c))return!1;if(r.has(c))return!0;let u=Nl(c);return!u||!o[u]?!1:t?t.has(c):!0},l=new Map,f=c=>{let u=l.get(c);if(u!==void 0)return u;l.set(c,!1);let i=n(c)&&Pp(c).every(f);return l.set(c,i),i};return{sets:o,offers:f}}var Rp="block-offer";function Wa(e=ee()){return e.cache(Rp,()=>Ap(Hl(e)))}function Fv(e,o=ee()){let t=Wa(o);return t?t.offers(e):!0}var gt="SiteHeader",qa="SiteFooter",pf="sections",vv=[gt,qa],Tv=e=>e===gt||e===qa,Ev=e=>`${e}:${pf}`;function Ov(e,o,t=[]){return{type:e,props:{id:o,[pf]:t}}}var kp=new Set(["Footer",gt,qa]);function Bv(e){let o=new Set,t=!1,a=e.filter(r=>{let n=r?.type??"";return n==="Header"?(t=!0,!1):kp.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?a:e}function Pv(e,o){return e.some(t=>t?.type===o.type)?e:o.type===gt?[o,...e]:[...e,o]}import{PreviewPartsProvider as kv,usePreviewParts as wv}from"efficient-easel/screen/components/PreviewPartsContext";import{jsx as wp}from"react/jsx-runtime";import{createContext as _p,useContext as Dp,useMemo as Mp,useState as Np}from"react";var Hp={partStyle:null,setPartStyle:()=>{}},mf=_p(Hp);function Nv({children:e}){let[o,t]=Np(null),a=Mp(()=>({partStyle:o,setPartStyle:t}),[o]);return wp(mf.Provider,{value:a,children:e})}function Hv(){return Dp(mf)}import{applyMark as zv,markupTools as Kv,MARKUP_TOOLS as Vv,COPY_FIELD_TOOLS as Xv,STOREFRONT_MARKUP as jv,tokenizeInline as Yv,stripInline as Zv,isSafeLinkHref as Qv}from"efficient-easel/markup";import{applyMark as Gp,markedAt as Up,markupTools as Wp,MARKUP_TOOLS as qp,parseMarkup as $p,RETIRED_MARKS as zp,STOREFRONT_MARKUP as Kp,tokenizeInline as eT}from"efficient-easel/markup";var bt=["highlight","strong","quiet"],Ne={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},le={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},xf=Object.fromEntries(bt.map(e=>[le[e].kind,e])),If="data-sf-ws",za=["accent","text","labels"],hf={accent:"Accent",text:"Text",labels:"Labels"},Te={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"};var $a={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},Wv={highlight:{...$a},strong:{...$a},quiet:{...$a}};var gf=bt.map(e=>({open:le[e].delimiter,close:le[e].delimiter,kind:le[e].kind})),tT=[{style:le.highlight.kind,label:Ne.highlight,title:`${Ne.highlight} word style`},{style:le.strong.kind,label:Ne.strong,title:`${Ne.strong} word style`},{style:le.quiet.kind,label:Ne.quiet,title:`${Ne.quiet} word style`}],Vp=new Set(gf.map(e=>e.open)),bf=[...Kp.filter(e=>!Vp.has(e.open)),...gf];function Ka(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Va(e){return $p(typeof e=="string"?e:"",bf)}var Xp=qp.map(e=>e.style).filter(e=>!zp.includes(e)).filter(e=>bf.some(o=>o.kind===e));function Cf(){return Wp(Xp)}var Sf=Object.fromEntries(bt.map(e=>[le[e].kind,le[e].delimiter]));function yf(e,o,t,a){let r=Sf[a];if(!r)return Gp(e,o,t,a);let n=e.slice(o,t),l=e.slice(Math.max(0,o-r.length),o),f=e.slice(t,t+r.length);if(l===r&&f===r)return{text:e.slice(0,o-r.length)+n+e.slice(t+r.length),selectionStart:o-r.length,selectionEnd:o-r.length+n.length};let c=n||"styled text";return{text:e.slice(0,o)+r+c+r+e.slice(t),selectionStart:o+r.length,selectionEnd:o+r.length+c.length}}function Ff(e,o,t,a){let r=Sf[a];return r?o>=r.length&&e.slice(o-r.length,o)===r&&e.slice(t,t+r.length)===r:Up(e,o,t,a)}function Oo(e){return Va(e).map(o=>Ka(o)+Lf(o.children)).join(`
3
+ `)}function Lf(e){return e.map(o=>o.kind==="text"?o.text:Lf(o.children)).join("")}var te={min:1e3,max:2e3,step:50,default:1600};function vf(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function rT(e,o){if(e!==!1)return null;let t=typeof o=="number"?o:te.default;return vf(t)}var Tf="--sf-site-width",Ct=`var(${Tf},${te.default}px)`,nT=`max-w-[${Ct}]`,lT=`max-w-[${te.default}px]`;function jp(e){return typeof e!="number"||!Number.isFinite(e)?te.default:Math.round(Math.min(Math.max(e,te.min),te.max))}function fT(e){let o=jp(e);return o===te.default?{}:{[Tf]:`${o}px`}}var Bo={min:0,max:80,step:4,default:40},Ef="--sf-site-gutter",q=`var(${Ef},${Bo.default}px)`,Yp=`px-[${q}]`;var Ee={md:`min(24px,${q})`,sm:`min(20px,${q})`,frame:`min(24px,${q})`,tabs:`min(16px,${q})`},sT=[[`max-[1100px]:px-[${Ee.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${Ee.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${Ee.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Ee.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${Ee.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${Ee.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${Ee.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${Ee.sm}]`,"max-[640px]:px-5"],[`min-[800px]:px-[${q}]`,"min-[800px]:px-10"],[`max-[720px]:px-[min(24px,${q})]`,"max-[720px]:px-6"],[`max-[800px]:-mx-[min(20px,${q})]`,"max-[800px]:-mx-5"],[`max-[720px]:-mx-[min(20px,${q})]`,"max-[720px]:-mx-5"],[`-mx-[${q}]`,"-mx-10"],[Yp,"px-10"]];function Zp(e){return typeof e!="number"||!Number.isFinite(e)?Bo.default:Math.round(Math.min(Math.max(e,Bo.min),Bo.max))}function cT(e){let o=Zp(e);return o===Bo.default?{}:{[Ef]:`${o}px`}}var St=`min(var(--sf-page-cap,${Ct}),${Ct})`,dT=`max-w-[${St}]`,uT=`max-w-[min(var(--sf-page-cap,${te.default}px),${te.default}px)]`,Of="--sf-hero-cap",Qp=`var(${Of},none)`,iT=`max-w-[${Qp}]`,Xa="--sf-hero-bleed-m",ja="--sf-hero-bleed-w",pT=`var(${Xa},calc(50% - 50vw))`,mT=`var(${ja},100vw)`,xT=`mx-[var(${Xa},calc(50%_-_50vw))]`,IT=`w-[var(${ja},100vw)]`,Ya="--sf-hero-chrome-x",Za="--sf-hero-chrome-cap";function hT(e){return e===!0?{[Of]:St,[Xa]:"auto",[ja]:"100%",[Ya]:"24px",[Za]:"none"}:{}}var Qa=`calc(${Ct} - ${q}*2)`,gT=`max-w-[${Qa.replace(/ /g,"_")}]`;var Jp="--sf-chrome-cap",em=`var(${Jp},${Qa})`,bT="data-page-width";function CT(e){return e==="full"?"full":null}function ST(e){return e==="full"?null:vf(e==="content"?Qa:em)}function yT(e){if(e==="full")return"full";if(e==="content")return"content"}var Bf="homepage";function Pf(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var Af=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"custom",label:"Custom URL"}];function Rf(e){return e.offersCommerce&&e.offersService?Af:Af.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function Po(e){return e===Bf?"/":`/${e}`}function kf(e){return`/journal/${e}`}function OT(e){return`/wheels/${e}`}function wf(e,o){return`${Po(e)}#${o}`}function om(e){return Pf(e)}function tm(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function _f(...e){let o=new Set,t=[];for(let a of e)for(let r of a?.content??[]){let n=tm(r?.props?.anchor);if(!n)continue;let l=om(n);!l||o.has(l)||(o.add(l),t.push({slug:l,name:n}))}return t}function BT(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),a=t.indexOf("?");return a===-1?t:t.slice(0,a)}var yt=-1,am="sf-section-accent",Df="Color",Mf=new Set(["CategoryBar","DocTabs"]),RT=new Set(["Flex"]),rm=0;function Ja(e){return e===yt?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:rm}function kT(e){return e??yt}function nm(e){let o=`--theme-preset-${e}`,t={"--sf-sec-accent":`var(${o}-accent)`,"--sf-sec-accent-2":`var(${o}-accent-2)`,"--sf-sec-accent-ink":`var(${o}-accent-ink)`};for(let{role:a}of Ma)t[`--sf-sec-${a}`]=`var(${o}-${a}, var(--theme-${a}))`;return t}function wT(e){let o=Ja(e.sectionAccent);return o===null?null:{className:am,style:nm(o)}}var lm=["column","row","tabs"],Nf="Direction",fm={column:"Stacked",row:"One row",tabs:"Tabs"},Hf={Flex:lm,HeroGroup:["column","row"]},sm={Flex:"row",HeroGroup:"column"},cm={column:"flex-col",row:"flex-row",tabs:"flex-col"};function Ft(e,o){return Hf[e].includes(o)?o:sm[e]}function DT(e,o){return cm[Ft(e,o)]}function Gf(e){return Hf[e].map(o=>({label:fm[o],value:o}))}import{ScreenDocumentContext as Lt,ScreenDocumentProvider as HT,useScreenDocument as Uf}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as _,jsxs as He,Fragment as _m}from"react/jsx-runtime";import{useCallback as Dm,useContext as Mm,useEffect as Nm,useId as os,useRef as Jf,useState as es}from"react";import{ThemeIcon as Hm}from"efficient-easel/icons";import{SettingsField as Gm}from"efficient-easel/panel";import{jsx as F,jsxs as Be,Fragment as ym}from"react/jsx-runtime";import{SettingsField as ar,SettingsGroupSub as Fm}from"efficient-easel/panel";import{Button as tr}from"efficient-shell/ui";import{jsx as Oe,jsxs as $f}from"react/jsx-runtime";import{SettingsField as xm}from"efficient-easel/panel";import{AccentIcon as Im}from"efficient-easel/icons";import{Tooltip as hm}from"efficient-shell/ui";import{jsx as eo,jsxs as um}from"react/jsx-runtime";import{ColorPicker as qf,HexInput as im}from"efficient-shell/ui";import{typedHex as er}from"efficient-easel/pick";import{typedHex as dm}from"efficient-easel/pick";function Wf(e){let o=new Set,t=[];return Fo(e).themes.forEach((a,r)=>{let n=[[s("Theme {n} main color",{n:r+1}),a.accent],[s("Theme {n} text color",{n:r+1}),a.text],[s("Theme {n} background",{n:r+1}),a.background]];for(let[l,f]of n){let c=f?dm(f):null;!c||o.has(c)||(o.add(c),t.push({name:l,value:c}))}}),t}function he({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l,ariaLabel:f}){return eo(mm,{value:e,onChange:o,label:s(f??t),id:a,caption:r,inherited:n,after:l})}function pm(){let{theme:e}=Ie();return Wf(e).map(o=>({value:o.value,label:o.name}))}function mm({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l}){let f=pm(),c=e?null:er(n??""),u=r!==void 0&&(!e||er(r)!==er(e))?r:null,i=m=>{m!==e&&o(m)};return um("div",{className:"sf-colour",children:[eo(qf,{id:a,value:e,onChange:i,label:t,presets:f,fallback:c??void 0,size:"sm",align:"end"}),u!==null?eo("span",{className:"sf-colour-caption",children:u}):eo("span",{className:"sf-colour-hexwrap",children:eo(im,{value:e||c||"",onChange:i,label:s("{label} hex code",{label:t}),placeholder:e||c?void 0:s("Not set"),className:c?"sf-colour-hex is-inherited":"sf-colour-hex",size:"sm"})}),l]})}function ZT({value:e,onChange:o,label:t}){return eo(qf,{value:e,onChange:a=>{a&&a!==e&&o(a)},label:s(t),size:"sm",align:"end"})}function or(e){return Ce(e).background}function gm(e){let o=Se(e.accent,or(e));return o===null?null:{ratio:o,grade:je(o)}}function bm(e){let o=or(e),t=Se(e.accent,o);return t===null?[]:hl(e.accent).filter(a=>{let r=Se(a,o);return r!==null&&r>t&&je(r)==="good"})}var Cm={good:"Easy to read","large-only":Xe["large-only"],hard:Xe.hard};function zf({value:e,onChange:o}){let t=gm(e),a=t?.grade,r=t&&t.grade!=="good"?bm(e):[];return Oe(xm,{label:s("Main color"),icon:Oe(Im,{}),hint:t?s(Cm[t.grade]):void 0,action:Oe(he,{value:e.accent,onChange:n=>o({...e,accent:n}),label:s("Main color")}),children:r.length>0?Oe("div",{className:"w-full min-w-0",children:$f("div",{className:"sf-readability",children:[Oe("p",{className:"sf-readability-advice",children:Sm(a,!0)}),Oe("div",{className:"sf-readability-suggestions",children:r.map(n=>{let l=Se(n,or(e));return Oe(hm,{content:s("Use {colour}",{colour:n.toUpperCase()}),children:$f("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[Oe("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),l?`${l.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function Sm(e,o){return e?e==="good"?s("This color reads clearly on your pages."):o?s("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):s("This color is hard to read on your page background. Pick one further from it \u2014 lighter if your pages are dark, deeper if they are light."):s("Pick a color to see how it reads.")}import{ButtonIcon as Lm,GroundIcon as vm,LayoutIcon as Tm,SquareIcon as Em,TextSmallIcon as Om,TypeIcon as Kf}from"efficient-easel/icons";var Ao=e=>s("Theme {n}",{n:e+1});function Vf({colors:e}){let o=Ce(e),t=Sa(e)??o.accent;return Be("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[F("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:s("label")}),Be("span",{className:"sf-theme-headline",children:[s("Heading")," ",F("span",{style:{color:o.accent},children:s("accent")})]}),F("span",{className:"sf-theme-body",children:s("body text")}),Be("span",{className:"sf-theme-row",children:[F("span",{className:"sf-theme-btn",style:{background:t,color:ya(e,o.accent)},children:s("button")}),F("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:s("card")})]})]})}var rr={"Text color":F(Kf,{}),"Label color":F(Om,{}),Background:F(vm,{}),"Panels & cards":F(Tm,{}),Borders:F(Em,{}),"Button color":F(Lm,{}),"Button text color":F(Kf,{})};function Bm({label:e,colorKey:o,value:t,onChange:a,idPrefix:r="sf-theme-ink"}){let n=`${r}-${o}`;return F(ar,{label:s(e),icon:rr[e],htmlFor:n,action:F(he,{id:n,label:s(e),value:t,onChange:l=>a(o,l)})})}function Pm({value:e,accent:o,onChange:t,idPrefix:a="sf-theme-ink"}){let r=`${a}-button`,n=/^#[0-9a-fA-F]{6}$/.test(e??""),l=n?e:o;return F(ar,{label:s("Button color"),icon:rr["Button color"],htmlFor:r,action:F(he,{id:r,label:s("Button color"),value:l,caption:n?l:s("Main"),onChange:t})})}function Am({colors:e,accent:o,onChange:t,idPrefix:a="sf-theme-ink"}){let r=`${a}-button-ink`,n=gl(e),l=ya(e,o),f=Sa(e)??o,c=je(Se(l,f)??0);return F(ar,{label:s("Button text color"),icon:rr["Button text color"],hint:n&&c!=="good"?s("{grade} on the button",{grade:s(Xe[c])}):void 0,htmlFor:r,action:F(he,{id:r,label:s("Button text color"),value:l,caption:n?l:s("Auto"),onChange:t})})}var Rm=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{group:"Surfaces"},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function nr({colors:e,onChange:o,idPrefix:t}){let a=Ce(e);return F(ym,{children:Rm.map(r=>"colour"in r?F(zf,{value:e,onChange:o},"colour"):"group"in r?F(Fm,{title:s(r.group)},r.group):"button"in r?F(Pm,{value:e.button,accent:a.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in r?F(Am,{colors:e,accent:a.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):F(Bm,{label:r.label,colorKey:r.key,value:a[r.key],onChange:(n,l)=>o({...e,[n]:l}),idPrefix:t},r.key))})}function Xf({index:e,colors:o,selected:t,role:a="radio",open:r,editable:n=!0,onPick:l,onEdit:f,onChangeColors:c}){let u=Ce(o),i=Ao(e),m=e<Ca.length&&!o.brandInk?Ca[e]:null,p=je(Se(u.text,u.background)??0),I=m?JSON.stringify(o)!==JSON.stringify(m):!1,x=r!==void 0;return Be("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[F("button",{type:"button",role:a,"aria-checked":a==="radio"?t:void 0,"aria-selected":a==="option"?t:void 0,"aria-label":i,className:"sf-theme-pick",onClick:l,children:F(Vf,{colors:o})}),Be("div",{className:"sf-theme-foot",children:[F("span",{className:"sf-theme-name",children:i}),p!=="good"&&F("span",{className:"sf-theme-warn",children:s(Xe[p])}),n&&f&&F(tr,{variant:r?"primary":"secondary",size:"sm",className:"sf-theme-edit","aria-expanded":x?r:void 0,"aria-controls":x?`sf-theme-colours-${e}`:void 0,"aria-label":r?s("Done {name}",{name:i}):s("Edit {name}",{name:i}),onClick:f,children:r?s("Done"):s("Edit")})]}),r&&Be("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[F(nr,{colors:o,onChange:h=>c?.(h)}),m&&F(tr,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!I,onClick:()=>c?.({...m}),children:I?s("Reset {name} to the preset",{name:i}):s("Not changed")})]})]})}function jf({colors:e,name:o,nameId:t,open:a,menuId:r,labelId:n,buttonRef:l,onClick:f,onKeyDown:c,onEdit:u}){return Be("div",{className:"sf-secttheme-btn",children:[F("button",{ref:l,type:"button",className:"sf-theme-pick","aria-expanded":a,"aria-controls":r,"aria-labelledby":`${n} ${t}`,onClick:f,onKeyDown:c,children:e?F(Vf,{colors:e}):F("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Be("div",{className:"sf-theme-foot",children:[F("span",{id:t,className:"sf-theme-name",children:o}),u&&F(tr,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":s("Edit {name}",{name:o}),onClick:u,children:s("Edit")}),F("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:f,children:F("span",{className:"sf-multi-caret",children:"\u25BE"})})]})]})}import{useCallback as lr,useEffect as km,useRef as vt}from"react";function Yf(e=ee()){return(o,t,a)=>{let r=De(e).theme;return r?r.update(o,a?{siteId:a}:void 0):Promise.reject(new va("invalid","This backend stores no site theme."))}}function Zf(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function wm(e,o=Yf()){let{themeFromDocument:t,token:a,siteId:r,patch:n}=e,l=Zf({themeFromDocument:t,token:a});if(l)return l;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,a,r??void 0),{status:"saved"}}catch(f){return{status:"failed",error:f}}}function Qf({themeFromDocument:e,tokenRef:o,siteId:t,onResult:a}){let r=vt(null),n=vt({}),l=Ye(),f=vt(a);f.current=a;let c=vt(null),u=lr(p=>{if(p.status==="skipped"){let I=`skipped:${p.reason}`;if(c.current===I)return;c.current=I}else c.current=null;f.current?.(p)},[]),i=lr(async()=>{r.current&&(clearTimeout(r.current),r.current=null);let p=n.current;n.current={};let I=await wm({themeFromDocument:e,token:o?.current,siteId:t,patch:p},Yf(l));return u(I),I},[e,o,t,u,l]),m=lr((p,I=!1)=>{let x=Zf({themeFromDocument:e,token:o?.current});if(x){u(x);return}n.current={...n.current,...p},r.current&&clearTimeout(r.current),I?i():r.current=setTimeout(()=>{i()},500)},[e,o,i,u]);return km(()=>()=>{i()},[i]),{persist:m,flush:i}}var Um="Follow the page",kE="Follow the slideshow",Wm=e=>s("Editing {name} changes it everywhere.",{name:e});function qm({colors:e}){if(!e)return _("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Ce(e);return He("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[_("i",{style:{background:o.background}}),_("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function $m({themes:e,value:o,onPick:t,onEdit:a,menuId:r,followLabel:n}){return He("div",{className:"sf-multi-menu sf-secttheme-menu",id:r,role:"listbox",children:[n!==void 0&&He(_m,{children:[He("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(yt),children:[_(qm,{}),_("span",{className:"sf-secttheme-name",children:s(n)})]}),_("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&_("p",{className:"sf-secttheme-oncard",role:"presentation",children:s("{name} is on this section",{name:Ao(o)})}),e.map((l,f)=>f===o?null:_(Xf,{role:"option",index:f,colors:l,selected:!1,onPick:()=>t(f),onEdit:()=>a(f)},f))]})}function zm({index:e,colors:o,onChange:t,onDone:a}){let r=Ao(e),n=os();return He("div",{className:"sf-secttheme-sheet",children:[He("div",{className:"sf-secttheme-sheet-head",children:[_("span",{children:r}),_("button",{type:"button",className:"sf-secttheme-done",onClick:a,children:s("Done")})]}),_("div",{className:"sf-secttheme-rows",children:_(nr,{colors:o,onChange:t,idPrefix:n})}),_("p",{className:"sf-secttheme-warn",children:Wm(r)})]})}function ts({value:e,onChange:o,followLabel:t,hint:a}){let{theme:r,setTheme:n}=Ie(),l=Fo(r),f=Mm(Lt),c=f?.tokenRef,u=f?.siteId??null,i=!f?.capabilities?.hasSiteTheme,{persist:m,flush:p}=Qf({themeFromDocument:i,tokenRef:c,siteId:u}),I=Fo(l),x=I.themes,h=Ja(e),S=h!==null?x[h]:void 0,O=S??(x.length?Il(I):void 0),[b,y]=es(!1),[B,H]=es(null),pe=Jf(null),Z=Jf(null),Q=os(),v=Dm(()=>{y(!1),H(null)},[]);Nm(()=>{if(!b&&B===null)return;let w=We=>{pe.current&&!pe.current.contains(We.target)&&(p(),v())};return document.addEventListener("mousedown",w),()=>document.removeEventListener("mousedown",w)},[b,B,v,p]);let V=w=>{o(w),v()},ot=w=>{if(B===null)return;let We=x.map(($e,ze)=>ze===B?w:$e),qe={...I,themes:We};n(qe),m({selected_preset:qe.selected,theme_presets:qe.themes})};return He("div",{className:"sf-secttheme",ref:pe,children:[_(Gm,{label:s("Theme"),icon:_(Hm,{}),labelId:`${Q}-label`,hint:a,children:_(jf,{colors:O,onEdit:h!==null?()=>{H(h),y(!1)}:void 0,name:S?Ao(h):s(t??Um),nameId:`${Q}-value`,labelId:`${Q}-label`,open:b,menuId:Q,buttonRef:Z,onClick:()=>{H(null),y(w=>!w)},onKeyDown:w=>{w.key==="Escape"&&(b||B!==null)&&(w.preventDefault(),v())}})}),b&&B===null&&_("div",{onKeyDown:w=>{w.key==="Escape"&&(w.preventDefault(),v(),Z.current?.focus())},children:_($m,{themes:x,value:h,onPick:V,onEdit:w=>{H(w),y(!1)},menuId:Q,followLabel:t})}),B!==null&&x[B]&&_(zm,{index:B,colors:x[B],onChange:ot,onDone:()=>{p(),v(),Z.current?.focus()}})]})}import{jsx as T,Fragment as fe,jsxs as se}from"react/jsx-runtime";import{TitleIcon as Km,ButtonIcon as Vm,DollarIcon as Xm,HashIcon as jm,LinkIcon as Ym,NoteIcon as Zm,TagIcon as Qm,TextLinesIcon as Jm}from"efficient-easel/icons";var as={body:Jm,button:Vm,link:Ym,label:Qm,number:jm,price:Xm,note:Zm,title:Km},rs={eyebrow:se(fe,{children:[T("path",{d:"M5 6.5h5"}),T("path",{d:"M5 12.5h14"}),T("path",{d:"M5 18h11"})]}),heading:se(fe,{children:[T("path",{d:"M6.5 5v14"}),T("path",{d:"M17.5 5v14"}),T("path",{d:"M6.5 12h11"})]}),intro:se(fe,{children:[T("path",{d:"M4 5.5v13"}),T("path",{d:"M8 7.5h12"}),T("path",{d:"M8 12h12"}),T("path",{d:"M8 16.5h8"})]}),value:se(fe,{children:[T("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),T("path",{d:"M6.5 12h7"})]}),name:se(fe,{children:[T("path",{d:"M6 3.5v17"}),T("path",{d:"M6 5h11.5l-2.6 3.6L17.5 12H6z"})]}),date:se(fe,{children:[T("rect",{x:"4",y:"5.5",width:"16",height:"15",rx:"2"}),T("path",{d:"M4 10.5h16"}),T("path",{d:"M9 3.2v4.4"}),T("path",{d:"M15 3.2v4.4"})]}),caption:se(fe,{children:[T("rect",{x:"3.5",y:"4.5",width:"17",height:"11",rx:"2"}),T("path",{d:"M3.5 12.8l4.2-3.2 3.6 2.8 3.4-2.4 5.8 4"}),T("path",{d:"M6.5 19.5h11"})]}),quote:se(fe,{children:[T("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),T("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:se(fe,{children:[T("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),T("path",{d:"M8 9.5h8"}),T("path",{d:"M12 9.5v5"})]}),meta:se(fe,{children:[T("path",{d:"M4 7h16"}),T("path",{d:"M4 14h3.5"}),T("path",{d:"M10.5 14h3"}),T("path",{d:"M17 14h3"})]})};function fr({noun:e,size:o=14,strokeWidth:t=1.8,className:a,style:r}){let n=as[e];return n?T("span",{className:a,style:{display:"inline-flex",...r},"aria-hidden":"true",children:T(n,{size:o})}):T("svg",{className:a,style:r,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:rs[e]})}var ME=Object.keys(as);var NE=Object.keys(rs);var ex="#ffffff",ox=/^#[0-9a-fA-F]{6}$/;function sr(e){return tx(e)?e:ex}function tx(e){return typeof e=="string"&&ox.test(e)}function GE(e){return{"--bg":sr(e)}}import{jsx as Ro,jsxs as rx}from"react/jsx-runtime";import{SettingsField as nx}from"efficient-easel/panel";import{LinkIcon as lx}from"efficient-easel/icons";import{LinkPicker as fx}from"efficient-shell/ui";import{useEffect as ss,useMemo as cr,useRef as sx,useState as Tt}from"react";function ns(){return ee().auth.token}var ax=()=>({choosePage:s("Choose a page"),chooseSection:s("Choose a section"),noSections:s("No section anchors yet"),sectionHint:s("Jumps to a section on that page."),choosePost:s("Choose a post"),chooseProduct:s("Choose a product")});function ls(e,o,t){if(!e)return"page";if(e.startsWith("/journal/"))return"blog";if(e.startsWith("/wheels/"))return"product";if(e.includes("#")){let a=e.slice(0,e.indexOf("#"));if(a===""||a==="/"||o.includes(a))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function fs(e,o){let t=ax(),a=e.pages.map(i=>({value:Po(i.slug),label:i.title})),r=o?.pageOptions?o.pageOptions(a):a,n=r.map(i=>i.value),l=e.pages.map(i=>({label:i.title,options:_f(...i.docs).map(m=>({value:wf(i.slug,m.slug),label:m.name}))})).filter(i=>i.options.length>0),f=i=>{switch(i){case"page":return{type:"select",options:r,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:l,placeholder:l.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(m=>({value:kf(m.slug),label:m.title||m.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(m=>({value:m.href,label:m.name||m.href})),placeholder:t.chooseProduct};case"custom":return{type:"text"}}},c=Rf(e.offers).map(i=>({value:i.value,label:s(i.label),target:f(i.value),...i.value==="anchor"?{hint:t.sectionHint}:{},...i.value==="blog"||i.value==="product"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:c,rules:{kindOf:i=>ls(i,n),targetOf:i=>i,readFilter:()=>null,withFilter:i=>i}};let u=i=>{let m=o.withFilter(i,null);return o.listingPaths.includes(m)?m:i};return{kinds:c,rules:{kindOf:i=>ls(i,n,{listingPaths:o.listingPaths,targetOf:u}),targetOf:u,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:i=>o.listingPaths.includes(i)?o.filtersFor(i):null}}function cs(e){let o=new Map;return(t="")=>{let a=ns(),r=o.get(t);if(!r||r.token===null&&a!==null){let n=a||!ee().usesBridgedToken?e(a??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:a}),n}return r.promise}}var cx=cs(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:a}=De();return a.linkTargets?a.linkTargets(t):(await a.list(t)).map(r=>({id:r.id,slug:r.slug,label:r.label,layout:null}))}),dx=cs(async(e,o)=>await De().blog?.posts(o?{siteId:o}:void 0)??[]);function ux({value:e,onChange:o,label:t="Link",data:a,filters:r}){let n=cr(()=>fs(a,r),[a,r]),l=s(t);return Ro(nx,{label:l,icon:Ro(lx,{}),children:Ro(fx,{value:e,onChange:f=>o(f),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:l})})}function ds({value:e,onChange:o,label:t="Link"}){let a=typeof e=="string"?e:"",{siteId:r,capabilities:n}=Uf(),{offersCommerce:l,hasBlog:f}=n,[c,u]=Tt([]),[i,m]=Tt([]),[p,I]=Tt([]),[x,h]=Tt(null),S=Ye().chrome,O=S?.products?.list,b=S?.linkFilters,y=b?void 0:S?.linkRow,B=sx(!0);ss(()=>(B.current=!0,()=>{B.current=!1}),[]),ss(()=>{let v=!0;return cx(r??void 0).then(V=>v&&B.current&&u(V)),f&&dx(r??void 0).then(V=>v&&B.current&&m(V)),l&&O?.().then(V=>v&&B.current&&I(V)),l&&b?b.load(r).catch(()=>null).then(V=>v&&B.current&&h(()=>V)):h(null),()=>{v=!1}},[r,l,f,O,b]);let H=cr(()=>({pages:c.filter(v=>!wl(v.slug)).map(v=>({slug:v.slug,title:v.label,docs:[v.layout]})),posts:f?i.map(v=>({slug:v.slug,title:v.title})):[],products:l?p.map(v=>({href:v.href,name:v.name})):[],offers:{offersCommerce:l,offersService:f}}),[c,i,p,l,f]),pe=cr(()=>x?x(H.pages):null,[x,H]),Z=H.pages.map(v=>Po(v.slug)),Q=l&&y&&(a==="/"||Z.includes(a))?y:void 0;return rx("div",{children:[Ro(ux,{value:a,onChange:o,label:t,data:H,filters:pe}),Q&&Ro(Q,{value:a,onChange:o,pages:c})]})}var ps="sf.gapContainer",Pe={min:-32,max:64,step:2},ms={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},Et={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},ix=new Set(["Events","GalleryB"]);function ur(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Pe.min)return o;if(typeof o=="string"){let a=ms[e]?.[o];if(typeof a=="number")return a}return typeof t=="number"&&Number.isFinite(t)?t:Et[e]}var px="sf-gap-overlap",mx="--sf-gap-overlap",xs="--sf-block-gap",xx="--sf-block-gap-rem",dr={min:0,max:Pe.max,step:Pe.step};function Ix(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),dr.min),dr.max);return o-o%dr.step}function sO(e){let o=Ix(e);return o===null?{}:{[xs]:`${o}px`,[xx]:`${o/16}rem`}}var us="sf-gap-zone",is="--sf-gap-len";function ir(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Pe.min?!0:typeof o=="string"&&typeof ms[e]?.[o]=="number"}var hx={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function cO(e,o,t){if(!ir(e,o)){let r=`${Et[e]}px`,n=ix.has(e)?`var(--sf-card-gap, ${r})`:r;return{className:` ${us}`,style:{[is]:`var(${xs}, ${n})`}}}let a=ur(e,o);return a>=0?{className:` ${us}`,style:{[is]:`${a}px`}}:{className:` ${px} ${hx[t]}`,style:{gap:"0px",[mx]:`${-a/2}px`}}}import{jsx as d,jsxs as fo,Fragment as we}from"react/jsx-runtime";import{cloneElement as Ec,useId as ch,useRef as Vr,useState as Oc}from"react";import{useEasel as so,useSelectedFields as dh}from"efficient-easel/easel";import{hidableText as Is,readHidable as Ae}from"efficient-easel/screen/lib/puck/hidable";import{ANCHOR_FIELD_KEYS as mO,FOLD_FIELD_MARKER as Ot,foldMetaOf as ce,LINK_FIELD_MARKER as ko,MEDIA_FIELD_MARKER as hs,SCAFFOLD_FIELD_MARKER as wo,TEXT_FIELD_MARKER as M,textFieldIdentifier as gx}from"efficient-easel/screen/lib/puck/field-markers";import{jsx as Ls}from"react/jsx-runtime";import{useCallback as yx,useEffect as Fx,useRef as Lx,useState as vx}from"react";import{useEasel as Tx}from"efficient-easel/easel";import{SettingsAction as Ex}from"efficient-easel/panel";function pr(e){return typeof e=="number"&&Number.isFinite(e)}function hO(e,o){if(!pr(e))return;let t=nt(ye(e));if(Object.keys(t).length===0)return;let a=t[Bt];if(typeof a!="string")return t;let r=oo(o)?to(a,de(o)??[]):a;return{...t,[bx]:r}}var bx="--sf-section-radius",Bt="--sf-card-radius",Re=["tl","tr","br","bl"];function de(e){if(!Array.isArray(e))return null;let o=e.filter(t=>Re.includes(t));return Re.filter(t=>o.includes(t))}function oo(e){let o=de(e);return o!==null&&o.length<Re.length}function to(e,o){return Re.map(t=>o.includes(t)?e:"0").join(" ")}var mr=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Cx="--sf-card-box-radius",Sx="--sf-site-card-radius",yO="sf-section-bleeds";function xr(e){return typeof e=="number"&&Number.isFinite(e)}function FO(e,o){if(!xr(e))return;let t=nt(ye(e))[Bt];if(typeof t!="string")return;let a=oo(o)?to(t,de(o)??[]):t;return{[Cx]:a}}function LO(e){let o=e[Bt];return typeof o=="string"?{[Sx]:o}:{}}function gs(e,o){let t=e.find(n=>n?.props?.id===o);if(!t)return[...e];let a=t.props?.cardCorners,r=t.props?.cardCornerSides;return e.map(n=>n?.props?.id===o?n:{...n,props:{...n.props,cardCorners:a,cardCornerSides:r}})}function bs(e,o,t){let a=t?.zone??"",r=a.lastIndexOf(":"),n=r>0?a.slice(0,r):"",l=r>0?a.slice(r+1):"",f=n?zl(e,o,n):null,c=f&&Array.isArray(f.item.props[l])?f.item.props[l]:[],u=t?.index??-1,i=u>=0?c[u]:void 0,m=i?.props?.id?String(i.props.id):"",p=Math.max(c.length-1,0);return!f||!m?{can:!1,reason:"unreachable",others:0}:c.length<=1?{can:!1,reason:"alone",others:p}:xr(i?.props?.cardCorners)?{can:!0,others:p,zone:f.zone,index:f.index,data:{...f.item,props:{...f.item.props,[l]:gs(c,m)}}}:{can:!1,reason:"unset",others:p}}function Cs(e){return e.can?La("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?s("This is the only card in the section."):e.reason==="unset"?s("Set this card's corners first."):s("This card is not in a section that can share corners.")}function Ss(e){return La("Applied to {n} card","Applied to {n} cards",e)}function ys(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as Fs}from"efficient-easel/screen/lib/puck/use-section-ops";var Ox=2200,Bx="apply-corners-to-siblings",Px="Apply to all cards";function Ax({plan:e,doneCount:o,onPress:t}){return Ls(Ex,{id:Bx,label:s(Px),note:Cs(e),disabled:!e.can,done:o!==null,doneLabel:Ss(o??0),onPress:t})}function vs(){let{appState:e,config:o}=Tx(c=>c),t=Fs(),[a,r]=vx(null),n=Lx(null);Fx(()=>()=>{n.current&&clearTimeout(n.current)},[]);let l=bs(o,e.data.content??[],e.ui.itemSelector),f=yx(()=>{ys(l,t.replaceComponent),l.can&&(r(l.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>r(null),Ox))},[l,t]);return Ls(Ax,{plan:l,doneCount:a,onPress:f})}var Ts=1;function Rx(e){return ye(e)}function UO(e){let o=Rx(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var Es=1,Os="Corners";function kx(e){return ye(e)}function zO(e,o){let t=kx(e);if(t===null)return null;let a=`${t}px`;return{borderRadius:oo(o)?to(a,de(o)??[]):a}}var ue={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]}},Ir=Object.keys(ue),Ps=[2,3,4,6];function As(e){return typeof e!="string"||e===""?null:ue[e]??null}function Bs(e,o){return o?6/e.acrossPhone:12/e.across}var wx="sf-wall--";function _x(e){return`${wx}${e}`}function VO(e){let o=ue[e],t=`.${_x(e)}`,a=[],r=(n,l)=>{let f=[],c=n.length;n.forEach(([u,i],m)=>{f.push(`${t} > :nth-child(${c}n+${m+1}){grid-column:span ${u};grid-row:span ${i}}`)});for(let u=1;u<c;u+=1)f.push(`${t}:has(> :nth-child(${c}n+${u}):last-child) > :nth-last-child(-n+${u}){grid-column:span ${l};grid-row:span 1}`);return f};return a.push(`${t}{grid-template-columns:repeat(12,minmax(0,1fr))}`),a.push(...r(o.desktop,Bs(o,!1))),a.push("@media (max-width:800px){"),a.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),a.push(...r(o.phone,Bs(o,!0))),a.push("}"),a.join("")}var Pt=12,Rs=1,Dx=3;var Mx=3;function hr(e,o,t){let a=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(a)?Math.min(t,Math.max(o,Math.trunc(a))):null}function Nx(e){return hr(e,1,Pt)??Mx}function YO(e,o){return hr(e,Rs,Dx)??(Nx(o)===4?2:Rs)}function ZO(e){return e==null||e===""?null:hr(e,1,Pt)}var QO="data-sf-span";function JO(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(As(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as Hx}from"react/jsx-runtime";var Gx="sf-hint-keep";function ks({children:e}){return Hx("span",{className:Gx,children:e})}import{AdjustIcon as uh,AlignLeftIcon as ih,AlignSeparateIcon as ph,AnimationIcon as Bc,BackgroundIcon as mh,BlockSectionIcon as xh,CartIcon as Ih,ColumnWidthsIcon as Pc,ColumnsIcon as hh,CornerIcon as gh,DirectionDownIcon as bh,DirectionLeftIcon as Ch,DirectionRightIcon as Sh,DirectionUpIcon as yh,DollarIcon as Fh,FinishIcon as Lh,GapIcon as Ac,GridIcon as vh,GroundIcon as Th,HashIcon as Rc,HeightIcon as Eh,ImageIcon as Oh,ListIcon as Bh,LocationIcon as Kr,PaddingBottomIcon as kc,PaddingLeftIcon as wc,PaddingRightIcon as _c,PaddingTopIcon as Dc,PageIcon as Mc,PhoneIcon as Ph,PlacementIcon as Ah,ProductSizeIcon as Rh,RotateIcon as kh,SquareIcon as wh,TypeIcon as _h,WidthIcon as Dh,WrapIcon as Mh}from"efficient-easel/icons";var Ux=["fade","rise","scale"],gr="none",ws=[{label:"None",value:gr},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function rB(e){return Ux.includes(e)?e:null}var _s="data-sf-anim",_o="data-sf-anim-state";function nB(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(_s))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(_o,"armed");let a=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){a.disconnect(),Wx(e);break}},{threshold:0});return a.observe(e),()=>{a.disconnect(),e.removeAttribute(_o)}}function Wx(e){if(!e.getAttribute(_s))return;e.removeAttribute(_o),e.offsetWidth,e.setAttribute(_o,"play");let o=t=>{t.target===e&&(e.removeAttribute(_o),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var lB=Mf;function Cr(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let a of t){if(!a||typeof a!="object")continue;let r=a.props;if(r?.id===o)return null;if(br(a,o,0))return r??{}}return null}function br(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(r=>br(r,o,t+1));let a=e.props;return a&&typeof a=="object"&&a.id===o?!0:Object.values(e).some(r=>br(r,o,t+1))}import{SettingsDefaultReset as ne,SettingsField as k,SettingsGroupHead as Nh,SettingsGroupSub as Hh,SettingsSegmented as Gh,SettingsSwitch as Uh}from"efficient-easel/panel";import{FieldSelect as Wh,ListField as qh}from"efficient-easel/fields";import{AlignmentGrid as $h,Checkbox as MP,CornersInput as zh,DateTimePicker as Kh,FOCAL_DEFAULT as Vh,Slider as Xh,Tooltip as Ut}from"efficient-shell/ui";import{jsx as U,Fragment as Sr,jsxs as yr}from"react/jsx-runtime";import{useEffect as qx,useState as $x}from"react";import{MarkBar as zx,markSelection as Kx,useCaretEdit as Vx}from"efficient-easel/copy";import{RevertIcon as Xx}from"efficient-easel/icons";import{IconButton as jx,Tooltip as Yx}from"efficient-shell/ui";function Zx({style:e}){let o=t=>U("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.9,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t});switch(e){case"bold":return o(U("path",{d:"M7 5h6.5a3.5 3.5 0 0 1 0 7H7zm0 7h7.5a3.5 3.5 0 0 1 0 7H7z"}));case"italic":return o(yr(Sr,{children:[U("line",{x1:"10",y1:"5",x2:"19",y2:"5"}),U("line",{x1:"5",y1:"19",x2:"14",y2:"19"}),U("line",{x1:"14",y1:"5",x2:"10",y2:"19"})]}));case"strike":return o(yr(Sr,{children:[U("path",{d:"M16.5 6.5A4.2 4.2 0 0 0 12.7 4.7C10 4.7 8.4 6 8.4 7.9c0 1.6 1.2 2.5 3.4 3.1"}),U("path",{d:"M7.6 17.4A4.4 4.4 0 0 0 11.7 19.3c2.8 0 4.5-1.4 4.5-3.4 0-1-.4-1.8-1.2-2.4"}),U("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]}));case"highlight":return o(yr(Sr,{children:[U("path",{d:"M14.5 4.5l5 5-8 8H6.5v-5z"}),U("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]}));default:return null}}var Qx=["bold","italic","strike","highlight"],Jx=Object.fromEntries(Qx.map(e=>[e,U(Zx,{style:e},e)])),Ds="Clear formatting";function eI(e,o,t){return Kx(e,o,t,yf)}function oI(e){let[o,t]=$x(null);return qx(()=>{let a=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!a)return;let r=()=>{let n=e.current;if(!n||a.activeElement!==n)return;let l=n.selectionStart??n.value.length,f=n.selectionEnd??l;t(c=>c&&c.start===l&&c.end===f?c:{start:l,end:f})};return a.addEventListener("selectionchange",r),()=>a.removeEventListener("selectionchange",r)},[e]),[o,t]}function tI({target:e,value:o,onChange:t,disabled:a=!1,label:r="Formatting"}){let n=Vx({target:e,onChange:t}),[l,f]=oI(e),c=p=>n(I=>{let x=eI(o,p,I);return f({start:x.selectionStart,end:x.selectionEnd}),x}),u=Cf(),i={};if(l)for(let p of u)i[p.style]=Ff(o,l.start,l.end,p.style);let m=Oo(o);return U(zx,{tools:u,onApply:c,pressed:i,disabled:a,glyphs:Jx,ariaLabel:s(r),actions:U("span",{className:"sf-markup-clear",children:U(Yx,{content:s(Ds),children:U(jx,{size:"sm",onMouseDown:p=>p.preventDefault(),onClick:()=>t(m),disabled:a||m===o,"aria-label":s(Ds),children:U(Xx,{size:14})})})})})}var Fr=tI;import{DEVICE_FIELD_MARKER as gB,DEVICE_HIDDEN_ATTR as bB,DEVICE_NOTE as CB,deviceField as ae,deviceMetaOf as Lr,deviceNote as SB,shownTier as yB,withoutDeviceGate as FB}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as TB,NO_CONTROL_FIELD as EB,noControlField as vr,NoControlMark as At,noControlMetaOf as OB}from"efficient-easel/screen/lib/puck/panel-no-control-mark";function Do(e){return`${e}Phone`}function Rt(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}import{jsx as Tr,Fragment as lI}from"react/jsx-runtime";import{createContext as fI,useContext as sI}from"react";var Ms={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Ns={Events:["posts"],SubscribeBlogs:["posts"]};var aI=["anchor"],rI=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Mo(e){return aI.includes(e)||rI.test(e)}var nI={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},BrandStrip:{picks:{verb:"reference"}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};nI.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var kB=Object.fromEntries(Object.entries(Ms).map(([e,o])=>[e,Object.keys(o)])),wB=Object.fromEntries(Object.entries(Ns).map(([e,o])=>[e,[...o]]));var Hs=fI(!1);function GB({children:e}){return Tr(Hs.Provider,{value:!0,children:e})}function cI(){return sI(Hs)}function Gs({name:e,children:o}){return!cI()||!e||Mo(e)?Tr(lI,{children:o}):Tr(At,{})}function z(e,o,t){return e.some(a=>(typeof a=="object"?a.value:a)===t)?t:o}var Er="off",Or="none",Br=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],Pr=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function $B(e){return z(Br,Er,e)}function zB(e){return z(Pr,Or,e)}var Us="sf-card-index",No="sf-card-index",KB="pointer-events-none absolute left-[18px] top-[18px] z-10 border border-line bg-bg/70 px-2 py-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.16em] text-fg-dim",dI={plain:`counter(${No})`,padded:`counter(${No}, decimal-leading-zero)`,numero:`"N\xB0" counter(${No}, decimal-leading-zero)`};function VB(e,o){return o==="off"?"":`.${e}{counter-reset:${No}}.${e} .${Us}{counter-increment:${No}}.${e} .${Us}::before{content:${dI[o]}}`}function XB(e){return e==="hairline"?"border border-line hover:border-accent":""}var Ws=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as Ge,TEXT_CONTROL_KINDS as uI}from"efficient-easel/screen/lib/puck/text-control-kinds";import{jsx as Ar}from"react/jsx-runtime";import{useState as xI}from"react";import{Button as II,ImageFocusPoint as hI}from"efficient-shell/ui";import{jsx as j,jsxs as qs}from"react/jsx-runtime";import{ChevronIcon as iI}from"efficient-easel/icons";import{Tooltip as pI}from"efficient-shell/ui";function $s({styleKey:e,label:o,icon:t,value:a,sampleStyle:r,open:n,onToggle:l,saved:f=!1,children:c}){return qs("div",{"data-sf-style-row":e,className:`sf-style-row${n?" is-open":""}`,children:[qs("button",{type:"button",className:"sf-style-head","aria-expanded":n,onClick:l,children:[j("span",{className:"sf-style-caret","aria-hidden":"true",children:j(iI,{size:13})}),t?j("span",{className:"es-field-icon",children:t}):null,j("span",{className:"sf-style-name",children:s(o)}),a!=null?typeof a=="string"?j(pI,{content:a,className:"sf-style-sample-tip",children:j("span",{className:"sf-style-sample",style:r,children:a})}):j("span",{className:"sf-style-sample",style:r,children:a}):null,j("span",{className:`sf-style-slot${f?" is-saved":""}`,children:j(mI,{})})]}),n&&j("div",{className:"sf-style-body",children:c})]})}function mI(){return j("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:j("polyline",{points:"20 6 9 17 4 12"})})}function zs({label:e,value:o,onChange:t,image:a}){let[r,n]=xI(!1);return Ar($s,{styleKey:"imageFocal",label:e,value:o,sampleStyle:{fontSize:11,fontVariantNumeric:"tabular-nums"},open:r,onToggle:()=>n(l=>!l),children:r?Ar(hI,{label:s(e),value:o,onChange:t,image:a,emptyText:s("Choose a background image first \u2014 there\u2019s nothing to focus yet."),actions:Ar(II,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:s("Done")})}):null})}import{jsx as Y,jsxs as gI}from"react/jsx-runtime";import{SettingsField as Ks}from"efficient-easel/panel";import{ImageIcon as Vs,PlayIcon as Xs}from"efficient-easel/icons";import{ImageBox as bI}from"efficient-easel/pick";import{useEaselStrings as CI}from"efficient-easel/strings";import{useContext as SI,useState as js}from"react";import{FileIntakeAlert as yI,useFileIntake as FI}from"efficient-shell/file-intake";import{requestMediaPick as Rr,resolveMediaPick as u0}from"efficient-easel/screen/lib/media-picker";function Ys({value:e,onChange:o,label:t,accept:a,placeholder:r}){let n=Tl(),l=Ye(),f=CI(),c=s(t),[u,i]=js(!1),[m,p]=js(null),I=a.startsWith("video"),x=SI(Lt),h=FI({accept:a,maxSizeBytes:De(l).media.maxUploadBytes,acceptHint:I?s("videos only"):s("images only"),multiple:!1,disabled:u,onAccept:([O])=>{p(null),i(!0),Rr(n,{accept:a,title:c,file:O}).then(b=>{b&&o(b.url)}).catch(()=>p(s("Couldn\u2019t open the media picker \u2014 please try again."))).finally(()=>i(!1))}}),S=()=>(h.clearRejections(),p(null),Rr(n,{accept:a,title:c}).then(O=>O?.url??null));return x&&!x.capabilities.mediaEditing?Y(Ks,{label:c,icon:I?Y(Xs,{}):Y(Vs,{}),children:Y("div",{className:"sf-image-slot-inert",children:I?s("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):s("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})}):gI("div",{children:[Y(Ks,{label:c,icon:I?Y(Xs,{}):Y(Vs,{}),children:Y("div",{className:`sf-image-drop${h.dragOver?" is-dragover":""}`,...h.zoneProps,children:Y(bI,{value:e,onChange:o,label:c,kind:I?"video":"image",placeholder:r===void 0?void 0:s(r),openLibrary:u?void 0:S,words:f.pick.image})})}),u&&Y("div",{className:"sf-image-status",role:"status",children:s("Opening the picker\u2026")}),m&&Y("div",{className:"sf-image-status sf-image-status--error",role:"alert",children:m}),Y(yI,{rejections:h.rejections,className:"sf-image-status sf-image-status--error"})]})}import{jsx as Zs}from"react/jsx-runtime";import{useId as LI}from"react";import{FieldSelect as vI}from"efficient-easel/fields";import{SettingsField as TI}from"efficient-easel/panel";function EI(e){return e.map(({value:o,label:t,note:a})=>({value:o,label:t,...a?{meta:a}:{}}))}function Qs({label:e,options:o,value:t,onChange:a,emptyLabel:r,icon:n,hint:l}){let f=LI(),c=`${f}-label`,u=`${f}-button`,i=Array.isArray(t)?t:[];return Zs(TI,{label:s(e),labelId:c,icon:n,hint:l,children:Zs(vI,{id:u,multiple:!0,value:i,options:EI(o),onChange:a,placeholder:r===void 0?s("None"):s(r),ariaLabelledBy:`${c} ${u}`,inline:!0})})}import{jsx as Js}from"react/jsx-runtime";import{useId as OI}from"react";import{FieldSelect as BI}from"efficient-easel/fields";import{SettingsField as PI}from"efficient-easel/panel";function AI(e){return e.map(({value:o,label:t,group:a,thumb:r,meta:n})=>({value:o,label:t,...a!==void 0?{group:a}:{},...r!==void 0?{thumb:r}:{},...n!==void 0?{meta:n}:{}}))}function RI({label:e,options:o,fallback:t,value:a,onChange:r,placeholder:n,bare:l=!1,icon:f}){let c=OI(),u=`${c}-label`,i=`${c}-button`,m=a??"",p=o.some(S=>S.value===m)?m:t,I=s(e),x=n===void 0?void 0:s(n),h=Js(BI,{id:i,value:p,options:AI(o),onChange:r,placeholder:x,searchPlaceholder:x,...l?{ariaLabel:I}:{ariaLabelledBy:`${u} ${i}`},searchable:!0,groupCount:!0,inline:!0});return l?h:Js(PI,{label:I,labelId:u,icon:f,children:h})}import{default as Ho}from"efficient-easel/screen/components/UiIcon";var re={min:10,max:200,step:10};function ec(e,o){let t=typeof e=="number"?e:void 0,a=typeof o=="number"?o:void 0;if(!(t===void 0&&a===void 0))return{paddingTop:t,paddingBottom:a}}var kI="sf-pad-top-phone",wI="sf-pad-bottom-phone",_I="--sf-pad-t-phone",DI="--sf-pad-b-phone",MI="sf-pad-left-phone",NI="sf-pad-right-phone",HI="--sf-pad-l-phone",GI="--sf-pad-r-phone";function U0(e,o,t,a,r,n,l,f){let c=ec(e,o)??{},u={},i=["sf-section-pad"];typeof t=="number"&&(i.push(kI),u[_I]=`${t}px`),typeof a=="number"&&(i.push(wI),u[DI]=`${a}px`);let m={};return typeof r=="number"&&(m.paddingLeft=r),typeof n=="number"&&(m.paddingRight=n),typeof l=="number"&&(i.push(MI),u[HI]=`${l}px`),typeof f=="number"&&(i.push(NI),u[GI]=`${f}px`),i.length===1&&ec(e,o)===void 0&&!Object.keys(m).length?null:{className:i.join(" "),style:{...c,...m,...u}}}var oc=e=>typeof e=="number"?e:void 0;function tc(e,o,t){let a=oc(e)??t,r=oc(o);return a===void 0?r:r===void 0?a:a+r}function W0(e,o={}){return{top:tc(e.padTop,e.sectionPaddingTop,o.top),bottom:tc(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var UI=["auto","fixed","screen"],WI=["px","%"];var qI="var(--sf-header-h, 88px)",kr={min:40,max:2e3,step:10,fallback:600},wr={min:10,max:200,step:5,fallback:100},$I="sf-section-minh",ac={base:"--sf-section-minh",small:"--sf-section-minh-s"},nc=e=>typeof e=="string"&&UI.includes(e),zI=e=>typeof e=="string"&&WI.includes(e);function kt(e){let o=nc(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":zI(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=o==="screen"?wr.fallback:kr.fallback,r=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:o,value:r,unit:t}}function lc(e){let{mode:o,value:t,unit:a}=kt(e);if(o==="auto")return;if(o==="fixed"&&a==="px")return[`${t}px`,null];let r=t/100,n=l=>o==="screen"?`(100${l} - ${qI})`:`100${l}`;return[`calc(${n("vh")} * ${r})`,`calc(${n("svh")} * ${r})`]}function KI(e){let o=lc(e);if(!o)return;let[t,a]=o;return{display:"grid",[ac.base]:t,...a?{[ac.small]:a}:{}}}var $0=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ao="Height",VI="sf-section-minh-phone",rc={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function _r(e){return nc(e.sectionHeightModePhone)}function z0(e){return kt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function XI(e){let o=KI(e),t=_r(e)?lc({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let a=[$I],r={...o??{}};return t&&(a.push(VI),r[rc.base]=t[0],t[1]&&(r[rc.small]=t[1])),{className:a.join(" "),style:r}}function K0(e){return XI(e)!==null}var Dr=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],cc=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Stretch",value:"stretch"}],dc="Wrap",Mr=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],fc={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},sc={start:"items-start",center:"items-center",stretch:"items-stretch"};function X0(e,o){let t=typeof e=="string"&&e in fc?fc[e]:"",a=typeof o=="string"&&o in sc?sc[o]:"";return[t,a].filter(Boolean).join(" ")}function j0(e){return e===!0||e==="wrap"?"flex-wrap":""}var Nr="Block widths",wt=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]}],Go="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",jI={equal:Go,bigLeft:`${Go} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${Go} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${Go} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${Go} [&>*:last-child]:min-[800px]:grow-[3]`};function Y0(e){return typeof e=="string"?jI[e]??"":""}var uc="Columns on phone",Hr=1,ic=3,YI={2:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]",3:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]"};function Z0(e){let o=Number(e);return YI[o]??"max-[800px]:flex-col"}var pc="Block spacing",Gr=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],ZI="sf-box-gap-only";function Q0(e){return e==="gap"?ZI:""}var mc=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],xc={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},_t="var(--section-bg)",Dt="inherit";function eP(e,o){return e===Dt?_t:e===void 0?o:Mt(e)}var QI=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Mt(e){return e.replace(QI,"var(--site-$1")}function Ic(e,o){return e===Dt?!0:e===void 0&&o===_t}var hc=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],gc={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},ro="var(--wheel-stage)",Nt="transparent",Uo="inherit";function aP(e,o){return Mt(Ur(e,o))}function Ur(e,o){return e===Uo?ro:e==null?o:e===!0?ro:e===!1?Nt:e}function rP(e){return typeof e=="string"&&e!==Uo?Mt(e):ro}function nP(e){return e!==Nt&&e!=="none"&&e!==""}function bc(e,o){return e===Uo||e===!0?!0:e==null?o===ro:!1}var Cc="inherit",Ht="fixed",Sc=e=>typeof e!="number"&&e!==Ht,JI="var(--sf-heading-max, 9999px)";function fP(e,o,t,a){if(typeof e=="number")return`${e}px`;if(e===Ht)return o;let r=a?`var(--size-${a}, ${o})`:o;return t==="heading"?`min(${r}, ${JI})`:r}var eh=["contained","page","full"],yc=["full","page"],Fc={full:"Full width",page:"Content width"},Wr="inherit",oh=e=>typeof e=="string"&&eh.includes(e),th=e=>e===Wr;function qr(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:te.default;return th(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:oh(e.widthMode)?{mode:e.widthMode,pageWidth:t,inherited:!1}:e.contained===!0?{mode:"page",pageWidth:t,inherited:!1}:typeof e.fullWidth=="boolean"?{mode:e.fullWidth?"full":"page",pageWidth:t,inherited:!1}:e.contained===!1?{mode:"full",pageWidth:t,inherited:!1}:{mode:o,pageWidth:t,inherited:o==="full"}}function $r(e){return qr(e,"page").mode==="full"}import{jsx as ah}from"react/jsx-runtime";import{createContext as rh,useContext as nh}from"react";var lh=2,fh=lh+1,Lc=rh(2);function pP({tier:e,children:o}){return ah(Lc.Provider,{value:e,children:o})}function zr(e){let o=nh(Lc);return fh+Math.max(0,e-o)}import{withStyleKind as jh}from"efficient-easel/style-clipboard";function Wo(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!ce(t)&&jh(t,`section:${o}`);return e}function Nc(){return null}function Yh(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return d(Nc,{},e)}function Zh(e){return e.type===Nc}function co(e){return Zh(e)?void 0:e}function lo(e,o){return s("{value} from {from}",{value:e,from:o})}function Qh(){let{appState:e}=so(r=>r),o=e.data.root?.props??{},{mode:t,pageWidth:a}=qr(o,"full");return t==="page"?lo(`${a}px`,s("the page")):t==="contained"?lo(s("Contained"),s("the page")):lo(s("Full"),s("the page"))}function Jh(){let{blockGap:e}=Ie();return e===null?s("this container's own spacing"):lo(`${e}px`,s("Site styles"))}function eg({inherited:e,onReset:o,label:t}){return d(ne,{words:X()?.panel,label:s(t),changed:!e,detail:Jh(),onReset:o})}function og({inherited:e,onReset:o,label:t}){return d(ne,{words:X()?.panel,label:s(t),changed:!e,detail:Qh(),onReset:o})}function uo({value:e,onChange:o,label:t,placeholder:a,hint:r,multiline:n,hideable:l=!0,markup:f=!0}){let{text:c,hidden:u}=Ae(e),i=Vr(null),m=Vr(null),p=b=>o(l?{text:b,hidden:u}:b),I=()=>o({text:c,hidden:!u}),x=l&&u,h=ch(),S=r?lg(r)?d("span",{className:"sf-hint-keep sf-hint-while-typing",children:s(r)}):d(ks,{children:s(r)}):void 0,O=u?s("Show {label} on the slide",{label:s(t)}):s("Hide {label} on the slide",{label:s(t)});return d(k,{label:s(t),icon:d(_h,{}),htmlFor:h,className:x?"is-hidden":void 0,hint:S,action:l?d(Ut,{content:O,children:d("button",{type:"button",className:"sf-field-eye","aria-pressed":u,"aria-label":O,onClick:I,children:u?d(Ho,{name:"eye-off",size:14}):d(Ho,{name:"eye",size:14})})}):void 0,children:fo("div",{className:"sf-copybox",children:[f&&d(Fr,{target:n?m:i,value:c,onChange:p}),n?d("textarea",{id:h,ref:m,value:c,placeholder:a===void 0?void 0:s(a),onChange:b=>p(b.target.value)}):d("input",{id:h,ref:i,type:"text",value:c,placeholder:a===void 0?void 0:s(a),onChange:b=>p(b.target.value)})]})})}function mA(e,o){return{...e,[wo]:o}}function xA(e){let o=e[M];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[M]:{...o,offPage:!0}}}function IA(e){return!e||typeof e!="object"?!1:e[M]?.offPage===!0}function hA(e){let o=e[M];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[M]:{...o,identifier:!0}}}var tg=new Set(Ge),io=(e,o)=>{let t={...o,[M]:e};if(!tg.has(e.control))return t;let a=o.render;return{...vr(t,"authored-copy"),render:r=>d(Gs,{name:r.name,children:a(r)})}},bA="Everything else on this block comes from the linked post. Unlink it to edit by hand.",ag="Select a word, then press the highlighter.",rg="A short name so a link can jump straight to this section, like yoursite.com/page#about.",ng=new Set([ag]),lg=e=>ng.has(e);function CA(e,o,t){return io({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t})})}function SA(e,o,t){return io({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0})})}function fg(e,o,t){return io({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function yA(e,o,t){return io({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1})})}function FA(e){return{type:"custom",[ko]:{label:e},render:({value:o,onChange:t})=>d(ds,{value:Is(o),onChange:t,label:e})}}function LA(e,o,t){return io({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var vA={Design:uh,Animation:Bc};function TA(e,o){return e.includes("Design")?o!=="Design":null}function sg({label:e}){return d(Nh,{title:s(e),level:zr(1)})}function cg({level:e,label:o}){return e===1?d(sg,{label:o}):d(ig,{label:o})}function Hc(e,o){return{type:"custom",[Ot]:{label:e,level:o},render:()=>d(cg,{level:o,label:e})}}function K(e){return Hc(e,2)}function EA(e){return{type:"custom",render:()=>d(dg,{text:e})}}function dg({text:e}){return d("p",{className:"sf-note",children:s(e)})}function OA(e){return Hc(e,1)}function BA(e){return ce(e)!==null&&e?.tabs!==void 0}var vc=new Map;function Wt(e,o){let t=`${e}\0${o?o.join(""):""}`,a=vc.get(t)??{type:"custom",tabs:o,[Ot]:{label:e,level:1},bucket:e,marker:!0,render:()=>d(we,{})};return vc.set(t,a),a}var Tc=new Map;function Xr(e){let o=Tc.get(e)??{type:"custom",[Ot]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>d(we,{})};return Tc.set(e,o),o}function ug(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function Gc(e,o){return ug(e)===o?e:{...e,marker:!0,fold:o,render:()=>d(we,{})}}function Uc(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...a}=e;return{...a,marker:!0,render:()=>d(we,{})}}function ig({label:e}){return d(Hh,{title:s(e),level:zr(2)})}function Wc({swatches:e,current:o,onPick:t,names:a}){let r=e.find(f=>f.toLowerCase()===o.toLowerCase()),n=r?a?.[r]:void 0,l=n?s(n):o;return fo("div",{className:"sf-swatches",children:[e.map(f=>{let c=a?.[f]?s(a[f]):f;return d(Ut,{content:c,children:d("button",{type:"button","aria-pressed":o.toLowerCase()===f.toLowerCase(),className:`sf-swatch ${o.toLowerCase()===f.toLowerCase()?"is-active":""}`,style:{background:f},onClick:()=>t(f),"aria-label":c})},f)}),d("span",{className:"sf-swatch-hex",children:l})]})}function PA(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=Ic(t,o);return d(k,{label:s(e),icon:d(mh,{}),changed:!r,action:d(ne,{words:X()?.panel,label:s(e),changed:!r,detail:s("the theme's section background"),onReset:()=>a(Dt)}),children:Wc({swatches:mc,current:r?_t:t??o??"",onPick:a,names:xc})})}}}function pg(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=t,n=bc(r,o);return d(k,{label:s(e),icon:d(Th,{}),changed:!n,action:d(ne,{words:X()?.panel,label:s(e),changed:!n,detail:s("the theme's image stage"),onReset:()=>a(Uo)}),children:Wc({swatches:hc,current:n?ro:Ur(r,o),onPick:a,names:gc})})}}}function qt(e=t=>t,o){return Wo({_gSectionTheme:K(Df),sectionAccent:{type:"custom",render:({value:t,onChange:a})=>d(ts,{value:e(t),onChange:a,followLabel:o})}})}function qo({min:e,max:o,step:t,value:a,onChange:r,suffix:n="",readout:l=!0,notch:f,ariaLabel:c,disabled:u=!1}){let i=f!==void 0&&Number.isFinite(f)&&f>=e&&f<=o;return d("div",{className:i?"sf-slider has-notch":"sf-slider",style:i?{"--sf-notch":(f-e)/(o-e)}:void 0,children:d(Xh,{min:e,max:o,step:t,value:a,suffix:n||void 0,showInput:l,label:c===void 0?void 0:s(c),disabled:u,size:"sm",className:"sf-slider-track",onChange:m=>{m!==null&&m!==a&&r(m)}})})}function no(e,o,t,a,r,n,l="",f){return{type:"custom",render:c=>d(k,{label:s(e),icon:co(o),action:f?f("storedValue"in c?c.storedValue:c.value,c.onChange):void 0,children:qo({min:t,max:a,step:r,value:typeof c.value=="number"?c.value:n,suffix:l,ariaLabel:e,onChange:c.onChange})})}}function qc(e,o){let{min:t,max:a,step:r=1,unsetLabel:n,hint:l,restTrack:f,unsetMark:c,icon:u}=o;return{type:"custom",render:({value:i,onChange:m})=>{let p=typeof i=="number"?i:null,I=p===null;return d(k,{label:s(e),icon:u?co(u):void 0,value:I?c||n===void 0?void 0:s(n):`${p}px`,changed:!I,action:c?Ec(c,{changed:!I,onReset:()=>m(null)}):d(ne,{words:X()?.panel,label:s(e),changed:!I,onReset:()=>m(null)}),hint:typeof l=="string"?s(l):l,children:f?f({min:t,max:a,step:r,px:p,label:e,onChange:m}):qo({min:t,max:a,step:r,value:p??t,readout:!1,ariaLabel:e,onChange:m})})}}}function AA(e){let o=no("Gap",d(Ac,{}),Pe.min,Pe.max,Pe.step,Et[e],"px",(t,a)=>d(eg,{inherited:!ir(e,t),onReset:()=>a(void 0),label:"Gap"}));return{type:"custom",[ps]:e,render:t=>o.render({...t,value:ur(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:a=>t.onChange(a)})}}var $t="Corners";function jr(e){return{type:"custom",render:({value:o,onChange:t})=>{let a=typeof o=="number"&&Number.isFinite(o)?o:null,r=a!==null;return d(k,{label:s($t),icon:d(gh,{}),changed:r,action:Ec(e.mark,{changed:r,onReset:()=>t(null)}),hint:e.hint,children:d(xg,{tier:e,px:a,onRadius:t})})}}}function mg(e){let o=null;try{o=dh()}catch{o=null}return[o?.values?.[e],t=>o?.onChange(e,t)]}function xg({tier:e,px:o,onRadius:t}){let a=e.useFollowed(),r=e.useClosedReason?e.useClosedReason():null,[n,l]=mg(e.sidesKey),f=de(n)??[...Re];return d(zh,{className:"sf-corners",label:s($t),value:f,corners:mr,onChange:c=>{let u=de(c)??[];l(u.length===Re.length?null:u)},radius:o,onRadiusChange:t,radiusMin:xe,radiusMax:Lo,radiusStep:e.step??1,radiusPlaceholder:String(a),disabled:r!==null,disabledReason:r??void 0})}function $c(){return vr({type:"custom",render:()=>d(At,{})},"always")}function Ig({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:a}=Ie(),r=typeof a=="number"?`${a}px`:s("not set");return d(ne,{words:X()?.panel,label:s(e),changed:o,detail:a==null?s("the built-in corners"):lo(r,s("Site styles")),onReset:t})}function hg(){let{cornerRadiusPx:e}=Ie();return typeof e=="number"?e:xe}function gg(){return jr({sidesKey:"sectionCornerSides",useFollowed:hg,useClosedReason:()=>Kc()?s(zc):null,mark:d(Ig,{label:$t}),hint:d(bg,{})})}var zc="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Kc(){return $r(Vt())}function bg(){return d(we,{children:Kc()?zc:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function zt(){return Wo({_gShape:K("Shape"),sectionCorners:gg(),sectionCornerSides:$c()})}function Kt(){return{_gMotion:K("Motion"),sectionAnimation:Qr("Entrance",d(Bc,{}),[...ws],gr)}}function Yr(){let e=null;try{let{appState:o,selectedItem:t}=so(r=>r),a=t?.props?.id?String(t.props.id):void 0;e=a?Cr(o?.data,a):null}catch{e=null}return e!==null&&$r(e)}function Vc(e){let{cornerRadiusPx:o}=Ie(),t=Yr(),a=typeof o=="number"?o:e,r=null;try{let{appState:l,selectedItem:f}=so(u=>u),c=f?.props?.id?String(f.props.id):void 0;r=c?Cr(l?.data,c):null}catch{r=null}if(t||!r)return a;let n=r.sectionCorners;return pr(n)?n:a}function Cg({label:e,changed:o=!1,onReset:t=()=>{}}){let a=Yr(),r=Vc(xe),n=a?"Site":"Section";return d(ne,{words:X()?.panel,label:s(e),changed:o,detail:lo(`${r}px`,a?s("Site styles"):s("the section")),onReset:t})}function Sg(){return d(we,{children:Yr()?s("The section is full width, so this card follows Site styles \u25B8 Basics \u25B8 Corners."):s("Follows the section's Corners until you set a number here.")})}function yg(){return jr({sidesKey:"cardCornerSides",useFollowed:()=>Vc(xe),mark:d(Cg,{label:$t}),hint:d(Sg,{})})}function Fg(){return{type:"custom",render:()=>d(vs,{})}}function RA(){return{_gShape:K("Shape"),cardCorners:yg(),cardCornerSides:$c(),cardCornersApplyAll:Fg()}}function kA(){return ke("Justify",d(ph,{}),Dr,Dr[0].value)}function wA(){return ke("Item alignment",d(ih,{}),cc,"stretch")}function _A(){return ke(dc,d(Mh,{}),Mr,Mr[0].value)}function DA(){return{type:"custom",render:({value:e,onChange:o})=>{let t=wt.find(a=>a.value===e)??wt[0];return d(k,{label:s(Nr),icon:d(Pc,{}),value:s(t.label),children:d("div",{className:"sf-gallery-layouts",role:"group","aria-label":s(Nr),children:wt.map(a=>d(Ut,{content:s(a.label),className:"sf-tile-tip",children:d("button",{type:"button","aria-pressed":t.value===a.value,"aria-label":s(a.label),onClick:()=>o(a.value),children:d("span",{className:"sf-gallery-pic",children:Lg(a.weights).map((r,n)=>d("i",{style:{gridColumn:`span ${r}`}},n))})})},a.value))})})}}}function Lg(e){if(!e)return[3,4];let o=e.reduce((t,a)=>t+a,0);return e.map(t=>Math.round(t/o*12))}function MA(){return ke(pc,d(Ac,{}),Gr,Gr[0].value)}function NA(){return no(uc,d(Ph,{}),Hr,ic,1,Hr)}function HA(e){let o=Qr(Nf,Yh("`Direction` names how a container's children run \u2014 a MODIFIER, not a thing. doc/naming.md N10.1 gives the idea a dash in its Glyph column; editor-shell's own `direction` meaning says the bare row is CORRECT and not an omission (SS seat, 2026-09-11)."),Gf(e),Ft(e,void 0));return{type:"custom",render:t=>o.render({...t,value:Ft(e,t.value),onChange:a=>t.onChange(a)})}}function GA(e,o,t,a,r,n){return{type:"custom",render:({value:l,onChange:f})=>d(k,{label:s(e),icon:d(fr,{noun:n}),action:d(ne,{words:X()?.panel,label:s(e),changed:!Sc(l),detail:s("the Text style in Site styles"),onReset:()=>f(Cc),defaultAction:{onPress:()=>f(Ht),title:s("Keep this section's own built-in size"),icon:d(xh,{})}}),children:qo({min:o,max:t,step:a,value:typeof l=="number"?l:r,suffix:"px",ariaLabel:e,onChange:f})})}}function UA(){return{_gCellWidth:K("Cell width"),gridSpan:ke("Positions",d(Pc,{}),[{label:"Auto",value:""},...Array.from({length:Pt},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function Vt(){let e=null;try{e=so(o=>o).selectedItem}catch{e=null}return e?.props??{}}function vg({min:e,max:o,step:t,px:a,label:r,onChange:n,desktopKey:l,fallback:f}){let c=Vt()[l],u=Rt(void 0,c,f);return d(we,{children:qo({min:e,max:o,step:t,value:Rt(a,c,f),readout:!1,ariaLabel:r,notch:u,onChange:n})})}function Tg({label:e,desktopKey:o,fallback:t,changed:a=!1,onReset:r=()=>{}}){let n=Vt()[o],l=Rt(void 0,n,t);return d(ne,{words:X()?.panel,label:s(e),changed:a,detail:s("{value} on desktop",{value:`${l}px`}),onReset:r})}function Eg(e){return qc(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unsetLabel:"Follows Desktop",unsetMark:d(Tg,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>d(vg,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var Og={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},Bg={Top:Dc,Bottom:kc,Left:wc,Right:_c},Pg=e=>{let o=Bg[e];return d(o,{})};function Xt(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",a=e.group!==!1,r=S=>Og[S],n=S=>no(r("Top"),d(Dc,{}),re.min,re.max,re.step,S,"px"),l=(S,O,b,y=re)=>ae("mobile",Eg({label:r(S),icon:Pg(S),desktopKey:O,min:y.min,max:y.max,step:y.step,fallback:b})),f=e.top??re.min,c=e.bottom??re.min,u="sectionPaddingLeft",i="sectionPaddingRight",m=e.sideBounds??re,p=e.side??m.min,I=e.sidePhone??p,x=e.phone===!0,h=S=>x?ae("desktop",S):S;return Wo({...a?{_gSpacing:K("Padding")}:{},[o]:h(n(f)),...x?{[Do(o)]:l("Top",o,f)}:{},...e.only==="top"?{}:{[t]:h(no(r("Bottom"),d(kc,{}),re.min,re.max,re.step,c,"px")),...x?{[Do(t)]:l("Bottom",t,c)}:{}},...e.sides?{[u]:h(no(r("Left"),d(wc,{}),m.min,m.max,m.step,p,"px")),...x?{[Do(u)]:l("Left",u,I,m)}:{},[i]:h(no(r("Right"),d(_c,{}),m.min,m.max,m.step,p,"px")),...x?{[Do(i)]:l("Right",i,I,m)}:{}}:{}})}var Ag={contained:"Contained",page:"Page",full:"Full"},Gt="Width";function jt(e,o=yc,t=!0){let a=o.map(r=>({label:Fc[r]??Ag[r],value:r}));return Wo({...t?{_gWidth:K(Gt)}:{},widthMode:{type:"custom",render:({onChange:r,field:n})=>d(k,{label:s(Gt),icon:d(Dh,{}),action:t?d(og,{inherited:n?.inherited??!1,onReset:()=>r(Wr),label:Gt}):void 0,children:Zr({options:a,value:n?.currentValue||e,onChange:r,ariaLabel:Gt})})}})}function Yt(){let e=a=>({type:"custom",render:({value:r,onChange:n})=>d(k,{label:ao,icon:co(d(Eh,{})),action:a?a(n):void 0,children:Zr({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(r)?r:"auto",onChange:n,ariaLabel:ao})})}),o=()=>({type:"custom",render:({value:a,onChange:r,field:n})=>{let l=n?.unit==="%"?"%":"px",f=l==="%"?wr:kr;return d("div",{className:"sf-field",children:qo({min:f.min,max:f.max,step:f.step,value:typeof a=="number"?a:f.fallback,suffix:l,ariaLabel:ao,onChange:r})})}}),t=()=>Qr("Unit",d(Rc,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return Wo({_gHeight:K(ao),sectionHeightMode:ae("desktop",e()),sectionHeightValue:ae("desktop",o()),sectionHeightUnit:ae("desktop",t()),sectionHeightModePhone:ae("mobile",e(a=>d(Rg,{onClear:()=>a(void 0)}))),sectionHeightValuePhone:ae("mobile",o()),sectionHeightUnitPhone:ae("mobile",t())})}function Rg({onClear:e}){let o=Vt(),t=_r(o),a=kt(o),r=s("{value} on desktop",{value:a.mode==="auto"?s("Auto"):`${a.value}${a.unit}`});return d(ne,{words:X()?.panel,label:s(ao),changed:t,detail:r,onReset:e})}function Zt(){return{_gAnchor:K("Anchor"),anchor:fg("Anchor name","e.g. about",rg)}}function WA(e,o,t){return{type:"custom",render:({value:a,onChange:r,id:n,name:l})=>{let f=`${n??l??e}-datetime`,c=Date.parse(typeof a=="string"?a:"");return d(k,{label:s(e),icon:o,htmlFor:f,hint:t===void 0?void 0:s(t),children:d(Kh,{id:f,value:Number.isFinite(c)?new Date(c):null,onChange:u=>r(u?u.toISOString():"")})})}}}function Ue(e,o,t){return{type:"custom",render:({value:a,onChange:r,id:n,name:l})=>{let f=typeof a=="boolean"?a:o,c=`${n??l??e}-label`;return d(k,{label:s(e),labelId:c,icon:t,action:d(Uh,{checked:f,onChange:r,ariaLabelledBy:c})})}}}function qA(){return{type:"custom",render:({value:e,onChange:o,id:t,name:a})=>{let r=`${String(t??a??"pageBackground")}-colour`;return d(k,{label:s("Background"),icon:d(Mc,{}),htmlFor:r,action:d(he,{id:r,label:"Background",value:sr(e),onChange:o})})}}}function $A(e,o){return{type:"custom",render:({value:t,onChange:a})=>d(k,{label:s(e),action:he({value:t||o,onChange:a,label:e})})}}var kg=[{value:"0% 0%",label:"Top left"},{value:"50% 0%",label:"Top"},{value:"100% 0%",label:"Top right"},{value:"0% 50%",label:"Left"},{value:"50% 50%",label:"Center"},{value:"100% 50%",label:"Right"},{value:"0% 100%",label:"Bottom left"},{value:"50% 100%",label:"Bottom"},{value:"100% 100%",label:"Bottom right"}];function Xc({label:e,value:o,onChange:t,points:a=kg}){let r=a.map(n=>({...n,label:s(n.label),...n.title?{title:s(n.title)}:null}));return d($h,{label:s(e),value:o,points:r,onChange:t})}function zA(e,o=Vh,t="mediaImage"){return{type:"custom",render:({value:a,onChange:r})=>d("div",{className:"sf-focal-row",children:d(wg,{label:e,value:a||o,onChange:r,imageProp:t})})}}function wg({label:e,value:o,onChange:t,imageProp:a}){let{selectedItem:r}=so(l=>l),n=r?.props?.[a];return d(zs,{label:e,value:o,onChange:t,image:typeof n=="string"?n:void 0})}var _g=ka([]);function KA(e,{stacking:o,fallback:t=pt}){return{type:"custom",render:({value:a,onChange:r})=>{let n=oe.includes(a)?a:t;return o?d(Dg,{label:e,value:n,onChange:r}):jc({label:e,value:n,onChange:r,points:_g})}}}function Dg({label:e,value:o,onChange:t}){let{appState:a,selectedItem:r}=so(f=>f),n=r?.props?.id?String(r.props.id):void 0,l=n?_a(a?.data,n):[];return jc({label:e,value:o,onChange:t,points:ka(l,n)})}function jc({label:e,value:o,onChange:t,points:a}){let r=a.find(n=>n.disabled);return d(k,{label:s(e),icon:d(Ah,{}),hint:r?.title?s(r.title):void 0,children:Xc({label:e,value:Le(o),onChange:t,points:a})})}var VA={top:d(yh,{}),right:d(Sh,{}),bottom:d(bh,{}),left:d(Ch,{})};function XA(e,o,t,a,r,n){let l=i=>o.find(m=>m.value===i),f=i=>({value:i,label:"",disabled:!0,title:a}),c=i=>{let m=o.find(I=>I.cell===i);if(!m)return f(`missing-${i}`);let p=n?.[i];return p?{value:m.value,label:m.label,icon:p}:{value:m.value,label:m.label}},u=[f("corner-top-left"),c("top"),f("corner-top-right"),c("left"),f("centre"),c("right"),f("corner-bottom-left"),c("bottom"),f("corner-bottom-right")];return{type:"custom",render:({value:i,onChange:m})=>{let p=o.some(I=>I.value===i)?i:t;return d(k,{label:s(e),icon:r,value:l(p)?.label?s(l(p).label):"",children:Xc({label:e,value:p,onChange:m,points:u})})}}}var Mg="\0note";function ke(e,o,t,a,r){return{type:"custom",options:t,fallback:a,...r?{note:r}:{},render:({value:n,onChange:l,field:f})=>{let c=f.options??t,u=f.fallback??a,i=c.some(m=>m.value===n)?n:u;return d(k,{label:s(e),icon:co(o),children:d(Wh,{value:i,ariaLabel:s(e),onChange:l,options:[...r?[{label:s(r),value:Mg,disabled:!0}]:[],...c.map(m=>({label:s(m.label),value:m.value}))]})})}}}function jA(e,o,t){return{type:"custom",options:o,render:({value:a,onChange:r,field:n})=>d(Qs,{label:e,options:(n.options??o).map(l=>({...l,label:s(l.label)})),value:Array.isArray(a)?a:[],onChange:r,...t?{emptyLabel:s(t)}:{}})}}function YA(e,o={}){return{type:"custom",render:({value:t,onChange:a})=>{let r={value:t,onChange:a,...o};return d(e,{...r})}}}function Zr({options:e,value:o,onChange:t,ariaLabel:a,disabled:r=!1}){return d(Gh,{options:e.map(n=>n.picture?{id:n.value,label:n.picture,title:s(n.title??n.label)}:{id:n.value,label:s(n.label),title:n.title===void 0?void 0:s(n.title)}),value:o,onChange:t,ariaLabel:s(a),disabled:r})}var ZA=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Qr(e,o,t,a){let r=t.map(n=>typeof n=="string"?{label:n,value:n}:n);return{type:"custom",render:({value:n,onChange:l,field:f})=>d(k,{label:s(e),icon:co(o),children:Zr({options:r,value:r.some(c=>c.value===n)?n:n||f?.currentValue||a,onChange:l,ariaLabel:e})})}}function QA(e,o,t){return{type:"custom",[hs]:!0,render:({value:a,onChange:r})=>d(Ys,{value:a||"",onChange:r,label:e,accept:o,placeholder:t})}}function JA({value:e,onChange:o,label:t}){let a=e||{},r=!!a.pending,n=r?"var(--fg-dim, #888)":a.ok?"#1d9e75":"#d85a30",l=(f,c)=>o({...a,[f]:c===""?void 0:Number(c)});return fo(k,{label:s(t),icon:d(Kr,{}),children:[d("button",{type:"button",disabled:r,onClick:()=>o({...a,pending:!0,ok:!1,status:"Finding\u2026"}),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"8px 10px",fontSize:13,cursor:r?"default":"pointer",opacity:r?.6:1,border:"1px solid var(--border-strong, #ccc)",borderRadius:6,background:"transparent",color:"inherit"},children:r?s("Finding\u2026"):s("Find coordinates")}),a.status&&d("div",{style:{marginTop:6,fontSize:12,lineHeight:1.4,color:n},children:s(a.status)}),d("div",{style:{marginTop:6,fontSize:11,color:"var(--fg-dim, #999)"},children:s("Coordinates from OpenStreetMap")}),d("button",{type:"button",onClick:()=>o({...a,manual:!a.manual}),style:{marginTop:8,padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent, #2563eb)",cursor:"pointer",textDecoration:"underline"},children:a.manual?s("Hide manual coordinates"):s("Enter coordinates manually")}),a.manual&&fo("div",{style:{marginTop:8,display:"grid",gap:8},children:[d(k,{label:s("Latitude"),icon:d(Kr,{}),children:d("input",{type:"number",step:"any",placeholder:s("e.g. {example}",{example:"34.0990198"}),value:typeof a.lat=="number"?a.lat:"",onChange:f=>l("lat",f.target.value)})}),d(k,{label:s("Longitude"),icon:d(Kr,{}),children:d("input",{type:"number",step:"any",placeholder:s("e.g. {example}",{example:"-117.9842833"}),value:typeof a.lng=="number"?a.lng:"",onChange:f=>l("lng",f.target.value)})})]})]})}function Ng(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function Hg(e,o,t){let a=e.map(r=>({text:r?.text??""}));return o===null||o<0||o>=e.length?a:a.map((r,n)=>n===o?{text:t}:r)}function Gg(e,o,t){if(t===null||t>=o.length)return null;for(let a=0;a<t;a+=1)if(e[a]!==o[a])return null;return e[t]!==o[t]&&o.includes(e[t])||e[t]!==o[t]&&o.length!==e.length?null:t}var eR={label:"Ticker items",icon:d(Bh,{})};function oR(e,o,t,a){return{type:"custom",[M]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:a},render:({value:r,onChange:n})=>d(Ug,{label:e,icon:co(o),items:Array.isArray(r)?r:[],placeholder:t,onChange:n,markup:a==="markup"})}}function Ug({label:e,icon:o,items:t,placeholder:a,onChange:r,markup:n=!1}){let l=Vr(null),[f,c]=Oc(null),u=m=>m.map(p=>({text:p?.text??""})),i=m=>{let p=Gg(t,m,f);p===null&&(l.current=null),c(p),r(u(m))};return d(qh,{label:s(e),icon:o,noun:s("item"),items:t,onChange:i,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?d(Fr,{target:l,value:Ng(t,f),onChange:m=>r(Hg(t,f??-1,m)),disabled:f===null,label:f===null?s("Formatting \u2014 click a row first"):s("Formatting \u2014 row {n}",{n:f+1})}):void 0,renderRow:(m,p,I)=>d("input",{type:"text",className:n&&f===p?"sf-list-marking":void 0,value:m?.text??"",placeholder:s(a),"aria-label":s("{label} {n}",{label:s(e),n:p+1}),onChange:x=>I({text:x.target.value}),onFocus:x=>{l.current=x.currentTarget,c(p)}})})}function tR(e,o){let t=`${e.label} \u2014 row ${o+1}`;return io({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:s("{label} \u2014 row {n}",{label:s(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function Yc(e){return{_gCards:K("Cards"),coverIndex:ke("Cover image",d(Oh,{}),Ws,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:pg("Image background",Nt),cardImage:Wg(),spinOnHover:Ue("Rotate on hover",e?.spinDefault??!0,d(kh,{}))}}function Zc(){return{outline:ke("Card outline",d(wh,{}),Pr,Or),indexBadge:ke("Card number",d(Rc,{}),Br,Er),showBadge:Ue("Product badge",!0,d(fr,{noun:"tag"}))}}function Qc(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:K("Show on a card"),showCardPrice:Ue("Price",!0,d(Fh,{})),showCardFinishes:Ue("Finish swatches",!0,d(Lh,{})),showCardSizes:Ue("Sizes",o,d(Rh,{})),showCardBuy:Ue("Buy button",o,d(Ih,{})),showCardPage:Ue("Page button",o,d(Mc,{}))}}function Wg(){return qc("Card image",{min:xe,max:Lo,step:Ts,hint:"Rounds the picture. The card's own corner is in Site styles."})}function aR(){return jr({sidesKey:"cornerSides",step:Es,useFollowed:()=>xe,mark:d(qg,{label:Os}),hint:s("Rounds the picture. Left alone it stays square.")})}function qg({label:e,changed:o=!1,onReset:t=()=>{}}){return d(ne,{words:X()?.panel,label:s(e),changed:o,onReset:t})}function rR(){return{type:"custom",render:({value:e,onChange:o})=>d($g,{value:typeof e=="string"?e:"",onChange:o})}}function $g({value:e,onChange:o}){let[t,a]=Oc(null),r=Ir.filter(l=>t===null||ue[l].across===t),n=e&&e in ue?ue[e]:null;return fo(we,{children:[d(k,{label:s("Photos in a row"),icon:d(hh,{}),children:fo("div",{className:"sf-gallery-filter",children:[d("button",{type:"button","aria-pressed":t===null,onClick:()=>a(null),children:s("All")}),Ps.map(l=>d("button",{type:"button","aria-pressed":t===l,onClick:()=>a(l),children:l},l))]})}),d(k,{label:s("Layout"),icon:d(vh,{}),value:n?s(n.label):s("Not chosen"),hint:s("{n} of {total} layouts",{n:r.length,total:Ir.length}),children:d("div",{className:"sf-gallery-layouts",children:r.map(l=>d(Ut,{content:s(ue[l].label),className:"sf-tile-tip",children:d("button",{type:"button","aria-pressed":e===l,"aria-label":s(ue[l].label),onClick:()=>o(e===l?"":l),children:d("span",{className:"sf-gallery-pic",children:ue[l].desktop.map(([f,c],u)=>d("i",{style:{gridColumn:`span ${f}`,gridRow:`span ${c}`}},u))})})},l))})})]})}import{DESIGN_GROUPS as en,SETTINGS_BUCKETS as zg}from"efficient-easel/panel";import{BUCKET_KEY as $,DESIGN_GROUP_KEY as po}from"efficient-easel/screen/lib/puck/field-buckets";var on=zg;var Kg="Editor only \u2014 not shown live",tn={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Texture:"Design","Text style":"Design",Motion:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Controls:"Layout",Diagram:"Layout",[Kg]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Nudge:"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Height:"Size"},ed={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},od={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function Jr(e,o,t){let a=`${e}.${o}`;return od[a]??ed[a]??tn[t]}function td(e){return e==="Animation"?[$.Animation]:[$.Design,po[e]]}function Qt(...e){let o=[];for(let t of e)for(let a of Object.values(t)){let r=Lr(a),n=ce(r?r.inner:a),l=n?tn[n.label]:void 0;if(l)for(let f of td(l))o.includes(f)||o.push(f)}return o}var iR=[...Qt(Xt({phone:!0}),jt("full"),Yt(),Zt()),...Object.keys(Xt({phone:!0})),...Object.keys(jt("full")),...Object.keys(Yt()),...Object.keys(Zt())],pR=[...Qt(qt()),...Object.keys(qt())],mR=[...Qt(zt()),...Object.keys(zt())],xR=[...Qt(Kt()),...Object.keys(Kt())],Vg=Object.keys(Yc()),Xg=new Set(["cardImage","imageBackground"]),IR=[...td(Jr("ProductGrid","_gCards","Cards")??"Design"),...Vg.filter(e=>e.startsWith("_g")||Xg.has(e))],hR=Object.keys(Zc()),gR=Object.keys(Qc({bottomDefault:!0})),jg={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","EmailFormBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","BrandStrip._gContent":"duplicated the Content bucket header above it (66338)","BrandStrip._gStyle":"duplicated the Style bucket header above it (66338)","BrandStrip._gLayout":"duplicated the Layout bucket header above it (66338)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","ParagraphsA._gStyle":"duplicated the Style bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},ad={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},rd={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Xt({phone:!0}),...jt("full"),...Yt(),...Zt(),...qt(),...zt(),...Kt()};for(let o of Object.keys(rd)){let t=ce(e[o]),a=t?tn[t.label]:void 0;if(!t||t.level!==2||!a||!ad[a].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/puck/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var Yg=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),Zg=new Map([[$.Design,"Content"],[$.Animation,"Animation"],...en.map(e=>[po[e],e])]);function bR(e){let o=new Set([...Object.values($),po.Content]);for(let[t,a]of Object.entries(e))if(!o.has(t)&&ce(a)?.level===1)return 1;return 2}function Qg(e){let o=`${e}.`;return Object.keys(jg).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function Jg(e,o){let t=Lr(e),a=K(o);return t?ae(t.tier,a):a}function eb(e,o){let t=ce(o);return t?e==="Content"||e==="Animation"?Gc(o,t.label):Uc(o):o}function Jc(e){return e==="Design"?en:["Animation"]}function CR(e,o){let t=[],a=new Set(Qg(o)),r=new Set,n=!1,l=null;for(let[p,I]of Object.entries(e)){let x=ce(I);if(Yg.has(p))throw new Error(`${o}.${p}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);let h=Zg.get(p);if(h!==void 0){if(x?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${h} heading of the settings panel, but this field is ${x?`a level-${x.level} "${x.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===$.Design||p===$.Animation)&&(n=!0),t.push(l={place:h,entries:[],adopted:!0});continue}if(!x){l||t.push(l={place:"Content",entries:[]}),l.entries.push([p,I]);continue}if(a.has(p)||p in rd){let O=Jr(o,p,x.label);if(x.level!==2||!O||!ad[O].includes(x.label))throw new Error(`${o}.${p}: ${a.has(p)?"RETIRED":"INJECTED_RETIRED"} (lib/puck/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${x.level} "${x.label}" header in the ${O??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);a.has(p)&&r.add(p),t.push(l={place:O,entries:[]});continue}let S=Jr(o,p,x.label);if(!S)throw new Error(`${o}.${p}: the inspector group "${x.label}" is not classified in LABEL_GROUP (lib/puck/field-groups.ts), so there is no way to say which of ${[...en,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(l={place:S,entries:[[p,x.level===2?I:Jg(I,x.label)]]})}let f=new Set(Object.entries(e).filter(([,p])=>ce(p)).map(([p])=>p));for(let[p,I]of[["BLOCK_KEY_GROUP",od],["KEY_GROUP",ed]]){let x=Object.keys(I).filter(h=>h.startsWith(`${o}.`)).filter(h=>!f.has(h.slice(o.length+1)));if(x.length)throw new Error(`${o}: ${p} (lib/puck/field-groups.ts) lists ${JSON.stringify(x)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let c=n?[]:[...a].filter(p=>!r.has(p));if(c.length)throw new Error(`${o}: RETIRED (lib/puck/field-groups.ts) lists ${JSON.stringify(c)}, but this section has no such fold header${c.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let u=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),i=on.filter(p=>Jc(p).some(I=>u.has(I))),m={};for(let p of i){m[$[p]]=Wt(p,p===i[0]?i:null);for(let I of Jc(p)){if(!u.has(I))continue;let x=t.filter(S=>S.place===I),h=x.findIndex(S=>S.adopted);h>0&&x.unshift(...x.splice(h,1)),p==="Design"&&(m[po[I]]=Xr(I));for(let S of x)for(let[O,b]of S.entries)m[O]=eb(I,b)}}return m}function SR(e){return $.Design in e?e:{[$.Design]:Wt("Design",null),[po.Content]:Xr("Content"),...e}}function yR(e){return on.some(o=>$[o]in e)}function FR(e){let o=on.filter(a=>$[a]in e);if(o.length===0)return e;let t={...e};for(let a of o)t[$[a]]=Wt(a,a===o[0]?o:null);return t}import{jsx as ob}from"react/jsx-runtime";import{createContext as tb,useCallback as ab,useContext as rb,useState as nb}from"react";var nd={enabled:!0,title:"",subtitle:"",greeting:""},ld=tb({chat:nd,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function OR({children:e,chat:o=nd,onChatChange:t}){let[a,r]=nb(!1),n=ab(c=>t?.(c),[t]),{select:l,setSelectHandler:f}=Sl();return ob(ld.Provider,{value:{chat:o,setChat:n,selected:a,setSelected:r,select:l,setSelectHandler:f},children:e})}var BR=()=>rb(ld);import{jsx as lb}from"react/jsx-runtime";import{createContext as fb,useCallback as fd,useContext as sb,useMemo as cb,useRef as db}from"react";var ub=Object.fromEntries(yl.map(e=>[e,{value:"",error:null}])),sd=fb({links:Fl,rows:ub,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function wR({children:e,value:o}){let t=db(()=>{}),a=fd(()=>t.current(),[]),r=fd(l=>{t.current=l},[]),n=cb(()=>({...o,openPanel:a,setOpenHandler:r}),[o,a,r]);return lb(sd.Provider,{value:n,children:e})}var _R=()=>sb(sd);import{jsx as ib}from"react/jsx-runtime";import{createContext as pb,useContext as mb,useMemo as xb,useState as Ib}from"react";var cd=pb(null);function HR({children:e}){let[o,t]=Ib(null),a=xb(()=>({surface:o,setSurface:t}),[o]);return ib(cd.Provider,{value:a,children:e})}function GR(){return mb(cd)??{surface:null,setSurface:()=>{}}}var qR="Scrolling Bar",{Provider:$R,useSelection:dd}=lt("selectedHeroId");var{Provider:VR,useSelection:XR}=lt("selectedLocationPartId");function jR(e,o,t){return`${e}::${o}::${t}`}function YR(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map")return null;let a=Number(o[o.length-2]);if(!Number.isInteger(a)||a<0)return null;let r=o.slice(0,-2).join("::");return r?{nodeId:r,index:a,part:t}:null}import{createContext as hb,useContext as gb}from"react";var bb=hb(!1),JR=()=>gb(bb);import{PreviewDeviceContext as tk,usePreviewDevice as ak}from"efficient-easel/screen/components/PreviewDeviceContext";var Cb=new Set(["Hero","HeroSingle","IntroBleed"]),ud={min:56,max:140,default:88},lk={min:0,max:120,step:2,default:28},id=`var(--sf-header-h, ${ud.default}px)`,Sb="--sf-header-set-h",fk="--sf-header-h",sk=`var(${Sb}, ${ud.default}px)`,ck="sf-header-clearance",dk="sf-sticky-underheader";function yb(e){return e?.find(o=>o?.type&&o.type!==Me)??null}function pd(e){let o=yb(e)?.type;return!o||!Cb.has(o)}function uk(e){return!pd(e)}function ik(e){return!!e?.some(o=>o?.type===Me)}function pk(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Me||o?.type===xt)}var Fb=["auto","shared","own"],Lb="auto",vb="topSpace",mk="data-top-space";function Tb(e){return Fb.includes(e)?e:Lb}function Eb(e,o){let t=Tb(e?.props?.[vb]);return t==="own"?!0:t==="shared"?!1:pd(o)}function xk(e,o){return Eb(e,o)?"own":null}import{blockRuns as Ob}from"efficient-easel/screen/lib/puck/block-choice";function Ck(){return{type:Me,props:{id:To(Me)}}}var md=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterGroup",label:"Footer Box"},{type:"FooterDivider",label:"Divider"}],Bb=md.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Pb="FooterGroup",xd="blocks";function Id(e){return e===xt?md:e===Pb?Bb:null}function yk(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterGroup",{direction:"vertical",align:"start",blocks:[e("FooterText",{text:"Join our email list",size:"md",tone:"default"}),e("FooterEmailSignup",{heading:"",placeholder:"Email address",buttonLabel:"Subscribe"})]})]}function Ok(e,o=0){let t=Rb(e,o),a=t?Wa():null;return t&&a?Ab(t,a):t}function Ab(e,o){if(e.spec)return o.offers(e.spec.childType)?e:null;let t=e.choices??[],a=t.filter(r=>o.offers(r.type));return a.length===t.length?e:a.length>0?{...e,choices:a}:null}function Rb(e,o){let t=ve[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let a=sf(e,o);if(a)return{source:"container",slot:a.slot,choices:a.choices,spec:null};let r=Id(e);return r?{source:"footer",slot:xd,choices:r,spec:null}:null}import{useSyncExternalStore as kb}from"react";var an=null,rn=new Set;function Ak(e){if(an!==e){an=e;for(let o of rn)o()}}function wb(e){return rn.add(e),()=>{rn.delete(e)}}function Rk(){return kb(wb,()=>an,()=>null)}function kk(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?e.slice(0,o):null}var _b="inline",Db=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var Mb={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:"DynamicBundleOffer"},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"},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"}},Dk="SectionHeader";function Mk(e){return e in Mb}function Nb(e){return z(Db,_b,e)}var Hb=new Set(["Flex"]);function Gb(e){return!!e?.type&&Hb.has(e.type)}function Nk(e,o,t){if(!Gb(o))return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function Hk(e,o,t){if(Nb(o)!=="own-box")return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function nn(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function ln(e){let o=/^([A-Za-z0-9_$]+)\[(\d+)\]\.([A-Za-z0-9_$]+)$/u.exec(e);return o?{key:o[1],row:{index:Number(o[2]),rowKey:o[3]}}:{key:e,row:null}}import{decodePartId as $o,encodePartId as Ub,PART_SEP as qk}from"efficient-easel/screen/lib/puck/part-id";var Wb=Ge,qb=["text","textarea"],$b=["textarea","plainTextarea"];function zb(e){return!e||typeof e!="object"?null:e[M]?.control??null}function hd(e){let o=zb(e);return o&&Wb.includes(o)?o:null}function Xk(e){return $b.includes(e)}function jk(e){return!e||typeof e!="object"?void 0:e[M]?.placeholder}function Jt(e){return Ae(e).text}function fn(e,o,t){return qb.includes(e)?{text:t,hidden:Ae(o).hidden}:t}function Yk(e,o,t,a){return Jt(e[o])===a?null:{...e,[o]:fn(t,e[o],a)}}function Kb(e){if(!(!e||typeof e!="object"))return e[M]}function Vb(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function gd(e,o){if(!Array.isArray(o))return[];let t=Kb(e),a=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((l,f)=>{let c=l?.[n];typeof c=="string"&&c&&a.push({row:{index:f,rowKey:n},text:c})}),a}let r=Vb(e);return r?(o.forEach((n,l)=>{for(let[f,c]of Object.entries(r)){if(!hd(c))continue;let u=Jt(n?.[f]);u&&a.push({row:{index:l,rowKey:f},text:u})}}),a):[]}function Xb(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function jb(e,o,t,a){let r=e[o];return!Array.isArray(r)||t.index<0||t.index>=r.length?null:{...e,[o]:r.map((n,l)=>l===t.index?{...n,[t.rowKey]:a}:n)}}function ow(e,o,t,a,r){let n=Xb(e[o],t);return Jt(n)===r?null:jb(e,o,t,fn(a,n,r))}function tw(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var uw="data-sf-part",iw="data-sf-part-selected",pw="data-sf-part-kind",bd=2;function mw(e,o){if(!e)return!1;let t=$o(e);return!!t?.propKey&&t.nodeId===o}function mo(e){return Oo(e).replace(/\s+/gu,"")}function ea(e,o,t){let a=e[M];if(a){if(a.control==="textList"){let n=a.itemKey??"text";if(!Array.isArray(o))return;for(let l of o){let f=l?.[n];typeof f=="string"&&t.push(f)}return}let{text:r}=Ae(o);r?t.push(r):a.placeholder&&t.push(a.placeholder);return}if(!e[ko]){if(e.type==="text"||e.type==="textarea"){typeof o=="string"&&o&&t.push(o);return}if(e.arrayFields&&Array.isArray(o)){for(let r of o)for(let[n,l]of Object.entries(e.arrayFields))ea(l,r?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[r,n]of Object.entries(e.objectFields))ea(n,o[r],t)}}function xw(e){if(!e||typeof e!="object")return!1;let o=e;return o[ko]?!1:!!o[M]||o.type==="text"||o.type==="textarea"}function Cd(e,o){let t=e[M];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Yb(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function Iw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){if(!r||typeof r!="object"||Mo(a))continue;let n=r,l=[];ea(n,o?.[a],l),!l.length&&n[wo]!==void 0&&ea(n,n[wo],l);let f=Cd(n,a),c=new Set;for(let{row:m,text:p}of gd(n,o?.[a])){let I=mo(p);I.length<bd||(c.add(I),t.push({key:a,label:f,texts:[I],row:m}))}let u=new Set(c),i=[];for(let m of l){let p=mo(m);p.length<bd||u.has(p)||(u.add(p),i.push(p))}i.length&&t.push({key:a,label:f,texts:i})}return t}var Zb=Ge;function Sd(e,o){if(!o||typeof o!="object"||Mo(e))return null;let t=o[M];return!t||!Zb.includes(t.control)?null:t}function hw(e,o){let t=Sd(e,o);return t!==null&&t.identifier!==!0}function gw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){let n=Sd(a,r);if(!n)continue;let{text:l,hidden:f}=Ae(o?.[a]),c=l||n.placeholder||"",u=Oo(c).replace(/\s+/gu," ").trim();t.push({key:a,label:Yb(Cd(r,a)),preview:u,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!f})}return t}var Qb="Main Pages",Jb="Dynamic Pages",eC="dynamic",oC="dynamic";function tC(e){return e.kind===oC}function Cw(e){let o=[],t=[];for(let a of e){if(tC(a)){t.push(a);continue}let r=a.groupKey??(a.group?`folder:${a.group}`:"top"),n=o[o.length-1];n&&n.key===r?n.rows.push(a):o.push({key:r,label:a.group??Qb,rows:[a]})}if(t.length){let a=o.findIndex(r=>r.key.startsWith("system:"));o.splice(a===-1?o.length:a,0,{key:eC,label:Jb,rows:t})}return o}import{VIEW_DESKTOP_MIN as Fw,VIEW_TABLET_MIN as Lw,VIEW_TIER_LABEL as vw,VIEW_TIERS as Tw,viewTierForWidth as Ew}from"efficient-easel/screen/lib/content/view-tiers";import{jsx as sn,Fragment as aC,jsxs as rC}from"react/jsx-runtime";var Pw=rC(aC,{children:[sn("circle",{cx:"9",cy:"20",r:"1.3"}),sn("circle",{cx:"18",cy:"20",r:"1.3"}),sn("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});import{jsx as cn,Fragment as nC}from"react/jsx-runtime";function yd({className:e=""}){return cn("sup",{className:`text-accent tracking-normal ${e}`,children:"\xAE"})}function oa(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((a,r)=>{a&&t.push(a),r<o.length-1&&t.push(cn(yd,{},`r${r}`))}),cn(nC,{children:t})}var kw=yd;import{jsx as P,jsxs as Cn}from"react/jsx-runtime";import{Fragment as $d}from"react";var pn="_partStyles",In="data-sf-part-styled",lC=["none","upper","lower"],fC=[400,500,600,700],sC=["left","center","right","justify"],cC=5,dC=1e3,uC=-5,iC=10,pC=0,mC=64,xC=2,IC=120,ta=1280,hC=10,Fd={size:{min:cC,max:dC,step:1},padding:{min:pC,max:mC,step:xC},width:{min:IC,max:ta,step:hC}},gC=.05,bC=.01,CC=["line","letter"],SC=.5,yC=2.5,FC=-1,LC=1,vC=0,TC=400,mn={none:"none",upper:"uppercase",lower:"lowercase"};function Ko(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Ed(e){return Ko(e?.[pn])??{}}function EC(e,o){let t=Ed(e);return Object.hasOwn(t,o)?Ko(t[o])??{}:{}}function Od(e,o,t){let a={...Ed(e)};if(OC(t).length?a[o]=t:delete a[o],!Object.keys(a).length){let{[pn]:r,...n}=e;return n}return{...e,[pn]:a}}function OC(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function BC(e){return CC.includes(e)}var zo=(e,o,t)=>Math.min(t,Math.max(o,e));function PC(e,o){if(BC(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:zo(t,uC,iC)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?xo(zo(t,SC,yC),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?xo(zo(t,FC,LC),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:zo(t,vC,TC)}if(Object.hasOwn(Fd,e)){let{min:t,max:a}=Fd[e],r=Math.round(Number(o));return Number.isFinite(r)?zo(r,t,a):null}return e==="role"?yo.includes(String(o))?o:null:o}var AC=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function RC(e){let o=[];for(let[t,a]of AC)t===e?o.push(a):a===e&&o.push(t);return o}function Hw(e,o,t,a){let r={...EC(e,o)},n=a==null?null:PC(t,a);if(n===null)delete r[t];else{r[t]=n;for(let l of RC(t))delete r[l]}return Od(e,o,r)}function Gw(e,o){return Od(e,o,{})}function kC(e){for(let o of lC)if(mn[o]===e)return o;return"none"}function wC(e){return!e||!Object.hasOwn(mn,e)?"":mn[e]}var _C={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function DC(e){let o=e.role;return o&&yo.includes(o)?o:null}var MC={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function NC(e){let o=ml[e],t=MC[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function HC(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=xo(GC+e.line*gC,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=xo(e.letter*bC,4)),o}var GC=1,Xo="--sf-part-para";function aa(e,o){let t=DC(e),a=HC(e),r=e.size?`${e.size}px`:t?NC(t):"";return{fontFamily:e.font?$C(e.font):t?`var(${_C[t]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:r,minWidth:r?"0":"",overflowWrap:r?"break-word":"",lineHeight:a.lineHeight!==void 0?String(a.lineHeight):"",letterSpacing:a.letterSpacingEm!==void 0?`${a.letterSpacingEm}em`:"",[Xo]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:wC(e.case),textAlign:e.align??"",paddingTop:dn(e.padding),paddingBottom:dn(e.padding),maxWidth:dn(e.width),color:UC(e.color)}}var UC=e=>e===void 0||e===""?"":Object.hasOwn(Te,e)?Te[e]:Bd.test(e)?e:"",Bd=/^#[0-9a-fA-F]{6}$/;function Pd(e){return Bd.test(e)}var dn=e=>e===void 0?"":`${e}px`,xo=(e,o)=>Number(e.toFixed(o));function Uw(e,o){let t=Number.parseFloat(e.fontSize)||16,a=Number.parseFloat(e.lineHeight),r=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop),l=Number.parseFloat(e.maxWidth);return{fontKey:o,sizePx:t,weight:WC(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(a)?xo(a/t,3):1.2,letterEm:Number.isFinite(r)?xo(r/t,4):0,align:qC(e.textAlign),case:kC(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(l)&&l<ta?Math.round(l):ta}}function WC(e){return Number.isFinite(e)?fC.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function qC(e){for(let o of sC)if(o===e)return o;return e==="end"?"right":"left"}function Ww(e,o){let t=Ld(e);if(!t)return"";for(let a of ga)if(Ld(o(a.cssVar))===t)return a.key;return""}var Ld=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function $C(e){let o=pl(e);return o?`var(${o.cssVar})`:""}function qw(e,o,t,a){return!o||$o(o)?.nodeId!==e?null:t.find(r=>a(r.getAttribute("class")))??t[0]??null}function $w(e,o,t=()=>Vo,a=n=>n,r=VC){let n=0;for(let{element:l,partId:f}of e){let c=$o(f)?.propKey;if(!c)continue;let u=a(c),i=Object.hasOwn(o,u)?Ko(o[u])??{}:{},m=aa(i,Vo),p=un.some(x=>l.style[x]),I=!1;for(let[x,h]of Object.entries(m))XC(l,x,h),h&&(I=!0);if(p||un.some(x=>m[x]))for(let x of zC(l,r))for(let h of un)x.style[h]=m[h]??"";I&&(n+=1)}return n}function zC(e,o){let t=mo(e.textContent??""),a=[],r=e;for(let n=0;n<KC&&o(r);n+=1){let l=r.parentElement;if(!l||mo(l.textContent??"")!==t)break;a.push(l),r=l}return a}var KC=8;function VC(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Vo={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:ta};function XC(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let a=e.style;typeof a.setProperty=="function"?t?a.setProperty(o,t):a.removeProperty?.(o):a[o]=t;let r=e;o===Xo&&(t?r.setAttribute?.(vd,""):r.removeAttribute?.(vd))}var vd="data-sf-part-para",jC=Object.keys(aa({},Vo)),xn=new Set(["color","overflowWrap",Xo]),un=jC.filter(e=>!xn.has(e));function Ad(e,o,t,a=r=>r){let r=new Map;for(let f of e){let c=nn(f.key,f.row);for(let u of f.texts){let i=r.get(u);i?(i.keys.add(f.key),i.partKeys.add(c)):r.set(u,{keys:new Set([f.key]),partKeys:new Set([c])})}}let n=new Map;for(let f of Object.keys(o)){if(!YC(f))continue;let c=Ko(o[f])??{},u=aa(c,Vo);Object.values(u).some(Boolean)&&n.set(f,{stamp:Td(t,f),declarations:u})}let l=new Map;for(let[f,{keys:c,partKeys:u}]of r){let i=u.size===1?[...u][0]:c.size===1?[...c][0]:null;if(!i)continue;let m=a(i);if(!Object.hasOwn(o,m))continue;let p=Ko(o[m])??{},I=aa(p,Vo);Object.values(I).some(Boolean)&&l.set(f,{stamp:Td(t,i),declarations:I})}return l.size||n.size?{rules:l,kindRules:n,drawn:new Set(r.keys())}:null}function YC(e){return e.startsWith("@")}function Rd(e,o){return e?.kindRules.get(o)??null}function Td(e,o){let t=a=>a.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function kd(e){let o=[],t=new Set,a=r=>{let{stamp:n,declarations:l}=r;if(t.has(n))return;t.add(n);let f=Object.entries(l).filter(([,p])=>p!==""),c=p=>p.map(([I,x])=>`${QC(I)}: ${x}`).join("; "),u=`[${In}="${n}"]`,i=f.filter(([p])=>!xn.has(p)),m=f.filter(([p])=>xn.has(p));i.length&&o.push(`${u}, *:has(> ${u}) { ${c(i)} }`),m.length&&o.push(`${u} { ${c(m)} }`),l[Xo]&&o.push(...ZC(u))};for(let r of e.rules.values())a(r);for(let r of e.kindRules.values())a(r);return o.join(`
4
+ `)}function ZC(e){let o=`var(${Xo})`,t=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${o} }`,`${e} ${t}:not(:first-child) { margin-top: ${o} }`,`${e} ${t}:not(:last-child) { margin-bottom: ${o} }`]}var QC=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function wd(e,o){if(!e)return null;let t=mo(o),a=e.rules.get(t);if(a)return a;if(t.length<JC||e.drawn.has(t))return null;let r=null;for(let[n,l]of e.rules)if(n.includes(t)){if(r&&r.stamp!==l.stamp)return null;r=l}return r}var JC=8;import{Fragment as nS,jsx as bn}from"react/jsx-runtime";import{Fragment as Nd,jsx as ra,jsxs as tS}from"react/jsx-runtime";import{createContext as Hd,useContext as hn,useId as aS,useMemo as rS}from"react";var jo="@name",_d="@body",Dd="@value",Vw={[jo]:"Name",[_d]:"Body",[Dd]:"Value"},eS={TimelineTrack:{"entries.date":jo,"entries.title":jo,"entries.blurb":_d},Footprint:{"offices.city":jo},Stats:{"items.label":jo,"items.value":Dd}};function oS(e){let{key:o,row:t}=ln(e);return t?`${o}.${t.rowKey}`:null}function Md(e,o){if(!e)return o;let t=oS(o);return t?eS[e]?.[t]??o:o}var gn=Hd(null),Gd=Hd(null);function Jw({needles:e,styles:o,type:t,children:a}){let r=aS(),n=JSON.stringify([r,e,o,t]),l=rS(()=>Ad(e,o,r,f=>Md(t,f)),[n]);return l?tS(Nd,{children:[ra("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:kd(l)}}),ra(gn.Provider,{value:l,children:a})]}):ra(Nd,{children:a})}function Ud(e){let o=hn(gn),t=hn(Gd),a=wd(o,e);return a&&a.stamp!==t?a:null}function e_(e){return Rd(hn(gn),e)}function Wd({stamp:e,children:o}){return ra(Gd.Provider,{value:e,children:o})}function Yo({value:e,children:o}){let t=Ud(e);return t?bn(Wd,{stamp:t.stamp,children:bn("span",{[In]:t.stamp,children:o})}):bn(nS,{children:o})}function Sn(e,o=!1){let t=pS(o),a=Va(e);if(a.length===1){let[n]=a,l=Ka(n),f=l?uS(l,n.children):n.children;return P(Yo,{value:e,children:na(f,t)})}let r=[];return a.forEach((n,l)=>{if(n.bullet){r.push(P("span",{"data-sf-bullet":"",className:lS,children:na(n.children,t)},l));return}if(n.number!=null){r.push(Cn("span",{"data-sf-number":n.number,className:fS,children:[Cn("span",{className:sS,children:[n.number,"."]}),na(n.children,t)]},l));return}l>0&&!cS(a[l-1])&&r.push(P("br",{},`br${l}`)),r.push(P($d,{children:na(n.children,t)},l))}),P(Yo,{value:e,children:r})}var lS="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",fS="relative block pl-[2em]",sS="absolute left-0 w-[1.6em] text-right tabular-nums";function cS(e){return e.bullet||e.number!=null}var dS="text-accent underline underline-offset-[0.18em]";function uS(e,o){let[t,...a]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...a]:[{kind:"text",text:e},...o]}function iS(e){if(e)return Pd(e)?e:Object.hasOwn(Te,e)?Te[e]:void 0}function na(e,o){let t=[],a=!1;return e.forEach((r,n)=>{if(r.kind==="text"){t.push(P("span",{children:oa(r.text)},n)),a=!0;return}a||t.push(P("span",{},`e${n}`)),t.push(zd(r,n,o)),a=!1}),a||t.push(P("span",{},"end")),t}function qd(e,o){return e.length===1&&e[0].kind==="text"?oa(e[0].text):e.map((t,a)=>t.kind==="text"?P($d,{children:oa(t.text)},a):zd(t,a,o))}function pS(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function p_(e){return P(Yo,{value:e,children:P("span",{children:e})})}function zd(e,o,t){if(e.kind==="link")return P("a",{href:e.href,className:dS,children:qd(e.children,t)},o);let a=qd(e.children,t),r=xf[e.kind];if(r)return P("span",{[If]:r,children:a},o);switch(e.kind){case"underline":return P("u",{children:a},o);case"sup":return P("sup",{children:a},o);case"sub":return P("sub",{children:a},o);case"color":{let n=iS(e.color);return n?P("span",{style:{color:n},children:a},o):P("span",{children:a},o)}case"accent":case"highlight":return P("em",{className:t,children:a},o);case"bold":return P("strong",{className:"font-semibold",children:a},o);case"italic":return P("em",{className:"italic",children:a},o);case"strike":return P("s",{className:"line-through",children:a},o);default:return P("span",{children:a},o)}}function m_(e,o=!0){let t=e.split(`
5
+ `);return P(Yo,{value:e,children:t.map((a,r)=>Cn("span",{children:[Sn(a,o),r<t.length-1?P("br",{}):null]},r))})}function x_(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var yn={accent:"#2563eb",accentTint:"#eff6ff",accentText:"#1d4ed8",appBg:"#f9fafb",previewBg:"#f3f4f6",panel:"#ffffff",fieldBg:"#ffffff",inputBorder:"#d1d5db",text:"#111827",text2:"#374151",muted:"#6b7280",line:"#e5e7eb",chipBg:"#f3f4f6",chipFg:"#6b7280",panelRadius:12,rowRadius:8,panelShadow:"0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.06)",topbarShadow:"0 1px 3px rgba(0,0,0,.06)",panelGap:10,leftWidth:288,rightWidth:308,topbarHeight:52,labelFont:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif"};var Kd={min:40,max:100,step:5,fallback:100,unit:"vh"};function Fn(e){return`${typeof e=="number"?e:Kd.fallback}${Kd.unit}`}function Vd(...e){return e.some(o=>typeof o=="number")}import{useSyncExternalStore as mS}from"react";var xS={level:"groups"},jd=xS,Ln=new Set;function C_(e){jd=e;for(let o of Ln)o()}function IS(e){return Ln.add(e),()=>{Ln.delete(e)}}var Xd=()=>jd;function S_(){return mS(IS,Xd,Xd)}function Yd(e,o,t){let a=[];return e.forEach((r,n)=>{let l=o(r),f=a.find(c=>c.key===l);f||(f={key:l,name:t(r),items:[]},a.push(f)),f.items.push({item:r,index:n})}),a}function F_(e){if(e<=1)return"grid-cols-1";if(e===2)return"grid-cols-2";if(e===3)return"grid-cols-3";if(e===4)return"grid-cols-4";let o=t=>e%t||t;return o(4)>=o(3)?"grid-cols-4":"grid-cols-3"}var Zo=e=>String(e?.group??""),vn=new WeakMap,hS=0;function gS(e){let o=vn.get(e);return o||(o=`loc${++hS}`,vn.set(e,o)),o}var T_=(e,o)=>o||e||"Ungrouped",Zd={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
6
+ Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function la(e){return Yd(e,Zo,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var Tn=e=>e.flatMap(o=>o.cards),Qd=(e,o,t)=>Math.min(Math.max(e,o),t);function bS(e,o,t){let a=0;for(let r=0;r<e.length;r++)if(Zo(e[r])===o){if(a===t)return r;a++}return-1}function E_(e,o,t){let a=la(e);if(o<0||o>=a.length)return e;let[r]=a.splice(o,1),n=Qd(o<t?t-1:t,0,a.length);return a.splice(n,0,r),Tn(a)}function O_(e,o,t,a,r){let n=la(e),l=n.find(m=>m.key===o),f=n.find(m=>m.key===a);if(!l||!f||t<0||t>=l.cards.length)return e;let[c]=l.cards.splice(t,1),u=o===a?c:{...c,group:f.key,groupName:f.name};u!==c&&vn.set(u,gS(c));let i=Qd(l===f&&t<r?r-1:r,0,f.cards.length);return f.cards.splice(i,0,u),Tn(n)}function B_(e,o){let t=la(e),a=t.find(n=>n.key===o),r={...Zd,group:o,groupName:a?.name??""};return a?(a.cards.push(r),Tn(t)):[...e,r]}function P_(e){let o=new Set(la(e).map(r=>r.key)),t=o.size+1,a=`Group ${t}`;for(;o.has(a);)a=`Group ${++t}`;return{cards:[...e,{...Zd,group:a,groupName:""}],key:a}}function A_(e,o){return e.filter(t=>Zo(t)!==o)}function R_(e,o,t){let a=bS(e,o,t);return a<0?e:e.filter((r,n)=>n!==a)}function k_(e,o,t){let a=e.flatMap((l,f)=>Zo(l)===o?[f]:[]),r=e.slice();a.forEach((l,f)=>{r[l]=t[f]});let n=t.slice(a.length);return[...r.filter(l=>l!==void 0),...n]}function w_(e,o,t){return o.flatMap(a=>{let r=e.filter(n=>Zo(n)===a);return r.length?r:t(a)})}var CS="plain",Jd=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],SS="line",yS={KeyFeatures:"filled"};function FS(e){return yS[e]??CS}function M_(e,o){return z(Jd,FS(o),e)}function N_(e){return z(Jd,SS,e)}var LS="#9ca3af";function U_(e){return za.map(o=>({key:o,name:hf[o],value:e?.[o]||LS}))}function W_(e){let o={},t=e.ownerDocument,a=t?.defaultView;if(!t||!a)return o;let r=a.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let l of za){let f=Te[l].replace(/^var\((--[\w-]+)\)$/,"$1"),c=r.getPropertyValue(f).trim();if(!c)continue;let u=eu(c);!u&&n&&(n.fillStyle="#000000",n.fillStyle=c,u=eu(String(n.fillStyle))),u&&(o[l]=u)}return o}function eu(e){let o=e.trim().toLowerCase();if(/^#[0-9a-f]{6}$/.test(o))return o;if(/^#[0-9a-f]{3}$/.test(o))return`#${[...o.slice(1)].map(a=>a+a).join("")}`;let t=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return t?`#${t.slice(1,4).map(a=>Math.min(255,Number(a)).toString(16).padStart(2,"0")).join("")}`:null}var vS={tag:{label:"Tag",follows:"Labels",builtIn:"13px",writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:"48px",writable:!0},body:{label:"Body",follows:"Body",builtIn:"14px",writable:!0},price:{label:"Price",follows:"Labels",builtIn:"15px",writable:!0},link:{label:"Link",follows:"Labels",builtIn:"14px",writable:!0}},ou=vS;var fa="data-sf-spec-region";function z_(e,o,t){if(!e)return;let a=t[e];if(a)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${a}, ${o.builtIn})`}}function TS(e){return`@${e}`}function ES(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function tu(e,o){return o&&o in e?o:null}function OS(e,o){let t=o?.closest(`[${fa}]`)?.getAttribute(fa);return tu(e,t??null)}var BS={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0}},au=BS;var Y_=fa;var ru={rowLabel:{label:"Spec row name",follows:"Labels",builtIn:"14px"},rowValue:{label:"Spec row value",follows:"Labels",builtIn:"14px"},diagramTitle:{label:"Diagram title",follows:"Labels",builtIn:"12px"},diagramCallout:{label:"Diagram measurement",follows:"Labels",builtIn:"12px"},diagramStatLabel:{label:"Diagram stat name",follows:"Labels",builtIn:"11px"},diagramStatValue:{label:"Diagram stat value",follows:"Labels",builtIn:"11px"}};var nu={SpecTable:ru,FAQ:au,Collections:ou};function o1(e){return e&&Object.hasOwn(nu,e)?nu[e]:null}import{jsx as YS}from"react/jsx-runtime";import{forwardRef as PS,createElement as En}from"react";var lu={outline:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"},filled:{xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"currentColor",stroke:"none"}};var C=(e,o,t,a)=>{let r=PS(({color:n="currentColor",size:l=24,stroke:f=2,title:c,className:u,children:i,...m},p)=>En("svg",{ref:p,...lu[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${o}`,u].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:f,stroke:n},...m},[c&&En("title",{key:"svg-title"},c),...a.map(([I,x])=>En(I,x)),...Array.isArray(i)?i:[i]]));return r.displayName=`${t}`,r};var AS=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],On=C("outline","brand-facebook","BrandFacebook",AS);var RS=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],Bn=C("outline","brand-instagram","BrandInstagram",RS);var kS=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Pn=C("outline","brand-line","BrandLine",kS);var wS=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],An=C("outline","brand-linkedin","BrandLinkedin",wS);var _S=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],Rn=C("outline","brand-pinterest","BrandPinterest",_S);var DS=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],kn=C("outline","brand-telegram","BrandTelegram",DS);var MS=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],wn=C("outline","brand-tiktok","BrandTiktok",MS);var NS=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],_n=C("outline","brand-wechat","BrandWechat",NS);var HS=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Dn=C("outline","brand-whatsapp","BrandWhatsapp",HS);var GS=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],Mn=C("outline","brand-x","BrandX",GS);var US=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],Nn=C("outline","brand-youtube","BrandYoutube",US);var WS=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],Hn=C("filled","brand-facebook-filled","BrandFacebookFilled",WS);var qS=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Gn=C("filled","brand-instagram-filled","BrandInstagramFilled",qS);var $S=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Un=C("filled","brand-linkedin-filled","BrandLinkedinFilled",$S);var zS=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],Wn=C("filled","brand-pinterest-filled","BrandPinterestFilled",zS);var KS=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],qn=C("filled","brand-tiktok-filled","BrandTiktokFilled",KS);var VS=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],$n=C("filled","brand-whatsapp-filled","BrandWhatsappFilled",VS);var XS=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],zn=C("filled","brand-x-filled","BrandXFilled",XS);var jS=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],Kn=C("filled","brand-youtube-filled","BrandYoutubeFilled",jS);var mD="outline",sa={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},ZS={},Vn={fillRule:"evenodd"},QS=[["path",{...sa,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...Vn,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],JS=[["path",{...sa,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...ZS,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}]],ey=[["path",{...sa,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...sa,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...Vn,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...Vn,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],oy=C("filled","brand-telegram-filled","BrandTelegramFilled",QS),ty=C("filled","brand-line-filled","BrandLineFilled",JS),ay=C("filled","brand-wechat-filled","BrandWechatFilled",ey),ry={instagram:{outline:Bn,solid:Gn},facebook:{outline:On,solid:Hn},tiktok:{outline:wn,solid:qn},youtube:{outline:Nn,solid:Kn},x:{outline:Mn,solid:zn},linkedin:{outline:An,solid:Un},pinterest:{outline:Rn,solid:Wn},whatsapp:{outline:Dn,solid:$n},telegram:{outline:kn,solid:oy},line:{outline:Pn,solid:ty},wechat:{outline:_n,solid:ay}};function xD({platform:e,iconStyle:o,size:t}){let a=ry[e][o];return YS(a,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var Xn="small",jn="dot",ny=[{label:"Small",value:"small"},{label:"Display",value:"display"}],ly=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],fu={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},fy={small:"font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.25em] max-[800px]:text-[length:var(--size-label,12px)]",display:"font-display font-medium text-[length:var(--size-headingMedium,44px)] uppercase leading-none tracking-[0.005em] max-[800px]:text-[length:var(--size-headingMedium,28px)]"},sy={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 su(e){return z(ny,Xn,e)}function cu(e){return z(ly,jn,e)}function du(e){return fy[e]}function uu(e,o){return sy[e][o]}var Yn="left",cy=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],dy={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function iu(e){return z(cy,Yn,e)}function pu(e){return e==="up"||e==="down"}function mu(e,o){return`${dy[e]} ${o}s linear infinite`}var uy={"top-left":"left-0 top-[120px]","top-center":"left-1/2 top-[120px] -translate-x-1/2","top-right":"right-0 top-[120px]",left:"left-0 top-1/2 -translate-y-1/2",center:"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",right:"right-0 top-1/2 -translate-y-1/2","bottom-left":"left-0 bottom-[120px]","bottom-center":"left-1/2 bottom-[120px] -translate-x-1/2","bottom-right":"right-0 bottom-[120px]"},iy=`calc(${St} - ${q}*2)`,xu=`var(${Ya},${q})`,FD=`pointer-events-none absolute inset-y-0 left-[${xu}] right-[${xu}] z-[6] mx-auto max-w-[var(${Za},${iy.replace(/ /g,"_")})]`;function ca(e,o){return`pointer-events-auto absolute ${uy[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function Iu(e){return oe.includes(e)?e:null}var py="bottom-right",my=["outline","solid","square","bare"],xy="outline",ED={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},OD=!1,hu=["prev","next"],gu={prev:"Previous slide",next:"Next slide"};function Iy(e){return my.includes(e)?e:xy}function hy(e){return Iu(e)??py}var gy="flex-row items-center gap-2";function bu(e){return ca(hy(e),gy)}var by={outline:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",solid:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome bg-overlay-chrome text-overlay-scrim transition-colors hover:bg-overlay-chrome/85",square:"grid h-10 w-10 cursor-pointer place-items-center rounded-md border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",bare:"grid h-10 w-10 cursor-pointer place-items-center text-overlay-fg transition-colors hover:text-overlay-chrome"};function Cu(e){return by[Iy(e)]}function Su(e){return e.shown===!0&&(e.count??0)>1}function da(e,o,t){if(t<=1)return o;let a=Math.min(Math.max(o,0),t-1);return e==="prev"?(a-1+t)%t:(a+1)%t}var Cy=oe;var Sy="top-right",yy=["cards","dots","numbers","bar","tabs"],Fy=["cards","dots","numbers","bar"],yu="cards",RD={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},kD=!0;function ua(e){return yy.includes(e)?e:yu}function Fu(e){return Fy.includes(e)?e:yu}function Ly(e){return Cy.includes(e)?e:Sy}var Lu={cards:"flex-col gap-2.5",dots:"flex-row items-center gap-2",numbers:"flex-col gap-2",bar:"h-0.5 w-[34%] max-w-[420px] gap-px overflow-hidden rounded-full",tabs:"flex-row items-stretch w-full overflow-x-auto"};function vu(e,o){return ca(Ly(o),Lu[ua(e)])}function Tu(e){return`flex ${Lu[ua(e)]}`}function Eu(e){return e.shown!==!1&&(e.count??0)>1}function vy(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function Ty(e,o){return e===o?!0:e.length!==o.length?!1:e.every((t,a)=>t.name===o[a].name&&t.process===o[a].process&&t.video===o[a].video)}function Ou(e,o){let t=Array.from(o,vy);return Ty(e,t)?e:t}import{useEffect as Ey,useState as Oy}from"react";var Bu="(prefers-reduced-motion: reduce)";function By(){return globalThis.window?.matchMedia?.(Bu)?.matches??!1}function DD(){return By()?"auto":"smooth"}function Pu(){let[e,o]=Oy(!1);return Ey(()=>{let t=globalThis.window?.matchMedia?.(Bu);if(!t||(o(t.matches),typeof t.addEventListener!="function"))return;let a=r=>o(r.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[]),e}import{jsx as ie,jsxs as pa}from"react/jsx-runtime";import{useCallback as Io,useEffect as ho,useId as Ny,useRef as ge,useState as et}from"react";var Au="data-puck-overlay-portal";function ia(e){return e.setAttribute(Au,"true"),()=>e.removeAttribute(Au)}import{jsx as Qo,jsxs as Ru}from"react/jsx-runtime";var Py={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function ku({items:e,separator:o=jn,size:t=Xn,durationSec:a=50,scroll:r=Yn,backdrop:n="themed-band",className:l}){let f=su(t),c=iu(r),u=cu(o),i=`text-accent ${uu(f,u)}`.trim(),m=fu[u],p=m===""?Qo("span",{}):Qo("span",{className:i,children:m}),I=pu(c),x=I?"inline-flex flex-col items-center gap-[60px] pb-[60px] max-[800px]:gap-8 max-[800px]:pb-8":"inline-flex items-center gap-[60px] pr-[60px] max-[800px]:gap-8 max-[800px]:pr-8",h=I?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",S=O=>Qo("span",{className:x,children:e.map((b,y)=>{let B=typeof b=="string"?b:b.text,H=typeof b=="object"&&b.gold;return Ru("span",{className:h,children:[Qo("span",{className:H?"text-accent":void 0,children:Sn(B)}),p]},y)})},O);return Qo("div",{className:`overflow-hidden ${l??""}`,children:Ru("div",{className:`flex ${I?"flex-col ":""}whitespace-nowrap ${du(f)} ${Py[n]}`,style:{animation:mu(c,a)},children:[S("a"),S("b")]})})}import{jsx as Zn}from"react/jsx-runtime";function wu({shape:e,placement:o,ref:t}){let a=Cu(e);return Zn("div",{ref:t,className:bu(o),style:{color:"var(--overlay-fg)"},children:hu.map(r=>Zn("button",{type:"button","data-hero-nav":r,"aria-label":gu[r],className:a,children:Zn(Ho,{name:"chevron-right",size:18,rounded:!0,style:r==="prev"?{rotate:"180deg"}:void 0})},r))})}import{jsx as N,jsxs as Qn,Fragment as Jo}from"react/jsx-runtime";function _u({slides:e,active:o,shape:t,placement:a,ref:r,tone:n="media",label:l}){let f=ua(t),c=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--site-surface-2)"}:void 0;return Qn("aside",{ref:r,"aria-label":l??"Featured slides",className:n==="surface"?Tu(f):vu(f,a),style:{color:"var(--overlay-fg)",...c},children:[f==="cards"&&N(Ay,{slides:e,active:o}),f==="dots"&&N(Ry,{count:e.length,active:o}),f==="numbers"&&N(ky,{count:e.length,active:o}),f==="bar"&&N(wy,{count:e.length,active:o}),f==="tabs"&&N(_y,{slides:e,active:o})]})}function Ay({slides:e,active:o}){return Qn(Jo,{children:[N("span",{className:"mb-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.28em] text-overlay-chrome/55",children:"Reel \xB7 pick a slide"}),e.map((t,a)=>{let r=a===o;return Qn("button",{type:"button","data-idx":a,"aria-pressed":r,"aria-label":`Go to ${t.name||`slide ${a+1}`}`,className:["group flex w-[170px] cursor-pointer flex-col items-start gap-0.5 border bg-overlay-scrim/55 px-3 py-2.5 text-left transition-all motion-reduce:transition-none max-[1100px]:w-[140px]",r?"border-accent bg-overlay-scrim/70":"border-overlay-chrome/15 hover:border-overlay-chrome/45 hover:bg-overlay-scrim/70"].join(" "),children:[N("span",{className:["font-display text-[length:var(--size-body,13px)] font-medium uppercase leading-tight tracking-[-0.01em]",r?"text-accent":"text-overlay-fg"].join(" "),children:t.name||`Slide ${a+1}`}),N("span",{className:"font-mono text-[length:var(--size-label,9px)] uppercase tracking-[0.2em] text-overlay-chrome/55",children:r?"\u25B6 Now playing":t.process||" "})]},a)})]})}function Ry({count:e,active:o}){return N(Jo,{children:Array.from({length:e},(t,a)=>N("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`h-2 cursor-pointer rounded-full transition-all motion-reduce:transition-none ${a===o?"w-5 bg-accent":"w-2 bg-overlay-chrome/45 hover:bg-overlay-chrome/70"}`},a))})}function ky({count:e,active:o}){return N(Jo,{children:Array.from({length:e},(t,a)=>N("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`cursor-pointer font-mono text-[length:var(--size-label,11px)] leading-none tracking-[0.06em] transition-colors ${a===o?"text-overlay-fg":"text-overlay-chrome/45 hover:text-overlay-chrome/80"}`,children:String(a+1).padStart(2,"0")},a))})}function wy({count:e,active:o}){return N(Jo,{children:Array.from({length:e},(t,a)=>N("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`h-full flex-1 cursor-pointer transition-colors ${a<=o?"bg-overlay-fg":"bg-overlay-chrome/25"}`},a))})}function _y({slides:e,active:o}){return N(Jo,{children:e.map((t,a)=>{let r=a===o;return N("button",{type:"button","data-idx":a,"aria-pressed":r,className:["flex min-w-[140px] flex-1 cursor-pointer items-end px-6 py-7 text-left transition-colors",a>0?"border-l border-overlay-chrome/15":"",r?"bg-overlay-scrim/70":"hover:bg-overlay-scrim/40"].join(" "),children:N("span",{className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium uppercase leading-tight tracking-[-0.02em]",r?"text-overlay-fg":"text-overlay-chrome/55"].join(" "),children:t.name})},a)})})}var Dy=40;function My(e,o){return Math.abs(e)<=Dy||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function Du(e,o,t,a){let r=My(e,o);return r?da(r,t,a):t}function Mu(e){return(e.count??0)>1&&e.editing!==!0}function Nu(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function Hu(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as Jn}from"efficient-easel/screen/lib/puck/preview-events";var Hy=`
7
+ .hero-ticker-pick { cursor: pointer; }
8
+ .hero-ticker-pick:hover {
9
+ outline: 2px solid color-mix(in srgb, ${yn.accent} 45%, transparent);
10
+ outline-offset: -2px;
11
+ }
12
+ .hero-ticker-pick[data-selected] {
13
+ outline: 2px solid ${yn.accent};
14
+ outline-offset: -2px;
15
+ }
16
+ `,Gy="Play video",Uy="Hold video",Wy="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",qy=()=>s("item"),$y=["","","","","",""],Gu=new Map;function zy(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(Jn,o),()=>t.removeEventListener(Jn,o)}function CM({slides:e,alignment:o,textureOpacity:t,showTexture:a,textureColor:r,phoneUpDown:n,phoneSideways:l,autoplay:f,autoplayInterval:c,showTicker:u,tickerItems:i,heightDesktop:m,heightMobile:p,showPicker:I,pickerShape:x,pickerPlacement:h,showArrows:S,arrowsShape:O,arrowsPlacement:b,editing:y}){let B=Vd(m,p),H=B?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",pe=B?{"--sf-hero-h-d":Fn(m),"--sf-hero-h-m":Fn(p)}:void 0,Z=(i??$y.map(g=>({text:g}))).map(g=>g?.text?.trim()?g.text:y?qy():"").filter(Boolean),Q=u!==!1,v=ge(null),V=ge(null),ot=ge(null),w=ge(null),We=ge(null),qe=Ny(),$e=ge(qe),[ze,Wu]=et([]),[qu,el]=et(0),go=ge(0),[ol,tl]=et(!1),[tt,$u]=et(!1),[al,zu]=et(null),xa=Pu(),{selectedHeroId:Ku,select:rl}=dd(),at=Io(()=>v.current?.querySelector(".hero-track")??null,[]),be=Io((g,L=!1)=>{el(g),go.current=g,Gu.set($e.current,g);let E=v.current?.querySelector(".hero-track");if(E)if(L){let A=E.style.transition;E.style.transition="none",E.style.transform=`translateX(-${Math.max(0,g)*100}%)`,E.offsetHeight,E.style.transition=A}else E.style.transform=`translateX(-${Math.max(0,g)*100}%)`},[]);ho(()=>{let g=v.current,L=g?.getAttribute("data-puck-component")||g?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||qe;$e.current=L,zu(L);let E=Gu.get(L);typeof E=="number"&&(el(E),go.current=E)},[]),ho(()=>{let g=at();if(!g)return;let L=()=>{Wu(A=>Ou(A,g.querySelectorAll("[data-slide-name]")))};L();let E=new MutationObserver(L);return E.observe(g,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{E.disconnect()}},[at]),ho(()=>{if(!y)return;let g=L=>{let E=L.detail;if(!E||typeof E.index!="number")return;let A=v.current,me=A?.getAttribute("data-puck-component")||A?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||$e.current;E.id&&E.id!==me||be(E.index,!0)};return zy(v.current,g)},[y,be]);let J=ze.length,Ke=Math.min(Math.max(qu,0),Math.max(0,J-1)),Ia=Eu({shown:I,count:J}),nl=Su({shown:S,count:J}),ll=Nu({editing:y,shown:Ke,slides:ze}),Vu=Hu({editing:y,playing:tt,controlShown:ll}),rt=Mu({count:J,editing:y}),Ve=ge(null),bo=ge(null),Xu=Io(g=>{if(Ve.current=null,bo.current=null,!rt||g.touches.length!==1)return;let L=g.touches[0];Ve.current={x:L.clientX,y:L.clientY},bo.current={x:L.clientX,y:L.clientY}},[rt]),ju=Io(g=>{if(!Ve.current)return;if(g.touches.length!==1){Ve.current=null;return}let L=g.touches[0];bo.current={x:L.clientX,y:L.clientY}},[]),Yu=Io(()=>{let g=Ve.current,L=bo.current;if(Ve.current=null,bo.current=null,!rt||!g||!L)return;let E=Du(L.x-g.x,L.y-g.y,go.current,J);E!==go.current&&be(E)},[rt,J,be]);ho(()=>{if(y||!f||ol||xa||J<=1)return;let g=Math.max(1,typeof c=="number"?c:6)*1e3,L=window.setTimeout(()=>be((Ke+1)%J),g);return()=>window.clearTimeout(L)},[y,f,c,ol,xa,J,Ke,be]),ho(()=>{let g=[V.current,ot.current,w.current].filter(Boolean),L=g.map(A=>ia(A)),E=A=>{let me=A.target,Co=me.closest("[data-hero-nav]"),fl=Co??me.closest("[data-idx]");if(!fl)return;A.stopPropagation(),A.preventDefault();let ha=Co?da(Co.dataset.heroNav,go.current,J):Number(fl.dataset.idx);Number.isNaN(ha)||(be(ha,y),at()?.querySelectorAll("[data-slide-name]")[ha]?.click())};return g.forEach(A=>A.addEventListener("click",E,{capture:!0})),()=>{L.forEach(A=>A?.()),g.forEach(A=>A.removeEventListener("click",E,{capture:!0}))}},[J,be,at,y]),ho(()=>{if(!y)return;let g=We.current;if(!g)return;let L=ia(g),E=A=>{A.stopPropagation(),A.preventDefault();let me=v.current,Co=me?.getAttribute("data-puck-component")||me?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||$e.current;rl(Co)};return g.addEventListener("click",E,{capture:!0}),()=>{L?.(),g.removeEventListener("click",E,{capture:!0})}},[y,rl,Q,Z.length]);let Zu=Io(g=>{if(!g)return;let L=ia(g),E=A=>{A.stopPropagation(),A.preventDefault(),$u(me=>!me)};return g.addEventListener("click",E,{capture:!0}),()=>{L?.(),g.removeEventListener("click",E,{capture:!0})}},[]);return ie(Na.Provider,{value:{alignment:o,textureOpacity:t,textureOn:a,textureColor:r,quietVideo:Vu,phoneUpDown:n,phoneSideways:l},children:pa("div",{ref:v,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${H} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:pe,onMouseEnter:()=>tl(!0),onMouseLeave:()=>tl(!1),onTouchStart:Xu,onTouchMove:ju,onTouchEnd:Yu,children:[ie(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${Ke*100}%)`,transition:xa?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),ll&&ie("div",{ref:Zu,"data-hero-video-control":tt?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${id} + 16px)`},children:pa("button",{type:"button",className:Wy,children:[ie("span",{"aria-hidden":"true",children:tt?"\u275A\u275A":"\u25B6"}),s(tt?Uy:Gy)]})}),(Ia||nl)&&pa("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))_-_var(--sf-site-gutter,40px)*2))]",children:[Ia&&ie(_u,{ref:V,slides:ze,active:Ke,shape:Fu(x),placement:h}),nl&&ie(wu,{ref:w,shape:O,placement:b})]}),Ia&&ie("div",{ref:ot,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:ze.map((g,L)=>ie("button",{type:"button","data-idx":L,"aria-label":`Go to slide ${L+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${L===Ke?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},L))}),Q&&Z.length>0&&pa("div",{ref:We,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${y?" hero-ticker-pick":""}`,"data-selected":y&&al!=null&&Ku===al?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[y&&ie("style",{children:Hy}),ie(ku,{items:Z,backdrop:"dark-media"})]})]})})}var ma="data-theme",Uu="light";function Ky(e){return e.getAttribute(ma)===Uu?"light":"dark"}function Vy(e,o){return Ky(e)===o?!1:(o==="light"?e.setAttribute(ma,Uu):e.removeAttribute(ma),!0)}function Xy(e){return Fa(e).getItem(ba)}function LM(e,o){Fa(e).setItem(ba,o)}function jy(e,o,t=new Date().getHours()){return xl({mode:o.mode,override:Xy(e),switchShown:o.switchShown,hour:t})}function vM(e,o){let t=e.documentElement;if(!t)return()=>{};let a=()=>Vy(t,jy(e,o));a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[ma]}),()=>n.disconnect()}var Yy="style";function Zy(e,o){let t=Cl(o),a=!1;for(let r of bl){let n=t[r]??"";e.style.getPropertyValue(r)!==n&&(n?e.style.setProperty(r,n):e.style.removeProperty(r),a=!0)}return a}function TM(e,o){let t=e.body;if(!t)return()=>{};let a=()=>Zy(t,o);a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[Yy]}),()=>n.disconnect()}export{$F as a,zF as b,KF as c,VF as d,ki as e,Fe as f,QF as g,Ga as h,dv as i,De as j,Hl as k,D as l,ff as m,QL as n,cf as o,lL as p,Ul as q,fL as r,Yl as s,Jl as t,ef as u,_L as v,DL as w,ML as x,NL as y,cp as z,nf as A,jL as B,pt as C,Ui as D,cL as E,Le as F,dL as G,uL as H,ql as I,iL as J,pL as K,mL as L,zi as M,xt as N,Me as O,gL as P,To as Q,CL as R,SL as S,yL as T,ve as U,nv as V,lv as W,Ap as X,Fv as Y,As as Z,_x as _,VO as $,Pt as aa,Rs as ba,Dx as ca,Mx as da,Nx as ea,YO as fa,ZO as ga,QO as ha,JO as ia,gt as ja,qa as ka,vv as la,Tv as ma,Ev as na,Ov as oa,Bv as pa,Pv as qa,z as ra,Mb as sa,Dk as ta,Mk as ua,Nb as va,Gb as wa,Nk as xa,Hk as ya,U_ as za,W_ as Aa,ia as Ba,kv as Ca,wv as Da,Nv as Ea,Hv as Fa,nn as Ga,ln as Ha,$o as Ia,Ub as Ja,bf as Ka,Va as La,Oo as Ma,ce as Na,M as Oa,Is as Pa,Ae as Qa,Mo as Ra,hd as Sa,Xk as Ta,jk as Ua,Yk as Va,Kb as Wa,Vb as Xa,Xb as Ya,jb as Za,ow as _a,tw as $a,uw as ab,iw as bb,pw as cb,mw as db,mo as eb,xw as fb,Cd as gb,Yb as hb,Iw as ib,hw as jb,gw as kb,In as lb,pC as mb,mC as nb,xC as ob,IC as pb,ta as qb,hC as rb,Ed as sb,EC as tb,Hw as ub,Gw as vb,HC as wb,aa as xb,Uw as yb,Ww as zb,qw as Ab,$w as Bb,jC as Cb,jo as Db,_d as Eb,Dd as Fb,Vw as Gb,Md as Hb,Jw as Ib,e_ as Jb,hO as Kb,yO as Lb,FO as Mb,LO as Nb,te as Ob,vf as Pb,rT as Qb,Ct as Rb,jp as Sb,fT as Tb,Bo as Ub,Zp as Vb,cT as Wb,Of as Xb,Ya as Yb,Za as Zb,hT as _b,bT as $b,CT as ac,ST as bc,yT as cc,Fc as dc,qr as ec,$r as fc,Bf as gc,Pf as hc,Po as ic,kf as jc,OT as kc,om as lc,BT as mc,yt as nc,Mf as oc,RT as pc,kT as qc,nm as rc,wT as sc,rB as tc,_s as uc,nB as vc,Wx as wc,lB as xc,kt as yc,$0 as zc,_r as Ac,z0 as Bc,XI as Cc,K0 as Dc,U0 as Ec,W0 as Fc,fm as Gc,Ft as Hc,DT as Ic,Gf as Jc,Lt as Kc,Uf as Lc,Qy as Mc,X as Nc,Jy as Oc,s as Pc,La as Qc,he as Rc,ZT as Sc,Xf as Tc,tF as Uc,Ye as Vc,ti as Wc,va as Xc,Qf as Yc,Um as Zc,kE as _c,ts as $c,Fs as ad,UO as bd,zO as cd,fr as dd,tx as ed,GE as fd,ae as gd,Lr as hd,SB as id,vr as jd,At as kd,OB as ld,GB as md,Er as nd,Or as od,$B as pd,zB as qd,Us as rd,KB as sd,VB as td,XB as ud,$s as vd,Rr as wd,cF as xd,iF as yd,Tl as zd,Ys as Ad,Qs as Bd,RI as Cd,ns as Dd,W as Ed,Bl as Fd,IF as Gd,ni as Hd,hF as Id,gF as Jd,li as Kd,SF as Ld,fi as Md,yF as Nd,Ea as Od,LF as Pd,vF as Qd,TF as Rd,EF as Sd,ct as Td,OF as Ud,BF as Vd,PF as Wd,pi as Xd,DF as Yd,wl as Zd,bi as _d,Ci as $d,Si as ae,Ba as be,MF as ce,cx as de,Ho as ee,X0 as fe,j0 as ge,Y0 as he,Z0 as ie,Q0 as je,ps as ke,Et as le,dr as me,Ix as ne,sO as oe,cO as pe,_t as qe,Dt as re,eP as se,ro as te,Nt as ue,aP as ve,rP as we,nP as xe,Cc as ye,fP as ze,pP as Ae,Vh as Be,Yh as Ce,co as De,mA as Ee,xA as Fe,IA as Ge,hA as He,bA as Ie,CA as Je,SA as Ke,fg as Le,yA as Me,FA as Ne,LA as Oe,vA as Pe,TA as Qe,K as Re,EA as Se,dg as Te,OA as Ue,BA as Ve,ig as We,PA as Xe,qt as Ye,qo as Ze,no as _e,AA as $e,$c as af,zt as bf,Kt as cf,RA as df,kA as ef,wA as ff,_A as gf,DA as hf,MA as if,NA as jf,HA as kf,GA as lf,UA as mf,Xt as nf,jt as of,Yt as pf,Zt as qf,WA as rf,Ue as sf,qA as tf,$A as uf,zA as vf,KA as wf,VA as xf,XA as yf,ke as zf,jA as Af,YA as Bf,Zr as Cf,ZA as Df,Qr as Ef,QA as Ff,JA as Gf,eR as Hf,oR as If,Ug as Jf,tR as Kf,Yc as Lf,Zc as Mf,Qc as Nf,Wg as Of,aR as Pf,rR as Qf,$ as Rf,po as Sf,on as Tf,Kg as Uf,td as Vf,iR as Wf,pR as Xf,mR as Yf,xR as Zf,IR as _f,hR as $f,gR as ag,bR as bg,CR as cg,SR as dg,yR as eg,FR as fg,UF as gg,WF as hg,nd as ig,OR as jg,BR as kg,ub as lg,wR as mg,_R as ng,HR as og,GR as pg,qR as qg,$R as rg,dd as sg,VR as tg,XR as ug,jR as vg,YR as wg,bb as xg,JR as yg,vS as zg,BS as Ag,fa as Bg,z_ as Cg,TS as Dg,ES as Eg,tu as Fg,OS as Gg,Y_ as Hg,o1 as Ig,Qb as Jg,eC as Kg,tC as Lg,Cw as Mg,vw as Ng,Tw as Og,Ew as Pg,tk as Qg,ak as Rg,Pw as Sg,mD as Tg,xD as Ug,Xn as Vg,jn as Wg,ny as Xg,ly as Yg,Yn as Zg,cy as _g,Yo as $g,oa as ah,kw as bh,Sn as ch,p_ as dh,m_ as eh,x_ as fh,ku as gh,py as hh,my as ih,xy as jh,ED as kh,OD as lh,Sy as mh,Fy as nh,yu as oh,RD as ph,kD as qh,_u as rh,DD as sh,yn as th,Kd as uh,Fn as vh,Vd as wh,ud as xh,lk as yh,id as zh,Sb as Ah,fk as Bh,sk as Ch,ck as Dh,dk as Eh,yb as Fh,uk as Gh,ik as Hh,pk as Ih,Lb as Jh,mk as Kh,Eb as Lh,xk as Mh,$y as Nh,CM as Oh,Ck as Ph,yk as Qh,C_ as Rh,S_ as Sh,Yd as Th,F_ as Uh,Zo as Vh,gS as Wh,T_ as Xh,Zd as Yh,la as Zh,bS as _h,E_ as $h,O_ as ai,B_ as bi,P_ as ci,A_ as di,R_ as ei,k_ as fi,w_ as gi,Ok as hi,Ak as ii,Rk as ji,kk as ki,ma as li,Ky as mi,Vy as ni,LM as oi,vM as pi,TM as qi,CS as ri,Jd as si,SS as ti,FS as ui,M_ as vi,N_ as wi};