efficient-storefront-blocks 0.25.0 → 0.26.0

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