efficient-storefront-blocks 0.11.0 → 0.13.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (41) hide show
  1. package/CHANGELOG.md +60 -0
  2. package/dist/chunks/{EditorPreviewCheckout-J27HMNBW.js → EditorPreviewCheckout-D2J57RZY.js} +1 -1
  3. package/dist/chunks/PreviewFooter-WL76Z4NK.js +1 -0
  4. package/dist/chunks/SectionEditorShell-U3CXCPYO.js +1 -0
  5. package/dist/chunks/SiteEditorProvider-5HGJJCOZ.js +1 -0
  6. package/dist/chunks/chunk-BAXOL3AI.js +1 -0
  7. package/dist/chunks/chunk-I5J42GI3.js +16 -0
  8. package/dist/chunks/chunk-MSHAAJSK.js +230 -0
  9. package/dist/chunks/chunk-NQIIJI3Z.js +1 -0
  10. package/dist/chunks/chunk-QL3UVEEM.js +1 -0
  11. package/dist/chunks/chunk-R2JQPRJX.js +1 -0
  12. package/dist/chunks/chunk-XNYKOAQ3.js +153 -0
  13. package/dist/chunks/fitment-data-3PTG4BJX.js +1 -0
  14. package/dist/chunks/render-client-DYF6CWVJ.js +1 -0
  15. package/dist/contract.js +1 -1
  16. package/dist/editor.css +1 -1
  17. package/dist/index.js +881 -1742
  18. package/dist/links.d.ts +59 -0
  19. package/dist/links.js +1 -1
  20. package/package.json +2 -2
  21. package/dist/chunks/PreviewFooter-BMBCVZQC.js +0 -1
  22. package/dist/chunks/SectionEditorShell-K4OEOAY4.js +0 -1
  23. package/dist/chunks/SiteEditorProvider-ECGZVKLG.js +0 -1
  24. package/dist/chunks/StorefrontEditorChrome-T6DTL7T7.js +0 -1
  25. package/dist/chunks/chunk-3J4FEDNZ.js +0 -2
  26. package/dist/chunks/chunk-6CP4D6VJ.js +0 -1
  27. package/dist/chunks/chunk-6XRKNA2E.js +0 -1
  28. package/dist/chunks/chunk-C2CHF6AL.js +0 -15
  29. package/dist/chunks/chunk-ENDWECYV.js +0 -1
  30. package/dist/chunks/chunk-HVOO2GNE.js +0 -1
  31. package/dist/chunks/chunk-MYSIADXX.js +0 -1
  32. package/dist/chunks/chunk-NJXX5BI2.js +0 -1
  33. package/dist/chunks/chunk-RRHBLOH4.js +0 -1
  34. package/dist/chunks/chunk-TGIEMCNA.js +0 -1
  35. package/dist/chunks/chunk-THATLL5Z.js +0 -230
  36. package/dist/chunks/chunk-TOY67YUY.js +0 -153
  37. package/dist/chunks/chunk-UBWM4USZ.js +0 -1
  38. package/dist/chunks/fitment-data-BXI7KQRZ.js +0 -1
  39. package/dist/chunks/render-client-UQ5CUPRL.js +0 -1
  40. /package/dist/chunks/{chunk-C2CHF6AL.js.LEGAL.txt → chunk-I5J42GI3.js.LEGAL.txt} +0 -0
  41. /package/dist/chunks/{chunk-TOY67YUY.js.LEGAL.txt → chunk-XNYKOAQ3.js.LEGAL.txt} +0 -0
@@ -1,15 +0,0 @@
1
- import{b as zo}from"./chunk-HVOO2GNE.js";import{A as ba,B as wt,E as Fs,F as ao,G as no,H as qo,I as Ko,K as Es,Ma as fo,N as Sa,P as vs,Pa as Os,Q as ya,Ra as Bs,S as Ls,T as As,a as ys,aa as lo,ba as wo,c as Cs,d as ha,da as so,ea as sr,h as Ts,i as Tt,k as nr,s as ws,t as lr,u as ga,z as Ps}from"./chunk-ENDWECYV.js";import{b as xa,d as ke,g as gs,h as bs,i as se,j as Ia,k as Ss,p as ks,q as Rt,s as Rs,w as Ca}from"./chunk-6CP4D6VJ.js";var Ds=["general","commerce","service"],Xo=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero Slideshow",set:"general"},{type:"HeroSingle",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"BrandStrip",label:"Brand Strip",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"},{type:"SpecStrip",label:"Spec Strip",set:"general"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"DeliveryOptions",label:"Delivery Options",set:"commerce"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Cards",label:"Cards",set:"general"},{type:"KeyFeatures",label:"Key Features",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Series",label:"Recurring Columns",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"},{type:"DocMetaCards",label:"Document Detail Cards",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Spacer",label:"Spacer",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]}];function TR(){return Object.fromEntries(Xo.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var kp={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."},wR=["Grid"],PR=Array.from(new Set([...Xo.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(kp)])),FR=Object.fromEntries(Xo.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),Rp={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",MenuBlock:"service",EmailFormBlock:"service",SocialLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},fr={...Rp,...Object.fromEntries(Xo.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function _s(e){return Object.prototype.hasOwnProperty.call(fr,e)?fr[e]:void 0}function ka(e){return Object.keys(fr).filter(o=>fr[o]===e).sort()}var ER=ka("general"),vR=ka("commerce"),LR=ka("service"),Tp="Flex",io="Box",AR=`${io}es`;function wp(e){return e==="section"?"Blank section":io}function OR(e,o,t){return e===Tp?wp(o):t}var Yo="content",j="Flex",Pp="Text & media",Fp="Layout & structure",Ep=[{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:Pp})),vp=(Xo.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Fp})),Ns=[...Ep,...vp],Ra=[{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:io}],_R=Ra.map(e=>e.type),Lp=1,Ap=Ra.filter(e=>e.type!=="HeroGroup");function Op(e){return e<Lp?Ra:Ap}var Bp={Flex:{slot:Yo,choices:()=>Ns},Grid:{slot:Yo,choices:()=>Ns},HeroGroup:{slot:Yo,choices:Op}};function Ms(e,o=0){let t=Bp[e];return t?{slot:t.slot,choices:t.choices(o)}:null}function re(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}var Dp={Manifesto:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[re(j,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[re("Eyebrow",e,o,{eyebrowLook:"plain"}),re("Heading",e,o),re("Text",e,o),re("Stats",e,o)]}),re(j,e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[re(j,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[re("Eyebrow",e,o,{eyebrowLook:"plain"}),re("Heading",e,o),re("Text",e,o),re("ButtonBlock",e,o)]}),re(j,e,o,{direction:"column",name:"Image",content:[re("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:j,props:{...e(j),id:o(j),direction:"column",name:"Subscribe",content:[re("Heading",e,o),re("Text",e,o),re("Form",e,o)]}})};function Hs(e){return Dp[e]??null}var ve=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],ir="bottom-left";var Pt={"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 _p(e){let o=ve.indexOf(co(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function Np(e){return 1+_p(e).band*6}function GR(e){return Np(e)+1}function co(e){return ve.includes(e)?e:ir}function UR(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function WR(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function Ta(e,o){let t=co(o);return e.filter(r=>co(r?.props?.placement)===t).length}function Gs(e){return`${Pt[co(e)]} already holds 4 boxes. Move one somewhere else first.`}function wa(e,o){let t=e.filter(r=>r?.props?.id!==o);return ve.map(r=>{let a=Ta(t,r)>=4,n=Pt[r];return a?{value:r,label:n,disabled:!0,title:Gs(r)}:{value:r,label:n}})}function dr(e,o){let t=o===void 0?ir:co(o?.props?.placement);return Ta(e,t)>=4?Gs(t):null}var Us="HeroGroup";function $R(e){let o=new Map,t=!1,r=e.filter(a=>{let n=co(a?.props?.placement),l=(o.get(n)??0)+1;return o.set(n,l),l<=4?!0:(t=!0,!1)});return t?r:e}function Mp(e){return ve.map(o=>{let t=Ta(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function Pa(e){let o=Mp(e);return o.length===0?null:o.map(({anchor:t,total:r,hidden:a})=>{let n=Pt[t],l=a===1?"1 is not shown":`${a} are not shown`;return`${n} holds ${r} boxes. The published page draws the first 4, so ${l}. ${a===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function VR(e,o){let t=o;if(t?.type!==Us)return null;let r=t.props?.id===void 0?"":String(t.props.id);return r?dr(Fa(e,r),t):null}function Fa(e,o){let t=Ws(e,o);return t&&t.ownerType===Gp?t.siblings:[]}function qR(e,o){let t=Ws(e,o);return t?t.ancestorTypes.filter(r=>r===Us).length:Hp}var Hp=1,Gp="HeroSlide";function Ws(e,o){let t=a=>Array.isArray(a)&&a.length>0&&a.every(n=>!!n&&typeof n=="object"&&typeof n.type=="string"),r=(a,n,l)=>{if(n>12||!a||typeof a!="object")return null;if(t(a)){if(a.some(s=>s?.props?.id===o))return{siblings:a,ownerType:l.at(-1)??null,ancestorTypes:l};for(let s of a){let f=s.type,d=r(s,n+1,[...l,String(f)]);if(d)return d}return null}for(let s of Object.values(a)){let f=r(s,n+1,l);if(f)return f}return null};return r(e,0,[])}function $s(e,o){let t=e.components?.[o]?.fields??{};return Object.keys(t).filter(r=>t[r]?.type==="slot")}function Up(e,o){return $s(e,o.type).flatMap(t=>(Array.isArray(o.props[t])?o.props[t]:[]).map((a,n)=>({child:a,zone:`${o.props.id}:${t}`,index:n})))}function Vs(e,o,t){let r=(a,n,l,s)=>{if(!a||typeof a!="object"||!a.props)return null;if(a.props.id===t)return{item:a,zone:n,index:l};if(s>=12)return null;for(let{child:f,zone:d,index:p}of Up(e,a)){let u=r(f,d,p,s+1);if(u)return u}return null};for(let a=0;a<o.length;a+=1){let n=r(o[a],Ea,a,0);if(n)return n}return null}var Wp=6;function zR(e,o,t){return t<Wp&&$s(e,o).length>0}var Po=e=>`${e}-${crypto.randomUUID()}`,uo="Header",Ft="Footer",Ea="root:default-zone",qs=[uo,Ft];function $p(e){let o=new Set,t=[];return e.forEach((r,a)=>{let n=r?.type;n===void 0||!qs.includes(n)||(o.has(n)?t.push(a):o.add(n))}),t}function XR(e){return $p(e).map(o=>e[o]?.props?.id).filter(o=>typeof o=="string")}function YR(e,o){let t=(r,a)=>r.some(n=>n?.type===a);return qs.filter(r=>!t(e,r)&&!t(o,r))}import{createContext as xm,useContext as Im}from"react";import{useEffect as La,useRef as rm,useState as ur}from"react";import{createContext as Vp,lazy as qp,Suspense as Kp,useContext as zp}from"react";import{jsx as cr}from"react/jsx-runtime";var Xp={Link:Cs,Image:ys},Yp=Vp(Xp);function Ks(){return zp(Yp)}function eT(e){let{Link:o}=Ks();return cr(o,{...e})}function zs(e){let{Image:o}=Ks();return cr(o,{...e})}function oT(e){let o=qp(e);return function(r){return cr(Kp,{fallback:null,children:cr(o,{...r})})}}import{useEffect as jp,useRef as Xs,useState as Zp}from"react";import{Fragment as om,jsx as Ys,jsxs as tm}from"react/jsx-runtime";var Qp="#t=0.001",Jp=2;function em(e,o){if(e.readyState<Jp||!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 va({src:e,objectPosition:o="50% 50%",onError:t}){let r=Xs(null),a=Xs(null),[n,l]=Zp(!1);return jp(()=>{let s=r.current,f=a.current;if(n||!s||!f)return;let d=()=>{em(s,f)&&l(!0)};return d(),s.addEventListener("loadeddata",d),s.addEventListener("seeked",d),()=>{s.removeEventListener("loadeddata",d),s.removeEventListener("seeked",d)}},[n]),tm(om,{children:[Ys("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&Ys("video",{ref:r,src:`${e}${Qp}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{jsx as jo,jsxs as js}from"react/jsx-runtime";var am=.5;function Aa({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:r=am,objectPosition:a="50% 50%",quiet:n=!1}){let l=o||"",s=e||"",[f,d]=ur(!1),[p,u]=ur(!1),[c,x]=ur(!1),[I,g]=ur(!1),y=rm(null);La(()=>{d(!1),u(!1),x(!1)},[e,o]),La(()=>{if(typeof window>"u")return;let T=()=>{let k=window;k.requestIdleCallback?k.requestIdleCallback(()=>g(!0),{timeout:2e3}):setTimeout(()=>g(!0),800)};if(document.readyState==="complete"){T();return}return window.addEventListener("load",T,{once:!0}),()=>window.removeEventListener("load",T)},[]),La(()=>{let T=y.current;if(!T)return;let k=()=>{T.playbackRate=r};return k(),T.addEventListener("loadedmetadata",k),()=>T.removeEventListener("loadedmetadata",k)},[e,r]);let L=ks(l);return js("div",{className:"absolute inset-0 z-[1]",children:[jo("div",{className:"absolute inset-0",style:{background:"var(--surface)"}}),l&&(L?jo("img",{src:l,alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",style:{display:f?"none":"block",objectPosition:a},onError:()=>d(!0)},l):jo(zs,{src:l,alt:"",fill:!0,priority:!0,sizes:"100vw",className:"z-[2] object-cover",style:{display:f?"none":"block",objectPosition:a},onError:()=>d(!0)},l)),t&&!n&&s&&I&&!p&&js("video",{ref:y,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:a},onError:()=>u(!0),children:[Rs(s)&&jo("source",{src:s.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),jo("source",{src:s,type:"video/mp4"})]},s),t&&n&&s&&I&&!c&&(!l||f)&&jo(va,{src:s,objectPosition:a,onError:()=>x(!0)},s)]})}var Zs=["top","middle","bottom"],Qs=["left","center","right"],Js="bottom",ef="left",nm={top:"Top",middle:"Middle",bottom:"Bottom"},lm={left:"Left",center:"Center",right:"Right"};var pT="Up and down",mT="Sideways",sm={top:"flex-start",middle:"center",bottom:"flex-end"},fm={left:"flex-start",center:"center",right:"flex-end"},im="--sf-hero-phone-y",dm="--sf-hero-phone-x";function cm(e){return Zs.includes(e)?e:Js}function um(e){return Qs.includes(e)?e:ef}function of(e,o){let t=cm(e),r=um(o),a={};return t!==Js&&(a[im]=sm[t]),r!==ef&&(a[dm]=fm[r]),a}function xT(){return Zs.map(e=>({label:nm[e],value:e}))}function IT(){return Qs.map(e=>({label:lm[e],value:e}))}var pm="#0A0A0A",mm=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function tf(e){let o=e.trim().replace(/^#/,""),t=o.length===3?o.split("").map(a=>a+a).join(""):o;if(!/^[0-9a-fA-F]{6}$/.test(t))return null;let r=Number.parseInt(t,16);return`${r>>16&255},${r>>8&255},${r&255}`}function rf(e){return e==null?!0:e!==!1}function af(e){let o=(e?tf(e):null)??tf(pm);return`linear-gradient(180deg, ${mm.map(([r,a])=>`rgba(${o},${a}) ${r}%`).join(", ")})`}import{jsx as Et,jsxs as gm}from"react/jsx-runtime";var Oa=xm({});function hm({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,objectPosition:l,tintColor:s="#000000",tintOpacity:f=0,groups:d,editing:p=!1,themeClassName:u,themeStyle:c}){let{alignment:x="left",textureOpacity:I,textureOn:g,textureColor:y,quietVideo:L,phoneUpDown:T,phoneSideways:k}=Im(Oa),_=t==="video",$=_?Rt(r):void 0,pe=_?Rt(n):Rt(r)??Rt(n),v=typeof a=="number"?a/100:1;return gm("section",{className:u?`relative h-full w-full overflow-hidden ${u}`:"relative h-full w-full overflow-hidden",style:c,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":$?"video":"still",children:[Et(Aa,{videoSrc:$,posterSrc:pe,showVideo:_,playbackRate:v,objectPosition:l,quiet:L}),f>0&&Et("div",{className:"absolute inset-0 z-[2]",style:{background:s,opacity:Math.min(Math.max(f,0),100)/100}}),rf(g)&&Et("div",{className:"absolute inset-0 z-[2]",style:{background:af(y),...I!==void 0?{opacity:I/100}:null}}),Et("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",p?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{color:"var(--overlay-fg)",...of(T,k)},children:d&&Et(d,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var nf=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));var bm="ImageBlock",Sm=3,pr=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:Po(e),...t}}),ym=e=>({...e?.(j)??{},direction:"column",[Yo]:[pr(bm,e),pr(j,e,{direction:"column",[Yo]:[pr("Heading",e),pr("Text",e)]})]}),po={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>nf.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${io.toLowerCase()}`,seeds:()=>[],addBlocked:dr,notice:Pa},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${io.toLowerCase()}`,seeds:()=>[],addBlocked:dr,notice:Pa},ProcessSteps:{slot:"boxes",childType:j,addLabel:`Add ${io.toLowerCase()}`,seeds:e=>Array.from({length:Sm},()=>ym(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function LT(e){for(let[o,t]of Object.entries(e)){if(o in po&&po[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);po[o]=t}}function AT(e,o){let t=po[e];return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:Po(t.childType),...r}}))}:null}var Cm={general:!0,commerce:!0,service:!0};function Ba(e){let o=e?.sets;return o?Object.fromEntries(Ds.map(t=>[t,o.includes(t)])):Cm}function vt(e=se()){return Ba(e.blocks)}var Fo=e=>typeof e=="object"&&e!==null&&!Array.isArray(e);function Da(e){return Fo(e)&&typeof e.type=="string"&&e.type!==""&&Fo(e.props)}function lf(e,o,t){if(Array.isArray(e))for(let r of e)Da(r)?_a(r,o,t):Fo(r)&&typeof r.type=="string"&&r.type!==""&&o.add(r.type)}function mr(e,o,t){if(Array.isArray(e)){if(t.has(e))return;t.add(e);for(let r of e)Da(r)?_a(r,o,t):mr(r,o,t);return}if(!(!Fo(e)||t.has(e))){t.add(e);for(let r of Object.values(e))mr(r,o,t)}}function _a(e,o,t){if(!t.has(e)){t.add(e),o.add(e.type);for(let r of Object.values(e.props))mr(r,o,t)}}function Na(e){let o=new Set,t=new Set;if(Da(e))_a(e,o,t);else if(Fo(e)){if(lf(e.content,o,t),Fo(e.zones))for(let r of Object.values(e.zones))lf(r,o,t);Fo(e.root)&&mr(e.root,o,t)}return[...o].sort()}var sf=()=>({}),ff=new Map;function km(e){let o=ff.get(e);if(o)return o;let t=new Set,r=po[e];if(r)for(let l of r.seeds(sf))for(let s of Na({type:r.childType,props:l}))t.add(s);let a=Hs(e);if(a){let l=0;for(let s of Na(a(sf,f=>`${f}-${l+=1}`)))t.add(s)}t.delete(e);let n=[...t].sort();return ff.set(e,n),n}function Rm(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Ba(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=f=>{if(r.has(f))return!1;if(a.has(f))return!0;let d=_s(f);return!d||!o[d]?!1:t?t.has(f):!0},l=new Map,s=f=>{let d=l.get(f);if(d!==void 0)return d;l.set(f,!1);let p=n(f)&&km(f).every(s);return l.set(f,p),p};return{sets:o,offers:s}}var Tm="block-offer";function Ma(e=se()){return e.cache(Tm,()=>Rm(e.blocks))}function VT(e,o=se()){let t=Ma(o);return t?t.offers(e):!0}var xr="SiteHeader",Ha="SiteFooter",df="sections",KT=[xr,Ha],zT=e=>e===xr||e===Ha,XT=e=>`${e}:${df}`;function YT(e,o,t=[]){return{type:e,props:{id:o,[df]:t}}}var wm=new Set(["Footer",xr,Ha]);function jT(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):wm.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function ZT(e,o){return e.some(t=>t?.type===o.type)?e:o.type===xr?[o,...e]:[...e,o]}import{createContext as Pm,useContext as Fm,useEffect as Em}from"react";import{jsx as vm}from"react/jsx-runtime";var cf=Pm(null);function ow({session:e,children:o}){return Ia(e),Em(()=>(Ia(e),()=>Ss(e)),[e]),vm(cf.Provider,{value:e,children:o})}function He(){return Fm(cf)??se()}var Ir=class extends Error{constructor(o,t,r={}){super(t??Lm[o],r.cause===void 0?void 0:{cause:r.cause}),this.name="WebsiteBackendError",this.kind=o,this.conflict=r.conflict,this.holder=r.holder,this.fields=r.fields}},Lm={unauthorized:"The editor's sign-in was refused.","changed-elsewhere":"This page was changed somewhere else.","lock-taken":"Somebody else is editing this page.","not-found":"This no longer exists.",invalid:"The request was refused.",unavailable:"The server could not be reached."};function hr(e,o){if(!e||typeof e!="object")return!1;let t=e;return t.name!=="WebsiteBackendError"||typeof t.kind!="string"?!1:o===void 0||t.kind===o}var gr=0,br=null;function aw(e){br=e}function Zo(e){return br?.read(e)??null}function uf(e,o){return br?.loadRefusal?.(e,o)??null}function pf(){return br?.unreachableMessage??"The server could not be reached."}var je="site-footer";var lw=je,sw={desktop:!0,tablet:!0,mobile:!0},fw={desktop:!1,tablet:!1,mobile:!1},Ga=1,mf=6,iw=Array.from({length:mf-Ga+1},(e,o)=>Ga+o),Sr={desktop:6,tablet:3,mobile:2},Am={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}},Eo=e=>Math.min(Math.max(Math.round(e),Ga),mf);function dw(e){if(typeof e=="number")return Am[Eo(e)]??{desktop:Eo(e),tablet:Eo(e),mobile:Eo(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Eo(o.desktop??Sr.desktop),tablet:Eo(o.tablet??Sr.tablet),mobile:Eo(o.mobile??Sr.mobile)}}return{...Sr}}function Om(e){let o=e?.content;return Array.isArray(o)?o.find(r=>!!r&&typeof r=="object"&&r.type==="Footer")??null:null}function cw(e){let o=e?.content;return Array.isArray(o)?o.find(r=>!!r&&typeof r=="object"&&r.type===Bm)??Om(e):null}var Bm="SiteFooter",Dm="SiteHeader";function uw(e){let o=e?.content;return Array.isArray(o)?o.find(r=>!!r&&typeof r=="object"&&r.type===Dm)??null:null}var Ua="sf-editor-footer-return";function mw(e){if(!(typeof window>"u"))try{window.sessionStorage.setItem(Ua,e)}catch{}}function Wa(){if(typeof window>"u")return null;try{return window.sessionStorage.getItem(Ua)}catch{return null}}function $a(){if(!(typeof window>"u"))try{window.sessionStorage.removeItem(Ua)}catch{}}import{accessForNewDocument as _m}from"efficient-easel/edit-lock";function xf(e){return e.failed?"error":e.pending?"saving":e.saved?"saved":"idle"}function hw(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function If(e,o){o.resetAutosave(),o.setVersion(null),o.setSaveConflict(null),o.setAccess(_m(e))}import{createContext as Nm,useContext as Mm,useEffect as Hm,useSyncExternalStore as Gm}from"react";import{jsx as Vm}from"react/jsx-runtime";var hf=Nm(null),Lt=null;function Sw({panel:e,children:o}){return Lt=e,Hm(()=>(Lt=e,()=>{Lt===e&&(Lt=null,yf(Ge?.request.requestId??"",null))}),[e]),Vm(hf.Provider,{value:e,children:o})}function yw(){return Mm(hf)}function gf(){return Lt!==null}var Ge=null,Va=new Set,bf=()=>{for(let e of[...Va])e()};function Sf(e){return new Promise(o=>{let t=Ge;Ge={request:e,resolve:o},bf(),t?.resolve(null)})}function yf(e,o){if(!Ge||Ge.request.requestId!==e)return;let{resolve:t}=Ge;Ge=null,bf(),t(o)}function Cw(){Ge&&yf(Ge.request.requestId,null)}function Um(e){return Va.add(e),()=>{Va.delete(e)}}var Wm=()=>Ge?.request??null,$m=()=>null;function kw(){return Gm(Um,Wm,$m)}var qa=new Map,Cf=0;function qm(){return Cf+=1,`mp-${typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():String(Cf)}`}function Ka(e,o){if(!e.connected)return Promise.resolve(null);let t=qm();return gf()?Sf({requestId:t,accept:o.accept,title:o.title,file:o.file??null}):new Promise(r=>{qa.set(t,r),e.send("storefront-editor:open-media-picker",{requestId:t,accept:o.accept,title:o.title,...o.file?{file:o.file}:{}})})}function za(e,o){let t=qa.get(e);t&&(qa.delete(e),t(o))}import{createContext as ax,useCallback as U,useContext as nx,useEffect as Re,useMemo as ln,useRef as de,useState as Le}from"react";function kf(e,o){let t=o?{siteId:o}:void 0;return{resolve:r=>e.load({slug:r,...t}),saveLayout:(r,a,n,l)=>e.save(r,{layout:a},{version:n,clientId:l??""}),rereadVersion:e.version?r=>e.version(r):void 0,publish:e.publish?(r,a)=>e.publish(r,a?{version:a}:void 0):void 0,listPages:()=>e.list(t),createPage:e.create?r=>e.create({...r,...t}):void 0,deletePage:e.remove?r=>e.remove(r):void 0}}function Rf(e,o=ke(),t=vt()){let r=xa(o),a=e?{siteId:e}:void 0,n=r?!!e:!0,l=o.site.update;return{capabilities:{canPublish:!!o.pages.publish,hasSiteSettings:r,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:r&&t.commerce&&t.service,explainsSiteSettings:!1,hasSiteRecord:n,canEditSiteRecord:n&&!!l,hasPreviewLink:r||!!o.preview,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...kf(o.pages,e),lock:o.lock,site:n?()=>o.site.get(a):void 0,updateSite:n&&l?s=>l(s,a):void 0,previewHref:o.preview?s=>o.preview.href(s):void 0}}function Tf(e,o=ke(),t=vt()){let r=xa(o),a=o.templates,n=a?a.pages(e):{list:()=>Promise.reject(new Error(Xa)),load:()=>Promise.reject(new Error(Xa)),save:()=>Promise.reject(new Error(Xa))};return{capabilities:{canPublish:!1,hasSiteSettings:!1,hasSiteTheme:!1,placeholderFrames:!0,mediaEditing:!1,pageCreationInAdminForm:!n.create,canDeletePagesInline:!!n.remove,hasEditLock:!1,hasEditGuard:!1,hasPinnedChrome:r&&t.commerce&&t.service,explainsSiteSettings:r,hasSiteRecord:!1,canEditSiteRecord:!1,hasPreviewLink:!1,hasCatalog:r&&t.commerce,hasForms:r&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...kf(n,void 0),publish:void 0,templateName:a?()=>a.get(e).then(l=>l.name):void 0}}var Xa="This editor's backend has no website templates.";import{EDIT_LOCK_TAKEN as Km}from"efficient-easel/edit-lock";var Ya="page_changed_elsewhere",zm={unauthorized:401,"changed-elsewhere":409,"lock-taken":409,"not-found":404,invalid:400,unavailable:gr};function ja(e){let o=Zo(e);if(o)return{status:o.status,data:o.data};if(!hr(e))return null;let t=Zo(e.cause);if(t)return{status:t.status,data:t.data};let r=zm[e.kind];return e.kind==="changed-elsewhere"?{status:r,data:{code:Ya,saved_by:e.conflict?.savedBy??"",saved_by_you:e.conflict?.savedByYou===!0,seconds_ago:e.conflict?.secondsAgo??0}}:e.kind==="lock-taken"?{status:r,data:{code:Km,holder_name:e.holder?.name??"",seconds_since_seen:e.holder?.secondsSinceSeen??0,seconds_since_held:e.holder?.secondsSinceHeld??0}}:{status:r,data:null}}function wf(e){return ja(e)?.status===401}var Ue="homepage";import{useEffect as Ff,useRef as Za,useState as Ef}from"react";var Xm="data-editor-theme";function Pf(e){typeof document>"u"||document.documentElement.setAttribute(Xm,"light")}var Ym=500,vf={canCreatePlatformTemplate:!1};function jm(e){return!e||typeof e!="object"?vf:{canCreatePlatformTemplate:e.canCreatePlatformTemplate===!0}}function Zm(e,o={}){let t=o.session??se();t.auth.token=e.token,t.auth.brandId=e.brandId??null,bs(t,e.siteId),(o.stampChromeTheme??!0)&&Pf(e.theme)}function Lf(e){let[o,t]=Ef(null),r=Za(null),[a,n]=Ef(vf),l=Za(e?.onAuth),s=Za(e?.onMessage);Ff(()=>{l.current=e?.onAuth,s.current=e?.onMessage});let f=zo(),d=He();return Ff(()=>{let p=f.subscribe(c=>{let x=c;if(x.type==="storefront-editor:auth"&&typeof x.token=="string"&&x.token){let I=!!r.current;r.current=x.token,t(x.token),Zm({...x,token:x.token},{stampChromeTheme:f.ownsDocument,session:d}),n(jm(x.can)),l.current?.(I)}else s.current?.(c)});if(f.send("storefront-editor:ready"),!d.usesBridgedToken)return p;let u=window.setInterval(()=>{r.current?window.clearInterval(u):f.send("storefront-editor:ready")},Ym);return()=>{p(),window.clearInterval(u)}},[f,d]),{token:o,tokenRef:r,capabilities:a}}var Qa=new Set,Ja=new Set,en=new Set;function Ww(e){return Qa.add(e),()=>Qa.delete(e)}function Af(){Qa.forEach(e=>e())}function $w(e){return Ja.add(e),()=>Ja.delete(e)}function Of(){Ja.forEach(e=>e())}function Vw(e){return en.add(e),()=>en.delete(e)}function on(){en.forEach(e=>e())}var tn=new Map,Qm=9e5,Bf=0;function Jm(){return Bf+=1,`fe-${typeof crypto<"u"&&"randomUUID"in crypto?crypto.randomUUID():String(Bf)}`}function Kw(e,o){e.connected&&e.send("storefront-editor:open-form",{mode:"edit",formId:o})}function zw(e,o){if(!e.connected)return Promise.resolve({status:"closed"});let t=Jm();return new Promise(r=>{let a=setTimeout(()=>Df(t,{status:"timeout"}),o.timeoutMs??Qm);tn.set(t,n=>{clearTimeout(a),r(n)}),e.send("storefront-editor:open-form",{requestId:t,mode:o.mode,...o.formId?{formId:o.formId}:{}})})}function Df(e,o){let t=tn.get(e);t&&(tn.delete(e),t(o))}function rn(e,o){Df(e,o?{status:"saved",form:o}:{status:"closed"})}function _f(e){switch(e?.type){case"storefront-editor:category-updated":return Af(),!0;case"storefront-editor:menus-updated":return Of(),!0;case"storefront-editor:form-saved":{let t=e;return on(),t.requestId&&rn(t.requestId,t.form??null),!0}case"storefront-editor:form-closed":{let t=e;return on(),t.requestId&&rn(t.requestId,null),!0}case"storefront-editor:media-picked":{let t=e;return t.requestId&&za(t.requestId,t.media??null),!0}case"storefront-editor:media-pick-cancelled":{let t=e;return t.requestId&&za(t.requestId,null),!0}default:return!1}}var ex={unauthorized:"the editor's sign-in was refused (unauthorized).","changed-elsewhere":"the page changed while it was being opened (changed-elsewhere).","lock-taken":"somebody else holds this page (lock-taken).","not-found":"this page no longer exists (not-found).",invalid:"the backend refused the request (invalid).",unavailable:"the backend could not be reached (unavailable)."};function an(e){if(hr(e))return Zo(e.cause)?an(e.cause):`${ex[e.kind]} ${e.message}`.trim();let o=Zo(e);return o?o.status===gr?`${pf()} (no response)`:o.status===401||o.status===403?`the editor's sign-in was refused (${o.status}). Reload the console and open the editor again; if it keeps happening the bridged token is not valid for this site.`:o.status===404?"this page no longer exists (404).":o.status>=500?`the server failed (${o.status}). ${o.message}`:`the server refused the request (${o.status}). ${o.message}`:e instanceof Error?`${e.name}: ${e.message}`:String(e)}function Nf(e,o){return uf(e,o)}var ox={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"};function tx(e){return Array.isArray(e)&&e.length>0&&e.every(o=>!!o&&typeof o=="object"&&typeof o.type=="string")}function nn(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(ox)){let n=r.indexOf("."),l=r.slice(0,n),s=r.slice(n+1);if(l!==e.type||!(s in o))continue;let f=o[s],d={...o};delete d[s],(!(a in d)||d[a]===void 0)&&(d[a]=f),o=d,t=!0}if(o){let r=o;for(let[a,n]of Object.entries(o)){if(!tx(n))continue;let l=n.map(nn);l.some((s,f)=>s!==n[f])&&(r===o&&(r={...o}),r[a]=l,t=!0)}o=r}return t?{...e,props:o}:e}function Mf(e){let o=e;if(!o||typeof o!="object")return e;let t=!1,r={...e};if(Array.isArray(o.content)){let a=o.content.map(nn);a.some((n,l)=>n!==o.content[l])&&(r.content=a,t=!0)}if(o.zones&&typeof o.zones=="object"){let a=!1,n=Object.fromEntries(Object.entries(o.zones).map(([l,s])=>{if(!Array.isArray(s))return[l,s];let f=s.map(nn);return f.some((d,p)=>d!==s[p])&&(a=!0),[l,f]}));a&&(r.zones=n,t=!0)}return t?r:e}import{canWriteDocument as vo,holderOf as lx,newEaselClientId as sx,reloadIfVersionMoved as fx}from"efficient-easel/edit-lock";import{useAutosave as ix}from"efficient-easel/autosave";import{createEditLock as rx}from"efficient-easel/edit-lock";var yr=rx({readFailure:ja,conflictCode:Ya});import{jsx as ux}from"react/jsx-runtime";var dx={content:[],root:{},zones:{}};function cx(e,o){if(e.kind!==o.kind)return!1;if(e.kind==="template"){let r=o;return e.id===r.id&&(e.pageSlug??Ue)===(r.pageSlug??Ue)}let t=o;return e.slug===t.slug&&e.siteId===t.siteId}var Qo=ax(null);function Hf(){let e=nx(Qo);if(!e)throw new Error("useStorefrontDocument must be used within StorefrontDocumentProvider");return e}function TP({target:e,children:o}){let[t,r]=Le(e),a=zo(),n=He(),l=ln(()=>ke(n),[n]),s=t.kind==="template",f=t.kind==="template"?t.id:null,d=t.kind==="template"?t.pageSlug??Ue:t.slug,p=t.kind==="page"?t.siteId??null:null,u=ln(()=>vt(n),[n]),c=ln(()=>t.kind==="template"?Tf(t.id,l,u):Rf(t.siteId,l,u),[l,u,t.kind,t.kind==="template"?t.id:t.siteId]),x=c.capabilities,I=U(h=>n.documentHooks?.stored?.(h)??h,[n]),g=t.kind==="page"?t.originSlug??null:null;Re(()=>{gs(n,p)},[n,p]);let y=de(t);Re(()=>{y.current=t},[t]);let{token:L,tokenRef:T,capabilities:k}=Lf({onMessage:h=>{if(_f(h))return;if(h?.type==="storefront-editor:navigate"){let G=h;G?.target&&hs(G.target)}}}),_=n.usesBridgedToken?L!==null:!0,$=c.lock,pe=!!l.lock,[v,oe]=Le(null),[oo,le]=Le(null),[M,Pe]=Le(null),[_e,ye]=Le(null),Z=de(null),[to,Ne]=Le(!1),b=de(null),[K,Q]=Le(null),z=de(null),[Ho,St]=Le(null),Fe=de(null);Re(()=>{Fe.current=Ho},[Ho]);let[Co,ro]=Le(x.hasEditLock?{kind:"checking"}:{kind:"editing"}),me=de(Co);Re(()=>{me.current=Co},[Co]);let ko=de(()=>Promise.resolve(!1)),Go=U(h=>{Z.current=h,Ne(!0)},[]),tr=ix({save:async({id:h,data:S})=>{if(!vo(me.current)){Go({id:h,data:S});return}if(!await ko.current(h,S)){if(!vo(me.current)){Go({id:h,data:S});return}throw new Error("page save did not land")}},onFailure:(h,S)=>{S===0&&a.send("storefront-editor:save-failed")}}),{state:xe,push:Ie,flush:te,pause:Ye,resume:Uo,stop:yt,reset:Ct,retryNow:rr,hasPending:Me}=tr,Ee=de(xe);Re(()=>{Ee.current=xe},[xe]);let Ro=xf(xe),Wo=U(()=>{let h=Z.current;h&&(Z.current=null,Ne(!1),Ie(h))},[Ie]),$o=de("");$o.current||($o.current=sx());let[ca,ua]=Le(0),C=de(!1),w=e.kind==="page"&&e.slug===je,[F,D]=Le(e.kind==="template"||w),Ce=de(!1);Re(()=>{if(Ce.current)return;Ce.current=!0;let h=a.address.search();if(e.kind==="page"&&e.slug===je){let S=Wa(),G=S&&S!==je?S:Ue;a.address.load({kind:"page",slug:G,siteId:e.siteId});return}if(e.kind==="template"){if(new URLSearchParams(h).get("editTemplate")==="1"){D(!1);return}a.address.load({kind:"page",slug:Ue})}},[e,a]);let X=a.send;Re(()=>{if(!_)return;let h=!1,S=c.resolve(d),G=n.documentHooks?.opening?.({slug:d,isTemplate:s,capabilities:x});return S.then(async B=>{if(h)return;if(!B){if(!s&&d!==Ue){a.address.load({kind:"page",slug:Ue,siteId:p??void 0});return}ye(s?"Couldn\u2019t open a page in this template.":`No storefront page with slug "${d}".`);return}oe(B.id),le(B.kind??null),z.current=B.version??null;let Y=B.layout,he=Y&&Object.keys(Y).length?Y:dx,ge=Mf(he),Cp=G?await G(ge):ge;h||Pe(Cp)}).catch(B=>{h||(console.error("[storefront-editor] document load failed",B),ye(Nf(B,{slug:d})??`Could not load the document \u2014 ${an(B)}`))}),()=>{h=!0}},[_,L,s,c,d]);let kt=U(h=>new Promise(S=>{let G=Date.now(),B=setInterval(()=>{let Y=T.current;Y&&Y!==h?(clearInterval(B),S(Y)):Date.now()-G>6e3&&(clearInterval(B),S(null))},200)}),[]),ie=U(async h=>{let S=T.current;if(!S&&n.usesBridgedToken)return{ok:!1,error:new Error("no editor token")};try{return{ok:!0,value:await h(S??"")}}catch(G){if(wf(G)){X("storefront-editor:auth-expired");let B=S?await kt(S):null;if(B)try{return{ok:!0,value:await h(B)}}catch(Y){return{ok:!1,error:Y}}}return{ok:!1,error:G}}},[X,kt,n]),up=U(async h=>{let S=T.current?await ie(h):{ok:!1,error:new Error("no editor token")};return S.ok||X("storefront-editor:save-failed"),S.ok},[X,ie]),ar=U(async(h,S,G=!1)=>{if(!vo(me.current)||Fe.current)return!1;let B=await ie(()=>c.saveLayout(h,S,z.current,$o.current));if(B.ok)return z.current=B.value.version??z.current,!0;let Y=yr.readLockTaken(B.error);if(Y){let ge={kind:"takenover",holder:Y};return me.current=ge,ro(ge),!1}let he=yr.readSaveConflict(B.error);if(he){if(he.savedByYou&&!G&&c.rereadVersion){let ge=await ie(()=>c.rereadVersion(h));if(ge.ok&&ge.value)return z.current=ge.value,ko.current(h,S,!0)}yt(),Fe.current=he,St(he)}return!1},[c,ie,yt]);Re(()=>{ko.current=ar},[ar]);let pp=U(h=>{if(X("storefront-editor:dirty"),!v)return;let S=I(h);if(b.current=S,!vo(me.current)){Go({id:v,data:S});return}Ie({id:v,data:S})},[v,X,Go,Ie,I]),Vo=U(async()=>(vo(me.current)&&Wo(),await te()&&Z.current==null),[Wo,te]),xs=de(Vo);Re(()=>{xs.current=Vo},[Vo]);let pa=de(ie);Re(()=>{pa.current=ie},[ie]);let ma=U(()=>{a.address.reload()},[a]),Is=de(()=>Promise.resolve(!1));Re(()=>{Is.current=()=>{let h=c.rereadVersion;return!v||!h?Promise.resolve(!1):fx({ours:z.current,stored:async()=>{let S=await pa.current(()=>h(v));return S.ok?S.value:null},hasPending:()=>Z.current!=null||Me(),reload:ma})}},[c,v,Me,ma]),Re(()=>{if(!$||!v||!_)return;let h=!1,S=null,G=$o.current,B=yr.makeClaimBeat({claim:async he=>{let ge=await pa.current(()=>$.claim(v,G,he));if(ge.ok)return{heartbeat_seconds:ge.value.heartbeatSeconds};throw ge.error},cancelled:()=>h,currentAccess:()=>me.current,heldWrite:()=>({pending:Z.current!=null||Me(),autoSaveEnabled:!Ee.current.paused,saveConflict:Fe.current!=null}),setAccess:he=>{me.current=he,ro(he)},releaseHeldWrite:()=>{xs.current()},startHeartbeat:he=>{S=setInterval(()=>{B(!1)},he)},stopHeartbeat:()=>{S&&(clearInterval(S),S=null)},reloadIfMoved:()=>{Is.current()}}),Y=C.current;return C.current=!1,Y||ro({kind:"checking"}),B(Y),()=>{h=!0,S&&clearInterval(S),$.release(v,G).catch(()=>{})}},[v,$,_,L,ca]);let mp=U(()=>{!$||!v||(C.current=!0,ua(h=>h+1))},[v,$]),xp=U(()=>{ro(h=>{let S=h.kind==="blocked"||h.kind==="takenover"?h.holder:null;return S?{kind:"readonly",holder:S}:h})},[]),Ip=U(()=>{Ee.current.paused?(vo(me.current)&&Wo(),Uo()):Ye()},[Wo,Ye,Uo]),hp=U(()=>{rr()},[rr]),To=U(h=>{if(b.current=null,If(h.kind!=="template"&&pe,{resetAutosave:()=>{Ct(),Z.current=null,Ne(!1)},setVersion:S=>{z.current=S},setSaveConflict:St,setAccess:ro}),h.kind==="page"){let S=Wa();h.slug!==je&&h.slug!==S&&$a()}else $a();r(h),oe(null),le(null),Pe(null),ye(null),a.address.show(h),h.kind==="page"&&h.slug!==je&&a.send("storefront-editor:navigated",{target:h})},[Ct,a,pe]),hs=U(h=>{if(cx(h,y.current))return;let S=Z.current!=null;if(!S&&!Me()){To(h);return}let G=Ee.current;if(S||G.paused||G.failed||G.stopped){Q(h);return}te().then(B=>{B?To(h):Q(h)})},[To,Me,te]),gp=U(()=>Q(null),[]),bp=U(()=>{Q(h=>(h&&To(h),null))},[To]),Sp=U(async()=>{let h=K;if(!h)return;await Vo()&&(Q(null),To(h))},[K,Vo,To]),yp=U(async h=>{if(!v||!vo(me.current)||Fe.current)return;let S=I(h);if(!await ar(v,S)){Fe.current||X("storefront-editor:save-failed");return}let B=c.publish;if(!x.canPublish||!B){X("storefront-editor:saved");return}let Y=await ie(()=>B(v,z.current??void 0));if(!Y.ok){X("storefront-editor:save-failed");return}z.current=Y.value.version??z.current,X("storefront-editor:published")},[v,c,x.canPublish,X,ar,ie,I]);return ux(Qo.Provider,{value:{target:t,adapter:c,capabilities:x,templateId:f,currentSlug:d,currentKind:oo,siteId:p,ready:_,token:L,tokenRef:T,notifyParent:X,bridgeCapabilities:k,runAuthed:up,docId:v,data:M,getLiveData:()=>b.current??M,footerOriginSlug:g,error:_e,redirecting:F,saveStatus:Ro,saveState:xe,autoSaveEnabled:!xe.paused,autoSaveStoppedByConflict:xe.stopped,hasUnsavedEdits:xe.pending||to,toggleAutoSave:Ip,retrySave:hp,onChange:pp,flushSave:Vo,onPublish:yp,access:Co,readOnly:lx(Co)!==null,takeOverEditing:mp,viewReadOnly:xp,saveConflict:Ho,reloadFromServer:ma,navigate:hs,pendingNav:K,cancelPendingNav:gp,discardAndNavigate:bp,saveAndNavigate:Sp},children:o})}import{useMemo as px}from"react";import{useEasel as mx}from"efficient-easel/easel";function Gf(e={}){let{dispatch:o}=mx(r=>r),t=e.readOnly===!0;return px(()=>{let r=(n,l,s)=>{let f=Po(l);return t||o({type:"insert",componentType:l,destinationZone:n,destinationIndex:s,id:f}),f},a=(n,l,s)=>{t||o({type:"replace",destinationZone:n,destinationIndex:l,data:s})};return{insertComponent:r,insertSection:(n,l)=>r(Ea,n,l),replaceComponent:a,seedChild:(n,l,s,f)=>{let d=r(n,s,l);a(n,l,{type:s,props:{id:d,...f}})},insertNode:(n,l,s)=>{let f=r(n,s.type,l);return a(n,l,{type:s.type,props:{...s.props,id:f}}),f},removeComponent:(n,l)=>{t||o({type:"remove",index:l,zone:n})},reorderComponent:(n,l,s)=>{t||o({type:"reorder",sourceIndex:l,destinationIndex:s,destinationZone:n})},duplicateComponent:(n,l)=>{t||o({type:"duplicate",sourceIndex:l,sourceZone:n})},select:n=>o({type:"setUi",ui:{itemSelector:n}}),setDocument:n=>{t||o({type:"setData",data:n})},commitDocument:n=>{t||o({type:"setData",data:()=>n,recordHistory:!0})}}},[o,t])}import{createContext as xx,useContext as Ix}from"react";var hx=xx("desktop"),sn=()=>Ix(hx);function fe(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 Uf(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function Wf(e,o){return typeof e=="boolean"?e:o}function Cr(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:fe(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var $f="cart-drawer",_P="cart-drawer";var gx={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 NP(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function MP(e){let o=e??{},t=gx;return{kickerBadge:fe(o.kickerBadge,t.kickerBadge),kickerText:fe(o.kickerText,t.kickerText),titleLead:fe(o.titleLead,t.titleLead),titleAccent:fe(o.titleAccent,t.titleAccent),subtitleEmpty:fe(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:fe(o.subtitleOne,t.subtitleOne),subtitleMany:fe(o.subtitleMany,t.subtitleMany),leadTimeValue:fe(o.leadTimeValue,t.leadTimeValue),shipsToFallback:fe(o.shipsToFallback,t.shipsToFallback),promises:Cr(o.promises,t.promises),emptyKicker:fe(o.emptyKicker,t.emptyKicker),emptyBody:fe(o.emptyBody,t.emptyBody)}}var bx=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],UP={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"},Sx={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"},WP={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 yx(e){return typeof e=="string"&&Tt.includes(e)?e:null}function Vf(e){let o={};for(let t of bx){let r=yx(e[Sx[t]]);r&&(o[t]=r)}return o}var Cx="subscribe-popup",XP="subscribe-popup";var kx=[Cx,je,$f];function zf(e){return kx.includes(e)}var Rx=["delay","scroll","exit"],Tx=["all","chosen"],wx=["visit","days","never"],Px=["right","left"],Fx={min:0,max:60},Ex={min:10,max:90},vx={min:1,max:90},dn={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:{}},H=fe,Lx=Uf,qf=Wf,Xf=Cr;function kr(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function fn(e,o,t){let r=Lx(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Ax(e){return typeof e.hideAfter=="string"?kr(wx,e.hideAfter,dn.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":dn.hideAfter}function Ox(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function Kf(e,o){if(e==null)return o;let t=r=>r.trim()?r:"";if(typeof e=="string")return t(e);if(typeof e=="object"&&"text"in e){let r=e.text;return typeof r=="string"?t(r):""}return o}function Bx(e,o){return Array.isArray(e)?Xf(e,[]):o}function Dx(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:H(r.label,""),value:H(r.value,"")}}).filter(t=>t.label||t.value):o}function YP(e){let o=e??{},t=dn;return{metaLabel:H(o.metaLabel,t.metaLabel),issueLabel:Kf(o.issueLabel,t.issueLabel),issueNumber:Kf(o.issueNumber,t.issueNumber),kicker:H(o.kicker,t.kicker),heading:H(o.heading,t.heading),deck:H(o.deck,t.deck),stats:Dx(o.stats,t.stats),formLabel:H(o.formLabel,t.formLabel),formHeading:H(o.formHeading,t.formHeading),formIntro:H(o.formIntro,t.formIntro),firstNameLabel:H(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:H(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:H(o.emailLabel,t.emailLabel),emailPlaceholder:H(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:H(o.interestsLabel,t.interestsLabel),interests:Xf(o.interests,t.interests),frequencyLabel:H(o.frequencyLabel,t.frequencyLabel),frequencies:Bx(o.frequencies,t.frequencies),submitText:H(o.submitText,t.submitText),finePrint:H(o.finePrint,t.finePrint),dismissText:H(o.dismissText,t.dismissText),emailInvalidText:H(o.emailInvalidText,t.emailInvalidText),submitErrorText:H(o.submitErrorText,t.submitErrorText),successHeading:H(o.successHeading,t.successHeading),successBody:H(o.successBody,t.successBody),keepBrowsingText:H(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:qf(o.autoOpen,t.autoOpen),autoOpenDelaySec:fn(o.autoOpenDelaySec,Fx,t.autoOpenDelaySec),trigger:kr(Rx,o.trigger,t.trigger),scrollPercent:fn(o.scrollPercent,Ex,t.scrollPercent),showOn:kr(Tx,o.showOn,t.showOn),showOnPages:Ox(o.showOnPages),hideAfter:Ax(o),hideDays:fn(o.hideDays,vx,t.hideDays),formSide:kr(Px,o.formSide,t.formSide),valuePanelOnPhone:qf(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:Vf(o)}}import{Fragment as At,jsx as ce,jsxs as Ot}from"react/jsx-runtime";var _x={eye:Ot(At,{children:[ce("path",{d:"M2 12s3-7 10-7 10 7 10 7-3 7-10 7S2 12 2 12z"}),ce("circle",{cx:"12",cy:"12",r:"2.6"})]}),"eye-off":ce("path",{d:"M3 3l18 18M10.6 10.6a2 2 0 002.8 2.8M9.4 5.2A9.7 9.7 0 0112 5c7 0 10 7 10 7a16 16 0 01-3.6 4.4M6.1 6.1A16 16 0 002 12s3 7 10 7a9.6 9.6 0 004.1-.9"}),search:Ot(At,{children:[ce("circle",{cx:"11",cy:"11",r:"7"}),ce("path",{d:"M21 21l-3.8-3.8"})]}),"external-link":Ot(At,{children:[ce("path",{d:"M14 4h6v6"}),ce("path",{d:"M20 4l-9 9"}),ce("path",{d:"M19 14v5a1 1 0 0 1-1 1H5a1 1 0 0 1-1-1V6a1 1 0 0 1 1-1h5"})]}),pencil:Ot(At,{children:[ce("path",{d:"M12 20h9"}),ce("path",{d:"M16.5 3.5a2.12 2.12 0 0 1 3 3L7 19l-4 1 1-4 12.5-12.5z"})]}),trash:Ot(At,{children:[ce("path",{d:"M3 6h18M8 6V4a2 2 0 0 1 2-2h4a2 2 0 0 1 2 2v2m2 0v14a2 2 0 0 1-2 2H7a2 2 0 0 1-2-2V6"}),ce("path",{d:"M10 11v6M14 11v6"})]}),"chevron-right":ce("path",{d:"M9 6l6 6-6 6"})};function Jo({name:e,size:o,strokeWidth:t=1.8,rounded:r=!1,className:a,style:n}){return ce("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:r?"round":void 0,strokeLinejoin:r?"round":void 0,className:a,style:n,"aria-hidden":"true",children:_x[e]})}import{createContext as Nx,useCallback as Mx,useContext as Hx,useState as Gx}from"react";import{jsx as Ux}from"react/jsx-runtime";var Yf={enabled:!0,title:"",subtitle:"",greeting:""},jf=Nx({chat:Yf,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function oF({children:e,chat:o=Yf,onChatChange:t}){let[r,a]=Gx(!1),n=Mx(f=>t?.(f),[t]),{select:l,setSelectHandler:s}=ws();return Ux(jf.Provider,{value:{chat:o,setChat:n,selected:r,setSelected:a,select:l,setSelectHandler:s},children:e})}var tF=()=>Hx(jf);import{createContext as Wx,useCallback as Zf,useContext as $x,useMemo as Vx,useRef as qx}from"react";import{jsx as zx}from"react/jsx-runtime";var Kx=Object.fromEntries(Os.map(e=>[e,{value:"",error:null}])),Qf=Wx({links:Bs,rows:Kx,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function sF({children:e,value:o}){let t=qx(()=>{}),r=Zf(()=>t.current(),[]),a=Zf(l=>{t.current=l},[]),n=Vx(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return zx(Qf.Provider,{value:n,children:e})}var fF=()=>$x(Qf);var uF="Scrolling Bar",{Provider:pF,useSelection:Jf}=lr("selectedHeroId");import{BlockBannerIcon as jx,BlockBoxIcon as Zx,BlockButtonIcon as Qx,BlockDividerIcon as oi,BlockFooterIcon as ti,BlockHeadingIcon as Jx,BlockProductIcon as eI,BlockSocialIcon as oI,BlockTextIcon as tI,ChatIcon as rI,GridIcon as aI,ImageIcon as nI,PageIcon as lI}from"efficient-easel/icons";import{Fragment as Xx,jsx as cn,jsxs as Yx}from"react/jsx-runtime";var ei=Yx(Xx,{children:[cn("circle",{cx:"9",cy:"20",r:"1.3"}),cn("circle",{cx:"18",cy:"20",r:"1.3"}),cn("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{Fragment as P,jsx as m,jsxs as E}from"react/jsx-runtime";var sI={header:E(P,{children:[m("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),m("path",{d:"M3 9.5h18"})]}),website:E(P,{children:[m("circle",{cx:"12",cy:"12",r:"9"}),m("path",{d:"M3 12h18M12 3c2.6 2.7 2.6 15.3 0 18M12 3c-2.6 2.7-2.6 15.3 0 18"})]}),social:E(P,{children:[m("circle",{cx:"6",cy:"12",r:"2.5"}),m("circle",{cx:"18",cy:"6",r:"2.5"}),m("circle",{cx:"18",cy:"18",r:"2.5"}),m("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:E(P,{children:[m("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),m("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:E(P,{children:[m("path",{d:"M4 15.5h6M4 18h4"}),m("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:m("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:E(P,{children:[m("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),m("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:m("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:E(P,{children:[m("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),m("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:E(P,{children:[m("circle",{cx:"11",cy:"11",r:"6"}),m("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:ei,CountrySwitchBlock:E(P,{children:[m("circle",{cx:"12",cy:"12",r:"8.5"}),m("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),LegalLineBlock:E(P,{children:[m("path",{d:"M3 9h18"}),m("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:E(P,{children:[m("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),m("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:E(P,{children:[m("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),m("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:E(P,{children:[m("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),m("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),m("path",{d:"M7 17h7"})]}),Collections:E(P,{children:[m("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),m("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),m("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:E(P,{children:[m("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),m("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:E(P,{children:[m("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),m("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),m("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),m("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),m("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:E(P,{children:[m("path",{d:"M3 7h9M15.5 7H21"}),m("circle",{cx:"13.5",cy:"7",r:"1.7"}),m("path",{d:"M3 12h4M10.5 12H21"}),m("circle",{cx:"8.5",cy:"12",r:"1.7"}),m("path",{d:"M3 17h9M15.5 17H21"}),m("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:E(P,{children:[m("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),m("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),m("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),m("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),m("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),m("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:E(P,{children:[m("path",{d:"M3 5h10"}),m("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),m("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),m("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:E(P,{children:[m("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),m("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),m("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:E(P,{children:[m("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),m("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),m("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),m("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:E(P,{children:[m("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),m("circle",{cx:"9",cy:"10",r:"1.6"}),m("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:E(P,{children:[m("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),m("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:E(P,{children:[m("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),m("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),m("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:E(P,{children:[m("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),m("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:E(P,{children:[m("path",{d:"M3.5 20h17"}),m("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:E(P,{children:[m("circle",{cx:"6",cy:"12",r:"2.6"}),m("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),m("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:E(P,{children:[m("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),m("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:E(P,{children:[m("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),m("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:E(P,{children:[m("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),m("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:E(P,{children:[m("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),m("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:E(P,{children:[m("path",{d:"M4 8.5h4.5M11 8.5h9"}),m("path",{d:"M4 14.5h16"})]}),HeroGroup:E(P,{children:[m("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),m("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:E(P,{children:[m("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),m("path",{d:"M6.5 9h11M6.5 12.5h11"}),m("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:m(P,{children:m("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:E(P,{children:[m("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),m("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:E(P,{children:[m("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),m("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),m("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),m("path",{d:"M4 13.5h11M4 17.5h7"}),m("path",{d:"M17 15l3 2-3 2"})]}),CustomHTML:m("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},fI=m("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),iI={footer:ti,Footer:ti,Divider:oi,FooterDivider:oi,Banner:jx,Flex:Zx,FooterSocial:oI,page:lI,chat:rI,Heading:Jx,Text:tI,ImageBlock:nI,ButtonBlock:Qx,Grid:aI,ProductRef:eI},dI={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",SiteHeader:"header",SiteFooter:"footer"};function cI({type:e,size:o=16,className:t}){let r=dI[e]??e,a=iI[r];return a?m(a,{size:o,className:t}):m("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:sI[r]??fI})}function CF(){return{type:uo,props:{id:Po(uo)}}}function kF(e){let o=[];for(let t of e){let r=o[o.length-1];r&&r.group===t.group?r.items.push(t):o.push({group:t.group,items:[t]})}return o}var ri=[{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"}],uI=ri.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),pI="FooterGroup",ai="blocks";function ni(e){return e===Ft?ri:e===pI?uI:null}function RF(){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"})]})]}import{createContext as mI,useContext as xI}from"react";import{jsx as II}from"react/jsx-runtime";var li=mI(null);function PF({value:e,children:o}){return II(li.Provider,{value:e,children:o})}function FF(){return xI(li)}function DF(e,o=0){let t=gI(e,o),r=t?Ma():null;return t&&r?hI(t,r):t}function hI(e,o){if(e.spec)return o.offers(e.spec.childType)?e:null;let t=e.choices??[],r=t.filter(a=>o.offers(a.type));return r.length===t.length?e:r.length>0?{...e,choices:r}:null}function gI(e,o){let t=po[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let r=Ms(e,o);if(r)return{source:"container",slot:r.slot,choices:r.choices,spec:null};let a=ni(e);return a?{source:"footer",slot:ai,choices:a,spec:null}:null}import{applyMark as qF,markupTools as KF,MARKUP_TOOLS as zF,COPY_FIELD_TOOLS as XF,STOREFRONT_MARKUP as YF,tokenizeInline as jF,stripInline as ZF,isSafeLinkHref as QF}from"efficient-easel/markup";import{applyMark as bI,markedAt as SI,markupTools as yI,MARKUP_TOOLS as CI,parseMarkup as kI,RETIRED_MARKS as RI,STOREFRONT_MARKUP as TI,tokenizeInline as UF}from"efficient-easel/markup";var Rr=["highlight","strong","quiet"],Lo={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},We={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},si=Object.fromEntries(Rr.map(e=>[We[e].kind,e])),fi="data-sf-ws",pn=["accent","text","labels"],ii={accent:"Accent",text:"Text",labels:"Labels"},mo={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"};var un={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},MF={highlight:{...un},strong:{...un},quiet:{...un}};var ci=Rr.map(e=>({open:We[e].delimiter,close:We[e].delimiter,kind:We[e].kind})),ui=[{style:We.highlight.kind,label:Lo.highlight,title:`${Lo.highlight} word style`},{style:We.strong.kind,label:Lo.strong,title:`${Lo.strong} word style`},{style:We.quiet.kind,label:Lo.quiet,title:`${Lo.quiet} word style`}],wI=new Set(ci.map(e=>e.open)),pi=[...TI.filter(e=>!wI.has(e.open)),...ci];function mn(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function xn(e){return kI(typeof e=="string"?e:"",pi)}var PI=["quiet"],di=[...CI.map(e=>e.style).filter(e=>!PI.includes(e)&&!RI.includes(e)),...ui.map(e=>e.style)].filter(e=>pi.some(o=>o.kind===e));function mi(){return[...yI(di),...ui].filter(e=>di.includes(e.style))}var xi=Object.fromEntries(Rr.map(e=>[We[e].kind,We[e].delimiter]));function Ii(e,o,t,r){let a=xi[r];if(!a)return bI(e,o,t,r);let n=e.slice(o,t),l=e.slice(Math.max(0,o-a.length),o),s=e.slice(t,t+a.length);if(l===a&&s===a)return{text:e.slice(0,o-a.length)+n+e.slice(t+a.length),selectionStart:o-a.length,selectionEnd:o-a.length+n.length};let f=n||"styled text";return{text:e.slice(0,o)+a+f+a+e.slice(t),selectionStart:o+a.length,selectionEnd:o+a.length+f.length}}function hi(e,o,t,r){let a=xi[r];return a?o>=a.length&&e.slice(o-a.length,o)===a&&e.slice(t,t+a.length)===a:SI(e,o,t,r)}function Ao(e){return xn(e).map(o=>mn(o)+gi(o.children)).join(`
3
- `)}function gi(e){return e.map(o=>o.kind==="text"?o.text:gi(o.children)).join("")}import{useRef as bl,useState as Sl}from"react";import{useEasel as dt}from"efficient-easel/easel";function Ze(e){return e&&typeof e=="object"?{text:e.text??"",hidden:!!e.hidden}:{text:typeof e=="string"?e:"",hidden:!1}}function et(e){return Ze(e).text}var bi="50% 50%";var tt=e=>e<0?0:e>100?100:Math.round(e);function In(e){let o=String(e??"").trim().split(/\s+/);if(o.length!==2)return{x:50,y:50};let t=n=>{let l=/^(-?\d+(?:\.\d+)?)%$/.exec(n);return l?Number(l[1]):null},r=t(o[0]),a=t(o[1]);return r===null||a===null?{x:50,y:50}:{x:tt(r),y:tt(a)}}function ot(e,o){return`${tt(e)}% ${tt(o)}%`}function Si(e,o,t=!1){let r=t?10:1,{x:a,y:n}=In(e);switch(o){case"ArrowLeft":return ot(a-r,n);case"ArrowRight":return ot(a+r,n);case"ArrowUp":return ot(a,n-r);case"ArrowDown":return ot(a,n+r);default:return null}}function yi(e,o,t){return!(e.width>0)||!(e.height>0)?{x:50,y:50}:{x:tt((o-e.left)/e.width*100),y:tt((t-e.top)/e.height*100)}}var V="__text",Bt="__link",Dt="__scaffold";import{useCallback as LI,useEffect as AI,useRef as OI,useState as BI}from"react";import{useEasel as DI}from"efficient-easel/easel";import{SettingsAction as _I}from"efficient-easel/panel";function hn(e){return typeof e=="number"&&Number.isFinite(e)}function rE(e,o){if(!hn(e))return;let t=sr(so(e));if(Object.keys(t).length===0)return;let r=t[Tr];if(typeof r!="string")return t;let a=rt(o)?at(r,Te(o)??[]):r;return{...t,[FI]:a}}var FI="--sf-section-radius",Tr="--sf-card-radius",be=["tl","tr","br","bl"];function Te(e){if(!Array.isArray(e))return null;let o=e.filter(t=>be.includes(t));return be.filter(t=>o.includes(t))}function rt(e){let o=Te(e);return o!==null&&o.length<be.length}function at(e,o){return be.map(t=>o.includes(t)?e:"0").join(" ")}var xo="Which corners",nt=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];function wr(e){let o=t=>e.includes(t);if(e.length===be.length)return"All four";if(e.length===0)return"None";if(e.length===1)return nt.find(t=>t.value===e[0])?.label??"1 corner";if(e.length===2){if(o("tl")&&o("tr"))return"Top two";if(o("bl")&&o("br"))return"Bottom two";if(o("tl")&&o("bl"))return"Left two";if(o("tr")&&o("br"))return"Right two"}return`${e.length} corners`}var EI="--sf-card-box-radius",vI="--sf-site-card-radius",sE="sf-section-bleeds";function _t(e){return typeof e=="number"&&Number.isFinite(e)}function fE(e,o){if(!_t(e))return;let t=sr(so(e))[Tr];if(typeof t!="string")return;let r=rt(o)?at(t,Te(o)??[]):t;return{[EI]:r}}function iE(e){let o=e[Tr];return typeof o=="string"?{[vI]:o}:{}}function Ci(e,o){let t=e.find(n=>n?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides;return e.map(n=>n?.props?.id===o?n:{...n,props:{...n.props,cardCorners:r,cardCornerSides:a}})}function ki(e,o,t){let r=t?.zone??"",a=r.lastIndexOf(":"),n=a>0?r.slice(0,a):"",l=a>0?r.slice(a+1):"",s=n?Vs(e,o,n):null,f=s&&Array.isArray(s.item.props[l])?s.item.props[l]:[],d=t?.index??-1,p=d>=0?f[d]:void 0,u=p?.props?.id?String(p.props.id):"",c=Math.max(f.length-1,0);return!s||!u?{can:!1,reason:"unreachable",others:0}:f.length<=1?{can:!1,reason:"alone",others:c}:_t(p?.props?.cardCorners)?{can:!0,others:c,zone:s.zone,index:s.index,data:{...s.item,props:{...s.item.props,[l]:Ci(f,u)}}}:{can:!1,reason:"unset",others:c}}function Ri(e){if(!e.can)return e.reason==="alone"?"This is the only card in the section.":e.reason==="unset"?"Set this card's corners first.":"This card is not in a section that can share corners.";let o=e.others;return`Gives the other ${o===1?"card":`${o} cards`} this card's Corners and Which corners.`}function Ti(e){return`Applied to ${e} ${e===1?"card":"cards"}`}function wi(e,o){e.can&&o(e.zone,e.index,e.data)}import{jsx as Pi}from"react/jsx-runtime";var NI=2200,MI="apply-corners-to-siblings",HI="Apply to all cards";function GI({plan:e,doneCount:o,onPress:t}){return Pi(_I,{id:MI,label:HI,note:Ri(e),disabled:!e.can,done:o!==null,doneLabel:Ti(o??0),onPress:t})}function gn(){let{appState:e,config:o}=DI(f=>f),t=Gf(),[r,a]=BI(null),n=OI(null);AI(()=>()=>{n.current&&clearTimeout(n.current)},[]);let l=ki(o,e.data.content??[],e.ui.itemSelector),s=LI(()=>{wi(l,t.replaceComponent),l.can&&(a(l.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>a(null),NI))},[l,t]);return Pi(GI,{plan:l,doneCount:r,onPress:s})}import{jsx as Nt,jsxs as Fi}from"react/jsx-runtime";function Pr({label:e,onClear:o,what:t="override"}){return Nt("button",{type:"button",className:"sf-part-mark",title:`Clear ${t}`,"aria-label":`Clear ${t}: ${e}`,onClick:o,children:Nt(UI,{})})}function UI(){return Fi("svg",{width:"12",height:"12",viewBox:"0 0 16 16","aria-hidden":"true",children:[Nt("circle",{className:"sf-part-mark-dot",cx:"8",cy:"8",r:"3",fill:"currentColor"}),Fi("g",{className:"sf-part-mark-arrow",fill:"none",stroke:"currentColor",strokeWidth:1.8,strokeLinecap:"round",children:[Nt("path",{d:"M13 8a5 5 0 1 1-1.6-3.7"}),Nt("path",{d:"M13 2.5V5h-2.6"})]})]})}var Ei=1;function WI(e){return so(e)}function TE(e){let o=WI(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var vi=1,Li="Corners";function $I(e){return so(e)}function EE(e,o){let t=$I(e);if(t===null)return null;let r=`${t}px`;return{borderRadius:rt(o)?at(r,Te(o)??[]):r}}var $e={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]]}},bn=Object.keys($e),Oi=[2,3,4,6];function Bi(e){return typeof e!="string"||e===""?null:$e[e]??null}function Ai(e,o){return o?6/e.acrossPhone:12/e.across}var VI="sf-wall--";function qI(e){return`${VI}${e}`}function LE(e){let o=$e[e],t=`.${qI(e)}`,r=[],a=(n,l)=>{let s=[],f=n.length;n.forEach(([d,p],u)=>{s.push(`${t} > :nth-child(${f}n+${u+1}){grid-column:span ${d};grid-row:span ${p}}`)});for(let d=1;d<f;d+=1)s.push(`${t}:has(> :nth-child(${f}n+${d}):last-child) > :nth-last-child(-n+${d}){grid-column:span ${l};grid-row:span 1}`);return s};return r.push(`${t}{grid-template-columns:repeat(12,minmax(0,1fr))}`),r.push(...a(o.desktop,Ai(o,!1))),r.push("@media (max-width:800px){"),r.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),r.push(...a(o.phone,Ai(o,!0))),r.push("}"),r.join("")}var Fr=12,Di=1,KI=3;var zI=3;function Sn(e,o,t){let r=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(r)?Math.min(t,Math.max(o,Math.trunc(r))):null}function XI(e){return Sn(e,1,Fr)??zI}function BE(e,o){let t=Sn(e,Di,KI);return t??(XI(o)===4?2:Di)}function DE(e){return e==null||e===""?null:Sn(e,1,Fr)}var _E="data-sf-span";function NE(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Bi(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{AlignLeftIcon as Mb,AlignSeparateIcon as Hb,AnimationIcon as hc,BackgroundIcon as Gb,CartIcon as Ub,ColumnWidthsIcon as gc,ColumnsIcon as Wb,CornerIcon as bc,DirectionDownIcon as $b,DirectionLeftIcon as Vb,DirectionRightIcon as qb,DirectionUpIcon as Kb,DollarIcon as zb,FinishIcon as Xb,GapIcon as Sc,GridIcon as Yb,GroundIcon as jb,HashIcon as yc,ImageIcon as Zb,LayoutIcon as Qb,ListIcon as Jb,LocationIcon as hl,PaddingBottomIcon as eS,PaddingLeftIcon as oS,PaddingRightIcon as tS,PaddingTopIcon as rS,PageIcon as Cc,PhoneIcon as aS,PlacementIcon as nS,ProductSizeIcon as lS,RotateIcon as sS,SquareIcon as fS,StylesIcon as iS,TextLinesIcon as dS,WidthIcon as cS,WrapIcon as uS}from"efficient-easel/icons";import{TitleIcon as YI,ButtonIcon as jI,DollarIcon as ZI,HashIcon as QI,LinkIcon as JI,NoteIcon as eh,TagIcon as oh,TextLinesIcon as th}from"efficient-easel/icons";import{Fragment as Ve,jsx as A,jsxs as qe}from"react/jsx-runtime";var _i={body:th,button:jI,link:JI,label:oh,number:QI,price:ZI,note:eh,title:YI},Ni={eyebrow:qe(Ve,{children:[A("path",{d:"M5 6.5h5"}),A("path",{d:"M5 12.5h14"}),A("path",{d:"M5 18h11"})]}),heading:qe(Ve,{children:[A("path",{d:"M6.5 5v14"}),A("path",{d:"M17.5 5v14"}),A("path",{d:"M6.5 12h11"})]}),intro:qe(Ve,{children:[A("path",{d:"M4 5.5v13"}),A("path",{d:"M8 7.5h12"}),A("path",{d:"M8 12h12"}),A("path",{d:"M8 16.5h8"})]}),value:qe(Ve,{children:[A("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),A("path",{d:"M6.5 12h7"})]}),name:qe(Ve,{children:[A("path",{d:"M6 3.5v17"}),A("path",{d:"M6 5h11.5l-2.6 3.6L17.5 12H6z"})]}),date:qe(Ve,{children:[A("rect",{x:"4",y:"5.5",width:"16",height:"15",rx:"2"}),A("path",{d:"M4 10.5h16"}),A("path",{d:"M9 3.2v4.4"}),A("path",{d:"M15 3.2v4.4"})]}),caption:qe(Ve,{children:[A("rect",{x:"3.5",y:"4.5",width:"17",height:"11",rx:"2"}),A("path",{d:"M3.5 12.8l4.2-3.2 3.6 2.8 3.4-2.4 5.8 4"}),A("path",{d:"M6.5 19.5h11"})]}),quote:qe(Ve,{children:[A("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),A("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:qe(Ve,{children:[A("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),A("path",{d:"M8 9.5h8"}),A("path",{d:"M12 9.5v5"})]}),meta:qe(Ve,{children:[A("path",{d:"M4 7h16"}),A("path",{d:"M4 14h3.5"}),A("path",{d:"M10.5 14h3"}),A("path",{d:"M17 14h3"})]})};function yn({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=_i[e];return n?A("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:A(n,{size:o})}):A("svg",{className:r,style:a,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:Ni[e]})}var GE=Object.keys(_i);var UE=Object.keys(Ni);var rh="#ffffff",ah=/^#[0-9a-fA-F]{6}$/;function Cn(e){return nh(e)?e:rh}function nh(e){return typeof e=="string"&&ah.test(e)}function VE(e){return{"--bg":Cn(e)}}var lh="sf-section-accent",Mi="Color",Hi=new Set(["CategoryBar","DocTabs"]),KE=new Set(["Flex"]),sh=0;function kn(e){return e===-1?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:sh}function zE(e){return e??-1}function fh(e){let o=`--theme-preset-${e}`;return{"--sf-sec-accent":`var(${o}-accent)`,"--sf-sec-accent-2":`var(${o}-accent-2)`,"--sf-sec-accent-ink":`var(${o}-accent-ink)`,"--sf-sec-bg":`var(${o}-bg, var(--theme-bg))`,"--sf-sec-fg":`var(${o}-fg, var(--theme-fg))`,"--sf-sec-surface":`var(${o}-surface, var(--theme-surface))`,"--sf-sec-surface-2":`var(${o}-surface-2, var(--theme-surface-2))`,"--sf-sec-line":`var(${o}-line, var(--theme-line))`,"--sf-sec-muted":`var(${o}-muted, var(--theme-muted))`}}function XE(e){let o=kn(e.sectionAccent);return o===null?null:{className:lh,style:fh(o)}}var ih=["fade","rise","scale"],Rn="none",Gi=[{label:"None",value:Rn},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function ZE(e){return ih.includes(e)?e:null}var Ui="data-sf-anim",Mt="data-sf-anim-state";function QE(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(Ui))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(Mt,"armed");let r=new IntersectionObserver(a=>{for(let n of a)if(n.isIntersecting){r.disconnect(),dh(e);break}},{threshold:0});return r.observe(e),()=>{r.disconnect(),e.removeAttribute(Mt)}}function dh(e){if(!e.getAttribute(Ui))return;e.removeAttribute(Mt),e.offsetWidth,e.setAttribute(Mt,"play");let o=t=>{t.target===e&&(e.removeAttribute(Mt),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var JE=Hi;function wn(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let a=r.props;if(a?.id===o)return null;if(Tn(r,o,0))return a??{}}return null}function Tn(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Tn(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Tn(a,o,t+1))}import{SettingsCorners as kc,SettingsField as W,SettingsGroupHead as pS,SettingsGroupSub as mS,SettingsPlacement as xS,SettingsSegmented as IS,SettingsSwitch as hS}from"efficient-easel/panel";import{FieldSelect as gS,ListField as bS}from"efficient-easel/fields";import{ColourPicker as uh}from"efficient-easel/pick";import{typedHex as ch}from"efficient-easel/pick";function Wi(e){let o=new Set,t=[];return wt(e).themes.forEach((r,a)=>{let n=[[`Theme ${a+1} main color`,r.accent],[`Theme ${a+1} text color`,r.text],[`Theme ${a+1} background`,r.background]];for(let[l,s]of n){let f=s?ch(s):null;!f||o.has(f)||(o.add(f),t.push({name:l,value:f}))}}),t}import{jsx as $i}from"react/jsx-runtime";function Qe({value:e,onChange:o,label:t,id:r,caption:a,ariaLabel:n}){return $i(ph,{value:e,onChange:o,label:n??t,id:r,caption:a})}function ph({value:e,onChange:o,label:t,id:r,caption:a}){let{theme:n}=fo();return $i(uh,{value:e,onChange:o,label:t,id:r,caption:a,theme:Wi(n)})}import{useEffect as mh,useState as xh}from"react";import{MarkBar as Ih,markSelection as hh,useCaretEdit as gh}from"efficient-easel/copy";import{RevertIcon as bh}from"efficient-easel/icons";import{Fragment as Er,jsx as ae,jsxs as vr}from"react/jsx-runtime";function Sh({style:e}){let o=t=>ae("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(ae("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(vr(Er,{children:[ae("line",{x1:"10",y1:"5",x2:"19",y2:"5"}),ae("line",{x1:"5",y1:"19",x2:"14",y2:"19"}),ae("line",{x1:"14",y1:"5",x2:"10",y2:"19"})]}));case"strike":return o(vr(Er,{children:[ae("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"}),ae("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"}),ae("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]}));case"highlight":return o(vr(Er,{children:[ae("path",{d:"M14.5 4.5l5 5-8 8H6.5v-5z"}),ae("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]}));case"quiet":return o(vr(Er,{children:[ae("path",{d:"M12 4.5l5.5 7.5L12 19.5 6.5 12z"}),ae("line",{x1:"9.4",y1:"12",x2:"14.6",y2:"12"})]}));default:return null}}var yh=["bold","italic","strike","highlight"],Ch=Object.fromEntries(yh.map(e=>[e,ae(Sh,{style:e},e)])),Vi="Clear formatting";function kh(e,o,t){return hh(e,o,t,Ii)}function Rh(e){let[o,t]=xh(null);return mh(()=>{let r=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!r)return;let a=()=>{let n=e.current;if(!n||r.activeElement!==n)return;let l=n.selectionStart??n.value.length,s=n.selectionEnd??l;t(f=>f&&f.start===l&&f.end===s?f:{start:l,end:s})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function Th({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=gh({target:e,onChange:t}),[l,s]=Rh(e),f=c=>n(x=>{let I=kh(o,c,x);return s({start:I.selectionStart,end:I.selectionEnd}),I}),d=mi(),p={};if(l)for(let c of d)p[c.style]=hi(o,l.start,l.end,c.style);let u=Ao(o);return ae(Ih,{tools:d,onApply:f,pressed:p,disabled:r,glyphs:Ch,ariaLabel:a,actions:ae("button",{type:"button",className:"sf-markup-btn sf-markup-clear",onMouseDown:c=>c.preventDefault(),onClick:()=>t(u),disabled:r||u===o,title:Vi,"aria-label":Vi,children:ae(bh,{size:14})})})}var Pn=Th;import{jsx as Ph}from"react/jsx-runtime";var wh="data-sf-no-control";function qi(){return Ph("span",{[wh]:"",hidden:!0})}var Ki="__noControl";function Iv(e){return e?.[Ki]??null}function Lr(e,o){return{...e,[Ki]:o}}import{jsx as Oo}from"react/jsx-runtime";function Fh(e){return e==="mobile"?"mobile":"desktop"}var Eh={desktop:null,tablet:"Tablet uses the desktop settings.",mobile:"Showing the phone settings for this section."},vh="data-sf-device-hidden";function zi(){return Oo("span",{hidden:!0,[vh]:""})}function Lh({tier:e,render:o,...t}){let r=sn();return Fh(r)===e?Oo(o,{...t}):Oo(zi,{})}var Xi="__device";function Fn(e){return e?.[Xi]??null}function yv(e){return Fn(e)?.inner??e}function Ae(e,o){let t=o.render,r=a=>Oo(Lh,{tier:e,render:t,...a});return{...o,[Xi]:{tier:e,inner:o},render:r}}function Ah(){let e=Eh[sn()];return e?Oo("div",{className:"sf-device-scope",children:e}):Oo(zi,{})}function Cv(){return Lr({type:"custom",render:()=>Oo(Ah,{})},"always")}function Ht(e){return`${e}Phone`}function Ar(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}import{createContext as _h,useContext as Nh}from"react";var Yi={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},ji={Events:["posts"],SubscribeBlogs:["posts"]};var Oh=["anchor"],Bh=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Gt(e){return Oh.includes(e)||Bh.test(e)}var Dh={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"}}};Dh.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var Fv=Object.fromEntries(Object.entries(Yi).map(([e,o])=>[e,Object.keys(o)])),Ev=Object.fromEntries(Object.entries(ji).map(([e,o])=>[e,[...o]]));import{Fragment as Hh,jsx as En}from"react/jsx-runtime";var Zi=_h(!1);function Bv({children:e}){return En(Zi.Provider,{value:!0,children:e})}function Mh(){return Nh(Zi)}function Qi({name:e,children:o}){return!Mh()||!e||Gt(e)?En(Hh,{children:o}):En(qi,{})}var vn="Enter",Gh="Escape",Uh=/^[+-]?(?:\d+(?:\.\d+)?|\.\d+)$/,Wh=/(px|%)$/i;function $h(e,o,t,r){let a=e.trim().replace(/\s+/g,"").replace(Wh,"");if(!Uh.test(a))return null;let n=Number(a);if(!Number.isFinite(n))return null;let l=Math.min(t,Math.max(o,n));if(!(r>0))return l;let s=o+Math.round((l-o)/r)*r,f=Math.min(t,Math.max(o,s));return Number(f.toFixed(4))}function Ln(e,o,t,r,a){return e===vn?{handled:!0,editing:!1,commit:$h(o,t,r,a)}:e===Gh?{handled:!0,editing:!1,commit:null}:{handled:!1,editing:!0,commit:null}}function Io(e,o,t){return e.some(a=>(typeof a=="object"?a.value:a)===t)?t:o}var An="off",On="none",Bn=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],Dn=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function Gv(e){return Io(Bn,An,e)}function Uv(e){return Io(Dn,On,e)}var Ji="sf-card-index",Ut="sf-card-index",Wv="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",Vh={plain:`counter(${Ut})`,padded:`counter(${Ut}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Ut}, decimal-leading-zero)`};function $v(e,o){return o==="off"?"":`.${e}{counter-reset:${Ut}}.${e} .${Ji}{counter-increment:${Ut}}.${e} .${Ji}::before{content:${Vh[o]}}`}function Vv(e){return e==="hairline"?"border border-line hover:border-accent":""}var ed=[{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"}];var od={text:"scalar",textarea:"scalar",plainText:"scalar",copyText:"scalar",plainTextarea:"scalar",textList:"list"},Bo=Object.entries(od).filter(([,e])=>e==="scalar").map(([e])=>e);import{useRef as rd,useState as zh}from"react";import{ChevronIcon as qh}from"efficient-easel/icons";import{jsx as Ke,jsxs as td}from"react/jsx-runtime";function _n({styleKey:e,label:o,icon:t,value:r,sampleStyle:a,open:n,onToggle:l,saved:s=!1,children:f}){return td("div",{"data-sf-style-row":e,className:`sf-style-row${n?" is-open":""}`,children:[td("button",{type:"button",className:"sf-style-head","aria-expanded":n,onClick:l,children:[Ke("span",{className:"sf-style-caret","aria-hidden":"true",children:Ke(qh,{size:13})}),t?Ke("span",{className:"es-field-icon",children:t}):null,Ke("span",{className:"sf-style-name",children:o}),r!=null?Ke("span",{className:"sf-style-sample",style:a,title:typeof r=="string"?r:void 0,children:r}):null,Ke("span",{className:`sf-style-slot${s?" is-saved":""}`,children:Ke(Kh,{})})]}),n&&Ke("div",{className:"sf-style-body",children:f})]})}function Kh(){return Ke("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:Ke("polyline",{points:"20 6 9 17 4 12"})})}import{Fragment as Xh,jsx as ze,jsxs as Nn}from"react/jsx-runtime";function Mn({label:e,value:o,onChange:t,image:r}){let[a,n]=zh(!1),l=rd(null),s=rd(!1),{x:f,y:d}=In(o),p=(g,y)=>{let L=l.current?.getBoundingClientRect();if(!L)return;let T=yi(L,g,y);t(ot(T.x,T.y))},u=g=>{let y=Si(o,g.key,g.shiftKey);y!==null&&(g.preventDefault(),t(y))},c=g=>{g.currentTarget.setPointerCapture?.(g.pointerId),s.current=!0,p(g.clientX,g.clientY)},x=g=>{s.current&&p(g.clientX,g.clientY)},I=()=>{s.current=!1};return ze(_n,{styleKey:"imageFocal",label:e,value:o,sampleStyle:{fontSize:11,fontVariantNumeric:"tabular-nums"},open:a,onToggle:()=>n(g=>!g),children:a?ze("div",{className:"sf-focus","data-sf-focusing":"",children:r?Nn(Xh,{children:[ze("button",{type:"button",className:"sf-focus-canvas","aria-label":`${e}: ${o}. Use the arrow keys to move the point.`,onKeyDown:u,onPointerDown:c,onPointerMove:x,onPointerUp:I,onPointerCancel:I,onLostPointerCapture:I,children:Nn("span",{className:"sf-focus-pane",ref:l,children:[ze("img",{className:"sf-focus-img",src:r,alt:"",draggable:!1}),ze("span",{className:"sf-focus-cross sf-focus-cross--h",style:{top:`${d}%`}}),ze("span",{className:"sf-focus-cross sf-focus-cross--v",style:{left:`${f}%`}}),ze("span",{className:"sf-focus-marker",style:{left:`${f}%`,top:`${d}%`}})]})}),Nn("div",{className:"sf-focus-bar",children:[ze("span",{className:"sf-focus-hint",children:"Press the picture, or nudge the point with the arrow keys."}),ze("button",{type:"button",className:"sf-image-btn",onClick:()=>n(!1),children:"Done"})]})]}):ze("p",{className:"sf-field-hint",children:"Choose a background image first \u2014 there\u2019s nothing to focus yet."})}):null})}import{SettingsField as ad}from"efficient-easel/panel";import{ImageIcon as nd,PlayIcon as ld}from"efficient-easel/icons";import{ImageBox as Yh}from"efficient-easel/pick";import{useContext as jh,useState as sd}from"react";import{FileIntakeAlert as Zh,useFileIntake as Qh}from"efficient-shell/file-intake";import{jsx as Oe,jsxs as fd}from"react/jsx-runtime";function Hn({value:e,onChange:o,label:t,accept:r,placeholder:a}){let n=zo(),l=He(),[s,f]=sd(!1),[d,p]=sd(null),u=r.startsWith("video"),c=jh(Qo),x=Qh({accept:r,maxSizeBytes:ke(l).media.maxUploadBytes,acceptHint:u?"videos only":"images only",multiple:!1,disabled:s,onAccept:([g])=>{p(null),f(!0),Ka(n,{accept:r,title:t,file:g}).then(y=>{y&&o(y.url)}).catch(()=>p("Couldn\u2019t open the media picker \u2014 please try again.")).finally(()=>f(!1))}}),I=()=>(x.clearRejections(),p(null),Ka(n,{accept:r,title:t}).then(g=>g?.url??null));return c&&!c.capabilities.mediaEditing?Oe(ad,{label:t,icon:u?Oe(ld,{}):Oe(nd,{}),children:fd("div",{className:"sf-image-slot-inert",children:["Templates don\u2019t store ",u?"videos":"images"," \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."]})}):fd("div",{children:[Oe(ad,{label:t,icon:u?Oe(ld,{}):Oe(nd,{}),children:Oe("div",{className:`sf-image-drop${x.dragOver?" is-dragover":""}`,...x.zoneProps,children:Oe(Yh,{value:e,onChange:o,label:t,kind:u?"video":"image",placeholder:a,openLibrary:s?void 0:I})})}),s&&Oe("div",{className:"sf-image-status",role:"status",children:"Opening the picker\u2026"}),d&&Oe("div",{className:"sf-image-status sf-image-status--error",role:"alert",children:d}),Oe(Zh,{rejections:x.rejections,className:"sf-image-status sf-image-status--error"})]})}import{useId as Jh}from"react";import{FieldSelect as eg}from"efficient-easel/fields";import{jsx as id,jsxs as tg}from"react/jsx-runtime";function og(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function Gn({label:e,options:o,value:t,onChange:r,emptyLabel:a="None"}){let n=Jh(),l=`${n}-label`,s=`${n}-button`,f=Array.isArray(t)?t:[];return tg("div",{className:"sf-field sf-multi",children:[id("div",{className:"sf-field-label",id:l,children:e}),id(eg,{id:s,multiple:!0,value:f,options:og(o),onChange:r,placeholder:a,ariaLabelledBy:`${l} ${s}`,inline:!0})]})}import{useCallback as kg,useContext as Rg,useEffect as Tg,useId as Sd,useRef as gd,useState as bd}from"react";import{ThemeIcon as wg}from"efficient-easel/icons";import{SettingsField as Pg}from"efficient-easel/panel";import{SettingsField as $n,SettingsGroupSub as ig}from"efficient-easel/panel";import{SettingsField as rg}from"efficient-easel/panel";import{AccentIcon as ag}from"efficient-easel/icons";import{jsx as Do,jsxs as dd}from"react/jsx-runtime";function Un(e){return ao(e).background}function ng(e){let o=no(e.accent,Un(e));return o===null?null:{ratio:o,grade:Ko(o)}}function lg(e){let o=Un(e),t=no(e.accent,o);return t===null?[]:Es(e.accent).filter(r=>{let a=no(r,o);return a!==null&&a>t&&Ko(a)==="good"})}var sg={good:"Easy to read","large-only":qo["large-only"],hard:qo.hard};function Wn({value:e,onChange:o}){let t=ng(e),r=t?.grade,a=t&&t.grade!=="good"?lg(e):[];return Do(rg,{label:"Main color",icon:Do(ag,{}),hint:t?sg[t.grade]:void 0,action:Do(Qe,{value:e.accent,onChange:n=>o({...e,accent:n}),label:"Main color"}),children:a.length>0?Do("div",{className:"w-full min-w-0",children:dd("div",{className:"sf-readability",children:[Do("p",{className:"sf-readability-advice",children:fg(r,!0)}),Do("div",{className:"sf-readability-suggestions",children:a.map(n=>{let l=no(n,Un(e));return dd("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),title:`Use ${n.toUpperCase()}`,children:[Do("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),l?`${l.toFixed(1)}:1`:n.toUpperCase()]},n)})})]})}):null})}function fg(e,o){return e?e==="good"?"This color reads clearly on your pages.":o?"This color is hard to read on this theme's page. The buttons below are the same hue, darkened.":"This color is hard to read on your page background. Pick one further from it \u2014 lighter if your pages are dark, deeper if they are light.":"Pick a color to see how it reads."}import{ButtonIcon as dg,GroundIcon as cg,LayoutIcon as ug,SquareIcon as pg,TextSmallIcon as mg,TypeIcon as cd}from"efficient-easel/icons";import{Fragment as bg,jsx as R,jsxs as ho}from"react/jsx-runtime";var Wt=e=>`Theme ${e+1}`;function ud({colors:e}){let o=ao(e),t=Sa(e)??o.accent;return ho("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[R("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:"label"}),ho("span",{className:"sf-theme-headline",children:["Heading ",R("span",{style:{color:o.accent},children:"accent"})]}),R("span",{className:"sf-theme-body",children:"body text"}),ho("span",{className:"sf-theme-row",children:[R("span",{className:"sf-theme-btn",style:{background:t,color:ya(e,o.accent)},children:"button"}),R("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:"card"})]})]})}var Vn={"Text color":R(cd,{}),"Label color":R(mg,{}),Background:R(cg,{}),"Panels & cards":R(ug,{}),Borders:R(pg,{}),"Button color":R(dg,{}),"Button text color":R(cd,{})};function xg({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return R($n,{label:e,icon:Vn[e],htmlFor:n,action:R(Qe,{id:n,label:e,value:t,onChange:l=>r(o,l)})})}function Ig({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=/^#[0-9a-fA-F]{6}$/.test(e??""),l=n?e:o;return R($n,{label:"Button color",icon:Vn["Button color"],htmlFor:a,action:R(Qe,{id:a,label:"Button color",value:l,caption:n?l:"Main",onChange:t})})}function hg({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=vs(e),l=ya(e,o),s=Sa(e)??o,f=Ko(no(l,s)??0);return R($n,{label:"Button text color",icon:Vn["Button text color"],hint:n&&f!=="good"?`${qo[f]} on the button`:void 0,htmlFor:a,action:R(Qe,{id:a,label:"Button text color",value:l,caption:n?l:"Auto",onChange:t})})}var gg=[{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 qn({colors:e,onChange:o,idPrefix:t}){let r=ao(e);return R(bg,{children:gg.map(a=>"colour"in a?R(Wn,{value:e,onChange:o},"colour"):"group"in a?R(ig,{title:a.group},a.group):"button"in a?R(Ig,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?R(hg,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):R(xg,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,l)=>o({...e,[n]:l}),idPrefix:t},a.key))})}function pd({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:l,onEdit:s,onChangeColors:f}){let d=ao(o),p=Wt(e),u=e<ba.length&&!o.brandInk?ba[e]:null,c=Ko(no(d.text,d.background)??0),x=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return ho("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[R("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":p,className:"sf-theme-pick",onClick:l,children:R(ud,{colors:o})}),ho("div",{className:"sf-theme-foot",children:[R("span",{className:"sf-theme-name",children:p}),c!=="good"&&R("span",{className:"sf-theme-warn",children:qo[c]}),n&&s&&R("button",{type:"button",className:`sf-theme-edit${a?" is-open":""}`,"aria-expanded":I?a:void 0,"aria-controls":I?`sf-theme-colours-${e}`:void 0,"aria-label":`${a?"Done":"Edit"} ${p}`,onClick:s,children:a?"Done":"Edit"})]}),a&&ho("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[R(qn,{colors:o,onChange:g=>f?.(g)}),u&&R("button",{type:"button",className:"sf-theme-reset",disabled:!x,onClick:()=>f?.({...u}),children:x?`Reset ${p} to the preset`:"Not changed"})]})]})}function md({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:l,onClick:s,onKeyDown:f,onEdit:d}){return ho("div",{className:"sf-secttheme-btn",children:[R("button",{ref:l,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:s,onKeyDown:f,children:e?R(ud,{colors:e}):R("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),ho("div",{className:"sf-theme-foot",children:[R("span",{id:t,className:"sf-theme-name",children:o}),d&&R("button",{type:"button",className:"sf-theme-edit","aria-label":`Edit ${o}`,onClick:d,children:"Edit"}),R("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:s,children:R("span",{className:"sf-multi-caret",children:"\u25BE"})})]})]})}import{useCallback as Kn,useEffect as Sg,useRef as Or}from"react";function xd(e=se()){return(o,t,r)=>{let a=ke(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new Ir("invalid","This backend stores no site theme."))}}function Id(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function yg(e,o=xd()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,l=Id({themeFromDocument:t,token:r});if(l)return l;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,r,a??void 0),{status:"saved"}}catch(s){return{status:"failed",error:s}}}function hd({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=Or(null),n=Or({}),l=He(),s=Or(r);s.current=r;let f=Or(null),d=Kn(c=>{if(c.status==="skipped"){let x=`skipped:${c.reason}`;if(f.current===x)return;f.current=x}else f.current=null;s.current?.(c)},[]),p=Kn(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let c=n.current;n.current={};let x=await yg({themeFromDocument:e,token:o?.current,siteId:t,patch:c},xd(l));return d(x),x},[e,o,t,d,l]),u=Kn((c,x=!1)=>{let I=Id({themeFromDocument:e,token:o?.current});if(I){d(I);return}n.current={...n.current,...c},a.current&&clearTimeout(a.current),x?p():a.current=setTimeout(()=>{p()},500)},[e,o,p,d]);return Sg(()=>()=>{p()},[p]),{persist:u,flush:p}}import{Fragment as Og,jsx as q,jsxs as _o}from"react/jsx-runtime";var Fg="Follow the page",qL="Follow the slideshow",Eg=e=>`Editing ${e} changes it everywhere.`;function vg({colors:e}){if(!e)return q("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=ao(e);return _o("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[q("i",{style:{background:o.background}}),q("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function Lg({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return _o("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&_o(Og,{children:[_o("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(-1),children:[q(vg,{}),q("span",{className:"sf-secttheme-name",children:n})]}),q("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&q("p",{className:"sf-secttheme-oncard",role:"presentation",children:`${Wt(o)} is on this section`}),e.map((l,s)=>s===o?null:q(pd,{role:"option",index:s,colors:l,selected:!1,onPick:()=>t(s),onEdit:()=>r(s)},s))]})}function Ag({index:e,colors:o,onChange:t,onDone:r}){let a=Wt(e),n=Sd();return _o("div",{className:"sf-secttheme-sheet",children:[_o("div",{className:"sf-secttheme-sheet-head",children:[q("span",{children:a}),q("button",{type:"button",className:"sf-secttheme-done",onClick:r,children:"Done"})]}),q("div",{className:"sf-secttheme-rows",children:q(qn,{colors:o,onChange:t,idPrefix:n})}),q("p",{className:"sf-secttheme-warn",children:Eg(a)})]})}function zn({value:e,onChange:o,followLabel:t}){let{theme:r,setTheme:a}=fo(),n=wt(r),l=Rg(Qo),s=l?.tokenRef,f=l?.siteId??null,d=!l?.capabilities?.hasSiteTheme,{persist:p,flush:u}=hd({themeFromDocument:d,tokenRef:s,siteId:f}),c=wt(n),x=c.themes,I=kn(e),g=I!==null?x[I]:void 0,y=g??(x.length?Fs(c):void 0),[L,T]=bd(!1),[k,_]=bd(null),$=gd(null),pe=gd(null),v=Sd(),oe=kg(()=>{T(!1),_(null)},[]);Tg(()=>{if(!L&&k===null)return;let M=Pe=>{$.current&&!$.current.contains(Pe.target)&&(u(),oe())};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[L,k,oe,u]);let oo=M=>{o(M),oe()},le=M=>{if(k===null)return;let Pe=x.map((ye,Z)=>Z===k?M:ye),_e={...c,themes:Pe};a(_e),p({selected_preset:_e.selected,theme_presets:_e.themes})};return _o("div",{className:"sf-secttheme",ref:$,children:[q(Pg,{label:"Theme",icon:q(wg,{}),labelId:`${v}-label`,children:q(md,{colors:y,onEdit:I!==null?()=>{_(I),T(!1)}:void 0,name:g?Wt(I):t??Fg,nameId:`${v}-value`,labelId:`${v}-label`,open:L,menuId:v,buttonRef:pe,onClick:()=>{_(null),T(M=>!M)},onKeyDown:M=>{M.key==="Escape"&&(L||k!==null)&&(M.preventDefault(),oe())}})}),L&&k===null&&q("div",{onKeyDown:M=>{M.key==="Escape"&&(M.preventDefault(),oe(),pe.current?.focus())},children:q(Lg,{themes:x,value:I,onPick:oo,onEdit:M=>{_(M),T(!1)},menuId:v,followLabel:t})}),k!==null&&x[k]&&q(Ag,{index:k,colors:x[k],onChange:le,onDone:()=>{u(),oe(),pe.current?.focus()}})]})}import{useId as Bg}from"react";import{FieldSelect as Dg}from"efficient-easel/fields";import{jsx as yd,jsxs as Ng}from"react/jsx-runtime";function _g(e){return e.map(({value:o,label:t,group:r,thumb:a,meta:n})=>({value:o,label:t,...r!==void 0?{group:r}:{},...a!==void 0?{thumb:a}:{},...n!==void 0?{meta:n}:{}}))}function Cd({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:l=!1}){let s=Bg(),f=`${s}-label`,d=`${s}-button`,p=r??"",u=o.some(x=>x.value===p)?p:t,c=yd(Dg,{id:d,value:u,options:_g(o),onChange:a,placeholder:n,searchPlaceholder:n,...l?{ariaLabel:e}:{ariaLabelledBy:`${f} ${d}`},searchable:!0,groupCount:!0,inline:!0});return l?c:Ng("div",{className:"sf-field sf-combo",children:[yd("div",{className:"sf-field-label",id:f,children:e}),c]})}import{SettingsField as Gg}from"efficient-easel/panel";import{LinkIcon as Ug}from"efficient-easel/icons";import{useEffect as vd,useRef as Wg,useState as Dr}from"react";function kd(){return se().auth.token}function Rd(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var Td=[{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 wd(e){return e.offersCommerce&&e.offersService?Td:Td.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function Br(e){return e===Ue?"/":`/${e}`}function Pd(e){return`/journal/${e}`}function rA(e){return`/wheels/${e}`}function Xn(e,o){return`${Br(e)}#${o}`}function Mg(e){return Rd(e)}function Hg(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function Fd(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Hg(a?.props?.anchor);if(!n)continue;let l=Mg(n);!l||o.has(l)||(o.add(l),t.push({slug:l,name:n}))}return t}function aA(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),r=t.indexOf("?");return r===-1?t:t.slice(0,r)}function Ed(e,o){if(!e)return"page";if(e.startsWith("/journal/"))return"blog";if(e.startsWith("/wheels/"))return"product";if(e.includes("#")){let t=e.slice(0,e.indexOf("#"));if(t===""||t==="/"||o.includes(t))return"anchor"}return e==="/"||o.includes(e)?"page":"custom"}import{jsx as we,jsxs as _r}from"react/jsx-runtime";function Ld(e){let o=new Map;return(t="")=>{let r=kd(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!se().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var $g=Ld(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=ke();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),Vg=Ld(async(e,o)=>await ke().blog?.posts(o?{siteId:o}:void 0)??[]);function Yn(e,o){return e&&!o.some(t=>t.value===e)?[{value:e,label:`${e} (unavailable)`},...o]:o}function jn({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{siteId:a,capabilities:n}=Hf(),{offersCommerce:l,hasBlog:s}=n,f=wd({offersCommerce:l,offersService:s}),[d,p]=Dr([]),[u,c]=Dr([]),[x,I]=Dr([]),g=He().chrome,y=g?.products?.list,L=g?.linkRow,[T,k]=Dr(null),_=Wg(!0);vd(()=>(_.current=!0,()=>{_.current=!1}),[]),vd(()=>{let b=!0;return $g(a??void 0).then(K=>b&&_.current&&p(K)),s&&Vg(a??void 0).then(K=>b&&_.current&&c(K)),l&&y?.().then(K=>b&&_.current&&I(K)),()=>{b=!1}},[a,l,s,y]);let $=d.map(b=>Br(b.slug)),pe=T??Ed(r,$),v=f.some(b=>b.value===pe)?pe:"custom",oe=l&&v==="page"?L:void 0,oo=b=>{k(b),b!=="custom"&&o("")},le=d.filter(b=>!zf(b.slug)),M=Yn(r,le.map(b=>({value:Br(b.slug),label:b.label}))),Pe=Yn(r,u.map(b=>({value:Pd(b.slug),label:b.title||b.slug}))),_e=Yn(r,x.map(b=>({value:b.href,label:b.name}))),ye=(b,K)=>_r("select",{value:r,onChange:Q=>o(Q.target.value),children:[we("option",{value:"",children:K}),b.map((Q,z)=>we("option",{value:Q.value,children:Q.label},`${Q.value}:${z}`))]}),Z=le.map(b=>({page:b,anchors:Fd(b.layout)})).filter(b=>b.anchors.length>0),to=Z.flatMap(b=>b.anchors.map(K=>Xn(b.page.slug,K.slug))),Ne=_r("select",{value:r,onChange:b=>o(b.target.value),children:[we("option",{value:"",children:Z.length?"Select a section\u2026":"No section anchors yet"}),r&&!to.includes(r)&&we("option",{value:r,children:`${r} (unavailable)`}),Z.map(b=>we("optgroup",{label:b.page.label,children:b.anchors.map(K=>{let Q=Xn(b.page.slug,K.slug);return we("option",{value:Q,children:K.name},Q)})},b.page.id))]});return _r("div",{children:[we(Gg,{label:t,icon:we(Ug,{}),children:_r("div",{className:"sf-linkstack",children:[we("select",{"aria-label":"Link type",value:v,onChange:b=>oo(b.target.value),children:f.map(b=>we("option",{value:b.value,children:b.label},b.value))}),v==="page"&&ye(M,"Select a page\u2026"),v==="anchor"&&Ne,v==="blog"&&ye(Pe,"Select a blog post\u2026"),v==="product"&&ye(_e,"Select a product\u2026"),v==="custom"&&we("input",{type:"text",value:r,placeholder:"Link (e.g. /wheels or https://\u2026)",onChange:b=>o(b.target.value)})]})}),oe&&we(oe,{value:r,onChange:o,pages:d})]})}var Be={min:10,max:200,step:10};function Ad(e,o){let t=typeof e=="number"?e:void 0,r=typeof o=="number"?o:void 0;if(!(t===void 0&&r===void 0))return{paddingTop:t,paddingBottom:r}}var qg="sf-pad-top-phone",Kg="sf-pad-bottom-phone",zg="--sf-pad-t-phone",Xg="--sf-pad-b-phone",Yg="sf-pad-left-phone",jg="sf-pad-right-phone",Zg="--sf-pad-l-phone",Qg="--sf-pad-r-phone";function hA(e,o,t,r,a,n,l,s){let f=Ad(e,o)??{},d={},p=["sf-section-pad"];typeof t=="number"&&(p.push(qg),d[zg]=`${t}px`),typeof r=="number"&&(p.push(Kg),d[Xg]=`${r}px`);let u={};return typeof a=="number"&&(u.paddingLeft=a),typeof n=="number"&&(u.paddingRight=n),typeof l=="number"&&(p.push(Yg),d[Zg]=`${l}px`),typeof s=="number"&&(p.push(jg),d[Qg]=`${s}px`),p.length===1&&Ad(e,o)===void 0&&!Object.keys(u).length?null:{className:p.join(" "),style:{...f,...u,...d}}}var Od=e=>typeof e=="number"?e:void 0;function Bd(e,o,t){let r=Od(e)??t,a=Od(o);return r===void 0?a:a===void 0?r:r+a}function gA(e,o={}){return{top:Bd(e.padTop,e.sectionPaddingTop,o.top),bottom:Bd(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var Jg=["auto","fixed","screen"],eb=["px","%"];var ob="var(--sf-header-h, 88px)",Zn={min:40,max:2e3,step:10,fallback:600},Qn={min:10,max:200,step:5,fallback:100},tb="sf-section-minh",Dd={base:"--sf-section-minh",small:"--sf-section-minh-s"},Nd=e=>typeof e=="string"&&Jg.includes(e),rb=e=>typeof e=="string"&&eb.includes(e);function Nr(e){let o=Nd(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":rb(e.sectionHeightUnit)?e.sectionHeightUnit:"px",r=o==="screen"?Qn.fallback:Zn.fallback,a=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:r;return{mode:o,value:a,unit:t}}function Md(e){let{mode:o,value:t,unit:r}=Nr(e);if(o==="auto")return;if(o==="fixed"&&r==="px")return[`${t}px`,null];let a=t/100,n=l=>o==="screen"?`(100${l} - ${ob})`:`100${l}`;return[`calc(${n("vh")} * ${a})`,`calc(${n("svh")} * ${a})`]}function ab(e){let o=Md(e);if(!o)return;let[t,r]=o;return{display:"grid",[Dd.base]:t,...r?{[Dd.small]:r}:{}}}var SA=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),lt="Height",nb="sf-section-minh-phone",_d={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Jn(e){return Nd(e.sectionHeightModePhone)}function yA(e){return Nr({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function lb(e){let o=ab(e),t=Jn(e)?Md({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let r=[tb],a={...o??{}};return t&&(r.push(nb),a[_d.base]=t[0],t[1]&&(a[_d.small]=t[1])),{className:r.join(" "),style:a}}function CA(e){return lb(e)!==null}var RA=["desktop","tablet","mobile"],st={desktop:"Desktop",tablet:"Tablet",mobile:"Mobile"},sb=720,fb=1100;function TA(e){return e>=fb?"desktop":e>=sb?"tablet":"mobile"}var ib=["column","row","tabs"],Hd="Direction",db={column:"Stacked",row:"One row",tabs:"Tabs"},Gd={Flex:ib,HeroGroup:["column","row"]},cb={Flex:"row",HeroGroup:"column"},ub={column:"flex-col",row:"flex-row",tabs:"flex-col"};function Mr(e,o){return Gd[e].includes(o)?o:cb[e]}function PA(e,o){return ub[Mr(e,o)]}function Ud(e){return Gd[e].map(o=>({label:db[o],value:o}))}var el=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],Vd=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Stretch",value:"stretch"}],qd="Wrap",ol=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],Wd={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},$d={start:"items-start",center:"items-center",stretch:"items-stretch"};function EA(e,o){let t=typeof e=="string"&&e in Wd?Wd[e]:"",r=typeof o=="string"&&o in $d?$d[o]:"";return[t,r].filter(Boolean).join(" ")}function vA(e){return e===!0||e==="wrap"?"flex-wrap":""}var tl="Block widths",Hr=[{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]}],$t="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",pb={equal:$t,bigLeft:`${$t} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${$t} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${$t} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${$t} [&>*:last-child]:min-[800px]:grow-[3]`};function LA(e){return typeof e=="string"?pb[e]??"":""}var Kd="Columns on phone",rl=1,zd=3,mb={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 AA(e){let o=Number(e);return mb[o]??"max-[800px]:flex-col"}var Xd="Block spacing",al=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],xb="sf-box-gap-only";function OA(e){return e==="gap"?xb:""}var Zd="sf.gapContainer",go={min:-32,max:64,step:2},Qd={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},Gr={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},Ib=new Set(["Events","GalleryB"]);function ll(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=go.min)return o;if(typeof o=="string"){let r=Qd[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:Gr[e]}var hb="sf-gap-overlap",gb="--sf-gap-overlap",Jd="--sf-block-gap",bb="--sf-block-gap-rem",nl={min:0,max:go.max,step:go.step};function Sb(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),nl.min),nl.max);return o-o%nl.step}function DA(e){let o=Sb(e);return o===null?{}:{[Jd]:`${o}px`,[bb]:`${o/16}rem`}}var Yd="sf-gap-zone",jd="--sf-gap-len";function sl(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=go.min?!0:typeof o=="string"&&typeof Qd[e]?.[o]=="number"}var yb={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function _A(e,o,t){if(!sl(e,o)){let a=`${Gr[e]}px`,n=Ib.has(e)?`var(--sf-card-gap, ${a})`:a;return{className:` ${Yd}`,style:{[jd]:`var(${Jd}, ${n})`}}}let r=ll(e,o);return r>=0?{className:` ${Yd}`,style:{[jd]:`${r}px`}}:{className:` ${hb} ${yb[t]}`,style:{gap:"0px",[gb]:`${-r/2}px`}}}var ec=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],oc={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},ft="var(--wheel-stage)",Ur="transparent",Vt="inherit";function tc(e,o){return e===Vt?ft:e==null?o:e===!0?ft:e===!1?Ur:e}function MA(e){return typeof e=="string"&&e!==Vt?e:ft}function HA(e){return e!==Ur&&e!=="none"&&e!==""}function rc(e,o){return e===Vt||e===!0?!0:e==null?o===ft:!1}var ac=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],nc={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Wr="var(--section-bg)",$r="inherit";function UA(e,o){return e===$r?Wr:e===void 0?o:e}function lc(e,o){return e===$r?!0:e===void 0&&o===Wr}var sc="inherit",Vr="fixed",fc=e=>typeof e!="number"&&e!==Vr,Cb="var(--sf-heading-max, 9999px)";function $A(e,o,t,r){if(typeof e=="number")return`${e}px`;if(e===Vr)return o;let a=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${a}, ${Cb})`:a}var De={min:1e3,max:2e3,step:50,default:1600};function ic(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function qA(e,o){if(e!==!1)return null;let t=typeof o=="number"?o:De.default;return ic(t)}var dc="--sf-site-width",qr=`var(${dc},${De.default}px)`,KA=`max-w-[${qr}]`,zA=`max-w-[${De.default}px]`;function kb(e){return typeof e!="number"||!Number.isFinite(e)?De.default:Math.round(Math.min(Math.max(e,De.min),De.max))}function XA(e){let o=kb(e);return o===De.default?{}:{[dc]:`${o}px`}}var qt={min:0,max:80,step:4,default:40},cc="--sf-site-gutter",ue=`var(${cc},${qt.default}px)`,Rb=`px-[${ue}]`;var bo={md:`min(24px,${ue})`,sm:`min(20px,${ue})`,frame:`min(24px,${ue})`,tabs:`min(16px,${ue})`},YA=[[`max-[1100px]:px-[${bo.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${bo.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${bo.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${bo.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${bo.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${bo.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${bo.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${bo.sm}]`,"max-[640px]:px-5"],[`min-[800px]:px-[${ue}]`,"min-[800px]:px-10"],[`max-[720px]:px-[min(24px,${ue})]`,"max-[720px]:px-6"],[`max-[800px]:-mx-[min(20px,${ue})]`,"max-[800px]:-mx-5"],[`max-[720px]:-mx-[min(20px,${ue})]`,"max-[720px]:-mx-5"],[`-mx-[${ue}]`,"-mx-10"],[Rb,"px-10"]];function Tb(e){return typeof e!="number"||!Number.isFinite(e)?qt.default:Math.round(Math.min(Math.max(e,qt.min),qt.max))}function jA(e){let o=Tb(e);return o===qt.default?{}:{[cc]:`${o}px`}}var Kr=`min(var(--sf-page-cap,${qr}),${qr})`,ZA=`max-w-[${Kr}]`,QA=`max-w-[min(var(--sf-page-cap,${De.default}px),${De.default}px)]`,uc="--sf-hero-cap",wb=`var(${uc},none)`,JA=`max-w-[${wb}]`,fl="--sf-hero-bleed-m",il="--sf-hero-bleed-w",eO=`var(${fl},calc(50% - 50vw))`,oO=`var(${il},100vw)`,tO=`mx-[var(${fl},calc(50%_-_50vw))]`,rO=`w-[var(${il},100vw)]`,dl="--sf-hero-chrome-x",cl="--sf-hero-chrome-cap";function aO(e){return e===!0?{[uc]:Kr,[fl]:"auto",[il]:"100%",[dl]:"24px",[cl]:"none"}:{}}var ul=`calc(${qr} - ${ue}*2)`,nO=`max-w-[${ul.replace(/ /g,"_")}]`;var Pb="--sf-chrome-cap",Fb=`var(${Pb},${ul})`,lO="data-page-width";function sO(e){return e==="full"?"full":null}function fO(e){return e==="full"?null:ic(e==="content"?ul:Fb)}function iO(e){if(e==="full")return"full";if(e==="content")return"content"}var Eb=["contained","page","full"],pc=["full","page"],mc={full:"Full width",page:"Content width"},pl="inherit",vb=e=>typeof e=="string"&&Eb.includes(e),Lb=e=>e===pl;function ml(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:De.default;return Lb(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:vb(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 xl(e){return ml(e,"page").mode==="full"}import{createContext as Ab,useContext as Ob}from"react";import{jsx as _b}from"react/jsx-runtime";var Bb=2,Db=Bb+1,xc=Ab(2);function mO({tier:e,children:o}){return _b(xc.Provider,{value:e,children:o})}function Il(e){let o=Ob(xc);return Db+Math.max(0,e-o)}import{withStyleKind as SS}from"efficient-easel/style-clipboard";import{Fragment as Je,jsx as i,jsxs as J}from"react/jsx-runtime";function Kt(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!pt(t)&&SS(t,`section:${o}`);return e}function Rc(){return null}function yS(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return i(Rc,{},e)}function CS(e){return e.type===Rc}function zr(e){return CS(e)?void 0:e}function yo({inherited:e,source:o,detail:t,onReset:r,onOptOut:a,optOutTitle:n,label:l}){if(e){let f=t?`Following the ${o.toLowerCase()} setting \u2014 ${t}`:`Following the ${o.toLowerCase()} setting`;if(!a)return J("span",{className:"sf-inherit",title:t?f:void 0,children:["Inherits \xB7 ",o]});let d=`${f}. ${n??`Click to keep ${l} at this section's own size instead`}`;return J("button",{type:"button",className:"sf-inherit sf-inherit--following",onClick:a,title:d,"aria-label":d,children:["Inherits \xB7 ",o,i("span",{className:"sf-inherit-revert","aria-hidden":"true",children:"\u21F1"})]})}let s=`Reset ${l} to follow the ${o.toLowerCase()} setting${t?` (${t})`:""}`;return J("button",{type:"button",className:"sf-inherit sf-inherit--over",onClick:r,title:s,"aria-label":s,children:["Overridden",i("span",{className:"sf-inherit-revert","aria-hidden":"true",children:"\u21BA"})]})}function kS(){let{appState:e}=dt(a=>a),o=e.data.root?.props??{},{mode:t,pageWidth:r}=ml(o,"full");return t==="page"?`Page width \u2014 ${r}px`:t==="contained"?"Page width \u2014 Contained":"Page width \u2014 Full"}function RS(){let{blockGap:e}=fo();return e===null?"Site block gap \u2014 not set, so this container keeps its own spacing":`Site block gap \u2014 ${e}px`}function TS({inherited:e,onReset:o,label:t}){return i(yo,{inherited:e,source:"Site",detail:RS(),onReset:o,label:t})}function wS({inherited:e,onReset:o,label:t}){return i(yo,{inherited:e,source:"Page",detail:kS(),onReset:o,label:t})}function PS(){return J("svg",{className:"sf-field-type",width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.8,"aria-hidden":"true",children:[i("polyline",{points:"4 7 4 4 20 4 20 7"}),i("line",{x1:"9",x2:"15",y1:"20",y2:"20"}),i("line",{x1:"12",x2:"12",y1:"4",y2:"20"})]})}function ct({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:l=!0,markup:s=!0}){let{text:f,hidden:d}=Ze(e),p=bl(null),u=bl(null),c=g=>o(l?{text:g,hidden:d}:g),x=()=>o({text:f,hidden:!d});return J("div",{className:`sf-field${l&&d?" is-hidden":""}`,children:[J("div",{className:"sf-field-head",children:[i(PS,{}),i("span",{className:"sf-field-label sf-field-label--inline",children:t}),l&&i("button",{type:"button",className:"sf-field-eye","aria-pressed":d,"aria-label":d?`Show ${t} on the slide`:`Hide ${t} on the slide`,title:d?`Show ${t} on the slide`:`Hide ${t} on the slide`,onClick:x,children:d?i(Jo,{name:"eye-off",size:14}):i(Jo,{name:"eye",size:14})})]}),J("div",{className:"sf-copybox",children:[s&&i(Pn,{target:n?u:p,value:f,onChange:c}),n?i("textarea",{ref:u,value:f,placeholder:r,onChange:g=>c(g.target.value)}):i("input",{ref:p,type:"text",value:f,placeholder:r,onChange:g=>c(g.target.value)})]}),a&&i("p",{className:`sf-field-hint${AS(a)?" sf-field-hint--while-typing":""}`,children:a})]})}function IB(e,o){return{...e,[Dt]:o}}function hB(e){let o=e[V];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[V]:{...o,offPage:!0}}}function gB(e){return!e||typeof e!="object"?!1:e[V]?.offPage===!0}function bB(e){let o=e[V];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[V]:{...o,identifier:!0}}}function Tc(e){return!e||typeof e!="object"?!1:e[V]?.identifier===!0}var FS=new Set(Bo),ut=(e,o)=>{let t={...o,[V]:e};if(!FS.has(e.control))return t;let r=o.render;return{...Lr(t,"authored-copy"),render:a=>i(Qi,{name:a.name,children:r(a)})}},SB="Everything else on this block comes from the linked post. Unlink it to edit by hand.",ES="Select a word, then press the highlighter.",vS="A short name so a link can jump straight to this section, like yoursite.com/page#about.",LS=new Set([ES]),AS=e=>LS.has(e);function yB(e,o,t){return ut({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>i(ct,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function CB(e,o,t){return ut({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>i(ct,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function OS(e,o,t){return ut({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>i(ct,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function kB(e,o,t){return ut({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>i(ct,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function RB(e){return{type:"custom",[Bt]:{label:e},render:({value:o,onChange:t})=>i(jn,{value:et(o),onChange:t,label:e})}}function TB(e,o,t){return ut({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>i(ct,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var wB={Content:dS,Style:iS,Layout:Qb,Animation:hc};function PB(e,o){return e.includes("Content")?o!=="Content":null}function BS({label:e}){return i(pS,{title:e,level:Il(1)})}function DS({level:e,label:o}){return e===1?i(BS,{label:o}):i(NS,{label:o})}var yl="__fold";function pt(e){return e?.[yl]??null}function wc(e,o){return{type:"custom",[yl]:{label:e,level:o},render:()=>i(DS,{level:o,label:e})}}function Se(e){return wc(e,2)}function FB(e){return{type:"custom",render:()=>i(_S,{text:e})}}function _S({text:e}){return i("p",{className:"sf-note",children:e})}function EB(e){return wc(e,1)}function vB(e){return pt(e)!==null&&e?.tabs!==void 0}var Ic=new Map;function Xr(e,o){let t=`${e}\0${o?o.join(""):""}`,r=Ic.get(t)??{type:"custom",tabs:o,[yl]:{label:e,level:1},bucket:e,marker:!0,render:()=>i(Je,{})};return Ic.set(t,r),r}function NS({label:e}){return i(mS,{title:e,level:Il(2)})}function Pc({swatches:e,current:o,onPick:t,names:r}){let a=e.find(l=>l.toLowerCase()===o.toLowerCase()),n=(a?r?.[a]:void 0)??o;return J("div",{className:"sf-swatches",children:[e.map(l=>{let s=r?.[l]??l;return i("button",{type:"button","aria-pressed":o.toLowerCase()===l.toLowerCase(),className:`sf-swatch ${o.toLowerCase()===l.toLowerCase()?"is-active":""}`,style:{background:l},onClick:()=>t(l),"aria-label":s,title:s},l)}),i("span",{className:"sf-swatch-hex",children:n})]})}function LB(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=lc(t,o);return i(W,{label:e,icon:i(Gb,{}),action:i(yo,{inherited:a,source:"Theme",detail:"the theme's section background",onReset:()=>r($r),label:e}),children:Pc({swatches:ac,current:a?Wr:t??o??"",onPick:r,names:nc})})}}}function MS(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=rc(a,o);return i(W,{label:e,icon:i(jb,{}),action:i(yo,{inherited:n,source:"Theme",detail:"the theme's image stage",onReset:()=>r(Vt),label:e}),children:Pc({swatches:ec,current:n?ft:tc(a,o),onPick:r,names:oc})})}}}function Fc(e=t=>t,o){return Kt({_gSectionTheme:Se(Mi),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>i(zn,{value:e(t),onChange:r,followLabel:o})}})}function Mo({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:l=!0,notch:s,ariaLabel:f,disabled:d=!1}){let p=s!==void 0&&Number.isFinite(s)&&s>=e&&s<=o;return J("div",{className:p?"sf-slider has-notch":"sf-slider",style:p?{"--sf-notch":(s-e)/(o-e)}:void 0,children:[i("input",{type:"range",min:e,max:o,step:t,value:r,"aria-label":f,disabled:d||void 0,onChange:u=>a(Number(u.target.value))}),l&&i(HS,{value:r,min:e,max:o,step:t,suffix:n,ariaLabel:f,onChange:a})]})}function HS({value:e,min:o,max:t,step:r,onChange:a,suffix:n="",ariaLabel:l,children:s}){let[f,d]=Sl(null),p=u=>{u.editing||d(null),u.commit!==null&&u.commit!==e&&a(u.commit)};return f===null?i("button",{type:"button",className:"sf-slider-val",title:"Click to type a value","aria-label":l?`${l}: type a value`:"Type a value",onClick:()=>d(String(e)),children:s??J(Je,{children:[e,n]})}):i("input",{autoFocus:!0,type:"text",inputMode:"decimal",className:"sf-slider-val sf-slider-typed",value:f,"aria-label":l,onChange:u=>d(u.target.value),onFocus:u=>u.currentTarget.select(),onKeyDown:u=>{let c=Ln(u.key,f,o,t,r);c.handled&&(u.preventDefault(),u.stopPropagation(),p(c))},onBlur:()=>p(Ln(vn,f,o,t,r))})}function it(e,o,t,r,a,n,l="",s){return{type:"custom",render:f=>i(W,{label:e,icon:zr(o),action:s?s("storedValue"in f?f.storedValue:f.value,f.onChange):void 0,children:Mo({min:t,max:r,step:a,value:typeof f.value=="number"?f.value:n,suffix:l,onChange:f.onChange})})}}function Ec({min:e,max:o,step:t,px:r,label:a,onChange:n,disabled:l=!1}){let{cornerRadiusPx:s}=fo();return i(Je,{children:Mo({min:e,max:o,step:t,value:r??(typeof s=="number"?s:e),readout:!1,ariaLabel:a,disabled:l,onChange:n})})}function zt(e,o){let{min:t,max:r,step:a=1,unsetLabel:n="Not set",hint:l,restAtSite:s=!1,restTrack:f,unsetMark:d}=o;return{type:"custom",render:({value:p,onChange:u})=>{let c=typeof p=="number"?p:null,x=c===null;return i(W,{label:e,value:x?d?"":n:`${c}px`,changed:!x,action:x?d??null:i(Pr,{label:e,what:"change",onClear:()=>u(null)}),hint:l,children:f?f({min:t,max:r,step:a,px:c,label:e,onChange:u}):s?i(Ec,{min:t,max:r,step:a,px:c,label:e,onChange:u}):Mo({min:t,max:r,step:a,value:c??t,readout:!1,ariaLabel:e,onChange:u})})}}}function AB(e){let o=it("Gap",i(Sc,{}),go.min,go.max,go.step,Gr[e],"px",(t,r)=>i(TS,{inherited:!sl(e,t),onReset:()=>r(void 0),label:"Gap"}));return{type:"custom",[Zd]:e,render:t=>o.render({...t,value:ll(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:r=>t.onChange(r)})}}function GS(){return{type:"custom",render:({value:e,onChange:o})=>{let r=Te(e)??[...be],a=r.length===be.length;return i(W,{label:xo,icon:i(bc,{}),value:wr(r),changed:!a,action:a?null:i(Pr,{label:xo,what:"change",onClear:()=>o(null)}),hint:"Corners left off stay square. The row above sets how round the others are.",children:i(VS,{value:r,onChange:n=>{let l=Te(n)??[];o(l.length===be.length?null:l)}})})}}}function US(){return zt("Corners",{min:lo,max:wo,unsetLabel:"Inherits \xB7 Site",restTrack:e=>i(WS,{...e}),hint:i($S,{})})}var vc="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Cl(){return xl(Yr())}function WS(e){return i(Ec,{...e,disabled:Cl()})}function $S(){return i(Je,{children:Cl()?vc:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function VS({value:e,onChange:o}){let t=Cl();return i(kc,{label:xo,value:e,corners:t?nt.map(r=>({...r,disabled:!0,title:vc})):nt,onChange:o})}function Lc(){return Kt({_gShape:Se("Shape"),sectionCorners:US(),sectionCornerSides:GS()})}function Ac(){return{_gMotion:Se("Motion"),sectionAnimation:Tl("Entrance",i(hc,{}),[...Gi],Rn)}}function kl(){let e=null;try{let{appState:o,selectedItem:t}=dt(a=>a),r=t?.props?.id?String(t.props.id):void 0;e=r?wn(o?.data,r):null}catch{e=null}return e!==null&&xl(e)}function Oc(e){let{cornerRadiusPx:o}=fo(),t=kl(),r=typeof o=="number"?o:e,a=null;try{let{appState:l,selectedItem:s}=dt(d=>d),f=s?.props?.id?String(s.props.id):void 0;a=f?wn(l?.data,f):null}catch{a=null}if(t||!a)return r;let n=a.sectionCorners;return hn(n)?n:r}function qS({min:e,max:o,step:t,px:r,label:a,onChange:n}){let l=Oc(e);return i(Je,{children:Mo({min:e,max:o,step:t,value:r??l,readout:!1,ariaLabel:a,onChange:n})})}function KS({label:e}){let o=kl(),t=Oc(lo);return i(yo,{inherited:!0,source:o?"Site":"Section",detail:`${o?"Site":"Section"} \u2014 ${t}px`,onReset:()=>{},label:e})}function zS(){return i(Je,{children:kl()?"The section is full width, so this card follows Site styles \u25B8 Basics \u25B8 Corners.":"Follows the section's Corners until you set a number here."})}function XS(){return zt("Corners",{min:lo,max:wo,unsetLabel:"Inherits \xB7 Section",unsetMark:i(KS,{label:"Corners"}),restTrack:e=>i(qS,{...e}),hint:i(zS,{})})}function YS({value:e,onChange:o}){return i(kc,{label:xo,value:e,corners:nt,onChange:o})}function jS({unset:e}){return i(Je,{children:e?"Set a number above first \u2014 there is nothing to shape yet.":"Corners left off stay square. The row above sets how round the others are."})}function ZS(){return{type:"custom",render:({value:e,onChange:o})=>{let r=Te(e)??[...be],a=r.length===be.length;return i(W,{label:xo,icon:i(bc,{}),value:wr(r),changed:!a,action:a?null:i(Pr,{label:xo,what:"change",onClear:()=>o(null)}),hint:i(jS,{unset:!_t(e)}),children:i(YS,{value:r,onChange:n=>{let l=Te(n)??[];o(l.length===be.length?null:l)}})})}}}function QS(){return{type:"custom",render:()=>i(gn,{})}}function OB(){return{_gShape:Se("Shape"),cardCorners:XS(),cardCornerSides:ZS(),cardCornersApplyAll:QS()}}function BB(){return So("Justify",i(Hb,{}),el,el[0].value)}function DB(){return So("Item alignment",i(Mb,{}),Vd,"stretch")}function _B(){return So(qd,i(uS,{}),ol,ol[0].value)}function NB(){return{type:"custom",render:({value:e,onChange:o})=>{let t=Hr.find(r=>r.value===e)??Hr[0];return i(W,{label:tl,icon:i(gc,{}),value:t.label,children:i("div",{className:"sf-gallery-layouts",role:"group","aria-label":tl,children:Hr.map(r=>i("button",{type:"button","aria-pressed":t.value===r.value,"aria-label":r.label,title:r.label,onClick:()=>o(r.value),children:i("span",{className:"sf-gallery-pic",children:JS(r.weights).map((a,n)=>i("i",{style:{gridColumn:`span ${a}`}},n))})},r.value))})})}}}function JS(e){if(!e)return[3,4];let o=e.reduce((t,r)=>t+r,0);return e.map(t=>Math.round(t/o*12))}function MB(){return So(Xd,i(Sc,{}),al,al[0].value)}function HB(){return it(Kd,i(aS,{}),rl,zd,1,rl)}function GB(e){let o=Tl(Hd,yS("`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)."),Ud(e),Mr(e,void 0));return{type:"custom",render:t=>o.render({...t,value:Mr(e,t.value),onChange:r=>t.onChange(r)})}}function UB(e,o,t,r,a,n){return{type:"custom",render:({value:l,onChange:s})=>i(W,{label:e,icon:i(yn,{noun:n}),action:i(yo,{inherited:fc(l),source:"Text",detail:"Website settings \u2192 Text",onReset:()=>s(sc),onOptOut:()=>s(Vr),optOutTitle:`Click to keep ${e} at this section's own built-in size instead`,label:e}),children:Mo({min:o,max:t,step:r,value:typeof l=="number"?l:a,suffix:"px",onChange:s})})}}function WB(){return{_gCellWidth:Se("Cell width"),gridSpan:So("Positions",i(gc,{}),[{label:"Auto",value:""},...Array.from({length:Fr},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function Yr(){let e=null;try{e=dt(o=>o).selectedItem}catch{e=null}return e?.props??{}}function ey({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:l,fallback:s}){let f=Yr()[l],d=Ar(void 0,f,s);return i(Je,{children:Mo({min:e,max:o,step:t,value:Ar(r,f,s),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function oy({label:e,desktopKey:o,fallback:t}){let r=Yr()[o],a=Ar(void 0,r,t);return i(yo,{inherited:!0,source:st.desktop,detail:`${st.desktop} \u2014 ${a}px`,onReset:()=>{},label:e})}function ty(e){return zt(e.label,{min:e.min,max:e.max,step:e.step,unsetLabel:`Inherits \xB7 ${st.desktop}`,unsetMark:i(oy,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>i(ey,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}function Bc(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=y=>r?y:`Padding ${y.toLowerCase()}`,n=y=>it(a("Top"),i(rS,{}),Be.min,Be.max,Be.step,y,"px"),l=(y,L,T,k=Be)=>Ae("mobile",ty({label:a(y),desktopKey:L,min:k.min,max:k.max,step:k.step,fallback:T})),s=e.top??Be.min,f=e.bottom??Be.min,d="sectionPaddingLeft",p="sectionPaddingRight",u=e.sideBounds??Be,c=e.side??u.min,x=e.sidePhone??c,I=e.phone===!0,g=y=>I?Ae("desktop",y):y;return Kt({...r?{_gSpacing:Se("Padding")}:{},[o]:g(n(s)),...I?{[Ht(o)]:l("Top",o,s)}:{},...e.only==="top"?{}:{[t]:g(it(a("Bottom"),i(eS,{}),Be.min,Be.max,Be.step,f,"px")),...I?{[Ht(t)]:l("Bottom",t,f)}:{}},...e.sides?{[d]:g(it(a("Left"),i(oS,{}),u.min,u.max,u.step,c,"px")),...I?{[Ht(d)]:l("Left",d,x,u)}:{},[p]:g(it(a("Right"),i(tS,{}),u.min,u.max,u.step,c,"px")),...I?{[Ht(p)]:l("Right",p,x,u)}:{}}:{}})}var ry={contained:"Contained",page:"Page",full:"Full"},gl="Width";function Dc(e,o=pc,t=!0){let r=o.map(a=>({label:mc[a]??ry[a],value:a}));return Kt({...t?{_gWidth:Se(gl)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>i(W,{label:"Width",icon:i(cS,{}),action:t?i(wS,{inherited:n?.inherited??!1,onReset:()=>a(pl),label:gl}):void 0,children:Rl({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:gl})})}})}function _c(){let e=r=>({type:"custom",render:({value:a,onChange:n})=>J("div",{className:"sf-field",children:[r?J("div",{className:"sf-field-head",children:[i("span",{className:"sf-field-label sf-field-label--inline",children:lt}),r(n)]}):null,i("div",{children:Rl({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(a)?a:"auto",onChange:n,ariaLabel:lt})})]})}),o=()=>({type:"custom",render:({value:r,onChange:a,field:n})=>{let l=n?.unit==="%"?"%":"px",s=l==="%"?Qn:Zn;return i("div",{className:"sf-field",children:Mo({min:s.min,max:s.max,step:s.step,value:typeof r=="number"?r:s.fallback,suffix:l,ariaLabel:lt,onChange:a})})}}),t=()=>Tl("Unit",i(yc,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return Kt({_gHeight:Se(lt),sectionHeightMode:Ae("desktop",e()),sectionHeightValue:Ae("desktop",o()),sectionHeightUnit:Ae("desktop",t()),sectionHeightModePhone:Ae("mobile",e(r=>i(ay,{onClear:()=>r(void 0)}))),sectionHeightValuePhone:Ae("mobile",o()),sectionHeightUnitPhone:Ae("mobile",t())})}function ay({onClear:e}){let o=Yr(),t=Jn(o),r=Nr(o),a=`${st.desktop} \u2014 ${r.mode==="auto"?"Auto":`${r.value}${r.unit}`}`;return i(yo,{inherited:!t,source:st.desktop,detail:a,onReset:e,label:lt})}function Nc(){return{_gAnchor:Se("Anchor"),anchor:OS("Anchor name","e.g. about",vS)}}function No(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:l})=>{let s=typeof r=="boolean"?r:o,f=`${n??l??e}-label`;return i(W,{label:e,labelId:f,icon:t,action:i(hS,{checked:s,onChange:a,ariaLabelledBy:f})})}}}function $B(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return i(W,{label:"Background",icon:i(Cc,{}),htmlFor:a,action:i(Qe,{id:a,label:"Background",value:Cn(e),onChange:o})})}}}function VB(e,o){return{type:"custom",render:({value:t,onChange:r})=>J("div",{className:"sf-field sf-field--row",children:[i("span",{className:"sf-field-label sf-field-label--inline",children:e}),Qe({value:t||o,onChange:r,label:e})]})}}var ny=[{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 Mc({label:e,value:o,onChange:t,points:r=ny}){return i(xS,{label:e,value:o,points:r,onChange:t})}function qB(e,o=bi,t="mediaImage"){return{type:"custom",render:({value:r,onChange:a})=>i("div",{className:"sf-field",children:i(ly,{label:e,value:r||o,onChange:a,imageProp:t})})}}function ly({label:e,value:o,onChange:t,imageProp:r}){let{selectedItem:a}=dt(l=>l),n=a?.props?.[r];return i(Mn,{label:e,value:o,onChange:t,image:typeof n=="string"?n:void 0})}var sy=wa([]);function KB(e,{stacking:o,fallback:t=ir}){return{type:"custom",render:({value:r,onChange:a})=>{let n=ve.includes(r)?r:t;return o?i(fy,{label:e,value:n,onChange:a}):Hc({label:e,value:n,onChange:a,points:sy})}}}function fy({label:e,value:o,onChange:t}){let{appState:r,selectedItem:a}=dt(s=>s),n=a?.props?.id?String(a.props.id):void 0,l=n?Fa(r?.data,n):[];return Hc({label:e,value:o,onChange:t,points:wa(l,n)})}function Hc({label:e,value:o,onChange:t,points:r}){let a=r.find(n=>n.disabled);return i(W,{label:e,icon:i(nS,{}),hint:a?a.title:void 0,children:Mc({label:e,value:co(o),onChange:t,points:r})})}var zB={top:i(Kb,{}),right:i(qb,{}),bottom:i($b,{}),left:i(Vb,{})};function XB(e,o,t,r,a,n){let l=p=>o.find(u=>u.value===p),s=p=>({value:p,label:"",disabled:!0,title:r}),f=p=>{let u=o.find(x=>x.cell===p);if(!u)return s(`missing-${p}`);let c=n?.[p];return c?{value:u.value,label:u.label,icon:c}:{value:u.value,label:u.label}},d=[s("corner-top-left"),f("top"),s("corner-top-right"),f("left"),s("centre"),f("right"),s("corner-bottom-left"),f("bottom"),s("corner-bottom-right")];return{type:"custom",render:({value:p,onChange:u})=>{let c=o.some(x=>x.value===p)?p:t;return i(W,{label:e,icon:a,value:l(c)?.label??"",children:Mc({label:e,value:c,onChange:u,points:d})})}}}var iy="\0note";function So(e,o,t,r,a){return{type:"custom",options:t,fallback:r,...a?{note:a}:{},render:({value:n,onChange:l,field:s})=>{let f=s.options??t,d=s.fallback??r,p=f.some(u=>u.value===n)?n:d;return i(W,{label:e,icon:zr(o),children:i(gS,{value:p,ariaLabel:e,onChange:l,options:[...a?[{label:a,value:iy,disabled:!0}]:[],...f.map(u=>({label:u.label,value:u.value}))]})})}}}function YB(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>i(Gn,{label:e,options:n.options??o,value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:t}:{}})}}function jB(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return i(e,{...a})}}}function Rl({options:e,value:o,onChange:t,ariaLabel:r,disabled:a=!1}){return i(IS,{options:e.map(n=>({id:n.value,label:n.label,title:n.title})),value:o,onChange:t,ariaLabel:r,disabled:a})}var ZB=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function Tl(e,o,t,r){let a=t.map(n=>typeof n=="string"?{label:n,value:n}:n);return{type:"custom",render:({value:n,onChange:l,field:s})=>i(W,{label:e,icon:zr(o),children:Rl({options:a,value:a.some(f=>f.value===n)?n:n||s?.currentValue||r,onChange:l,ariaLabel:e})})}}var dy="__media";function QB(e,o,t){return{type:"custom",[dy]:!0,render:({value:r,onChange:a})=>i(Hn,{value:r||"",onChange:a,label:e,accept:o,placeholder:t})}}function JB({value:e,onChange:o,label:t}){let r=e||{},a=!!r.pending,n=a?"var(--fg-dim, #888)":r.ok?"#1d9e75":"#d85a30",l=(s,f)=>o({...r,[s]:f===""?void 0:Number(f)});return J(W,{label:t,icon:i(hl,{}),children:[i("button",{type:"button",disabled:a,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"8px 10px",fontSize:13,cursor:a?"default":"pointer",opacity:a?.6:1,border:"1px solid var(--border-strong, #ccc)",borderRadius:6,background:"transparent",color:"inherit"},children:a?"Finding\u2026":"Find coordinates"}),r.status&&i("div",{style:{marginTop:6,fontSize:12,lineHeight:1.4,color:n},children:r.status}),i("div",{style:{marginTop:6,fontSize:11,color:"var(--fg-dim, #999)"},children:"Coordinates from OpenStreetMap"}),i("button",{type:"button",onClick:()=>o({...r,manual:!r.manual}),style:{marginTop:8,padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent, #2563eb)",cursor:"pointer",textDecoration:"underline"},children:r.manual?"Hide manual coordinates":"Enter coordinates manually"}),r.manual&&J("div",{style:{marginTop:8,display:"grid",gap:8},children:[i(W,{label:"Latitude",icon:i(hl,{}),children:i("input",{type:"number",step:"any",placeholder:"e.g. 34.0990198",value:typeof r.lat=="number"?r.lat:"",onChange:s=>l("lat",s.target.value)})}),i(W,{label:"Longitude",icon:i(hl,{}),children:i("input",{type:"number",step:"any",placeholder:"e.g. -117.9842833",value:typeof r.lng=="number"?r.lng:"",onChange:s=>l("lng",s.target.value)})})]})]})}function cy(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function uy(e,o,t){let r=e.map(a=>({text:a?.text??""}));return o===null||o<0||o>=e.length?r:r.map((a,n)=>n===o?{text:t}:a)}function py(e,o,t){if(t===null||t>=o.length)return null;for(let r=0;r<t;r+=1)if(e[r]!==o[r])return null;return e[t]!==o[t]&&o.includes(e[t])||e[t]!==o[t]&&o.length!==e.length?null:t}var eD={label:"Ticker items",icon:i(Jb,{})};function oD(e,o,t,r){return{type:"custom",[V]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},render:({value:a,onChange:n})=>i(my,{label:e,icon:zr(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function my({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let l=bl(null),[s,f]=Sl(null),d=u=>u.map(c=>({text:c?.text??""}));return i(bS,{label:e,icon:o,noun:"item",items:t,onChange:u=>{let c=py(t,u,s);c===null&&(l.current=null),f(c),a(d(u))},newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?i(Pn,{target:l,value:cy(t,s),onChange:u=>a(uy(t,s??-1,u)),disabled:s===null,label:s===null?"Formatting \u2014 click a row first":`Formatting \u2014 row ${s+1}`}):void 0,renderRow:(u,c,x)=>i("input",{type:"text",className:n&&s===c?"sf-list-marking":void 0,value:u?.text??"",placeholder:r,"aria-label":`${e} ${c+1}`,onChange:I=>x({text:I.target.value}),onFocus:I=>{l.current=I.currentTarget,f(c)}})})}function tD(e,o){let t=`${e.label} \u2014 row ${o+1}`;return ut({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>i(ct,{value:r,onChange:a,label:t,placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function Gc(e){return{_gCards:Se("Cards"),coverIndex:So("Cover image",i(Zb,{}),ed,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:MS("Image background",Ur),cardImage:xy(),spinOnHover:No("Rotate on hover",e?.spinDefault??!0,i(sS,{}))}}function Uc(){return{outline:So("Card outline",i(fS,{}),Dn,On),indexBadge:So("Card number",i(yc,{}),Bn,An),showBadge:No("Product badge",!0,i(yn,{noun:"tag"}))}}function Wc(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:Se("Show on a card"),showCardPrice:No("Price",!0,i(zb,{})),showCardFinishes:No("Finish swatches",!0,i(Xb,{})),showCardSizes:No("Sizes",o,i(lS,{})),showCardBuy:No("Buy button",o,i(Ub,{})),showCardPage:No("Page button",o,i(Cc,{}))}}function xy(){return zt("Card image",{min:lo,max:wo,step:Ei,hint:"Rounds the picture. The card's own corner is in Site styles."})}function rD(){return zt(Li,{min:lo,max:wo,step:vi,unsetLabel:"Square",hint:"Rounds the picture. Left alone it stays square."})}function aD(){return{type:"custom",render:({value:e,onChange:o})=>i(Iy,{value:typeof e=="string"?e:"",onChange:o})}}function Iy({value:e,onChange:o}){let[t,r]=Sl(null),a=bn.filter(l=>t===null||$e[l].across===t),n=e&&e in $e?$e[e]:null;return J(Je,{children:[i(W,{label:"Photos in a row",icon:i(Wb,{}),children:J("div",{className:"sf-gallery-filter",children:[i("button",{type:"button","aria-pressed":t===null,onClick:()=>r(null),children:"All"}),Oi.map(l=>i("button",{type:"button","aria-pressed":t===l,onClick:()=>r(l),children:l},l))]})}),i(W,{label:"Layout",icon:i(Yb,{}),value:n?n.label:"Not chosen",hint:`${a.length} of ${bn.length} layouts`,children:i("div",{className:"sf-gallery-layouts",children:a.map(l=>i("button",{type:"button","aria-pressed":e===l,"aria-label":$e[l].label,title:$e[l].label,onClick:()=>o(e===l?"":l),children:i("span",{className:"sf-gallery-pic",children:$e[l].desktop.map(([s,f],d)=>i("i",{style:{gridColumn:`span ${s}`,gridRow:`span ${f}`}},d))})},l))})})]})}function hy(e,o){let t=et(e.props.name);if(t)return t;let r=et(e.props.altName);if(r)return r;let a=e.props.collection?.name;if(a)return a;let n=e.props.source?.title;if(n)return n;let l=e.props.code;return l?o?.(l)??l:""}function dD(e,o,t){return Ao(hy(e,t))||o(e.type)}function cD(e){if(!e)return null;for(let o of["name","altName"])if(Tc(e[o]))return o;return null}function uD(e,o){return et(e.props?.name).trim()||o}var{Provider:xD,useSelection:ID}=lr("selectedPartId");import{createContext as gy,useContext as by,useMemo as Sy,useState as yy}from"react";import{jsx as ky}from"react/jsx-runtime";var Cy={partStyle:null,setPartStyle:()=>{}},$c=gy(Cy);function bD({children:e}){let[o,t]=yy(null),r=Sy(()=>({partStyle:o,setPartStyle:t}),[o]);return ky($c.Provider,{value:r,children:e})}function SD(){return by($c)}function wl(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Pl(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}}var Ry=Bo,Ty=["text","textarea"],wy=["textarea","plainTextarea"];function Py(e){return!e||typeof e!="object"?null:e[V]?.control??null}function Vc(e){let o=Py(e);return o&&Ry.includes(o)?o:null}function PD(e){return wy.includes(e)}function FD(e){return!e||typeof e!="object"?void 0:e[V]?.placeholder}function jr(e){return Ze(e).text}function Fl(e,o,t){return Ty.includes(e)?{text:t,hidden:Ze(o).hidden}:t}function ED(e,o,t,r){return jr(e[o])===r?null:{...e,[o]:Fl(t,e[o],r)}}function Fy(e){if(!(!e||typeof e!="object"))return e[V]}function Ey(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function qc(e,o){if(!Array.isArray(o))return[];let t=Fy(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((l,s)=>{let f=l?.[n];typeof f=="string"&&f&&r.push({row:{index:s,rowKey:n},text:f})}),r}let a=Ey(e);return a?(o.forEach((n,l)=>{for(let[s,f]of Object.entries(a)){if(!Vc(f))continue;let d=jr(n?.[s]);d&&r.push({row:{index:l,rowKey:s},text:d})}}),r):[]}function vy(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function Ly(e,o,t,r){let a=e[o];return!Array.isArray(a)||t.index<0||t.index>=a.length?null:{...e,[o]:a.map((n,l)=>l===t.index?{...n,[t.rowKey]:r}:n)}}function OD(e,o,t,r,a){let n=vy(e[o],t);return jr(n)===a?null:Ly(e,o,t,Fl(r,n,a))}function BD(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var $D="data-sf-part",VD="data-sf-part-selected",qD="data-sf-part-kind",El="::",Kc=2;function KD(e,o){return`${e}${El}${o??""}`}function Qr(e){let o=e.indexOf(El);return o<=0?null:{nodeId:e.slice(0,o),propKey:e.slice(o+El.length)||null}}function zD(e,o){if(!e)return!1;let t=Qr(e);return!!t?.propKey&&t.nodeId===o}function mt(e){return Ao(e).replace(/\s+/gu,"")}function Zr(e,o,t){let r=e[V];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let l of o){let s=l?.[n];typeof s=="string"&&t.push(s)}return}let{text:a}=Ze(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[Bt]){if(e.type==="text"||e.type==="textarea"){typeof o=="string"&&o&&t.push(o);return}if(e.arrayFields&&Array.isArray(o)){for(let a of o)for(let[n,l]of Object.entries(e.arrayFields))Zr(l,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))Zr(n,o[a],t)}}function XD(e){if(!e||typeof e!="object")return!1;let o=e;return o[Bt]?!1:!!o[V]||o.type==="text"||o.type==="textarea"}function zc(e,o){let t=e[V];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Ay(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function YD(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){if(!a||typeof a!="object"||Gt(r))continue;let n=a,l=[];Zr(n,o?.[r],l),!l.length&&n[Dt]!==void 0&&Zr(n,n[Dt],l);let s=zc(n,r),f=new Set;for(let{row:u,text:c}of qc(n,o?.[r])){let x=mt(c);x.length<Kc||(f.add(x),t.push({key:r,label:s,texts:[x],row:u}))}let d=new Set(f),p=[];for(let u of l){let c=mt(u);c.length<Kc||d.has(c)||(d.add(c),p.push(c))}p.length&&t.push({key:r,label:s,texts:p})}return t}var Oy=Bo;function Xc(e,o){if(!o||typeof o!="object"||Gt(e))return null;let t=o[V];return!t||!Oy.includes(t.control)?null:t}function jD(e,o){let t=Xc(e,o);return t!==null&&t.identifier!==!0}function ZD(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=Xc(r,a);if(!n)continue;let{text:l,hidden:s}=Ze(o?.[r]),f=l||n.placeholder||"",d=Ao(f).replace(/\s+/gu," ").trim();t.push({key:r,label:Ay(zc(a,r)),preview:d,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!s})}return t}import{SETTINGS_BUCKETS as By}from"efficient-easel/panel";var xt=By,ne={Content:"_sContent",Style:"_sStyle",Layout:"_sLayout",Animation:"_sAnimation"},t_=[ne.Layout,...Object.keys(Bc({phone:!0})),...Object.keys(Dc("full")),...Object.keys(_c()),...Object.keys(Nc())],r_=[ne.Style,...Object.keys(Fc())],a_=[ne.Style,...Object.keys(Lc())],n_=[ne.Animation,...Object.keys(Ac())],Dy=Object.keys(Gc()),_y=new Set(["cardImage","imageBackground"]),l_=[ne.Style,...Dy.filter(e=>e.startsWith("_g")||_y.has(e))],s_=Object.keys(Uc()),f_=Object.keys(Wc({bottomDefault:!0})),Ny="Editor only \u2014 not shown live",Yc={"Archive link":"Content",Article:"Content",Boxes:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content","Opening filter":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Style",Gallery:"Style",Image:"Style","Image column":"Style",Images:"Style",Logo:"Style",Media:"Style","Background image":"Style",Color:"Style","Image tint":"Style",Style:"Style",Shape:"Style",Texture:"Style","Text style":"Style",Motion:"Animation",Animation:"Animation",Anchor:"Layout",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Layout",Behavior:"Layout",Controls:"Layout",Diagram:"Layout",[Ny]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Nudge:"Layout","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Layout",Height:"Layout"},jc={"AlloyWheelsListing._gCards":"Style","ProductGrid._gCards":"Style"};function My(e,o,t){return jc[`${e}.${o}`]??Yc[t]}var Hy={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","EmailFormBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","BrandStrip._gContent":"duplicated the Content bucket header above it (66338)","BrandStrip._gStyle":"duplicated the Style bucket header above it (66338)","BrandStrip._gLayout":"duplicated the Layout bucket header above it (66338)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","ParagraphsA._gStyle":"duplicated the Style bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"};function i_(e){let o=new Set(Object.values(ne));for(let[t,r]of Object.entries(e))if(!o.has(t)&&pt(r)?.level===1)return 1;return 2}function Gy(e){let o=`${e}.`;return Object.keys(Hy).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function Uy(e,o){let t=Fn(e),r=Se(o);return t?Ae(t.tier,r):r}function d_(e,o){let t=[],r=new Set(Gy(o)),a=new Set,n=null;for(let[c,x]of Object.entries(e)){let I=pt(x);if(!I){n||t.push(n={bucket:"Content",entries:[]}),n.entries.push([c,x]);continue}if(r.has(c)){let L=Yc[I.label];if(I.level!==2||!L||I.label!==L)throw new Error(`${o}.${c}: RETIRED (lib/puck/field-groups.ts) lists this sub-heading as one whose name duplicates its bucket, but it is a level-${I.level} "${I.label}" header in the ${L??"(unclassified)"} bucket. Only a level-2 header whose label IS its bucket's name may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);a.add(c),t.push(n={bucket:L,entries:[]});continue}let g=My(o,c,I.label);if(!g)throw new Error(`${o}.${c}: the inspector group "${I.label}" is not classified in LABEL_BUCKET (lib/puck/field-groups.ts), so there is no way to say which of ${xt.join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);let y=c===ne[g]&&I.level===1;if(!y&&c===ne[g])throw new Error(`${o}.${c}: that key is reserved for the ${g} bucket header, but this field is a level-${I.level} "${I.label}" header, so it cannot serve as one. Rename the section's own field.`);t.push(n={bucket:g,entries:[[c,y||I.level===2?x:Uy(x,I.label)]],isBucketHeader:y})}let l=new Set(Object.entries(e).filter(([,c])=>pt(c)).map(([c])=>c)),s=Object.keys(jc).filter(c=>c.startsWith(`${o}.`)).filter(c=>!l.has(c.slice(o.length+1)));if(s.length)throw new Error(`${o}: KEY_BUCKET (lib/puck/field-groups.ts) lists ${JSON.stringify(s)}, 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 d=t.some(c=>c.isBucketHeader)?[]:[...r].filter(c=>!a.has(c));if(d.length)throw new Error(`${o}: RETIRED (lib/puck/field-groups.ts) lists ${JSON.stringify(d)}, but this section has no such fold header${d.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);for(let c of xt){let x=ne[c];if(x in e&&!t.some(I=>I.isBucketHeader&&I.entries[0]?.[0]===x))throw new Error(`${o}.${x} is reserved for the ${c} bucket header but is not a level-1 "${c}" fold header. Rename the section's own field.`)}let p=xt.filter(c=>t.some(x=>x.bucket===c)),u={};for(let c of xt){let x=t.filter(y=>y.bucket===c);if(!x.length)continue;let I=x.findIndex(y=>y.isBucketHeader);I>0&&x.unshift(...x.splice(I,1));let g=Xr(c,c===p[0]?p:null);I<0&&(u[ne[c]]=g);for(let y of x)for(let[L,T]of y.entries)u[L]=y.isBucketHeader&&L===ne[c]?g:T}return u}function c_(e){return ne.Content in e?e:{[ne.Content]:Xr("Content",null),...e}}function u_(e){return xt.some(o=>ne[o]in e)}function p_(e){let o=xt.filter(r=>ne[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[ne[r]]=Xr(r,r===o[0]?o:null);return t}var Wy=new Set(["Hero","HeroSingle","IntroBleed"]),Zc={min:56,max:140,default:88},I_={min:0,max:120,step:2,default:28},Qc=`var(--sf-header-h, ${Zc.default}px)`,$y="--sf-header-set-h",h_="--sf-header-h",g_=`var(${$y}, ${Zc.default}px)`,b_="sf-header-clearance",S_="sf-sticky-underheader";function Vy(e){return e?.find(o=>o?.type&&o.type!==uo)??null}function Jc(e){let o=Vy(e)?.type;return!o||!Wy.has(o)}function y_(e){return!Jc(e)}function C_(e){return!!e?.some(o=>o?.type===uo)}function k_(e){return!e||e.length===0?!1:!e.some(o=>o?.type===uo||o?.type===Ft)}var qy=["auto","shared","own"],Ky="auto",zy="topSpace",R_="data-top-space";function Xy(e){return qy.includes(e)?e:Ky}function Yy(e,o){let t=Xy(e?.props?.[zy]);return t==="own"?!0:t==="shared"?!1:Jc(o)}function T_(e,o){return Yy(e,o)?"own":null}import{useCallback as gt,useEffect as bt,useId as Hk,useRef as eo,useState as or}from"react";var eu="data-puck-overlay-portal";function Jr(e){return e.setAttribute(eu,"true"),()=>e.removeAttribute(eu)}var vl="small",Ll="dot",jy=[{label:"Small",value:"small"},{label:"Display",value:"display"}],Zy=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],ou={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},Qy={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)]"},Jy={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 tu(e){return Io(jy,vl,e)}function ru(e){return Io(Zy,Ll,e)}function au(e){return Qy[e]}function nu(e,o){return Jy[e][o]}var Al="left",eC=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],oC={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function lu(e){return Io(eC,Al,e)}function su(e){return e==="up"||e==="down"}function fu(e,o){return`${oC[e]} ${o}s linear infinite`}import{Fragment as Lu}from"react";var Dl="_partStyles",Ml="data-sf-part-styled",tC=["none","upper","lower"],rC=[400,500,600,700],aC=["left","center","right","justify"],nC=5,lC=1e3,sC=-5,fC=10,iC=0,dC=64,cC=2,uC=120,ea=1280,pC=10,iu={size:{min:nC,max:lC,step:1},padding:{min:iC,max:dC,step:cC},width:{min:uC,max:ea,step:pC}},mC=.05,xC=.01,IC=["line","letter"],hC=.5,gC=2.5,bC=-1,SC=1,yC=0,CC=400,_l={none:"none",upper:"uppercase",lower:"lowercase"};function Yt(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function pu(e){return Yt(e?.[Dl])??{}}function kC(e,o){let t=pu(e);return Object.hasOwn(t,o)?Yt(t[o])??{}:{}}function mu(e,o,t){let r={...pu(e)};if(RC(t).length?r[o]=t:delete r[o],!Object.keys(r).length){let{[Dl]:a,...n}=e;return n}return{...e,[Dl]:r}}function RC(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function TC(e){return IC.includes(e)}var Xt=(e,o,t)=>Math.min(t,Math.max(o,e));function wC(e,o){if(TC(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:Xt(t,sC,fC)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?It(Xt(t,hC,gC),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?It(Xt(t,bC,SC),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:Xt(t,yC,CC)}if(Object.hasOwn(iu,e)){let{min:t,max:r}=iu[e],a=Math.round(Number(o));return Number.isFinite(a)?Xt(a,t,r):null}return e==="role"?Tt.includes(String(o))?o:null:o}var PC=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function FC(e){let o=[];for(let[t,r]of PC)t===e?o.push(r):r===e&&o.push(t);return o}function __(e,o,t,r){let a={...kC(e,o)},n=r==null?null:wC(t,r);if(n===null)delete a[t];else{a[t]=n;for(let l of FC(t))delete a[l]}return mu(e,o,a)}function N_(e,o){return mu(e,o,{})}function EC(e){for(let o of tC)if(_l[o]===e)return o;return"none"}function vC(e){return!e||!Object.hasOwn(_l,e)?"":_l[e]}var LC={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 AC(e){let o=e.role;return o&&Tt.includes(o)?o:null}var OC={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 BC(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=It(DC+e.line*mC,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=It(e.letter*xC,4)),o}var DC=1,Zt="--sf-part-para";function oa(e,o,t){let r=AC(e),a=BC(e),n=e.size?`${e.size}px`:r?t?.has(nr[r])?`var(--size-${nr[r]})`:OC[nr[r]]??"":"";return{fontFamily:e.font?HC(e.font):r?`var(${LC[r]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:n,minWidth:n?"0":"",overflowWrap:n?"break-word":"",lineHeight:a.lineHeight!==void 0?String(a.lineHeight):"",letterSpacing:a.letterSpacingEm!==void 0?`${a.letterSpacingEm}em`:"",[Zt]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:vC(e.case),textAlign:e.align??"",paddingTop:Ol(e.padding),paddingBottom:Ol(e.padding),maxWidth:Ol(e.width),color:_C(e.color)}}var _C=e=>e===void 0||e===""?"":Object.hasOwn(mo,e)?mo[e]:xu.test(e)?e:"",xu=/^#[0-9a-fA-F]{6}$/;function Iu(e){return xu.test(e)}var Ol=e=>e===void 0?"":`${e}px`,It=(e,o)=>Number(e.toFixed(o));function M_(e,o){let t=Number.parseFloat(e.fontSize)||16,r=Number.parseFloat(e.lineHeight),a=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop),l=Number.parseFloat(e.maxWidth);return{fontKey:o,sizePx:t,weight:NC(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?It(r/t,3):1.2,letterEm:Number.isFinite(a)?It(a/t,4):0,align:MC(e.textAlign),case:EC(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(l)&&l<ea?Math.round(l):ea}}function NC(e){return Number.isFinite(e)?rC.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function MC(e){for(let o of aC)if(o===e)return o;return e==="end"?"right":"left"}function H_(e,o){let t=du(e);if(!t)return"";for(let r of ha)if(du(o(r.cssVar))===t)return r.key;return""}var du=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function HC(e){let o=Ts(e);return o?`var(${o.cssVar})`:""}function G_(e,o,t,r){return!o||Qr(o)?.nodeId!==e?null:t.find(n=>r(n.getAttribute("class")))??t[0]??null}function GC(e){let o=new Set,t=e;if(typeof window>"u"||!t?.ownerDocument)return o;let r=window.getComputedStyle(t);for(let a of UC)r.getPropertyValue(`--size-${a}`).trim()&&o.add(a);return o}var UC=["headingLarge","headingMedium","headingSmall","accent","body","label"];function U_(e,o,t=()=>jt,r=n=>n,a=VC){let n=0;for(let{element:l,partId:s}of e){let f=Qr(s)?.propKey;if(!f)continue;let d=r(f),p=Object.hasOwn(o,d)?Yt(o[d])??{}:{},u=oa(p,jt,GC(l)),c=Bl.some(g=>l.style[g]),x=!1;for(let[g,y]of Object.entries(u))qC(l,g,y),y&&(x=!0);if(c||Bl.some(g=>u[g]))for(let g of WC(l,a))for(let y of Bl)g.style[y]=u[y]??"";x&&(n+=1)}return n}function WC(e,o){let t=mt(e.textContent??""),r=[],a=e;for(let n=0;n<$C&&o(a);n+=1){let l=a.parentElement;if(!l||mt(l.textContent??"")!==t)break;r.push(l),a=l}return r}var $C=8;function VC(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var jt={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:ea};function qC(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let r=e.style;typeof r.setProperty=="function"?t?r.setProperty(o,t):r.removeProperty?.(o):r[o]=t;let a=e;o===Zt&&(t?a.setAttribute?.(cu,""):a.removeAttribute?.(cu))}var cu="data-sf-part-para",KC=Object.keys(oa({},jt)),Nl=new Set(["color","overflowWrap",Zt]),Bl=KC.filter(e=>!Nl.has(e));function hu(e,o,t,r=a=>a){let a=new Map;for(let s of e){let f=wl(s.key,s.row);for(let d of s.texts){let p=a.get(d);p?(p.keys.add(s.key),p.partKeys.add(f)):a.set(d,{keys:new Set([s.key]),partKeys:new Set([f])})}}let n=new Map;for(let s of Object.keys(o)){if(!zC(s))continue;let f=Yt(o[s])??{},d=oa(f,jt);Object.values(d).some(Boolean)&&n.set(s,{stamp:uu(t,s),declarations:d})}let l=new Map;for(let[s,{keys:f,partKeys:d}]of a){let p=d.size===1?[...d][0]:f.size===1?[...f][0]:null;if(!p)continue;let u=r(p);if(!Object.hasOwn(o,u))continue;let c=Yt(o[u])??{},x=oa(c,jt);Object.values(x).some(Boolean)&&l.set(s,{stamp:uu(t,p),declarations:x})}return l.size||n.size?{rules:l,kindRules:n,drawn:new Set(a.keys())}:null}function zC(e){return e.startsWith("@")}function gu(e,o){return e?.kindRules.get(o)??null}function uu(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function bu(e){let o=[],t=new Set,r=a=>{let{stamp:n,declarations:l}=a;if(t.has(n))return;t.add(n);let s=Object.entries(l).filter(([,c])=>c!==""),f=c=>c.map(([x,I])=>`${YC(x)}: ${I}`).join("; "),d=`[${Ml}="${n}"]`,p=s.filter(([c])=>!Nl.has(c)),u=s.filter(([c])=>Nl.has(c));p.length&&o.push(`${d}, *:has(> ${d}) { ${f(p)} }`),u.length&&o.push(`${d} { ${f(u)} }`),l[Zt]&&o.push(...XC(d))};for(let a of e.rules.values())r(a);for(let a of e.kindRules.values())r(a);return o.join(`
4
- `)}function XC(e){let o=`var(${Zt})`,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 YC=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function Su(e,o){if(!e)return null;let t=mt(o),r=e.rules.get(t);if(r)return r;if(t.length<jC||e.drawn.has(t))return null;let a=null;for(let[n,l]of e.rules)if(n.includes(t)){if(a&&a.stamp!==l.stamp)return null;a=l}return a}var jC=8;import{createContext as Tu,useContext as Hl,useId as JC,useMemo as ek}from"react";var Qt="@name",yu="@body",Cu="@value",V_={[Qt]:"Name",[yu]:"Body",[Cu]:"Value"},ZC={TimelineTrack:{"entries.date":Qt,"entries.title":Qt,"entries.blurb":yu},Footprint:{"offices.city":Qt},Stats:{"items.label":Qt,"items.value":Cu}};function QC(e){let{key:o,row:t}=Pl(e);return t?`${o}.${t.rowKey}`:null}function ku(e,o){if(!e)return o;let t=QC(o);return t?ZC[e]?.[t]??o:o}import{Fragment as Ru,jsx as ta,jsxs as ok}from"react/jsx-runtime";var Gl=Tu(null),wu=Tu(null);function j_({needles:e,styles:o,type:t,children:r}){let a=JC(),n=JSON.stringify([a,e,o,t]),l=ek(()=>hu(e,o,a,s=>ku(t,s)),[n]);return l?ok(Ru,{children:[ta("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:bu(l)}}),ta(Gl.Provider,{value:l,children:r})]}):ta(Ru,{children:r})}function Pu(e){let o=Hl(Gl),t=Hl(wu),r=Su(o,e);return r&&r.stamp!==t?r:null}function Z_(e){return gu(Hl(Gl),e)}function Fu({stamp:e,children:o}){return ta(wu.Provider,{value:e,children:o})}import{Fragment as tk,jsx as Ul}from"react/jsx-runtime";function ht({value:e,children:o}){let t=Pu(e);return t?Ul(Fu,{stamp:t.stamp,children:Ul("span",{[Ml]:t.stamp,children:o})}):Ul(tk,{children:o})}import{Fragment as rk,jsx as Wl}from"react/jsx-runtime";function Eu({className:e=""}){return Wl("sup",{className:`text-accent tracking-normal ${e}`,children:"\xAE"})}function ra(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(Wl(Eu,{},`r${a}`))}),Wl(rk,{children:t})}var aN=Eu;import{jsx as N,jsxs as $l}from"react/jsx-runtime";function Vl(e,o=!1){let t=ck(o),r=xn(e);if(r.length===1){let[n]=r,l=mn(n),s=l?ik(l,n.children):n.children;return N(ht,{value:e,children:aa(s,t)})}let a=[];return r.forEach((n,l)=>{if(n.bullet){a.push(N("span",{"data-sf-bullet":"",className:ak,children:aa(n.children,t)},l));return}if(n.number!=null){a.push($l("span",{"data-sf-number":n.number,className:nk,children:[$l("span",{className:lk,children:[n.number,"."]}),aa(n.children,t)]},l));return}l>0&&!sk(r[l-1])&&a.push(N("br",{},`br${l}`)),a.push(N(Lu,{children:aa(n.children,t)},l))}),N(ht,{value:e,children:a})}var ak="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",nk="relative block pl-[2em]",lk="absolute left-0 w-[1.6em] text-right tabular-nums";function sk(e){return e.bullet||e.number!=null}var fk="text-accent underline underline-offset-[0.18em]";function ik(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function dk(e){if(e)return Iu(e)?e:Object.hasOwn(mo,e)?mo[e]:void 0}function aa(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(N("span",{children:ra(a.text)},n)),r=!0;return}r||t.push(N("span",{},`e${n}`)),t.push(Au(a,n,o)),r=!1}),r||t.push(N("span",{},"end")),t}function vu(e,o){return e.length===1&&e[0].kind==="text"?ra(e[0].text):e.map((t,r)=>t.kind==="text"?N(Lu,{children:ra(t.text)},r):Au(t,r,o))}function ck(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function pN(e){return N(ht,{value:e,children:N("span",{children:e})})}function Au(e,o,t){if(e.kind==="link")return N("a",{href:e.href,className:fk,children:vu(e.children,t)},o);let r=vu(e.children,t),a=si[e.kind];if(a)return N("span",{[fi]:a,children:r},o);switch(e.kind){case"underline":return N("u",{children:r},o);case"sup":return N("sup",{children:r},o);case"sub":return N("sub",{children:r},o);case"color":{let n=dk(e.color);return n?N("span",{style:{color:n},children:r},o):N("span",{children:r},o)}case"accent":case"highlight":return N("em",{className:t,children:r},o);case"bold":return N("strong",{className:"font-semibold",children:r},o);case"italic":return N("em",{className:"italic",children:r},o);case"strike":return N("s",{className:"line-through",children:r},o);default:return N("span",{children:r},o)}}function mN(e,o=!0){let t=e.split(`
5
- `);return N(ht,{value:e,children:t.map((r,a)=>$l("span",{children:[Vl(r,o),a<t.length-1?N("br",{}):null]},a))})}function xN(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{jsx as Jt,jsxs as Ou}from"react/jsx-runtime";var uk={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function ql({items:e,separator:o=Ll,size:t=vl,durationSec:r=50,scroll:a=Al,backdrop:n="themed-band",className:l}){let s=tu(t),f=lu(a),d=ru(o),p=`text-accent ${nu(s,d)}`.trim(),u=ou[d],c=u===""?Jt("span",{}):Jt("span",{className:p,children:u}),x=su(f),I=x?"inline-flex flex-col items-center gap-[60px] pb-[60px] max-[800px]:gap-8 max-[800px]:pb-8":"inline-flex items-center gap-[60px] pr-[60px] max-[800px]:gap-8 max-[800px]:pr-8",g=x?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",y=L=>Jt("span",{className:I,children:e.map((T,k)=>{let _=typeof T=="string"?T:T.text,$=typeof T=="object"&&T.gold;return Ou("span",{className:g,children:[Jt("span",{className:$?"text-accent":void 0,children:Vl(_)}),c]},k)})},L);return Jt("div",{className:`overflow-hidden ${l??""}`,children:Ou("div",{className:`flex ${x?"flex-col ":""}whitespace-nowrap ${au(s)} ${uk[n]}`,style:{animation:fu(f,r)},children:[y("a"),y("b")]})})}var pk={"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]"},mk=`calc(${Kr} - ${ue}*2)`,Bu=`var(${dl},${ue})`,TN=`pointer-events-none absolute inset-y-0 left-[${Bu}] right-[${Bu}] z-[6] mx-auto max-w-[var(${cl},${mk.replace(/ /g,"_")})]`;function na(e,o){return`pointer-events-auto absolute ${pk[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function Du(e){return ve.includes(e)?e:null}var xk="bottom-right",Ik=["outline","solid","square","bare"],hk="outline",EN={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},vN=!1,_u=["prev","next"],Nu={prev:"Previous slide",next:"Next slide"};function gk(e){return Ik.includes(e)?e:hk}function bk(e){return Du(e)??xk}var Sk="flex-row items-center gap-2";function Mu(e){return na(bk(e),Sk)}var yk={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 Hu(e){return yk[gk(e)]}function Gu(e){return e.shown===!0&&(e.count??0)>1}function la(e,o,t){if(t<=1)return o;let r=Math.min(Math.max(o,0),t-1);return e==="prev"?(r-1+t)%t:(r+1)%t}import{jsx as Kl}from"react/jsx-runtime";function zl({shape:e,placement:o,ref:t}){let r=Hu(e);return Kl("div",{ref:t,className:Mu(o),style:{color:"var(--overlay-fg)"},children:_u.map(a=>Kl("button",{type:"button","data-hero-nav":a,"aria-label":Nu[a],className:r,children:Kl(Jo,{name:"chevron-right",size:18,rounded:!0,style:a==="prev"?{rotate:"180deg"}:void 0})},a))})}var Ck=ve;var kk="top-right",Rk=["cards","dots","numbers","bar","tabs"],Tk=["cards","dots","numbers","bar"],Uu="cards",MN={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},HN=!0;function sa(e){return Rk.includes(e)?e:Uu}function Wu(e){return Tk.includes(e)?e:Uu}function wk(e){return Ck.includes(e)?e:kk}var $u={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 Vu(e,o){return na(wk(o),$u[sa(e)])}function qu(e){return`flex ${$u[sa(e)]}`}function Ku(e){return e.shown!==!1&&(e.count??0)>1}function Pk(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function Fk(e,o){return e===o?!0:e.length!==o.length?!1:e.every((t,r)=>t.name===o[r].name&&t.process===o[r].process&&t.video===o[r].video)}function zu(e,o){let t=Array.from(o,Pk);return Fk(e,t)?e:t}import{Fragment as er,jsx as ee,jsxs as Xl}from"react/jsx-runtime";function Yl({slides:e,active:o,shape:t,placement:r,ref:a,tone:n="media",label:l}){let s=sa(t),f=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--surface-2)"}:void 0;return Xl("aside",{ref:a,"aria-label":l??"Featured slides",className:n==="surface"?qu(s):Vu(s,r),style:{color:"var(--overlay-fg)",...f},children:[s==="cards"&&ee(Ek,{slides:e,active:o}),s==="dots"&&ee(vk,{count:e.length,active:o}),s==="numbers"&&ee(Lk,{count:e.length,active:o}),s==="bar"&&ee(Ak,{count:e.length,active:o}),s==="tabs"&&ee(Ok,{slides:e,active:o})]})}function Ek({slides:e,active:o}){return Xl(er,{children:[ee("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,r)=>{let a=r===o;return Xl("button",{type:"button","data-idx":r,"aria-pressed":a,"aria-label":`Go to ${t.name||`slide ${r+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]",a?"border-accent bg-overlay-scrim/70":"border-overlay-chrome/15 hover:border-overlay-chrome/45 hover:bg-overlay-scrim/70"].join(" "),children:[ee("span",{className:["font-display text-[length:var(--size-body,13px)] font-medium uppercase leading-tight tracking-[-0.01em]",a?"text-accent":"text-overlay-fg"].join(" "),children:t.name||`Slide ${r+1}`}),ee("span",{className:"font-mono text-[length:var(--size-label,9px)] uppercase tracking-[0.2em] text-overlay-chrome/55",children:a?"\u25B6 Now playing":t.process||" "})]},r)})]})}function vk({count:e,active:o}){return ee(er,{children:Array.from({length:e},(t,r)=>ee("button",{type:"button","data-idx":r,"aria-pressed":r===o,"aria-label":`Go to slide ${r+1}`,className:`h-2 cursor-pointer rounded-full transition-all motion-reduce:transition-none ${r===o?"w-5 bg-accent":"w-2 bg-overlay-chrome/45 hover:bg-overlay-chrome/70"}`},r))})}function Lk({count:e,active:o}){return ee(er,{children:Array.from({length:e},(t,r)=>ee("button",{type:"button","data-idx":r,"aria-pressed":r===o,"aria-label":`Go to slide ${r+1}`,className:`cursor-pointer font-mono text-[length:var(--size-label,11px)] leading-none tracking-[0.06em] transition-colors ${r===o?"text-overlay-fg":"text-overlay-chrome/45 hover:text-overlay-chrome/80"}`,children:String(r+1).padStart(2,"0")},r))})}function Ak({count:e,active:o}){return ee(er,{children:Array.from({length:e},(t,r)=>ee("button",{type:"button","data-idx":r,"aria-pressed":r===o,"aria-label":`Go to slide ${r+1}`,className:`h-full flex-1 cursor-pointer transition-colors ${r<=o?"bg-overlay-fg":"bg-overlay-chrome/25"}`},r))})}function Ok({slides:e,active:o}){return ee(er,{children:e.map((t,r)=>{let a=r===o;return ee("button",{type:"button","data-idx":r,"aria-pressed":a,className:["flex min-w-[140px] flex-1 cursor-pointer items-end px-6 py-7 text-left transition-colors",r>0?"border-l border-overlay-chrome/15":"",a?"bg-overlay-scrim/70":"hover:bg-overlay-scrim/40"].join(" "),children:ee("span",{className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium uppercase leading-tight tracking-[-0.02em]",a?"text-overlay-fg":"text-overlay-chrome/55"].join(" "),children:t.name})},r)})})}import{useEffect as Bk,useState as Dk}from"react";var Xu="(prefers-reduced-motion: reduce)";function _k(){return globalThis.window?.matchMedia?.(Xu)?.matches??!1}function qN(){return _k()?"auto":"smooth"}function Yu(){let[e,o]=Dk(!1);return Bk(()=>{let t=globalThis.window?.matchMedia?.(Xu);if(!t||(o(t.matches),typeof t.addEventListener!="function"))return;let r=a=>o(a.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[]),e}var jl={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 ju={min:40,max:100,step:5,fallback:100,unit:"vh"};function Zl(e){return`${typeof e=="number"?e:ju.fallback}${ju.unit}`}function Zu(...e){return e.some(o=>typeof o=="number")}var Nk=40;function Mk(e,o){return Math.abs(e)<=Nk||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function Qu(e,o,t,r){let a=Mk(e,o);return a?la(a,t,r):t}function Ju(e){return(e.count??0)>1&&e.editing!==!0}function ep(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function op(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{jsx as Xe,jsxs as fa}from"react/jsx-runtime";var Gk=`
6
- .hero-ticker-pick { cursor: pointer; }
7
- .hero-ticker-pick:hover {
8
- outline: 2px solid color-mix(in srgb, ${jl.accent} 45%, transparent);
9
- outline-offset: -2px;
10
- }
11
- .hero-ticker-pick[data-selected] {
12
- outline: 2px solid ${jl.accent};
13
- outline-offset: -2px;
14
- }
15
- `,Uk="Play video",Wk="Hold video",$k="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",Vk="item",qk=["","","","","",""],tp=new Map,rp="hero-slider:goto";function Kk(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(rp,o),()=>t.removeEventListener(rp,o)}function zk({slides:e,alignment:o,textureOpacity:t,showTexture:r,textureColor:a,phoneUpDown:n,phoneSideways:l,autoplay:s,autoplayInterval:f,showTicker:d,tickerItems:p,heightDesktop:u,heightMobile:c,showPicker:x,pickerShape:I,pickerPlacement:g,showArrows:y,arrowsShape:L,arrowsPlacement:T,editing:k}){let _=Zu(u,c),$=_?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",pe=_?{"--sf-hero-h-d":Zl(u),"--sf-hero-h-m":Zl(c)}:void 0,oe=(p??qk.map(C=>({text:C}))).map(C=>C?.text?.trim()?C.text:k?Vk:"").filter(Boolean),oo=d!==!1,le=eo(null),M=eo(null),Pe=eo(null),_e=eo(null),ye=eo(null),Z=Hk(),to=eo(Z),[Ne,b]=or([]),[K,Q]=or(0),z=eo(0),[Ho,St]=or(!1),[Fe,Co]=or(!1),[ro,me]=or(null),ko=Yu(),{selectedHeroId:Go,select:tr}=Jf(),xe=gt(()=>le.current?.querySelector(".hero-track")??null,[]),Ie=gt((C,w=!1)=>{Q(C),z.current=C,tp.set(to.current,C);let F=le.current?.querySelector(".hero-track");if(F)if(w){let D=F.style.transition;F.style.transition="none",F.style.transform=`translateX(-${Math.max(0,C)*100}%)`,F.offsetHeight,F.style.transition=D}else F.style.transform=`translateX(-${Math.max(0,C)*100}%)`},[]);bt(()=>{let C=le.current,w=C?.getAttribute("data-puck-component")||C?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||Z;to.current=w,me(w);let F=tp.get(w);typeof F=="number"&&(Q(F),z.current=F)},[]),bt(()=>{let C=xe();if(!C)return;let w=()=>{b(D=>zu(D,C.querySelectorAll("[data-slide-name]")))};w();let F=new MutationObserver(w);return F.observe(C,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{F.disconnect()}},[xe]),bt(()=>{if(!k)return;let C=w=>{let F=w.detail;if(!F||typeof F.index!="number")return;let D=le.current,Ce=D?.getAttribute("data-puck-component")||D?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||to.current;F.id&&F.id!==Ce||Ie(F.index,!0)};return Kk(le.current,C)},[k,Ie]);let te=Ne.length,Ye=Math.min(Math.max(K,0),Math.max(0,te-1)),Uo=Ku({shown:x,count:te}),yt=Gu({shown:y,count:te}),Ct=ep({editing:k,shown:Ye,slides:Ne}),rr=op({editing:k,playing:Fe,controlShown:Ct}),Me=Ju({count:te,editing:k}),Ee=eo(null),Ro=eo(null),Wo=gt(C=>{if(Ee.current=null,Ro.current=null,!Me||C.touches.length!==1)return;let w=C.touches[0];Ee.current={x:w.clientX,y:w.clientY},Ro.current={x:w.clientX,y:w.clientY}},[Me]),$o=gt(C=>{if(!Ee.current)return;if(C.touches.length!==1){Ee.current=null;return}let w=C.touches[0];Ro.current={x:w.clientX,y:w.clientY}},[]),ca=gt(()=>{let C=Ee.current,w=Ro.current;if(Ee.current=null,Ro.current=null,!Me||!C||!w)return;let F=Qu(w.x-C.x,w.y-C.y,z.current,te);F!==z.current&&Ie(F)},[Me,te,Ie]);bt(()=>{if(k||!s||Ho||ko||te<=1)return;let w=Math.max(1,typeof f=="number"?f:6)*1e3,F=window.setTimeout(()=>Ie((Ye+1)%te),w);return()=>window.clearTimeout(F)},[k,s,f,Ho,ko,te,Ye,Ie]),bt(()=>{let C=[M.current,Pe.current,_e.current].filter(Boolean),w=C.map(D=>Jr(D)),F=D=>{let Ce=D.target,X=Ce.closest("[data-hero-nav]"),kt=X??Ce.closest("[data-idx]");if(!kt)return;D.stopPropagation(),D.preventDefault();let ie=X?la(X.dataset.heroNav,z.current,te):Number(kt.dataset.idx);Number.isNaN(ie)||(Ie(ie,k),xe()?.querySelectorAll("[data-slide-name]")[ie]?.click())};return C.forEach(D=>D.addEventListener("click",F,{capture:!0})),()=>{w.forEach(D=>D?.()),C.forEach(D=>D.removeEventListener("click",F,{capture:!0}))}},[te,Ie,xe,k]),bt(()=>{if(!k)return;let C=ye.current;if(!C)return;let w=Jr(C),F=D=>{D.stopPropagation(),D.preventDefault();let Ce=le.current,X=Ce?.getAttribute("data-puck-component")||Ce?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||to.current;tr(X)};return C.addEventListener("click",F,{capture:!0}),()=>{w?.(),C.removeEventListener("click",F,{capture:!0})}},[k,tr,oo,oe.length]);let ua=gt(C=>{if(!C)return;let w=Jr(C),F=D=>{D.stopPropagation(),D.preventDefault(),Co(Ce=>!Ce)};return C.addEventListener("click",F,{capture:!0}),()=>{w?.(),C.removeEventListener("click",F,{capture:!0})}},[]);return Xe(Oa.Provider,{value:{alignment:o,textureOpacity:t,textureOn:r,textureColor:a,quietVideo:rr,phoneUpDown:n,phoneSideways:l},children:fa("div",{ref:le,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${$} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:pe,onMouseEnter:()=>St(!0),onMouseLeave:()=>St(!1),onTouchStart:Wo,onTouchMove:$o,onTouchEnd:ca,children:[Xe(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${Ye*100}%)`,transition:ko?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),Ct&&Xe("div",{ref:ua,"data-hero-video-control":Fe?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Qc} + 16px)`},children:fa("button",{type:"button",className:$k,children:[Xe("span",{"aria-hidden":"true",children:Fe?"\u275A\u275A":"\u25B6"}),Fe?Wk:Uk]})}),(Uo||yt)&&fa("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:[Uo&&Xe(Yl,{ref:M,slides:Ne,active:Ye,shape:Wu(I),placement:g}),yt&&Xe(zl,{ref:_e,shape:L,placement:T})]}),Uo&&Xe("div",{ref:Pe,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:Ne.map((C,w)=>Xe("button",{type:"button","data-idx":w,"aria-label":`Go to slide ${w+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${w===Ye?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},w))}),oo&&oe.length>0&&fa("div",{ref:ye,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${k?" hero-ticker-pick":""}`,"data-selected":k&&ro!=null&&Go===ro?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[k&&Xe("style",{children:Gk}),Xe(ql,{items:oe,backdrop:"dark-media"})]})]})})}var Xk="#9ca3af";function IM(e){return pn.map(o=>({key:o,name:ii[o],value:e?.[o]||Xk}))}function hM(e){let o={},t=e.ownerDocument,r=t?.defaultView;if(!t||!r)return o;let a=r.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let l of pn){let s=mo[l].replace(/^var\((--[\w-]+)\)$/,"$1"),f=a.getPropertyValue(s).trim();if(!f)continue;let d=ap(f);!d&&n&&(n.fillStyle="#000000",n.fillStyle=f,d=ap(String(n.fillStyle))),d&&(o[l]=d)}return o}function ap(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(r=>r+r).join("")}`;let t=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return t?`#${t.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}var ia="data-sf-spec-region";function bM(e,o,t){if(!e)return;let r=t[e];if(r)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${r}, ${o.builtIn})`}}function Yk(e){return`@${e}`}function jk(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function np(e,o){return o&&o in e?o:null}function Zk(e,o){let t=o?.closest(`[${ia}]`)?.getAttribute(ia);return np(e,t??null)}var Qk={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}},lp=Qk;var Jk={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}},sp=Jk;var TM=ia;var fp={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 ip={SpecTable:fp,FAQ:sp,Collections:lp};function vM(e){return e&&Object.hasOwn(ip,e)?ip[e]:null}import{forwardRef as eR,createElement as Ql}from"react";var dp={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 O=(e,o,t,r)=>{let a=eR(({color:n="currentColor",size:l=24,stroke:s=2,title:f,className:d,children:p,...u},c)=>Ql("svg",{ref:c,...dp[e],width:l,height:l,className:["tabler-icon",`tabler-icon-${o}`,d].join(" "),...e==="filled"?{fill:n}:{strokeWidth:s,stroke:n},...u},[f&&Ql("title",{key:"svg-title"},f),...r.map(([x,I])=>Ql(x,I)),...Array.isArray(p)?p:[p]]));return a.displayName=`${t}`,a};var oR=[["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"}]],Jl=O("outline","brand-facebook","BrandFacebook",oR);var tR=[["path",{d:"M4 8a4 4 0 0 1 4 -4h8a4 4 0 0 1 4 4v8a4 4 0 0 1 -4 4h-8a4 4 0 0 1 -4 -4l0 -8",key:"svg-0"}],["path",{d:"M9 12a3 3 0 1 0 6 0a3 3 0 0 0 -6 0",key:"svg-1"}],["path",{d:"M16.5 7.5v.01",key:"svg-2"}]],es=O("outline","brand-instagram","BrandInstagram",tR);var rR=[["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"}]],os=O("outline","brand-linkedin","BrandLinkedin",rR);var aR=[["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"}]],ts=O("outline","brand-pinterest","BrandPinterest",aR);var nR=[["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"}]],rs=O("outline","brand-tiktok","BrandTiktok",nR);var lR=[["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"}]],as=O("outline","brand-whatsapp","BrandWhatsapp",lR);var sR=[["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"}]],ns=O("outline","brand-x","BrandX",sR);var fR=[["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"}]],ls=O("outline","brand-youtube","BrandYoutube",fR);var iR=[["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"}]],ss=O("filled","brand-facebook-filled","BrandFacebookFilled",iR);var dR=[["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"}]],fs=O("filled","brand-instagram-filled","BrandInstagramFilled",dR);var cR=[["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"}]],is=O("filled","brand-linkedin-filled","BrandLinkedinFilled",cR);var uR=[["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"}]],ds=O("filled","brand-pinterest-filled","BrandPinterestFilled",uR);var pR=[["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"}]],cs=O("filled","brand-tiktok-filled","BrandTiktokFilled",pR);var mR=[["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"}]],us=O("filled","brand-whatsapp-filled","BrandWhatsappFilled",mR);var xR=[["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"}]],ps=O("filled","brand-x-filled","BrandXFilled",xR);var IR=[["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"}]],ms=O("filled","brand-youtube-filled","BrandYoutubeFilled",IR);import{jsx as gR}from"react/jsx-runtime";var A1="outline",hR={instagram:{outline:es,solid:fs},facebook:{outline:Jl,solid:ss},tiktok:{outline:rs,solid:cs},youtube:{outline:ls,solid:ms},x:{outline:ns,solid:ps},linkedin:{outline:os,solid:is},pinterest:{outline:ts,solid:ds},whatsapp:{outline:as,solid:us}};function O1({platform:e,iconStyle:o,size:t}){let r=hR[e][o];return gR(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var da="data-theme",cp="light";function bR(e){return e.getAttribute(da)===cp?"light":"dark"}function SR(e,o){return bR(e)===o?!1:(o==="light"?e.setAttribute(da,cp):e.removeAttribute(da),!0)}function yR(e){return Ca(e).getItem(ga)}function M1(e,o){Ca(e).setItem(ga,o)}function CR(e,o,t=new Date().getHours()){return Ps({mode:o.mode,override:yR(e),switchShown:o.switchShown,hour:t})}function H1(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>SR(t,CR(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[da]}),()=>n.disconnect()}var kR="style";function RR(e,o){let t=As(o),r=!1;for(let a of Ls){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function G1(e,o){let t=e.body;if(!t)return()=>{};let r=()=>RR(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[kR]}),()=>n.disconnect()}export{TR as a,wR as b,PR as c,FR as d,Tp as e,io as f,AR as g,OR as h,j as i,Ns as j,_R as k,Hs as l,Na as m,eT as n,zs as o,oT as p,Aa as q,Js as r,ef as s,pT as t,mT as u,xT as v,IT as w,pm as x,hm as y,ir as z,_p as A,GR as B,co as C,UR as D,WR as E,Us as F,$R as G,VR as H,qR as I,Gp as J,$s as K,Up as L,Wp as M,zR as N,Po as O,uo as P,Ft as Q,Ea as R,$p as S,XR as T,YR as U,po as V,LT as W,AT as X,Rm as Y,Ma as Z,VT as _,Bi as $,qI as aa,LE as ba,Fr as ca,Di as da,KI as ea,zI as fa,XI as ga,BE as ha,DE as ia,_E as ja,NE as ka,xr as la,Ha as ma,KT as na,zT as oa,XT as pa,YT as qa,jT as ra,ZT as sa,Io as ta,IM as ua,hM as va,Jr as wa,xD as xa,ID as ya,bD as za,SD as Aa,wl as Ba,Pl as Ca,pi as Da,xn as Ea,Ao as Fa,V as Ga,Bt as Ha,Ze as Ia,et as Ja,Gt as Ka,Vc as La,PD as Ma,FD as Na,ED as Oa,Fy as Pa,Ey as Qa,vy as Ra,Ly as Sa,OD as Ta,BD as Ua,$D as Va,VD as Wa,qD as Xa,KD as Ya,Qr as Za,zD as _a,mt as $a,XD as ab,zc as bb,Ay as cb,YD as db,jD as eb,ZD as fb,Ml as gb,iC as hb,dC as ib,cC as jb,uC as kb,ea as lb,pC as mb,pu as nb,kC as ob,__ as pb,N_ as qb,BC as rb,oa as sb,M_ as tb,H_ as ub,G_ as vb,U_ as wb,KC as xb,Qt as yb,yu as zb,V_ as Ab,ku as Bb,j_ as Cb,Z_ as Db,rE as Eb,sE as Fb,fE as Gb,iE as Hb,De as Ib,ic as Jb,qA as Kb,qr as Lb,kb as Mb,XA as Nb,qt as Ob,Tb as Pb,jA as Qb,uc as Rb,dl as Sb,cl as Tb,aO as Ub,lO as Vb,sO as Wb,fO as Xb,iO as Yb,mc as Zb,ml as _b,xl as $b,Ue as ac,Rd as bc,Br as cc,Pd as dc,rA as ec,Mg as fc,aA as gc,Hi as hc,KE as ic,zE as jc,fh as kc,XE as lc,ZE as mc,Ui as nc,QE as oc,dh as pc,JE as qc,Nr as rc,SA as sc,Jn as tc,yA as uc,lb as vc,CA as wc,hA as xc,gA as yc,db as zc,Mr as Ac,PA as Bc,Ud as Cc,Rf as Dc,ow as Ec,He as Fc,Ir as Gc,aw as Hc,Ya as Ic,je as Jc,lw as Kc,sw as Lc,fw as Mc,iw as Nc,Sr as Oc,dw as Pc,cw as Qc,uw as Rc,mw as Sc,Wa as Tc,$a as Uc,xf as Vc,hw as Wc,vf as Xc,Lf as Yc,Ww as Zc,$w as _c,Vw as $c,Kw as ad,zw as bd,Sw as cd,yw as dd,yf as ed,Cw as fd,kw as gd,Ka as hd,_f as id,Mf as jd,Qo as kd,Hf as ld,TP as md,Qe as nd,pd as od,hd as pd,Fg as qd,qL as rd,zn as sd,bi as td,Gf as ud,Pr as vd,TE as wd,EE as xd,yn as yd,nh as zd,VE as Ad,hx as Bd,sn as Cd,qi as Dd,Iv as Ed,Lr as Fd,Fn as Gd,yv as Hd,Ae as Id,Cv as Jd,Bv as Kd,An as Ld,On as Md,Gv as Nd,Uv as Od,Ji as Pd,Wv as Qd,$v as Rd,Vv as Sd,_n as Td,Hn as Ud,Gn as Vd,Cd as Wd,kd as Xd,fe as Yd,$f as Zd,_P as _d,gx as $d,NP as ae,MP as be,bx as ce,UP as de,Sx as ee,WP as fe,Cx as ge,XP as he,zf as ie,Fx as je,Ex as ke,vx as le,dn as me,YP as ne,$g as oe,Jo as pe,RA as qe,st as re,TA as se,EA as te,vA as ue,LA as ve,AA as we,OA as xe,Zd as ye,Gr as ze,nl as Ae,Sb as Be,DA as Ce,_A as De,ft as Ee,Ur as Fe,tc as Ge,MA as He,HA as Ie,Wr as Je,$r as Ke,UA as Le,sc as Me,$A as Ne,mO as Oe,yS as Pe,zr as Qe,PS as Re,IB as Se,hB as Te,gB as Ue,bB as Ve,SB as We,yB as Xe,CB as Ye,OS as Ze,kB as _e,RB as $e,TB as af,wB as bf,PB as cf,pt as df,Se as ef,FB as ff,_S as gf,EB as hf,vB as if,NS as jf,LB as kf,Fc as lf,Mo as mf,it as nf,AB as of,GS as pf,Lc as qf,Ac as rf,OB as sf,BB as tf,DB as uf,_B as vf,NB as wf,MB as xf,HB as yf,GB as zf,UB as Af,WB as Bf,Bc as Cf,Dc as Df,_c as Ef,Nc as Ff,No as Gf,$B as Hf,VB as If,qB as Jf,KB as Kf,zB as Lf,XB as Mf,So as Nf,YB as Of,jB as Pf,Rl as Qf,ZB as Rf,Tl as Sf,dy as Tf,QB as Uf,JB as Vf,eD as Wf,oD as Xf,my as Yf,tD as Zf,Gc as _f,Uc as $f,Wc as ag,xy as bg,rD as cg,aD as dg,xt as eg,ne as fg,t_ as gg,r_ as hg,a_ as ig,n_ as jg,l_ as kg,s_ as lg,f_ as mg,Ny as ng,i_ as og,d_ as pg,c_ as qg,u_ as rg,p_ as sg,Yf as tg,oF as ug,tF as vg,Kx as wg,sF as xg,fF as yg,uF as zg,pF as Ag,Jf as Bg,ei as Cg,cI as Dg,CF as Eg,kF as Fg,RF as Gg,Qk as Hg,Jk as Ig,ia as Jg,bM as Kg,Yk as Lg,jk as Mg,np as Ng,Zk as Og,TM as Pg,vM as Qg,vl as Rg,Ll as Sg,jy as Tg,Zy as Ug,Al as Vg,eC as Wg,ht as Xg,ra as Yg,aN as Zg,Vl as _g,pN as $g,mN as ah,xN as bh,ql as ch,xk as dh,Ik as eh,hk as fh,EN as gh,vN as hh,kk as ih,Tk as jh,Uu as kh,MN as lh,HN as mh,Yl as nh,qN as oh,jl as ph,ju as qh,Zl as rh,Zu as sh,Zc as th,I_ as uh,Qc as vh,$y as wh,h_ as xh,g_ as yh,b_ as zh,S_ as Ah,Vy as Bh,y_ as Ch,C_ as Dh,k_ as Eh,Ky as Fh,R_ as Gh,Yy as Hh,T_ as Ih,qk as Jh,rp as Kh,zk as Lh,A1 as Mh,O1 as Nh,PF as Oh,FF as Ph,DF as Qh,hy as Rh,dD as Sh,cD as Th,uD as Uh,da as Vh,bR as Wh,SR as Xh,M1 as Yh,H1 as Zh,G1 as _h};