efficient-storefront-blocks 0.29.0 → 0.31.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +86 -0
- package/dist/chunks/EditorPreviewCheckout-CU3DNUHZ.js +4 -0
- package/dist/chunks/{PreviewFooter-MSX5VU2X.js → PreviewFooter-HQHVLD3M.js} +1 -1
- package/dist/chunks/SiteEditorProvider-32N5NUFO.js +1 -0
- package/dist/chunks/chunk-A2E4QRHZ.js +1 -0
- package/dist/chunks/{chunk-4TBMAZTS.js → chunk-BPXASQLG.js} +1 -1
- package/dist/chunks/{chunk-AS47U6BL.js → chunk-HGIUAB7U.js} +39 -39
- package/dist/chunks/chunk-HKXYT5YG.js +16 -0
- package/dist/chunks/{chunk-TSZ373JT.js → chunk-K6YFJAQ7.js} +1 -1
- package/dist/chunks/{fitment-data-JL37VB22.js → fitment-data-RS3KPFUJ.js} +1 -1
- package/dist/chunks/{render-client-V36O2I3G.js → render-client-EJ2I3IAQ.js} +1 -1
- package/dist/index.js +1 -1
- package/dist/words.d.ts +5 -5
- package/dist/words.js +3 -3
- package/package.json +3 -3
- package/dist/chunks/EditorPreviewCheckout-DYIFFWDV.js +0 -4
- package/dist/chunks/SiteEditorProvider-L25VIEGY.js +0 -1
- package/dist/chunks/chunk-CDVN6WLL.js +0 -1
- package/dist/chunks/chunk-GB535QZ5.js +0 -16
- /package/dist/chunks/{SectionEditorShell-FHSP7IXG.js → SectionEditorShell-KZ3O54XM.js} +0 -0
- /package/dist/chunks/{chunk-AS47U6BL.js.LEGAL.txt → chunk-HGIUAB7U.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-GB535QZ5.js.LEGAL.txt → chunk-HKXYT5YG.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-6ALFNHF5.js → chunk-VPJVU5VD.js} +0 -0
- /package/dist/chunks/{chunk-NGRN4SN6.js → chunk-WHY2JZ46.js} +0 -0
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import{B as gl,C as ge,D as be,E as Xe,F as je,H as bl,Ia as lt,Ja as Fl,K as ya,La as pe,M as Cl,N as Fa,Oa as Ll,P as Sl,Q as yl,Qa as Tl,Z as ie,_ as Lo,a as ul,aa as Ce,ba as nt,c as il,d as ba,h as xl,i as yo,k as Il,r as Ca,w as hl,x as Sa,y as Fo}from"./chunk-VPJVU5VD.js";import{a as dl,c as Z,l as pl,m as So,n as ml,u as La}from"./chunk-WHY2JZ46.js";var ft=null,ai="en",El=null;function aF(e,o,t){ft=e??null,ai=o||"en",El=t??null}function K(){return El}function rF(){return ft}function vl(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 vl(e,o)}return vl(typeof t=="string"&&t?t:e,o)}function Ta(e,o,t,a){return s(t===1?e:o,{...a,n:t})}import{EaselSessionProvider as fF,useEaselSession as Ye}from"efficient-easel/screen/lib/session-context";import{hostLoadRefusalOf as ri,hostUnreachableMessage as ni,isBackendError as li,provideHostFailures as fi,readHostFailure as si,STATUS_UNREACHABLE as ci,WebsiteBackendError as va}from"efficient-easel/screen/lib/backend-error";import{createEaselHost as mF,DETACHED_EASEL_HOST as xF,EaselHostContext as IF,EaselHostProvider as hF,useEaselHost as Ol}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 Bl(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function Pl(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 Al="cart-drawer",SF="cart-drawer";var di={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 yF(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function FF(e){let o=e??{},t=di;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 ui=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],vF={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"},ii={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"},EF={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 pi(e){return typeof e=="string"&&yo.includes(e)?e:null}function Rl(e){let o={};for(let t of ui){let a=pi(e[ii[t]]);a&&(o[t]=a)}return o}var Oa="site-footer";var BF=Oa,PF={desktop:!0,tablet:!0,mobile:!0},AF={desktop:!1,tablet:!1,mobile:!1},Ea=1,kl=6,RF=Array.from({length:kl-Ea+1},(e,o)=>Ea+o),ct={desktop:6,tablet:3,mobile:2},mi={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}},we=e=>Math.min(Math.max(Math.round(e),Ea),kl);function kF(e){if(typeof e=="number")return mi[we(e)]??{desktop:we(e),tablet:we(e),mobile:we(e)};if(e&&typeof e=="object"){let o=e;return{desktop:we(o.desktop??ct.desktop),tablet:we(o.tablet??ct.tablet),mobile:we(o.mobile??ct.mobile)}}return{...ct}}function xi(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type==="Footer")??null:null}function wF(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===Ii)??xi(e):null}var Ii="SiteFooter",hi="SiteHeader";function _F(e){let o=e?.content;return Array.isArray(o)?o.find(t=>!!t&&typeof t=="object"&&t.type===hi)??null:null}var gi="subscribe-popup",UF="subscribe-popup";var bi=[gi,Oa,Al];function Dl(e){return bi.includes(e)}var Ci=["delay","scroll","exit"],Si=["all","chosen"],yi=["visit","days","never"],Fi=["right","left"],Li={min:0,max:60},Ti={min:10,max:90},vi={min:1,max:90},Pa={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,Ei=Bl,wl=Pl,Ml=st;function dt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Ba(e,o,t){let a=Ei(e,t);return Math.min(o.max,Math.max(o.min,Math.round(a)))}function Oi(e){return typeof e.hideAfter=="string"?dt(yi,e.hideAfter,Pa.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Pa.hideAfter}function Bi(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function _l(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 Pi(e,o){return Array.isArray(e)?Ml(e,[]):o}function Ai(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 WF(e){let o=e??{},t=Pa;return{metaLabel:A(o.metaLabel,t.metaLabel),issueLabel:_l(o.issueLabel,t.issueLabel),issueNumber:_l(o.issueNumber,t.issueNumber),kicker:A(o.kicker,t.kicker),heading:A(o.heading,t.heading),deck:A(o.deck,t.deck),stats:Ai(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:Ml(o.interests,t.interests),frequencyLabel:A(o.frequencyLabel,t.frequencyLabel),frequencies:Pi(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:wl(o.autoOpen,t.autoOpen),autoOpenDelaySec:Ba(o.autoOpenDelaySec,Li,t.autoOpenDelaySec),trigger:dt(Ci,o.trigger,t.trigger),scrollPercent:Ba(o.scrollPercent,Ti,t.scrollPercent),showOn:dt(Si,o.showOn,t.showOn),showOnPages:Bi(o.showOnPages),hideAfter:Oi(o),hideDays:Ba(o.hideDays,vi,t.hideDays),formSide:dt(Fi,o.formSide,t.formSide),valuePanelOnPhone:wl(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:Rl(o)}}import{jsx as Ri}from"react/jsx-runtime";import{createContext as ki,useCallback as wi,useContext as _i,useState as Aa}from"react";var Nl=ki({footerBlock:null,setFooterBlock:()=>{},headerGroup:null,setHeaderGroup:()=>{},refreshToken:0,refreshFooter:()=>{}});function KF({children:e,editFooter:o}){let[t,a]=Aa(null),[r,n]=Aa(null),[l,f]=Aa(0),c=wi(()=>f(u=>u+1),[]);return Ri(Nl.Provider,{value:{footerBlock:t,setFooterBlock:a,headerGroup:r,setHeaderGroup:n,editFooter:o,refreshToken:l,refreshFooter:c},children:e})}var VF=()=>_i(Nl);var Hl=["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 Di={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."},YF=["Grid"],ZF=Array.from(new Set([...Ze.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(Di)])),QF=Object.fromEntries(Ze.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),Mi={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",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={...Mi,...Object.fromEntries(Ze.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function Gl(e){return Object.prototype.hasOwnProperty.call(ut,e)?ut[e]:void 0}function Ra(e){return Object.keys(ut).filter(o=>ut[o]===e).sort()}var JF=Ra("general"),eL=Ra("commerce"),oL=Ra("service"),Ni="Flex",Se="Box",tL=`${Se}es`;function Hi(e){return e==="section"?"Blank section":Se}function aL(e,o,t){return e===Ni?Hi(o):t}var _e=dl,Ul=e=>e.blocks;import{jsx as it}from"react/jsx-runtime";import{createContext as Gi,lazy as Ui,Suspense as Wi,useContext as qi}from"react";var $i={Link:il,Image:ul},zi=Gi($i);function Wl(){return qi(zi)}function uL(e){let{Link:o}=Wl();return it(o,{...e})}function ql(e){let{Image:o}=Wl();return it(o,{...e})}function iL(e){let o=Ui(e);return function(t){return it(Wi,{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 Ki(e){let o=Q.indexOf(ye(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function Vi(e){return 1+Ki(e).band*6}function mL(e){return Vi(e)+1}function ye(e){return Q.includes(e)?e:pt}function xL(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function IL(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function ka(e,o){let t=ye(o);return e.filter(a=>ye(a?.props?.placement)===t).length}function $l(e){return`${To[ye(e)]} already holds 4 boxes. Move one somewhere else first.`}function wa(e,o){let t=e.filter(a=>a?.props?.id!==o);return Q.map(a=>{let r=ka(t,a)>=4,n=To[a];return r?{value:a,label:n,disabled:!0,title:$l(a)}:{value:a,label:n}})}function mt(e,o){let t=o===void 0?pt:ye(o?.props?.placement);return ka(e,t)>=4?$l(t):null}var zl="HeroGroup";function hL(e){let o=new Map,t=!1,a=e.filter(r=>{let n=ye(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 Xi(e){return Q.map(o=>{let t=ka(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function _a(e){let o=Xi(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 gL(e,o){let t=o;if(t?.type!==zl)return null;let a=t.props?.id===void 0?"":String(t.props.id);return a?mt(Da(e,a),t):null}function Da(e,o){let t=Kl(e,o);return t&&t.ownerType===Yi?t.siblings:[]}function bL(e,o){let t=Kl(e,o);return t?t.ancestorTypes.filter(a=>a===zl).length:ji}var ji=1,Yi="HeroSlide";function Kl(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 yL,FOOTER_TYPE as xt,HEADER_TYPE as De,locateNode as Vl,missingPinnedTypes as FL,nestsInTree as LL,newNodeId as vo,pinnedDuplicateIds as TL,pinnedDuplicateIndices as vL,ROOT_ZONE as EL,slotFieldsOf as OL,TREE_MAX_DEPTH as BL}from"efficient-easel/screen/lib/puck/content-tree";import{jsx as Eo,jsxs as bp}from"react/jsx-runtime";import{createContext as Cp,useContext as Sp}from"react";import{jsx as Qe,jsxs as Zl}from"react/jsx-runtime";import{useEffect as Ma,useRef as rp,useState as It}from"react";import{jsx as Xl,Fragment as Zi,jsxs as Qi}from"react/jsx-runtime";import{useEffect as Ji,useRef as jl,useState as ep}from"react";var op="#t=0.001",tp=2;function ap(e,o){if(e.readyState<tp||!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 Yl({src:e,objectPosition:o="50% 50%",onError:t}){let a=jl(null),r=jl(null),[n,l]=ep(!1);return Ji(()=>{let f=a.current,c=r.current;if(n||!f||!c)return;let u=()=>{ap(f,c)&&l(!0)};return u(),f.addEventListener("loadeddata",u),f.addEventListener("seeked",u),()=>{f.removeEventListener("loadeddata",u),f.removeEventListener("seeked",u)}},[n]),Qi(Zi,{children:[Xl("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&&Xl("video",{ref:a,src:`${e}${op}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}var np=.5;function Ql({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:a=np,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=rp(null);Ma(()=>{u(!1),p(!1),I(!1)},[e,o]),Ma(()=>{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)},[]),Ma(()=>{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=pl(l);return Zl("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(ql,{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&&Zl("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:[ml(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(Yl,{src:f,objectPosition:r,onError:()=>I(!0)},f)]})}var Jl=["top","middle","bottom"],ef=["left","center","right"],of="bottom",tf="left",lp={top:"Top",middle:"Middle",bottom:"Bottom"},fp={left:"Left",center:"Center",right:"Right"};var GL="Up and down",UL="Sideways",sp={top:"flex-start",middle:"center",bottom:"flex-end"},cp={left:"flex-start",center:"center",right:"flex-end"},dp="--sf-hero-phone-y",up="--sf-hero-phone-x";function ip(e){return Jl.includes(e)?e:of}function pp(e){return ef.includes(e)?e:tf}function af(e,o){let t=ip(e),a=pp(o),r={};return t!==of&&(r[dp]=sp[t]),a!==tf&&(r[up]=cp[a]),r}function WL(){return Jl.map(e=>({label:lp[e],value:e}))}function qL(){return ef.map(e=>({label:fp[e],value:e}))}var mp="#0A0A0A",xp=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function rf(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 nf(e){return e==null?!0:e!==!1}function lf(e){let o=(e?rf(e):null)??rf(mp);return`linear-gradient(180deg, ${xp.map(([t,a])=>`rgba(${o},${a}) ${t}%`).join(", ")})`}var Na=[{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}],Ip=Na.filter(e=>e.ink);function hp(e){let o={color:e.fg};for(let{role:t,token:a}of Ip)o[a]=e[t];return o}var gp={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},ff=Object.freeze(hp(gp));var Ha=Cp({});function eT({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}=Sp(Ha),O=t==="video",j=O?So(a):void 0,ke=O?So(n):So(a)??So(n),de=typeof r=="number"?r/100:1;return bp("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(Ql,{videoSrc:j,posterSrc:ke,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}}),nf(h)&&Eo("div",{className:"absolute inset-0 z-[2]",style:{background:lf(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:{...ff,...af(y,g)},children:u&&Eo(u,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var sf=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));var Je="content",D="Flex",yp="Text & media",Fp="Layout & structure",Lp=[{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:yp})),Tp=(Ze.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Fp})),cf=[...Lp,...Tp],Ga=[{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:Se}],aT=Ga.map(e=>e.type),vp=1,Ep=Ga.filter(e=>e.type!=="HeroGroup");function Op(e){return e<vp?Ga:Ep}var Bp={Flex:{slot:Je,choices:()=>cf},Grid:{slot:Je,choices:()=>cf},HeroGroup:{slot:Je,choices:Op}};function df(e,o=0){let t=Bp[e];return t?{slot:t.slot,choices:t.choices(o)}:null}var Pp="ImageBlock",Ap=3,ht=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:vo(e),...t}}),Rp=e=>({...e?.(D)??{},direction:"column",[Je]:[ht(Pp,e),ht(D,e,{direction:"column",[Je]:[ht("Heading",e),ht("Text",e)]})]}),Fe={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>sf.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${Se.toLowerCase()}`,seeds:()=>[],addBlocked:mt,notice:_a},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${Se.toLowerCase()}`,seeds:()=>[],addBlocked:mt,notice:_a},ProcessSteps:{slot:"boxes",childType:D,addLabel:`Add ${Se.toLowerCase()}`,seeds:e=>Array.from({length:Ap},()=>Rp(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function dT(e){for(let[o,t]of Object.entries(e)){if(o in Fe&&Fe[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);Fe[o]=t}}function uT(e,o){let t=Fe[e];return t?{slot:t.slot,children:t.seeds(o).map(a=>({type:t.childType,props:{id:vo(t.childType),...a}}))}:null}var kp={general:!0,commerce:!0,service:!0};function Ua(e){let o=e?.sets;return o?Object.fromEntries(Hl.map(t=>[t,o.includes(t)])):kp}function xT(e=Z()){return Ua(e.blocks)}function N(e,o,t,a={}){return{type:e,props:{...o(e),id:t(e),...a}}}var wp={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 uf(e){return wp[e]??null}import{blockTypesIn as Wa}from"efficient-easel/screen/lib/puck/block-types-in";var pf=()=>({}),mf=new Map;function _p(e){let o=mf.get(e);if(o)return o;let t=new Set,a=Fe[e];if(a)for(let l of a.seeds(pf))for(let f of Wa({type:a.childType,props:l}))t.add(f);let r=uf(e);if(r){let l=0;for(let f of Wa(r(pf,c=>`${c}-${l+=1}`)))t.add(f)}t.delete(e);let n=[...t].sort();return mf.set(e,n),n}function Dp(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Ua(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=Gl(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)&&_p(c).every(f);return l.set(c,i),i};return{sets:o,offers:f}}var Mp="block-offer";function qa(e=Z()){return e.cache(Mp,()=>Dp(Ul(e)))}function OT(e,o=Z()){let t=qa(o);return t?t.offers(e):!0}var gt="SiteHeader",$a="SiteFooter",xf="sections",PT=[gt,$a],AT=e=>e===gt||e===$a,RT=e=>`${e}:${xf}`;function kT(e,o,t=[]){return{type:e,props:{id:o,[xf]:t}}}var Np=new Set(["Footer",gt,$a]);function wT(e){let o=new Set,t=!1,a=e.filter(r=>{let n=r?.type??"";return n==="Header"?(t=!0,!1):Np.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?a:e}function _T(e,o){return e.some(t=>t?.type===o.type)?e:o.type===gt?[o,...e]:[...e,o]}import{PreviewPartsProvider as NT,usePreviewParts as HT}from"efficient-easel/screen/components/PreviewPartsContext";import{jsx as Hp}from"react/jsx-runtime";import{createContext as Gp,useContext as Up,useMemo as Wp,useState as qp}from"react";var $p={partStyle:null,setPartStyle:()=>{}},If=Gp($p);function qT({children:e}){let[o,t]=qp(null),a=Wp(()=>({partStyle:o,setPartStyle:t}),[o]);return Hp(If.Provider,{value:a,children:e})}function $T(){return Up(If)}import{applyMark as YT,markupTools as ZT,MARKUP_TOOLS as QT,COPY_FIELD_TOOLS as JT,STOREFRONT_MARKUP as ev,tokenizeInline as ov,stripInline as tv,isSafeLinkHref as av}from"efficient-easel/markup";import{applyMark as zp,markedAt as Kp,markupTools as Vp,MARKUP_TOOLS as Xp,parseMarkup as jp,RETIRED_MARKS as Yp,STOREFRONT_MARKUP as Zp,tokenizeInline as nv}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:"^^"}},hf=Object.fromEntries(bt.map(e=>[ae[e].kind,e])),gf="data-sf-ws",Ka=["accent","text","labels"],bf={accent:"Accent",text:"Text",labels:"Labels"},Le={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"};var za={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},VT={highlight:{...za},strong:{...za},quiet:{...za}};var Cf=bt.map(e=>({open:ae[e].delimiter,close:ae[e].delimiter,kind:ae[e].kind})),fv=[{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`}],Qp=new Set(Cf.map(e=>e.open)),Sf=[...Zp.filter(e=>!Qp.has(e.open)),...Cf];function Va(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Xa(e){return jp(typeof e=="string"?e:"",Sf)}var Jp=Xp.map(e=>e.style).filter(e=>!Yp.includes(e)).filter(e=>Sf.some(o=>o.kind===e));function yf(){return Vp(Jp)}var Ff=Object.fromEntries(bt.map(e=>[ae[e].kind,ae[e].delimiter]));function Lf(e,o,t,a){let r=Ff[a];if(!r)return zp(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 Tf(e,o,t,a){let r=Ff[a];return r?o>=r.length&&e.slice(o-r.length,o)===r&&e.slice(t,t+r.length)===r:Kp(e,o,t,a)}function Oo(e){return Xa(e).map(o=>Va(o)+vf(o.children)).join(`
|
|
3
|
+
`)}function vf(e){return e.map(o=>o.kind==="text"?o.text:vf(o.children)).join("")}var J={min:1e3,max:2e3,step:50,default:1600};function Ef(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function cv(e,o){if(e!==!1)return null;let t=typeof o=="number"?o:J.default;return Ef(t)}var Of="--sf-site-width",Ct=`var(${Of},${J.default}px)`,dv=`max-w-[${Ct}]`,uv=`max-w-[${J.default}px]`;function em(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=em(e);return o===J.default?{}:{[Of]:`${o}px`}}var Bo={min:0,max:80,step:4,default:40},Bf="--sf-site-gutter",W=`var(${Bf},${Bo.default}px)`,om=`px-[${W}]`;var Te={md:`min(24px,${W})`,sm:`min(20px,${W})`,frame:`min(24px,${W})`,tabs:`min(16px,${W})`},pv=[[`max-[1100px]:px-[${Te.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${Te.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${Te.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Te.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${Te.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${Te.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${Te.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${Te.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"],[om,"px-10"]];function tm(e){return typeof e!="number"||!Number.isFinite(e)?Bo.default:Math.round(Math.min(Math.max(e,Bo.min),Bo.max))}function mv(e){let o=tm(e);return o===Bo.default?{}:{[Bf]:`${o}px`}}var St=`min(var(--sf-page-cap,${Ct}),${Ct})`,xv=`max-w-[${St}]`,Iv=`max-w-[min(var(--sf-page-cap,${J.default}px),${J.default}px)]`,Pf="--sf-hero-cap",am=`var(${Pf},none)`,hv=`max-w-[${am}]`,ja="--sf-hero-bleed-m",Ya="--sf-hero-bleed-w",gv=`var(${ja},calc(50% - 50vw))`,bv=`var(${Ya},100vw)`,Cv=`mx-[var(${ja},calc(50%_-_50vw))]`,Sv=`w-[var(${Ya},100vw)]`,Za="--sf-hero-chrome-x",Qa="--sf-hero-chrome-cap";function yv(e){return e===!0?{[Pf]:St,[ja]:"auto",[Ya]:"100%",[Za]:"24px",[Qa]:"none"}:{}}var Ja=`calc(${Ct} - ${W}*2)`,Fv=`max-w-[${Ja.replace(/ /g,"_")}]`;var rm="--sf-chrome-cap",nm=`var(${rm},${Ja})`,Lv="data-page-width";function Tv(e){return e==="full"?"full":null}function vv(e){return e==="full"?null:Ef(e==="content"?Ja:nm)}function Ev(e){if(e==="full")return"full";if(e==="content")return"content"}var Af="homepage";function Rf(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var kf=[{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 wf(e){return e.offersCommerce&&e.offersService?kf:kf.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function Po(e){return e===Af?"/":`/${e}`}function _f(e){return`/journal/${e}`}function kv(e){return`/wheels/${e}`}function Df(e,o){return`${Po(e)}#${o}`}function lm(e){return Rf(e)}function fm(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function Mf(...e){let o=new Set,t=[];for(let a of e)for(let r of a?.content??[]){let n=fm(r?.props?.anchor);if(!n)continue;let l=lm(n);!l||o.has(l)||(o.add(l),t.push({slug:l,name:n}))}return t}function wv(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 yt=-1,sm="sf-section-accent",Nf="Color",Hf=new Set(["CategoryBar","DocTabs"]),Mv=new Set(["Flex"]),cm=0;function er(e){return e===yt?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:cm}function Nv(e){return e??yt}function dm(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 Na)t[`--sf-sec-${a}`]=`var(${o}-${a}, var(--theme-${a}))`;return t}function Hv(e){let o=er(e.sectionAccent);return o===null?null:{className:sm,style:dm(o)}}var um=["column","row","tabs"],Gf="Direction",im={column:"Stacked",row:"One row",tabs:"Tabs"},Uf={Flex:um,HeroGroup:["column","row"]},pm={Flex:"row",HeroGroup:"column"},mm={column:"flex-col",row:"flex-row",tabs:"flex-col"};function Ft(e,o){return Uf[e].includes(o)?o:pm[e]}function Uv(e,o){return mm[Ft(e,o)]}function Wf(e){return Uf[e].map(o=>({label:im[o],value:o}))}import{ScreenDocumentContext as Lt,ScreenDocumentProvider as $v,useScreenDocument as qf}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as w,jsxs as Ne,Fragment as Gm}from"react/jsx-runtime";import{useCallback as Um,useContext as Wm,useEffect as qm,useId as as,useRef as os,useState as ts}from"react";import{ThemeIcon as $m}from"efficient-easel/icons";import{SettingsField as zm}from"efficient-easel/panel";import{jsx as F,jsxs as Ee,Fragment as Em}from"react/jsx-runtime";import{SettingsField as rr,SettingsGroupSub as Om}from"efficient-easel/panel";import{Button as ar}from"efficient-shell/ui";import{jsx as ve,jsxs as Kf}from"react/jsx-runtime";import{SettingsField as Cm}from"efficient-easel/panel";import{AccentIcon as Sm}from"efficient-easel/icons";import{Tooltip as ym}from"efficient-shell/ui";import{jsx as eo,jsxs as Im}from"react/jsx-runtime";import{ColorPicker as zf,HexInput as hm}from"efficient-shell/ui";import{typedHex as or}from"efficient-easel/pick";import{typedHex as xm}from"efficient-easel/pick";function $f(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?xm(f):null;!c||o.has(c)||(o.add(c),t.push({name:l,value:c}))}}),t}function me({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l,ariaLabel:f}){return eo(bm,{value:e,onChange:o,label:s(f??t),id:a,caption:r,inherited:n,after:l})}function gm(){let{theme:e}=pe();return $f(e).map(o=>({value:o.value,label:o.name}))}function bm({value:e,onChange:o,label:t,id:a,caption:r,inherited:n,after:l}){let f=gm(),c=e?null:or(n??""),u=r!==void 0&&(!e||or(r)!==or(e))?r:null,i=p=>{p!==e&&o(p)};return Im("div",{className:"sf-colour",children:[eo(zf,{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(hm,{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 tE({value:e,onChange:o,label:t}){return eo(zf,{value:e,onChange:a=>{a&&a!==e&&o(a)},label:s(t),size:"sm",align:"end"})}function tr(e){return ge(e).background}function Fm(e){let o=be(e.accent,tr(e));return o===null?null:{ratio:o,grade:je(o)}}function Lm(e){let o=tr(e),t=be(e.accent,o);return t===null?[]:bl(e.accent).filter(a=>{let r=be(a,o);return r!==null&&r>t&&je(r)==="good"})}var Tm={good:"Easy to read","large-only":Xe["large-only"],hard:Xe.hard};function Vf({value:e,onChange:o}){let t=Fm(e),a=t?.grade,r=t&&t.grade!=="good"?Lm(e):[];return ve(Cm,{label:s("Main color"),icon:ve(Sm,{}),hint:t?s(Tm[t.grade]):void 0,action:ve(me,{value:e.accent,onChange:n=>o({...e,accent:n}),label:s("Main color")}),children:r.length>0?ve("div",{className:"w-full min-w-0",children:Kf("div",{className:"sf-readability",children:[ve("p",{className:"sf-readability-advice",children:vm(a,!0)}),ve("div",{className:"sf-readability-suggestions",children:r.map(n=>{let l=be(n,tr(e));return ve(ym,{content:s("Use {colour}",{colour:n.toUpperCase()}),children:Kf("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[ve("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),l?`${l.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function vm(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 Bm,GroundIcon as Pm,LayoutIcon as Am,SquareIcon as Rm,TextSmallIcon as km,TypeIcon as Xf}from"efficient-easel/icons";var Ao=e=>s("Theme {n}",{n:e+1});function jf({colors:e}){let o=ge(e),t=ya(e)??o.accent;return Ee("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")}),Ee("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")}),Ee("span",{className:"sf-theme-row",children:[F("span",{className:"sf-theme-btn",style:{background:t,color:Fa(e,o.accent)},children:s("button")}),F("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:s("card")})]})]})}var nr={"Text color":F(Xf,{}),"Label color":F(km,{}),Background:F(Pm,{}),"Panels & cards":F(Am,{}),Borders:F(Rm,{}),"Button color":F(Bm,{}),"Button text color":F(Xf,{})};function wm({label:e,colorKey:o,value:t,onChange:a,idPrefix:r="sf-theme-ink"}){let n=`${r}-${o}`;return F(rr,{label:s(e),icon:nr[e],htmlFor:n,action:F(me,{id:n,label:s(e),value:t,onChange:l=>a(o,l)})})}function _m({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(rr,{label:s("Button color"),icon:nr["Button color"],htmlFor:r,action:F(me,{id:r,label:s("Button color"),value:l,caption:n?l:s("Main"),onChange:t})})}function Dm({colors:e,accent:o,onChange:t,idPrefix:a="sf-theme-ink"}){let r=`${a}-button-ink`,n=Cl(e),l=Fa(e,o),f=ya(e)??o,c=je(be(l,f)??0);return F(rr,{label:s("Button text color"),icon:nr["Button text color"],hint:n&&c!=="good"?s("{grade} on the button",{grade:s(Xe[c])}):void 0,htmlFor:r,action:F(me,{id:r,label:s("Button text color"),value:l,caption:n?l:s("Auto"),onChange:t})})}var Mm=[{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 lr({colors:e,onChange:o,idPrefix:t}){let a=ge(e);return F(Em,{children:Mm.map(r=>"colour"in r?F(Vf,{value:e,onChange:o},"colour"):"group"in r?F(Om,{title:s(r.group)},r.group):"button"in r?F(_m,{value:e.button,accent:a.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in r?F(Dm,{colors:e,accent:a.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):F(wm,{label:r.label,colorKey:r.key,value:a[r.key],onChange:(n,l)=>o({...e,[n]:l}),idPrefix:t},r.key))})}function Yf({index:e,colors:o,selected:t,role:a="radio",open:r,editable:n=!0,onPick:l,onEdit:f,onChangeColors:c}){let u=ge(o),i=Ao(e),p=e<Sa.length&&!o.brandInk?Sa[e]:null,m=je(be(u.text,u.background)??0),I=p?JSON.stringify(o)!==JSON.stringify(p):!1,x=r!==void 0;return Ee("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(jf,{colors:o})}),Ee("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(ar,{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&&Ee("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[F(lr,{colors:o,onChange:h=>c?.(h)}),p&&F(ar,{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 Zf({colors:e,name:o,nameId:t,open:a,menuId:r,labelId:n,buttonRef:l,onClick:f,onKeyDown:c,onEdit:u}){return Ee("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(jf,{colors:e}):F("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Ee("div",{className:"sf-theme-foot",children:[F("span",{id:t,className:"sf-theme-name",children:o}),u&&F(ar,{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 fr,useEffect as Nm,useRef as Tt}from"react";function Qf(e=Z()){return(o,t,a)=>{let r=_e(e).theme;return r?r.update(o,a?{siteId:a}:void 0):Promise.reject(new va("invalid","This backend stores no site theme."))}}function Jf(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function Hm(e,o=Qf()){let{themeFromDocument:t,token:a,siteId:r,patch:n}=e,l=Jf({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 es({themeFromDocument:e,tokenRef:o,siteId:t,onResult:a}){let r=Tt(null),n=Tt({}),l=Ye(),f=Tt(a);f.current=a;let c=Tt(null),u=fr(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=fr(async()=>{r.current&&(clearTimeout(r.current),r.current=null);let m=n.current;n.current={};let I=await Hm({themeFromDocument:e,token:o?.current,siteId:t,patch:m},Qf(l));return u(I),I},[e,o,t,u,l]),p=fr((m,I=!1)=>{let x=Jf({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 Nm(()=>()=>{i()},[i]),{persist:p,flush:i}}var Km="Follow the page",NE="Follow the slideshow",Vm=e=>s("Editing {name} changes it everywhere.",{name:e});function Xm({colors:e}){if(!e)return w("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=ge(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 jm({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(Gm,{children:[Ne("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(yt),children:[w(Xm,{}),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(Yf,{role:"option",index:f,colors:l,selected:!1,onPick:()=>t(f),onEdit:()=>a(f)},f))]})}function Ym({index:e,colors:o,onChange:t,onDone:a}){let r=Ao(e),n=as();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(lr,{colors:o,onChange:t,idPrefix:n})}),w("p",{className:"sf-secttheme-warn",children:Vm(r)})]})}function rs({value:e,onChange:o,followLabel:t,hint:a}){let{theme:r,setTheme:n}=pe(),l=Fo(r),f=Wm(Lt),c=f?.tokenRef,u=f?.siteId??null,i=!f?.capabilities?.hasSiteTheme,{persist:p,flush:m}=es({themeFromDocument:i,tokenRef:c,siteId:u}),I=Fo(l),x=I.themes,h=er(e),C=h!==null?x[h]:void 0,E=C??(x.length?gl(I):void 0),[y,g]=ts(!1),[O,j]=ts(null),ke=os(null),de=os(null),Ie=as(),U=Um(()=>{g(!1),j(null)},[]);qm(()=>{if(!y&&O===null)return;let k=We=>{ke.current&&!ke.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(($e,ze)=>ze===O?k:$e),qe={...I,themes:We};n(qe),p({selected_preset:qe.selected,theme_presets:qe.themes})};return Ne("div",{className:"sf-secttheme",ref:ke,children:[w(zm,{label:s("Theme"),icon:w($m,{}),labelId:`${Ie}-label`,hint:a,children:w(Zf,{colors:E,onEdit:h!==null?()=>{j(h),g(!1)}:void 0,name:C?Ao(h):s(t??Km),nameId:`${Ie}-value`,labelId:`${Ie}-label`,open:y,menuId:Ie,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(jm,{themes:x,value:h,onPick:et,onEdit:k=>{j(k),g(!1)},menuId:Ie,followLabel:t})}),O!==null&&x[O]&&w(Ym,{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 Zm,ButtonIcon as Qm,DollarIcon as Jm,HashIcon as ex,LinkIcon as ox,NoteIcon as tx,TagIcon as ax,TextLinesIcon as rx}from"efficient-easel/icons";var ns={body:rx,button:Qm,link:ox,label:ax,number:ex,price:Jm,note:tx,title:Zm},ls={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 sr({noun:e,size:o=14,strokeWidth:t=1.8,className:a,style:r}){let n=ns[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:ls[e]})}var WE=Object.keys(ns);var qE=Object.keys(ls);var nx="#ffffff",lx=/^#[0-9a-fA-F]{6}$/;function cr(e){return fx(e)?e:nx}function fx(e){return typeof e=="string"&&lx.test(e)}function zE(e){return{"--bg":cr(e)}}import{jsx as He,jsxs as cx}from"react/jsx-runtime";import{SettingsField as ds}from"efficient-easel/panel";import{LinkIcon as dx}from"efficient-easel/icons";import{LinkPicker as ux,TextLinkField as ix}from"efficient-shell/ui";import{useEffect as cs,useMemo as Et,useRef as px,useState as vt}from"react";function fs(){return Z().auth.token}var sx=()=>({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 ss(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 dr(e,o){let t=sx(),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:Mf(...i.docs).map(p=>({value:Df(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:_f(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=wf(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=>ss(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=>ss(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 us(e){let o=new Map;return(t="")=>{let a=fs(),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 mx=us(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:a}=_e();return a.linkTargets?a.linkTargets(t):(await a.list(t)).map(r=>({id:r.id,slug:r.slug,label:r.label,layout:null}))}),xx=us(async(e,o)=>await _e().blog?.posts(o?{siteId:o}:void 0)??[]);function Ix({value:e,onChange:o,label:t="Link",data:a,filters:r}){let n=Et(()=>dr(a,r),[a,r]),l=s(t);return He(ds,{label:l,icon:He(dx,{}),children:He(ux,{value:e,onChange:f=>o(f),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:l})})}function is(){let{siteId:e,capabilities:o}=qf(),{offersCommerce:t,hasBlog:a}=o,[r,n]=vt([]),[l,f]=vt([]),[c,u]=vt([]),[i,p]=vt(null),m=Ye().chrome,I=m?.products?.list,x=m?.linkFilters,h=x?void 0:m?.linkRow,C=px(!0);cs(()=>(C.current=!0,()=>{C.current=!1}),[]),cs(()=>{let g=!0;return mx(e??void 0).then(O=>g&&C.current&&n(O)),a&&xx(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=Et(()=>({pages:r.filter(g=>!Dl(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=Et(()=>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}=is(),c=Et(()=>dr(l,f),[l,f]),u=s(e);return He(ds,{label:u,icon:o,children:He(ix,{label:u,text:t,onTextChange:a,link:r,onLinkChange:i=>n(i),kinds:c.kinds,rules:c.rules,filtersFor:c.filtersFor})})}function ps({value:e,onChange:o,label:t="Link"}){let a=typeof e=="string"?e:"",{data:r,filters:n,pages:l,offersCommerce:f,HostLinkRow:c}=is(),u=r.pages.map(p=>Po(p.slug)),i=f&&c&&(a==="/"||u.includes(a))?c:void 0;return cx("div",{children:[He(Ix,{value:a,onChange:o,label:t,data:r,filters:n}),i&&He(i,{value:a,onChange:o,pages:l})]})}var Is="sf.gapContainer",Oe={min:-32,max:64,step:2},hs={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},Ot={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},hx=new Set(["Events","GalleryB"]);function ir(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Oe.min)return o;if(typeof o=="string"){let a=hs[e]?.[o];if(typeof a=="number")return a}return typeof t=="number"&&Number.isFinite(t)?t:Ot[e]}var gx="sf-gap-overlap",bx="--sf-gap-overlap",gs="--sf-block-gap",Cx="--sf-block-gap-rem",ur={min:0,max:Oe.max,step:Oe.step};function Sx(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),ur.min),ur.max);return o-o%ur.step}function mO(e){let o=Sx(e);return o===null?{}:{[gs]:`${o}px`,[Cx]:`${o/16}rem`}}var ms="sf-gap-zone",xs="--sf-gap-len";function pr(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Oe.min?!0:typeof o=="string"&&typeof hs[e]?.[o]=="number"}var yx={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function xO(e,o,t){if(!pr(e,o)){let r=`${Ot[e]}px`,n=hx.has(e)?`var(--sf-card-gap, ${r})`:r;return{className:` ${ms}`,style:{[xs]:`var(${gs}, ${n})`}}}let a=ir(e,o);return a>=0?{className:` ${ms}`,style:{[xs]:`${a}px`}}:{className:` ${gx} ${yx[t]}`,style:{gap:"0px",[bx]:`${-a/2}px`}}}import{jsx as d,jsxs as fo,Fragment as Re}from"react/jsx-runtime";import{cloneElement as Rc,useId as mh,useRef as jr,useState as kc}from"react";import{useEasel as so,useSelectedFields as xh}from"efficient-easel/easel";import{hidableText as bs,readHidable as Be}from"efficient-easel/screen/lib/puck/hidable";import{ANCHOR_FIELD_KEYS as CO,FOLD_FIELD_MARKER as Bt,foldMetaOf as le,LINK_FIELD_MARKER as Ro,MEDIA_FIELD_MARKER as Cs,SCAFFOLD_FIELD_MARKER as ko,TEXT_FIELD_MARKER as _,textFieldIdentifier as Fx}from"efficient-easel/screen/lib/puck/field-markers";import{jsx as Es}from"react/jsx-runtime";import{useCallback as Ex,useEffect as Ox,useRef as Bx,useState as Px}from"react";import{useEasel as Ax}from"efficient-easel/easel";import{SettingsAction as Rx}from"efficient-easel/panel";function mr(e){return typeof e=="number"&&Number.isFinite(e)}function FO(e,o){if(!mr(e))return;let t=nt(Ce(e));if(Object.keys(t).length===0)return;let a=t[Pt];if(typeof a!="string")return t;let r=oo(o)?to(a,fe(o)??[]):a;return{...t,[Lx]:r}}var Lx="--sf-section-radius",Pt="--sf-card-radius",Pe=["tl","tr","br","bl"];function fe(e){if(!Array.isArray(e))return null;let o=e.filter(t=>Pe.includes(t));return Pe.filter(t=>o.includes(t))}function oo(e){let o=fe(e);return o!==null&&o.length<Pe.length}function to(e,o){return Pe.map(t=>o.includes(t)?e:"0").join(" ")}var xr=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Tx="--sf-card-box-radius",vx="--sf-site-card-radius",OO="sf-section-bleeds";function Ir(e){return typeof e=="number"&&Number.isFinite(e)}function BO(e,o){if(!Ir(e))return;let t=nt(Ce(e))[Pt];if(typeof t!="string")return;let a=oo(o)?to(t,fe(o)??[]):t;return{[Tx]:a}}function PO(e){let o=e[Pt];return typeof o=="string"?{[vx]:o}:{}}function Ss(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 ys(e,o,t){let a=t?.zone??"",r=a.lastIndexOf(":"),n=r>0?a.slice(0,r):"",l=r>0?a.slice(r+1):"",f=n?Vl(e,o,n):null,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}:Ir(i?.props?.cardCorners)?{can:!0,others:m,zone:f.zone,index:f.index,data:{...f.item,props:{...f.item.props,[l]:Ss(c,p)}}}:{can:!1,reason:"unset",others:m}}function Fs(e){return e.can?Ta("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 Ls(e){return Ta("Applied to {n} card","Applied to {n} cards",e)}function Ts(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as vs}from"efficient-easel/screen/lib/puck/use-section-ops";var kx=2200,wx="apply-corners-to-siblings",_x="Apply to all cards";function Dx({plan:e,doneCount:o,onPress:t}){return Es(Rx,{id:wx,label:s(_x),note:Fs(e),disabled:!e.can,done:o!==null,doneLabel:Ls(o??0),onPress:t})}function Os(){let{appState:e,config:o}=Ax(c=>c),t=vs(),[a,r]=Px(null),n=Bx(null);Ox(()=>()=>{n.current&&clearTimeout(n.current)},[]);let l=ys(o,e.data.content??[],e.ui.itemSelector),f=Ex(()=>{Ts(l,t.replaceComponent),l.can&&(r(l.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>r(null),kx))},[l,t]);return Es(Dx,{plan:l,doneCount:a,onPress:f})}var Bs=1;function Mx(e){return Ce(e)}function VO(e){let o=Mx(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var Ps=1,As="Corners";function Nx(e){return Ce(e)}function ZO(e,o){let t=Nx(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]]}},hr=Object.keys(se),ks=[2,3,4,6];function ws(e){return typeof e!="string"||e===""?null:se[e]??null}function Rs(e,o){return o?6/e.acrossPhone:12/e.across}var Hx="sf-wall--";function Gx(e){return`${Hx}${e}`}function JO(e){let o=se[e],t=`.${Gx(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,Rs(o,!1))),a.push("@media (max-width:800px){"),a.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),a.push(...r(o.phone,Rs(o,!0))),a.push("}"),a.join("")}var At=12,_s=1,Ux=3;var Wx=3;function gr(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 gr(e,1,At)??Wx}function tB(e,o){return gr(e,_s,Ux)??(qx(o)===4?2:_s)}function aB(e){return e==null||e===""?null:gr(e,1,At)}var rB="data-sf-span";function nB(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(ws(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as $x}from"react/jsx-runtime";var zx="sf-hint-keep";function Ds({children:e}){return $x("span",{className:zx,children:e})}import{AdjustIcon as Ih,AlignLeftIcon as hh,AlignSeparateIcon as gh,AnimationIcon as wc,BackgroundIcon as bh,BlockSectionIcon as Ch,CartIcon as Sh,ColumnWidthsIcon as _c,ColumnsIcon as yh,CornerIcon as Fh,DirectionDownIcon as Lh,DirectionLeftIcon as Th,DirectionRightIcon as vh,DirectionUpIcon as Eh,DollarIcon as Oh,FinishIcon as Bh,GapIcon as Dc,GridIcon as Ph,GroundIcon as Ah,HashIcon as Mc,HeightIcon as Rh,ImageIcon as kh,ListIcon as wh,LocationIcon as Xr,PaddingBottomIcon as Nc,PaddingLeftIcon as Hc,PaddingRightIcon as Gc,PaddingTopIcon as Uc,PageIcon as Wc,PhoneIcon as _h,PlacementIcon as Dh,ProductSizeIcon as Mh,RotateIcon as Nh,SquareIcon as Hh,TypeIcon as Gh,WidthIcon as Uh,WrapIcon as Wh}from"efficient-easel/icons";var Kx=["fade","rise","scale"],br="none",Ms=[{label:"None",value:br},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function dB(e){return Kx.includes(e)?e:null}var Ns="data-sf-anim",wo="data-sf-anim-state";function uB(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(Ns))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(),Vx(e);break}},{threshold:0});return a.observe(e),()=>{a.disconnect(),e.removeAttribute(wo)}}function Vx(e){if(!e.getAttribute(Ns))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=Hf;function Sr(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(Cr(a,o,0))return r??{}}return null}function Cr(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(r=>Cr(r,o,t+1));let a=e.props;return a&&typeof a=="object"&&a.id===o?!0:Object.values(e).some(r=>Cr(r,o,t+1))}import{SettingsDefaultReset as te,SettingsField as R,SettingsGroupHead as qh,SettingsGroupSub as $h,SettingsSegmented as zh,SettingsSwitch as Kh}from"efficient-easel/panel";import{FieldSelect as Vh,ListField as Xh}from"efficient-easel/fields";import{AlignmentGrid as jh,Checkbox as qP,CornersInput as Yh,DateTimePicker as Zh,FOCAL_DEFAULT as Qh,Slider as Jh,Tooltip as Wt}from"efficient-shell/ui";import{jsx as H,Fragment as yr,jsxs as Fr}from"react/jsx-runtime";import{useEffect as Xx,useState as jx}from"react";import{MarkBar as Yx,markSelection as Zx,useCaretEdit as Qx}from"efficient-easel/copy";import{RevertIcon as Jx}from"efficient-easel/icons";import{IconButton as eI,Tooltip as oI}from"efficient-shell/ui";function tI({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(Fr(yr,{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(Fr(yr,{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(Fr(yr,{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 aI=["bold","italic","strike","highlight"],rI=Object.fromEntries(aI.map(e=>[e,H(tI,{style:e},e)])),Hs="Clear formatting";function nI(e,o,t){return Zx(e,o,t,Lf)}function lI(e){let[o,t]=jx(null);return Xx(()=>{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 fI({target:e,value:o,onChange:t,disabled:a=!1,label:r="Formatting"}){let n=Qx({target:e,onChange:t}),[l,f]=lI(e),c=m=>n(I=>{let x=nI(o,m,I);return f({start:x.selectionStart,end:x.selectionEnd}),x}),u=yf(),i={};if(l)for(let m of u)i[m.style]=Tf(o,l.start,l.end,m.style);let p=Oo(o);return H(Yx,{tools:u,onApply:c,pressed:i,disabled:a,glyphs:rI,ariaLabel:s(r),actions:H("span",{className:"sf-markup-clear",children:H(oI,{content:s(Hs),children:H(eI,{size:"sm",onMouseDown:m=>m.preventDefault(),onClick:()=>t(p),disabled:a||p===o,"aria-label":s(Hs),children:H(Jx,{size:14})})})})})}var Lr=fI;import{DEVICE_FIELD_MARKER as LB,DEVICE_HIDDEN_ATTR as TB,DEVICE_NOTE as vB,deviceField as ee,deviceMetaOf as Tr,deviceNote as EB,shownTier as OB,withoutDeviceGate as BB}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as RB,NO_CONTROL_FIELD as Gs,noControlField as vr,NoControlMark as Rt,noControlMetaOf as kB}from"efficient-easel/screen/lib/puck/panel-no-control-mark";var Er="__ownBox";function Us(e){return!!e&&typeof e=="object"&&e[Er]===!0}function _o(e){return`${e}Phone`}function kt(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}import{jsx as Or,Fragment as uI}from"react/jsx-runtime";import{createContext as iI,useContext as pI}from"react";var Ws={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},qs={Events:["posts"],SubscribeBlogs:["posts"]};var sI=["anchor"],cI=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Do(e){return sI.includes(e)||cI.test(e)}var dI={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"}}};dI.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var HB=Object.fromEntries(Object.entries(Ws).map(([e,o])=>[e,Object.keys(o)])),GB=Object.fromEntries(Object.entries(qs).map(([e,o])=>[e,[...o]]));var $s=iI(!1);function KB({children:e}){return Or($s.Provider,{value:!0,children:e})}function mI(){return pI($s)}function zs({name:e,children:o}){return!mI()||!e||Do(e)?Or(uI,{children:o}):Or(Rt,{})}function $(e,o,t){return e.some(a=>(typeof a=="object"?a.value:a)===t)?t:o}var Br="off",Pr="none",Ar=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],Rr=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function YB(e){return $(Ar,Br,e)}function ZB(e){return $(Rr,Pr,e)}var Ks="sf-card-index",Mo="sf-card-index",QB="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",xI={plain:`counter(${Mo})`,padded:`counter(${Mo}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Mo}, decimal-leading-zero)`};function JB(e,o){return o==="off"?"":`.${e}{counter-reset:${Mo}}.${e} .${Ks}{counter-increment:${Mo}}.${e} .${Ks}::before{content:${xI[o]}}`}function e0(e){return e==="hairline"?"border border-line hover:border-accent":""}var Vs=[{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 II}from"efficient-easel/screen/lib/puck/text-control-kinds";import{jsx as kr}from"react/jsx-runtime";import{useState as CI}from"react";import{Button as SI,ImageFocusPoint as yI}from"efficient-shell/ui";import{jsx as V,jsxs as Xs}from"react/jsx-runtime";import{ChevronIcon as hI}from"efficient-easel/icons";import{Tooltip as gI}from"efficient-shell/ui";function js({styleKey:e,label:o,icon:t,value:a,sampleStyle:r,open:n,onToggle:l,saved:f=!1,children:c}){return Xs("div",{"data-sf-style-row":e,className:`sf-style-row${n?" is-open":""}`,children:[Xs("button",{type:"button",className:"sf-style-head","aria-expanded":n,onClick:l,children:[V("span",{className:"sf-style-caret","aria-hidden":"true",children:V(hI,{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(gI,{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(bI,{})})]}),n&&V("div",{className:"sf-style-body",children:c})]})}function bI(){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 Ys({label:e,value:o,onChange:t,image:a}){let[r,n]=CI(!1);return kr(js,{styleKey:"imageFocal",label:e,value:o,sampleStyle:{fontSize:11,fontVariantNumeric:"tabular-nums"},open:r,onToggle:()=>n(l=>!l),children:r?kr(yI,{label:s(e),value:o,onChange:t,image:a,emptyText:s("Choose a background image first \u2014 there\u2019s nothing to focus yet."),actions:kr(SI,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:s("Done")})}):null})}import{jsx as X,jsxs as FI}from"react/jsx-runtime";import{SettingsField as Zs}from"efficient-easel/panel";import{ImageIcon as Qs,PlayIcon as Js}from"efficient-easel/icons";import{ImageBox as LI}from"efficient-easel/pick";import{useEaselStrings as TI}from"efficient-easel/strings";import{useContext as vI,useState as ec}from"react";import{FileIntakeAlert as EI,useFileIntake as OI}from"efficient-shell/file-intake";import{requestMediaPick as wr,resolveMediaPick as h0}from"efficient-easel/screen/lib/media-picker";function oc({value:e,onChange:o,label:t,accept:a,placeholder:r}){let n=Ol(),l=Ye(),f=TI(),c=s(t),[u,i]=ec(!1),[p,m]=ec(null),I=a.startsWith("video"),x=vI(Lt),h=OI({accept:a,maxSizeBytes:_e(l).media.maxUploadBytes,acceptHint:I?s("videos only"):s("images only"),multiple:!1,disabled:u,onAccept:([E])=>{m(null),i(!0),wr(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),wr(n,{accept:a,title:c}).then(E=>E?.url??null));return x&&!x.capabilities.mediaEditing?X(Zs,{label:c,icon:I?X(Js,{}):X(Qs,{}),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.")})}):FI("div",{children:[X(Zs,{label:c,icon:I?X(Js,{}):X(Qs,{}),children:X("div",{className:`sf-image-drop${h.dragOver?" is-dragover":""}`,...h.zoneProps,children:X(LI,{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(EI,{rejections:h.rejections,className:"sf-image-status sf-image-status--error"})]})}import{jsx as tc}from"react/jsx-runtime";import{useId as BI}from"react";import{FieldSelect as PI}from"efficient-easel/fields";import{SettingsField as AI}from"efficient-easel/panel";function RI(e){return e.map(({value:o,label:t,note:a})=>({value:o,label:t,...a?{meta:a}:{}}))}function ac({label:e,options:o,value:t,onChange:a,emptyLabel:r,icon:n,hint:l}){let f=BI(),c=`${f}-label`,u=`${f}-button`,i=Array.isArray(t)?t:[];return tc(AI,{label:s(e),labelId:c,icon:n,hint:l,children:tc(PI,{id:u,multiple:!0,value:i,options:RI(o),onChange:a,placeholder:r===void 0?s("None"):s(r),ariaLabelledBy:`${c} ${u}`,inline:!0})})}import{jsx as rc}from"react/jsx-runtime";import{useId as kI}from"react";import{FieldSelect as wI}from"efficient-easel/fields";import{SettingsField as _I}from"efficient-easel/panel";function DI(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 MI({label:e,options:o,fallback:t,value:a,onChange:r,placeholder:n,bare:l=!1,icon:f}){let c=kI(),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=rc(wI,{id:i,value:m,options:DI(o),onChange:r,placeholder:x,searchPlaceholder:x,...l?{ariaLabel:I}:{ariaLabelledBy:`${u} ${i}`},searchable:!0,groupCount:!0,inline:!0});return l?h:rc(_I,{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 nc(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 NI="sf-pad-top-phone",HI="sf-pad-bottom-phone",GI="--sf-pad-t-phone",UI="--sf-pad-b-phone",WI="sf-pad-left-phone",qI="sf-pad-right-phone",$I="--sf-pad-l-phone",zI="--sf-pad-r-phone";function V0(e,o,t,a,r,n,l,f){let c=nc(e,o)??{},u={},i=["sf-section-pad"];typeof t=="number"&&(i.push(NI),u[GI]=`${t}px`),typeof a=="number"&&(i.push(HI),u[UI]=`${a}px`);let p={};return typeof r=="number"&&(p.paddingLeft=r),typeof n=="number"&&(p.paddingRight=n),typeof l=="number"&&(i.push(WI),u[$I]=`${l}px`),typeof f=="number"&&(i.push(qI),u[zI]=`${f}px`),i.length===1&&nc(e,o)===void 0&&!Object.keys(p).length?null:{className:i.join(" "),style:{...c,...p,...u}}}var lc=e=>typeof e=="number"?e:void 0;function fc(e,o,t){let a=lc(e)??t,r=lc(o);return a===void 0?r:r===void 0?a:a+r}function X0(e,o={}){return{top:fc(e.padTop,e.sectionPaddingTop,o.top),bottom:fc(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var KI=["auto","fixed","screen"],VI=["px","%"];var XI="var(--sf-header-h, 88px)",_r={min:40,max:2e3,step:10,fallback:600},Dr={min:10,max:200,step:5,fallback:100},jI="sf-section-minh",sc={base:"--sf-section-minh",small:"--sf-section-minh-s"},dc=e=>typeof e=="string"&&KI.includes(e),YI=e=>typeof e=="string"&&VI.includes(e);function wt(e){let o=dc(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":YI(e.sectionHeightUnit)?e.sectionHeightUnit:"px",a=o==="screen"?Dr.fallback:_r.fallback,r=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:a;return{mode:o,value:r,unit:t}}function uc(e){let{mode:o,value:t,unit:a}=wt(e);if(o==="auto")return;if(o==="fixed"&&a==="px")return[`${t}px`,null];let r=t/100,n=l=>o==="screen"?`(100${l} - ${XI})`:`100${l}`;return[`calc(${n("vh")} * ${r})`,`calc(${n("svh")} * ${r})`]}function ZI(e){let o=uc(e);if(!o)return;let[t,a]=o;return{display:"grid",[sc.base]:t,...a?{[sc.small]:a}:{}}}var Y0=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),ao="Height",QI="sf-section-minh-phone",cc={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Mr(e){return dc(e.sectionHeightModePhone)}function Z0(e){return wt({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function JI(e){let o=ZI(e),t=Mr(e)?uc({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let a=[jI],r={...o??{}};return t&&(a.push(QI),r[cc.base]=t[0],t[1]&&(r[cc.small]=t[1])),{className:a.join(" "),style:r}}function Q0(e){return JI(e)!==null}var Nr=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],mc=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Stretch",value:"stretch"}],xc="Wrap",Hr=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],ic={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},pc={start:"items-start",center:"items-center",stretch:"items-stretch"};function eP(e,o){let t=typeof e=="string"&&e in ic?ic[e]:"",a=typeof o=="string"&&o in pc?pc[o]:"";return[t,a].filter(Boolean).join(" ")}function oP(e){return e===!0||e==="wrap"?"flex-wrap":""}var Gr="Block widths",_t=[{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",eh={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 tP(e){return typeof e=="string"?eh[e]??"":""}var Ic="Columns on phone",Ur=1,hc=3,oh={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 aP(e){let o=Number(e);return oh[o]??"max-[800px]:flex-col"}var gc="Block spacing",Wr=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],th="sf-box-gap-only";function rP(e){return e==="gap"?th:""}var bc=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],Cc={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Dt="var(--section-bg)",Mt="inherit";function lP(e,o){return e===Mt?Dt:e===void 0?o:Nt(e)}var ah=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Nt(e){return e.replace(ah,"var(--site-$1")}function Sc(e,o){return e===Mt?!0:e===void 0&&o===Dt}var yc=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],Fc={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},ro="var(--wheel-stage)",Ht="transparent",Go="inherit";function cP(e,o){return Nt(qr(e,o))}function qr(e,o){return e===Go?ro:e==null?o:e===!0?ro:e===!1?Ht:e}function dP(e){return typeof e=="string"&&e!==Go?Nt(e):ro}function uP(e){return e!==Ht&&e!=="none"&&e!==""}function Lc(e,o){return e===Go||e===!0?!0:e==null?o===ro:!1}var Tc="inherit",Gt="fixed",vc=e=>typeof e!="number"&&e!==Gt,rh="var(--sf-heading-max, 9999px)";function pP(e,o,t,a){if(typeof e=="number")return`${e}px`;if(e===Gt)return o;let r=a?`var(--size-${a}, ${o})`:o;return t==="heading"?`min(${r}, ${rh})`:r}var nh=["contained","page","full"],Ec=["full","page"],Oc={full:"Full width",page:"Content width"},$r="inherit",lh=e=>typeof e=="string"&&nh.includes(e),fh=e=>e===$r;function zr(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:J.default;return fh(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:lh(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 Kr(e){return zr(e,"page").mode==="full"}import{jsx as sh}from"react/jsx-runtime";import{createContext as ch,useContext as dh}from"react";var uh=2,ih=uh+1,Bc=ch(2);function bP({tier:e,children:o}){return sh(Bc.Provider,{value:e,children:o})}function Vr(e){let o=dh(Bc);return ih+Math.max(0,e-o)}import{withStyleKind as eg}from"efficient-easel/style-clipboard";function Uo(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!le(t)&&eg(t,`section:${o}`);return e}function qc(){return null}function og(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return d(qc,{},e)}function tg(e){return e.type===qc}function co(e){return tg(e)?void 0:e}function lo(e,o){return s("{value} from {from}",{value:e,from:o})}function ag(){let{appState:e}=so(r=>r),o=e.data.root?.props??{},{mode:t,pageWidth:a}=zr(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 rg(){let{blockGap:e}=pe();return e===null?s("this container's own spacing"):lo(`${e}px`,s("Site styles"))}function ng({inherited:e,onReset:o,label:t}){return d(te,{words:K()?.panel,label:s(t),changed:!e,detail:rg(),onReset:o})}function lg({inherited:e,onReset:o,label:t}){return d(te,{words:K()?.panel,label:s(t),changed:!e,detail:ag(),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}=Be(e),i=jr(null),p=jr(null),m=y=>o(l?{text:y,hidden:u}:y),I=()=>o({text:c,hidden:!u}),x=l&&u,h=mh(),C=r?ug(r)?d("span",{className:"sf-hint-keep sf-hint-while-typing",children:s(r)}):d(Ds,{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(Gh,{}),htmlFor:h,className:x?"is-hidden":void 0,hint:C,action:l?d(Wt,{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(Lr,{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 SA(e,o){return{...e,[ko]:o}}function yA(e){let o=e[_];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[_]:{...o,offPage:!0}}}function FA(e){return!e||typeof e!="object"?!1:e[_]?.offPage===!0}function LA(e){let o=e[_];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[_]:{...o,identifier:!0}}}function vA(e,o){if(!e[_])throw new Error("inOwnBox: the field holds no authored text");let{[Gs]:t,...a}=e;return{...a,[Er]:!0,render:o}}var fg=new Set(Ge),io=(e,o)=>{let t={...o,[_]:e};if(!fg.has(e.control))return t;let a=o.render;return{...vr(t,"authored-copy"),render:r=>d(zs,{name:r.name,children:a(r)})}},EA="Everything else on this block comes from the linked post. Unlink it to edit by hand.",sg="Select a word, then press the highlighter.",cg="A short name so a link can jump straight to this section, like yoursite.com/page#about.",dg=new Set([sg]),ug=e=>dg.has(e);function OA(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 BA(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 ig(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 PA(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 AA(e){return{type:"custom",[Ro]:{label:e},render:({value:o,onChange:t})=>d(ps,{value:bs(o),onChange:t,label:e})}}function RA(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 kA={Design:Ih,Animation:wc};function wA(e,o){return e.includes("Design")?o!=="Design":null}function pg({label:e}){return d(qh,{title:s(e),level:Vr(1)})}function mg({level:e,label:o}){return e===1?d(pg,{label:o}):d(hg,{label:o})}function $c(e,o){return{type:"custom",[Bt]:{label:e,level:o},render:()=>d(mg,{level:o,label:e})}}function z(e){return $c(e,2)}function _A(e){return{type:"custom",render:()=>d(xg,{text:e})}}function xg({text:e}){return d("p",{className:"sf-note",children:s(e)})}function DA(e){return $c(e,1)}function MA(e){return le(e)!==null&&e?.tabs!==void 0}var Pc=new Map;function qt(e,o){let t=`${e}\0${o?o.join(""):""}`,a=Pc.get(t)??{type:"custom",tabs:o,[Bt]:{label:e,level:1},bucket:e,marker:!0,render:()=>d(Re,{})};return Pc.set(t,a),a}var Ac=new Map;function Yr(e){let o=Ac.get(e)??{type:"custom",[Bt]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>d(Re,{})};return Ac.set(e,o),o}function Ig(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function zc(e,o){return Ig(e)===o?e:{...e,marker:!0,fold:o,render:()=>d(Re,{})}}function Kc(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(Re,{})}}function hg({label:e}){return d($h,{title:s(e),level:Vr(2)})}function Vc({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(Wt,{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 NA(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=Sc(t,o);return d(R,{label:s(e),icon:d(bh,{}),changed:!r,action:d(te,{words:K()?.panel,label:s(e),changed:!r,detail:s("the theme's section background"),onReset:()=>a(Mt)}),children:Vc({swatches:bc,current:r?Dt:t??o??"",onPick:a,names:Cc})})}}}function gg(e,o){return{type:"custom",render:({value:t,onChange:a})=>{let r=t,n=Lc(r,o);return d(R,{label:s(e),icon:d(Ah,{}),changed:!n,action:d(te,{words:K()?.panel,label:s(e),changed:!n,detail:s("the theme's image stage"),onReset:()=>a(Go)}),children:Vc({swatches:yc,current:n?ro:qr(r,o),onPick:a,names:Fc})})}}}function $t(e=t=>t,o){return Uo({_gSectionTheme:z(Nf),sectionAccent:{type:"custom",render:({value:t,onChange:a})=>d(rs,{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(Jh,{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 Xc(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?Rc(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 HA(e){let o=no("Gap",d(Dc,{}),Oe.min,Oe.max,Oe.step,Ot[e],"px",(t,a)=>d(ng,{inherited:!pr(e,t),onReset:()=>a(void 0),label:"Gap"}));return{type:"custom",[Is]:e,render:t=>o.render({...t,value:ir(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:a=>t.onChange(a)})}}var zt="Corners";function Zr(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(zt),icon:d(Fh,{}),changed:r,action:Rc(e.mark,{changed:r,onReset:()=>t(null)}),hint:e.hint,children:d(Cg,{tier:e,px:a,onRadius:t})})}}}function bg(e){let o=null;try{o=xh()}catch{o=null}return[o?.values?.[e],t=>o?.onChange(e,t)]}function Cg({tier:e,px:o,onRadius:t}){let a=e.useFollowed(),r=e.useClosedReason?e.useClosedReason():null,[n,l]=bg(e.sidesKey),f=fe(n)??[...Pe];return d(Yh,{className:"sf-corners",label:s(zt),value:f,corners:xr,onChange:c=>{let u=fe(c)??[];l(u.length===Pe.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 jc(){return vr({type:"custom",render:()=>d(Rt,{})},"always")}function Sg({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 yg(){let{cornerRadiusPx:e}=pe();return typeof e=="number"?e:ie}function Fg(){return Zr({sidesKey:"sectionCornerSides",useFollowed:yg,useClosedReason:()=>Zc()?s(Yc):null,mark:d(Sg,{label:zt}),hint:d(Lg,{})})}var Yc="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Zc(){return Kr(Xt())}function Lg(){return d(Re,{children:Zc()?Yc:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function Kt(){return Uo({_gShape:z("Shape"),sectionCorners:Fg(),sectionCornerSides:jc()})}function Vt(){return{_gMotion:z("Motion"),sectionAnimation:en("Entrance",d(wc,{}),[...Ms],br)}}function Qr(){let e=null;try{let{appState:o,selectedItem:t}=so(r=>r),a=t?.props?.id?String(t.props.id):void 0;e=a?Sr(o?.data,a):null}catch{e=null}return e!==null&&Kr(e)}function Qc(e){let{cornerRadiusPx:o}=pe(),t=Qr(),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?Sr(l?.data,c):null}catch{r=null}if(t||!r)return a;let n=r.sectionCorners;return mr(n)?n:a}function Tg({label:e,changed:o=!1,onReset:t=()=>{}}){let a=Qr(),r=Qc(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 vg(){return d(Re,{children:Qr()?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 Eg(){return Zr({sidesKey:"cardCornerSides",useFollowed:()=>Qc(ie),mark:d(Tg,{label:zt}),hint:d(vg,{})})}function Og(){return{type:"custom",render:()=>d(Os,{})}}function GA(){return{_gShape:z("Shape"),cardCorners:Eg(),cardCornerSides:jc(),cardCornersApplyAll:Og()}}function UA(){return Ae("Justify",d(gh,{}),Nr,Nr[0].value)}function WA(){return Ae("Item alignment",d(hh,{}),mc,"stretch")}function qA(){return Ae(xc,d(Wh,{}),Hr,Hr[0].value)}function $A(){return{type:"custom",render:({value:e,onChange:o})=>{let t=_t.find(a=>a.value===e)??_t[0];return d(R,{label:s(Gr),icon:d(_c,{}),value:s(t.label),children:d("div",{className:"sf-gallery-layouts",role:"group","aria-label":s(Gr),children:_t.map(a=>d(Wt,{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:Bg(a.weights).map((r,n)=>d("i",{style:{gridColumn:`span ${r}`}},n))})})},a.value))})})}}}function Bg(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 zA(){return Ae(gc,d(Dc,{}),Wr,Wr[0].value)}function KA(){return no(Ic,d(_h,{}),Ur,hc,1,Ur)}function VA(e){let o=en(Gf,og("`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)."),Wf(e),Ft(e,void 0));return{type:"custom",render:t=>o.render({...t,value:Ft(e,t.value),onChange:a=>t.onChange(a)})}}function XA(e,o,t,a,r,n){return{type:"custom",render:({value:l,onChange:f})=>d(R,{label:s(e),icon:d(sr,{noun:n}),action:d(te,{words:K()?.panel,label:s(e),changed:!vc(l),detail:s("the Text style in Site styles"),onReset:()=>f(Tc),defaultAction:{onPress:()=>f(Gt),title:s("Keep this section's own built-in size"),icon:d(Ch,{})}}),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:Ae("Positions",d(_c,{}),[{label:"Auto",value:""},...Array.from({length:At},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function Xt(){let e=null;try{e=so(o=>o).selectedItem}catch{e=null}return e?.props??{}}function Pg({min:e,max:o,step:t,px:a,label:r,onChange:n,desktopKey:l,fallback:f}){let c=Xt()[l],u=kt(void 0,c,f);return d(Re,{children:Wo({min:e,max:o,step:t,value:kt(a,c,f),readout:!1,ariaLabel:r,notch:u,onChange:n})})}function Ag({label:e,desktopKey:o,fallback:t,changed:a=!1,onReset:r=()=>{}}){let n=Xt()[o],l=kt(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 Rg(e){return Xc(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unsetLabel:"Follows Desktop",unsetMark:d(Ag,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>d(Pg,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var kg={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},wg={Top:Uc,Bottom:Nc,Left:Hc,Right:Gc},_g=e=>{let o=wg[e];return d(o,{})};function jt(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",a=e.group!==!1,r=C=>kg[C],n=C=>no(r("Top"),d(Uc,{}),oe.min,oe.max,oe.step,C,"px"),l=(C,E,y,g=oe)=>ee("mobile",Rg({label:r(C),icon:_g(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(Nc,{}),oe.min,oe.max,oe.step,c,"px")),...x?{[_o(t)]:l("Bottom",t,c)}:{}},...e.sides?{[u]:h(no(r("Left"),d(Hc,{}),p.min,p.max,p.step,m,"px")),...x?{[_o(u)]:l("Left",u,I,p)}:{},[i]:h(no(r("Right"),d(Gc,{}),p.min,p.max,p.step,m,"px")),...x?{[_o(i)]:l("Right",i,I,p)}:{}}:{}})}var Dg={contained:"Contained",page:"Page",full:"Full"},Ut="Width";function Yt(e,o=Ec,t=!0){let a=o.map(r=>({label:Oc[r]??Dg[r],value:r}));return Uo({...t?{_gWidth:z(Ut)}:{},widthMode:{type:"custom",render:({onChange:r,field:n})=>d(R,{label:s(Ut),icon:d(Uh,{}),action:t?d(lg,{inherited:n?.inherited??!1,onReset:()=>r($r),label:Ut}):void 0,children:Jr({options:a,value:n?.currentValue||e,onChange:r,ariaLabel:Ut})})}})}function Zt(){let e=a=>({type:"custom",render:({value:r,onChange:n})=>d(R,{label:ao,icon:co(d(Rh,{})),action:a?a(n):void 0,children:Jr({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==="%"?Dr:_r;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=()=>en("Unit",d(Mc,{}),[{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(Mg,{onClear:()=>a(void 0)}))),sectionHeightValuePhone:ee("mobile",o()),sectionHeightUnitPhone:ee("mobile",t())})}function Mg({onClear:e}){let o=Xt(),t=Mr(o),a=wt(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 Qt(){return{_gAnchor:z("Anchor"),anchor:ig("Anchor name","e.g. about",cg)}}function YA(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(Zh,{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(Kh,{checked:f,onChange:r,ariaLabelledBy:c})})}}}function ZA(){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(Wc,{}),htmlFor:r,action:d(me,{id:r,label:"Background",value:cr(e),onChange:o})})}}}function QA(e,o){return{type:"custom",render:({value:t,onChange:a})=>d(R,{label:s(e),action:me({value:t||o,onChange:a,label:e})})}}var Ng=[{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 Jc({label:e,value:o,onChange:t,points:a=Ng}){let r=a.map(n=>({...n,label:s(n.label),...n.title?{title:s(n.title)}:null}));return d(jh,{label:s(e),value:o,points:r,onChange:t})}function JA(e,o=Qh,t="mediaImage"){return{type:"custom",render:({value:a,onChange:r})=>d("div",{className:"sf-focal-row",children:d(Hg,{label:e,value:a||o,onChange:r,imageProp:t})})}}function Hg({label:e,value:o,onChange:t,imageProp:a}){let{selectedItem:r}=so(l=>l),n=r?.props?.[a];return d(Ys,{label:e,value:o,onChange:t,image:typeof n=="string"?n:void 0})}var Gg=wa([]);function eR(e,{stacking:o,fallback:t=pt}){return{type:"custom",render:({value:a,onChange:r})=>{let n=Q.includes(a)?a:t;return o?d(Ug,{label:e,value:n,onChange:r}):ed({label:e,value:n,onChange:r,points:Gg})}}}function Ug({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?Da(a?.data,n):[];return ed({label:e,value:o,onChange:t,points:wa(l,n)})}function ed({label:e,value:o,onChange:t,points:a}){let r=a.find(n=>n.disabled);return d(R,{label:s(e),icon:d(Dh,{}),hint:r?.title?s(r.title):void 0,children:Jc({label:e,value:ye(o),onChange:t,points:a})})}var oR={top:d(Eh,{}),right:d(vh,{}),bottom:d(Lh,{}),left:d(Th,{})};function tR(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:Jc({label:e,value:m,onChange:p,points:u})})}}}var Wg="\0note";function Ae(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(Vh,{value:i,ariaLabel:s(e),onChange:l,options:[...r?[{label:s(r),value:Wg,disabled:!0}]:[],...c.map(p=>({label:s(p.label),value:p.value}))]})})}}}function aR(e,o,t){return{type:"custom",options:o,render:({value:a,onChange:r,field:n})=>d(ac,{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 rR(e,o={}){return{type:"custom",render:({value:t,onChange:a})=>{let r={value:t,onChange:a,...o};return d(e,{...r})}}}function Jr({options:e,value:o,onChange:t,ariaLabel:a,disabled:r=!1}){return d(zh,{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 nR=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function en(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:Jr({options:r,value:r.some(c=>c.value===n)?n:n||f?.currentValue||a,onChange:l,ariaLabel:e})})}}function lR(e,o,t){return{type:"custom",[Cs]:!0,render:({value:a,onChange:r})=>d(oc,{value:a||"",onChange:r,label:e,accept:o,placeholder:t})}}function fR({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(Xr,{}),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(Xr,{}),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(Xr,{}),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 $g(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 zg(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 sR={label:"Ticker items",icon:d(wh,{})};function cR(e,o,t,a){return{type:"custom",[_]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:a},render:({value:r,onChange:n})=>d(Kg,{label:e,icon:co(o),items:Array.isArray(r)?r:[],placeholder:t,onChange:n,markup:a==="markup"})}}function Kg({label:e,icon:o,items:t,placeholder:a,onChange:r,markup:n=!1}){let l=jr(null),[f,c]=kc(null),u=p=>p.map(m=>({text:m?.text??""})),i=p=>{let m=zg(t,p,f);m===null&&(l.current=null),c(m),r(u(p))};return d(Xh,{label:s(e),icon:o,noun:s("item"),items:t,onChange:i,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?d(Lr,{target:l,value:qg(t,f),onChange:p=>r($g(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 dR(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 od(e){return{_gCards:z("Cards"),coverIndex:Ae("Cover image",d(kh,{}),Vs,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:gg("Image background",Ht),cardImage:Vg(),spinOnHover:Ue("Rotate on hover",e?.spinDefault??!0,d(Nh,{}))}}function td(){return{outline:Ae("Card outline",d(Hh,{}),Rr,Pr),indexBadge:Ae("Card number",d(Mc,{}),Ar,Br),showBadge:Ue("Product badge",!0,d(sr,{noun:"tag"}))}}function ad(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:z("Show on a card"),showCardPrice:Ue("Price",!0,d(Oh,{})),showCardFinishes:Ue("Finish swatches",!0,d(Bh,{})),showCardSizes:Ue("Sizes",o,d(Mh,{})),showCardBuy:Ue("Buy button",o,d(Sh,{})),showCardPage:Ue("Page button",o,d(Wc,{}))}}function Vg(){return Xc("Card image",{min:ie,max:Lo,step:Bs,hint:"Rounds the picture. The card's own corner is in Site styles."})}function uR(){return Zr({sidesKey:"cornerSides",step:Ps,useFollowed:()=>ie,mark:d(Xg,{label:As}),hint:s("Rounds the picture. Left alone it stays square.")})}function Xg({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(jg,{value:typeof e=="string"?e:"",onChange:o})}}function jg({value:e,onChange:o}){let[t,a]=kc(null),r=hr.filter(l=>t===null||se[l].across===t),n=e&&e in se?se[e]:null;return fo(Re,{children:[d(R,{label:s("Photos in a row"),icon:d(yh,{}),children:fo("div",{className:"sf-gallery-filter",children:[d("button",{type:"button","aria-pressed":t===null,onClick:()=>a(null),children:s("All")}),ks.map(l=>d("button",{type:"button","aria-pressed":t===l,onClick:()=>a(l),children:l},l))]})}),d(R,{label:s("Layout"),icon:d(Ph,{}),value:n?s(n.label):s("Not chosen"),hint:s("{n} of {total} layouts",{n:r.length,total:hr.length}),children:d("div",{className:"sf-gallery-layouts",children:r.map(l=>d(Wt,{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 tn,SETTINGS_BUCKETS as Yg}from"efficient-easel/panel";import{BUCKET_KEY as q,DESIGN_GROUP_KEY as po}from"efficient-easel/screen/lib/puck/field-buckets";var an=Yg;var Zg="Editor only \u2014 not shown live",rn={"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",[Zg]:"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"},nd={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},ld={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function on(e,o,t){let a=`${e}.${o}`;return ld[a]??nd[a]??rn[t]}function fd(e){return e==="Animation"?[q.Animation]:[q.Design,po[e]]}function Jt(...e){let o=[];for(let t of e)for(let a of Object.values(t)){let r=Tr(a),n=le(r?r.inner:a),l=n?rn[n.label]:void 0;if(l)for(let f of fd(l))o.includes(f)||o.push(f)}return o}var CR=[...Jt(jt({phone:!0}),Yt("full"),Zt(),Qt()),...Object.keys(jt({phone:!0})),...Object.keys(Yt("full")),...Object.keys(Zt()),...Object.keys(Qt())],SR=[...Jt($t()),...Object.keys($t())],yR=[...Jt(Kt()),...Object.keys(Kt())],FR=[...Jt(Vt()),...Object.keys(Vt())],Qg=Object.keys(od()),Jg=new Set(["cardImage","imageBackground"]),LR=[...fd(on("ProductGrid","_gCards","Cards")??"Design"),...Qg.filter(e=>e.startsWith("_g")||Jg.has(e))],TR=Object.keys(td()),vR=Object.keys(ad({bottomDefault:!0})),eb={"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)"},sd={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},cd={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...jt({phone:!0}),...Yt("full"),...Zt(),...Qt(),...$t(),...Kt(),...Vt()};for(let o of Object.keys(cd)){let t=le(e[o]),a=t?rn[t.label]:void 0;if(!t||t.level!==2||!a||!sd[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 ob=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),tb=new Map([[q.Design,"Content"],[q.Animation,"Animation"],...tn.map(e=>[po[e],e])]);function ER(e){let o=new Set([...Object.values(q),po.Content]);for(let[t,a]of Object.entries(e))if(!o.has(t)&&le(a)?.level===1)return 1;return 2}function ab(e){let o=`${e}.`;return Object.keys(eb).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function rb(e,o){let t=Tr(e),a=z(o);return t?ee(t.tier,a):a}function nb(e,o){let t=le(o);return t?e==="Content"||e==="Animation"?zc(o,t.label):Kc(o):o}function rd(e){return e==="Design"?tn:["Animation"]}function OR(e,o){let t=[],a=new Set(ab(o)),r=new Set,n=!1,l=null;for(let[m,I]of Object.entries(e)){let x=le(I);if(ob.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=tb.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===q.Design||m===q.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 cd){let E=on(o,m,x.label);if(x.level!==2||!E||!sd[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=on(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 ${[...tn,"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:rb(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",ld],["KEY_GROUP",nd]]){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=an.filter(m=>rd(m).some(I=>u.has(I))),p={};for(let m of i){p[q[m]]=qt(m,m===i[0]?i:null);for(let I of rd(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]]=Yr(I));for(let C of x)for(let[E,y]of C.entries)p[E]=nb(I,y)}}return p}function BR(e){return q.Design in e?e:{[q.Design]:qt("Design",null),[po.Content]:Yr("Content"),...e}}function PR(e){return an.some(o=>q[o]in e)}function AR(e){let o=an.filter(a=>q[a]in e);if(o.length===0)return e;let t={...e};for(let a of o)t[q[a]]=qt(a,a===o[0]?o:null);return t}import{jsx as lb}from"react/jsx-runtime";import{createContext as fb,useCallback as sb,useContext as cb,useState as db}from"react";var dd={enabled:!0,title:"",subtitle:"",greeting:""},ud=fb({chat:dd,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function DR({children:e,chat:o=dd,onChatChange:t}){let[a,r]=db(!1),n=sb(c=>t?.(c),[t]),{select:l,setSelectHandler:f}=Fl();return lb(ud.Provider,{value:{chat:o,setChat:n,selected:a,setSelected:r,select:l,setSelectHandler:f},children:e})}var MR=()=>cb(ud);import{jsx as ub}from"react/jsx-runtime";import{createContext as ib,useCallback as id,useContext as pb,useMemo as mb,useRef as xb}from"react";var Ib=Object.fromEntries(Ll.map(e=>[e,{value:"",error:null}])),pd=ib({links:Tl,rows:Ib,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function WR({children:e,value:o}){let t=xb(()=>{}),a=id(()=>t.current(),[]),r=id(l=>{t.current=l},[]),n=mb(()=>({...o,openPanel:a,setOpenHandler:r}),[o,a,r]);return ub(pd.Provider,{value:n,children:e})}var qR=()=>pb(pd);import{jsx as hb}from"react/jsx-runtime";import{createContext as gb,useContext as bb,useMemo as Cb,useState as Sb}from"react";var md=gb(null);function VR({children:e}){let[o,t]=Sb(null),a=Cb(()=>({surface:o,setSurface:t}),[o]);return hb(md.Provider,{value:a,children:e})}function XR(){return bb(md)??{surface:null,setSurface:()=>{}}}var ZR="Scrolling Bar",{Provider:QR,useSelection:xd}=lt("selectedHeroId");var{Provider:ok,useSelection:tk}=lt("selectedLocationPartId");function ak(e,o,t){return`${e}::${o}::${t}`}function rk(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 yb,useContext as Fb}from"react";var Lb=yb(!1),fk=()=>Fb(Lb);import{PreviewDeviceContext as dk,usePreviewDevice as uk}from"efficient-easel/screen/components/PreviewDeviceContext";var Tb=new Set(["Hero","HeroSingle","IntroBleed"]),Id={min:56,max:140,default:88},mk={min:0,max:120,step:2,default:28},hd=`var(--sf-header-h, ${Id.default}px)`,vb="--sf-header-set-h",xk="--sf-header-h",Ik=`var(${vb}, ${Id.default}px)`,hk="sf-header-clearance",gk="sf-sticky-underheader";function Eb(e){return e?.find(o=>o?.type&&o.type!==De)??null}function gd(e){let o=Eb(e)?.type;return!o||!Tb.has(o)}function bk(e){return!gd(e)}function Ck(e){return!!e?.some(o=>o?.type===De)}function Sk(e){return!e||e.length===0?!1:!e.some(o=>o?.type===De||o?.type===xt)}var Ob=["auto","shared","own"],Bb="auto",Pb="topSpace",yk="data-top-space";function Ab(e){return Ob.includes(e)?e:Bb}function Rb(e,o){let t=Ab(e?.props?.[Pb]);return t==="own"?!0:t==="shared"?!1:gd(o)}function Fk(e,o){return Rb(e,o)?"own":null}import{blockRuns as kb}from"efficient-easel/screen/lib/puck/block-choice";function Ok(){return{type:De,props:{id:vo(De)}}}var bd=[{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"}],wb=bd.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),_b="FooterGroup",Cd="blocks";function Sd(e){return e===xt?bd:e===_b?wb:null}function Pk(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterGroup",{direction:"vertical",align:"start",blocks:[e("FooterText",{text:"Join our email list",size:"md",tone:"default"}),e("FooterEmailSignup",{heading:"",placeholder:"Email address",buttonLabel:"Subscribe"})]})]}function Dk(e,o=0){let t=Mb(e,o),a=t?qa():null;return t&&a?Db(t,a):t}function Db(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 Mb(e,o){let t=Fe[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let a=df(e,o);if(a)return{source:"container",slot:a.slot,choices:a.choices,spec:null};let r=Sd(e);return r?{source:"footer",slot:Cd,choices:r,spec:null}:null}import{useSyncExternalStore as Nb}from"react";var nn=null,ln=new Set;function Hk(e){if(nn!==e){nn=e;for(let o of ln)o()}}function Hb(e){return ln.add(e),()=>{ln.delete(e)}}function Gk(){return Nb(Hb,()=>nn,()=>null)}function Uk(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?e.slice(0,o):null}var Gb="inline",Ub=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var Wb={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"}},$k="SectionHeader";function zk(e){return e in Wb}function qb(e){return $(Ub,Gb,e)}var $b=new Set(["Flex"]);function zb(e){return!!e?.type&&$b.has(e.type)}function Kk(e,o,t){if(!zb(o))return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function Vk(e,o,t){if(qb(o)!=="own-box")return e;let a={};for(let[r,n]of Object.entries(e))t.includes(r)||(a[r]=n);return a}function fn(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function sn(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 qo,encodePartId as Kb,PART_SEP as Zk}from"efficient-easel/screen/lib/puck/part-id";var Vb=Ge,Xb=["text","textarea"],jb=["textarea","plainTextarea"];function Yb(e){return!e||typeof e!="object"?null:e[_]?.control??null}function yd(e){let o=Yb(e);return o&&Vb.includes(o)?o:null}function tw(e){return jb.includes(e)}function aw(e){return!e||typeof e!="object"?void 0:e[_]?.placeholder}function ea(e){return Be(e).text}function cn(e,o,t){return Xb.includes(e)?{text:t,hidden:Be(o).hidden}:t}function rw(e,o,t,a){return ea(e[o])===a?null:{...e,[o]:cn(t,e[o],a)}}function Zb(e){if(!(!e||typeof e!="object"))return e[_]}function Qb(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function Fd(e,o){if(!Array.isArray(o))return[];let t=Zb(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=Qb(e);return r?(o.forEach((n,l)=>{for(let[f,c]of Object.entries(r)){if(!yd(c))continue;let u=ea(n?.[f]);u&&a.push({row:{index:l,rowKey:f},text:u})}}),a):[]}function Jb(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function eC(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 cw(e,o,t,a,r){let n=Jb(e[o],t);return ea(n)===r?null:eC(e,o,t,cn(a,n,r))}function dw(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Cw="data-sf-part",Sw="data-sf-part-selected",yw="data-sf-part-kind",Ld=2;function Fw(e,o){if(!e)return!1;let t=qo(e);return!!t?.propKey&&t.nodeId===o}function mo(e){return Oo(e).replace(/\s+/gu,"")}function oa(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}=Be(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))oa(l,r?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[r,n]of Object.entries(e.objectFields))oa(n,o[r],t)}}function Lw(e){if(!e||typeof e!="object")return!1;let o=e;return o[Ro]?!1:!!o[_]||o.type==="text"||o.type==="textarea"}function Td(e,o){let t=e[_];return t?.label?t.label:typeof e.label=="string"?e.label:o}function oC(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function Tw(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=[];oa(n,o?.[a],l),!l.length&&n[ko]!==void 0&&oa(n,n[ko],l);let f=Td(n,a),c=new Set;for(let{row:p,text:m}of Fd(n,o?.[a])){let I=mo(m);I.length<Ld||(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<Ld||u.has(m)||(u.add(m),i.push(m))}i.length&&t.push({key:a,label:f,texts:i})}return t}var tC=Ge;function vd(e,o){if(!o||typeof o!="object"||Do(e)||Us(o))return null;let t=o[_];return!t||!tC.includes(t.control)?null:t}function vw(e,o){let t=vd(e,o);return t!==null&&t.identifier!==!0}function Ew(e,o){if(!e)return[];let t=[];for(let[a,r]of Object.entries(e)){let n=vd(a,r);if(!n)continue;let{text:l,hidden:f}=Be(o?.[a]),c=l||n.placeholder||"",u=Oo(c).replace(/\s+/gu," ").trim();t.push({key:a,label:oC(Td(r,a)),preview:u,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!f})}return t}var aC="Main Pages",rC="Dynamic Pages",nC="dynamic",lC="dynamic";function fC(e){return e.kind===lC}function Bw(e){let o=[],t=[];for(let a of e){if(fC(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??aC,rows:[a]})}if(t.length){let a=o.findIndex(r=>r.key.startsWith("system:"));o.splice(a===-1?o.length:a,0,{key:nC,label:rC,rows:t})}return o}import{VIEW_DESKTOP_MIN as Rw,VIEW_TABLET_MIN as kw,VIEW_TIER_LABEL as ww,VIEW_TIERS as _w,viewTierForWidth as Dw}from"efficient-easel/screen/lib/content/view-tiers";import{jsx as dn,Fragment as sC,jsxs as cC}from"react/jsx-runtime";var Hw=cC(sC,{children:[dn("circle",{cx:"9",cy:"20",r:"1.3"}),dn("circle",{cx:"18",cy:"20",r:"1.3"}),dn("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 un,Fragment as dC}from"react/jsx-runtime";function Ed({className:e=""}){return un("sup",{className:`text-accent tracking-normal ${e}`,children:"\xAE"})}function ta(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(un(Ed,{},`r${r}`))}),un(dC,{children:t})}var Ww=Ed;import{jsx as B,jsxs as yn}from"react/jsx-runtime";import{Fragment as jd}from"react";var xn="_partStyles",gn="data-sf-part-styled",uC=["none","upper","lower"],iC=[400,500,600,700],pC=["left","center","right","justify"],mC=5,xC=1e3,IC=-5,hC=10,gC=0,bC=64,CC=2,SC=120,aa=1280,yC=10,Od={size:{min:mC,max:xC,step:1},padding:{min:gC,max:bC,step:CC},width:{min:SC,max:aa,step:yC}},FC=.05,LC=.01,TC=["line","letter"],vC=.5,EC=2.5,OC=-1,BC=1,PC=0,AC=400,In={none:"none",upper:"uppercase",lower:"lowercase"};function zo(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function Rd(e){return zo(e?.[xn])??{}}function RC(e,o){let t=Rd(e);return Object.hasOwn(t,o)?zo(t[o])??{}:{}}function kd(e,o,t){let a={...Rd(e)};if(kC(t).length?a[o]=t:delete a[o],!Object.keys(a).length){let{[xn]:r,...n}=e;return n}return{...e,[xn]:a}}function kC(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function wC(e){return TC.includes(e)}var $o=(e,o,t)=>Math.min(t,Math.max(o,e));function _C(e,o){if(wC(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:$o(t,IC,hC)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?xo($o(t,vC,EC),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?xo($o(t,OC,BC),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:$o(t,PC,AC)}if(Object.hasOwn(Od,e)){let{min:t,max:a}=Od[e],r=Math.round(Number(o));return Number.isFinite(r)?$o(r,t,a):null}return e==="role"?yo.includes(String(o))?o:null:o}var DC=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function MC(e){let o=[];for(let[t,a]of DC)t===e?o.push(a):a===e&&o.push(t);return o}function Xw(e,o,t,a){let r={...RC(e,o)},n=a==null?null:_C(t,a);if(n===null)delete r[t];else{r[t]=n;for(let l of MC(t))delete r[l]}return kd(e,o,r)}function jw(e,o){return kd(e,o,{})}function NC(e){for(let o of uC)if(In[o]===e)return o;return"none"}function HC(e){return!e||!Object.hasOwn(In,e)?"":In[e]}var GC={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function UC(e){let o=e.role;return o&&yo.includes(o)?o:null}var WC={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 qC(e){let o=Il[e],t=WC[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function $C(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=xo(zC+e.line*FC,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=xo(e.letter*LC,4)),o}var zC=1,Vo="--sf-part-para";function ra(e,o){let t=UC(e),a=$C(e),r=e.size?`${e.size}px`:t?qC(t):"";return{fontFamily:e.font?jC(e.font):t?`var(${GC[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:HC(e.case),textAlign:e.align??"",paddingTop:pn(e.padding),paddingBottom:pn(e.padding),maxWidth:pn(e.width),color:KC(e.color)}}var KC=e=>e===void 0||e===""?"":Object.hasOwn(Le,e)?Le[e]:wd.test(e)?e:"",wd=/^#[0-9a-fA-F]{6}$/;function _d(e){return wd.test(e)}var pn=e=>e===void 0?"":`${e}px`,xo=(e,o)=>Number(e.toFixed(o));function Yw(e,o){let t=Number.parseFloat(e.fontSize)||16,a=Number.parseFloat(e.lineHeight),r=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop),l=Number.parseFloat(e.maxWidth);return{fontKey:o,sizePx:t,weight:VC(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(a)?xo(a/t,3):1.2,letterEm:Number.isFinite(r)?xo(r/t,4):0,align:XC(e.textAlign),case:NC(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(l)&&l<aa?Math.round(l):aa}}function VC(e){return Number.isFinite(e)?iC.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function XC(e){for(let o of pC)if(o===e)return o;return e==="end"?"right":"left"}function Zw(e,o){let t=Bd(e);if(!t)return"";for(let a of ba)if(Bd(o(a.cssVar))===t)return a.key;return""}var Bd=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function jC(e){let o=xl(e);return o?`var(${o.cssVar})`:""}function Qw(e,o,t,a){return!o||qo(o)?.nodeId!==e?null:t.find(r=>a(r.getAttribute("class")))??t[0]??null}function Jw(e,o,t=()=>Ko,a=n=>n,r=QC){let n=0;for(let{element:l,partId:f}of e){let c=qo(f)?.propKey;if(!c)continue;let u=a(c),i=Object.hasOwn(o,u)?zo(o[u])??{}:{},p=ra(i,Ko),m=mn.some(x=>l.style[x]),I=!1;for(let[x,h]of Object.entries(p))JC(l,x,h),h&&(I=!0);if(m||mn.some(x=>p[x]))for(let x of YC(l,r))for(let h of mn)x.style[h]=p[h]??"";I&&(n+=1)}return n}function YC(e,o){let t=mo(e.textContent??""),a=[],r=e;for(let n=0;n<ZC&&o(r);n+=1){let l=r.parentElement;if(!l||mo(l.textContent??"")!==t)break;a.push(l),r=l}return a}var ZC=8;function QC(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:aa};function JC(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?.(Pd,""):r.removeAttribute?.(Pd))}var Pd="data-sf-part-para",eS=Object.keys(ra({},Ko)),hn=new Set(["color","overflowWrap",Vo]),mn=eS.filter(e=>!hn.has(e));function Dd(e,o,t,a=r=>r){let r=new Map;for(let f of e){let c=fn(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(!oS(f))continue;let c=zo(o[f])??{},u=ra(c,Ko);Object.values(u).some(Boolean)&&n.set(f,{stamp:Ad(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=ra(m,Ko);Object.values(I).some(Boolean)&&l.set(f,{stamp:Ad(t,i),declarations:I})}return l.size||n.size?{rules:l,kindRules:n,drawn:new Set(r.keys())}:null}function oS(e){return e.startsWith("@")}function Md(e,o){return e?.kindRules.get(o)??null}function Ad(e,o){let t=a=>a.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function Nd(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])=>`${aS(I)}: ${x}`).join("; "),u=`[${gn}="${n}"]`,i=f.filter(([m])=>!hn.has(m)),p=f.filter(([m])=>hn.has(m));i.length&&o.push(`${u}, *:has(> ${u}) { ${c(i)} }`),p.length&&o.push(`${u} { ${c(p)} }`),l[Vo]&&o.push(...tS(u))};for(let r of e.rules.values())a(r);for(let r of e.kindRules.values())a(r);return o.join(`
|
|
4
|
+
`)}function tS(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 aS=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function Hd(e,o){if(!e)return null;let t=mo(o),a=e.rules.get(t);if(a)return a;if(t.length<rS||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 rS=8;import{Fragment as dS,jsx as Sn}from"react/jsx-runtime";import{Fragment as qd,jsx as na,jsxs as fS}from"react/jsx-runtime";import{createContext as $d,useContext as bn,useId as sS,useMemo as cS}from"react";var Xo="@name",Gd="@body",Ud="@value",t_={[Xo]:"Name",[Gd]:"Body",[Ud]:"Value"},nS={TimelineTrack:{"entries.date":Xo,"entries.title":Xo,"entries.blurb":Gd},Footprint:{"offices.city":Xo},Stats:{"items.label":Xo,"items.value":Ud}};function lS(e){let{key:o,row:t}=sn(e);return t?`${o}.${t.rowKey}`:null}function Wd(e,o){if(!e)return o;let t=lS(o);return t?nS[e]?.[t]??o:o}var Cn=$d(null),zd=$d(null);function s_({needles:e,styles:o,type:t,children:a}){let r=sS(),n=JSON.stringify([r,e,o,t]),l=cS(()=>Dd(e,o,r,f=>Wd(t,f)),[n]);return l?fS(qd,{children:[na("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:Nd(l)}}),na(Cn.Provider,{value:l,children:a})]}):na(qd,{children:a})}function Kd(e){let o=bn(Cn),t=bn(zd),a=Hd(o,e);return a&&a.stamp!==t?a:null}function c_(e){return Md(bn(Cn),e)}function Vd({stamp:e,children:o}){return na(zd.Provider,{value:e,children:o})}function jo({value:e,children:o}){let t=Kd(e);return t?Sn(Vd,{stamp:t.stamp,children:Sn("span",{[gn]:t.stamp,children:o})}):Sn(dS,{children:o})}function Fn(e,o=!1){let t=gS(o),a=Xa(e);if(a.length===1){let[n]=a,l=Va(n),f=l?IS(l,n.children):n.children;return B(jo,{value:e,children:la(f,t)})}let r=[];return a.forEach((n,l)=>{if(n.bullet){r.push(B("span",{"data-sf-bullet":"",className:uS,children:la(n.children,t)},l));return}if(n.number!=null){r.push(yn("span",{"data-sf-number":n.number,className:iS,children:[yn("span",{className:pS,children:[n.number,"."]}),la(n.children,t)]},l));return}l>0&&!mS(a[l-1])&&r.push(B("br",{},`br${l}`)),r.push(B(jd,{children:la(n.children,t)},l))}),B(jo,{value:e,children:r})}var uS="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",iS="relative block pl-[2em]",pS="absolute left-0 w-[1.6em] text-right tabular-nums";function mS(e){return e.bullet||e.number!=null}var xS="text-accent underline underline-offset-[0.18em]";function IS(e,o){let[t,...a]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...a]:[{kind:"text",text:e},...o]}function hS(e){if(e)return _d(e)?e:Object.hasOwn(Le,e)?Le[e]:void 0}function la(e,o){let t=[],a=!1;return e.forEach((r,n)=>{if(r.kind==="text"){t.push(B("span",{children:ta(r.text)},n)),a=!0;return}a||t.push(B("span",{},`e${n}`)),t.push(Yd(r,n,o)),a=!1}),a||t.push(B("span",{},"end")),t}function Xd(e,o){return e.length===1&&e[0].kind==="text"?ta(e[0].text):e.map((t,a)=>t.kind==="text"?B(jd,{children:ta(t.text)},a):Yd(t,a,o))}function gS(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function y_(e){return B(jo,{value:e,children:B("span",{children:e})})}function Yd(e,o,t){if(e.kind==="link")return B("a",{href:e.href,className:xS,children:Xd(e.children,t)},o);let a=Xd(e.children,t),r=hf[e.kind];if(r)return B("span",{[gf]: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=hS(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 F_(e,o=!0){let t=e.split(`
|
|
5
|
+
`);return B(jo,{value:e,children:t.map((a,r)=>yn("span",{children:[Fn(a,o),r<t.length-1?B("br",{}):null]},r))})}function L_(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var Ln={accent:"#2563eb",accentTint:"#eff6ff",accentText:"#1d4ed8",appBg:"#f9fafb",previewBg:"#f3f4f6",panel:"#ffffff",fieldBg:"#ffffff",inputBorder:"#d1d5db",text:"#111827",text2:"#374151",muted:"#6b7280",line:"#e5e7eb",chipBg:"#f3f4f6",chipFg:"#6b7280",panelRadius:12,rowRadius:8,panelShadow:"0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.06)",topbarShadow:"0 1px 3px rgba(0,0,0,.06)",panelGap:10,leftWidth:288,rightWidth:308,topbarHeight:52,labelFont:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif"};var Zd={min:40,max:100,step:5,fallback:100,unit:"vh"};function Tn(e){return`${typeof e=="number"?e:Zd.fallback}${Zd.unit}`}function Qd(...e){return e.some(o=>typeof o=="number")}import{useSyncExternalStore as bS}from"react";var CS={level:"groups"},eu=CS,vn=new Set;function B_(e){eu=e;for(let o of vn)o()}function SS(e){return vn.add(e),()=>{vn.delete(e)}}var Jd=()=>eu;function P_(){return bS(SS,Jd,Jd)}function ou(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 R_(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??""),En=new WeakMap,yS=0;function FS(e){let o=En.get(e);return o||(o=`loc${++yS}`,En.set(e,o)),o}var __=(e,o)=>o||e||"Ungrouped",tu={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 fa(e){return ou(e,Yo,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var On=e=>e.flatMap(o=>o.cards),au=(e,o,t)=>Math.min(Math.max(e,o),t);function LS(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 D_(e,o,t){let a=fa(e);if(o<0||o>=a.length)return e;let[r]=a.splice(o,1),n=au(o<t?t-1:t,0,a.length);return a.splice(n,0,r),On(a)}function M_(e,o,t,a,r){let n=fa(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&&En.set(u,FS(c));let i=au(l===f&&t<r?r-1:r,0,f.cards.length);return f.cards.splice(i,0,u),On(n)}function N_(e,o){let t=fa(e),a=t.find(n=>n.key===o),r={...tu,group:o,groupName:a?.name??""};return a?(a.cards.push(r),On(t)):[...e,r]}function H_(e){let o=new Set(fa(e).map(r=>r.key)),t=o.size+1,a=`Group ${t}`;for(;o.has(a);)a=`Group ${++t}`;return{cards:[...e,{...tu,group:a,groupName:""}],key:a}}function G_(e,o){return e.filter(t=>Yo(t)!==o)}function U_(e,o,t){let a=LS(e,o,t);return a<0?e:e.filter((r,n)=>n!==a)}function W_(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 q_(e,o,t){return o.flatMap(a=>{let r=e.filter(n=>Yo(n)===a);return r.length?r:t(a)})}var TS="plain",ru=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],vS="line",ES={KeyFeatures:"filled"};function OS(e){return ES[e]??TS}function K_(e,o){return $(ru,OS(o),e)}function V_(e){return $(ru,vS,e)}var BS="#9ca3af";function Y_(e){return Ka.map(o=>({key:o,name:bf[o],value:e?.[o]||BS}))}function Z_(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 Ka){let f=Le[l].replace(/^var\((--[\w-]+)\)$/,"$1"),c=r.getPropertyValue(f).trim();if(!c)continue;let u=nu(c);!u&&n&&(n.fillStyle="#000000",n.fillStyle=c,u=nu(String(n.fillStyle))),u&&(o[l]=u)}return o}function nu(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 PS={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}},lu=PS;var sa="data-sf-spec-region";function eD(e,o,t){if(!e)return;let a=t[e];if(a)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${a}, ${o.builtIn})`}}function AS(e){return`@${e}`}function RS(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function fu(e,o){return o&&o in e?o:null}function kS(e,o){let t=o?.closest(`[${sa}]`)?.getAttribute(sa);return fu(e,t??null)}var wS={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}},su=wS;var nD=sa;var cu={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 du={SpecTable:cu,FAQ:su,Collections:lu};function dD(e){return e&&Object.hasOwn(du,e)?du[e]:null}import{jsx as oy}from"react/jsx-runtime";import{forwardRef as _S,createElement as Bn}from"react";var uu={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=_S(({color:n="currentColor",size:l=24,stroke:f=2,title:c,className:u,children:i,...p},m)=>Bn("svg",{ref:m,...uu[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&&Bn("title",{key:"svg-title"},c),...a.map(([I,x])=>Bn(I,x)),...Array.isArray(i)?i:[i]]));return r.displayName=`${t}`,r};var DS=[["path",{d:"M7 10v4h3v7h4v-7h3l1 -4h-4v-2a1 1 0 0 1 1 -1h3v-4h-3a5 5 0 0 0 -5 5v2h-3",key:"svg-0"}]],Pn=S("outline","brand-facebook","BrandFacebook",DS);var MS=[["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"}]],An=S("outline","brand-instagram","BrandInstagram",MS);var NS=[["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"}]],Rn=S("outline","brand-line","BrandLine",NS);var HS=[["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"}]],kn=S("outline","brand-linkedin","BrandLinkedin",HS);var GS=[["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"}]],wn=S("outline","brand-pinterest","BrandPinterest",GS);var US=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],_n=S("outline","brand-telegram","BrandTelegram",US);var WS=[["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"}]],Dn=S("outline","brand-tiktok","BrandTiktok",WS);var qS=[["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"}]],Mn=S("outline","brand-wechat","BrandWechat",qS);var $S=[["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"}]],Nn=S("outline","brand-whatsapp","BrandWhatsapp",$S);var zS=[["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"}]],Hn=S("outline","brand-x","BrandX",zS);var KS=[["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"}]],Gn=S("outline","brand-youtube","BrandYoutube",KS);var VS=[["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"}]],Un=S("filled","brand-facebook-filled","BrandFacebookFilled",VS);var XS=[["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"}]],Wn=S("filled","brand-instagram-filled","BrandInstagramFilled",XS);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"}]],qn=S("filled","brand-linkedin-filled","BrandLinkedinFilled",jS);var YS=[["path",{d:"M17 3.34a10 10 0 0 1 -8.512 18.023l2.364 -5.315a3.5 3.5 0 0 0 2.398 .952c2.708 0 4.75 -2.089 4.75 -5a6 6 0 1 0 -11.64 2.041a1 1 0 1 0 1.88 -.682a4 4 0 1 1 7.76 -1.36c0 1.818 -1.156 3.001 -2.75 3.001c-.609 0 -1.153 -.361 -1.478 -1.022l1.142 -2.572a1 1 0 0 0 -1.828 -.812l-4.392 9.882a10 10 0 0 1 -4.694 -8.476l.005 -.324a10 10 0 0 1 14.995 -8.336",key:"svg-0"}]],$n=S("filled","brand-pinterest-filled","BrandPinterestFilled",YS);var ZS=[["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"}]],zn=S("filled","brand-tiktok-filled","BrandTiktokFilled",ZS);var QS=[["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"}]],Kn=S("filled","brand-whatsapp-filled","BrandWhatsappFilled",QS);var JS=[["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"}]],Vn=S("filled","brand-x-filled","BrandXFilled",JS);var ey=[["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"}]],Xn=S("filled","brand-youtube-filled","BrandYoutubeFilled",ey);var F1="outline",ca={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},ty={},jn={fillRule:"evenodd"},ay=[["path",{...ca,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...jn,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],ry=[["path",{...ca,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",{...ty,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("")}]],ny=[["path",{...ca,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",{...ca,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",{...jn,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",{...jn,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("")}]],ly=S("filled","brand-telegram-filled","BrandTelegramFilled",ay),fy=S("filled","brand-line-filled","BrandLineFilled",ry),sy=S("filled","brand-wechat-filled","BrandWechatFilled",ny),cy={instagram:{outline:An,solid:Wn},facebook:{outline:Pn,solid:Un},tiktok:{outline:Dn,solid:zn},youtube:{outline:Gn,solid:Xn},x:{outline:Hn,solid:Vn},linkedin:{outline:kn,solid:qn},pinterest:{outline:wn,solid:$n},whatsapp:{outline:Nn,solid:Kn},telegram:{outline:_n,solid:ly},line:{outline:Rn,solid:fy},wechat:{outline:Mn,solid:sy}};function L1({platform:e,iconStyle:o,size:t}){let a=cy[e][o];return oy(a,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var Yn="small",Zn="dot",dy=[{label:"Small",value:"small"},{label:"Display",value:"display"}],uy=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],iu={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)]"},py={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 pu(e){return $(dy,Yn,e)}function mu(e){return $(uy,Zn,e)}function xu(e){return iy[e]}function Iu(e,o){return py[e][o]}var Qn="left",my=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],xy={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function hu(e){return $(my,Qn,e)}function gu(e){return e==="up"||e==="down"}function bu(e,o){return`${xy[e]} ${o}s linear infinite`}var Iy={"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]"},hy=`calc(${St} - ${W}*2)`,Cu=`var(${Za},${W})`,R1=`pointer-events-none absolute inset-y-0 left-[${Cu}] right-[${Cu}] z-[6] mx-auto max-w-[var(${Qa},${hy.replace(/ /g,"_")})]`;function da(e,o){return`pointer-events-auto absolute ${Iy[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function Su(e){return Q.includes(e)?e:null}var gy="bottom-right",by=["outline","solid","square","bare"],Cy="outline",D1={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},M1=!1,yu=["prev","next"],Fu={prev:"Previous slide",next:"Next slide"};function Sy(e){return by.includes(e)?e:Cy}function yy(e){return Su(e)??gy}var Fy="flex-row items-center gap-2";function Lu(e){return da(yy(e),Fy)}var Ly={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 Tu(e){return Ly[Sy(e)]}function vu(e){return e.shown===!0&&(e.count??0)>1}function ua(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 Ty=Q;var vy="top-right",Ey=["cards","dots","numbers","bar","tabs"],Oy=["cards","dots","numbers","bar"],Eu="cards",U1={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},W1=!0;function ia(e){return Ey.includes(e)?e:Eu}function Ou(e){return Oy.includes(e)?e:Eu}function By(e){return Ty.includes(e)?e:vy}var Bu={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 Pu(e,o){return da(By(o),Bu[ia(e)])}function Au(e){return`flex ${Bu[ia(e)]}`}function Ru(e){return e.shown!==!1&&(e.count??0)>1}function Py(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function Ay(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 ku(e,o){let t=Array.from(o,Py);return Ay(e,t)?e:t}import{useEffect as Ry,useState as ky}from"react";var wu="(prefers-reduced-motion: reduce)";function wy(){return globalThis.window?.matchMedia?.(wu)?.matches??!1}function z1(){return wy()?"auto":"smooth"}function _u(){let[e,o]=ky(!1);return Ry(()=>{let t=globalThis.window?.matchMedia?.(wu);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 ma}from"react/jsx-runtime";import{useCallback as Io,useEffect as ho,useId as qy,useRef as xe,useState as Jo}from"react";var Du="data-puck-overlay-portal";function pa(e){return e.setAttribute(Du,"true"),()=>e.removeAttribute(Du)}import{jsx as Zo,jsxs as Mu}from"react/jsx-runtime";var _y={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function Nu({items:e,separator:o=Zn,size:t=Yn,durationSec:a=50,scroll:r=Qn,backdrop:n="themed-band",className:l}){let f=pu(t),c=hu(r),u=mu(o),i=`text-accent ${Iu(f,u)}`.trim(),p=iu[u],m=p===""?Zo("span",{}):Zo("span",{className:i,children:p}),I=gu(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 Mu("span",{className:h,children:[Zo("span",{className:j?"text-accent":void 0,children:Fn(O)}),m]},g)})},E);return Zo("div",{className:`overflow-hidden ${l??""}`,children:Mu("div",{className:`flex ${I?"flex-col ":""}whitespace-nowrap ${xu(f)} ${_y[n]}`,style:{animation:bu(c,a)},children:[C("a"),C("b")]})})}import{jsx as Jn}from"react/jsx-runtime";function Hu({shape:e,placement:o,ref:t}){let a=Tu(e);return Jn("div",{ref:t,className:Lu(o),style:{color:"var(--overlay-fg)"},children:yu.map(r=>Jn("button",{type:"button","data-hero-nav":r,"aria-label":Fu[r],className:a,children:Jn(No,{name:"chevron-right",size:18,rounded:!0,style:r==="prev"?{rotate:"180deg"}:void 0})},r))})}import{jsx as M,jsxs as el,Fragment as Qo}from"react/jsx-runtime";function Gu({slides:e,active:o,shape:t,placement:a,ref:r,tone:n="media",label:l}){let f=ia(t),c=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--site-surface-2)"}:void 0;return el("aside",{ref:r,"aria-label":l??"Featured slides",className:n==="surface"?Au(f):Pu(f,a),style:{color:"var(--overlay-fg)",...c},children:[f==="cards"&&M(Dy,{slides:e,active:o}),f==="dots"&&M(My,{count:e.length,active:o}),f==="numbers"&&M(Ny,{count:e.length,active:o}),f==="bar"&&M(Hy,{count:e.length,active:o}),f==="tabs"&&M(Gy,{slides:e,active:o})]})}function Dy({slides:e,active:o}){return el(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 el("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 My({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 Ny({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 Hy({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 Gy({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 Uy=40;function Wy(e,o){return Math.abs(e)<=Uy||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function Uu(e,o,t,a){let r=Wy(e,o);return r?ua(r,t,a):t}function Wu(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 $u(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as ol}from"efficient-easel/screen/lib/puck/preview-events";var $y=`
|
|
7
|
+
.hero-ticker-pick { cursor: pointer; }
|
|
8
|
+
.hero-ticker-pick:hover {
|
|
9
|
+
outline: 2px solid color-mix(in srgb, ${Ln.accent} 45%, transparent);
|
|
10
|
+
outline-offset: -2px;
|
|
11
|
+
}
|
|
12
|
+
.hero-ticker-pick[data-selected] {
|
|
13
|
+
outline: 2px solid ${Ln.accent};
|
|
14
|
+
outline-offset: -2px;
|
|
15
|
+
}
|
|
16
|
+
`,zy="Play video",Ky="Hold video",Vy="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",Xy=()=>s("item"),jy=["","","","","",""],zu=new Map;function Yy(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(ol,o),()=>t.removeEventListener(ol,o)}function BM({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=Qd(p,m),j=O?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",ke=O?{"--sf-hero-h-d":Tn(p),"--sf-hero-h-m":Tn(m)}:void 0,de=(i??jy.map(b=>({text:b}))).map(b=>b?.text?.trim()?b.text:g?Xy():"").filter(Boolean),Ie=u!==!1,U=xe(null),et=xe(null),ot=xe(null),k=xe(null),We=xe(null),qe=qy(),$e=xe(qe),[ze,Vu]=Jo([]),[Xu,tl]=Jo(0),go=xe(0),[al,rl]=Jo(!1),[tt,ju]=Jo(!1),[nl,Yu]=Jo(null),Ia=_u(),{selectedHeroId:Zu,select:ll}=xd(),at=Io(()=>U.current?.querySelector(".hero-track")??null,[]),he=Io((b,L=!1)=>{tl(b),go.current=b,zu.set($e.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")||qe;$e.current=L,Yu(L);let v=zu.get(L);typeof v=="number"&&(tl(v),go.current=v)},[]),ho(()=>{let b=at();if(!b)return;let L=()=>{Vu(P=>ku(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")||$e.current;v.id&&v.id!==ue||he(v.index,!0)};return Yy(U.current,b)},[g,he]);let Y=ze.length,Ke=Math.min(Math.max(Xu,0),Math.max(0,Y-1)),ha=Ru({shown:I,count:Y}),fl=vu({shown:C,count:Y}),sl=qu({editing:g,shown:Ke,slides:ze}),Qu=$u({editing:g,playing:tt,controlShown:sl}),rt=Wu({count:Y,editing:g}),Ve=xe(null),bo=xe(null),Ju=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]),ei=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}},[]),oi=Io(()=>{let b=Ve.current,L=bo.current;if(Ve.current=null,bo.current=null,!rt||!b||!L)return;let v=Uu(L.x-b.x,L.y-b.y,go.current,Y);v!==go.current&&he(v)},[rt,Y,he]);ho(()=>{if(g||!f||al||Ia||Y<=1)return;let b=Math.max(1,typeof c=="number"?c:6)*1e3,L=window.setTimeout(()=>he((Ke+1)%Y),b);return()=>window.clearTimeout(L)},[g,f,c,al,Ia,Y,Ke,he]),ho(()=>{let b=[et.current,ot.current,k.current].filter(Boolean),L=b.map(P=>pa(P)),v=P=>{let ue=P.target,Co=ue.closest("[data-hero-nav]"),cl=Co??ue.closest("[data-idx]");if(!cl)return;P.stopPropagation(),P.preventDefault();let ga=Co?ua(Co.dataset.heroNav,go.current,Y):Number(cl.dataset.idx);Number.isNaN(ga)||(he(ga,g),at()?.querySelectorAll("[data-slide-name]")[ga]?.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,he,at,g]),ho(()=>{if(!g)return;let b=We.current;if(!b)return;let L=pa(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")||$e.current;ll(Co)};return b.addEventListener("click",v,{capture:!0}),()=>{L?.(),b.removeEventListener("click",v,{capture:!0})}},[g,ll,Ie,de.length]);let ti=Io(b=>{if(!b)return;let L=pa(b),v=P=>{P.stopPropagation(),P.preventDefault(),ju(ue=>!ue)};return b.addEventListener("click",v,{capture:!0}),()=>{L?.(),b.removeEventListener("click",v,{capture:!0})}},[]);return ce(Ha.Provider,{value:{alignment:o,textureOpacity:t,textureOn:a,textureColor:r,quietVideo:Qu,phoneUpDown:n,phoneSideways:l},children:ma("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:ke,onMouseEnter:()=>rl(!0),onMouseLeave:()=>rl(!1),onTouchStart:Ju,onTouchMove:ei,onTouchEnd:oi,children:[ce(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${Ke*100}%)`,transition:Ia?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),sl&&ce("div",{ref:ti,"data-hero-video-control":tt?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${hd} + 16px)`},children:ma("button",{type:"button",className:Vy,children:[ce("span",{"aria-hidden":"true",children:tt?"\u275A\u275A":"\u25B6"}),s(tt?Ky:zy)]})}),(ha||fl)&&ma("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:[ha&&ce(Gu,{ref:et,slides:ze,active:Ke,shape:Ou(x),placement:h}),fl&&ce(Hu,{ref:k,shape:E,placement:y})]}),ha&&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))}),Ie&&de.length>0&&ma("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&&nl!=null&&Zu===nl?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[g&&ce("style",{children:$y}),ce(Nu,{items:de,backdrop:"dark-media"})]})]})})}var xa="data-theme",Ku="light";function Zy(e){return e.getAttribute(xa)===Ku?"light":"dark"}function Qy(e,o){return Zy(e)===o?!1:(o==="light"?e.setAttribute(xa,Ku):e.removeAttribute(xa),!0)}function Jy(e){return La(e).getItem(Ca)}function kM(e,o){La(e).setItem(Ca,o)}function eF(e,o,t=new Date().getHours()){return hl({mode:o.mode,override:Jy(e),switchShown:o.switchShown,hour:t})}function wM(e,o){let t=e.documentElement;if(!t)return()=>{};let a=()=>Qy(t,eF(e,o));a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[xa]}),()=>n.disconnect()}var oF="style";function tF(e,o){let t=yl(o),a=!1;for(let r of Sl){let n=t[r]??"";e.style.getPropertyValue(r)!==n&&(n?e.style.setProperty(r,n):e.style.removeProperty(r),a=!0)}return a}function _M(e,o){let t=e.body;if(!t)return()=>{};let a=()=>tF(t,o);a();let r=e.defaultView?.MutationObserver;if(!r)return()=>{};let n=new r(a);return n.observe(t,{attributes:!0,attributeFilter:[oF]}),()=>n.disconnect()}export{jF as a,YF as b,ZF as c,QF as d,Ni as e,Se as f,aL as g,Ua as h,xT as i,_e as j,Ul as k,D as l,cf as m,aT as n,uf as o,uL as p,ql as q,iL as r,Ql as s,of as t,tf as u,GL as v,UL as w,WL as x,qL as y,mp as z,ff as A,eT as B,pt as C,Ki as D,mL as E,ye as F,xL as G,IL as H,zl as I,hL as J,gL as K,bL as L,Yi as M,xt as N,De as O,FL as P,vo as Q,TL as R,vL as S,EL as T,Fe as U,dT as V,uT as W,Dp as X,OT as Y,ws as Z,Gx as _,JO as $,At as aa,_s as ba,Ux as ca,Wx as da,qx as ea,tB as fa,aB as ga,rB as ha,nB as ia,gt as ja,$a as ka,PT as la,AT as ma,RT as na,kT as oa,wT as pa,_T as qa,$ as ra,Wb as sa,$k as ta,zk as ua,qb as va,zb as wa,Kk as xa,Vk as ya,Y_ as za,Z_ as Aa,pa as Ba,NT as Ca,HT as Da,qT as Ea,$T as Fa,fn as Ga,sn as Ha,qo as Ia,Kb as Ja,Sf as Ka,Xa as La,Oo as Ma,le as Na,_ as Oa,bs as Pa,Be as Qa,Do as Ra,yd as Sa,tw as Ta,aw as Ua,rw as Va,Zb as Wa,Qb as Xa,Jb as Ya,eC as Za,cw as _a,dw as $a,Cw as ab,Sw as bb,yw as cb,Fw as db,mo as eb,Lw as fb,Td as gb,oC as hb,Tw as ib,vw as jb,Ew as kb,gn as lb,gC as mb,bC as nb,CC as ob,SC as pb,aa as qb,yC as rb,Rd as sb,RC as tb,Xw as ub,jw as vb,$C as wb,ra as xb,Yw as yb,Zw as zb,Qw as Ab,Jw as Bb,eS as Cb,Xo as Db,Gd as Eb,Ud as Fb,t_ as Gb,Wd as Hb,s_ as Ib,c_ as Jb,FO as Kb,OO as Lb,BO as Mb,PO as Nb,J as Ob,Ef as Pb,cv as Qb,Ct as Rb,em as Sb,iv as Tb,Bo as Ub,tm as Vb,mv as Wb,Pf as Xb,Za as Yb,Qa as Zb,yv as _b,Lv as $b,Tv as ac,vv as bc,Ev as cc,Oc as dc,zr as ec,Kr as fc,Af as gc,Rf as hc,Po as ic,_f as jc,kv as kc,lm as lc,wv as mc,yt as nc,Hf as oc,Mv as pc,Nv as qc,dm as rc,Hv as sc,dB as tc,Ns as uc,uB as vc,Vx as wc,iB as xc,wt as yc,Y0 as zc,Mr as Ac,Z0 as Bc,JI as Cc,Q0 as Dc,V0 as Ec,X0 as Fc,im as Gc,Ft as Hc,Uv as Ic,Wf as Jc,Lt as Kc,qf as Lc,aF as Mc,K as Nc,rF as Oc,s as Pc,Ta as Qc,me as Rc,tE as Sc,Yf as Tc,fF as Uc,Ye as Vc,fi as Wc,va as Xc,es as Yc,Km as Zc,NE as _c,rs as $c,vs as ad,VO as bd,ZO as cd,sr as dd,fx as ed,zE as fd,ee as gd,Tr as hd,EB as id,vr as jd,Rt as kd,kB as ld,KB as md,Br as nd,Pr as od,YB as pd,ZB as qd,Ks as rd,QB as sd,JB as td,e0 as ud,js as vd,wr as wd,mF as xd,hF as yd,Ol as zd,oc as Ad,ac as Bd,MI as Cd,fs as Dd,G as Ed,Al as Fd,SF as Gd,di as Hd,yF as Id,FF as Jd,ui as Kd,vF as Ld,ii as Md,EF as Nd,Oa as Od,BF as Pd,PF as Qd,AF as Rd,RF as Sd,ct as Td,kF as Ud,wF as Vd,_F as Wd,gi as Xd,UF as Yd,Dl as Zd,Li as _d,Ti as $d,vi as ae,Pa as be,WF as ce,mx as de,iO as ee,No as fe,eP as ge,oP as he,tP as ie,aP as je,rP as ke,Is as le,Ot as me,ur as ne,Sx as oe,mO as pe,xO as qe,Dt as re,Mt as se,lP as te,ro as ue,Ht as ve,cP as we,dP as xe,uP as ye,Tc as ze,pP as Ae,bP as Be,Qh as Ce,og as De,co as Ee,SA as Fe,yA as Ge,FA as He,LA as Ie,vA as Je,EA as Ke,OA as Le,BA as Me,ig as Ne,PA as Oe,AA as Pe,RA as Qe,kA as Re,wA as Se,z as Te,_A as Ue,xg as Ve,DA as We,MA as Xe,hg as Ye,NA as Ze,$t as _e,Wo as $e,no as af,HA as bf,jc as cf,Kt as df,Vt as ef,GA as ff,UA as gf,WA as hf,qA as if,$A as jf,zA as kf,KA as lf,VA as mf,XA as nf,jA as of,jt as pf,Yt as qf,Zt as rf,Qt as sf,YA as tf,Ue as uf,ZA as vf,QA as wf,JA as xf,eR as yf,oR as zf,tR as Af,Ae as Bf,aR as Cf,rR as Df,Jr as Ef,nR as Ff,en as Gf,lR as Hf,fR as If,sR as Jf,cR as Kf,Kg as Lf,dR as Mf,od as Nf,td as Of,ad as Pf,Vg as Qf,uR as Rf,iR as Sf,q as Tf,po as Uf,an as Vf,Zg as Wf,fd as Xf,CR as Yf,SR as Zf,yR as _f,FR as $f,LR as ag,TR as bg,vR as cg,ER as dg,OR as eg,BR as fg,PR as gg,AR as hg,KF as ig,VF as jg,dd as kg,DR as lg,MR as mg,Ib as ng,WR as og,qR as pg,VR as qg,XR as rg,ZR as sg,QR as tg,xd as ug,ok as vg,tk as wg,ak as xg,rk as yg,Lb as zg,fk as Ag,PS as Bg,wS as Cg,sa as Dg,eD as Eg,AS as Fg,RS as Gg,fu as Hg,kS as Ig,nD as Jg,dD as Kg,aC as Lg,nC as Mg,fC as Ng,Bw as Og,ww as Pg,_w as Qg,Dw as Rg,dk as Sg,uk as Tg,Hw as Ug,F1 as Vg,L1 as Wg,Yn as Xg,Zn as Yg,dy as Zg,uy as _g,Qn as $g,my as ah,jo as bh,ta as ch,Ww as dh,Fn as eh,y_ as fh,F_ as gh,L_ as hh,Nu as ih,gy as jh,by as kh,Cy as lh,D1 as mh,M1 as nh,vy as oh,Oy as ph,Eu as qh,U1 as rh,W1 as sh,Gu as th,z1 as uh,Ln as vh,Zd as wh,Tn as xh,Qd as yh,Id as zh,mk as Ah,hd as Bh,vb as Ch,xk as Dh,Ik as Eh,hk as Fh,gk as Gh,Eb as Hh,bk as Ih,Ck as Jh,Sk as Kh,Bb as Lh,yk as Mh,Rb as Nh,Fk as Oh,jy as Ph,BM as Qh,Ok as Rh,Pk as Sh,B_ as Th,P_ as Uh,ou as Vh,R_ as Wh,Yo as Xh,FS as Yh,__ as Zh,tu as _h,fa as $h,LS as ai,D_ as bi,M_ as ci,N_ as di,H_ as ei,G_ as fi,U_ as gi,W_ as hi,q_ as ii,Dk as ji,Hk as ki,Gk as li,Uk as mi,xa as ni,Zy as oi,Qy as pi,kM as qi,wM as ri,_M as si,TS as ti,ru as ui,vS as vi,OS as wi,K_ as xi,V_ as yi};
|