efficient-storefront-blocks 0.14.0 → 0.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +20 -0
- package/README.md +6 -3
- package/dist/chunks/{EditorPreviewCheckout-B2WE4PQG.js → EditorPreviewCheckout-J7MWTEHJ.js} +1 -1
- package/dist/chunks/{PreviewFooter-WMJGEJ4V.js → PreviewFooter-CZAS77OV.js} +1 -1
- package/dist/chunks/SiteEditorProvider-PFM6CCPW.js +1 -0
- package/dist/chunks/{chunk-HHGLC5XH.js → chunk-2PHC572K.js} +3 -3
- package/dist/chunks/{chunk-Y2YO7JHE.js → chunk-HBULIX4L.js} +1 -1
- package/dist/chunks/{chunk-TCRMUJVM.js → chunk-O6RPIOGL.js} +1 -1
- package/dist/chunks/chunk-VG7NDFTL.js +16 -0
- package/dist/chunks/chunk-VPRUR365.js +230 -0
- package/dist/chunks/{fitment-data-XD2SVBL7.js → fitment-data-FSXAUWXQ.js} +1 -1
- package/dist/chunks/{render-client-LEJJONKA.js → render-client-VEVVM4IW.js} +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.js +838 -2750
- package/package.json +3 -3
- package/dist/chunks/SiteEditorProvider-SL2RMYRJ.js +0 -1
- package/dist/chunks/chunk-7LORPJCG.js +0 -230
- package/dist/chunks/chunk-AVM4NCES.js +0 -16
- /package/dist/chunks/{SectionEditorShell-CS47KTY2.js → SectionEditorShell-JUUJQRZP.js} +0 -0
- /package/dist/chunks/{chunk-F3PA63EP.js → chunk-2I435NJQ.js} +0 -0
- /package/dist/chunks/{chunk-HHGLC5XH.js.LEGAL.txt → chunk-2PHC572K.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-MWOOPV76.js → chunk-GC3WZ5PJ.js} +0 -0
- /package/dist/chunks/{chunk-AVM4NCES.js.LEGAL.txt → chunk-VG7NDFTL.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{B as Yn,C as ge,D as be,E as Ze,F as Qe,H as Zn,Ia as ut,Ja as ol,K as Ia,La as me,M as Qn,N as ha,Oa as tl,P as Jn,Q as el,Qa as al,Z as Ce,_ as _e,a as qn,aa as Se,ba as dt,c as Kn,d as pa,h as Xn,i as Eo,k as ct,r as ma,w as jn,x as xa,y as Lo}from"./chunk-GC3WZ5PJ.js";import{a as $n,c as ee,l as zn,m as vo,o as Vn,v as ga}from"./chunk-2I435NJQ.js";import{EaselSessionProvider as gy,useEaselSession as Je}from"efficient-easel/screen/lib/session-context";import{hostLoadRefusalOf as _u,hostUnreachableMessage as Du,isBackendError as Nu,provideHostFailures as Mu,readHostFailure as Hu,STATUS_UNREACHABLE as Gu,WebsiteBackendError as ba}from"efficient-easel/screen/lib/backend-error";import{createEaselHost as vy,DETACHED_EASEL_HOST as Ey,EaselHostContext as Ly,EaselHostProvider as By,useEaselHost as rl}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 nl(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function ll(e,o){return typeof e=="boolean"?e:o}function it(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 fl="cart-drawer",Ry="cart-drawer";var Uu={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 ky(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function wy(e){let o=e??{},t=Uu;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:it(o.promises,t.promises),emptyKicker:W(o.emptyKicker,t.emptyKicker),emptyBody:W(o.emptyBody,t.emptyBody)}}var Wu=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],Ny={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"},$u={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"},My={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 qu(e){return typeof e=="string"&&Eo.includes(e)?e:null}function sl(e){let o={};for(let t of Wu){let a=qu(e[$u[t]]);a&&(o[t]=a)}return o}var Sa="site-footer";var Gy=Sa,Uy={desktop:!0,tablet:!0,mobile:!0},Wy={desktop:!1,tablet:!1,mobile:!1},Ca=1,cl=6,$y=Array.from({length:cl-Ca+1},(e,o)=>Ca+o),pt={desktop:6,tablet:3,mobile:2},Ku={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}},De=e=>Math.min(Math.max(Math.round(e),Ca),cl);function qy(e){if(typeof e=="number")return Ku[De(e)]??{desktop:De(e),tablet:De(e),mobile:De(e)};if(e&&typeof e=="object"){let o=e;return{desktop:De(o.desktop??pt.desktop),tablet:De(o.tablet??pt.tablet),mobile:De(o.mobile??pt.mobile)}}return{...pt}}function zu(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type==="Footer")??null:null}function Ky(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===Vu)??zu(e):null}var Vu="SiteFooter",Xu="SiteHeader";function zy(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===Xu)??null:null}var ju="subscribe-popup",Qy="subscribe-popup";var Yu=[ju,Sa,fl];function il(e){return Yu.includes(e)}var Zu=["delay","scroll","exit"],Qu=["all","chosen"],Ju=["visit","days","never"],ei=["right","left"],oi={min:0,max:60},ti={min:10,max:90},ai={min:1,max:90},Fa={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:{}},A=W,ri=nl,dl=ll,pl=it;function mt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function ya(e,o,t){let a=ri(e,t);return Math.min(o.max,Math.max(o.min,Math.round(a)))}function ni(e){return typeof e.hideAfter=="string"?mt(Ju,e.hideAfter,Fa.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Fa.hideAfter}function li(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function ul(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 fi(e,o){return Array.isArray(e)?pl(e,[]):o}function si(e,o){return Array.isArray(e)?e.map(t=>{let a=t??{};return{label:A(a.label,""),value:A(a.value,"")}}).filter(t=>t.label||t.value):o}function Jy(e){let o=e??{},t=Fa;return{metaLabel:A(o.metaLabel,t.metaLabel),issueLabel:ul(o.issueLabel,t.issueLabel),issueNumber:ul(o.issueNumber,t.issueNumber),kicker:A(o.kicker,t.kicker),heading:A(o.heading,t.heading),deck:A(o.deck,t.deck),stats:si(o.stats,t.stats),formLabel:A(o.formLabel,t.formLabel),formHeading:A(o.formHeading,t.formHeading),formIntro:A(o.formIntro,t.formIntro),firstNameLabel:A(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:A(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:A(o.emailLabel,t.emailLabel),emailPlaceholder:A(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:A(o.interestsLabel,t.interestsLabel),interests:pl(o.interests,t.interests),frequencyLabel:A(o.frequencyLabel,t.frequencyLabel),frequencies:fi(o.frequencies,t.frequencies),submitText:A(o.submitText,t.submitText),finePrint:A(o.finePrint,t.finePrint),dismissText:A(o.dismissText,t.dismissText),emailInvalidText:A(o.emailInvalidText,t.emailInvalidText),submitErrorText:A(o.submitErrorText,t.submitErrorText),successHeading:A(o.successHeading,t.successHeading),successBody:A(o.successBody,t.successBody),keepBrowsingText:A(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:dl(o.autoOpen,t.autoOpen),autoOpenDelaySec:ya(o.autoOpenDelaySec,oi,t.autoOpenDelaySec),trigger:mt(Zu,o.trigger,t.trigger),scrollPercent:ya(o.scrollPercent,ti,t.scrollPercent),showOn:mt(Qu,o.showOn,t.showOn),showOnPages:li(o.showOnPages),hideAfter:ni(o),hideDays:ya(o.hideDays,ai,t.hideDays),formSide:mt(ei,o.formSide,t.formSide),valuePanelOnPhone:dl(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:sl(o)}}import{jsx as ci}from"react/jsx-runtime";import{createContext as di,useCallback as ui,useContext as ii,useState as Ta}from"react";var ml=di({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{}});function aF({children:e,editFooter:o}){let[t,a]=Ta(null),[r,n]=Ta(null),[l,f]=Ta(0),s=ui(()=>f(c=>c+1),[]);return ci(ml.Provider,{value:{footerBlock:t,setFooterBlock:a,headerGroup:r,setHeaderGroup:n,editFooter:o,refreshToken:l,refreshFooter:s},children:e})}var rF=()=>ii(ml);var xl=["general","commerce","service"],eo=[{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:"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 lF(){return Object.fromEntries(eo.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var pi={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."},fF=["Grid"],sF=Array.from(new Set([...eo.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(pi)])),cF=Object.fromEntries(eo.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),mi={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",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"},xt={...mi,...Object.fromEntries(eo.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function Il(e){return Object.prototype.hasOwnProperty.call(xt,e)?xt[e]:void 0}function va(e){return Object.keys(xt).filter(o=>xt[o]===e).sort()}var dF=va("general"),uF=va("commerce"),iF=va("service"),xi="Flex",ye="Box",pF=`${ye}es`;function Ii(e){return e==="section"?"Blank section":ye}function mF(e,o,t){return e===xi?Ii(o):t}var Ne=$n,hl=e=>e.blocks;import{jsx as It}from"react/jsx-runtime";import{createContext as hi,lazy as gi,Suspense as bi,useContext as Ci}from"react";var Si={Link:Kn,Image:qn},yi=hi(Si);function gl(){return Ci(yi)}function yF(e){let{Link:o}=gl();return It(o,{...e})}function bl(e){let{Image:o}=gl();return It(o,{...e})}function FF(e){let o=gi(e);return function(t){return It(bi,{fallback:null,children:It(o,{...t})})}}var oe=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],ht="bottom-left";var Bo={"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 Fi(e){let o=oe.indexOf(Fe(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function Ti(e){return 1+Fi(e).band*6}function vF(e){return Ti(e)+1}function Fe(e){return oe.includes(e)?e:ht}function EF(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function LF(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function Ea(e,o){let t=Fe(o);return e.filter(a=>Fe(a?.props?.placement)===t).length}function Cl(e){return`${Bo[Fe(e)]} already holds 4 boxes. Move one somewhere else first.`}function La(e,o){let t=e.filter(a=>a?.props?.id!==o);return oe.map(a=>{let r=Ea(t,a)>=4,n=Bo[a];return r?{value:a,label:n,disabled:!0,title:Cl(a)}:{value:a,label:n}})}function gt(e,o){let t=o===void 0?ht:Fe(o?.props?.placement);return Ea(e,t)>=4?Cl(t):null}var Sl="HeroGroup";function BF(e){let o=new Map,t=!1,a=e.filter(r=>{let n=Fe(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 vi(e){return oe.map(o=>{let t=Ea(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function Ba(e){let o=vi(e);return o.length===0?null:o.map(({anchor:t,total:a,hidden:r})=>{let n=Bo[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 OF(e,o){let t=o;if(t?.type!==Sl)return null;let a=t.props?.id===void 0?"":String(t.props.id);return a?gt(Oa(e,a),t):null}function Oa(e,o){let t=yl(e,o);return t&&t.ownerType===Li?t.siblings:[]}function PF(e,o){let t=yl(e,o);return t?t.ancestorTypes.filter(a=>a===Sl).length:Ei}var Ei=1,Li="HeroSlide";function yl(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 s=f.type,c=a(f,n+1,[...l,String(s)]);if(c)return c}return null}for(let f of Object.values(r)){let s=a(f,n+1,l);if(s)return s}return null};return a(e,0,[])}import{childSlotsOf as kF,FOOTER_TYPE as bt,HEADER_TYPE as Me,locateNode as Fl,missingPinnedTypes as wF,nestsInTree as _F,newNodeId as Oo,pinnedDuplicateIds as DF,pinnedDuplicateIndices as NF,ROOT_ZONE as MF,slotFieldsOf as HF,TREE_MAX_DEPTH as GF}from"efficient-easel/screen/lib/puck/content-tree";import{jsx as Po,jsxs as Vi}from"react/jsx-runtime";import{createContext as Xi,useContext as ji}from"react";import{jsx as oo,jsxs as Ll}from"react/jsx-runtime";import{useEffect as Pa,useRef as _i,useState as Ct}from"react";import{jsx as Tl,Fragment as Bi,jsxs as Oi}from"react/jsx-runtime";import{useEffect as Pi,useRef as vl,useState as Ai}from"react";var Ri="#t=0.001",ki=2;function wi(e,o){if(e.readyState<ki||!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 El({src:e,objectPosition:o="50% 50%",onError:t}){let a=vl(null),r=vl(null),[n,l]=Ai(!1);return Pi(()=>{let f=a.current,s=r.current;if(n||!f||!s)return;let c=()=>{wi(f,s)&&l(!0)};return c(),f.addEventListener("loadeddata",c),f.addEventListener("seeked",c),()=>{f.removeEventListener("loadeddata",c),f.removeEventListener("seeked",c)}},[n]),Oi(Bi,{children:[Tl("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&&Tl("video",{ref:a,src:`${e}${Ri}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var Di=.5;function Bl({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:a=Di,objectPosition:r="50% 50%",quiet:n=!1}){let l=o||"",f=e||"",[s,c]=Ct(!1),[i,u]=Ct(!1),[p,m]=Ct(!1),[x,I]=Ct(!1),g=_i(null);Pa(()=>{c(!1),u(!1),m(!1)},[e,o]),Pa(()=>{if(typeof window>"u")return;let y=()=>{let b=window;b.requestIdleCallback?b.requestIdleCallback(()=>I(!0),{timeout:2e3}):setTimeout(()=>I(!0),800)};if(document.readyState==="complete"){y();return}return window.addEventListener("load",y,{once:!0}),()=>window.removeEventListener("load",y)},[]),Pa(()=>{let y=g.current;if(!y)return;let b=()=>{y.playbackRate=a};return b(),y.addEventListener("loadedmetadata",b),()=>y.removeEventListener("loadedmetadata",b)},[e,a]);let L=zn(l);return Ll("div",{className:"absolute inset-0 z-[1]",children:[oo("div",{className:"absolute inset-0",style:{background:"var(--surface)"}}),l&&(L?oo("img",{src:l,alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",style:{display:s?"none":"block",objectPosition:r},onError:()=>c(!0)},l):oo(bl,{src:l,alt:"",fill:!0,priority:!0,sizes:"100vw",className:"z-[2] object-cover",style:{display:s?"none":"block",objectPosition:r},onError:()=>c(!0)},l)),t&&!n&&f&&x&&!i&&Ll("video",{ref:g,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:()=>u(!0),children:[Vn(f)&&oo("source",{src:f.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),oo("source",{src:f,type:"video/mp4"})]},f),t&&n&&f&&x&&!p&&(!l||s)&&oo(El,{src:f,objectPosition:r,onError:()=>m(!0)},f)]})}var Ol=["top","middle","bottom"],Pl=["left","center","right"],Al="bottom",Rl="left",Ni={top:"Top",middle:"Middle",bottom:"Bottom"},Mi={left:"Left",center:"Center",right:"Right"};var ZF="Up and down",QF="Sideways",Hi={top:"flex-start",middle:"center",bottom:"flex-end"},Gi={left:"flex-start",center:"center",right:"flex-end"},Ui="--sf-hero-phone-y",Wi="--sf-hero-phone-x";function $i(e){return Ol.includes(e)?e:Al}function qi(e){return Pl.includes(e)?e:Rl}function kl(e,o){let t=$i(e),a=qi(o),r={};return t!==Al&&(r[Ui]=Hi[t]),a!==Rl&&(r[Wi]=Gi[a]),r}function JF(){return Ol.map(e=>({label:Ni[e],value:e}))}function eT(){return Pl.map(e=>({label:Mi[e],value:e}))}var Ki="#0A0A0A",zi=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function wl(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 _l(e){return e==null?!0:e!==!1}function Dl(e){let o=(e?wl(e):null)??wl(Ki);return`linear-gradient(180deg, ${zi.map(([t,a])=>`rgba(${o},${a}) ${t}%`).join(", ")})`}var Aa=Xi({});function cT({name:e,process:o,mediaType:t="video",mediaSrc:a,videoSpeed:r,poster:n,objectPosition:l,tintColor:f="#000000",tintOpacity:s=0,groups:c,editing:i=!1,themeClassName:u,themeStyle:p}){let{alignment:m="left",textureOpacity:x,textureOn:I,textureColor:g,quietVideo:L,phoneUpDown:y,phoneSideways:b}=ji(Aa),B=t==="video",G=B?vo(a):void 0,ie=B?vo(n):vo(a)??vo(n),Z=typeof r=="number"?r/100:1;return Vi("section",{className:u?`relative h-full w-full overflow-hidden ${u}`:"relative h-full w-full overflow-hidden",style:p,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":G?"video":"still",children:[Po(Bl,{videoSrc:G,posterSrc:ie,showVideo:B,playbackRate:Z,objectPosition:l,quiet:L}),s>0&&Po("div",{className:"absolute inset-0 z-[2]",style:{background:f,opacity:Math.min(Math.max(s,0),100)/100}}),_l(I)&&Po("div",{className:"absolute inset-0 z-[2]",style:{background:Dl(g),...x!==void 0?{opacity:x/100}:null}}),Po("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:{color:"var(--overlay-fg)",...kl(y,b)},children:c&&Po(c,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var Nl=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));var to="content",_="Flex",Yi="Text & media",Zi="Layout & structure",Qi=[{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:Yi})),Ji=(eo.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Zi})),Ml=[...Qi,...Ji],Ra=[{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:ye}],iT=Ra.map(e=>e.type),ep=1,op=Ra.filter(e=>e.type!=="HeroGroup");function tp(e){return e<ep?Ra:op}var ap={Flex:{slot:to,choices:()=>Ml},Grid:{slot:to,choices:()=>Ml},HeroGroup:{slot:to,choices:tp}};function Hl(e,o=0){let t=ap[e];return t?{slot:t.slot,choices:t.choices(o)}:null}var rp="ImageBlock",np=3,St=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:Oo(e),...t}}),lp=e=>({...e?.(_)??{},direction:"column",[to]:[St(rp,e),St(_,e,{direction:"column",[to]:[St("Heading",e),St("Text",e)]})]}),Te={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>Nl.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${ye.toLowerCase()}`,seeds:()=>[],addBlocked:gt,notice:Ba},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${ye.toLowerCase()}`,seeds:()=>[],addBlocked:gt,notice:Ba},ProcessSteps:{slot:"boxes",childType:_,addLabel:`Add ${ye.toLowerCase()}`,seeds:e=>Array.from({length:np},()=>lp(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function bT(e){for(let[o,t]of Object.entries(e)){if(o in Te&&Te[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);Te[o]=t}}function CT(e,o){let t=Te[e];return t?{slot:t.slot,children:t.seeds(o).map(a=>({type:t.childType,props:{id:Oo(t.childType),...a}}))}:null}var fp={general:!0,commerce:!0,service:!0};function ka(e){let o=e?.sets;return o?Object.fromEntries(xl.map(t=>[t,o.includes(t)])):fp}function TT(e=ee()){return ka(e.blocks)}function U(e,o,t,a={}){return{type:e,props:{...o(e),id:t(e),...a}}}var sp={Manifesto:(e,o)=>({type:_,props:{...e(_),id:o(_),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[U(_,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[U("Eyebrow",e,o,{eyebrowLook:"plain"}),U("Heading",e,o),U("Text",e,o),U("Stats",e,o)]}),U(_,e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:_,props:{...e(_),id:o(_),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[U(_,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[U("Eyebrow",e,o,{eyebrowLook:"plain"}),U("Heading",e,o),U("Text",e,o),U("ButtonBlock",e,o)]}),U(_,e,o,{direction:"column",name:"Image",content:[U("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:_,props:{...e(_),id:o(_),direction:"column",name:"Subscribe",content:[U("Heading",e,o),U("Text",e,o),U("Form",e,o)]}})};function Gl(e){return sp[e]??null}import{blockTypesIn as wa}from"efficient-easel/screen/lib/puck/block-types-in";var Ul=()=>({}),Wl=new Map;function cp(e){let o=Wl.get(e);if(o)return o;let t=new Set,a=Te[e];if(a)for(let l of a.seeds(Ul))for(let f of wa({type:a.childType,props:l}))t.add(f);let r=Gl(e);if(r){let l=0;for(let f of wa(r(Ul,s=>`${s}-${l+=1}`)))t.add(f)}t.delete(e);let n=[...t].sort();return Wl.set(e,n),n}function dp(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=ka(e),t=e.allow?new Set(e.allow):null,a=new Set(e.deny??[]),r=new Set(Object.keys(e.host??{})),n=s=>{if(a.has(s))return!1;if(r.has(s))return!0;let c=Il(s);return!c||!o[c]?!1:t?t.has(s):!0},l=new Map,f=s=>{let c=l.get(s);if(c!==void 0)return c;l.set(s,!1);let i=n(s)&&cp(s).every(f);return l.set(s,i),i};return{sets:o,offers:f}}var up="block-offer";function _a(e=ee()){return e.cache(up,()=>dp(hl(e)))}function NT(e,o=ee()){let t=_a(o);return t?t.offers(e):!0}var yt="SiteHeader",Da="SiteFooter",$l="sections",HT=[yt,Da],GT=e=>e===yt||e===Da,UT=e=>`${e}:${$l}`;function WT(e,o,t=[]){return{type:e,props:{id:o,[$l]:t}}}var ip=new Set(["Footer",yt,Da]);function $T(e){let o=new Set,t=!1,a=e.filter(r=>{let n=r?.type??"";return n==="Header"?(t=!0,!1):ip.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?a:e}function qT(e,o){return e.some(t=>t?.type===o.type)?e:o.type===yt?[o,...e]:[...e,o]}import{PreviewPartsProvider as VT,usePreviewParts as XT}from"efficient-easel/screen/components/PreviewPartsContext";import{jsx as pp}from"react/jsx-runtime";import{createContext as mp,useContext as xp,useMemo as Ip,useState as hp}from"react";var gp={partStyle:null,setPartStyle:()=>{}},ql=mp(gp);function QT({children:e}){let[o,t]=hp(null),a=Ip(()=>({partStyle:o,setPartStyle:t}),[o]);return pp(ql.Provider,{value:a,children:e})}function JT(){return xp(ql)}import{applyMark as nv,markupTools as lv,MARKUP_TOOLS as fv,COPY_FIELD_TOOLS as sv,STOREFRONT_MARKUP as cv,tokenizeInline as dv,stripInline as uv,isSafeLinkHref as iv}from"efficient-easel/markup";import{applyMark as bp,markedAt as Cp,markupTools as Sp,MARKUP_TOOLS as yp,parseMarkup as Fp,RETIRED_MARKS as Tp,STOREFRONT_MARKUP as vp,tokenizeInline as mv}from"efficient-easel/markup";var Ft=["highlight","strong","quiet"],He={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},le={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},Kl=Object.fromEntries(Ft.map(e=>[le[e].kind,e])),zl="data-sf-ws",Ma=["accent","text","labels"],Vl={accent:"Accent",text:"Text",labels:"Labels"},ve={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"};var Na={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},tv={highlight:{...Na},strong:{...Na},quiet:{...Na}};var jl=Ft.map(e=>({open:le[e].delimiter,close:le[e].delimiter,kind:le[e].kind})),Yl=[{style:le.highlight.kind,label:He.highlight,title:`${He.highlight} word style`},{style:le.strong.kind,label:He.strong,title:`${He.strong} word style`},{style:le.quiet.kind,label:He.quiet,title:`${He.quiet} word style`}],Ep=new Set(jl.map(e=>e.open)),Zl=[...vp.filter(e=>!Ep.has(e.open)),...jl];function Ha(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Ga(e){return Fp(typeof e=="string"?e:"",Zl)}var Lp=["quiet"],Xl=[...yp.map(e=>e.style).filter(e=>!Lp.includes(e)&&!Tp.includes(e)),...Yl.map(e=>e.style)].filter(e=>Zl.some(o=>o.kind===e));function Ql(){return[...Sp(Xl),...Yl].filter(e=>Xl.includes(e.style))}var Jl=Object.fromEntries(Ft.map(e=>[le[e].kind,le[e].delimiter]));function ef(e,o,t,a){let r=Jl[a];if(!r)return bp(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 s=n||"styled text";return{text:e.slice(0,o)+r+s+r+e.slice(t),selectionStart:o+r.length,selectionEnd:o+r.length+s.length}}function of(e,o,t,a){let r=Jl[a];return r?o>=r.length&&e.slice(o-r.length,o)===r&&e.slice(t,t+r.length)===r:Cp(e,o,t,a)}function Ao(e){return Ga(e).map(o=>Ha(o)+tf(o.children)).join(`
|
|
3
|
+
`)}function tf(e){return e.map(o=>o.kind==="text"?o.text:tf(o.children)).join("")}var te={min:1e3,max:2e3,step:50,default:1600};function af(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function hv(e,o){if(e!==!1)return null;let t=typeof o=="number"?o:te.default;return af(t)}var rf="--sf-site-width",Tt=`var(${rf},${te.default}px)`,gv=`max-w-[${Tt}]`,bv=`max-w-[${te.default}px]`;function Bp(e){return typeof e!="number"||!Number.isFinite(e)?te.default:Math.round(Math.min(Math.max(e,te.min),te.max))}function Cv(e){let o=Bp(e);return o===te.default?{}:{[rf]:`${o}px`}}var Ro={min:0,max:80,step:4,default:40},nf="--sf-site-gutter",$=`var(${nf},${Ro.default}px)`,Op=`px-[${$}]`;var Ee={md:`min(24px,${$})`,sm:`min(20px,${$})`,frame:`min(24px,${$})`,tabs:`min(16px,${$})`},Sv=[[`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-[${$}]`,"min-[800px]:px-10"],[`max-[720px]:px-[min(24px,${$})]`,"max-[720px]:px-6"],[`max-[800px]:-mx-[min(20px,${$})]`,"max-[800px]:-mx-5"],[`max-[720px]:-mx-[min(20px,${$})]`,"max-[720px]:-mx-5"],[`-mx-[${$}]`,"-mx-10"],[Op,"px-10"]];function Pp(e){return typeof e!="number"||!Number.isFinite(e)?Ro.default:Math.round(Math.min(Math.max(e,Ro.min),Ro.max))}function yv(e){let o=Pp(e);return o===Ro.default?{}:{[nf]:`${o}px`}}var vt=`min(var(--sf-page-cap,${Tt}),${Tt})`,Fv=`max-w-[${vt}]`,Tv=`max-w-[min(var(--sf-page-cap,${te.default}px),${te.default}px)]`,lf="--sf-hero-cap",Ap=`var(${lf},none)`,vv=`max-w-[${Ap}]`,Ua="--sf-hero-bleed-m",Wa="--sf-hero-bleed-w",Ev=`var(${Ua},calc(50% - 50vw))`,Lv=`var(${Wa},100vw)`,Bv=`mx-[var(${Ua},calc(50%_-_50vw))]`,Ov=`w-[var(${Wa},100vw)]`,$a="--sf-hero-chrome-x",qa="--sf-hero-chrome-cap";function Pv(e){return e===!0?{[lf]:vt,[Ua]:"auto",[Wa]:"100%",[$a]:"24px",[qa]:"none"}:{}}var Ka=`calc(${Tt} - ${$}*2)`,Av=`max-w-[${Ka.replace(/ /g,"_")}]`;var Rp="--sf-chrome-cap",kp=`var(${Rp},${Ka})`,Rv="data-page-width";function kv(e){return e==="full"?"full":null}function wv(e){return e==="full"?null:af(e==="content"?Ka:kp)}function _v(e){if(e==="full")return"full";if(e==="content")return"content"}var ff="homepage";function sf(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var cf=[{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 df(e){return e.offersCommerce&&e.offersService?cf:cf.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function ko(e){return e===ff?"/":`/${e}`}function uf(e){return`/journal/${e}`}function Uv(e){return`/wheels/${e}`}function pf(e,o){return`${ko(e)}#${o}`}function wp(e){return sf(e)}function _p(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function mf(...e){let o=new Set,t=[];for(let a of e)for(let r of a?.content??[]){let n=_p(r?.props?.anchor);if(!n)continue;let l=wp(n);!l||o.has(l)||(o.add(l),t.push({slug:l,name:n}))}return t}var Dp=["http","https","mailto","tel"];function za(e){let o=e.trim();if(!o||/\s/.test(o))return!1;let t=/^([a-z][a-z0-9+.-]*):/i.exec(o);return!t||Dp.includes(t[1].toLowerCase())}function Wv(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 Np="sf-section-accent",xf="Color",If=new Set(["CategoryBar","DocTabs"]),qv=new Set(["Flex"]),Mp=0;function Va(e){return e===-1?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Mp}function Kv(e){return e??-1}function Hp(e){let o=`--theme-preset-${e}`;return{"--sf-sec-accent":`var(${o}-accent)`,"--sf-sec-accent-2":`var(${o}-accent-2)`,"--sf-sec-accent-ink":`var(${o}-accent-ink)`,"--sf-sec-bg":`var(${o}-bg, var(--theme-bg))`,"--sf-sec-fg":`var(${o}-fg, var(--theme-fg))`,"--sf-sec-surface":`var(${o}-surface, var(--theme-surface))`,"--sf-sec-surface-2":`var(${o}-surface-2, var(--theme-surface-2))`,"--sf-sec-line":`var(${o}-line, var(--theme-line))`,"--sf-sec-muted":`var(${o}-muted, var(--theme-muted))`}}function zv(e){let o=Va(e.sectionAccent);return o===null?null:{className:Np,style:Hp(o)}}var Gp=["column","row","tabs"],hf="Direction",Up={column:"Stacked",row:"One row",tabs:"Tabs"},gf={Flex:Gp,HeroGroup:["column","row"]},Wp={Flex:"row",HeroGroup:"column"},$p={column:"flex-col",row:"flex-row",tabs:"flex-col"};function Et(e,o){return gf[e].includes(o)?o:Wp[e]}function Xv(e,o){return $p[Et(e,o)]}function bf(e){return gf[e].map(o=>({label:Up[o],value:o}))}import{ScreenDocumentContext as Lt,ScreenDocumentProvider as Zv,useScreenDocument as Cf}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as w,jsxs as Ge,Fragment as Im}from"react/jsx-runtime";import{useCallback as hm,useContext as gm,useEffect as bm,useId as wf,useRef as Rf,useState as kf}from"react";import{ThemeIcon as Cm}from"efficient-easel/icons";import{SettingsField as Sm}from"efficient-easel/panel";import{jsx as C,jsxs as Be,Fragment as tm}from"react/jsx-runtime";import{SettingsField as Za,SettingsGroupSub as am}from"efficient-easel/panel";import{Button as Ya}from"efficient-shell/ui";import{jsx as Le,jsxs as Ff}from"react/jsx-runtime";import{SettingsField as jp}from"efficient-easel/panel";import{AccentIcon as Yp}from"efficient-easel/icons";import{Tooltip as Zp}from"efficient-shell/ui";import{jsx as ao,jsxs as Kp}from"react/jsx-runtime";import{ColorPicker as yf,HexInput as zp}from"efficient-shell/ui";import{typedHex as Xa}from"efficient-easel/pick";import{typedHex as qp}from"efficient-easel/pick";function Sf(e){let o=new Set,t=[];return Lo(e).themes.forEach((a,r)=>{let n=[[`Theme ${r+1} main color`,a.accent],[`Theme ${r+1} text color`,a.text],[`Theme ${r+1} background`,a.background]];for(let[l,f]of n){let s=f?qp(f):null;!s||o.has(s)||(o.add(s),t.push({name:l,value:s}))}}),t}function xe({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l,ariaLabel:f}){return ao(Xp,{value:e,onChange:o,label:f??t,id:a,caption:r,inherited:n,after:l})}function Vp(){let{theme:e}=me();return Sf(e).map(o=>({value:o.value,label:o.name}))}function Xp({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l}){let f=Vp(),s=e?null:Xa(n??""),c=r!==void 0&&(!e||Xa(r)!==Xa(e))?r:null,i=u=>{u!==e&&o(u)};return Kp("div",{className:"sf-colour",children:[ao(yf,{id:a,value:e,onChange:i,label:t,presets:f,fallback:s??void 0,size:"sm",align:"end"}),c!==null?ao("span",{className:"sf-colour-caption",children:c}):ao("span",{className:"sf-colour-hexwrap",children:ao(zp,{value:e||s||"",onChange:i,label:`${t} hex code`,placeholder:e||s?void 0:"Not set",className:s?"sf-colour-hex is-inherited":"sf-colour-hex"})}),l]})}function fE({value:e,onChange:o,label:t}){return ao(yf,{value:e,onChange:a=>{a&&a!==e&&o(a)},label:t,size:"sm",align:"end"})}function ja(e){return ge(e).background}function Qp(e){let o=be(e.accent,ja(e));return o===null?null:{ratio:o,grade:Qe(o)}}function Jp(e){let o=ja(e),t=be(e.accent,o);return t===null?[]:Zn(e.accent).filter(a=>{let r=be(a,o);return r!==null&&r>t&&Qe(r)==="good"})}var em={good:"Easy to read","large-only":Ze["large-only"],hard:Ze.hard};function Tf({value:e,onChange:o}){let t=Qp(e),a=t?.grade,r=t&&t.grade!=="good"?Jp(e):[];return Le(jp,{label:"Main color",icon:Le(Yp,{}),hint:t?em[t.grade]:void 0,action:Le(xe,{value:e.accent,onChange:n=>o({...e,accent:n}),label:"Main color"}),children:r.length>0?Le("div",{className:"w-full min-w-0",children:Ff("div",{className:"sf-readability",children:[Le("p",{className:"sf-readability-advice",children:om(a,!0)}),Le("div",{className:"sf-readability-suggestions",children:r.map(n=>{let l=be(n,ja(e));return Le(Zp,{content:`Use ${n.toUpperCase()}`,children:Ff("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[Le("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),l?`${l.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function om(e,o){return e?e==="good"?"This color reads clearly on your pages.":o?"This color is hard to read on this theme's page. The buttons below are the same hue, darkened.":"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.":"Pick a color to see how it reads."}import{ButtonIcon as rm,GroundIcon as nm,LayoutIcon as lm,SquareIcon as fm,TextSmallIcon as sm,TypeIcon as vf}from"efficient-easel/icons";var wo=e=>`Theme ${e+1}`;function Ef({colors:e}){let o=ge(e),t=Ia(e)??o.accent;return Be("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[C("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:"label"}),Be("span",{className:"sf-theme-headline",children:["Heading ",C("span",{style:{color:o.accent},children:"accent"})]}),C("span",{className:"sf-theme-body",children:"body text"}),Be("span",{className:"sf-theme-row",children:[C("span",{className:"sf-theme-btn",style:{background:t,color:ha(e,o.accent)},children:"button"}),C("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:"card"})]})]})}var Qa={"Text color":C(vf,{}),"Label color":C(sm,{}),Background:C(nm,{}),"Panels & cards":C(lm,{}),Borders:C(fm,{}),"Button color":C(rm,{}),"Button text color":C(vf,{})};function cm({label:e,colorKey:o,value:t,onChange:a,idPrefix:r="sf-theme-ink"}){let n=`${r}-${o}`;return C(Za,{label:e,icon:Qa[e],htmlFor:n,action:C(xe,{id:n,label:e,value:t,onChange:l=>a(o,l)})})}function dm({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 C(Za,{label:"Button color",icon:Qa["Button color"],htmlFor:r,action:C(xe,{id:r,label:"Button color",value:l,caption:n?l:"Main",onChange:t})})}function um({colors:e,accent:o,onChange:t,idPrefix:a="sf-theme-ink"}){let r=`${a}-button-ink`,n=Qn(e),l=ha(e,o),f=Ia(e)??o,s=Qe(be(l,f)??0);return C(Za,{label:"Button text color",icon:Qa["Button text color"],hint:n&&s!=="good"?`${Ze[s]} on the button`:void 0,htmlFor:r,action:C(xe,{id:r,label:"Button text color",value:l,caption:n?l:"Auto",onChange:t})})}var im=[{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 Ja({colors:e,onChange:o,idPrefix:t}){let a=ge(e);return C(tm,{children:im.map(r=>"colour"in r?C(Tf,{value:e,onChange:o},"colour"):"group"in r?C(am,{title:r.group},r.group):"button"in r?C(dm,{value:e.button,accent:a.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in r?C(um,{colors:e,accent:a.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):C(cm,{label:r.label,colorKey:r.key,value:a[r.key],onChange:(n,l)=>o({...e,[n]:l}),idPrefix:t},r.key))})}function Lf({index:e,colors:o,selected:t,role:a="radio",open:r,editable:n=!0,onPick:l,onEdit:f,onChangeColors:s}){let c=ge(o),i=wo(e),u=e<xa.length&&!o.brandInk?xa[e]:null,p=Qe(be(c.text,c.background)??0),m=u?JSON.stringify(o)!==JSON.stringify(u):!1,x=r!==void 0;return Be("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[C("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:C(Ef,{colors:o})}),Be("div",{className:"sf-theme-foot",children:[C("span",{className:"sf-theme-name",children:i}),p!=="good"&&C("span",{className:"sf-theme-warn",children:Ze[p]}),n&&f&&C(Ya,{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?"Done":"Edit"} ${i}`,onClick:f,children:r?"Done":"Edit"})]}),r&&Be("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[C(Ja,{colors:o,onChange:I=>s?.(I)}),u&&C(Ya,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!m,onClick:()=>s?.({...u}),children:m?`Reset ${i} to the preset`:"Not changed"})]})]})}function Bf({colors:e,name:o,nameId:t,open:a,menuId:r,labelId:n,buttonRef:l,onClick:f,onKeyDown:s,onEdit:c}){return Be("div",{className:"sf-secttheme-btn",children:[C("button",{ref:l,type:"button",className:"sf-theme-pick","aria-expanded":a,"aria-controls":r,"aria-labelledby":`${n} ${t}`,onClick:f,onKeyDown:s,children:e?C(Ef,{colors:e}):C("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Be("div",{className:"sf-theme-foot",children:[C("span",{id:t,className:"sf-theme-name",children:o}),c&&C(Ya,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":`Edit ${o}`,onClick:c,children:"Edit"}),C("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:f,children:C("span",{className:"sf-multi-caret",children:"\u25BE"})})]})]})}import{useCallback as er,useEffect as pm,useRef as Bt}from"react";function Of(e=ee()){return(o,t,a)=>{let r=Ne(e).theme;return r?r.update(o,a?{siteId:a}:void 0):Promise.reject(new ba("invalid","This backend stores no site theme."))}}function Pf(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function mm(e,o=Of()){let{themeFromDocument:t,token:a,siteId:r,patch:n}=e,l=Pf({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 Af({themeFromDocument:e,tokenRef:o,siteId:t,onResult:a}){let r=Bt(null),n=Bt({}),l=Je(),f=Bt(a);f.current=a;let s=Bt(null),c=er(p=>{if(p.status==="skipped"){let m=`skipped:${p.reason}`;if(s.current===m)return;s.current=m}else s.current=null;f.current?.(p)},[]),i=er(async()=>{r.current&&(clearTimeout(r.current),r.current=null);let p=n.current;n.current={};let m=await mm({themeFromDocument:e,token:o?.current,siteId:t,patch:p},Of(l));return c(m),m},[e,o,t,c,l]),u=er((p,m=!1)=>{let x=Pf({themeFromDocument:e,token:o?.current});if(x){c(x);return}n.current={...n.current,...p},r.current&&clearTimeout(r.current),m?i():r.current=setTimeout(()=>{i()},500)},[e,o,i,c]);return pm(()=>()=>{i()},[i]),{persist:u,flush:i}}var ym="Follow the page",GE="Follow the slideshow",Fm=e=>`Editing ${e} changes it everywhere.`;function Tm({colors:e}){if(!e)return w("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=ge(e);return Ge("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[w("i",{style:{background:o.background}}),w("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function vm({themes:e,value:o,onPick:t,onEdit:a,menuId:r,followLabel:n}){return Ge("div",{className:"sf-multi-menu sf-secttheme-menu",id:r,role:"listbox",children:[n!==void 0&&Ge(Im,{children:[Ge("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(-1),children:[w(Tm,{}),w("span",{className:"sf-secttheme-name",children:n})]}),w("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&w("p",{className:"sf-secttheme-oncard",role:"presentation",children:`${wo(o)} is on this section`}),e.map((l,f)=>f===o?null:w(Lf,{role:"option",index:f,colors:l,selected:!1,onPick:()=>t(f),onEdit:()=>a(f)},f))]})}function Em({index:e,colors:o,onChange:t,onDone:a}){let r=wo(e),n=wf();return Ge("div",{className:"sf-secttheme-sheet",children:[Ge("div",{className:"sf-secttheme-sheet-head",children:[w("span",{children:r}),w("button",{type:"button",className:"sf-secttheme-done",onClick:a,children:"Done"})]}),w("div",{className:"sf-secttheme-rows",children:w(Ja,{colors:o,onChange:t,idPrefix:n})}),w("p",{className:"sf-secttheme-warn",children:Fm(r)})]})}function _f({value:e,onChange:o,followLabel:t,hint:a}){let{theme:r,setTheme:n}=me(),l=Lo(r),f=gm(Lt),s=f?.tokenRef,c=f?.siteId??null,i=!f?.capabilities?.hasSiteTheme,{persist:u,flush:p}=Af({themeFromDocument:i,tokenRef:s,siteId:c}),m=Lo(l),x=m.themes,I=Va(e),g=I!==null?x[I]:void 0,L=g??(x.length?Yn(m):void 0),[y,b]=kf(!1),[B,G]=kf(null),ie=Rf(null),Z=Rf(null),Q=wf(),F=hm(()=>{b(!1),G(null)},[]);bm(()=>{if(!y&&B===null)return;let k=Ke=>{ie.current&&!ie.current.contains(Ke.target)&&(p(),F())};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[y,B,F,p]);let V=k=>{o(k),F()},nt=k=>{if(B===null)return;let Ke=x.map((Ve,Xe)=>Xe===B?k:Ve),ze={...m,themes:Ke};n(ze),u({selected_preset:ze.selected,theme_presets:ze.themes})};return Ge("div",{className:"sf-secttheme",ref:ie,children:[w(Sm,{label:"Theme",icon:w(Cm,{}),labelId:`${Q}-label`,hint:a,children:w(Bf,{colors:L,onEdit:I!==null?()=>{G(I),b(!1)}:void 0,name:g?wo(I):t??ym,nameId:`${Q}-value`,labelId:`${Q}-label`,open:y,menuId:Q,buttonRef:Z,onClick:()=>{G(null),b(k=>!k)},onKeyDown:k=>{k.key==="Escape"&&(y||B!==null)&&(k.preventDefault(),F())}})}),y&&B===null&&w("div",{onKeyDown:k=>{k.key==="Escape"&&(k.preventDefault(),F(),Z.current?.focus())},children:w(vm,{themes:x,value:I,onPick:V,onEdit:k=>{G(k),b(!1)},menuId:Q,followLabel:t})}),B!==null&&x[B]&&w(Em,{index:B,colors:x[B],onChange:nt,onDone:()=>{p(),F(),Z.current?.focus()}})]})}import{jsx as T,Fragment as fe,jsxs as se}from"react/jsx-runtime";import{TitleIcon as Lm,ButtonIcon as Bm,DollarIcon as Om,HashIcon as Pm,LinkIcon as Am,NoteIcon as Rm,TagIcon as km,TextLinesIcon as wm}from"efficient-easel/icons";var Df={body:wm,button:Bm,link:Am,label:km,number:Pm,price:Om,note:Rm,title:Lm},Nf={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 or({noun:e,size:o=14,strokeWidth:t=1.8,className:a,style:r}){let n=Df[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:Nf[e]})}var qE=Object.keys(Df);var KE=Object.keys(Nf);var _m="#ffffff",Dm=/^#[0-9a-fA-F]{6}$/;function tr(e){return Nm(e)?e:_m}function Nm(e){return typeof e=="string"&&Dm.test(e)}function VE(e){return{"--bg":tr(e)}}import{jsx as _o,jsxs as Mm}from"react/jsx-runtime";import{LinkPicker as Hm}from"efficient-easel/fields";import{SettingsField as Gm}from"efficient-easel/panel";import{LinkIcon as Um}from"efficient-easel/icons";import{useEffect as Uf,useMemo as ar,useRef as Wm,useState as Ot}from"react";function Mf(){return ee().auth.token}var ro={choosePage:"Choose a page",chooseSection:"Choose a section",noSections:"No section anchors yet",sectionHint:"Jumps to a section on that page.",choosePost:"Choose a post",chooseProduct:"Choose a product"};function Hf(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 Gf(e,o){let t=e.pages.map(c=>({value:ko(c.slug),label:c.title})),a=o?.pageOptions?o.pageOptions(t):t,r=a.map(c=>c.value),n=e.pages.map(c=>({label:c.title,options:mf(...c.docs).map(i=>({value:pf(c.slug,i.slug),label:i.name}))})).filter(c=>c.options.length>0),l=c=>{switch(c){case"page":return{type:"select",options:a,placeholder:ro.choosePage};case"anchor":return{type:"groups",groups:n,placeholder:n.length?ro.chooseSection:ro.noSections};case"blog":return{type:"select",options:e.posts.map(i=>({value:uf(i.slug),label:i.title||i.slug})),placeholder:ro.choosePost};case"product":return{type:"select",options:e.products.map(i=>({value:i.href,label:i.name||i.href})),placeholder:ro.chooseProduct};case"custom":return{type:"text"}}},f=df(e.offers).map(c=>({value:c.value,label:c.label,target:l(c.value),...c.value==="anchor"?{hint:ro.sectionHint}:{},...c.value==="blog"||c.value==="product"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:f,rules:{kindOf:c=>Hf(c,r),targetOf:c=>c,readFilter:()=>null,withFilter:c=>c,isSafe:za}};let s=c=>{let i=o.withFilter(c,null);return o.listingPaths.includes(i)?i:c};return{kinds:f,rules:{kindOf:c=>Hf(c,r,{listingPaths:o.listingPaths,targetOf:s}),targetOf:s,readFilter:o.readFilter,withFilter:o.withFilter,isSafe:za},filtersFor:c=>o.listingPaths.includes(c)?o.filtersFor(c):null}}function Wf(e){let o=new Map;return(t="")=>{let a=Mf(),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 $m=Wf(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:a}=Ne();return a.linkTargets?a.linkTargets(t):(await a.list(t)).map(r=>({id:r.id,slug:r.slug,label:r.label,layout:null}))}),qm=Wf(async(e,o)=>await Ne().blog?.posts(o?{siteId:o}:void 0)??[]);function Km({value:e,onChange:o,label:t="Link",data:a,filters:r}){let n=ar(()=>Gf(a,r),[a,r]);return _o(Gm,{label:t,icon:_o(Um,{}),children:_o(Hm,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:t})})}function $f({value:e,onChange:o,label:t="Link"}){let a=typeof e=="string"?e:"",{siteId:r,capabilities:n}=Cf(),{offersCommerce:l,hasBlog:f}=n,[s,c]=Ot([]),[i,u]=Ot([]),[p,m]=Ot([]),[x,I]=Ot(null),g=Je().chrome,L=g?.products?.list,y=g?.linkFilters,b=y?void 0:g?.linkRow,B=Wm(!0);Uf(()=>(B.current=!0,()=>{B.current=!1}),[]),Uf(()=>{let F=!0;return $m(r??void 0).then(V=>F&&B.current&&c(V)),f&&qm(r??void 0).then(V=>F&&B.current&&u(V)),l&&L?.().then(V=>F&&B.current&&m(V)),l&&y?y.load(r).catch(()=>null).then(V=>F&&B.current&&I(()=>V)):I(null),()=>{F=!1}},[r,l,f,L,y]);let G=ar(()=>({pages:s.filter(F=>!il(F.slug)).map(F=>({slug:F.slug,title:F.label,docs:[F.layout]})),posts:f?i.map(F=>({slug:F.slug,title:F.title})):[],products:l?p.map(F=>({href:F.href,name:F.name})):[],offers:{offersCommerce:l,offersService:f}}),[s,i,p,l,f]),ie=ar(()=>x?x(G.pages):null,[x,G]),Z=G.pages.map(F=>ko(F.slug)),Q=l&&b&&(a==="/"||Z.includes(a))?b:void 0;return Mm("div",{children:[_o(Km,{value:a,onChange:o,label:t,data:G,filters:ie}),Q&&_o(Q,{value:a,onChange:o,pages:s})]})}var zf="sf.gapContainer",Oe={min:-32,max:64,step:2},Vf={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},Pt={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},zm=new Set(["Events","GalleryB"]);function nr(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Oe.min)return o;if(typeof o=="string"){let a=Vf[e]?.[o];if(typeof a=="number")return a}return typeof t=="number"&&Number.isFinite(t)?t:Pt[e]}var Vm="sf-gap-overlap",Xm="--sf-gap-overlap",Xf="--sf-block-gap",jm="--sf-block-gap-rem",rr={min:0,max:Oe.max,step:Oe.step};function Ym(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),rr.min),rr.max);return o-o%rr.step}function pL(e){let o=Ym(e);return o===null?{}:{[Xf]:`${o}px`,[jm]:`${o/16}rem`}}var qf="sf-gap-zone",Kf="--sf-gap-len";function lr(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Oe.min?!0:typeof o=="string"&&typeof Vf[e]?.[o]=="number"}var Zm={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function mL(e,o,t){if(!lr(e,o)){let r=`${Pt[e]}px`,n=zm.has(e)?`var(--sf-card-gap, ${r})`:r;return{className:` ${qf}`,style:{[Kf]:`var(${Xf}, ${n})`}}}let a=nr(e,o);return a>=0?{className:` ${qf}`,style:{[Kf]:`${a}px`}}:{className:` ${Vm} ${Zm[t]}`,style:{gap:"0px",[Xm]:`${-a/2}px`}}}import{jsx as d,jsxs as Re,Fragment as we}from"react/jsx-runtime";import{cloneElement as HI,useId as GI,useRef as Nr,useState as mc}from"react";import{useEasel as mo}from"efficient-easel/easel";import{hidableText as jf,readHidable as Pe}from"efficient-easel/screen/lib/puck/hidable";var Yf="50% 50%";var lo=e=>e<0?0:e>100?100:Math.round(e);function fr(e){let o=String(e??"").trim().split(/\s+/);if(o.length!==2)return{x:50,y:50};let t=n=>{let l=/^(-?\d+(?:\.\d+)?)%$/.exec(n);return l?Number(l[1]):null},a=t(o[0]),r=t(o[1]);return a===null||r===null?{x:50,y:50}:{x:lo(a),y:lo(r)}}function no(e,o){return`${lo(e)}% ${lo(o)}%`}function Zf(e,o,t=!1){let a=t?10:1,{x:r,y:n}=fr(e);switch(o){case"ArrowLeft":return no(r-a,n);case"ArrowRight":return no(r+a,n);case"ArrowUp":return no(r,n-a);case"ArrowDown":return no(r,n+a);default:return null}}function Qf(e,o,t){return!(e.width>0)||!(e.height>0)?{x:50,y:50}:{x:lo((o-e.left)/e.width*100),y:lo((t-e.top)/e.height*100)}}import{ANCHOR_FIELD_KEYS as CL,FOLD_FIELD_MARKER as sr,foldMetaOf as Ue,LINK_FIELD_MARKER as Do,MEDIA_FIELD_MARKER as Jf,SCAFFOLD_FIELD_MARKER as No,TEXT_FIELD_MARKER as D,textFieldIdentifier as Qm}from"efficient-easel/screen/lib/puck/field-markers";import{jsx as ls}from"react/jsx-runtime";import{useCallback as tx,useEffect as ax,useRef as rx,useState as nx}from"react";import{useEasel as lx}from"efficient-easel/easel";import{SettingsAction as fx}from"efficient-easel/panel";function cr(e){return typeof e=="number"&&Number.isFinite(e)}function FL(e,o){if(!cr(e))return;let t=dt(Se(e));if(Object.keys(t).length===0)return;let a=t[At];if(typeof a!="string")return t;let r=fo(o)?so(a,X(o)??[]):a;return{...t,[Jm]:r}}var Jm="--sf-section-radius",At="--sf-card-radius",q=["tl","tr","br","bl"];function X(e){if(!Array.isArray(e))return null;let o=e.filter(t=>q.includes(t));return q.filter(t=>o.includes(t))}function fo(e){let o=X(e);return o!==null&&o.length<q.length}function so(e,o){return q.map(t=>o.includes(t)?e:"0").join(" ")}var Ae="Which corners",co=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];function Rt(e){let o=t=>e.includes(t);if(e.length===q.length)return"All four";if(e.length===0)return"None";if(e.length===1)return co.find(t=>t.value===e[0])?.label??"1 corner";if(e.length===2){if(o("tl")&&o("tr"))return"Top two";if(o("bl")&&o("br"))return"Bottom two";if(o("tl")&&o("bl"))return"Left two";if(o("tr")&&o("br"))return"Right two"}return`${e.length} corners`}var ex="--sf-card-box-radius",ox="--sf-site-card-radius",BL="sf-section-bleeds";function Mo(e){return typeof e=="number"&&Number.isFinite(e)}function OL(e,o){if(!Mo(e))return;let t=dt(Se(e))[At];if(typeof t!="string")return;let a=fo(o)?so(t,X(o)??[]):t;return{[ex]:a}}function PL(e){let o=e[At];return typeof o=="string"?{[ox]:o}:{}}function es(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 os(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?Fl(e,o,n):null,s=f&&Array.isArray(f.item.props[l])?f.item.props[l]:[],c=t?.index??-1,i=c>=0?s[c]:void 0,u=i?.props?.id?String(i.props.id):"",p=Math.max(s.length-1,0);return!f||!u?{can:!1,reason:"unreachable",others:0}:s.length<=1?{can:!1,reason:"alone",others:p}:Mo(i?.props?.cardCorners)?{can:!0,others:p,zone:f.zone,index:f.index,data:{...f.item,props:{...f.item.props,[l]:es(s,u)}}}:{can:!1,reason:"unset",others:p}}function ts(e){if(!e.can)return e.reason==="alone"?"This is the only card in the section.":e.reason==="unset"?"Set this card's corners first.":"This card is not in a section that can share corners.";let o=e.others;return`Gives the other ${o===1?"card":`${o} cards`} this card's Corners and Which corners.`}function as(e){return`Applied to ${e} ${e===1?"card":"cards"}`}function rs(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as ns}from"efficient-easel/screen/lib/puck/use-section-ops";var sx=2200,cx="apply-corners-to-siblings",dx="Apply to all cards";function ux({plan:e,doneCount:o,onPress:t}){return ls(fx,{id:cx,label:dx,note:ts(e),disabled:!e.can,done:o!==null,doneLabel:as(o??0),onPress:t})}function fs(){let{appState:e,config:o}=lx(s=>s),t=ns(),[a,r]=nx(null),n=rx(null);ax(()=>()=>{n.current&&clearTimeout(n.current)},[]);let l=os(o,e.data.content??[],e.ui.itemSelector),f=tx(()=>{rs(l,t.replaceComponent),l.can&&(r(l.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>r(null),sx))},[l,t]);return ls(ux,{plan:l,doneCount:a,onPress:f})}var ss=1;function ix(e){return Se(e)}function KL(e){let o=ix(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var cs=1,ds="Corners";function px(e){return Se(e)}function jL(e,o){let t=px(e);if(t===null)return null;let a=`${t}px`;return{borderRadius:fo(o)?so(a,X(o)??[]):a}}var ce={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]]}},dr=Object.keys(ce),is=[2,3,4,6];function ps(e){return typeof e!="string"||e===""?null:ce[e]??null}function us(e,o){return o?6/e.acrossPhone:12/e.across}var mx="sf-wall--";function xx(e){return`${mx}${e}`}function ZL(e){let o=ce[e],t=`.${xx(e)}`,a=[],r=(n,l)=>{let f=[],s=n.length;n.forEach(([c,i],u)=>{f.push(`${t} > :nth-child(${s}n+${u+1}){grid-column:span ${c};grid-row:span ${i}}`)});for(let c=1;c<s;c+=1)f.push(`${t}:has(> :nth-child(${s}n+${c}):last-child) > :nth-last-child(-n+${c}){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,us(o,!1))),a.push("@media (max-width:800px){"),a.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),a.push(...r(o.phone,us(o,!0))),a.push("}"),a.join("")}var kt=12,ms=1,Ix=3;var hx=3;function ur(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 gx(e){return ur(e,1,kt)??hx}function eB(e,o){return ur(e,ms,Ix)??(gx(o)===4?2:ms)}function oB(e){return e==null||e===""?null:ur(e,1,kt)}var tB="data-sf-span";function aB(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(ps(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as bx}from"react/jsx-runtime";var Cx="sf-hint-keep";function xs({children:e}){return bx("span",{className:Cx,children:e})}import{AlignLeftIcon as UI,AlignSeparateIcon as WI,AnimationIcon as xc,BackgroundIcon as $I,BlockSectionIcon as qI,CartIcon as KI,ColumnWidthsIcon as Ic,ColumnsIcon as zI,CornerIcon as hc,DirectionDownIcon as VI,DirectionLeftIcon as XI,DirectionRightIcon as jI,DirectionUpIcon as YI,DollarIcon as ZI,FinishIcon as QI,GapIcon as gc,GridIcon as JI,GroundIcon as eh,HashIcon as bc,ImageIcon as oh,LayoutIcon as th,ListIcon as ah,LocationIcon as _r,PaddingBottomIcon as rh,PaddingLeftIcon as nh,PaddingRightIcon as lh,PaddingTopIcon as fh,PageIcon as Cc,PhoneIcon as sh,PlacementIcon as ch,ProductSizeIcon as dh,RotateIcon as uh,SquareIcon as ih,StylesIcon as ph,TextLinesIcon as mh,TypeIcon as xh,WidthIcon as Ih,WrapIcon as hh}from"efficient-easel/icons";var Sx=["fade","rise","scale"],ir="none",Is=[{label:"None",value:ir},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function sB(e){return Sx.includes(e)?e:null}var hs="data-sf-anim",Ho="data-sf-anim-state";function cB(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(hs))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(Ho,"armed");let a=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){a.disconnect(),yx(e);break}},{threshold:0});return a.observe(e),()=>{a.disconnect(),e.removeAttribute(Ho)}}function yx(e){if(!e.getAttribute(hs))return;e.removeAttribute(Ho),e.offsetWidth,e.setAttribute(Ho,"play");let o=t=>{t.target===e&&(e.removeAttribute(Ho),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var dB=If;function mr(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(pr(a,o,0))return r??{}}return null}function pr(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(r=>pr(r,o,t+1));let a=e.props;return a&&typeof a=="object"&&a.id===o?!0:Object.values(e).some(r=>pr(r,o,t+1))}import{SettingsCorners as Sc,SettingsDefaultReset as Y,SettingsField as R,SettingsGroupHead as gh,SettingsGroupSub as bh,SettingsPlacement as Ch,SettingsSegmented as Sh,SettingsSwitch as yh}from"efficient-easel/panel";import{FieldSelect as Fh,ListField as Th}from"efficient-easel/fields";import{Checkbox as HP,Slider as vh,Tooltip as qt}from"efficient-shell/ui";import{jsx as N,Fragment as wt,jsxs as _t}from"react/jsx-runtime";import{useEffect as Fx,useState as Tx}from"react";import{MarkBar as vx,markSelection as Ex,useCaretEdit as Lx}from"efficient-easel/copy";import{RevertIcon as Bx}from"efficient-easel/icons";import{IconButton as Ox,Tooltip as Px}from"efficient-shell/ui";function Ax({style:e}){let o=t=>N("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(N("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(_t(wt,{children:[N("line",{x1:"10",y1:"5",x2:"19",y2:"5"}),N("line",{x1:"5",y1:"19",x2:"14",y2:"19"}),N("line",{x1:"14",y1:"5",x2:"10",y2:"19"})]}));case"strike":return o(_t(wt,{children:[N("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"}),N("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"}),N("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]}));case"highlight":return o(_t(wt,{children:[N("path",{d:"M14.5 4.5l5 5-8 8H6.5v-5z"}),N("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]}));case"quiet":return o(_t(wt,{children:[N("path",{d:"M12 4.5l5.5 7.5L12 19.5 6.5 12z"}),N("line",{x1:"9.4",y1:"12",x2:"14.6",y2:"12"})]}));default:return null}}var Rx=["bold","italic","strike","highlight"],kx=Object.fromEntries(Rx.map(e=>[e,N(Ax,{style:e},e)])),gs="Clear formatting";function wx(e,o,t){return Ex(e,o,t,ef)}function _x(e){let[o,t]=Tx(null);return Fx(()=>{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(s=>s&&s.start===l&&s.end===f?s:{start:l,end:f})};return a.addEventListener("selectionchange",r),()=>a.removeEventListener("selectionchange",r)},[e]),[o,t]}function Dx({target:e,value:o,onChange:t,disabled:a=!1,label:r="Formatting"}){let n=Lx({target:e,onChange:t}),[l,f]=_x(e),s=p=>n(m=>{let x=wx(o,p,m);return f({start:x.selectionStart,end:x.selectionEnd}),x}),c=Ql(),i={};if(l)for(let p of c)i[p.style]=of(o,l.start,l.end,p.style);let u=Ao(o);return N(vx,{tools:c,onApply:s,pressed:i,disabled:a,glyphs:kx,ariaLabel:r,actions:N("span",{className:"sf-markup-clear",children:N(Px,{content:gs,children:N(Ox,{size:"sm",onMouseDown:p=>p.preventDefault(),onClick:()=>t(u),disabled:a||u===o,"aria-label":gs,children:N(Bx,{size:14})})})})})}var xr=Dx;import{DEVICE_FIELD_MARKER as SB,DEVICE_HIDDEN_ATTR as yB,DEVICE_NOTE as FB,deviceField as ae,deviceMetaOf as bs,deviceNote as TB,shownTier as vB,withoutDeviceGate as EB}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as OB,NO_CONTROL_FIELD as PB,noControlField as Cs,NoControlMark as Ss,noControlMetaOf as AB}from"efficient-easel/screen/lib/puck/panel-no-control-mark";function Go(e){return`${e}Phone`}function Dt(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}import{jsx as Ir,Fragment as Gx}from"react/jsx-runtime";import{createContext as Ux,useContext as Wx}from"react";var ys={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Fs={Events:["posts"],SubscribeBlogs:["posts"]};var Nx=["anchor"],Mx=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Uo(e){return Nx.includes(e)||Mx.test(e)}var Hx={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"}}};Hx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var DB=Object.fromEntries(Object.entries(ys).map(([e,o])=>[e,Object.keys(o)])),NB=Object.fromEntries(Object.entries(Fs).map(([e,o])=>[e,[...o]]));var Ts=Ux(!1);function $B({children:e}){return Ir(Ts.Provider,{value:!0,children:e})}function $x(){return Wx(Ts)}function vs({name:e,children:o}){return!$x()||!e||Uo(e)?Ir(Gx,{children:o}):Ir(Ss,{})}function K(e,o,t){return e.some(a=>(typeof a=="object"?a.value:a)===t)?t:o}var hr="off",gr="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"}],Cr=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function VB(e){return K(br,hr,e)}function XB(e){return K(Cr,gr,e)}var Es="sf-card-index",Wo="sf-card-index",jB="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",qx={plain:`counter(${Wo})`,padded:`counter(${Wo}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Wo}, decimal-leading-zero)`};function YB(e,o){return o==="off"?"":`.${e}{counter-reset:${Wo}}.${e} .${Es}{counter-increment:${Wo}}.${e} .${Es}::before{content:${qx[o]}}`}function ZB(e){return e==="hairline"?"border border-line hover:border-accent":""}var Ls=[{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 We,TEXT_CONTROL_KINDS as Kx}from"efficient-easel/screen/lib/puck/text-control-kinds";import{jsx as de,jsxs as Sr,Fragment as jx}from"react/jsx-runtime";import{useRef as Ps,useState as Yx}from"react";import{jsx as j,jsxs as Bs}from"react/jsx-runtime";import{ChevronIcon as zx}from"efficient-easel/icons";import{Tooltip as Vx}from"efficient-shell/ui";function Os({styleKey:e,label:o,icon:t,value:a,sampleStyle:r,open:n,onToggle:l,saved:f=!1,children:s}){return Bs("div",{"data-sf-style-row":e,className:`sf-style-row${n?" is-open":""}`,children:[Bs("button",{type:"button",className:"sf-style-head","aria-expanded":n,onClick:l,children:[j("span",{className:"sf-style-caret","aria-hidden":"true",children:j(zx,{size:13})}),t?j("span",{className:"es-field-icon",children:t}):null,j("span",{className:"sf-style-name",children:o}),a!=null?typeof a=="string"?j(Vx,{content:a,className:"sf-style-sample-tip",children:j("span",{className:"sf-style-sample",style:r,children:a})}):j("span",{className:"sf-style-sample",style:r,children:a}):null,j("span",{className:`sf-style-slot${f?" is-saved":""}`,children:j(Xx,{})})]}),n&&j("div",{className:"sf-style-body",children:s})]})}function Xx(){return j("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:j("polyline",{points:"20 6 9 17 4 12"})})}function As({label:e,value:o,onChange:t,image:a}){let[r,n]=Yx(!1),l=Ps(null),f=Ps(!1),{x:s,y:c}=fr(o),i=(I,g)=>{let L=l.current?.getBoundingClientRect();if(!L)return;let y=Qf(L,I,g);t(no(y.x,y.y))},u=I=>{let g=Zf(o,I.key,I.shiftKey);g!==null&&(I.preventDefault(),t(g))},p=I=>{I.currentTarget.setPointerCapture?.(I.pointerId),f.current=!0,i(I.clientX,I.clientY)},m=I=>{f.current&&i(I.clientX,I.clientY)},x=()=>{f.current=!1};return de(Os,{styleKey:"imageFocal",label:e,value:o,sampleStyle:{fontSize:11,fontVariantNumeric:"tabular-nums"},open:r,onToggle:()=>n(I=>!I),children:r?de("div",{className:"sf-focus","data-sf-focusing":"",children:a?Sr(jx,{children:[de("button",{type:"button",className:"sf-focus-canvas","aria-label":`${e}: ${o}. Use the arrow keys to move the point.`,onKeyDown:u,onPointerDown:p,onPointerMove:m,onPointerUp:x,onPointerCancel:x,onLostPointerCapture:x,children:Sr("span",{className:"sf-focus-pane",ref:l,children:[de("img",{className:"sf-focus-img",src:a,alt:"",draggable:!1}),de("span",{className:"sf-focus-cross sf-focus-cross--h",style:{top:`${c}%`}}),de("span",{className:"sf-focus-cross sf-focus-cross--v",style:{left:`${s}%`}}),de("span",{className:"sf-focus-marker",style:{left:`${s}%`,top:`${c}%`}})]})}),Sr("div",{className:"sf-focus-bar",children:[de("span",{className:"sf-focus-hint",children:"Press the picture, or nudge the point with the arrow keys."}),de("button",{type:"button",className:"sf-image-btn",onClick:()=>n(!1),children:"Done"})]})]}):de("p",{className:"es-field-hint sf-hint-keep",children:"Choose a background image first \u2014 there\u2019s nothing to focus yet."})}):null})}import{jsxs as Rs,jsx as re}from"react/jsx-runtime";import{SettingsField as ks}from"efficient-easel/panel";import{ImageIcon as ws,PlayIcon as _s}from"efficient-easel/icons";import{ImageBox as Zx}from"efficient-easel/pick";import{useContext as Qx,useState as Ds}from"react";import{FileIntakeAlert as Jx,useFileIntake as eI}from"efficient-shell/file-intake";import{requestMediaPick as yr,resolveMediaPick as iO}from"efficient-easel/screen/lib/media-picker";function Ns({value:e,onChange:o,label:t,accept:a,placeholder:r}){let n=rl(),l=Je(),[f,s]=Ds(!1),[c,i]=Ds(null),u=a.startsWith("video"),p=Qx(Lt),m=eI({accept:a,maxSizeBytes:Ne(l).media.maxUploadBytes,acceptHint:u?"videos only":"images only",multiple:!1,disabled:f,onAccept:([I])=>{i(null),s(!0),yr(n,{accept:a,title:t,file:I}).then(g=>{g&&o(g.url)}).catch(()=>i("Couldn\u2019t open the media picker \u2014 please try again.")).finally(()=>s(!1))}}),x=()=>(m.clearRejections(),i(null),yr(n,{accept:a,title:t}).then(I=>I?.url??null));return p&&!p.capabilities.mediaEditing?re(ks,{label:t,icon:u?re(_s,{}):re(ws,{}),children:Rs("div",{className:"sf-image-slot-inert",children:["Templates don\u2019t store ",u?"videos":"images"," \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."]})}):Rs("div",{children:[re(ks,{label:t,icon:u?re(_s,{}):re(ws,{}),children:re("div",{className:`sf-image-drop${m.dragOver?" is-dragover":""}`,...m.zoneProps,children:re(Zx,{value:e,onChange:o,label:t,kind:u?"video":"image",placeholder:r,openLibrary:f?void 0:x})})}),f&&re("div",{className:"sf-image-status",role:"status",children:"Opening the picker\u2026"}),c&&re("div",{className:"sf-image-status sf-image-status--error",role:"alert",children:c}),re(Jx,{rejections:m.rejections,className:"sf-image-status sf-image-status--error"})]})}import{jsx as Ms}from"react/jsx-runtime";import{useId as oI}from"react";import{FieldSelect as tI}from"efficient-easel/fields";import{SettingsField as aI}from"efficient-easel/panel";function rI(e){return e.map(({value:o,label:t,note:a})=>({value:o,label:t,...a?{meta:a}:{}}))}function Hs({label:e,options:o,value:t,onChange:a,emptyLabel:r="None",icon:n,hint:l}){let f=oI(),s=`${f}-label`,c=`${f}-button`,i=Array.isArray(t)?t:[];return Ms(aI,{label:e,labelId:s,icon:n,hint:l,children:Ms(tI,{id:c,multiple:!0,value:i,options:rI(o),onChange:a,placeholder:r,ariaLabelledBy:`${s} ${c}`,inline:!0})})}import{jsx as Gs}from"react/jsx-runtime";import{useId as nI}from"react";import{FieldSelect as lI}from"efficient-easel/fields";import{SettingsField as fI}from"efficient-easel/panel";function sI(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 cI({label:e,options:o,fallback:t,value:a,onChange:r,placeholder:n,bare:l=!1,icon:f}){let s=nI(),c=`${s}-label`,i=`${s}-button`,u=a??"",p=o.some(x=>x.value===u)?u:t,m=Gs(lI,{id:i,value:p,options:sI(o),onChange:r,placeholder:n,searchPlaceholder:n,...l?{ariaLabel:e}:{ariaLabelledBy:`${c} ${i}`},searchable:!0,groupCount:!0,inline:!0});return l?m:Gs(fI,{label:e,labelId:c,icon:f,children:m})}import{default as $o}from"efficient-easel/screen/components/UiIcon";var ne={min:10,max:200,step:10};function Us(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 dI="sf-pad-top-phone",uI="sf-pad-bottom-phone",iI="--sf-pad-t-phone",pI="--sf-pad-b-phone",mI="sf-pad-left-phone",xI="sf-pad-right-phone",II="--sf-pad-l-phone",hI="--sf-pad-r-phone";function MO(e,o,t,a,r,n,l,f){let s=Us(e,o)??{},c={},i=["sf-section-pad"];typeof t=="number"&&(i.push(dI),c[iI]=`${t}px`),typeof a=="number"&&(i.push(uI),c[pI]=`${a}px`);let u={};return typeof r=="number"&&(u.paddingLeft=r),typeof n=="number"&&(u.paddingRight=n),typeof l=="number"&&(i.push(mI),c[II]=`${l}px`),typeof f=="number"&&(i.push(xI),c[hI]=`${f}px`),i.length===1&&Us(e,o)===void 0&&!Object.keys(u).length?null:{className:i.join(" "),style:{...s,...u,...c}}}var Ws=e=>typeof e=="number"?e:void 0;function $s(e,o,t){let a=Ws(e)??t,r=Ws(o);return a===void 0?r:r===void 0?a:a+r}function HO(e,o={}){return{top:$s(e.padTop,e.sectionPaddingTop,o.top),bottom:$s(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var gI=["auto","fixed","screen"],bI=["px","%"];var CI="var(--sf-header-h, 88px)",Fr={min:40,max:2e3,step:10,fallback:600},Tr={min:10,max:200,step:5,fallback:100},SI="sf-section-minh",qs={base:"--sf-section-minh",small:"--sf-section-minh-s"},zs=e=>typeof e=="string"&&gI.includes(e),yI=e=>typeof e=="string"&&bI.includes(e);function Nt(e){let o=zs(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":yI(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=o==="screen"?Tr.fallback:Fr.fallback,r=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:o,value:r,unit:t}}function Vs(e){let{mode:o,value:t,unit:a}=Nt(e);if(o==="auto")return;if(o==="fixed"&&a==="px")return[`${t}px`,null];let r=t/100,n=l=>o==="screen"?`(100${l} - ${CI})`:`100${l}`;return[`calc(${n("vh")} * ${r})`,`calc(${n("svh")} * ${r})`]}function FI(e){let o=Vs(e);if(!o)return;let[t,a]=o;return{display:"grid",[qs.base]:t,...a?{[qs.small]:a}:{}}}var UO=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),uo="Height",TI="sf-section-minh-phone",Ks={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function vr(e){return zs(e.sectionHeightModePhone)}function WO(e){return Nt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function vI(e){let o=FI(e),t=vr(e)?Vs({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let a=[SI],r={...o??{}};return t&&(a.push(TI),r[Ks.base]=t[0],t[1]&&(r[Ks.small]=t[1])),{className:a.join(" "),style:r}}function $O(e){return vI(e)!==null}import{VIEW_DESKTOP_MIN as zO,VIEW_TABLET_MIN as VO,VIEW_TIER_LABEL as Mt,VIEW_TIERS as XO,viewTierForWidth as jO}from"efficient-easel/screen/lib/content/view-tiers";var Er=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],Ys=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Stretch",value:"stretch"}],Zs="Wrap",Lr=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],Xs={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},js={start:"items-start",center:"items-center",stretch:"items-stretch"};function ZO(e,o){let t=typeof e=="string"&&e in Xs?Xs[e]:"",a=typeof o=="string"&&o in js?js[o]:"";return[t,a].filter(Boolean).join(" ")}function QO(e){return e===!0||e==="wrap"?"flex-wrap":""}var Br="Block widths",Ht=[{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]}],qo="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",EI={equal:qo,bigLeft:`${qo} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${qo} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${qo} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${qo} [&>*:last-child]:min-[800px]:grow-[3]`};function JO(e){return typeof e=="string"?EI[e]??"":""}var Qs="Columns on phone",Or=1,Js=3,LI={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 eP(e){let o=Number(e);return LI[o]??"max-[800px]:flex-col"}var ec="Block spacing",Pr=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],BI="sf-box-gap-only";function oP(e){return e==="gap"?BI:""}var oc=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],tc={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},io="var(--wheel-stage)",Gt="transparent",Ko="inherit";function ac(e,o){return e===Ko?io:e==null?o:e===!0?io:e===!1?Gt:e}function aP(e){return typeof e=="string"&&e!==Ko?e:io}function rP(e){return e!==Gt&&e!=="none"&&e!==""}function rc(e,o){return e===Ko||e===!0?!0:e==null?o===io:!1}var nc=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],lc={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Ut="var(--section-bg)",Wt="inherit";function lP(e,o){return e===Wt?Ut:e===void 0?o:e}function fc(e,o){return e===Wt?!0:e===void 0&&o===Ut}var sc="inherit",$t="fixed",cc=e=>typeof e!="number"&&e!==$t,OI="var(--sf-heading-max, 9999px)";function sP(e,o,t,a){if(typeof e=="number")return`${e}px`;if(e===$t)return o;let r=a?`var(--size-${a}, ${o})`:o;return t==="heading"?`min(${r}, ${OI})`:r}var PI=["contained","page","full"],dc=["full","page"],uc={full:"Full width",page:"Content width"},Ar="inherit",AI=e=>typeof e=="string"&&PI.includes(e),RI=e=>e===Ar;function Rr(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:te.default;return RI(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:AI(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 kr(e){return Rr(e,"page").mode==="full"}import{jsx as kI}from"react/jsx-runtime";import{createContext as wI,useContext as _I}from"react";var DI=2,NI=DI+1,ic=wI(2);function mP({tier:e,children:o}){return kI(ic.Provider,{value:e,children:o})}function wr(e){let o=_I(ic);return NI+Math.max(0,e-o)}import{withStyleKind as Eh}from"efficient-easel/style-clipboard";function zo(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!Ue(t)&&Eh(t,`section:${o}`);return e}function yc(){return null}function Lh(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return d(yc,{},e)}function Bh(e){return e.type===yc}function Kt(e){return Bh(e)?void 0:e}function zt(e,o){return`${e} from ${o}`}function Oh(){let{appState:e}=mo(r=>r),o=e.data.root?.props??{},{mode:t,pageWidth:a}=Rr(o,"full");return zt(t==="page"?`${a}px`:t==="contained"?"Contained":"Full","the page")}function Ph(){let{blockGap:e}=me();return e===null?"this container's own spacing":zt(`${e}px`,"Site styles")}function Ah({inherited:e,onReset:o,label:t}){return d(Y,{label:t,changed:!e,detail:Ph(),onReset:o})}function Rh({inherited:e,onReset:o,label:t}){return d(Y,{label:t,changed:!e,detail:Oh(),onReset:o})}function xo({value:e,onChange:o,label:t,placeholder:a,hint:r,multiline:n,hideable:l=!0,markup:f=!0}){let{text:s,hidden:c}=Pe(e),i=Nr(null),u=Nr(null),p=L=>o(l?{text:L,hidden:c}:L),m=()=>o({text:s,hidden:!c}),x=l&&c,I=GI(),g=r?Nh(r)?d("span",{className:"sf-hint-keep sf-hint-while-typing",children:r}):d(xs,{children:r}):void 0;return d(R,{label:t,icon:d(xh,{}),htmlFor:I,className:x?"is-hidden":void 0,hint:g,action:l?d(qt,{content:c?`Show ${t} on the slide`:`Hide ${t} on the slide`,children:d("button",{type:"button",className:"sf-field-eye","aria-pressed":c,"aria-label":c?`Show ${t} on the slide`:`Hide ${t} on the slide`,onClick:m,children:c?d($o,{name:"eye-off",size:14}):d($o,{name:"eye",size:14})})}):void 0,children:Re("div",{className:"sf-copybox",children:[f&&d(xr,{target:n?u:i,value:s,onChange:p}),n?d("textarea",{id:I,ref:u,value:s,placeholder:a,onChange:L=>p(L.target.value)}):d("input",{id:I,ref:i,type:"text",value:s,placeholder:a,onChange:L=>p(L.target.value)})]})})}function hA(e,o){return{...e,[No]:o}}function gA(e){let o=e[D];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[D]:{...o,offPage:!0}}}function bA(e){return!e||typeof e!="object"?!1:e[D]?.offPage===!0}function CA(e){let o=e[D];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[D]:{...o,identifier:!0}}}var kh=new Set(We),Io=(e,o)=>{let t={...o,[D]:e};if(!kh.has(e.control))return t;let a=o.render;return{...Cs(t,"authored-copy"),render:r=>d(vs,{name:r.name,children:a(r)})}},yA="Everything else on this block comes from the linked post. Unlink it to edit by hand.",wh="Select a word, then press the highlighter.",_h="A short name so a link can jump straight to this section, like yoursite.com/page#about.",Dh=new Set([wh]),Nh=e=>Dh.has(e);function FA(e,o,t){return Io({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t})})}function TA(e,o,t){return Io({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0})})}function Mh(e,o,t){return Io({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function vA(e,o,t){return Io({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1})})}function EA(e){return{type:"custom",[Do]:{label:e},render:({value:o,onChange:t})=>d($f,{value:jf(o),onChange:t,label:e})}}function LA(e,o,t){return Io({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var BA={Content:mh,Style:ph,Layout:th,Animation:xc};function OA(e,o){return e.includes("Content")?o!=="Content":null}function Hh({label:e}){return d(gh,{title:e,level:wr(1)})}function Gh({level:e,label:o}){return e===1?d(Hh,{label:o}):d(Wh,{label:o})}function Fc(e,o){return{type:"custom",[sr]:{label:e,level:o},render:()=>d(Gh,{level:o,label:e})}}function z(e){return Fc(e,2)}function PA(e){return{type:"custom",render:()=>d(Uh,{text:e})}}function Uh({text:e}){return d("p",{className:"sf-note",children:e})}function AA(e){return Fc(e,1)}function RA(e){return Ue(e)!==null&&e?.tabs!==void 0}var pc=new Map;function Vt(e,o){let t=`${e}\0${o?o.join(""):""}`,a=pc.get(t)??{type:"custom",tabs:o,[sr]:{label:e,level:1},bucket:e,marker:!0,render:()=>d(we,{})};return pc.set(t,a),a}function Wh({label:e}){return d(bh,{title:e,level:wr(2)})}function Tc({swatches:e,current:o,onPick:t,names:a}){let r=e.find(l=>l.toLowerCase()===o.toLowerCase()),n=(r?a?.[r]:void 0)??o;return Re("div",{className:"sf-swatches",children:[e.map(l=>{let f=a?.[l]??l;return d(qt,{content:f,children:d("button",{type:"button","aria-pressed":o.toLowerCase()===l.toLowerCase(),className:`sf-swatch ${o.toLowerCase()===l.toLowerCase()?"is-active":""}`,style:{background:l},onClick:()=>t(l),"aria-label":f})},l)}),d("span",{className:"sf-swatch-hex",children:n})]})}function kA(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=fc(t,o);return d(R,{label:e,icon:d($I,{}),changed:!r,action:d(Y,{label:e,changed:!r,detail:"the theme's section background",onReset:()=>a(Wt)}),children:Tc({swatches:nc,current:r?Ut:t??o??"",onPick:a,names:lc})})}}}function $h(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=t,n=rc(r,o);return d(R,{label:e,icon:d(eh,{}),changed:!n,action:d(Y,{label:e,changed:!n,detail:"the theme's image stage",onReset:()=>a(Ko)}),children:Tc({swatches:oc,current:n?io:ac(r,o),onPick:a,names:tc})})}}}function vc(e=t=>t,o){return zo({_gSectionTheme:z(xf),sectionAccent:{type:"custom",render:({value:t,onChange:a})=>d(_f,{value:e(t),onChange:a,followLabel:o})}})}function qe({min:e,max:o,step:t,value:a,onChange:r,suffix:n="",readout:l=!0,notch:f,ariaLabel:s,disabled:c=!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(vh,{min:e,max:o,step:t,value:a,suffix:n||void 0,showInput:l,label:s,disabled:c,size:"sm",className:"sf-slider-track",onChange:u=>{u!==null&&u!==a&&r(u)}})})}function po(e,o,t,a,r,n,l="",f){return{type:"custom",render:s=>d(R,{label:e,icon:Kt(o),action:f?f("storedValue"in s?s.storedValue:s.value,s.onChange):void 0,children:qe({min:t,max:a,step:r,value:typeof s.value=="number"?s.value:n,suffix:l,ariaLabel:e,onChange:s.onChange})})}}function Ec({min:e,max:o,step:t,px:a,label:r,onChange:n,disabled:l=!1}){let{cornerRadiusPx:f}=me();return d(we,{children:qe({min:e,max:o,step:t,value:a??(typeof f=="number"?f:e),readout:!1,ariaLabel:r,disabled:l,onChange:n})})}function Vo(e,o){let{min:t,max:a,step:r=1,unsetLabel:n,hint:l,restAtSite:f=!1,restTrack:s,unsetMark:c}=o;return{type:"custom",render:({value:i,onChange:u})=>{let p=typeof i=="number"?i:null,m=p===null;return d(R,{label:e,value:m?c?void 0:n:`${p}px`,changed:!m,action:c?HI(c,{changed:!m,onReset:()=>u(null)}):d(Y,{label:e,changed:!m,onReset:()=>u(null)}),hint:l,children:s?s({min:t,max:a,step:r,px:p,label:e,onChange:u}):f?d(Ec,{min:t,max:a,step:r,px:p,label:e,onChange:u}):qe({min:t,max:a,step:r,value:p??t,readout:!1,ariaLabel:e,onChange:u})})}}}function wA(e){let o=po("Gap",d(gc,{}),Oe.min,Oe.max,Oe.step,Pt[e],"px",(t,a)=>d(Ah,{inherited:!lr(e,t),onReset:()=>a(void 0),label:"Gap"}));return{type:"custom",[zf]:e,render:t=>o.render({...t,value:nr(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:a=>t.onChange(a)})}}function qh(){return{type:"custom",render:({value:e,onChange:o})=>{let t=X(e)??[...q],a=t.length===q.length;return d(R,{label:Ae,icon:d(hc,{}),value:Rt(t),changed:!a,action:d(Y,{label:Ae,changed:!a,onReset:()=>o(null)}),hint:"Corners left off stay square. The row above sets how round the others are.",children:d(jh,{value:t,onChange:r=>{let n=X(r)??[];o(n.length===q.length?null:n)}})})}}}function Kh({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:a}=me(),r=typeof a=="number"?`${a}px`:"not set";return d(Y,{label:e,changed:o,detail:a==null?"the built-in corners":zt(r,"Site styles"),onReset:t})}function zh(){return Vo("Corners",{min:Ce,max:_e,unsetLabel:"Follows the site",unsetMark:d(Kh,{label:"Corners"}),restTrack:e=>d(Vh,{...e}),hint:d(Xh,{})})}var Lc="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Mr(){return kr(Xt())}function Vh(e){return d(Ec,{...e,disabled:Mr()})}function Xh(){return d(we,{children:Mr()?Lc:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function jh({value:e,onChange:o}){let t=Mr();return d(Sc,{label:Ae,value:e,corners:t?co.map(a=>({...a,disabled:!0,title:Lc})):co,onChange:o})}function Bc(){return zo({_gShape:z("Shape"),sectionCorners:zh(),sectionCornerSides:qh()})}function Oc(){return{_gMotion:z("Motion"),sectionAnimation:Ur("Entrance",d(xc,{}),[...Is],ir)}}function Hr(){let e=null;try{let{appState:o,selectedItem:t}=mo(r=>r),a=t?.props?.id?String(t.props.id):void 0;e=a?mr(o?.data,a):null}catch{e=null}return e!==null&&kr(e)}function Pc(e){let{cornerRadiusPx:o}=me(),t=Hr(),a=typeof o=="number"?o:e,r=null;try{let{appState:l,selectedItem:f}=mo(c=>c),s=f?.props?.id?String(f.props.id):void 0;r=s?mr(l?.data,s):null}catch{r=null}if(t||!r)return a;let n=r.sectionCorners;return cr(n)?n:a}function Yh({min:e,max:o,step:t,px:a,label:r,onChange:n}){let l=Pc(e);return d(we,{children:qe({min:e,max:o,step:t,value:a??l,readout:!1,ariaLabel:r,onChange:n})})}function Zh({label:e,changed:o=!1,onReset:t=()=>{}}){let a=Hr(),r=Pc(Ce),n=a?"Site":"Section";return d(Y,{label:e,changed:o,detail:zt(`${r}px`,a?"Site styles":"the section"),onReset:t})}function Qh(){return d(we,{children:Hr()?"The section is full width, so this card follows Site styles \u25B8 Basics \u25B8 Corners.":"Follows the section's Corners until you set a number here."})}function Jh(){return Vo("Corners",{min:Ce,max:_e,unsetLabel:"Follows the section",unsetMark:d(Zh,{label:"Corners"}),restTrack:e=>d(Yh,{...e}),hint:d(Qh,{})})}function eg({value:e,onChange:o}){return d(Sc,{label:Ae,value:e,corners:co,onChange:o})}function og({unset:e}){return d(we,{children:e?"Set a number above first \u2014 there is nothing to shape yet.":"Corners left off stay square. The row above sets how round the others are."})}function tg(){return{type:"custom",render:({value:e,onChange:o})=>{let t=X(e)??[...q],a=t.length===q.length;return d(R,{label:Ae,icon:d(hc,{}),value:Rt(t),changed:!a,action:d(Y,{label:Ae,changed:!a,onReset:()=>o(null)}),hint:d(og,{unset:!Mo(e)}),children:d(eg,{value:t,onChange:r=>{let n=X(r)??[];o(n.length===q.length?null:n)}})})}}}function ag(){return{type:"custom",render:()=>d(fs,{})}}function _A(){return{_gShape:z("Shape"),cardCorners:Jh(),cardCornerSides:tg(),cardCornersApplyAll:ag()}}function DA(){return ke("Justify",d(WI,{}),Er,Er[0].value)}function NA(){return ke("Item alignment",d(UI,{}),Ys,"stretch")}function MA(){return ke(Zs,d(hh,{}),Lr,Lr[0].value)}function HA(){return{type:"custom",render:({value:e,onChange:o})=>{let t=Ht.find(a=>a.value===e)??Ht[0];return d(R,{label:Br,icon:d(Ic,{}),value:t.label,children:d("div",{className:"sf-gallery-layouts",role:"group","aria-label":Br,children:Ht.map(a=>d(qt,{content:a.label,className:"sf-tile-tip",children:d("button",{type:"button","aria-pressed":t.value===a.value,"aria-label":a.label,onClick:()=>o(a.value),children:d("span",{className:"sf-gallery-pic",children:rg(a.weights).map((r,n)=>d("i",{style:{gridColumn:`span ${r}`}},n))})})},a.value))})})}}}function rg(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 GA(){return ke(ec,d(gc,{}),Pr,Pr[0].value)}function UA(){return po(Qs,d(sh,{}),Or,Js,1,Or)}function WA(e){let o=Ur(hf,Lh("`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)."),bf(e),Et(e,void 0));return{type:"custom",render:t=>o.render({...t,value:Et(e,t.value),onChange:a=>t.onChange(a)})}}function $A(e,o,t,a,r,n){return{type:"custom",render:({value:l,onChange:f})=>d(R,{label:e,icon:d(or,{noun:n}),action:d(Y,{label:e,changed:!cc(l),detail:"the Text style in Site styles",onReset:()=>f(sc),defaultAction:{onPress:()=>f($t),title:"Keep this section's own built-in size",icon:d(qI,{})}}),children:qe({min:o,max:t,step:a,value:typeof l=="number"?l:r,suffix:"px",ariaLabel:e,onChange:f})})}}function qA(){return{_gCellWidth:z("Cell width"),gridSpan:ke("Positions",d(Ic,{}),[{label:"Auto",value:""},...Array.from({length:kt},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function Xt(){let e=null;try{e=mo(o=>o).selectedItem}catch{e=null}return e?.props??{}}function ng({min:e,max:o,step:t,px:a,label:r,onChange:n,desktopKey:l,fallback:f}){let s=Xt()[l],c=Dt(void 0,s,f);return d(we,{children:qe({min:e,max:o,step:t,value:Dt(a,s,f),readout:!1,ariaLabel:r,notch:c,onChange:n})})}function lg({label:e,desktopKey:o,fallback:t,changed:a=!1,onReset:r=()=>{}}){let n=Xt()[o],l=Dt(void 0,n,t);return d(Y,{label:e,changed:a,detail:`${l}px on ${Mt.desktop.toLowerCase()}`,onReset:r})}function fg(e){return Vo(e.label,{min:e.min,max:e.max,step:e.step,unsetLabel:`Follows ${Mt.desktop}`,unsetMark:d(lg,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>d(ng,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}function Ac(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",a=e.group!==!1,r=g=>a?g:`Padding ${g.toLowerCase()}`,n=g=>po(r("Top"),d(fh,{}),ne.min,ne.max,ne.step,g,"px"),l=(g,L,y,b=ne)=>ae("mobile",fg({label:r(g),desktopKey:L,min:b.min,max:b.max,step:b.step,fallback:y})),f=e.top??ne.min,s=e.bottom??ne.min,c="sectionPaddingLeft",i="sectionPaddingRight",u=e.sideBounds??ne,p=e.side??u.min,m=e.sidePhone??p,x=e.phone===!0,I=g=>x?ae("desktop",g):g;return zo({...a?{_gSpacing:z("Padding")}:{},[o]:I(n(f)),...x?{[Go(o)]:l("Top",o,f)}:{},...e.only==="top"?{}:{[t]:I(po(r("Bottom"),d(rh,{}),ne.min,ne.max,ne.step,s,"px")),...x?{[Go(t)]:l("Bottom",t,s)}:{}},...e.sides?{[c]:I(po(r("Left"),d(nh,{}),u.min,u.max,u.step,p,"px")),...x?{[Go(c)]:l("Left",c,m,u)}:{},[i]:I(po(r("Right"),d(lh,{}),u.min,u.max,u.step,p,"px")),...x?{[Go(i)]:l("Right",i,m,u)}:{}}:{}})}var sg={contained:"Contained",page:"Page",full:"Full"},Dr="Width";function Rc(e,o=dc,t=!0){let a=o.map(r=>({label:uc[r]??sg[r],value:r}));return zo({...t?{_gWidth:z(Dr)}:{},widthMode:{type:"custom",render:({onChange:r,field:n})=>d(R,{label:"Width",icon:d(Ih,{}),action:t?d(Rh,{inherited:n?.inherited??!1,onReset:()=>r(Ar),label:Dr}):void 0,children:Gr({options:a,value:n?.currentValue||e,onChange:r,ariaLabel:Dr})})}})}function kc(){let e=a=>({type:"custom",render:({value:r,onChange:n})=>Re("div",{className:"sf-field",children:[a?Re("div",{className:"sf-field-head",children:[d("span",{className:"sf-field-label sf-field-label--inline",children:uo}),a(n)]}):null,d("div",{children:Gr({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(r)?r:"auto",onChange:n,ariaLabel:uo})})]})}),o=()=>({type:"custom",render:({value:a,onChange:r,field:n})=>{let l=n?.unit==="%"?"%":"px",f=l==="%"?Tr:Fr;return d("div",{className:"sf-field",children:qe({min:f.min,max:f.max,step:f.step,value:typeof a=="number"?a:f.fallback,suffix:l,ariaLabel:uo,onChange:r})})}}),t=()=>Ur("Unit",d(bc,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return zo({_gHeight:z(uo),sectionHeightMode:ae("desktop",e()),sectionHeightValue:ae("desktop",o()),sectionHeightUnit:ae("desktop",t()),sectionHeightModePhone:ae("mobile",e(a=>d(cg,{onClear:()=>a(void 0)}))),sectionHeightValuePhone:ae("mobile",o()),sectionHeightUnitPhone:ae("mobile",t())})}function cg({onClear:e}){let o=Xt(),t=vr(o),a=Nt(o),r=`${a.mode==="auto"?"Auto":`${a.value}${a.unit}`} on ${Mt.desktop.toLowerCase()}`;return d(Y,{label:uo,changed:t,detail:r,onReset:e})}function wc(){return{_gAnchor:z("Anchor"),anchor:Mh("Anchor name","e.g. about",_h)}}function $e(e,o,t){return{type:"custom",render:({value:a,onChange:r,id:n,name:l})=>{let f=typeof a=="boolean"?a:o,s=`${n??l??e}-label`;return d(R,{label:e,labelId:s,icon:t,action:d(yh,{checked:f,onChange:r,ariaLabelledBy:s})})}}}function KA(){return{type:"custom",render:({value:e,onChange:o,id:t,name:a})=>{let r=`${String(t??a??"pageBackground")}-colour`;return d(R,{label:"Background",icon:d(Cc,{}),htmlFor:r,action:d(xe,{id:r,label:"Background",value:tr(e),onChange:o})})}}}function zA(e,o){return{type:"custom",render:({value:t,onChange:a})=>d(R,{label:e,action:xe({value:t||o,onChange:a,label:e})})}}var dg=[{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=dg}){return d(Ch,{label:e,value:o,points:a,onChange:t})}function VA(e,o=Yf,t="mediaImage"){return{type:"custom",render:({value:a,onChange:r})=>d("div",{className:"sf-focal-row",children:d(ug,{label:e,value:a||o,onChange:r,imageProp:t})})}}function ug({label:e,value:o,onChange:t,imageProp:a}){let{selectedItem:r}=mo(l=>l),n=r?.props?.[a];return d(As,{label:e,value:o,onChange:t,image:typeof n=="string"?n:void 0})}var ig=La([]);function XA(e,{stacking:o,fallback:t=ht}){return{type:"custom",render:({value:a,onChange:r})=>{let n=oe.includes(a)?a:t;return o?d(pg,{label:e,value:n,onChange:r}):Dc({label:e,value:n,onChange:r,points:ig})}}}function pg({label:e,value:o,onChange:t}){let{appState:a,selectedItem:r}=mo(f=>f),n=r?.props?.id?String(r.props.id):void 0,l=n?Oa(a?.data,n):[];return Dc({label:e,value:o,onChange:t,points:La(l,n)})}function Dc({label:e,value:o,onChange:t,points:a}){let r=a.find(n=>n.disabled);return d(R,{label:e,icon:d(ch,{}),hint:r?r.title:void 0,children:_c({label:e,value:Fe(o),onChange:t,points:a})})}var jA={top:d(YI,{}),right:d(jI,{}),bottom:d(VI,{}),left:d(XI,{})};function YA(e,o,t,a,r,n){let l=i=>o.find(u=>u.value===i),f=i=>({value:i,label:"",disabled:!0,title:a}),s=i=>{let u=o.find(m=>m.cell===i);if(!u)return f(`missing-${i}`);let p=n?.[i];return p?{value:u.value,label:u.label,icon:p}:{value:u.value,label:u.label}},c=[f("corner-top-left"),s("top"),f("corner-top-right"),s("left"),f("centre"),s("right"),f("corner-bottom-left"),s("bottom"),f("corner-bottom-right")];return{type:"custom",render:({value:i,onChange:u})=>{let p=o.some(m=>m.value===i)?i:t;return d(R,{label:e,icon:r,value:l(p)?.label??"",children:_c({label:e,value:p,onChange:u,points:c})})}}}var mg="\0note";function ke(e,o,t,a,r){return{type:"custom",options:t,fallback:a,...r?{note:r}:{},render:({value:n,onChange:l,field:f})=>{let s=f.options??t,c=f.fallback??a,i=s.some(u=>u.value===n)?n:c;return d(R,{label:e,icon:Kt(o),children:d(Fh,{value:i,ariaLabel:e,onChange:l,options:[...r?[{label:r,value:mg,disabled:!0}]:[],...s.map(u=>({label:u.label,value:u.value}))]})})}}}function ZA(e,o,t){return{type:"custom",options:o,render:({value:a,onChange:r,field:n})=>d(Hs,{label:e,options:n.options??o,value:Array.isArray(a)?a:[],onChange:r,...t?{emptyLabel:t}:{}})}}function QA(e,o={}){return{type:"custom",render:({value:t,onChange:a})=>{let r={value:t,onChange:a,...o};return d(e,{...r})}}}function Gr({options:e,value:o,onChange:t,ariaLabel:a,disabled:r=!1}){return d(Sh,{options:e.map(n=>({id:n.value,label:n.label,title:n.title})),value:o,onChange:t,ariaLabel:a,disabled:r})}var JA=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Ur(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(R,{label:e,icon:Kt(o),children:Gr({options:r,value:r.some(s=>s.value===n)?n:n||f?.currentValue||a,onChange:l,ariaLabel:e})})}}function eR(e,o,t){return{type:"custom",[Jf]:!0,render:({value:a,onChange:r})=>d(Ns,{value:a||"",onChange:r,label:e,accept:o,placeholder:t})}}function oR({value:e,onChange:o,label:t}){let a=e||{},r=!!a.pending,n=r?"var(--fg-dim, #888)":a.ok?"#1d9e75":"#d85a30",l=(f,s)=>o({...a,[f]:s===""?void 0:Number(s)});return Re(R,{label:t,icon:d(_r,{}),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?"Finding\u2026":"Find coordinates"}),a.status&&d("div",{style:{marginTop:6,fontSize:12,lineHeight:1.4,color:n},children:a.status}),d("div",{style:{marginTop:6,fontSize:11,color:"var(--fg-dim, #999)"},children:"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?"Hide manual coordinates":"Enter coordinates manually"}),a.manual&&Re("div",{style:{marginTop:8,display:"grid",gap:8},children:[d(R,{label:"Latitude",icon:d(_r,{}),children:d("input",{type:"number",step:"any",placeholder:"e.g. 34.0990198",value:typeof a.lat=="number"?a.lat:"",onChange:f=>l("lat",f.target.value)})}),d(R,{label:"Longitude",icon:d(_r,{}),children:d("input",{type:"number",step:"any",placeholder:"e.g. -117.9842833",value:typeof a.lng=="number"?a.lng:"",onChange:f=>l("lng",f.target.value)})})]})]})}function xg(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function Ig(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 hg(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 tR={label:"Ticker items",icon:d(ah,{})};function aR(e,o,t,a){return{type:"custom",[D]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:a},render:({value:r,onChange:n})=>d(gg,{label:e,icon:Kt(o),items:Array.isArray(r)?r:[],placeholder:t,onChange:n,markup:a==="markup"})}}function gg({label:e,icon:o,items:t,placeholder:a,onChange:r,markup:n=!1}){let l=Nr(null),[f,s]=mc(null),c=i=>i.map(u=>({text:u?.text??""}));return d(Th,{label:e,icon:o,noun:"item",items:t,onChange:i=>{let u=hg(t,i,f);u===null&&(l.current=null),s(u),r(c(i))},newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?d(xr,{target:l,value:xg(t,f),onChange:i=>r(Ig(t,f??-1,i)),disabled:f===null,label:f===null?"Formatting \u2014 click a row first":`Formatting \u2014 row ${f+1}`}):void 0,renderRow:(i,u,p)=>d("input",{type:"text",className:n&&f===u?"sf-list-marking":void 0,value:i?.text??"",placeholder:a,"aria-label":`${e} ${u+1}`,onChange:m=>p({text:m.target.value}),onFocus:m=>{l.current=m.currentTarget,s(u)}})})}function rR(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Io({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:t,placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function Nc(e){return{_gCards:z("Cards"),coverIndex:ke("Cover image",d(oh,{}),Ls,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:$h("Image background",Gt),cardImage:bg(),spinOnHover:$e("Rotate on hover",e?.spinDefault??!0,d(uh,{}))}}function Mc(){return{outline:ke("Card outline",d(ih,{}),Cr,gr),indexBadge:ke("Card number",d(bc,{}),br,hr),showBadge:$e("Product badge",!0,d(or,{noun:"tag"}))}}function Hc(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:z("Show on a card"),showCardPrice:$e("Price",!0,d(ZI,{})),showCardFinishes:$e("Finish swatches",!0,d(QI,{})),showCardSizes:$e("Sizes",o,d(dh,{})),showCardBuy:$e("Buy button",o,d(KI,{})),showCardPage:$e("Page button",o,d(Cc,{}))}}function bg(){return Vo("Card image",{min:Ce,max:_e,step:ss,hint:"Rounds the picture. The card's own corner is in Site styles."})}function nR(){return Vo(ds,{min:Ce,max:_e,step:cs,unsetLabel:"Square",hint:"Rounds the picture. Left alone it stays square."})}function lR(){return{type:"custom",render:({value:e,onChange:o})=>d(Cg,{value:typeof e=="string"?e:"",onChange:o})}}function Cg({value:e,onChange:o}){let[t,a]=mc(null),r=dr.filter(l=>t===null||ce[l].across===t),n=e&&e in ce?ce[e]:null;return Re(we,{children:[d(R,{label:"Photos in a row",icon:d(zI,{}),children:Re("div",{className:"sf-gallery-filter",children:[d("button",{type:"button","aria-pressed":t===null,onClick:()=>a(null),children:"All"}),is.map(l=>d("button",{type:"button","aria-pressed":t===l,onClick:()=>a(l),children:l},l))]})}),d(R,{label:"Layout",icon:d(JI,{}),value:n?n.label:"Not chosen",hint:`${r.length} of ${dr.length} layouts`,children:d("div",{className:"sf-gallery-layouts",children:r.map(l=>d(qt,{content:ce[l].label,className:"sf-tile-tip",children:d("button",{type:"button","aria-pressed":e===l,"aria-label":ce[l].label,onClick:()=>o(e===l?"":l),children:d("span",{className:"sf-gallery-pic",children:ce[l].desktop.map(([f,s],c)=>d("i",{style:{gridColumn:`span ${f}`,gridRow:`span ${s}`}},c))})})},l))})})]})}import{SETTINGS_BUCKETS as Sg}from"efficient-easel/panel";import{BUCKET_KEY as M}from"efficient-easel/screen/lib/puck/field-buckets";var ho=Sg,mR=[M.Layout,...Object.keys(Ac({phone:!0})),...Object.keys(Rc("full")),...Object.keys(kc()),...Object.keys(wc())],xR=[M.Style,...Object.keys(vc())],IR=[M.Style,...Object.keys(Bc())],hR=[M.Animation,...Object.keys(Oc())],yg=Object.keys(Nc()),Fg=new Set(["cardImage","imageBackground"]),gR=[M.Style,...yg.filter(e=>e.startsWith("_g")||Fg.has(e))],bR=Object.keys(Mc()),CR=Object.keys(Hc({bottomDefault:!0})),Tg="Editor only \u2014 not shown live",Gc={"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","Opening filter":"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":"Style",Gallery:"Style",Image:"Style","Image column":"Style",Images:"Style",Logo:"Style",Media:"Style","Background image":"Style",Color:"Style","Image tint":"Style",Style:"Style",Shape:"Style",Texture:"Style","Text style":"Style",Motion:"Animation",Animation:"Animation",Anchor:"Layout",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Layout",Behavior:"Layout",Controls:"Layout",Diagram:"Layout",[Tg]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Nudge:"Layout","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:"Layout",Height:"Layout"},Uc={"AlloyWheelsListing._gCards":"Style","ProductGrid._gCards":"Style"};function vg(e,o,t){return Uc[`${e}.${o}`]??Gc[t]}var Eg={"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)"};function SR(e){let o=new Set(Object.values(M));for(let[t,a]of Object.entries(e))if(!o.has(t)&&Ue(a)?.level===1)return 1;return 2}function Lg(e){let o=`${e}.`;return Object.keys(Eg).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function Bg(e,o){let t=bs(e),a=z(o);return t?ae(t.tier,a):a}function yR(e,o){let t=[],a=new Set(Lg(o)),r=new Set,n=null;for(let[u,p]of Object.entries(e)){let m=Ue(p);if(!m){n||t.push(n={bucket:"Content",entries:[]}),n.entries.push([u,p]);continue}if(a.has(u)){let g=Gc[m.label];if(m.level!==2||!g||m.label!==g)throw new Error(`${o}.${u}: RETIRED (lib/puck/field-groups.ts) lists this sub-heading as one whose name duplicates its bucket, but it is a level-${m.level} "${m.label}" header in the ${g??"(unclassified)"} bucket. Only a level-2 header whose label IS its bucket's name may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.add(u),t.push(n={bucket:g,entries:[]});continue}let x=vg(o,u,m.label);if(!x)throw new Error(`${o}.${u}: the inspector group "${m.label}" is not classified in LABEL_BUCKET (lib/puck/field-groups.ts), so there is no way to say which of ${ho.join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);let I=u===M[x]&&m.level===1;if(!I&&u===M[x])throw new Error(`${o}.${u}: that key is reserved for the ${x} bucket header, but this field is a level-${m.level} "${m.label}" header, so it cannot serve as one. Rename the section's own field.`);t.push(n={bucket:x,entries:[[u,I||m.level===2?p:Bg(p,m.label)]],isBucketHeader:I})}let l=new Set(Object.entries(e).filter(([,u])=>Ue(u)).map(([u])=>u)),f=Object.keys(Uc).filter(u=>u.startsWith(`${o}.`)).filter(u=>!l.has(u.slice(o.length+1)));if(f.length)throw new Error(`${o}: KEY_BUCKET (lib/puck/field-groups.ts) lists ${JSON.stringify(f)}, 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 s=t.some(u=>u.isBucketHeader)?[]:[...a].filter(u=>!r.has(u));if(s.length)throw new Error(`${o}: RETIRED (lib/puck/field-groups.ts) lists ${JSON.stringify(s)}, but this section has no such fold header${s.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.`);for(let u of ho){let p=M[u];if(p in e&&!t.some(m=>m.isBucketHeader&&m.entries[0]?.[0]===p))throw new Error(`${o}.${p} is reserved for the ${u} bucket header but is not a level-1 "${u}" fold header. Rename the section's own field.`)}let c=ho.filter(u=>t.some(p=>p.bucket===u)),i={};for(let u of ho){let p=t.filter(I=>I.bucket===u);if(!p.length)continue;let m=p.findIndex(I=>I.isBucketHeader);m>0&&p.unshift(...p.splice(m,1));let x=Vt(u,u===c[0]?c:null);m<0&&(i[M[u]]=x);for(let I of p)for(let[g,L]of I.entries)i[g]=I.isBucketHeader&&g===M[u]?x:L}return i}function FR(e){return M.Content in e?e:{[M.Content]:Vt("Content",null),...e}}function TR(e){return ho.some(o=>M[o]in e)}function vR(e){let o=ho.filter(a=>M[a]in e);if(o.length===0)return e;let t={...e};for(let a of o)t[M[a]]=Vt(a,a===o[0]?o:null);return t}import{jsx as Og}from"react/jsx-runtime";import{createContext as Pg,useCallback as Ag,useContext as Rg,useState as kg}from"react";var Wc={enabled:!0,title:"",subtitle:"",greeting:""},$c=Pg({chat:Wc,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function PR({children:e,chat:o=Wc,onChatChange:t}){let[a,r]=kg(!1),n=Ag(s=>t?.(s),[t]),{select:l,setSelectHandler:f}=ol();return Og($c.Provider,{value:{chat:o,setChat:n,selected:a,setSelected:r,select:l,setSelectHandler:f},children:e})}var AR=()=>Rg($c);import{jsx as wg}from"react/jsx-runtime";import{createContext as _g,useCallback as qc,useContext as Dg,useMemo as Ng,useRef as Mg}from"react";var Hg=Object.fromEntries(tl.map(e=>[e,{value:"",error:null}])),Kc=_g({links:al,rows:Hg,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function DR({children:e,value:o}){let t=Mg(()=>{}),a=qc(()=>t.current(),[]),r=qc(l=>{t.current=l},[]),n=Ng(()=>({...o,openPanel:a,setOpenHandler:r}),[o,a,r]);return wg(Kc.Provider,{value:n,children:e})}var NR=()=>Dg(Kc);import{jsx as Gg}from"react/jsx-runtime";import{createContext as Ug,useContext as Wg,useMemo as $g,useState as qg}from"react";var zc=Ug(null);function UR({children:e}){let[o,t]=qg(null),a=$g(()=>({surface:o,setSurface:t}),[o]);return Gg(zc.Provider,{value:a,children:e})}function WR(){return Wg(zc)??{surface:null,setSurface:()=>{}}}var KR="Scrolling Bar",{Provider:zR,useSelection:Vc}=ut("selectedHeroId");var{Provider:jR,useSelection:YR}=ut("selectedLocationPartId");function ZR(e,o,t){return`${e}::${o}::${t}`}function QR(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 Kg,useContext as zg}from"react";var Vg=Kg(!1),ok=()=>zg(Vg);import{PreviewDeviceContext as rk,usePreviewDevice as nk}from"efficient-easel/screen/components/PreviewDeviceContext";var Xg=new Set(["Hero","HeroSingle","IntroBleed"]),Xc={min:56,max:140,default:88},sk={min:0,max:120,step:2,default:28},jc=`var(--sf-header-h, ${Xc.default}px)`,jg="--sf-header-set-h",ck="--sf-header-h",dk=`var(${jg}, ${Xc.default}px)`,uk="sf-header-clearance",ik="sf-sticky-underheader";function Yg(e){return e?.find(o=>o?.type&&o.type!==Me)??null}function Yc(e){let o=Yg(e)?.type;return!o||!Xg.has(o)}function pk(e){return!Yc(e)}function mk(e){return!!e?.some(o=>o?.type===Me)}function xk(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Me||o?.type===bt)}var Zg=["auto","shared","own"],Qg="auto",Jg="topSpace",Ik="data-top-space";function eb(e){return Zg.includes(e)?e:Qg}function ob(e,o){let t=eb(e?.props?.[Jg]);return t==="own"?!0:t==="shared"?!1:Yc(o)}function hk(e,o){return ob(e,o)?"own":null}import{blockRuns as tb}from"efficient-easel/screen/lib/puck/block-choice";function yk(){return{type:Me,props:{id:Oo(Me)}}}var Zc=[{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"}],ab=Zc.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),rb="FooterGroup",Qc="blocks";function Jc(e){return e===bt?Zc:e===rb?ab:null}function Tk(){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 Pk(e,o=0){let t=lb(e,o),a=t?_a():null;return t&&a?nb(t,a):t}function nb(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 lb(e,o){let t=Te[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let a=Hl(e,o);if(a)return{source:"container",slot:a.slot,choices:a.choices,spec:null};let r=Jc(e);return r?{source:"footer",slot:Qc,choices:r,spec:null}:null}import{useSyncExternalStore as fb}from"react";var Wr=null,$r=new Set;function kk(e){if(Wr!==e){Wr=e;for(let o of $r)o()}}function sb(e){return $r.add(e),()=>{$r.delete(e)}}function wk(){return fb(sb,()=>Wr,()=>null)}function _k(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?e.slice(0,o):null}var cb="inline",db=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var ub={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"}},Mk="SectionHeader";function Hk(e){return e in ub}function ib(e){return K(db,cb,e)}var pb=new Set(["Flex"]);function mb(e){return!!e?.type&&pb.has(e.type)}function Gk(e,o,t){if(!mb(o))return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function Uk(e,o,t){if(ib(o)!=="own-box")return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function qr(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Kr(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 Xo,encodePartId as xb,PART_SEP as Kk}from"efficient-easel/screen/lib/puck/part-id";var Ib=We,hb=["text","textarea"],gb=["textarea","plainTextarea"];function bb(e){return!e||typeof e!="object"?null:e[D]?.control??null}function ed(e){let o=bb(e);return o&&Ib.includes(o)?o:null}function Yk(e){return gb.includes(e)}function Zk(e){return!e||typeof e!="object"?void 0:e[D]?.placeholder}function jt(e){return Pe(e).text}function zr(e,o,t){return hb.includes(e)?{text:t,hidden:Pe(o).hidden}:t}function Qk(e,o,t,a){return jt(e[o])===a?null:{...e,[o]:zr(t,e[o],a)}}function Cb(e){if(!(!e||typeof e!="object"))return e[D]}function Sb(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function od(e,o){if(!Array.isArray(o))return[];let t=Cb(e),a=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((l,f)=>{let s=l?.[n];typeof s=="string"&&s&&a.push({row:{index:f,rowKey:n},text:s})}),a}let r=Sb(e);return r?(o.forEach((n,l)=>{for(let[f,s]of Object.entries(r)){if(!ed(s))continue;let c=jt(n?.[f]);c&&a.push({row:{index:l,rowKey:f},text:c})}}),a):[]}function yb(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Fb(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 aw(e,o,t,a,r){let n=yb(e[o],t);return jt(n)===r?null:Fb(e,o,t,zr(a,n,r))}function rw(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var pw="data-sf-part",mw="data-sf-part-selected",xw="data-sf-part-kind",td=2;function Iw(e,o){if(!e)return!1;let t=Xo(e);return!!t?.propKey&&t.nodeId===o}function go(e){return Ao(e).replace(/\s+/gu,"")}function Yt(e,o,t){let a=e[D];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}=Pe(o);r?t.push(r):a.placeholder&&t.push(a.placeholder);return}if(!e[Do]){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))Yt(l,r?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[r,n]of Object.entries(e.objectFields))Yt(n,o[r],t)}}function hw(e){if(!e||typeof e!="object")return!1;let o=e;return o[Do]?!1:!!o[D]||o.type==="text"||o.type==="textarea"}function ad(e,o){let t=e[D];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Tb(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function gw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){if(!r||typeof r!="object"||Uo(a))continue;let n=r,l=[];Yt(n,o?.[a],l),!l.length&&n[No]!==void 0&&Yt(n,n[No],l);let f=ad(n,a),s=new Set;for(let{row:u,text:p}of od(n,o?.[a])){let m=go(p);m.length<td||(s.add(m),t.push({key:a,label:f,texts:[m],row:u}))}let c=new Set(s),i=[];for(let u of l){let p=go(u);p.length<td||c.has(p)||(c.add(p),i.push(p))}i.length&&t.push({key:a,label:f,texts:i})}return t}var vb=We;function rd(e,o){if(!o||typeof o!="object"||Uo(e))return null;let t=o[D];return!t||!vb.includes(t.control)?null:t}function bw(e,o){let t=rd(e,o);return t!==null&&t.identifier!==!0}function Cw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){let n=rd(a,r);if(!n)continue;let{text:l,hidden:f}=Pe(o?.[a]),s=l||n.placeholder||"",c=Ao(s).replace(/\s+/gu," ").trim();t.push({key:a,label:Tb(ad(r,a)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!f})}return t}var Eb="Main Pages",Lb="Dynamic Pages",Bb="dynamic",Ob="dynamic";function Pb(e){return e.kind===Ob}function yw(e){let o=[],t=[];for(let a of e){if(Pb(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??Eb,rows:[a]})}if(t.length){let a=o.findIndex(r=>r.key.startsWith("system:"));o.splice(a===-1?o.length:a,0,{key:Bb,label:Lb,rows:t})}return o}import{jsx as Vr,Fragment as Ab,jsxs as Rb}from"react/jsx-runtime";var vw=Rb(Ab,{children:[Vr("circle",{cx:"9",cy:"20",r:"1.3"}),Vr("circle",{cx:"18",cy:"20",r:"1.3"}),Vr("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 Xr,Fragment as kb}from"react/jsx-runtime";function nd({className:e=""}){return Xr("sup",{className:`text-accent tracking-normal ${e}`,children:"\xAE"})}function Zt(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(Xr(nd,{},`r${r}`))}),Xr(kb,{children:t})}var Bw=nd;import{jsx as O,jsxs as rn}from"react/jsx-runtime";import{Fragment as Ld}from"react";var Zr="_partStyles",en="data-sf-part-styled",wb=["none","upper","lower"],_b=[400,500,600,700],Db=["left","center","right","justify"],Nb=5,Mb=1e3,Hb=-5,Gb=10,Ub=0,Wb=64,$b=2,qb=120,Qt=1280,Kb=10,ld={size:{min:Nb,max:Mb,step:1},padding:{min:Ub,max:Wb,step:$b},width:{min:qb,max:Qt,step:Kb}},zb=.05,Vb=.01,Xb=["line","letter"],jb=.5,Yb=2.5,Zb=-1,Qb=1,Jb=0,eC=400,Qr={none:"none",upper:"uppercase",lower:"lowercase"};function Yo(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function dd(e){return Yo(e?.[Zr])??{}}function oC(e,o){let t=dd(e);return Object.hasOwn(t,o)?Yo(t[o])??{}:{}}function ud(e,o,t){let a={...dd(e)};if(tC(t).length?a[o]=t:delete a[o],!Object.keys(a).length){let{[Zr]:r,...n}=e;return n}return{...e,[Zr]:a}}function tC(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function aC(e){return Xb.includes(e)}var jo=(e,o,t)=>Math.min(t,Math.max(o,e));function rC(e,o){if(aC(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:jo(t,Hb,Gb)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?bo(jo(t,jb,Yb),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?bo(jo(t,Zb,Qb),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:jo(t,Jb,eC)}if(Object.hasOwn(ld,e)){let{min:t,max:a}=ld[e],r=Math.round(Number(o));return Number.isFinite(r)?jo(r,t,a):null}return e==="role"?Eo.includes(String(o))?o:null:o}var nC=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function lC(e){let o=[];for(let[t,a]of nC)t===e?o.push(a):a===e&&o.push(t);return o}function ww(e,o,t,a){let r={...oC(e,o)},n=a==null?null:rC(t,a);if(n===null)delete r[t];else{r[t]=n;for(let l of lC(t))delete r[l]}return ud(e,o,r)}function _w(e,o){return ud(e,o,{})}function fC(e){for(let o of wb)if(Qr[o]===e)return o;return"none"}function sC(e){return!e||!Object.hasOwn(Qr,e)?"":Qr[e]}var cC={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function dC(e){let o=e.role;return o&&Eo.includes(o)?o:null}var uC={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 iC(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=bo(pC+e.line*zb,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=bo(e.letter*Vb,4)),o}var pC=1,Qo="--sf-part-para";function Jt(e,o,t){let a=dC(e),r=iC(e),n=e.size?`${e.size}px`:a?t?.has(ct[a])?`var(--size-${ct[a]})`:uC[ct[a]]??"":"";return{fontFamily:e.font?hC(e.font):a?`var(${cC[a]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:n,minWidth:n?"0":"",overflowWrap:n?"break-word":"",lineHeight:r.lineHeight!==void 0?String(r.lineHeight):"",letterSpacing:r.letterSpacingEm!==void 0?`${r.letterSpacingEm}em`:"",[Qo]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:sC(e.case),textAlign:e.align??"",paddingTop:jr(e.padding),paddingBottom:jr(e.padding),maxWidth:jr(e.width),color:mC(e.color)}}var mC=e=>e===void 0||e===""?"":Object.hasOwn(ve,e)?ve[e]:id.test(e)?e:"",id=/^#[0-9a-fA-F]{6}$/;function pd(e){return id.test(e)}var jr=e=>e===void 0?"":`${e}px`,bo=(e,o)=>Number(e.toFixed(o));function Dw(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:xC(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(a)?bo(a/t,3):1.2,letterEm:Number.isFinite(r)?bo(r/t,4):0,align:IC(e.textAlign),case:fC(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(l)&&l<Qt?Math.round(l):Qt}}function xC(e){return Number.isFinite(e)?_b.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function IC(e){for(let o of Db)if(o===e)return o;return e==="end"?"right":"left"}function Nw(e,o){let t=fd(e);if(!t)return"";for(let a of pa)if(fd(o(a.cssVar))===t)return a.key;return""}var fd=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function hC(e){let o=Xn(e);return o?`var(${o.cssVar})`:""}function Mw(e,o,t,a){return!o||Xo(o)?.nodeId!==e?null:t.find(r=>a(r.getAttribute("class")))??t[0]??null}function gC(e){let o=new Set,t=e;if(typeof window>"u"||!t?.ownerDocument)return o;let a=window.getComputedStyle(t);for(let r of bC)a.getPropertyValue(`--size-${r}`).trim()&&o.add(r);return o}var bC=["headingLarge","headingMedium","headingSmall","accent","body","label"];function Hw(e,o,t=()=>Zo,a=n=>n,r=yC){let n=0;for(let{element:l,partId:f}of e){let s=Xo(f)?.propKey;if(!s)continue;let c=a(s),i=Object.hasOwn(o,c)?Yo(o[c])??{}:{},u=Jt(i,Zo,gC(l)),p=Yr.some(x=>l.style[x]),m=!1;for(let[x,I]of Object.entries(u))FC(l,x,I),I&&(m=!0);if(p||Yr.some(x=>u[x]))for(let x of CC(l,r))for(let I of Yr)x.style[I]=u[I]??"";m&&(n+=1)}return n}function CC(e,o){let t=go(e.textContent??""),a=[],r=e;for(let n=0;n<SC&&o(r);n+=1){let l=r.parentElement;if(!l||go(l.textContent??"")!==t)break;a.push(l),r=l}return a}var SC=8;function yC(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Zo={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:Qt};function FC(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===Qo&&(t?r.setAttribute?.(sd,""):r.removeAttribute?.(sd))}var sd="data-sf-part-para",TC=Object.keys(Jt({},Zo)),Jr=new Set(["color","overflowWrap",Qo]),Yr=TC.filter(e=>!Jr.has(e));function md(e,o,t,a=r=>r){let r=new Map;for(let f of e){let s=qr(f.key,f.row);for(let c of f.texts){let i=r.get(c);i?(i.keys.add(f.key),i.partKeys.add(s)):r.set(c,{keys:new Set([f.key]),partKeys:new Set([s])})}}let n=new Map;for(let f of Object.keys(o)){if(!vC(f))continue;let s=Yo(o[f])??{},c=Jt(s,Zo);Object.values(c).some(Boolean)&&n.set(f,{stamp:cd(t,f),declarations:c})}let l=new Map;for(let[f,{keys:s,partKeys:c}]of r){let i=c.size===1?[...c][0]:s.size===1?[...s][0]:null;if(!i)continue;let u=a(i);if(!Object.hasOwn(o,u))continue;let p=Yo(o[u])??{},m=Jt(p,Zo);Object.values(m).some(Boolean)&&l.set(f,{stamp:cd(t,i),declarations:m})}return l.size||n.size?{rules:l,kindRules:n,drawn:new Set(r.keys())}:null}function vC(e){return e.startsWith("@")}function xd(e,o){return e?.kindRules.get(o)??null}function cd(e,o){let t=a=>a.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function Id(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!==""),s=p=>p.map(([m,x])=>`${LC(m)}: ${x}`).join("; "),c=`[${en}="${n}"]`,i=f.filter(([p])=>!Jr.has(p)),u=f.filter(([p])=>Jr.has(p));i.length&&o.push(`${c}, *:has(> ${c}) { ${s(i)} }`),u.length&&o.push(`${c} { ${s(u)} }`),l[Qo]&&o.push(...EC(c))};for(let r of e.rules.values())a(r);for(let r of e.kindRules.values())a(r);return o.join(`
|
|
4
|
+
`)}function EC(e){let o=`var(${Qo})`,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 LC=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function hd(e,o){if(!e)return null;let t=go(o),a=e.rules.get(t);if(a)return a;if(t.length<BC||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 BC=8;import{Fragment as wC,jsx as an}from"react/jsx-runtime";import{Fragment as Sd,jsx as ea,jsxs as AC}from"react/jsx-runtime";import{createContext as yd,useContext as on,useId as RC,useMemo as kC}from"react";var Jo="@name",gd="@body",bd="@value",Ww={[Jo]:"Name",[gd]:"Body",[bd]:"Value"},OC={TimelineTrack:{"entries.date":Jo,"entries.title":Jo,"entries.blurb":gd},Footprint:{"offices.city":Jo},Stats:{"items.label":Jo,"items.value":bd}};function PC(e){let{key:o,row:t}=Kr(e);return t?`${o}.${t.rowKey}`:null}function Cd(e,o){if(!e)return o;let t=PC(o);return t?OC[e]?.[t]??o:o}var tn=yd(null),Fd=yd(null);function Xw({needles:e,styles:o,type:t,children:a}){let r=RC(),n=JSON.stringify([r,e,o,t]),l=kC(()=>md(e,o,r,f=>Cd(t,f)),[n]);return l?AC(Sd,{children:[ea("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:Id(l)}}),ea(tn.Provider,{value:l,children:a})]}):ea(Sd,{children:a})}function Td(e){let o=on(tn),t=on(Fd),a=hd(o,e);return a&&a.stamp!==t?a:null}function jw(e){return xd(on(tn),e)}function vd({stamp:e,children:o}){return ea(Fd.Provider,{value:e,children:o})}function et({value:e,children:o}){let t=Td(e);return t?an(vd,{stamp:t.stamp,children:an("span",{[en]:t.stamp,children:o})}):an(wC,{children:o})}function nn(e,o=!1){let t=WC(o),a=Ga(e);if(a.length===1){let[n]=a,l=Ha(n),f=l?GC(l,n.children):n.children;return O(et,{value:e,children:oa(f,t)})}let r=[];return a.forEach((n,l)=>{if(n.bullet){r.push(O("span",{"data-sf-bullet":"",className:_C,children:oa(n.children,t)},l));return}if(n.number!=null){r.push(rn("span",{"data-sf-number":n.number,className:DC,children:[rn("span",{className:NC,children:[n.number,"."]}),oa(n.children,t)]},l));return}l>0&&!MC(a[l-1])&&r.push(O("br",{},`br${l}`)),r.push(O(Ld,{children:oa(n.children,t)},l))}),O(et,{value:e,children:r})}var _C="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",DC="relative block pl-[2em]",NC="absolute left-0 w-[1.6em] text-right tabular-nums";function MC(e){return e.bullet||e.number!=null}var HC="text-accent underline underline-offset-[0.18em]";function GC(e,o){let[t,...a]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...a]:[{kind:"text",text:e},...o]}function UC(e){if(e)return pd(e)?e:Object.hasOwn(ve,e)?ve[e]:void 0}function oa(e,o){let t=[],a=!1;return e.forEach((r,n)=>{if(r.kind==="text"){t.push(O("span",{children:Zt(r.text)},n)),a=!0;return}a||t.push(O("span",{},`e${n}`)),t.push(Bd(r,n,o)),a=!1}),a||t.push(O("span",{},"end")),t}function Ed(e,o){return e.length===1&&e[0].kind==="text"?Zt(e[0].text):e.map((t,a)=>t.kind==="text"?O(Ld,{children:Zt(t.text)},a):Bd(t,a,o))}function WC(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function s0(e){return O(et,{value:e,children:O("span",{children:e})})}function Bd(e,o,t){if(e.kind==="link")return O("a",{href:e.href,className:HC,children:Ed(e.children,t)},o);let a=Ed(e.children,t),r=Kl[e.kind];if(r)return O("span",{[zl]:r,children:a},o);switch(e.kind){case"underline":return O("u",{children:a},o);case"sup":return O("sup",{children:a},o);case"sub":return O("sub",{children:a},o);case"color":{let n=UC(e.color);return n?O("span",{style:{color:n},children:a},o):O("span",{children:a},o)}case"accent":case"highlight":return O("em",{className:t,children:a},o);case"bold":return O("strong",{className:"font-semibold",children:a},o);case"italic":return O("em",{className:"italic",children:a},o);case"strike":return O("s",{className:"line-through",children:a},o);default:return O("span",{children:a},o)}}function c0(e,o=!0){let t=e.split(`
|
|
5
|
+
`);return O(et,{value:e,children:t.map((a,r)=>rn("span",{children:[nn(a,o),r<t.length-1?O("br",{}):null]},r))})}function d0(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var ln={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 Od={min:40,max:100,step:5,fallback:100,unit:"vh"};function fn(e){return`${typeof e=="number"?e:Od.fallback}${Od.unit}`}function Pd(...e){return e.some(o=>typeof o=="number")}import{useSyncExternalStore as $C}from"react";var qC={level:"groups"},Rd=qC,sn=new Set;function x0(e){Rd=e;for(let o of sn)o()}function KC(e){return sn.add(e),()=>{sn.delete(e)}}var Ad=()=>Rd;function I0(){return $C(KC,Ad,Ad)}function kd(e,o,t){let a=[];return e.forEach((r,n)=>{let l=o(r),f=a.find(s=>s.key===l);f||(f={key:l,name:t(r),items:[]},a.push(f)),f.items.push({item:r,index:n})}),a}function g0(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 ot=e=>String(e?.group??""),cn=new WeakMap,zC=0;function VC(e){let o=cn.get(e);return o||(o=`loc${++zC}`,cn.set(e,o)),o}var S0=(e,o)=>o||e||"Ungrouped",wd={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 ta(e){return kd(e,ot,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var dn=e=>e.flatMap(o=>o.cards),_d=(e,o,t)=>Math.min(Math.max(e,o),t);function XC(e,o,t){let a=0;for(let r=0;r<e.length;r++)if(ot(e[r])===o){if(a===t)return r;a++}return-1}function y0(e,o,t){let a=ta(e);if(o<0||o>=a.length)return e;let[r]=a.splice(o,1),n=_d(o<t?t-1:t,0,a.length);return a.splice(n,0,r),dn(a)}function F0(e,o,t,a,r){let n=ta(e),l=n.find(u=>u.key===o),f=n.find(u=>u.key===a);if(!l||!f||t<0||t>=l.cards.length)return e;let[s]=l.cards.splice(t,1),c=o===a?s:{...s,group:f.key,groupName:f.name};c!==s&&cn.set(c,VC(s));let i=_d(l===f&&t<r?r-1:r,0,f.cards.length);return f.cards.splice(i,0,c),dn(n)}function T0(e,o){let t=ta(e),a=t.find(n=>n.key===o),r={...wd,group:o,groupName:a?.name??""};return a?(a.cards.push(r),dn(t)):[...e,r]}function v0(e){let o=new Set(ta(e).map(r=>r.key)),t=o.size+1,a=`Group ${t}`;for(;o.has(a);)a=`Group ${++t}`;return{cards:[...e,{...wd,group:a,groupName:""}],key:a}}function E0(e,o){return e.filter(t=>ot(t)!==o)}function L0(e,o,t){let a=XC(e,o,t);return a<0?e:e.filter((r,n)=>n!==a)}function B0(e,o,t){let a=e.flatMap((l,f)=>ot(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 O0(e,o,t){return o.flatMap(a=>{let r=e.filter(n=>ot(n)===a);return r.length?r:t(a)})}var jC="plain",Dd=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],YC="line",ZC={KeyFeatures:"filled"};function QC(e){return ZC[e]??jC}function R0(e,o){return K(Dd,QC(o),e)}function k0(e){return K(Dd,YC,e)}var JC="#9ca3af";function D0(e){return Ma.map(o=>({key:o,name:Vl[o],value:e?.[o]||JC}))}function N0(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 Ma){let f=ve[l].replace(/^var\((--[\w-]+)\)$/,"$1"),s=r.getPropertyValue(f).trim();if(!s)continue;let c=Nd(s);!c&&n&&(n.fillStyle="#000000",n.fillStyle=s,c=Nd(String(n.fillStyle))),c&&(o[l]=c)}return o}function Nd(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 eS={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}},Md=eS;var aa="data-sf-spec-region";function G0(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 oS(e){return`@${e}`}function tS(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function Hd(e,o){return o&&o in e?o:null}function aS(e,o){let t=o?.closest(`[${aa}]`)?.getAttribute(aa);return Hd(e,t??null)}var rS={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}},Gd=rS;var K0=aa;var Ud={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 Wd={SpecTable:Ud,FAQ:Gd,Collections:Md};function Y0(e){return e&&Object.hasOwn(Wd,e)?Wd[e]:null}import{jsx as yS}from"react/jsx-runtime";import{forwardRef as nS,createElement as un}from"react";var $d={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 E=(e,o,t,a)=>{let r=nS(({color:n="currentColor",size:l=24,stroke:f=2,title:s,className:c,children:i,...u},p)=>un("svg",{ref:p,...$d[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${o}`,c].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:f,stroke:n},...u},[s&&un("title",{key:"svg-title"},s),...a.map(([m,x])=>un(m,x)),...Array.isArray(i)?i:[i]]));return r.displayName=`${t}`,r};var lS=[["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"}]],pn=E("outline","brand-facebook","BrandFacebook",lS);var fS=[["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"}]],mn=E("outline","brand-instagram","BrandInstagram",fS);var sS=[["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"}]],xn=E("outline","brand-linkedin","BrandLinkedin",sS);var cS=[["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"}]],In=E("outline","brand-pinterest","BrandPinterest",cS);var dS=[["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"}]],hn=E("outline","brand-tiktok","BrandTiktok",dS);var uS=[["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"}]],gn=E("outline","brand-whatsapp","BrandWhatsapp",uS);var iS=[["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"}]],bn=E("outline","brand-x","BrandX",iS);var pS=[["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"}]],Cn=E("outline","brand-youtube","BrandYoutube",pS);var mS=[["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"}]],Sn=E("filled","brand-facebook-filled","BrandFacebookFilled",mS);var xS=[["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"}]],yn=E("filled","brand-instagram-filled","BrandInstagramFilled",xS);var IS=[["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"}]],Fn=E("filled","brand-linkedin-filled","BrandLinkedinFilled",IS);var hS=[["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"}]],Tn=E("filled","brand-pinterest-filled","BrandPinterestFilled",hS);var gS=[["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"}]],vn=E("filled","brand-tiktok-filled","BrandTiktokFilled",gS);var bS=[["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"}]],En=E("filled","brand-whatsapp-filled","BrandWhatsappFilled",bS);var CS=[["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"}]],Ln=E("filled","brand-x-filled","BrandXFilled",CS);var SS=[["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"}]],Bn=E("filled","brand-youtube-filled","BrandYoutubeFilled",SS);var J_="outline",FS={instagram:{outline:mn,solid:yn},facebook:{outline:pn,solid:Sn},tiktok:{outline:hn,solid:vn},youtube:{outline:Cn,solid:Bn},x:{outline:bn,solid:Ln},linkedin:{outline:xn,solid:Fn},pinterest:{outline:In,solid:Tn},whatsapp:{outline:gn,solid:En}};function eD({platform:e,iconStyle:o,size:t}){let a=FS[e][o];return yS(a,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var On="small",Pn="dot",TS=[{label:"Small",value:"small"},{label:"Display",value:"display"}],vS=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],qd={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},ES={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)]"},LS={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 Kd(e){return K(TS,On,e)}function zd(e){return K(vS,Pn,e)}function Vd(e){return ES[e]}function Xd(e,o){return LS[e][o]}var An="left",BS=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],OS={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function jd(e){return K(BS,An,e)}function Yd(e){return e==="up"||e==="down"}function Zd(e,o){return`${OS[e]} ${o}s linear infinite`}var PS={"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]"},AS=`calc(${vt} - ${$}*2)`,Qd=`var(${$a},${$})`,sD=`pointer-events-none absolute inset-y-0 left-[${Qd}] right-[${Qd}] z-[6] mx-auto max-w-[var(${qa},${AS.replace(/ /g,"_")})]`;function ra(e,o){return`pointer-events-auto absolute ${PS[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function Jd(e){return oe.includes(e)?e:null}var RS="bottom-right",kS=["outline","solid","square","bare"],wS="outline",iD={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},pD=!1,eu=["prev","next"],ou={prev:"Previous slide",next:"Next slide"};function _S(e){return kS.includes(e)?e:wS}function DS(e){return Jd(e)??RS}var NS="flex-row items-center gap-2";function tu(e){return ra(DS(e),NS)}var MS={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 au(e){return MS[_S(e)]}function ru(e){return e.shown===!0&&(e.count??0)>1}function na(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 HS=oe;var GS="top-right",US=["cards","dots","numbers","bar","tabs"],WS=["cards","dots","numbers","bar"],nu="cards",hD={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},gD=!0;function la(e){return US.includes(e)?e:nu}function lu(e){return WS.includes(e)?e:nu}function $S(e){return HS.includes(e)?e:GS}var fu={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 ra($S(o),fu[la(e)])}function cu(e){return`flex ${fu[la(e)]}`}function du(e){return e.shown!==!1&&(e.count??0)>1}function qS(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function KS(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 uu(e,o){let t=Array.from(o,qS);return KS(e,t)?e:t}import{useEffect as zS,useState as VS}from"react";var iu="(prefers-reduced-motion: reduce)";function XS(){return globalThis.window?.matchMedia?.(iu)?.matches??!1}function SD(){return XS()?"auto":"smooth"}function pu(){let[e,o]=VS(!1);return zS(()=>{let t=globalThis.window?.matchMedia?.(iu);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 ue,jsxs as sa}from"react/jsx-runtime";import{useCallback as Co,useEffect as So,useId as ay,useRef as Ie,useState as rt}from"react";var mu="data-puck-overlay-portal";function fa(e){return e.setAttribute(mu,"true"),()=>e.removeAttribute(mu)}import{jsx as tt,jsxs as xu}from"react/jsx-runtime";var jS={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function Iu({items:e,separator:o=Pn,size:t=On,durationSec:a=50,scroll:r=An,backdrop:n="themed-band",className:l}){let f=Kd(t),s=jd(r),c=zd(o),i=`text-accent ${Xd(f,c)}`.trim(),u=qd[c],p=u===""?tt("span",{}):tt("span",{className:i,children:u}),m=Yd(s),x=m?"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",I=m?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",g=L=>tt("span",{className:x,children:e.map((y,b)=>{let B=typeof y=="string"?y:y.text,G=typeof y=="object"&&y.gold;return xu("span",{className:I,children:[tt("span",{className:G?"text-accent":void 0,children:nn(B)}),p]},b)})},L);return tt("div",{className:`overflow-hidden ${l??""}`,children:xu("div",{className:`flex ${m?"flex-col ":""}whitespace-nowrap ${Vd(f)} ${jS[n]}`,style:{animation:Zd(s,a)},children:[g("a"),g("b")]})})}import{jsx as Rn}from"react/jsx-runtime";function hu({shape:e,placement:o,ref:t}){let a=au(e);return Rn("div",{ref:t,className:tu(o),style:{color:"var(--overlay-fg)"},children:eu.map(r=>Rn("button",{type:"button","data-hero-nav":r,"aria-label":ou[r],className:a,children:Rn($o,{name:"chevron-right",size:18,rounded:!0,style:r==="prev"?{rotate:"180deg"}:void 0})},r))})}import{jsx as H,jsxs as kn,Fragment as at}from"react/jsx-runtime";function gu({slides:e,active:o,shape:t,placement:a,ref:r,tone:n="media",label:l}){let f=la(t),s=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--surface-2)"}:void 0;return kn("aside",{ref:r,"aria-label":l??"Featured slides",className:n==="surface"?cu(f):su(f,a),style:{color:"var(--overlay-fg)",...s},children:[f==="cards"&&H(YS,{slides:e,active:o}),f==="dots"&&H(ZS,{count:e.length,active:o}),f==="numbers"&&H(QS,{count:e.length,active:o}),f==="bar"&&H(JS,{count:e.length,active:o}),f==="tabs"&&H(ey,{slides:e,active:o})]})}function YS({slides:e,active:o}){return kn(at,{children:[H("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 kn("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:[H("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}`}),H("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 ZS({count:e,active:o}){return H(at,{children:Array.from({length:e},(t,a)=>H("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 QS({count:e,active:o}){return H(at,{children:Array.from({length:e},(t,a)=>H("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 JS({count:e,active:o}){return H(at,{children:Array.from({length:e},(t,a)=>H("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 ey({slides:e,active:o}){return H(at,{children:e.map((t,a)=>{let r=a===o;return H("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:H("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 oy=40;function ty(e,o){return Math.abs(e)<=oy||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function bu(e,o,t,a){let r=ty(e,o);return r?na(r,t,a):t}function Cu(e){return(e.count??0)>1&&e.editing!==!0}function Su(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function yu(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as wn}from"efficient-easel/screen/lib/puck/preview-events";var ry=`
|
|
7
|
+
.hero-ticker-pick { cursor: pointer; }
|
|
8
|
+
.hero-ticker-pick:hover {
|
|
9
|
+
outline: 2px solid color-mix(in srgb, ${ln.accent} 45%, transparent);
|
|
10
|
+
outline-offset: -2px;
|
|
11
|
+
}
|
|
12
|
+
.hero-ticker-pick[data-selected] {
|
|
13
|
+
outline: 2px solid ${ln.accent};
|
|
14
|
+
outline-offset: -2px;
|
|
15
|
+
}
|
|
16
|
+
`,ny="Play video",ly="Hold video",fy="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",sy="item",cy=["","","","","",""],Fu=new Map;function dy(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(wn,o),()=>t.removeEventListener(wn,o)}function r1({slides:e,alignment:o,textureOpacity:t,showTexture:a,textureColor:r,phoneUpDown:n,phoneSideways:l,autoplay:f,autoplayInterval:s,showTicker:c,tickerItems:i,heightDesktop:u,heightMobile:p,showPicker:m,pickerShape:x,pickerPlacement:I,showArrows:g,arrowsShape:L,arrowsPlacement:y,editing:b}){let B=Pd(u,p),G=B?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",ie=B?{"--sf-hero-h-d":fn(u),"--sf-hero-h-m":fn(p)}:void 0,Z=(i??cy.map(h=>({text:h}))).map(h=>h?.text?.trim()?h.text:b?sy:"").filter(Boolean),Q=c!==!1,F=Ie(null),V=Ie(null),nt=Ie(null),k=Ie(null),Ke=Ie(null),ze=ay(),Ve=Ie(ze),[Xe,vu]=rt([]),[Eu,_n]=rt(0),yo=Ie(0),[Dn,Nn]=rt(!1),[lt,Lu]=rt(!1),[Mn,Bu]=rt(null),da=pu(),{selectedHeroId:Ou,select:Hn}=Vc(),ft=Co(()=>F.current?.querySelector(".hero-track")??null,[]),he=Co((h,S=!1)=>{_n(h),yo.current=h,Fu.set(Ve.current,h);let v=F.current?.querySelector(".hero-track");if(v)if(S){let P=v.style.transition;v.style.transition="none",v.style.transform=`translateX(-${Math.max(0,h)*100}%)`,v.offsetHeight,v.style.transition=P}else v.style.transform=`translateX(-${Math.max(0,h)*100}%)`},[]);So(()=>{let h=F.current,S=h?.getAttribute("data-puck-component")||h?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||ze;Ve.current=S,Bu(S);let v=Fu.get(S);typeof v=="number"&&(_n(v),yo.current=v)},[]),So(()=>{let h=ft();if(!h)return;let S=()=>{vu(P=>uu(P,h.querySelectorAll("[data-slide-name]")))};S();let v=new MutationObserver(S);return v.observe(h,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{v.disconnect()}},[ft]),So(()=>{if(!b)return;let h=S=>{let v=S.detail;if(!v||typeof v.index!="number")return;let P=F.current,pe=P?.getAttribute("data-puck-component")||P?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||Ve.current;v.id&&v.id!==pe||he(v.index,!0)};return dy(F.current,h)},[b,he]);let J=Xe.length,je=Math.min(Math.max(Eu,0),Math.max(0,J-1)),ua=du({shown:m,count:J}),Gn=ru({shown:g,count:J}),Un=Su({editing:b,shown:je,slides:Xe}),Pu=yu({editing:b,playing:lt,controlShown:Un}),st=Cu({count:J,editing:b}),Ye=Ie(null),Fo=Ie(null),Au=Co(h=>{if(Ye.current=null,Fo.current=null,!st||h.touches.length!==1)return;let S=h.touches[0];Ye.current={x:S.clientX,y:S.clientY},Fo.current={x:S.clientX,y:S.clientY}},[st]),Ru=Co(h=>{if(!Ye.current)return;if(h.touches.length!==1){Ye.current=null;return}let S=h.touches[0];Fo.current={x:S.clientX,y:S.clientY}},[]),ku=Co(()=>{let h=Ye.current,S=Fo.current;if(Ye.current=null,Fo.current=null,!st||!h||!S)return;let v=bu(S.x-h.x,S.y-h.y,yo.current,J);v!==yo.current&&he(v)},[st,J,he]);So(()=>{if(b||!f||Dn||da||J<=1)return;let h=Math.max(1,typeof s=="number"?s:6)*1e3,S=window.setTimeout(()=>he((je+1)%J),h);return()=>window.clearTimeout(S)},[b,f,s,Dn,da,J,je,he]),So(()=>{let h=[V.current,nt.current,k.current].filter(Boolean),S=h.map(P=>fa(P)),v=P=>{let pe=P.target,To=pe.closest("[data-hero-nav]"),Wn=To??pe.closest("[data-idx]");if(!Wn)return;P.stopPropagation(),P.preventDefault();let ia=To?na(To.dataset.heroNav,yo.current,J):Number(Wn.dataset.idx);Number.isNaN(ia)||(he(ia,b),ft()?.querySelectorAll("[data-slide-name]")[ia]?.click())};return h.forEach(P=>P.addEventListener("click",v,{capture:!0})),()=>{S.forEach(P=>P?.()),h.forEach(P=>P.removeEventListener("click",v,{capture:!0}))}},[J,he,ft,b]),So(()=>{if(!b)return;let h=Ke.current;if(!h)return;let S=fa(h),v=P=>{P.stopPropagation(),P.preventDefault();let pe=F.current,To=pe?.getAttribute("data-puck-component")||pe?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||Ve.current;Hn(To)};return h.addEventListener("click",v,{capture:!0}),()=>{S?.(),h.removeEventListener("click",v,{capture:!0})}},[b,Hn,Q,Z.length]);let wu=Co(h=>{if(!h)return;let S=fa(h),v=P=>{P.stopPropagation(),P.preventDefault(),Lu(pe=>!pe)};return h.addEventListener("click",v,{capture:!0}),()=>{S?.(),h.removeEventListener("click",v,{capture:!0})}},[]);return ue(Aa.Provider,{value:{alignment:o,textureOpacity:t,textureOn:a,textureColor:r,quietVideo:Pu,phoneUpDown:n,phoneSideways:l},children:sa("div",{ref:F,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${G} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:ie,onMouseEnter:()=>Nn(!0),onMouseLeave:()=>Nn(!1),onTouchStart:Au,onTouchMove:Ru,onTouchEnd:ku,children:[ue(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${je*100}%)`,transition:da?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),Un&&ue("div",{ref:wu,"data-hero-video-control":lt?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${jc} + 16px)`},children:sa("button",{type:"button",className:fy,children:[ue("span",{"aria-hidden":"true",children:lt?"\u275A\u275A":"\u25B6"}),lt?ly:ny]})}),(ua||Gn)&&sa("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:[ua&&ue(gu,{ref:V,slides:Xe,active:je,shape:lu(x),placement:I}),Gn&&ue(hu,{ref:k,shape:L,placement:y})]}),ua&&ue("div",{ref:nt,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:Xe.map((h,S)=>ue("button",{type:"button","data-idx":S,"aria-label":`Go to slide ${S+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${S===je?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},S))}),Q&&Z.length>0&&sa("div",{ref:Ke,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${b?" hero-ticker-pick":""}`,"data-selected":b&&Mn!=null&&Ou===Mn?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[b&&ue("style",{children:ry}),ue(Iu,{items:Z,backdrop:"dark-media"})]})]})})}var ca="data-theme",Tu="light";function uy(e){return e.getAttribute(ca)===Tu?"light":"dark"}function iy(e,o){return uy(e)===o?!1:(o==="light"?e.setAttribute(ca,Tu):e.removeAttribute(ca),!0)}function py(e){return ga(e).getItem(ma)}function s1(e,o){ga(e).setItem(ma,o)}function my(e,o,t=new Date().getHours()){return jn({mode:o.mode,override:py(e),switchShown:o.switchShown,hour:t})}function c1(e,o){let t=e.documentElement;if(!t)return()=>{};let a=()=>iy(t,my(e,o));a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[ca]}),()=>n.disconnect()}var xy="style";function Iy(e,o){let t=el(o),a=!1;for(let r of Jn){let n=t[r]??"";e.style.getPropertyValue(r)!==n&&(n?e.style.setProperty(r,n):e.style.removeProperty(r),a=!0)}return a}function d1(e,o){let t=e.body;if(!t)return()=>{};let a=()=>Iy(t,o);a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[xy]}),()=>n.disconnect()}export{lF as a,fF as b,sF as c,cF as d,xi as e,ye as f,pF as g,mF as h,ka as i,TT as j,Ne as k,hl as l,_ as m,Ml as n,iT as o,Gl as p,yF as q,bl as r,FF as s,Bl as t,Al as u,Rl as v,ZF as w,QF as x,JF as y,eT as z,Ki as A,cT as B,ht as C,Fi as D,vF as E,Fe as F,EF as G,LF as H,Sl as I,BF as J,OF as K,PF as L,Li as M,bt as N,Me as O,wF as P,Oo as Q,DF as R,NF as S,MF as T,HF as U,Te as V,bT as W,CT as X,dp as Y,NT as Z,ps as _,xx as $,ZL as aa,kt as ba,ms as ca,Ix as da,hx as ea,gx as fa,eB as ga,oB as ha,tB as ia,aB as ja,yt as ka,Da as la,HT as ma,GT as na,UT as oa,WT as pa,$T as qa,qT as ra,K as sa,ub as ta,Mk as ua,Hk as va,ib as wa,mb as xa,Gk as ya,Uk as za,D0 as Aa,N0 as Ba,fa as Ca,VT as Da,XT as Ea,QT as Fa,JT as Ga,qr as Ha,Kr as Ia,xb as Ja,Zl as Ka,Ga as La,Ao as Ma,Ue as Na,D as Oa,jf as Pa,Pe as Qa,Uo as Ra,ed as Sa,Yk as Ta,Zk as Ua,Qk as Va,Cb as Wa,Sb as Xa,yb as Ya,Fb as Za,aw as _a,rw as $a,pw as ab,mw as bb,xw as cb,Iw as db,go as eb,hw as fb,ad as gb,Tb as hb,gw as ib,bw as jb,Cw as kb,en as lb,Ub as mb,Wb as nb,$b as ob,qb as pb,Qt as qb,Kb as rb,dd as sb,oC as tb,ww as ub,_w as vb,iC as wb,Jt as xb,Dw as yb,Nw as zb,Mw as Ab,Hw as Bb,TC as Cb,Jo as Db,gd as Eb,Ww as Fb,Cd as Gb,Xw as Hb,jw as Ib,FL as Jb,BL as Kb,OL as Lb,PL as Mb,te as Nb,af as Ob,hv as Pb,Tt as Qb,Bp as Rb,Cv as Sb,Ro as Tb,Pp as Ub,yv as Vb,lf as Wb,$a as Xb,qa as Yb,Pv as Zb,Rv as _b,kv as $b,wv as ac,_v as bc,uc as cc,Rr as dc,kr as ec,ff as fc,sf as gc,ko as hc,uf as ic,Uv as jc,wp as kc,Wv as lc,If as mc,qv as nc,Kv as oc,Hp as pc,zv as qc,sB as rc,hs as sc,cB as tc,yx as uc,dB as vc,Nt as wc,UO as xc,vr as yc,WO as zc,vI as Ac,$O as Bc,MO as Cc,HO as Dc,Up as Ec,Et as Fc,Xv as Gc,bf as Hc,Lt as Ic,Cf as Jc,xe as Kc,fE as Lc,Lf as Mc,gy as Nc,Je as Oc,Mu as Pc,ba as Qc,Af as Rc,ym as Sc,GE as Tc,_f as Uc,Yf as Vc,ns as Wc,KL as Xc,jL as Yc,or as Zc,Nm as _c,VE as $c,ae as ad,bs as bd,TB as cd,Cs as dd,Ss as ed,AB as fd,$B as gd,hr as hd,gr as id,VB as jd,XB as kd,Es as ld,jB as md,YB as nd,ZB as od,Os as pd,yr as qd,vy as rd,By as sd,rl as td,Ns as ud,Hs as vd,cI as wd,Mf as xd,W as yd,fl as zd,Ry as Ad,Uu as Bd,ky as Cd,wy as Dd,Wu as Ed,Ny as Fd,$u as Gd,My as Hd,Sa as Id,Gy as Jd,Uy as Kd,Wy as Ld,$y as Md,pt as Nd,qy as Od,Ky as Pd,zy as Qd,ju as Rd,Qy as Sd,il as Td,oi as Ud,ti as Vd,ai as Wd,Fa as Xd,Jy as Yd,$m as Zd,$o as _d,Mt as $d,XO as ae,jO as be,ZO as ce,QO as de,JO as ee,eP as fe,oP as ge,zf as he,Pt as ie,rr as je,Ym as ke,pL as le,mL as me,io as ne,Gt as oe,ac as pe,aP as qe,rP as re,Ut as se,Wt as te,lP as ue,sc as ve,sP as we,mP as xe,Lh as ye,Kt as ze,hA as Ae,gA as Be,bA as Ce,CA as De,yA as Ee,FA as Fe,TA as Ge,Mh as He,vA as Ie,EA as Je,LA as Ke,BA as Le,OA as Me,z as Ne,PA as Oe,Uh as Pe,AA as Qe,RA as Re,Wh as Se,kA as Te,vc as Ue,qe as Ve,po as We,wA as Xe,qh as Ye,Bc as Ze,Oc as _e,_A as $e,DA as af,NA as bf,MA as cf,HA as df,GA as ef,UA as ff,WA as gf,$A as hf,qA as if,Ac as jf,Rc as kf,kc as lf,wc as mf,$e as nf,KA as of,zA as pf,VA as qf,XA as rf,jA as sf,YA as tf,ke as uf,ZA as vf,QA as wf,Gr as xf,JA as yf,Ur as zf,eR as Af,oR as Bf,tR as Cf,aR as Df,gg as Ef,rR as Ff,Nc as Gf,Mc as Hf,Hc as If,bg as Jf,nR as Kf,lR as Lf,M as Mf,ho as Nf,mR as Of,xR as Pf,IR as Qf,hR as Rf,gR as Sf,bR as Tf,CR as Uf,Tg as Vf,SR as Wf,yR as Xf,FR as Yf,TR as Zf,vR as _f,aF as $f,rF as ag,Wc as bg,PR as cg,AR as dg,Hg as eg,DR as fg,NR as gg,UR as hg,WR as ig,KR as jg,zR as kg,Vc as lg,jR as mg,YR as ng,ZR as og,QR as pg,Vg as qg,ok as rg,eS as sg,rS as tg,aa as ug,G0 as vg,oS as wg,tS as xg,Hd as yg,aS as zg,K0 as Ag,Y0 as Bg,Pb as Cg,yw as Dg,rk as Eg,nk as Fg,vw as Gg,J_ as Hg,eD as Ig,On as Jg,Pn as Kg,TS as Lg,vS as Mg,An as Ng,BS as Og,et as Pg,Zt as Qg,Bw as Rg,nn as Sg,s0 as Tg,c0 as Ug,d0 as Vg,Iu as Wg,RS as Xg,kS as Yg,wS as Zg,iD as _g,pD as $g,GS as ah,WS as bh,nu as ch,hD as dh,gD as eh,gu as fh,SD as gh,ln as hh,Od as ih,fn as jh,Pd as kh,Xc as lh,sk as mh,jc as nh,jg as oh,ck as ph,dk as qh,uk as rh,ik as sh,Yg as th,pk as uh,mk as vh,xk as wh,Qg as xh,Ik as yh,ob as zh,hk as Ah,cy as Bh,r1 as Ch,yk as Dh,Tk as Eh,x0 as Fh,I0 as Gh,kd as Hh,g0 as Ih,ot as Jh,VC as Kh,S0 as Lh,wd as Mh,ta as Nh,XC as Oh,y0 as Ph,F0 as Qh,T0 as Rh,v0 as Sh,E0 as Th,L0 as Uh,B0 as Vh,O0 as Wh,Pk as Xh,kk as Yh,wk as Zh,_k as _h,ca as $h,uy as ai,iy as bi,s1 as ci,c1 as di,d1 as ei,jC as fi,Dd as gi,YC as hi,QC as ii,R0 as ji,k0 as ki};
|