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