efficient-storefront-blocks 0.30.0 → 0.32.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 (29) hide show
  1. package/CHANGELOG.md +106 -0
  2. package/README.md +1 -1
  3. package/dist/chunks/EditorPreviewCheckout-UGMEXAGV.js +4 -0
  4. package/dist/chunks/{PreviewFooter-3TIQCTIG.js → PreviewFooter-OIGLH5ZN.js} +1 -1
  5. package/dist/chunks/SiteEditorProvider-2KRUHZNS.js +1 -0
  6. package/dist/chunks/chunk-7DTL5AL3.js +234 -0
  7. package/dist/chunks/{chunk-J7FJ5WNL.js → chunk-ARXXIF4I.js} +33 -33
  8. package/dist/chunks/chunk-GD6ZFQC7.js +1 -0
  9. package/dist/chunks/chunk-NEQXU52M.js +1 -0
  10. package/dist/chunks/chunk-QOXKQV6L.js +16 -0
  11. package/dist/chunks/{fitment-data-RS3KPFUJ.js → fitment-data-I2D4TVEQ.js} +1 -1
  12. package/dist/chunks/{render-client-6GUP7QLJ.js → render-client-PQUQUDJN.js} +1 -1
  13. package/dist/editor.css +1 -1
  14. package/dist/index.d.ts +28 -4
  15. package/dist/index.js +94 -36
  16. package/dist/words.d.ts +8 -1
  17. package/dist/words.js +4 -4
  18. package/package.json +3 -3
  19. package/dist/chunks/EditorPreviewCheckout-FI4OK4QQ.js +0 -4
  20. package/dist/chunks/SiteEditorProvider-32N5NUFO.js +0 -1
  21. package/dist/chunks/chunk-BPXASQLG.js +0 -234
  22. package/dist/chunks/chunk-FUTJ73KM.js +0 -1
  23. package/dist/chunks/chunk-HKXYT5YG.js +0 -16
  24. package/dist/chunks/chunk-K6YFJAQ7.js +0 -1
  25. /package/dist/chunks/{SectionEditorShell-KZ3O54XM.js → SectionEditorShell-V4Y5R3W6.js} +0 -0
  26. /package/dist/chunks/{chunk-J7FJ5WNL.js.LEGAL.txt → chunk-ARXXIF4I.js.LEGAL.txt} +0 -0
  27. /package/dist/chunks/{chunk-VPJVU5VD.js → chunk-IKG5YKP7.js} +0 -0
  28. /package/dist/chunks/{chunk-HKXYT5YG.js.LEGAL.txt → chunk-QOXKQV6L.js.LEGAL.txt} +0 -0
  29. /package/dist/chunks/{chunk-WHY2JZ46.js → chunk-VBQY6H55.js} +0 -0
@@ -0,0 +1,16 @@
1
+ import{B as Cl,C as be,D as Ce,E as Xe,F as je,H as Sl,Ia as lt,Ja as Tl,K as La,La as pe,M as yl,N as Ta,Oa as vl,P as Fl,Q as Ll,Qa as El,Z as ie,_ as Lo,a as pl,aa as Se,ba as nt,c as ml,d as Sa,h as hl,i as yo,k as gl,r as ya,w as bl,x as Fa,y as Fo}from"./chunk-IKG5YKP7.js";import{a as il,c as Z,l as xl,m as So,n as Il,u as va}from"./chunk-VBQY6H55.js";var ft=null,ri="en",Bl=null;function fF(e,o,t){ft=e??null,ri=o||"en",Bl=t??null}function K(){return Bl}function sF(){return ft}function Ol(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=ft?ft[e]:void 0;if(typeof t=="function"){try{let a=t(o??{});if(typeof a=="string"&&a)return a}catch{}return Ol(e,o)}return Ol(typeof t=="string"&&t?t:e,o)}function Ea(e,o,t,a){return s(t===1?e:o,{...a,n:t})}import{EaselSessionProvider as uF,useEaselSession as Ye}from"efficient-easel/screen/lib/session-context";import{hostLoadRefusalOf as ni,hostUnreachableMessage as li,isBackendError as fi,provideHostFailures as si,readHostFailure as ci,STATUS_UNREACHABLE as di,WebsiteBackendError as Oa}from"efficient-easel/screen/lib/backend-error";import{createEaselHost as gF,DETACHED_EASEL_HOST as bF,EaselHostContext as CF,EaselHostProvider as SF,useEaselHost as Pl}from"efficient-easel/screen/lib/host";function G(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 Al(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function Rl(e,o){return typeof e=="boolean"?e:o}function st(e,o){if(!Array.isArray(e))return o;let t=e.map(a=>typeof a=="string"?a:G(a?.text,"")).map(a=>a.trim()).filter(Boolean);return t.length?t:o}var kl="cart-drawer",TF="cart-drawer";var ui={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 vF(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function EF(e){let o=e??{},t=ui;return{kickerBadge:G(o.kickerBadge,t.kickerBadge),kickerText:G(o.kickerText,t.kickerText),titleLead:G(o.titleLead,t.titleLead),titleAccent:G(o.titleAccent,t.titleAccent),subtitleEmpty:G(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:G(o.subtitleOne,t.subtitleOne),subtitleMany:G(o.subtitleMany,t.subtitleMany),leadTimeValue:G(o.leadTimeValue,t.leadTimeValue),shipsToFallback:G(o.shipsToFallback,t.shipsToFallback),promises:st(o.promises,t.promises),emptyKicker:G(o.emptyKicker,t.emptyKicker),emptyBody:G(o.emptyBody,t.emptyBody)}}var ii=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],PF={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"},pi={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"},AF={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 mi(e){return typeof e=="string"&&yo.includes(e)?e:null}function wl(e){let o={};for(let t of ii){let a=mi(e[pi[t]]);a&&(o[t]=a)}return o}var Pa="site-footer";var kF=Pa,wF={desktop:!0,tablet:!0,mobile:!0},_F={desktop:!1,tablet:!1,mobile:!1},Ba=1,_l=6,DF=Array.from({length:_l-Ba+1},(e,o)=>Ba+o),ct={desktop:6,tablet:3,mobile:2},xi={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},_e=e=>Math.min(Math.max(Math.round(e),Ba),_l);function MF(e){if(typeof e=="number")return xi[_e(e)]??{desktop:_e(e),tablet:_e(e),mobile:_e(e)};if(e&&typeof e=="object"){let o=e;return{desktop:_e(o.desktop??ct.desktop),tablet:_e(o.tablet??ct.tablet),mobile:_e(o.mobile??ct.mobile)}}return{...ct}}function Ii(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type==="Footer")??null:null}function NF(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===hi)??Ii(e):null}var hi="SiteFooter",gi="SiteHeader";function HF(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===gi)??null:null}var bi="subscribe-popup",zF="subscribe-popup";var Ci=[bi,Pa,kl];function Nl(e){return Ci.includes(e)}var Si=["delay","scroll","exit"],yi=["all","chosen"],Fi=["visit","days","never"],Li=["right","left"],Ti={min:0,max:60},vi={min:10,max:90},Ei={min:1,max:90},Ra={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
2
+ *Highlight line*`,deck:"Add a sentence or two of supporting copy.",stats:[{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"}],formLabel:"Section label",formHeading:"Main heading *highlight*",formIntro:"Add a sentence or two of supporting copy.",firstNameLabel:"Field label",firstNamePlaceholder:"Placeholder",emailLabel:"Field label",emailPlaceholder:"Placeholder",interestsLabel:"Field label",interests:["Option one","Option two","Option three"],frequencyLabel:"Field label",frequencies:["Option one","Option two","Option three"],submitText:"Button label",finePrint:"Fine print",dismissText:"Dismiss link",emailInvalidText:"Enter a valid email address.",submitErrorText:"Could not subscribe right now. Please try again.",successHeading:"Main heading *highlight*",successBody:"Add a sentence or two of supporting copy \u2014 the {email} and {issue} tokens are substituted here.",keepBrowsingText:"Button label",autoOpen:!1,autoOpenDelaySec:15,formSlug:"",trigger:"delay",scrollPercent:50,showOn:"all",showOnPages:[],hideAfter:"days",hideDays:7,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},A=G,Oi=Al,Dl=Rl,Hl=st;function dt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Aa(e,o,t){let a=Oi(e,t);return Math.min(o.max,Math.max(o.min,Math.round(a)))}function Bi(e){return typeof e.hideAfter=="string"?dt(Fi,e.hideAfter,Ra.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Ra.hideAfter}function Pi(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function Ml(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 Ai(e,o){return Array.isArray(e)?Hl(e,[]):o}function Ri(e,o){return Array.isArray(e)?e.map(t=>{let a=t??{};return{label:A(a.label,""),value:A(a.value,"")}}).filter(t=>t.label||t.value):o}function KF(e){let o=e??{},t=Ra;return{metaLabel:A(o.metaLabel,t.metaLabel),issueLabel:Ml(o.issueLabel,t.issueLabel),issueNumber:Ml(o.issueNumber,t.issueNumber),kicker:A(o.kicker,t.kicker),heading:A(o.heading,t.heading),deck:A(o.deck,t.deck),stats:Ri(o.stats,t.stats),formLabel:A(o.formLabel,t.formLabel),formHeading:A(o.formHeading,t.formHeading),formIntro:A(o.formIntro,t.formIntro),firstNameLabel:A(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:A(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:A(o.emailLabel,t.emailLabel),emailPlaceholder:A(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:A(o.interestsLabel,t.interestsLabel),interests:Hl(o.interests,t.interests),frequencyLabel:A(o.frequencyLabel,t.frequencyLabel),frequencies:Ai(o.frequencies,t.frequencies),submitText:A(o.submitText,t.submitText),finePrint:A(o.finePrint,t.finePrint),dismissText:A(o.dismissText,t.dismissText),emailInvalidText:A(o.emailInvalidText,t.emailInvalidText),submitErrorText:A(o.submitErrorText,t.submitErrorText),successHeading:A(o.successHeading,t.successHeading),successBody:A(o.successBody,t.successBody),keepBrowsingText:A(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:Dl(o.autoOpen,t.autoOpen),autoOpenDelaySec:Aa(o.autoOpenDelaySec,Ti,t.autoOpenDelaySec),trigger:dt(Si,o.trigger,t.trigger),scrollPercent:Aa(o.scrollPercent,vi,t.scrollPercent),showOn:dt(yi,o.showOn,t.showOn),showOnPages:Pi(o.showOnPages),hideAfter:Bi(o),hideDays:Aa(o.hideDays,Ei,t.hideDays),formSide:dt(Li,o.formSide,t.formSide),valuePanelOnPhone:Dl(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:wl(o)}}import{jsx as ki}from"react/jsx-runtime";import{createContext as wi,useCallback as _i,useContext as Di,useState as ka}from"react";var Gl=wi({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{}});function YF({children:e,editFooter:o}){let[t,a]=ka(null),[r,n]=ka(null),[l,f]=ka(0),c=_i(()=>f(u=>u+1),[]);return ki(Gl.Provider,{value:{footerBlock:t,setFooterBlock:a,headerGroup:r,setHeaderGroup:n,editFooter:o,refreshToken:l,refreshFooter:c},children:e})}var ZF=()=>Di(Gl);var Ul=["general","commerce","service"],Ze=[{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 JF(){return Object.fromEntries(Ze.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var Mi={Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A \u2014 shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or a shape (Big left, Big right, Bigger left, Bigger right) and its own `Columns on phone`. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` \u2014 256 documents): 2 Grid nodes, and they are ONE Grid counted twice \u2014 the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 \u2014 equal thirds \u2014 and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n\u26A0\uFE0F THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned \u2014 hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. \u26D4 So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says \u2014 Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS \u2014 the owner redoes live sections himself.\n\n\u26A0\uFE0F AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/puck/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot \u2014 a Box included \u2014 refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` \xA73 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings \u2014 it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 \u2014 it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n\u26A0\uFE0F THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call \u2014 nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n \u2022 settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT \u2014 the map holds only TimelineTrack and Footprint, both AUTHORED lists\n \u2022 read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n \u2022 panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n \u2022 head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero \u2014 neither can style them \u2014 and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/puck/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS \u2014 the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n\u26A0\uFE0F AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',SubscribeBlogs:"card 66396 \u2014 folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},eL=["Grid"],oL=Array.from(new Set([...Ze.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(Mi)])),tL=Object.fromEntries(Ze.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),Ni={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"},ut={...Ni,...Object.fromEntries(Ze.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function Wl(e){return Object.prototype.hasOwnProperty.call(ut,e)?ut[e]:void 0}function wa(e){return Object.keys(ut).filter(o=>ut[o]===e).sort()}var aL=wa("general"),rL=wa("commerce"),nL=wa("service"),Hi="Flex",ye="Box",lL=`${ye}es`;function Gi(e){return e==="section"?"Blank section":ye}function fL(e,o,t){return e===Hi?Gi(o):t}var me=il,$l=e=>e.blocks;import{jsx as it}from"react/jsx-runtime";import{createContext as Ui,lazy as Wi,Suspense as $i,useContext as qi}from"react";var zi={Link:ml,Image:pl},Ki=Ui(zi);function ql(){return qi(Ki)}function xL(e){let{Link:o}=ql();return it(o,{...e})}function zl(e){let{Image:o}=ql();return it(o,{...e})}function IL(e){let o=Wi(e);return function(t){return it($i,{fallback:null,children:it(o,{...t})})}}var Q=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],pt="bottom-left";var To={"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 Vi(e){let o=Q.indexOf(Fe(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function Xi(e){return 1+Vi(e).band*6}function gL(e){return Xi(e)+1}function Fe(e){return Q.includes(e)?e:pt}function bL(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function CL(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function _a(e,o){let t=Fe(o);return e.filter(a=>Fe(a?.props?.placement)===t).length}function Kl(e){return`${To[Fe(e)]} already holds 4 boxes. Move one somewhere else first.`}function Da(e,o){let t=e.filter(a=>a?.props?.id!==o);return Q.map(a=>{let r=_a(t,a)>=4,n=To[a];return r?{value:a,label:n,disabled:!0,title:Kl(a)}:{value:a,label:n}})}function mt(e,o){let t=o===void 0?pt:Fe(o?.props?.placement);return _a(e,t)>=4?Kl(t):null}var Vl="HeroGroup";function SL(e){let o=new Map,t=!1,a=e.filter(r=>{let n=Fe(r?.props?.placement),l=(o.get(n)??0)+1;return o.set(n,l),l<=4?!0:(t=!0,!1)});return t?a:e}function ji(e){return Q.map(o=>{let t=_a(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function Ma(e){let o=ji(e);return o.length===0?null:o.map(({anchor:t,total:a,hidden:r})=>{let n=To[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 yL(e,o){let t=o;if(t?.type!==Vl)return null;let a=t.props?.id===void 0?"":String(t.props.id);return a?mt(Na(e,a),t):null}function Na(e,o){let t=Xl(e,o);return t&&t.ownerType===Zi?t.siblings:[]}function FL(e,o){let t=Xl(e,o);return t?t.ancestorTypes.filter(a=>a===Vl).length:Yi}var Yi=1,Zi="HeroSlide";function Xl(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,u=a(f,n+1,[...l,String(c)]);if(u)return u}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 vL,FOOTER_TYPE as xt,HEADER_TYPE as De,locateNode as jl,missingPinnedTypes as EL,nestsInTree as OL,newNodeId as vo,pinnedDuplicateIds as BL,pinnedDuplicateIndices as PL,ROOT_ZONE as AL,slotFieldsOf as RL,TREE_MAX_DEPTH as kL}from"efficient-easel/screen/lib/puck/content-tree";import{jsx as Eo,jsxs as Cp}from"react/jsx-runtime";import{createContext as Sp,useContext as yp}from"react";import{jsx as Qe,jsxs as Jl}from"react/jsx-runtime";import{useEffect as Ha,useRef as np,useState as It}from"react";import{jsx as Yl,Fragment as Qi,jsxs as Ji}from"react/jsx-runtime";import{useEffect as ep,useRef as Zl,useState as op}from"react";var tp="#t=0.001",ap=2;function rp(e,o){if(e.readyState<ap||!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 Ql({src:e,objectPosition:o="50% 50%",onError:t}){let a=Zl(null),r=Zl(null),[n,l]=op(!1);return ep(()=>{let f=a.current,c=r.current;if(n||!f||!c)return;let u=()=>{rp(f,c)&&l(!0)};return u(),f.addEventListener("loadeddata",u),f.addEventListener("seeked",u),()=>{f.removeEventListener("loadeddata",u),f.removeEventListener("seeked",u)}},[n]),Ji(Qi,{children:[Yl("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&&Yl("video",{ref:a,src:`${e}${tp}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var lp=.5;function ef({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:a=lp,objectPosition:r="50% 50%",quiet:n=!1}){let l=o||"",f=e||"",[c,u]=It(!1),[i,p]=It(!1),[m,I]=It(!1),[x,h]=It(!1),C=np(null);Ha(()=>{u(!1),p(!1),I(!1)},[e,o]),Ha(()=>{if(typeof window>"u")return;let y=()=>{let g=window;g.requestIdleCallback?g.requestIdleCallback(()=>h(!0),{timeout:2e3}):setTimeout(()=>h(!0),800)};if(document.readyState==="complete"){y();return}return window.addEventListener("load",y,{once:!0}),()=>window.removeEventListener("load",y)},[]),Ha(()=>{let y=C.current;if(!y)return;let g=()=>{y.playbackRate=a};return g(),y.addEventListener("loadedmetadata",g),()=>y.removeEventListener("loadedmetadata",g)},[e,a]);let E=xl(l);return Jl("div",{className:"absolute inset-0 z-[1]",children:[Qe("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),l&&(E?Qe("img",{src:l,alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",style:{display:c?"none":"block",objectPosition:r},onError:()=>u(!0)},l):Qe(zl,{src:l,alt:"",fill:!0,priority:!0,sizes:"100vw",className:"z-[2] object-cover",style:{display:c?"none":"block",objectPosition:r},onError:()=>u(!0)},l)),t&&!n&&f&&x&&!i&&Jl("video",{ref:C,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:()=>p(!0),children:[Il(f)&&Qe("source",{src:f.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),Qe("source",{src:f,type:"video/mp4"})]},f),t&&n&&f&&x&&!m&&(!l||c)&&Qe(Ql,{src:f,objectPosition:r,onError:()=>I(!0)},f)]})}var of=["top","middle","bottom"],tf=["left","center","right"],af="bottom",rf="left",fp={top:"Top",middle:"Middle",bottom:"Bottom"},sp={left:"Left",center:"Center",right:"Right"};var qL="Up and down",zL="Sideways",cp={top:"flex-start",middle:"center",bottom:"flex-end"},dp={left:"flex-start",center:"center",right:"flex-end"},up="--sf-hero-phone-y",ip="--sf-hero-phone-x";function pp(e){return of.includes(e)?e:af}function mp(e){return tf.includes(e)?e:rf}function nf(e,o){let t=pp(e),a=mp(o),r={};return t!==af&&(r[up]=cp[t]),a!==rf&&(r[ip]=dp[a]),r}function KL(){return of.map(e=>({label:fp[e],value:e}))}function VL(){return tf.map(e=>({label:sp[e],value:e}))}var xp="#0A0A0A",Ip=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function lf(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 ff(e){return e==null?!0:e!==!1}function sf(e){let o=(e?lf(e):null)??lf(xp);return`linear-gradient(180deg, ${Ip.map(([t,a])=>`rgba(${o},${a}) ${t}%`).join(", ")})`}var Ga=[{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}],hp=Ga.filter(e=>e.ink);function gp(e){let o={color:e.fg};for(let{role:t,token:a}of hp)o[a]=e[t];return o}var bp={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},cf=Object.freeze(gp(bp));var Ua=Sp({});function rT({name:e,process:o,mediaType:t="video",mediaSrc:a,videoSpeed:r,poster:n,objectPosition:l,tintColor:f="#000000",tintOpacity:c=0,groups:u,editing:i=!1,themeClassName:p,themeStyle:m}){let{alignment:I="left",textureOpacity:x,textureOn:h,textureColor:C,quietVideo:E,phoneUpDown:y,phoneSideways:g}=yp(Ua),O=t==="video",j=O?So(a):void 0,we=O?So(n):So(a)??So(n),de=typeof r=="number"?r/100:1;return Cp("section",{className:p?`relative h-full w-full overflow-hidden ${p}`:"relative h-full w-full overflow-hidden",style:m,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":j?"video":"still",children:[Eo(ef,{videoSrc:j,posterSrc:we,showVideo:O,playbackRate:de,objectPosition:l,quiet:E}),c>0&&Eo("div",{className:"absolute inset-0 z-[2]",style:{background:f,opacity:Math.min(Math.max(c,0),100)/100}}),ff(h)&&Eo("div",{className:"absolute inset-0 z-[2]",style:{background:sf(C),...x!==void 0?{opacity:x/100}:null}}),Eo("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",i?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...cf,...nf(y,g)},children:u&&Eo(u,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var df=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));var Je="content",D="Flex",Fp="Text & media",Lp="Layout & structure",Tp=[{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:Fp})),vp=(Ze.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Lp})),uf=[...Tp,...vp],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:ye}],fT=Wa.map(e=>e.type),Ep=1,Op=Wa.filter(e=>e.type!=="HeroGroup");function Bp(e){return e<Ep?Wa:Op}var Pp={Flex:{slot:Je,choices:()=>uf},Grid:{slot:Je,choices:()=>uf},HeroGroup:{slot:Je,choices:Bp}};function pf(e,o=0){let t=Pp[e];return t?{slot:t.slot,choices:t.choices(o)}:null}var Ap="ImageBlock",Rp=3,ht=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:vo(e),...t}}),kp=e=>({...e?.(D)??{},direction:"column",[Je]:[ht(Ap,e),ht(D,e,{direction:"column",[Je]:[ht("Heading",e),ht("Text",e)]})]}),Le={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>df.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${ye.toLowerCase()}`,seeds:()=>[],addBlocked:mt,notice:Ma},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${ye.toLowerCase()}`,seeds:()=>[],addBlocked:mt,notice:Ma},ProcessSteps:{slot:"boxes",childType:D,addLabel:`Add ${ye.toLowerCase()}`,seeds:e=>Array.from({length:Rp},()=>kp(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function mT(e){for(let[o,t]of Object.entries(e)){if(o in Le&&Le[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);Le[o]=t}}function xT(e,o){let t=Le[e];return t?{slot:t.slot,children:t.seeds(o).map(a=>({type:t.childType,props:{id:vo(t.childType),...a}}))}:null}var wp={general:!0,commerce:!0,service:!0};function $a(e){let o=e?.sets;return o?Object.fromEntries(Ul.map(t=>[t,o.includes(t)])):wp}function bT(e=Z()){return $a(e.blocks)}function N(e,o,t,a={}){return{type:e,props:{...o(e),id:t(e),...a}}}var _p={Manifesto:(e,o)=>({type:D,props:{...e(D),id:o(D),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[N(D,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[N("Eyebrow",e,o,{eyebrowLook:"plain"}),N("Heading",e,o),N("Text",e,o),N("Stats",e,o)]}),N(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:[N(D,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[N("Eyebrow",e,o,{eyebrowLook:"plain"}),N("Heading",e,o),N("Text",e,o),N("ButtonBlock",e,o)]}),N(D,e,o,{direction:"column",name:"Image",content:[N("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:D,props:{...e(D),id:o(D),direction:"column",name:"Subscribe",content:[N("Heading",e,o),N("Text",e,o),N("Form",e,o)]}})};function mf(e){return _p[e]??null}import{blockTypesIn as qa}from"efficient-easel/screen/lib/puck/block-types-in";var xf=()=>({}),If=new Map;function Dp(e){let o=If.get(e);if(o)return o;let t=new Set,a=Le[e];if(a)for(let l of a.seeds(xf))for(let f of qa({type:a.childType,props:l}))t.add(f);let r=mf(e);if(r){let l=0;for(let f of qa(r(xf,c=>`${c}-${l+=1}`)))t.add(f)}t.delete(e);let n=[...t].sort();return If.set(e,n),n}function Mp(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 u=Wl(c);return!u||!o[u]?!1:t?t.has(c):!0},l=new Map,f=c=>{let u=l.get(c);if(u!==void 0)return u;l.set(c,!1);let i=n(c)&&Dp(c).every(f);return l.set(c,i),i};return{sets:o,offers:f}}var Np="block-offer";function za(e=Z()){return e.cache(Np,()=>Mp($l(e)))}function RT(e,o=Z()){let t=za(o);return t?t.offers(e):!0}var gt="SiteHeader",Ka="SiteFooter",hf="sections",wT=[gt,Ka],_T=e=>e===gt||e===Ka,DT=e=>`${e}:${hf}`;function MT(e,o,t=[]){return{type:e,props:{id:o,[hf]:t}}}var Hp=new Set(["Footer",gt,Ka]);function NT(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 HT(e,o){return e.some(t=>t?.type===o.type)?e:o.type===gt?[o,...e]:[...e,o]}import{PreviewPartsProvider as WT,usePreviewParts as $T}from"efficient-easel/screen/components/PreviewPartsContext";import{jsx as Gp}from"react/jsx-runtime";import{createContext as Up,useContext as Wp,useMemo as $p,useState as qp}from"react";var zp={partStyle:null,setPartStyle:()=>{}},gf=Up(zp);function VT({children:e}){let[o,t]=qp(null),a=$p(()=>({partStyle:o,setPartStyle:t}),[o]);return Gp(gf.Provider,{value:a,children:e})}function XT(){return Wp(gf)}import{applyMark as ev,markupTools as ov,MARKUP_TOOLS as tv,COPY_FIELD_TOOLS as av,STOREFRONT_MARKUP as rv,tokenizeInline as nv,stripInline as lv,isSafeLinkHref as fv}from"efficient-easel/markup";import{applyMark as Kp,markedAt as Vp,markupTools as Xp,MARKUP_TOOLS as jp,parseMarkup as Yp,RETIRED_MARKS as Zp,STOREFRONT_MARKUP as Qp,tokenizeInline as cv}from"efficient-easel/markup";var bt=["highlight","strong","quiet"],Me={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},ae={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},bf=Object.fromEntries(bt.map(e=>[ae[e].kind,e])),Cf="data-sf-ws",Xa=["accent","text","labels"],Sf={accent:"Accent",text:"Text",labels:"Labels"},Te={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"};var Va={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},ZT={highlight:{...Va},strong:{...Va},quiet:{...Va}};var yf=bt.map(e=>({open:ae[e].delimiter,close:ae[e].delimiter,kind:ae[e].kind})),uv=[{style:ae.highlight.kind,label:Me.highlight,title:`${Me.highlight} word style`},{style:ae.strong.kind,label:Me.strong,title:`${Me.strong} word style`},{style:ae.quiet.kind,label:Me.quiet,title:`${Me.quiet} word style`}],Jp=new Set(yf.map(e=>e.open)),Ff=[...Qp.filter(e=>!Jp.has(e.open)),...yf];function ja(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Ya(e){return Yp(typeof e=="string"?e:"",Ff)}var em=jp.map(e=>e.style).filter(e=>!Zp.includes(e)).filter(e=>Ff.some(o=>o.kind===e));function Lf(){return Xp(em)}var Tf=Object.fromEntries(bt.map(e=>[ae[e].kind,ae[e].delimiter]));function vf(e,o,t,a){let r=Tf[a];if(!r)return Kp(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 Ef(e,o,t,a){let r=Tf[a];return r?o>=r.length&&e.slice(o-r.length,o)===r&&e.slice(t,t+r.length)===r:Vp(e,o,t,a)}function Oo(e){return Ya(e).map(o=>ja(o)+Of(o.children)).join(`
3
+ `)}function Of(e){return e.map(o=>o.kind==="text"?o.text:Of(o.children)).join("")}var J={min:1e3,max:2e3,step:50,default:1600};function Bf(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function pv(e,o){if(e!==!1)return null;let t=typeof o=="number"?o:J.default;return Bf(t)}var Pf="--sf-site-width",Ct=`var(${Pf},${J.default}px)`,mv=`max-w-[${Ct}]`,xv=`max-w-[${J.default}px]`;function om(e){return typeof e!="number"||!Number.isFinite(e)?J.default:Math.round(Math.min(Math.max(e,J.min),J.max))}function Iv(e){let o=om(e);return o===J.default?{}:{[Pf]:`${o}px`}}var Bo={min:0,max:80,step:4,default:40},Af="--sf-site-gutter",W=`var(${Af},${Bo.default}px)`,tm=`px-[${W}]`;var ve={md:`min(24px,${W})`,sm:`min(20px,${W})`,frame:`min(24px,${W})`,tabs:`min(16px,${W})`},hv=[[`max-[1100px]:px-[${ve.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${ve.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${ve.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${ve.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${ve.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${ve.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${ve.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${ve.sm}]`,"max-[640px]:px-5"],[`min-[800px]:px-[${W}]`,"min-[800px]:px-10"],[`max-[720px]:px-[min(24px,${W})]`,"max-[720px]:px-6"],[`max-[800px]:-mx-[min(20px,${W})]`,"max-[800px]:-mx-5"],[`max-[720px]:-mx-[min(20px,${W})]`,"max-[720px]:-mx-5"],[`-mx-[${W}]`,"-mx-10"],[tm,"px-10"]];function am(e){return typeof e!="number"||!Number.isFinite(e)?Bo.default:Math.round(Math.min(Math.max(e,Bo.min),Bo.max))}function gv(e){let o=am(e);return o===Bo.default?{}:{[Af]:`${o}px`}}var St=`min(var(--sf-page-cap,${Ct}),${Ct})`,bv=`max-w-[${St}]`,Cv=`max-w-[min(var(--sf-page-cap,${J.default}px),${J.default}px)]`,Rf="--sf-hero-cap",rm=`var(${Rf},none)`,Sv=`max-w-[${rm}]`,Za="--sf-hero-bleed-m",Qa="--sf-hero-bleed-w",yv=`var(${Za},calc(50% - 50vw))`,Fv=`var(${Qa},100vw)`,Lv=`mx-[var(${Za},calc(50%_-_50vw))]`,Tv=`w-[var(${Qa},100vw)]`,Ja="--sf-hero-chrome-x",er="--sf-hero-chrome-cap";function vv(e){return e===!0?{[Rf]:St,[Za]:"auto",[Qa]:"100%",[Ja]:"24px",[er]:"none"}:{}}var or=`calc(${Ct} - ${W}*2)`,Ev=`max-w-[${or.replace(/ /g,"_")}]`;var nm="--sf-chrome-cap",lm=`var(${nm},${or})`,Ov="data-page-width";function Bv(e){return e==="full"?"full":null}function Pv(e){return e==="full"?null:Bf(e==="content"?or:lm)}function Av(e){if(e==="full")return"full";if(e==="content")return"content"}var yt="homepage";function kf(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var wf=[{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 _f(e){return e.offersCommerce&&e.offersService?wf:wf.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function Po(e){return e===yt?"/":`/${e}`}function Df(e){return`/journal/${e}`}function Mv(e){return`/wheels/${e}`}function Mf(e,o){return`${Po(e)}#${o}`}function fm(e){return kf(e)}function sm(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function Nf(...e){let o=new Set,t=[];for(let a of e)for(let r of a?.content??[]){let n=sm(r?.props?.anchor);if(!n)continue;let l=fm(n);!l||o.has(l)||(o.add(l),t.push({slug:l,name:n}))}return t}function Nv(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 Ft=-1,cm="sf-section-accent",Hf="Color",Gf=new Set(["CategoryBar","DocTabs"]),Uv=new Set(["Flex"]),dm=0;function tr(e){return e===Ft?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:dm}function Wv(e){return e??Ft}function um(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 Ga)t[`--sf-sec-${a}`]=`var(${o}-${a}, var(--theme-${a}))`;return t}function $v(e){let o=tr(e.sectionAccent);return o===null?null:{className:cm,style:um(o)}}var im=["column","row","tabs"],Uf="Direction",pm={column:"Stacked",row:"One row",tabs:"Tabs"},Wf={Flex:im,HeroGroup:["column","row"]},mm={Flex:"row",HeroGroup:"column"},xm={column:"flex-col",row:"flex-row",tabs:"flex-col"};function Lt(e,o){return Wf[e].includes(o)?o:mm[e]}function zv(e,o){return xm[Lt(e,o)]}function $f(e){return Wf[e].map(o=>({label:pm[o],value:o}))}import{ScreenDocumentContext as Tt,ScreenDocumentProvider as Xv,useScreenDocument as qf}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as w,jsxs as Ne,Fragment as Um}from"react/jsx-runtime";import{useCallback as Wm,useContext as $m,useEffect as qm,useId as rs,useRef as ts,useState as as}from"react";import{ThemeIcon as zm}from"efficient-easel/icons";import{SettingsField as Km}from"efficient-easel/panel";import{jsx as F,jsxs as Oe,Fragment as Om}from"react/jsx-runtime";import{SettingsField as lr,SettingsGroupSub as Bm}from"efficient-easel/panel";import{Button as nr}from"efficient-shell/ui";import{jsx as Ee,jsxs as Vf}from"react/jsx-runtime";import{SettingsField as Sm}from"efficient-easel/panel";import{AccentIcon as ym}from"efficient-easel/icons";import{Tooltip as Fm}from"efficient-shell/ui";import{jsx as eo,jsxs as hm}from"react/jsx-runtime";import{ColorPicker as Kf,HexInput as gm}from"efficient-shell/ui";import{typedHex as ar}from"efficient-easel/pick";import{typedHex as Im}from"efficient-easel/pick";function zf(e){let o=new Set,t=[];return Fo(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?Im(f):null;!c||o.has(c)||(o.add(c),t.push({name:l,value:c}))}}),t}function xe({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l,ariaLabel:f}){return eo(Cm,{value:e,onChange:o,label:s(f??t),id:a,caption:r,inherited:n,after:l})}function bm(){let{theme:e}=pe();return zf(e).map(o=>({value:o.value,label:o.name}))}function Cm({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l}){let f=bm(),c=e?null:ar(n??""),u=r!==void 0&&(!e||ar(r)!==ar(e))?r:null,i=p=>{p!==e&&o(p)};return hm("div",{className:"sf-colour",children:[eo(Kf,{id:a,value:e,onChange:i,label:t,presets:f,fallback:c??void 0,size:"sm",align:"end"}),u!==null?eo("span",{className:"sf-colour-caption",children:u}):eo("span",{className:"sf-colour-hexwrap",children:eo(gm,{value:e||c||"",onChange:i,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 lE({value:e,onChange:o,label:t}){return eo(Kf,{value:e,onChange:a=>{a&&a!==e&&o(a)},label:s(t),size:"sm",align:"end"})}function rr(e){return be(e).background}function Lm(e){let o=Ce(e.accent,rr(e));return o===null?null:{ratio:o,grade:je(o)}}function Tm(e){let o=rr(e),t=Ce(e.accent,o);return t===null?[]:Sl(e.accent).filter(a=>{let r=Ce(a,o);return r!==null&&r>t&&je(r)==="good"})}var vm={good:"Easy to read","large-only":Xe["large-only"],hard:Xe.hard};function Xf({value:e,onChange:o}){let t=Lm(e),a=t?.grade,r=t&&t.grade!=="good"?Tm(e):[];return Ee(Sm,{label:s("Main color"),icon:Ee(ym,{}),hint:t?s(vm[t.grade]):void 0,action:Ee(xe,{value:e.accent,onChange:n=>o({...e,accent:n}),label:s("Main color")}),children:r.length>0?Ee("div",{className:"w-full min-w-0",children:Vf("div",{className:"sf-readability",children:[Ee("p",{className:"sf-readability-advice",children:Em(a,!0)}),Ee("div",{className:"sf-readability-suggestions",children:r.map(n=>{let l=Ce(n,rr(e));return Ee(Fm,{content:s("Use {colour}",{colour:n.toUpperCase()}),children:Vf("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[Ee("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),l?`${l.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function Em(e,o){return e?e==="good"?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 Pm,GroundIcon as Am,LayoutIcon as Rm,SquareIcon as km,TextSmallIcon as wm,TypeIcon as jf}from"efficient-easel/icons";var Ao=e=>s("Theme {n}",{n:e+1});function Yf({colors:e}){let o=be(e),t=La(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:Ta(e,o.accent)},children:s("button")}),F("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:s("card")})]})]})}var fr={"Text color":F(jf,{}),"Label color":F(wm,{}),Background:F(Am,{}),"Panels & cards":F(Rm,{}),Borders:F(km,{}),"Button color":F(Pm,{}),"Button text color":F(jf,{})};function _m({label:e,colorKey:o,value:t,onChange:a,idPrefix:r="sf-theme-ink"}){let n=`${r}-${o}`;return F(lr,{label:s(e),icon:fr[e],htmlFor:n,action:F(xe,{id:n,label:s(e),value:t,onChange:l=>a(o,l)})})}function Dm({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(lr,{label:s("Button color"),icon:fr["Button color"],htmlFor:r,action:F(xe,{id:r,label:s("Button color"),value:l,caption:n?l:s("Main"),onChange:t})})}function Mm({colors:e,accent:o,onChange:t,idPrefix:a="sf-theme-ink"}){let r=`${a}-button-ink`,n=yl(e),l=Ta(e,o),f=La(e)??o,c=je(Ce(l,f)??0);return F(lr,{label:s("Button text color"),icon:fr["Button text color"],hint:n&&c!=="good"?s("{grade} on the button",{grade:s(Xe[c])}):void 0,htmlFor:r,action:F(xe,{id:r,label:s("Button text color"),value:l,caption:n?l:s("Auto"),onChange:t})})}var Nm=[{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 sr({colors:e,onChange:o,idPrefix:t}){let a=be(e);return F(Om,{children:Nm.map(r=>"colour"in r?F(Xf,{value:e,onChange:o},"colour"):"group"in r?F(Bm,{title:s(r.group)},r.group):"button"in r?F(Dm,{value:e.button,accent:a.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in r?F(Mm,{colors:e,accent:a.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):F(_m,{label:r.label,colorKey:r.key,value:a[r.key],onChange:(n,l)=>o({...e,[n]:l}),idPrefix:t},r.key))})}function Zf({index:e,colors:o,selected:t,role:a="radio",open:r,editable:n=!0,onPick:l,onEdit:f,onChangeColors:c}){let u=be(o),i=Ao(e),p=e<Fa.length&&!o.brandInk?Fa[e]:null,m=je(Ce(u.text,u.background)??0),I=p?JSON.stringify(o)!==JSON.stringify(p):!1,x=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":i,className:"sf-theme-pick",onClick:l,children:F(Yf,{colors:o})}),Oe("div",{className:"sf-theme-foot",children:[F("span",{className:"sf-theme-name",children:i}),m!=="good"&&F("span",{className:"sf-theme-warn",children:s(Xe[m])}),n&&f&&F(nr,{variant:r?"primary":"secondary",size:"sm",className:"sf-theme-edit","aria-expanded":x?r:void 0,"aria-controls":x?`sf-theme-colours-${e}`:void 0,"aria-label":r?s("Done {name}",{name:i}):s("Edit {name}",{name:i}),onClick:f,children:r?s("Done"):s("Edit")})]}),r&&Oe("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[F(sr,{colors:o,onChange:h=>c?.(h)}),p&&F(nr,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!I,onClick:()=>c?.({...p}),children:I?s("Reset {name} to the preset",{name:i}):s("Not changed")})]})]})}function Qf({colors:e,name:o,nameId:t,open:a,menuId:r,labelId:n,buttonRef:l,onClick:f,onKeyDown:c,onEdit:u}){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(Yf,{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}),u&&F(nr,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":s("Edit {name}",{name:o}),onClick:u,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 cr,useEffect as Hm,useRef as vt}from"react";function Jf(e=Z()){return(o,t,a)=>{let r=me(e).theme;return r?r.update(o,a?{siteId:a}:void 0):Promise.reject(new Oa("invalid","This backend stores no site theme."))}}function es(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function Gm(e,o=Jf()){let{themeFromDocument:t,token:a,siteId:r,patch:n}=e,l=es({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 os({themeFromDocument:e,tokenRef:o,siteId:t,onResult:a}){let r=vt(null),n=vt({}),l=Ye(),f=vt(a);f.current=a;let c=vt(null),u=cr(m=>{if(m.status==="skipped"){let I=`skipped:${m.reason}`;if(c.current===I)return;c.current=I}else c.current=null;f.current?.(m)},[]),i=cr(async()=>{r.current&&(clearTimeout(r.current),r.current=null);let m=n.current;n.current={};let I=await Gm({themeFromDocument:e,token:o?.current,siteId:t,patch:m},Jf(l));return u(I),I},[e,o,t,u,l]),p=cr((m,I=!1)=>{let x=es({themeFromDocument:e,token:o?.current});if(x){u(x);return}n.current={...n.current,...m},r.current&&clearTimeout(r.current),I?i():r.current=setTimeout(()=>{i()},500)},[e,o,i,u]);return Hm(()=>()=>{i()},[i]),{persist:p,flush:i}}var Vm="Follow the page",WE="Follow the slideshow",Xm=e=>s("Editing {name} changes it everywhere.",{name:e});function jm({colors:e}){if(!e)return w("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=be(e);return Ne("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[w("i",{style:{background:o.background}}),w("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function Ym({themes:e,value:o,onPick:t,onEdit:a,menuId:r,followLabel:n}){return Ne("div",{className:"sf-multi-menu sf-secttheme-menu",id:r,role:"listbox",children:[n!==void 0&&Ne(Um,{children:[Ne("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Ft),children:[w(jm,{}),w("span",{className:"sf-secttheme-name",children:s(n)})]}),w("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&w("p",{className:"sf-secttheme-oncard",role:"presentation",children:s("{name} is on this section",{name:Ao(o)})}),e.map((l,f)=>f===o?null:w(Zf,{role:"option",index:f,colors:l,selected:!1,onPick:()=>t(f),onEdit:()=>a(f)},f))]})}function Zm({index:e,colors:o,onChange:t,onDone:a}){let r=Ao(e),n=rs();return Ne("div",{className:"sf-secttheme-sheet",children:[Ne("div",{className:"sf-secttheme-sheet-head",children:[w("span",{children:r}),w("button",{type:"button",className:"sf-secttheme-done",onClick:a,children:s("Done")})]}),w("div",{className:"sf-secttheme-rows",children:w(sr,{colors:o,onChange:t,idPrefix:n})}),w("p",{className:"sf-secttheme-warn",children:Xm(r)})]})}function ns({value:e,onChange:o,followLabel:t,hint:a}){let{theme:r,setTheme:n}=pe(),l=Fo(r),f=$m(Tt),c=f?.tokenRef,u=f?.siteId??null,i=!f?.capabilities?.hasSiteTheme,{persist:p,flush:m}=os({themeFromDocument:i,tokenRef:c,siteId:u}),I=Fo(l),x=I.themes,h=tr(e),C=h!==null?x[h]:void 0,E=C??(x.length?Cl(I):void 0),[y,g]=as(!1),[O,j]=as(null),we=ts(null),de=ts(null),he=rs(),U=Wm(()=>{g(!1),j(null)},[]);qm(()=>{if(!y&&O===null)return;let k=We=>{we.current&&!we.current.contains(We.target)&&(m(),U())};return document.addEventListener("mousedown",k),()=>document.removeEventListener("mousedown",k)},[y,O,U,m]);let et=k=>{o(k),U()},ot=k=>{if(O===null)return;let We=x.map((qe,ze)=>ze===O?k:qe),$e={...I,themes:We};n($e),p({selected_preset:$e.selected,theme_presets:$e.themes})};return Ne("div",{className:"sf-secttheme",ref:we,children:[w(Km,{label:s("Theme"),icon:w(zm,{}),labelId:`${he}-label`,hint:a,children:w(Qf,{colors:E,onEdit:h!==null?()=>{j(h),g(!1)}:void 0,name:C?Ao(h):s(t??Vm),nameId:`${he}-value`,labelId:`${he}-label`,open:y,menuId:he,buttonRef:de,onClick:()=>{j(null),g(k=>!k)},onKeyDown:k=>{k.key==="Escape"&&(y||O!==null)&&(k.preventDefault(),U())}})}),y&&O===null&&w("div",{onKeyDown:k=>{k.key==="Escape"&&(k.preventDefault(),U(),de.current?.focus())},children:w(Ym,{themes:x,value:h,onPick:et,onEdit:k=>{j(k),g(!1)},menuId:he,followLabel:t})}),O!==null&&x[O]&&w(Zm,{index:O,colors:x[O],onChange:ot,onDone:()=>{m(),U(),de.current?.focus()}})]})}import{jsx as T,Fragment as re,jsxs as ne}from"react/jsx-runtime";import{TitleIcon as Qm,ButtonIcon as Jm,DollarIcon as ex,HashIcon as ox,LinkIcon as tx,NoteIcon as ax,TagIcon as rx,TextLinesIcon as nx}from"efficient-easel/icons";var ls={body:nx,button:Jm,link:tx,label:rx,number:ox,price:ex,note:ax,title:Qm},fs={eyebrow:ne(re,{children:[T("path",{d:"M5 6.5h5"}),T("path",{d:"M5 12.5h14"}),T("path",{d:"M5 18h11"})]}),heading:ne(re,{children:[T("path",{d:"M6.5 5v14"}),T("path",{d:"M17.5 5v14"}),T("path",{d:"M6.5 12h11"})]}),intro:ne(re,{children:[T("path",{d:"M4 5.5v13"}),T("path",{d:"M8 7.5h12"}),T("path",{d:"M8 12h12"}),T("path",{d:"M8 16.5h8"})]}),value:ne(re,{children:[T("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),T("path",{d:"M6.5 12h7"})]}),name:ne(re,{children:[T("path",{d:"M6 3.5v17"}),T("path",{d:"M6 5h11.5l-2.6 3.6L17.5 12H6z"})]}),date:ne(re,{children:[T("rect",{x:"4",y:"5.5",width:"16",height:"15",rx:"2"}),T("path",{d:"M4 10.5h16"}),T("path",{d:"M9 3.2v4.4"}),T("path",{d:"M15 3.2v4.4"})]}),caption:ne(re,{children:[T("rect",{x:"3.5",y:"4.5",width:"17",height:"11",rx:"2"}),T("path",{d:"M3.5 12.8l4.2-3.2 3.6 2.8 3.4-2.4 5.8 4"}),T("path",{d:"M6.5 19.5h11"})]}),quote:ne(re,{children:[T("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),T("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:ne(re,{children:[T("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),T("path",{d:"M8 9.5h8"}),T("path",{d:"M12 9.5v5"})]}),meta:ne(re,{children:[T("path",{d:"M4 7h16"}),T("path",{d:"M4 14h3.5"}),T("path",{d:"M10.5 14h3"}),T("path",{d:"M17 14h3"})]})};function dr({noun:e,size:o=14,strokeWidth:t=1.8,className:a,style:r}){let n=ls[e];return n?T("span",{className:a,style:{display:"inline-flex",...r},"aria-hidden":"true",children:T(n,{size:o})}):T("svg",{className:a,style:r,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:fs[e]})}var KE=Object.keys(ls);var VE=Object.keys(fs);var lx="#ffffff",fx=/^#[0-9a-fA-F]{6}$/;function ur(e){return sx(e)?e:lx}function sx(e){return typeof e=="string"&&fx.test(e)}function jE(e){return{"--bg":ur(e)}}import{jsx as He,jsxs as dx}from"react/jsx-runtime";import{SettingsField as us}from"efficient-easel/panel";import{LinkIcon as ux}from"efficient-easel/icons";import{LinkPicker as ix,TextLinkField as px}from"efficient-shell/ui";import{useEffect as ds,useMemo as Ot,useRef as mx,useState as Et}from"react";function ss(){return Z().auth.token}var cx=()=>({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 cs(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 ir(e,o){let t=cx(),a=e.pages.map(i=>({value:Po(i.slug),label:i.title})),r=o?.pageOptions?o.pageOptions(a):a,n=r.map(i=>i.value),l=e.pages.map(i=>({label:i.title,options:Nf(...i.docs).map(p=>({value:Mf(i.slug,p.slug),label:p.name}))})).filter(i=>i.options.length>0),f=i=>{switch(i){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(p=>({value:Df(p.slug),label:p.title||p.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(p=>({value:p.href,label:p.name||p.href})),placeholder:t.chooseProduct};case"custom":return{type:"text"}}},c=_f(e.offers).map(i=>({value:i.value,label:s(i.label),target:f(i.value),...i.value==="anchor"?{hint:t.sectionHint}:{},...i.value==="blog"||i.value==="product"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:c,rules:{kindOf:i=>cs(i,n),targetOf:i=>i,readFilter:()=>null,withFilter:i=>i}};let u=i=>{let p=o.withFilter(i,null);return o.listingPaths.includes(p)?p:i};return{kinds:c,rules:{kindOf:i=>cs(i,n,{listingPaths:o.listingPaths,targetOf:u}),targetOf:u,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:i=>o.listingPaths.includes(i)?o.filtersFor(i):null}}function is(e){let o=new Map;return(t="")=>{let a=ss(),r=o.get(t);if(!r||r.token===null&&a!==null){let n=a||!Z().usesBridgedToken?e(a??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:a}),n}return r.promise}}var xx=is(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:a}=me();return a.linkTargets?a.linkTargets(t):(await a.list(t)).map(r=>({id:r.id,slug:r.slug,label:r.label,layout:null}))}),Ix=is(async(e,o)=>await me().blog?.posts(o?{siteId:o}:void 0)??[]);function hx({value:e,onChange:o,label:t="Link",data:a,filters:r}){let n=Ot(()=>ir(a,r),[a,r]),l=s(t);return He(us,{label:l,icon:He(ux,{}),children:He(ix,{value:e,onChange:f=>o(f),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:l})})}function ps(){let{siteId:e,capabilities:o}=qf(),{offersCommerce:t,hasBlog:a}=o,[r,n]=Et([]),[l,f]=Et([]),[c,u]=Et([]),[i,p]=Et(null),m=Ye().chrome,I=m?.products?.list,x=m?.linkFilters,h=x?void 0:m?.linkRow,C=mx(!0);ds(()=>(C.current=!0,()=>{C.current=!1}),[]),ds(()=>{let g=!0;return xx(e??void 0).then(O=>g&&C.current&&n(O)),a&&Ix(e??void 0).then(O=>g&&C.current&&f(O)),t&&I?.().then(O=>g&&C.current&&u(O)),t&&x?x.load(e).catch(()=>null).then(O=>g&&C.current&&p(()=>O)):p(null),()=>{g=!1}},[e,t,a,I,x]);let E=Ot(()=>({pages:r.filter(g=>!Nl(g.slug)).map(g=>({slug:g.slug,title:g.label,docs:[g.layout]})),posts:a?l.map(g=>({slug:g.slug,title:g.title})):[],products:t?c.map(g=>({href:g.href,name:g.name})):[],offers:{offersCommerce:t,offersService:a}}),[r,l,c,t,a]),y=Ot(()=>i?i(E.pages):null,[i,E]);return{data:E,filters:y,pages:r,offersCommerce:t,HostLinkRow:h}}function IO({label:e,icon:o,text:t,onTextChange:a,link:r,onLinkChange:n}){let{data:l,filters:f}=ps(),c=Ot(()=>ir(l,f),[l,f]),u=s(e);return He(us,{label:u,icon:o,children:He(px,{label:u,text:t,onTextChange:a,link:r,onLinkChange:i=>n(i),kinds:c.kinds,rules:c.rules,filtersFor:c.filtersFor})})}function ms({value:e,onChange:o,label:t="Link"}){let a=typeof e=="string"?e:"",{data:r,filters:n,pages:l,offersCommerce:f,HostLinkRow:c}=ps(),u=r.pages.map(p=>Po(p.slug)),i=f&&c&&(a==="/"||u.includes(a))?c:void 0;return dx("div",{children:[He(hx,{value:a,onChange:o,label:t,data:r,filters:n}),i&&He(i,{value:a,onChange:o,pages:l})]})}var hs="sf.gapContainer",Be={min:-32,max:64,step:2},gs={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},Bt={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},gx=new Set(["Events","GalleryB"]);function mr(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Be.min)return o;if(typeof o=="string"){let a=gs[e]?.[o];if(typeof a=="number")return a}return typeof t=="number"&&Number.isFinite(t)?t:Bt[e]}var bx="sf-gap-overlap",Cx="--sf-gap-overlap",bs="--sf-block-gap",Sx="--sf-block-gap-rem",pr={min:0,max:Be.max,step:Be.step};function yx(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),pr.min),pr.max);return o-o%pr.step}function gO(e){let o=yx(e);return o===null?{}:{[bs]:`${o}px`,[Sx]:`${o/16}rem`}}var xs="sf-gap-zone",Is="--sf-gap-len";function xr(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Be.min?!0:typeof o=="string"&&typeof gs[e]?.[o]=="number"}var Fx={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function bO(e,o,t){if(!xr(e,o)){let r=`${Bt[e]}px`,n=gx.has(e)?`var(--sf-card-gap, ${r})`:r;return{className:` ${xs}`,style:{[Is]:`var(${bs}, ${n})`}}}let a=mr(e,o);return a>=0?{className:` ${xs}`,style:{[Is]:`${a}px`}}:{className:` ${bx} ${Fx[t]}`,style:{gap:"0px",[Cx]:`${-a/2}px`}}}import{jsx as d,jsxs as fo,Fragment as ke}from"react/jsx-runtime";import{cloneElement as kc,useId as xh,useRef as Zr,useState as wc}from"react";import{useEasel as so,useSelectedFields as Ih}from"efficient-easel/easel";import{hidableText as Cs,readHidable as Pe}from"efficient-easel/screen/lib/puck/hidable";import{ANCHOR_FIELD_KEYS as LO,FOLD_FIELD_MARKER as Pt,foldMetaOf as le,LINK_FIELD_MARKER as Ro,MEDIA_FIELD_MARKER as Ss,SCAFFOLD_FIELD_MARKER as ko,TEXT_FIELD_MARKER as _,textFieldIdentifier as Lx}from"efficient-easel/screen/lib/puck/field-markers";import{jsx as Os}from"react/jsx-runtime";import{useCallback as Ox,useEffect as Bx,useRef as Px,useState as Ax}from"react";import{useEasel as Rx}from"efficient-easel/easel";import{SettingsAction as kx}from"efficient-easel/panel";function Ir(e){return typeof e=="number"&&Number.isFinite(e)}function EO(e,o){if(!Ir(e))return;let t=nt(Se(e));if(Object.keys(t).length===0)return;let a=t[At];if(typeof a!="string")return t;let r=oo(o)?to(a,fe(o)??[]):a;return{...t,[Tx]:r}}var Tx="--sf-section-radius",At="--sf-card-radius",Ae=["tl","tr","br","bl"];function fe(e){if(!Array.isArray(e))return null;let o=e.filter(t=>Ae.includes(t));return Ae.filter(t=>o.includes(t))}function oo(e){let o=fe(e);return o!==null&&o.length<Ae.length}function to(e,o){return Ae.map(t=>o.includes(t)?e:"0").join(" ")}var hr=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var vx="--sf-card-box-radius",Ex="--sf-site-card-radius",RO="sf-section-bleeds";function gr(e){return typeof e=="number"&&Number.isFinite(e)}function kO(e,o){if(!gr(e))return;let t=nt(Se(e))[At];if(typeof t!="string")return;let a=oo(o)?to(t,fe(o)??[]):t;return{[vx]:a}}function wO(e){let o=e[At];return typeof o=="string"?{[Ex]:o}:{}}function ys(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 Fs(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?jl(e,o,n):null,c=f&&Array.isArray(f.item.props[l])?f.item.props[l]:[],u=t?.index??-1,i=u>=0?c[u]:void 0,p=i?.props?.id?String(i.props.id):"",m=Math.max(c.length-1,0);return!f||!p?{can:!1,reason:"unreachable",others:0}:c.length<=1?{can:!1,reason:"alone",others:m}:gr(i?.props?.cardCorners)?{can:!0,others:m,zone:f.zone,index:f.index,data:{...f.item,props:{...f.item.props,[l]:ys(c,p)}}}:{can:!1,reason:"unset",others:m}}function Ls(e){return e.can?Ea("Gives the other card this card's Corners.","Gives the other {n} cards this card's 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 Ts(e){return Ea("Applied to {n} card","Applied to {n} cards",e)}function vs(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as Es}from"efficient-easel/screen/lib/puck/use-section-ops";var wx=2200,_x="apply-corners-to-siblings",Dx="Apply to all cards";function Mx({plan:e,doneCount:o,onPress:t}){return Os(kx,{id:_x,label:s(Dx),note:Ls(e),disabled:!e.can,done:o!==null,doneLabel:Ts(o??0),onPress:t})}function Bs(){let{appState:e,config:o}=Rx(c=>c),t=Es(),[a,r]=Ax(null),n=Px(null);Bx(()=>()=>{n.current&&clearTimeout(n.current)},[]);let l=Fs(o,e.data.content??[],e.ui.itemSelector),f=Ox(()=>{vs(l,t.replaceComponent),l.can&&(r(l.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>r(null),wx))},[l,t]);return Os(Mx,{plan:l,doneCount:a,onPress:f})}var Ps=1;function Nx(e){return Se(e)}function ZO(e){let o=Nx(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var As=1,Rs="Corners";function Hx(e){return Se(e)}function oB(e,o){let t=Hx(e);if(t===null)return null;let a=`${t}px`;return{borderRadius:oo(o)?to(a,fe(o)??[]):a}}var se={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]}},br=Object.keys(se),ws=[2,3,4,6];function _s(e){return typeof e!="string"||e===""?null:se[e]??null}function ks(e,o){return o?6/e.acrossPhone:12/e.across}var Gx="sf-wall--";function Ux(e){return`${Gx}${e}`}function aB(e){let o=se[e],t=`.${Ux(e)}`,a=[],r=(n,l)=>{let f=[],c=n.length;n.forEach(([u,i],p)=>{f.push(`${t} > :nth-child(${c}n+${p+1}){grid-column:span ${u};grid-row:span ${i}}`)});for(let u=1;u<c;u+=1)f.push(`${t}:has(> :nth-child(${c}n+${u}):last-child) > :nth-last-child(-n+${u}){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,ks(o,!1))),a.push("@media (max-width:800px){"),a.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),a.push(...r(o.phone,ks(o,!0))),a.push("}"),a.join("")}var Rt=12,Ds=1,Wx=3;var $x=3;function Cr(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 qx(e){return Cr(e,1,Rt)??$x}function lB(e,o){return Cr(e,Ds,Wx)??(qx(o)===4?2:Ds)}function fB(e){return e==null||e===""?null:Cr(e,1,Rt)}var sB="data-sf-span";function cB(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(_s(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as zx}from"react/jsx-runtime";var Kx="sf-hint-keep";function Ms({children:e}){return zx("span",{className:Kx,children:e})}import{AdjustIcon as hh,AlignLeftIcon as gh,AlignSeparateIcon as bh,AnimationIcon as _c,BackgroundIcon as Ch,BlockSectionIcon as Sh,CartIcon as yh,ColumnWidthsIcon as Dc,ColumnsIcon as Fh,CornerIcon as Lh,DirectionDownIcon as Th,DirectionLeftIcon as vh,DirectionRightIcon as Eh,DirectionUpIcon as Oh,DollarIcon as Bh,FinishIcon as Ph,GapIcon as Mc,GridIcon as Ah,GroundIcon as Rh,HashIcon as Nc,HeightIcon as kh,ImageIcon as wh,ListIcon as _h,LocationIcon as Yr,PaddingBottomIcon as Hc,PaddingLeftIcon as Gc,PaddingRightIcon as Uc,PaddingTopIcon as Wc,PageIcon as $c,PhoneIcon as Dh,PlacementIcon as Mh,ProductSizeIcon as Nh,RotateIcon as Hh,SquareIcon as Gh,TypeIcon as Uh,WidthIcon as Wh,WrapIcon as $h}from"efficient-easel/icons";var Vx=["fade","rise","scale"],Sr="none",Ns=[{label:"None",value:Sr},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function mB(e){return Vx.includes(e)?e:null}var Hs="data-sf-anim",wo="data-sf-anim-state";function xB(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(Hs))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(wo,"armed");let a=new IntersectionObserver(r=>{for(let n of r)if(n.isIntersecting){a.disconnect(),Xx(e);break}},{threshold:0});return a.observe(e),()=>{a.disconnect(),e.removeAttribute(wo)}}function Xx(e){if(!e.getAttribute(Hs))return;e.removeAttribute(wo),e.offsetWidth,e.setAttribute(wo,"play");let o=t=>{t.target===e&&(e.removeAttribute(wo),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var IB=Gf;function Fr(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(yr(a,o,0))return r??{}}return null}function yr(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(r=>yr(r,o,t+1));let a=e.props;return a&&typeof a=="object"&&a.id===o?!0:Object.values(e).some(r=>yr(r,o,t+1))}import{SettingsDefaultReset as te,SettingsField as R,SettingsGroupHead as qh,SettingsGroupSub as zh,SettingsSegmented as Kh,SettingsSwitch as Vh}from"efficient-easel/panel";import{FieldSelect as Xh,ListField as jh}from"efficient-easel/fields";import{AlignmentGrid as Yh,Checkbox as VP,CornersInput as Zh,DateTimePicker as Qh,FOCAL_DEFAULT as Jh,Slider as eg,Tooltip as $t}from"efficient-shell/ui";import{jsx as H,Fragment as Lr,jsxs as Tr}from"react/jsx-runtime";import{useEffect as jx,useState as Yx}from"react";import{MarkBar as Zx,markSelection as Qx,useCaretEdit as Jx}from"efficient-easel/copy";import{RevertIcon as eI}from"efficient-easel/icons";import{IconButton as oI,Tooltip as tI}from"efficient-shell/ui";function aI({style:e}){let o=t=>H("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(H("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(Tr(Lr,{children:[H("line",{x1:"10",y1:"5",x2:"19",y2:"5"}),H("line",{x1:"5",y1:"19",x2:"14",y2:"19"}),H("line",{x1:"14",y1:"5",x2:"10",y2:"19"})]}));case"strike":return o(Tr(Lr,{children:[H("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"}),H("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"}),H("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]}));case"highlight":return o(Tr(Lr,{children:[H("path",{d:"M14.5 4.5l5 5-8 8H6.5v-5z"}),H("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]}));default:return null}}var rI=["bold","italic","strike","highlight"],nI=Object.fromEntries(rI.map(e=>[e,H(aI,{style:e},e)])),Gs="Clear formatting";function lI(e,o,t){return Qx(e,o,t,vf)}function fI(e){let[o,t]=Yx(null);return jx(()=>{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 sI({target:e,value:o,onChange:t,disabled:a=!1,label:r="Formatting"}){let n=Jx({target:e,onChange:t}),[l,f]=fI(e),c=m=>n(I=>{let x=lI(o,m,I);return f({start:x.selectionStart,end:x.selectionEnd}),x}),u=Lf(),i={};if(l)for(let m of u)i[m.style]=Ef(o,l.start,l.end,m.style);let p=Oo(o);return H(Zx,{tools:u,onApply:c,pressed:i,disabled:a,glyphs:nI,ariaLabel:s(r),actions:H("span",{className:"sf-markup-clear",children:H(tI,{content:s(Gs),children:H(oI,{size:"sm",onMouseDown:m=>m.preventDefault(),onClick:()=>t(p),disabled:a||p===o,"aria-label":s(Gs),children:H(eI,{size:14})})})})})}var vr=sI;import{DEVICE_FIELD_MARKER as OB,DEVICE_HIDDEN_ATTR as BB,DEVICE_NOTE as PB,deviceField as ee,deviceMetaOf as Er,deviceNote as AB,shownTier as RB,withoutDeviceGate as kB}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as DB,NO_CONTROL_FIELD as Us,noControlField as Or,NoControlMark as kt,noControlMetaOf as MB}from"efficient-easel/screen/lib/puck/panel-no-control-mark";var Br="__ownBox";function Ws(e){return!!e&&typeof e=="object"&&e[Br]===!0}function _o(e){return`${e}Phone`}function wt(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}import{jsx as Pr,Fragment as iI}from"react/jsx-runtime";import{createContext as pI,useContext as mI}from"react";var $s={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},qs={Events:["posts"],SubscribeBlogs:["posts"]};var cI=["anchor"],dI=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Do(e){return cI.includes(e)||dI.test(e)}var uI={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"}}};uI.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var $B=Object.fromEntries(Object.entries($s).map(([e,o])=>[e,Object.keys(o)])),qB=Object.fromEntries(Object.entries(qs).map(([e,o])=>[e,[...o]]));var zs=pI(!1);function YB({children:e}){return Pr(zs.Provider,{value:!0,children:e})}function xI(){return mI(zs)}function Ks({name:e,children:o}){return!xI()||!e||Do(e)?Pr(iI,{children:o}):Pr(kt,{})}function q(e,o,t){return e.some(a=>(typeof a=="object"?a.value:a)===t)?t:o}var Ar="off",Rr="none",kr=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],wr=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function e0(e){return q(kr,Ar,e)}function o0(e){return q(wr,Rr,e)}var Vs="sf-card-index",Mo="sf-card-index",t0="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",II={plain:`counter(${Mo})`,padded:`counter(${Mo}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Mo}, decimal-leading-zero)`};function a0(e,o){return o==="off"?"":`.${e}{counter-reset:${Mo}}.${e} .${Vs}{counter-increment:${Mo}}.${e} .${Vs}::before{content:${II[o]}}`}function r0(e){return e==="hairline"?"border border-line hover:border-accent":""}var Xs=[{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 Ge,TEXT_CONTROL_KINDS as hI}from"efficient-easel/screen/lib/puck/text-control-kinds";import{jsx as _r}from"react/jsx-runtime";import{useState as SI}from"react";import{Button as yI,ImageFocusPoint as FI}from"efficient-shell/ui";import{jsx as V,jsxs as js}from"react/jsx-runtime";import{ChevronIcon as gI}from"efficient-easel/icons";import{Tooltip as bI}from"efficient-shell/ui";function Ys({styleKey:e,label:o,icon:t,value:a,sampleStyle:r,open:n,onToggle:l,saved:f=!1,children:c}){return js("div",{"data-sf-style-row":e,className:`sf-style-row${n?" is-open":""}`,children:[js("button",{type:"button",className:"sf-style-head","aria-expanded":n,onClick:l,children:[V("span",{className:"sf-style-caret","aria-hidden":"true",children:V(gI,{size:13})}),t?V("span",{className:"es-field-icon",children:t}):null,V("span",{className:"sf-style-name",children:s(o)}),a!=null?typeof a=="string"?V(bI,{content:a,className:"sf-style-sample-tip",children:V("span",{className:"sf-style-sample",style:r,children:a})}):V("span",{className:"sf-style-sample",style:r,children:a}):null,V("span",{className:`sf-style-slot${f?" is-saved":""}`,children:V(CI,{})})]}),n&&V("div",{className:"sf-style-body",children:c})]})}function CI(){return V("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:V("polyline",{points:"20 6 9 17 4 12"})})}function Zs({label:e,value:o,onChange:t,image:a}){let[r,n]=SI(!1);return _r(Ys,{styleKey:"imageFocal",label:e,value:o,sampleStyle:{fontSize:11,fontVariantNumeric:"tabular-nums"},open:r,onToggle:()=>n(l=>!l),children:r?_r(FI,{label:s(e),value:o,onChange:t,image:a,emptyText:s("Choose a background image first \u2014 there\u2019s nothing to focus yet."),actions:_r(yI,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:s("Done")})}):null})}import{jsx as X,jsxs as LI}from"react/jsx-runtime";import{SettingsField as Qs}from"efficient-easel/panel";import{ImageIcon as Js,PlayIcon as ec}from"efficient-easel/icons";import{ImageBox as TI}from"efficient-easel/pick";import{useEaselStrings as vI}from"efficient-easel/strings";import{useContext as EI,useState as oc}from"react";import{FileIntakeAlert as OI,useFileIntake as BI}from"efficient-shell/file-intake";import{requestMediaPick as Dr,resolveMediaPick as S0}from"efficient-easel/screen/lib/media-picker";function tc({value:e,onChange:o,label:t,accept:a,placeholder:r}){let n=Pl(),l=Ye(),f=vI(),c=s(t),[u,i]=oc(!1),[p,m]=oc(null),I=a.startsWith("video"),x=EI(Tt),h=BI({accept:a,maxSizeBytes:me(l).media.maxUploadBytes,acceptHint:I?s("videos only"):s("images only"),multiple:!1,disabled:u,onAccept:([E])=>{m(null),i(!0),Dr(n,{accept:a,title:c,file:E}).then(y=>{y&&o(y.url)}).catch(()=>m(s("Couldn\u2019t open the media picker \u2014 please try again."))).finally(()=>i(!1))}}),C=()=>(h.clearRejections(),m(null),Dr(n,{accept:a,title:c}).then(E=>E?.url??null));return x&&!x.capabilities.mediaEditing?X(Qs,{label:c,icon:I?X(ec,{}):X(Js,{}),children:X("div",{className:"sf-image-slot-inert",children:I?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.")})}):LI("div",{children:[X(Qs,{label:c,icon:I?X(ec,{}):X(Js,{}),children:X("div",{className:`sf-image-drop${h.dragOver?" is-dragover":""}`,...h.zoneProps,children:X(TI,{value:e,onChange:o,label:c,kind:I?"video":"image",placeholder:r===void 0?void 0:s(r),openLibrary:u?void 0:C,words:f.pick.image})})}),u&&X("div",{className:"sf-image-status",role:"status",children:s("Opening the picker\u2026")}),p&&X("div",{className:"sf-image-status sf-image-status--error",role:"alert",children:p}),X(OI,{rejections:h.rejections,className:"sf-image-status sf-image-status--error"})]})}import{jsx as ac}from"react/jsx-runtime";import{useId as PI}from"react";import{FieldSelect as AI}from"efficient-easel/fields";import{SettingsField as RI}from"efficient-easel/panel";function kI(e){return e.map(({value:o,label:t,note:a})=>({value:o,label:t,...a?{meta:a}:{}}))}function rc({label:e,options:o,value:t,onChange:a,emptyLabel:r,icon:n,hint:l}){let f=PI(),c=`${f}-label`,u=`${f}-button`,i=Array.isArray(t)?t:[];return ac(RI,{label:s(e),labelId:c,icon:n,hint:l,children:ac(AI,{id:u,multiple:!0,value:i,options:kI(o),onChange:a,placeholder:r===void 0?s("None"):s(r),ariaLabelledBy:`${c} ${u}`,inline:!0})})}import{jsx as nc}from"react/jsx-runtime";import{useId as wI}from"react";import{FieldSelect as _I}from"efficient-easel/fields";import{SettingsField as DI}from"efficient-easel/panel";function MI(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 NI({label:e,options:o,fallback:t,value:a,onChange:r,placeholder:n,bare:l=!1,icon:f}){let c=wI(),u=`${c}-label`,i=`${c}-button`,p=a??"",m=o.some(C=>C.value===p)?p:t,I=s(e),x=n===void 0?void 0:s(n),h=nc(_I,{id:i,value:m,options:MI(o),onChange:r,placeholder:x,searchPlaceholder:x,...l?{ariaLabel:I}:{ariaLabelledBy:`${u} ${i}`},searchable:!0,groupCount:!0,inline:!0});return l?h:nc(DI,{label:I,labelId:u,icon:f,children:h})}import{default as No}from"efficient-easel/screen/components/UiIcon";var oe={min:10,max:200,step:10};function lc(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",UI="--sf-pad-t-phone",WI="--sf-pad-b-phone",$I="sf-pad-left-phone",qI="sf-pad-right-phone",zI="--sf-pad-l-phone",KI="--sf-pad-r-phone";function Z0(e,o,t,a,r,n,l,f){let c=lc(e,o)??{},u={},i=["sf-section-pad"];typeof t=="number"&&(i.push(HI),u[UI]=`${t}px`),typeof a=="number"&&(i.push(GI),u[WI]=`${a}px`);let p={};return typeof r=="number"&&(p.paddingLeft=r),typeof n=="number"&&(p.paddingRight=n),typeof l=="number"&&(i.push($I),u[zI]=`${l}px`),typeof f=="number"&&(i.push(qI),u[KI]=`${f}px`),i.length===1&&lc(e,o)===void 0&&!Object.keys(p).length?null:{className:i.join(" "),style:{...c,...p,...u}}}var fc=e=>typeof e=="number"?e:void 0;function sc(e,o,t){let a=fc(e)??t,r=fc(o);return a===void 0?r:r===void 0?a:a+r}function Q0(e,o={}){return{top:sc(e.padTop,e.sectionPaddingTop,o.top),bottom:sc(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var VI=["auto","fixed","screen"],XI=["px","%"];var jI="var(--sf-header-h, 88px)",Mr={min:40,max:2e3,step:10,fallback:600},Nr={min:10,max:200,step:5,fallback:100},YI="sf-section-minh",cc={base:"--sf-section-minh",small:"--sf-section-minh-s"},uc=e=>typeof e=="string"&&VI.includes(e),ZI=e=>typeof e=="string"&&XI.includes(e);function _t(e){let o=uc(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":ZI(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=o==="screen"?Nr.fallback:Mr.fallback,r=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:o,value:r,unit:t}}function ic(e){let{mode:o,value:t,unit:a}=_t(e);if(o==="auto")return;if(o==="fixed"&&a==="px")return[`${t}px`,null];let r=t/100,n=l=>o==="screen"?`(100${l} - ${jI})`:`100${l}`;return[`calc(${n("vh")} * ${r})`,`calc(${n("svh")} * ${r})`]}function QI(e){let o=ic(e);if(!o)return;let[t,a]=o;return{display:"grid",[cc.base]:t,...a?{[cc.small]:a}:{}}}var eP=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ao="Height",JI="sf-section-minh-phone",dc={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Hr(e){return uc(e.sectionHeightModePhone)}function oP(e){return _t({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function eh(e){let o=QI(e),t=Hr(e)?ic({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let a=[YI],r={...o??{}};return t&&(a.push(JI),r[dc.base]=t[0],t[1]&&(r[dc.small]=t[1])),{className:a.join(" "),style:r}}function tP(e){return eh(e)!==null}var Gr=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],xc=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Stretch",value:"stretch"}],Ic="Wrap",Ur=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],pc={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},mc={start:"items-start",center:"items-center",stretch:"items-stretch"};function rP(e,o){let t=typeof e=="string"&&e in pc?pc[e]:"",a=typeof o=="string"&&o in mc?mc[o]:"";return[t,a].filter(Boolean).join(" ")}function nP(e){return e===!0||e==="wrap"?"flex-wrap":""}var Wr="Block widths",Dt=[{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]}],Ho="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",oh={equal:Ho,bigLeft:`${Ho} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${Ho} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${Ho} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${Ho} [&>*:last-child]:min-[800px]:grow-[3]`};function lP(e){return typeof e=="string"?oh[e]??"":""}var hc="Columns on phone",$r=1,gc=3,th={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 fP(e){let o=Number(e);return th[o]??"max-[800px]:flex-col"}var bc="Block spacing",qr=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],ah="sf-box-gap-only";function sP(e){return e==="gap"?ah:""}var Cc=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],Sc={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Mt="var(--section-bg)",Nt="inherit";function dP(e,o){return e===Nt?Mt:e===void 0?o:Ht(e)}var rh=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Ht(e){return e.replace(rh,"var(--site-$1")}function yc(e,o){return e===Nt?!0:e===void 0&&o===Mt}var Fc=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],Lc={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},ro="var(--wheel-stage)",Gt="transparent",Go="inherit";function pP(e,o){return Ht(zr(e,o))}function zr(e,o){return e===Go?ro:e==null?o:e===!0?ro:e===!1?Gt:e}function mP(e){return typeof e=="string"&&e!==Go?Ht(e):ro}function xP(e){return e!==Gt&&e!=="none"&&e!==""}function Tc(e,o){return e===Go||e===!0?!0:e==null?o===ro:!1}var vc="inherit",Ut="fixed",Ec=e=>typeof e!="number"&&e!==Ut,nh="var(--sf-heading-max, 9999px)";function hP(e,o,t,a){if(typeof e=="number")return`${e}px`;if(e===Ut)return o;let r=a?`var(--size-${a}, ${o})`:o;return t==="heading"?`min(${r}, ${nh})`:r}var lh=["contained","page","full"],Oc=["full","page"],Bc={full:"Full width",page:"Content width"},Kr="inherit",fh=e=>typeof e=="string"&&lh.includes(e),sh=e=>e===Kr;function Vr(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:J.default;return sh(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:fh(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 Xr(e){return Vr(e,"page").mode==="full"}import{jsx as ch}from"react/jsx-runtime";import{createContext as dh,useContext as uh}from"react";var ih=2,ph=ih+1,Pc=dh(2);function FP({tier:e,children:o}){return ch(Pc.Provider,{value:e,children:o})}function jr(e){let o=uh(Pc);return ph+Math.max(0,e-o)}import{withStyleKind as og}from"efficient-easel/style-clipboard";function Uo(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!le(t)&&og(t,`section:${o}`);return e}function qc(){return null}function tg(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return d(qc,{},e)}function ag(e){return e.type===qc}function co(e){return ag(e)?void 0:e}function lo(e,o){return s("{value} from {from}",{value:e,from:o})}function rg(){let{appState:e}=so(r=>r),o=e.data.root?.props??{},{mode:t,pageWidth:a}=Vr(o,"full");return t==="page"?lo(`${a}px`,s("the page")):t==="contained"?lo(s("Contained"),s("the page")):lo(s("Full"),s("the page"))}function ng(){let{blockGap:e}=pe();return e===null?s("this container's own spacing"):lo(`${e}px`,s("Site styles"))}function lg({inherited:e,onReset:o,label:t}){return d(te,{words:K()?.panel,label:s(t),changed:!e,detail:ng(),onReset:o})}function fg({inherited:e,onReset:o,label:t}){return d(te,{words:K()?.panel,label:s(t),changed:!e,detail:rg(),onReset:o})}function uo({value:e,onChange:o,label:t,placeholder:a,hint:r,multiline:n,hideable:l=!0,markup:f=!0}){let{text:c,hidden:u}=Pe(e),i=Zr(null),p=Zr(null),m=y=>o(l?{text:y,hidden:u}:y),I=()=>o({text:c,hidden:!u}),x=l&&u,h=xh(),C=r?ig(r)?d("span",{className:"sf-hint-keep sf-hint-while-typing",children:s(r)}):d(Ms,{children:s(r)}):void 0,E=u?s("Show {label} on the slide",{label:s(t)}):s("Hide {label} on the slide",{label:s(t)});return d(R,{label:s(t),icon:d(Uh,{}),htmlFor:h,className:x?"is-hidden":void 0,hint:C,action:l?d($t,{content:E,children:d("button",{type:"button",className:"sf-field-eye","aria-pressed":u,"aria-label":E,onClick:I,children:u?d(No,{name:"eye-off",size:14}):d(No,{name:"eye",size:14})})}):void 0,children:fo("div",{className:"sf-copybox",children:[f&&d(vr,{target:n?p:i,value:c,onChange:m}),n?d("textarea",{id:h,ref:p,value:c,placeholder:a===void 0?void 0:s(a),onChange:y=>m(y.target.value)}):d("input",{id:h,ref:i,type:"text",value:c,placeholder:a===void 0?void 0:s(a),onChange:y=>m(y.target.value)})]})})}function TA(e,o){return{...e,[ko]:o}}function vA(e){let o=e[_];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[_]:{...o,offPage:!0}}}function EA(e){return!e||typeof e!="object"?!1:e[_]?.offPage===!0}function OA(e){let o=e[_];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[_]:{...o,identifier:!0}}}function PA(e,o){if(!e[_])throw new Error("inOwnBox: the field holds no authored text");let{[Us]:t,...a}=e;return{...a,[Br]:!0,render:o}}var sg=new Set(Ge),io=(e,o)=>{let t={...o,[_]:e};if(!sg.has(e.control))return t;let a=o.render;return{...Or(t,"authored-copy"),render:r=>d(Ks,{name:r.name,children:a(r)})}},AA="Everything else on this block comes from the linked post. Unlink it to edit by hand.",cg="Select a word, then press the highlighter.",dg="A short name so a link can jump straight to this section, like yoursite.com/page#about.",ug=new Set([cg]),ig=e=>ug.has(e);function RA(e,o,t){return io({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t})})}function kA(e,o,t){return io({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0})})}function pg(e,o,t){return io({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function wA(e,o,t){return io({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t,hideable:!1})})}function _A(e){return{type:"custom",[Ro]:{label:e},render:({value:o,onChange:t})=>d(ms,{value:Cs(o),onChange:t,label:e})}}function DA(e,o,t){return io({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:a,onChange:r})=>d(uo,{value:a,onChange:r,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var MA={Design:hh,Animation:_c};function NA(e,o){return e.includes("Design")?o!=="Design":null}function mg({label:e}){return d(qh,{title:s(e),level:jr(1)})}function xg({level:e,label:o}){return e===1?d(mg,{label:o}):d(gg,{label:o})}function zc(e,o){return{type:"custom",[Pt]:{label:e,level:o},render:()=>d(xg,{level:o,label:e})}}function z(e){return zc(e,2)}function HA(e){return{type:"custom",render:()=>d(Ig,{text:e})}}function Ig({text:e}){return d("p",{className:"sf-note",children:s(e)})}function GA(e){return zc(e,1)}function UA(e){return le(e)!==null&&e?.tabs!==void 0}var Ac=new Map;function qt(e,o){let t=`${e}\0${o?o.join(""):""}`,a=Ac.get(t)??{type:"custom",tabs:o,[Pt]:{label:e,level:1},bucket:e,marker:!0,render:()=>d(ke,{})};return Ac.set(t,a),a}var Rc=new Map;function Qr(e){let o=Rc.get(e)??{type:"custom",[Pt]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>d(ke,{})};return Rc.set(e,o),o}function hg(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function Kc(e,o){return hg(e)===o?e:{...e,marker:!0,fold:o,render:()=>d(ke,{})}}function Vc(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...a}=e;return{...a,marker:!0,render:()=>d(ke,{})}}function gg({label:e}){return d(zh,{title:s(e),level:jr(2)})}function Xc({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 fo("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 WA(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=yc(t,o);return d(R,{label:s(e),icon:d(Ch,{}),changed:!r,action:d(te,{words:K()?.panel,label:s(e),changed:!r,detail:s("the theme's section background"),onReset:()=>a(Nt)}),children:Xc({swatches:Cc,current:r?Mt:t??o??"",onPick:a,names:Sc})})}}}function bg(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=t,n=Tc(r,o);return d(R,{label:s(e),icon:d(Rh,{}),changed:!n,action:d(te,{words:K()?.panel,label:s(e),changed:!n,detail:s("the theme's image stage"),onReset:()=>a(Go)}),children:Xc({swatches:Fc,current:n?ro:zr(r,o),onPick:a,names:Lc})})}}}function zt(e=t=>t,o){return Uo({_gSectionTheme:z(Hf),sectionAccent:{type:"custom",render:({value:t,onChange:a})=>d(ns,{value:e(t),onChange:a,followLabel:o})}})}function Wo({min:e,max:o,step:t,value:a,onChange:r,suffix:n="",readout:l=!0,notch:f,ariaLabel:c,disabled:u=!1}){let i=f!==void 0&&Number.isFinite(f)&&f>=e&&f<=o;return d("div",{className:i?"sf-slider has-notch":"sf-slider",style:i?{"--sf-notch":(f-e)/(o-e)}:void 0,children:d(eg,{min:e,max:o,step:t,value:a,suffix:n||void 0,showInput:l,label:c===void 0?void 0:s(c),disabled:u,size:"sm",className:"sf-slider-track",onChange:p=>{p!==null&&p!==a&&r(p)}})})}function no(e,o,t,a,r,n,l="",f){return{type:"custom",render:c=>d(R,{label:s(e),icon:co(o),action:f?f("storedValue"in c?c.storedValue:c.value,c.onChange):void 0,children:Wo({min:t,max:a,step:r,value:typeof c.value=="number"?c.value:n,suffix:l,ariaLabel:e,onChange:c.onChange})})}}function jc(e,o){let{min:t,max:a,step:r=1,unsetLabel:n,hint:l,restTrack:f,unsetMark:c,icon:u}=o;return{type:"custom",render:({value:i,onChange:p})=>{let m=typeof i=="number"?i:null,I=m===null;return d(R,{label:s(e),icon:u?co(u):void 0,value:I?c||n===void 0?void 0:s(n):`${m}px`,changed:!I,action:c?kc(c,{changed:!I,onReset:()=>p(null)}):d(te,{words:K()?.panel,label:s(e),changed:!I,onReset:()=>p(null)}),hint:typeof l=="string"?s(l):l,children:f?f({min:t,max:a,step:r,px:m,label:e,onChange:p}):Wo({min:t,max:a,step:r,value:m??t,readout:!1,ariaLabel:e,onChange:p})})}}}function $A(e){let o=no("Gap",d(Mc,{}),Be.min,Be.max,Be.step,Bt[e],"px",(t,a)=>d(lg,{inherited:!xr(e,t),onReset:()=>a(void 0),label:"Gap"}));return{type:"custom",[hs]:e,render:t=>o.render({...t,value:mr(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:a=>t.onChange(a)})}}var Kt="Corners";function Jr(e){return{type:"custom",render:({value:o,onChange:t})=>{let a=typeof o=="number"&&Number.isFinite(o)?o:null,r=a!==null;return d(R,{label:s(Kt),icon:d(Lh,{}),changed:r,action:kc(e.mark,{changed:r,onReset:()=>t(null)}),hint:e.hint,children:d(Sg,{tier:e,px:a,onRadius:t})})}}}function Cg(e){let o=null;try{o=Ih()}catch{o=null}return[o?.values?.[e],t=>o?.onChange(e,t)]}function Sg({tier:e,px:o,onRadius:t}){let a=e.useFollowed(),r=e.useClosedReason?e.useClosedReason():null,[n,l]=Cg(e.sidesKey),f=fe(n)??[...Ae];return d(Zh,{label:s(Kt),value:f,corners:hr,onChange:c=>{let u=fe(c)??[];l(u.length===Ae.length?null:u)},radius:o,onRadiusChange:t,radiusMin:ie,radiusMax:Lo,radiusStep:e.step??1,radiusPlaceholder:String(a),disabled:r!==null,disabledReason:r??void 0})}function Yc(){return Or({type:"custom",render:()=>d(kt,{})},"always")}function yg({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:a}=pe(),r=typeof a=="number"?`${a}px`:s("not set");return d(te,{words:K()?.panel,label:s(e),changed:o,detail:a==null?s("the built-in corners"):lo(r,s("Site styles")),onReset:t})}function Fg(){let{cornerRadiusPx:e}=pe();return typeof e=="number"?e:ie}function Lg(){return Jr({sidesKey:"sectionCornerSides",useFollowed:Fg,useClosedReason:()=>Qc()?s(Zc):null,mark:d(yg,{label:Kt}),hint:d(Tg,{})})}var Zc="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Qc(){return Xr(jt())}function Tg(){return d(ke,{children:Qc()?Zc:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function Vt(){return Uo({_gShape:z("Shape"),sectionCorners:Lg(),sectionCornerSides:Yc()})}function Xt(){return{_gMotion:z("Motion"),sectionAnimation:tn("Entrance",d(_c,{}),[...Ns],Sr)}}function en(){let e=null;try{let{appState:o,selectedItem:t}=so(r=>r),a=t?.props?.id?String(t.props.id):void 0;e=a?Fr(o?.data,a):null}catch{e=null}return e!==null&&Xr(e)}function Jc(e){let{cornerRadiusPx:o}=pe(),t=en(),a=typeof o=="number"?o:e,r=null;try{let{appState:l,selectedItem:f}=so(u=>u),c=f?.props?.id?String(f.props.id):void 0;r=c?Fr(l?.data,c):null}catch{r=null}if(t||!r)return a;let n=r.sectionCorners;return Ir(n)?n:a}function vg({label:e,changed:o=!1,onReset:t=()=>{}}){let a=en(),r=Jc(ie),n=a?"Site":"Section";return d(te,{words:K()?.panel,label:s(e),changed:o,detail:lo(`${r}px`,a?s("Site styles"):s("the section")),onReset:t})}function Eg(){return d(ke,{children:en()?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 Og(){return Jr({sidesKey:"cardCornerSides",useFollowed:()=>Jc(ie),mark:d(vg,{label:Kt}),hint:d(Eg,{})})}function Bg(){return{type:"custom",render:()=>d(Bs,{})}}function qA(){return{_gShape:z("Shape"),cardCorners:Og(),cardCornerSides:Yc(),cardCornersApplyAll:Bg()}}function zA(){return Re("Justify",d(bh,{}),Gr,Gr[0].value)}function KA(){return Re("Item alignment",d(gh,{}),xc,"stretch")}function VA(){return Re(Ic,d($h,{}),Ur,Ur[0].value)}function XA(){return{type:"custom",render:({value:e,onChange:o})=>{let t=Dt.find(a=>a.value===e)??Dt[0];return d(R,{label:s(Wr),icon:d(Dc,{}),value:s(t.label),children:d("div",{className:"sf-gallery-layouts",role:"group","aria-label":s(Wr),children:Dt.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:Pg(a.weights).map((r,n)=>d("i",{style:{gridColumn:`span ${r}`}},n))})})},a.value))})})}}}function Pg(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 jA(){return Re(bc,d(Mc,{}),qr,qr[0].value)}function YA(){return no(hc,d(Dh,{}),$r,gc,1,$r)}function ZA(e){let o=tn(Uf,tg("`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)."),$f(e),Lt(e,void 0));return{type:"custom",render:t=>o.render({...t,value:Lt(e,t.value),onChange:a=>t.onChange(a)})}}function QA(e,o,t,a,r,n){return{type:"custom",render:({value:l,onChange:f})=>d(R,{label:s(e),icon:d(dr,{noun:n}),action:d(te,{words:K()?.panel,label:s(e),changed:!Ec(l),detail:s("the Text style in Site styles"),onReset:()=>f(vc),defaultAction:{onPress:()=>f(Ut),title:s("Keep this section's own built-in size"),icon:d(Sh,{})}}),children:Wo({min:o,max:t,step:a,value:typeof l=="number"?l:r,suffix:"px",ariaLabel:e,onChange:f})})}}function JA(){return{_gCellWidth:z("Cell width"),gridSpan:Re("Positions",d(Dc,{}),[{label:"Auto",value:""},...Array.from({length:Rt},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function jt(){let e=null;try{e=so(o=>o).selectedItem}catch{e=null}return e?.props??{}}function Ag({min:e,max:o,step:t,px:a,label:r,onChange:n,desktopKey:l,fallback:f}){let c=jt()[l],u=wt(void 0,c,f);return d(ke,{children:Wo({min:e,max:o,step:t,value:wt(a,c,f),readout:!1,ariaLabel:r,notch:u,onChange:n})})}function Rg({label:e,desktopKey:o,fallback:t,changed:a=!1,onReset:r=()=>{}}){let n=jt()[o],l=wt(void 0,n,t);return d(te,{words:K()?.panel,label:s(e),changed:a,detail:s("{value} on desktop",{value:`${l}px`}),onReset:r})}function kg(e){return jc(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unsetLabel:"Follows Desktop",unsetMark:d(Rg,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>d(Ag,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var wg={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},_g={Top:Wc,Bottom:Hc,Left:Gc,Right:Uc},Dg=e=>{let o=_g[e];return d(o,{})};function Yt(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",a=e.group!==!1,r=C=>wg[C],n=C=>no(r("Top"),d(Wc,{}),oe.min,oe.max,oe.step,C,"px"),l=(C,E,y,g=oe)=>ee("mobile",kg({label:r(C),icon:Dg(C),desktopKey:E,min:g.min,max:g.max,step:g.step,fallback:y})),f=e.top??oe.min,c=e.bottom??oe.min,u="sectionPaddingLeft",i="sectionPaddingRight",p=e.sideBounds??oe,m=e.side??p.min,I=e.sidePhone??m,x=e.phone===!0,h=C=>x?ee("desktop",C):C;return Uo({...a?{_gSpacing:z("Padding")}:{},[o]:h(n(f)),...x?{[_o(o)]:l("Top",o,f)}:{},...e.only==="top"?{}:{[t]:h(no(r("Bottom"),d(Hc,{}),oe.min,oe.max,oe.step,c,"px")),...x?{[_o(t)]:l("Bottom",t,c)}:{}},...e.sides?{[u]:h(no(r("Left"),d(Gc,{}),p.min,p.max,p.step,m,"px")),...x?{[_o(u)]:l("Left",u,I,p)}:{},[i]:h(no(r("Right"),d(Uc,{}),p.min,p.max,p.step,m,"px")),...x?{[_o(i)]:l("Right",i,I,p)}:{}}:{}})}var Mg={contained:"Contained",page:"Page",full:"Full"},Wt="Width";function Zt(e,o=Oc,t=!0){let a=o.map(r=>({label:Bc[r]??Mg[r],value:r}));return Uo({...t?{_gWidth:z(Wt)}:{},widthMode:{type:"custom",render:({onChange:r,field:n})=>d(R,{label:s(Wt),icon:d(Wh,{}),action:t?d(fg,{inherited:n?.inherited??!1,onReset:()=>r(Kr),label:Wt}):void 0,children:on({options:a,value:n?.currentValue||e,onChange:r,ariaLabel:Wt})})}})}function Qt(){let e=a=>({type:"custom",render:({value:r,onChange:n})=>d(R,{label:ao,icon:co(d(kh,{})),action:a?a(n):void 0,children:on({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(r)?r:"auto",onChange:n,ariaLabel:ao})})}),o=()=>({type:"custom",render:({value:a,onChange:r,field:n})=>{let l=n?.unit==="%"?"%":"px",f=l==="%"?Nr:Mr;return d("div",{className:"sf-field",children:Wo({min:f.min,max:f.max,step:f.step,value:typeof a=="number"?a:f.fallback,suffix:l,ariaLabel:ao,onChange:r})})}}),t=()=>tn("Unit",d(Nc,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return Uo({_gHeight:z(ao),sectionHeightMode:ee("desktop",e()),sectionHeightValue:ee("desktop",o()),sectionHeightUnit:ee("desktop",t()),sectionHeightModePhone:ee("mobile",e(a=>d(Ng,{onClear:()=>a(void 0)}))),sectionHeightValuePhone:ee("mobile",o()),sectionHeightUnitPhone:ee("mobile",t())})}function Ng({onClear:e}){let o=jt(),t=Hr(o),a=_t(o),r=s("{value} on desktop",{value:a.mode==="auto"?s("Auto"):`${a.value}${a.unit}`});return d(te,{words:K()?.panel,label:s(ao),changed:t,detail:r,onReset:e})}function Jt(){return{_gAnchor:z("Anchor"),anchor:pg("Anchor name","e.g. about",dg)}}function eR(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(R,{label:s(e),icon:o,htmlFor:f,hint:t===void 0?void 0:s(t),children:d(Qh,{id:f,value:Number.isFinite(c)?new Date(c):null,onChange:u=>r(u?u.toISOString():"")})})}}}function Ue(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(R,{label:s(e),labelId:c,icon:t,action:d(Vh,{checked:f,onChange:r,ariaLabelledBy:c})})}}}function oR(){return{type:"custom",render:({value:e,onChange:o,id:t,name:a})=>{let r=`${String(t??a??"pageBackground")}-colour`;return d(R,{label:s("Background"),icon:d($c,{}),htmlFor:r,action:d(xe,{id:r,label:"Background",value:ur(e),onChange:o})})}}}function tR(e,o){return{type:"custom",render:({value:t,onChange:a})=>d(R,{label:s(e),action:xe({value:t||o,onChange:a,label:e})})}}var Hg=[{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 ed({label:e,value:o,onChange:t,points:a=Hg}){let r=a.map(n=>({...n,label:s(n.label),...n.title?{title:s(n.title)}:null}));return d(Yh,{label:s(e),value:o,points:r,onChange:t})}function aR(e,o=Jh,t="mediaImage"){return{type:"custom",render:({value:a,onChange:r})=>d("div",{className:"sf-focal-row",children:d(Gg,{label:e,value:a||o,onChange:r,imageProp:t})})}}function Gg({label:e,value:o,onChange:t,imageProp:a}){let{selectedItem:r}=so(l=>l),n=r?.props?.[a];return d(Zs,{label:e,value:o,onChange:t,image:typeof n=="string"?n:void 0})}var Ug=Da([]);function rR(e,{stacking:o,fallback:t=pt}){return{type:"custom",render:({value:a,onChange:r})=>{let n=Q.includes(a)?a:t;return o?d(Wg,{label:e,value:n,onChange:r}):od({label:e,value:n,onChange:r,points:Ug})}}}function Wg({label:e,value:o,onChange:t}){let{appState:a,selectedItem:r}=so(f=>f),n=r?.props?.id?String(r.props.id):void 0,l=n?Na(a?.data,n):[];return od({label:e,value:o,onChange:t,points:Da(l,n)})}function od({label:e,value:o,onChange:t,points:a}){let r=a.find(n=>n.disabled);return d(R,{label:s(e),icon:d(Mh,{}),hint:r?.title?s(r.title):void 0,children:ed({label:e,value:Fe(o),onChange:t,points:a})})}var nR={top:d(Oh,{}),right:d(Eh,{}),bottom:d(Th,{}),left:d(vh,{})};function lR(e,o,t,a,r,n){let l=i=>o.find(p=>p.value===i),f=i=>({value:i,label:"",disabled:!0,title:a}),c=i=>{let p=o.find(I=>I.cell===i);if(!p)return f(`missing-${i}`);let m=n?.[i];return m?{value:p.value,label:p.label,icon:m}:{value:p.value,label:p.label}},u=[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:i,onChange:p})=>{let m=o.some(I=>I.value===i)?i:t;return d(R,{label:s(e),icon:r,value:l(m)?.label?s(l(m).label):"",children:ed({label:e,value:m,onChange:p,points:u})})}}}var $g="\0note";function Re(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,u=f.fallback??a,i=c.some(p=>p.value===n)?n:u;return d(R,{label:s(e),icon:co(o),children:d(Xh,{value:i,ariaLabel:s(e),onChange:l,options:[...r?[{label:s(r),value:$g,disabled:!0}]:[],...c.map(p=>({label:s(p.label),value:p.value}))]})})}}}function fR(e,o,t){return{type:"custom",options:o,render:({value:a,onChange:r,field:n})=>d(rc,{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 sR(e,o={}){return{type:"custom",render:({value:t,onChange:a})=>{let r={value:t,onChange:a,...o};return d(e,{...r})}}}function on({options:e,value:o,onChange:t,ariaLabel:a,disabled:r=!1}){return d(Kh,{options:e.map(n=>n.picture?{id:n.value,label:n.picture,title:s(n.title??n.label)}:{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 cR=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function tn(e,o,t,a){let r=t.map(n=>typeof n=="string"?{label:n,value:n}:n);return{type:"custom",render:({value:n,onChange:l,field:f})=>d(R,{label:s(e),icon:co(o),children:on({options:r,value:r.some(c=>c.value===n)?n:n||f?.currentValue||a,onChange:l,ariaLabel:e})})}}function dR(e,o,t){return{type:"custom",[Ss]:!0,render:({value:a,onChange:r})=>d(tc,{value:a||"",onChange:r,label:e,accept:o,placeholder:t})}}function uR({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 fo(R,{label:s(t),icon:d(Yr,{}),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&&fo("div",{style:{marginTop:8,display:"grid",gap:8},children:[d(R,{label:s("Latitude"),icon:d(Yr,{}),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(R,{label:s("Longitude"),icon:d(Yr,{}),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 qg(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function zg(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 Kg(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 iR={label:"Ticker items",icon:d(_h,{})};function pR(e,o,t,a){return{type:"custom",[_]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:a},render:({value:r,onChange:n})=>d(Vg,{label:e,icon:co(o),items:Array.isArray(r)?r:[],placeholder:t,onChange:n,markup:a==="markup"})}}function Vg({label:e,icon:o,items:t,placeholder:a,onChange:r,markup:n=!1}){let l=Zr(null),[f,c]=wc(null),u=p=>p.map(m=>({text:m?.text??""})),i=p=>{let m=Kg(t,p,f);m===null&&(l.current=null),c(m),r(u(p))};return d(jh,{label:s(e),icon:o,noun:s("item"),items:t,onChange:i,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?d(vr,{target:l,value:qg(t,f),onChange:p=>r(zg(t,f??-1,p)),disabled:f===null,label:f===null?s("Formatting \u2014 click a row first"):s("Formatting \u2014 row {n}",{n:f+1})}):void 0,renderRow:(p,m,I)=>d("input",{type:"text",className:n&&f===m?"sf-list-marking":void 0,value:p?.text??"",placeholder:s(a),"aria-label":s("{label} {n}",{label:s(e),n:m+1}),onChange:x=>I({text:x.target.value}),onFocus:x=>{l.current=x.currentTarget,c(m)}})})}function mR(e,o){let t=`${e.label} \u2014 row ${o+1}`;return io({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:a,onChange:r})=>d(uo,{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 td(e){return{_gCards:z("Cards"),coverIndex:Re("Cover image",d(wh,{}),Xs,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:bg("Image background",Gt),cardImage:Xg(),spinOnHover:Ue("Rotate on hover",e?.spinDefault??!0,d(Hh,{}))}}function ad(){return{outline:Re("Card outline",d(Gh,{}),wr,Rr),indexBadge:Re("Card number",d(Nc,{}),kr,Ar),showBadge:Ue("Product badge",!0,d(dr,{noun:"tag"}))}}function rd(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:z("Show on a card"),showCardPrice:Ue("Price",!0,d(Bh,{})),showCardFinishes:Ue("Finish swatches",!0,d(Ph,{})),showCardSizes:Ue("Sizes",o,d(Nh,{})),showCardBuy:Ue("Buy button",o,d(yh,{})),showCardPage:Ue("Page button",o,d($c,{}))}}function Xg(){return jc("Card image",{min:ie,max:Lo,step:Ps,hint:"Rounds the picture. The card's own corner is in Site styles."})}function xR(){return Jr({sidesKey:"cornerSides",step:As,useFollowed:()=>ie,mark:d(jg,{label:Rs}),hint:s("Rounds the picture. Left alone it stays square.")})}function jg({label:e,changed:o=!1,onReset:t=()=>{}}){return d(te,{words:K()?.panel,label:s(e),changed:o,onReset:t})}function IR(){return{type:"custom",render:({value:e,onChange:o})=>d(Yg,{value:typeof e=="string"?e:"",onChange:o})}}function Yg({value:e,onChange:o}){let[t,a]=wc(null),r=br.filter(l=>t===null||se[l].across===t),n=e&&e in se?se[e]:null;return fo(ke,{children:[d(R,{label:s("Photos in a row"),icon:d(Fh,{}),children:fo("div",{className:"sf-gallery-filter",children:[d("button",{type:"button","aria-pressed":t===null,onClick:()=>a(null),children:s("All")}),ws.map(l=>d("button",{type:"button","aria-pressed":t===l,onClick:()=>a(l),children:l},l))]})}),d(R,{label:s("Layout"),icon:d(Ah,{}),value:n?s(n.label):s("Not chosen"),hint:s("{n} of {total} layouts",{n:r.length,total:br.length}),children:d("div",{className:"sf-gallery-layouts",children:r.map(l=>d($t,{content:s(se[l].label),className:"sf-tile-tip",children:d("button",{type:"button","aria-pressed":e===l,"aria-label":s(se[l].label),onClick:()=>o(e===l?"":l),children:d("span",{className:"sf-gallery-pic",children:se[l].desktop.map(([f,c],u)=>d("i",{style:{gridColumn:`span ${f}`,gridRow:`span ${c}`}},u))})})},l))})})]})}import{DESIGN_GROUPS as rn,SETTINGS_BUCKETS as Zg}from"efficient-easel/panel";import{BUCKET_KEY as $,DESIGN_GROUP_KEY as po}from"efficient-easel/screen/lib/puck/field-buckets";var nn=Zg;var Qg="Editor only \u2014 not shown live",ln={"Archive link":"Content",Article:"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",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":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Texture:"Design","Text style":"Design",Motion:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Controls:"Layout",Diagram:"Layout",[Qg]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Nudge:"Position","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:"Size",Height:"Size"},ld={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},fd={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function an(e,o,t){let a=`${e}.${o}`;return fd[a]??ld[a]??ln[t]}function sd(e){return e==="Animation"?[$.Animation]:[$.Design,po[e]]}function ea(...e){let o=[];for(let t of e)for(let a of Object.values(t)){let r=Er(a),n=le(r?r.inner:a),l=n?ln[n.label]:void 0;if(l)for(let f of sd(l))o.includes(f)||o.push(f)}return o}var LR=[...ea(Yt({phone:!0}),Zt("full"),Qt(),Jt()),...Object.keys(Yt({phone:!0})),...Object.keys(Zt("full")),...Object.keys(Qt()),...Object.keys(Jt())],TR=[...ea(zt()),...Object.keys(zt())],vR=[...ea(Vt()),...Object.keys(Vt())],ER=[...ea(Xt()),...Object.keys(Xt())],Jg=Object.keys(td()),eb=new Set(["cardImage","imageBackground"]),OR=[...sd(an("ProductGrid","_gCards","Cards")??"Design"),...Jg.filter(e=>e.startsWith("_g")||eb.has(e))],BR=Object.keys(ad()),PR=Object.keys(rd({bottomDefault:!0})),ob={"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)"},cd={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},dd={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Yt({phone:!0}),...Zt("full"),...Qt(),...Jt(),...zt(),...Vt(),...Xt()};for(let o of Object.keys(dd)){let t=le(e[o]),a=t?ln[t.label]:void 0;if(!t||t.level!==2||!a||!cd[a].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/puck/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var tb=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),ab=new Map([[$.Design,"Content"],[$.Animation,"Animation"],...rn.map(e=>[po[e],e])]);function AR(e){let o=new Set([...Object.values($),po.Content]);for(let[t,a]of Object.entries(e))if(!o.has(t)&&le(a)?.level===1)return 1;return 2}function rb(e){let o=`${e}.`;return Object.keys(ob).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function nb(e,o){let t=Er(e),a=z(o);return t?ee(t.tier,a):a}function lb(e,o){let t=le(o);return t?e==="Content"||e==="Animation"?Kc(o,t.label):Vc(o):o}function nd(e){return e==="Design"?rn:["Animation"]}function RR(e,o){let t=[],a=new Set(rb(o)),r=new Set,n=!1,l=null;for(let[m,I]of Object.entries(e)){let x=le(I);if(tb.has(m))throw new Error(`${o}.${m}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);let h=ab.get(m);if(h!==void 0){if(x?.level!==1)throw new Error(`${o}.${m}: that key is reserved for the ${h} heading of the settings panel, but this field is ${x?`a level-${x.level} "${x.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(m===$.Design||m===$.Animation)&&(n=!0),t.push(l={place:h,entries:[],adopted:!0});continue}if(!x){l||t.push(l={place:"Content",entries:[]}),l.entries.push([m,I]);continue}if(a.has(m)||m in dd){let E=an(o,m,x.label);if(x.level!==2||!E||!cd[E].includes(x.label))throw new Error(`${o}.${m}: ${a.has(m)?"RETIRED":"INJECTED_RETIRED"} (lib/puck/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${x.level} "${x.label}" header in the ${E??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);a.has(m)&&r.add(m),t.push(l={place:E,entries:[]});continue}let C=an(o,m,x.label);if(!C)throw new Error(`${o}.${m}: the inspector group "${x.label}" is not classified in LABEL_GROUP (lib/puck/field-groups.ts), so there is no way to say which of ${[...rn,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(l={place:C,entries:[[m,x.level===2?I:nb(I,x.label)]]})}let f=new Set(Object.entries(e).filter(([,m])=>le(m)).map(([m])=>m));for(let[m,I]of[["BLOCK_KEY_GROUP",fd],["KEY_GROUP",ld]]){let x=Object.keys(I).filter(h=>h.startsWith(`${o}.`)).filter(h=>!f.has(h.slice(o.length+1)));if(x.length)throw new Error(`${o}: ${m} (lib/puck/field-groups.ts) lists ${JSON.stringify(x)}, 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=n?[]:[...a].filter(m=>!r.has(m));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.`);let u=new Set(t.filter(m=>m.entries.length>0).map(m=>m.place)),i=nn.filter(m=>nd(m).some(I=>u.has(I))),p={};for(let m of i){p[$[m]]=qt(m,m===i[0]?i:null);for(let I of nd(m)){if(!u.has(I))continue;let x=t.filter(C=>C.place===I),h=x.findIndex(C=>C.adopted);h>0&&x.unshift(...x.splice(h,1)),m==="Design"&&(p[po[I]]=Qr(I));for(let C of x)for(let[E,y]of C.entries)p[E]=lb(I,y)}}return p}function kR(e){return $.Design in e?e:{[$.Design]:qt("Design",null),[po.Content]:Qr("Content"),...e}}function wR(e){return nn.some(o=>$[o]in e)}function _R(e){let o=nn.filter(a=>$[a]in e);if(o.length===0)return e;let t={...e};for(let a of o)t[$[a]]=qt(a,a===o[0]?o:null);return t}import{jsx as fb}from"react/jsx-runtime";import{createContext as sb,useCallback as cb,useContext as db,useState as ub}from"react";var ud={enabled:!0,title:"",subtitle:"",greeting:""},id=sb({chat:ud,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function GR({children:e,chat:o=ud,onChatChange:t}){let[a,r]=ub(!1),n=cb(c=>t?.(c),[t]),{select:l,setSelectHandler:f}=Tl();return fb(id.Provider,{value:{chat:o,setChat:n,selected:a,setSelected:r,select:l,setSelectHandler:f},children:e})}var UR=()=>db(id);import{jsx as ib}from"react/jsx-runtime";import{createContext as pb,useCallback as pd,useContext as mb,useMemo as xb,useRef as Ib}from"react";var hb=Object.fromEntries(vl.map(e=>[e,{value:"",error:null}])),md=pb({links:El,rows:hb,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function KR({children:e,value:o}){let t=Ib(()=>{}),a=pd(()=>t.current(),[]),r=pd(l=>{t.current=l},[]),n=xb(()=>({...o,openPanel:a,setOpenHandler:r}),[o,a,r]);return ib(md.Provider,{value:n,children:e})}var VR=()=>mb(md);import{jsx as gb}from"react/jsx-runtime";import{createContext as bb,useContext as Cb,useMemo as Sb,useState as yb}from"react";var xd=bb(null);function ZR({children:e}){let[o,t]=yb(null),a=Sb(()=>({surface:o,setSurface:t}),[o]);return gb(xd.Provider,{value:a,children:e})}function QR(){return Cb(xd)??{surface:null,setSurface:()=>{}}}var ok="Scrolling Bar",{Provider:tk,useSelection:Id}=lt("selectedHeroId");var{Provider:nk,useSelection:lk}=lt("selectedLocationPartId");function fk(e,o,t){return`${e}::${o}::${t}`}function sk(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 Fb,useContext as Lb}from"react";var Tb=Fb(!1),uk=()=>Lb(Tb);import{PreviewDeviceContext as mk,usePreviewDevice as xk}from"efficient-easel/screen/components/PreviewDeviceContext";var vb=new Set(["Hero","HeroSingle","IntroBleed"]),hd={min:56,max:140,default:88},gk={min:0,max:120,step:2,default:28},gd=`var(--sf-header-h, ${hd.default}px)`,Eb="--sf-header-set-h",bk="--sf-header-h",Ck=`var(${Eb}, ${hd.default}px)`,Sk="sf-header-clearance",yk="sf-sticky-underheader";function Ob(e){return e?.find(o=>o?.type&&o.type!==De)??null}function bd(e){let o=Ob(e)?.type;return!o||!vb.has(o)}function Fk(e){return!bd(e)}function Lk(e){return!!e?.some(o=>o?.type===De)}function Tk(e){return!e||e.length===0?!1:!e.some(o=>o?.type===De||o?.type===xt)}var Bb=["auto","shared","own"],Pb="auto",Ab="topSpace",vk="data-top-space";function Rb(e){return Bb.includes(e)?e:Pb}function kb(e,o){let t=Rb(e?.props?.[Ab]);return t==="own"?!0:t==="shared"?!1:bd(o)}function Ek(e,o){return kb(e,o)?"own":null}import{blockRuns as wb}from"efficient-easel/screen/lib/puck/block-choice";function Rk(){return{type:De,props:{id:vo(De)}}}var Cd=[{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"}],_b=Cd.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Db="FooterGroup",Sd="blocks";function yd(e){return e===xt?Cd:e===Db?_b:null}function wk(){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"})]})]}var oa=new Map;async function Mb(e,o){try{return(await me().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function Mk(e,o){let t=oa.get(o);return t||(t=Mb(e,o),oa.set(o,t),t.catch(()=>{oa.get(o)===t&&oa.delete(o)})),t}var Nb=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function Hb(e){return!!e&&Nb.test(e)}function Gk(e){let{pageSlug:o,siteSlug:t,hostname:a}=e,r=o===yt?"/":`/${encodeURIComponent(o)}`;if(!Hb(a))return r;let n=t?.trim();return n?`${r}?site=${encodeURIComponent(n)}`:r}function Kk(e,o=0){let t=Ub(e,o),a=t?za():null;return t&&a?Gb(t,a):t}function Gb(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 Ub(e,o){let t=Le[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let a=pf(e,o);if(a)return{source:"container",slot:a.slot,choices:a.choices,spec:null};let r=yd(e);return r?{source:"footer",slot:Sd,choices:r,spec:null}:null}import{useSyncExternalStore as Wb}from"react";var fn=null,sn=new Set;function jk(e){if(fn!==e){fn=e;for(let o of sn)o()}}function $b(e){return sn.add(e),()=>{sn.delete(e)}}function Yk(){return Wb($b,()=>fn,()=>null)}function Zk(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?e.slice(0,o):null}var qb="inline",zb=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var Kb={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"}},ew="SectionHeader";function ow(e){return e in Kb}function Vb(e){return q(zb,qb,e)}var Xb=new Set(["Flex"]);function jb(e){return!!e?.type&&Xb.has(e.type)}function tw(e,o,t){if(!jb(o))return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function aw(e,o,t){if(Vb(o)!=="own-box")return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function cn(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function dn(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 $o,encodePartId as Yb,PART_SEP as fw}from"efficient-easel/screen/lib/puck/part-id";var Zb=Ge,Qb=["text","textarea"],Jb=["textarea","plainTextarea"];function eC(e){return!e||typeof e!="object"?null:e[_]?.control??null}function Fd(e){let o=eC(e);return o&&Zb.includes(o)?o:null}function iw(e){return Jb.includes(e)}function pw(e){return!e||typeof e!="object"?void 0:e[_]?.placeholder}function ta(e){return Pe(e).text}function un(e,o,t){return Qb.includes(e)?{text:t,hidden:Pe(o).hidden}:t}function mw(e,o,t,a){return ta(e[o])===a?null:{...e,[o]:un(t,e[o],a)}}function oC(e){if(!(!e||typeof e!="object"))return e[_]}function tC(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function Ld(e,o){if(!Array.isArray(o))return[];let t=oC(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=tC(e);return r?(o.forEach((n,l)=>{for(let[f,c]of Object.entries(r)){if(!Fd(c))continue;let u=ta(n?.[f]);u&&a.push({row:{index:l,rowKey:f},text:u})}}),a):[]}function aC(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function rC(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 bw(e,o,t,a,r){let n=aC(e[o],t);return ta(n)===r?null:rC(e,o,t,un(a,n,r))}function Cw(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Pw="data-sf-part",Aw="data-sf-part-selected",Rw="data-sf-part-kind",Td=2;function kw(e,o){if(!e)return!1;let t=$o(e);return!!t?.propKey&&t.nodeId===o}function mo(e){return Oo(e).replace(/\s+/gu,"")}function aa(e,o,t){let a=e[_];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[Ro]){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))aa(l,r?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[r,n]of Object.entries(e.objectFields))aa(n,o[r],t)}}function ww(e){if(!e||typeof e!="object")return!1;let o=e;return o[Ro]?!1:!!o[_]||o.type==="text"||o.type==="textarea"}function vd(e,o){let t=e[_];return t?.label?t.label:typeof e.label=="string"?e.label:o}function nC(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function _w(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){if(!r||typeof r!="object"||Do(a))continue;let n=r,l=[];aa(n,o?.[a],l),!l.length&&n[ko]!==void 0&&aa(n,n[ko],l);let f=vd(n,a),c=new Set;for(let{row:p,text:m}of Ld(n,o?.[a])){let I=mo(m);I.length<Td||(c.add(I),t.push({key:a,label:f,texts:[I],row:p}))}let u=new Set(c),i=[];for(let p of l){let m=mo(p);m.length<Td||u.has(m)||(u.add(m),i.push(m))}i.length&&t.push({key:a,label:f,texts:i})}return t}var lC=Ge;function Ed(e,o){if(!o||typeof o!="object"||Do(e)||Ws(o))return null;let t=o[_];return!t||!lC.includes(t.control)?null:t}function Dw(e,o){let t=Ed(e,o);return t!==null&&t.identifier!==!0}function Mw(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){let n=Ed(a,r);if(!n)continue;let{text:l,hidden:f}=Pe(o?.[a]),c=l||n.placeholder||"",u=Oo(c).replace(/\s+/gu," ").trim();t.push({key:a,label:nC(vd(r,a)),preview:u,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!f})}return t}var fC="Main Pages",sC="Dynamic Pages",cC="dynamic",dC="dynamic";function uC(e){return e.kind===dC}function Hw(e){let o=[],t=[];for(let a of e){if(uC(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??fC,rows:[a]})}if(t.length){let a=o.findIndex(r=>r.key.startsWith("system:"));o.splice(a===-1?o.length:a,0,{key:cC,label:sC,rows:t})}return o}import{VIEW_DESKTOP_MIN as Ww,VIEW_TABLET_MIN as $w,VIEW_TIER_LABEL as qw,VIEW_TIERS as zw,viewTierForWidth as Kw}from"efficient-easel/screen/lib/content/view-tiers";import{jsx as pn,Fragment as iC,jsxs as pC}from"react/jsx-runtime";var jw=pC(iC,{children:[pn("circle",{cx:"9",cy:"20",r:"1.3"}),pn("circle",{cx:"18",cy:"20",r:"1.3"}),pn("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 mn,Fragment as mC}from"react/jsx-runtime";function Od({className:e=""}){return mn("sup",{className:`text-accent tracking-normal ${e}`,children:"\xAE"})}function ra(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(mn(Od,{},`r${r}`))}),mn(mC,{children:t})}var Qw=Od;import{jsx as B,jsxs as Ln}from"react/jsx-runtime";import{Fragment as Yd}from"react";var hn="_partStyles",Cn="data-sf-part-styled",xC=["none","upper","lower"],IC=[400,500,600,700],hC=["left","center","right","justify"],gC=5,bC=1e3,CC=-5,SC=10,yC=0,FC=64,LC=2,TC=120,na=1280,vC=10,Bd={size:{min:gC,max:bC,step:1},padding:{min:yC,max:FC,step:LC},width:{min:TC,max:na,step:vC}},EC=.05,OC=.01,BC=["line","letter"],PC=.5,AC=2.5,RC=-1,kC=1,wC=0,_C=400,gn={none:"none",upper:"uppercase",lower:"lowercase"};function zo(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function kd(e){return zo(e?.[hn])??{}}function DC(e,o){let t=kd(e);return Object.hasOwn(t,o)?zo(t[o])??{}:{}}function wd(e,o,t){let a={...kd(e)};if(MC(t).length?a[o]=t:delete a[o],!Object.keys(a).length){let{[hn]:r,...n}=e;return n}return{...e,[hn]:a}}function MC(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function NC(e){return BC.includes(e)}var qo=(e,o,t)=>Math.min(t,Math.max(o,e));function HC(e,o){if(NC(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:qo(t,CC,SC)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?xo(qo(t,PC,AC),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?xo(qo(t,RC,kC),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:qo(t,wC,_C)}if(Object.hasOwn(Bd,e)){let{min:t,max:a}=Bd[e],r=Math.round(Number(o));return Number.isFinite(r)?qo(r,t,a):null}return e==="role"?yo.includes(String(o))?o:null:o}var GC=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function UC(e){let o=[];for(let[t,a]of GC)t===e?o.push(a):a===e&&o.push(t);return o}function r_(e,o,t,a){let r={...DC(e,o)},n=a==null?null:HC(t,a);if(n===null)delete r[t];else{r[t]=n;for(let l of UC(t))delete r[l]}return wd(e,o,r)}function n_(e,o){return wd(e,o,{})}function WC(e){for(let o of xC)if(gn[o]===e)return o;return"none"}function $C(e){return!e||!Object.hasOwn(gn,e)?"":gn[e]}var qC={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 zC(e){let o=e.role;return o&&yo.includes(o)?o:null}var KC={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 VC(e){let o=gl[e],t=KC[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function XC(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=xo(jC+e.line*EC,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=xo(e.letter*OC,4)),o}var jC=1,Vo="--sf-part-para";function la(e,o){let t=zC(e),a=XC(e),r=e.size?`${e.size}px`:t?VC(t):"";return{fontFamily:e.font?JC(e.font):t?`var(${qC[t]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:r,minWidth:r?"0":"",overflowWrap:r?"break-word":"",lineHeight:a.lineHeight!==void 0?String(a.lineHeight):"",letterSpacing:a.letterSpacingEm!==void 0?`${a.letterSpacingEm}em`:"",[Vo]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:$C(e.case),textAlign:e.align??"",paddingTop:xn(e.padding),paddingBottom:xn(e.padding),maxWidth:xn(e.width),color:YC(e.color)}}var YC=e=>e===void 0||e===""?"":Object.hasOwn(Te,e)?Te[e]:_d.test(e)?e:"",_d=/^#[0-9a-fA-F]{6}$/;function Dd(e){return _d.test(e)}var xn=e=>e===void 0?"":`${e}px`,xo=(e,o)=>Number(e.toFixed(o));function l_(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:ZC(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(a)?xo(a/t,3):1.2,letterEm:Number.isFinite(r)?xo(r/t,4):0,align:QC(e.textAlign),case:WC(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(l)&&l<na?Math.round(l):na}}function ZC(e){return Number.isFinite(e)?IC.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function QC(e){for(let o of hC)if(o===e)return o;return e==="end"?"right":"left"}function f_(e,o){let t=Pd(e);if(!t)return"";for(let a of Sa)if(Pd(o(a.cssVar))===t)return a.key;return""}var Pd=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function JC(e){let o=hl(e);return o?`var(${o.cssVar})`:""}function s_(e,o,t,a){return!o||$o(o)?.nodeId!==e?null:t.find(r=>a(r.getAttribute("class")))??t[0]??null}function c_(e,o,t=()=>Ko,a=n=>n,r=tS){let n=0;for(let{element:l,partId:f}of e){let c=$o(f)?.propKey;if(!c)continue;let u=a(c),i=Object.hasOwn(o,u)?zo(o[u])??{}:{},p=la(i,Ko),m=In.some(x=>l.style[x]),I=!1;for(let[x,h]of Object.entries(p))aS(l,x,h),h&&(I=!0);if(m||In.some(x=>p[x]))for(let x of eS(l,r))for(let h of In)x.style[h]=p[h]??"";I&&(n+=1)}return n}function eS(e,o){let t=mo(e.textContent??""),a=[],r=e;for(let n=0;n<oS&&o(r);n+=1){let l=r.parentElement;if(!l||mo(l.textContent??"")!==t)break;a.push(l),r=l}return a}var oS=8;function tS(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Ko={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:na};function aS(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===Vo&&(t?r.setAttribute?.(Ad,""):r.removeAttribute?.(Ad))}var Ad="data-sf-part-para",rS=Object.keys(la({},Ko)),bn=new Set(["color","overflowWrap",Vo]),In=rS.filter(e=>!bn.has(e));function Md(e,o,t,a=r=>r){let r=new Map;for(let f of e){let c=cn(f.key,f.row);for(let u of f.texts){let i=r.get(u);i?(i.keys.add(f.key),i.partKeys.add(c)):r.set(u,{keys:new Set([f.key]),partKeys:new Set([c])})}}let n=new Map;for(let f of Object.keys(o)){if(!nS(f))continue;let c=zo(o[f])??{},u=la(c,Ko);Object.values(u).some(Boolean)&&n.set(f,{stamp:Rd(t,f),declarations:u})}let l=new Map;for(let[f,{keys:c,partKeys:u}]of r){let i=u.size===1?[...u][0]:c.size===1?[...c][0]:null;if(!i)continue;let p=a(i);if(!Object.hasOwn(o,p))continue;let m=zo(o[p])??{},I=la(m,Ko);Object.values(I).some(Boolean)&&l.set(f,{stamp:Rd(t,i),declarations:I})}return l.size||n.size?{rules:l,kindRules:n,drawn:new Set(r.keys())}:null}function nS(e){return e.startsWith("@")}function Nd(e,o){return e?.kindRules.get(o)??null}function Rd(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(([I,x])=>`${fS(I)}: ${x}`).join("; "),u=`[${Cn}="${n}"]`,i=f.filter(([m])=>!bn.has(m)),p=f.filter(([m])=>bn.has(m));i.length&&o.push(`${u}, *:has(> ${u}) { ${c(i)} }`),p.length&&o.push(`${u} { ${c(p)} }`),l[Vo]&&o.push(...lS(u))};for(let r of e.rules.values())a(r);for(let r of e.kindRules.values())a(r);return o.join(`
4
+ `)}function lS(e){let o=`var(${Vo})`,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 fS=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function Gd(e,o){if(!e)return null;let t=mo(o),a=e.rules.get(t);if(a)return a;if(t.length<sS||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 sS=8;import{Fragment as mS,jsx as Fn}from"react/jsx-runtime";import{Fragment as qd,jsx as fa,jsxs as uS}from"react/jsx-runtime";import{createContext as zd,useContext as Sn,useId as iS,useMemo as pS}from"react";var Xo="@name",Ud="@body",Wd="@value",i_={[Xo]:"Name",[Ud]:"Body",[Wd]:"Value"},cS={TimelineTrack:{"entries.date":Xo,"entries.title":Xo,"entries.blurb":Ud},Footprint:{"offices.city":Xo},Stats:{"items.label":Xo,"items.value":Wd}};function dS(e){let{key:o,row:t}=dn(e);return t?`${o}.${t.rowKey}`:null}function $d(e,o){if(!e)return o;let t=dS(o);return t?cS[e]?.[t]??o:o}var yn=zd(null),Kd=zd(null);function g_({needles:e,styles:o,type:t,children:a}){let r=iS(),n=JSON.stringify([r,e,o,t]),l=pS(()=>Md(e,o,r,f=>$d(t,f)),[n]);return l?uS(qd,{children:[fa("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:Hd(l)}}),fa(yn.Provider,{value:l,children:a})]}):fa(qd,{children:a})}function Vd(e){let o=Sn(yn),t=Sn(Kd),a=Gd(o,e);return a&&a.stamp!==t?a:null}function b_(e){return Nd(Sn(yn),e)}function Xd({stamp:e,children:o}){return fa(Kd.Provider,{value:e,children:o})}function jo({value:e,children:o}){let t=Vd(e);return t?Fn(Xd,{stamp:t.stamp,children:Fn("span",{[Cn]:t.stamp,children:o})}):Fn(mS,{children:o})}function Tn(e,o=!1){let t=yS(o),a=Ya(e);if(a.length===1){let[n]=a,l=ja(n),f=l?CS(l,n.children):n.children;return B(jo,{value:e,children:sa(f,t)})}let r=[];return a.forEach((n,l)=>{if(n.bullet){r.push(B("span",{"data-sf-bullet":"",className:xS,children:sa(n.children,t)},l));return}if(n.number!=null){r.push(Ln("span",{"data-sf-number":n.number,className:IS,children:[Ln("span",{className:hS,children:[n.number,"."]}),sa(n.children,t)]},l));return}l>0&&!gS(a[l-1])&&r.push(B("br",{},`br${l}`)),r.push(B(Yd,{children:sa(n.children,t)},l))}),B(jo,{value:e,children:r})}var xS="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",IS="relative block pl-[2em]",hS="absolute left-0 w-[1.6em] text-right tabular-nums";function gS(e){return e.bullet||e.number!=null}var bS="text-accent underline underline-offset-[0.18em]";function CS(e,o){let[t,...a]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...a]:[{kind:"text",text:e},...o]}function SS(e){if(e)return Dd(e)?e:Object.hasOwn(Te,e)?Te[e]:void 0}function sa(e,o){let t=[],a=!1;return e.forEach((r,n)=>{if(r.kind==="text"){t.push(B("span",{children:ra(r.text)},n)),a=!0;return}a||t.push(B("span",{},`e${n}`)),t.push(Zd(r,n,o)),a=!1}),a||t.push(B("span",{},"end")),t}function jd(e,o){return e.length===1&&e[0].kind==="text"?ra(e[0].text):e.map((t,a)=>t.kind==="text"?B(Yd,{children:ra(t.text)},a):Zd(t,a,o))}function yS(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function R_(e){return B(jo,{value:e,children:B("span",{children:e})})}function Zd(e,o,t){if(e.kind==="link")return B("a",{href:e.href,className:bS,children:jd(e.children,t)},o);let a=jd(e.children,t),r=bf[e.kind];if(r)return B("span",{[Cf]:r,children:a},o);switch(e.kind){case"underline":return B("u",{children:a},o);case"sup":return B("sup",{children:a},o);case"sub":return B("sub",{children:a},o);case"color":{let n=SS(e.color);return n?B("span",{style:{color:n},children:a},o):B("span",{children:a},o)}case"accent":case"highlight":return B("em",{className:t,children:a},o);case"bold":return B("strong",{className:"font-semibold",children:a},o);case"italic":return B("em",{className:"italic",children:a},o);case"strike":return B("s",{className:"line-through",children:a},o);default:return B("span",{children:a},o)}}function k_(e,o=!0){let t=e.split(`
5
+ `);return B(jo,{value:e,children:t.map((a,r)=>Ln("span",{children:[Tn(a,o),r<t.length-1?B("br",{}):null]},r))})}function w_(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var vn={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 Qd={min:40,max:100,step:5,fallback:100,unit:"vh"};function En(e){return`${typeof e=="number"?e:Qd.fallback}${Qd.unit}`}function Jd(...e){return e.some(o=>typeof o=="number")}import{useSyncExternalStore as FS}from"react";var LS={level:"groups"},ou=LS,On=new Set;function H_(e){ou=e;for(let o of On)o()}function TS(e){return On.add(e),()=>{On.delete(e)}}var eu=()=>ou;function G_(){return FS(TS,eu,eu)}function tu(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 W_(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 Yo=e=>String(e?.group??""),Bn=new WeakMap,vS=0;function ES(e){let o=Bn.get(e);return o||(o=`loc${++vS}`,Bn.set(e,o)),o}var z_=(e,o)=>o||e||"Ungrouped",au={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 ca(e){return tu(e,Yo,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),ru=(e,o,t)=>Math.min(Math.max(e,o),t);function OS(e,o,t){let a=0;for(let r=0;r<e.length;r++)if(Yo(e[r])===o){if(a===t)return r;a++}return-1}function K_(e,o,t){let a=ca(e);if(o<0||o>=a.length)return e;let[r]=a.splice(o,1),n=ru(o<t?t-1:t,0,a.length);return a.splice(n,0,r),Pn(a)}function V_(e,o,t,a,r){let n=ca(e),l=n.find(p=>p.key===o),f=n.find(p=>p.key===a);if(!l||!f||t<0||t>=l.cards.length)return e;let[c]=l.cards.splice(t,1),u=o===a?c:{...c,group:f.key,groupName:f.name};u!==c&&Bn.set(u,ES(c));let i=ru(l===f&&t<r?r-1:r,0,f.cards.length);return f.cards.splice(i,0,u),Pn(n)}function X_(e,o){let t=ca(e),a=t.find(n=>n.key===o),r={...au,group:o,groupName:a?.name??""};return a?(a.cards.push(r),Pn(t)):[...e,r]}function j_(e){let o=new Set(ca(e).map(r=>r.key)),t=o.size+1,a=`Group ${t}`;for(;o.has(a);)a=`Group ${++t}`;return{cards:[...e,{...au,group:a,groupName:""}],key:a}}function Y_(e,o){return e.filter(t=>Yo(t)!==o)}function Z_(e,o,t){let a=OS(e,o,t);return a<0?e:e.filter((r,n)=>n!==a)}function Q_(e,o,t){let a=e.flatMap((l,f)=>Yo(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 J_(e,o,t){return o.flatMap(a=>{let r=e.filter(n=>Yo(n)===a);return r.length?r:t(a)})}var BS="plain",nu=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],PS="line",AS={KeyFeatures:"filled"};function RS(e){return AS[e]??BS}function t1(e,o){return q(nu,RS(o),e)}function a1(e){return q(nu,PS,e)}var kS="#9ca3af";function l1(e){return Xa.map(o=>({key:o,name:Sf[o],value:e?.[o]||kS}))}function f1(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 Xa){let f=Te[l].replace(/^var\((--[\w-]+)\)$/,"$1"),c=r.getPropertyValue(f).trim();if(!c)continue;let u=lu(c);!u&&n&&(n.fillStyle="#000000",n.fillStyle=c,u=lu(String(n.fillStyle))),u&&(o[l]=u)}return o}function lu(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 wS={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}},fu=wS;var da="data-sf-spec-region";function d1(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 _S(e){return`@${e}`}function DS(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function su(e,o){return o&&o in e?o:null}function MS(e,o){let t=o?.closest(`[${da}]`)?.getAttribute(da);return su(e,t??null)}var NS={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0}},cu=NS;var x1=da;var du={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 uu={SpecTable:du,FAQ:cu,Collections:fu};function C1(e){return e&&Object.hasOwn(uu,e)?uu[e]:null}import{jsx as ny}from"react/jsx-runtime";import{forwardRef as HS,createElement as An}from"react";var iu={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 S=(e,o,t,a)=>{let r=HS(({color:n="currentColor",size:l=24,stroke:f=2,title:c,className:u,children:i,...p},m)=>An("svg",{ref:m,...iu[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${o}`,u].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:f,stroke:n},...p},[c&&An("title",{key:"svg-title"},c),...a.map(([I,x])=>An(I,x)),...Array.isArray(i)?i:[i]]));return r.displayName=`${t}`,r};var GS=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Rn=S("outline","brand-facebook","BrandFacebook",GS);var US=[["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"}]],kn=S("outline","brand-instagram","BrandInstagram",US);var WS=[["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"}]],wn=S("outline","brand-line","BrandLine",WS);var $S=[["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"}]],_n=S("outline","brand-linkedin","BrandLinkedin",$S);var qS=[["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"}]],Dn=S("outline","brand-pinterest","BrandPinterest",qS);var zS=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Mn=S("outline","brand-telegram","BrandTelegram",zS);var KS=[["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"}]],Nn=S("outline","brand-tiktok","BrandTiktok",KS);var VS=[["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"}]],Hn=S("outline","brand-wechat","BrandWechat",VS);var XS=[["path",{d:"M3 21l1.65 -3.8a9 9 0 1 1 3.4 2.9l-5.05 .9",key:"svg-0"}],["path",{d:"M9 10a.5 .5 0 0 0 1 0v-1a.5 .5 0 0 0 -1 0v1a5 5 0 0 0 5 5h1a.5 .5 0 0 0 0 -1h-1a.5 .5 0 0 0 0 1",key:"svg-1"}]],Gn=S("outline","brand-whatsapp","BrandWhatsapp",XS);var jS=[["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"}]],Un=S("outline","brand-x","BrandX",jS);var YS=[["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"}]],Wn=S("outline","brand-youtube","BrandYoutube",YS);var ZS=[["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"}]],$n=S("filled","brand-facebook-filled","BrandFacebookFilled",ZS);var QS=[["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"}]],qn=S("filled","brand-instagram-filled","BrandInstagramFilled",QS);var JS=[["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"}]],zn=S("filled","brand-linkedin-filled","BrandLinkedinFilled",JS);var ey=[["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"}]],Kn=S("filled","brand-pinterest-filled","BrandPinterestFilled",ey);var oy=[["path",{d:"M16.083 2h-4.083a1 1 0 0 0 -1 1v11.5a1.5 1.5 0 1 1 -2.519 -1.1l.12 -.1a1 1 0 0 0 .399 -.8v-4.326a1 1 0 0 0 -1.23 -.974a7.5 7.5 0 0 0 1.73 14.8l.243 -.005a7.5 7.5 0 0 0 7.257 -7.495v-2.7l.311 .153c1.122 .53 2.333 .868 3.59 .993a1 1 0 0 0 1.099 -.996v-4.033a1 1 0 0 0 -.834 -.986a5.005 5.005 0 0 1 -4.097 -4.096a1 1 0 0 0 -.986 -.835z",key:"svg-0"}]],Vn=S("filled","brand-tiktok-filled","BrandTiktokFilled",oy);var ty=[["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"}]],Xn=S("filled","brand-whatsapp-filled","BrandWhatsappFilled",ty);var ay=[["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"}]],jn=S("filled","brand-x-filled","BrandXFilled",ay);var ry=[["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"}]],Yn=S("filled","brand-youtube-filled","BrandYoutubeFilled",ry);var kD="outline",ua={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},ly={},Zn={fillRule:"evenodd"},fy=[["path",{...ua,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...Zn,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],sy=[["path",{...ua,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",{...ly,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("")}]],cy=[["path",{...ua,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",{...ua,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",{...Zn,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",{...Zn,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("")}]],dy=S("filled","brand-telegram-filled","BrandTelegramFilled",fy),uy=S("filled","brand-line-filled","BrandLineFilled",sy),iy=S("filled","brand-wechat-filled","BrandWechatFilled",cy),py={instagram:{outline:kn,solid:qn},facebook:{outline:Rn,solid:$n},tiktok:{outline:Nn,solid:Vn},youtube:{outline:Wn,solid:Yn},x:{outline:Un,solid:jn},linkedin:{outline:_n,solid:zn},pinterest:{outline:Dn,solid:Kn},whatsapp:{outline:Gn,solid:Xn},telegram:{outline:Mn,solid:dy},line:{outline:wn,solid:uy},wechat:{outline:Hn,solid:iy}};function wD({platform:e,iconStyle:o,size:t}){let a=py[e][o];return ny(a,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var Qn="small",Jn="dot",my=[{label:"Small",value:"small"},{label:"Display",value:"display"}],xy=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],pu={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},Iy={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)]"},hy={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 mu(e){return q(my,Qn,e)}function xu(e){return q(xy,Jn,e)}function Iu(e){return Iy[e]}function hu(e,o){return hy[e][o]}var el="left",gy=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],by={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function gu(e){return q(gy,el,e)}function bu(e){return e==="up"||e==="down"}function Cu(e,o){return`${by[e]} ${o}s linear infinite`}var Cy={"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]"},Sy=`calc(${St} - ${W}*2)`,Su=`var(${Ja},${W})`,WD=`pointer-events-none absolute inset-y-0 left-[${Su}] right-[${Su}] z-[6] mx-auto max-w-[var(${er},${Sy.replace(/ /g,"_")})]`;function ia(e,o){return`pointer-events-auto absolute ${Cy[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function yu(e){return Q.includes(e)?e:null}var yy="bottom-right",Fy=["outline","solid","square","bare"],Ly="outline",KD={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},VD=!1,Fu=["prev","next"],Lu={prev:"Previous slide",next:"Next slide"};function Ty(e){return Fy.includes(e)?e:Ly}function vy(e){return yu(e)??yy}var Ey="flex-row items-center gap-2";function Tu(e){return ia(vy(e),Ey)}var Oy={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 vu(e){return Oy[Ty(e)]}function Eu(e){return e.shown===!0&&(e.count??0)>1}function pa(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 By=Q;var Py="top-right",Ay=["cards","dots","numbers","bar","tabs"],Ry=["cards","dots","numbers","bar"],Ou="cards",ZD={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},QD=!0;function ma(e){return Ay.includes(e)?e:Ou}function Bu(e){return Ry.includes(e)?e:Ou}function ky(e){return By.includes(e)?e:Py}var Pu={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 Au(e,o){return ia(ky(o),Pu[ma(e)])}function Ru(e){return`flex ${Pu[ma(e)]}`}function ku(e){return e.shown!==!1&&(e.count??0)>1}function wy(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function _y(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 wu(e,o){let t=Array.from(o,wy);return _y(e,t)?e:t}import{useEffect as Dy,useState as My}from"react";var _u="(prefers-reduced-motion: reduce)";function Ny(){return globalThis.window?.matchMedia?.(_u)?.matches??!1}function oM(){return Ny()?"auto":"smooth"}function Du(){let[e,o]=My(!1);return Dy(()=>{let t=globalThis.window?.matchMedia?.(_u);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 ce,jsxs as Ia}from"react/jsx-runtime";import{useCallback as Io,useEffect as ho,useId as Vy,useRef as Ie,useState as Jo}from"react";var Mu="data-puck-overlay-portal";function xa(e){return e.setAttribute(Mu,"true"),()=>e.removeAttribute(Mu)}import{jsx as Zo,jsxs as Nu}from"react/jsx-runtime";var Hy={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function Hu({items:e,separator:o=Jn,size:t=Qn,durationSec:a=50,scroll:r=el,backdrop:n="themed-band",className:l}){let f=mu(t),c=gu(r),u=xu(o),i=`text-accent ${hu(f,u)}`.trim(),p=pu[u],m=p===""?Zo("span",{}):Zo("span",{className:i,children:p}),I=bu(c),x=I?"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=I?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",C=E=>Zo("span",{className:x,children:e.map((y,g)=>{let O=typeof y=="string"?y:y.text,j=typeof y=="object"&&y.gold;return Nu("span",{className:h,children:[Zo("span",{className:j?"text-accent":void 0,children:Tn(O)}),m]},g)})},E);return Zo("div",{className:`overflow-hidden ${l??""}`,children:Nu("div",{className:`flex ${I?"flex-col ":""}whitespace-nowrap ${Iu(f)} ${Hy[n]}`,style:{animation:Cu(c,a)},children:[C("a"),C("b")]})})}import{jsx as ol}from"react/jsx-runtime";function Gu({shape:e,placement:o,ref:t}){let a=vu(e);return ol("div",{ref:t,className:Tu(o),style:{color:"var(--overlay-fg)"},children:Fu.map(r=>ol("button",{type:"button","data-hero-nav":r,"aria-label":Lu[r],className:a,children:ol(No,{name:"chevron-right",size:18,rounded:!0,style:r==="prev"?{rotate:"180deg"}:void 0})},r))})}import{jsx as M,jsxs as tl,Fragment as Qo}from"react/jsx-runtime";function Uu({slides:e,active:o,shape:t,placement:a,ref:r,tone:n="media",label:l}){let f=ma(t),c=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--site-surface-2)"}:void 0;return tl("aside",{ref:r,"aria-label":l??"Featured slides",className:n==="surface"?Ru(f):Au(f,a),style:{color:"var(--overlay-fg)",...c},children:[f==="cards"&&M(Gy,{slides:e,active:o}),f==="dots"&&M(Uy,{count:e.length,active:o}),f==="numbers"&&M(Wy,{count:e.length,active:o}),f==="bar"&&M($y,{count:e.length,active:o}),f==="tabs"&&M(qy,{slides:e,active:o})]})}function Gy({slides:e,active:o}){return tl(Qo,{children:[M("span",{className:"mb-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.28em] text-overlay-chrome/55",children:"Reel \xB7 pick a slide"}),e.map((t,a)=>{let r=a===o;return tl("button",{type:"button","data-idx":a,"aria-pressed":r,"aria-label":`Go to ${t.name||`slide ${a+1}`}`,className:["group flex w-[170px] cursor-pointer flex-col items-start gap-0.5 border bg-overlay-scrim/55 px-3 py-2.5 text-left transition-all motion-reduce:transition-none max-[1100px]:w-[140px]",r?"border-accent bg-overlay-scrim/70":"border-overlay-chrome/15 hover:border-overlay-chrome/45 hover:bg-overlay-scrim/70"].join(" "),children:[M("span",{className:["font-display text-[length:var(--size-body,13px)] font-medium uppercase leading-tight tracking-[-0.01em]",r?"text-accent":"text-overlay-fg"].join(" "),children:t.name||`Slide ${a+1}`}),M("span",{className:"font-mono text-[length:var(--size-label,9px)] uppercase tracking-[0.2em] text-overlay-chrome/55",children:r?"\u25B6 Now playing":t.process||" "})]},a)})]})}function Uy({count:e,active:o}){return M(Qo,{children:Array.from({length:e},(t,a)=>M("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`h-2 cursor-pointer rounded-full transition-all motion-reduce:transition-none ${a===o?"w-5 bg-accent":"w-2 bg-overlay-chrome/45 hover:bg-overlay-chrome/70"}`},a))})}function Wy({count:e,active:o}){return M(Qo,{children:Array.from({length:e},(t,a)=>M("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`cursor-pointer font-mono text-[length:var(--size-label,11px)] leading-none tracking-[0.06em] transition-colors ${a===o?"text-overlay-fg":"text-overlay-chrome/45 hover:text-overlay-chrome/80"}`,children:String(a+1).padStart(2,"0")},a))})}function $y({count:e,active:o}){return M(Qo,{children:Array.from({length:e},(t,a)=>M("button",{type:"button","data-idx":a,"aria-pressed":a===o,"aria-label":`Go to slide ${a+1}`,className:`h-full flex-1 cursor-pointer transition-colors ${a<=o?"bg-overlay-fg":"bg-overlay-chrome/25"}`},a))})}function qy({slides:e,active:o}){return M(Qo,{children:e.map((t,a)=>{let r=a===o;return M("button",{type:"button","data-idx":a,"aria-pressed":r,className:["flex min-w-[140px] flex-1 cursor-pointer items-end px-6 py-7 text-left transition-colors",a>0?"border-l border-overlay-chrome/15":"",r?"bg-overlay-scrim/70":"hover:bg-overlay-scrim/40"].join(" "),children:M("span",{className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium uppercase leading-tight tracking-[-0.02em]",r?"text-overlay-fg":"text-overlay-chrome/55"].join(" "),children:t.name})},a)})})}var zy=40;function Ky(e,o){return Math.abs(e)<=zy||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function Wu(e,o,t,a){let r=Ky(e,o);return r?pa(r,t,a):t}function $u(e){return(e.count??0)>1&&e.editing!==!0}function qu(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function zu(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as al}from"efficient-easel/screen/lib/puck/preview-events";var Xy=`
7
+ .hero-ticker-pick { cursor: pointer; }
8
+ .hero-ticker-pick:hover {
9
+ outline: 2px solid color-mix(in srgb, ${vn.accent} 45%, transparent);
10
+ outline-offset: -2px;
11
+ }
12
+ .hero-ticker-pick[data-selected] {
13
+ outline: 2px solid ${vn.accent};
14
+ outline-offset: -2px;
15
+ }
16
+ `,jy="Play video",Yy="Hold video",Zy="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",Qy=()=>s("item"),Jy=["","","","","",""],Ku=new Map;function eF(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(al,o),()=>t.removeEventListener(al,o)}function HM({slides:e,alignment:o,textureOpacity:t,showTexture:a,textureColor:r,phoneUpDown:n,phoneSideways:l,autoplay:f,autoplayInterval:c,showTicker:u,tickerItems:i,heightDesktop:p,heightMobile:m,showPicker:I,pickerShape:x,pickerPlacement:h,showArrows:C,arrowsShape:E,arrowsPlacement:y,editing:g}){let O=Jd(p,m),j=O?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",we=O?{"--sf-hero-h-d":En(p),"--sf-hero-h-m":En(m)}:void 0,de=(i??Jy.map(b=>({text:b}))).map(b=>b?.text?.trim()?b.text:g?Qy():"").filter(Boolean),he=u!==!1,U=Ie(null),et=Ie(null),ot=Ie(null),k=Ie(null),We=Ie(null),$e=Vy(),qe=Ie($e),[ze,Xu]=Jo([]),[ju,rl]=Jo(0),go=Ie(0),[nl,ll]=Jo(!1),[tt,Yu]=Jo(!1),[fl,Zu]=Jo(null),ga=Du(),{selectedHeroId:Qu,select:sl}=Id(),at=Io(()=>U.current?.querySelector(".hero-track")??null,[]),ge=Io((b,L=!1)=>{rl(b),go.current=b,Ku.set(qe.current,b);let v=U.current?.querySelector(".hero-track");if(v)if(L){let P=v.style.transition;v.style.transition="none",v.style.transform=`translateX(-${Math.max(0,b)*100}%)`,v.offsetHeight,v.style.transition=P}else v.style.transform=`translateX(-${Math.max(0,b)*100}%)`},[]);ho(()=>{let b=U.current,L=b?.getAttribute("data-puck-component")||b?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||$e;qe.current=L,Zu(L);let v=Ku.get(L);typeof v=="number"&&(rl(v),go.current=v)},[]),ho(()=>{let b=at();if(!b)return;let L=()=>{Xu(P=>wu(P,b.querySelectorAll("[data-slide-name]")))};L();let v=new MutationObserver(L);return v.observe(b,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{v.disconnect()}},[at]),ho(()=>{if(!g)return;let b=L=>{let v=L.detail;if(!v||typeof v.index!="number")return;let P=U.current,ue=P?.getAttribute("data-puck-component")||P?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||qe.current;v.id&&v.id!==ue||ge(v.index,!0)};return eF(U.current,b)},[g,ge]);let Y=ze.length,Ke=Math.min(Math.max(ju,0),Math.max(0,Y-1)),ba=ku({shown:I,count:Y}),cl=Eu({shown:C,count:Y}),dl=qu({editing:g,shown:Ke,slides:ze}),Ju=zu({editing:g,playing:tt,controlShown:dl}),rt=$u({count:Y,editing:g}),Ve=Ie(null),bo=Ie(null),ei=Io(b=>{if(Ve.current=null,bo.current=null,!rt||b.touches.length!==1)return;let L=b.touches[0];Ve.current={x:L.clientX,y:L.clientY},bo.current={x:L.clientX,y:L.clientY}},[rt]),oi=Io(b=>{if(!Ve.current)return;if(b.touches.length!==1){Ve.current=null;return}let L=b.touches[0];bo.current={x:L.clientX,y:L.clientY}},[]),ti=Io(()=>{let b=Ve.current,L=bo.current;if(Ve.current=null,bo.current=null,!rt||!b||!L)return;let v=Wu(L.x-b.x,L.y-b.y,go.current,Y);v!==go.current&&ge(v)},[rt,Y,ge]);ho(()=>{if(g||!f||nl||ga||Y<=1)return;let b=Math.max(1,typeof c=="number"?c:6)*1e3,L=window.setTimeout(()=>ge((Ke+1)%Y),b);return()=>window.clearTimeout(L)},[g,f,c,nl,ga,Y,Ke,ge]),ho(()=>{let b=[et.current,ot.current,k.current].filter(Boolean),L=b.map(P=>xa(P)),v=P=>{let ue=P.target,Co=ue.closest("[data-hero-nav]"),ul=Co??ue.closest("[data-idx]");if(!ul)return;P.stopPropagation(),P.preventDefault();let Ca=Co?pa(Co.dataset.heroNav,go.current,Y):Number(ul.dataset.idx);Number.isNaN(Ca)||(ge(Ca,g),at()?.querySelectorAll("[data-slide-name]")[Ca]?.click())};return b.forEach(P=>P.addEventListener("click",v,{capture:!0})),()=>{L.forEach(P=>P?.()),b.forEach(P=>P.removeEventListener("click",v,{capture:!0}))}},[Y,ge,at,g]),ho(()=>{if(!g)return;let b=We.current;if(!b)return;let L=xa(b),v=P=>{P.stopPropagation(),P.preventDefault();let ue=U.current,Co=ue?.getAttribute("data-puck-component")||ue?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||qe.current;sl(Co)};return b.addEventListener("click",v,{capture:!0}),()=>{L?.(),b.removeEventListener("click",v,{capture:!0})}},[g,sl,he,de.length]);let ai=Io(b=>{if(!b)return;let L=xa(b),v=P=>{P.stopPropagation(),P.preventDefault(),Yu(ue=>!ue)};return b.addEventListener("click",v,{capture:!0}),()=>{L?.(),b.removeEventListener("click",v,{capture:!0})}},[]);return ce(Ua.Provider,{value:{alignment:o,textureOpacity:t,textureOn:a,textureColor:r,quietVideo:Ju,phoneUpDown:n,phoneSideways:l},children:Ia("div",{ref:U,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${j} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:we,onMouseEnter:()=>ll(!0),onMouseLeave:()=>ll(!1),onTouchStart:ei,onTouchMove:oi,onTouchEnd:ti,children:[ce(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${Ke*100}%)`,transition:ga?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),dl&&ce("div",{ref:ai,"data-hero-video-control":tt?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${gd} + 16px)`},children:Ia("button",{type:"button",className:Zy,children:[ce("span",{"aria-hidden":"true",children:tt?"\u275A\u275A":"\u25B6"}),s(tt?Yy:jy)]})}),(ba||cl)&&Ia("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:[ba&&ce(Uu,{ref:et,slides:ze,active:Ke,shape:Bu(x),placement:h}),cl&&ce(Gu,{ref:k,shape:E,placement:y})]}),ba&&ce("div",{ref:ot,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:ze.map((b,L)=>ce("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===Ke?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},L))}),he&&de.length>0&&Ia("div",{ref:We,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${g?" hero-ticker-pick":""}`,"data-selected":g&&fl!=null&&Qu===fl?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[g&&ce("style",{children:Xy}),ce(Hu,{items:de,backdrop:"dark-media"})]})]})})}var ha="data-theme",Vu="light";function oF(e){return e.getAttribute(ha)===Vu?"light":"dark"}function tF(e,o){return oF(e)===o?!1:(o==="light"?e.setAttribute(ha,Vu):e.removeAttribute(ha),!0)}function aF(e){return va(e).getItem(ya)}function $M(e,o){va(e).setItem(ya,o)}function rF(e,o,t=new Date().getHours()){return bl({mode:o.mode,override:aF(e),switchShown:o.switchShown,hour:t})}function qM(e,o){let t=e.documentElement;if(!t)return()=>{};let a=()=>tF(t,rF(e,o));a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[ha]}),()=>n.disconnect()}var nF="style";function lF(e,o){let t=Ll(o),a=!1;for(let r of Fl){let n=t[r]??"";e.style.getPropertyValue(r)!==n&&(n?e.style.setProperty(r,n):e.style.removeProperty(r),a=!0)}return a}function zM(e,o){let t=e.body;if(!t)return()=>{};let a=()=>lF(t,o);a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[nF]}),()=>n.disconnect()}export{JF as a,eL as b,oL as c,tL as d,Hi as e,ye as f,fL as g,$a as h,bT as i,me as j,$l as k,D as l,uf as m,fT as n,mf as o,xL as p,zl as q,IL as r,ef as s,af as t,rf as u,qL as v,zL as w,KL as x,VL as y,xp as z,cf as A,rT as B,pt as C,Vi as D,gL as E,Fe as F,bL as G,CL as H,Vl as I,SL as J,yL as K,FL as L,Zi as M,xt as N,De as O,EL as P,vo as Q,BL as R,PL as S,AL as T,Le as U,mT as V,xT as W,Mp as X,RT as Y,_s as Z,Ux as _,aB as $,Rt as aa,Ds as ba,Wx as ca,$x as da,qx as ea,lB as fa,fB as ga,sB as ha,cB as ia,gt as ja,Ka as ka,wT as la,_T as ma,DT as na,MT as oa,NT as pa,HT as qa,q as ra,Kb as sa,ew as ta,ow as ua,Vb as va,jb as wa,tw as xa,aw as ya,l1 as za,f1 as Aa,xa as Ba,WT as Ca,$T as Da,VT as Ea,XT as Fa,cn as Ga,dn as Ha,$o as Ia,Yb as Ja,Ff as Ka,Ya as La,Oo as Ma,le as Na,_ as Oa,Cs as Pa,Pe as Qa,Do as Ra,Fd as Sa,iw as Ta,pw as Ua,mw as Va,oC as Wa,tC as Xa,aC as Ya,rC as Za,bw as _a,Cw as $a,Pw as ab,Aw as bb,Rw as cb,kw as db,mo as eb,ww as fb,vd as gb,nC as hb,_w as ib,Dw as jb,Mw as kb,Cn as lb,yC as mb,FC as nb,LC as ob,TC as pb,na as qb,vC as rb,kd as sb,DC as tb,r_ as ub,n_ as vb,XC as wb,la as xb,l_ as yb,f_ as zb,s_ as Ab,c_ as Bb,rS as Cb,Xo as Db,Ud as Eb,Wd as Fb,i_ as Gb,$d as Hb,g_ as Ib,b_ as Jb,EO as Kb,RO as Lb,kO as Mb,wO as Nb,J as Ob,Bf as Pb,pv as Qb,Ct as Rb,om as Sb,Iv as Tb,Bo as Ub,am as Vb,gv as Wb,Rf as Xb,Ja as Yb,er as Zb,vv as _b,Ov as $b,Bv as ac,Pv as bc,Av as cc,Bc as dc,Vr as ec,Xr as fc,yt as gc,kf as hc,Po as ic,Df as jc,Mv as kc,fm as lc,Nv as mc,Ft as nc,Gf as oc,Uv as pc,Wv as qc,um as rc,$v as sc,mB as tc,Hs as uc,xB as vc,Xx as wc,IB as xc,_t as yc,eP as zc,Hr as Ac,oP as Bc,eh as Cc,tP as Dc,Z0 as Ec,Q0 as Fc,pm as Gc,Lt as Hc,zv as Ic,$f as Jc,Tt as Kc,qf as Lc,fF as Mc,K as Nc,sF as Oc,s as Pc,Ea as Qc,xe as Rc,lE as Sc,Zf as Tc,uF as Uc,Ye as Vc,si as Wc,Oa as Xc,os as Yc,Vm as Zc,WE as _c,ns as $c,Es as ad,ZO as bd,oB as cd,dr as dd,sx as ed,jE as fd,ee as gd,Er as hd,AB as id,Or as jd,kt as kd,MB as ld,YB as md,Ar as nd,Rr as od,e0 as pd,o0 as qd,Vs as rd,t0 as sd,a0 as td,r0 as ud,Ys as vd,Dr as wd,gF as xd,SF as yd,Pl as zd,tc as Ad,rc as Bd,NI as Cd,ss as Dd,G as Ed,kl as Fd,TF as Gd,ui as Hd,vF as Id,EF as Jd,ii as Kd,PF as Ld,pi as Md,AF as Nd,Pa as Od,kF as Pd,wF as Qd,_F as Rd,DF as Sd,ct as Td,MF as Ud,NF as Vd,HF as Wd,bi as Xd,zF as Yd,Nl as Zd,Ti as _d,vi as $d,Ei as ae,Ra as be,KF as ce,xx as de,IO as ee,No as fe,rP as ge,nP as he,lP as ie,fP as je,sP as ke,hs as le,Bt as me,pr as ne,yx as oe,gO as pe,bO as qe,Mt as re,Nt as se,dP as te,ro as ue,Gt as ve,pP as we,mP as xe,xP as ye,vc as ze,hP as Ae,FP as Be,Jh as Ce,tg as De,co as Ee,TA as Fe,vA as Ge,EA as He,OA as Ie,PA as Je,AA as Ke,RA as Le,kA as Me,pg as Ne,wA as Oe,_A as Pe,DA as Qe,MA as Re,NA as Se,z as Te,HA as Ue,Ig as Ve,GA as We,UA as Xe,gg as Ye,WA as Ze,zt as _e,Wo as $e,no as af,$A as bf,Yc as cf,Vt as df,Xt as ef,qA as ff,zA as gf,KA as hf,VA as if,XA as jf,jA as kf,YA as lf,ZA as mf,QA as nf,JA as of,Yt as pf,Zt as qf,Qt as rf,Jt as sf,eR as tf,Ue as uf,oR as vf,tR as wf,aR as xf,rR as yf,nR as zf,lR as Af,Re as Bf,fR as Cf,sR as Df,on as Ef,cR as Ff,tn as Gf,dR as Hf,uR as If,iR as Jf,pR as Kf,Vg as Lf,mR as Mf,td as Nf,ad as Of,rd as Pf,Xg as Qf,xR as Rf,IR as Sf,$ as Tf,po as Uf,nn as Vf,Qg as Wf,sd as Xf,LR as Yf,TR as Zf,vR as _f,ER as $f,OR as ag,BR as bg,PR as cg,AR as dg,RR as eg,kR as fg,wR as gg,_R as hg,YF as ig,ZF as jg,ud as kg,GR as lg,UR as mg,hb as ng,KR as og,VR as pg,ZR as qg,QR as rg,ok as sg,tk as tg,Id as ug,nk as vg,lk as wg,fk as xg,sk as yg,Tb as zg,uk as Ag,wS as Bg,NS as Cg,da as Dg,d1 as Eg,_S as Fg,DS as Gg,su as Hg,MS as Ig,x1 as Jg,C1 as Kg,fC as Lg,cC as Mg,uC as Ng,Hw as Og,qw as Pg,zw as Qg,Kw as Rg,mk as Sg,xk as Tg,jw as Ug,kD as Vg,wD as Wg,Qn as Xg,Jn as Yg,my as Zg,xy as _g,el as $g,gy as ah,jo as bh,ra as ch,Qw as dh,Tn as eh,R_ as fh,k_ as gh,w_ as hh,Hu as ih,yy as jh,Fy as kh,Ly as lh,KD as mh,VD as nh,Py as oh,Ry as ph,Ou as qh,ZD as rh,QD as sh,Uu as th,oM as uh,vn as vh,Qd as wh,En as xh,Jd as yh,hd as zh,gk as Ah,gd as Bh,Eb as Ch,bk as Dh,Ck as Eh,Sk as Fh,yk as Gh,Ob as Hh,Fk as Ih,Lk as Jh,Tk as Kh,Pb as Lh,vk as Mh,kb as Nh,Ek as Oh,Jy as Ph,HM as Qh,Rk as Rh,wk as Sh,H_ as Th,G_ as Uh,tu as Vh,W_ as Wh,Yo as Xh,ES as Yh,z_ as Zh,au as _h,ca as $h,OS as ai,K_ as bi,V_ as ci,X_ as di,j_ as ei,Y_ as fi,Z_ as gi,Q_ as hi,J_ as ii,Mk as ji,Hb as ki,Gk as li,Kk as mi,jk as ni,Yk as oi,Zk as pi,ha as qi,oF as ri,tF as si,$M as ti,qM as ui,zM as vi,BS as wi,nu as xi,PS as yi,RS as zi,t1 as Ai,a1 as Bi};