efficient-storefront-blocks 0.25.0 → 0.26.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (31) hide show
  1. package/CHANGELOG.md +80 -0
  2. package/README.md +53 -5
  3. package/dist/chunks/{EditorPreviewCheckout-URFSPLP6.js → EditorPreviewCheckout-74ZL6KSE.js} +1 -1
  4. package/dist/chunks/PreviewFooter-IE25M3OO.js +1 -0
  5. package/dist/chunks/SiteEditorProvider-A24N444B.js +1 -0
  6. package/dist/chunks/chunk-4CEJDQT6.js +154 -0
  7. package/dist/chunks/{chunk-5FWFXNTA.js → chunk-AT54VAHN.js} +1 -1
  8. package/dist/chunks/chunk-JMPXWSWW.js +16 -0
  9. package/dist/chunks/chunk-TPQS7R54.js +1 -0
  10. package/dist/chunks/chunk-TZQUVG3U.js +230 -0
  11. package/dist/chunks/{fitment-data-QCRJYMQI.js → fitment-data-D2XKX2FH.js} +1 -1
  12. package/dist/chunks/{render-client-GS5UA2Q7.js → render-client-7TWSIUW2.js} +1 -1
  13. package/dist/editor.css +1 -1
  14. package/dist/index.d.ts +27 -0
  15. package/dist/index.js +124 -314
  16. package/dist/links.d.ts +5 -3
  17. package/dist/links.js +1 -1
  18. package/dist/words.d.ts +1911 -0
  19. package/dist/words.js +11 -0
  20. package/package.json +10 -3
  21. package/dist/chunks/PreviewFooter-SMYEU6AT.js +0 -1
  22. package/dist/chunks/SiteEditorProvider-ZSJ42NW3.js +0 -1
  23. package/dist/chunks/chunk-D42IBF3T.js +0 -230
  24. package/dist/chunks/chunk-E27PWVTV.js +0 -16
  25. package/dist/chunks/chunk-RVAMC6AG.js +0 -1
  26. package/dist/chunks/chunk-V5ANFR4Q.js +0 -154
  27. /package/dist/chunks/{SectionEditorShell-KPJJGNME.js → SectionEditorShell-B33EV72Q.js} +0 -0
  28. /package/dist/chunks/{chunk-V5ANFR4Q.js.LEGAL.txt → chunk-4CEJDQT6.js.LEGAL.txt} +0 -0
  29. /package/dist/chunks/{chunk-XMRDC5JK.js → chunk-5ARJ7ZNM.js} +0 -0
  30. /package/dist/chunks/{chunk-E27PWVTV.js.LEGAL.txt → chunk-JMPXWSWW.js.LEGAL.txt} +0 -0
  31. /package/dist/chunks/{chunk-BXKNNBHR.js → chunk-PT6SNSRB.js} +0 -0
@@ -1,16 +0,0 @@
1
- import{B as Qn,C as he,D as ge,E as Ye,F as Ze,H as Jn,Ia as st,Ja as al,K as pa,La as pe,M as el,N as ma,Oa as rl,P as ol,Q as tl,Qa as nl,Z as be,_ as we,a as Kn,aa as Ce,ba as ft,c as Vn,d as da,h as Yn,i as Fo,k as lt,r as ua,w as Zn,x as ia,y as Lo}from"./chunk-XMRDC5JK.js";import{a as zn,c as ee,l as Xn,m as yo,n as jn,u as xa}from"./chunk-BXKNNBHR.js";import{EaselSessionProvider as vy,useEaselSession as Qe}from"efficient-easel/screen/lib/session-context";import{hostLoadRefusalOf as Pu,hostUnreachableMessage as Au,isBackendError as Ru,provideHostFailures as ku,readHostFailure as wu,STATUS_UNREACHABLE as _u,WebsiteBackendError as Ia}from"efficient-easel/screen/lib/backend-error";import{createEaselHost as ky,DETACHED_EASEL_HOST as wy,EaselHostContext as _y,EaselHostProvider as Dy,useEaselHost as ll}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 fl(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function sl(e,o){return typeof e=="boolean"?e:o}function ct(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 cl="cart-drawer",Gy="cart-drawer";var Du={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 Uy(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function Wy(e){let o=e??{},t=Du;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:ct(o.promises,t.promises),emptyKicker:W(o.emptyKicker,t.emptyKicker),emptyBody:W(o.emptyBody,t.emptyBody)}}var Mu=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],zy={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"},Nu={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"},Ky={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 Hu(e){return typeof e=="string"&&Fo.includes(e)?e:null}function dl(e){let o={};for(let t of Mu){let a=Hu(e[Nu[t]]);a&&(o[t]=a)}return o}var ga="site-footer";var Xy=ga,jy={desktop:!0,tablet:!0,mobile:!0},Yy={desktop:!1,tablet:!1,mobile:!1},ha=1,ul=6,Zy=Array.from({length:ul-ha+1},(e,o)=>ha+o),dt={desktop:6,tablet:3,mobile:2},Gu={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},_e=e=>Math.min(Math.max(Math.round(e),ha),ul);function Qy(e){if(typeof e=="number")return Gu[_e(e)]??{desktop:_e(e),tablet:_e(e),mobile:_e(e)};if(e&&typeof e=="object"){let o=e;return{desktop:_e(o.desktop??dt.desktop),tablet:_e(o.tablet??dt.tablet),mobile:_e(o.mobile??dt.mobile)}}return{...dt}}function Uu(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type==="Footer")??null:null}function Jy(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===Wu)??Uu(e):null}var Wu="SiteFooter",$u="SiteHeader";function eF(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===$u)??null:null}var qu="subscribe-popup",lF="subscribe-popup";var zu=[qu,ga,cl];function ml(e){return zu.includes(e)}var Ku=["delay","scroll","exit"],Vu=["all","chosen"],Xu=["visit","days","never"],ju=["right","left"],Yu={min:0,max:60},Zu={min:10,max:90},Qu={min:1,max:90},Ca={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,Ju=fl,il=sl,xl=ct;function ut(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function ba(e,o,t){let a=Ju(e,t);return Math.min(o.max,Math.max(o.min,Math.round(a)))}function ei(e){return typeof e.hideAfter=="string"?ut(Xu,e.hideAfter,Ca.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Ca.hideAfter}function oi(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function pl(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 ti(e,o){return Array.isArray(e)?xl(e,[]):o}function ai(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 fF(e){let o=e??{},t=Ca;return{metaLabel:A(o.metaLabel,t.metaLabel),issueLabel:pl(o.issueLabel,t.issueLabel),issueNumber:pl(o.issueNumber,t.issueNumber),kicker:A(o.kicker,t.kicker),heading:A(o.heading,t.heading),deck:A(o.deck,t.deck),stats:ai(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:xl(o.interests,t.interests),frequencyLabel:A(o.frequencyLabel,t.frequencyLabel),frequencies:ti(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:il(o.autoOpen,t.autoOpen),autoOpenDelaySec:ba(o.autoOpenDelaySec,Yu,t.autoOpenDelaySec),trigger:ut(Ku,o.trigger,t.trigger),scrollPercent:ba(o.scrollPercent,Zu,t.scrollPercent),showOn:ut(Vu,o.showOn,t.showOn),showOnPages:oi(o.showOnPages),hideAfter:ei(o),hideDays:ba(o.hideDays,Qu,t.hideDays),formSide:ut(ju,o.formSide,t.formSide),valuePanelOnPhone:il(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:dl(o)}}import{jsx as ri}from"react/jsx-runtime";import{createContext as ni,useCallback as li,useContext as fi,useState as Sa}from"react";var Il=ni({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{}});function uF({children:e,editFooter:o}){let[t,a]=Sa(null),[r,n]=Sa(null),[l,f]=Sa(0),s=li(()=>f(c=>c+1),[]);return ri(Il.Provider,{value:{footerBlock:t,setFooterBlock:a,headerGroup:r,setHeaderGroup:n,editFooter:o,refreshToken:l,refreshFooter:s},children:e})}var iF=()=>fi(Il);var hl=["general","commerce","service"],Je=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero Slideshow",set:"general"},{type:"HeroSingle",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"BrandStrip",label:"Brand Strip",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"},{type:"SpecStrip",label:"Spec Strip",set:"general"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"DeliveryOptions",label:"Delivery Options",set:"commerce"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Cards",label:"Cards",set:"general"},{type:"KeyFeatures",label:"Key Features",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"Countdown",label:"Countdown",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Series",label:"Recurring Columns",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"},{type:"DocMetaCards",label:"Document Detail Cards",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Spacer",label:"Spacer",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]}];function mF(){return Object.fromEntries(Je.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var si={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."},xF=["Grid"],IF=Array.from(new Set([...Je.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(si)])),hF=Object.fromEntries(Je.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),ci={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",MenuBlock:"service",EmailFormBlock:"service",SocialLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},it={...ci,...Object.fromEntries(Je.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function gl(e){return Object.prototype.hasOwnProperty.call(it,e)?it[e]:void 0}function ya(e){return Object.keys(it).filter(o=>it[o]===e).sort()}var gF=ya("general"),bF=ya("commerce"),CF=ya("service"),di="Flex",Se="Box",SF=`${Se}es`;function ui(e){return e==="section"?"Blank section":Se}function yF(e,o,t){return e===di?ui(o):t}var De=zn,bl=e=>e.blocks;import{jsx as pt}from"react/jsx-runtime";import{createContext as ii,lazy as pi,Suspense as mi,useContext as xi}from"react";var Ii={Link:Vn,Image:Kn},hi=ii(Ii);function Cl(){return xi(hi)}function PF(e){let{Link:o}=Cl();return pt(o,{...e})}function Sl(e){let{Image:o}=Cl();return pt(o,{...e})}function AF(e){let o=pi(e);return function(t){return pt(mi,{fallback:null,children:pt(o,{...t})})}}var oe=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],mt="bottom-left";var To={"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 gi(e){let o=oe.indexOf(ye(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function bi(e){return 1+gi(e).band*6}function kF(e){return bi(e)+1}function ye(e){return oe.includes(e)?e:mt}function wF(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function _F(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function Fa(e,o){let t=ye(o);return e.filter(a=>ye(a?.props?.placement)===t).length}function yl(e){return`${To[ye(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=Fa(t,a)>=4,n=To[a];return r?{value:a,label:n,disabled:!0,title:yl(a)}:{value:a,label:n}})}function xt(e,o){let t=o===void 0?mt:ye(o?.props?.placement);return Fa(e,t)>=4?yl(t):null}var Fl="HeroGroup";function DF(e){let o=new Map,t=!1,a=e.filter(r=>{let n=ye(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 Ci(e){return oe.map(o=>{let t=Fa(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function Ta(e){let o=Ci(e);return o.length===0?null:o.map(({anchor:t,total:a,hidden:r})=>{let n=To[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 MF(e,o){let t=o;if(t?.type!==Fl)return null;let a=t.props?.id===void 0?"":String(t.props.id);return a?xt(va(e,a),t):null}function va(e,o){let t=Ll(e,o);return t&&t.ownerType===yi?t.siblings:[]}function NF(e,o){let t=Ll(e,o);return t?t.ancestorTypes.filter(a=>a===Fl).length:Si}var Si=1,yi="HeroSlide";function Ll(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 UF,FOOTER_TYPE as It,HEADER_TYPE as Me,locateNode as Tl,missingPinnedTypes as WF,nestsInTree as $F,newNodeId as vo,pinnedDuplicateIds as qF,pinnedDuplicateIndices as zF,ROOT_ZONE as KF,slotFieldsOf as VF,TREE_MAX_DEPTH as XF}from"efficient-easel/screen/lib/puck/content-tree";import{jsx as Eo,jsxs as Wi}from"react/jsx-runtime";import{createContext as $i,useContext as qi}from"react";import{jsx as eo,jsxs as Ol}from"react/jsx-runtime";import{useEffect as Ea,useRef as Pi,useState as ht}from"react";import{jsx as vl,Fragment as Fi,jsxs as Li}from"react/jsx-runtime";import{useEffect as Ti,useRef as El,useState as vi}from"react";var Ei="#t=0.001",Bi=2;function Oi(e,o){if(e.readyState<Bi||!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 Bl({src:e,objectPosition:o="50% 50%",onError:t}){let a=El(null),r=El(null),[n,l]=vi(!1);return Ti(()=>{let f=a.current,s=r.current;if(n||!f||!s)return;let c=()=>{Oi(f,s)&&l(!0)};return c(),f.addEventListener("loadeddata",c),f.addEventListener("seeked",c),()=>{f.removeEventListener("loadeddata",c),f.removeEventListener("seeked",c)}},[n]),Li(Fi,{children:[vl("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&&vl("video",{ref:a,src:`${e}${Ei}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var Ai=.5;function Pl({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:a=Ai,objectPosition:r="50% 50%",quiet:n=!1}){let l=o||"",f=e||"",[s,c]=ht(!1),[i,u]=ht(!1),[p,m]=ht(!1),[x,I]=ht(!1),b=Pi(null);Ea(()=>{c(!1),u(!1),m(!1)},[e,o]),Ea(()=>{if(typeof window>"u")return;let v=()=>{let C=window;C.requestIdleCallback?C.requestIdleCallback(()=>I(!0),{timeout:2e3}):setTimeout(()=>I(!0),800)};if(document.readyState==="complete"){v();return}return window.addEventListener("load",v,{once:!0}),()=>window.removeEventListener("load",v)},[]),Ea(()=>{let v=b.current;if(!v)return;let C=()=>{v.playbackRate=a};return C(),v.addEventListener("loadedmetadata",C),()=>v.removeEventListener("loadedmetadata",C)},[e,a]);let P=Xn(l);return Ol("div",{className:"absolute inset-0 z-[1]",children:[eo("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),l&&(P?eo("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):eo(Sl,{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&&Ol("video",{ref:b,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:[jn(f)&&eo("source",{src:f.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),eo("source",{src:f,type:"video/mp4"})]},f),t&&n&&f&&x&&!p&&(!l||s)&&eo(Bl,{src:f,objectPosition:r,onError:()=>m(!0)},f)]})}var Al=["top","middle","bottom"],Rl=["left","center","right"],kl="bottom",wl="left",Ri={top:"Top",middle:"Middle",bottom:"Bottom"},ki={left:"Left",center:"Center",right:"Right"};var nL="Up and down",lL="Sideways",wi={top:"flex-start",middle:"center",bottom:"flex-end"},_i={left:"flex-start",center:"center",right:"flex-end"},Di="--sf-hero-phone-y",Mi="--sf-hero-phone-x";function Ni(e){return Al.includes(e)?e:kl}function Hi(e){return Rl.includes(e)?e:wl}function _l(e,o){let t=Ni(e),a=Hi(o),r={};return t!==kl&&(r[Di]=wi[t]),a!==wl&&(r[Mi]=_i[a]),r}function fL(){return Al.map(e=>({label:Ri[e],value:e}))}function sL(){return Rl.map(e=>({label:ki[e],value:e}))}var Gi="#0A0A0A",Ui=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function Dl(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 Ml(e){return e==null?!0:e!==!1}function Nl(e){let o=(e?Dl(e):null)??Dl(Gi);return`linear-gradient(180deg, ${Ui.map(([t,a])=>`rgba(${o},${a}) ${t}%`).join(", ")})`}var Ba=$i({});function hL({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:b,quietVideo:P,phoneUpDown:v,phoneSideways:C}=qi(Ba),E=t==="video",H=E?yo(a):void 0,ue=E?yo(n):yo(a)??yo(n),Z=typeof r=="number"?r/100:1;return Wi("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":H?"video":"still",children:[Eo(Pl,{videoSrc:H,posterSrc:ue,showVideo:E,playbackRate:Z,objectPosition:l,quiet:P}),s>0&&Eo("div",{className:"absolute inset-0 z-[2]",style:{background:f,opacity:Math.min(Math.max(s,0),100)/100}}),Ml(I)&&Eo("div",{className:"absolute inset-0 z-[2]",style:{background:Nl(b),...x!==void 0?{opacity:x/100}:null}}),Eo("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{color:"var(--overlay-fg)",..._l(v,C)},children:c&&Eo(c,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var Hl=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));var oo="content",_="Flex",zi="Text & media",Ki="Layout & structure",Vi=[{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:zi})),Xi=(Je.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Ki})),Gl=[...Vi,...Xi],Oa=[{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:Se}],CL=Oa.map(e=>e.type),ji=1,Yi=Oa.filter(e=>e.type!=="HeroGroup");function Zi(e){return e<ji?Oa:Yi}var Qi={Flex:{slot:oo,choices:()=>Gl},Grid:{slot:oo,choices:()=>Gl},HeroGroup:{slot:oo,choices:Zi}};function Ul(e,o=0){let t=Qi[e];return t?{slot:t.slot,choices:t.choices(o)}:null}var Ji="ImageBlock",ep=3,gt=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:vo(e),...t}}),op=e=>({...e?.(_)??{},direction:"column",[oo]:[gt(Ji,e),gt(_,e,{direction:"column",[oo]:[gt("Heading",e),gt("Text",e)]})]}),Fe={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>Hl.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Se.toLowerCase()}`,seeds:()=>[],addBlocked:xt,notice:Ta},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Se.toLowerCase()}`,seeds:()=>[],addBlocked:xt,notice:Ta},ProcessSteps:{slot:"boxes",childType:_,addLabel:`Add ${Se.toLowerCase()}`,seeds:e=>Array.from({length:ep},()=>op(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function EL(e){for(let[o,t]of Object.entries(e)){if(o in Fe&&Fe[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);Fe[o]=t}}function BL(e,o){let t=Fe[e];return t?{slot:t.slot,children:t.seeds(o).map(a=>({type:t.childType,props:{id:vo(t.childType),...a}}))}:null}var tp={general:!0,commerce:!0,service:!0};function Pa(e){let o=e?.sets;return o?Object.fromEntries(hl.map(t=>[t,o.includes(t)])):tp}function RL(e=ee()){return Pa(e.blocks)}function G(e,o,t,a={}){return{type:e,props:{...o(e),id:t(e),...a}}}var ap={Manifesto:(e,o)=>({type:_,props:{...e(_),id:o(_),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[G(_,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[G("Eyebrow",e,o,{eyebrowLook:"plain"}),G("Heading",e,o),G("Text",e,o),G("Stats",e,o)]}),G(_,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:[G(_,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[G("Eyebrow",e,o,{eyebrowLook:"plain"}),G("Heading",e,o),G("Text",e,o),G("ButtonBlock",e,o)]}),G(_,e,o,{direction:"column",name:"Image",content:[G("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:_,props:{...e(_),id:o(_),direction:"column",name:"Subscribe",content:[G("Heading",e,o),G("Text",e,o),G("Form",e,o)]}})};function Wl(e){return ap[e]??null}import{blockTypesIn as Aa}from"efficient-easel/screen/lib/puck/block-types-in";var $l=()=>({}),ql=new Map;function rp(e){let o=ql.get(e);if(o)return o;let t=new Set,a=Fe[e];if(a)for(let l of a.seeds($l))for(let f of Aa({type:a.childType,props:l}))t.add(f);let r=Wl(e);if(r){let l=0;for(let f of Aa(r($l,s=>`${s}-${l+=1}`)))t.add(f)}t.delete(e);let n=[...t].sort();return ql.set(e,n),n}function np(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Pa(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=gl(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)&&rp(s).every(f);return l.set(s,i),i};return{sets:o,offers:f}}var lp="block-offer";function Ra(e=ee()){return e.cache(lp,()=>np(bl(e)))}function zL(e,o=ee()){let t=Ra(o);return t?t.offers(e):!0}var bt="SiteHeader",ka="SiteFooter",zl="sections",VL=[bt,ka],XL=e=>e===bt||e===ka,jL=e=>`${e}:${zl}`;function YL(e,o,t=[]){return{type:e,props:{id:o,[zl]:t}}}var fp=new Set(["Footer",bt,ka]);function ZL(e){let o=new Set,t=!1,a=e.filter(r=>{let n=r?.type??"";return n==="Header"?(t=!0,!1):fp.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?a:e}function QL(e,o){return e.some(t=>t?.type===o.type)?e:o.type===bt?[o,...e]:[...e,o]}import{PreviewPartsProvider as oT,usePreviewParts as tT}from"efficient-easel/screen/components/PreviewPartsContext";import{jsx as sp}from"react/jsx-runtime";import{createContext as cp,useContext as dp,useMemo as up,useState as ip}from"react";var pp={partStyle:null,setPartStyle:()=>{}},Kl=cp(pp);function lT({children:e}){let[o,t]=ip(null),a=up(()=>({partStyle:o,setPartStyle:t}),[o]);return sp(Kl.Provider,{value:a,children:e})}function fT(){return dp(Kl)}import{applyMark as pT,markupTools as mT,MARKUP_TOOLS as xT,COPY_FIELD_TOOLS as IT,STOREFRONT_MARKUP as hT,tokenizeInline as gT,stripInline as bT,isSafeLinkHref as CT}from"efficient-easel/markup";import{applyMark as mp,markedAt as xp,markupTools as Ip,MARKUP_TOOLS as hp,parseMarkup as gp,RETIRED_MARKS as bp,STOREFRONT_MARKUP as Cp,tokenizeInline as yT}from"efficient-easel/markup";var Ct=["highlight","strong","quiet"],Ne={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},le={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},Vl=Object.fromEntries(Ct.map(e=>[le[e].kind,e])),Xl="data-sf-ws",_a=["accent","text","labels"],jl={accent:"Accent",text:"Text",labels:"Labels"},Le={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"};var wa={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},dT={highlight:{...wa},strong:{...wa},quiet:{...wa}};var Yl=Ct.map(e=>({open:le[e].delimiter,close:le[e].delimiter,kind:le[e].kind})),LT=[{style:le.highlight.kind,label:Ne.highlight,title:`${Ne.highlight} word style`},{style:le.strong.kind,label:Ne.strong,title:`${Ne.strong} word style`},{style:le.quiet.kind,label:Ne.quiet,title:`${Ne.quiet} word style`}],Sp=new Set(Yl.map(e=>e.open)),Zl=[...Cp.filter(e=>!Sp.has(e.open)),...Yl];function Da(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Ma(e){return gp(typeof e=="string"?e:"",Zl)}var yp=hp.map(e=>e.style).filter(e=>!bp.includes(e)).filter(e=>Zl.some(o=>o.kind===e));function Ql(){return Ip(yp)}var Jl=Object.fromEntries(Ct.map(e=>[le[e].kind,le[e].delimiter]));function ef(e,o,t,a){let r=Jl[a];if(!r)return mp(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:xp(e,o,t,a)}function Bo(e){return Ma(e).map(o=>Da(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 vT(e,o){if(e!==!1)return null;let t=typeof o=="number"?o:te.default;return af(t)}var rf="--sf-site-width",St=`var(${rf},${te.default}px)`,ET=`max-w-[${St}]`,BT=`max-w-[${te.default}px]`;function Fp(e){return typeof e!="number"||!Number.isFinite(e)?te.default:Math.round(Math.min(Math.max(e,te.min),te.max))}function OT(e){let o=Fp(e);return o===te.default?{}:{[rf]:`${o}px`}}var Oo={min:0,max:80,step:4,default:40},nf="--sf-site-gutter",$=`var(${nf},${Oo.default}px)`,Lp=`px-[${$}]`;var Te={md:`min(24px,${$})`,sm:`min(20px,${$})`,frame:`min(24px,${$})`,tabs:`min(16px,${$})`},PT=[[`max-[1100px]:px-[${Te.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${Te.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${Te.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Te.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${Te.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${Te.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${Te.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${Te.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"],[Lp,"px-10"]];function Tp(e){return typeof e!="number"||!Number.isFinite(e)?Oo.default:Math.round(Math.min(Math.max(e,Oo.min),Oo.max))}function AT(e){let o=Tp(e);return o===Oo.default?{}:{[nf]:`${o}px`}}var yt=`min(var(--sf-page-cap,${St}),${St})`,RT=`max-w-[${yt}]`,kT=`max-w-[min(var(--sf-page-cap,${te.default}px),${te.default}px)]`,lf="--sf-hero-cap",vp=`var(${lf},none)`,wT=`max-w-[${vp}]`,Na="--sf-hero-bleed-m",Ha="--sf-hero-bleed-w",_T=`var(${Na},calc(50% - 50vw))`,DT=`var(${Ha},100vw)`,MT=`mx-[var(${Na},calc(50%_-_50vw))]`,NT=`w-[var(${Ha},100vw)]`,Ga="--sf-hero-chrome-x",Ua="--sf-hero-chrome-cap";function HT(e){return e===!0?{[lf]:yt,[Na]:"auto",[Ha]:"100%",[Ga]:"24px",[Ua]:"none"}:{}}var Wa=`calc(${St} - ${$}*2)`,GT=`max-w-[${Wa.replace(/ /g,"_")}]`;var Ep="--sf-chrome-cap",Bp=`var(${Ep},${Wa})`,UT="data-page-width";function WT(e){return e==="full"?"full":null}function $T(e){return e==="full"?null:af(e==="content"?Wa:Bp)}function qT(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 Po(e){return e===ff?"/":`/${e}`}function uf(e){return`/journal/${e}`}function YT(e){return`/wheels/${e}`}function pf(e,o){return`${Po(e)}#${o}`}function Op(e){return sf(e)}function Pp(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=Pp(r?.props?.anchor);if(!n)continue;let l=Op(n);!l||o.has(l)||(o.add(l),t.push({slug:l,name:n}))}return t}function ZT(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 Ap="sf-section-accent",xf="Color",If=new Set(["CategoryBar","DocTabs"]),JT=new Set(["Flex"]),Rp=0;function $a(e){return e===-1?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Rp}function ev(e){return e??-1}function kp(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 ov(e){let o=$a(e.sectionAccent);return o===null?null:{className:Ap,style:kp(o)}}var wp=["column","row","tabs"],hf="Direction",_p={column:"Stacked",row:"One row",tabs:"Tabs"},gf={Flex:wp,HeroGroup:["column","row"]},Dp={Flex:"row",HeroGroup:"column"},Mp={column:"flex-col",row:"flex-row",tabs:"flex-col"};function Ft(e,o){return gf[e].includes(o)?o:Dp[e]}function av(e,o){return Mp[Ft(e,o)]}function bf(e){return gf[e].map(o=>({label:_p[o],value:o}))}import{ScreenDocumentContext as Lt,ScreenDocumentProvider as lv,useScreenDocument as Cf}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as w,jsxs as He,Fragment as dm}from"react/jsx-runtime";import{useCallback as um,useContext as im,useEffect as pm,useId as wf,useRef as Rf,useState as kf}from"react";import{ThemeIcon as mm}from"efficient-easel/icons";import{SettingsField as xm}from"efficient-easel/panel";import{jsx as S,jsxs as Ee,Fragment as Yp}from"react/jsx-runtime";import{SettingsField as Va,SettingsGroupSub as Zp}from"efficient-easel/panel";import{Button as Ka}from"efficient-shell/ui";import{jsx as ve,jsxs as Ff}from"react/jsx-runtime";import{SettingsField as $p}from"efficient-easel/panel";import{AccentIcon as qp}from"efficient-easel/icons";import{Tooltip as zp}from"efficient-shell/ui";import{jsx as to,jsxs as Hp}from"react/jsx-runtime";import{ColorPicker as yf,HexInput as Gp}from"efficient-shell/ui";import{typedHex as qa}from"efficient-easel/pick";import{typedHex as Np}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?Np(f):null;!s||o.has(s)||(o.add(s),t.push({name:l,value:s}))}}),t}function me({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l,ariaLabel:f}){return to(Wp,{value:e,onChange:o,label:f??t,id:a,caption:r,inherited:n,after:l})}function Up(){let{theme:e}=pe();return Sf(e).map(o=>({value:o.value,label:o.name}))}function Wp({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l}){let f=Up(),s=e?null:qa(n??""),c=r!==void 0&&(!e||qa(r)!==qa(e))?r:null,i=u=>{u!==e&&o(u)};return Hp("div",{className:"sf-colour",children:[to(yf,{id:a,value:e,onChange:i,label:t,presets:f,fallback:s??void 0,size:"sm",align:"end"}),c!==null?to("span",{className:"sf-colour-caption",children:c}):to("span",{className:"sf-colour-hexwrap",children:to(Gp,{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 Iv({value:e,onChange:o,label:t}){return to(yf,{value:e,onChange:a=>{a&&a!==e&&o(a)},label:t,size:"sm",align:"end"})}function za(e){return he(e).background}function Kp(e){let o=ge(e.accent,za(e));return o===null?null:{ratio:o,grade:Ze(o)}}function Vp(e){let o=za(e),t=ge(e.accent,o);return t===null?[]:Jn(e.accent).filter(a=>{let r=ge(a,o);return r!==null&&r>t&&Ze(r)==="good"})}var Xp={good:"Easy to read","large-only":Ye["large-only"],hard:Ye.hard};function Lf({value:e,onChange:o}){let t=Kp(e),a=t?.grade,r=t&&t.grade!=="good"?Vp(e):[];return ve($p,{label:"Main color",icon:ve(qp,{}),hint:t?Xp[t.grade]:void 0,action:ve(me,{value:e.accent,onChange:n=>o({...e,accent:n}),label:"Main color"}),children:r.length>0?ve("div",{className:"w-full min-w-0",children:Ff("div",{className:"sf-readability",children:[ve("p",{className:"sf-readability-advice",children:jp(a,!0)}),ve("div",{className:"sf-readability-suggestions",children:r.map(n=>{let l=ge(n,za(e));return ve(zp,{content:`Use ${n.toUpperCase()}`,children:Ff("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[ve("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),l?`${l.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function jp(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 Qp,GroundIcon as Jp,LayoutIcon as em,SquareIcon as om,TextSmallIcon as tm,TypeIcon as Tf}from"efficient-easel/icons";var Ao=e=>`Theme ${e+1}`;function vf({colors:e}){let o=he(e),t=pa(e)??o.accent;return Ee("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[S("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:"label"}),Ee("span",{className:"sf-theme-headline",children:["Heading ",S("span",{style:{color:o.accent},children:"accent"})]}),S("span",{className:"sf-theme-body",children:"body text"}),Ee("span",{className:"sf-theme-row",children:[S("span",{className:"sf-theme-btn",style:{background:t,color:ma(e,o.accent)},children:"button"}),S("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:"card"})]})]})}var Xa={"Text color":S(Tf,{}),"Label color":S(tm,{}),Background:S(Jp,{}),"Panels & cards":S(em,{}),Borders:S(om,{}),"Button color":S(Qp,{}),"Button text color":S(Tf,{})};function am({label:e,colorKey:o,value:t,onChange:a,idPrefix:r="sf-theme-ink"}){let n=`${r}-${o}`;return S(Va,{label:e,icon:Xa[e],htmlFor:n,action:S(me,{id:n,label:e,value:t,onChange:l=>a(o,l)})})}function rm({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 S(Va,{label:"Button color",icon:Xa["Button color"],htmlFor:r,action:S(me,{id:r,label:"Button color",value:l,caption:n?l:"Main",onChange:t})})}function nm({colors:e,accent:o,onChange:t,idPrefix:a="sf-theme-ink"}){let r=`${a}-button-ink`,n=el(e),l=ma(e,o),f=pa(e)??o,s=Ze(ge(l,f)??0);return S(Va,{label:"Button text color",icon:Xa["Button text color"],hint:n&&s!=="good"?`${Ye[s]} on the button`:void 0,htmlFor:r,action:S(me,{id:r,label:"Button text color",value:l,caption:n?l:"Auto",onChange:t})})}var lm=[{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=he(e);return S(Yp,{children:lm.map(r=>"colour"in r?S(Lf,{value:e,onChange:o},"colour"):"group"in r?S(Zp,{title:r.group},r.group):"button"in r?S(rm,{value:e.button,accent:a.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in r?S(nm,{colors:e,accent:a.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):S(am,{label:r.label,colorKey:r.key,value:a[r.key],onChange:(n,l)=>o({...e,[n]:l}),idPrefix:t},r.key))})}function Ef({index:e,colors:o,selected:t,role:a="radio",open:r,editable:n=!0,onPick:l,onEdit:f,onChangeColors:s}){let c=he(o),i=Ao(e),u=e<ia.length&&!o.brandInk?ia[e]:null,p=Ze(ge(c.text,c.background)??0),m=u?JSON.stringify(o)!==JSON.stringify(u):!1,x=r!==void 0;return Ee("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[S("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:S(vf,{colors:o})}),Ee("div",{className:"sf-theme-foot",children:[S("span",{className:"sf-theme-name",children:i}),p!=="good"&&S("span",{className:"sf-theme-warn",children:Ye[p]}),n&&f&&S(Ka,{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&&Ee("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[S(ja,{colors:o,onChange:I=>s?.(I)}),u&&S(Ka,{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 Ee("div",{className:"sf-secttheme-btn",children:[S("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?S(vf,{colors:e}):S("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Ee("div",{className:"sf-theme-foot",children:[S("span",{id:t,className:"sf-theme-name",children:o}),c&&S(Ka,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":`Edit ${o}`,onClick:c,children:"Edit"}),S("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:f,children:S("span",{className:"sf-multi-caret",children:"\u25BE"})})]})]})}import{useCallback as Ya,useEffect as fm,useRef as Tt}from"react";function Of(e=ee()){return(o,t,a)=>{let r=De(e).theme;return r?r.update(o,a?{siteId:a}:void 0):Promise.reject(new Ia("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 sm(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=Tt(null),n=Tt({}),l=Qe(),f=Tt(a);f.current=a;let s=Tt(null),c=Ya(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=Ya(async()=>{r.current&&(clearTimeout(r.current),r.current=null);let p=n.current;n.current={};let m=await sm({themeFromDocument:e,token:o?.current,siteId:t,patch:p},Of(l));return c(m),m},[e,o,t,c,l]),u=Ya((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 fm(()=>()=>{i()},[i]),{persist:u,flush:i}}var Im="Follow the page",jv="Follow the slideshow",hm=e=>`Editing ${e} changes it everywhere.`;function gm({colors:e}){if(!e)return w("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=he(e);return He("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 bm({themes:e,value:o,onPick:t,onEdit:a,menuId:r,followLabel:n}){return He("div",{className:"sf-multi-menu sf-secttheme-menu",id:r,role:"listbox",children:[n!==void 0&&He(dm,{children:[He("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(-1),children:[w(gm,{}),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:`${Ao(o)} is on this section`}),e.map((l,f)=>f===o?null:w(Ef,{role:"option",index:f,colors:l,selected:!1,onPick:()=>t(f),onEdit:()=>a(f)},f))]})}function Cm({index:e,colors:o,onChange:t,onDone:a}){let r=Ao(e),n=wf();return He("div",{className:"sf-secttheme-sheet",children:[He("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:hm(r)})]})}function _f({value:e,onChange:o,followLabel:t,hint:a}){let{theme:r,setTheme:n}=pe(),l=Lo(r),f=im(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=$a(e),b=I!==null?x[I]:void 0,P=b??(x.length?Qn(m):void 0),[v,C]=kf(!1),[E,H]=kf(null),ue=Rf(null),Z=Rf(null),Q=wf(),F=um(()=>{C(!1),H(null)},[]);pm(()=>{if(!v&&E===null)return;let k=qe=>{ue.current&&!ue.current.contains(qe.target)&&(p(),F())};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[v,E,F,p]);let V=k=>{o(k),F()},tt=k=>{if(E===null)return;let qe=x.map((Ke,Ve)=>Ve===E?k:Ke),ze={...m,themes:qe};n(ze),u({selected_preset:ze.selected,theme_presets:ze.themes})};return He("div",{className:"sf-secttheme",ref:ue,children:[w(xm,{label:"Theme",icon:w(mm,{}),labelId:`${Q}-label`,hint:a,children:w(Bf,{colors:P,onEdit:I!==null?()=>{H(I),C(!1)}:void 0,name:b?Ao(I):t??Im,nameId:`${Q}-value`,labelId:`${Q}-label`,open:v,menuId:Q,buttonRef:Z,onClick:()=>{H(null),C(k=>!k)},onKeyDown:k=>{k.key==="Escape"&&(v||E!==null)&&(k.preventDefault(),F())}})}),v&&E===null&&w("div",{onKeyDown:k=>{k.key==="Escape"&&(k.preventDefault(),F(),Z.current?.focus())},children:w(bm,{themes:x,value:I,onPick:V,onEdit:k=>{H(k),C(!1)},menuId:Q,followLabel:t})}),E!==null&&x[E]&&w(Cm,{index:E,colors:x[E],onChange:tt,onDone:()=>{p(),F(),Z.current?.focus()}})]})}import{jsx as L,Fragment as fe,jsxs as se}from"react/jsx-runtime";import{TitleIcon as Sm,ButtonIcon as ym,DollarIcon as Fm,HashIcon as Lm,LinkIcon as Tm,NoteIcon as vm,TagIcon as Em,TextLinesIcon as Bm}from"efficient-easel/icons";var Df={body:Bm,button:ym,link:Tm,label:Em,number:Lm,price:Fm,note:vm,title:Sm},Mf={eyebrow:se(fe,{children:[L("path",{d:"M5 6.5h5"}),L("path",{d:"M5 12.5h14"}),L("path",{d:"M5 18h11"})]}),heading:se(fe,{children:[L("path",{d:"M6.5 5v14"}),L("path",{d:"M17.5 5v14"}),L("path",{d:"M6.5 12h11"})]}),intro:se(fe,{children:[L("path",{d:"M4 5.5v13"}),L("path",{d:"M8 7.5h12"}),L("path",{d:"M8 12h12"}),L("path",{d:"M8 16.5h8"})]}),value:se(fe,{children:[L("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),L("path",{d:"M6.5 12h7"})]}),name:se(fe,{children:[L("path",{d:"M6 3.5v17"}),L("path",{d:"M6 5h11.5l-2.6 3.6L17.5 12H6z"})]}),date:se(fe,{children:[L("rect",{x:"4",y:"5.5",width:"16",height:"15",rx:"2"}),L("path",{d:"M4 10.5h16"}),L("path",{d:"M9 3.2v4.4"}),L("path",{d:"M15 3.2v4.4"})]}),caption:se(fe,{children:[L("rect",{x:"3.5",y:"4.5",width:"17",height:"11",rx:"2"}),L("path",{d:"M3.5 12.8l4.2-3.2 3.6 2.8 3.4-2.4 5.8 4"}),L("path",{d:"M6.5 19.5h11"})]}),quote:se(fe,{children:[L("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),L("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:se(fe,{children:[L("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),L("path",{d:"M8 9.5h8"}),L("path",{d:"M12 9.5v5"})]}),meta:se(fe,{children:[L("path",{d:"M4 7h16"}),L("path",{d:"M4 14h3.5"}),L("path",{d:"M10.5 14h3"}),L("path",{d:"M17 14h3"})]})};function Za({noun:e,size:o=14,strokeWidth:t=1.8,className:a,style:r}){let n=Df[e];return n?L("span",{className:a,style:{display:"inline-flex",...r},"aria-hidden":"true",children:L(n,{size:o})}):L("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:Mf[e]})}var Jv=Object.keys(Df);var eE=Object.keys(Mf);var Om="#ffffff",Pm=/^#[0-9a-fA-F]{6}$/;function Qa(e){return Am(e)?e:Om}function Am(e){return typeof e=="string"&&Pm.test(e)}function tE(e){return{"--bg":Qa(e)}}import{jsx as Ro,jsxs as Rm}from"react/jsx-runtime";import{SettingsField as km}from"efficient-easel/panel";import{LinkIcon as wm}from"efficient-easel/icons";import{LinkPicker as _m}from"efficient-shell/ui";import{useEffect as Uf,useMemo as Ja,useRef as Dm,useState as vt}from"react";function Nf(){return ee().auth.token}var ao={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:Po(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:ao.choosePage};case"anchor":return{type:"groups",groups:n,placeholder:n.length?ao.chooseSection:ao.noSections};case"blog":return{type:"select",options:e.posts.map(i=>({value:uf(i.slug),label:i.title||i.slug})),placeholder:ao.choosePost};case"product":return{type:"select",options:e.products.map(i=>({value:i.href,label:i.name||i.href})),placeholder:ao.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:ao.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}};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},filtersFor:c=>o.listingPaths.includes(c)?o.filtersFor(c):null}}function Wf(e){let o=new Map;return(t="")=>{let a=Nf(),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 Mm=Wf(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:a}=De();return a.linkTargets?a.linkTargets(t):(await a.list(t)).map(r=>({id:r.id,slug:r.slug,label:r.label,layout:null}))}),Nm=Wf(async(e,o)=>await De().blog?.posts(o?{siteId:o}:void 0)??[]);function Hm({value:e,onChange:o,label:t="Link",data:a,filters:r}){let n=Ja(()=>Gf(a,r),[a,r]);return Ro(km,{label:t,icon:Ro(wm,{}),children:Ro(_m,{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]=vt([]),[i,u]=vt([]),[p,m]=vt([]),[x,I]=vt(null),b=Qe().chrome,P=b?.products?.list,v=b?.linkFilters,C=v?void 0:b?.linkRow,E=Dm(!0);Uf(()=>(E.current=!0,()=>{E.current=!1}),[]),Uf(()=>{let F=!0;return Mm(r??void 0).then(V=>F&&E.current&&c(V)),f&&Nm(r??void 0).then(V=>F&&E.current&&u(V)),l&&P?.().then(V=>F&&E.current&&m(V)),l&&v?v.load(r).catch(()=>null).then(V=>F&&E.current&&I(()=>V)):I(null),()=>{F=!1}},[r,l,f,P,v]);let H=Ja(()=>({pages:s.filter(F=>!ml(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]),ue=Ja(()=>x?x(H.pages):null,[x,H]),Z=H.pages.map(F=>Po(F.slug)),Q=l&&C&&(a==="/"||Z.includes(a))?C:void 0;return Rm("div",{children:[Ro(Hm,{value:a,onChange:o,label:t,data:H,filters:ue}),Q&&Ro(Q,{value:a,onChange:o,pages:s})]})}var Kf="sf.gapContainer",Be={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},Et={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},Gm=new Set(["Events","GalleryB"]);function or(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Be.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:Et[e]}var Um="sf-gap-overlap",Wm="--sf-gap-overlap",Xf="--sf-block-gap",$m="--sf-block-gap-rem",er={min:0,max:Be.max,step:Be.step};function qm(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),er.min),er.max);return o-o%er.step}function yE(e){let o=qm(e);return o===null?{}:{[Xf]:`${o}px`,[$m]:`${o/16}rem`}}var qf="sf-gap-zone",zf="--sf-gap-len";function tr(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Be.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 FE(e,o,t){if(!tr(e,o)){let r=`${Et[e]}px`,n=Gm.has(e)?`var(--sf-card-gap, ${r})`:r;return{className:` ${qf}`,style:{[zf]:`var(${Xf}, ${n})`}}}let a=or(e,o);return a>=0?{className:` ${qf}`,style:{[zf]:`${a}px`}}:{className:` ${Um} ${zm[t]}`,style:{gap:"0px",[Wm]:`${-a/2}px`}}}import{jsx as d,jsxs as Ae,Fragment as ke}from"react/jsx-runtime";import{cloneElement as _I,useId as DI,useRef as _r,useState as cc}from"react";import{useEasel as uo}from"efficient-easel/easel";import{hidableText as jf,readHidable as Oe}from"efficient-easel/screen/lib/puck/hidable";import{ANCHOR_FIELD_KEYS as BE,FOLD_FIELD_MARKER as ar,foldMetaOf as Ge,LINK_FIELD_MARKER as ko,MEDIA_FIELD_MARKER as Yf,SCAFFOLD_FIELD_MARKER as wo,TEXT_FIELD_MARKER as D,textFieldIdentifier as Km}from"efficient-easel/screen/lib/puck/field-markers";import{jsx as as}from"react/jsx-runtime";import{useCallback as Ym,useEffect as Zm,useRef as Qm,useState as Jm}from"react";import{useEasel as ex}from"efficient-easel/easel";import{SettingsAction as ox}from"efficient-easel/panel";function rr(e){return typeof e=="number"&&Number.isFinite(e)}function AE(e,o){if(!rr(e))return;let t=ft(Ce(e));if(Object.keys(t).length===0)return;let a=t[Bt];if(typeof a!="string")return t;let r=ro(o)?no(a,X(o)??[]):a;return{...t,[Vm]:r}}var Vm="--sf-section-radius",Bt="--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 ro(e){let o=X(e);return o!==null&&o.length<q.length}function no(e,o){return q.map(t=>o.includes(t)?e:"0").join(" ")}var Pe="Which corners",lo=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];function Ot(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 lo.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 Xm="--sf-card-box-radius",jm="--sf-site-card-radius",DE="sf-section-bleeds";function _o(e){return typeof e=="number"&&Number.isFinite(e)}function ME(e,o){if(!_o(e))return;let t=ft(Ce(e))[Bt];if(typeof t!="string")return;let a=ro(o)?no(t,X(o)??[]):t;return{[Xm]:a}}function NE(e){let o=e[Bt];return typeof o=="string"?{[jm]:o}:{}}function Zf(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 Qf(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?Tl(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}:_o(i?.props?.cardCorners)?{can:!0,others:p,zone:f.zone,index:f.index,data:{...f.item,props:{...f.item.props,[l]:Zf(s,u)}}}:{can:!1,reason:"unset",others:p}}function Jf(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 es(e){return`Applied to ${e} ${e===1?"card":"cards"}`}function os(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as ts}from"efficient-easel/screen/lib/puck/use-section-ops";var tx=2200,ax="apply-corners-to-siblings",rx="Apply to all cards";function nx({plan:e,doneCount:o,onPress:t}){return as(ox,{id:ax,label:rx,note:Jf(e),disabled:!e.can,done:o!==null,doneLabel:es(o??0),onPress:t})}function rs(){let{appState:e,config:o}=ex(s=>s),t=ts(),[a,r]=Jm(null),n=Qm(null);Zm(()=>()=>{n.current&&clearTimeout(n.current)},[]);let l=Qf(o,e.data.content??[],e.ui.itemSelector),f=Ym(()=>{os(l,t.replaceComponent),l.can&&(r(l.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>r(null),tx))},[l,t]);return as(nx,{plan:l,doneCount:a,onPress:f})}var ns=1;function lx(e){return Ce(e)}function JE(e){let o=lx(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var ls=1,fs="Corners";function fx(e){return Ce(e)}function aB(e,o){let t=fx(e);if(t===null)return null;let a=`${t}px`;return{borderRadius:ro(o)?no(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]]}},nr=Object.keys(ce),cs=[2,3,4,6];function ds(e){return typeof e!="string"||e===""?null:ce[e]??null}function ss(e,o){return o?6/e.acrossPhone:12/e.across}var sx="sf-wall--";function cx(e){return`${sx}${e}`}function nB(e){let o=ce[e],t=`.${cx(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,ss(o,!1))),a.push("@media (max-width:800px){"),a.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),a.push(...r(o.phone,ss(o,!0))),a.push("}"),a.join("")}var Pt=12,us=1,dx=3;var ux=3;function lr(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 ix(e){return lr(e,1,Pt)??ux}function sB(e,o){return lr(e,us,dx)??(ix(o)===4?2:us)}function cB(e){return e==null||e===""?null:lr(e,1,Pt)}var dB="data-sf-span";function uB(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(ds(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as px}from"react/jsx-runtime";var mx="sf-hint-keep";function is({children:e}){return px("span",{className:mx,children:e})}import{AlignLeftIcon as MI,AlignSeparateIcon as NI,AnimationIcon as dc,BackgroundIcon as HI,BlockSectionIcon as GI,CartIcon as UI,ColumnWidthsIcon as uc,ColumnsIcon as WI,CornerIcon as ic,DirectionDownIcon as $I,DirectionLeftIcon as qI,DirectionRightIcon as zI,DirectionUpIcon as KI,DollarIcon as VI,FinishIcon as XI,GapIcon as pc,GridIcon as jI,GroundIcon as YI,HashIcon as mc,ImageIcon as ZI,LayoutIcon as QI,ListIcon as JI,LocationIcon as kr,PaddingBottomIcon as eh,PaddingLeftIcon as oh,PaddingRightIcon as th,PaddingTopIcon as ah,PageIcon as xc,PhoneIcon as rh,PlacementIcon as nh,ProductSizeIcon as lh,RotateIcon as fh,SquareIcon as sh,StylesIcon as ch,TextLinesIcon as dh,TypeIcon as uh,WidthIcon as ih,WrapIcon as ph}from"efficient-easel/icons";var xx=["fade","rise","scale"],fr="none",ps=[{label:"None",value:fr},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function IB(e){return xx.includes(e)?e:null}var ms="data-sf-anim",Do="data-sf-anim-state";function hB(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(ms))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(Do,"armed");let a=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){a.disconnect(),Ix(e);break}},{threshold:0});return a.observe(e),()=>{a.disconnect(),e.removeAttribute(Do)}}function Ix(e){if(!e.getAttribute(ms))return;e.removeAttribute(Do),e.offsetWidth,e.setAttribute(Do,"play");let o=t=>{t.target===e&&(e.removeAttribute(Do),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var gB=If;function cr(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let a of t){if(!a||typeof a!="object")continue;let r=a.props;if(r?.id===o)return null;if(sr(a,o,0))return r??{}}return null}function sr(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(r=>sr(r,o,t+1));let a=e.props;return a&&typeof a=="object"&&a.id===o?!0:Object.values(e).some(r=>sr(r,o,t+1))}import{SettingsCorners as Ic,SettingsDefaultReset as Y,SettingsField as R,SettingsGroupHead as mh,SettingsGroupSub as xh,SettingsPlacement as Ih,SettingsSegmented as hh,SettingsSwitch as gh}from"efficient-easel/panel";import{FieldSelect as bh,ListField as Ch}from"efficient-easel/fields";import{Checkbox as XP,DateTimePicker as Sh,FOCAL_DEFAULT as yh,Slider as Fh,Tooltip as Gt}from"efficient-shell/ui";import{jsx as U,Fragment as dr,jsxs as ur}from"react/jsx-runtime";import{useEffect as hx,useState as gx}from"react";import{MarkBar as bx,markSelection as Cx,useCaretEdit as Sx}from"efficient-easel/copy";import{RevertIcon as yx}from"efficient-easel/icons";import{IconButton as Fx,Tooltip as Lx}from"efficient-shell/ui";function Tx({style:e}){let o=t=>U("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.9,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t});switch(e){case"bold":return o(U("path",{d:"M7 5h6.5a3.5 3.5 0 0 1 0 7H7zm0 7h7.5a3.5 3.5 0 0 1 0 7H7z"}));case"italic":return o(ur(dr,{children:[U("line",{x1:"10",y1:"5",x2:"19",y2:"5"}),U("line",{x1:"5",y1:"19",x2:"14",y2:"19"}),U("line",{x1:"14",y1:"5",x2:"10",y2:"19"})]}));case"strike":return o(ur(dr,{children:[U("path",{d:"M16.5 6.5A4.2 4.2 0 0 0 12.7 4.7C10 4.7 8.4 6 8.4 7.9c0 1.6 1.2 2.5 3.4 3.1"}),U("path",{d:"M7.6 17.4A4.4 4.4 0 0 0 11.7 19.3c2.8 0 4.5-1.4 4.5-3.4 0-1-.4-1.8-1.2-2.4"}),U("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]}));case"highlight":return o(ur(dr,{children:[U("path",{d:"M14.5 4.5l5 5-8 8H6.5v-5z"}),U("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]}));default:return null}}var vx=["bold","italic","strike","highlight"],Ex=Object.fromEntries(vx.map(e=>[e,U(Tx,{style:e},e)])),xs="Clear formatting";function Bx(e,o,t){return Cx(e,o,t,ef)}function Ox(e){let[o,t]=gx(null);return hx(()=>{let a=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!a)return;let r=()=>{let n=e.current;if(!n||a.activeElement!==n)return;let l=n.selectionStart??n.value.length,f=n.selectionEnd??l;t(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 Px({target:e,value:o,onChange:t,disabled:a=!1,label:r="Formatting"}){let n=Sx({target:e,onChange:t}),[l,f]=Ox(e),s=p=>n(m=>{let x=Bx(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=Bo(o);return U(bx,{tools:c,onApply:s,pressed:i,disabled:a,glyphs:Ex,ariaLabel:r,actions:U("span",{className:"sf-markup-clear",children:U(Lx,{content:xs,children:U(Fx,{size:"sm",onMouseDown:p=>p.preventDefault(),onClick:()=>t(u),disabled:a||u===o,"aria-label":xs,children:U(yx,{size:14})})})})})}var ir=Px;import{DEVICE_FIELD_MARKER as OB,DEVICE_HIDDEN_ATTR as PB,DEVICE_NOTE as AB,deviceField as ae,deviceMetaOf as Is,deviceNote as RB,shownTier as kB,withoutDeviceGate as wB}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as MB,NO_CONTROL_FIELD as NB,noControlField as hs,NoControlMark as gs,noControlMetaOf as HB}from"efficient-easel/screen/lib/puck/panel-no-control-mark";function Mo(e){return`${e}Phone`}function At(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}import{jsx as pr,Fragment as wx}from"react/jsx-runtime";import{createContext as _x,useContext as Dx}from"react";var bs={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Cs={Events:["posts"],SubscribeBlogs:["posts"]};var Ax=["anchor"],Rx=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function No(e){return Ax.includes(e)||Rx.test(e)}var kx={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"}}};kx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var qB=Object.fromEntries(Object.entries(bs).map(([e,o])=>[e,Object.keys(o)])),zB=Object.fromEntries(Object.entries(Cs).map(([e,o])=>[e,[...o]]));var Ss=_x(!1);function ZB({children:e}){return pr(Ss.Provider,{value:!0,children:e})}function Mx(){return Dx(Ss)}function ys({name:e,children:o}){return!Mx()||!e||No(e)?pr(wx,{children:o}):pr(gs,{})}function z(e,o,t){return e.some(a=>(typeof a=="object"?a.value:a)===t)?t:o}var mr="off",xr="none",Ir=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],hr=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function oO(e){return z(Ir,mr,e)}function tO(e){return z(hr,xr,e)}var Fs="sf-card-index",Ho="sf-card-index",aO="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",Nx={plain:`counter(${Ho})`,padded:`counter(${Ho}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Ho}, decimal-leading-zero)`};function rO(e,o){return o==="off"?"":`.${e}{counter-reset:${Ho}}.${e} .${Fs}{counter-increment:${Ho}}.${e} .${Fs}::before{content:${Nx[o]}}`}function nO(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 Ue,TEXT_CONTROL_KINDS as Hx}from"efficient-easel/screen/lib/puck/text-control-kinds";import{jsx as gr}from"react/jsx-runtime";import{useState as $x}from"react";import{Button as qx,ImageFocusPoint as zx}from"efficient-shell/ui";import{jsx as j,jsxs as Ts}from"react/jsx-runtime";import{ChevronIcon as Gx}from"efficient-easel/icons";import{Tooltip as Ux}from"efficient-shell/ui";function vs({styleKey:e,label:o,icon:t,value:a,sampleStyle:r,open:n,onToggle:l,saved:f=!1,children:s}){return Ts("div",{"data-sf-style-row":e,className:`sf-style-row${n?" is-open":""}`,children:[Ts("button",{type:"button",className:"sf-style-head","aria-expanded":n,onClick:l,children:[j("span",{className:"sf-style-caret","aria-hidden":"true",children:j(Gx,{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(Ux,{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(Wx,{})})]}),n&&j("div",{className:"sf-style-body",children:s})]})}function Wx(){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 Es({label:e,value:o,onChange:t,image:a}){let[r,n]=$x(!1);return gr(vs,{styleKey:"imageFocal",label:e,value:o,sampleStyle:{fontSize:11,fontVariantNumeric:"tabular-nums"},open:r,onToggle:()=>n(l=>!l),children:r?gr(zx,{label:e,value:o,onChange:t,image:a,emptyText:"Choose a background image first \u2014 there\u2019s nothing to focus yet.",actions:gr(qx,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:"Done"})}):null})}import{jsxs as Bs,jsx as re}from"react/jsx-runtime";import{SettingsField as Os}from"efficient-easel/panel";import{ImageIcon as Ps,PlayIcon as As}from"efficient-easel/icons";import{ImageBox as Kx}from"efficient-easel/pick";import{useContext as Vx,useState as Rs}from"react";import{FileIntakeAlert as Xx,useFileIntake as jx}from"efficient-shell/file-intake";import{requestMediaPick as br,resolveMediaPick as CO}from"efficient-easel/screen/lib/media-picker";function ks({value:e,onChange:o,label:t,accept:a,placeholder:r}){let n=ll(),l=Qe(),[f,s]=Rs(!1),[c,i]=Rs(null),u=a.startsWith("video"),p=Vx(Lt),m=jx({accept:a,maxSizeBytes:De(l).media.maxUploadBytes,acceptHint:u?"videos only":"images only",multiple:!1,disabled:f,onAccept:([I])=>{i(null),s(!0),br(n,{accept:a,title:t,file:I}).then(b=>{b&&o(b.url)}).catch(()=>i("Couldn\u2019t open the media picker \u2014 please try again.")).finally(()=>s(!1))}}),x=()=>(m.clearRejections(),i(null),br(n,{accept:a,title:t}).then(I=>I?.url??null));return p&&!p.capabilities.mediaEditing?re(Os,{label:t,icon:u?re(As,{}):re(Ps,{}),children:Bs("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."]})}):Bs("div",{children:[re(Os,{label:t,icon:u?re(As,{}):re(Ps,{}),children:re("div",{className:`sf-image-drop${m.dragOver?" is-dragover":""}`,...m.zoneProps,children:re(Kx,{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(Xx,{rejections:m.rejections,className:"sf-image-status sf-image-status--error"})]})}import{jsx as ws}from"react/jsx-runtime";import{useId as Yx}from"react";import{FieldSelect as Zx}from"efficient-easel/fields";import{SettingsField as Qx}from"efficient-easel/panel";function Jx(e){return e.map(({value:o,label:t,note:a})=>({value:o,label:t,...a?{meta:a}:{}}))}function _s({label:e,options:o,value:t,onChange:a,emptyLabel:r="None",icon:n,hint:l}){let f=Yx(),s=`${f}-label`,c=`${f}-button`,i=Array.isArray(t)?t:[];return ws(Qx,{label:e,labelId:s,icon:n,hint:l,children:ws(Zx,{id:c,multiple:!0,value:i,options:Jx(o),onChange:a,placeholder:r,ariaLabelledBy:`${s} ${c}`,inline:!0})})}import{jsx as Ds}from"react/jsx-runtime";import{useId as eI}from"react";import{FieldSelect as oI}from"efficient-easel/fields";import{SettingsField as tI}from"efficient-easel/panel";function aI(e){return e.map(({value:o,label:t,group:a,thumb:r,meta:n})=>({value:o,label:t,...a!==void 0?{group:a}:{},...r!==void 0?{thumb:r}:{},...n!==void 0?{meta:n}:{}}))}function rI({label:e,options:o,fallback:t,value:a,onChange:r,placeholder:n,bare:l=!1,icon:f}){let s=eI(),c=`${s}-label`,i=`${s}-button`,u=a??"",p=o.some(x=>x.value===u)?u:t,m=Ds(oI,{id:i,value:p,options:aI(o),onChange:r,placeholder:n,searchPlaceholder:n,...l?{ariaLabel:e}:{ariaLabelledBy:`${c} ${i}`},searchable:!0,groupCount:!0,inline:!0});return l?m:Ds(tI,{label:e,labelId:c,icon:f,children:m})}import{default as Go}from"efficient-easel/screen/components/UiIcon";var ne={min:10,max:200,step:10};function Ms(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 nI="sf-pad-top-phone",lI="sf-pad-bottom-phone",fI="--sf-pad-t-phone",sI="--sf-pad-b-phone",cI="sf-pad-left-phone",dI="sf-pad-right-phone",uI="--sf-pad-l-phone",iI="--sf-pad-r-phone";function KO(e,o,t,a,r,n,l,f){let s=Ms(e,o)??{},c={},i=["sf-section-pad"];typeof t=="number"&&(i.push(nI),c[fI]=`${t}px`),typeof a=="number"&&(i.push(lI),c[sI]=`${a}px`);let u={};return typeof r=="number"&&(u.paddingLeft=r),typeof n=="number"&&(u.paddingRight=n),typeof l=="number"&&(i.push(cI),c[uI]=`${l}px`),typeof f=="number"&&(i.push(dI),c[iI]=`${f}px`),i.length===1&&Ms(e,o)===void 0&&!Object.keys(u).length?null:{className:i.join(" "),style:{...s,...u,...c}}}var Ns=e=>typeof e=="number"?e:void 0;function Hs(e,o,t){let a=Ns(e)??t,r=Ns(o);return a===void 0?r:r===void 0?a:a+r}function VO(e,o={}){return{top:Hs(e.padTop,e.sectionPaddingTop,o.top),bottom:Hs(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var pI=["auto","fixed","screen"],mI=["px","%"];var xI="var(--sf-header-h, 88px)",Cr={min:40,max:2e3,step:10,fallback:600},Sr={min:10,max:200,step:5,fallback:100},II="sf-section-minh",Gs={base:"--sf-section-minh",small:"--sf-section-minh-s"},Ws=e=>typeof e=="string"&&pI.includes(e),hI=e=>typeof e=="string"&&mI.includes(e);function Rt(e){let o=Ws(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":hI(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=o==="screen"?Sr.fallback:Cr.fallback,r=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:o,value:r,unit:t}}function $s(e){let{mode:o,value:t,unit:a}=Rt(e);if(o==="auto")return;if(o==="fixed"&&a==="px")return[`${t}px`,null];let r=t/100,n=l=>o==="screen"?`(100${l} - ${xI})`:`100${l}`;return[`calc(${n("vh")} * ${r})`,`calc(${n("svh")} * ${r})`]}function gI(e){let o=$s(e);if(!o)return;let[t,a]=o;return{display:"grid",[Gs.base]:t,...a?{[Gs.small]:a}:{}}}var jO=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),fo="Height",bI="sf-section-minh-phone",Us={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function yr(e){return Ws(e.sectionHeightModePhone)}function YO(e){return Rt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function CI(e){let o=gI(e),t=yr(e)?$s({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let a=[II],r={...o??{}};return t&&(a.push(bI),r[Us.base]=t[0],t[1]&&(r[Us.small]=t[1])),{className:a.join(" "),style:r}}function ZO(e){return CI(e)!==null}import{VIEW_DESKTOP_MIN as eP,VIEW_TABLET_MIN as oP,VIEW_TIER_LABEL as kt,VIEW_TIERS as tP,viewTierForWidth as aP}from"efficient-easel/screen/lib/content/view-tiers";var Fr=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],Ks=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Stretch",value:"stretch"}],Vs="Wrap",Lr=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],qs={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},zs={start:"items-start",center:"items-center",stretch:"items-stretch"};function nP(e,o){let t=typeof e=="string"&&e in qs?qs[e]:"",a=typeof o=="string"&&o in zs?zs[o]:"";return[t,a].filter(Boolean).join(" ")}function lP(e){return e===!0||e==="wrap"?"flex-wrap":""}var Tr="Block widths",wt=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]}],Uo="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",SI={equal:Uo,bigLeft:`${Uo} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${Uo} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${Uo} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${Uo} [&>*:last-child]:min-[800px]:grow-[3]`};function fP(e){return typeof e=="string"?SI[e]??"":""}var Xs="Columns on phone",vr=1,js=3,yI={2:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]",3:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]"};function sP(e){let o=Number(e);return yI[o]??"max-[800px]:flex-col"}var Ys="Block spacing",Er=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],FI="sf-box-gap-only";function cP(e){return e==="gap"?FI:""}var Zs=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],Qs={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},_t="var(--section-bg)",Dt="inherit";function uP(e,o){return e===Dt?_t:e===void 0?o:Mt(e)}var LI=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Mt(e){return e.replace(LI,"var(--site-$1")}function Js(e,o){return e===Dt?!0:e===void 0&&o===_t}var ec=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],oc={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},so="var(--wheel-stage)",Nt="transparent",Wo="inherit";function mP(e,o){return Mt(Br(e,o))}function Br(e,o){return e===Wo?so:e==null?o:e===!0?so:e===!1?Nt:e}function xP(e){return typeof e=="string"&&e!==Wo?Mt(e):so}function IP(e){return e!==Nt&&e!=="none"&&e!==""}function tc(e,o){return e===Wo||e===!0?!0:e==null?o===so:!1}var ac="inherit",Ht="fixed",rc=e=>typeof e!="number"&&e!==Ht,TI="var(--sf-heading-max, 9999px)";function gP(e,o,t,a){if(typeof e=="number")return`${e}px`;if(e===Ht)return o;let r=a?`var(--size-${a}, ${o})`:o;return t==="heading"?`min(${r}, ${TI})`:r}var vI=["contained","page","full"],nc=["full","page"],lc={full:"Full width",page:"Content width"},Or="inherit",EI=e=>typeof e=="string"&&vI.includes(e),BI=e=>e===Or;function Pr(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:te.default;return BI(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:EI(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 Ar(e){return Pr(e,"page").mode==="full"}import{jsx as OI}from"react/jsx-runtime";import{createContext as PI,useContext as AI}from"react";var RI=2,kI=RI+1,fc=PI(2);function LP({tier:e,children:o}){return OI(fc.Provider,{value:e,children:o})}function Rr(e){let o=AI(fc);return kI+Math.max(0,e-o)}import{withStyleKind as Lh}from"efficient-easel/style-clipboard";function $o(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!Ge(t)&&Lh(t,`section:${o}`);return e}function hc(){return null}function Th(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return d(hc,{},e)}function vh(e){return e.type===hc}function Ut(e){return vh(e)?void 0:e}function Wt(e,o){return`${e} from ${o}`}function Eh(){let{appState:e}=uo(r=>r),o=e.data.root?.props??{},{mode:t,pageWidth:a}=Pr(o,"full");return Wt(t==="page"?`${a}px`:t==="contained"?"Contained":"Full","the page")}function Bh(){let{blockGap:e}=pe();return e===null?"this container's own spacing":Wt(`${e}px`,"Site styles")}function Oh({inherited:e,onReset:o,label:t}){return d(Y,{label:t,changed:!e,detail:Bh(),onReset:o})}function Ph({inherited:e,onReset:o,label:t}){return d(Y,{label:t,changed:!e,detail:Eh(),onReset:o})}function io({value:e,onChange:o,label:t,placeholder:a,hint:r,multiline:n,hideable:l=!0,markup:f=!0}){let{text:s,hidden:c}=Oe(e),i=_r(null),u=_r(null),p=P=>o(l?{text:P,hidden:c}:P),m=()=>o({text:s,hidden:!c}),x=l&&c,I=DI(),b=r?_h(r)?d("span",{className:"sf-hint-keep sf-hint-while-typing",children:r}):d(is,{children:r}):void 0;return d(R,{label:t,icon:d(uh,{}),htmlFor:I,className:x?"is-hidden":void 0,hint:b,action:l?d(Gt,{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(Go,{name:"eye-off",size:14}):d(Go,{name:"eye",size:14})})}):void 0,children:Ae("div",{className:"sf-copybox",children:[f&&d(ir,{target:n?u:i,value:s,onChange:p}),n?d("textarea",{id:I,ref:u,value:s,placeholder:a,onChange:P=>p(P.target.value)}):d("input",{id:I,ref:i,type:"text",value:s,placeholder:a,onChange:P=>p(P.target.value)})]})})}function vA(e,o){return{...e,[wo]:o}}function EA(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 OA(e){let o=e[D];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[D]:{...o,identifier:!0}}}var Ah=new Set(Ue),po=(e,o)=>{let t={...o,[D]:e};if(!Ah.has(e.control))return t;let a=o.render;return{...hs(t,"authored-copy"),render:r=>d(ys,{name:r.name,children:a(r)})}},AA="Everything else on this block comes from the linked post. Unlink it to edit by hand.",Rh="Select a word, then press the highlighter.",kh="A short name so a link can jump straight to this section, like yoursite.com/page#about.",wh=new Set([Rh]),_h=e=>wh.has(e);function RA(e,o,t){return po({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(io,{value:a,onChange:r,label:e,placeholder:o,hint:t})})}function kA(e,o,t){return po({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(io,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0})})}function Dh(e,o,t){return po({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(io,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function wA(e,o,t){return po({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(io,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1})})}function _A(e){return{type:"custom",[ko]:{label:e},render:({value:o,onChange:t})=>d($f,{value:jf(o),onChange:t,label:e})}}function DA(e,o,t){return po({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(io,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var MA={Content:dh,Style:ch,Layout:QI,Animation:dc};function NA(e,o){return e.includes("Content")?o!=="Content":null}function Mh({label:e}){return d(mh,{title:e,level:Rr(1)})}function Nh({level:e,label:o}){return e===1?d(Mh,{label:o}):d(Gh,{label:o})}function gc(e,o){return{type:"custom",[ar]:{label:e,level:o},render:()=>d(Nh,{level:o,label:e})}}function K(e){return gc(e,2)}function HA(e){return{type:"custom",render:()=>d(Hh,{text:e})}}function Hh({text:e}){return d("p",{className:"sf-note",children:e})}function GA(e){return gc(e,1)}function UA(e){return Ge(e)!==null&&e?.tabs!==void 0}var sc=new Map;function $t(e,o){let t=`${e}\0${o?o.join(""):""}`,a=sc.get(t)??{type:"custom",tabs:o,[ar]:{label:e,level:1},bucket:e,marker:!0,render:()=>d(ke,{})};return sc.set(t,a),a}function Gh({label:e}){return d(xh,{title:e,level:Rr(2)})}function bc({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 Ae("div",{className:"sf-swatches",children:[e.map(l=>{let f=a?.[l]??l;return d(Gt,{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 WA(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=Js(t,o);return d(R,{label:e,icon:d(HI,{}),changed:!r,action:d(Y,{label:e,changed:!r,detail:"the theme's section background",onReset:()=>a(Dt)}),children:bc({swatches:Zs,current:r?_t:t??o??"",onPick:a,names:Qs})})}}}function Uh(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=t,n=tc(r,o);return d(R,{label:e,icon:d(YI,{}),changed:!n,action:d(Y,{label:e,changed:!n,detail:"the theme's image stage",onReset:()=>a(Wo)}),children:bc({swatches:ec,current:n?so:Br(r,o),onPick:a,names:oc})})}}}function Cc(e=t=>t,o){return $o({_gSectionTheme:K(xf),sectionAccent:{type:"custom",render:({value:t,onChange:a})=>d(_f,{value:e(t),onChange:a,followLabel:o})}})}function $e({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(Fh,{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 co(e,o,t,a,r,n,l="",f){return{type:"custom",render:s=>d(R,{label:e,icon:Ut(o),action:f?f("storedValue"in s?s.storedValue:s.value,s.onChange):void 0,children:$e({min:t,max:a,step:r,value:typeof s.value=="number"?s.value:n,suffix:l,ariaLabel:e,onChange:s.onChange})})}}function Sc({min:e,max:o,step:t,px:a,label:r,onChange:n,disabled:l=!1}){let{cornerRadiusPx:f}=pe();return d(ke,{children:$e({min:e,max:o,step:t,value:a??(typeof f=="number"?f:e),readout:!1,ariaLabel:r,disabled:l,onChange:n})})}function qo(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?_I(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(Sc,{min:t,max:a,step:r,px:p,label:e,onChange:u}):$e({min:t,max:a,step:r,value:p??t,readout:!1,ariaLabel:e,onChange:u})})}}}function $A(e){let o=co("Gap",d(pc,{}),Be.min,Be.max,Be.step,Et[e],"px",(t,a)=>d(Oh,{inherited:!tr(e,t),onReset:()=>a(void 0),label:"Gap"}));return{type:"custom",[Kf]:e,render:t=>o.render({...t,value:or(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:a=>t.onChange(a)})}}function Wh(){return{type:"custom",render:({value:e,onChange:o})=>{let t=X(e)??[...q],a=t.length===q.length;return d(R,{label:Pe,icon:d(ic,{}),value:Ot(t),changed:!a,action:d(Y,{label:Pe,changed:!a,onReset:()=>o(null)}),hint:"Corners left off stay square. The row above sets how round the others are.",children:d(Vh,{value:t,onChange:r=>{let n=X(r)??[];o(n.length===q.length?null:n)}})})}}}function $h({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:a}=pe(),r=typeof a=="number"?`${a}px`:"not set";return d(Y,{label:e,changed:o,detail:a==null?"the built-in corners":Wt(r,"Site styles"),onReset:t})}function qh(){return qo("Corners",{min:be,max:we,unsetLabel:"Follows the site",unsetMark:d($h,{label:"Corners"}),restTrack:e=>d(zh,{...e}),hint:d(Kh,{})})}var yc="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Dr(){return Ar(qt())}function zh(e){return d(Sc,{...e,disabled:Dr()})}function Kh(){return d(ke,{children:Dr()?yc:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function Vh({value:e,onChange:o}){let t=Dr();return d(Ic,{label:Pe,value:e,corners:t?lo.map(a=>({...a,disabled:!0,title:yc})):lo,onChange:o})}function Fc(){return $o({_gShape:K("Shape"),sectionCorners:qh(),sectionCornerSides:Wh()})}function Lc(){return{_gMotion:K("Motion"),sectionAnimation:Hr("Entrance",d(dc,{}),[...ps],fr)}}function Mr(){let e=null;try{let{appState:o,selectedItem:t}=uo(r=>r),a=t?.props?.id?String(t.props.id):void 0;e=a?cr(o?.data,a):null}catch{e=null}return e!==null&&Ar(e)}function Tc(e){let{cornerRadiusPx:o}=pe(),t=Mr(),a=typeof o=="number"?o:e,r=null;try{let{appState:l,selectedItem:f}=uo(c=>c),s=f?.props?.id?String(f.props.id):void 0;r=s?cr(l?.data,s):null}catch{r=null}if(t||!r)return a;let n=r.sectionCorners;return rr(n)?n:a}function Xh({min:e,max:o,step:t,px:a,label:r,onChange:n}){let l=Tc(e);return d(ke,{children:$e({min:e,max:o,step:t,value:a??l,readout:!1,ariaLabel:r,onChange:n})})}function jh({label:e,changed:o=!1,onReset:t=()=>{}}){let a=Mr(),r=Tc(be),n=a?"Site":"Section";return d(Y,{label:e,changed:o,detail:Wt(`${r}px`,a?"Site styles":"the section"),onReset:t})}function Yh(){return d(ke,{children:Mr()?"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 Zh(){return qo("Corners",{min:be,max:we,unsetLabel:"Follows the section",unsetMark:d(jh,{label:"Corners"}),restTrack:e=>d(Xh,{...e}),hint:d(Yh,{})})}function Qh({value:e,onChange:o}){return d(Ic,{label:Pe,value:e,corners:lo,onChange:o})}function Jh({unset:e}){return d(ke,{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 eg(){return{type:"custom",render:({value:e,onChange:o})=>{let t=X(e)??[...q],a=t.length===q.length;return d(R,{label:Pe,icon:d(ic,{}),value:Ot(t),changed:!a,action:d(Y,{label:Pe,changed:!a,onReset:()=>o(null)}),hint:d(Jh,{unset:!_o(e)}),children:d(Qh,{value:t,onChange:r=>{let n=X(r)??[];o(n.length===q.length?null:n)}})})}}}function og(){return{type:"custom",render:()=>d(rs,{})}}function qA(){return{_gShape:K("Shape"),cardCorners:Zh(),cardCornerSides:eg(),cardCornersApplyAll:og()}}function zA(){return Re("Justify",d(NI,{}),Fr,Fr[0].value)}function KA(){return Re("Item alignment",d(MI,{}),Ks,"stretch")}function VA(){return Re(Vs,d(ph,{}),Lr,Lr[0].value)}function XA(){return{type:"custom",render:({value:e,onChange:o})=>{let t=wt.find(a=>a.value===e)??wt[0];return d(R,{label:Tr,icon:d(uc,{}),value:t.label,children:d("div",{className:"sf-gallery-layouts",role:"group","aria-label":Tr,children:wt.map(a=>d(Gt,{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:tg(a.weights).map((r,n)=>d("i",{style:{gridColumn:`span ${r}`}},n))})})},a.value))})})}}}function tg(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 jA(){return Re(Ys,d(pc,{}),Er,Er[0].value)}function YA(){return co(Xs,d(rh,{}),vr,js,1,vr)}function ZA(e){let o=Hr(hf,Th("`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),Ft(e,void 0));return{type:"custom",render:t=>o.render({...t,value:Ft(e,t.value),onChange:a=>t.onChange(a)})}}function QA(e,o,t,a,r,n){return{type:"custom",render:({value:l,onChange:f})=>d(R,{label:e,icon:d(Za,{noun:n}),action:d(Y,{label:e,changed:!rc(l),detail:"the Text style in Site styles",onReset:()=>f(ac),defaultAction:{onPress:()=>f(Ht),title:"Keep this section's own built-in size",icon:d(GI,{})}}),children:$e({min:o,max:t,step:a,value:typeof l=="number"?l:r,suffix:"px",ariaLabel:e,onChange:f})})}}function JA(){return{_gCellWidth:K("Cell width"),gridSpan:Re("Positions",d(uc,{}),[{label:"Auto",value:""},...Array.from({length:Pt},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function qt(){let e=null;try{e=uo(o=>o).selectedItem}catch{e=null}return e?.props??{}}function ag({min:e,max:o,step:t,px:a,label:r,onChange:n,desktopKey:l,fallback:f}){let s=qt()[l],c=At(void 0,s,f);return d(ke,{children:$e({min:e,max:o,step:t,value:At(a,s,f),readout:!1,ariaLabel:r,notch:c,onChange:n})})}function rg({label:e,desktopKey:o,fallback:t,changed:a=!1,onReset:r=()=>{}}){let n=qt()[o],l=At(void 0,n,t);return d(Y,{label:e,changed:a,detail:`${l}px on ${kt.desktop.toLowerCase()}`,onReset:r})}function ng(e){return qo(e.label,{min:e.min,max:e.max,step:e.step,unsetLabel:`Follows ${kt.desktop}`,unsetMark:d(rg,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>d(ag,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}function vc(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",a=e.group!==!1,r=b=>a?b:`Padding ${b.toLowerCase()}`,n=b=>co(r("Top"),d(ah,{}),ne.min,ne.max,ne.step,b,"px"),l=(b,P,v,C=ne)=>ae("mobile",ng({label:r(b),desktopKey:P,min:C.min,max:C.max,step:C.step,fallback:v})),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=b=>x?ae("desktop",b):b;return $o({...a?{_gSpacing:K("Padding")}:{},[o]:I(n(f)),...x?{[Mo(o)]:l("Top",o,f)}:{},...e.only==="top"?{}:{[t]:I(co(r("Bottom"),d(eh,{}),ne.min,ne.max,ne.step,s,"px")),...x?{[Mo(t)]:l("Bottom",t,s)}:{}},...e.sides?{[c]:I(co(r("Left"),d(oh,{}),u.min,u.max,u.step,p,"px")),...x?{[Mo(c)]:l("Left",c,m,u)}:{},[i]:I(co(r("Right"),d(th,{}),u.min,u.max,u.step,p,"px")),...x?{[Mo(i)]:l("Right",i,m,u)}:{}}:{}})}var lg={contained:"Contained",page:"Page",full:"Full"},wr="Width";function Ec(e,o=nc,t=!0){let a=o.map(r=>({label:lc[r]??lg[r],value:r}));return $o({...t?{_gWidth:K(wr)}:{},widthMode:{type:"custom",render:({onChange:r,field:n})=>d(R,{label:"Width",icon:d(ih,{}),action:t?d(Ph,{inherited:n?.inherited??!1,onReset:()=>r(Or),label:wr}):void 0,children:Nr({options:a,value:n?.currentValue||e,onChange:r,ariaLabel:wr})})}})}function Bc(){let e=a=>({type:"custom",render:({value:r,onChange:n})=>Ae("div",{className:"sf-field",children:[a?Ae("div",{className:"sf-field-head",children:[d("span",{className:"sf-field-label sf-field-label--inline",children:fo}),a(n)]}):null,d("div",{children:Nr({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(r)?r:"auto",onChange:n,ariaLabel:fo})})]})}),o=()=>({type:"custom",render:({value:a,onChange:r,field:n})=>{let l=n?.unit==="%"?"%":"px",f=l==="%"?Sr:Cr;return d("div",{className:"sf-field",children:$e({min:f.min,max:f.max,step:f.step,value:typeof a=="number"?a:f.fallback,suffix:l,ariaLabel:fo,onChange:r})})}}),t=()=>Hr("Unit",d(mc,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return $o({_gHeight:K(fo),sectionHeightMode:ae("desktop",e()),sectionHeightValue:ae("desktop",o()),sectionHeightUnit:ae("desktop",t()),sectionHeightModePhone:ae("mobile",e(a=>d(fg,{onClear:()=>a(void 0)}))),sectionHeightValuePhone:ae("mobile",o()),sectionHeightUnitPhone:ae("mobile",t())})}function fg({onClear:e}){let o=qt(),t=yr(o),a=Rt(o),r=`${a.mode==="auto"?"Auto":`${a.value}${a.unit}`} on ${kt.desktop.toLowerCase()}`;return d(Y,{label:fo,changed:t,detail:r,onReset:e})}function Oc(){return{_gAnchor:K("Anchor"),anchor:Dh("Anchor name","e.g. about",kh)}}function e0(e,o,t){return{type:"custom",render:({value:a,onChange:r,id:n,name:l})=>{let f=`${n??l??e}-datetime`,s=Date.parse(typeof a=="string"?a:"");return d(R,{label:e,icon:o,htmlFor:f,hint:t,children:d(Sh,{id:f,value:Number.isFinite(s)?new Date(s):null,onChange:c=>r(c?c.toISOString():"")})})}}}function We(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(gh,{checked:f,onChange:r,ariaLabelledBy:s})})}}}function o0(){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(xc,{}),htmlFor:r,action:d(me,{id:r,label:"Background",value:Qa(e),onChange:o})})}}}function t0(e,o){return{type:"custom",render:({value:t,onChange:a})=>d(R,{label:e,action:me({value:t||o,onChange:a,label:e})})}}var sg=[{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 Pc({label:e,value:o,onChange:t,points:a=sg}){return d(Ih,{label:e,value:o,points:a,onChange:t})}function a0(e,o=yh,t="mediaImage"){return{type:"custom",render:({value:a,onChange:r})=>d("div",{className:"sf-focal-row",children:d(cg,{label:e,value:a||o,onChange:r,imageProp:t})})}}function cg({label:e,value:o,onChange:t,imageProp:a}){let{selectedItem:r}=uo(l=>l),n=r?.props?.[a];return d(Es,{label:e,value:o,onChange:t,image:typeof n=="string"?n:void 0})}var dg=La([]);function r0(e,{stacking:o,fallback:t=mt}){return{type:"custom",render:({value:a,onChange:r})=>{let n=oe.includes(a)?a:t;return o?d(ug,{label:e,value:n,onChange:r}):Ac({label:e,value:n,onChange:r,points:dg})}}}function ug({label:e,value:o,onChange:t}){let{appState:a,selectedItem:r}=uo(f=>f),n=r?.props?.id?String(r.props.id):void 0,l=n?va(a?.data,n):[];return Ac({label:e,value:o,onChange:t,points:La(l,n)})}function Ac({label:e,value:o,onChange:t,points:a}){let r=a.find(n=>n.disabled);return d(R,{label:e,icon:d(nh,{}),hint:r?r.title:void 0,children:Pc({label:e,value:ye(o),onChange:t,points:a})})}var n0={top:d(KI,{}),right:d(zI,{}),bottom:d($I,{}),left:d(qI,{})};function l0(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:Pc({label:e,value:p,onChange:u,points:c})})}}}var ig="\0note";function Re(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:Ut(o),children:d(bh,{value:i,ariaLabel:e,onChange:l,options:[...r?[{label:r,value:ig,disabled:!0}]:[],...s.map(u=>({label:u.label,value:u.value}))]})})}}}function f0(e,o,t){return{type:"custom",options:o,render:({value:a,onChange:r,field:n})=>d(_s,{label:e,options:n.options??o,value:Array.isArray(a)?a:[],onChange:r,...t?{emptyLabel:t}:{}})}}function s0(e,o={}){return{type:"custom",render:({value:t,onChange:a})=>{let r={value:t,onChange:a,...o};return d(e,{...r})}}}function Nr({options:e,value:o,onChange:t,ariaLabel:a,disabled:r=!1}){return d(hh,{options:e.map(n=>({id:n.value,label:n.label,title:n.title})),value:o,onChange:t,ariaLabel:a,disabled:r})}var c0=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Hr(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:Ut(o),children:Nr({options:r,value:r.some(s=>s.value===n)?n:n||f?.currentValue||a,onChange:l,ariaLabel:e})})}}function d0(e,o,t){return{type:"custom",[Yf]:!0,render:({value:a,onChange:r})=>d(ks,{value:a||"",onChange:r,label:e,accept:o,placeholder:t})}}function u0({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 Ae(R,{label:t,icon:d(kr,{}),children:[d("button",{type:"button",disabled:r,onClick:()=>o({...a,pending:!0,ok:!1,status:"Finding\u2026"}),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"8px 10px",fontSize:13,cursor:r?"default":"pointer",opacity:r?.6:1,border:"1px solid var(--border-strong, #ccc)",borderRadius:6,background:"transparent",color:"inherit"},children:r?"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&&Ae("div",{style:{marginTop:8,display:"grid",gap:8},children:[d(R,{label:"Latitude",icon:d(kr,{}),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(kr,{}),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 pg(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function mg(e,o,t){let a=e.map(r=>({text:r?.text??""}));return o===null||o<0||o>=e.length?a:a.map((r,n)=>n===o?{text:t}:r)}function xg(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 i0={label:"Ticker items",icon:d(JI,{})};function p0(e,o,t,a){return{type:"custom",[D]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:a},render:({value:r,onChange:n})=>d(Ig,{label:e,icon:Ut(o),items:Array.isArray(r)?r:[],placeholder:t,onChange:n,markup:a==="markup"})}}function Ig({label:e,icon:o,items:t,placeholder:a,onChange:r,markup:n=!1}){let l=_r(null),[f,s]=cc(null),c=i=>i.map(u=>({text:u?.text??""}));return d(Ch,{label:e,icon:o,noun:"item",items:t,onChange:i=>{let u=xg(t,i,f);u===null&&(l.current=null),s(u),r(c(i))},newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?d(ir,{target:l,value:pg(t,f),onChange:i=>r(mg(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 m0(e,o){let t=`${e.label} \u2014 row ${o+1}`;return po({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:a,onChange:r})=>d(io,{value:a,onChange:r,label:t,placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function Rc(e){return{_gCards:K("Cards"),coverIndex:Re("Cover image",d(ZI,{}),Ls,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:Uh("Image background",Nt),cardImage:hg(),spinOnHover:We("Rotate on hover",e?.spinDefault??!0,d(fh,{}))}}function kc(){return{outline:Re("Card outline",d(sh,{}),hr,xr),indexBadge:Re("Card number",d(mc,{}),Ir,mr),showBadge:We("Product badge",!0,d(Za,{noun:"tag"}))}}function wc(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:K("Show on a card"),showCardPrice:We("Price",!0,d(VI,{})),showCardFinishes:We("Finish swatches",!0,d(XI,{})),showCardSizes:We("Sizes",o,d(lh,{})),showCardBuy:We("Buy button",o,d(UI,{})),showCardPage:We("Page button",o,d(xc,{}))}}function hg(){return qo("Card image",{min:be,max:we,step:ns,hint:"Rounds the picture. The card's own corner is in Site styles."})}function x0(){return qo(fs,{min:be,max:we,step:ls,unsetLabel:"Square",hint:"Rounds the picture. Left alone it stays square."})}function I0(){return{type:"custom",render:({value:e,onChange:o})=>d(gg,{value:typeof e=="string"?e:"",onChange:o})}}function gg({value:e,onChange:o}){let[t,a]=cc(null),r=nr.filter(l=>t===null||ce[l].across===t),n=e&&e in ce?ce[e]:null;return Ae(ke,{children:[d(R,{label:"Photos in a row",icon:d(WI,{}),children:Ae("div",{className:"sf-gallery-filter",children:[d("button",{type:"button","aria-pressed":t===null,onClick:()=>a(null),children:"All"}),cs.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 ${nr.length} layouts`,children:d("div",{className:"sf-gallery-layouts",children:r.map(l=>d(Gt,{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 bg}from"efficient-easel/panel";import{BUCKET_KEY as M}from"efficient-easel/screen/lib/puck/field-buckets";var mo=bg,L0=[M.Layout,...Object.keys(vc({phone:!0})),...Object.keys(Ec("full")),...Object.keys(Bc()),...Object.keys(Oc())],T0=[M.Style,...Object.keys(Cc())],v0=[M.Style,...Object.keys(Fc())],E0=[M.Animation,...Object.keys(Lc())],Cg=Object.keys(Rc()),Sg=new Set(["cardImage","imageBackground"]),B0=[M.Style,...Cg.filter(e=>e.startsWith("_g")||Sg.has(e))],O0=Object.keys(kc()),P0=Object.keys(wc({bottomDefault:!0})),yg="Editor only \u2014 not shown live",_c={"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",[yg]:"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"},Dc={"AlloyWheelsListing._gCards":"Style","ProductGrid._gCards":"Style"};function Fg(e,o,t){return Dc[`${e}.${o}`]??_c[t]}var Lg={"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 A0(e){let o=new Set(Object.values(M));for(let[t,a]of Object.entries(e))if(!o.has(t)&&Ge(a)?.level===1)return 1;return 2}function Tg(e){let o=`${e}.`;return Object.keys(Lg).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function vg(e,o){let t=Is(e),a=K(o);return t?ae(t.tier,a):a}function R0(e,o){let t=[],a=new Set(Tg(o)),r=new Set,n=null;for(let[u,p]of Object.entries(e)){let m=Ge(p);if(!m){n||t.push(n={bucket:"Content",entries:[]}),n.entries.push([u,p]);continue}if(a.has(u)){let b=_c[m.label];if(m.level!==2||!b||m.label!==b)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 ${b??"(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:b,entries:[]});continue}let x=Fg(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 ${mo.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:vg(p,m.label)]],isBucketHeader:I})}let l=new Set(Object.entries(e).filter(([,u])=>Ge(u)).map(([u])=>u)),f=Object.keys(Dc).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 mo){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=mo.filter(u=>t.some(p=>p.bucket===u)),i={};for(let u of mo){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=$t(u,u===c[0]?c:null);m<0&&(i[M[u]]=x);for(let I of p)for(let[b,P]of I.entries)i[b]=I.isBucketHeader&&b===M[u]?x:P}return i}function k0(e){return M.Content in e?e:{[M.Content]:$t("Content",null),...e}}function w0(e){return mo.some(o=>M[o]in e)}function _0(e){let o=mo.filter(a=>M[a]in e);if(o.length===0)return e;let t={...e};for(let a of o)t[M[a]]=$t(a,a===o[0]?o:null);return t}import{jsx as Eg}from"react/jsx-runtime";import{createContext as Bg,useCallback as Og,useContext as Pg,useState as Ag}from"react";var Mc={enabled:!0,title:"",subtitle:"",greeting:""},Nc=Bg({chat:Mc,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function G0({children:e,chat:o=Mc,onChatChange:t}){let[a,r]=Ag(!1),n=Og(s=>t?.(s),[t]),{select:l,setSelectHandler:f}=al();return Eg(Nc.Provider,{value:{chat:o,setChat:n,selected:a,setSelected:r,select:l,setSelectHandler:f},children:e})}var U0=()=>Pg(Nc);import{jsx as Rg}from"react/jsx-runtime";import{createContext as kg,useCallback as Hc,useContext as wg,useMemo as _g,useRef as Dg}from"react";var Mg=Object.fromEntries(rl.map(e=>[e,{value:"",error:null}])),Gc=kg({links:nl,rows:Mg,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function K0({children:e,value:o}){let t=Dg(()=>{}),a=Hc(()=>t.current(),[]),r=Hc(l=>{t.current=l},[]),n=_g(()=>({...o,openPanel:a,setOpenHandler:r}),[o,a,r]);return Rg(Gc.Provider,{value:n,children:e})}var V0=()=>wg(Gc);import{jsx as Ng}from"react/jsx-runtime";import{createContext as Hg,useContext as Gg,useMemo as Ug,useState as Wg}from"react";var Uc=Hg(null);function Z0({children:e}){let[o,t]=Wg(null),a=Ug(()=>({surface:o,setSurface:t}),[o]);return Ng(Uc.Provider,{value:a,children:e})}function Q0(){return Gg(Uc)??{surface:null,setSurface:()=>{}}}var oR="Scrolling Bar",{Provider:tR,useSelection:Wc}=st("selectedHeroId");var{Provider:nR,useSelection:lR}=st("selectedLocationPartId");function fR(e,o,t){return`${e}::${o}::${t}`}function sR(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 $g,useContext as qg}from"react";var zg=$g(!1),uR=()=>qg(zg);import{PreviewDeviceContext as mR,usePreviewDevice as xR}from"efficient-easel/screen/components/PreviewDeviceContext";var Kg=new Set(["Hero","HeroSingle","IntroBleed"]),$c={min:56,max:140,default:88},gR={min:0,max:120,step:2,default:28},qc=`var(--sf-header-h, ${$c.default}px)`,Vg="--sf-header-set-h",bR="--sf-header-h",CR=`var(${Vg}, ${$c.default}px)`,SR="sf-header-clearance",yR="sf-sticky-underheader";function Xg(e){return e?.find(o=>o?.type&&o.type!==Me)??null}function zc(e){let o=Xg(e)?.type;return!o||!Kg.has(o)}function FR(e){return!zc(e)}function LR(e){return!!e?.some(o=>o?.type===Me)}function TR(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Me||o?.type===It)}var jg=["auto","shared","own"],Yg="auto",Zg="topSpace",vR="data-top-space";function Qg(e){return jg.includes(e)?e:Yg}function Jg(e,o){let t=Qg(e?.props?.[Zg]);return t==="own"?!0:t==="shared"?!1:zc(o)}function ER(e,o){return Jg(e,o)?"own":null}import{blockRuns as eb}from"efficient-easel/screen/lib/puck/block-choice";function RR(){return{type:Me,props:{id:vo(Me)}}}var Kc=[{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"}],ob=Kc.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),tb="FooterGroup",Vc="blocks";function Xc(e){return e===It?Kc:e===tb?ob:null}function wR(){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 GR(e,o=0){let t=rb(e,o),a=t?Ra():null;return t&&a?ab(t,a):t}function ab(e,o){if(e.spec)return o.offers(e.spec.childType)?e:null;let t=e.choices??[],a=t.filter(r=>o.offers(r.type));return a.length===t.length?e:a.length>0?{...e,choices:a}:null}function rb(e,o){let t=Fe[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let a=Ul(e,o);if(a)return{source:"container",slot:a.slot,choices:a.choices,spec:null};let r=Xc(e);return r?{source:"footer",slot:Vc,choices:r,spec:null}:null}import{useSyncExternalStore as nb}from"react";var Gr=null,Ur=new Set;function $R(e){if(Gr!==e){Gr=e;for(let o of Ur)o()}}function lb(e){return Ur.add(e),()=>{Ur.delete(e)}}function qR(){return nb(lb,()=>Gr,()=>null)}function zR(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?e.slice(0,o):null}var fb="inline",sb=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var cb={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"}},XR="SectionHeader";function jR(e){return e in cb}function db(e){return z(sb,fb,e)}var ub=new Set(["Flex"]);function ib(e){return!!e?.type&&ub.has(e.type)}function YR(e,o,t){if(!ib(o))return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function ZR(e,o,t){if(db(o)!=="own-box")return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function Wr(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function $r(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 zo,encodePartId as pb,PART_SEP as ok}from"efficient-easel/screen/lib/puck/part-id";var mb=Ue,xb=["text","textarea"],Ib=["textarea","plainTextarea"];function hb(e){return!e||typeof e!="object"?null:e[D]?.control??null}function jc(e){let o=hb(e);return o&&mb.includes(o)?o:null}function lk(e){return Ib.includes(e)}function fk(e){return!e||typeof e!="object"?void 0:e[D]?.placeholder}function zt(e){return Oe(e).text}function qr(e,o,t){return xb.includes(e)?{text:t,hidden:Oe(o).hidden}:t}function sk(e,o,t,a){return zt(e[o])===a?null:{...e,[o]:qr(t,e[o],a)}}function gb(e){if(!(!e||typeof e!="object"))return e[D]}function bb(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function Yc(e,o){if(!Array.isArray(o))return[];let t=gb(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=bb(e);return r?(o.forEach((n,l)=>{for(let[f,s]of Object.entries(r)){if(!jc(s))continue;let c=zt(n?.[f]);c&&a.push({row:{index:l,rowKey:f},text:c})}}),a):[]}function Cb(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Sb(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 pk(e,o,t,a,r){let n=Cb(e[o],t);return zt(n)===r?null:Sb(e,o,t,qr(a,n,r))}function mk(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Fk="data-sf-part",Lk="data-sf-part-selected",Tk="data-sf-part-kind",Zc=2;function vk(e,o){if(!e)return!1;let t=zo(e);return!!t?.propKey&&t.nodeId===o}function xo(e){return Bo(e).replace(/\s+/gu,"")}function Kt(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}=Oe(o);r?t.push(r):a.placeholder&&t.push(a.placeholder);return}if(!e[ko]){if(e.type==="text"||e.type==="textarea"){typeof o=="string"&&o&&t.push(o);return}if(e.arrayFields&&Array.isArray(o)){for(let r of o)for(let[n,l]of Object.entries(e.arrayFields))Kt(l,r?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[r,n]of Object.entries(e.objectFields))Kt(n,o[r],t)}}function Ek(e){if(!e||typeof e!="object")return!1;let o=e;return o[ko]?!1:!!o[D]||o.type==="text"||o.type==="textarea"}function Qc(e,o){let t=e[D];return t?.label?t.label:typeof e.label=="string"?e.label:o}function yb(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function Bk(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){if(!r||typeof r!="object"||No(a))continue;let n=r,l=[];Kt(n,o?.[a],l),!l.length&&n[wo]!==void 0&&Kt(n,n[wo],l);let f=Qc(n,a),s=new Set;for(let{row:u,text:p}of Yc(n,o?.[a])){let m=xo(p);m.length<Zc||(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=xo(u);p.length<Zc||c.has(p)||(c.add(p),i.push(p))}i.length&&t.push({key:a,label:f,texts:i})}return t}var Fb=Ue;function Jc(e,o){if(!o||typeof o!="object"||No(e))return null;let t=o[D];return!t||!Fb.includes(t.control)?null:t}function Ok(e,o){let t=Jc(e,o);return t!==null&&t.identifier!==!0}function Pk(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){let n=Jc(a,r);if(!n)continue;let{text:l,hidden:f}=Oe(o?.[a]),s=l||n.placeholder||"",c=Bo(s).replace(/\s+/gu," ").trim();t.push({key:a,label:yb(Qc(r,a)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!f})}return t}var Lb="Main Pages",Tb="Dynamic Pages",vb="dynamic",Eb="dynamic";function Bb(e){return e.kind===Eb}function Rk(e){let o=[],t=[];for(let a of e){if(Bb(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??Lb,rows:[a]})}if(t.length){let a=o.findIndex(r=>r.key.startsWith("system:"));o.splice(a===-1?o.length:a,0,{key:vb,label:Tb,rows:t})}return o}import{jsx as zr,Fragment as Ob,jsxs as Pb}from"react/jsx-runtime";var _k=Pb(Ob,{children:[zr("circle",{cx:"9",cy:"20",r:"1.3"}),zr("circle",{cx:"18",cy:"20",r:"1.3"}),zr("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 Kr,Fragment as Ab}from"react/jsx-runtime";function ed({className:e=""}){return Kr("sup",{className:`text-accent tracking-normal ${e}`,children:"\xAE"})}function Vt(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(Kr(ed,{},`r${r}`))}),Kr(Ab,{children:t})}var Nk=ed;import{jsx as B,jsxs as tn}from"react/jsx-runtime";import{Fragment as yd}from"react";var jr="_partStyles",Qr="data-sf-part-styled",Rb=["none","upper","lower"],kb=[400,500,600,700],wb=["left","center","right","justify"],_b=5,Db=1e3,Mb=-5,Nb=10,Hb=0,Gb=64,Ub=2,Wb=120,Xt=1280,$b=10,od={size:{min:_b,max:Db,step:1},padding:{min:Hb,max:Gb,step:Ub},width:{min:Wb,max:Xt,step:$b}},qb=.05,zb=.01,Kb=["line","letter"],Vb=.5,Xb=2.5,jb=-1,Yb=1,Zb=0,Qb=400,Yr={none:"none",upper:"uppercase",lower:"lowercase"};function Vo(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function nd(e){return Vo(e?.[jr])??{}}function Jb(e,o){let t=nd(e);return Object.hasOwn(t,o)?Vo(t[o])??{}:{}}function ld(e,o,t){let a={...nd(e)};if(eC(t).length?a[o]=t:delete a[o],!Object.keys(a).length){let{[jr]:r,...n}=e;return n}return{...e,[jr]:a}}function eC(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function oC(e){return Kb.includes(e)}var Ko=(e,o,t)=>Math.min(t,Math.max(o,e));function tC(e,o){if(oC(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:Ko(t,Mb,Nb)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?Io(Ko(t,Vb,Xb),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?Io(Ko(t,jb,Yb),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:Ko(t,Zb,Qb)}if(Object.hasOwn(od,e)){let{min:t,max:a}=od[e],r=Math.round(Number(o));return Number.isFinite(r)?Ko(r,t,a):null}return e==="role"?Fo.includes(String(o))?o:null:o}var aC=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function rC(e){let o=[];for(let[t,a]of aC)t===e?o.push(a):a===e&&o.push(t);return o}function qk(e,o,t,a){let r={...Jb(e,o)},n=a==null?null:tC(t,a);if(n===null)delete r[t];else{r[t]=n;for(let l of rC(t))delete r[l]}return ld(e,o,r)}function zk(e,o){return ld(e,o,{})}function nC(e){for(let o of Rb)if(Yr[o]===e)return o;return"none"}function lC(e){return!e||!Object.hasOwn(Yr,e)?"":Yr[e]}var fC={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 sC(e){let o=e.role;return o&&Fo.includes(o)?o:null}var cC={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function dC(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=Io(uC+e.line*qb,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=Io(e.letter*zb,4)),o}var uC=1,jo="--sf-part-para";function jt(e,o,t){let a=sC(e),r=dC(e),n=e.size?`${e.size}px`:a?t?.has(lt[a])?`var(--size-${lt[a]})`:cC[lt[a]]??"":"";return{fontFamily:e.font?xC(e.font):a?`var(${fC[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`:"",[jo]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:lC(e.case),textAlign:e.align??"",paddingTop:Vr(e.padding),paddingBottom:Vr(e.padding),maxWidth:Vr(e.width),color:iC(e.color)}}var iC=e=>e===void 0||e===""?"":Object.hasOwn(Le,e)?Le[e]:fd.test(e)?e:"",fd=/^#[0-9a-fA-F]{6}$/;function sd(e){return fd.test(e)}var Vr=e=>e===void 0?"":`${e}px`,Io=(e,o)=>Number(e.toFixed(o));function Kk(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:pC(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(a)?Io(a/t,3):1.2,letterEm:Number.isFinite(r)?Io(r/t,4):0,align:mC(e.textAlign),case:nC(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(l)&&l<Xt?Math.round(l):Xt}}function pC(e){return Number.isFinite(e)?kb.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function mC(e){for(let o of wb)if(o===e)return o;return e==="end"?"right":"left"}function Vk(e,o){let t=td(e);if(!t)return"";for(let a of da)if(td(o(a.cssVar))===t)return a.key;return""}var td=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function xC(e){let o=Yn(e);return o?`var(${o.cssVar})`:""}function Xk(e,o,t,a){return!o||zo(o)?.nodeId!==e?null:t.find(r=>a(r.getAttribute("class")))??t[0]??null}function IC(e){let o=new Set,t=e;if(typeof window>"u"||!t?.ownerDocument)return o;let a=window.getComputedStyle(t);for(let r of hC)a.getPropertyValue(`--size-${r}`).trim()&&o.add(r);return o}var hC=["headingLarge","headingMedium","headingSmall","accent","body","label"];function jk(e,o,t=()=>Xo,a=n=>n,r=CC){let n=0;for(let{element:l,partId:f}of e){let s=zo(f)?.propKey;if(!s)continue;let c=a(s),i=Object.hasOwn(o,c)?Vo(o[c])??{}:{},u=jt(i,Xo,IC(l)),p=Xr.some(x=>l.style[x]),m=!1;for(let[x,I]of Object.entries(u))SC(l,x,I),I&&(m=!0);if(p||Xr.some(x=>u[x]))for(let x of gC(l,r))for(let I of Xr)x.style[I]=u[I]??"";m&&(n+=1)}return n}function gC(e,o){let t=xo(e.textContent??""),a=[],r=e;for(let n=0;n<bC&&o(r);n+=1){let l=r.parentElement;if(!l||xo(l.textContent??"")!==t)break;a.push(l),r=l}return a}var bC=8;function CC(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Xo={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:Xt};function SC(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let a=e.style;typeof a.setProperty=="function"?t?a.setProperty(o,t):a.removeProperty?.(o):a[o]=t;let r=e;o===jo&&(t?r.setAttribute?.(ad,""):r.removeAttribute?.(ad))}var ad="data-sf-part-para",yC=Object.keys(jt({},Xo)),Zr=new Set(["color","overflowWrap",jo]),Xr=yC.filter(e=>!Zr.has(e));function cd(e,o,t,a=r=>r){let r=new Map;for(let f of e){let s=Wr(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(!FC(f))continue;let s=Vo(o[f])??{},c=jt(s,Xo);Object.values(c).some(Boolean)&&n.set(f,{stamp:rd(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=Vo(o[u])??{},m=jt(p,Xo);Object.values(m).some(Boolean)&&l.set(f,{stamp:rd(t,i),declarations:m})}return l.size||n.size?{rules:l,kindRules:n,drawn:new Set(r.keys())}:null}function FC(e){return e.startsWith("@")}function dd(e,o){return e?.kindRules.get(o)??null}function rd(e,o){let t=a=>a.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function ud(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])=>`${TC(m)}: ${x}`).join("; "),c=`[${Qr}="${n}"]`,i=f.filter(([p])=>!Zr.has(p)),u=f.filter(([p])=>Zr.has(p));i.length&&o.push(`${c}, *:has(> ${c}) { ${s(i)} }`),u.length&&o.push(`${c} { ${s(u)} }`),l[jo]&&o.push(...LC(c))};for(let r of e.rules.values())a(r);for(let r of e.kindRules.values())a(r);return o.join(`
4
- `)}function LC(e){let o=`var(${jo})`,t=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${o} }`,`${e} ${t}:not(:first-child) { margin-top: ${o} }`,`${e} ${t}:not(:last-child) { margin-bottom: ${o} }`]}var TC=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function id(e,o){if(!e)return null;let t=xo(o),a=e.rules.get(t);if(a)return a;if(t.length<vC||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 vC=8;import{Fragment as RC,jsx as on}from"react/jsx-runtime";import{Fragment as Id,jsx as Yt,jsxs as OC}from"react/jsx-runtime";import{createContext as hd,useContext as Jr,useId as PC,useMemo as AC}from"react";var Yo="@name",pd="@body",md="@value",Qk={[Yo]:"Name",[pd]:"Body",[md]:"Value"},EC={TimelineTrack:{"entries.date":Yo,"entries.title":Yo,"entries.blurb":pd},Footprint:{"offices.city":Yo},Stats:{"items.label":Yo,"items.value":md}};function BC(e){let{key:o,row:t}=$r(e);return t?`${o}.${t.rowKey}`:null}function xd(e,o){if(!e)return o;let t=BC(o);return t?EC[e]?.[t]??o:o}var en=hd(null),gd=hd(null);function rw({needles:e,styles:o,type:t,children:a}){let r=PC(),n=JSON.stringify([r,e,o,t]),l=AC(()=>cd(e,o,r,f=>xd(t,f)),[n]);return l?OC(Id,{children:[Yt("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:ud(l)}}),Yt(en.Provider,{value:l,children:a})]}):Yt(Id,{children:a})}function bd(e){let o=Jr(en),t=Jr(gd),a=id(o,e);return a&&a.stamp!==t?a:null}function nw(e){return dd(Jr(en),e)}function Cd({stamp:e,children:o}){return Yt(gd.Provider,{value:e,children:o})}function Zo({value:e,children:o}){let t=bd(e);return t?on(Cd,{stamp:t.stamp,children:on("span",{[Qr]:t.stamp,children:o})}):on(RC,{children:o})}function an(e,o=!1){let t=GC(o),a=Ma(e);if(a.length===1){let[n]=a,l=Da(n),f=l?NC(l,n.children):n.children;return B(Zo,{value:e,children:Zt(f,t)})}let r=[];return a.forEach((n,l)=>{if(n.bullet){r.push(B("span",{"data-sf-bullet":"",className:kC,children:Zt(n.children,t)},l));return}if(n.number!=null){r.push(tn("span",{"data-sf-number":n.number,className:wC,children:[tn("span",{className:_C,children:[n.number,"."]}),Zt(n.children,t)]},l));return}l>0&&!DC(a[l-1])&&r.push(B("br",{},`br${l}`)),r.push(B(yd,{children:Zt(n.children,t)},l))}),B(Zo,{value:e,children:r})}var kC="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",wC="relative block pl-[2em]",_C="absolute left-0 w-[1.6em] text-right tabular-nums";function DC(e){return e.bullet||e.number!=null}var MC="text-accent underline underline-offset-[0.18em]";function NC(e,o){let[t,...a]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...a]:[{kind:"text",text:e},...o]}function HC(e){if(e)return sd(e)?e:Object.hasOwn(Le,e)?Le[e]:void 0}function Zt(e,o){let t=[],a=!1;return e.forEach((r,n)=>{if(r.kind==="text"){t.push(B("span",{children:Vt(r.text)},n)),a=!0;return}a||t.push(B("span",{},`e${n}`)),t.push(Fd(r,n,o)),a=!1}),a||t.push(B("span",{},"end")),t}function Sd(e,o){return e.length===1&&e[0].kind==="text"?Vt(e[0].text):e.map((t,a)=>t.kind==="text"?B(yd,{children:Vt(t.text)},a):Fd(t,a,o))}function GC(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function gw(e){return B(Zo,{value:e,children:B("span",{children:e})})}function Fd(e,o,t){if(e.kind==="link")return B("a",{href:e.href,className:MC,children:Sd(e.children,t)},o);let a=Sd(e.children,t),r=Vl[e.kind];if(r)return B("span",{[Xl]:r,children:a},o);switch(e.kind){case"underline":return B("u",{children:a},o);case"sup":return B("sup",{children:a},o);case"sub":return B("sub",{children:a},o);case"color":{let n=HC(e.color);return n?B("span",{style:{color:n},children:a},o):B("span",{children:a},o)}case"accent":case"highlight":return B("em",{className:t,children:a},o);case"bold":return B("strong",{className:"font-semibold",children:a},o);case"italic":return B("em",{className:"italic",children:a},o);case"strike":return B("s",{className:"line-through",children:a},o);default:return B("span",{children:a},o)}}function bw(e,o=!0){let t=e.split(`
5
- `);return B(Zo,{value:e,children:t.map((a,r)=>tn("span",{children:[an(a,o),r<t.length-1?B("br",{}):null]},r))})}function Cw(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var rn={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 Ld={min:40,max:100,step:5,fallback:100,unit:"vh"};function nn(e){return`${typeof e=="number"?e:Ld.fallback}${Ld.unit}`}function Td(...e){return e.some(o=>typeof o=="number")}import{useSyncExternalStore as UC}from"react";var WC={level:"groups"},Ed=WC,ln=new Set;function Tw(e){Ed=e;for(let o of ln)o()}function $C(e){return ln.add(e),()=>{ln.delete(e)}}var vd=()=>Ed;function vw(){return UC($C,vd,vd)}function Bd(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 Bw(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 Qo=e=>String(e?.group??""),fn=new WeakMap,qC=0;function zC(e){let o=fn.get(e);return o||(o=`loc${++qC}`,fn.set(e,o)),o}var Aw=(e,o)=>o||e||"Ungrouped",Od={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 Qt(e){return Bd(e,Qo,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var sn=e=>e.flatMap(o=>o.cards),Pd=(e,o,t)=>Math.min(Math.max(e,o),t);function KC(e,o,t){let a=0;for(let r=0;r<e.length;r++)if(Qo(e[r])===o){if(a===t)return r;a++}return-1}function Rw(e,o,t){let a=Qt(e);if(o<0||o>=a.length)return e;let[r]=a.splice(o,1),n=Pd(o<t?t-1:t,0,a.length);return a.splice(n,0,r),sn(a)}function kw(e,o,t,a,r){let n=Qt(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&&fn.set(c,zC(s));let i=Pd(l===f&&t<r?r-1:r,0,f.cards.length);return f.cards.splice(i,0,c),sn(n)}function ww(e,o){let t=Qt(e),a=t.find(n=>n.key===o),r={...Od,group:o,groupName:a?.name??""};return a?(a.cards.push(r),sn(t)):[...e,r]}function _w(e){let o=new Set(Qt(e).map(r=>r.key)),t=o.size+1,a=`Group ${t}`;for(;o.has(a);)a=`Group ${++t}`;return{cards:[...e,{...Od,group:a,groupName:""}],key:a}}function Dw(e,o){return e.filter(t=>Qo(t)!==o)}function Mw(e,o,t){let a=KC(e,o,t);return a<0?e:e.filter((r,n)=>n!==a)}function Nw(e,o,t){let a=e.flatMap((l,f)=>Qo(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 Hw(e,o,t){return o.flatMap(a=>{let r=e.filter(n=>Qo(n)===a);return r.length?r:t(a)})}var VC="plain",Ad=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],XC="line",jC={KeyFeatures:"filled"};function YC(e){return jC[e]??VC}function Ww(e,o){return z(Ad,YC(o),e)}function $w(e){return z(Ad,XC,e)}var ZC="#9ca3af";function Kw(e){return _a.map(o=>({key:o,name:jl[o],value:e?.[o]||ZC}))}function Vw(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 _a){let f=Le[l].replace(/^var\((--[\w-]+)\)$/,"$1"),s=r.getPropertyValue(f).trim();if(!s)continue;let c=Rd(s);!c&&n&&(n.fillStyle="#000000",n.fillStyle=s,c=Rd(String(n.fillStyle))),c&&(o[l]=c)}return o}function Rd(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 QC={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}},kd=QC;var Jt="data-sf-spec-region";function Yw(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 JC(e){return`@${e}`}function eS(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function wd(e,o){return o&&o in e?o:null}function oS(e,o){let t=o?.closest(`[${Jt}]`)?.getAttribute(Jt);return wd(e,t??null)}var tS={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}},_d=tS;var o1=Jt;var Dd={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 Md={SpecTable:Dd,FAQ:_d,Collections:kd};function l1(e){return e&&Object.hasOwn(Md,e)?Md[e]:null}import{jsx as FS}from"react/jsx-runtime";import{forwardRef as aS,createElement as cn}from"react";var Nd={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 g=(e,o,t,a)=>{let r=aS(({color:n="currentColor",size:l=24,stroke:f=2,title:s,className:c,children:i,...u},p)=>cn("svg",{ref:p,...Nd[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&&cn("title",{key:"svg-title"},s),...a.map(([m,x])=>cn(m,x)),...Array.isArray(i)?i:[i]]));return r.displayName=`${t}`,r};var rS=[["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"}]],dn=g("outline","brand-facebook","BrandFacebook",rS);var nS=[["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"}]],un=g("outline","brand-instagram","BrandInstagram",nS);var lS=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],pn=g("outline","brand-line","BrandLine",lS);var fS=[["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"}]],mn=g("outline","brand-linkedin","BrandLinkedin",fS);var sS=[["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"}]],xn=g("outline","brand-pinterest","BrandPinterest",sS);var cS=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],In=g("outline","brand-telegram","BrandTelegram",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=g("outline","brand-tiktok","BrandTiktok",dS);var uS=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],gn=g("outline","brand-wechat","BrandWechat",uS);var iS=[["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"}]],bn=g("outline","brand-whatsapp","BrandWhatsapp",iS);var pS=[["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"}]],Cn=g("outline","brand-x","BrandX",pS);var mS=[["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"}]],Sn=g("outline","brand-youtube","BrandYoutube",mS);var xS=[["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"}]],yn=g("filled","brand-facebook-filled","BrandFacebookFilled",xS);var IS=[["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"}]],Fn=g("filled","brand-instagram-filled","BrandInstagramFilled",IS);var hS=[["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"}]],Ln=g("filled","brand-linkedin-filled","BrandLinkedinFilled",hS);var gS=[["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=g("filled","brand-pinterest-filled","BrandPinterestFilled",gS);var bS=[["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=g("filled","brand-tiktok-filled","BrandTiktokFilled",bS);var CS=[["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=g("filled","brand-whatsapp-filled","BrandWhatsappFilled",CS);var SS=[["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"}]],Bn=g("filled","brand-x-filled","BrandXFilled",SS);var yS=[["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"}]],On=g("filled","brand-youtube-filled","BrandYoutubeFilled",yS);var b_="outline",ea={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},LS={},Pn={fillRule:"evenodd"},TS=[["path",{...ea,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...Pn,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],vS=[["path",{...ea,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...LS,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}]],ES=[["path",{...ea,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...ea,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...Pn,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...Pn,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],BS=g("filled","brand-telegram-filled","BrandTelegramFilled",TS),OS=g("filled","brand-line-filled","BrandLineFilled",vS),PS=g("filled","brand-wechat-filled","BrandWechatFilled",ES),AS={instagram:{outline:un,solid:Fn},facebook:{outline:dn,solid:yn},tiktok:{outline:hn,solid:vn},youtube:{outline:Sn,solid:On},x:{outline:Cn,solid:Bn},linkedin:{outline:mn,solid:Ln},pinterest:{outline:xn,solid:Tn},whatsapp:{outline:bn,solid:En},telegram:{outline:In,solid:BS},line:{outline:pn,solid:OS},wechat:{outline:gn,solid:PS}};function C_({platform:e,iconStyle:o,size:t}){let a=AS[e][o];return FS(a,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var An="small",Rn="dot",RS=[{label:"Small",value:"small"},{label:"Display",value:"display"}],kS=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],Hd={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},wS={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)]"},_S={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 Gd(e){return z(RS,An,e)}function Ud(e){return z(kS,Rn,e)}function Wd(e){return wS[e]}function $d(e,o){return _S[e][o]}var kn="left",DS=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],MS={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function qd(e){return z(DS,kn,e)}function zd(e){return e==="up"||e==="down"}function Kd(e,o){return`${MS[e]} ${o}s linear infinite`}var NS={"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]"},HS=`calc(${yt} - ${$}*2)`,Vd=`var(${Ga},${$})`,B_=`pointer-events-none absolute inset-y-0 left-[${Vd}] right-[${Vd}] z-[6] mx-auto max-w-[var(${Ua},${HS.replace(/ /g,"_")})]`;function oa(e,o){return`pointer-events-auto absolute ${NS[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function Xd(e){return oe.includes(e)?e:null}var GS="bottom-right",US=["outline","solid","square","bare"],WS="outline",R_={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},k_=!1,jd=["prev","next"],Yd={prev:"Previous slide",next:"Next slide"};function $S(e){return US.includes(e)?e:WS}function qS(e){return Xd(e)??GS}var zS="flex-row items-center gap-2";function Zd(e){return oa(qS(e),zS)}var KS={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 Qd(e){return KS[$S(e)]}function Jd(e){return e.shown===!0&&(e.count??0)>1}function ta(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 VS=oe;var XS="top-right",jS=["cards","dots","numbers","bar","tabs"],YS=["cards","dots","numbers","bar"],eu="cards",M_={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},N_=!0;function aa(e){return jS.includes(e)?e:eu}function ou(e){return YS.includes(e)?e:eu}function ZS(e){return VS.includes(e)?e:XS}var tu={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 au(e,o){return oa(ZS(o),tu[aa(e)])}function ru(e){return`flex ${tu[aa(e)]}`}function nu(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 JS(e,o){return e===o?!0:e.length!==o.length?!1:e.every((t,a)=>t.name===o[a].name&&t.process===o[a].process&&t.video===o[a].video)}function lu(e,o){let t=Array.from(o,QS);return JS(e,t)?e:t}import{useEffect as ey,useState as oy}from"react";var fu="(prefers-reduced-motion: reduce)";function ty(){return globalThis.window?.matchMedia?.(fu)?.matches??!1}function U_(){return ty()?"auto":"smooth"}function su(){let[e,o]=oy(!1);return ey(()=>{let t=globalThis.window?.matchMedia?.(fu);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 de,jsxs as na}from"react/jsx-runtime";import{useCallback as ho,useEffect as go,useId as uy,useRef as xe,useState as ot}from"react";var cu="data-puck-overlay-portal";function ra(e){return e.setAttribute(cu,"true"),()=>e.removeAttribute(cu)}import{jsx as Jo,jsxs as du}from"react/jsx-runtime";var ay={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function uu({items:e,separator:o=Rn,size:t=An,durationSec:a=50,scroll:r=kn,backdrop:n="themed-band",className:l}){let f=Gd(t),s=qd(r),c=Ud(o),i=`text-accent ${$d(f,c)}`.trim(),u=Hd[c],p=u===""?Jo("span",{}):Jo("span",{className:i,children:u}),m=zd(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",b=P=>Jo("span",{className:x,children:e.map((v,C)=>{let E=typeof v=="string"?v:v.text,H=typeof v=="object"&&v.gold;return du("span",{className:I,children:[Jo("span",{className:H?"text-accent":void 0,children:an(E)}),p]},C)})},P);return Jo("div",{className:`overflow-hidden ${l??""}`,children:du("div",{className:`flex ${m?"flex-col ":""}whitespace-nowrap ${Wd(f)} ${ay[n]}`,style:{animation:Kd(s,a)},children:[b("a"),b("b")]})})}import{jsx as wn}from"react/jsx-runtime";function iu({shape:e,placement:o,ref:t}){let a=Qd(e);return wn("div",{ref:t,className:Zd(o),style:{color:"var(--overlay-fg)"},children:jd.map(r=>wn("button",{type:"button","data-hero-nav":r,"aria-label":Yd[r],className:a,children:wn(Go,{name:"chevron-right",size:18,rounded:!0,style:r==="prev"?{rotate:"180deg"}:void 0})},r))})}import{jsx as N,jsxs as _n,Fragment as et}from"react/jsx-runtime";function pu({slides:e,active:o,shape:t,placement:a,ref:r,tone:n="media",label:l}){let f=aa(t),s=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--site-surface-2)"}:void 0;return _n("aside",{ref:r,"aria-label":l??"Featured slides",className:n==="surface"?ru(f):au(f,a),style:{color:"var(--overlay-fg)",...s},children:[f==="cards"&&N(ry,{slides:e,active:o}),f==="dots"&&N(ny,{count:e.length,active:o}),f==="numbers"&&N(ly,{count:e.length,active:o}),f==="bar"&&N(fy,{count:e.length,active:o}),f==="tabs"&&N(sy,{slides:e,active:o})]})}function ry({slides:e,active:o}){return _n(et,{children:[N("span",{className:"mb-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.28em] text-overlay-chrome/55",children:"Reel \xB7 pick a slide"}),e.map((t,a)=>{let r=a===o;return _n("button",{type:"button","data-idx":a,"aria-pressed":r,"aria-label":`Go to ${t.name||`slide ${a+1}`}`,className:["group flex w-[170px] cursor-pointer flex-col items-start gap-0.5 border bg-overlay-scrim/55 px-3 py-2.5 text-left transition-all motion-reduce:transition-none max-[1100px]:w-[140px]",r?"border-accent bg-overlay-scrim/70":"border-overlay-chrome/15 hover:border-overlay-chrome/45 hover:bg-overlay-scrim/70"].join(" "),children:[N("span",{className:["font-display text-[length:var(--size-body,13px)] font-medium uppercase leading-tight tracking-[-0.01em]",r?"text-accent":"text-overlay-fg"].join(" "),children:t.name||`Slide ${a+1}`}),N("span",{className:"font-mono text-[length:var(--size-label,9px)] uppercase tracking-[0.2em] text-overlay-chrome/55",children:r?"\u25B6 Now playing":t.process||" "})]},a)})]})}function ny({count:e,active:o}){return N(et,{children:Array.from({length:e},(t,a)=>N("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`h-2 cursor-pointer rounded-full transition-all motion-reduce:transition-none ${a===o?"w-5 bg-accent":"w-2 bg-overlay-chrome/45 hover:bg-overlay-chrome/70"}`},a))})}function ly({count:e,active:o}){return N(et,{children:Array.from({length:e},(t,a)=>N("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`cursor-pointer font-mono text-[length:var(--size-label,11px)] leading-none tracking-[0.06em] transition-colors ${a===o?"text-overlay-fg":"text-overlay-chrome/45 hover:text-overlay-chrome/80"}`,children:String(a+1).padStart(2,"0")},a))})}function fy({count:e,active:o}){return N(et,{children:Array.from({length:e},(t,a)=>N("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`h-full flex-1 cursor-pointer transition-colors ${a<=o?"bg-overlay-fg":"bg-overlay-chrome/25"}`},a))})}function sy({slides:e,active:o}){return N(et,{children:e.map((t,a)=>{let r=a===o;return N("button",{type:"button","data-idx":a,"aria-pressed":r,className:["flex min-w-[140px] flex-1 cursor-pointer items-end px-6 py-7 text-left transition-colors",a>0?"border-l border-overlay-chrome/15":"",r?"bg-overlay-scrim/70":"hover:bg-overlay-scrim/40"].join(" "),children:N("span",{className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium uppercase leading-tight tracking-[-0.02em]",r?"text-overlay-fg":"text-overlay-chrome/55"].join(" "),children:t.name})},a)})})}var cy=40;function dy(e,o){return Math.abs(e)<=cy||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function mu(e,o,t,a){let r=dy(e,o);return r?ta(r,t,a):t}function xu(e){return(e.count??0)>1&&e.editing!==!0}function Iu(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function hu(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as Dn}from"efficient-easel/screen/lib/puck/preview-events";var iy=`
7
- .hero-ticker-pick { cursor: pointer; }
8
- .hero-ticker-pick:hover {
9
- outline: 2px solid color-mix(in srgb, ${rn.accent} 45%, transparent);
10
- outline-offset: -2px;
11
- }
12
- .hero-ticker-pick[data-selected] {
13
- outline: 2px solid ${rn.accent};
14
- outline-offset: -2px;
15
- }
16
- `,py="Play video",my="Hold video",xy="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",Iy="item",hy=["","","","","",""],gu=new Map;function gy(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(Dn,o),()=>t.removeEventListener(Dn,o)}function LD({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:b,arrowsShape:P,arrowsPlacement:v,editing:C}){let E=Td(u,p),H=E?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",ue=E?{"--sf-hero-h-d":nn(u),"--sf-hero-h-m":nn(p)}:void 0,Z=(i??hy.map(h=>({text:h}))).map(h=>h?.text?.trim()?h.text:C?Iy:"").filter(Boolean),Q=c!==!1,F=xe(null),V=xe(null),tt=xe(null),k=xe(null),qe=xe(null),ze=uy(),Ke=xe(ze),[Ve,Cu]=ot([]),[Su,Mn]=ot(0),bo=xe(0),[Nn,Hn]=ot(!1),[at,yu]=ot(!1),[Gn,Fu]=ot(null),fa=su(),{selectedHeroId:Lu,select:Un}=Wc(),rt=ho(()=>F.current?.querySelector(".hero-track")??null,[]),Ie=ho((h,y=!1)=>{Mn(h),bo.current=h,gu.set(Ke.current,h);let T=F.current?.querySelector(".hero-track");if(T)if(y){let O=T.style.transition;T.style.transition="none",T.style.transform=`translateX(-${Math.max(0,h)*100}%)`,T.offsetHeight,T.style.transition=O}else T.style.transform=`translateX(-${Math.max(0,h)*100}%)`},[]);go(()=>{let h=F.current,y=h?.getAttribute("data-puck-component")||h?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||ze;Ke.current=y,Fu(y);let T=gu.get(y);typeof T=="number"&&(Mn(T),bo.current=T)},[]),go(()=>{let h=rt();if(!h)return;let y=()=>{Cu(O=>lu(O,h.querySelectorAll("[data-slide-name]")))};y();let T=new MutationObserver(y);return T.observe(h,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{T.disconnect()}},[rt]),go(()=>{if(!C)return;let h=y=>{let T=y.detail;if(!T||typeof T.index!="number")return;let O=F.current,ie=O?.getAttribute("data-puck-component")||O?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||Ke.current;T.id&&T.id!==ie||Ie(T.index,!0)};return gy(F.current,h)},[C,Ie]);let J=Ve.length,Xe=Math.min(Math.max(Su,0),Math.max(0,J-1)),sa=nu({shown:m,count:J}),Wn=Jd({shown:b,count:J}),$n=Iu({editing:C,shown:Xe,slides:Ve}),Tu=hu({editing:C,playing:at,controlShown:$n}),nt=xu({count:J,editing:C}),je=xe(null),Co=xe(null),vu=ho(h=>{if(je.current=null,Co.current=null,!nt||h.touches.length!==1)return;let y=h.touches[0];je.current={x:y.clientX,y:y.clientY},Co.current={x:y.clientX,y:y.clientY}},[nt]),Eu=ho(h=>{if(!je.current)return;if(h.touches.length!==1){je.current=null;return}let y=h.touches[0];Co.current={x:y.clientX,y:y.clientY}},[]),Bu=ho(()=>{let h=je.current,y=Co.current;if(je.current=null,Co.current=null,!nt||!h||!y)return;let T=mu(y.x-h.x,y.y-h.y,bo.current,J);T!==bo.current&&Ie(T)},[nt,J,Ie]);go(()=>{if(C||!f||Nn||fa||J<=1)return;let h=Math.max(1,typeof s=="number"?s:6)*1e3,y=window.setTimeout(()=>Ie((Xe+1)%J),h);return()=>window.clearTimeout(y)},[C,f,s,Nn,fa,J,Xe,Ie]),go(()=>{let h=[V.current,tt.current,k.current].filter(Boolean),y=h.map(O=>ra(O)),T=O=>{let ie=O.target,So=ie.closest("[data-hero-nav]"),qn=So??ie.closest("[data-idx]");if(!qn)return;O.stopPropagation(),O.preventDefault();let ca=So?ta(So.dataset.heroNav,bo.current,J):Number(qn.dataset.idx);Number.isNaN(ca)||(Ie(ca,C),rt()?.querySelectorAll("[data-slide-name]")[ca]?.click())};return h.forEach(O=>O.addEventListener("click",T,{capture:!0})),()=>{y.forEach(O=>O?.()),h.forEach(O=>O.removeEventListener("click",T,{capture:!0}))}},[J,Ie,rt,C]),go(()=>{if(!C)return;let h=qe.current;if(!h)return;let y=ra(h),T=O=>{O.stopPropagation(),O.preventDefault();let ie=F.current,So=ie?.getAttribute("data-puck-component")||ie?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||Ke.current;Un(So)};return h.addEventListener("click",T,{capture:!0}),()=>{y?.(),h.removeEventListener("click",T,{capture:!0})}},[C,Un,Q,Z.length]);let Ou=ho(h=>{if(!h)return;let y=ra(h),T=O=>{O.stopPropagation(),O.preventDefault(),yu(ie=>!ie)};return h.addEventListener("click",T,{capture:!0}),()=>{y?.(),h.removeEventListener("click",T,{capture:!0})}},[]);return de(Ba.Provider,{value:{alignment:o,textureOpacity:t,textureOn:a,textureColor:r,quietVideo:Tu,phoneUpDown:n,phoneSideways:l},children:na("div",{ref:F,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${H} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:ue,onMouseEnter:()=>Hn(!0),onMouseLeave:()=>Hn(!1),onTouchStart:vu,onTouchMove:Eu,onTouchEnd:Bu,children:[de(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${Xe*100}%)`,transition:fa?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),$n&&de("div",{ref:Ou,"data-hero-video-control":at?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${qc} + 16px)`},children:na("button",{type:"button",className:xy,children:[de("span",{"aria-hidden":"true",children:at?"\u275A\u275A":"\u25B6"}),at?my:py]})}),(sa||Wn)&&na("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:[sa&&de(pu,{ref:V,slides:Ve,active:Xe,shape:ou(x),placement:I}),Wn&&de(iu,{ref:k,shape:P,placement:v})]}),sa&&de("div",{ref:tt,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:Ve.map((h,y)=>de("button",{type:"button","data-idx":y,"aria-label":`Go to slide ${y+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${y===Xe?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},y))}),Q&&Z.length>0&&na("div",{ref:qe,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${C?" hero-ticker-pick":""}`,"data-selected":C&&Gn!=null&&Lu===Gn?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[C&&de("style",{children:iy}),de(uu,{items:Z,backdrop:"dark-media"})]})]})})}var la="data-theme",bu="light";function by(e){return e.getAttribute(la)===bu?"light":"dark"}function Cy(e,o){return by(e)===o?!1:(o==="light"?e.setAttribute(la,bu):e.removeAttribute(la),!0)}function Sy(e){return xa(e).getItem(ua)}function BD(e,o){xa(e).setItem(ua,o)}function yy(e,o,t=new Date().getHours()){return Zn({mode:o.mode,override:Sy(e),switchShown:o.switchShown,hour:t})}function OD(e,o){let t=e.documentElement;if(!t)return()=>{};let a=()=>Cy(t,yy(e,o));a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[la]}),()=>n.disconnect()}var Fy="style";function Ly(e,o){let t=tl(o),a=!1;for(let r of ol){let n=t[r]??"";e.style.getPropertyValue(r)!==n&&(n?e.style.setProperty(r,n):e.style.removeProperty(r),a=!0)}return a}function PD(e,o){let t=e.body;if(!t)return()=>{};let a=()=>Ly(t,o);a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[Fy]}),()=>n.disconnect()}export{mF as a,xF as b,IF as c,hF as d,di as e,Se as f,SF as g,yF as h,Pa as i,RL as j,De as k,bl as l,_ as m,Gl as n,CL as o,Wl as p,PF as q,Sl as r,AF as s,Pl as t,kl as u,wl as v,nL as w,lL as x,fL as y,sL as z,Gi as A,hL as B,mt as C,gi as D,kF as E,ye as F,wF as G,_F as H,Fl as I,DF as J,MF as K,NF as L,yi as M,It as N,Me as O,WF as P,vo as Q,qF as R,zF as S,KF as T,VF as U,Fe as V,EL as W,BL as X,np as Y,zL as Z,ds as _,cx as $,nB as aa,Pt as ba,us as ca,dx as da,ux as ea,ix as fa,sB as ga,cB as ha,dB as ia,uB as ja,bt as ka,ka as la,VL as ma,XL as na,jL as oa,YL as pa,ZL as qa,QL as ra,z as sa,cb as ta,XR as ua,jR as va,db as wa,ib as xa,YR as ya,ZR as za,Kw as Aa,Vw as Ba,ra as Ca,oT as Da,tT as Ea,lT as Fa,fT as Ga,Wr as Ha,$r as Ia,pb as Ja,Zl as Ka,Ma as La,Bo as Ma,Ge as Na,D as Oa,jf as Pa,Oe as Qa,No as Ra,jc as Sa,lk as Ta,fk as Ua,sk as Va,gb as Wa,bb as Xa,Cb as Ya,Sb as Za,pk as _a,mk as $a,Fk as ab,Lk as bb,Tk as cb,vk as db,xo as eb,Ek as fb,Qc as gb,yb as hb,Bk as ib,Ok as jb,Pk as kb,Qr as lb,Hb as mb,Gb as nb,Ub as ob,Wb as pb,Xt as qb,$b as rb,nd as sb,Jb as tb,qk as ub,zk as vb,dC as wb,jt as xb,Kk as yb,Vk as zb,Xk as Ab,jk as Bb,yC as Cb,Yo as Db,pd as Eb,md as Fb,Qk as Gb,xd as Hb,rw as Ib,nw as Jb,AE as Kb,DE as Lb,ME as Mb,NE as Nb,te as Ob,af as Pb,vT as Qb,St as Rb,Fp as Sb,OT as Tb,Oo as Ub,Tp as Vb,AT as Wb,lf as Xb,Ga as Yb,Ua as Zb,HT as _b,UT as $b,WT as ac,$T as bc,qT as cc,lc as dc,Pr as ec,Ar as fc,ff as gc,sf as hc,Po as ic,uf as jc,YT as kc,Op as lc,ZT as mc,If as nc,JT as oc,ev as pc,kp as qc,ov as rc,IB as sc,ms as tc,hB as uc,Ix as vc,gB as wc,Rt as xc,jO as yc,yr as zc,YO as Ac,CI as Bc,ZO as Cc,KO as Dc,VO as Ec,_p as Fc,Ft as Gc,av as Hc,bf as Ic,Lt as Jc,Cf as Kc,me as Lc,Iv as Mc,Ef as Nc,vy as Oc,Qe as Pc,ku as Qc,Ia as Rc,Af as Sc,Im as Tc,jv as Uc,_f as Vc,ts as Wc,JE as Xc,aB as Yc,Za as Zc,Am as _c,tE as $c,ae as ad,Is as bd,RB as cd,hs as dd,gs as ed,HB as fd,ZB as gd,mr as hd,xr as id,oO as jd,tO as kd,Fs as ld,aO as md,rO as nd,nO as od,vs as pd,br as qd,ky as rd,Dy as sd,ll as td,ks as ud,_s as vd,rI as wd,Nf as xd,W as yd,cl as zd,Gy as Ad,Du as Bd,Uy as Cd,Wy as Dd,Mu as Ed,zy as Fd,Nu as Gd,Ky as Hd,ga as Id,Xy as Jd,jy as Kd,Yy as Ld,Zy as Md,dt as Nd,Qy as Od,Jy as Pd,eF as Qd,qu as Rd,lF as Sd,ml as Td,Yu as Ud,Zu as Vd,Qu as Wd,Ca as Xd,fF as Yd,Mm as Zd,Go as _d,kt as $d,tP as ae,aP as be,nP as ce,lP as de,fP as ee,sP as fe,cP as ge,Kf as he,Et as ie,er as je,qm as ke,yE as le,FE as me,_t as ne,Dt as oe,uP as pe,so as qe,Nt as re,mP as se,xP as te,IP as ue,ac as ve,gP as we,LP as xe,yh as ye,Th as ze,Ut as Ae,vA as Be,EA as Ce,BA as De,OA as Ee,AA as Fe,RA as Ge,kA as He,Dh as Ie,wA as Je,_A as Ke,DA as Le,MA as Me,NA as Ne,K as Oe,HA as Pe,Hh as Qe,GA as Re,UA as Se,Gh as Te,WA as Ue,Cc as Ve,$e as We,co as Xe,$A as Ye,Wh as Ze,Fc as _e,Lc as $e,qA as af,zA as bf,KA as cf,VA as df,XA as ef,jA as ff,YA as gf,ZA as hf,QA as if,JA as jf,vc as kf,Ec as lf,Bc as mf,Oc as nf,e0 as of,We as pf,o0 as qf,t0 as rf,a0 as sf,r0 as tf,n0 as uf,l0 as vf,Re as wf,f0 as xf,s0 as yf,Nr as zf,c0 as Af,Hr as Bf,d0 as Cf,u0 as Df,i0 as Ef,p0 as Ff,Ig as Gf,m0 as Hf,Rc as If,kc as Jf,wc as Kf,hg as Lf,x0 as Mf,I0 as Nf,M as Of,mo as Pf,L0 as Qf,T0 as Rf,v0 as Sf,E0 as Tf,B0 as Uf,O0 as Vf,P0 as Wf,yg as Xf,A0 as Yf,R0 as Zf,k0 as _f,w0 as $f,_0 as ag,uF as bg,iF as cg,Mc as dg,G0 as eg,U0 as fg,Mg as gg,K0 as hg,V0 as ig,Z0 as jg,Q0 as kg,oR as lg,tR as mg,Wc as ng,nR as og,lR as pg,fR as qg,sR as rg,zg as sg,uR as tg,QC as ug,tS as vg,Jt as wg,Yw as xg,JC as yg,eS as zg,wd as Ag,oS as Bg,o1 as Cg,l1 as Dg,Bb as Eg,Rk as Fg,mR as Gg,xR as Hg,_k as Ig,b_ as Jg,C_ as Kg,An as Lg,Rn as Mg,RS as Ng,kS as Og,kn as Pg,DS as Qg,Zo as Rg,Vt as Sg,Nk as Tg,an as Ug,gw as Vg,bw as Wg,Cw as Xg,uu as Yg,GS as Zg,US as _g,WS as $g,R_ as ah,k_ as bh,XS as ch,YS as dh,eu as eh,M_ as fh,N_ as gh,pu as hh,U_ as ih,rn as jh,Ld as kh,nn as lh,Td as mh,$c as nh,gR as oh,qc as ph,Vg as qh,bR as rh,CR as sh,SR as th,yR as uh,Xg as vh,FR as wh,LR as xh,TR as yh,Yg as zh,vR as Ah,Jg as Bh,ER as Ch,hy as Dh,LD as Eh,RR as Fh,wR as Gh,Tw as Hh,vw as Ih,Bd as Jh,Bw as Kh,Qo as Lh,zC as Mh,Aw as Nh,Od as Oh,Qt as Ph,KC as Qh,Rw as Rh,kw as Sh,ww as Th,_w as Uh,Dw as Vh,Mw as Wh,Nw as Xh,Hw as Yh,GR as Zh,$R as _h,qR as $h,zR as ai,la as bi,by as ci,Cy as di,BD as ei,OD as fi,PD as gi,VC as hi,Ad as ii,XC as ji,YC as ki,Ww as li,$w as mi};