efficient-storefront-blocks 0.14.0 → 0.15.0

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