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