efficient-storefront-blocks 0.17.1 → 0.18.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 Qn,C as ge,D as be,E as Ze,F as Qe,H as Jn,Ia as ut,Ja as al,K as ha,La as me,M as el,N as ga,Oa as rl,P as ol,Q as tl,Qa as nl,Z as Ce,_ as _e,a as zn,aa as Se,ba as dt,c as Vn,d as ma,h as Yn,i as Eo,k as ct,r as xa,w as Zn,x as Ia,y as Lo}from"./chunk-OW4DJD6T.js";import{a as Kn,c as ee,l as Xn,m as vo,o as jn,v as ba}from"./chunk-EEBHVX6T.js";import{EaselSessionProvider as Cy,useEaselSession as Je}from"efficient-easel/screen/lib/session-context";import{hostLoadRefusalOf as Du,hostUnreachableMessage as Nu,isBackendError as Mu,provideHostFailures as Hu,readHostFailure as Gu,STATUS_UNREACHABLE as Uu,WebsiteBackendError as Ca}from"efficient-easel/screen/lib/backend-error";import{createEaselHost as Ly,DETACHED_EASEL_HOST as By,EaselHostContext as Oy,EaselHostProvider as Py,useEaselHost as ll}from"efficient-easel/screen/lib/host";function W(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return typeof t=="string"&&t?t:o}return o}function fl(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function sl(e,o){return typeof e=="boolean"?e:o}function it(e,o){if(!Array.isArray(e))return o;let t=e.map(a=>typeof a=="string"?a:W(a?.text,"")).map(a=>a.trim()).filter(Boolean);return t.length?t:o}var cl="cart-drawer",wy="cart-drawer";var Wu={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 _y(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function Dy(e){let o=e??{},t=Wu;return{kickerBadge:W(o.kickerBadge,t.kickerBadge),kickerText:W(o.kickerText,t.kickerText),titleLead:W(o.titleLead,t.titleLead),titleAccent:W(o.titleAccent,t.titleAccent),subtitleEmpty:W(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:W(o.subtitleOne,t.subtitleOne),subtitleMany:W(o.subtitleMany,t.subtitleMany),leadTimeValue:W(o.leadTimeValue,t.leadTimeValue),shipsToFallback:W(o.shipsToFallback,t.shipsToFallback),promises:it(o.promises,t.promises),emptyKicker:W(o.emptyKicker,t.emptyKicker),emptyBody:W(o.emptyBody,t.emptyBody)}}var $u=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],Hy={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"},qu={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"},Gy={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 Ku(e){return typeof e=="string"&&Eo.includes(e)?e:null}function dl(e){let o={};for(let t of $u){let a=Ku(e[qu[t]]);a&&(o[t]=a)}return o}var ya="site-footer";var Wy=ya,$y={desktop:!0,tablet:!0,mobile:!0},qy={desktop:!1,tablet:!1,mobile:!1},Sa=1,ul=6,Ky=Array.from({length:ul-Sa+1},(e,o)=>Sa+o),pt={desktop:6,tablet:3,mobile:2},zu={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),Sa),ul);function zy(e){if(typeof e=="number")return zu[De(e)]??{desktop:De(e),tablet:De(e),mobile:De(e)};if(e&&typeof e=="object"){let o=e;return{desktop:De(o.desktop??pt.desktop),tablet:De(o.tablet??pt.tablet),mobile:De(o.mobile??pt.mobile)}}return{...pt}}function Vu(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type==="Footer")??null:null}function Vy(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===Xu)??Vu(e):null}var Xu="SiteFooter",ju="SiteHeader";function Xy(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===ju)??null:null}var Yu="subscribe-popup",eF="subscribe-popup";var Zu=[Yu,ya,cl];function ml(e){return Zu.includes(e)}var Qu=["delay","scroll","exit"],Ju=["all","chosen"],ei=["visit","days","never"],oi=["right","left"],ti={min:0,max:60},ai={min:10,max:90},ri={min:1,max:90},Ta={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,ni=fl,il=sl,xl=it;function mt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Fa(e,o,t){let a=ni(e,t);return Math.min(o.max,Math.max(o.min,Math.round(a)))}function li(e){return typeof e.hideAfter=="string"?mt(ei,e.hideAfter,Ta.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Ta.hideAfter}function fi(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function pl(e,o){if(e==null)return o;let t=a=>a.trim()?a:"";if(typeof e=="string")return t(e);if(typeof e=="object"&&"text"in e){let a=e.text;return typeof a=="string"?t(a):""}return o}function si(e,o){return Array.isArray(e)?xl(e,[]):o}function ci(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 oF(e){let o=e??{},t=Ta;return{metaLabel:A(o.metaLabel,t.metaLabel),issueLabel:pl(o.issueLabel,t.issueLabel),issueNumber:pl(o.issueNumber,t.issueNumber),kicker:A(o.kicker,t.kicker),heading:A(o.heading,t.heading),deck:A(o.deck,t.deck),stats:ci(o.stats,t.stats),formLabel:A(o.formLabel,t.formLabel),formHeading:A(o.formHeading,t.formHeading),formIntro:A(o.formIntro,t.formIntro),firstNameLabel:A(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:A(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:A(o.emailLabel,t.emailLabel),emailPlaceholder:A(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:A(o.interestsLabel,t.interestsLabel),interests:xl(o.interests,t.interests),frequencyLabel:A(o.frequencyLabel,t.frequencyLabel),frequencies:si(o.frequencies,t.frequencies),submitText:A(o.submitText,t.submitText),finePrint:A(o.finePrint,t.finePrint),dismissText:A(o.dismissText,t.dismissText),emailInvalidText:A(o.emailInvalidText,t.emailInvalidText),submitErrorText:A(o.submitErrorText,t.submitErrorText),successHeading:A(o.successHeading,t.successHeading),successBody:A(o.successBody,t.successBody),keepBrowsingText:A(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:il(o.autoOpen,t.autoOpen),autoOpenDelaySec:Fa(o.autoOpenDelaySec,ti,t.autoOpenDelaySec),trigger:mt(Qu,o.trigger,t.trigger),scrollPercent:Fa(o.scrollPercent,ai,t.scrollPercent),showOn:mt(Ju,o.showOn,t.showOn),showOnPages:fi(o.showOnPages),hideAfter:li(o),hideDays:Fa(o.hideDays,ri,t.hideDays),formSide:mt(oi,o.formSide,t.formSide),valuePanelOnPhone:il(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:dl(o)}}import{jsx as di}from"react/jsx-runtime";import{createContext as ui,useCallback as ii,useContext as pi,useState as va}from"react";var Il=ui({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{}});function nF({children:e,editFooter:o}){let[t,a]=va(null),[r,n]=va(null),[l,f]=va(0),s=ii(()=>f(c=>c+1),[]);return di(Il.Provider,{value:{footerBlock:t,setFooterBlock:a,headerGroup:r,setHeaderGroup:n,editFooter:o,refreshToken:l,refreshFooter:s},children:e})}var lF=()=>pi(Il);var hl=["general","commerce","service"],eo=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero Slideshow",set:"general"},{type:"HeroSingle",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"BrandStrip",label:"Brand Strip",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"},{type:"SpecStrip",label:"Spec Strip",set:"general"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"DeliveryOptions",label:"Delivery Options",set:"commerce"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Cards",label:"Cards",set:"general"},{type:"KeyFeatures",label:"Key Features",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Series",label:"Recurring Columns",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"},{type:"DocMetaCards",label:"Document Detail Cards",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Spacer",label:"Spacer",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]}];function sF(){return Object.fromEntries(eo.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var mi={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."},cF=["Grid"],dF=Array.from(new Set([...eo.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(mi)])),uF=Object.fromEntries(eo.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),xi={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",MenuBlock:"service",EmailFormBlock:"service",SocialLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},xt={...xi,...Object.fromEntries(eo.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function gl(e){return Object.prototype.hasOwnProperty.call(xt,e)?xt[e]:void 0}function Ea(e){return Object.keys(xt).filter(o=>xt[o]===e).sort()}var iF=Ea("general"),pF=Ea("commerce"),mF=Ea("service"),Ii="Flex",ye="Box",xF=`${ye}es`;function hi(e){return e==="section"?"Blank section":ye}function IF(e,o,t){return e===Ii?hi(o):t}var Ne=Kn,bl=e=>e.blocks;import{jsx as It}from"react/jsx-runtime";import{createContext as gi,lazy as bi,Suspense as Ci,useContext as Si}from"react";var yi={Link:Vn,Image:zn},Fi=gi(yi);function Cl(){return Si(Fi)}function TF(e){let{Link:o}=Cl();return It(o,{...e})}function Sl(e){let{Image:o}=Cl();return It(o,{...e})}function vF(e){let o=bi(e);return function(t){return It(Ci,{fallback:null,children:It(o,{...t})})}}var oe=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],ht="bottom-left";var Bo={"top-left":"Top left","top-center":"Top center","top-right":"Top right",left:"Left",center:"Center",right:"Right","bottom-left":"Bottom left","bottom-center":"Bottom center","bottom-right":"Bottom right"};function Ti(e){let o=oe.indexOf(Fe(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function vi(e){return 1+Ti(e).band*6}function LF(e){return vi(e)+1}function Fe(e){return oe.includes(e)?e:ht}function BF(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function OF(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function La(e,o){let t=Fe(o);return e.filter(a=>Fe(a?.props?.placement)===t).length}function yl(e){return`${Bo[Fe(e)]} already holds 4 boxes. Move one somewhere else first.`}function Ba(e,o){let t=e.filter(a=>a?.props?.id!==o);return oe.map(a=>{let r=La(t,a)>=4,n=Bo[a];return r?{value:a,label:n,disabled:!0,title:yl(a)}:{value:a,label:n}})}function gt(e,o){let t=o===void 0?ht:Fe(o?.props?.placement);return La(e,t)>=4?yl(t):null}var Fl="HeroGroup";function PF(e){let o=new Map,t=!1,a=e.filter(r=>{let n=Fe(r?.props?.placement),l=(o.get(n)??0)+1;return o.set(n,l),l<=4?!0:(t=!0,!1)});return t?a:e}function Ei(e){return oe.map(o=>{let t=La(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function Oa(e){let o=Ei(e);return o.length===0?null:o.map(({anchor:t,total:a,hidden:r})=>{let n=Bo[t],l=r===1?"1 is not shown":`${r} are not shown`;return`${n} holds ${a} boxes. The published page draws the first 4, so ${l}. ${r===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function AF(e,o){let t=o;if(t?.type!==Fl)return null;let a=t.props?.id===void 0?"":String(t.props.id);return a?gt(Pa(e,a),t):null}function Pa(e,o){let t=Tl(e,o);return t&&t.ownerType===Bi?t.siblings:[]}function RF(e,o){let t=Tl(e,o);return t?t.ancestorTypes.filter(a=>a===Fl).length:Li}var Li=1,Bi="HeroSlide";function Tl(e,o){let t=r=>Array.isArray(r)&&r.length>0&&r.every(n=>!!n&&typeof n=="object"&&typeof n.type=="string"),a=(r,n,l)=>{if(n>12||!r||typeof r!="object")return null;if(t(r)){if(r.some(f=>f?.props?.id===o))return{siblings:r,ownerType:l.at(-1)??null,ancestorTypes:l};for(let f of r){let s=f.type,c=a(f,n+1,[...l,String(s)]);if(c)return c}return null}for(let f of Object.values(r)){let s=a(f,n+1,l);if(s)return s}return null};return a(e,0,[])}import{childSlotsOf as _F,FOOTER_TYPE as bt,HEADER_TYPE as Me,locateNode as vl,missingPinnedTypes as DF,nestsInTree as NF,newNodeId as Oo,pinnedDuplicateIds as MF,pinnedDuplicateIndices as HF,ROOT_ZONE as GF,slotFieldsOf as UF,TREE_MAX_DEPTH as WF}from"efficient-easel/screen/lib/puck/content-tree";import{jsx as Po,jsxs as Xi}from"react/jsx-runtime";import{createContext as ji,useContext as Yi}from"react";import{jsx as oo,jsxs as Ol}from"react/jsx-runtime";import{useEffect as Aa,useRef as Di,useState as Ct}from"react";import{jsx as El,Fragment as Oi,jsxs as Pi}from"react/jsx-runtime";import{useEffect as Ai,useRef as Ll,useState as Ri}from"react";var ki="#t=0.001",wi=2;function _i(e,o){if(e.readyState<wi||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function Bl({src:e,objectPosition:o="50% 50%",onError:t}){let a=Ll(null),r=Ll(null),[n,l]=Ri(!1);return Ai(()=>{let f=a.current,s=r.current;if(n||!f||!s)return;let c=()=>{_i(f,s)&&l(!0)};return c(),f.addEventListener("loadeddata",c),f.addEventListener("seeked",c),()=>{f.removeEventListener("loadeddata",c),f.removeEventListener("seeked",c)}},[n]),Pi(Oi,{children:[El("canvas",{ref:r,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&El("video",{ref:a,src:`${e}${ki}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var Ni=.5;function Pl({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:a=Ni,objectPosition:r="50% 50%",quiet:n=!1}){let l=o||"",f=e||"",[s,c]=Ct(!1),[i,u]=Ct(!1),[p,m]=Ct(!1),[x,I]=Ct(!1),g=Di(null);Aa(()=>{c(!1),u(!1),m(!1)},[e,o]),Aa(()=>{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)},[]),Aa(()=>{let y=g.current;if(!y)return;let b=()=>{y.playbackRate=a};return b(),y.addEventListener("loadedmetadata",b),()=>y.removeEventListener("loadedmetadata",b)},[e,a]);let L=Xn(l);return Ol("div",{className:"absolute inset-0 z-[1]",children:[oo("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),l&&(L?oo("img",{src:l,alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",style:{display:s?"none":"block",objectPosition:r},onError:()=>c(!0)},l):oo(Sl,{src:l,alt:"",fill:!0,priority:!0,sizes:"100vw",className:"z-[2] object-cover",style:{display:s?"none":"block",objectPosition:r},onError:()=>c(!0)},l)),t&&!n&&f&&x&&!i&&Ol("video",{ref:g,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:r},onError:()=>u(!0),children:[jn(f)&&oo("source",{src:f.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),oo("source",{src:f,type:"video/mp4"})]},f),t&&n&&f&&x&&!p&&(!l||s)&&oo(Bl,{src:f,objectPosition:r,onError:()=>m(!0)},f)]})}var Al=["top","middle","bottom"],Rl=["left","center","right"],kl="bottom",wl="left",Mi={top:"Top",middle:"Middle",bottom:"Bottom"},Hi={left:"Left",center:"Center",right:"Right"};var JF="Up and down",eT="Sideways",Gi={top:"flex-start",middle:"center",bottom:"flex-end"},Ui={left:"flex-start",center:"center",right:"flex-end"},Wi="--sf-hero-phone-y",$i="--sf-hero-phone-x";function qi(e){return Al.includes(e)?e:kl}function Ki(e){return Rl.includes(e)?e:wl}function _l(e,o){let t=qi(e),a=Ki(o),r={};return t!==kl&&(r[Wi]=Gi[t]),a!==wl&&(r[$i]=Ui[a]),r}function oT(){return Al.map(e=>({label:Mi[e],value:e}))}function tT(){return Rl.map(e=>({label:Hi[e],value:e}))}var zi="#0A0A0A",Vi=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function Dl(e){let o=e.trim().replace(/^#/,""),t=o.length===3?o.split("").map(r=>r+r).join(""):o;if(!/^[0-9a-fA-F]{6}$/.test(t))return null;let a=Number.parseInt(t,16);return`${a>>16&255},${a>>8&255},${a&255}`}function Nl(e){return e==null?!0:e!==!1}function Ml(e){let o=(e?Dl(e):null)??Dl(zi);return`linear-gradient(180deg, ${Vi.map(([t,a])=>`rgba(${o},${a}) ${t}%`).join(", ")})`}var Ra=ji({});function uT({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}=Yi(Ra),B=t==="video",G=B?vo(a):void 0,ie=B?vo(n):vo(a)??vo(n),Z=typeof r=="number"?r/100:1;return Xi("section",{className:u?`relative h-full w-full overflow-hidden ${u}`:"relative h-full w-full overflow-hidden",style:p,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":G?"video":"still",children:[Po(Pl,{videoSrc:G,posterSrc:ie,showVideo:B,playbackRate:Z,objectPosition:l,quiet:L}),s>0&&Po("div",{className:"absolute inset-0 z-[2]",style:{background:f,opacity:Math.min(Math.max(s,0),100)/100}}),Nl(I)&&Po("div",{className:"absolute inset-0 z-[2]",style:{background:Ml(g),...x!==void 0?{opacity:x/100}:null}}),Po("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{color:"var(--overlay-fg)",..._l(y,b)},children:c&&Po(c,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var Hl=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));var to="content",_="Flex",Zi="Text & media",Qi="Layout & structure",Ji=[{type:"Eyebrow",label:"Eyebrow"},{type:"Heading",label:"Heading"},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"ButtonBlock",label:"Button"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats"},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"}].map(e=>({...e,group:Zi})),ep=(eo.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Qi})),Gl=[...Ji,...ep],ka=[{type:"Eyebrow",label:"Eyebrow"},{type:"Heading",label:"Heading"},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"ButtonBlock",label:"Button"},{type:"HeroGroup",label:ye}],mT=ka.map(e=>e.type),op=1,tp=ka.filter(e=>e.type!=="HeroGroup");function ap(e){return e<op?ka:tp}var rp={Flex:{slot:to,choices:()=>Gl},Grid:{slot:to,choices:()=>Gl},HeroGroup:{slot:to,choices:ap}};function Ul(e,o=0){let t=rp[e];return t?{slot:t.slot,choices:t.choices(o)}:null}var np="ImageBlock",lp=3,St=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:Oo(e),...t}}),fp=e=>({...e?.(_)??{},direction:"column",[to]:[St(np,e),St(_,e,{direction:"column",[to]:[St("Heading",e),St("Text",e)]})]}),Te={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>Hl.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${ye.toLowerCase()}`,seeds:()=>[],addBlocked:gt,notice:Oa},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${ye.toLowerCase()}`,seeds:()=>[],addBlocked:gt,notice:Oa},ProcessSteps:{slot:"boxes",childType:_,addLabel:`Add ${ye.toLowerCase()}`,seeds:e=>Array.from({length:lp},()=>fp(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function ST(e){for(let[o,t]of Object.entries(e)){if(o in Te&&Te[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);Te[o]=t}}function yT(e,o){let t=Te[e];return t?{slot:t.slot,children:t.seeds(o).map(a=>({type:t.childType,props:{id:Oo(t.childType),...a}}))}:null}var sp={general:!0,commerce:!0,service:!0};function wa(e){let o=e?.sets;return o?Object.fromEntries(hl.map(t=>[t,o.includes(t)])):sp}function ET(e=ee()){return wa(e.blocks)}function U(e,o,t,a={}){return{type:e,props:{...o(e),id:t(e),...a}}}var cp={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 Wl(e){return cp[e]??null}import{blockTypesIn as _a}from"efficient-easel/screen/lib/puck/block-types-in";var $l=()=>({}),ql=new Map;function dp(e){let o=ql.get(e);if(o)return o;let t=new Set,a=Te[e];if(a)for(let l of a.seeds($l))for(let f of _a({type:a.childType,props:l}))t.add(f);let r=Wl(e);if(r){let l=0;for(let f of _a(r($l,s=>`${s}-${l+=1}`)))t.add(f)}t.delete(e);let n=[...t].sort();return ql.set(e,n),n}function up(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=wa(e),t=e.allow?new Set(e.allow):null,a=new Set(e.deny??[]),r=new Set(Object.keys(e.host??{})),n=s=>{if(a.has(s))return!1;if(r.has(s))return!0;let c=gl(s);return!c||!o[c]?!1:t?t.has(s):!0},l=new Map,f=s=>{let c=l.get(s);if(c!==void 0)return c;l.set(s,!1);let i=n(s)&&dp(s).every(f);return l.set(s,i),i};return{sets:o,offers:f}}var ip="block-offer";function Da(e=ee()){return e.cache(ip,()=>up(bl(e)))}function HT(e,o=ee()){let t=Da(o);return t?t.offers(e):!0}var yt="SiteHeader",Na="SiteFooter",Kl="sections",UT=[yt,Na],WT=e=>e===yt||e===Na,$T=e=>`${e}:${Kl}`;function qT(e,o,t=[]){return{type:e,props:{id:o,[Kl]:t}}}var pp=new Set(["Footer",yt,Na]);function KT(e){let o=new Set,t=!1,a=e.filter(r=>{let n=r?.type??"";return n==="Header"?(t=!0,!1):pp.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?a:e}function zT(e,o){return e.some(t=>t?.type===o.type)?e:o.type===yt?[o,...e]:[...e,o]}import{PreviewPartsProvider as jT,usePreviewParts as YT}from"efficient-easel/screen/components/PreviewPartsContext";import{jsx as mp}from"react/jsx-runtime";import{createContext as xp,useContext as Ip,useMemo as hp,useState as gp}from"react";var bp={partStyle:null,setPartStyle:()=>{}},zl=xp(bp);function ev({children:e}){let[o,t]=gp(null),a=hp(()=>({partStyle:o,setPartStyle:t}),[o]);return mp(zl.Provider,{value:a,children:e})}function ov(){return Ip(zl)}import{applyMark as fv,markupTools as sv,MARKUP_TOOLS as cv,COPY_FIELD_TOOLS as dv,STOREFRONT_MARKUP as uv,tokenizeInline as iv,stripInline as pv,isSafeLinkHref as mv}from"efficient-easel/markup";import{applyMark as Cp,markedAt as Sp,markupTools as yp,MARKUP_TOOLS as Fp,parseMarkup as Tp,RETIRED_MARKS as vp,STOREFRONT_MARKUP as Ep,tokenizeInline as Iv}from"efficient-easel/markup";var Ft=["highlight","strong","quiet"],He={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},le={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},Vl=Object.fromEntries(Ft.map(e=>[le[e].kind,e])),Xl="data-sf-ws",Ha=["accent","text","labels"],jl={accent:"Accent",text:"Text",labels:"Labels"},ve={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"};var Ma={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},rv={highlight:{...Ma},strong:{...Ma},quiet:{...Ma}};var Zl=Ft.map(e=>({open:le[e].delimiter,close:le[e].delimiter,kind:le[e].kind})),Ql=[{style:le.highlight.kind,label:He.highlight,title:`${He.highlight} word style`},{style:le.strong.kind,label:He.strong,title:`${He.strong} word style`},{style:le.quiet.kind,label:He.quiet,title:`${He.quiet} word style`}],Lp=new Set(Zl.map(e=>e.open)),Jl=[...Ep.filter(e=>!Lp.has(e.open)),...Zl];function Ga(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Ua(e){return Tp(typeof e=="string"?e:"",Jl)}var Bp=["quiet"],Yl=[...Fp.map(e=>e.style).filter(e=>!Bp.includes(e)&&!vp.includes(e)),...Ql.map(e=>e.style)].filter(e=>Jl.some(o=>o.kind===e));function ef(){return[...yp(Yl),...Ql].filter(e=>Yl.includes(e.style))}var of=Object.fromEntries(Ft.map(e=>[le[e].kind,le[e].delimiter]));function tf(e,o,t,a){let r=of[a];if(!r)return Cp(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 af(e,o,t,a){let r=of[a];return r?o>=r.length&&e.slice(o-r.length,o)===r&&e.slice(t,t+r.length)===r:Sp(e,o,t,a)}function Ao(e){return Ua(e).map(o=>Ga(o)+rf(o.children)).join(`
3
- `)}function rf(e){return e.map(o=>o.kind==="text"?o.text:rf(o.children)).join("")}var te={min:1e3,max:2e3,step:50,default:1600};function nf(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function bv(e,o){if(e!==!1)return null;let t=typeof o=="number"?o:te.default;return nf(t)}var lf="--sf-site-width",Tt=`var(${lf},${te.default}px)`,Cv=`max-w-[${Tt}]`,Sv=`max-w-[${te.default}px]`;function Op(e){return typeof e!="number"||!Number.isFinite(e)?te.default:Math.round(Math.min(Math.max(e,te.min),te.max))}function yv(e){let o=Op(e);return o===te.default?{}:{[lf]:`${o}px`}}var Ro={min:0,max:80,step:4,default:40},ff="--sf-site-gutter",$=`var(${ff},${Ro.default}px)`,Pp=`px-[${$}]`;var Ee={md:`min(24px,${$})`,sm:`min(20px,${$})`,frame:`min(24px,${$})`,tabs:`min(16px,${$})`},Fv=[[`max-[1100px]:px-[${Ee.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${Ee.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${Ee.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Ee.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${Ee.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${Ee.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${Ee.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${Ee.sm}]`,"max-[640px]:px-5"],[`min-[800px]:px-[${$}]`,"min-[800px]:px-10"],[`max-[720px]:px-[min(24px,${$})]`,"max-[720px]:px-6"],[`max-[800px]:-mx-[min(20px,${$})]`,"max-[800px]:-mx-5"],[`max-[720px]:-mx-[min(20px,${$})]`,"max-[720px]:-mx-5"],[`-mx-[${$}]`,"-mx-10"],[Pp,"px-10"]];function Ap(e){return typeof e!="number"||!Number.isFinite(e)?Ro.default:Math.round(Math.min(Math.max(e,Ro.min),Ro.max))}function Tv(e){let o=Ap(e);return o===Ro.default?{}:{[ff]:`${o}px`}}var vt=`min(var(--sf-page-cap,${Tt}),${Tt})`,vv=`max-w-[${vt}]`,Ev=`max-w-[min(var(--sf-page-cap,${te.default}px),${te.default}px)]`,sf="--sf-hero-cap",Rp=`var(${sf},none)`,Lv=`max-w-[${Rp}]`,Wa="--sf-hero-bleed-m",$a="--sf-hero-bleed-w",Bv=`var(${Wa},calc(50% - 50vw))`,Ov=`var(${$a},100vw)`,Pv=`mx-[var(${Wa},calc(50%_-_50vw))]`,Av=`w-[var(${$a},100vw)]`,qa="--sf-hero-chrome-x",Ka="--sf-hero-chrome-cap";function Rv(e){return e===!0?{[sf]:vt,[Wa]:"auto",[$a]:"100%",[qa]:"24px",[Ka]:"none"}:{}}var za=`calc(${Tt} - ${$}*2)`,kv=`max-w-[${za.replace(/ /g,"_")}]`;var kp="--sf-chrome-cap",wp=`var(${kp},${za})`,wv="data-page-width";function _v(e){return e==="full"?"full":null}function Dv(e){return e==="full"?null:nf(e==="content"?za:wp)}function Nv(e){if(e==="full")return"full";if(e==="content")return"content"}var cf="homepage";function df(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var uf=[{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 pf(e){return e.offersCommerce&&e.offersService?uf:uf.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function ko(e){return e===cf?"/":`/${e}`}function mf(e){return`/journal/${e}`}function $v(e){return`/wheels/${e}`}function xf(e,o){return`${ko(e)}#${o}`}function _p(e){return df(e)}function Dp(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function If(...e){let o=new Set,t=[];for(let a of e)for(let r of a?.content??[]){let n=Dp(r?.props?.anchor);if(!n)continue;let l=_p(n);!l||o.has(l)||(o.add(l),t.push({slug:l,name:n}))}return t}var Np=["http","https","mailto","tel"];function Va(e){let o=e.trim();if(!o||/\s/.test(o))return!1;let t=/^([a-z][a-z0-9+.-]*):/i.exec(o);return!t||Np.includes(t[1].toLowerCase())}function qv(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 Mp="sf-section-accent",hf="Color",gf=new Set(["CategoryBar","DocTabs"]),zv=new Set(["Flex"]),Hp=0;function Xa(e){return e===-1?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Hp}function Vv(e){return e??-1}function Gp(e){let o=`--theme-preset-${e}`;return{"--sf-sec-accent":`var(${o}-accent)`,"--sf-sec-accent-2":`var(${o}-accent-2)`,"--sf-sec-accent-ink":`var(${o}-accent-ink)`,"--sf-sec-bg":`var(${o}-bg, var(--theme-bg))`,"--sf-sec-fg":`var(${o}-fg, var(--theme-fg))`,"--sf-sec-surface":`var(${o}-surface, var(--theme-surface))`,"--sf-sec-surface-2":`var(${o}-surface-2, var(--theme-surface-2))`,"--sf-sec-line":`var(${o}-line, var(--theme-line))`,"--sf-sec-muted":`var(${o}-muted, var(--theme-muted))`}}function Xv(e){let o=Xa(e.sectionAccent);return o===null?null:{className:Mp,style:Gp(o)}}var Up=["column","row","tabs"],bf="Direction",Wp={column:"Stacked",row:"One row",tabs:"Tabs"},Cf={Flex:Up,HeroGroup:["column","row"]},$p={Flex:"row",HeroGroup:"column"},qp={column:"flex-col",row:"flex-row",tabs:"flex-col"};function Et(e,o){return Cf[e].includes(o)?o:$p[e]}function Yv(e,o){return qp[Et(e,o)]}function Sf(e){return Cf[e].map(o=>({label:Wp[o],value:o}))}import{ScreenDocumentContext as Lt,ScreenDocumentProvider as Jv,useScreenDocument as yf}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as w,jsxs as Ge,Fragment as hm}from"react/jsx-runtime";import{useCallback as gm,useContext as bm,useEffect as Cm,useId as Df,useRef as wf,useState as _f}from"react";import{ThemeIcon as Sm}from"efficient-easel/icons";import{SettingsField as ym}from"efficient-easel/panel";import{jsx as C,jsxs as Be,Fragment as am}from"react/jsx-runtime";import{SettingsField as Qa,SettingsGroupSub as rm}from"efficient-easel/panel";import{Button as Za}from"efficient-shell/ui";import{jsx as Le,jsxs as vf}from"react/jsx-runtime";import{SettingsField as Yp}from"efficient-easel/panel";import{AccentIcon as Zp}from"efficient-easel/icons";import{Tooltip as Qp}from"efficient-shell/ui";import{jsx as ao,jsxs as zp}from"react/jsx-runtime";import{ColorPicker as Tf,HexInput as Vp}from"efficient-shell/ui";import{typedHex as ja}from"efficient-easel/pick";import{typedHex as Kp}from"efficient-easel/pick";function Ff(e){let o=new Set,t=[];return Lo(e).themes.forEach((a,r)=>{let n=[[`Theme ${r+1} main color`,a.accent],[`Theme ${r+1} text color`,a.text],[`Theme ${r+1} background`,a.background]];for(let[l,f]of n){let s=f?Kp(f):null;!s||o.has(s)||(o.add(s),t.push({name:l,value:s}))}}),t}function xe({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l,ariaLabel:f}){return ao(jp,{value:e,onChange:o,label:f??t,id:a,caption:r,inherited:n,after:l})}function Xp(){let{theme:e}=me();return Ff(e).map(o=>({value:o.value,label:o.name}))}function jp({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l}){let f=Xp(),s=e?null:ja(n??""),c=r!==void 0&&(!e||ja(r)!==ja(e))?r:null,i=u=>{u!==e&&o(u)};return zp("div",{className:"sf-colour",children:[ao(Tf,{id:a,value:e,onChange:i,label:t,presets:f,fallback:s??void 0,size:"sm",align:"end"}),c!==null?ao("span",{className:"sf-colour-caption",children:c}):ao("span",{className:"sf-colour-hexwrap",children:ao(Vp,{value:e||s||"",onChange:i,label:`${t} hex code`,placeholder:e||s?void 0:"Not set",className:s?"sf-colour-hex is-inherited":"sf-colour-hex"})}),l]})}function cE({value:e,onChange:o,label:t}){return ao(Tf,{value:e,onChange:a=>{a&&a!==e&&o(a)},label:t,size:"sm",align:"end"})}function Ya(e){return ge(e).background}function Jp(e){let o=be(e.accent,Ya(e));return o===null?null:{ratio:o,grade:Qe(o)}}function em(e){let o=Ya(e),t=be(e.accent,o);return t===null?[]:Jn(e.accent).filter(a=>{let r=be(a,o);return r!==null&&r>t&&Qe(r)==="good"})}var om={good:"Easy to read","large-only":Ze["large-only"],hard:Ze.hard};function Ef({value:e,onChange:o}){let t=Jp(e),a=t?.grade,r=t&&t.grade!=="good"?em(e):[];return Le(Yp,{label:"Main color",icon:Le(Zp,{}),hint:t?om[t.grade]:void 0,action:Le(xe,{value:e.accent,onChange:n=>o({...e,accent:n}),label:"Main color"}),children:r.length>0?Le("div",{className:"w-full min-w-0",children:vf("div",{className:"sf-readability",children:[Le("p",{className:"sf-readability-advice",children:tm(a,!0)}),Le("div",{className:"sf-readability-suggestions",children:r.map(n=>{let l=be(n,Ya(e));return Le(Qp,{content:`Use ${n.toUpperCase()}`,children:vf("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[Le("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),l?`${l.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function tm(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 nm,GroundIcon as lm,LayoutIcon as fm,SquareIcon as sm,TextSmallIcon as cm,TypeIcon as Lf}from"efficient-easel/icons";var wo=e=>`Theme ${e+1}`;function Bf({colors:e}){let o=ge(e),t=ha(e)??o.accent;return Be("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[C("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:"label"}),Be("span",{className:"sf-theme-headline",children:["Heading ",C("span",{style:{color:o.accent},children:"accent"})]}),C("span",{className:"sf-theme-body",children:"body text"}),Be("span",{className:"sf-theme-row",children:[C("span",{className:"sf-theme-btn",style:{background:t,color:ga(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(Lf,{}),"Label color":C(cm,{}),Background:C(lm,{}),"Panels & cards":C(fm,{}),Borders:C(sm,{}),"Button color":C(nm,{}),"Button text color":C(Lf,{})};function dm({label:e,colorKey:o,value:t,onChange:a,idPrefix:r="sf-theme-ink"}){let n=`${r}-${o}`;return C(Qa,{label:e,icon:Ja[e],htmlFor:n,action:C(xe,{id:n,label:e,value:t,onChange:l=>a(o,l)})})}function um({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(Qa,{label:"Button color",icon:Ja["Button color"],htmlFor:r,action:C(xe,{id:r,label:"Button color",value:l,caption:n?l:"Main",onChange:t})})}function im({colors:e,accent:o,onChange:t,idPrefix:a="sf-theme-ink"}){let r=`${a}-button-ink`,n=el(e),l=ga(e,o),f=ha(e)??o,s=Qe(be(l,f)??0);return C(Qa,{label:"Button text color",icon:Ja["Button text color"],hint:n&&s!=="good"?`${Ze[s]} on the button`:void 0,htmlFor:r,action:C(xe,{id:r,label:"Button text color",value:l,caption:n?l:"Auto",onChange:t})})}var pm=[{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 er({colors:e,onChange:o,idPrefix:t}){let a=ge(e);return C(am,{children:pm.map(r=>"colour"in r?C(Ef,{value:e,onChange:o},"colour"):"group"in r?C(rm,{title:r.group},r.group):"button"in r?C(um,{value:e.button,accent:a.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in r?C(im,{colors:e,accent:a.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):C(dm,{label:r.label,colorKey:r.key,value:a[r.key],onChange:(n,l)=>o({...e,[n]:l}),idPrefix:t},r.key))})}function Of({index:e,colors:o,selected:t,role:a="radio",open:r,editable:n=!0,onPick:l,onEdit:f,onChangeColors:s}){let c=ge(o),i=wo(e),u=e<Ia.length&&!o.brandInk?Ia[e]:null,p=Qe(be(c.text,c.background)??0),m=u?JSON.stringify(o)!==JSON.stringify(u):!1,x=r!==void 0;return Be("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[C("button",{type:"button",role:a,"aria-checked":a==="radio"?t:void 0,"aria-selected":a==="option"?t:void 0,"aria-label":i,className:"sf-theme-pick",onClick:l,children:C(Bf,{colors:o})}),Be("div",{className:"sf-theme-foot",children:[C("span",{className:"sf-theme-name",children:i}),p!=="good"&&C("span",{className:"sf-theme-warn",children:Ze[p]}),n&&f&&C(Za,{variant:r?"primary":"secondary",size:"sm",className:"sf-theme-edit","aria-expanded":x?r:void 0,"aria-controls":x?`sf-theme-colours-${e}`:void 0,"aria-label":`${r?"Done":"Edit"} ${i}`,onClick:f,children:r?"Done":"Edit"})]}),r&&Be("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[C(er,{colors:o,onChange:I=>s?.(I)}),u&&C(Za,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!m,onClick:()=>s?.({...u}),children:m?`Reset ${i} to the preset`:"Not changed"})]})]})}function Pf({colors:e,name:o,nameId:t,open:a,menuId:r,labelId:n,buttonRef:l,onClick:f,onKeyDown:s,onEdit:c}){return Be("div",{className:"sf-secttheme-btn",children:[C("button",{ref:l,type:"button",className:"sf-theme-pick","aria-expanded":a,"aria-controls":r,"aria-labelledby":`${n} ${t}`,onClick:f,onKeyDown:s,children:e?C(Bf,{colors:e}):C("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Be("div",{className:"sf-theme-foot",children:[C("span",{id:t,className:"sf-theme-name",children:o}),c&&C(Za,{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 or,useEffect as mm,useRef as Bt}from"react";function Af(e=ee()){return(o,t,a)=>{let r=Ne(e).theme;return r?r.update(o,a?{siteId:a}:void 0):Promise.reject(new Ca("invalid","This backend stores no site theme."))}}function Rf(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function xm(e,o=Af()){let{themeFromDocument:t,token:a,siteId:r,patch:n}=e,l=Rf({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 kf({themeFromDocument:e,tokenRef:o,siteId:t,onResult:a}){let r=Bt(null),n=Bt({}),l=Je(),f=Bt(a);f.current=a;let s=Bt(null),c=or(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=or(async()=>{r.current&&(clearTimeout(r.current),r.current=null);let p=n.current;n.current={};let m=await xm({themeFromDocument:e,token:o?.current,siteId:t,patch:p},Af(l));return c(m),m},[e,o,t,c,l]),u=or((p,m=!1)=>{let x=Rf({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 mm(()=>()=>{i()},[i]),{persist:u,flush:i}}var Fm="Follow the page",WE="Follow the slideshow",Tm=e=>`Editing ${e} changes it everywhere.`;function vm({colors:e}){if(!e)return w("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=ge(e);return Ge("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[w("i",{style:{background:o.background}}),w("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function Em({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(hm,{children:[Ge("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(-1),children:[w(vm,{}),w("span",{className:"sf-secttheme-name",children:n})]}),w("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&w("p",{className:"sf-secttheme-oncard",role:"presentation",children:`${wo(o)} is on this section`}),e.map((l,f)=>f===o?null:w(Of,{role:"option",index:f,colors:l,selected:!1,onPick:()=>t(f),onEdit:()=>a(f)},f))]})}function Lm({index:e,colors:o,onChange:t,onDone:a}){let r=wo(e),n=Df();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(er,{colors:o,onChange:t,idPrefix:n})}),w("p",{className:"sf-secttheme-warn",children:Tm(r)})]})}function Nf({value:e,onChange:o,followLabel:t,hint:a}){let{theme:r,setTheme:n}=me(),l=Lo(r),f=bm(Lt),s=f?.tokenRef,c=f?.siteId??null,i=!f?.capabilities?.hasSiteTheme,{persist:u,flush:p}=kf({themeFromDocument:i,tokenRef:s,siteId:c}),m=Lo(l),x=m.themes,I=Xa(e),g=I!==null?x[I]:void 0,L=g??(x.length?Qn(m):void 0),[y,b]=_f(!1),[B,G]=_f(null),ie=wf(null),Z=wf(null),Q=Df(),F=gm(()=>{b(!1),G(null)},[]);Cm(()=>{if(!y&&B===null)return;let k=Ke=>{ie.current&&!ie.current.contains(Ke.target)&&(p(),F())};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[y,B,F,p]);let V=k=>{o(k),F()},nt=k=>{if(B===null)return;let Ke=x.map((Ve,Xe)=>Xe===B?k:Ve),ze={...m,themes:Ke};n(ze),u({selected_preset:ze.selected,theme_presets:ze.themes})};return Ge("div",{className:"sf-secttheme",ref:ie,children:[w(ym,{label:"Theme",icon:w(Sm,{}),labelId:`${Q}-label`,hint:a,children:w(Pf,{colors:L,onEdit:I!==null?()=>{G(I),b(!1)}:void 0,name:g?wo(I):t??Fm,nameId:`${Q}-value`,labelId:`${Q}-label`,open:y,menuId:Q,buttonRef:Z,onClick:()=>{G(null),b(k=>!k)},onKeyDown:k=>{k.key==="Escape"&&(y||B!==null)&&(k.preventDefault(),F())}})}),y&&B===null&&w("div",{onKeyDown:k=>{k.key==="Escape"&&(k.preventDefault(),F(),Z.current?.focus())},children:w(Em,{themes:x,value:I,onPick:V,onEdit:k=>{G(k),b(!1)},menuId:Q,followLabel:t})}),B!==null&&x[B]&&w(Lm,{index:B,colors:x[B],onChange:nt,onDone:()=>{p(),F(),Z.current?.focus()}})]})}import{jsx as T,Fragment as fe,jsxs as se}from"react/jsx-runtime";import{TitleIcon as Bm,ButtonIcon as Om,DollarIcon as Pm,HashIcon as Am,LinkIcon as Rm,NoteIcon as km,TagIcon as wm,TextLinesIcon as _m}from"efficient-easel/icons";var Mf={body:_m,button:Om,link:Rm,label:wm,number:Am,price:Pm,note:km,title:Bm},Hf={eyebrow:se(fe,{children:[T("path",{d:"M5 6.5h5"}),T("path",{d:"M5 12.5h14"}),T("path",{d:"M5 18h11"})]}),heading:se(fe,{children:[T("path",{d:"M6.5 5v14"}),T("path",{d:"M17.5 5v14"}),T("path",{d:"M6.5 12h11"})]}),intro:se(fe,{children:[T("path",{d:"M4 5.5v13"}),T("path",{d:"M8 7.5h12"}),T("path",{d:"M8 12h12"}),T("path",{d:"M8 16.5h8"})]}),value:se(fe,{children:[T("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),T("path",{d:"M6.5 12h7"})]}),name:se(fe,{children:[T("path",{d:"M6 3.5v17"}),T("path",{d:"M6 5h11.5l-2.6 3.6L17.5 12H6z"})]}),date:se(fe,{children:[T("rect",{x:"4",y:"5.5",width:"16",height:"15",rx:"2"}),T("path",{d:"M4 10.5h16"}),T("path",{d:"M9 3.2v4.4"}),T("path",{d:"M15 3.2v4.4"})]}),caption:se(fe,{children:[T("rect",{x:"3.5",y:"4.5",width:"17",height:"11",rx:"2"}),T("path",{d:"M3.5 12.8l4.2-3.2 3.6 2.8 3.4-2.4 5.8 4"}),T("path",{d:"M6.5 19.5h11"})]}),quote:se(fe,{children:[T("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),T("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:se(fe,{children:[T("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),T("path",{d:"M8 9.5h8"}),T("path",{d:"M12 9.5v5"})]}),meta:se(fe,{children:[T("path",{d:"M4 7h16"}),T("path",{d:"M4 14h3.5"}),T("path",{d:"M10.5 14h3"}),T("path",{d:"M17 14h3"})]})};function tr({noun:e,size:o=14,strokeWidth:t=1.8,className:a,style:r}){let n=Mf[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:Hf[e]})}var zE=Object.keys(Mf);var VE=Object.keys(Hf);var Dm="#ffffff",Nm=/^#[0-9a-fA-F]{6}$/;function ar(e){return Mm(e)?e:Dm}function Mm(e){return typeof e=="string"&&Nm.test(e)}function jE(e){return{"--bg":ar(e)}}import{jsx as _o,jsxs as Hm}from"react/jsx-runtime";import{LinkPicker as Gm}from"efficient-easel/fields";import{SettingsField as Um}from"efficient-easel/panel";import{LinkIcon as Wm}from"efficient-easel/icons";import{useEffect as $f,useMemo as rr,useRef as $m,useState as Ot}from"react";function Gf(){return ee().auth.token}var ro={choosePage:"Choose a page",chooseSection:"Choose a section",noSections:"No section anchors yet",sectionHint:"Jumps to a section on that page.",choosePost:"Choose a post",chooseProduct:"Choose a product"};function Uf(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 Wf(e,o){let t=e.pages.map(c=>({value:ko(c.slug),label:c.title})),a=o?.pageOptions?o.pageOptions(t):t,r=a.map(c=>c.value),n=e.pages.map(c=>({label:c.title,options:If(...c.docs).map(i=>({value:xf(c.slug,i.slug),label:i.name}))})).filter(c=>c.options.length>0),l=c=>{switch(c){case"page":return{type:"select",options:a,placeholder:ro.choosePage};case"anchor":return{type:"groups",groups:n,placeholder:n.length?ro.chooseSection:ro.noSections};case"blog":return{type:"select",options:e.posts.map(i=>({value:mf(i.slug),label:i.title||i.slug})),placeholder:ro.choosePost};case"product":return{type:"select",options:e.products.map(i=>({value:i.href,label:i.name||i.href})),placeholder:ro.chooseProduct};case"custom":return{type:"text"}}},f=pf(e.offers).map(c=>({value:c.value,label:c.label,target:l(c.value),...c.value==="anchor"?{hint:ro.sectionHint}:{},...c.value==="blog"||c.value==="product"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:f,rules:{kindOf:c=>Uf(c,r),targetOf:c=>c,readFilter:()=>null,withFilter:c=>c,isSafe:Va}};let s=c=>{let i=o.withFilter(c,null);return o.listingPaths.includes(i)?i:c};return{kinds:f,rules:{kindOf:c=>Uf(c,r,{listingPaths:o.listingPaths,targetOf:s}),targetOf:s,readFilter:o.readFilter,withFilter:o.withFilter,isSafe:Va},filtersFor:c=>o.listingPaths.includes(c)?o.filtersFor(c):null}}function qf(e){let o=new Map;return(t="")=>{let a=Gf(),r=o.get(t);if(!r||r.token===null&&a!==null){let n=a||!ee().usesBridgedToken?e(a??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:a}),n}return r.promise}}var qm=qf(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}))}),Km=qf(async(e,o)=>await Ne().blog?.posts(o?{siteId:o}:void 0)??[]);function zm({value:e,onChange:o,label:t="Link",data:a,filters:r}){let n=rr(()=>Wf(a,r),[a,r]);return _o(Um,{label:t,icon:_o(Wm,{}),children:_o(Gm,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:t})})}function Kf({value:e,onChange:o,label:t="Link"}){let a=typeof e=="string"?e:"",{siteId:r,capabilities:n}=yf(),{offersCommerce:l,hasBlog:f}=n,[s,c]=Ot([]),[i,u]=Ot([]),[p,m]=Ot([]),[x,I]=Ot(null),g=Je().chrome,L=g?.products?.list,y=g?.linkFilters,b=y?void 0:g?.linkRow,B=$m(!0);$f(()=>(B.current=!0,()=>{B.current=!1}),[]),$f(()=>{let F=!0;return qm(r??void 0).then(V=>F&&B.current&&c(V)),f&&Km(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=rr(()=>({pages:s.filter(F=>!ml(F.slug)).map(F=>({slug:F.slug,title:F.label,docs:[F.layout]})),posts:f?i.map(F=>({slug:F.slug,title:F.title})):[],products:l?p.map(F=>({href:F.href,name:F.name})):[],offers:{offersCommerce:l,offersService:f}}),[s,i,p,l,f]),ie=rr(()=>x?x(G.pages):null,[x,G]),Z=G.pages.map(F=>ko(F.slug)),Q=l&&b&&(a==="/"||Z.includes(a))?b:void 0;return Hm("div",{children:[_o(zm,{value:a,onChange:o,label:t,data:G,filters:ie}),Q&&_o(Q,{value:a,onChange:o,pages:s})]})}var Xf="sf.gapContainer",Oe={min:-32,max:64,step:2},jf={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},Pt={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},Vm=new Set(["Events","GalleryB"]);function lr(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Oe.min)return o;if(typeof o=="string"){let a=jf[e]?.[o];if(typeof a=="number")return a}return typeof t=="number"&&Number.isFinite(t)?t:Pt[e]}var Xm="sf-gap-overlap",jm="--sf-gap-overlap",Yf="--sf-block-gap",Ym="--sf-block-gap-rem",nr={min:0,max:Oe.max,step:Oe.step};function Zm(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),nr.min),nr.max);return o-o%nr.step}function xL(e){let o=Zm(e);return o===null?{}:{[Yf]:`${o}px`,[Ym]:`${o/16}rem`}}var zf="sf-gap-zone",Vf="--sf-gap-len";function fr(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Oe.min?!0:typeof o=="string"&&typeof jf[e]?.[o]=="number"}var Qm={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function IL(e,o,t){if(!fr(e,o)){let r=`${Pt[e]}px`,n=Vm.has(e)?`var(--sf-card-gap, ${r})`:r;return{className:` ${zf}`,style:{[Vf]:`var(${Yf}, ${n})`}}}let a=lr(e,o);return a>=0?{className:` ${zf}`,style:{[Vf]:`${a}px`}}:{className:` ${Xm} ${Qm[t]}`,style:{gap:"0px",[jm]:`${-a/2}px`}}}import{jsx as d,jsxs as Re,Fragment as we}from"react/jsx-runtime";import{cloneElement as UI,useId as WI,useRef as Hr,useState as xc}from"react";import{useEasel as mo}from"efficient-easel/easel";import{hidableText as Zf,readHidable as Pe}from"efficient-easel/screen/lib/puck/hidable";var Qf="50% 50%";var lo=e=>e<0?0:e>100?100:Math.round(e);function sr(e){let o=String(e??"").trim().split(/\s+/);if(o.length!==2)return{x:50,y:50};let t=n=>{let l=/^(-?\d+(?:\.\d+)?)%$/.exec(n);return l?Number(l[1]):null},a=t(o[0]),r=t(o[1]);return a===null||r===null?{x:50,y:50}:{x:lo(a),y:lo(r)}}function no(e,o){return`${lo(e)}% ${lo(o)}%`}function Jf(e,o,t=!1){let a=t?10:1,{x:r,y:n}=sr(e);switch(o){case"ArrowLeft":return no(r-a,n);case"ArrowRight":return no(r+a,n);case"ArrowUp":return no(r,n-a);case"ArrowDown":return no(r,n+a);default:return null}}function es(e,o,t){return!(e.width>0)||!(e.height>0)?{x:50,y:50}:{x:lo((o-e.left)/e.width*100),y:lo((t-e.top)/e.height*100)}}import{ANCHOR_FIELD_KEYS as yL,FOLD_FIELD_MARKER as cr,foldMetaOf as Ue,LINK_FIELD_MARKER as Do,MEDIA_FIELD_MARKER as os,SCAFFOLD_FIELD_MARKER as No,TEXT_FIELD_MARKER as D,textFieldIdentifier as Jm}from"efficient-easel/screen/lib/puck/field-markers";import{jsx as ss}from"react/jsx-runtime";import{useCallback as ax,useEffect as rx,useRef as nx,useState as lx}from"react";import{useEasel as fx}from"efficient-easel/easel";import{SettingsAction as sx}from"efficient-easel/panel";function dr(e){return typeof e=="number"&&Number.isFinite(e)}function vL(e,o){if(!dr(e))return;let t=dt(Se(e));if(Object.keys(t).length===0)return;let a=t[At];if(typeof a!="string")return t;let r=fo(o)?so(a,X(o)??[]):a;return{...t,[ex]:r}}var ex="--sf-section-radius",At="--sf-card-radius",q=["tl","tr","br","bl"];function X(e){if(!Array.isArray(e))return null;let o=e.filter(t=>q.includes(t));return q.filter(t=>o.includes(t))}function fo(e){let o=X(e);return o!==null&&o.length<q.length}function so(e,o){return q.map(t=>o.includes(t)?e:"0").join(" ")}var Ae="Which corners",co=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];function Rt(e){let o=t=>e.includes(t);if(e.length===q.length)return"All four";if(e.length===0)return"None";if(e.length===1)return co.find(t=>t.value===e[0])?.label??"1 corner";if(e.length===2){if(o("tl")&&o("tr"))return"Top two";if(o("bl")&&o("br"))return"Bottom two";if(o("tl")&&o("bl"))return"Left two";if(o("tr")&&o("br"))return"Right two"}return`${e.length} corners`}var ox="--sf-card-box-radius",tx="--sf-site-card-radius",PL="sf-section-bleeds";function Mo(e){return typeof e=="number"&&Number.isFinite(e)}function AL(e,o){if(!Mo(e))return;let t=dt(Se(e))[At];if(typeof t!="string")return;let a=fo(o)?so(t,X(o)??[]):t;return{[ox]:a}}function RL(e){let o=e[At];return typeof o=="string"?{[tx]:o}:{}}function ts(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 as(e,o,t){let a=t?.zone??"",r=a.lastIndexOf(":"),n=r>0?a.slice(0,r):"",l=r>0?a.slice(r+1):"",f=n?vl(e,o,n):null,s=f&&Array.isArray(f.item.props[l])?f.item.props[l]:[],c=t?.index??-1,i=c>=0?s[c]:void 0,u=i?.props?.id?String(i.props.id):"",p=Math.max(s.length-1,0);return!f||!u?{can:!1,reason:"unreachable",others:0}:s.length<=1?{can:!1,reason:"alone",others:p}:Mo(i?.props?.cardCorners)?{can:!0,others:p,zone:f.zone,index:f.index,data:{...f.item,props:{...f.item.props,[l]:ts(s,u)}}}:{can:!1,reason:"unset",others:p}}function rs(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 ns(e){return`Applied to ${e} ${e===1?"card":"cards"}`}function ls(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as fs}from"efficient-easel/screen/lib/puck/use-section-ops";var cx=2200,dx="apply-corners-to-siblings",ux="Apply to all cards";function ix({plan:e,doneCount:o,onPress:t}){return ss(sx,{id:dx,label:ux,note:rs(e),disabled:!e.can,done:o!==null,doneLabel:ns(o??0),onPress:t})}function cs(){let{appState:e,config:o}=fx(s=>s),t=fs(),[a,r]=lx(null),n=nx(null);rx(()=>()=>{n.current&&clearTimeout(n.current)},[]);let l=as(o,e.data.content??[],e.ui.itemSelector),f=ax(()=>{ls(l,t.replaceComponent),l.can&&(r(l.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>r(null),cx))},[l,t]);return ss(ix,{plan:l,doneCount:a,onPress:f})}var ds=1;function px(e){return Se(e)}function VL(e){let o=px(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var us=1,is="Corners";function mx(e){return Se(e)}function ZL(e,o){let t=mx(e);if(t===null)return null;let a=`${t}px`;return{borderRadius:fo(o)?so(a,X(o)??[]):a}}var ce={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]}},ur=Object.keys(ce),ms=[2,3,4,6];function xs(e){return typeof e!="string"||e===""?null:ce[e]??null}function ps(e,o){return o?6/e.acrossPhone:12/e.across}var xx="sf-wall--";function Ix(e){return`${xx}${e}`}function JL(e){let o=ce[e],t=`.${Ix(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,ps(o,!1))),a.push("@media (max-width:800px){"),a.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),a.push(...r(o.phone,ps(o,!0))),a.push("}"),a.join("")}var kt=12,Is=1,hx=3;var gx=3;function ir(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 bx(e){return ir(e,1,kt)??gx}function tB(e,o){return ir(e,Is,hx)??(bx(o)===4?2:Is)}function aB(e){return e==null||e===""?null:ir(e,1,kt)}var rB="data-sf-span";function nB(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(xs(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as Cx}from"react/jsx-runtime";var Sx="sf-hint-keep";function hs({children:e}){return Cx("span",{className:Sx,children:e})}import{AlignLeftIcon as $I,AlignSeparateIcon as qI,AnimationIcon as Ic,BackgroundIcon as KI,BlockSectionIcon as zI,CartIcon as VI,ColumnWidthsIcon as hc,ColumnsIcon as XI,CornerIcon as gc,DirectionDownIcon as jI,DirectionLeftIcon as YI,DirectionRightIcon as ZI,DirectionUpIcon as QI,DollarIcon as JI,FinishIcon as eh,GapIcon as bc,GridIcon as oh,GroundIcon as th,HashIcon as Cc,ImageIcon as ah,LayoutIcon as rh,ListIcon as nh,LocationIcon as Nr,PaddingBottomIcon as lh,PaddingLeftIcon as fh,PaddingRightIcon as sh,PaddingTopIcon as ch,PageIcon as Sc,PhoneIcon as dh,PlacementIcon as uh,ProductSizeIcon as ih,RotateIcon as ph,SquareIcon as mh,StylesIcon as xh,TextLinesIcon as Ih,TypeIcon as hh,WidthIcon as gh,WrapIcon as bh}from"efficient-easel/icons";var yx=["fade","rise","scale"],pr="none",gs=[{label:"None",value:pr},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function dB(e){return yx.includes(e)?e:null}var bs="data-sf-anim",Ho="data-sf-anim-state";function uB(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(bs))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(Ho,"armed");let a=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){a.disconnect(),Fx(e);break}},{threshold:0});return a.observe(e),()=>{a.disconnect(),e.removeAttribute(Ho)}}function Fx(e){if(!e.getAttribute(bs))return;e.removeAttribute(Ho),e.offsetWidth,e.setAttribute(Ho,"play");let o=t=>{t.target===e&&(e.removeAttribute(Ho),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var iB=gf;function xr(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(mr(a,o,0))return r??{}}return null}function mr(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(r=>mr(r,o,t+1));let a=e.props;return a&&typeof a=="object"&&a.id===o?!0:Object.values(e).some(r=>mr(r,o,t+1))}import{SettingsCorners as yc,SettingsDefaultReset as Y,SettingsField as R,SettingsGroupHead as Ch,SettingsGroupSub as Sh,SettingsPlacement as yh,SettingsSegmented as Fh,SettingsSwitch as Th}from"efficient-easel/panel";import{FieldSelect as vh,ListField as Eh}from"efficient-easel/fields";import{Checkbox as $P,Slider as Lh,Tooltip as Kt}from"efficient-shell/ui";import{jsx as N,Fragment as wt,jsxs as _t}from"react/jsx-runtime";import{useEffect as Tx,useState as vx}from"react";import{MarkBar as Ex,markSelection as Lx,useCaretEdit as Bx}from"efficient-easel/copy";import{RevertIcon as Ox}from"efficient-easel/icons";import{IconButton as Px,Tooltip as Ax}from"efficient-shell/ui";function Rx({style:e}){let o=t=>N("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.9,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t});switch(e){case"bold":return o(N("path",{d:"M7 5h6.5a3.5 3.5 0 0 1 0 7H7zm0 7h7.5a3.5 3.5 0 0 1 0 7H7z"}));case"italic":return o(_t(wt,{children:[N("line",{x1:"10",y1:"5",x2:"19",y2:"5"}),N("line",{x1:"5",y1:"19",x2:"14",y2:"19"}),N("line",{x1:"14",y1:"5",x2:"10",y2:"19"})]}));case"strike":return o(_t(wt,{children:[N("path",{d:"M16.5 6.5A4.2 4.2 0 0 0 12.7 4.7C10 4.7 8.4 6 8.4 7.9c0 1.6 1.2 2.5 3.4 3.1"}),N("path",{d:"M7.6 17.4A4.4 4.4 0 0 0 11.7 19.3c2.8 0 4.5-1.4 4.5-3.4 0-1-.4-1.8-1.2-2.4"}),N("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]}));case"highlight":return o(_t(wt,{children:[N("path",{d:"M14.5 4.5l5 5-8 8H6.5v-5z"}),N("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]}));case"quiet":return o(_t(wt,{children:[N("path",{d:"M12 4.5l5.5 7.5L12 19.5 6.5 12z"}),N("line",{x1:"9.4",y1:"12",x2:"14.6",y2:"12"})]}));default:return null}}var kx=["bold","italic","strike","highlight"],wx=Object.fromEntries(kx.map(e=>[e,N(Rx,{style:e},e)])),Cs="Clear formatting";function _x(e,o,t){return Lx(e,o,t,tf)}function Dx(e){let[o,t]=vx(null);return Tx(()=>{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 Nx({target:e,value:o,onChange:t,disabled:a=!1,label:r="Formatting"}){let n=Bx({target:e,onChange:t}),[l,f]=Dx(e),s=p=>n(m=>{let x=_x(o,p,m);return f({start:x.selectionStart,end:x.selectionEnd}),x}),c=ef(),i={};if(l)for(let p of c)i[p.style]=af(o,l.start,l.end,p.style);let u=Ao(o);return N(Ex,{tools:c,onApply:s,pressed:i,disabled:a,glyphs:wx,ariaLabel:r,actions:N("span",{className:"sf-markup-clear",children:N(Ax,{content:Cs,children:N(Px,{size:"sm",onMouseDown:p=>p.preventDefault(),onClick:()=>t(u),disabled:a||u===o,"aria-label":Cs,children:N(Ox,{size:14})})})})})}var Ir=Nx;import{DEVICE_FIELD_MARKER as FB,DEVICE_HIDDEN_ATTR as TB,DEVICE_NOTE as vB,deviceField as ae,deviceMetaOf as Ss,deviceNote as EB,shownTier as LB,withoutDeviceGate as BB}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as AB,NO_CONTROL_FIELD as RB,noControlField as ys,NoControlMark as Fs,noControlMetaOf as kB}from"efficient-easel/screen/lib/puck/panel-no-control-mark";function Go(e){return`${e}Phone`}function Dt(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}import{jsx as hr,Fragment as Ux}from"react/jsx-runtime";import{createContext as Wx,useContext as $x}from"react";var Ts={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},vs={Events:["posts"],SubscribeBlogs:["posts"]};var Mx=["anchor"],Hx=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Uo(e){return Mx.includes(e)||Hx.test(e)}var Gx={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"}}};Gx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var MB=Object.fromEntries(Object.entries(Ts).map(([e,o])=>[e,Object.keys(o)])),HB=Object.fromEntries(Object.entries(vs).map(([e,o])=>[e,[...o]]));var Es=Wx(!1);function KB({children:e}){return hr(Es.Provider,{value:!0,children:e})}function qx(){return $x(Es)}function Ls({name:e,children:o}){return!qx()||!e||Uo(e)?hr(Ux,{children:o}):hr(Fs,{})}function K(e,o,t){return e.some(a=>(typeof a=="object"?a.value:a)===t)?t:o}var gr="off",br="none",Cr=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],Sr=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function jB(e){return K(Cr,gr,e)}function YB(e){return K(Sr,br,e)}var Bs="sf-card-index",Wo="sf-card-index",ZB="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",Kx={plain:`counter(${Wo})`,padded:`counter(${Wo}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Wo}, decimal-leading-zero)`};function QB(e,o){return o==="off"?"":`.${e}{counter-reset:${Wo}}.${e} .${Bs}{counter-increment:${Wo}}.${e} .${Bs}::before{content:${Kx[o]}}`}function JB(e){return e==="hairline"?"border border-line hover:border-accent":""}var Os=[{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 zx}from"efficient-easel/screen/lib/puck/text-control-kinds";import{jsx as de,jsxs as yr,Fragment as Yx}from"react/jsx-runtime";import{useRef as Rs,useState as Zx}from"react";import{jsx as j,jsxs as Ps}from"react/jsx-runtime";import{ChevronIcon as Vx}from"efficient-easel/icons";import{Tooltip as Xx}from"efficient-shell/ui";function As({styleKey:e,label:o,icon:t,value:a,sampleStyle:r,open:n,onToggle:l,saved:f=!1,children:s}){return Ps("div",{"data-sf-style-row":e,className:`sf-style-row${n?" is-open":""}`,children:[Ps("button",{type:"button",className:"sf-style-head","aria-expanded":n,onClick:l,children:[j("span",{className:"sf-style-caret","aria-hidden":"true",children:j(Vx,{size:13})}),t?j("span",{className:"es-field-icon",children:t}):null,j("span",{className:"sf-style-name",children:o}),a!=null?typeof a=="string"?j(Xx,{content:a,className:"sf-style-sample-tip",children:j("span",{className:"sf-style-sample",style:r,children:a})}):j("span",{className:"sf-style-sample",style:r,children:a}):null,j("span",{className:`sf-style-slot${f?" is-saved":""}`,children:j(jx,{})})]}),n&&j("div",{className:"sf-style-body",children:s})]})}function jx(){return j("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:j("polyline",{points:"20 6 9 17 4 12"})})}function ks({label:e,value:o,onChange:t,image:a}){let[r,n]=Zx(!1),l=Rs(null),f=Rs(!1),{x:s,y:c}=sr(o),i=(I,g)=>{let L=l.current?.getBoundingClientRect();if(!L)return;let y=es(L,I,g);t(no(y.x,y.y))},u=I=>{let g=Jf(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(As,{styleKey:"imageFocal",label:e,value:o,sampleStyle:{fontSize:11,fontVariantNumeric:"tabular-nums"},open:r,onToggle:()=>n(I=>!I),children:r?de("div",{className:"sf-focus","data-sf-focusing":"",children:a?yr(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:yr("span",{className:"sf-focus-pane",ref:l,children:[de("img",{className:"sf-focus-img",src:a,alt:"",draggable:!1}),de("span",{className:"sf-focus-cross sf-focus-cross--h",style:{top:`${c}%`}}),de("span",{className:"sf-focus-cross sf-focus-cross--v",style:{left:`${s}%`}}),de("span",{className:"sf-focus-marker",style:{left:`${s}%`,top:`${c}%`}})]})}),yr("div",{className:"sf-focus-bar",children:[de("span",{className:"sf-focus-hint",children:"Press the picture, or nudge the point with the arrow keys."}),de("button",{type:"button",className:"sf-image-btn",onClick:()=>n(!1),children:"Done"})]})]}):de("p",{className:"es-field-hint sf-hint-keep",children:"Choose a background image first \u2014 there\u2019s nothing to focus yet."})}):null})}import{jsxs as ws,jsx as re}from"react/jsx-runtime";import{SettingsField as _s}from"efficient-easel/panel";import{ImageIcon as Ds,PlayIcon as Ns}from"efficient-easel/icons";import{ImageBox as Qx}from"efficient-easel/pick";import{useContext as Jx,useState as Ms}from"react";import{FileIntakeAlert as eI,useFileIntake as oI}from"efficient-shell/file-intake";import{requestMediaPick as Fr,resolveMediaPick as mO}from"efficient-easel/screen/lib/media-picker";function Hs({value:e,onChange:o,label:t,accept:a,placeholder:r}){let n=ll(),l=Je(),[f,s]=Ms(!1),[c,i]=Ms(null),u=a.startsWith("video"),p=Jx(Lt),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),Fr(n,{accept:a,title:t,file:I}).then(g=>{g&&o(g.url)}).catch(()=>i("Couldn\u2019t open the media picker \u2014 please try again.")).finally(()=>s(!1))}}),x=()=>(m.clearRejections(),i(null),Fr(n,{accept:a,title:t}).then(I=>I?.url??null));return p&&!p.capabilities.mediaEditing?re(_s,{label:t,icon:u?re(Ns,{}):re(Ds,{}),children:ws("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."]})}):ws("div",{children:[re(_s,{label:t,icon:u?re(Ns,{}):re(Ds,{}),children:re("div",{className:`sf-image-drop${m.dragOver?" is-dragover":""}`,...m.zoneProps,children:re(Qx,{value:e,onChange:o,label:t,kind:u?"video":"image",placeholder:r,openLibrary:f?void 0:x})})}),f&&re("div",{className:"sf-image-status",role:"status",children:"Opening the picker\u2026"}),c&&re("div",{className:"sf-image-status sf-image-status--error",role:"alert",children:c}),re(eI,{rejections:m.rejections,className:"sf-image-status sf-image-status--error"})]})}import{jsx as Gs}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 Us({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 Gs(rI,{label:e,labelId:s,icon:n,hint:l,children:Gs(aI,{id:c,multiple:!0,value:i,options:nI(o),onChange:a,placeholder:r,ariaLabelledBy:`${s} ${c}`,inline:!0})})}import{jsx as Ws}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=Ws(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:Ws(sI,{label:e,labelId:c,icon:f,children:m})}import{default as $o}from"efficient-easel/screen/components/UiIcon";var ne={min:10,max:200,step:10};function $s(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 GO(e,o,t,a,r,n,l,f){let s=$s(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&&$s(e,o)===void 0&&!Object.keys(u).length?null:{className:i.join(" "),style:{...s,...u,...c}}}var qs=e=>typeof e=="number"?e:void 0;function Ks(e,o,t){let a=qs(e)??t,r=qs(o);return a===void 0?r:r===void 0?a:a+r}function UO(e,o={}){return{top:Ks(e.padTop,e.sectionPaddingTop,o.top),bottom:Ks(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var bI=["auto","fixed","screen"],CI=["px","%"];var SI="var(--sf-header-h, 88px)",Tr={min:40,max:2e3,step:10,fallback:600},vr={min:10,max:200,step:5,fallback:100},yI="sf-section-minh",zs={base:"--sf-section-minh",small:"--sf-section-minh-s"},Xs=e=>typeof e=="string"&&bI.includes(e),FI=e=>typeof e=="string"&&CI.includes(e);function Nt(e){let o=Xs(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":FI(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=o==="screen"?vr.fallback:Tr.fallback,r=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:o,value:r,unit:t}}function js(e){let{mode:o,value:t,unit:a}=Nt(e);if(o==="auto")return;if(o==="fixed"&&a==="px")return[`${t}px`,null];let r=t/100,n=l=>o==="screen"?`(100${l} - ${SI})`:`100${l}`;return[`calc(${n("vh")} * ${r})`,`calc(${n("svh")} * ${r})`]}function TI(e){let o=js(e);if(!o)return;let[t,a]=o;return{display:"grid",[zs.base]:t,...a?{[zs.small]:a}:{}}}var $O=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),uo="Height",vI="sf-section-minh-phone",Vs={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Er(e){return Xs(e.sectionHeightModePhone)}function qO(e){return Nt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function EI(e){let o=TI(e),t=Er(e)?js({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[Vs.base]=t[0],t[1]&&(r[Vs.small]=t[1])),{className:a.join(" "),style:r}}function KO(e){return EI(e)!==null}import{VIEW_DESKTOP_MIN as XO,VIEW_TABLET_MIN as jO,VIEW_TIER_LABEL as Mt,VIEW_TIERS as YO,viewTierForWidth as ZO}from"efficient-easel/screen/lib/content/view-tiers";var Lr=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],Qs=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Stretch",value:"stretch"}],Js="Wrap",Br=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],Ys={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},Zs={start:"items-start",center:"items-center",stretch:"items-stretch"};function JO(e,o){let t=typeof e=="string"&&e in Ys?Ys[e]:"",a=typeof o=="string"&&o in Zs?Zs[o]:"";return[t,a].filter(Boolean).join(" ")}function eP(e){return e===!0||e==="wrap"?"flex-wrap":""}var Or="Block widths",Ht=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]}],qo="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",LI={equal:qo,bigLeft:`${qo} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${qo} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${qo} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${qo} [&>*:last-child]:min-[800px]:grow-[3]`};function oP(e){return typeof e=="string"?LI[e]??"":""}var ec="Columns on phone",Pr=1,oc=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 tP(e){let o=Number(e);return BI[o]??"max-[800px]:flex-col"}var tc="Block spacing",Ar=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],OI="sf-box-gap-only";function aP(e){return e==="gap"?OI:""}var ac=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],rc={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:Wt(e)}var PI=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Wt(e){return e.replace(PI,"var(--site-$1")}function nc(e,o){return e===Ut?!0:e===void 0&&o===Gt}var lc=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],fc={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},io="var(--wheel-stage)",$t="transparent",Ko="inherit";function sP(e,o){return Wt(Rr(e,o))}function Rr(e,o){return e===Ko?io:e==null?o:e===!0?io:e===!1?$t:e}function cP(e){return typeof e=="string"&&e!==Ko?Wt(e):io}function dP(e){return e!==$t&&e!=="none"&&e!==""}function sc(e,o){return e===Ko||e===!0?!0:e==null?o===io:!1}var cc="inherit",qt="fixed",dc=e=>typeof e!="number"&&e!==qt,AI="var(--sf-heading-max, 9999px)";function iP(e,o,t,a){if(typeof e=="number")return`${e}px`;if(e===qt)return o;let r=a?`var(--size-${a}, ${o})`:o;return t==="heading"?`min(${r}, ${AI})`:r}var RI=["contained","page","full"],uc=["full","page"],ic={full:"Full width",page:"Content width"},kr="inherit",kI=e=>typeof e=="string"&&RI.includes(e),wI=e=>e===kr;function wr(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:te.default;return wI(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:kI(e.widthMode)?{mode:e.widthMode,pageWidth:t,inherited:!1}:e.contained===!0?{mode:"page",pageWidth:t,inherited:!1}:typeof e.fullWidth=="boolean"?{mode:e.fullWidth?"full":"page",pageWidth:t,inherited:!1}:e.contained===!1?{mode:"full",pageWidth:t,inherited:!1}:{mode:o,pageWidth:t,inherited:o==="full"}}function _r(e){return wr(e,"page").mode==="full"}import{jsx as _I}from"react/jsx-runtime";import{createContext as DI,useContext as NI}from"react";var MI=2,HI=MI+1,pc=DI(2);function gP({tier:e,children:o}){return _I(pc.Provider,{value:e,children:o})}function Dr(e){let o=NI(pc);return HI+Math.max(0,e-o)}import{withStyleKind as Bh}from"efficient-easel/style-clipboard";function zo(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!Ue(t)&&Bh(t,`section:${o}`);return e}function Fc(){return null}function Oh(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return d(Fc,{},e)}function Ph(e){return e.type===Fc}function zt(e){return Ph(e)?void 0:e}function Vt(e,o){return`${e} from ${o}`}function Ah(){let{appState:e}=mo(r=>r),o=e.data.root?.props??{},{mode:t,pageWidth:a}=wr(o,"full");return Vt(t==="page"?`${a}px`:t==="contained"?"Contained":"Full","the page")}function Rh(){let{blockGap:e}=me();return e===null?"this container's own spacing":Vt(`${e}px`,"Site styles")}function kh({inherited:e,onReset:o,label:t}){return d(Y,{label:t,changed:!e,detail:Rh(),onReset:o})}function wh({inherited:e,onReset:o,label:t}){return d(Y,{label:t,changed:!e,detail:Ah(),onReset:o})}function xo({value:e,onChange:o,label:t,placeholder:a,hint:r,multiline:n,hideable:l=!0,markup:f=!0}){let{text:s,hidden:c}=Pe(e),i=Hr(null),u=Hr(null),p=L=>o(l?{text:L,hidden:c}:L),m=()=>o({text:s,hidden:!c}),x=l&&c,I=WI(),g=r?Hh(r)?d("span",{className:"sf-hint-keep sf-hint-while-typing",children:r}):d(hs,{children:r}):void 0;return d(R,{label:t,icon:d(hh,{}),htmlFor:I,className:x?"is-hidden":void 0,hint:g,action:l?d(Kt,{content:c?`Show ${t} on the slide`:`Hide ${t} on the slide`,children:d("button",{type:"button",className:"sf-field-eye","aria-pressed":c,"aria-label":c?`Show ${t} on the slide`:`Hide ${t} on the slide`,onClick:m,children:c?d($o,{name:"eye-off",size:14}):d($o,{name:"eye",size:14})})}):void 0,children:Re("div",{className:"sf-copybox",children:[f&&d(Ir,{target:n?u:i,value:s,onChange:p}),n?d("textarea",{id:I,ref:u,value:s,placeholder:a,onChange:L=>p(L.target.value)}):d("input",{id:I,ref:i,type:"text",value:s,placeholder:a,onChange:L=>p(L.target.value)})]})})}function SA(e,o){return{...e,[No]:o}}function yA(e){let o=e[D];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[D]:{...o,offPage:!0}}}function FA(e){return!e||typeof e!="object"?!1:e[D]?.offPage===!0}function TA(e){let o=e[D];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[D]:{...o,identifier:!0}}}var _h=new Set(We),Io=(e,o)=>{let t={...o,[D]:e};if(!_h.has(e.control))return t;let a=o.render;return{...ys(t,"authored-copy"),render:r=>d(Ls,{name:r.name,children:a(r)})}},EA="Everything else on this block comes from the linked post. Unlink it to edit by hand.",Dh="Select a word, then press the highlighter.",Nh="A short name so a link can jump straight to this section, like yoursite.com/page#about.",Mh=new Set([Dh]),Hh=e=>Mh.has(e);function LA(e,o,t){return Io({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t})})}function BA(e,o,t){return Io({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0})})}function Gh(e,o,t){return Io({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function OA(e,o,t){return Io({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1})})}function PA(e){return{type:"custom",[Do]:{label:e},render:({value:o,onChange:t})=>d(Kf,{value:Zf(o),onChange:t,label:e})}}function AA(e,o,t){return Io({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var RA={Content:Ih,Style:xh,Layout:rh,Animation:Ic};function kA(e,o){return e.includes("Content")?o!=="Content":null}function Uh({label:e}){return d(Ch,{title:e,level:Dr(1)})}function Wh({level:e,label:o}){return e===1?d(Uh,{label:o}):d(qh,{label:o})}function Tc(e,o){return{type:"custom",[cr]:{label:e,level:o},render:()=>d(Wh,{level:o,label:e})}}function z(e){return Tc(e,2)}function wA(e){return{type:"custom",render:()=>d($h,{text:e})}}function $h({text:e}){return d("p",{className:"sf-note",children:e})}function _A(e){return Tc(e,1)}function DA(e){return Ue(e)!==null&&e?.tabs!==void 0}var mc=new Map;function Xt(e,o){let t=`${e}\0${o?o.join(""):""}`,a=mc.get(t)??{type:"custom",tabs:o,[cr]:{label:e,level:1},bucket:e,marker:!0,render:()=>d(we,{})};return mc.set(t,a),a}function qh({label:e}){return d(Sh,{title:e,level:Dr(2)})}function vc({swatches:e,current:o,onPick:t,names:a}){let r=e.find(l=>l.toLowerCase()===o.toLowerCase()),n=(r?a?.[r]:void 0)??o;return Re("div",{className:"sf-swatches",children:[e.map(l=>{let f=a?.[l]??l;return d(Kt,{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 NA(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=nc(t,o);return d(R,{label:e,icon:d(KI,{}),changed:!r,action:d(Y,{label:e,changed:!r,detail:"the theme's section background",onReset:()=>a(Ut)}),children:vc({swatches:ac,current:r?Gt:t??o??"",onPick:a,names:rc})})}}}function Kh(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=t,n=sc(r,o);return d(R,{label:e,icon:d(th,{}),changed:!n,action:d(Y,{label:e,changed:!n,detail:"the theme's image stage",onReset:()=>a(Ko)}),children:vc({swatches:lc,current:n?io:Rr(r,o),onPick:a,names:fc})})}}}function Ec(e=t=>t,o){return zo({_gSectionTheme:z(hf),sectionAccent:{type:"custom",render:({value:t,onChange:a})=>d(Nf,{value:e(t),onChange:a,followLabel:o})}})}function qe({min:e,max:o,step:t,value:a,onChange:r,suffix:n="",readout:l=!0,notch:f,ariaLabel:s,disabled:c=!1}){let i=f!==void 0&&Number.isFinite(f)&&f>=e&&f<=o;return d("div",{className:i?"sf-slider has-notch":"sf-slider",style:i?{"--sf-notch":(f-e)/(o-e)}:void 0,children:d(Lh,{min:e,max:o,step:t,value:a,suffix:n||void 0,showInput:l,label:s,disabled:c,size:"sm",className:"sf-slider-track",onChange:u=>{u!==null&&u!==a&&r(u)}})})}function po(e,o,t,a,r,n,l="",f){return{type:"custom",render:s=>d(R,{label:e,icon:zt(o),action:f?f("storedValue"in s?s.storedValue:s.value,s.onChange):void 0,children:qe({min:t,max:a,step:r,value:typeof s.value=="number"?s.value:n,suffix:l,ariaLabel:e,onChange:s.onChange})})}}function Lc({min:e,max:o,step:t,px:a,label:r,onChange:n,disabled:l=!1}){let{cornerRadiusPx:f}=me();return d(we,{children:qe({min:e,max:o,step:t,value:a??(typeof f=="number"?f:e),readout:!1,ariaLabel:r,disabled:l,onChange:n})})}function Vo(e,o){let{min:t,max:a,step:r=1,unsetLabel:n,hint:l,restAtSite:f=!1,restTrack:s,unsetMark:c}=o;return{type:"custom",render:({value:i,onChange:u})=>{let p=typeof i=="number"?i:null,m=p===null;return d(R,{label:e,value:m?c?void 0:n:`${p}px`,changed:!m,action:c?UI(c,{changed:!m,onReset:()=>u(null)}):d(Y,{label:e,changed:!m,onReset:()=>u(null)}),hint:l,children:s?s({min:t,max:a,step:r,px:p,label:e,onChange:u}):f?d(Lc,{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 MA(e){let o=po("Gap",d(bc,{}),Oe.min,Oe.max,Oe.step,Pt[e],"px",(t,a)=>d(kh,{inherited:!fr(e,t),onReset:()=>a(void 0),label:"Gap"}));return{type:"custom",[Xf]:e,render:t=>o.render({...t,value:lr(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:a=>t.onChange(a)})}}function zh(){return{type:"custom",render:({value:e,onChange:o})=>{let t=X(e)??[...q],a=t.length===q.length;return d(R,{label:Ae,icon:d(gc,{}),value:Rt(t),changed:!a,action:d(Y,{label:Ae,changed:!a,onReset:()=>o(null)}),hint:"Corners left off stay square. The row above sets how round the others are.",children:d(Zh,{value:t,onChange:r=>{let n=X(r)??[];o(n.length===q.length?null:n)}})})}}}function Vh({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:a}=me(),r=typeof a=="number"?`${a}px`:"not set";return d(Y,{label:e,changed:o,detail:a==null?"the built-in corners":Vt(r,"Site styles"),onReset:t})}function Xh(){return Vo("Corners",{min:Ce,max:_e,unsetLabel:"Follows the site",unsetMark:d(Vh,{label:"Corners"}),restTrack:e=>d(jh,{...e}),hint:d(Yh,{})})}var Bc="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Gr(){return _r(jt())}function jh(e){return d(Lc,{...e,disabled:Gr()})}function Yh(){return d(we,{children:Gr()?Bc:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function Zh({value:e,onChange:o}){let t=Gr();return d(yc,{label:Ae,value:e,corners:t?co.map(a=>({...a,disabled:!0,title:Bc})):co,onChange:o})}function Oc(){return zo({_gShape:z("Shape"),sectionCorners:Xh(),sectionCornerSides:zh()})}function Pc(){return{_gMotion:z("Motion"),sectionAnimation:$r("Entrance",d(Ic,{}),[...gs],pr)}}function Ur(){let e=null;try{let{appState:o,selectedItem:t}=mo(r=>r),a=t?.props?.id?String(t.props.id):void 0;e=a?xr(o?.data,a):null}catch{e=null}return e!==null&&_r(e)}function Ac(e){let{cornerRadiusPx:o}=me(),t=Ur(),a=typeof o=="number"?o:e,r=null;try{let{appState:l,selectedItem:f}=mo(c=>c),s=f?.props?.id?String(f.props.id):void 0;r=s?xr(l?.data,s):null}catch{r=null}if(t||!r)return a;let n=r.sectionCorners;return dr(n)?n:a}function Qh({min:e,max:o,step:t,px:a,label:r,onChange:n}){let l=Ac(e);return d(we,{children:qe({min:e,max:o,step:t,value:a??l,readout:!1,ariaLabel:r,onChange:n})})}function Jh({label:e,changed:o=!1,onReset:t=()=>{}}){let a=Ur(),r=Ac(Ce),n=a?"Site":"Section";return d(Y,{label:e,changed:o,detail:Vt(`${r}px`,a?"Site styles":"the section"),onReset:t})}function eg(){return d(we,{children:Ur()?"The section is full width, so this card follows Site styles \u25B8 Basics \u25B8 Corners.":"Follows the section's Corners until you set a number here."})}function og(){return Vo("Corners",{min:Ce,max:_e,unsetLabel:"Follows the section",unsetMark:d(Jh,{label:"Corners"}),restTrack:e=>d(Qh,{...e}),hint:d(eg,{})})}function tg({value:e,onChange:o}){return d(yc,{label:Ae,value:e,corners:co,onChange:o})}function ag({unset:e}){return d(we,{children:e?"Set a number above first \u2014 there is nothing to shape yet.":"Corners left off stay square. The row above sets how round the others are."})}function rg(){return{type:"custom",render:({value:e,onChange:o})=>{let t=X(e)??[...q],a=t.length===q.length;return d(R,{label:Ae,icon:d(gc,{}),value:Rt(t),changed:!a,action:d(Y,{label:Ae,changed:!a,onReset:()=>o(null)}),hint:d(ag,{unset:!Mo(e)}),children:d(tg,{value:t,onChange:r=>{let n=X(r)??[];o(n.length===q.length?null:n)}})})}}}function ng(){return{type:"custom",render:()=>d(cs,{})}}function HA(){return{_gShape:z("Shape"),cardCorners:og(),cardCornerSides:rg(),cardCornersApplyAll:ng()}}function GA(){return ke("Justify",d(qI,{}),Lr,Lr[0].value)}function UA(){return ke("Item alignment",d($I,{}),Qs,"stretch")}function WA(){return ke(Js,d(bh,{}),Br,Br[0].value)}function $A(){return{type:"custom",render:({value:e,onChange:o})=>{let t=Ht.find(a=>a.value===e)??Ht[0];return d(R,{label:Or,icon:d(hc,{}),value:t.label,children:d("div",{className:"sf-gallery-layouts",role:"group","aria-label":Or,children:Ht.map(a=>d(Kt,{content:a.label,className:"sf-tile-tip",children:d("button",{type:"button","aria-pressed":t.value===a.value,"aria-label":a.label,onClick:()=>o(a.value),children:d("span",{className:"sf-gallery-pic",children:lg(a.weights).map((r,n)=>d("i",{style:{gridColumn:`span ${r}`}},n))})})},a.value))})})}}}function lg(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 qA(){return ke(tc,d(bc,{}),Ar,Ar[0].value)}function KA(){return po(ec,d(dh,{}),Pr,oc,1,Pr)}function zA(e){let o=$r(bf,Oh("`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)."),Sf(e),Et(e,void 0));return{type:"custom",render:t=>o.render({...t,value:Et(e,t.value),onChange:a=>t.onChange(a)})}}function VA(e,o,t,a,r,n){return{type:"custom",render:({value:l,onChange:f})=>d(R,{label:e,icon:d(tr,{noun:n}),action:d(Y,{label:e,changed:!dc(l),detail:"the Text style in Site styles",onReset:()=>f(cc),defaultAction:{onPress:()=>f(qt),title:"Keep this section's own built-in size",icon:d(zI,{})}}),children:qe({min:o,max:t,step:a,value:typeof l=="number"?l:r,suffix:"px",ariaLabel:e,onChange:f})})}}function XA(){return{_gCellWidth:z("Cell width"),gridSpan:ke("Positions",d(hc,{}),[{label:"Auto",value:""},...Array.from({length:kt},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function jt(){let e=null;try{e=mo(o=>o).selectedItem}catch{e=null}return e?.props??{}}function fg({min:e,max:o,step:t,px:a,label:r,onChange:n,desktopKey:l,fallback:f}){let s=jt()[l],c=Dt(void 0,s,f);return d(we,{children:qe({min:e,max:o,step:t,value:Dt(a,s,f),readout:!1,ariaLabel:r,notch:c,onChange:n})})}function sg({label:e,desktopKey:o,fallback:t,changed:a=!1,onReset:r=()=>{}}){let n=jt()[o],l=Dt(void 0,n,t);return d(Y,{label:e,changed:a,detail:`${l}px on ${Mt.desktop.toLowerCase()}`,onReset:r})}function cg(e){return Vo(e.label,{min:e.min,max:e.max,step:e.step,unsetLabel:`Follows ${Mt.desktop}`,unsetMark:d(sg,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>d(fg,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}function Rc(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",a=e.group!==!1,r=g=>a?g:`Padding ${g.toLowerCase()}`,n=g=>po(r("Top"),d(ch,{}),ne.min,ne.max,ne.step,g,"px"),l=(g,L,y,b=ne)=>ae("mobile",cg({label:r(g),desktopKey:L,min:b.min,max:b.max,step:b.step,fallback:y})),f=e.top??ne.min,s=e.bottom??ne.min,c="sectionPaddingLeft",i="sectionPaddingRight",u=e.sideBounds??ne,p=e.side??u.min,m=e.sidePhone??p,x=e.phone===!0,I=g=>x?ae("desktop",g):g;return zo({...a?{_gSpacing:z("Padding")}:{},[o]:I(n(f)),...x?{[Go(o)]:l("Top",o,f)}:{},...e.only==="top"?{}:{[t]:I(po(r("Bottom"),d(lh,{}),ne.min,ne.max,ne.step,s,"px")),...x?{[Go(t)]:l("Bottom",t,s)}:{}},...e.sides?{[c]:I(po(r("Left"),d(fh,{}),u.min,u.max,u.step,p,"px")),...x?{[Go(c)]:l("Left",c,m,u)}:{},[i]:I(po(r("Right"),d(sh,{}),u.min,u.max,u.step,p,"px")),...x?{[Go(i)]:l("Right",i,m,u)}:{}}:{}})}var dg={contained:"Contained",page:"Page",full:"Full"},Mr="Width";function kc(e,o=uc,t=!0){let a=o.map(r=>({label:ic[r]??dg[r],value:r}));return zo({...t?{_gWidth:z(Mr)}:{},widthMode:{type:"custom",render:({onChange:r,field:n})=>d(R,{label:"Width",icon:d(gh,{}),action:t?d(wh,{inherited:n?.inherited??!1,onReset:()=>r(kr),label:Mr}):void 0,children:Wr({options:a,value:n?.currentValue||e,onChange:r,ariaLabel:Mr})})}})}function wc(){let e=a=>({type:"custom",render:({value:r,onChange:n})=>Re("div",{className:"sf-field",children:[a?Re("div",{className:"sf-field-head",children:[d("span",{className:"sf-field-label sf-field-label--inline",children:uo}),a(n)]}):null,d("div",{children:Wr({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(r)?r:"auto",onChange:n,ariaLabel:uo})})]})}),o=()=>({type:"custom",render:({value:a,onChange:r,field:n})=>{let l=n?.unit==="%"?"%":"px",f=l==="%"?vr:Tr;return d("div",{className:"sf-field",children:qe({min:f.min,max:f.max,step:f.step,value:typeof a=="number"?a:f.fallback,suffix:l,ariaLabel:uo,onChange:r})})}}),t=()=>$r("Unit",d(Cc,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return zo({_gHeight:z(uo),sectionHeightMode:ae("desktop",e()),sectionHeightValue:ae("desktop",o()),sectionHeightUnit:ae("desktop",t()),sectionHeightModePhone:ae("mobile",e(a=>d(ug,{onClear:()=>a(void 0)}))),sectionHeightValuePhone:ae("mobile",o()),sectionHeightUnitPhone:ae("mobile",t())})}function ug({onClear:e}){let o=jt(),t=Er(o),a=Nt(o),r=`${a.mode==="auto"?"Auto":`${a.value}${a.unit}`} on ${Mt.desktop.toLowerCase()}`;return d(Y,{label:uo,changed:t,detail:r,onReset:e})}function _c(){return{_gAnchor:z("Anchor"),anchor:Gh("Anchor name","e.g. about",Nh)}}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(Th,{checked:f,onChange:r,ariaLabelledBy:s})})}}}function jA(){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(Sc,{}),htmlFor:r,action:d(xe,{id:r,label:"Background",value:ar(e),onChange:o})})}}}function YA(e,o){return{type:"custom",render:({value:t,onChange:a})=>d(R,{label:e,action:xe({value:t||o,onChange:a,label:e})})}}var ig=[{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 Dc({label:e,value:o,onChange:t,points:a=ig}){return d(yh,{label:e,value:o,points:a,onChange:t})}function ZA(e,o=Qf,t="mediaImage"){return{type:"custom",render:({value:a,onChange:r})=>d("div",{className:"sf-focal-row",children:d(pg,{label:e,value:a||o,onChange:r,imageProp:t})})}}function pg({label:e,value:o,onChange:t,imageProp:a}){let{selectedItem:r}=mo(l=>l),n=r?.props?.[a];return d(ks,{label:e,value:o,onChange:t,image:typeof n=="string"?n:void 0})}var mg=Ba([]);function QA(e,{stacking:o,fallback:t=ht}){return{type:"custom",render:({value:a,onChange:r})=>{let n=oe.includes(a)?a:t;return o?d(xg,{label:e,value:n,onChange:r}):Nc({label:e,value:n,onChange:r,points:mg})}}}function xg({label:e,value:o,onChange:t}){let{appState:a,selectedItem:r}=mo(f=>f),n=r?.props?.id?String(r.props.id):void 0,l=n?Pa(a?.data,n):[];return Nc({label:e,value:o,onChange:t,points:Ba(l,n)})}function Nc({label:e,value:o,onChange:t,points:a}){let r=a.find(n=>n.disabled);return d(R,{label:e,icon:d(uh,{}),hint:r?r.title:void 0,children:Dc({label:e,value:Fe(o),onChange:t,points:a})})}var JA={top:d(QI,{}),right:d(ZI,{}),bottom:d(jI,{}),left:d(YI,{})};function eR(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:Dc({label:e,value:p,onChange:u,points:c})})}}}var Ig="\0note";function ke(e,o,t,a,r){return{type:"custom",options:t,fallback:a,...r?{note:r}:{},render:({value:n,onChange:l,field:f})=>{let s=f.options??t,c=f.fallback??a,i=s.some(u=>u.value===n)?n:c;return d(R,{label:e,icon:zt(o),children:d(vh,{value:i,ariaLabel:e,onChange:l,options:[...r?[{label:r,value:Ig,disabled:!0}]:[],...s.map(u=>({label:u.label,value:u.value}))]})})}}}function oR(e,o,t){return{type:"custom",options:o,render:({value:a,onChange:r,field:n})=>d(Us,{label:e,options:n.options??o,value:Array.isArray(a)?a:[],onChange:r,...t?{emptyLabel:t}:{}})}}function tR(e,o={}){return{type:"custom",render:({value:t,onChange:a})=>{let r={value:t,onChange:a,...o};return d(e,{...r})}}}function Wr({options:e,value:o,onChange:t,ariaLabel:a,disabled:r=!1}){return d(Fh,{options:e.map(n=>({id:n.value,label:n.label,title:n.title})),value:o,onChange:t,ariaLabel:a,disabled:r})}var aR=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function $r(e,o,t,a){let r=t.map(n=>typeof n=="string"?{label:n,value:n}:n);return{type:"custom",render:({value:n,onChange:l,field:f})=>d(R,{label:e,icon:zt(o),children:Wr({options:r,value:r.some(s=>s.value===n)?n:n||f?.currentValue||a,onChange:l,ariaLabel:e})})}}function rR(e,o,t){return{type:"custom",[os]:!0,render:({value:a,onChange:r})=>d(Hs,{value:a||"",onChange:r,label:e,accept:o,placeholder:t})}}function nR({value:e,onChange:o,label:t}){let a=e||{},r=!!a.pending,n=r?"var(--fg-dim, #888)":a.ok?"#1d9e75":"#d85a30",l=(f,s)=>o({...a,[f]:s===""?void 0:Number(s)});return Re(R,{label:t,icon:d(Nr,{}),children:[d("button",{type:"button",disabled:r,onClick:()=>o({...a,pending:!0,ok:!1,status:"Finding\u2026"}),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"8px 10px",fontSize:13,cursor:r?"default":"pointer",opacity:r?.6:1,border:"1px solid var(--border-strong, #ccc)",borderRadius:6,background:"transparent",color:"inherit"},children:r?"Finding\u2026":"Find coordinates"}),a.status&&d("div",{style:{marginTop:6,fontSize:12,lineHeight:1.4,color:n},children:a.status}),d("div",{style:{marginTop:6,fontSize:11,color:"var(--fg-dim, #999)"},children:"Coordinates from OpenStreetMap"}),d("button",{type:"button",onClick:()=>o({...a,manual:!a.manual}),style:{marginTop:8,padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent, #2563eb)",cursor:"pointer",textDecoration:"underline"},children:a.manual?"Hide manual coordinates":"Enter coordinates manually"}),a.manual&&Re("div",{style:{marginTop:8,display:"grid",gap:8},children:[d(R,{label:"Latitude",icon:d(Nr,{}),children:d("input",{type:"number",step:"any",placeholder:"e.g. 34.0990198",value:typeof a.lat=="number"?a.lat:"",onChange:f=>l("lat",f.target.value)})}),d(R,{label:"Longitude",icon:d(Nr,{}),children:d("input",{type:"number",step:"any",placeholder:"e.g. -117.9842833",value:typeof a.lng=="number"?a.lng:"",onChange:f=>l("lng",f.target.value)})})]})]})}function hg(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function gg(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 bg(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 lR={label:"Ticker items",icon:d(nh,{})};function fR(e,o,t,a){return{type:"custom",[D]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:a},render:({value:r,onChange:n})=>d(Cg,{label:e,icon:zt(o),items:Array.isArray(r)?r:[],placeholder:t,onChange:n,markup:a==="markup"})}}function Cg({label:e,icon:o,items:t,placeholder:a,onChange:r,markup:n=!1}){let l=Hr(null),[f,s]=xc(null),c=i=>i.map(u=>({text:u?.text??""}));return d(Eh,{label:e,icon:o,noun:"item",items:t,onChange:i=>{let u=bg(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:hg(t,f),onChange:i=>r(gg(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 sR(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Io({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:a,onChange:r})=>d(xo,{value:a,onChange:r,label:t,placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function Mc(e){return{_gCards:z("Cards"),coverIndex:ke("Cover image",d(ah,{}),Os,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:Kh("Image background",$t),cardImage:Sg(),spinOnHover:$e("Rotate on hover",e?.spinDefault??!0,d(ph,{}))}}function Hc(){return{outline:ke("Card outline",d(mh,{}),Sr,br),indexBadge:ke("Card number",d(Cc,{}),Cr,gr),showBadge:$e("Product badge",!0,d(tr,{noun:"tag"}))}}function Gc(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:z("Show on a card"),showCardPrice:$e("Price",!0,d(JI,{})),showCardFinishes:$e("Finish swatches",!0,d(eh,{})),showCardSizes:$e("Sizes",o,d(ih,{})),showCardBuy:$e("Buy button",o,d(VI,{})),showCardPage:$e("Page button",o,d(Sc,{}))}}function Sg(){return Vo("Card image",{min:Ce,max:_e,step:ds,hint:"Rounds the picture. The card's own corner is in Site styles."})}function cR(){return Vo(is,{min:Ce,max:_e,step:us,unsetLabel:"Square",hint:"Rounds the picture. Left alone it stays square."})}function dR(){return{type:"custom",render:({value:e,onChange:o})=>d(yg,{value:typeof e=="string"?e:"",onChange:o})}}function yg({value:e,onChange:o}){let[t,a]=xc(null),r=ur.filter(l=>t===null||ce[l].across===t),n=e&&e in ce?ce[e]:null;return Re(we,{children:[d(R,{label:"Photos in a row",icon:d(XI,{}),children:Re("div",{className:"sf-gallery-filter",children:[d("button",{type:"button","aria-pressed":t===null,onClick:()=>a(null),children:"All"}),ms.map(l=>d("button",{type:"button","aria-pressed":t===l,onClick:()=>a(l),children:l},l))]})}),d(R,{label:"Layout",icon:d(oh,{}),value:n?n.label:"Not chosen",hint:`${r.length} of ${ur.length} layouts`,children:d("div",{className:"sf-gallery-layouts",children:r.map(l=>d(Kt,{content:ce[l].label,className:"sf-tile-tip",children:d("button",{type:"button","aria-pressed":e===l,"aria-label":ce[l].label,onClick:()=>o(e===l?"":l),children:d("span",{className:"sf-gallery-pic",children:ce[l].desktop.map(([f,s],c)=>d("i",{style:{gridColumn:`span ${f}`,gridRow:`span ${s}`}},c))})})},l))})})]})}import{SETTINGS_BUCKETS as Fg}from"efficient-easel/panel";import{BUCKET_KEY as M}from"efficient-easel/screen/lib/puck/field-buckets";var ho=Fg,gR=[M.Layout,...Object.keys(Rc({phone:!0})),...Object.keys(kc("full")),...Object.keys(wc()),...Object.keys(_c())],bR=[M.Style,...Object.keys(Ec())],CR=[M.Style,...Object.keys(Oc())],SR=[M.Animation,...Object.keys(Pc())],Tg=Object.keys(Mc()),vg=new Set(["cardImage","imageBackground"]),yR=[M.Style,...Tg.filter(e=>e.startsWith("_g")||vg.has(e))],FR=Object.keys(Hc()),TR=Object.keys(Gc({bottomDefault:!0})),Eg="Editor only \u2014 not shown live",Uc={"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",[Eg]:"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"},Wc={"AlloyWheelsListing._gCards":"Style","ProductGrid._gCards":"Style"};function Lg(e,o,t){return Wc[`${e}.${o}`]??Uc[t]}var Bg={"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 vR(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 Og(e){let o=`${e}.`;return Object.keys(Bg).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function Pg(e,o){let t=Ss(e),a=z(o);return t?ae(t.tier,a):a}function ER(e,o){let t=[],a=new Set(Og(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=Uc[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=Lg(o,u,m.label);if(!x)throw new Error(`${o}.${u}: the inspector group "${m.label}" is not classified in LABEL_BUCKET (lib/puck/field-groups.ts), so there is no way to say which of ${ho.join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);let I=u===M[x]&&m.level===1;if(!I&&u===M[x])throw new Error(`${o}.${u}: that key is reserved for the ${x} bucket header, but this field is a level-${m.level} "${m.label}" header, so it cannot serve as one. Rename the section's own field.`);t.push(n={bucket:x,entries:[[u,I||m.level===2?p:Pg(p,m.label)]],isBucketHeader:I})}let l=new Set(Object.entries(e).filter(([,u])=>Ue(u)).map(([u])=>u)),f=Object.keys(Wc).filter(u=>u.startsWith(`${o}.`)).filter(u=>!l.has(u.slice(o.length+1)));if(f.length)throw new Error(`${o}: KEY_BUCKET (lib/puck/field-groups.ts) lists ${JSON.stringify(f)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`);let s=t.some(u=>u.isBucketHeader)?[]:[...a].filter(u=>!r.has(u));if(s.length)throw new Error(`${o}: RETIRED (lib/puck/field-groups.ts) lists ${JSON.stringify(s)}, but this section has no such fold header${s.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);for(let u of ho){let p=M[u];if(p in e&&!t.some(m=>m.isBucketHeader&&m.entries[0]?.[0]===p))throw new Error(`${o}.${p} is reserved for the ${u} bucket header but is not a level-1 "${u}" fold header. Rename the section's own field.`)}let c=ho.filter(u=>t.some(p=>p.bucket===u)),i={};for(let u of ho){let p=t.filter(I=>I.bucket===u);if(!p.length)continue;let m=p.findIndex(I=>I.isBucketHeader);m>0&&p.unshift(...p.splice(m,1));let x=Xt(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 LR(e){return M.Content in e?e:{[M.Content]:Xt("Content",null),...e}}function BR(e){return ho.some(o=>M[o]in e)}function OR(e){let o=ho.filter(a=>M[a]in e);if(o.length===0)return e;let t={...e};for(let a of o)t[M[a]]=Xt(a,a===o[0]?o:null);return t}import{jsx as Ag}from"react/jsx-runtime";import{createContext as Rg,useCallback as kg,useContext as wg,useState as _g}from"react";var $c={enabled:!0,title:"",subtitle:"",greeting:""},qc=Rg({chat:$c,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function wR({children:e,chat:o=$c,onChatChange:t}){let[a,r]=_g(!1),n=kg(s=>t?.(s),[t]),{select:l,setSelectHandler:f}=al();return Ag(qc.Provider,{value:{chat:o,setChat:n,selected:a,setSelected:r,select:l,setSelectHandler:f},children:e})}var _R=()=>wg(qc);import{jsx as Dg}from"react/jsx-runtime";import{createContext as Ng,useCallback as Kc,useContext as Mg,useMemo as Hg,useRef as Gg}from"react";var Ug=Object.fromEntries(rl.map(e=>[e,{value:"",error:null}])),zc=Ng({links:nl,rows:Ug,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function GR({children:e,value:o}){let t=Gg(()=>{}),a=Kc(()=>t.current(),[]),r=Kc(l=>{t.current=l},[]),n=Hg(()=>({...o,openPanel:a,setOpenHandler:r}),[o,a,r]);return Dg(zc.Provider,{value:n,children:e})}var UR=()=>Mg(zc);import{jsx as Wg}from"react/jsx-runtime";import{createContext as $g,useContext as qg,useMemo as Kg,useState as zg}from"react";var Vc=$g(null);function KR({children:e}){let[o,t]=zg(null),a=Kg(()=>({surface:o,setSurface:t}),[o]);return Wg(Vc.Provider,{value:a,children:e})}function zR(){return qg(Vc)??{surface:null,setSurface:()=>{}}}var jR="Scrolling Bar",{Provider:YR,useSelection:Xc}=ut("selectedHeroId");var{Provider:JR,useSelection:ek}=ut("selectedLocationPartId");function ok(e,o,t){return`${e}::${o}::${t}`}function tk(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 Vg,useContext as Xg}from"react";var jg=Vg(!1),nk=()=>Xg(jg);import{PreviewDeviceContext as sk,usePreviewDevice as ck}from"efficient-easel/screen/components/PreviewDeviceContext";var Yg=new Set(["Hero","HeroSingle","IntroBleed"]),jc={min:56,max:140,default:88},ik={min:0,max:120,step:2,default:28},Yc=`var(--sf-header-h, ${jc.default}px)`,Zg="--sf-header-set-h",pk="--sf-header-h",mk=`var(${Zg}, ${jc.default}px)`,xk="sf-header-clearance",Ik="sf-sticky-underheader";function Qg(e){return e?.find(o=>o?.type&&o.type!==Me)??null}function Zc(e){let o=Qg(e)?.type;return!o||!Yg.has(o)}function hk(e){return!Zc(e)}function gk(e){return!!e?.some(o=>o?.type===Me)}function bk(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Me||o?.type===bt)}var Jg=["auto","shared","own"],eb="auto",ob="topSpace",Ck="data-top-space";function tb(e){return Jg.includes(e)?e:eb}function ab(e,o){let t=tb(e?.props?.[ob]);return t==="own"?!0:t==="shared"?!1:Zc(o)}function Sk(e,o){return ab(e,o)?"own":null}import{blockRuns as rb}from"efficient-easel/screen/lib/puck/block-choice";function Ek(){return{type:Me,props:{id:Oo(Me)}}}var Qc=[{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"}],nb=Qc.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),lb="FooterGroup",Jc="blocks";function ed(e){return e===bt?Qc:e===lb?nb:null}function Bk(){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 wk(e,o=0){let t=sb(e,o),a=t?Da():null;return t&&a?fb(t,a):t}function fb(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 sb(e,o){let t=Te[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let a=Ul(e,o);if(a)return{source:"container",slot:a.slot,choices:a.choices,spec:null};let r=ed(e);return r?{source:"footer",slot:Jc,choices:r,spec:null}:null}import{useSyncExternalStore as cb}from"react";var qr=null,Kr=new Set;function Nk(e){if(qr!==e){qr=e;for(let o of Kr)o()}}function db(e){return Kr.add(e),()=>{Kr.delete(e)}}function Mk(){return cb(db,()=>qr,()=>null)}function Hk(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?e.slice(0,o):null}var ub="inline",ib=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var pb={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"}},Wk="SectionHeader";function $k(e){return e in pb}function mb(e){return K(ib,ub,e)}var xb=new Set(["Flex"]);function Ib(e){return!!e?.type&&xb.has(e.type)}function qk(e,o,t){if(!Ib(o))return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function Kk(e,o,t){if(mb(o)!=="own-box")return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function zr(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Vr(e){let o=/^([A-Za-z0-9_$]+)\[(\d+)\]\.([A-Za-z0-9_$]+)$/u.exec(e);return o?{key:o[1],row:{index:Number(o[2]),rowKey:o[3]}}:{key:e,row:null}}import{decodePartId as Xo,encodePartId as hb,PART_SEP as jk}from"efficient-easel/screen/lib/puck/part-id";var gb=We,bb=["text","textarea"],Cb=["textarea","plainTextarea"];function Sb(e){return!e||typeof e!="object"?null:e[D]?.control??null}function od(e){let o=Sb(e);return o&&gb.includes(o)?o:null}function ew(e){return Cb.includes(e)}function ow(e){return!e||typeof e!="object"?void 0:e[D]?.placeholder}function Yt(e){return Pe(e).text}function Xr(e,o,t){return bb.includes(e)?{text:t,hidden:Pe(o).hidden}:t}function tw(e,o,t,a){return Yt(e[o])===a?null:{...e,[o]:Xr(t,e[o],a)}}function yb(e){if(!(!e||typeof e!="object"))return e[D]}function Fb(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function td(e,o){if(!Array.isArray(o))return[];let t=yb(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=Fb(e);return r?(o.forEach((n,l)=>{for(let[f,s]of Object.entries(r)){if(!od(s))continue;let c=Yt(n?.[f]);c&&a.push({row:{index:l,rowKey:f},text:c})}}),a):[]}function Tb(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function vb(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 fw(e,o,t,a,r){let n=Tb(e[o],t);return Yt(n)===r?null:vb(e,o,t,Xr(a,n,r))}function sw(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var hw="data-sf-part",gw="data-sf-part-selected",bw="data-sf-part-kind",ad=2;function Cw(e,o){if(!e)return!1;let t=Xo(e);return!!t?.propKey&&t.nodeId===o}function go(e){return Ao(e).replace(/\s+/gu,"")}function Zt(e,o,t){let a=e[D];if(a){if(a.control==="textList"){let n=a.itemKey??"text";if(!Array.isArray(o))return;for(let l of o){let f=l?.[n];typeof f=="string"&&t.push(f)}return}let{text:r}=Pe(o);r?t.push(r):a.placeholder&&t.push(a.placeholder);return}if(!e[Do]){if(e.type==="text"||e.type==="textarea"){typeof o=="string"&&o&&t.push(o);return}if(e.arrayFields&&Array.isArray(o)){for(let r of o)for(let[n,l]of Object.entries(e.arrayFields))Zt(l,r?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[r,n]of Object.entries(e.objectFields))Zt(n,o[r],t)}}function Sw(e){if(!e||typeof e!="object")return!1;let o=e;return o[Do]?!1:!!o[D]||o.type==="text"||o.type==="textarea"}function rd(e,o){let t=e[D];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Eb(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function yw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){if(!r||typeof r!="object"||Uo(a))continue;let n=r,l=[];Zt(n,o?.[a],l),!l.length&&n[No]!==void 0&&Zt(n,n[No],l);let f=rd(n,a),s=new Set;for(let{row:u,text:p}of td(n,o?.[a])){let m=go(p);m.length<ad||(s.add(m),t.push({key:a,label:f,texts:[m],row:u}))}let c=new Set(s),i=[];for(let u of l){let p=go(u);p.length<ad||c.has(p)||(c.add(p),i.push(p))}i.length&&t.push({key:a,label:f,texts:i})}return t}var Lb=We;function nd(e,o){if(!o||typeof o!="object"||Uo(e))return null;let t=o[D];return!t||!Lb.includes(t.control)?null:t}function Fw(e,o){let t=nd(e,o);return t!==null&&t.identifier!==!0}function Tw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){let n=nd(a,r);if(!n)continue;let{text:l,hidden:f}=Pe(o?.[a]),s=l||n.placeholder||"",c=Ao(s).replace(/\s+/gu," ").trim();t.push({key:a,label:Eb(rd(r,a)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!f})}return t}var Bb="Main Pages",Ob="Dynamic Pages",Pb="dynamic",Ab="dynamic";function Rb(e){return e.kind===Ab}function Ew(e){let o=[],t=[];for(let a of e){if(Rb(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??Bb,rows:[a]})}if(t.length){let a=o.findIndex(r=>r.key.startsWith("system:"));o.splice(a===-1?o.length:a,0,{key:Pb,label:Ob,rows:t})}return o}import{jsx as jr,Fragment as kb,jsxs as wb}from"react/jsx-runtime";var Ow=wb(kb,{children:[jr("circle",{cx:"9",cy:"20",r:"1.3"}),jr("circle",{cx:"18",cy:"20",r:"1.3"}),jr("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});import{jsx as Yr,Fragment as _b}from"react/jsx-runtime";function ld({className:e=""}){return Yr("sup",{className:`text-accent tracking-normal ${e}`,children:"\xAE"})}function Qt(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((a,r)=>{a&&t.push(a),r<o.length-1&&t.push(Yr(ld,{},`r${r}`))}),Yr(_b,{children:t})}var Rw=ld;import{jsx as O,jsxs as ln}from"react/jsx-runtime";import{Fragment as Bd}from"react";var Jr="_partStyles",tn="data-sf-part-styled",Db=["none","upper","lower"],Nb=[400,500,600,700],Mb=["left","center","right","justify"],Hb=5,Gb=1e3,Ub=-5,Wb=10,$b=0,qb=64,Kb=2,zb=120,Jt=1280,Vb=10,fd={size:{min:Hb,max:Gb,step:1},padding:{min:$b,max:qb,step:Kb},width:{min:zb,max:Jt,step:Vb}},Xb=.05,jb=.01,Yb=["line","letter"],Zb=.5,Qb=2.5,Jb=-1,eC=1,oC=0,tC=400,en={none:"none",upper:"uppercase",lower:"lowercase"};function Yo(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function ud(e){return Yo(e?.[Jr])??{}}function aC(e,o){let t=ud(e);return Object.hasOwn(t,o)?Yo(t[o])??{}:{}}function id(e,o,t){let a={...ud(e)};if(rC(t).length?a[o]=t:delete a[o],!Object.keys(a).length){let{[Jr]:r,...n}=e;return n}return{...e,[Jr]:a}}function rC(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function nC(e){return Yb.includes(e)}var jo=(e,o,t)=>Math.min(t,Math.max(o,e));function lC(e,o){if(nC(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:jo(t,Ub,Wb)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?bo(jo(t,Zb,Qb),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?bo(jo(t,Jb,eC),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:jo(t,oC,tC)}if(Object.hasOwn(fd,e)){let{min:t,max:a}=fd[e],r=Math.round(Number(o));return Number.isFinite(r)?jo(r,t,a):null}return e==="role"?Eo.includes(String(o))?o:null:o}var fC=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function sC(e){let o=[];for(let[t,a]of fC)t===e?o.push(a):a===e&&o.push(t);return o}function Mw(e,o,t,a){let r={...aC(e,o)},n=a==null?null:lC(t,a);if(n===null)delete r[t];else{r[t]=n;for(let l of sC(t))delete r[l]}return id(e,o,r)}function Hw(e,o){return id(e,o,{})}function cC(e){for(let o of Db)if(en[o]===e)return o;return"none"}function dC(e){return!e||!Object.hasOwn(en,e)?"":en[e]}var uC={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 iC(e){let o=e.role;return o&&Eo.includes(o)?o:null}var pC={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 mC(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=bo(xC+e.line*Xb,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=bo(e.letter*jb,4)),o}var xC=1,Qo="--sf-part-para";function ea(e,o,t){let a=iC(e),r=mC(e),n=e.size?`${e.size}px`:a?t?.has(ct[a])?`var(--size-${ct[a]})`:pC[ct[a]]??"":"";return{fontFamily:e.font?bC(e.font):a?`var(${uC[a]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:n,minWidth:n?"0":"",overflowWrap:n?"break-word":"",lineHeight:r.lineHeight!==void 0?String(r.lineHeight):"",letterSpacing:r.letterSpacingEm!==void 0?`${r.letterSpacingEm}em`:"",[Qo]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:dC(e.case),textAlign:e.align??"",paddingTop:Zr(e.padding),paddingBottom:Zr(e.padding),maxWidth:Zr(e.width),color:IC(e.color)}}var IC=e=>e===void 0||e===""?"":Object.hasOwn(ve,e)?ve[e]:pd.test(e)?e:"",pd=/^#[0-9a-fA-F]{6}$/;function md(e){return pd.test(e)}var Zr=e=>e===void 0?"":`${e}px`,bo=(e,o)=>Number(e.toFixed(o));function Gw(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:hC(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(a)?bo(a/t,3):1.2,letterEm:Number.isFinite(r)?bo(r/t,4):0,align:gC(e.textAlign),case:cC(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(l)&&l<Jt?Math.round(l):Jt}}function hC(e){return Number.isFinite(e)?Nb.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function gC(e){for(let o of Mb)if(o===e)return o;return e==="end"?"right":"left"}function Uw(e,o){let t=sd(e);if(!t)return"";for(let a of ma)if(sd(o(a.cssVar))===t)return a.key;return""}var sd=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function bC(e){let o=Yn(e);return o?`var(${o.cssVar})`:""}function Ww(e,o,t,a){return!o||Xo(o)?.nodeId!==e?null:t.find(r=>a(r.getAttribute("class")))??t[0]??null}function CC(e){let o=new Set,t=e;if(typeof window>"u"||!t?.ownerDocument)return o;let a=window.getComputedStyle(t);for(let r of SC)a.getPropertyValue(`--size-${r}`).trim()&&o.add(r);return o}var SC=["headingLarge","headingMedium","headingSmall","accent","body","label"];function $w(e,o,t=()=>Zo,a=n=>n,r=TC){let n=0;for(let{element:l,partId:f}of e){let s=Xo(f)?.propKey;if(!s)continue;let c=a(s),i=Object.hasOwn(o,c)?Yo(o[c])??{}:{},u=ea(i,Zo,CC(l)),p=Qr.some(x=>l.style[x]),m=!1;for(let[x,I]of Object.entries(u))vC(l,x,I),I&&(m=!0);if(p||Qr.some(x=>u[x]))for(let x of yC(l,r))for(let I of Qr)x.style[I]=u[I]??"";m&&(n+=1)}return n}function yC(e,o){let t=go(e.textContent??""),a=[],r=e;for(let n=0;n<FC&&o(r);n+=1){let l=r.parentElement;if(!l||go(l.textContent??"")!==t)break;a.push(l),r=l}return a}var FC=8;function TC(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Zo={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:Jt};function vC(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let a=e.style;typeof a.setProperty=="function"?t?a.setProperty(o,t):a.removeProperty?.(o):a[o]=t;let r=e;o===Qo&&(t?r.setAttribute?.(cd,""):r.removeAttribute?.(cd))}var cd="data-sf-part-para",EC=Object.keys(ea({},Zo)),on=new Set(["color","overflowWrap",Qo]),Qr=EC.filter(e=>!on.has(e));function xd(e,o,t,a=r=>r){let r=new Map;for(let f of e){let s=zr(f.key,f.row);for(let c of f.texts){let i=r.get(c);i?(i.keys.add(f.key),i.partKeys.add(s)):r.set(c,{keys:new Set([f.key]),partKeys:new Set([s])})}}let n=new Map;for(let f of Object.keys(o)){if(!LC(f))continue;let s=Yo(o[f])??{},c=ea(s,Zo);Object.values(c).some(Boolean)&&n.set(f,{stamp:dd(t,f),declarations:c})}let l=new Map;for(let[f,{keys:s,partKeys:c}]of r){let i=c.size===1?[...c][0]:s.size===1?[...s][0]:null;if(!i)continue;let u=a(i);if(!Object.hasOwn(o,u))continue;let p=Yo(o[u])??{},m=ea(p,Zo);Object.values(m).some(Boolean)&&l.set(f,{stamp:dd(t,i),declarations:m})}return l.size||n.size?{rules:l,kindRules:n,drawn:new Set(r.keys())}:null}function LC(e){return e.startsWith("@")}function Id(e,o){return e?.kindRules.get(o)??null}function dd(e,o){let t=a=>a.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function hd(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])=>`${OC(m)}: ${x}`).join("; "),c=`[${tn}="${n}"]`,i=f.filter(([p])=>!on.has(p)),u=f.filter(([p])=>on.has(p));i.length&&o.push(`${c}, *:has(> ${c}) { ${s(i)} }`),u.length&&o.push(`${c} { ${s(u)} }`),l[Qo]&&o.push(...BC(c))};for(let r of e.rules.values())a(r);for(let r of e.kindRules.values())a(r);return o.join(`
4
- `)}function BC(e){let o=`var(${Qo})`,t=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${o} }`,`${e} ${t}:not(:first-child) { margin-top: ${o} }`,`${e} ${t}:not(:last-child) { margin-bottom: ${o} }`]}var OC=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function gd(e,o){if(!e)return null;let t=go(o),a=e.rules.get(t);if(a)return a;if(t.length<PC||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 PC=8;import{Fragment as DC,jsx as nn}from"react/jsx-runtime";import{Fragment as yd,jsx as oa,jsxs as kC}from"react/jsx-runtime";import{createContext as Fd,useContext as an,useId as wC,useMemo as _C}from"react";var Jo="@name",bd="@body",Cd="@value",zw={[Jo]:"Name",[bd]:"Body",[Cd]:"Value"},AC={TimelineTrack:{"entries.date":Jo,"entries.title":Jo,"entries.blurb":bd},Footprint:{"offices.city":Jo},Stats:{"items.label":Jo,"items.value":Cd}};function RC(e){let{key:o,row:t}=Vr(e);return t?`${o}.${t.rowKey}`:null}function Sd(e,o){if(!e)return o;let t=RC(o);return t?AC[e]?.[t]??o:o}var rn=Fd(null),Td=Fd(null);function Qw({needles:e,styles:o,type:t,children:a}){let r=wC(),n=JSON.stringify([r,e,o,t]),l=_C(()=>xd(e,o,r,f=>Sd(t,f)),[n]);return l?kC(yd,{children:[oa("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:hd(l)}}),oa(rn.Provider,{value:l,children:a})]}):oa(yd,{children:a})}function vd(e){let o=an(rn),t=an(Td),a=gd(o,e);return a&&a.stamp!==t?a:null}function Jw(e){return Id(an(rn),e)}function Ed({stamp:e,children:o}){return oa(Td.Provider,{value:e,children:o})}function et({value:e,children:o}){let t=vd(e);return t?nn(Ed,{stamp:t.stamp,children:nn("span",{[tn]:t.stamp,children:o})}):nn(DC,{children:o})}function fn(e,o=!1){let t=qC(o),a=Ua(e);if(a.length===1){let[n]=a,l=Ga(n),f=l?WC(l,n.children):n.children;return O(et,{value:e,children:ta(f,t)})}let r=[];return a.forEach((n,l)=>{if(n.bullet){r.push(O("span",{"data-sf-bullet":"",className:NC,children:ta(n.children,t)},l));return}if(n.number!=null){r.push(ln("span",{"data-sf-number":n.number,className:MC,children:[ln("span",{className:HC,children:[n.number,"."]}),ta(n.children,t)]},l));return}l>0&&!GC(a[l-1])&&r.push(O("br",{},`br${l}`)),r.push(O(Bd,{children:ta(n.children,t)},l))}),O(et,{value:e,children:r})}var NC="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",MC="relative block pl-[2em]",HC="absolute left-0 w-[1.6em] text-right tabular-nums";function GC(e){return e.bullet||e.number!=null}var UC="text-accent underline underline-offset-[0.18em]";function WC(e,o){let[t,...a]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...a]:[{kind:"text",text:e},...o]}function $C(e){if(e)return md(e)?e:Object.hasOwn(ve,e)?ve[e]:void 0}function ta(e,o){let t=[],a=!1;return e.forEach((r,n)=>{if(r.kind==="text"){t.push(O("span",{children:Qt(r.text)},n)),a=!0;return}a||t.push(O("span",{},`e${n}`)),t.push(Od(r,n,o)),a=!1}),a||t.push(O("span",{},"end")),t}function Ld(e,o){return e.length===1&&e[0].kind==="text"?Qt(e[0].text):e.map((t,a)=>t.kind==="text"?O(Bd,{children:Qt(t.text)},a):Od(t,a,o))}function qC(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function i0(e){return O(et,{value:e,children:O("span",{children:e})})}function Od(e,o,t){if(e.kind==="link")return O("a",{href:e.href,className:UC,children:Ld(e.children,t)},o);let a=Ld(e.children,t),r=Vl[e.kind];if(r)return O("span",{[Xl]:r,children:a},o);switch(e.kind){case"underline":return O("u",{children:a},o);case"sup":return O("sup",{children:a},o);case"sub":return O("sub",{children:a},o);case"color":{let n=$C(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 p0(e,o=!0){let t=e.split(`
5
- `);return O(et,{value:e,children:t.map((a,r)=>ln("span",{children:[fn(a,o),r<t.length-1?O("br",{}):null]},r))})}function m0(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var sn={accent:"#2563eb",accentTint:"#eff6ff",accentText:"#1d4ed8",appBg:"#f9fafb",previewBg:"#f3f4f6",panel:"#ffffff",fieldBg:"#ffffff",inputBorder:"#d1d5db",text:"#111827",text2:"#374151",muted:"#6b7280",line:"#e5e7eb",chipBg:"#f3f4f6",chipFg:"#6b7280",panelRadius:12,rowRadius:8,panelShadow:"0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.06)",topbarShadow:"0 1px 3px rgba(0,0,0,.06)",panelGap:10,leftWidth:288,rightWidth:308,topbarHeight:52,labelFont:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif"};var Pd={min:40,max:100,step:5,fallback:100,unit:"vh"};function cn(e){return`${typeof e=="number"?e:Pd.fallback}${Pd.unit}`}function Ad(...e){return e.some(o=>typeof o=="number")}import{useSyncExternalStore as KC}from"react";var zC={level:"groups"},kd=zC,dn=new Set;function b0(e){kd=e;for(let o of dn)o()}function VC(e){return dn.add(e),()=>{dn.delete(e)}}var Rd=()=>kd;function C0(){return KC(VC,Rd,Rd)}function wd(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 y0(e){if(e<=1)return"grid-cols-1";if(e===2)return"grid-cols-2";if(e===3)return"grid-cols-3";if(e===4)return"grid-cols-4";let o=t=>e%t||t;return o(4)>=o(3)?"grid-cols-4":"grid-cols-3"}var ot=e=>String(e?.group??""),un=new WeakMap,XC=0;function jC(e){let o=un.get(e);return o||(o=`loc${++XC}`,un.set(e,o)),o}var v0=(e,o)=>o||e||"Ungrouped",_d={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 aa(e){return wd(e,ot,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var pn=e=>e.flatMap(o=>o.cards),Dd=(e,o,t)=>Math.min(Math.max(e,o),t);function YC(e,o,t){let a=0;for(let r=0;r<e.length;r++)if(ot(e[r])===o){if(a===t)return r;a++}return-1}function E0(e,o,t){let a=aa(e);if(o<0||o>=a.length)return e;let[r]=a.splice(o,1),n=Dd(o<t?t-1:t,0,a.length);return a.splice(n,0,r),pn(a)}function L0(e,o,t,a,r){let n=aa(e),l=n.find(u=>u.key===o),f=n.find(u=>u.key===a);if(!l||!f||t<0||t>=l.cards.length)return e;let[s]=l.cards.splice(t,1),c=o===a?s:{...s,group:f.key,groupName:f.name};c!==s&&un.set(c,jC(s));let i=Dd(l===f&&t<r?r-1:r,0,f.cards.length);return f.cards.splice(i,0,c),pn(n)}function B0(e,o){let t=aa(e),a=t.find(n=>n.key===o),r={..._d,group:o,groupName:a?.name??""};return a?(a.cards.push(r),pn(t)):[...e,r]}function O0(e){let o=new Set(aa(e).map(r=>r.key)),t=o.size+1,a=`Group ${t}`;for(;o.has(a);)a=`Group ${++t}`;return{cards:[...e,{..._d,group:a,groupName:""}],key:a}}function P0(e,o){return e.filter(t=>ot(t)!==o)}function A0(e,o,t){let a=YC(e,o,t);return a<0?e:e.filter((r,n)=>n!==a)}function R0(e,o,t){let a=e.flatMap((l,f)=>ot(l)===o?[f]:[]),r=e.slice();a.forEach((l,f)=>{r[l]=t[f]});let n=t.slice(a.length);return[...r.filter(l=>l!==void 0),...n]}function k0(e,o,t){return o.flatMap(a=>{let r=e.filter(n=>ot(n)===a);return r.length?r:t(a)})}var ZC="plain",Nd=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],QC="line",JC={KeyFeatures:"filled"};function eS(e){return JC[e]??ZC}function D0(e,o){return K(Nd,eS(o),e)}function N0(e){return K(Nd,QC,e)}var oS="#9ca3af";function G0(e){return Ha.map(o=>({key:o,name:jl[o],value:e?.[o]||oS}))}function U0(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 Ha){let f=ve[l].replace(/^var\((--[\w-]+)\)$/,"$1"),s=r.getPropertyValue(f).trim();if(!s)continue;let c=Md(s);!c&&n&&(n.fillStyle="#000000",n.fillStyle=s,c=Md(String(n.fillStyle))),c&&(o[l]=c)}return o}function Md(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 tS={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}},Hd=tS;var ra="data-sf-spec-region";function q0(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 aS(e){return`@${e}`}function rS(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function Gd(e,o){return o&&o in e?o:null}function nS(e,o){let t=o?.closest(`[${ra}]`)?.getAttribute(ra);return Gd(e,t??null)}var lS={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}},Ud=lS;var j0=ra;var Wd={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 $d={SpecTable:Wd,FAQ:Ud,Collections:Hd};function e_(e){return e&&Object.hasOwn($d,e)?$d[e]:null}import{jsx as TS}from"react/jsx-runtime";import{forwardRef as fS,createElement as mn}from"react";var qd={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=fS(({color:n="currentColor",size:l=24,stroke:f=2,title:s,className:c,children:i,...u},p)=>mn("svg",{ref:p,...qd[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${o}`,c].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:f,stroke:n},...u},[s&&mn("title",{key:"svg-title"},s),...a.map(([m,x])=>mn(m,x)),...Array.isArray(i)?i:[i]]));return r.displayName=`${t}`,r};var sS=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],xn=E("outline","brand-facebook","BrandFacebook",sS);var cS=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],In=E("outline","brand-instagram","BrandInstagram",cS);var dS=[["path",{d:"M8 11v5",key:"svg-0"}],["path",{d:"M8 8v.01",key:"svg-1"}],["path",{d:"M12 16v-5",key:"svg-2"}],["path",{d:"M16 16v-3a2 2 0 1 0 -4 0",key:"svg-3"}],["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-4"}]],hn=E("outline","brand-linkedin","BrandLinkedin",dS);var uS=[["path",{d:"M8 20l4 -9",key:"svg-0"}],["path",{d:"M10.7 14c.437 1.263 1.43 2 2.55 2c2.071 0 3.75 -1.554 3.75 -4a5 5 0 1 0 -9.7 1.7",key:"svg-1"}],["path",{d:"M3 12a9 9 0 1 0 18 0a9 9 0 1 0 -18 0",key:"svg-2"}]],gn=E("outline","brand-pinterest","BrandPinterest",uS);var iS=[["path",{d:"M21 7.917v4.034a9.948 9.948 0 0 1 -5 -1.951v4.5a6.5 6.5 0 1 1 -8 -6.326v4.326a2.5 2.5 0 1 0 4 2v-11.5h4.083a6.005 6.005 0 0 0 4.917 4.917",key:"svg-0"}]],bn=E("outline","brand-tiktok","BrandTiktok",iS);var pS=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Cn=E("outline","brand-whatsapp","BrandWhatsapp",pS);var mS=[["path",{d:"M4 4l11.733 16h4.267l-11.733 -16l-4.267 0",key:"svg-0"}],["path",{d:"M4 20l6.768 -6.768m2.46 -2.46l6.772 -6.772",key:"svg-1"}]],Sn=E("outline","brand-x","BrandX",mS);var xS=[["path",{d:"M2 8a4 4 0 0 1 4 -4h12a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-12a4 4 0 0 1 -4 -4v-8",key:"svg-0"}],["path",{d:"M10 9l5 3l-5 3l0 -6",key:"svg-1"}]],yn=E("outline","brand-youtube","BrandYoutube",xS);var IS=[["path",{d:"M18 2a1 1 0 0 1 .993 .883l.007 .117v4a1 1 0 0 1 -.883 .993l-.117 .007h-3v1h3a1 1 0 0 1 .991 1.131l-.02 .112l-1 4a1 1 0 0 1 -.858 .75l-.113 .007h-2v6a1 1 0 0 1 -.883 .993l-.117 .007h-4a1 1 0 0 1 -.993 -.883l-.007 -.117v-6h-2a1 1 0 0 1 -.993 -.883l-.007 -.117v-4a1 1 0 0 1 .883 -.993l.117 -.007h2v-1a6 6 0 0 1 5.775 -5.996l.225 -.004h3z",key:"svg-0"}]],Fn=E("filled","brand-facebook-filled","BrandFacebookFilled",IS);var hS=[["path",{d:"M16 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-8a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-4 5a4 4 0 0 0 -3.995 3.8l-.005 .2a4 4 0 1 0 4 -4m4.5 -1.5a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],Tn=E("filled","brand-instagram-filled","BrandInstagramFilled",hS);var gS=[["path",{d:"M17 2a5 5 0 0 1 5 5v10a5 5 0 0 1 -5 5h-10a5 5 0 0 1 -5 -5v-10a5 5 0 0 1 5 -5zm-9 8a1 1 0 0 0 -1 1v5a1 1 0 0 0 2 0v-5a1 1 0 0 0 -1 -1m6 0a3 3 0 0 0 -1.168 .236l-.125 .057a1 1 0 0 0 -1.707 .707v5a1 1 0 0 0 2 0v-3a1 1 0 0 1 2 0v3a1 1 0 0 0 2 0v-3a3 3 0 0 0 -3 -3m-6 -3a1 1 0 0 0 -.993 .883l-.007 .127a1 1 0 0 0 1.993 .117l.007 -.127a1 1 0 0 0 -1 -1",key:"svg-0"}]],vn=E("filled","brand-linkedin-filled","BrandLinkedinFilled",gS);var bS=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],En=E("filled","brand-pinterest-filled","BrandPinterestFilled",bS);var CS=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],Ln=E("filled","brand-tiktok-filled","BrandTiktokFilled",CS);var SS=[["path",{d:"M18.497 4.409a10 10 0 0 1 -10.36 16.828l-.223 -.098l-4.759 .849l-.11 .011a1 1 0 0 1 -.11 0l-.102 -.013l-.108 -.024l-.105 -.037l-.099 -.047l-.093 -.058l-.014 -.011l-.012 -.007l-.086 -.073l-.077 -.08l-.067 -.088l-.056 -.094l-.034 -.07l-.04 -.108l-.028 -.128l-.012 -.102a1 1 0 0 1 0 -.125l.012 -.1l.024 -.11l.045 -.122l1.433 -3.304l-.009 -.014a10 10 0 0 1 1.549 -12.454l.215 -.203a10 10 0 0 1 13.226 -.217m-8.997 3.09a1.5 1.5 0 0 0 -1.5 1.5v1a6 6 0 0 0 6 6h1a1.5 1.5 0 0 0 0 -3h-1l-.144 .007a1.5 1.5 0 0 0 -1.128 .697l-.042 .074l-.022 -.007a4.01 4.01 0 0 1 -2.435 -2.435l-.008 -.023l.075 -.041a1.5 1.5 0 0 0 .704 -1.272v-1a1.5 1.5 0 0 0 -1.5 -1.5",key:"svg-0"}]],Bn=E("filled","brand-whatsapp-filled","BrandWhatsappFilled",SS);var yS=[["path",{d:"M8.267 3a1 1 0 0 1 .73 .317l.076 .092l4.274 5.828l5.946 -5.944a1 1 0 0 1 1.497 1.32l-.083 .094l-6.163 6.162l6.262 8.54a1 1 0 0 1 -.697 1.585l-.109 .006h-4.267a1 1 0 0 1 -.73 -.317l-.076 -.092l-4.276 -5.829l-5.944 5.945a1 1 0 0 1 -1.497 -1.32l.083 -.094l6.161 -6.163l-6.26 -8.539a1 1 0 0 1 .697 -1.585l.109 -.006h4.267z",key:"svg-0"}]],On=E("filled","brand-x-filled","BrandXFilled",yS);var FS=[["path",{d:"M18 3a5 5 0 0 1 5 5v8a5 5 0 0 1 -5 5h-12a5 5 0 0 1 -5 -5v-8a5 5 0 0 1 5 -5zm-9 6v6a1 1 0 0 0 1.514 .857l5 -3a1 1 0 0 0 0 -1.714l-5 -3a1 1 0 0 0 -1.514 .857z",key:"svg-0"}]],Pn=E("filled","brand-youtube-filled","BrandYoutubeFilled",FS);var aD="outline",vS={instagram:{outline:In,solid:Tn},facebook:{outline:xn,solid:Fn},tiktok:{outline:bn,solid:Ln},youtube:{outline:yn,solid:Pn},x:{outline:Sn,solid:On},linkedin:{outline:hn,solid:vn},pinterest:{outline:gn,solid:En},whatsapp:{outline:Cn,solid:Bn}};function rD({platform:e,iconStyle:o,size:t}){let a=vS[e][o];return TS(a,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var An="small",Rn="dot",ES=[{label:"Small",value:"small"},{label:"Display",value:"display"}],LS=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],Kd={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},BS={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)]"},OS={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 zd(e){return K(ES,An,e)}function Vd(e){return K(LS,Rn,e)}function Xd(e){return BS[e]}function jd(e,o){return OS[e][o]}var kn="left",PS=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],AS={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function Yd(e){return K(PS,kn,e)}function Zd(e){return e==="up"||e==="down"}function Qd(e,o){return`${AS[e]} ${o}s linear infinite`}var RS={"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]"},kS=`calc(${vt} - ${$}*2)`,Jd=`var(${qa},${$})`,iD=`pointer-events-none absolute inset-y-0 left-[${Jd}] right-[${Jd}] z-[6] mx-auto max-w-[var(${Ka},${kS.replace(/ /g,"_")})]`;function na(e,o){return`pointer-events-auto absolute ${RS[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function eu(e){return oe.includes(e)?e:null}var wS="bottom-right",_S=["outline","solid","square","bare"],DS="outline",ID={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},hD=!1,ou=["prev","next"],tu={prev:"Previous slide",next:"Next slide"};function NS(e){return _S.includes(e)?e:DS}function MS(e){return eu(e)??wS}var HS="flex-row items-center gap-2";function au(e){return na(MS(e),HS)}var GS={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 ru(e){return GS[NS(e)]}function nu(e){return e.shown===!0&&(e.count??0)>1}function la(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 US=oe;var WS="top-right",$S=["cards","dots","numbers","bar","tabs"],qS=["cards","dots","numbers","bar"],lu="cards",SD={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},yD=!0;function fa(e){return $S.includes(e)?e:lu}function fu(e){return qS.includes(e)?e:lu}function KS(e){return US.includes(e)?e:WS}var su={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 cu(e,o){return na(KS(o),su[fa(e)])}function du(e){return`flex ${su[fa(e)]}`}function uu(e){return e.shown!==!1&&(e.count??0)>1}function zS(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function VS(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 iu(e,o){let t=Array.from(o,zS);return VS(e,t)?e:t}import{useEffect as XS,useState as jS}from"react";var pu="(prefers-reduced-motion: reduce)";function YS(){return globalThis.window?.matchMedia?.(pu)?.matches??!1}function vD(){return YS()?"auto":"smooth"}function mu(){let[e,o]=jS(!1);return XS(()=>{let t=globalThis.window?.matchMedia?.(pu);if(!t||(o(t.matches),typeof t.addEventListener!="function"))return;let a=r=>o(r.matches);return t.addEventListener("change",a),()=>t.removeEventListener("change",a)},[]),e}import{jsx as ue,jsxs as ca}from"react/jsx-runtime";import{useCallback as Co,useEffect as So,useId as ny,useRef as Ie,useState as rt}from"react";var xu="data-puck-overlay-portal";function sa(e){return e.setAttribute(xu,"true"),()=>e.removeAttribute(xu)}import{jsx as tt,jsxs as Iu}from"react/jsx-runtime";var ZS={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function hu({items:e,separator:o=Rn,size:t=An,durationSec:a=50,scroll:r=kn,backdrop:n="themed-band",className:l}){let f=zd(t),s=Yd(r),c=Vd(o),i=`text-accent ${jd(f,c)}`.trim(),u=Kd[c],p=u===""?tt("span",{}):tt("span",{className:i,children:u}),m=Zd(s),x=m?"inline-flex flex-col items-center gap-[60px] pb-[60px] max-[800px]:gap-8 max-[800px]:pb-8":"inline-flex items-center gap-[60px] pr-[60px] max-[800px]:gap-8 max-[800px]:pr-8",I=m?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",g=L=>tt("span",{className:x,children:e.map((y,b)=>{let B=typeof y=="string"?y:y.text,G=typeof y=="object"&&y.gold;return Iu("span",{className:I,children:[tt("span",{className:G?"text-accent":void 0,children:fn(B)}),p]},b)})},L);return tt("div",{className:`overflow-hidden ${l??""}`,children:Iu("div",{className:`flex ${m?"flex-col ":""}whitespace-nowrap ${Xd(f)} ${ZS[n]}`,style:{animation:Qd(s,a)},children:[g("a"),g("b")]})})}import{jsx as wn}from"react/jsx-runtime";function gu({shape:e,placement:o,ref:t}){let a=ru(e);return wn("div",{ref:t,className:au(o),style:{color:"var(--overlay-fg)"},children:ou.map(r=>wn("button",{type:"button","data-hero-nav":r,"aria-label":tu[r],className:a,children:wn($o,{name:"chevron-right",size:18,rounded:!0,style:r==="prev"?{rotate:"180deg"}:void 0})},r))})}import{jsx as H,jsxs as _n,Fragment as at}from"react/jsx-runtime";function bu({slides:e,active:o,shape:t,placement:a,ref:r,tone:n="media",label:l}){let f=fa(t),s=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--site-surface-2)"}:void 0;return _n("aside",{ref:r,"aria-label":l??"Featured slides",className:n==="surface"?du(f):cu(f,a),style:{color:"var(--overlay-fg)",...s},children:[f==="cards"&&H(QS,{slides:e,active:o}),f==="dots"&&H(JS,{count:e.length,active:o}),f==="numbers"&&H(ey,{count:e.length,active:o}),f==="bar"&&H(oy,{count:e.length,active:o}),f==="tabs"&&H(ty,{slides:e,active:o})]})}function QS({slides:e,active:o}){return _n(at,{children:[H("span",{className:"mb-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.28em] text-overlay-chrome/55",children:"Reel \xB7 pick a slide"}),e.map((t,a)=>{let r=a===o;return _n("button",{type:"button","data-idx":a,"aria-pressed":r,"aria-label":`Go to ${t.name||`slide ${a+1}`}`,className:["group flex w-[170px] cursor-pointer flex-col items-start gap-0.5 border bg-overlay-scrim/55 px-3 py-2.5 text-left transition-all motion-reduce:transition-none max-[1100px]:w-[140px]",r?"border-accent bg-overlay-scrim/70":"border-overlay-chrome/15 hover:border-overlay-chrome/45 hover:bg-overlay-scrim/70"].join(" "),children:[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 JS({count:e,active:o}){return H(at,{children:Array.from({length:e},(t,a)=>H("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`h-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 ey({count:e,active:o}){return H(at,{children:Array.from({length:e},(t,a)=>H("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`cursor-pointer font-mono text-[length:var(--size-label,11px)] leading-none tracking-[0.06em] transition-colors ${a===o?"text-overlay-fg":"text-overlay-chrome/45 hover:text-overlay-chrome/80"}`,children:String(a+1).padStart(2,"0")},a))})}function oy({count:e,active:o}){return H(at,{children:Array.from({length:e},(t,a)=>H("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`h-full flex-1 cursor-pointer transition-colors ${a<=o?"bg-overlay-fg":"bg-overlay-chrome/25"}`},a))})}function ty({slides:e,active:o}){return H(at,{children:e.map((t,a)=>{let r=a===o;return H("button",{type:"button","data-idx":a,"aria-pressed":r,className:["flex min-w-[140px] flex-1 cursor-pointer items-end px-6 py-7 text-left transition-colors",a>0?"border-l border-overlay-chrome/15":"",r?"bg-overlay-scrim/70":"hover:bg-overlay-scrim/40"].join(" "),children:H("span",{className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium uppercase leading-tight tracking-[-0.02em]",r?"text-overlay-fg":"text-overlay-chrome/55"].join(" "),children:t.name})},a)})})}var ay=40;function ry(e,o){return Math.abs(e)<=ay||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function Cu(e,o,t,a){let r=ry(e,o);return r?la(r,t,a):t}function Su(e){return(e.count??0)>1&&e.editing!==!0}function yu(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function Fu(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as Dn}from"efficient-easel/screen/lib/puck/preview-events";var ly=`
7
- .hero-ticker-pick { cursor: pointer; }
8
- .hero-ticker-pick:hover {
9
- outline: 2px solid color-mix(in srgb, ${sn.accent} 45%, transparent);
10
- outline-offset: -2px;
11
- }
12
- .hero-ticker-pick[data-selected] {
13
- outline: 2px solid ${sn.accent};
14
- outline-offset: -2px;
15
- }
16
- `,fy="Play video",sy="Hold video",cy="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",dy="item",uy=["","","","","",""],Tu=new Map;function iy(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(Dn,o),()=>t.removeEventListener(Dn,o)}function s1({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=Ad(u,p),G=B?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",ie=B?{"--sf-hero-h-d":cn(u),"--sf-hero-h-m":cn(p)}:void 0,Z=(i??uy.map(h=>({text:h}))).map(h=>h?.text?.trim()?h.text:b?dy:"").filter(Boolean),Q=c!==!1,F=Ie(null),V=Ie(null),nt=Ie(null),k=Ie(null),Ke=Ie(null),ze=ny(),Ve=Ie(ze),[Xe,Eu]=rt([]),[Lu,Nn]=rt(0),yo=Ie(0),[Mn,Hn]=rt(!1),[lt,Bu]=rt(!1),[Gn,Ou]=rt(null),ua=mu(),{selectedHeroId:Pu,select:Un}=Xc(),ft=Co(()=>F.current?.querySelector(".hero-track")??null,[]),he=Co((h,S=!1)=>{Nn(h),yo.current=h,Tu.set(Ve.current,h);let v=F.current?.querySelector(".hero-track");if(v)if(S){let P=v.style.transition;v.style.transition="none",v.style.transform=`translateX(-${Math.max(0,h)*100}%)`,v.offsetHeight,v.style.transition=P}else v.style.transform=`translateX(-${Math.max(0,h)*100}%)`},[]);So(()=>{let h=F.current,S=h?.getAttribute("data-puck-component")||h?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||ze;Ve.current=S,Ou(S);let v=Tu.get(S);typeof v=="number"&&(Nn(v),yo.current=v)},[]),So(()=>{let h=ft();if(!h)return;let S=()=>{Eu(P=>iu(P,h.querySelectorAll("[data-slide-name]")))};S();let v=new MutationObserver(S);return v.observe(h,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{v.disconnect()}},[ft]),So(()=>{if(!b)return;let h=S=>{let v=S.detail;if(!v||typeof v.index!="number")return;let P=F.current,pe=P?.getAttribute("data-puck-component")||P?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||Ve.current;v.id&&v.id!==pe||he(v.index,!0)};return iy(F.current,h)},[b,he]);let J=Xe.length,je=Math.min(Math.max(Lu,0),Math.max(0,J-1)),ia=uu({shown:m,count:J}),Wn=nu({shown:g,count:J}),$n=yu({editing:b,shown:je,slides:Xe}),Au=Fu({editing:b,playing:lt,controlShown:$n}),st=Su({count:J,editing:b}),Ye=Ie(null),Fo=Ie(null),Ru=Co(h=>{if(Ye.current=null,Fo.current=null,!st||h.touches.length!==1)return;let S=h.touches[0];Ye.current={x:S.clientX,y:S.clientY},Fo.current={x:S.clientX,y:S.clientY}},[st]),ku=Co(h=>{if(!Ye.current)return;if(h.touches.length!==1){Ye.current=null;return}let S=h.touches[0];Fo.current={x:S.clientX,y:S.clientY}},[]),wu=Co(()=>{let h=Ye.current,S=Fo.current;if(Ye.current=null,Fo.current=null,!st||!h||!S)return;let v=Cu(S.x-h.x,S.y-h.y,yo.current,J);v!==yo.current&&he(v)},[st,J,he]);So(()=>{if(b||!f||Mn||ua||J<=1)return;let h=Math.max(1,typeof s=="number"?s:6)*1e3,S=window.setTimeout(()=>he((je+1)%J),h);return()=>window.clearTimeout(S)},[b,f,s,Mn,ua,J,je,he]),So(()=>{let h=[V.current,nt.current,k.current].filter(Boolean),S=h.map(P=>sa(P)),v=P=>{let pe=P.target,To=pe.closest("[data-hero-nav]"),qn=To??pe.closest("[data-idx]");if(!qn)return;P.stopPropagation(),P.preventDefault();let pa=To?la(To.dataset.heroNav,yo.current,J):Number(qn.dataset.idx);Number.isNaN(pa)||(he(pa,b),ft()?.querySelectorAll("[data-slide-name]")[pa]?.click())};return h.forEach(P=>P.addEventListener("click",v,{capture:!0})),()=>{S.forEach(P=>P?.()),h.forEach(P=>P.removeEventListener("click",v,{capture:!0}))}},[J,he,ft,b]),So(()=>{if(!b)return;let h=Ke.current;if(!h)return;let S=sa(h),v=P=>{P.stopPropagation(),P.preventDefault();let pe=F.current,To=pe?.getAttribute("data-puck-component")||pe?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||Ve.current;Un(To)};return h.addEventListener("click",v,{capture:!0}),()=>{S?.(),h.removeEventListener("click",v,{capture:!0})}},[b,Un,Q,Z.length]);let _u=Co(h=>{if(!h)return;let S=sa(h),v=P=>{P.stopPropagation(),P.preventDefault(),Bu(pe=>!pe)};return h.addEventListener("click",v,{capture:!0}),()=>{S?.(),h.removeEventListener("click",v,{capture:!0})}},[]);return ue(Ra.Provider,{value:{alignment:o,textureOpacity:t,textureOn:a,textureColor:r,quietVideo:Au,phoneUpDown:n,phoneSideways:l},children:ca("div",{ref:F,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${G} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:ie,onMouseEnter:()=>Hn(!0),onMouseLeave:()=>Hn(!1),onTouchStart:Ru,onTouchMove:ku,onTouchEnd:wu,children:[ue(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${je*100}%)`,transition:ua?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),$n&&ue("div",{ref:_u,"data-hero-video-control":lt?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Yc} + 16px)`},children:ca("button",{type:"button",className:cy,children:[ue("span",{"aria-hidden":"true",children:lt?"\u275A\u275A":"\u25B6"}),lt?sy:fy]})}),(ia||Wn)&&ca("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:[ia&&ue(bu,{ref:V,slides:Xe,active:je,shape:fu(x),placement:I}),Wn&&ue(gu,{ref:k,shape:L,placement:y})]}),ia&&ue("div",{ref:nt,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:Xe.map((h,S)=>ue("button",{type:"button","data-idx":S,"aria-label":`Go to slide ${S+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${S===je?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},S))}),Q&&Z.length>0&&ca("div",{ref:Ke,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${b?" hero-ticker-pick":""}`,"data-selected":b&&Gn!=null&&Pu===Gn?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[b&&ue("style",{children:ly}),ue(hu,{items:Z,backdrop:"dark-media"})]})]})})}var da="data-theme",vu="light";function py(e){return e.getAttribute(da)===vu?"light":"dark"}function my(e,o){return py(e)===o?!1:(o==="light"?e.setAttribute(da,vu):e.removeAttribute(da),!0)}function xy(e){return ba(e).getItem(xa)}function i1(e,o){ba(e).setItem(xa,o)}function Iy(e,o,t=new Date().getHours()){return Zn({mode:o.mode,override:xy(e),switchShown:o.switchShown,hour:t})}function p1(e,o){let t=e.documentElement;if(!t)return()=>{};let a=()=>my(t,Iy(e,o));a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[da]}),()=>n.disconnect()}var hy="style";function gy(e,o){let t=tl(o),a=!1;for(let r of ol){let n=t[r]??"";e.style.getPropertyValue(r)!==n&&(n?e.style.setProperty(r,n):e.style.removeProperty(r),a=!0)}return a}function m1(e,o){let t=e.body;if(!t)return()=>{};let a=()=>gy(t,o);a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[hy]}),()=>n.disconnect()}export{sF as a,cF as b,dF as c,uF as d,Ii as e,ye as f,xF as g,IF as h,wa as i,ET as j,Ne as k,bl as l,_ as m,Gl as n,mT as o,Wl as p,TF as q,Sl as r,vF as s,Pl as t,kl as u,wl as v,JF as w,eT as x,oT as y,tT as z,zi as A,uT as B,ht as C,Ti as D,LF as E,Fe as F,BF as G,OF as H,Fl as I,PF as J,AF as K,RF as L,Bi as M,bt as N,Me as O,DF as P,Oo as Q,MF as R,HF as S,GF as T,UF as U,Te as V,ST as W,yT as X,up as Y,HT as Z,xs as _,Ix as $,JL as aa,kt as ba,Is as ca,hx as da,gx as ea,bx as fa,tB as ga,aB as ha,rB as ia,nB as ja,yt as ka,Na as la,UT as ma,WT as na,$T as oa,qT as pa,KT as qa,zT as ra,K as sa,pb as ta,Wk as ua,$k as va,mb as wa,Ib as xa,qk as ya,Kk as za,G0 as Aa,U0 as Ba,sa as Ca,jT as Da,YT as Ea,ev as Fa,ov as Ga,zr as Ha,Vr as Ia,hb as Ja,Jl as Ka,Ua as La,Ao as Ma,Ue as Na,D as Oa,Zf as Pa,Pe as Qa,Uo as Ra,od as Sa,ew as Ta,ow as Ua,tw as Va,yb as Wa,Fb as Xa,Tb as Ya,vb as Za,fw as _a,sw as $a,hw as ab,gw as bb,bw as cb,Cw as db,go as eb,Sw as fb,rd as gb,Eb as hb,yw as ib,Fw as jb,Tw as kb,tn as lb,$b as mb,qb as nb,Kb as ob,zb as pb,Jt as qb,Vb as rb,ud as sb,aC as tb,Mw as ub,Hw as vb,mC as wb,ea as xb,Gw as yb,Uw as zb,Ww as Ab,$w as Bb,EC as Cb,Jo as Db,bd as Eb,zw as Fb,Sd as Gb,Qw as Hb,Jw as Ib,vL as Jb,PL as Kb,AL as Lb,RL as Mb,te as Nb,nf as Ob,bv as Pb,Tt as Qb,Op as Rb,yv as Sb,Ro as Tb,Ap as Ub,Tv as Vb,sf as Wb,qa as Xb,Ka as Yb,Rv as Zb,wv as _b,_v as $b,Dv as ac,Nv as bc,ic as cc,wr as dc,_r as ec,cf as fc,df as gc,ko as hc,mf as ic,$v as jc,_p as kc,qv as lc,gf as mc,zv as nc,Vv as oc,Gp as pc,Xv as qc,dB as rc,bs as sc,uB as tc,Fx as uc,iB as vc,Nt as wc,$O as xc,Er as yc,qO as zc,EI as Ac,KO as Bc,GO as Cc,UO as Dc,Wp as Ec,Et as Fc,Yv as Gc,Sf as Hc,Lt as Ic,yf as Jc,xe as Kc,cE as Lc,Of as Mc,Cy as Nc,Je as Oc,Hu as Pc,Ca as Qc,kf as Rc,Fm as Sc,WE as Tc,Nf as Uc,Qf as Vc,fs as Wc,VL as Xc,ZL as Yc,tr as Zc,Mm as _c,jE as $c,ae as ad,Ss as bd,EB as cd,ys as dd,Fs as ed,kB as fd,KB as gd,gr as hd,br as id,jB as jd,YB as kd,Bs as ld,ZB as md,QB as nd,JB as od,As as pd,Fr as qd,Ly as rd,Py as sd,ll as td,Hs as ud,Us as vd,dI as wd,Gf as xd,W as yd,cl as zd,wy as Ad,Wu as Bd,_y as Cd,Dy as Dd,$u as Ed,Hy as Fd,qu as Gd,Gy as Hd,ya as Id,Wy as Jd,$y as Kd,qy as Ld,Ky as Md,pt as Nd,zy as Od,Vy as Pd,Xy as Qd,Yu as Rd,eF as Sd,ml as Td,ti as Ud,ai as Vd,ri as Wd,Ta as Xd,oF as Yd,qm as Zd,$o as _d,Mt as $d,YO as ae,ZO as be,JO as ce,eP as de,oP as ee,tP as fe,aP as ge,Xf as he,Pt as ie,nr as je,Zm as ke,xL as le,IL as me,Gt as ne,Ut as oe,nP as pe,io as qe,$t as re,sP as se,cP as te,dP as ue,cc as ve,iP as we,gP as xe,Oh as ye,zt as ze,SA as Ae,yA as Be,FA as Ce,TA as De,EA as Ee,LA as Fe,BA as Ge,Gh as He,OA as Ie,PA as Je,AA as Ke,RA as Le,kA as Me,z as Ne,wA as Oe,$h as Pe,_A as Qe,DA as Re,qh as Se,NA as Te,Ec as Ue,qe as Ve,po as We,MA as Xe,zh as Ye,Oc as Ze,Pc as _e,HA as $e,GA as af,UA as bf,WA as cf,$A as df,qA as ef,KA as ff,zA as gf,VA as hf,XA as if,Rc as jf,kc as kf,wc as lf,_c as mf,$e as nf,jA as of,YA as pf,ZA as qf,QA as rf,JA as sf,eR as tf,ke as uf,oR as vf,tR as wf,Wr as xf,aR as yf,$r as zf,rR as Af,nR as Bf,lR as Cf,fR as Df,Cg as Ef,sR as Ff,Mc as Gf,Hc as Hf,Gc as If,Sg as Jf,cR as Kf,dR as Lf,M as Mf,ho as Nf,gR as Of,bR as Pf,CR as Qf,SR as Rf,yR as Sf,FR as Tf,TR as Uf,Eg as Vf,vR as Wf,ER as Xf,LR as Yf,BR as Zf,OR as _f,nF as $f,lF as ag,$c as bg,wR as cg,_R as dg,Ug as eg,GR as fg,UR as gg,KR as hg,zR as ig,jR as jg,YR as kg,Xc as lg,JR as mg,ek as ng,ok as og,tk as pg,jg as qg,nk as rg,tS as sg,lS as tg,ra as ug,q0 as vg,aS as wg,rS as xg,Gd as yg,nS as zg,j0 as Ag,e_ as Bg,Rb as Cg,Ew as Dg,sk as Eg,ck as Fg,Ow as Gg,aD as Hg,rD as Ig,An as Jg,Rn as Kg,ES as Lg,LS as Mg,kn as Ng,PS as Og,et as Pg,Qt as Qg,Rw as Rg,fn as Sg,i0 as Tg,p0 as Ug,m0 as Vg,hu as Wg,wS as Xg,_S as Yg,DS as Zg,ID as _g,hD as $g,WS as ah,qS as bh,lu as ch,SD as dh,yD as eh,bu as fh,vD as gh,sn as hh,Pd as ih,cn as jh,Ad as kh,jc as lh,ik as mh,Yc as nh,Zg as oh,pk as ph,mk as qh,xk as rh,Ik as sh,Qg as th,hk as uh,gk as vh,bk as wh,eb as xh,Ck as yh,ab as zh,Sk as Ah,uy as Bh,s1 as Ch,Ek as Dh,Bk as Eh,b0 as Fh,C0 as Gh,wd as Hh,y0 as Ih,ot as Jh,jC as Kh,v0 as Lh,_d as Mh,aa as Nh,YC as Oh,E0 as Ph,L0 as Qh,B0 as Rh,O0 as Sh,P0 as Th,A0 as Uh,R0 as Vh,k0 as Wh,wk as Xh,Nk as Yh,Mk as Zh,Hk as _h,da as $h,py as ai,my as bi,i1 as ci,p1 as di,m1 as ei,ZC as fi,Nd as gi,QC as hi,eS as ii,D0 as ji,N0 as ki};