efficient-storefront-blocks 0.28.0 → 0.30.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.
@@ -1,16 +0,0 @@
1
- import{B as Il,C as Ce,D as Se,E as je,F as Xe,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 Fo,a as cl,aa as ye,ba as nt,c as dl,d as ga,h as pl,i as So,k as ml,r as ba,w as xl,x as Ca,y as yo}from"./chunk-Y5IPDNQI.js";import{a as sl,c as ee,l as ul,m as Co,n as il,u as Fa}from"./chunk-WZYE7TP3.js";var ft=null,ju="en",vl=null;function Yy(e,o,t){ft=e??null,ju=o||"en",vl=t??null}function j(){return vl}function Zy(){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 eF,useEaselSession as Ye}from"efficient-easel/screen/lib/session-context";import{hostLoadRefusalOf as Xu,hostUnreachableMessage as Yu,isBackendError as Zu,provideHostFailures as Qu,readHostFailure as Ju,STATUS_UNREACHABLE as ei,WebsiteBackendError as va}from"efficient-easel/screen/lib/backend-error";import{createEaselHost as fF,DETACHED_EASEL_HOST as sF,EaselHostContext as cF,EaselHostProvider as dF,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",mF="cart-drawer";var oi={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 xF(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function IF(e){let o=e??{},t=oi;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 ti=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],bF={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"},ai={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"},CF={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 ri(e){return typeof e=="string"&&So.includes(e)?e:null}function Pl(e){let o={};for(let t of ti){let a=ri(e[ai[t]]);a&&(o[t]=a)}return o}var Ea="site-footer";var yF=Ea,FF={desktop:!0,tablet:!0,mobile:!0},LF={desktop:!1,tablet:!1,mobile:!1},Ta=1,Al=6,vF=Array.from({length:Al-Ta+1},(e,o)=>Ta+o),ct={desktop:6,tablet:3,mobile:2},ni={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 TF(e){if(typeof e=="number")return ni[_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 li(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type==="Footer")??null:null}function EF(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===fi)??li(e):null}var fi="SiteFooter",si="SiteHeader";function OF(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===si)??null:null}var ci="subscribe-popup",wF="subscribe-popup";var di=[ci,Ea,Bl];function wl(e){return di.includes(e)}var ui=["delay","scroll","exit"],ii=["all","chosen"],pi=["visit","days","never"],mi=["right","left"],xi={min:0,max:60},Ii={min:10,max:90},hi={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,gi=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=gi(e,t);return Math.min(o.max,Math.max(o.min,Math.round(a)))}function bi(e){return typeof e.hideAfter=="string"?dt(pi,e.hideAfter,Ba.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Ba.hideAfter}function Ci(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 Si(e,o){return Array.isArray(e)?_l(e,[]):o}function yi(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 _F(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:yi(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:Si(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,xi,t.autoOpenDelaySec),trigger:dt(ui,o.trigger,t.trigger),scrollPercent:Oa(o.scrollPercent,Ii,t.scrollPercent),showOn:dt(ii,o.showOn,t.showOn),showOnPages:Ci(o.showOnPages),hideAfter:bi(o),hideDays:Oa(o.hideDays,hi,t.hideDays),formSide:dt(mi,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 Fi}from"react/jsx-runtime";import{createContext as Li,useCallback as vi,useContext as Ti,useState as Pa}from"react";var Dl=Li({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{}});function HF({children:e,editFooter:o}){let[t,a]=Pa(null),[r,n]=Pa(null),[l,f]=Pa(0),c=vi(()=>f(u=>u+1),[]);return Fi(Dl.Provider,{value:{footerBlock:t,setFooterBlock:a,headerGroup:r,setHeaderGroup:n,editFooter:o,refreshToken:l,refreshFooter:c},children:e})}var GF=()=>Ti(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 WF(){return Object.fromEntries(Ze.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var Ei={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."},qF=["Grid"],$F=Array.from(new Set([...Ze.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(Ei)])),zF=Object.fromEntries(Ze.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),Oi={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={...Oi,...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 KF=Aa("general"),VF=Aa("commerce"),jF=Aa("service"),Bi="Flex",Fe="Box",XF=`${Fe}es`;function Pi(e){return e==="section"?"Blank section":Fe}function YF(e,o,t){return e===Bi?Pi(o):t}var De=sl,Hl=e=>e.blocks;import{jsx as it}from"react/jsx-runtime";import{createContext as Ai,lazy as Ri,Suspense as ki,useContext as wi}from"react";var _i={Link:dl,Image:cl},Di=Ai(_i);function Gl(){return wi(Di)}function rL(e){let{Link:o}=Gl();return it(o,{...e})}function Ul(e){let{Image:o}=Gl();return it(o,{...e})}function nL(e){let o=Ri(e);return function(t){return it(ki,{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 Lo={"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 Mi(e){let o=oe.indexOf(Le(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function Ni(e){return 1+Mi(e).band*6}function fL(e){return Ni(e)+1}function Le(e){return oe.includes(e)?e:pt}function sL(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function cL(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`${Lo[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=Lo[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 dL(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 Hi(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=Hi(e);return o.length===0?null:o.map(({anchor:t,total:a,hidden:r})=>{let n=Lo[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 uL(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===Ui?t.siblings:[]}function iL(e,o){let t=$l(e,o);return t?t.ancestorTypes.filter(a=>a===ql).length:Gi}var Gi=1,Ui="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 xL,FOOTER_TYPE as xt,HEADER_TYPE as Me,locateNode as zl,missingPinnedTypes as IL,nestsInTree as hL,newNodeId as vo,pinnedDuplicateIds as gL,pinnedDuplicateIndices as bL,ROOT_ZONE as CL,slotFieldsOf as SL,TREE_MAX_DEPTH as yL}from"efficient-easel/screen/lib/puck/content-tree";import{jsx as To,jsxs as dp}from"react/jsx-runtime";import{createContext as up,useContext as ip}from"react";import{jsx as Qe,jsxs as Xl}from"react/jsx-runtime";import{useEffect as Da,useRef as Xi,useState as It}from"react";import{jsx as Kl,Fragment as Wi,jsxs as qi}from"react/jsx-runtime";import{useEffect as $i,useRef as Vl,useState as zi}from"react";var Ki="#t=0.001",Vi=2;function ji(e,o){if(e.readyState<Vi||!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 jl({src:e,objectPosition:o="50% 50%",onError:t}){let a=Vl(null),r=Vl(null),[n,l]=zi(!1);return $i(()=>{let f=a.current,c=r.current;if(n||!f||!c)return;let u=()=>{ji(f,c)&&l(!0)};return u(),f.addEventListener("loadeddata",u),f.addEventListener("seeked",u),()=>{f.removeEventListener("loadeddata",u),f.removeEventListener("seeked",u)}},[n]),qi(Wi,{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}${Ki}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var Yi=.5;function Yl({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:a=Yi,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=Xi(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 Xl("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&&Xl("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(jl,{src:f,objectPosition:r,onError:()=>I(!0)},f)]})}var Zl=["top","middle","bottom"],Ql=["left","center","right"],Jl="bottom",ef="left",Zi={top:"Top",middle:"Middle",bottom:"Bottom"},Qi={left:"Left",center:"Center",right:"Right"};var kL="Up and down",wL="Sideways",Ji={top:"flex-start",middle:"center",bottom:"flex-end"},ep={left:"flex-start",center:"center",right:"flex-end"},op="--sf-hero-phone-y",tp="--sf-hero-phone-x";function ap(e){return Zl.includes(e)?e:Jl}function rp(e){return Ql.includes(e)?e:ef}function of(e,o){let t=ap(e),a=rp(o),r={};return t!==Jl&&(r[op]=Ji[t]),a!==ef&&(r[tp]=ep[a]),r}function _L(){return Zl.map(e=>({label:Zi[e],value:e}))}function DL(){return Ql.map(e=>({label:Qi[e],value:e}))}var np="#0A0A0A",lp=[[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(np);return`linear-gradient(180deg, ${lp.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}],fp=Ma.filter(e=>e.ink);function sp(e){let o={color:e.fg};for(let{role:t,token:a}of fp)o[a]=e[t];return o}var cp={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(sp(cp));var Na=up({});function VL({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?Co(a):void 0,pe=B?Co(n):Co(a)??Co(n),Z=typeof r=="number"?r/100:1;return dp("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:[To(Yl,{videoSrc:H,posterSrc:pe,showVideo:B,playbackRate:Z,objectPosition:l,quiet:O}),c>0&&To("div",{className:"absolute inset-0 z-[2]",style:{background:f,opacity:Math.min(Math.max(c,0),100)/100}}),af(h)&&To("div",{className:"absolute inset-0 z-[2]",style:{background:rf(S),...x!==void 0?{opacity:x/100}:null}}),To("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&&To(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",pp="Text & media",mp="Layout & structure",xp=[{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:pp})),Ip=(Ze.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:mp})),ff=[...xp,...Ip],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}],YL=Ha.map(e=>e.type),hp=1,gp=Ha.filter(e=>e.type!=="HeroGroup");function bp(e){return e<hp?Ha:gp}var Cp={Flex:{slot:Je,choices:()=>ff},Grid:{slot:Je,choices:()=>ff},HeroGroup:{slot:Je,choices:bp}};function sf(e,o=0){let t=Cp[e];return t?{slot:t.slot,choices:t.choices(o)}:null}var Sp="ImageBlock",yp=3,ht=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:vo(e),...t}}),Fp=e=>({...e?.(D)??{},direction:"column",[Je]:[ht(Sp,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:yp},()=>Fp(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function av(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 rv(e,o){let t=ve[e];return t?{slot:t.slot,children:t.seeds(o).map(a=>({type:t.childType,props:{id:vo(t.childType),...a}}))}:null}var Lp={general:!0,commerce:!0,service:!0};function Ga(e){let o=e?.sets;return o?Object.fromEntries(Ml.map(t=>[t,o.includes(t)])):Lp}function sv(e=ee()){return Ga(e.blocks)}function G(e,o,t,a={}){return{type:e,props:{...o(e),id:t(e),...a}}}var vp={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 vp[e]??null}import{blockTypesIn as Ua}from"efficient-easel/screen/lib/puck/block-types-in";var df=()=>({}),uf=new Map;function Tp(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 Ep(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)&&Tp(c).every(f);return l.set(c,i),i};return{sets:o,offers:f}}var Op="block-offer";function Wa(e=ee()){return e.cache(Op,()=>Ep(Hl(e)))}function Sv(e,o=ee()){let t=Wa(o);return t?t.offers(e):!0}var gt="SiteHeader",qa="SiteFooter",pf="sections",Fv=[gt,qa],Lv=e=>e===gt||e===qa,vv=e=>`${e}:${pf}`;function Tv(e,o,t=[]){return{type:e,props:{id:o,[pf]:t}}}var Bp=new Set(["Footer",gt,qa]);function Ev(e){let o=new Set,t=!1,a=e.filter(r=>{let n=r?.type??"";return n==="Header"?(t=!0,!1):Bp.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?a:e}function Ov(e,o){return e.some(t=>t?.type===o.type)?e:o.type===gt?[o,...e]:[...e,o]}import{PreviewPartsProvider as Av,usePreviewParts as Rv}from"efficient-easel/screen/components/PreviewPartsContext";import{jsx as Pp}from"react/jsx-runtime";import{createContext as Ap,useContext as Rp,useMemo as kp,useState as wp}from"react";var _p={partStyle:null,setPartStyle:()=>{}},mf=Ap(_p);function Dv({children:e}){let[o,t]=wp(null),a=kp(()=>({partStyle:o,setPartStyle:t}),[o]);return Pp(mf.Provider,{value:a,children:e})}function Mv(){return Rp(mf)}import{applyMark as qv,markupTools as $v,MARKUP_TOOLS as zv,COPY_FIELD_TOOLS as Kv,STOREFRONT_MARKUP as Vv,tokenizeInline as jv,stripInline as Xv,isSafeLinkHref as Yv}from"efficient-easel/markup";import{applyMark as Dp,markedAt as Mp,markupTools as Np,MARKUP_TOOLS as Hp,parseMarkup as Gp,RETIRED_MARKS as Up,STOREFRONT_MARKUP as Wp,tokenizeInline as Qv}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},Gv={highlight:{...$a},strong:{...$a},quiet:{...$a}};var gf=bt.map(e=>({open:le[e].delimiter,close:le[e].delimiter,kind:le[e].kind})),eT=[{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`}],qp=new Set(gf.map(e=>e.open)),bf=[...Wp.filter(e=>!qp.has(e.open)),...gf];function Ka(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Va(e){return Gp(typeof e=="string"?e:"",bf)}var $p=Hp.map(e=>e.style).filter(e=>!Up.includes(e)).filter(e=>bf.some(o=>o.kind===e));function Cf(){return Np($p)}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 Dp(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:Mp(e,o,t,a)}function Eo(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 tT(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)`,aT=`max-w-[${Ct}]`,rT=`max-w-[${te.default}px]`;function zp(e){return typeof e!="number"||!Number.isFinite(e)?te.default:Math.round(Math.min(Math.max(e,te.min),te.max))}function nT(e){let o=zp(e);return o===te.default?{}:{[Tf]:`${o}px`}}var Oo={min:0,max:80,step:4,default:40},Ef="--sf-site-gutter",q=`var(${Ef},${Oo.default}px)`,Kp=`px-[${q}]`;var Ee={md:`min(24px,${q})`,sm:`min(20px,${q})`,frame:`min(24px,${q})`,tabs:`min(16px,${q})`},lT=[[`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"],[Kp,"px-10"]];function Vp(e){return typeof e!="number"||!Number.isFinite(e)?Oo.default:Math.round(Math.min(Math.max(e,Oo.min),Oo.max))}function fT(e){let o=Vp(e);return o===Oo.default?{}:{[Ef]:`${o}px`}}var St=`min(var(--sf-page-cap,${Ct}),${Ct})`,sT=`max-w-[${St}]`,cT=`max-w-[min(var(--sf-page-cap,${te.default}px),${te.default}px)]`,Of="--sf-hero-cap",jp=`var(${Of},none)`,dT=`max-w-[${jp}]`,ja="--sf-hero-bleed-m",Xa="--sf-hero-bleed-w",uT=`var(${ja},calc(50% - 50vw))`,iT=`var(${Xa},100vw)`,pT=`mx-[var(${ja},calc(50%_-_50vw))]`,mT=`w-[var(${Xa},100vw)]`,Ya="--sf-hero-chrome-x",Za="--sf-hero-chrome-cap";function xT(e){return e===!0?{[Of]:St,[ja]:"auto",[Xa]:"100%",[Ya]:"24px",[Za]:"none"}:{}}var Qa=`calc(${Ct} - ${q}*2)`,IT=`max-w-[${Qa.replace(/ /g,"_")}]`;var Xp="--sf-chrome-cap",Yp=`var(${Xp},${Qa})`,hT="data-page-width";function gT(e){return e==="full"?"full":null}function bT(e){return e==="full"?null:vf(e==="content"?Qa:Yp)}function CT(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 Bo(e){return e===Bf?"/":`/${e}`}function kf(e){return`/journal/${e}`}function TT(e){return`/wheels/${e}`}function wf(e,o){return`${Bo(e)}#${o}`}function Zp(e){return Pf(e)}function Qp(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=Qp(r?.props?.anchor);if(!n)continue;let l=Zp(n);!l||o.has(l)||(o.add(l),t.push({slug:l,name:n}))}return t}function ET(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,Jp="sf-section-accent",Df="Color",Mf=new Set(["CategoryBar","DocTabs"]),PT=new Set(["Flex"]),em=0;function Ja(e){return e===yt?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:em}function AT(e){return e??yt}function om(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 RT(e){let o=Ja(e.sectionAccent);return o===null?null:{className:Jp,style:om(o)}}var tm=["column","row","tabs"],Nf="Direction",am={column:"Stacked",row:"One row",tabs:"Tabs"},Hf={Flex:tm,HeroGroup:["column","row"]},rm={Flex:"row",HeroGroup:"column"},nm={column:"flex-col",row:"flex-row",tabs:"flex-col"};function Ft(e,o){return Hf[e].includes(o)?o:rm[e]}function wT(e,o){return nm[Ft(e,o)]}function Gf(e){return Hf[e].map(o=>({label:am[o],value:o}))}import{ScreenDocumentContext as Lt,ScreenDocumentProvider as MT,useScreenDocument as Uf}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as _,jsxs as He,Fragment as Am}from"react/jsx-runtime";import{useCallback as Rm,useContext as km,useEffect as wm,useId as os,useRef as Jf,useState as es}from"react";import{ThemeIcon as _m}from"efficient-easel/icons";import{SettingsField as Dm}from"efficient-easel/panel";import{jsx as F,jsxs as Be,Fragment as gm}from"react/jsx-runtime";import{SettingsField as ar,SettingsGroupSub as bm}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 um}from"efficient-easel/panel";import{AccentIcon as im}from"efficient-easel/icons";import{Tooltip as pm}from"efficient-shell/ui";import{jsx as eo,jsxs as fm}from"react/jsx-runtime";import{ColorPicker as qf,HexInput as sm}from"efficient-shell/ui";import{typedHex as er}from"efficient-easel/pick";import{typedHex as lm}from"efficient-easel/pick";function Wf(e){let o=new Set,t=[];return yo(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?lm(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(dm,{value:e,onChange:o,label:s(f??t),id:a,caption:r,inherited:n,after:l})}function cm(){let{theme:e}=Ie();return Wf(e).map(o=>({value:o.value,label:o.name}))}function dm({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l}){let f=cm(),c=e?null:er(n??""),u=r!==void 0&&(!e||er(r)!==er(e))?r:null,i=m=>{m!==e&&o(m)};return fm("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(sm,{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 XT({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 mm(e){let o=Se(e.accent,or(e));return o===null?null:{ratio:o,grade:Xe(o)}}function xm(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&&Xe(r)==="good"})}var Im={good:"Easy to read","large-only":je["large-only"],hard:je.hard};function zf({value:e,onChange:o}){let t=mm(e),a=t?.grade,r=t&&t.grade!=="good"?xm(e):[];return Oe(um,{label:s("Main color"),icon:Oe(im,{}),hint:t?s(Im[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:hm(a,!0)}),Oe("div",{className:"sf-readability-suggestions",children:r.map(n=>{let l=Se(n,or(e));return Oe(pm,{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 hm(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 Cm,GroundIcon as Sm,LayoutIcon as ym,SquareIcon as Fm,TextSmallIcon as Lm,TypeIcon as Kf}from"efficient-easel/icons";var Po=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(Lm,{}),Background:F(Sm,{}),"Panels & cards":F(ym,{}),Borders:F(Fm,{}),"Button color":F(Cm,{}),"Button text color":F(Kf,{})};function vm({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 Tm({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 Em({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=Xe(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(je[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 Om=[{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(gm,{children:Om.map(r=>"colour"in r?F(zf,{value:e,onChange:o},"colour"):"group"in r?F(bm,{title:s(r.group)},r.group):"button"in r?F(Tm,{value:e.button,accent:a.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in r?F(Em,{colors:e,accent:a.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):F(vm,{label:r.label,colorKey:r.key,value:a[r.key],onChange:(n,l)=>o({...e,[n]:l}),idPrefix:t},r.key))})}function jf({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=Po(e),m=e<Ca.length&&!o.brandInk?Ca[e]:null,p=Xe(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(je[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 Xf({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 Bm,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 Pm(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 Pm({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 Bm(()=>()=>{i()},[i]),{persist:m,flush:i}}var Mm="Follow the page",AE="Follow the slideshow",Nm=e=>s("Editing {name} changes it everywhere.",{name:e});function Hm({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 Gm({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(Am,{children:[He("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(yt),children:[_(Hm,{}),_("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:Po(o)})}),e.map((l,f)=>f===o?null:_(jf,{role:"option",index:f,colors:l,selected:!1,onPick:()=>t(f),onEdit:()=>a(f)},f))]})}function Um({index:e,colors:o,onChange:t,onDone:a}){let r=Po(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:Nm(r)})]})}function ts({value:e,onChange:o,followLabel:t,hint:a}){let{theme:r,setTheme:n}=Ie(),l=yo(r),f=km(Lt),c=f?.tokenRef,u=f?.siteId??null,i=!f?.capabilities?.hasSiteTheme,{persist:m,flush:p}=Qf({themeFromDocument:i,tokenRef:c,siteId:u}),I=yo(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=Rm(()=>{y(!1),H(null)},[]);wm(()=>{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:[_(Dm,{label:s("Theme"),icon:_(_m,{}),labelId:`${Q}-label`,hint:a,children:_(Xf,{colors:O,onEdit:h!==null?()=>{H(h),y(!1)}:void 0,name:S?Po(h):s(t??Mm),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:_(Gm,{themes:x,value:h,onPick:V,onEdit:w=>{H(w),y(!1)},menuId:Q,followLabel:t})}),B!==null&&x[B]&&_(Um,{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 Wm,ButtonIcon as qm,DollarIcon as $m,HashIcon as zm,LinkIcon as Km,NoteIcon as Vm,TagIcon as jm,TextLinesIcon as Xm}from"efficient-easel/icons";var as={body:Xm,button:qm,link:Km,label:jm,number:zm,price:$m,note:Vm,title:Wm},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 _E=Object.keys(as);var DE=Object.keys(rs);var Ym="#ffffff",Zm=/^#[0-9a-fA-F]{6}$/;function sr(e){return Qm(e)?e:Ym}function Qm(e){return typeof e=="string"&&Zm.test(e)}function NE(e){return{"--bg":sr(e)}}import{jsx as Ao,jsxs as ex}from"react/jsx-runtime";import{SettingsField as ox}from"efficient-easel/panel";import{LinkIcon as tx}from"efficient-easel/icons";import{LinkPicker as ax}from"efficient-shell/ui";import{useEffect as ss,useMemo as cr,useRef as rx,useState as Tt}from"react";function ns(){return ee().auth.token}var Jm=()=>({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=Jm(),a=e.pages.map(i=>({value:Bo(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 nx=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}))}),lx=cs(async(e,o)=>await De().blog?.posts(o?{siteId:o}:void 0)??[]);function fx({value:e,onChange:o,label:t="Link",data:a,filters:r}){let n=cr(()=>fs(a,r),[a,r]),l=s(t);return Ao(ox,{label:l,icon:Ao(tx,{}),children:Ao(ax,{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=rx(!0);ss(()=>(B.current=!0,()=>{B.current=!1}),[]),ss(()=>{let v=!0;return nx(r??void 0).then(V=>v&&B.current&&u(V)),f&&lx(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=>Bo(v.slug)),Q=l&&y&&(a==="/"||Z.includes(a))?y:void 0;return ex("div",{children:[Ao(fx,{value:a,onChange:o,label:t,data:H,filters:pe}),Q&&Ao(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},sx=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 cx="sf-gap-overlap",dx="--sf-gap-overlap",xs="--sf-block-gap",ux="--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 lO(e){let o=ix(e);return o===null?{}:{[xs]:`${o}px`,[ux]:`${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 px={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function fO(e,o,t){if(!ir(e,o)){let r=`${Et[e]}px`,n=sx.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:` ${cx} ${px[t]}`,style:{gap:"0px",[dx]:`${-a/2}px`}}}import{jsx as d,jsxs as fo,Fragment as we}from"react/jsx-runtime";import{cloneElement as Ec,useId as nh,useRef as Vr,useState as Oc}from"react";import{useEasel as so,useSelectedFields as lh}from"efficient-easel/easel";import{hidableText as Is,readHidable as Ae}from"efficient-easel/screen/lib/puck/hidable";import{ANCHOR_FIELD_KEYS as iO,FOLD_FIELD_MARKER as Ot,foldMetaOf as ce,LINK_FIELD_MARKER as Ro,MEDIA_FIELD_MARKER as hs,SCAFFOLD_FIELD_MARKER as ko,TEXT_FIELD_MARKER as M,textFieldIdentifier as mx}from"efficient-easel/screen/lib/puck/field-markers";import{jsx as Ls}from"react/jsx-runtime";import{useCallback as gx,useEffect as bx,useRef as Cx,useState as Sx}from"react";import{useEasel as yx}from"efficient-easel/easel";import{SettingsAction as Fx}from"efficient-easel/panel";function pr(e){return typeof e=="number"&&Number.isFinite(e)}function xO(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,[xx]:r}}var xx="--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 Ix="--sf-card-box-radius",hx="--sf-site-card-radius",CO="sf-section-bleeds";function xr(e){return typeof e=="number"&&Number.isFinite(e)}function SO(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{[Ix]:a}}function yO(e){let o=e[Bt];return typeof o=="string"?{[hx]: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 Lx=2200,vx="apply-corners-to-siblings",Tx="Apply to all cards";function Ex({plan:e,doneCount:o,onPress:t}){return Ls(Fx,{id:vx,label:s(Tx),note:Cs(e),disabled:!e.can,done:o!==null,doneLabel:Ss(o??0),onPress:t})}function vs(){let{appState:e,config:o}=yx(c=>c),t=Fs(),[a,r]=Sx(null),n=Cx(null);bx(()=>()=>{n.current&&clearTimeout(n.current)},[]);let l=bs(o,e.data.content??[],e.ui.itemSelector),f=gx(()=>{ys(l,t.replaceComponent),l.can&&(r(l.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>r(null),Lx))},[l,t]);return Ls(Ex,{plan:l,doneCount:a,onPress:f})}var Ts=1;function Ox(e){return ye(e)}function HO(e){let o=Ox(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var Es=1,Os="Corners";function Bx(e){return ye(e)}function qO(e,o){let t=Bx(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 Px="sf-wall--";function Ax(e){return`${Px}${e}`}function zO(e){let o=ue[e],t=`.${Ax(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,Rx=3;var kx=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 wx(e){return hr(e,1,Pt)??kx}function jO(e,o){return hr(e,Rs,Rx)??(wx(o)===4?2:Rs)}function XO(e){return e==null||e===""?null:hr(e,1,Pt)}var YO="data-sf-span";function ZO(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 _x}from"react/jsx-runtime";var Dx="sf-hint-keep";function ks({children:e}){return _x("span",{className:Dx,children:e})}import{AdjustIcon as fh,AlignLeftIcon as sh,AlignSeparateIcon as ch,AnimationIcon as Bc,BackgroundIcon as dh,BlockSectionIcon as uh,CartIcon as ih,ColumnWidthsIcon as Pc,ColumnsIcon as ph,CornerIcon as mh,DirectionDownIcon as xh,DirectionLeftIcon as Ih,DirectionRightIcon as hh,DirectionUpIcon as gh,DollarIcon as bh,FinishIcon as Ch,GapIcon as Ac,GridIcon as Sh,GroundIcon as yh,HashIcon as Rc,HeightIcon as Fh,ImageIcon as Lh,ListIcon as vh,LocationIcon as Kr,PaddingBottomIcon as Th,PaddingLeftIcon as Eh,PaddingRightIcon as Oh,PaddingTopIcon as Bh,PageIcon as kc,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 Mx=["fade","rise","scale"],gr="none",ws=[{label:"None",value:gr},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function tB(e){return Mx.includes(e)?e:null}var _s="data-sf-anim",wo="data-sf-anim-state";function aB(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(wo,"armed");let a=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){a.disconnect(),Nx(e);break}},{threshold:0});return a.observe(e),()=>{a.disconnect(),e.removeAttribute(wo)}}function Nx(e){if(!e.getAttribute(_s))return;e.removeAttribute(wo),e.offsetWidth,e.setAttribute(wo,"play");let o=t=>{t.target===e&&(e.removeAttribute(wo),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var rB=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 _P,CornersInput as zh,DateTimePicker as Kh,FOCAL_DEFAULT as Vh,Slider as jh,Tooltip as Ut}from"efficient-shell/ui";import{jsx as U,Fragment as Sr,jsxs as yr}from"react/jsx-runtime";import{useEffect as Hx,useState as Gx}from"react";import{MarkBar as Ux,markSelection as Wx,useCaretEdit as qx}from"efficient-easel/copy";import{RevertIcon as $x}from"efficient-easel/icons";import{IconButton as zx,Tooltip as Kx}from"efficient-shell/ui";function Vx({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 jx=["bold","italic","strike","highlight"],Xx=Object.fromEntries(jx.map(e=>[e,U(Vx,{style:e},e)])),Ds="Clear formatting";function Yx(e,o,t){return Wx(e,o,t,yf)}function Zx(e){let[o,t]=Gx(null);return Hx(()=>{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 Qx({target:e,value:o,onChange:t,disabled:a=!1,label:r="Formatting"}){let n=qx({target:e,onChange:t}),[l,f]=Zx(e),c=p=>n(I=>{let x=Yx(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=Eo(o);return U(Ux,{tools:u,onApply:c,pressed:i,disabled:a,glyphs:Xx,ariaLabel:s(r),actions:U("span",{className:"sf-markup-clear",children:U(Kx,{content:s(Ds),children:U(zx,{size:"sm",onMouseDown:p=>p.preventDefault(),onClick:()=>t(m),disabled:a||m===o,"aria-label":s(Ds),children:U($x,{size:14})})})})})}var Fr=Qx;import{DEVICE_FIELD_MARKER as IB,DEVICE_HIDDEN_ATTR as hB,DEVICE_NOTE as gB,deviceField as ae,deviceMetaOf as Lr,deviceNote as bB,shownTier as CB,withoutDeviceGate as SB}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as LB,NO_CONTROL_FIELD as vB,noControlField as vr,NoControlMark as At,noControlMetaOf as TB}from"efficient-easel/screen/lib/puck/panel-no-control-mark";function _o(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 tI}from"react/jsx-runtime";import{createContext as aI,useContext as rI}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 Jx=["anchor"],eI=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Do(e){return Jx.includes(e)||eI.test(e)}var oI={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"}}};oI.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var AB=Object.fromEntries(Object.entries(Ms).map(([e,o])=>[e,Object.keys(o)])),RB=Object.fromEntries(Object.entries(Ns).map(([e,o])=>[e,[...o]]));var Hs=aI(!1);function NB({children:e}){return Tr(Hs.Provider,{value:!0,children:e})}function nI(){return rI(Hs)}function Gs({name:e,children:o}){return!nI()||!e||Do(e)?Tr(tI,{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 WB(e){return z(Br,Er,e)}function qB(e){return z(Pr,Or,e)}var Us="sf-card-index",Mo="sf-card-index",$B="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",lI={plain:`counter(${Mo})`,padded:`counter(${Mo}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Mo}, decimal-leading-zero)`};function zB(e,o){return o==="off"?"":`.${e}{counter-reset:${Mo}}.${e} .${Us}{counter-increment:${Mo}}.${e} .${Us}::before{content:${lI[o]}}`}function KB(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 fI}from"efficient-easel/screen/lib/puck/text-control-kinds";import{jsx as Ar}from"react/jsx-runtime";import{useState as uI}from"react";import{Button as iI,ImageFocusPoint as pI}from"efficient-shell/ui";import{jsx as X,jsxs as qs}from"react/jsx-runtime";import{ChevronIcon as sI}from"efficient-easel/icons";import{Tooltip as cI}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:[X("span",{className:"sf-style-caret","aria-hidden":"true",children:X(sI,{size:13})}),t?X("span",{className:"es-field-icon",children:t}):null,X("span",{className:"sf-style-name",children:s(o)}),a!=null?typeof a=="string"?X(cI,{content:a,className:"sf-style-sample-tip",children:X("span",{className:"sf-style-sample",style:r,children:a})}):X("span",{className:"sf-style-sample",style:r,children:a}):null,X("span",{className:`sf-style-slot${f?" is-saved":""}`,children:X(dI,{})})]}),n&&X("div",{className:"sf-style-body",children:c})]})}function dI(){return X("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:X("polyline",{points:"20 6 9 17 4 12"})})}function zs({label:e,value:o,onChange:t,image:a}){let[r,n]=uI(!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(pI,{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 mI}from"react/jsx-runtime";import{SettingsField as Ks}from"efficient-easel/panel";import{ImageIcon as Vs,PlayIcon as js}from"efficient-easel/icons";import{ImageBox as xI}from"efficient-easel/pick";import{useEaselStrings as II}from"efficient-easel/strings";import{useContext as hI,useState as Xs}from"react";import{FileIntakeAlert as gI,useFileIntake as bI}from"efficient-shell/file-intake";import{requestMediaPick as Rr,resolveMediaPick as c0}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=II(),c=s(t),[u,i]=Xs(!1),[m,p]=Xs(null),I=a.startsWith("video"),x=hI(Lt),h=bI({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(js,{}):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.")})}):mI("div",{children:[Y(Ks,{label:c,icon:I?Y(js,{}):Y(Vs,{}),children:Y("div",{className:`sf-image-drop${h.dragOver?" is-dragover":""}`,...h.zoneProps,children:Y(xI,{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(gI,{rejections:h.rejections,className:"sf-image-status sf-image-status--error"})]})}import{jsx as Zs}from"react/jsx-runtime";import{useId as CI}from"react";import{FieldSelect as SI}from"efficient-easel/fields";import{SettingsField as yI}from"efficient-easel/panel";function FI(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=CI(),c=`${f}-label`,u=`${f}-button`,i=Array.isArray(t)?t:[];return Zs(yI,{label:s(e),labelId:c,icon:n,hint:l,children:Zs(SI,{id:u,multiple:!0,value:i,options:FI(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 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,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 OI({label:e,options:o,fallback:t,value:a,onChange:r,placeholder:n,bare:l=!1,icon:f}){let c=LI(),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(vI,{id:i,value:p,options:EI(o),onChange:r,placeholder:x,searchPlaceholder:x,...l?{ariaLabel:I}:{ariaLabelledBy:`${u} ${i}`},searchable:!0,groupCount:!0,inline:!0});return l?h:Js(TI,{label:I,labelId:u,icon:f,children:h})}import{default as No}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 BI="sf-pad-top-phone",PI="sf-pad-bottom-phone",AI="--sf-pad-t-phone",RI="--sf-pad-b-phone",kI="sf-pad-left-phone",wI="sf-pad-right-phone",_I="--sf-pad-l-phone",DI="--sf-pad-r-phone";function H0(e,o,t,a,r,n,l,f){let c=ec(e,o)??{},u={},i=["sf-section-pad"];typeof t=="number"&&(i.push(BI),u[AI]=`${t}px`),typeof a=="number"&&(i.push(PI),u[RI]=`${a}px`);let m={};return typeof r=="number"&&(m.paddingLeft=r),typeof n=="number"&&(m.paddingRight=n),typeof l=="number"&&(i.push(kI),u[_I]=`${l}px`),typeof f=="number"&&(i.push(wI),u[DI]=`${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 G0(e,o={}){return{top:tc(e.padTop,e.sectionPaddingTop,o.top),bottom:tc(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var MI=["auto","fixed","screen"],NI=["px","%"];var HI="var(--sf-header-h, 88px)",kr={min:40,max:2e3,step:10,fallback:600},wr={min:10,max:200,step:5,fallback:100},GI="sf-section-minh",ac={base:"--sf-section-minh",small:"--sf-section-minh-s"},nc=e=>typeof e=="string"&&MI.includes(e),UI=e=>typeof e=="string"&&NI.includes(e);function kt(e){let o=nc(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":UI(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} - ${HI})`:`100${l}`;return[`calc(${n("vh")} * ${r})`,`calc(${n("svh")} * ${r})`]}function WI(e){let o=lc(e);if(!o)return;let[t,a]=o;return{display:"grid",[ac.base]:t,...a?{[ac.small]:a}:{}}}var W0=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ao="Height",qI="sf-section-minh-phone",rc={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function _r(e){return nc(e.sectionHeightModePhone)}function q0(e){return kt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function $I(e){let o=WI(e),t=_r(e)?lc({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let a=[GI],r={...o??{}};return t&&(a.push(qI),r[rc.base]=t[0],t[1]&&(r[rc.small]=t[1])),{className:a.join(" "),style:r}}function $0(e){return $I(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 K0(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 V0(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]}],Ho="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",zI={equal:Ho,bigLeft:`${Ho} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${Ho} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${Ho} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${Ho} [&>*:last-child]:min-[800px]:grow-[3]`};function j0(e){return typeof e=="string"?zI[e]??"":""}var uc="Columns on phone",Hr=1,ic=3,KI={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 X0(e){let o=Number(e);return KI[o]??"max-[800px]:flex-col"}var pc="Block spacing",Gr=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],VI="sf-box-gap-only";function Y0(e){return e==="gap"?VI:""}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 Q0(e,o){return e===Dt?_t:e===void 0?o:Mt(e)}var jI=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Mt(e){return e.replace(jI,"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",Go="inherit";function oP(e,o){return Mt(Ur(e,o))}function Ur(e,o){return e===Go?ro:e==null?o:e===!0?ro:e===!1?Nt:e}function tP(e){return typeof e=="string"&&e!==Go?Mt(e):ro}function aP(e){return e!==Nt&&e!=="none"&&e!==""}function bc(e,o){return e===Go||e===!0?!0:e==null?o===ro:!1}var Cc="inherit",Ht="fixed",Sc=e=>typeof e!="number"&&e!==Ht,XI="var(--sf-heading-max, 9999px)";function nP(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}, ${XI})`:r}var YI=["contained","page","full"],yc=["full","page"],Fc={full:"Full width",page:"Content width"},Wr="inherit",ZI=e=>typeof e=="string"&&YI.includes(e),QI=e=>e===Wr;function qr(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:te.default;return QI(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:ZI(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 JI}from"react/jsx-runtime";import{createContext as eh,useContext as oh}from"react";var th=2,ah=th+1,Lc=eh(2);function uP({tier:e,children:o}){return JI(Lc.Provider,{value:e,children:o})}function zr(e){let o=oh(Lc);return ah+Math.max(0,e-o)}import{withStyleKind as Xh}from"efficient-easel/style-clipboard";function Uo(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!ce(t)&&Xh(t,`section:${o}`);return e}function wc(){return null}function Yh(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return d(wc,{},e)}function Zh(e){return e.type===wc}function Wo(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:j()?.panel,label:s(t),changed:!e,detail:Jh(),onReset:o})}function og({inherited:e,onReset:o,label:t}){return d(ne,{words:j()?.panel,label:s(t),changed:!e,detail:Qh(),onReset:o})}function co({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=nh(),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(No,{name:"eye-off",size:14}):d(No,{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 iA(e,o){return{...e,[ko]:o}}function pA(e){let o=e[M];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[M]:{...o,offPage:!0}}}function mA(e){return!e||typeof e!="object"?!1:e[M]?.offPage===!0}function xA(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),uo=(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)})}},hA="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 gA(e,o,t){return uo({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(co,{value:a,onChange:r,label:e,placeholder:o,hint:t})})}function bA(e,o,t){return uo({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(co,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0})})}function fg(e,o,t){return uo({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(co,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function CA(e,o,t){return uo({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(co,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1})})}function SA(e){return{type:"custom",[Ro]:{label:e},render:({value:o,onChange:t})=>d(ds,{value:Is(o),onChange:t,label:e})}}function yA(e,o,t){return uo({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(co,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var FA={Design:fh,Animation:Bc};function LA(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 _c(e,o){return{type:"custom",[Ot]:{label:e,level:o},render:()=>d(cg,{level:o,label:e})}}function K(e){return _c(e,2)}function vA(e){return{type:"custom",render:()=>d(dg,{text:e})}}function dg({text:e}){return d("p",{className:"sf-note",children:s(e)})}function TA(e){return _c(e,1)}function EA(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 jr(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 Dc(e,o){return ug(e)===o?e:{...e,marker:!0,fold:o,render:()=>d(we,{})}}function Mc(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 Nc({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 OA(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=Ic(t,o);return d(k,{label:s(e),icon:d(dh,{}),changed:!r,action:d(ne,{words:j()?.panel,label:s(e),changed:!r,detail:s("the theme's section background"),onReset:()=>a(Dt)}),children:Nc({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(yh,{}),changed:!n,action:d(ne,{words:j()?.panel,label:s(e),changed:!n,detail:s("the theme's image stage"),onReset:()=>a(Go)}),children:Nc({swatches:hc,current:n?ro:Ur(r,o),onPick:a,names:gc})})}}}function qt(e=t=>t,o){return Uo({_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(jh,{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:Wo(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 Hc(e,o){let{min:t,max:a,step:r=1,unsetLabel:n,hint:l,restTrack:f,unsetMark:c}=o;return{type:"custom",render:({value:u,onChange:i})=>{let m=typeof u=="number"?u:null,p=m===null;return d(k,{label:s(e),value:p?c||n===void 0?void 0:s(n):`${m}px`,changed:!p,action:c?Ec(c,{changed:!p,onReset:()=>i(null)}):d(ne,{words:j()?.panel,label:s(e),changed:!p,onReset:()=>i(null)}),hint:typeof l=="string"?s(l):l,children:f?f({min:t,max:a,step:r,px:m,label:e,onChange:i}):qo({min:t,max:a,step:r,value:m??t,readout:!1,ariaLabel:e,onChange:i})})}}}function BA(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 Xr(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(mh,{}),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=lh()}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:Fo,radiusStep:e.step??1,radiusPlaceholder:String(a),disabled:r!==null,disabledReason:r??void 0})}function Gc(){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:j()?.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 Xr({sidesKey:"sectionCornerSides",useFollowed:hg,useClosedReason:()=>Wc()?s(Uc):null,mark:d(Ig,{label:$t}),hint:d(bg,{})})}var Uc="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Wc(){return $r(Vt())}function bg(){return d(we,{children:Wc()?Uc:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function zt(){return Uo({_gShape:K("Shape"),sectionCorners:gg(),sectionCornerSides:Gc()})}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 qc(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=qc(xe),n=a?"Site":"Section";return d(ne,{words:j()?.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 Xr({sidesKey:"cardCornerSides",useFollowed:()=>qc(xe),mark:d(Cg,{label:$t}),hint:d(Sg,{})})}function Fg(){return{type:"custom",render:()=>d(vs,{})}}function PA(){return{_gShape:K("Shape"),cardCorners:yg(),cardCornerSides:Gc(),cardCornersApplyAll:Fg()}}function AA(){return ke("Justify",d(ch,{}),Dr,Dr[0].value)}function RA(){return ke("Item alignment",d(sh,{}),cc,"stretch")}function kA(){return ke(dc,d(Mh,{}),Mr,Mr[0].value)}function wA(){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 _A(){return ke(pc,d(Ac,{}),Gr,Gr[0].value)}function DA(){return no(uc,d(Ph,{}),Hr,ic,1,Hr)}function MA(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 NA(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:j()?.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(uh,{})}}),children:qo({min:o,max:t,step:a,value:typeof l=="number"?l:r,suffix:"px",ariaLabel:e,onChange:f})})}}function HA(){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:j()?.panel,label:s(e),changed:a,detail:s("{value} on desktop",{value:`${l}px`}),onReset:r})}function Eg(e){return Hc(e.label,{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"};function jt(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(Bh,{}),re.min,re.max,re.step,S,"px"),l=(S,O,b,y=re)=>ae("mobile",Eg({label:r(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 Uo({...a?{_gSpacing:K("Padding")}:{},[o]:h(n(f)),...x?{[_o(o)]:l("Top",o,f)}:{},...e.only==="top"?{}:{[t]:h(no(r("Bottom"),d(Th,{}),re.min,re.max,re.step,c,"px")),...x?{[_o(t)]:l("Bottom",t,c)}:{}},...e.sides?{[u]:h(no(r("Left"),d(Eh,{}),m.min,m.max,m.step,p,"px")),...x?{[_o(u)]:l("Left",u,I,m)}:{},[i]:h(no(r("Right"),d(Oh,{}),m.min,m.max,m.step,p,"px")),...x?{[_o(i)]:l("Right",i,I,m)}:{}}:{}})}var Bg={contained:"Contained",page:"Page",full:"Full"},Gt="Width";function Xt(e,o=yc,t=!0){let a=o.map(r=>({label:Fc[r]??Bg[r],value:r}));return Uo({...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:Wo(d(Fh,{})),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 Uo({_gHeight:K(ao),sectionHeightMode:ae("desktop",e()),sectionHeightValue:ae("desktop",o()),sectionHeightUnit:ae("desktop",t()),sectionHeightModePhone:ae("mobile",e(a=>d(Pg,{onClear:()=>a(void 0)}))),sectionHeightValuePhone:ae("mobile",o()),sectionHeightUnitPhone:ae("mobile",t())})}function Pg({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:j()?.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 GA(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 UA(){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(kc,{}),htmlFor:r,action:d(he,{id:r,label:"Background",value:sr(e),onChange:o})})}}}function WA(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 Ag=[{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 $c({label:e,value:o,onChange:t,points:a=Ag}){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 qA(e,o=Vh,t="mediaImage"){return{type:"custom",render:({value:a,onChange:r})=>d("div",{className:"sf-focal-row",children:d(Rg,{label:e,value:a||o,onChange:r,imageProp:t})})}}function Rg({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 kg=ka([]);function $A(e,{stacking:o,fallback:t=pt}){return{type:"custom",render:({value:a,onChange:r})=>{let n=oe.includes(a)?a:t;return o?d(wg,{label:e,value:n,onChange:r}):zc({label:e,value:n,onChange:r,points:kg})}}}function wg({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 zc({label:e,value:o,onChange:t,points:ka(l,n)})}function zc({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:$c({label:e,value:Le(o),onChange:t,points:a})})}var zA={top:d(gh,{}),right:d(hh,{}),bottom:d(xh,{}),left:d(Ih,{})};function KA(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:$c({label:e,value:p,onChange:m,points:u})})}}}var _g="\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:Wo(o),children:d(Wh,{value:i,ariaLabel:s(e),onChange:l,options:[...r?[{label:s(r),value:_g,disabled:!0}]:[],...c.map(m=>({label:s(m.label),value:m.value}))]})})}}}function VA(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 jA(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 XA=[{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:Wo(o),children:Zr({options:r,value:r.some(c=>c.value===n)?n:n||f?.currentValue||a,onChange:l,ariaLabel:e})})}}function YA(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 ZA({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 Dg(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function Mg(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 Ng(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 QA={label:"Ticker items",icon:d(vh,{})};function JA(e,o,t,a){return{type:"custom",[M]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:a},render:({value:r,onChange:n})=>d(Hg,{label:e,icon:Wo(o),items:Array.isArray(r)?r:[],placeholder:t,onChange:n,markup:a==="markup"})}}function Hg({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=Ng(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:Dg(t,f),onChange:m=>r(Mg(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 eR(e,o){let t=`${e.label} \u2014 row ${o+1}`;return uo({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:a,onChange:r})=>d(co,{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 Kc(e){return{_gCards:K("Cards"),coverIndex:ke("Cover image",d(Lh,{}),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:Gg(),spinOnHover:Ue("Rotate on hover",e?.spinDefault??!0,d(kh,{}))}}function Vc(){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 jc(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:K("Show on a card"),showCardPrice:Ue("Price",!0,d(bh,{})),showCardFinishes:Ue("Finish swatches",!0,d(Ch,{})),showCardSizes:Ue("Sizes",o,d(Rh,{})),showCardBuy:Ue("Buy button",o,d(ih,{})),showCardPage:Ue("Page button",o,d(kc,{}))}}function Gg(){return Hc("Card image",{min:xe,max:Fo,step:Ts,hint:"Rounds the picture. The card's own corner is in Site styles."})}function oR(){return Xr({sidesKey:"cornerSides",step:Es,useFollowed:()=>xe,mark:d(Ug,{label:Os}),hint:s("Rounds the picture. Left alone it stays square.")})}function Ug({label:e,changed:o=!1,onReset:t=()=>{}}){return d(ne,{words:j()?.panel,label:s(e),changed:o,onReset:t})}function tR(){return{type:"custom",render:({value:e,onChange:o})=>d(Wg,{value:typeof e=="string"?e:"",onChange:o})}}function Wg({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(ph,{}),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(Sh,{}),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 qg}from"efficient-easel/panel";import{BUCKET_KEY as $,DESIGN_GROUP_KEY as io}from"efficient-easel/screen/lib/puck/field-buckets";var on=qg;var $g="Editor only \u2014 not shown live",tn={"Archive link":"Content",Article:"Content",Boxes:"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",Animation:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Controls:"Layout",Diagram:"Layout",[$g]:"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"},Yc={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},Zc={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function Jr(e,o,t){let a=`${e}.${o}`;return Zc[a]??Yc[a]??tn[t]}function Qc(e){return e==="Animation"?[$.Animation]:[$.Design,io[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 Qc(l))o.includes(f)||o.push(f)}return o}var dR=[...Qt(jt({phone:!0}),Xt("full"),Yt(),Zt()),...Object.keys(jt({phone:!0})),...Object.keys(Xt("full")),...Object.keys(Yt()),...Object.keys(Zt())],uR=[...Qt(qt()),...Object.keys(qt())],iR=[...Qt(zt()),...Object.keys(zt())],pR=[...Qt(Kt()),...Object.keys(Kt())],zg=Object.keys(Kc()),Kg=new Set(["cardImage","imageBackground"]),mR=[...Qc(Jr("ProductGrid","_gCards","Cards")??"Design"),...zg.filter(e=>e.startsWith("_g")||Kg.has(e))],xR=Object.keys(Vc()),IR=Object.keys(jc({bottomDefault:!0})),Vg={"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)"},Jc={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},ed={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...jt({phone:!0}),...Xt("full"),...Yt(),...Zt(),...qt(),...zt(),...Kt()};for(let o of Object.keys(ed)){let t=ce(e[o]),a=t?tn[t.label]:void 0;if(!t||t.level!==2||!a||!Jc[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 jg=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),Xg=new Map([[$.Design,"Content"],[$.Animation,"Animation"],...en.map(e=>[io[e],e])]);function hR(e){let o=new Set([...Object.values($),io.Content]);for(let[t,a]of Object.entries(e))if(!o.has(t)&&ce(a)?.level===1)return 1;return 2}function Yg(e){let o=`${e}.`;return Object.keys(Vg).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function Zg(e,o){let t=Lr(e),a=K(o);return t?ae(t.tier,a):a}function Qg(e,o){let t=ce(o);return t?e==="Content"||e==="Animation"?Dc(o,t.label):Mc(o):o}function Xc(e){return e==="Design"?en:["Animation"]}function gR(e,o){let t=[],a=new Set(Yg(o)),r=new Set,n=!1,l=null;for(let[p,I]of Object.entries(e)){let x=ce(I);if(jg.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=Xg.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 ed){let O=Jr(o,p,x.label);if(x.level!==2||!O||!Jc[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:Zg(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",Zc],["KEY_GROUP",Yc]]){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=>Xc(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 Xc(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[io[I]]=jr(I));for(let S of x)for(let[O,b]of S.entries)m[O]=Qg(I,b)}}return m}function bR(e){return $.Design in e?e:{[$.Design]:Wt("Design",null),[io.Content]:jr("Content"),...e}}function CR(e){return on.some(o=>$[o]in e)}function SR(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 Jg}from"react/jsx-runtime";import{createContext as eb,useCallback as ob,useContext as tb,useState as ab}from"react";var od={enabled:!0,title:"",subtitle:"",greeting:""},td=eb({chat:od,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function TR({children:e,chat:o=od,onChatChange:t}){let[a,r]=ab(!1),n=ob(c=>t?.(c),[t]),{select:l,setSelectHandler:f}=Sl();return Jg(td.Provider,{value:{chat:o,setChat:n,selected:a,setSelected:r,select:l,setSelectHandler:f},children:e})}var ER=()=>tb(td);import{jsx as rb}from"react/jsx-runtime";import{createContext as nb,useCallback as ad,useContext as lb,useMemo as fb,useRef as sb}from"react";var cb=Object.fromEntries(yl.map(e=>[e,{value:"",error:null}])),rd=nb({links:Fl,rows:cb,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function RR({children:e,value:o}){let t=sb(()=>{}),a=ad(()=>t.current(),[]),r=ad(l=>{t.current=l},[]),n=fb(()=>({...o,openPanel:a,setOpenHandler:r}),[o,a,r]);return rb(rd.Provider,{value:n,children:e})}var kR=()=>lb(rd);import{jsx as db}from"react/jsx-runtime";import{createContext as ub,useContext as ib,useMemo as pb,useState as mb}from"react";var nd=ub(null);function MR({children:e}){let[o,t]=mb(null),a=pb(()=>({surface:o,setSurface:t}),[o]);return db(nd.Provider,{value:a,children:e})}function NR(){return ib(nd)??{surface:null,setSurface:()=>{}}}var UR="Scrolling Bar",{Provider:WR,useSelection:ld}=lt("selectedHeroId");var{Provider:zR,useSelection:KR}=lt("selectedLocationPartId");function VR(e,o,t){return`${e}::${o}::${t}`}function jR(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 xb,useContext as Ib}from"react";var hb=xb(!1),ZR=()=>Ib(hb);import{PreviewDeviceContext as ek,usePreviewDevice as ok}from"efficient-easel/screen/components/PreviewDeviceContext";var gb=new Set(["Hero","HeroSingle","IntroBleed"]),fd={min:56,max:140,default:88},rk={min:0,max:120,step:2,default:28},sd=`var(--sf-header-h, ${fd.default}px)`,bb="--sf-header-set-h",nk="--sf-header-h",lk=`var(${bb}, ${fd.default}px)`,fk="sf-header-clearance",sk="sf-sticky-underheader";function Cb(e){return e?.find(o=>o?.type&&o.type!==Me)??null}function cd(e){let o=Cb(e)?.type;return!o||!gb.has(o)}function ck(e){return!cd(e)}function dk(e){return!!e?.some(o=>o?.type===Me)}function uk(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Me||o?.type===xt)}var Sb=["auto","shared","own"],yb="auto",Fb="topSpace",ik="data-top-space";function Lb(e){return Sb.includes(e)?e:yb}function vb(e,o){let t=Lb(e?.props?.[Fb]);return t==="own"?!0:t==="shared"?!1:cd(o)}function pk(e,o){return vb(e,o)?"own":null}import{blockRuns as Tb}from"efficient-easel/screen/lib/puck/block-choice";function gk(){return{type:Me,props:{id:vo(Me)}}}var dd=[{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"}],Eb=dd.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Ob="FooterGroup",ud="blocks";function id(e){return e===xt?dd:e===Ob?Eb:null}function Ck(){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 Tk(e,o=0){let t=Pb(e,o),a=t?Wa():null;return t&&a?Bb(t,a):t}function Bb(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 Pb(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:ud,choices:r,spec:null}:null}import{useSyncExternalStore as Ab}from"react";var an=null,rn=new Set;function Bk(e){if(an!==e){an=e;for(let o of rn)o()}}function Rb(e){return rn.add(e),()=>{rn.delete(e)}}function Pk(){return Ab(Rb,()=>an,()=>null)}function Ak(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?e.slice(0,o):null}var kb="inline",wb=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var _b={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"}},wk="SectionHeader";function _k(e){return e in _b}function Db(e){return z(wb,kb,e)}var Mb=new Set(["Flex"]);function Nb(e){return!!e?.type&&Mb.has(e.type)}function Dk(e,o,t){if(!Nb(o))return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function Mk(e,o,t){if(Db(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 Hb,PART_SEP as Uk}from"efficient-easel/screen/lib/puck/part-id";var Gb=Ge,Ub=["text","textarea"],Wb=["textarea","plainTextarea"];function qb(e){return!e||typeof e!="object"?null:e[M]?.control??null}function pd(e){let o=qb(e);return o&&Gb.includes(o)?o:null}function Kk(e){return Wb.includes(e)}function Vk(e){return!e||typeof e!="object"?void 0:e[M]?.placeholder}function Jt(e){return Ae(e).text}function fn(e,o,t){return Ub.includes(e)?{text:t,hidden:Ae(o).hidden}:t}function jk(e,o,t,a){return Jt(e[o])===a?null:{...e,[o]:fn(t,e[o],a)}}function $b(e){if(!(!e||typeof e!="object"))return e[M]}function zb(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function md(e,o){if(!Array.isArray(o))return[];let t=$b(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=zb(e);return r?(o.forEach((n,l)=>{for(let[f,c]of Object.entries(r)){if(!pd(c))continue;let u=Jt(n?.[f]);u&&a.push({row:{index:l,rowKey:f},text:u})}}),a):[]}function Kb(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Vb(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 Jk(e,o,t,a,r){let n=Kb(e[o],t);return Jt(n)===r?null:Vb(e,o,t,fn(a,n,r))}function ew(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var cw="data-sf-part",dw="data-sf-part-selected",uw="data-sf-part-kind",xd=2;function iw(e,o){if(!e)return!1;let t=$o(e);return!!t?.propKey&&t.nodeId===o}function po(e){return Eo(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[Ro]){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 pw(e){if(!e||typeof e!="object")return!1;let o=e;return o[Ro]?!1:!!o[M]||o.type==="text"||o.type==="textarea"}function Id(e,o){let t=e[M];return t?.label?t.label:typeof e.label=="string"?e.label:o}function jb(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function mw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){if(!r||typeof r!="object"||Do(a))continue;let n=r,l=[];ea(n,o?.[a],l),!l.length&&n[ko]!==void 0&&ea(n,n[ko],l);let f=Id(n,a),c=new Set;for(let{row:m,text:p}of md(n,o?.[a])){let I=po(p);I.length<xd||(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=po(m);p.length<xd||u.has(p)||(u.add(p),i.push(p))}i.length&&t.push({key:a,label:f,texts:i})}return t}var Xb=Ge;function hd(e,o){if(!o||typeof o!="object"||Do(e))return null;let t=o[M];return!t||!Xb.includes(t.control)?null:t}function xw(e,o){let t=hd(e,o);return t!==null&&t.identifier!==!0}function Iw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){let n=hd(a,r);if(!n)continue;let{text:l,hidden:f}=Ae(o?.[a]),c=l||n.placeholder||"",u=Eo(c).replace(/\s+/gu," ").trim();t.push({key:a,label:jb(Id(r,a)),preview:u,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!f})}return t}var Yb="Main Pages",Zb="Dynamic Pages",Qb="dynamic",Jb="dynamic";function eC(e){return e.kind===Jb}function gw(e){let o=[],t=[];for(let a of e){if(eC(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??Yb,rows:[a]})}if(t.length){let a=o.findIndex(r=>r.key.startsWith("system:"));o.splice(a===-1?o.length:a,0,{key:Qb,label:Zb,rows:t})}return o}import{VIEW_DESKTOP_MIN as Sw,VIEW_TABLET_MIN as yw,VIEW_TIER_LABEL as Fw,VIEW_TIERS as Lw,viewTierForWidth as vw}from"efficient-easel/screen/lib/content/view-tiers";import{jsx as sn,Fragment as oC,jsxs as tC}from"react/jsx-runtime";var Ow=tC(oC,{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 aC}from"react/jsx-runtime";function gd({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(gd,{},`r${r}`))}),cn(aC,{children:t})}var Aw=gd;import{jsx as P,jsxs as Cn}from"react/jsx-runtime";import{Fragment as Gd}from"react";var pn="_partStyles",In="data-sf-part-styled",rC=["none","upper","lower"],nC=[400,500,600,700],lC=["left","center","right","justify"],fC=5,sC=1e3,cC=-5,dC=10,uC=0,iC=64,pC=2,mC=120,ta=1280,xC=10,bd={size:{min:fC,max:sC,step:1},padding:{min:uC,max:iC,step:pC},width:{min:mC,max:ta,step:xC}},IC=.05,hC=.01,gC=["line","letter"],bC=.5,CC=2.5,SC=-1,yC=1,FC=0,LC=400,mn={none:"none",upper:"uppercase",lower:"lowercase"};function Ko(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Fd(e){return Ko(e?.[pn])??{}}function vC(e,o){let t=Fd(e);return Object.hasOwn(t,o)?Ko(t[o])??{}:{}}function Ld(e,o,t){let a={...Fd(e)};if(TC(t).length?a[o]=t:delete a[o],!Object.keys(a).length){let{[pn]:r,...n}=e;return n}return{...e,[pn]:a}}function TC(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function EC(e){return gC.includes(e)}var zo=(e,o,t)=>Math.min(t,Math.max(o,e));function OC(e,o){if(EC(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:zo(t,cC,dC)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?mo(zo(t,bC,CC),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?mo(zo(t,SC,yC),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:zo(t,FC,LC)}if(Object.hasOwn(bd,e)){let{min:t,max:a}=bd[e],r=Math.round(Number(o));return Number.isFinite(r)?zo(r,t,a):null}return e==="role"?So.includes(String(o))?o:null:o}var BC=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function PC(e){let o=[];for(let[t,a]of BC)t===e?o.push(a):a===e&&o.push(t);return o}function Mw(e,o,t,a){let r={...vC(e,o)},n=a==null?null:OC(t,a);if(n===null)delete r[t];else{r[t]=n;for(let l of PC(t))delete r[l]}return Ld(e,o,r)}function Nw(e,o){return Ld(e,o,{})}function AC(e){for(let o of rC)if(mn[o]===e)return o;return"none"}function RC(e){return!e||!Object.hasOwn(mn,e)?"":mn[e]}var kC={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 wC(e){let o=e.role;return o&&So.includes(o)?o:null}var _C={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 DC(e){let o=ml[e],t=_C[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function MC(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=mo(NC+e.line*IC,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=mo(e.letter*hC,4)),o}var NC=1,jo="--sf-part-para";function aa(e,o){let t=wC(e),a=MC(e),r=e.size?`${e.size}px`:t?DC(t):"";return{fontFamily:e.font?WC(e.font):t?`var(${kC[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`:"",[jo]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:RC(e.case),textAlign:e.align??"",paddingTop:dn(e.padding),paddingBottom:dn(e.padding),maxWidth:dn(e.width),color:HC(e.color)}}var HC=e=>e===void 0||e===""?"":Object.hasOwn(Te,e)?Te[e]:vd.test(e)?e:"",vd=/^#[0-9a-fA-F]{6}$/;function Td(e){return vd.test(e)}var dn=e=>e===void 0?"":`${e}px`,mo=(e,o)=>Number(e.toFixed(o));function Hw(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:GC(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(a)?mo(a/t,3):1.2,letterEm:Number.isFinite(r)?mo(r/t,4):0,align:UC(e.textAlign),case:AC(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(l)&&l<ta?Math.round(l):ta}}function GC(e){return Number.isFinite(e)?nC.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function UC(e){for(let o of lC)if(o===e)return o;return e==="end"?"right":"left"}function Gw(e,o){let t=Cd(e);if(!t)return"";for(let a of ga)if(Cd(o(a.cssVar))===t)return a.key;return""}var Cd=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function WC(e){let o=pl(e);return o?`var(${o.cssVar})`:""}function Uw(e,o,t,a){return!o||$o(o)?.nodeId!==e?null:t.find(r=>a(r.getAttribute("class")))??t[0]??null}function Ww(e,o,t=()=>Vo,a=n=>n,r=zC){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))KC(l,x,h),h&&(I=!0);if(p||un.some(x=>m[x]))for(let x of qC(l,r))for(let h of un)x.style[h]=m[h]??"";I&&(n+=1)}return n}function qC(e,o){let t=po(e.textContent??""),a=[],r=e;for(let n=0;n<$C&&o(r);n+=1){let l=r.parentElement;if(!l||po(l.textContent??"")!==t)break;a.push(l),r=l}return a}var $C=8;function zC(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 KC(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===jo&&(t?r.setAttribute?.(Sd,""):r.removeAttribute?.(Sd))}var Sd="data-sf-part-para",VC=Object.keys(aa({},Vo)),xn=new Set(["color","overflowWrap",jo]),un=VC.filter(e=>!xn.has(e));function Ed(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(!jC(f))continue;let c=Ko(o[f])??{},u=aa(c,Vo);Object.values(u).some(Boolean)&&n.set(f,{stamp:yd(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:yd(t,i),declarations:I})}return l.size||n.size?{rules:l,kindRules:n,drawn:new Set(r.keys())}:null}function jC(e){return e.startsWith("@")}function Od(e,o){return e?.kindRules.get(o)??null}function yd(e,o){let t=a=>a.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function Bd(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])=>`${YC(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[jo]&&o.push(...XC(u))};for(let r of e.rules.values())a(r);for(let r of e.kindRules.values())a(r);return o.join(`
4
- `)}function XC(e){let o=`var(${jo})`,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 YC=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function Pd(e,o){if(!e)return null;let t=po(o),a=e.rules.get(t);if(a)return a;if(t.length<ZC||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 ZC=8;import{Fragment as aS,jsx as bn}from"react/jsx-runtime";import{Fragment as wd,jsx as ra,jsxs as eS}from"react/jsx-runtime";import{createContext as _d,useContext as hn,useId as oS,useMemo as tS}from"react";var Xo="@name",Ad="@body",Rd="@value",zw={[Xo]:"Name",[Ad]:"Body",[Rd]:"Value"},QC={TimelineTrack:{"entries.date":Xo,"entries.title":Xo,"entries.blurb":Ad},Footprint:{"offices.city":Xo},Stats:{"items.label":Xo,"items.value":Rd}};function JC(e){let{key:o,row:t}=ln(e);return t?`${o}.${t.rowKey}`:null}function kd(e,o){if(!e)return o;let t=JC(o);return t?QC[e]?.[t]??o:o}var gn=_d(null),Dd=_d(null);function Zw({needles:e,styles:o,type:t,children:a}){let r=oS(),n=JSON.stringify([r,e,o,t]),l=tS(()=>Ed(e,o,r,f=>kd(t,f)),[n]);return l?eS(wd,{children:[ra("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:Bd(l)}}),ra(gn.Provider,{value:l,children:a})]}):ra(wd,{children:a})}function Md(e){let o=hn(gn),t=hn(Dd),a=Pd(o,e);return a&&a.stamp!==t?a:null}function Qw(e){return Od(hn(gn),e)}function Nd({stamp:e,children:o}){return ra(Dd.Provider,{value:e,children:o})}function Yo({value:e,children:o}){let t=Md(e);return t?bn(Nd,{stamp:t.stamp,children:bn("span",{[In]:t.stamp,children:o})}):bn(aS,{children:o})}function Sn(e,o=!1){let t=uS(o),a=Va(e);if(a.length===1){let[n]=a,l=Ka(n),f=l?cS(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:rS,children:na(n.children,t)},l));return}if(n.number!=null){r.push(Cn("span",{"data-sf-number":n.number,className:nS,children:[Cn("span",{className:lS,children:[n.number,"."]}),na(n.children,t)]},l));return}l>0&&!fS(a[l-1])&&r.push(P("br",{},`br${l}`)),r.push(P(Gd,{children:na(n.children,t)},l))}),P(Yo,{value:e,children:r})}var rS="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",nS="relative block pl-[2em]",lS="absolute left-0 w-[1.6em] text-right tabular-nums";function fS(e){return e.bullet||e.number!=null}var sS="text-accent underline underline-offset-[0.18em]";function cS(e,o){let[t,...a]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...a]:[{kind:"text",text:e},...o]}function dS(e){if(e)return Td(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(Ud(r,n,o)),a=!1}),a||t.push(P("span",{},"end")),t}function Hd(e,o){return e.length===1&&e[0].kind==="text"?oa(e[0].text):e.map((t,a)=>t.kind==="text"?P(Gd,{children:oa(t.text)},a):Ud(t,a,o))}function uS(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function u_(e){return P(Yo,{value:e,children:P("span",{children:e})})}function Ud(e,o,t){if(e.kind==="link")return P("a",{href:e.href,className:sS,children:Hd(e.children,t)},o);let a=Hd(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=dS(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 i_(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 p_(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 Wd={min:40,max:100,step:5,fallback:100,unit:"vh"};function Fn(e){return`${typeof e=="number"?e:Wd.fallback}${Wd.unit}`}function qd(...e){return e.some(o=>typeof o=="number")}import{useSyncExternalStore as iS}from"react";var pS={level:"groups"},zd=pS,Ln=new Set;function g_(e){zd=e;for(let o of Ln)o()}function mS(e){return Ln.add(e),()=>{Ln.delete(e)}}var $d=()=>zd;function b_(){return iS(mS,$d,$d)}function Kd(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 S_(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,xS=0;function IS(e){let o=vn.get(e);return o||(o=`loc${++xS}`,vn.set(e,o)),o}var L_=(e,o)=>o||e||"Ungrouped",Vd={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 Kd(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),jd=(e,o,t)=>Math.min(Math.max(e,o),t);function hS(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 v_(e,o,t){let a=la(e);if(o<0||o>=a.length)return e;let[r]=a.splice(o,1),n=jd(o<t?t-1:t,0,a.length);return a.splice(n,0,r),Tn(a)}function T_(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,IS(c));let i=jd(l===f&&t<r?r-1:r,0,f.cards.length);return f.cards.splice(i,0,u),Tn(n)}function E_(e,o){let t=la(e),a=t.find(n=>n.key===o),r={...Vd,group:o,groupName:a?.name??""};return a?(a.cards.push(r),Tn(t)):[...e,r]}function O_(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,{...Vd,group:a,groupName:""}],key:a}}function B_(e,o){return e.filter(t=>Zo(t)!==o)}function P_(e,o,t){let a=hS(e,o,t);return a<0?e:e.filter((r,n)=>n!==a)}function A_(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 R_(e,o,t){return o.flatMap(a=>{let r=e.filter(n=>Zo(n)===a);return r.length?r:t(a)})}var gS="plain",Xd=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],bS="line",CS={KeyFeatures:"filled"};function SS(e){return CS[e]??gS}function __(e,o){return z(Xd,SS(o),e)}function D_(e){return z(Xd,bS,e)}var yS="#9ca3af";function H_(e){return za.map(o=>({key:o,name:hf[o],value:e?.[o]||yS}))}function G_(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=Yd(c);!u&&n&&(n.fillStyle="#000000",n.fillStyle=c,u=Yd(String(n.fillStyle))),u&&(o[l]=u)}return o}function Yd(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 FS={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}},Zd=FS;var fa="data-sf-spec-region";function q_(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 LS(e){return`@${e}`}function vS(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function Qd(e,o){return o&&o in e?o:null}function TS(e,o){let t=o?.closest(`[${fa}]`)?.getAttribute(fa);return Qd(e,t??null)}var ES={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}},Jd=ES;var j_=fa;var eu={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 ou={SpecTable:eu,FAQ:Jd,Collections:Zd};function J_(e){return e&&Object.hasOwn(ou,e)?ou[e]:null}import{jsx as jS}from"react/jsx-runtime";import{forwardRef as OS,createElement as En}from"react";var tu={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=OS(({color:n="currentColor",size:l=24,stroke:f=2,title:c,className:u,children:i,...m},p)=>En("svg",{ref:p,...tu[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 BS=[["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",BS);var PS=[["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",PS);var AS=[["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",AS);var RS=[["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",RS);var kS=[["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",kS);var wS=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],kn=C("outline","brand-telegram","BrandTelegram",wS);var _S=[["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",_S);var DS=[["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",DS);var MS=[["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",MS);var NS=[["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",NS);var HS=[["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",HS);var GS=[["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",GS);var US=[["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",US);var WS=[["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",WS);var qS=[["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",qS);var $S=[["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",$S);var zS=[["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",zS);var KS=[["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",KS);var VS=[["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",VS);var iD="outline",sa={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},XS={},Vn={fillRule:"evenodd"},YS=[["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"}]],ZS=[["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",{...XS,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("")}]],QS=[["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("")}]],JS=C("filled","brand-telegram-filled","BrandTelegramFilled",YS),ey=C("filled","brand-line-filled","BrandLineFilled",ZS),oy=C("filled","brand-wechat-filled","BrandWechatFilled",QS),ty={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:JS},line:{outline:Pn,solid:ey},wechat:{outline:_n,solid:oy}};function pD({platform:e,iconStyle:o,size:t}){let a=ty[e][o];return jS(a,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var jn="small",Xn="dot",ay=[{label:"Small",value:"small"},{label:"Display",value:"display"}],ry=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],au={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},ny={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)]"},ly={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 ru(e){return z(ay,jn,e)}function nu(e){return z(ry,Xn,e)}function lu(e){return ny[e]}function fu(e,o){return ly[e][o]}var Yn="left",fy=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],sy={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function su(e){return z(fy,Yn,e)}function cu(e){return e==="up"||e==="down"}function du(e,o){return`${sy[e]} ${o}s linear infinite`}var cy={"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]"},dy=`calc(${St} - ${q}*2)`,uu=`var(${Ya},${q})`,SD=`pointer-events-none absolute inset-y-0 left-[${uu}] right-[${uu}] z-[6] mx-auto max-w-[var(${Za},${dy.replace(/ /g,"_")})]`;function ca(e,o){return`pointer-events-auto absolute ${cy[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function iu(e){return oe.includes(e)?e:null}var uy="bottom-right",iy=["outline","solid","square","bare"],py="outline",vD={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},TD=!1,pu=["prev","next"],mu={prev:"Previous slide",next:"Next slide"};function my(e){return iy.includes(e)?e:py}function xy(e){return iu(e)??uy}var Iy="flex-row items-center gap-2";function xu(e){return ca(xy(e),Iy)}var hy={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 Iu(e){return hy[my(e)]}function hu(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 gy=oe;var by="top-right",Cy=["cards","dots","numbers","bar","tabs"],Sy=["cards","dots","numbers","bar"],gu="cards",PD={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},AD=!0;function ua(e){return Cy.includes(e)?e:gu}function bu(e){return Sy.includes(e)?e:gu}function yy(e){return gy.includes(e)?e:by}var Cu={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 Su(e,o){return ca(yy(o),Cu[ua(e)])}function yu(e){return`flex ${Cu[ua(e)]}`}function Fu(e){return e.shown!==!1&&(e.count??0)>1}function Fy(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function Ly(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 Lu(e,o){let t=Array.from(o,Fy);return Ly(e,t)?e:t}import{useEffect as vy,useState as Ty}from"react";var vu="(prefers-reduced-motion: reduce)";function Ey(){return globalThis.window?.matchMedia?.(vu)?.matches??!1}function wD(){return Ey()?"auto":"smooth"}function Tu(){let[e,o]=Ty(!1);return vy(()=>{let t=globalThis.window?.matchMedia?.(vu);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 xo,useEffect as Io,useId as Dy,useRef as ge,useState as et}from"react";var Eu="data-puck-overlay-portal";function ia(e){return e.setAttribute(Eu,"true"),()=>e.removeAttribute(Eu)}import{jsx as Qo,jsxs as Ou}from"react/jsx-runtime";var Oy={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function Bu({items:e,separator:o=Xn,size:t=jn,durationSec:a=50,scroll:r=Yn,backdrop:n="themed-band",className:l}){let f=ru(t),c=su(r),u=nu(o),i=`text-accent ${fu(f,u)}`.trim(),m=au[u],p=m===""?Qo("span",{}):Qo("span",{className:i,children:m}),I=cu(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 Ou("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:Ou("div",{className:`flex ${I?"flex-col ":""}whitespace-nowrap ${lu(f)} ${Oy[n]}`,style:{animation:du(c,a)},children:[S("a"),S("b")]})})}import{jsx as Zn}from"react/jsx-runtime";function Pu({shape:e,placement:o,ref:t}){let a=Iu(e);return Zn("div",{ref:t,className:xu(o),style:{color:"var(--overlay-fg)"},children:pu.map(r=>Zn("button",{type:"button","data-hero-nav":r,"aria-label":mu[r],className:a,children:Zn(No,{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 Au({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"?yu(f):Su(f,a),style:{color:"var(--overlay-fg)",...c},children:[f==="cards"&&N(By,{slides:e,active:o}),f==="dots"&&N(Py,{count:e.length,active:o}),f==="numbers"&&N(Ay,{count:e.length,active:o}),f==="bar"&&N(Ry,{count:e.length,active:o}),f==="tabs"&&N(ky,{slides:e,active:o})]})}function By({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 Py({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 Ay({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 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-full flex-1 cursor-pointer transition-colors ${a<=o?"bg-overlay-fg":"bg-overlay-chrome/25"}`},a))})}function ky({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 wy=40;function _y(e,o){return Math.abs(e)<=wy||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function Ru(e,o,t,a){let r=_y(e,o);return r?da(r,t,a):t}function ku(e){return(e.count??0)>1&&e.editing!==!0}function wu(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function _u(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 My=`
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
- `,Ny="Play video",Hy="Hold video",Gy="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",Uy=()=>s("item"),Wy=["","","","","",""],Du=new Map;function qy(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(Jn,o),()=>t.removeEventListener(Jn,o)}function gM({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=qd(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??Wy.map(g=>({text:g}))).map(g=>g?.text?.trim()?g.text:y?Uy():"").filter(Boolean),Q=u!==!1,v=ge(null),V=ge(null),ot=ge(null),w=ge(null),We=ge(null),qe=Dy(),$e=ge(qe),[ze,Nu]=et([]),[Hu,el]=et(0),ho=ge(0),[ol,tl]=et(!1),[tt,Gu]=et(!1),[al,Uu]=et(null),xa=Tu(),{selectedHeroId:Wu,select:rl}=ld(),at=xo(()=>v.current?.querySelector(".hero-track")??null,[]),be=xo((g,L=!1)=>{el(g),ho.current=g,Du.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}%)`},[]);Io(()=>{let g=v.current,L=g?.getAttribute("data-puck-component")||g?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||qe;$e.current=L,Uu(L);let E=Du.get(L);typeof E=="number"&&(el(E),ho.current=E)},[]),Io(()=>{let g=at();if(!g)return;let L=()=>{Nu(A=>Lu(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]),Io(()=>{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 qy(v.current,g)},[y,be]);let J=ze.length,Ke=Math.min(Math.max(Hu,0),Math.max(0,J-1)),Ia=Fu({shown:I,count:J}),nl=hu({shown:S,count:J}),ll=wu({editing:y,shown:Ke,slides:ze}),qu=_u({editing:y,playing:tt,controlShown:ll}),rt=ku({count:J,editing:y}),Ve=ge(null),go=ge(null),$u=xo(g=>{if(Ve.current=null,go.current=null,!rt||g.touches.length!==1)return;let L=g.touches[0];Ve.current={x:L.clientX,y:L.clientY},go.current={x:L.clientX,y:L.clientY}},[rt]),zu=xo(g=>{if(!Ve.current)return;if(g.touches.length!==1){Ve.current=null;return}let L=g.touches[0];go.current={x:L.clientX,y:L.clientY}},[]),Ku=xo(()=>{let g=Ve.current,L=go.current;if(Ve.current=null,go.current=null,!rt||!g||!L)return;let E=Ru(L.x-g.x,L.y-g.y,ho.current,J);E!==ho.current&&be(E)},[rt,J,be]);Io(()=>{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]),Io(()=>{let g=[V.current,ot.current,w.current].filter(Boolean),L=g.map(A=>ia(A)),E=A=>{let me=A.target,bo=me.closest("[data-hero-nav]"),fl=bo??me.closest("[data-idx]");if(!fl)return;A.stopPropagation(),A.preventDefault();let ha=bo?da(bo.dataset.heroNav,ho.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]),Io(()=>{if(!y)return;let g=We.current;if(!g)return;let L=ia(g),E=A=>{A.stopPropagation(),A.preventDefault();let me=v.current,bo=me?.getAttribute("data-puck-component")||me?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||$e.current;rl(bo)};return g.addEventListener("click",E,{capture:!0}),()=>{L?.(),g.removeEventListener("click",E,{capture:!0})}},[y,rl,Q,Z.length]);let Vu=xo(g=>{if(!g)return;let L=ia(g),E=A=>{A.stopPropagation(),A.preventDefault(),Gu(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:qu,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:$u,onTouchMove:zu,onTouchEnd:Ku,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:Vu,"data-hero-video-control":tt?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${sd} + 16px)`},children:pa("button",{type:"button",className:Gy,children:[ie("span",{"aria-hidden":"true",children:tt?"\u275A\u275A":"\u25B6"}),s(tt?Hy:Ny)]})}),(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(Au,{ref:V,slides:ze,active:Ke,shape:bu(x),placement:h}),nl&&ie(Pu,{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&&Wu===al?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[y&&ie("style",{children:My}),ie(Bu,{items:Z,backdrop:"dark-media"})]})]})})}var ma="data-theme",Mu="light";function $y(e){return e.getAttribute(ma)===Mu?"light":"dark"}function zy(e,o){return $y(e)===o?!1:(o==="light"?e.setAttribute(ma,Mu):e.removeAttribute(ma),!0)}function Ky(e){return Fa(e).getItem(ba)}function yM(e,o){Fa(e).setItem(ba,o)}function Vy(e,o,t=new Date().getHours()){return xl({mode:o.mode,override:Ky(e),switchShown:o.switchShown,hour:t})}function FM(e,o){let t=e.documentElement;if(!t)return()=>{};let a=()=>zy(t,Vy(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 jy="style";function Xy(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 LM(e,o){let t=e.body;if(!t)return()=>{};let a=()=>Xy(t,o);a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[jy]}),()=>n.disconnect()}export{WF as a,qF as b,$F as c,zF as d,Bi as e,Fe as f,YF as g,Ga as h,sv as i,De as j,Hl as k,D as l,ff as m,YL as n,cf as o,rL as p,Ul as q,nL as r,Yl as s,Jl as t,ef as u,kL as v,wL as w,_L as x,DL as y,np as z,nf as A,VL as B,pt as C,Mi as D,fL as E,Le as F,sL as G,cL as H,ql as I,dL as J,uL as K,iL as L,Ui as M,xt as N,Me as O,IL as P,vo as Q,gL as R,bL as S,CL as T,ve as U,av as V,rv as W,Ep as X,Sv as Y,As as Z,Ax as _,zO as $,Pt as aa,Rs as ba,Rx as ca,kx as da,wx as ea,jO as fa,XO as ga,YO as ha,ZO as ia,gt as ja,qa as ka,Fv as la,Lv as ma,vv as na,Tv as oa,Ev as pa,Ov as qa,z as ra,_b as sa,wk as ta,_k as ua,Db as va,Nb as wa,Dk as xa,Mk as ya,H_ as za,G_ as Aa,ia as Ba,Av as Ca,Rv as Da,Dv as Ea,Mv as Fa,nn as Ga,ln as Ha,$o as Ia,Hb as Ja,bf as Ka,Va as La,Eo as Ma,ce as Na,M as Oa,Is as Pa,Ae as Qa,Do as Ra,pd as Sa,Kk as Ta,Vk as Ua,jk as Va,$b as Wa,zb as Xa,Kb as Ya,Vb as Za,Jk as _a,ew as $a,cw as ab,dw as bb,uw as cb,iw as db,po as eb,pw as fb,Id as gb,jb as hb,mw as ib,xw as jb,Iw as kb,In as lb,uC as mb,iC as nb,pC as ob,mC as pb,ta as qb,xC as rb,Fd as sb,vC as tb,Mw as ub,Nw as vb,MC as wb,aa as xb,Hw as yb,Gw as zb,Uw as Ab,Ww as Bb,VC as Cb,Xo as Db,Ad as Eb,Rd as Fb,zw as Gb,kd as Hb,Zw as Ib,Qw as Jb,xO as Kb,CO as Lb,SO as Mb,yO as Nb,te as Ob,vf as Pb,tT as Qb,Ct as Rb,zp as Sb,nT as Tb,Oo as Ub,Vp as Vb,fT as Wb,Of as Xb,Ya as Yb,Za as Zb,xT as _b,hT as $b,gT as ac,bT as bc,CT as cc,Fc as dc,qr as ec,$r as fc,Bf as gc,Pf as hc,Bo as ic,kf as jc,TT as kc,Zp as lc,ET as mc,yt as nc,Mf as oc,PT as pc,AT as qc,om as rc,RT as sc,tB as tc,_s as uc,aB as vc,Nx as wc,rB as xc,kt as yc,W0 as zc,_r as Ac,q0 as Bc,$I as Cc,$0 as Dc,H0 as Ec,G0 as Fc,am as Gc,Ft as Hc,wT as Ic,Gf as Jc,Lt as Kc,Uf as Lc,Yy as Mc,j as Nc,Zy as Oc,s as Pc,La as Qc,he as Rc,XT as Sc,jf as Tc,eF as Uc,Ye as Vc,Qu as Wc,va as Xc,Qf as Yc,Mm as Zc,AE as _c,ts as $c,Fs as ad,HO as bd,qO as cd,fr as dd,Qm as ed,NE as fd,ae as gd,Lr as hd,bB as id,vr as jd,At as kd,TB as ld,NB as md,Er as nd,Or as od,WB as pd,qB as qd,Us as rd,$B as sd,zB as td,KB as ud,$s as vd,Rr as wd,fF as xd,dF as yd,Tl as zd,Ys as Ad,Qs as Bd,OI as Cd,ns as Dd,W as Ed,Bl as Fd,mF as Gd,oi as Hd,xF as Id,IF as Jd,ti as Kd,bF as Ld,ai as Md,CF as Nd,Ea as Od,yF as Pd,FF as Qd,LF as Rd,vF as Sd,ct as Td,TF as Ud,EF as Vd,OF as Wd,ci as Xd,wF as Yd,wl as Zd,xi as _d,Ii as $d,hi as ae,Ba as be,_F as ce,nx as de,No as ee,K0 as fe,V0 as ge,j0 as he,X0 as ie,Y0 as je,ps as ke,Et as le,dr as me,ix as ne,lO as oe,fO as pe,_t as qe,Dt as re,Q0 as se,ro as te,Nt as ue,oP as ve,tP as we,aP as xe,Cc as ye,nP as ze,uP as Ae,Vh as Be,Yh as Ce,Wo as De,iA as Ee,pA as Fe,mA as Ge,xA as He,hA as Ie,gA as Je,bA as Ke,fg as Le,CA as Me,SA as Ne,yA as Oe,FA as Pe,LA as Qe,K as Re,vA as Se,dg as Te,TA as Ue,EA as Ve,ig as We,OA as Xe,qt as Ye,qo as Ze,no as _e,BA as $e,Gc as af,zt as bf,Kt as cf,PA as df,AA as ef,RA as ff,kA as gf,wA as hf,_A as if,DA as jf,MA as kf,NA as lf,HA as mf,jt as nf,Xt as of,Yt as pf,Zt as qf,GA as rf,Ue as sf,UA as tf,WA as uf,qA as vf,$A as wf,zA as xf,KA as yf,ke as zf,VA as Af,jA as Bf,Zr as Cf,XA as Df,Qr as Ef,YA as Ff,ZA as Gf,QA as Hf,JA as If,Hg as Jf,eR as Kf,Kc as Lf,Vc as Mf,jc as Nf,Gg as Of,oR as Pf,tR as Qf,$ as Rf,io as Sf,on as Tf,$g as Uf,Qc as Vf,dR as Wf,uR as Xf,iR as Yf,pR as Zf,mR as _f,xR as $f,IR as ag,hR as bg,gR as cg,bR as dg,CR as eg,SR as fg,HF as gg,GF as hg,od as ig,TR as jg,ER as kg,cb as lg,RR as mg,kR as ng,MR as og,NR as pg,UR as qg,WR as rg,ld as sg,zR as tg,KR as ug,VR as vg,jR as wg,hb as xg,ZR as yg,FS as zg,ES as Ag,fa as Bg,q_ as Cg,LS as Dg,vS as Eg,Qd as Fg,TS as Gg,j_ as Hg,J_ as Ig,Yb as Jg,Qb as Kg,eC as Lg,gw as Mg,Fw as Ng,Lw as Og,vw as Pg,ek as Qg,ok as Rg,Ow as Sg,iD as Tg,pD as Ug,jn as Vg,Xn as Wg,ay as Xg,ry as Yg,Yn as Zg,fy as _g,Yo as $g,oa as ah,Aw as bh,Sn as ch,u_ as dh,i_ as eh,p_ as fh,Bu as gh,uy as hh,iy as ih,py as jh,vD as kh,TD as lh,by as mh,Sy as nh,gu as oh,PD as ph,AD as qh,Au as rh,wD as sh,yn as th,Wd as uh,Fn as vh,qd as wh,fd as xh,rk as yh,sd as zh,bb as Ah,nk as Bh,lk as Ch,fk as Dh,sk as Eh,Cb as Fh,ck as Gh,dk as Hh,uk as Ih,yb as Jh,ik as Kh,vb as Lh,pk as Mh,Wy as Nh,gM as Oh,gk as Ph,Ck as Qh,g_ as Rh,b_ as Sh,Kd as Th,S_ as Uh,Zo as Vh,IS as Wh,L_ as Xh,Vd as Yh,la as Zh,hS as _h,v_ as $h,T_ as ai,E_ as bi,O_ as ci,B_ as di,P_ as ei,A_ as fi,R_ as gi,Tk as hi,Bk as ii,Pk as ji,Ak as ki,ma as li,$y as mi,zy as ni,yM as oi,FM as pi,LM as qi,gS as ri,Xd as si,bS as ti,SS as ui,__ as vi,D_ as wi};