efficient-storefront-blocks 0.93.0 → 0.95.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +45 -0
- package/README.md +1 -0
- package/dist/chunks/{EditorPreviewCheckout-FSEFJZSO.js → EditorPreviewCheckout-3F3CP5MR.js} +1 -1
- package/dist/chunks/{SiteEditorProvider-N76XROIW.js → SiteEditorProvider-HN7TFLUJ.js} +1 -1
- package/dist/chunks/chunk-7SMQDDLZ.js +1 -0
- package/dist/chunks/{chunk-ITIVEB2I.js → chunk-CYLLSHDF.js} +1 -1
- package/dist/chunks/chunk-SUKEQRMP.js +389 -0
- package/dist/chunks/{chunk-NSW5PCGW.js → chunk-WLMM7L6N.js} +1 -1
- package/dist/chunks/{fitment-data-2SHEWSDK.js → fitment-data-Z62WUQGC.js} +1 -1
- package/dist/editor/components/GalleryPicturesSource.js +1 -1
- package/dist/editor/components/GalleryProductBinding.js +1 -1
- package/dist/editor/components/GalleryShowcaseSource.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/ProductHero/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
- package/dist/editor/lib/document/blocks/service/AppointmentBooking/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/BookingBox/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/ContactRouting/fields.js +1 -1
- package/dist/editor/lib/document/blocks/service/index.d.ts +1 -1
- package/dist/editor/lib/storefront-document.js +1 -1
- package/dist/editor/lib/storefront-editor-words-kept.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +4 -1
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.d.ts +11 -0
- package/dist/index.js +32 -32
- package/dist/links.js +1 -1
- package/dist/render/app/globals.css +37 -1
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/AppointmentBooking.d.ts +3 -1
- package/dist/render/components/AppointmentBooking.js +1 -1
- package/dist/render/components/ContactRouting.d.ts +9 -1
- package/dist/render/components/ContactRouting.js +1 -1
- package/dist/render/components/CountrySelect.js +1 -1
- package/dist/render/components/DefaultProductHero.d.ts +12 -0
- package/dist/render/components/DefaultProductHero.js +1 -0
- package/dist/render/components/FooterMenu.js +1 -1
- package/dist/render/components/GridCardTemplate.d.ts +7 -4
- package/dist/render/components/GridCardTemplate.js +1 -1
- package/dist/render/components/MenuLinkBlock.js +1 -1
- package/dist/render/components/ProductGridSection.js +1 -1
- package/dist/render/components/ProductHeroPanel.d.ts +2 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/SpecTable.js +1 -1
- package/dist/render/components/booking/BookingBox.d.ts +5 -1
- package/dist/render/components/booking/BookingBox.js +1 -1
- package/dist/render/components/booking/BookingFormState.d.ts +9 -0
- package/dist/render/components/booking/BookingFormState.js +1 -1
- package/dist/render/components/booking/BookingRegions.d.ts +9 -1
- package/dist/render/components/booking/BookingRegions.js +1 -1
- package/dist/render/components/card-ground-cell.d.ts +2 -0
- package/dist/render/components/card-ground-cell.js +1 -0
- package/dist/render/components/card-pieces/CardBuyButton.js +1 -1
- package/dist/render/components/card-pieces/CardName.js +1 -1
- package/dist/render/components/card-pieces/CardProductPicture.js +1 -1
- package/dist/render/components/card-pieces/CardSizes.d.ts +10 -2
- package/dist/render/components/card-pieces/CardSizes.js +1 -1
- package/dist/render/components/card-pieces/CardSpecs.d.ts +2 -0
- package/dist/render/components/card-pieces/CardSpecs.js +1 -1
- package/dist/render/components/card-pieces/ProductCardState.d.ts +14 -4
- package/dist/render/components/card-pieces/ProductCardState.js +1 -1
- package/dist/render/components/catalog/ShopperChips.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +2 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpFacetRows.d.ts +14 -0
- package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -0
- package/dist/render/components/wheels-plp/PlpSidebar.d.ts +7 -1
- package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
- package/dist/render/components/wheels-plp/PlpTypePicker.d.ts +8 -2
- package/dist/render/components/wheels-plp/PlpTypePicker.js +1 -1
- package/dist/render/lib/booking/appointment-time.d.ts +1 -0
- package/dist/render/lib/booking/appointment-time.js +1 -1
- package/dist/render/lib/content/booking-card-seed.d.ts +31 -0
- package/dist/render/lib/content/booking-card-seed.js +1 -0
- package/dist/render/lib/content/contact-card-seed.d.ts +11 -0
- package/dist/render/lib/content/contact-card-seed.js +1 -0
- package/dist/render/lib/content/copy-mark.d.ts +1 -0
- package/dist/render/lib/content/copy-mark.js +1 -0
- package/dist/render/lib/content/facet-row-seed.d.ts +139 -0
- package/dist/render/lib/content/facet-row-seed.js +1 -0
- package/dist/render/lib/content/hero-option-seed.d.ts +28 -0
- package/dist/render/lib/content/hero-option-seed.js +1 -0
- package/dist/render/lib/content/tab-strip.d.ts +3 -2
- package/dist/render/lib/content/tab-strip.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductEyebrow/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/commerce/ProductHero/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductSpecs/render.js +1 -1
- package/dist/render/lib/document/blocks/service/AppointmentBooking/meta.d.ts +8 -0
- package/dist/render/lib/document/blocks/service/AppointmentBooking/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/AppointmentBooking/render.js +1 -1
- package/dist/render/lib/document/blocks/service/BookingBox/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/BookingBox/render.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/meta.d.ts +14 -0
- package/dist/render/lib/document/blocks/service/ContactRouting/meta.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/render.js +1 -1
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/storefront-root.js +1 -1
- package/dist/render/lib/menu-link.d.ts +1 -0
- package/dist/render/lib/menu-link.js +1 -1
- package/dist/render/lib/sections/filter-option-rows.d.ts +15 -0
- package/dist/render/lib/sections/filter-option-rows.js +1 -1
- package/dist/render/lib/sections/product-pictures.d.ts +2 -2
- package/dist/render/lib/sections/product-pictures.js +1 -1
- package/dist/render/lib/wheels/plp-filters.d.ts +4 -0
- package/dist/render/lib/wheels/plp-filters.js +1 -1
- package/dist/render/lib/wheels/plp-hydrate.d.ts +4 -1
- package/dist/render/lib/wheels/plp-hydrate.js +1 -1
- package/dist/words.d.ts +16 -1
- package/dist/words.js +5 -5
- package/package.json +3 -3
- package/dist/chunks/chunk-IZEIMAJI.js +0 -1
- package/dist/chunks/chunk-OERUEODX.js +0 -388
- package/dist/render/components/TyrePlpCard.d.ts +0 -20
- package/dist/render/components/TyrePlpCard.js +0 -1
- package/dist/render/components/TyreSummaryCard.d.ts +0 -12
- package/dist/render/components/TyreSummaryCard.js +0 -1
- /package/dist/chunks/{chunk-XYG76Y4H.js → chunk-GW5M2ATK.js} +0 -0
- /package/dist/chunks/{chunk-OERUEODX.js.LEGAL.txt → chunk-SUKEQRMP.js.LEGAL.txt} +0 -0
|
@@ -0,0 +1,389 @@
|
|
|
1
|
+
import{$a as wc,$b as On,Ac as Gw,Ad as An,Bc as zw,Cc as $w,Cd as Ar,Dc as Tc,Ed as Rr,F as Or,Fa as mw,Fc as Uw,Fd as _c,Ga as hw,Ha as Rm,Hb as ua,Hd as eC,I as vn,Ia as ro,J as It,Ja as xw,Jb as _w,K as Js,Ka as Iw,La as Tn,Lb as Aw,Ld as oC,Ma as Wo,Mc as zm,Nb as Rw,Nd as tC,Oa as Pn,Ob as Lw,Pa as En,Pb as Fw,Qb as Bw,Rd as xe,Sa as gw,Sb as Ht,T as fa,Tb as Dw,V as Tm,Va as Qs,Vd as sC,W as Pm,Wb as Nw,Wd as lC,Xa as bw,Xb as Wt,Xc as jw,Y as yc,Ya as Lm,Yb as Nm,Yc as Kw,Yd as Ac,Zc as Vw,Zd as iC,_d as cC,a as xt,ab as yw,ac as Ae,ad as qw,b as Cn,ba as Em,bb as Sw,bc as Mm,bd as Yw,c as nw,ca as Sc,cb as ww,cc as Hm,d as ar,da as cw,db as Cc,dc as vc,dd as Xw,e as Cm,ea as dw,eb as Cw,f as kn,fa as fw,fb as kw,fd as _n,ga as Om,gd as Zw,ha as pw,hb as vw,ib as Fm,id as Pc,j as Xs,jd as Jw,kb as Tw,kc as Mw,l as Zs,lb as tt,mb as pa,n as km,nb as Pw,nd as Qw,ob as Mt,pb as kc,pd as Ec,q as Ho,r as sw,s as lw,sb as Ew,ta as uw,tb as Bm,u as iw,ua as _m,vd as Oc,w as vm,wb as Ow,wc as Hw,xb as Dm,xc as Wm,ya as _r,yc as Ww,za as Am,zc as Gm}from"./chunk-7SMQDDLZ.js";import{d as rC,e as Lr,f as aC,g as nC,j as Rn,n as $m}from"./chunk-GW5M2ATK.js";var Z=e=>typeof e=="string"&&e?e:void 0;var fC="en",Rc=null,pC=fC,uC=null;function hde(e,o,t){Rc=e??null,pC=o||fC,uC=t??null}function ae(){return uC}function Um(){return pC}function mC(){return Rc}function dC(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>Object.prototype.hasOwnProperty.call(o,r)?String(o[r]):t):e}function i(e,o){let t=Rc?Rc[e]:void 0;if(typeof t=="function"){try{let r=Z(t(o??{}));if(r)return r}catch{}return dC(e,o)}return dC(Z(t)??e,o)}function Oo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as jm,Fragment as GH,jsxs as zH}from"react/jsx-runtime";import{createContext as $H,useContext as UH}from"react";var jH={mirrorHostStyles:!0,css:null,fontHrefs:[]},hC=$H(jH);function bde({value:e,children:o}){return jm(hC.Provider,{value:e,children:o})}function Km(){return UH(hC)}function xC(){let{css:e,fontHrefs:o}=Km();return zH(GH,{children:[o.map(t=>jm("link",{rel:"stylesheet",href:t},t)),e?jm("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as KH}from"react/jsx-runtime";import{createContext as VH,useContext as qH}from"react";var IC=VH(void 0);function Cde({metadata:e,children:o}){return KH(IC.Provider,{value:e,children:o})}var gC=()=>qH(IC);import{jsx as uo,Fragment as yH,jsxs as gc}from"react/jsx-runtime";import{useCallback as Vs,useEffect as tr,useRef as zce,useState as xH}from"react";import{SettingsSwitch as $ce}from"efficient-easel/panel";import{PagesIcon as Uce,StylesIcon as jce}from"efficient-easel/rail";import{PaletteIcon as Kce}from"efficient-shell/icons/efficient";import{Subtree as Vce,TreeRow as SH}from"efficient-easel/tree";import{useEasel as wH}from"efficient-easel/easel";import{useEaselStrings as CH}from"efficient-easel/strings";import{createContext as YH,useContext as XH}from"react";var Vm=YH(!1),Tde=()=>XH(Vm);import{useMemo as ZH,useRef as JH}from"react";import{useEaselApi as QH}from"efficient-easel/easel";import{useSectionOps as e5}from"efficient-easel/screen/lib/document/use-section-ops";function Lc(){let e=QH(),o=e5(),t=JH(o);return t.current=o,ZH(()=>({getItemById:r=>e.getState().getItemById(r),getSelectorForId:r=>e.getState().getSelectorForId(r),get components(){return e.getState().config.components},replace:(r,a,n)=>t.current.replaceComponent(r,a,n)}),[e])}import{encodePartId as KK}from"efficient-easel/draw";import{insertAt as VK,moveTo as qK,removeAt as YK}from"efficient-easel/fields";function Gt(e,o){let t=globalThis,r=Symbol.for(e),a=t[r];return a===void 0&&(a=o(),t[r]=a),a}function el(){return Gt("efficient.slot-field-blocks",()=>new Set)}var _o="dataSource",nr="dataSourceOptions",o5="dataRows",gt="countKey",ol="counts",Mde="location-payment-methods",yC="shop-payment-methods",Hde="delivery-options";function t5(e){return typeof e.open=="function"}var r5=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function tl(){return Gt("efficient.block-sources",()=>({sources:new Map,revision:0}))}var a5=e=>[e?.key,e?.label,e?.value].every(o=>typeof o=="string"&&o.trim()!==""),n5=e=>[e?.key,e?.label].every(o=>typeof o=="string"&&o.trim()!==""),bC=e=>typeof e=="string"&&e.trim()!=="";function s5(e){if(!e||!bC(e.label))return null;if(t5(e))return{label:e.label.trim(),open:e.open};let o=e.href;return bC(o)?{label:e.label.trim(),href:o.trim()}:null}function l5(e){if(typeof e.key!="string"||!r5.test(e.key))throw new Error(`A block source key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(typeof e.label!="string"||!e.label.trim())throw new Error(`The block source ${e.key} has no label.`);if(!Array.isArray(e.blocks)||!e.blocks.length||e.blocks.some(r=>typeof r!="string"||!r))throw new Error(`The block source ${e.key} names no block it can fill.`);let o=e.blocks.find(r=>el().has(r));if(o)throw new Error(`The block source ${e.key} names ${o}, whose card template declares slot fields: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);let t=s5(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(r=>CC(r)).filter(r=>r!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(a5)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(n5).map(r=>({...r}))}:{},...t?{edit:t}:{},...typeof e.useRows=="function"?{useRows:e.useRows}:{},...Array.isArray(e.records)?{records:e.records.filter(r=>typeof r=="string"&&r.trim()!=="").map(r=>r.trim())}:{}}}function Wde(e){let o=e.map(l5),t=tl();for(let r of o)t.sources.set(r.key,r);o.length&&(t.revision+=1)}function SC(e){let o=[...tl().sources.values()];return e===void 0?o:o.filter(t=>t.blocks.includes(e))}function Fc(e){return tl().sources.get(e)??null}function wC(e){return tl().sources.get(e)?.choices??[]}function Gde(){return tl().revision}function so(e){let o=e?.[_o];return typeof o=="string"?o.trim():""}function CC(e){if(!e||typeof e!="object"||Array.isArray(e))return null;let o={};for(let[t,r]of Object.entries(e)){let a=Z(r);a&&(o[t]=a)}return Object.keys(o).length?o:null}function i5(e){let o=e?.[o5];return Array.isArray(o)?o.map(CC).filter(t=>t!==null):null}function zde(e,o,t=[]){let r=i5(e);if(r!==null&&(r.length||!o))return{rows:r,sample:!1};if(!o)return{rows:[],sample:!1};let a=Fc(so(e))?.sample;return{rows:a?.length?a:t,sample:!0}}import{isNodeList as _4}from"efficient-easel/data";var kC=["general","commerce","service"],Fr=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero",set:"general"},{type:"HeroSingle",label:"Hero Single",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:"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:"GalleryB",label:"Gallery",set:"commerce"}]},{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:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{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:"Cards",label:"Cards",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Reviews",label:"Reviews",set:"service"}]},{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:"Countdown",label:"Countdown",set:"general"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"ArticleBody",label:"Article Body",set:"service"},{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:"DocBody",label:"Document Text",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:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]},{key:"layouts",title:"Layouts",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"SpecStrip",label:"Spec Strip",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"Logos",label:"Logos",set:"general"},{type:"DocMasthead",label:"Page Header",set:"general"}]}];function Ude(){return Object.fromEntries(Fr.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var c5="2027-02-05",vC={Masthead:{label:"Issue Header",note:`Owner, 2026-10-10 (the page headers become ONE Layouts row): Issue Header and Document Header are one Page Header. Retired from the Add menu with no second preset (reviewer, 2026-11-06).
|
|
2
|
+
|
|
3
|
+
WHAT REPLACES IT: Page Header, a Box of Text blocks: a Header Box (the eyebrow, the title, a Details Box of one Text per line) over a Deck Box. Every Issue Header field is plain words with no data source, so the merchant makes the issue shape from Text blocks in that Box: the issue lines are Details lines, the lead is the Deck, and the "In this issue" panel is a Box of Texts beside it. Its converter row (\`section-to-box-rows-pageheader\` \`masthead\`, OFF) stays for a stored page that moves later.
|
|
4
|
+
|
|
5
|
+
WHAT A MERCHANT LOSES: a press that lays down the two-row issue shape with its "In this issue" panel; the merchant builds it from Boxes and Text blocks. No field is lost.
|
|
6
|
+
|
|
7
|
+
1 Issue Header is stored on the US sites (journal, draft and published; read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
|
|
8
|
+
|
|
9
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding an Issue Header still renders through it and can still be edited; no document is rewritten.`},Grid:{label:"Grid",note:'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 Custom, and its own `Columns` in the Phone view. 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/document/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:{label:"Compatible Tyres",note:'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/document/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.'},Spacer:{label:"Spacer",note:`Lewis, 2026-10-10 (section-merges.md group 19, approved): one Divider holds space and lines. Style = None (was Spacer) / Line / Stripes; the space above and below as number boxes. Retired by card [MERGE] Spacer Into Divider (2026-10-26).
|
|
10
|
+
|
|
11
|
+
WHAT REPLACES IT: a Divider with Style set to None. It draws no line, only its space, and that space is the Divider's Padding row (top and bottom, each with its phone value): the Spacer's 24 / 48 / 96 / 160 px are None with Padding 12 + 12, 24 + 24, 48 + 48, 80 + 80. \`scripts/test-divider-holds-the-spacer.tsx\` \xA75 holds it.
|
|
12
|
+
|
|
13
|
+
WHAT A MERCHANT LOSES on a NEW space: nothing the Spacer had. Four fixed sizes become any number on the 4px grid, top and bottom apart, and a phone value.
|
|
14
|
+
|
|
15
|
+
NO CONVERTER ROW: 0 Spacer nodes on any page, draft or published, in any schema of the local production clone (read-only count, 2026-10-26), and none in the backend's seed files. This entry is its reason in the guard (\`scripts/test-section-to-box.tsx\` \xA75: a retired type is accounted for).
|
|
16
|
+
|
|
17
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Spacer anywhere still renders through it and can still be edited; no document is rewritten.`},KeyFeatures:{label:"Key Features",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds Cards and Key Features; Key Features' diamond cells are the card style "Label only". Retired by card [MERGE] One Text Block And Click Through Parts (2026-10-22).
|
|
18
|
+
|
|
19
|
+
WHAT REPLACES IT: a Cards section with Card style set to Label only. Every cell is a copy of the Label only card template (Cards/card-seed \`labelOnlyCardSeed\`): a cell Box (its link from the row's \`href\`), a 9px Mark Box in the main colour turned 45 degrees, and the label Text; the eyebrow starts on the pill look when none is stored. A cell's words are the card's \`title\` (row "Feature label"), its link the card's \`href\` (row "Link"). The Key Features conversion lands on the same card (\`scripts/test-key-features-diamond.tsx\`).
|
|
20
|
+
|
|
21
|
+
WHAT A MERCHANT LOSES on a NEW Label only section: nothing this section had. It GAINS the Cards head split (its head can move into a box of its own), which Key Features never had: that head draws the shared \`simple\` head, eyebrow ABOVE the heading, where Key Features drew it beside.
|
|
22
|
+
|
|
23
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${c5}). Every page holding a Key Features still renders through it and can still be edited; no document is rewritten and NO MIGRATION RUNS.`},DeliveryOptions:{label:"Delivery Options",note:"Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).\n\nWHAT REPLACES IT: Cards with Card content set to Delivery options, drawn from its card template: the backend's `delivery-options` rows (name, price, time, note), one card each, in the website's own currency. The one Highlighted card row and the Highlight badge replace the per-option Highlight switch.\n\nWHAT A MERCHANT LOSES: more than one highlighted option (Lewis approved ONE Highlighted card row, 2026-10-10). No stored node held two.\n\nNO CONVERTER ROW: 0 DeliveryOptions nodes on the US sites, draft or published (read only, 2026-11-04). This entry is its reason in the guard (`scripts/test-section-to-box.tsx` \xA75).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A Delivery Options anywhere still renders through it and can still be edited; no document is rewritten.\n\nDELETE DATE 2026-12-18: the retired component in efficient-storefront-blocks (`components/DeliveryOptions`, `DeliveryOptionsSource`, `blocks/commerce/DeliveryOptions`) goes then, in a storefront-blocks follow-up. 0 stored DeliveryOptions nodes on the 34 US pages, draft or published (read only, 2026-11-08), and no converter row is coming."},Series:{label:"Recurring Columns",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
|
|
24
|
+
|
|
25
|
+
WHAT REPLACES IT: Cards drawn from its card template. A column's number is Number, its "Right Top Text" Corner note, its title Card title, its words Card body, its count and label one Count, and the one \`viewLabel\` a plain Text typed once in the template, so every card shows it; the background is the Box's. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
|
|
26
|
+
|
|
27
|
+
WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints; a short row no longer keeps 4 columns; the count is one plain Text, its figure no longer in the text ink; a card with no count still draws the footer line.
|
|
28
|
+
|
|
29
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Recurring Columns still renders through it and can still be edited; no document is rewritten.`},DocMetaCards:{label:"Document Detail Cards",note:`Lewis, 2026-10-10 (section-merges.md group 4, approved): one Cards section holds the five card grids \u2014 Cards, Key Features, Document Detail Cards, Recurring Columns and Delivery Options. Card content = Manual / Delivery options; the card's parts are Display chips; one Highlighted card row with its Highlight badge. Retired by card [MERGE] Delivery Options, Detail Cards And Recurring Columns Into Cards (M3, 2026-11-04).
|
|
30
|
+
|
|
31
|
+
WHAT REPLACES IT: Cards drawn from its card template, each card a Label, a Value and a Card body. The converter row (\`section-to-box-rows-cards.ts\`, OFF) lays down that Cards inside a Box.
|
|
32
|
+
|
|
33
|
+
WHAT A MERCHANT LOSES (the LOOK GAPS in that file): the grid takes the Cards block's own gaps and breakpoints, not the old 40 (16 on a phone).
|
|
34
|
+
|
|
35
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Document Detail Cards still renders through it and can still be edited; no document is rewritten.`},StatsParagraph:{label:"Stats with Text",note:`Lewis, 2026-10-10 (approved): one Stats holds Stats and Stats with Text. Its head (eyebrow, heading, body) and each number's Prefix, Unit, Superscript, Label, "Use accent color" and text go into Stats; Card style Table (the old Stats with Text) or List (the old Stats). 2026-10-27: no Number block, the cards are Box + Text. Retired when the two became one Stats (2026-11-06).
|
|
36
|
+
|
|
37
|
+
WHAT REPLACES IT: a Stats press, a Box of real parts: three head Texts, then a Stats Box holding ONE Card list, Card style Table. Each number is a row of the Card list; its card is a figure Text (the prefix and number typed in it, the unit marked \`==_yr_==\`, which draws the section theme's Main colour; a whole number in that colour is \`==_8_==\`), a superscript Text beside it, a label Text and a body Text, each showing its row's field, and a row may link its own live number. The Stats Box's Card style row (Table / List) writes the Box's Gap and the card's own Border, Padding and Height.
|
|
38
|
+
|
|
39
|
+
WHAT A MERCHANT LOSES: the numbers do not count up (the Text block's Count up numbers setting is its own change, held); the figure has no tabular numbers; a unit is not a lighter weight than its number; rows of four stack below 800px, not two columns from 1100px.
|
|
40
|
+
|
|
41
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Stats with Text still renders through it and can still be edited; no document is rewritten (owner 2026-11-06: old sites stay as they are).`},Testimonials:{label:"Testimonials",note:"Lewis, 2026-10-10 (section-merges.md group 6, approved): Testimonials goes into Reviews, whose Review content is Manual (typed quotes) or Reviews (the store's approved reviews), with a product choice in place of the old Design code. Retired by card [MERGE] Remaining Section Merges (2026-11-06), after Reviews took typed quotes and a card template (efficient-storefront-blocks #242) and the product choice (#359).\n\nWHAT REPLACES IT: Reviews with Review content set to Manual. Every Testimonials key has the same key there: `eyebrow`, `eyebrowLook`, `title`, `items[]` (`quote`, `name`, `role`), `columns` 1-3 and `headPlacement` (both split their head). A typed review also has a `title` and a `rating`, empty for a quote that has none.\n\nWHAT A MERCHANT LOSES on a NEW quote list: nothing this section had. Reviews is in the service set where this section was general; no host narrows the sets (2026-11-06).\n\nNO CONVERTER ROW HERE: its Box row is efficient-storefront-blocks' (`section-to-box-rows-reviews`, OFF). 0 Testimonials nodes on the US sites, draft or published (read only, 2026-11-06). Old sites stay as they are (owner, 2026-11-06).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A Testimonials anywhere still renders through it and can still be edited; no document is rewritten."},SubscribeBlogs:{label:"Subscribe with Posts",note:"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."},RelatedProducts:{label:"Related Products",note:`Owner, 2026-11-06 (plan productgrid-card-template-2026-11-06, inovit row 19): a Product Grid with "Show the current product's related" on IS the related grid, so offering both asked a merchant to choose between two names for one section.
|
|
42
|
+
|
|
43
|
+
WHAT REPLACES IT: Product Grid, bound to the current product. Both draw every card through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
|
|
44
|
+
|
|
45
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Related Products node is read as that grid by the host (\`relatedToGrid\`) and draws the same cards; no document is rewritten. Its footnote is the one value the grid has no home for.`},BundleOffer:{label:"Bundle Products",note:`Plan section-parts bundles grid source (2026-11-07): a Product Grid that shows "Bundles with this product" IS the bundle section, so offering both asked a merchant to choose between two names for one section.
|
|
46
|
+
|
|
47
|
+
WHAT REPLACES IT: Product Grid, bound to the current product, Show set to its bundles. Both draw every kit through the grid's ONE card template (efficient-storefront-blocks, lib/content/product-card-seed).
|
|
48
|
+
|
|
49
|
+
THE TYPE KEY STAYS AND SO DOES THE DRAWING. A stored Bundle Products node is read as that grid by the host (\`bundleToGrid\`) and draws its kits; no document is rewritten.`},TyreFitment:{label:"Tyre Fitment Form",note:`Owner, 2026-10-10 (approved): the Tyre Fitment Form goes into the Fitment Form, whose answer follows the page. One vehicle section, not two.
|
|
50
|
+
|
|
51
|
+
WHAT REPLACES IT: the Fitment Form, a Box of a head, the vehicle picker (\`FitmentPicker\`), its answer (\`StockFitment\`) and a Button. On a tyre product page the answer part draws one verdict per size against the picked car, the same \`TyreFitVerdicts\` drawing this section made; on every other page it draws the car's OEM fitment card (efficient-storefront-blocks 0.87.0). The old escape link is the Box's Button.
|
|
52
|
+
|
|
53
|
+
WHAT A MERCHANT LOSES: the tyre-only head copy ("Will it fit your car?"); a press seeds the Fitment Form's own head. The page decides the answer, so there is no mode row.
|
|
54
|
+
|
|
55
|
+
NO CONVERTER ROW: 0 TyreFitment nodes on the US sites, draft or published (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06).
|
|
56
|
+
|
|
57
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks). A stored Tyre Fitment Form still renders through it and can still be edited, its head split, width, heading level, settings groups and cover included; no document is rewritten.`},PaymentBadges:{label:"Payment Methods",note:"Owner, 2026-10-10: Logos and Payment Methods are one block, and a payment wall is a Logos block with the payment chip for its look. 2026-11-07: the dot before each line is a Mark Box at full strength (approved).\n\nWHAT REPLACES IT: the Logos row (Layouts group), Logo style Cards. Field by field, as its converter row (`section-to-box-rows-logos`) moves it: `heading` is a Text block; each of `badges` is a Logo block in the wall, its name the Logo's name and its `src` the Logo's picture; `dataSource` is the wall's own Logo content row (\"Ways to pay here\" or \"Ways to pay at checkout\", served by the backend to Logos too), and the wall draws ONE Logo card template per served method, the same chip; `assurances` are a Reassurance Box of lines, each a Mark Box (an empty Box, 4 x 4, Corners 2, Fill main) before a Text; `contained` is the Box's site frame. A press of this type lays down that Box (SECTION_TO_BOX_PRESS).\n\nWHAT A MERCHANT LOSES: the 60% and 70% opacity of the old dot and words (a Box and a Text have no opacity: the dot is the main colour, the words the label ink) and the 4px gap between wrapped lines (a Box has one Gap). No field is lost.\n\n4 Payment Methods nodes are stored on the US sites, all on template pages, draft only, all fed by a source; 0 on pages (read only, 2026-11-07). Old sites stay as they are (owner, 2026-11-06); moving a page is a separate write.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. A stored Payment Methods node still renders through it, its dot included, and can still be edited; no document is rewritten."},Gallery:{label:"Tabbed Gallery",note:'Owner, 2026-10-10 (approved): the Tabbed Gallery goes into the Customer Photo Grid, and the one that is left is called Gallery; its vehicle / wheel / others halves become a Tabs list, and its wall becomes one of the photo layouts. Retired from the Add menu with no preset row and no migration.\n\nWHAT REPLACES IT, field by field: the Gallery (`GalleryB`). `mode` both = a Box in Tabs mode with one Gallery per panel; one mode = one Gallery, no Tabs Box. `vehicleTabLabel` / `wheelTabLabel` = the Box\'s panel names, Tab shape "Large tabs" (this strip is the Tabbed Gallery\'s own, class for class); `showTabs` off = the Box Stacked. `source` (one product, or All products and a `category`) = each Gallery\'s `dataSource: "product-pictures"`, with `product`, `designCode`, `mediaZone` (lifestyle = the vehicle half, photos = the wheel half, others) and `category`; it reads live on every view, nothing is baked. `kicker`, the titles, `*Body1` / `*Body2` = Text blocks in the panel\'s Box (Heading N, Body N); `showIntro` off = the Layers eye. `*Stats` = a Stats block; `breadcrumbLabel` = a Breadcrumb block; `showFilters`, `showCount`, `showSort` = a Filter chips block over the Gallery (`showCount`, `showSort`). A card\'s `image`, `photos`, `href`, `name`, `meta`, `process` (the Tag) and `eyebrow` (the caption line over the title) = a Gallery Item\'s, or the served row\'s. The wall (two half, then thirds, 4:3, one across on a phone) = layout "Two, then threes" (`twoThenThreesPhoto`), the default for product pictures. Words at rest, the tile number, the hover zoom and the lightbox\'s "View product" are the Gallery card\'s. `previewTab` = the Box Tabs pane switch; `previewHover` = the Gallery\'s own. `anchor`, `sectionAccent` and `_partStyles` are the same injected keys on the Box and the Gallery.\n\nWHAT A MERCHANT LOSES: the per-tab note under each tab ("N items \xB7 Community photos" / "Featured photos", desktop only): Large tabs draws the letter and the name only. Accepted only because nothing stored moves now. \u26D4 A "Tab note" Box setting MUST exist before the /gallery move: a moved page with no home for it loses a line the shopper sees. Also lost: the empty line ("No items in this gallery yet." / "No items match this filter."); an empty Gallery draws nothing, and the chips come from the tiles, so "no match" cannot happen.\n\nNO CONVERTER ROW: no stored node is rewritten and SECTION_TO_BOX_ON stays without it (owner, 2026-11-06: old sites stay as they are). 2 Tabbed Gallery nodes are stored on the US sites, both top level, draft equal to published (read only, 2026-11-08): `Gallery-f1eb706a` (inovit.com /gallery: mode both, every show flag on, All products, 10 + 10 cards, 20 of 20 with a caption, 3 + 3 stats) and `Gallery-ce49eb98` (hartesmetal.com /gallery: mode vehicles, count and stats on, All products, 49 cards, 0 with a caption, 2 stats).\n\nTHE MOVE RECIPE, for the day the owner orders the /gallery move (a live write, his word): a Box in Tabs mode (inovit) or one Gallery (hartes); each Gallery `dataSource: "product-pictures"`, `mediaZone` lifestyle / photos, and `displayPhone: {tag:true}` (a new Gallery stores `{tag:false}`, and the Tabbed Gallery drew its Tag at every width). The captions: the stored ones are frozen copies that live only in the page; a product-pictures row serves its media group\'s `vehicle` as `eyebrow`, and that is empty on every group today (the editor\'s product binding clears `eyebrow` and reads only `vehicle`). So carry them as typed Gallery Items with the stored `eyebrow` copies, OR fill each media group\'s `vehicle` first (a data write). It needs efficient-storefront-blocks 0.91.0 (the photo layout default and the stored cards kept on open) and the backend\'s product-pictures source (106.0.0).\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks GalleryShowcase). A stored Tabbed Gallery still renders through it and can still be edited, its source row, cover, width, heading level and settings groups included; in Layers it keeps its block\'s own label, "Tabbed Gallery". Delete the component only when the last stored `Gallery` node is gone.'}},qm=Object.fromEntries(Object.entries(vC).map(([e,o])=>[e,o.note])),jde=["Grid","Spacer","TyreFitment"],Kde=Array.from(new Set([...Fr.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(qm)])),d5=Object.fromEntries(Object.entries(vC).map(([e,o])=>[e,o.label])),Dc={...d5,...Object.fromEntries(Fr.flatMap(e=>e.sections.map(o=>[o.type,o.label])))},f5={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",LocationMap:"general",Contents:"general",ListSearch:"general",ButtonBlock:"general",CardList:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",KeyFeatures:"general",Spacer:"general",Series:"general",DocMetaCards:"general",StatsParagraph:"general",Testimonials:"general",Masthead:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",DeliveryOptions:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",ProductGallery:"commerce",EuTyreLabelBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",RatingBlock:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",FooterPayment:"service",MenuBlock:"service",MenuLinkBlock:"service",ProductPrice:"commerce",ProductSize:"commerce",ProductColour:"commerce",ProductPicture:"commerce",ProductEyebrow:"commerce",ProductName:"commerce",ProductSpecs:"commerce",ProductBuy:"commerce",FitmentPicker:"commerce",StockFitment:"commerce",RelatedProducts:"commerce",BundleOffer:"commerce",TyreFitment:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},Bc={...f5,...Object.fromEntries(Fr.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function TC(e){return Object.prototype.hasOwnProperty.call(Bc,e)?Bc[e]:void 0}function Ym(e){return Object.keys(Bc).filter(o=>Bc[o]===e).sort()}var Vde=Ym("general"),qde=Ym("commerce"),Yde=Ym("service"),Xm="Flex",sr="Box",Xde=`${sr}es`;function p5(e){return e==="section"?"Blank section":sr}function Zm(e,o,t){return e===Xm?p5(o):t}var se="content",K="Flex",u5="Text & media",m5="Layout & structure",EC=[{type:"Eyebrow",label:"Eyebrow",retired:!0},{type:"Heading",label:"Heading",retired:!0},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"LocationMap",label:"Map"},{type:"ButtonBlock",label:"Button"},{type:"Contents",label:"Contents"}],h5=[...EC,{type:"ListSearch",label:"List search"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats",retired:!0},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"PaymentLogosBlock",label:"Payment Logos",retired:!0},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"},{type:"AccountBlock",label:"Account"},{type:"ThemeSwitchBlock",label:"Theme Switch"}].map(e=>({...e,group:u5})),x5=(Fr.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:m5})),PC=[...h5,...x5],Jm=[...EC,{type:"HeroGroup",label:sr}],Qde=Jm.map(e=>e.type),I5=1,g5=Jm.filter(e=>e.type!=="HeroGroup");function b5(e){return e<I5?Jm:g5}var y5={Flex:{slot:se,choices:()=>PC},Grid:{slot:se,choices:()=>PC},HeroGroup:{slot:se,choices:b5}};function OC(e,o=0){let t=y5[e];return t?{slot:t.slot,choices:t.choices(o)}:null}import{applyMark as sfe,markupTools as lfe,MARKUP_TOOLS as ife,COPY_FIELD_TOOLS as cfe,STOREFRONT_MARKUP as dfe,tokenizeInline as ffe,stripInline as pfe,isSafeLinkHref as DC}from"efficient-shell/markup";import{applyMark as L5,clearStyle as F5,markedAt as B5,markupTools as D5,MARKUP_TOOLS as N5,parseMarkup as M5,RETIRED_MARKS as H5,STOREFRONT_MARKUP as W5,tokenizeInline as mfe}from"efficient-shell/markup";var ma=["highlight","strong","quiet"],ha={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},zt={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},LC=Object.fromEntries(ma.map(e=>[zt[e].kind,e])),FC="data-sf-ws",S5=["accent","text","labels"],Br={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},w5=80,C5=120,k5=100,v5=900,T5=.5,P5=3,E5=-.1,O5=.5,_5=3,Qm={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},A5={highlight:{...Qm},strong:{...Qm},quiet:{...Qm}};function _C(e,o,t){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,o),t))}function AC(e,o,t){if(typeof e!="number"||!Number.isFinite(e))return null;let r=10**_5;return Math.round(Math.min(Math.max(e,o),t)*r)/r}function RC(e){return typeof e=="boolean"?e:null}function R5(e){let o=typeof e?.font=="string"&&xt.some(r=>r.key===e.font)?e.font:null,t=typeof e?.colour=="string"&&S5.includes(e.colour)?e.colour:null;return{font:o,size:_C(e?.size,w5,C5),weight:_C(e?.weight,k5,v5),bold:RC(e?.bold),italic:RC(e?.italic),lineGap:AC(e?.lineGap,T5,P5),textGap:AC(e?.textGap,E5,O5),colour:t}}function BC(e){let o={};for(let t of ma)o[t]=e&&t in e&&e[t]?R5(e[t]):{...A5[t]};return o}function tfe(e){let o=BC(e),t={};for(let r of ma){let a=o[r],n=`--sf-ws-${r}`;if(a.font){let s=xt.find(l=>l.key===a.font);s&&(t[`${n}-font`]=`var(${s.cssVar})`)}a.size!==null&&(t[`${n}-size`]=`${a.size/100}em`),a.weight!==null&&(t[`${n}-weight`]=String(a.weight)),a.bold!==null&&(t[`${n}-weight-bold`]=a.bold?"700":"400"),a.italic!==null&&(t[`${n}-style`]=a.italic?"italic":"normal"),a.lineGap!==null&&(t[`${n}-line`]=String(a.lineGap)),a.textGap!==null&&(t[`${n}-track`]=`${a.textGap}em`),a.colour!==null&&(t[`${n}-color`]=Br[a.colour])}return t}function rfe(e){let o=e?.word_styles??void 0,t={};for(let r of ma)o&&r in o&&(t[r]=o[r]??null);return BC(t)}var G5=new Set(["strong"]),NC=ma.map(e=>({open:zt[e].delimiter,close:zt[e].delimiter,kind:zt[e].kind,...G5.has(e)?{wordStart:!0}:{}})),xfe=[{style:zt.highlight.kind,label:ha.highlight,title:`${ha.highlight} word style`},{style:zt.strong.kind,label:ha.strong,title:`${ha.strong} word style`},{style:zt.quiet.kind,label:ha.quiet,title:`${ha.quiet} word style`}],z5=new Set(NC.map(e=>e.open)),xa=[...W5.filter(e=>!z5.has(e.open)),...NC];function eh(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function rl(e){return M5(typeof e=="string"?e:"",xa)}var $5=N5.map(e=>e.style).filter(e=>!H5.includes(e)).filter(e=>xa.some(o=>o.kind===e));function MC(){return D5($5)}var HC=Object.fromEntries(ma.map(e=>[zt[e].kind,zt[e].delimiter]));function WC(e,o,t,r){let a=HC[r];if(!a)return L5(e,o,t,r);let n=e.slice(o,t),s=e.slice(Math.max(0,o-a.length),o),l=e.slice(t,t+a.length);if(s===a&&l===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 c=n||"styled text";return{text:e.slice(0,o)+a+c+a+e.slice(t),selectionStart:o+a.length,selectionEnd:o+a.length+c.length}}function GC(e,o,t,r){let a=HC[r];return a?o>=a.length&&e.slice(o-a.length,o)===a&&e.slice(t,t+a.length)===a:B5(e,o,t,r)}function Ia(e){return e.replace(/==(.+?)==/g,(o,t)=>t.startsWith("_")&&t.endsWith("_")?o:`==_${t}_==`)}function lr(e){return rl(e).map(o=>eh(o)+$C(o.children)).join(`
|
|
58
|
+
`)}function zC(e,o,t){return F5(e,o,t,xa)}function $C(e){return e.map(o=>o.kind==="text"?o.text:$C(o.children)).join("")}var U=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0;var $t={min:0,max:360,step:1},UC="angle";function yfe(e){let o=U(e);if(o===void 0)return null;let t=Math.min($t.max,Math.max($t.min,o));return t===$t.min||t===$t.max?null:{rotate:`${t}deg`}}import{MEDIA_ZONES as U5,MEDIA_ZONE_LABELS as j5}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as K5,hoverKindsOf as Mc,motionSeconds as Nc}from"efficient-shell/format";var Ye="hover",ba="_gHover",ya={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},Ut="highlight",th="Highlight",rh=["none",Ut],ah={none:ya.none,[Ut]:th};function V5(e){return e[Ye]===Ut?Ut:"none"}var Tfe="transition-colors hover:bg-[var(--sf-hl-bg)]! hover:[--fg:var(--sf-hl-ink)] active:bg-[var(--sf-hl-bg)]! active:[--fg:var(--sf-hl-ink)]",Pfe="hover:[--fg:var(--sf-hl-ink)]! hover:[--fg-dim:inherit]! hover:[--site-line:inherit]! hover:[color:inherit]! active:[--fg:var(--sf-hl-ink)]! active:[--fg-dim:inherit]! active:[--site-line:inherit]! active:[color:inherit]!";function Efe(e,o){return V5(e)!==Ut?null:{"--sf-hl-bg":o("surface"),"--sf-hl-ink":o("main")}}var Hc=Mc(["none","lift"]);function KC(e){let o=e[Ye];return Hc.includes(o)?o:"none"}var Wc=Mc(["none","nextImage","rotate"]),we={kind:Ye,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},al="spinOnHover",jC=$t,VC={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},qC=Object.keys(VC);function nh(e){return VC[e]??"none"}var sh=K5.rotateFallbackDeg,q5=e=>e==="rendering"?"renderings":e,Y5=e=>e==="renderings"?"rendering":e,Gc=Object.freeze(U5.filter(e=>e!=="videos").map(q5)),YC=Object.freeze(Object.fromEntries(Gc.map(e=>[e,j5[Y5(e)]]))),lh=["finish","first"],XC={finish:"Same finish",first:"First group"},ih=["card","picture"],ZC={card:"Whole card",picture:"Picture"},ga={kind:"photos",group:"finish",cover:"card"},oh=(e,o,t)=>e.includes(o)?o:t;function JC(e){return{kind:oh(Gc,e[we.mediaKind],ga.kind),group:oh(lh,e[we.mediaGroup],ga.group),cover:oh(ih,e[we.cover],ga.cover)}}function ch(){return{field:we.kind,is:"nextImage"}}function dh(e,o){let t=e[we.kind];if(Wc.includes(t))return t;let r=e[al];return typeof r=="boolean"?r?"rotate":"none":o}function fh(e){let o=U(e);return o===void 0?sh:Math.min(jC.max,Math.max(jC.min,o))}function Ofe(e,o){let t=nh(o),r=dh(e,t);return{kind:r,angle:r==="rotate"?fh(e[we.angle]):null,duration:Nc("hover","duration",r==="rotate"?e[we.duration]:void 0),delay:Nc("hover","delay",r==="rotate"?e[we.delay]:void 0),...r==="nextImage"?{media:JC(e)}:{}}}function QC(e){let o={field:we.kind,in:[...Wc]};return{any:[{field:we.kind,is:"rotate"},{all:[{not:o},e==="rotate"?{not:{field:al,is:!1}}:{field:al,is:!0}]}]}}var zc=Mc(["none","mono"]),ph=Mc(["none","nextImage","mono"]),ek={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},_fe=Object.keys(ek);function uh(e){return ek[e]??"none"}var nl={zoom:"hoverZoom",darken:"hoverDarken"},ir={min:100,max:150,step:1,unit:"%"};function X5(e){let o=U(e[nl.zoom]);if(o===void 0)return null;let t=Math.min(ir.max,Math.max(ir.min,o));return t===ir.min?null:String(t/100)}function Z5(e){let o=U(e[nl.darken]);return o!==void 0&&o>0?o:null}var $c=["ImageBlock"];function mh(e,o,t=zc){let r=e[Ye];return t.includes(r)?r:o}function ok(e,o=""){let t=$c.includes(o)?ph:zc,r=mh(e,uh(o),t),a=r==="mono";return{kind:r,duration:Nc("hover","duration",a?e[we.duration]:void 0),delay:Nc("hover","delay",a?e[we.delay]:void 0),...r==="nextImage"?{media:JC(e)}:J5(e)}}function J5(e){let o=X5(e),t=Z5(e);return{...o?{zoom:o}:{},...t?{darken:t}:{}}}function tk(){return{not:{field:Ye,is:"nextImage"}}}function hh(e){return e==="none"?{field:Ye,in:["mono","nextImage"]}:{not:{field:Ye,is:"none"}}}function rk(e){return e==="none"?{field:Ye,is:"mono"}:{not:{field:Ye,in:["none","nextImage"]}}}var ak={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Bfe,tag:Dfe,...Q5}=ak.defaultProps,G=Q5,Y={...G,tone:"dim"},Uc={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},_={...Uc,direction:"column",...Js},Xe=(e,o=e,t=e,r=o)=>({sectionPaddingTop:e,sectionPaddingRight:o,sectionPaddingBottom:e,sectionPaddingLeft:o,sectionPaddingTopPhone:t,sectionPaddingRightPhone:r,sectionPaddingBottomPhone:t,sectionPaddingLeftPhone:r}),Dr=e=>({fillColor:e}),jc=(e,o,t={})=>({..._,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...Dr(o),...t}),M=(e,o,t,r)=>({sizeToken:{step:e,px:o,...r?{stepPhone:r}:{},...t?{pxPhone:t}:{}}}),nk={case:"upper"},Ao={textStyle:"body-5",...nk},sl=(e,o)=>({...M("label",e,o),letterSpacing:.2,...nk}),bt=(e,o)=>({...Ao,...sl(e,o)});function lo(e,o,t=""){return e.map((r,a)=>{let n=t?`${t}.${a}`:String(a),s={...r.props??{}};for(let[l,c]of Object.entries(r.slots??{}))s[l]=lo(c,o,n);return{type:r.type,props:{...s,id:o(r.type,n)}}})}var Nr=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),yt=()=>({_partStyles:{text:{...Ao,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var e4={..._,gap:12,gapPhone:12,...Xe(32,32,28,28)},o4={textStyle:"heading-3",...M("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},il={textStyle:"body-1",...M("body",15),lineHeight:1.6},ne=(e,o,t,r=!1)=>({type:"Text",props:{...o,text:"",[ko]:e,_partStyles:{text:{...r?yt()._partStyles?.text??{}:{},...t}}}}),Mr={title:"title",body:"body"},Kc={title:"name",body:"note"},xh=(e=Mr)=>({type:K,props:{...e4,name:"Card"},slots:{[se]:[ne(e.title,{...G,tag:"p",widthFit:"fill"},o4),ne(e.body,{...Y,tag:"p",widthFit:"fill"},il)]}}),Vc=(e,o)=>lo([xh(o)],e),ll={label:Mr.title,href:"href"},t4={textStyle:"body-1",fontRole:"heading",color:"text",...M("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},r4=jc(9,"main",{[UC]:45}),Ih=(e=!1)=>({type:K,props:{..._,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...Xe(32,28),[cl]:ll.href,...e?{[Ye]:Ut}:{}},slots:{[se]:[{type:K,props:{...r4,name:"Mark"}},ne(ll.label,{...G,tag:"p",widthFit:"fill"},t4)]}}),sk=e=>(o,t)=>t==="0"?`${e}~card`:`${e}~card.${t.slice(2)}`,lk=(e,o=!1)=>lo([Ih(o)],e);function ck(e,o){if(e!=="Cards")return o;if(o.template!==void 0)return ik(o);let t=Z(o.id)??"Cards",r=sk(t);if(o.cardStyle==="label-only"){let n=Array.isArray(o.items)&&o.items.some(s=>Z(s?.href)!==void 0);return ik({...o,template:lk(r,n)})}let a=so(o)?Kc:Mr;return{...o,template:Vc(r,a)}}var a4=e=>{let[o,t]=e?[Mr,Kc]:[Kc,Mr];return new Map([[o.title,t.title],[o.body,t.body]])};function dk(e,o){let t=null;return e.forEach((r,a)=>{let n=r?.props;if(!n)return;let s=n,l=n[ko];r.type==="Text"&&typeof l=="string"&&o.has(l)&&(s={...s,[ko]:o.get(l)});let c=n[se];if(Array.isArray(c)){let d=dk(c,o);d!==c&&(s={...s,[se]:d})}s!==n&&(t??=[...e],t[a]={...r,props:s})}),t??e}function ik(e,o){if(!Array.isArray(e.template))return e;let t=a4(!!so(e)),r=o?new Map([...t].filter(([n,s])=>o(s)&&!o(n))):t;if(!r.size)return e;let a=dk(e.template,r);return a===e.template?e:{...e,template:a}}var n4="label";function fk(e){if(e.template!==void 0)return e;let o=Z(e.id)??"CardList",t={type:K,props:{..._,name:"Item"},slots:{[se]:[ne(n4,{...G,tag:"p"},il)]}};return{...e,template:lo([t],(r,a)=>a==="0"?`${o}~item`:`${o}~item.${a.slice(2)}`)}}var dl="ArticleBody",s4={textStyle:"heading-3",...M("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},l4={...il,align:"center"},pk=640,i4=()=>[ne("heading",{...G,tag:"h2",align:"center",maxWidth:pk},s4),ne("paragraph",{...Y,tag:"p",align:"center",maxWidth:pk},l4)],gh=e=>lo(i4(),e);function c4(e){return gh((o,t)=>`${e}~${t==="0"?"heading":"paragraph"}`)}function uk(e){if(e.template!==void 0)return e;let o=typeof e.id=="string"&&e.id.trim()?e.id:dl;return{...e,template:c4(o)}}var d4="label",qc=()=>({type:"LogoBlock",props:{[ko]:d4}}),mk=e=>{let o=Z(e.id)??"Logos";return{...e,template:lo([qc()],()=>`${o}~logo`)}};function hk(e){return!so(e)||e.template!==void 0?e:mk(e)}function fpe(e){if(!so(e))return e;let o=e.template;return o!==void 0&&!(Array.isArray(o)&&o.length===0)?e:mk(e)}import{addShowWhenFacts as f4}from"efficient-shell/format";import{showWhenOf as bh,shownForOption as p4,truthy as u4,withRowRules as fl,withRowsShownWhen as Ln,withShowWhen as ze}from"efficient-shell/format";var hpe=f4;function yh(e,o,t){return e.slice(0,-1).reduceRight((r,a)=>({any:[{all:[o(a),t(a)]},{all:[{not:o(a)},r]}]}),t(e[e.length-1]))}var m4="inline",h4=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var Ro={ProductGrid:{num:"num",title:"title",description:"description",headRows:["num","title","titleSize","description","linkText","linkHref"],renderer:"ProductGridSection",padKey:"padTop",linkProp:"link"},TyreSizes:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreSizes"},FitmentFinder:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentFinder"},TyreFitment:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreFitment"},BundleOffer:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},CompatibleTyres:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},RelatedProducts:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},SpecTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"SpecTable"},FAQ:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"FAQ"},GalleryB:{num:"num",title:"title",headRows:["num","title","linkText","linkHref"],renderer:"GalleryGrid"},FitmentTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentTable"},Events:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"Events"},ProcessSteps:{num:"num",title:"title",description:"description",headRows:["num","title","description"],headStyle:"editorial",renderer:"ProcessSteps",padKey:"padTop"},LongRead:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"LongRead"},Series:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Series"},TimelineTrack:{num:"eyebrow",title:"title",description:"intro",headRows:["eyebrow","title","intro"],headStyle:"editorial",renderer:"TimelineTrack",padKey:"padTop"},StatsParagraph:{num:"eyebrow",title:"title",description:"desc",headRows:["eyebrow","title","desc"],headStyle:"editorial",renderer:"StatsParagraph"},Footprint:{num:"sectionNumber",title:"heading",description:"tagline",headRows:["sectionNumber","heading","tagline"],headStyle:"editorial",renderer:"Footprint",padKey:"padTop"},Collections:{num:"eyebrow",title:"heading",headRows:["eyebrow","heading"],renderer:"Collections"},Cards:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Cards"},Testimonials:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Testimonials"},Reviews:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Reviews"},Prose:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"essay",renderer:"Prose"},ReviewForm:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"simple",renderer:"ReviewForm"},DeliveryOptions:{num:"eyebrow",title:"title",description:"body",headRows:["eyebrow","title","body"],headStyle:"natural",headRowGap:"gap-3",headDescriptionSize:"text-[15px]",renderer:"DeliveryOptions"}},Fn="SectionHeader";function xk(e){return e in Ro}function Yc(e){return Ho(h4,m4,e)}var x4=new Set(["Flex"]);function bpe(e){return!!e?.type&&x4.has(e.type)}var Ik={not:{field:"headPlacement",is:"own-box"}},ype={not:Ik};function Spe(e,o,t){return Ln(e,t,Ik)}var Xc="data-sf-spec-region";function gk(e){return e.writable===!0&&e.sized===!0}function Zc(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 Bn(e){let o=/var\(--size-[A-Za-z]+, ?([0-9.]+px)\)/.exec(e);if(!o)throw new Error(`builtInOf: no --size-* fallback in ${e}`);return o[1]}function pl(e){return`@${e}`}function ul(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function I4(e,o){return o&&o in e?o:null}var Sh={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0,sized:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0,sized:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0,sized:!0}},bk=Sh;var g4="question",b4="answer",y4={textStyle:"body-1",fontRole:"heading",...M("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},S4={textStyle:"body-1",...M("body",15),lineHeight:1.7};function yk(){return Object.keys(Sh).map(pl)}var wh=()=>({type:K,props:{..._,gap:0,name:"Question"},slots:{rowTitle:[ne(g4,{...G,tag:"p",widthFit:"fill"},y4)],[se]:[ne(b4,{...Y,tag:"p",widthFit:"fill",maxWidth:760},S4)]}});function w4(e){return Yc(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(o=>Z(e[o])!==void 0)}function Sk(e){if(e.template!==void 0||w4(e))return e;let o=Z(e.id)??"FAQ",t=0;return{...e,template:lo([wh()],r=>r===K?`${o}~row`:`${o}~row.${t++}`)}}var C4=["below","left","right"];function k4(e){return C4.includes(e)?e:"below"}function wk(e){return k4(e)!=="below"}function Ch(e){return Array.isArray(e)?e.map(Ch):!e||typeof e!="object"?e:Object.fromEntries(Object.entries(e).filter(([o,t])=>o!=="id"&&t!==void 0&&!(Array.isArray(t)&&t.length===0)).sort(([o],[t])=>o<t?-1:o>t?1:0).map(([o,t])=>[o,Ch(t)]))}var kh=e=>JSON.stringify(Ch(e));var Jc=sl(11),v4={textStyle:"body-1",...M("body",18),weight:500,lineHeight:1.2},kk=()=>({type:K,props:{..._,gap:8,gapPhone:8,...Xe(20,24,20,20),name:"Office"},slots:{[se]:[ne("badge",{...G,tag:"p",widthFit:"fill"},Jc,!0),ne("role",{...G,tag:"p",widthFit:"fill"},Jc,!0),ne("city",{...G,tag:"p",widthFit:"fill"},v4),ne("country",{...Y,tag:"p",widthFit:"fill"},Jc),ne("address",{...Y,tag:"p",widthFit:"fill"},Jc),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[ko]:"linkLabel",[cl]:"href"}}]}}),T4={textStyle:"body-1",fontRole:"heading",...M("body",16),weight:500,lineHeight:1.25},Ck={textStyle:"body-1",...M("body",14),lineHeight:1.5},P4=()=>({type:K,props:{..._,gap:4,gapPhone:4,...Xe(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[se]:[ne("city",{...G,tag:"p",widthFit:"fill"},T4),ne("address",{...Y,tag:"p",widthFit:"fill"},Ck),ne("phone",{...Y,tag:"p",widthFit:"fill"},Ck)]}});function vk(e){let o=Z(e.id)??"Footprint",t=0;return lo([P4()],r=>r===K?`${o}~office`:`${o}~office.${t++}`)}function E4(e){return Array.isArray(e.template)&&e.template.length>0&&kh(e.template)===kh(vk(e))}var O4=e=>e===void 0||Array.isArray(e)&&e.length===0;function Tk(e){return wk(e.listPosition)?!O4(e.template)||e.source==="dealers"?e:{...e,template:vk(e)}:E4(e)?{...e,template:[]}:e}var io="template",A4="Card template",Lo="CardList",Pk=["Text","ImageBlock","ButtonBlock","Flex"],ko="rowField",cl="rowLinkField";function Ek(){return{type:"slot",allow:[...Pk]}}var R4=Pk.filter(e=>e!=="ButtonBlock"),ml="items",Ok="itemFields";function tue(){return{type:"slot",allow:[...R4]}}var L4=[{block:"OrderSummary",typedRows:"rows",linesBetween:!0,fields:[{key:"label",label:"Item"},{key:"meta",label:"Meta line"},{key:"amount",label:"Amount"}]},{block:"FAQ",typedRows:"items",fields:[{key:"question",label:"Question"},{key:"answer",label:"Answer",multiline:!0}],seedOnInsert:e=>Sk(e)},{block:"Footprint",typedRows:"offices",fields:[{key:"badge",label:"HQ",plain:!0},{key:"role",label:"Role"},{key:"city",label:"City"},{key:"country",label:"Region \xB7 country"},{key:"address",label:"Address"},{key:"phone",label:"Phone"},{key:"linkLabel",label:"Button"},{key:"href",label:"Link",kind:"link"}],seed:e=>Tk(e)},{block:"Cards",typedRows:"items",fields:[{key:"num",label:"Number"},{key:"since",label:"Corner note"},{key:"label",label:"Label"},{key:"title",label:"Card title"},{key:"value",label:"Value"},{key:"body",label:"Card body",multiline:!0},{key:"href",label:"Link",kind:"link"},{key:"count",label:"Count"},{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],seed:e=>ck("Cards",e)},{block:"ProcessSteps",fields:[{key:"eyebrow",label:"Eyebrow"},{key:"title",label:"Title",mark:"accentItalic"},{key:"copy",label:"Body",multiline:!0},{key:"image",label:"Image",kind:"image",alt:"title"},{key:"tag",label:"Image tag"},{key:"specs",label:"Specs",kind:"list",fields:[{key:"label",label:"Label"},{key:"value",label:"Value"}]}],blocks:[{type:Lo,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>hk(e)},{block:Lo,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:ml,seed:e=>fk(e)},{block:dl,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>uk(e)}];function Go(){return Gt("efficient.card-templates",()=>new Map(L4.map(e=>[e.block,e])))}function rue(e){for(let o of e){if(typeof o.block!="string"||!o.block)throw new Error("A card template names no block.");let t=[];for(let s of o.blocks??[]){if(typeof s?.type!="string"||!s.type)throw new Error(`The card template of ${o.block} names an empty block.`);t.some(l=>l.type===s.type)||t.push({type:s.type,label:s.label||s.type})}let r=[];for(let s of o.slots??[]){if(typeof s?.slot!="string"||!s.slot)throw new Error(`The card template of ${o.block} names an empty slot.`);let l=Z(s.label),c=Array.isArray(s.fields)?{fields:s.fields.map(d=>({...d}))}:null;r.some(d=>d.slot===s.slot)||r.push({slot:s.slot,...l?{label:l}:null,...c})}let a=r.some(s=>s.fields);if(a&&(o.fields.some(s=>s.everySource)||SC(o.block).length))throw new Error(`The card template of ${o.block} declares slot fields, but the block reads a source: slot fields take the place of a source's fields, so a block with slot fields reads no source.`);a?el().add(o.block):el().delete(o.block);let n=Z(o.typedRows);Go().set(o.block,{block:o.block,...r.length?{slots:r}:{},fields:o.fields.map(s=>({...s})),blocks:t,typedRows:n,...o.seed?{seed:o.seed}:{},...o.seedOnInsert?{seedOnInsert:o.seedOnInsert}:{},...o.linesBetween===!0?{linesBetween:!0}:{}})}}function F4(e,o){let t=e?Go().get(e)?.seed:void 0;return t?t(o):o}function _k(e,o){let t=vh(e),r=(t.length?t:[io]).filter(l=>o[l]===void 0||Array.isArray(o[l])&&o[l].length===0);if(!r.length)return o;let a={...o};for(let l of r)delete a[l];let n=e?Go().get(e)?.seedOnInsert:void 0,s=n?n(a):F4(e,a);return s===a?o:s}function Ak(){for(let e of Go().values())if(e.blocks?.length)return!0;return!1}function Rk(e){return Go().get(e)?.blocks??[]}function aue(e){for(let o of Go().values())if(o.blocks?.some(t=>t.type===e))return!0;return!1}function Lk(e){return typeof e=="string"&&Go().get(e)?.typedRows||""}function nue(e){return typeof e=="string"&&Go().get(e)?.linesBetween===!0}function Fk(e){return typeof e=="string"&&Go().has(e)}var B4=[{slot:io}];function Qc(e){if(typeof e!="string")return[];let o=Go().get(e);return o?o.slots??B4:[]}function vh(e){return Qc(e).map(o=>o.slot)}function D4(e,o){return Qc(e).some(t=>t.slot===o)}function Bk(e,o){let t=Qc(e).find(r=>r.slot===o);return t?t.label??A4:null}function Th(e,o){return o?Qc(e).find(t=>t.slot===o)?.fields:void 0}function N4(e,o){let t=Go().get(e)?.fields??[];return o?t.filter(r=>(r.kind??"text")===o):t}function M4(e,o){if(typeof e!="string")return"";let t=Th(e,o);return(t?t.filter(r=>r.kind==="list"):N4(e,"list"))[0]?.key??""}function H4(e,o,t){return zo(e)||M4(o,t)}function Dk(e,o,t){let r=typeof e?.type=="string"?e.type:"";if(!r)return[];let a=Th(r,t);if(a)return o?a.filter(c=>(c.kind??"text")===o):a;let n=Go().get(r)?.fields??[],s=Fc(so(e?.props))?.fields,l=s?.length?[...s.map(c=>({...c})),...n.filter(c=>c.everySource&&!s.some(d=>d.key===c.key))]:n;return o?l.filter(c=>(c.kind??"text")===o):l}function W4(e,o,t,r){if(!e)return null;let a=Th(e,r);return a?a.find(n=>n.key===o)??null:t?Dk(t).find(n=>n.key===o)??null:Go().get(e)?.fields.find(n=>n.key===o)??null}function ed(e,o){return!e||!o?null:e.fields?.find(t=>t.key===o)??W4(e.ownerType,o,e.owner,e.slot)}function sue(e,o){return ed(e,o)?.plain===!0}function zo(e,o=ko){let t=e?.[o];return typeof t=="string"?t.trim():""}function hl(e,o){return e.key||String(o+1)}function Ph(e){let o={};if(e&&typeof e=="object"&&!Array.isArray(e))for(let[t,r]of Object.entries(e))typeof r=="string"&&(o[t]=r);return o}var Eh="hideWhenRowEmpty";function lue(e,o){let t=e[Eh];return!o||!Array.isArray(t)||!t.length?!1:t.every(r=>typeof r!="string"||!o[r]?.trim())}var Nk={Text:{text:ko},ImageBlock:{src:ko},ButtonBlock:{label:ko,href:cl},LogoBlock:{alt:ko},Breadcrumb:{currentCrumb:ko}};var G4=new Set(["ButtonBlock.label","LogoBlock.alt"]);function iue(e,o,t){return Oh(e,o,t)&&!G4.has(`${e}.${t}`)}function Oh(e,o,t){return _h(e,o,t)!==""}function _h(e,o,t){let r=Nk[e]?.[t];return r?zo(o,r):""}function od(e,o){return!o||!e?null:e[o]??""}function cue(e,o,t,r,a,n){if(!t)return o;let s=null;for(let[l,c]of Object.entries(Nk[e]??{})){let d=zo(o,c),f=od(t,d);f!==null&&(s??={...o},s[l]=ed({ownerType:r,fields:a,slot:n},d)?.mark==="accentItalic"?Ia(f):f)}return s??o}function td(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(n,s)=>{for(let l of n){if(l?.props?.id===o)return s;for(let[c,d]of Object.entries(l?.props??{})){if(!_4(d))continue;let f=D4(l.type,c)?{owner:l,slot:c,direct:!0,nested:s!==null,underBox:!1}:s&&{owner:s.owner,slot:s.slot,direct:!1,nested:s.nested,underBox:s.underBox||l.type===K},u=r(d,f);if(u!==void 0)return u}}},a=r(t,null);return a===void 0?null:a}function xl(e,o){let t=td(e,o);return t&&t.owner}function Ah(e,o){let t=td(e,o);return t&&t.slot}function Rh(e,o){let t=td(e,o);return t&&(t.direct?t.owner:null)}function due(e,o){let t=td(e,o);if(t!==void 0)return t===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:t.nested,underBox:t.underBox}}function Mk(e,o,t){if(o?.type!==Lo)return[];let r=xl(e,o.props?.id);if(!r){let l=Fc(so(o.props))?.fields,c=l?.length?l.map(u=>({...u})):z4(o.props),d=(Go().get(Lo)?.fields??[]).filter(u=>u.everySource&&!c.some(p=>p.key===u.key)),f=[...c,...d];return t?f.filter(u=>(u.kind??"text")===t):f}let a=Ah(e,o.props?.id)??void 0,n=H4(o.props,r.type,a),s=n&&Dk(r,"list",a).find(l=>l.key===n)?.fields||[];return t?s.filter(l=>(l.kind??"text")===t):s}function rd(e,o){return{[ko]:"",[ml]:e.map(t=>({...t})),[Ok]:o.map(t=>({...t}))}}function z4(e,o){let t=e?.[Ok];if(!Array.isArray(t))return[];let r=t.flatMap(a=>{if(!a||typeof a!="object")return[];let{key:n,label:s,kind:l,multiline:c,alt:d,next:f}=a;if(typeof n!="string"||!n||typeof s!="string")return[];let u=l==="image"||l==="link"||l==="colour"?l:void 0;return[{key:n,label:s,...u?{kind:u}:{},...c===!0?{multiline:!0}:{},...typeof d=="string"&&d?{alt:d}:{},...typeof f=="string"&&f?{next:f}:{}}]});return o?r.filter(a=>(a.kind??"text")===o):r}import{useSyncExternalStore as HK}from"react";import{isNodeList as ad}from"efficient-easel/data";var Hk="Flex";function Dn(e,o){return zo(e)?typeof e?.[gt]=="string"?Lh(o?.[gt]):"":Lh(e?.[gt])}var Lh=e=>typeof e=="string"?e.trim():"",$4=e=>e.type===Lo&&Array.isArray(e.props?.[ml])&&e.props[ml].some(o=>Lh(o?.[gt])!==""),U4=new Intl.NumberFormat("en-US");function j4(e){return/^\d+$/.test(e)?U4.format(Number(e)):e}function hue(e,o){let t=o?o.find(r=>r.key===e)?.value:wC(ol).find(r=>r.key===e)?.value;return t===void 0?null:j4(t)}var K4={[gt]:"any"};function Fh(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Dn(t)!==""||o&&Dn(t,K4)!==""),a=o||$4(e),n=t;for(let[l,c]of Object.entries(t)){if(!ad(c))continue;let d=c.map(f=>Fh(f,a));d.some(f=>f.names)&&(r=!0),d.some((f,u)=>f.node!==c[u])&&(n={...n,[l]:d.map(f=>f.node)})}if(e.type!==Hk)return{node:n===t?e:{...e,props:n},names:r};let s=so(n);if(r&&!s&&(n={...n,[_o]:ol}),!r&&s===ol){let{[_o]:l,...c}=n;n=c}return{node:n===t?e:{...e,props:n},names:!1}}function Wk(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!ad(a))continue;let n=Wk(a,o,r.type===Hk?r:t);if(n!==void 0)return n}}}function xue(e,o){if(!ad(e))return!0;let t=Wk(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=so(t.props);return!r||r===ol}function Gk(e){let o=e?.content;if(!ad(o))return e;let t=o.map(r=>Fh(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function zk(e){return Fh(e).node}import{jsx as w,jsxs as Yr,Fragment as br}from"react/jsx-runtime";import{cloneElement as _0,createContext as tU,useContext as A0,useEffect as rU,useId as R0,useRef as zl,useState as $l}from"react";import{useEasel as mf,useSelectedHost as es}from"efficient-easel/easel";import{PIN_LENGTH as lf,toDateKey as QSe,fromDateKey as ewe}from"efficient-shell/format";function V4(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function Fo(e){return typeof e=="string"?e:V4(e)?e.src:""}function gue(e,o,t){return Bh(e,o.split("."),t)}function Bh(e,o,t){if(o.length===0)return t(e);let[r,...a]=o,n=r.endsWith("[]"),s=n?r.slice(0,-2):r;if(!e||typeof e!="object"||Array.isArray(e))return e;let l=e;if(!(s in l))return e;let c=l[s];if(n){if(!Array.isArray(c))return e;let f=!1,u=c.map(p=>{let x=Bh(p,a,t);return x!==p&&(f=!0),x});return f?{...l,[s]:u}:e}let d=Bh(c,a,t);return d===c?e:{...l,[s]:d}}var q4=["upload","youtube"],Y4="upload",Sue={upload:"Upload",youtube:"YouTube"},X4=["background","click"],Z4="background",wue={background:"Background",click:"Click to play"};function Uk(e){return q4.includes(e)?e:Y4}function jk(e){return X4.includes(e)?e:Z4}var $k=/^[A-Za-z0-9_-]{11}$/,J4=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function Kk(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if($k.test(o))return o;let t;try{t=new URL(/^[a-z]+:\/\//i.test(o)?o:`https://${o}`)}catch{return null}if(t.protocol!=="https:"&&t.protocol!=="http:"||!J4.test(t.hostname))return null;let r=t.pathname.split("/").filter(Boolean),a=t.hostname.endsWith("youtu.be")?r[0]:r[0]==="watch"?t.searchParams.get("v"):r[0]==="embed"||r[0]==="shorts"||r[0]==="live"||r[0]==="v"?r[1]:null;return a&&$k.test(a)?a:null}function Dh(e,o){let t=o==="click"?"autoplay=1&playsinline=1&rel=0":`autoplay=1&mute=1&loop=1&playlist=${e}&controls=0&playsinline=1&rel=0&disablekb=1`;return`https://www.youtube-nocookie.com/embed/${e}?${t}`}function Vk(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function qk(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var Nh="Play video";var Mh={frame:"Video frame",image:"Image"},Cue={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Il(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":Fo(e.poster)?"image":"frame"}function kue(e){let[o,t]=Il(e)==="image"?[e.poster,e.videoFrame]:[e.videoFrame,e.poster];return Fo(o)||Fo(t)||void 0}function Yk(e){if(Fo(e.mediaVideo)){if(Il(e)==="frame")return Fo(e.videoFrame)?void 0:Fo(e.poster)?"frame-missing-image":"frame-missing-surface";if(!Fo(e.poster))return Fo(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var nd="videoFrames",Hh="videoFramesNotOwn";function Xk(e,o,t){let r=Fo(e.mediaVideo);if(!r||!o||Il(e)!=="frame"||Fo(e.videoFrame))return;let a=o[r],n=!!Fo(e.poster);if(a?.state==="ready")return null;if(n)return!a||a.state==="pending"?void 0:"image-no-frame";if(!a)return t?"save-makes-frame":void 0;switch(a.state){case"pending":return a.noted!=="save"&&t?"save-makes-frame":null;case"dark":return"starts-dark";case"outside":return"outside";case"unsupported":return"unsupported";case"failed":return"failed";default:return null}}function Q4(e,o){let t=Fo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function vue(e,o,t){let r=t?.[Hh];if(!(Array.isArray(r)&&r.includes(e)))return Q4(o,t?.[nd])}import{useSyncExternalStore as e6}from"react";function sd(){let e=new Map,o=new Set,t=r=>(o.add(r),()=>{o.delete(r)});return{get:r=>e.get(r),has:r=>e.has(r),set(r,a){if(!(e.has(r)&&e.get(r)===a)){e.set(r,a);for(let n of o)n()}},use(r){let a=()=>r?e.get(r):void 0;return e6(t,a,a)}}}var Me="SiteHeader",Re="SiteFooter",Wh="sections",Oue=[Me,Re],Nn=e=>e===Me||e===Re,Zk=e=>`${e}:${Wh}`;function Jk(e,o,t=[]){return{type:e,props:{id:o,[Wh]:t}}}var o6=new Set(["Footer",Me,Re]);function Mn(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):o6.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function ld(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Me?[o,...e]:[...e,o]}var Qk={[Me]:{max:3,takes:["Flex","Ticker"]},[Re]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function ev(e,o,t){if(!Nn(e))return!0;let r=Qk[e];return t<r.max&&r.takes.includes(o)}function ov(e,o){let t=o,r=t?.props?.id;if(r==null)return null;let a=e?.content;if(!Array.isArray(a))return null;for(let n of a){if(!Nn(n?.type))continue;let s=n.props?.[Wh];if(!Array.isArray(s)||!s.some(c=>c?.props?.id===r))continue;let l=Qk[n.type];return l.takes.includes(t?.type??"")?s.length>=l.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}import{locateNode as t6}from"efficient-easel/draw";function gl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function id(e,o,t){let r=gl(t?.zone),a=r?t6(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as r6}from"efficient-easel/data";var tv="Footer",rv=[Me,tv,Re],Sa=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Hr=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Hn=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},av=e=>gl(e)?.ownerId??"";function nv(e){let o=Mn(Sa(e)),t=o.some(r=>r?.type===Re);return o.filter(r=>r?.type===Me||r?.type===Re||r?.type===tv&&!t)}function cd(e,o){let t=new Set,r=a=>{if(Array.isArray(a)){for(let n of a)r(n);return}if(!(!a||typeof a!="object")){if(r6(a)){let n=Hn(a);n&&t.add(n)}for(let n of Object.values(a))r(n)}};if(r(e),o){let a=!0,n=new Set;for(;a;){a=!1;for(let[s,l]of Object.entries(o))n.has(s)||!t.has(av(s))||(n.add(s),r(l),a=!0)}}return t}function sv(e,o){let t=Sa(e).filter(r=>{let a=Hn(r);return typeof r?.type=="string"&&rv.includes(r.type)||a!==void 0&&o(a)});return t.length?cd(t,Hr(e)):new Set}function Gh(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(av(a))?t:r)[a]=n;return{owned:t,rest:r}}function lv(e,o){if(!o)return e;let t=nv(o);if(!t.length)return e;let r=t.filter(l=>l.type===Me),a=t.filter(l=>l.type!==Me),n={...e,content:[...r,...Sa(e),...a]},{owned:s}=Gh(Hr(o),cd(t,Hr(o)));return Object.keys(s).length&&(n.zones={...Hr(e)??{},...s}),n}function zh(e,o){if(!o)return{page:e,chrome:null};let t=nv(o),r=new Set(t.map(Hn).filter(C=>!!C)),a=[],n=[];for(let C of Sa(e)){let b=Hn(C);b&&r.has(b)||Nn(C?.type)?n.push(C):a.push(C)}let s=new Map(n.map(C=>[Hn(C),C])),l=new Set,c=Mn(Sa(o)).flatMap(C=>{let b=Hn(C);if(!b||!r.has(b))return[C];let v=s.get(b);return v?(l.add(v),[v]):[]});for(let C of n)l.has(C)||c.some(b=>b?.type===C.type)||(c=C.type===Me?[C,...c]:[...c,C]);c=Mn(c);let d=c.length===Sa(o).length&&c.every((C,b)=>C===Sa(o)[b]),f=Hr(e),u=cd(c,f),{owned:p,rest:x}=Gh(f,u),I=Gh(Hr(o),cd(t,Hr(o))).owned,g={...o,content:d?o.content:[...c]},k=Hr(o);if(k||Object.keys(p).length){let C={};for(let[b,v]of Object.entries(k??{}))b in I?b in p&&(C[b]=p[b]):C[b]=v;for(let[b,v]of Object.entries(p))b in C||(C[b]=v);g.zones=C,k&&a6(g.zones,k)&&(g.zones=k)}let S={...e,content:a};return f&&(Object.keys(x).length||!Object.keys(I).length?S.zones=x:delete S.zones),{page:S,chrome:g}}function a6(e,o){let t=Object.keys(e),r=Object.keys(o);return t.length===r.length&&t.every((a,n)=>a===r[n]&&e[a]===o[a])}function iv(e,o){return t=>e(t)||t!==void 0&&rv.includes(t)&&o()}var cv=null;function $h(e){cv=e}function St(){return cv}var dv=null;function Uh(e){dv=e}function dd(){return dv}var jh=sd();function fv(e,o,t){if(!o)return;let r={...jh.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};jh.set(e,r)}function pv(e,o){fv(e,o,"load")}function uv(e,o){fv(e,o,"save")}function fd(e){return jh.use(e)}var Kh=e=>!!St()?.sectionOf(e);function mv(e,o=Kh){return sv(e,o)}function hv(e,o,t,r=Kh){if(t)return e&&mv(o,r).has(e)?void 0:t}function xv(e,o,t=Kh){if(!e)return{};let r=[...mv(o,t)];return r.length?{[nd]:e,[Hh]:r}:{[nd]:e}}import{ScreenDocumentContext as aU}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as Zr,hidableText as nU}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as L0,LINK_FIELD_MARKER as sU,MEDIA_FIELD_MARKER as lU,SCAFFOLD_FIELD_MARKER as iU,TEXT_FIELD_MARKER as Ir,foldMetaOf as yr,textFieldIdentifier as iwe}from"efficient-easel/draw";import{jsx as Cv}from"react/jsx-runtime";import{useCallback as l6}from"react";import{useEasel as i6}from"efficient-easel/easel";import{SettingsAction as c6}from"efficient-easel/panel";import{CORNER_SIDES as pd,hasCornerSubset as bl,normalizeCornerSides as jt}from"efficient-easel/screen/lib/content/style-keys";function Vh(e){return typeof e=="number"&&Number.isFinite(e)}function jue(e,o){if(!Vh(e))return;let t=kc(Mt(e));if(Object.keys(t).length===0)return;let r=t[qh];if(typeof r!="string")return t;let a=bl(o)?wa(r,jt(o)??[]):r;return{...t,[n6]:a}}var n6="--sf-section-radius",qh="--sf-card-radius";function wa(e,o){return pd.map(t=>o.includes(t)?e:"0").join(" ")}var Iv=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var s6="--sf-card-box-radius";function Yh(e){return typeof e=="number"&&Number.isFinite(e)}function Yue(e,o){if(!Yh(e))return;let t=kc(Mt(e))[qh];if(typeof t!="string")return;let r=bl(o)?wa(t,jt(o)??[]):t;return{[s6]:r}}function gv(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 bv(e,o,t){let r=id(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,l=s>=0?n[s]:void 0,c=l?.props?.id?String(l.props.id):"",d=Math.max(n.length-1,0);return!r||!c?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:d}:Yh(l?.props?.cardCorners)?{can:!0,others:d,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:gv(n,c)}}}:{can:!1,reason:"unset",others:d}}function yv(e){return e.can?Oo("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?i("This is the only card in the section."):e.reason==="unset"?i("Set this card's corners first."):i("This card is not in a section that can share corners.")}function Sv(e){return Oo("Applied to {n} card","Applied to {n} cards",e)}function wv(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as d6}from"efficient-easel/screen/lib/document/use-section-ops";var f6="apply-corners-to-siblings",p6="Apply to all cards";function u6({plan:e,onPress:o}){return Cv(c6,{id:f6,label:i(p6),note:yv(e),disabled:!e.can,doneLabel:Sv(e.others),onPress:o})}function kv(){let{appState:e,config:o}=i6(n=>n),t=d6(),r=bv(o,e.data.content??[],e.ui.itemSelector),a=l6(()=>{wv(r,t.replaceComponent)},[r,t]);return Cv(u6,{plan:r,onPress:a})}import{isShown as Fv,lazyShowWhenContext as T6}from"efficient-shell/format";var Wr="product",ud="recordType",vv={key:Wr,label:"Product",fields:[]},m6=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,h6=/^[a-z][A-Za-z0-9]*$/,x6=["text","date","images"],Xh=new Map,Tv=0;function I6(e){if(typeof e.key!="string"||!m6.test(e.key))throw new Error(`A record type key is lower-case words joined by hyphens, not ${JSON.stringify(e.key)}.`);if(e.key===Wr)throw new Error("The product record type is the builder's own and is not declared by a host.");if(typeof e.label!="string"||!e.label.trim())throw new Error(`The record type ${e.key} has no label.`);let o=new Set;for(let t of e.fields){if(typeof t.key!="string"||!h6.test(t.key)||o.has(t.key))throw new Error(`The record type ${e.key} has a field key it cannot use: ${JSON.stringify(t.key)}.`);if(!x6.includes(t.kind))throw new Error(`The field ${t.key} of ${e.key} has no kind ${JSON.stringify(t.kind)}.`);o.add(t.key)}return{key:e.key,label:e.label.trim(),fields:e.fields.map(t=>({...t}))}}function cme(e){let o=e.map(I6);for(let t of o)Xh.set(t.key,t);o.length&&(Tv+=1)}function Zh(){return[vv,...Xh.values()]}function g6(e){return e===Wr?vv:Xh.get(e)??null}function Jh(){return Tv}function yl(e){let o=e?.[ud];return typeof o!="string"?Wr:o.trim()||Wr}function Qh(e){return yl(e)===Wr}function dme(e,o){let t=g6(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var md="product",Pv="tyre",b6=[md,Pv];function ume(e){return b6.includes(e)}var y6="productType",S6={[md]:"alloy-wheel",[Pv]:"tyre"},w6=["alloy-wheel","tyre"];function Ev(e,o){return Qh(o)?Ov(o)??S6[e]??null:null}function Ov(e){if(!Qh(e))return null;let o=e?.[y6];return typeof o=="string"&&w6.includes(o)?o:null}function mme(e){let o=e?.root;return Ov(o?.props)}var ex="Main Pages",C6="Dynamic Pages",ox="dynamic",k6="dynamic";function Ca(e){return e.kind===k6}var tx="lightbox";function _v(e){return e.kind===tx}function Av(e){let o=[],t=[];for(let r of e){if(Ca(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??ex,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:ox,label:C6,rows:t})}return o}var hd=null,Rv=null;function v6(e,o){hd=e,Rv=o}function yme(e){v6(e,null)}function Sme(){return hd}function Sl(){return Ca({kind:Rv})||hd===md}function wme(e){return Ev(hd??"",e)??"alloy-wheel"}function Cme(e){return Sl()?yl(e):null}function rx(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!Fv(bh(s),o??{},t)){r=!0;continue}let l=P6(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function P6(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||Fv(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function Bv(e,o,t,r){let a=id(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Lv(e,o){if(!e||typeof e!="object")return!1;let t=e;if(typeof t.context=="string"&&(t.context===o||t.context.startsWith(`${o}.`)))return!0;if("not"in t)return Lv(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>Lv(a,o)))return!0;return!1}function _me(e,o={}){return T6({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Sl(),root:()=>e.appState?.data?.root?.props,...o})}var Dv=1;function E6(e){return Mt(e)}function Lme(e){let o=E6(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var Nv=1,Mv="Corners";function O6(e){return Mt(e)}function Nme(e,o){let t=O6(e);if(t===null)return null;let r=`${t}px`;return{borderRadius:bl(o)?wa(r,jt(o)??[]):r}}var Wv=12,Gv=6,_6=800,cr={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]]},twoThenThrees:{label:"Two, then threes",across:3,acrossPhone:3,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],leadPhone:[[3,1],[3,1]],phone:[[2,1],[2,1],[2,1]]},twoThenThreesPhoto:{label:"Two, then threes \xB7 photo",across:3,acrossPhone:1,lead:[[6,1],[6,1]],desktop:[[4,1],[4,1],[4,1]],phone:[[6,1]],ratio:"landscape"}},ax=Object.keys(cr),zv=[2,3,4,6];function nx(e,o){return ax.filter(t=>t===o||e===null||cr[t].across===e)}function $v(e){return typeof e!="string"||e===""?null:cr[e]??null}function Hv(e,o){return o?Gv/e.acrossPhone:Wv/e.across}function sx(e){return e.ratio?Uw.find(o=>o.shape===e.ratio)?.ratio??null:null}function Uv(e){return[...e.lead??[],...e.desktop]}var A6="sf-wall--";function R6(e){return`${A6}${e}`}function Wme(e){let o=cr[e],t=`.${R6(e)}`,r=[],a=(l,c,d)=>`${t}:has(> :nth-child(${l}n+${c+d}):last-child) > :nth-last-child(-n+${d})`,n=(l,c,d=[])=>{let f=[],u=l.length,p=d.length;d.forEach(([x,I],g)=>{f.push(`${t} > :nth-child(${g+1}){grid-column:span ${x};grid-row:span ${I}}`)}),l.forEach(([x,I],g)=>{f.push(`${t} > :nth-child(${u}n+${p+g+1}){grid-column:span ${x};grid-row:span ${I}}`)});for(let x=1;x<u;x+=1)f.push(`${a(u,p,x)}{grid-column:span ${c};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${Wv},minmax(0,1fr))}`);let s=sx(o);if(s&&(r.push(`${t}${t}{grid-auto-rows:auto}`),r.push(`${t}${t} > *{aspect-ratio:${s[0]}/${s[1]};height:auto}`)),r.push(...n(o.desktop,Hv(o,!1),o.lead)),r.push(`@media (max-width:${_6}px){`),r.push(`${t}{grid-template-columns:repeat(${Gv},minmax(0,1fr))}`),r.push(...n(o.phone,Hv(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[l,c]=o.phone[0],d=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,d,f)}{grid-column:span ${l};grid-row:span ${c}}`)}return r.push("}"),r.join("")}var xd=12,jv=1,L6=3;var F6=3;function lx(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 B6(e){return lx(e,1,xd)??F6}function $me(e,o){return lx(e,jv,L6)??(B6(o)===4?2:jv)}function Ume(e){return e==null||e===""?null:lx(e,1,xd)}var jme="data-sf-span";function Kme(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if($v(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as D6}from"react/jsx-runtime";import*as N6 from"efficient-easel/icons";function Id(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=N6[`${o}Icon`];return t?D6(t,{size:16}):null}import{jsx as Gr,Fragment as W6,jsxs as Qv}from"react/jsx-runtime";import{useContext as G6,useEffect as z6,useId as $6,useState as eT}from"react";import{SettingsField as U6,SettingsSwitch as j6}from"efficient-easel/panel";import{AnchorIcon as K6}from"efficient-easel/icons";import{ScreenDocumentContext as V6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as q6}from"efficient-shell/ui";import{slugify as Y6}from"efficient-shell/format";import{slugify as M6}from"efficient-shell/format";function wl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var gd=e=>M6(wl(e));var bd="homepage";import{slugify as H6}from"efficient-shell/format";var Kv=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"popup",label:"Popup"},{value:"custom",label:"Custom URL"}];function Vv(e){return e.offersCommerce&&e.offersService?Kv:Kv.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var ix="#popup:";function qv(e){return`${ix}${e}`}function Yv(e){return e.startsWith(ix)&&e.slice(ix.length).trim()||null}function Cl(e){return e===bd?"/":`/${e}`}function Xv(e){return`/journal/${e}`}function the(e){return`/wheels/${e}`}function yd(e,o){return`${Cl(e)}#${o}`}function Zv(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=wl(a?.props?.anchor);if(!n)continue;let s=H6(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function rhe(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 Jv(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as X6}from"efficient-easel/draw";function oT({value:e,onChange:o,nameBox:t}){let r=X6(e).text,[a,n]=eT(!1),s=a||r.trim()!=="",l=$6();return Qv(W6,{children:[Gr(U6,{label:i("Add an anchor"),labelId:l,icon:Gr(K6,{}),action:Gr(j6,{checked:s,ariaLabelledBy:l,onChange:c=>{n(c),!c&&r!==""&&o("")}})}),s&&t(e,o),s&&Gr(Z6,{name:r})]})}function Z6({name:e}){let o=G6(V6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=eT("");z6(()=>a(Rn()||window.location.origin),[]);let n=Y6(e);if(!n||!t)return null;let s=`${r}${yd(t,n)}`,l=s.replace(/^https?:\/\//,""),c=l.lastIndexOf("#");return Gr("div",{className:"sf-anchor-link",children:Gr(q6,{value:s,label:i("link"),size:"sm",children:Qv("span",{className:"sf-anchor-link-text",children:[Gr("span",{className:"sf-anchor-link-path",children:l.slice(0,c)}),Gr("span",{className:"sf-anchor-link-hash",children:l.slice(c)})]})})})}import{jsx as Kt,jsxs as J6}from"react/jsx-runtime";import{Fragment as Q6}from"react";import{Button as Sd,Tooltip as e3}from"efficient-shell/ui";function tT({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:c=!1}){return l?Kt("div",{className:`sf-blogsource sf-blogsource--compact${c?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:Kt(e3,{content:n,className:c?"sf-name-tip":void 0,children:Kt("p",{className:"sf-blogsource-status","data-state":e,children:[o?Kt(Q6,{children:o},"status"):null,t?Kt(Sd,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?Kt(Sd,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((d,f)=>f?[" \xB7 ",d]:[d])})})}):J6("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[Kt("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?Kt(Sd,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?Kt(Sd,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Kt("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as cU,EyeIcon as dU,AnimationIcon as fU,BackgroundIcon as S0,BorderAllIcon as pU,BlockSectionIcon as uU,ColumnWidthsIcon as bI,ColumnsIcon as F0,CornerIcon as B0,DirectionDownIcon as mU,DirectionLeftIcon as hU,DirectionRightIcon as xU,DirectionUpIcon as IU,EditIcon as gU,GapIcon as bU,GridIcon as yU,GroundIcon as gI,HashIcon as D0,HeightIcon as N0,ImageIcon as SU,ListIcon as wU,LocationIcon as w0,PaddingBottomIcon as M0,PaddingLeftIcon as H0,PaddingRightIcon as W0,PaddingTopIcon as G0,PageIcon as CU,StickyIcon as kU,SearchIcon as vU,SquareIcon as TU,TypeIcon as PU,WidthIcon as EU}from"efficient-easel/icons";import{jsx as $e,Fragment as ka,jsxs as va}from"react/jsx-runtime";import{CaptionIcon as o3,DateIcon as t3,FlagIcon as r3,TitleIcon as a3,ButtonIcon as n3,DollarIcon as s3,HashIcon as l3,LinkIcon as i3,NoteIcon as c3,TagIcon as d3,TextLinesIcon as f3}from"efficient-easel/icons";var rT={body:f3,button:n3,link:i3,label:d3,number:l3,price:s3,note:c3,name:r3,date:t3,caption:o3,title:a3},aT={eyebrow:va(ka,{children:[$e("path",{d:"M5 6.5h5"}),$e("path",{d:"M5 12.5h14"}),$e("path",{d:"M5 18h11"})]}),heading:va(ka,{children:[$e("path",{d:"M6.5 5v14"}),$e("path",{d:"M17.5 5v14"}),$e("path",{d:"M6.5 12h11"})]}),intro:va(ka,{children:[$e("path",{d:"M4 5.5v13"}),$e("path",{d:"M8 7.5h12"}),$e("path",{d:"M8 12h12"}),$e("path",{d:"M8 16.5h8"})]}),value:va(ka,{children:[$e("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),$e("path",{d:"M6.5 12h7"})]}),quote:va(ka,{children:[$e("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),$e("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:va(ka,{children:[$e("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),$e("path",{d:"M8 9.5h8"}),$e("path",{d:"M12 9.5v5"})]}),meta:va(ka,{children:[$e("path",{d:"M4 7h16"}),$e("path",{d:"M4 14h3.5"}),$e("path",{d:"M10.5 14h3"}),$e("path",{d:"M17 14h3"})]})};function cx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=rT[e];return n?$e("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:$e(n,{size:o})}):$e("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:aT[e]})}var khe=Object.keys(rT);var vhe=Object.keys(aT);import{parseHexColor as I3}from"efficient-shell/format";import{parseHexColor as fT}from"efficient-shell/format";import{COLOR_SLOTS as pT,FILL_COLOR_SLOTS as h3,colorRole as x3,fillColorRole as uT}from"efficient-shell/markup";import{parseHexColor as sT}from"efficient-shell/format";import{FILL_COLOR_SLOTS as p3}from"efficient-shell/markup";var wd=e=>{let o=Lw.find(t=>t.role===e);return o?`var(${o.token})`:""},u3=e=>wd(e)?`var(--theme-${e})`:"",nT={main:{ink:Br.accent,page:Br.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Br.text,page:Br.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:wd("bg"),page:u3("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Br.labels,page:Br.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:wd("surface"),page:wd("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function zr(e){return Object.hasOwn(nT,e)?nT[e]:void 0}var dx="#9ca3af";function Wn(e,o,t){let r=zr(e);return r?{hex:sT(o[r.key]??"")??"",words:r.words(t)}:null}function lT(e,o){return p3.flatMap(t=>{let r=Wn(t,e,o);return r&&zr(t)?.ink?[{name:t,label:r.words,value:r.hex||dx}]:[]})}var m3=["main","text","background"];function iT(e){let o=new Set,t=[];return ro(e).themes.forEach((r,a)=>{for(let n of m3){let s=zr(n),l=s?r[s.key]:void 0,c=typeof l=="string"&&l?sT(l):null;!s||!c||o.has(c)||(o.add(c),t.push({value:c,label:s.words(a+1)}))}}),t}function dr(e){return zr(e)?.ink??""}function Vt(e){if(typeof e!="string")return null;let o=uT(e.trim());return o?.kind==="slot"&&dr(o.slot)?o.slot:null}var cT={accent:"main",labels:"muted"};function Zo(e){return Object.hasOwn(cT,e)?cT[e]:e}function Gn(e){if(!e)return"";if(e.startsWith("#"))return fT(e)===e.toLowerCase()?e:"";let o=x3(Zo(e));return o?.kind==="slot"?dr(o.slot):""}function zn(e,o=pT){return o.flatMap(t=>{let r=zr(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||dx}]:[]})}function mT(e){let o=uT(Zo(e));return o?.kind==="slot"?dr(o.slot):""}function fx(e){let o=e?.trim();return o?h3.find(t=>dr(t)===o)??null:null}function hT(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 s of pT){let l=dr(s);if(!l)continue;let c=l.replace(/^var\((--[\w-]+)\)$/,"$1"),d=a.getPropertyValue(c).trim();if(!d)continue;let f=dT(d);!f&&n&&(n.fillStyle="#000000",n.fillStyle=d,f=dT(String(n.fillStyle))),f&&(o[s]=f)}return o}function dT(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return fT(o);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 g3="#ffffff";function px(e){return xT(e)||(b3(e)?e:g3)}function xT(e){let o=Vt(e);return o?zr(o)?.page??"":""}function b3(e){return typeof e=="string"&&I3(e)===e.toLowerCase()||xT(e)!==""}function Ghe(e){return{"--bg":px(e)}}import{parseHexColor as y3}from"efficient-shell/format";import{fillColorRole as S3}from"efficient-shell/markup";function Ta(e,o,t,r){let a=r??t??o,n=t!==null&&t!==o,s=a!==null&&a!==o;return{className:[n?e.tabletClass:"",s?e.phoneClass:""].filter(Boolean).join(" "),style:{...n?{[e.tabletVar]:t}:{},...s?{[e.phoneVar]:a}:{}}}}var Zhe="sf-card",$r={min:0,max:100,step:5,fallback:0,unit:"%"},w3=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],C3="68%",Jhe={desktop:20,phone:20,side:40,sidePhone:24},Qhe="sf-box-sides";function mx(e){return typeof e=="string"&&e.trim()!==""}function exe(e){return mx(typeof e?.bgImage=="string"?e.bgImage:null)||zo(e,Zs)!==""}function oxe(e,o){return o||zo(e,Zs)===""?e:{...e,[Zs]:""}}function txe(e,o){return od(o,zo(e,Zs))?.trim()||null}function IT(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min($r.max,Math.max($r.min,t))/100).toFixed(2);return o!=="bottom"?{background:Tc(Number(r))}:{background:`linear-gradient(0deg, ${Tc(Number(r))} 0%, ${Tc(0)} ${C3})`}}var Cd=e=>typeof e=="string"?y3(e.trim()):null,ux=e=>{let o=Cd(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&mT(t)||null},kd=e=>{if(typeof e!="string")return null;let o=S3(Zo(e.trim()));return o?.kind==="slot"?o.slot:null},k3="swatch";function rxe(e,o){if(!o)return null;let t=od(o,zo(e,k3)),r=Vt(t);return Cd(t)??(r&&dr(r)||null)}var v3={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function axe(e,o,t){return Ta(v3,ux(e),ux(o),ux(t))}var T3={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function nxe(e){let o=IT(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(IT(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>w3.some(p=>p.value===u)?u:void 0,[n,s,l,c]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],d=n??e.darken,f=s??e.darkenStyle;return Ta(T3,String(o.background),n!==void 0||s!==void 0?t(d,f):null,l!==void 0||c!==void 0?t(l??d,c??f):null)}function sxe(e,o){let t={"top-left":["start","start"],"top-center":["center","start"],"top-right":["end","start"],left:["start","center"],center:["center","center"],right:["end","center"],"bottom-left":["start","end"],"bottom-center":["center","end"],"bottom-right":["end","end"]},[r,a]=t[e]??t.center,[n,s]=o==="column"?[a,r]:[r,a],l={start:"justify-start",center:"justify-center",end:"justify-end"},c={start:"items-start",center:"items-center",end:"items-end"};return`${l[n]} ${c[s]}`}function gT(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let{type:a,props:n}=r;if(n?.id===o)return null;if(hx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function hx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>hx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>hx(a,o,t+1))}function bT(e,o){let t=e?.content;return Array.isArray(t)?vd(t,o,0)??[]:[]}function vd(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=vd(a,o,t+1);if(n)return n}return null}let r=e.props;if(r&&typeof r=="object"){if(r.id===o)return[];for(let a of Object.values(r)){let n=vd(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=vd(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Po,SettingsDrill as OU,SettingsField as eo,SettingsGroup as _U,SettingsGroupSub as Twe,SettingsSegmented as AU,SettingsBorder as RU,SettingsSidesEach as LU,SettingsSwitch as yI,borderSides as FU,borderStartEach as BU}from"efficient-easel/panel";import{ListField as DU}from"efficient-easel/fields";import{DisplayChips as NU}from"efficient-shell/ui";import{HIDDEN_KEY as P3,hiddenInEveryView as E3,hiddenInView as xx,hiddenKeyOf as yT}from"efficient-easel/screen/lib/content/view-hide";var O3={"000":"",100:"view-desktop:hidden","010":"view-wide:max-view-desktop:hidden","001":"max-view-wide:hidden",110:"view-wide:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-wide:hidden",111:"hidden"},_3={"000":"",100:"view-desktop:hidden","010":"view-tablet:max-view-desktop:hidden","001":"max-view-tablet:hidden",110:"view-tablet:hidden","011":"max-view-desktop:hidden",101:"view-desktop:hidden max-view-tablet:hidden",111:"hidden"},ST=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function Td(e,{atSectionLine:o=!1}={}){return(o?_3:O3)[ST(e)]}var $n=[P3,yT("tablet"),yT("mobile")];function wT(e){return{desktop:xx(e,"desktop"),tablet:xx(e,"tablet"),mobile:xx(e,"mobile")}}function kl(e){return E3(e)}function dxe(e){let o=wT(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var A3={"000":"",100:"view-desktop:hidden!","010":"view-wide:max-view-desktop:hidden!","001":"max-view-wide:hidden!",110:"view-wide:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-wide:hidden!",111:"hidden!"},R3={"000":"",100:"view-desktop:hidden!","010":"view-tablet:max-view-desktop:hidden!","001":"max-view-tablet:hidden!",110:"view-tablet:hidden!","011":"max-view-desktop:hidden!",101:"view-desktop:hidden! max-view-tablet:hidden!",111:"hidden!"};function fxe(e,{atSectionLine:o=!1}={}){return(o?R3:A3)[ST(wT(e))]}function Un(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let o={};for(let[t,r]of Object.entries(e))typeof r=="boolean"&&(o[t]=r);return o}function Pd(e,o){return Un(e)[o]!==!1}function Ix(e,o,t){let r=Un(o)[t];return typeof r=="boolean"?r:Pd(e,t)}function CT(e){return Object.values(Un(e)).some(o=>o===!1)}function kT(e){return Object.keys(Un(e)).length>0}function vT(e,o,t){let r={...Un(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function TT(e,o,t){return{...Un(e),[o]:t}}function mxe(e,o,t,{atSectionLine:r=!0}={}){let a=!Pd(e,t);return Td({desktop:a,tablet:a,mobile:!Ix(e,o,t)},{atSectionLine:r})}import{AlignmentGrid as MU,Checkbox as Awe,ColorSwatch as HU,CornersInput as WU,DatePicker as Rwe,DateTimePicker as GU,FOCAL_DEFAULT as Lwe,IconPicker as z0,COLUMN_COUNT_MAX as C0,COLUMN_SHARE_MIN as zU,COLUMN_SHARES_EQUAL as $U,resolveColumnShares as $0,WidthsBar as UU,useShellStrings as jU,IconButton as U0,InputNumber as k0,Slider as KU,Tooltip as SI}from"efficient-shell/ui";import{backendOf as L3}from"efficient-easel/screen/lib/session";var Ue=L3,Ed=e=>e.blocks;async function PT(e){let o=e.trim();if(!o)return null;let t=Ue().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var gx="Lookup busy \u2014 try again in a moment.",Od=e=>typeof e=="number"&&Number.isFinite(e);function Sxe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:Od(t.lat)&&t.lat!==o.lat||Od(t.lng)&&t.lng!==o.lng:!1})}async function wxe(e,o,{geocode:t=PT,courtesyGapMs:r=1100}={}){let a=s=>new Promise(l=>setTimeout(l,s)),n=e.slice();if(e.some(s=>s?.geocode?.pending)){let s=[],l=!1;for(let c of e){if(!c?.geocode?.pending){s.push(c);continue}l&&r>0&&await a(r),l=!0;try{let d=await t(o(c));s.push(d?{...c,lat:d.lat,lng:d.lng,geocode:{...c.geocode,pending:!1,ok:!0,status:`Found \u2014 ${d.label.split(",").slice(0,3).join(",").trim()}`,lat:d.lat,lng:d.lng}}:{...c,geocode:{...c.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...c,geocode:{...c.geocode,pending:!1,ok:!1,status:gx}})}}n=s}return n.map(s=>{let l=s?.geocode;if(!l)return s;if(l.manual&&l.lat===void 0&&l.lng===void 0)return{...s,geocode:{...l,lat:s.lat,lng:s.lng}};let c=Od(l.lat)&&l.lat!==s.lat?l.lat:s.lat,d=Od(l.lng)&&l.lng!==s.lng?l.lng:s.lng;return c!==s.lat||d!==s.lng?{...s,lat:c,lng:d}:s})}import{jsx as $o,jsxs as yx}from"react/jsx-runtime";import{useRef as F3}from"react";import{ColorPicker as B3,ColorPickerPanel as D3,ColorSwatch as N3,HexInput as M3,Popover as H3,Tooltip as W3,colorFill as G3,colorSwatchClasses as z3,useShellStrings as $3}from"efficient-shell/ui";import{SettingsDefaultReset as U3,SettingsField as j3}from"efficient-easel/panel";import{typedHex as bx}from"efficient-easel/pick";var ET="Not set";function K3({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return $o(q3,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function V3(){let{theme:e}=xe();return iT(e)}function q3({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=V3(),c=e?null:bx(n??""),d=a!==void 0&&(!e||bx(a)!==bx(e))?a:null,f=u=>{u!==e&&o(u)};return yx("div",{className:"sf-colour",children:[s?$o(Y3,{id:r,value:e,onChange:o,label:t,presets:l,follows:c,choices:s}):$o(B3,{id:r,value:e,onChange:f,label:t,presets:l,fallback:c??void 0,size:"md",align:"start"}),d!==null?$o("span",{className:"sf-colour-caption",children:d}):$o("span",{className:"sf-colour-hexwrap",children:$o(M3,{value:e||c||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||c?void 0:i(ET),className:c?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function Y3({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=$3().color,c=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=F3(d);return f&&(u.current=d),$o(H3,{id:r,trigger:$o("span",{"aria-hidden":"true",className:"absolute inset-0",style:G3(c)}),triggerLabel:l.swatch(t,c.toUpperCase()||l.none),triggerClassName:z3({size:"md"}),"aria-label":l.panel(t),align:"start",children:yx("div",{className:"sf-colour-window",children:[$o("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>$o(W3,{content:p.label,children:$o(N3,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),$o(D3,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?c:n)??void 0},u.current)]})})}function Uo({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return yx(j3,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?$o(U3,{words:ae()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:[K3({...l,label:e}),s]})}function vl({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:l,choices:c}){let d=!!t;return $o(Uo,{label:e,icon:o,value:t,inherited:d?void 0:r,onChange:n,changed:d,onReset:s,resetTo:a,hint:l,choices:c})}import{keptByRow as VU}from"efficient-easel/screen/lib/document/style-fields";import{jsx as X3}from"react/jsx-runtime";import{useEffect as Z3,useState as J3}from"react";import{clearRangeOf as Q3,markSelection as eW,useCaretEdit as oW}from"efficient-easel/copy";import{TextToolbar as tW}from"efficient-shell/ui";function rW(e,o,t){return eW(e,o,t,WC)}function OT(e,o){let t=Q3(o,e.length),r=zC(e,t.start,t.end);return r.text===e?null:r}function aW(e){let[o,t]=J3(null);return Z3(()=>{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 s=n.selectionStart??n.value.length,l=n.selectionEnd??s;t(c=>c&&c.start===s&&c.end===l?c:{start:s,end:l})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function nW({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=oW({target:e,onChange:t}),[s,l]=aW(e),c=p=>n(x=>{let I=rW(o,p,x);return l({start:I.selectionStart,end:I.selectionEnd}),I}),d=MC(),f={};if(s)for(let p of d)f[p.style]=GC(o,s.start,s.end,p.style);let u=r?null:OT(o,s);return X3(tW,{offered:new Set(d.map(p=>p.style)),onMark:p=>c(p),pressed:f,disabled:r,"aria-label":i(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,x=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,I=OT(o,x)??{text:o,selectionStart:x?.start??0,selectionEnd:x?.end??0};return l({start:I.selectionStart,end:I.selectionEnd}),I})}:void 0})}var Sx=nW;import{deviceField as Xt}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as qU,NoControlMark as YU,noControlField as j0}from"efficient-easel/screen/lib/document/panel-no-control-mark";var wx="__ownBox";function _T(e){return!!e&&typeof e=="object"&&e[wx]===!0}var Cx="sfPanelOnly";function jn(e){return!!e&&typeof e=="object"&&e[Cx]===!0}function _d(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var Ad=void 0;import{phoneKey as xr,tabletKey as Qn}from"efficient-easel/draw";import{jsx as vx,Fragment as iW}from"react/jsx-runtime";import{createContext as cW,useContext as dW}from"react";var Rd={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Ld={Events:["posts"],SubscribeBlogs:["posts"]};var sW=["anchor"],lW=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Tl(e){return sW.includes(e)||lW.test(e)}var kx={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:[]}},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"}}};kx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var Vxe=Object.fromEntries(Object.entries(Rd).map(([e,o])=>[e,Object.keys(o)])),qxe=Object.fromEntries(Object.entries(Ld).map(([e,o])=>[e,[...o]]));import{NoControlMark as fW}from"efficient-easel/screen/lib/document/panel-no-control-mark";var AT=cW(!1);function RT({children:e}){return vx(AT.Provider,{value:!0,children:e})}function pW(){return dW(AT)}function LT({name:e,children:o}){return!pW()||!e||!uW(e)||Tl(e)?vx(iW,{children:o}):vx(fW,{})}function uW(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var Tx="off",BT="none",Px=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],DT=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function tIe(e){return Ho(Px,Tx,e)}var FT="sf-card-index",Pl="sf-card-index",rIe="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",mW={plain:`counter(${Pl})`,padded:`counter(${Pl}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Pl}, decimal-leading-zero)`};function aIe(e,o){return o==="off"?"":`.${e}{counter-reset:${Pl}}.${e} .${FT}{counter-increment:${Pl}}.${e} .${FT}::before{content:${mW[o]}}`}function nIe(e){return e==="hairline"?"border border-line hover:border-accent":""}var NT=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as XU}from"efficient-easel/draw";import{jsx as jo}from"react/jsx-runtime";import{SettingsDefaultReset as wW,SettingsField as Ex}from"efficient-easel/panel";import{useSelectedHost as CW}from"efficient-easel/easel";import{FOCAL_DEFAULT as kW}from"efficient-shell/format";import{ImageIcon as Ox,PlayIcon as HT}from"efficient-easel/icons";import{ImageFocusPoint as vW,MediaUploadField as TW}from"efficient-shell/ui";import{useContext as PW}from"react";import{ScreenDocumentContext as EW}from"efficient-easel/screen/components/ScreenDocumentContext";import{phoneKey as OW,tabletKey as WT}from"efficient-easel/draw";import{usePreviewDevice as _W}from"efficient-easel/draw/client";import{formatFocal as hW,parseFocal as xW}from"efficient-shell/format";var IW="sf-focus-phone",gW="--sf-focus-phone",bW="sf-focus-tablet",yW="--sf-focus-tablet",El=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=xW(e);return hW(o,t)};function MT(e,o){return Ta(SW,null,El(o),El(e))}var SW={tabletClass:bW,tabletVar:yW,phoneClass:IW,phoneVar:gW};import{shownTier as _x}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as AW}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as RW}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as LW}from"efficient-easel/screen/lib/host";import{useEaselSession as FW}from"efficient-easel/screen/lib/session-context";function BW(e,o,t,r=!0){let a=_x(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):kW;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=a==="tablet"?WT(o):OW(o),l=El(e[s])??void 0,c=a==="mobile"&&r?El(e[WT(o)])??void 0:void 0,d=c??n;return{ownView:!0,followed:d,followsView:c?"tablet":"desktop",own:l,focus:l??d,key:s}}function DW(e,o,t){let r=CW();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,_x(e)))return null;let n=BW(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,Ad)}}function GT({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:c}){let d=LW(),f=FW(),u=i(t),p=_W(),x=r.startsWith("video"),I=DW(p,x?void 0:n,s),g=!!n&&_x(p)!=="desktop",k=PW(EW),S=Ol(),C=l&&c?{video:c,frame:l}:null,b=P=>RW(d,{accept:r,title:u,...P?{file:P}:{}}).then(D=>!D||!C?D?.url??null:(S({[C.video]:D.url,[C.frame]:D.posterUrl??""}),null)),v=C?P=>P?o(P):S({[C.video]:"",[C.frame]:""}):o,T=Fo(e);if(g&&(!I||!T))return null;if(k&&!k.capabilities.mediaEditing)return jo(Ex,{label:u,icon:x?jo(HT,{}):jo(Ox,{}),children:jo("div",{className:"sf-image-slot-inert",children:x?i("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):i("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let F=I?.ownView&&T?jo(wW,{words:ae()?.panel,label:i("Image focus"),changed:!!I.own,detail:AW(P=>i(P),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?jo(Ex,{label:u,icon:jo(Ox,{}),action:F,children:jo("div",{style:{flex:"1 1 auto",minWidth:0},children:jo(vW,{value:I.focus,onChange:I.set,label:i("Image focus"),image:T,hint:null})})}):jo(Ex,{label:u,icon:x?jo(HT,{}):jo(Ox,{}),children:jo("div",{style:{flex:"1 1 auto",minWidth:0},children:jo(TW,{value:T,onChange:v,onPick:b,accept:x?"video/*":"image/*",kind:x?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:Ue(f).media.maxUploadBytes,...I?{focus:I.focus,onFocusChange:I.set}:{}})})})}import{jsx as zT}from"react/jsx-runtime";import{useId as NW}from"react";import{FieldSelect as MW}from"efficient-easel/fields";import{SettingsField as HW}from"efficient-easel/panel";function WW(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function $T({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=NW(),c=`${l}-label`,d=`${l}-button`,f=Array.isArray(t)?t:[];return zT(HW,{label:i(e),labelId:c,icon:n,hint:s,children:zT(MW,{id:d,multiple:!0,value:f,options:WW(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${c} ${d}`,inline:!0})})}import{jsx as ao,jsxs as Ea,Fragment as hG}from"react/jsx-runtime";import{useCallback as tP,useContext as xG,useId as nP,useRef as rP,useState as aP}from"react";import{ThemeIcon as IG}from"efficient-easel/icons";import{Button as gG,useClickOutside as bG}from"efficient-shell/ui";import{SettingsField as yG}from"efficient-easel/panel";import{ScreenDocumentContext as SG}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as jr,Fragment as YW}from"react/jsx-runtime";import{parseHexColor as XW}from"efficient-shell/format";import{Button as Rx,IconButton as ZW,Tooltip as JW}from"efficient-shell/ui";import{jsx as Ur,jsxs as GW}from"react/jsx-runtime";import{AccentIcon as zW}from"efficient-easel/icons";import{Button as $W,Tooltip as UW}from"efficient-shell/ui";function Ax(e){return Wo(e).background}function jW(e){let o=_r(e.accent,Ax(e));return o===null?null:{ratio:o,grade:En(o)}}function KW(e){let o=Ax(e),t=_r(e.accent,o);return t===null?[]:gw(e.accent).filter(r=>{let a=_r(r,o);return a!==null&&a>t&&En(a)==="good"})}var VW={good:"Easy to read","large-only":Pn["large-only"],hard:Pn.hard};function UT({value:e,onChange:o}){let t=jW(e),r=t?.grade,a=t&&t.grade!=="good"?KW(e):[];return Ur(Uo,{label:i("Main color"),icon:Ur(zW,{}),hint:t?i(VW[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?Ur("div",{className:"w-full min-w-0",children:GW("div",{className:"sf-readability",children:[Ur("p",{className:"sf-readability-advice",children:qW(r,!0)}),Ur("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=_r(n,Ax(e));return Ur(UW,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:Ur($W,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:Ur("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),onClick:()=>o({...e,accent:n}),children:s?`${s.toFixed(1)}:1`:n.toUpperCase()})},n)})})]})}):null})}function qW(e,o){return e?e==="good"?i("This color reads clearly on your pages."):o?i("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):i("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."):i("Pick a color to see how it reads.")}import{ButtonIcon as QW,ChevronDownIcon as KT,ChevronUpIcon as eG,GroundIcon as oG,LayoutIcon as tG,SquareIcon as rG,TextSmallIcon as aG,TypeIcon as jT}from"efficient-easel/icons";var _l=e=>i("Theme {n}",{n:e+1});function VT({colors:e}){let o=Wo(e),t=Qs(e)??o.accent;return jr("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[fe("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:i("label")}),jr("span",{className:"sf-theme-headline",children:[i("Heading")," ",fe("span",{style:{color:o.accent},children:i("main")})]}),fe("span",{className:"sf-theme-body",children:i("body text")}),jr("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:Lm(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var Lx={"Text color":fe(jT,{}),"Label color":fe(aG,{}),Background:fe(oG,{}),"Panels & cards":fe(tG,{}),Borders:fe(rG,{}),"Button color":fe(QW,{}),"Button text color":fe(jT,{})};function nG({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(Uo,{label:i(e),icon:Lx[e],id:n,value:t,onChange:s=>r(o,s)})}function sG({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&XW(e)===e.toLowerCase(),s=n?e:o;return fe(Uo,{label:i("Button color"),icon:Lx["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function lG({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=bw(e),s=Lm(e,o),l=Qs(e)??o,c=En(_r(s,l)??0);return fe(Uo,{label:i("Button text color"),icon:Lx["Button text color"],hint:n&&c!=="good"?i("{grade} on the button",{grade:i(Pn[c])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var iG=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{moduleBreak:!0},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function Fx({colors:e,onChange:o,idPrefix:t}){let r=Wo(e);return fe(YW,{children:iG.map(a=>"colour"in a?fe(UT,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(sG,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(lG,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(nG,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function Fd({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:c}){let d=Wo(o),f=_l(e),u=e<Rm.length&&!o.brandInk?Rm[e]:null,p=En(_r(d.text,d.background)??0),x=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return jr("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[fe("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":f,className:"sf-theme-pick",onClick:s,children:fe(VT,{colors:o})}),jr("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(Pn[p])}),n&&l&&I&&fe("span",{className:"sf-theme-edit",children:fe(JW,{content:a?i("Collapse"):i("Edit colors"),children:fe(ZW,{size:"sm","aria-expanded":a,"aria-controls":`sf-theme-colours-${e}`,"aria-label":a?i("Collapse {name}",{name:f}):i("Edit colors for {name}",{name:f}),onClick:l,children:a?fe(eG,{size:14}):fe(KT,{size:14})})})}),n&&l&&!I&&fe(Rx,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&jr("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(Fx,{colors:o,onChange:g=>c?.(g)}),u&&fe(Rx,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!x,onClick:()=>c?.({...u}),children:x?i("Reset {name} to the preset",{name:f}):i("Not changed")})]})]})}function qT({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:c,onEdit:d}){return jr("div",{className:"sf-secttheme-btn",children:[fe("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:l,onKeyDown:c,children:e?fe(VT,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),jr("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),d&&fe(Rx,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:o}),onClick:d,children:i("Edit")}),fe("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:l,children:fe(KT,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as Wx,useEffect as QT,useRef as Md}from"react";import{currentEaselSession as fG}from"efficient-easel/screen/lib/session";import{useEaselSession as pG}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as cG}from"react";var XT,Bx=null,Pa=null,Bd=0,Dx=new Set;function Nx(e){XT=e;for(let o of Dx)o()}function Mx(e){Bx=e,Bd+=1,Pa&&clearTimeout(Pa),Pa=null,Nx(void 0)}function Dd(e){Bd+=1,Nx(e)}function fr(e=250){Bx&&(Pa&&clearTimeout(Pa),Pa=setTimeout(()=>{Pa=null;let o=Bx;if(!o)return;let t=++Bd;o().then(r=>{t===Bd&&Nx(r)}).catch(()=>{})},e))}function YT(){return XT}function dG(e){return Dx.add(e),()=>{Dx.delete(e)}}function Nd(){return cG(dG,YT,YT)}var Hx=new Set;function ZT(e){return Hx.add(e),()=>{Hx.delete(e)}}async function JT(){let e=(await Promise.allSettled([...Hx].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as uG}from"efficient-easel/screen/lib/backend-error";function eP(e=fG()){return(o,t,r)=>{let a=Ue(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new uG("invalid","This backend stores no site theme."))}}function oP(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function mG(e,o=eP()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=oP({themeFromDocument:t,token:r});if(s)return s;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,r,a??void 0),{status:"saved"}}catch(l){return{status:"failed",error:l}}}function Kn({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=Md(null),n=Md({}),s=pG(),l=Md(r);l.current=r;let c=Md(null),d=Wx(p=>{if(p.status==="skipped"){let x=`skipped:${p.reason}`;if(c.current===x)return;c.current=x}else c.current=null;l.current?.(p)},[]),f=Wx(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let x=await mG({themeFromDocument:e,token:o?.current,siteId:t,patch:p},eP(s));return d(x),x.status==="saved"&&fr(),x.status==="failed"&&(n.current={...p,...n.current}),x},[e,o,t,d,s]),u=Wx((p,x=!1)=>{let I=oP({themeFromDocument:e,token:o?.current});if(I){d(I);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),x?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,d]);return QT(()=>()=>{f()},[f]),QT(()=>ZT(async()=>{if(!a.current&&Object.keys(n.current).length===0)return;let p=await f();if(p.status==="failed")throw p.error}),[f]),{persist:u,flush:f}}var wG="Follow the page",kge="Follow the slideshow",CG=e=>i("Editing {name} changes it everywhere.",{name:e});function kG({colors:e}){if(!e)return ao("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Wo(e);return Ea("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[ao("i",{style:{background:o.background}}),ao("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function vG({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Ea("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Ea(hG,{children:[Ea("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Ht),children:[ao(kG,{}),ao("span",{className:"sf-secttheme-name",children:i(n)})]}),ao("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&ao("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:_l(o)})}),e.map((s,l)=>l===o?null:ao(Fd,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function TG({index:e,colors:o,onChange:t,onDone:r}){let a=_l(e),n=nP();return Ea("div",{className:"sf-secttheme-sheet",children:[Ea("div",{className:"sf-secttheme-sheet-head",children:[ao("span",{children:a}),ao(gG,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),ao("div",{className:"sf-secttheme-rows",children:ao(Fx,{colors:o,onChange:t,idPrefix:n})}),ao("p",{className:"sf-secttheme-warn",children:CG(a)})]})}function sP({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=xe(),s=ro(a),l=xG(SG),c=l?.tokenRef,d=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=Kn({themeFromDocument:f,tokenRef:c,siteId:d}),x=ro(s),I=x.themes,g=Wt(e),k=g!==null?I[g]:void 0,S=k??(I.length?Tn(x):void 0),[C,b]=aP(!1),[v,T]=aP(null),F=rP(null),P=rP(null),D=nP(),O=tP(()=>{b(!1),T(null)},[]),R=tP(()=>{!C&&v===null||(p(),O())},[C,v,O,p]);bG(F,R);let N=A=>{o(A),O()},y=A=>{if(v===null)return;let L=I.map((X,q)=>q===v?A:X),H={...x,themes:L};n(H),u({selected_preset:H.selected,theme_presets:H.themes})};return Ea("div",{className:"sf-secttheme",ref:F,children:[ao(yG,{label:i("Theme"),icon:ao(IG,{}),labelId:`${D}-label`,hint:r,children:ao(qT,{colors:S,onEdit:g!==null?()=>{T(g),b(!1)}:void 0,name:k?_l(g):i(t??wG),nameId:`${D}-value`,labelId:`${D}-label`,open:C,menuId:D,buttonRef:P,onClick:()=>{T(null),b(A=>!A)},onKeyDown:A=>{A.key==="Escape"&&(C||v!==null)&&(A.preventDefault(),O())}})}),C&&v===null&&ao("div",{onKeyDown:A=>{A.key==="Escape"&&(A.preventDefault(),O(),P.current?.focus())},children:ao(vG,{themes:I,value:g,onPick:N,onEdit:A=>{T(A),b(!1)},menuId:D,followLabel:t})}),v!==null&&I[v]&&ao(TG,{index:v,colors:I[v],onChange:y,onDone:()=>{p(),O(),P.current?.focus()}})]})}import{jsx as lP}from"react/jsx-runtime";import{useId as PG}from"react";import{FieldSelect as EG}from"efficient-easel/fields";import{SettingsField as OG}from"efficient-easel/panel";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 Age({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let c=PG(),d=`${c}-label`,f=`${c}-button`,u=r??"",p=o.some(k=>k.value===u)?u:t,x=i(e),I=n===void 0?void 0:i(n),g=lP(EG,{id:f,value:p,options:_G(o),onChange:a,placeholder:I,searchPlaceholder:I,...s?{ariaLabel:x}:{ariaLabelledBy:`${d} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?g:lP(OG,{label:x,labelId:d,icon:l,children:g})}import{jsx as _a,jsxs as cz}from"react/jsx-runtime";import{SettingsField as _P}from"efficient-easel/panel";import{LinkIcon as dz}from"efficient-easel/icons";import{LinkPicker as fz,TextLinkField as pz}from"efficient-shell/ui";import{useEffect as OP,useMemo as $d,useRef as uz,useState as zd}from"react";import{currentEaselSession as AG}from"efficient-easel/screen/lib/session";function iP(){return AG().auth.token}import{currentEaselSession as mz}from"efficient-easel/screen/lib/session";import{useScreenDocument as hz}from"efficient-easel/screen/components/ScreenDocumentContext";var RG=()=>({choosePage:i("Choose a page"),chooseSection:i("Choose a section"),noSections:i("No section anchors yet"),sectionHint:i("Jumps to a section on that page."),choosePost:i("Choose a post"),chooseProduct:i("Choose a product"),choosePopup:i("Choose a popup")});function cP(e,o,t){if(!e)return"page";if(Yv(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(Jv(e))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||o.includes(r))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function Gx(e,o){let t=RG(),r=e.pages.map(f=>({value:Cl(f.slug),label:f.title})),a=o?.pageOptions?o.pageOptions(r):r,n=a.map(f=>f.value),s=e.pages.map(f=>({label:f.title,options:Zv(...f.docs).map(u=>({value:yd(f.slug,u.slug),label:u.name}))})).filter(f=>f.options.length>0),l=f=>{switch(f){case"page":return{type:"select",options:a,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:s,placeholder:s.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(u=>({value:Xv(u.slug),label:u.title||u.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(u=>({value:u.href,label:u.name||u.href})),placeholder:t.chooseProduct};case"popup":return{type:"select",options:(e.popups??[]).map(u=>({value:qv(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},c=Vv(e.offers).map(f=>({value:f.value,label:i(f.label),target:l(f.value),...f.value==="anchor"?{hint:t.sectionHint}:{},...f.value==="blog"||f.value==="product"||f.value==="popup"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:c,rules:{kindOf:f=>cP(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let d=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:c,rules:{kindOf:f=>cP(f,n,{listingPaths:o.listingPaths,targetOf:d}),targetOf:d,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as xz}from"efficient-easel/screen/lib/session-context";function mo(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return Z(t)??o}return o}function dP(e,o){return U(e)??o}function pr(e,o){return typeof e=="boolean"?e:o}function Hd(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:mo(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var pP=["delay","scroll","exit"],uP=["all","chosen","except"],mP=["visit","days","never","once"],LG=["all","desktop","phone"],FG=["stop","continue"],hP={min:0,max:60},xP={min:10,max:90},IP={min:1,max:90},wt={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function Jo(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Vn(e,o,t){let r=dP(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function BG(e){return typeof e.hideAfter=="string"?Jo(mP,e.hideAfter,wt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":wt.hideAfter}function DG(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function fP(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function gP(e){let o=e??{},t=wt;return{autoOpen:pr(o.autoOpen,t.autoOpen),trigger:Jo(pP,o.trigger,t.trigger),autoOpenDelaySec:Vn(o.autoOpenDelaySec,hP,t.autoOpenDelaySec),scrollPercent:Vn(o.scrollPercent,xP,t.scrollPercent),showOn:Jo(uP,o.showOn,t.showOn),showOnPages:DG(o.showOnPages),devices:Jo(LG,o.devices,t.devices),hideAfter:BG(o),hideDays:Vn(o.hideDays,IP,t.hideDays),afterSubmit:Jo(FG,o.afterSubmit,t.afterSubmit),startDate:fP(o.startDate),endDate:fP(o.endDate)}}import{parseHexColor as NG}from"efficient-shell/format";var Ct="#000000";var zx="popup",MG=Mw,HG=["auto","full"],WG=["inside","outside","none"],GG={min:240,max:1440},zG={min:0,max:100},Al={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Ct,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function $G(e,o){let t=typeof e=="string"?e.trim():"";return t&&NG(t)===t.toLowerCase()?t:o}function $x(e,o=Al){let t=e??{},r=o;return{placement:Jo(MG,t.placement,r.placement),fullWidth:pr(t.fullWidth,r.fullWidth),width:Vn(t.width,GG,r.width),height:Jo(HG,t.height,r.height),tintColor:$G(t.tintColor,r.tintColor),tintOpacity:Vn(t.tintOpacity,zG,r.tintOpacity),outsideClick:pr(t.outsideClick,r.outsideClick),closeButton:Jo(WG,t.closeButton,r.closeButton)}}var bP="cart-drawer",Qge="cart-drawer",UG={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 ebe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function obe(e){let o=e??{},t=UG;return{kickerBadge:mo(o.kickerBadge,t.kickerBadge),kickerText:mo(o.kickerText,t.kickerText),titleLead:mo(o.titleLead,t.titleLead),titleAccent:mo(o.titleAccent,t.titleAccent),subtitleEmpty:mo(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:mo(o.subtitleOne,t.subtitleOne),subtitleMany:mo(o.subtitleMany,t.subtitleMany),leadTimeValue:mo(o.leadTimeValue,t.leadTimeValue),shipsToFallback:mo(o.shipsToFallback,t.shipsToFallback),promises:Hd(o.promises,t.promises),emptyKicker:mo(o.emptyKicker,t.emptyKicker),emptyBody:mo(o.emptyBody,t.emptyBody)}}var jG=["right","left"],KG={...Al,width:520,tintOpacity:68};function tbe(e){let o=e??{};return{...$x(o,KG),placement:Jo(jG,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:pr(o.autoOpen,!0)}}var SP="consent-banner",sbe="consent-banner";var VG=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],lbe="Layout",yP={layout:"bar"},qG=e=>VG.some(o=>o.value===e);function ibe(e){let o=mo((e??{}).layout,yP.layout);return{layout:qG(o)?o:yP.layout}}var cbe={...Al,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var YG="consentWords",XG=["eyebrow","notice","accept","reject","choose"];function Ux(e){let o=(e??{})[YG];return typeof o=="string"&&XG.includes(o)?o:null}function jx(e){let o=e?.props;return o?Ux(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&jx(r))):!1}var ZG=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],pbe={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"},JG={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"},ube={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 wP(e){let o={};for(let t of ZG){let r=ar(e[JG[t]]);r&&(o[t]=r)}return o}var CP={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},QG={lead:"We accept"},Gd={...QG,methods:[],size:"sm",align:"start",dataSource:yC},kt="site-footer";var xbe=kt,Ibe={desktop:!0,tablet:!0,mobile:!0},gbe={desktop:!1,tablet:!1,mobile:!1},Kx=1,kP=6,bbe=Array.from({length:kP-Kx+1},(e,o)=>Kx+o),Wd={desktop:6,tablet:3,mobile:2},ez={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}},Oa=e=>Math.min(Math.max(Math.round(e),Kx),kP);function ybe(e){if(typeof e=="number")return ez[Oa(e)]??{desktop:Oa(e),tablet:Oa(e),mobile:Oa(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Oa(o.desktop??Wd.desktop),tablet:Oa(o.tablet??Wd.tablet),mobile:Oa(o.mobile??Wd.mobile)}}return{...Wd}}var Vx="subscribe-popup",Ebe="subscribe-popup",oz=[Vx,kt,bP,SP];function TP(e){return oz.includes(e)}var tz=["right","left"],rz={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
|
|
59
|
+
*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:wt.autoOpen,autoOpenDelaySec:wt.autoOpenDelaySec,formSlug:"",trigger:wt.trigger,scrollPercent:wt.scrollPercent,showOn:wt.showOn,showOnPages:[],hideAfter:wt.hideAfter,hideDays:wt.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},je=mo,az=pr,PP=Hd;function vP(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 nz(e,o){return Array.isArray(e)?PP(e,[]):o}function sz(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:je(r.label,""),value:je(r.value,"")}}).filter(t=>t.label||t.value):o}function _be(e){let o=e??{},t=rz,r=gP(o);return{metaLabel:je(o.metaLabel,t.metaLabel),issueLabel:vP(o.issueLabel,t.issueLabel),issueNumber:vP(o.issueNumber,t.issueNumber),kicker:je(o.kicker,t.kicker),heading:je(o.heading,t.heading),deck:je(o.deck,t.deck),stats:sz(o.stats,t.stats),formLabel:je(o.formLabel,t.formLabel),formHeading:je(o.formHeading,t.formHeading),formIntro:je(o.formIntro,t.formIntro),firstNameLabel:je(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:je(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:je(o.emailLabel,t.emailLabel),emailPlaceholder:je(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:je(o.interestsLabel,t.interestsLabel),interests:PP(o.interests,t.interests),frequencyLabel:je(o.frequencyLabel,t.frequencyLabel),frequencies:nz(o.frequencies,t.frequencies),submitText:je(o.submitText,t.submitText),finePrint:je(o.finePrint,t.finePrint),dismissText:je(o.dismissText,t.dismissText),emailInvalidText:je(o.emailInvalidText,t.emailInvalidText),submitErrorText:je(o.submitErrorText,t.submitErrorText),successHeading:je(o.successHeading,t.successHeading),successBody:je(o.successBody,t.successBody),keepBrowsingText:je(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:Jo(tz,o.formSide,t.formSide),valuePanelOnPhone:az(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:wP(o)}}function lz(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function iz(e){return{root:{props:{title:e,kind:zx}},content:[],zones:{}}}function EP(e,o,t){return{slug:lz(o,t),title:e,kind:tx,layout:iz(e)}}function Rl(e){return e?.root?.props?.kind===zx}function AP(e){let o=new Map;return(t="")=>{let r=iP(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!mz().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var Iz=AP(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ue();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),gz=AP(async(e,o)=>await Ue().blog?.posts(o?{siteId:o}:void 0)??[]);function bz({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=$d(()=>Gx(r,a),[r,a]),s=i(t);return _a(_P,{label:s,icon:_a(dz,{}),children:_a(fz,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function RP(){let{siteId:e,capabilities:o}=hz(),{offersCommerce:t,hasBlog:r}=o,[a,n]=zd([]),[s,l]=zd([]),[c,d]=zd([]),[f,u]=zd(null),p=xz().chrome,x=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,k=uz(!0);OP(()=>(k.current=!0,()=>{k.current=!1}),[]),OP(()=>{let b=!0;return Iz(e??void 0).then(v=>b&&k.current&&n(v)),r&&gz(e??void 0).then(v=>b&&k.current&&l(v)),t&&x?.().then(v=>b&&k.current&&d(v)),t&&I?I.load(e).catch(()=>null).then(v=>b&&k.current&&u(()=>v)):u(null),()=>{b=!1}},[e,t,r,x,I]);let S=$d(()=>({pages:a.filter(b=>!TP(b.slug)&&!Rl(b.layout)).map(b=>({slug:b.slug,title:b.label,docs:[b.layout]})),popups:a.filter(b=>b.slug===Vx||Rl(b.layout)).map(b=>({slug:b.slug,title:b.label})),posts:r?s.map(b=>({slug:b.slug,title:b.title})):[],products:t?c.map(b=>({href:b.href,name:b.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,c,t,r]),C=$d(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:C,pages:a,offersCommerce:t,HostLinkRow:g}}function Xbe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=RP(),c=$d(()=>Gx(s,l),[s,l]),d=i(e);return _a(_P,{label:d,icon:o,children:_a(pz,{label:d,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:c.kinds,rules:c.rules,filtersFor:c.filtersFor})})}function LP({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:c}=RP(),d=a.pages.map(u=>Cl(u.slug)),f=l&&c&&(r==="/"||d.includes(r))?c:void 0;return cz("div",{children:[_a(bz,{value:r,onChange:o,label:t,data:a,filters:n}),f&&_a(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as v0}from"efficient-easel/draw/client";import{phoneKey as Ll,resolveViewValue as yz,tabletKey as Fl}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as Sz,convertLength as wz,isLengthUnit as BP,sideLengthAt as Cz,withLength as qx}from"efficient-easel/screen/lib/content/length-units";var rt={min:10,max:200,step:10};function kz(e,o,t,r=0){let a=U(e),n=U(o);if(a===void 0&&n===void 0)return;let s=Ud(t),l=c=>c===void 0?void 0:s==="px"?c:qx(c,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var Ud=e=>BP(e)?e:"px",vz="sf-pad-top-phone",Tz="sf-pad-bottom-phone",Pz="--sf-pad-t-phone",Ez="--sf-pad-b-phone",Oz="sf-pad-left-phone",_z="sf-pad-right-phone",Az="--sf-pad-l-phone",Rz="--sf-pad-r-phone",Lz="sf-pad-top-tablet",Fz="sf-pad-bottom-tablet",Bz="sf-pad-left-tablet",Dz="sf-pad-right-tablet",Nz="--sf-pad-t-tablet",Mz="--sf-pad-b-tablet",Hz="--sf-pad-l-tablet",Wz="--sf-pad-r-tablet";function Kd(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=kz(e.top,e.bottom,e.unit,e.frame),r=Yx({left:e.left,right:e.right},{top:e.topPhone,bottom:e.bottomPhone,left:e.leftPhone,right:e.rightPhone},{top:e.topTablet,bottom:e.bottomTablet,left:e.leftTablet,right:e.rightTablet},{top:e.top,bottom:e.bottom,left:e.left,right:e.right},o,e.frame);return t===void 0&&!r.classes.length&&!Object.keys(r.style).length?null:{className:["sf-section-pad",...r.classes].join(" "),style:{...t,...r.style}}}var Gz=[["top","paddingTop",[Lz,Nz],[vz,Pz]],["bottom","paddingBottom",[Fz,Mz],[Tz,Ez]],["left","paddingLeft",[Bz,Hz],[Oz,Az]],["right","paddingRight",[Dz,Wz],[_z,Rz]]];function tye(e,o,t){return!BP(o)||o==="px"?e:wz(e,"px",o,t,{min:0,max:rt.max,step:1})}function zz(e,o,t,r={},a=0){let n=(x,I)=>{if(I==="px")return`${x}px`;let g=qx(x,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[Fl("n")]:o,[Ll("n")]:t,u:r.desktop,[Fl("u")]:r.tablet,[Ll("u")]:r.phone},l=yz("spacing",e,o,t,vn()),c=(x,I,g)=>{let k=Cz(s,{side:"n"},"u",x,"side");if(!k)return;let S=I!==null&&!g&&k.unit==="px"&&typeof l[I]=="number";return n(S?l[I]:k.value,k.unit)},d=c("desktop",null,!0),f={},u=c("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==d)&&(f.tablet=u);let p=c("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==d)&&(f.phone=p),f}function Yx(e,o,t={},r=e,a={},n=0){let s={},l={},c=[];for(let[d,f,...u]of Gz){let p=U(e[d]),x=d==="top"||d==="bottom"?n:0;p!==void 0&&(s[f]=Ud(a.desktop)==="px"?p:qx(p,Ud(a.desktop),x));let I=zz(U(r[d]),U(t[d]),U(o[d]),a,x);for(let[g,[k,S]]of[["tablet",u[0]],["phone",u[1]]]){let C=I[g];C!==void 0&&(c.push(k),l[S]=C)}}return{classes:c,style:{...s,...l}}}function FP(e,o,t){let r=U(e)??t,a=U(o);return r===void 0?a:a===void 0?r:r+a}function Vd(e,o={}){return{top:FP(e.padTop,e.sectionPaddingTop,o.top),bottom:FP(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var jd={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function DP(e,o=jd,t=!0,r=o===jd?Sz:void 0){let a={};r&&(e[r]!==void 0&&(a.unit=e[r]),e[Fl(r)]!==void 0&&(a.unitTablet=e[Fl(r)]),e[Ll(r)]!==void 0&&(a.unitPhone=e[Ll(r)]));for(let n of t?["top","bottom","left","right"]:["top","bottom"])a[n]=e[o[n]],a[`${n}Tablet`]=e[Fl(o[n])],a[`${n}Phone`]=e[Ll(o[n])];return a}function rye(e){return Kd(e)}function aye(e,o){let t=(r,a)=>typeof r!="number"?void 0:Ud(a)==="px"?r+o:r;return Kd({...e,frame:o,top:t(e.top,e.unit),bottom:t(e.bottom,e.unit),topTablet:t(e.topTablet,e.unitTablet),bottomTablet:t(e.bottomTablet,e.unitTablet),topPhone:t(e.topPhone,e.unitPhone),bottomPhone:t(e.bottomPhone,e.unitPhone)})}import{BUTTON_PAD_KEYS as qd,buttonBorderOf as $z,buttonFillOpacityOf as Uz,buttonPadSidesOf as jz}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as Xx}from"efficient-easel/screen/lib/content/length-units";var Kz="px-6 py-4",Vz=4,Yd=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(Kz);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*Vz},pye={top:Yd("y"),right:Yd("x"),bottom:Yd("y"),left:Yd("x")},MP="var(--btn)";function qz(e){let o=e.variant==="ghost",t=Uz(e.buttonFillOpacity),r=$z(e.buttonBorder),a=Z(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":MP)},changed:t!==void 0||r!==void 0}}function uye(e){let o=qz(e);if(!o.changed)return null;let t=Z(e.buttonColor)??MP;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:o.border.width,borderStyle:"solid",borderColor:o.border.color}}var Yz="var(--sf-button-radius, 0)";function mye(e){let o=U(e.buttonCorners),t=jt(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?Yz:`${Math.max(0,o)}px`;return{borderRadius:t===null?r:wa(r,t)}}function hye(e){let o=n=>jz({top:e[`${qd.top}${n}`],right:e[`${qd.right}${n}`],bottom:e[`${qd.bottom}${n}`],left:e[`${qd.left}${n}`]})??{},t={desktop:e[Xx],tablet:e[`${Xx}Tablet`],phone:e[`${Xx}Phone`]},{classes:r,style:a}=Yx(o(""),o("Phone"),o("Tablet"),void 0,t);return Object.keys(a).length?{className:r.join(" "),style:a}:null}var NP="upper";function HP(e,o,t){let r=e&&typeof e=="object"?e:{},a=Z(r.textStyle),n=a?Z(o?.find(f=>f?.id===a)?.name):void 0,s=a?/^(heading|body)-(\d+)$/.exec(a):null,l=a?n||(s?t.styleName({kind:s[1],n:Number(s[2])}):a):t.noStyle,{cases:c}=t,d=Z(r.case)??NP;return`${l} \xB7 ${c[d]??c[NP]}`}import{usePreviewParts as ZU}from"efficient-easel/draw/client";import{encodePartId as JU}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as QU,useEaselStrings as ej}from"efficient-easel/strings";import{pinAttrs as WP,readPin as Qx}from"efficient-shell/format";var yye="Stick to top",Kr={min:0,max:200,step:4,fallback:0},eI="Pin while scrolling",GP="Scroll",ur={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",header:"--sf-pin-header"},Bl="stickTopScreens",zP=[Bl,"stickTopScreensTablet","stickTopScreensPhone"],oI="Screens",Sye=new Set(["IntroBleed"]),wye=new Set(["CategoryBar","DocTabs","Contents"]);function Xz(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var Zx=e=>Qx(!0,e).length,$P={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function Jx(e){let o=U(e)??Kr.fallback;return Math.min(Kr.max,Math.max(Kr.min,Math.round(o)))}function tI(e){return typeof e.stickTopTablet=="boolean"}function rI(e){return typeof e.stickTopPhone=="boolean"}function Dl(e,o={}){let t=o.intro?Xz(e):e.stickTop===!0,r=Jx(e.stickTopDistance),a=Zx(e.stickTopScreens),n=tI(e),s=n?e.stickTopTablet===!0:t,l=n?Jx(e.stickTopDistanceTablet):r,c=n?Zx(e.stickTopScreensTablet):a,d=rI(e),f=d?e.stickTopPhone===!0:s,u=d?Jx(e.stickTopDistancePhone):l,p=d?Zx(e.stickTopScreensPhone):c;return{desktop:t,desktopDistance:r,desktopScreens:a,tablet:s,tabletDistance:l,tabletScreens:c,ownTablet:n,phone:f,phoneDistance:u,phoneScreens:p,ownPhone:d}}function Cye(e,o={}){let t=Dl(e,{intro:o.atScreenTop});if(!t.desktop&&!t.tablet&&!t.phone)return null;let r=o.atScreenTop===!0&&typeof e.stickTop!="boolean",a=t.desktop&&t.desktopScreens>0||t.tablet&&t.tabletScreens>0||t.phone&&t.phoneScreens>0,n=o.track===!0&&!r&&a,s=(f,u,p,x)=>Ta({tabletClass:"",tabletVar:`${f}-tablet`,phoneClass:"",phoneVar:`${f}-phone`},u,p,x).style,l={...o.atScreenTop?{[ur.header]:"0px"}:{},[ur.distance]:`${t.desktopDistance}px`,...s(ur.distance,`${t.desktopDistance}px`,`${t.tabletDistance}px`,`${t.phoneDistance}px`)};if(n){let f=p=>p?"1":"0",u={...l,...t.desktop?{}:{[ur.on]:"0"},...s(ur.on,f(t.desktop),f(t.tablet),f(t.phone)),[ur.length]:String(t.desktopScreens),...s(ur.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens))};return{attrs:WP(Qx(!0),"track").attrs,style:u}}let c=f=>f?"sticky":"static",d={...l,...t.desktop?{}:{[ur.position]:"static"},...s(ur.position,c(t.desktop),c(t.tablet),c(t.phone))};return{attrs:WP(Qx(!0),"stick").attrs,style:d}}var Zz=["column","row","tabs","accordion"];var Jz={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},UP={Flex:Zz,HeroGroup:["column","row"]},Qz={Flex:"row",HeroGroup:"column"},e$={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function qn(e,o){return UP[e].includes(o)?o:Qz[e]}function vye(e,o){return e$[qn(e,o)]}function jP(e){return UP[e].map(o=>({label:Jz[o],value:o}))}var o$=["solid","dashed","dotted"],VP=["top","right","bottom","left"],Pye="sf-section-border",Eye="sf-section-border-self",t$=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,KP=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(20,Math.max(0,Math.round(e)))}px`:void 0;function Yn(e,{phone:o=!1,tablet:t=!1}={}){if(!e||typeof e!="object")return;let r=o?"-phone":t?"-tablet":"",a={};for(let n of VP){let s=KP(e[n])??KP(e.width);s!==void 0&&(a[`--sf-border-${n}-width${r}`]=s)}return typeof e.style=="string"&&o$.includes(e.style)&&(a[`--sf-border-style${r}`]=e.style),typeof e.color=="string"&&t$.test(e.color)&&(a[`--sf-border-color${r}`]=e.color.toLowerCase()),Object.keys(a).length?a:void 0}function aI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(VP.map(r=>[r,t[r]??o]))}}function Oye(e,o,t){let r=Yn(e),a=Yn(t,{tablet:!0}),n=Yn(t,{phone:!0})||Yn(o,{phone:!0})?{...Yn(t,{phone:!0}),...Yn(o,{phone:!0})}:void 0;return r||a||n?{...r,...a,...n}:void 0}var Xd="sf.gapContainer",mr={min:-32,max:64,step:2},ZP={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},Xn={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},r$=new Set(["Events","GalleryB"]);function Ra(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=mr.min)return o;if(typeof o=="string"){let r=ZP[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:Xn[e]}var a$="sf-gap-overlap",n$="--sf-gap-overlap",JP="--sf-block-gap",s$="--sf-block-gap-rem",Aa={min:0,max:mr.max,step:mr.step};function Nl(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Aa.min),Aa.max);return o-o%Aa.step}function Aye(e){let o=Nl(e);return o===null?{}:{[JP]:`${o}px`,[s$]:`${o/16}rem`}}var l$="--sf-block-gap-phone",i$="--sf-block-gap-phone-rem",c$="--sf-block-gap-on-phone",d$="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function Rye(e){let o=Nl(e);return o===null?{}:{[l$]:`${o}px`,[i$]:`${o/16}rem`}}function Lye(e){return Nl(e)===null?"":d$}var qP="sf-gap-zone",YP="--sf-gap-len";function Zd(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=mr.min?!0:typeof o=="string"&&typeof ZP[e]?.[o]=="number"}var XP="--sf-gap-len-phone",f$="--sf-gap-len-tablet",Ml={min:0,max:mr.max,step:mr.step};function Vr(e){return typeof e=="number"&&Number.isFinite(e)&&e>=Ml.min}function nI(e){return e/2}function sI(e,o,t){return Vr(t)&&!Zd(e,o)}function lI(e,o,t,r,a){return Vr(o)?o:sI(e,t,a)?a:nI(Ra(e,t,r))}var p$={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function Fye(e,o,t,r,a){let n={...Vr(r)?{[XP]:`${r}px`}:null,...Vr(a)?{[f$]:`${a}px`}:null};if(!Zd(e,o)){let l=`${Xn[e]}px`,c=r$.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${qP}`,style:{[YP]:`var(${JP}, ${c})`,[XP]:`var(${c$})`,...n}}}let s=Ra(e,o);return s>=0?{className:` ${qP}`,style:{[YP]:`${s}px`,...n}}:{className:` ${a$} ${p$[t]}`,style:{gap:"0px",[n$]:`${-s/2}px`}}}import{parseHexColor as u$}from"efficient-shell/format";var vo="var(--section-bg)",Hl="inherit";function qt(e,o){return e===Hl?vo:e===void 0?o:Jd(e)}var m$=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Jd(e){let o=Vt(e);return o?dr(o):e.replace(m$,"var(--site-$1")}var h$={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function iI(e,o,t){let r=qt(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?u$(a):null;if(n)return n.toLowerCase();let s=h$[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var cI="transparent";function QP(e,o){let t=qt(e,o);return!t||t===cI?"none":t===vo?"band":null}function e0(e,o,t=o){let r=n=>!n||n==="transparent",a=qt(e,o);return a===t||r(a)&&r(t)}var o0=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],t0={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Zn="var(--wheel-stage)",Qd="transparent",Wl="inherit";function Wye(e,o){return Jd(dI(e,o))}function dI(e,o){return e===Wl?Zn:e==null?o:e===!0?Zn:e===!1?Qd:e}function Gye(e){return typeof e=="string"&&e!==Wl?Jd(e):Zn}function zye(e){return e!==Qd&&e!=="none"&&e!==""}function r0(e,o){return e===Wl||e===!0?!0:e==null?o===Zn:!1}var a0="inherit",ef="fixed",n0=e=>typeof e!="number"&&e!==ef,x$="var(--sf-heading-max, 9999px)";function Uye(e,o,t,r){if(typeof e=="number")return`${e}px`;if(e===ef)return o;let a=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${a}, ${x$})`:a}var ho={min:1e3,max:2e3,step:50,default:1600};function I$(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var s0="--sf-site-width",fI=`var(${s0},${ho.default}px)`,Kye="100vw",Vye=`max-w-[${fI}]`,qye=`max-w-[${ho.default}px]`;function l0(e){return typeof e!="number"||!Number.isFinite(e)?ho.default:Math.round(Math.min(Math.max(e,ho.min),ho.max))}function Yye(e){let o=l0(e);return o===ho.default?{}:{[s0]:`${o}px`}}var hr={min:0,max:80,step:4,default:40},i0="--sf-site-gutter",Gl={min:0,max:24,step:4},g$="--sf-site-gutter-phone",b$="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",vt=`var(${i0},${hr.default}px)`,y$=`px-[${vt}]`;var qr={md:`min(24px,${vt})`,sm:`min(20px,${vt})`,frame:`min(24px,${vt})`,tabs:`min(16px,${vt})`},Xye=[[`max-view-desktop:px-[${qr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${qr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${qr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${qr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${qr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${qr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${qr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${qr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${vt}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${vt})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${vt})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${vt})]`,"max-view-tablet:-mx-5"],[`-mx-[${vt}]`,"-mx-10"],[y$,"px-10"]];var S$="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",Zye="max-view-wide:[--sf-edge-g:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",Jye=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${S$}`,Qye="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var eSe="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-view-desktop:px-[min(24px,var(--sf-site-gutter,40px))]";function of(e){return typeof e!="number"||!Number.isFinite(e)?hr.default:Math.round(Math.min(Math.max(e,hr.min),hr.max))}function oSe(e){let o=of(e);return o===hr.default?{}:{[i0]:`${o}px`}}function tf(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,Gl.min),Gl.max))}function c0(e){return typeof e=="number"&&Number.isFinite(e)?l0(e):null}function tSe(e){let o=tf(e);return o===null?{}:{[g$]:`${o}px`}}function rSe(e){return tf(e)===null?"":b$}function rf(e){return Math.min(Gl.max,of(e))}var d0=fI,aSe=`max-w-[${d0}]`,nSe=`max-w-[min(var(--sf-page-cap,${ho.default}px),${ho.default}px)]`,f0="--sf-hero-cap",w$=`var(${f0},none)`,sSe=`max-w-[${w$}]`,C$="--sf-hero-bleed-m",k$="--sf-hero-bleed-w",v$="--sf-hero-chrome-x",T$="--sf-hero-chrome-cap";function lSe(e){return e===!0?{[f0]:d0,[C$]:"auto",[k$]:"100%",[v$]:"24px",[T$]:"none"}:{}}var pI=`calc(${fI} - ${vt}*2)`,iSe=`max-w-[${pI.replace(/ /g,"_")}]`;var P$="--sf-chrome-cap",E$=`var(${P$},${pI})`,cSe="data-page-width";function dSe(e){return e==="full"?"full":null}function fSe(e){return e==="full"?null:I$(e==="content"?pI:E$)}function pSe(e){if(e==="full")return"full";if(e==="content")return"content"}var O$=["page","full"],p0=["full","page"],La={full:"Full",page:"Content"},uI="inherit",_$=e=>typeof e=="string"&&O$.includes(e),A$=e=>e===uI;function R$(e,o){return A$(e.widthMode)?{mode:"full",inherited:!0}:_$(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function hSe(e){return R$(e,"page").mode==="full"}var L$={CustomHTML:"rawMarkup",Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",ContactCards:"contained",MessagingCards:"contained",OpeningHours:"contained",RateTable:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function xSe(e){return Object.prototype.hasOwnProperty.call(L$,e)}var co={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax"};function F$(e){let o=c0(e[co.contentMax]),t=Jn(e[co.content])??(o===null?null:"content");return{background:Jn(e[co.background]),content:t,contentMax:t==="content"?o:null}}function ISe(e){let o=F$(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function gSe(e){return e.background!==null||e.content!==null}var bSe=e=>({[co.background]:e}),ySe=e=>e==="full"?{[co.content]:e,[co.contentMax]:void 0}:{[co.content]:e},SSe=e=>({[co.content]:"content",[co.contentMax]:e}),wSe=e=>e==="background"?{[co.background]:void 0}:{[co.content]:void 0,[co.contentMax]:void 0},u0="siteWidths",B$=e=>e==="full"||e==="content";function Jn(e){return B$(e)?e:null}function m0(e,o){return{[u0]:{background:Jn(e),content:Jn(o)}}}function CSe(e){let o=e.editor?.metadata?.[u0];return{background:Jn(o?.background),content:Jn(o?.content)}}import{jsx as D$}from"react/jsx-runtime";import{createContext as N$,useContext as PSe}from"react";var M$=2,ESe=M$+1,H$=N$(2);function h0({tier:e,children:o}){return D$(H$.Provider,{value:e,children:o})}import{useEaselSession as oj}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as tj,describedAs as Xr,group as Pt,iconOf as os,sharedStyleKinds as Ul}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as wI,onDesktopWords as Da,phoneTwinFields as ff}from"efficient-easel/screen/lib/document/box-fields";import{createElement as at}from"react";import{SettingsDefaultReset as W$,SettingsField as G$}from"efficient-easel/panel";import{boxFieldBuilders as z$,describedAs as $$,iconOf as U$,onDesktopWords as j$}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_UNITS as K$}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as V$,Tooltip as q$,useShellStrings as Y$}from"efficient-shell/ui";import{RotateIcon as X$}from"efficient-easel/icons";var x0=e=>i(e),Z$=K$,xo=z$(x0,{paddingUnits:Z$}),To=xo.slider,Tt=xo.select,af=xo.Segmented,Fa=xo.segmented,MSe=xo.alignmentField,HSe=xo.alignmentFields,WSe=xo.blockAlignmentField,GSe=xo.blockAlignmentFields,zSe=xo.boxJustifyField,$Se=xo.boxAlignField,USe=xo.boxWrapField,I0=xo.directionField,nf=xo.gapField,jSe=xo.placementField,KSe=xo.PlacementGridView,VSe=xo.positionFields,sf=xo.sidesPaddingFields;function g0(e,o){return To("Angle",at(X$),$t.min,$t.max,$t.step,e,"\xB0",o)}var J$={width:"3.5rem",height:"2.75rem"};function mI({value:e}){return Y$().iconNames[e]??e}function hI(e,o,t){return at(q$,{content:t,className:"sf-pick-tip",children:at("span",{className:"sf-pick"},at("span",{className:"sf-pick-pic"},e),at("span",{className:"sf-pick-cap"},o))})}function Q$(e){let o=t=>t.label===void 0?at(mI,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:hI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function b0(e,o){return at("span",{className:"sf-pick"},at("span",{className:"sf-pick-pic"},e),at("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function y0(e,o,t,r,a={}){let n=c=>t.some(d=>d.value===c),s=c=>a.resolve?a.resolve(c):n(c)?c:void 0,l=t.map(c=>({value:c.value,...c.label===void 0?{}:{label:c.label},...c.showWhen?{showWhen:c.showWhen}:{}}));return{type:"custom",...$$({},{type:"radio",label:e,options:l}),options:l,render:c=>{let{value:d,onChange:f,field:u}=c,p=u?.options,x=Q$(t.filter(v=>!p||p.some(T=>T.value===v.value))),I="follows"in c,g=I?s(a.phoneRest?a.phoneRest(c.follows):c.follows)??r:void 0,k=u?.currentValue,S=s(d)??g??s(k)??r,C=d!=null&&d!=="",b=g===void 0?void 0:t.find(v=>v.value===g);return at(G$,{label:i(e),icon:U$(o),action:I?at(W$,{words:ae()?.panel,label:i(e),changed:C,detail:b?.label!==void 0?j$(x0,i(b.label),c.followsView):void 0,disabled:c.readOnly===!0,onReset:()=>f(void 0)}):void 0},at(V$,{label:i(e),value:S,options:x,onChange:f,columns:a.columns,cell:a.cell??J$,tooltips:!1,disabled:c.readOnly===!0}))}}}import{TEXT_CONTROL_KINDS as LCe,SCALAR_TEXT_CONTROLS as FCe}from"efficient-easel/draw";function Na(e,o){return i("{value} from {from}",{value:e,from:o})}function rj(){let{blockGap:e}=xe();return e===null?i("this container's own spacing"):Na(`${e}px`,i("Styles"))}function aj({inherited:e,onReset:o,label:t}){return w(Po,{words:ae()?.panel,label:i(t),changed:!e,detail:rj(),onReset:o})}function nj(e){return nf({...tj,builtIn:Xn[e],resolve:(o,t)=>Ra(e,o,t?.siteGap),action:(o,t)=>w(aj,{inherited:!Zd(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Xd]:e}})}function sj(e){return ze(Xt("mobile",{[Xd]:e,type:"custom",render:o=>w(cj,{container:e,...o})}),K0)}function lj(e){return ze(Xt("tablet",{[Xd]:e,type:"custom",render:o=>w(ij,{container:e,...o})}),K0)}var K0={not:{field:"gap",in:Array.from({length:-mr.min},(e,o)=>mr.min+o)}};function vCe(e){return{gap:Xt("desktop",nj(e)),[Qn("gap")]:lj(e),[xr("gap")]:sj(e)}}function ij({container:e,...o}){let[t]=gr("gap"),{siteGap:r}=o.field??{},a=Math.max(Ml.min,Ra(e,t,r));return nf({...Ml,builtIn:a,resolve:n=>Vr(n)?n:a,action:(n,s)=>w(Po,{words:ae()?.panel,label:i("Gap"),changed:Vr(n),detail:Da(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function cj({container:e,...o}){let[t]=gr("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=lI(e,void 0,t,r,a);return nf({...Ml,builtIn:n,resolve:s=>lI(e,s,t,r,a),action:(s,l)=>w(Po,{words:ae()?.panel,label:i("Gap"),changed:Vr(s),detail:Na(`${n}px`,sI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function TCe(e){return I0({offered:jP(e),fallback:qn(e,void 0),resolve:o=>qn(e,o)})}function PCe(e,o){return Hw(o?zw(e,o):[],o)}function dj({inherited:e,onReset:o,label:t}){return w(Po,{words:ae()?.panel,label:i(t),changed:!e,detail:Na(i("Full"),i("the page")),onReset:o})}function Ma({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:c,hidden:d}=Zr(e),f=zl(null),u=zl(null),p=C=>o(s?{text:C,hidden:d}:C),x=()=>o({text:c,hidden:!d}),I=s&&d,g=R0(),k=a?hj(a)?w("span",{className:"sf-hint-while-typing",children:i(a)}):i(a):void 0,S=d?i("Show {label} on the slide",{label:i(t)}):i("Hide {label} on the slide",{label:i(t)});return w(eo,{label:i(t),icon:w(PU,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:k,action:s?w(SI,{content:S,children:w(U0,{"aria-pressed":d,"aria-label":S,onClick:x,children:d?w(v0,{name:"eye-off",size:14}):w(v0,{name:"eye",size:14})})}):void 0,children:Yr("div",{className:"sf-copybox",children:[l&&w(Sx,{target:n?u:f,value:c,onChange:p}),n?w("textarea",{id:g,ref:u,value:c,placeholder:r===void 0?void 0:i(r),onChange:C=>p(C.target.value)}):w("input",{id:g,ref:f,type:"text",value:c,placeholder:r===void 0?void 0:i(r),onChange:C=>p(C.target.value)})]})})}function ECe(e,o){return{...e,[iU]:o}}function OCe(e){let o=e[Ir];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Ir]:{...o,offPage:!0}}}function hf(e){return!e||typeof e!="object"?!1:e[Ir]?.offPage===!0}function _Ce(e){if(!e[Ir])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Cx]:!0}}function V0(e){return jn(e)}function ACe(e){let o=e[Ir];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Ir]:{...o,identifier:!0}}}function BCe(e,o){if(!e[Ir])throw new Error("inOwnBox: the field holds no authored text");let{[qU]:t,...r}=e;return{...r,[wx]:!0,render:o}}var fj=new Set(XU),pf={type:"radio",options:[{value:!0},{value:!1}]},q0={text:{type:"object",objectFields:{text:{type:"text"},hidden:pf}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:pf}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Ha=(e,o)=>{let t=Xr({...o,[Ir]:e},{...q0[e.control],label:e.label});if(!fj.has(e.control))return t;let r=o.render;return{...j0(t,"authored-copy"),render:a=>w(LT,{name:a.name,children:r(a)})}},DCe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",pj={field:"source.slug",set:!0},NCe={not:pj},uj="Select a word, then press the highlighter.",mj=new Set([uj]),hj=e=>mj.has(e);function MCe(e,o,t){return Ha({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Ma,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function HCe(e,o,t){return Ha({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Ma,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function WCe(e,o,t){return Ha({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Ma,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function GCe(e,o,t){return Ha({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Ma,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function zCe(e){return{type:"custom",[sU]:{label:e},...Xr({},{type:"text",label:e}),render:({value:o,onChange:t})=>w(LP,{value:nU(o),onChange:t,label:e})}}function $Ce(e,o,t){return Ha({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Ma,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var Y0={Design:cU,Animation:fU};function UCe(e){return{type:"custom",render:()=>w(xj,{text:e})}}function xj({text:e}){return w("p",{className:"sf-note",children:i(e)})}function jCe(e){return yr(e)!==null&&e?.tabs!==void 0}var T0=new Map;function xf(e,o){let t=`${e}\0${o?o.join(""):""}`,r=T0.get(t)??{type:"custom",tabs:o,[L0]:{label:e,level:1},bucket:e,marker:!0,render:()=>w(br,{})};return T0.set(t,r),r}var P0=new Map;function CI(e){let o=P0.get(e)??{type:"custom",[L0]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>w(br,{})};return P0.set(e,o),o}function Ij(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function X0(e,o){return Ij(e)===o?e:{...e,marker:!0,fold:o,render:()=>w(br,{})}}function Z0(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>w(br,{})}}function kI({title:e,children:o}){let[t,r]=$l(()=>!xI.has(e));return w(_U,{title:e,open:t,onToggle:a=>{r(a),a?xI.delete(e):xI.add(e)},children:o})}var xI=new Set;function gj({swatches:e,current:o,onPick:t,names:r}){let a=e.find(l=>l.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?i(n):o;return Yr("div",{className:"sf-swatches",children:[e.map(l=>{let c=r?.[l]?i(r[l]):l;return w(SI,{content:c,children:w(HU,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":c})},l)}),w("span",{className:"sf-swatch-hex",children:s})]})}function KCe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>w(bj,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function bj({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=_I(),c={background:s.background,surface:s.surface,surface2:wc(s),band:yw(s)},d=t?vo:o,f=e0(n,o,d),u=iI(void 0,d,c),p=t?Hl:void 0,x=d===vo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=yj(n,o,s,l,c,a),g=Na(u.toUpperCase(),x),k=Vt(n),S=k?Wn(k,s,l):null;return S?w(Uo,{label:i(e),icon:w(S0,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):w(vl,{label:i(e),icon:w(S0,{}),value:f?"":iI(n,o,c),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function yj(e,o,t,r,a,n){let s=QP(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(cI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(vo)},...OI(Vt(e)??"",t,r,n)]}function Sj(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=r0(a,o);return w(eo,{label:i(e),icon:w(gI,{}),changed:!n,action:w(Po,{words:ae()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(Wl)}),children:gj({swatches:o0,current:n?Zn:dI(a,o),onPick:r,names:t0})})}}}function If(e=t=>t,o){return Ul({_gSectionTheme:Pt(Dw),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>w(sP,{value:e(t),onChange:r,followLabel:o})}})}function Ko({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:l,ariaLabel:c,disabled:d=!1,placeholder:f,placeholderWord:u,onClear:p}){let x=l!==void 0&&Number.isFinite(l)&&l>=e&&l<=o;return w("div",{className:x?"sf-slider has-notch":"sf-slider",style:x?{"--sf-notch":(l-e)/(o-e)}:void 0,children:w(KU,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:i(u)}:{},suffix:n||void 0,showInput:s,label:c===void 0?void 0:i(c),disabled:d,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:I=>{I===null?p?.():I!==r&&a(I)}})})}function J0(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:l,unsetMark:c,icon:d,unit:f="px"}=o;return{type:"custom",render:({value:u,onChange:p})=>{let x=typeof u=="number"?u:null,I=x===null;return w(eo,{label:i(e),icon:d?os(d):void 0,value:I?c||n===void 0?void 0:i(n):`${x}${f}`,changed:!I,action:c?_0(c,{changed:!I,onReset:()=>p(null)}):w(Po,{words:ae()?.panel,label:i(e),changed:!I,onReset:()=>p(null)}),hint:typeof s=="string"?i(s):s,children:l?l({min:t,max:r,step:a,px:x,label:e,onChange:p}):Ko({min:t,max:r,step:a,value:x??t,readout:!1,ariaLabel:e,onChange:p})})}}}var gf="Corners";function vI(e){return{type:"custom",render:({value:o,onChange:t})=>{let r=typeof o=="number"&&Number.isFinite(o)?o:null,a=r!==null;return w(eo,{label:i(gf),icon:w(B0,{}),changed:a,action:_0(e.mark,{changed:a,onReset:()=>t(null)}),hint:e.hint,children:w(wj,{tier:e,px:r,onRadius:t})})}}}function gr(e){let o=es();return[o?.values?.[e],t=>o?.onChange(e,t)]}function Q0(){return j0({type:"custom",render:()=>w(YU,{})},"always")}function Ol(){let e=es();return o=>e?.onChangeMany(o)}function wj({tier:e,px:o,onRadius:t}){let r=e.useFollowed(),[a,n]=gr(e.sidesKey),s=jt(a)??[...pd];return w(WU,{label:i(gf),value:s,corners:Iv,onChange:l=>{let c=jt(l)??[];n(c.length===pd.length?null:c)},radius:o,onRadiusChange:t,radiusMin:tt,radiusMax:pa,radiusStep:e.step??1,radiusPlaceholder:String(r)})}function eE(){return Q0()}function Cj({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=xe(),a=typeof r=="number"?`${r}px`:i("not set");return w(Po,{words:ae()?.panel,label:i(e),changed:o,detail:r==null?i("the built-in corners"):Na(a,i("Styles")),onReset:t})}function kj(){let{cornerRadiusPx:e}=xe();return typeof e=="number"?e:tt}function vj(){return vI({sidesKey:"sectionCornerSides",useFollowed:kj,mark:w(Cj,{label:gf}),hint:Tj})}var Tj="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function bf(){return Ul({_gShape:Pt("Shape"),sectionCorners:vj(),sectionCornerSides:eE(),...Ba("sectionBorder",Rj)})}var Pj=()=>({width:i("Border width"),sides:{top:i("Border top"),right:i("Border right"),bottom:i("Border bottom"),left:i("Border left")},style:i("Border style"),styles:{solid:i("Solid"),dashed:i("Dashed"),dotted:i("Dotted")},color:i("Border color"),unit:"px"});function Ej(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function Oj(){let e;try{let o=ro(xe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||hw.line}function _j({value:e,onChange:o,placeholder:t,presets:r,sides:a=!0,styles:n=!0,above:s={}}){let l=e&&typeof e=="object"?e:{},[c,d]=$l(()=>a?BU(l,s):!1),f=Pj(),u=p=>Ej(a&&n?p:{width:p.width,color:p.color,...n?{style:p.style}:{}});return w(eo,{label:i("Border"),icon:w(pU,{}),action:a?w(LU,{each:c,label:i("Each side"),onChange:d}):void 0,children:w(RU,{label:i("Border"),value:l,each:c,onChange:p=>o(u(p)),placeholder:t,presets:r,words:f,styles:n,max:20})})}function Aj({value:e,onChange:o,view:t}){let[r]=gr("sectionBorder"),[a]=gr(Qn("sectionBorder")),n=Oj(),s=c=>c&&typeof c=="object"?c:{},l=t==="phone"?{...aI(s(r)),...aI(s(a))}:t==="tablet"?s(r):{};return w(_j,{value:e,onChange:o,placeholder:{sides:FU(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}function Rj(e){return{type:"custom",render:({value:o,onChange:t})=>w(Aj,{value:o,onChange:t,view:e})}}function Ba(e,o){let t=(r,a)=>ff(e,o(r),wI)[a];return{[e]:t("desktop",e),[Qn(e)]:t("tablet",Qn(e)),[xr(e)]:t("phone",xr(e))}}function VCe(e){return{type:"custom",render:()=>w(Lj,{partKey:e})}}function Lj({partKey:e}){let[o]=gr("id"),[t]=gr("_partStyles"),{textStyles:r}=xe(),a=ej(),n=null;try{n=ZU().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return w(OU,{name:i("Text"),preview:HP(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??QU.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(JU(o,e))}})}function oE(e){let{cornerRadiusPx:o}=xe(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=mf(c=>c),l=s?.props?.id?String(s.props.id):void 0;r=l?gT(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return Vh(a)?a:t}function Fj({label:e,changed:o=!1,onReset:t=()=>{}}){let r=oE(tt);return w(Po,{words:ae()?.panel,label:i(e),changed:o,detail:Na(`${r}px`,i("the section")),onReset:t})}function Bj(){return w(br,{children:i("Follows the section's Corners until you set a number here.")})}function Dj(){return vI({sidesKey:"cardCornerSides",useFollowed:()=>oE(tt),mark:w(Fj,{label:gf}),hint:w(Bj,{})})}function Nj(){return{type:"custom",render:()=>w(kv,{})}}function qCe(){return{_gShape:Pt("Shape"),cardCorners:Dj(),cardCornerSides:eE(),cardCornersApplyAll:Nj()}}function Mj(){return Xr({type:"custom",render:e=>w(Wj,{...e})},{type:"select",label:fa,options:[{value:"content",label:"Fit content"},{value:"equal",label:"Equal"},{value:[50],label:"Custom: the width of each block in %, the last block left out"}]})}function Hj(e,o){let t=Pm(e);if(t!=="custom")return i(Tm.find(a=>a.value===t)?.label??"");let r=$0(yc(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function Wj(e){let{value:o,onChange:t}=e,[r]=gr("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,l=s?o:n?e.follows:void 0,c=Pm(l),d=a>=2&&a<=C0,f=()=>[...$U[a]??[]],u=zl(null),p=S=>{let C=u.current;C&&JSON.stringify(S)===JSON.stringify(C.shares)?t(C.value):S&&t(S)},x=S=>{S===c||S==="custom"&&!d||t(S==="custom"?f():S)},I=i("The width bar works for 2 to {count} blocks.",{count:C0}),g=s&&(n||o!=="content"),k=jU().widths.hint(a,zU);return w(eo,{label:i(fa),icon:w(bI,{}),changed:g,hint:c!=="custom"?void 0:d?k:I,action:w(Po,{words:ae()?.panel,label:i(fa),changed:g,disabled:e.readOnly===!0,detail:n?Da(S=>i(S),Hj(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:Yr("div",{className:"sf-share-row",children:[w("div",{className:"sf-share-pick",children:w(z0,{label:i(fa),value:c,options:Tm.map(S=>({value:S.value,label:S.value==="custom"&&!d?I:i(S.label),icon:hI(w("span",{className:"sf-gallery-pic sf-share-pic",children:tE(S.weights).map((C,b)=>w("i",{style:{gridColumn:`span ${C}`}},b))}),i(S.label),S.value==="custom"&&!d?I:i(S.label))})),onChange:x,columns:3,cell:rE,tooltips:!1,disabled:e.readOnly===!0})}),c==="custom"&&d?w("div",{onFocus:()=>{u.current={value:o,shares:$0(yc(l,a),a)}},onBlur:()=>{u.current=null},children:w(UU,{label:i(fa),count:a,value:yc(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function tE(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 YCe(){return Tt(uw,w(bU,{}),_m,_m[0].value)}function XCe(){return Xt("mobile",y0(fa,w(bI,{}),dw.map(e=>({label:e.label,value:e.value,picture:w("span",{className:"sf-gallery-pic sf-share-pic",children:tE(e.weights).map((o,t)=>w("i",{style:{gridColumn:`span ${o}`}},t))})})),fw,{columns:2,cell:rE}))}var rE={width:"5.75rem",height:"3.25rem"};function ZCe(){return ff("share",Mj(),wI)[Qn("share")]}function Gj(){return Xt("mobile",To(Em,w(F0,{}),Sc,cw,1,Sc,"",{clear:{phoneFollows:!1,hint:Sc}}))}var E0={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function JCe(){let e=To(Em,w(F0,{}),Om,pw,1,Om,"",{clear:{emptyLabel:"Auto"}}),o=ff("columns",e,{...E0,tablet:wI.tablet}),t=ff("columns",e,E0,{phoneRow:Gj()});return{...o,phoneRow:t.phoneRow}}function QCe(e,o,t,r,a,n){return{type:"custom",render:({value:s,onChange:l})=>w(eo,{label:i(e),icon:w(cx,{noun:n}),action:w(Po,{words:ae()?.panel,label:i(e),changed:!n0(s),detail:i("the Text style in Styles"),onReset:()=>l(a0),defaultAction:{onPress:()=>l(ef),title:i("Keep this section's own built-in size"),icon:w(uU,{})}}),children:Ko({min:o,max:t,step:r,value:typeof s=="number"?s:a,suffix:"px",ariaLabel:e,onChange:l})})}}function eke(){return{_gCellWidth:Pt("Cell width"),gridSpan:Tt("Positions",w(bI,{}),[{label:"Auto",value:""},...Array.from({length:xd},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function Bo(){let e=null,o=null;try{e=A0(TI),o=mf(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var TI=tU(null);function zj({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let c=Bo()[s],d=_d(void 0,c,l);return w(br,{children:Ko({min:e,max:o,step:t,value:_d(r,c,l),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function $j({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=Bo()[o],l=_d(void 0,s,t);return w(Po,{words:ae()?.panel,label:i(e),changed:a,detail:Da(c=>i(c),`${l}${r}`),onReset:n})}function yf(e){return J0(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:w($j,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>w(zj,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var Uj={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},jj={Top:G0,Bottom:M0,Left:H0,Right:W0},Kj=e=>{let o=jj[e];return w(o,{})};function oke(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=k=>Uj[k],n=k=>To(a("Top"),w(G0,{}),rt.min,rt.max,rt.step,k,"px"),s=(k,S,C,b=rt)=>Xt("mobile",yf({label:a(k),icon:Kj(k),desktopKey:S,min:b.min,max:b.max,step:b.step,fallback:C})),l=e.top??rt.min,c=e.bottom??rt.min,d="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??rt,p=e.side??u.min,x=e.sidePhone??p,I=e.phone===!0,g=k=>I?Xt("desktop",k):k;return Ul({...r?{_gSpacing:Pt("Padding")}:{},[o]:g(n(l)),...I?{[xr(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(To(a("Bottom"),w(M0,{}),rt.min,rt.max,rt.step,c,"px")),...I?{[xr(t)]:s("Bottom",t,c)}:{}},...e.sides?{[d]:g(To(a("Left"),w(H0,{}),u.min,u.max,u.step,p,"px")),...I?{[xr(d)]:s("Left",d,x,u)}:{},[f]:g(To(a("Right"),w(W0,{}),u.min,u.max,u.step,p,"px")),...I?{[xr(f)]:s("Right",f,x,u)}:{}}:{}})}function tke(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&yr(s)?e[n]:s])),r={},a=!1;for(let[n,s]of Object.entries(e)){if(n in o){a||Object.assign(r,t),a=!0;continue}r[n]=s}return a||Object.assign(r,t),r}var cf="Width";function Sf(e,o=p0,t=!0){let r=o.map(a=>({label:La[a],value:a}));return Ul({...t?{_gWidth:Pt(cf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>w(eo,{label:i(cf),icon:w(EU,{}),action:t?w(dj,{inherited:n?.inherited??!1,onReset:()=>a(uI),label:cf}):void 0,children:af({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:cf})})}})}function wf(){let e=(r,a)=>({type:"custom",render:({value:n,onChange:s})=>w(Vj,{value:n,onChange:s,view:r,badge:a})}),o=r=>({type:"custom",render:({value:a,onChange:n,field:s})=>w(Yj,{value:a,onChange:n,unit:s?.unit,view:r})}),t=r=>{let a=Fa("Unit",w(D0,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");if(r==="desktop")return a;let n=a.render;return{...a,render:s=>w(Xj,{props:s,draw:n,view:r})}};return Ul({_gHeight:Pt(_n),...Ba("sectionHeightMode",r=>r==="desktop"?e(r):e(r,a=>w(Zj,{view:r,onClear:()=>a(void 0)}))),...Ba("sectionHeightValue",o),...Ba("sectionHeightUnit",t)})}function Vj({value:e,onChange:o,view:t,badge:r}){let a=Bo(),n=l=>["auto","fixed","screen"].includes(l),s=Cf(t,a)?.mode??"auto";return w(eo,{label:_n,icon:os(w(N0,{})),action:r?r(o):void 0,children:af({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:n(e)?e:s,onChange:o,ariaLabel:_n})})}function aE(e,o){return e==="phone"&&Pc(o)?Jw(o):Xw(o)}function Cf(e,o){return e==="desktop"||(e==="tablet"?Pc(o):Zw(o))?null:aE(e,o)}var Yt=(e,o)=>e==="tablet"?Qn(o):xr(o);function qj(e,o,t,r){let a=Cf(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[Yt(e,"sectionHeightMode")]:a.mode,...a.mode==="fixed"?{[Yt(e,"sectionHeightUnit")]:a.unit}:{},...t==="sectionHeightUnit"?{[Yt(e,"sectionHeightValue")]:a.value}:{},[Yt(e,t)]:r}}function nE(e,o,t){let r=es(),a=Cf(e,Bo());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=qj(e,s,o,n);return l===null?{[e==="desktop"?o:Yt(e,o)]:n}:Object.keys(l).length?l:null})}}function Yj({value:e,onChange:o,unit:t,view:r}){let{followed:a,write:n}=nE(r,"sectionHeightValue",o),s=(a?a.unit:t)==="%"?"%":"px",l=s==="%"?Yw:qw;return w("div",{className:"sf-field",children:Ko({min:l.min,max:l.max,step:l.step,value:a?null:typeof e=="number"?e:l.fallback,...a?{placeholder:a.value}:{},suffix:s,ariaLabel:_n,onChange:n})})}function Xj({props:e,draw:o,view:t}){let{followed:r,write:a}=nE(t,"sectionHeightUnit",e.onChange);return o({...e,...r?{value:void 0,storedValue:void 0,follows:r.unit}:{},onChange:a})}function Zj({view:e,onClear:o}){let t=Bo(),r=Cf(e,t)===null,a=e==="phone"&&Pc(t),n=aE(e,t),s=Da(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return w(Po,{words:ae()?.panel,label:i(_n),changed:r,detail:s,onReset:o})}function PI(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:c,name:d})=>w(tK,{value:s,onChange:l,labelId:`${c??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>w(Qj,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>w(eK,{value:s,onChange:l,view:n,intro:o})});return{_gStick:Pt(GP,{dot:o?Jj:sE}),...Ba("stickTop",t),...Ba("stickTopDistance",r),...e.screens?Ba(Bl,a):{}}}var sE={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},Jj={any:[sE,$P]};function lE(e,o,t,r){let a=es(),n=Bo(),s=e==="desktop"||uf(e,n)?null:EI(e,Dl(n,{intro:r}));return{followed:s,write:s&&a?l=>a.onChangeMany(c=>{let d=oK(e,c,l,o,r);return d===null?{[Yt(e,o)]:l}:Object.keys(d).length?d:null}):t}}function Qj({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=lE(t,"stickTopDistance",o,r);return w("div",{className:"sf-field",children:Ko({min:Kr.min,max:Kr.max,step:Kr.step,value:a?null:typeof e=="number"?e:Kr.fallback,...a?{placeholder:a.distance}:{},suffix:"px",ariaLabel:i("Distance from top"),onChange:n})})}function eK({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=lE(t,Bl,o,r);return w(eo,{label:i(oI),icon:os(w(N0,{})),children:Ko({min:lf.min,max:lf.max,step:lf.step,value:a?null:U(e)??lf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(oI),onChange:n})})}function uf(e,o){return e==="tablet"?tI(o):rI(o)}function EI(e,o){return e==="phone"?{on:o.tablet,distance:o.tabletDistance,screens:o.tabletScreens}:{on:o.desktop,distance:o.desktopDistance,screens:o.desktopScreens}}function oK(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||uf(e,o))return null;if(t===void 0)return{};let n=EI(e,Dl(o,{intro:a})),s=e==="phone"&&uf("tablet",o)?c=>Yt("tablet",c):c=>c,l=(c,d)=>o[s(c)]==null?{}:{[Yt(e,c)]:d};return{[Yt(e,"stickTop")]:!0,...l("stickTopDistance",n.distance),...l(Bl,n.screens),[Yt(e,r)]:t}}function tK({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=Bo(),s=Dl(n,{intro:a}),l=r==="phone"?s.phone:r==="tablet"?s.tablet:a?s.desktop:e===!0,c=r==="phone"&&s.ownTablet,d=r==="desktop"?null:EI(r,s),f=d?.on?`${d.distance}px`:i("Off");return w(eo,{label:i(eI),labelId:t,icon:os(w(kU,{})),action:Yr(br,{children:[r!=="desktop"?w(Po,{words:ae()?.panel,label:i(eI),changed:uf(r,n),detail:Da(u=>i(u),f,c?"tablet":"desktop"),onReset:()=>o(void 0)}):null,w(yI,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var O0="e.g. about";function kf(){return{_gAnchor:Pt("Anchor"),anchor:Ha({control:"plainText",label:"Name",placeholder:O0},{type:"custom",render:({value:e,onChange:o})=>w(oT,{value:e,onChange:o,nameBox:(t,r)=>w(Ma,{value:t,onChange:r,label:"Name",placeholder:O0,hideable:!1,markup:!1})})})}}function rke(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let l=`${n??s??e}-datetime`,c=Date.parse(typeof r=="string"?r:"");return w(eo,{label:i(e),icon:o,htmlFor:l,hint:t===void 0?void 0:i(t),children:w(GU,{id:l,value:Number.isFinite(c)?new Date(c):null,onChange:d=>a(d?d.toISOString():"")})})}}}function rK(e,o,t,r){return{type:"custom",...Xr({},{...pf,label:e}),render:a=>{let{value:n,onChange:s,id:l,name:c}=a,d="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,x=u?n:d?p:o,I=`${l??c??e}-label`,g=f.readOnly===!0,k=w(yI,{checked:x,onChange:s,disabled:g,ariaLabelledBy:I});return w(eo,{label:i(e),labelId:I,icon:t,hint:r===void 0?void 0:i(r),action:d?Yr(br,{children:[w(Po,{words:ae()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):Da(S=>i(S),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),k]}):k})}}}function iE(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return w(aK,{label:"Background",icon:w(CU,{}),id:a,value:e,shown:px(e),onChange:o})}}}function ake(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>w(Uo,{label:i(e),icon:t,value:r||o,onChange:a})}}function aK({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=_I(),c=Vt(r),d=c?Wn(c,s,l):null;return w(Uo,{label:i(e),icon:o,id:t,value:d?d.hex:a,caption:d?.words,onChange:n,choices:OI(c??"",s,l,n)})}function nke(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return w(nK,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function OI(e,o,t,r){let a=kd(e);return lT(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function nK({value:e,onChange:o,twin:t}){let{colors:r,n:a}=_I(),n=r.background,s=Na(n.toUpperCase(),i("Theme {n} background",{n:a})),l=kd(e),c=l?Wn(l,r,a):null,d=OI(e,r,a,o),f=t?()=>o(void 0):()=>o(""),u=n,p=s;if(t){let x=kd(t.follows),I=Cd(t.follows),g=x?Wn(x,r,a):I?{hex:I,words:I.toUpperCase()}:null;u=g?.hex??n,p=Da(k=>i(k),g?g.words:s,t.view)}return c?w(Uo,{label:i("Fill"),icon:w(gI,{}),value:c.hex,caption:c.words,onChange:o,changed:!0,onReset:f,resetTo:p,choices:d}):w(vl,{label:i("Fill"),icon:w(gI,{}),value:e,inherited:u,resetTo:p,onChange:o,onReset:f,choices:d})}function sK(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Wt(t);let r=bT(e,o);if(r.length===0)return null;let a=Wt(Nm(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Wt(Nm(r[n].sectionAccent));if(s!==null)return s}return Wt(r[0].sectionAccent)}function _I(){let e=ro(xe().theme),[o]=gr("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=mf(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?sK(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:Wo(e.themes[r]),n:r+1}}var lK=[{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 iK({label:e,value:o,onChange:t,points:r=lK}){let a=r.map(n=>({...n,label:i(n.label),...n.title?{title:i(n.title)}:null}));return w(MU,{label:i(e),value:o,points:a,onChange:t})}function ske(){return Q0()}var cE={top:w(IU,{}),right:w(xU,{}),bottom:w(mU,{}),left:w(hU,{})};function dE(e,o,t,r,a,n,s){let l=u=>o.find(p=>p.value===u),c=u=>({value:u,label:"",disabled:!0,title:r}),d=u=>{let p=o.find(I=>I.cell===u);if(!p)return c(`missing-${u}`);let x=n?.[u];return x?{value:p.value,label:p.label,icon:x}:{value:p.value,label:p.label}},f=[c("corner-top-left"),d("top"),c("corner-top-right"),d("left"),c("centre"),d("right"),c("corner-bottom-left"),d("bottom"),c("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let x=o.some(I=>I.value===u)?u:t;return w(eo,{label:i(e),icon:a,value:l(x)?.label?i(l(x).label):s?i(s):"",children:iK({label:e,value:x,onChange:p,points:f})})}}}function lke(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>w($T,{label:e,options:(n.options??o).map(s=>({...s,label:i(s.label)})),value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:i(t)}:{}})}}function ike(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return w(e,{...a})}}}var cke=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function dke(e,o,t){let r=Object.keys(Mh).map(a=>({label:Mh[a],value:a,picture:t[a]}));return{type:"custom",...Xr({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>w(dK,{label:e,icon:o,options:r,onChange:a})}}function cK(e,o,t){let r=Xk(e,o,t);if(r!==void 0)return r==="save-makes-frame"?i("A frame is made from this video when you save the page."):r==="starts-dark"?i("This video starts dark, so no frame was made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="outside"?i("This video is on another website, so no frame can be made. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="unsupported"?i("This video's file type gives no frame. The slide shows its background colour while the video loads. Choose Image to show a picture."):r==="failed"?i("No frame could be made from this video. It is tried again the next time you save the page. The slide shows its background colour while the video loads."):r==="image-no-frame"?i("The slide shows your Image while the video loads, because this video has no frame."):void 0;let a=Yk(e);return a==="frame-missing-image"?i("This video has no frame yet. The slide shows its image until one is made."):a==="frame-missing-surface"?i("This video has no frame yet. The slide shows its background colour until one is made."):a==="image-missing-frame"?i("No image yet. The slide shows the video's frame until you choose one."):a==="image-missing-surface"?i("No image yet. The slide shows its background colour until you choose one."):void 0}function dK({label:e,icon:o,options:t,onChange:r}){let a=es(),n=a?.values??{},s=Il(n),l=A0(aU),c=fd(l?.docId??null),d=null;try{d=mf(u=>u.appState.data)}catch{d=null}let f=hv(a?.id,d,c);return w(eo,{label:i(e),icon:os(o),hint:cK(n,f,l?.hasUnsavedEdits??!1),children:af({options:t,value:s,onChange:r,ariaLabel:e})})}function fke(e,o,t,r={}){let a={type:"custom",[lU]:!0,render:({value:n,onChange:s,name:l})=>w(GT,{value:n||"",onChange:s,fieldKey:l,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen,frameKey:r.frame}),...r.focus?{focusKey:r.focus}:{},...r.focusWhen?{focusWhen:r.focusWhen}:{}};return r.focus?Xt("each",a):a}function fK(e){let o=i(e.status??"");return e.ok&&typeof e.lat=="number"&&typeof e.lng=="number"?`${o} \xB7 ${e.lat.toFixed(4)}, ${e.lng.toFixed(4)}`:o}function pke({value:e,onChange:o,label:t}){let r=e||{},a=es(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,c=!!Ue(oj()).geocode,d=R0(),f=(u,p)=>o({...r,[u]:p??void 0});return Yr(br,{children:[w(eo,{label:i(t),icon:w(w0,{}),action:c?w(SI,{content:i("Find from the address (OpenStreetMap)"),children:w(U0,{"aria-label":i("Find from the address"),"aria-busy":s||void 0,disabled:s,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),children:w(vU,{})})}):void 0,children:c&&r.status?w(tT,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(gx):i(r.status),hint:fK(r)}):null}),w(eo,{label:i("Enter by hand"),labelId:d,icon:w(gU,{}),action:w(yI,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&w(eo,{label:i("Latitude, longitude"),icon:w(w0,{}),children:Yr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[w(k0,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),w(k0,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function pK(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function uK(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 mK(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 AI={label:"Ticker items",icon:w(wU,{})};function uke(e,o,t,r){return{type:"custom",[Ir]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...Xr({},{...q0.textList,label:e}),render:({value:a,onChange:n})=>w(RI,{label:e,icon:os(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function RI({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=zl(null),[l,c]=$l(null),d=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=mK(t,u,l);p===null&&(s.current=null),c(p),a(d(u))};return w(DU,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?w(Sx,{target:s,value:pK(t,l),onChange:u=>a(uK(t,l??-1,u)),disabled:l===null,label:l===null?i("Formatting \u2014 click a row first"):i("Formatting \u2014 row {n}",{n:l+1})}):void 0,renderRow:(u,p,x)=>w("input",{type:"text",className:n&&l===p?"sf-list-marking":void 0,value:u?.text??"",placeholder:i(r),"aria-label":i("{label} {n}",{label:i(e),n:p+1}),onChange:I=>x({text:I.target.value}),onFocus:I=>{s.current=I.currentTarget,c(p)}})})}function fE(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Ha({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>w(Ma,{value:r,onChange:a,label:i("{label} \u2014 row {n}",{label:i(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function pE(e){return{_gCards:Pt("Cards"),coverIndex:Tt("Cover image",w(SU,{}),NT,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:Sj("Image background",Qd),cardImage:IK()}}function uE(){return{outline:Tt("Card outline",w(TU,{}),DT,BT),indexBadge:Tt("Card number",w(D0,{}),Px,Tx),showBadge:rK("Product badge",!0,w(cx,{noun:"tag"}))}}function mE(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...pf,label:df.find(n=>n.id===a).label}),r=a=>Xr(VU(II),t(a));return{_gShowOnCard:Pt("Show on a card"),[II]:Xr({type:"custom",render:()=>w(hK,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(II)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var II="showCardPrice",df=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function hK({rest:e}){let o=Bo(),t=Ol(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=df.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return w(ts,{parts:df,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(df.map(({id:s})=>[s,void 0])))})}function mke(e,o="display"){let t=xr(o);return{[o]:Xt("desktop",{type:"custom",render:({value:r,onChange:a})=>w(ts,{parts:e,changed:CT(r),shown:n=>Pd(r,n),onPress:(n,s)=>a(vT(r,n,s)),onReset:()=>a(void 0)})}),[t]:Xt("mobile",{type:"custom",render:({value:r,onChange:a})=>w(xK,{parts:e,desktopKey:o,value:r,onChange:a})})}}function ts({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let l=i("Display");return w(eo,{label:l,icon:w(dU,{}),changed:o,action:w(Po,{words:ae()?.panel,label:l,changed:o,detail:n,onReset:a}),children:w(NU,{label:l,items:e.map(c=>({id:c.id,label:i(c.label),shown:t(c.id),...s?{disabled:!0,disabledReason:i(s)}:{}})),onChange:r})})}function xK({parts:e,desktopKey:o,value:t,onChange:r}){let a=Bo()[o];return w(ts,{parts:e,changed:kT(t),shown:n=>Ix(a,t,n),onPress:(n,s)=>r(TT(t,n,s)),onReset:()=>r(Ad),detail:i("the same as Desktop")})}function IK(){return J0("Card image",{min:tt,max:pa,step:Dv,icon:w(B0,{}),hint:"Rounds the picture. The card's own corner is in Styles."})}function hke(){return vI({sidesKey:"cornerSides",step:Nv,useFollowed:()=>tt,mark:w(gK,{label:Mv}),hint:i("Rounds the picture. Left alone it stays square.")})}function gK({label:e,changed:o=!1,onReset:t=()=>{}}){return w(Po,{words:ae()?.panel,label:i(e),changed:o,onReset:t})}function xke(){return{type:"custom",render:({value:e,onChange:o})=>w(wK,{value:typeof e=="string"?e:"",onChange:o})}}function bK({layout:e,width:o}){let t=sx(e),r=t?`${t[0]}/${t[1]}`:void 0;return w("span",{"aria-hidden":"true",style:{display:"grid",width:o,gridTemplateColumns:"repeat(12, minmax(0, 1fr))",gridAutoRows:r?"auto":6,gridAutoFlow:"row dense",gap:2},children:Uv(e).map(([a,n],s)=>w("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var yK={width:"3.5rem",height:"2.5rem"},SK=200;function wK({value:e,onChange:o}){let[t,r]=$l(null),[a,n]=$l(4),s=zl(null);rU(()=>{let p=s.current;if(!p||typeof ResizeObserver!="function")return;let x=()=>n(p.getBoundingClientRect().width>=SK?4:3);x();let I=new ResizeObserver(x);return I.observe(p),()=>I.disconnect()},[]);let l=e&&e in cr?e:"",c=nx(t,l),d=nx(t,"").length,f=Id("no-symbol"),u=[{value:"",label:i("Not chosen"),icon:b0(f,i("Not chosen"))},...c.map(p=>({value:p,label:i(cr[p].label),icon:w(bK,{layout:cr[p],width:40})}))];return w(eo,{label:i("Layout"),icon:w(yU,{}),value:l?i(cr[l].label):void 0,children:w("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:w(z0,{label:i("Layout"),value:l,options:u,onChange:o,columns:a,cell:yK,header:Yr("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[w("span",{className:"text-2xs text-ink-faint",children:i("Photos in a row")}),w(AU,{options:[{id:"all",label:i("All")},...zv.map(p=>({id:String(p),label:String(p)}))],value:t===null?"all":String(t),ariaLabel:i("Photos in a row"),onChange:p=>r(p==="all"?null:Number(p))}),w("span",{className:"text-2xs text-ink-faint",children:i("{n} of {total} layouts",{n:d,total:ax.length})})]})})})})}import{decodePartId as WK}from"efficient-easel/draw";import{decodePartId as DI,encodePartId as Of}from"efficient-easel/draw";import{LINK_FIELD_MARKER as kE,SCAFFOLD_FIELD_MARKER as wE,TEXT_FIELD_MARKER as _f}from"efficient-easel/draw";import{readHidable as vE}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as OK}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as EK}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as hE}from"efficient-easel/draw";import{readHidable as xE}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as CK}from"efficient-easel/draw";var kK=CK,vK=["text","textarea"],TK=["textarea","plainTextarea"];function PK(e){return!e||typeof e!="object"?null:e[hE]?.control??null}function rs(e){let o=PK(e);return o&&kK.includes(o)?o:null}function vf(e){return TK.includes(e)}function IE(e){return!e||typeof e!="object"?void 0:e[hE]?.placeholder}function Tf(e){return xE(e).text}function LI(e,o,t){return vK.includes(e)?{text:t,hidden:xE(o).hidden}:t}function gE(e,o,t,r){return Tf(e[o])===r?null:{...e,[o]:LI(t,e[o],r)}}function as(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Et(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}}function Pf(e){if(!(!e||typeof e!="object"))return e[EK]}function FI(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function bE(e,o){if(!Array.isArray(o))return[];let t=Pf(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,l)=>{let c=Z(s?.[n]);c&&r.push({row:{index:l,rowKey:n},text:c})}),r}let a=FI(e);return a?(o.forEach((n,s)=>{for(let[l,c]of Object.entries(a)){if(!rs(c))continue;let d=Tf(n?.[l])||Pf(c)?.placeholder||"";d&&r.push({row:{index:s,rowKey:l},text:d})}}),r):[]}function jl(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function BI(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,s)=>s===t.index?{...n,[t.rowKey]:r}:n)}}function yE(e,o,t,r,a){let n=jl(e[o],t);return Tf(n)===a?null:BI(e,o,t,LI(r,n,a))}function SE(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Ot="data-sf-part",Mke="data-sf-region-part",Hke="data-sf-part-row";function Wke(e,o){return`${e}[${o}]`}var Gke="data-sf-part-kind",_K="data-sf-part-style-owner",AK="data-sf-part-style-kind";function zke(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(_K),r=o.getAttribute(AK);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var CE=2;function ns(e){return lr(e).replace(/\s+/gu,"")}function Ef(e,o,t){let r=e[_f];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let s of o){let l=s?.[n];typeof l=="string"&&t.push(l)}return}let{text:a}=vE(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[kE]){if(e.type==="text"||e.type==="textarea"){let a=Z(o);a&&t.push(a);return}if(e.arrayFields&&Array.isArray(o)){for(let a of o)for(let[n,s]of Object.entries(e.arrayFields))Ef(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))Ef(n,o[a],t)}}function NI(e){if(!e||typeof e!="object")return!1;let o=e;return o[kE]?!1:!!o[_f]||o.type==="text"||o.type==="textarea"}function Af(e,o){let t=e[_f];return t?.label?t.label:typeof e.label=="string"?e.label:o}function MI(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function $ke(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Tl(a))continue;let s=n,l=[];Ef(s,o?.[a],l),!l.length&&s[wE]!==void 0&&Ef(s,s[wE],l);let c=Af(s,a);if(t?.(a)&&NI(s)){l.length&&r.push({key:a,label:c,texts:[],keyed:!0});continue}let d=new Set;for(let{row:p,text:x}of bE(s,o?.[a])){let I=ns(x);I.length<CE||(d.add(I),r.push({key:a,label:c,texts:[I],row:p}))}let f=new Set(d),u=[];for(let p of l){let x=ns(p);x.length<CE||f.has(x)||(f.add(x),u.push(x))}u.length&&r.push({key:a,label:c,texts:u})}return r}function HI(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var RK=OK;function TE(e,o){if(!o||typeof o!="object"||Tl(e)||_T(o))return null;let t=o[_f];return!t||!RK.includes(t.control)?null:t}function Uke(e,o){let t=TE(e,o);return t!==null&&t.identifier!==!0}function PE(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=TE(r,a);if(!n)continue;let{text:s,hidden:l}=vE(o?.[r]);if(HI({offPage:n.offPage===!0,hidden:!!l,panelOnly:jn(a)}))continue;let c=s||n.placeholder||"",d=lr(c).replace(/\s+/gu," ").trim();t.push({key:r,label:MI(Af(a,r)),preview:d,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function ss(e,o){let t=Pf(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?fE(t,o.index):null:FI(e)?.[o.rowKey]??null}function Rf(e,o,t){let r=e.node.props,{key:a,row:n}=Et(e.propKey),s=n?yE(r,a,n,e.kind,o):gE(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as AE}from"efficient-easel/draw";import{isNodeList as LK}from"efficient-easel/data";var WI=e=>String(e+1).padStart(2,"0"),Jke=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],GI="two-digit",EE=e=>e==="plain"?"plain":GI,Lf=(e,o)=>e==="plain"?`${o+1}.`:WI(o);var $I="Contents",zI="Flex",OE="Text",FK="numberForm",cve="_contentsEntries",dve="_kickerNumber",RE="data-sf-kicker-number",BK=e=>AE(e).text.trim(),LE=e=>gd(e?.anchor),_E=e=>String(e.props?.id??""),DK=e=>!AE(e.props?.text).hidden&&!Dn(e.props)&&!zo(e.props);function Kl(e){return Object.values(e.props??{}).filter(LK)}function FE(e){for(let o of Kl(e))for(let t of o){if(kl(t.props??{}))continue;if(t.type===OE&&DK(t))return t;if(t.type===OE)continue;let r=FE(t);if(r)return r}}function BE(e){return Kl(e).some(o=>o.some(t=>t&&!kl(t.props??{})&&(t.type===$I||BE(t))))}var DE=e=>e.type===zI&&qn(zI,e.props?.direction)==="row";function NE(e){return Kl(e).some(o=>o.some(t=>t&&!kl(t.props??{})&&(t.type===$I||!DE(t)&&NE(t))))}function NK(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||kl(n.props??{}))continue;if(n.type===$I){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(DE(n)&&NE(n)){let l={inRow:!0,open:null,waiting:[]};for(let c of Kl(n))t(c,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===zI&&LE(n.props)&&s&&!BE(n)){s.push({box:n,kicker:FE(n)});continue}for(let l of Kl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function MK(e){return e.map(o=>({label:o.kicker?lr(BK(o.kicker.props?.text)):"",anchor:LE(o.box.props)}))}function fve(e){let o=e?.length?NK(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=_E(a.contents);n&&t.set(n,MK(a.sections));let s=EE(a.contents.props?.[FK]);a.sections.forEach((l,c)=>{let d=l.kicker?_E(l.kicker):"";d&&r.set(d,Lf(s,c))})}return{entries:t,numbers:r}}var pve=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var GK=`[${RE}]`,zK=["bold","italic","underline","strike","link","sup","sub"],$K=["bullet","number"];function KI(e,o){return e?[...zK,...o?$K:[]]:[]}function ME(e,o){let t=WK(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:l,row:c}=Et(a),d=o.components[n.type]?.fields?.[l],f=c?ss(d,c):d,u=rs(f);if(!u)return null;let p=n.props??{};if(Ux(p)!==null||!c&&Oh(n.type,p,l)||n.type==="Text"&&l==="text"&&Dn(p)||c&&!(Array.isArray(p[l])&&c.index<p[l].length))return null;let x=c?jl(p[l],c):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:x,offPage:hf(f),panelOnly:jn(f)}}function Ff(e,o){let t=ME(e,o);if(!t)return null;let{text:r,hidden:a}=Zr(t.stored);if(!HI({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=vf(t.kind);return{partId:e,value:r,rules:xa,multiline:n,skip:GK,offered:KI(t.kind!=="plainText",n),write:s=>{let l=ME(e,o);l&&Rf({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function VI(e,o,t){return e?.isConnected&&e.getAttribute(Ot)===t?e:o?.querySelector(`[${Ot}="${Bf(t)}"]`)??null}function Bf(e){return e.replace(/["\\]/g,"\\$&")}function HE(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var UI=null,jI=new Set;function UK(){return UI}function qI(e){if(e!==UI){UI=e;for(let o of jI)o()}}function jK(e){return jI.add(e),()=>{jI.delete(e)}}function WE(){return HK(jK,UK,()=>null)}function GE(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Lk(t.type);return!r||so(t.props)?null:{node:t,rows:r}}function XK(e,o){let t=GE(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=_h(r.type,r.props,e.key);if(!a)return null;let n=t.node.props[t.rows];return!Array.isArray(n)||e.index<0||e.index>=n.length?null:KK(e.ownerId,as(t.rows,{index:e.index,rowKey:a}))}function Df(e,o){let t=XK(e,o);return t?Ff(t,o):null}function zE(e,o){return Df(e,o)?.value}function $E(e,o){let t=Df(e,o);return t?(t.write(e.text),!0):!1}function UE(e,o){let t=GE(e,o),r=t&&o.getSelectorForId(e.ownerId);if(!t||!r)return!1;let a=t.node.props,n=a[t.rows],s=e.index;if(!Array.isArray(n)||s<0||s>=n.length)return!1;let l;switch(e.action){case"addAfter":{let c=o.components[t.node.type]?.fields?.[t.rows];l=VK(n,s+1,{...c?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let c=e.action==="moveEarlier"?s-1:s+1;if(c<0||c>=n.length)return!1;l=qK(n,s,c);break}case"delete":l=YK(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as Ce,Fragment as S_,jsxs as ti}from"react/jsx-runtime";import{Fragment as Oq,useEffect as _q,useId as Aq,useMemo as w_,useRef as Rq,useState as Jr}from"react";import{useScreenDocument as __}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Hg}from"efficient-easel/draw/client";import Lq from"efficient-easel/screen/components/SidePanelHead";import{jsx as be,Fragment as hs,jsxs as Ua}from"react/jsx-runtime";import{useEasel as u_,useRootFields as B7}from"efficient-easel/easel";import{Inspector as D7}from"efficient-easel/fields";import{SettingsGroup as N7}from"efficient-easel/panel";import{useEffect as M7,useRef as H7,useState as Dg}from"react";import{jsx as Wa,Fragment as e8,jsxs as o8}from"react/jsx-runtime";import{useState as qE}from"react";import{SettingsDefaultReset as t8,SettingsField as r8}from"efficient-easel/panel";import{useEaselStrings as a8}from"efficient-easel/strings";import{AddIcon as n8}from"efficient-easel/icons";import{Button as s8}from"efficient-shell/ui";import{iconOf as l8,noGlyph as i8}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Nf,Fragment as ZK,jsxs as jE}from"react/jsx-runtime";import{Button as KE,Dialog as JK}from"efficient-shell/ui";function QK(e){return Oo("This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.",e)}function VE({count:e,onCancel:o,onConfirm:t}){return jE(JK,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:jE(ZK,{children:[Nf(KE,{variant:"secondary",onClick:o,children:i("Cancel")}),Nf(KE,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[Nf("p",{children:QK(e)}),Nf("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var c8=i8("the row's whole content is an action; the gutter names a subject and this row has none \u2014 the button's label is the name GG, 2026-09-23"),d8="Reset color",f8={selected:0,themes:[]};function p8(e){e(f8)}function YE({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=ro(e),[n,s]=qE(!1),l=a8(),[c,d]=qE(null),f=(S,C)=>{o({...a,themes:a.themes.map((b,v)=>v===S?C:b)})},u=Tn(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),x=xw.filter(S=>!p.has(S)).map(S=>Iw(u,S)),I=[...a.themes,...x],g=S=>{if(S<a.themes.length)return o({...a,selected:S});let C=[...a.themes,I[S]];o({...a,themes:C,selected:C.length-1})},k=()=>{let S=[...a.themes,{...Wo(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),d(S.length-1)};return o8(e8,{children:[r?null:Wa(r8,{label:i(d8),icon:l8(c8),labelId:"sf-theme-reset",action:Wa(t8,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&Wa(VE,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),p8(o)}}),Wa("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((S,C)=>Wa(Fd,{index:C,colors:S,selected:C===a.selected,open:c===C&&C<a.themes.length,editable:C<a.themes.length,onPick:()=>g(C),onEdit:()=>d(b=>b===C?null:C),onChangeColors:b=>f(C,b)},C))}),Wa(s8,{variant:"secondary",leftIcon:Wa(n8,{}),onClick:k,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as Mf}from"react/jsx-runtime";import{SettingsDefaultReset as u8,SettingsField as m8}from"efficient-easel/panel";import{SquareIcon as h8}from"efficient-easel/icons";var x8="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",YI="Corners";function XE({value:e,onChange:o}){let t=e===null;return Mf(m8,{label:i(YI),icon:Mf(h8,{}),changed:!t,action:Mf(u8,{words:ae()?.panel,label:i(YI),changed:!t,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(x8),children:Mf(Ko,{min:tt,max:pa,step:1,value:e,...e===null?{}:{suffix:"px"},placeholder:tt,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(YI),onChange:o})})}import{jsx as Vl}from"react/jsx-runtime";import{SettingsDefaultReset as I8,SettingsField as g8}from"efficient-easel/panel";import{IconPicker as b8}from"efficient-shell/ui";import{ShadowIcon as y8}from"efficient-easel/icons";var XI={none:"None",soft:"Soft",lifted:"Lifted"},S8="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.",w8={none:"none",soft:"0 1px 1px rgba(20, 20, 22, 0.10), 0 2px 4px -1px rgba(20, 20, 22, 0.14)",lifted:"0 1px 2px rgba(20, 20, 22, 0.10), 0 4px 7px -2px rgba(20, 20, 22, 0.30)"};function ZE({value:e,onChange:o}){let t=e===null,r=e??Bm;return Vl(g8,{label:i("Card shadow"),icon:Vl(y8,{}),value:i(XI[r]),changed:!t,action:Vl(I8,{words:ae()?.panel,label:i("Card shadow"),changed:!t,detail:i(XI[Bm]),onReset:()=>o(null)}),hint:i(S8),children:Vl(b8,{label:i("Card shadow"),value:r,options:Ew.map(a=>({value:a,label:i(XI[a]),icon:Vl("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:w8[a]}})})),onChange:o})})}import{jsx as JE}from"react/jsx-runtime";import{ShadowIcon as C8}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as QE}from"efficient-easel/screen/lib/document/shadow-values";var k8="Most useful on a dark theme, where a black shadow cannot be seen. Also used by the Lift hover, even with the card shadow off.";function eO({value:e,onChange:o}){let t=e===null;return JE(vl,{label:i("Shadow color"),icon:JE(C8,{}),value:e??"",inherited:QE,resetTo:QE,onChange:o,onReset:()=>o(null),hint:i(k8)})}import{jsx as Wf}from"react/jsx-runtime";import{SettingsDefaultReset as v8,SettingsField as T8}from"efficient-easel/panel";import{AlignSeparateIcon as P8}from"efficient-easel/icons";function Hf(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var E8="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",O8="The space between the blocks inside a row, a grid or a box, on a phone. Until you set it, a phone uses half the desktop gap.",ZI="Block gap",oO=Xn.Grid;function tO(e,o){return Hf(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:nI(o.gap)}})}function rO({value:e,onChange:o,followsPx:t=null}){let r=e===null,a=t===null?null:`${t}px`,n=t===null?oO:Nl(t)??oO;return Wf(T8,{label:i(ZI),labelId:"sf-block-gap",icon:Wf(P8,{}),changed:!r,action:Wf(v8,{words:ae()?.panel,label:i(ZI),changed:!r,detail:a??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(a===null?E8:O8),children:Wf(Ko,{min:Aa.min,max:Aa.max,step:Aa.step,value:e,...e===null&&t===null?{}:{suffix:"px"},placeholder:n,...t===null?{placeholderWord:"Auto"}:t===n?{}:{placeholderWord:String(t)},onClear:()=>o(null),ariaLabel:i(ZI),onChange:o})})}import{jsx as Gf}from"react/jsx-runtime";import{SettingsDefaultReset as _8,SettingsField as A8,SettingsSegmented as R8}from"efficient-easel/panel";import{HoverIcon as L8}from"efficient-easel/icons";var JI={none:ya.none,lift:ya.lift,highlight:th},F8="What a card does when a shopper points at it \u2014 or taps it, on a phone. Highlight is the effect your cards already use.";function aO({value:e,onChange:o}){let t=e===null,r=e??Dm;return Gf(A8,{label:i("Hover effect"),icon:Gf(L8,{}),value:i(JI[r]),changed:!t,action:Gf(_8,{words:ae()?.panel,label:i("Hover effect"),changed:!t,detail:i(JI[Dm]),onReset:()=>o(null)}),hint:i(F8),children:Gf(R8,{options:Ow.map(a=>({id:a,label:i(JI[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as zf}from"react/jsx-runtime";import{SettingsDefaultReset as B8,SettingsField as D8,SettingsSegmented as N8}from"efficient-easel/panel";import{DropIcon as M8}from"efficient-easel/icons";var QI="Photography",nO={shot:"As shot",mono:"Black and white"},eg=[{grayscale:!1,label:nO.shot},{grayscale:!0,label:nO.mono}],H8="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function sO({value:e,onChange:o}){let t=e===null,r=e??!1;return zf(D8,{label:i(QI),icon:zf(M8,{}),value:i(eg.find(a=>a.grayscale===r).label),changed:!t,action:zf(B8,{words:ae()?.panel,label:i(QI),changed:!t,detail:i(eg.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(H8),children:zf(N8,{options:eg.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(QI),onChange:o})})}import{jsx as og}from"react/jsx-runtime";import{useId as W8}from"react";import{SettingsField as G8,SettingsSwitch as z8}from"efficient-easel/panel";import{ShareIcon as $8}from"efficient-easel/icons";var U8="Share button",j8="On every blog post.";function lO({value:e,onChange:o}){let t=W8();return og(G8,{label:i(U8),labelId:t,icon:og($8,{}),action:og(z8,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(j8)})}import{usePreviewDevice as Ng}from"efficient-easel/draw/client";import{jsx as $f}from"react/jsx-runtime";import{SettingsDefaultReset as K8,SettingsField as V8}from"efficient-easel/panel";import{PaddingXIcon as q8}from"efficient-easel/icons";var tg="Side space",iO=hr.default,Y8="The room left at the left and right edge of every page.";function cO(e,o){return Hf(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:iO,bounds:hr},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:rf(o.gutter),bounds:Gl}})}function dO({value:e,onChange:o,unsetPx:t=iO,bounds:r=hr}){let a=e===null;return $f(V8,{label:i(tg),labelId:"sf-side-space",icon:$f(q8,{}),changed:!a,action:$f(K8,{words:ae()?.panel,label:i(tg),changed:!a,detail:`${t}px`,onReset:()=>o(null)}),hint:i(Y8),children:$f(Ko,{min:r.min,max:r.max,step:r.step,value:e,suffix:"px",placeholder:t,onClear:()=>o(null),ariaLabel:i(tg),onChange:o})})}import{jsx as rg}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as oPe,SettingsBackgroundWidth as X8,SettingsContentWidth as Z8}from"efficient-easel/panel";var J8="Background width",Q8="Content width";var Uf=e=>i(La[e==="content"?"page":"full"]),fO="The width of every section's background.",pO="The width of every section's content.";function uO({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return rg(X8,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(J8),full:Uf("full"),content:Uf("content")},resetWords:ae()?.panel})}function mO({mode:e,px:o,max:t=ho.max,min:r=ho.min,changed:a,detail:n,fullClosed:s,onMode:l,onPx:c,onReset:d,hint:f,labelId:u}){let p=i(Q8),x=e!=="full"?rg(Ko,{min:r,max:t,step:ho.step,value:Math.min(Math.max(o,r),t),onChange:c,suffix:"px",ariaLabel:p}):null;return rg(Z8,{mode:e,onMode:l,number:x,changed:a,detail:n,fullClosed:s,onReset:d,hint:f?i(f):void 0,labelId:u,words:{label:p,full:Uf("full"),content:Uf("content")},resetWords:ae()?.panel})}import{jsx as QO}from"react/jsx-runtime";import{TextStyleItem as f7,TextStylesGroup as p7}from"efficient-easel/text-styles";import{jsx as a7}from"react/jsx-runtime";import{useState as n7}from"react";import{TextStylesList as s7}from"efficient-easel/text-styles";import{usePreviewDevice as l7}from"efficient-easel/draw/client";import{defaultTextStyles as HO,textStyleCaseCss as YV,textStyleViewKey as XV}from"efficient-easel/text-styles/model";import{phoneKey as ZV,resolveViewValue as WO,tabletKey as JV}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as hO,VIEW_TABLET_MIN as xO}from"efficient-easel/draw";var jf=.02,IO=`(min-width: ${Or}px) and (max-width: ${hO-jf}px)`,gO=`(max-width: ${Or-jf}px)`,Kf=`(min-width: ${xO}px) and (max-width: ${hO-jf}px)`,Vf=`(max-width: ${xO-jf}px)`;import{textStyleCaseCss as eV,textStyleCaseOfCss as oV}from"efficient-easel/draw";function ls(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function is(e,o){return ls(e?.[o])??{}}function qf(e,o,t){let r=is(e,o);return Object.hasOwn(r,t)?ls(r[t])??{}:{}}function Yf(e,o,t,r){let{[t]:a,...n}=is(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...c}=e;return Object.keys(s).length?{...c,[o]:s}:c}var ig="_partStyles",cg="data-sf-part-styled",cs="data-sf-text-style",tV=/^(heading|body)-[1-7]$/;function za(e){return typeof e=="string"&&tV.test(e)}var Xf={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function rV(e){if(!e)return null;for(let[o,t]of Object.entries(Xf))if(t===e)return o;return null}function dg(e){if(za(e.textStyle))return e.textStyle;let o=ar(e.role);return o?Xf[o]:void 0}var aV=[400,500,600,700],Yl=["left","center","right","justify"],ag=5,ng=1e3,nV=-5,sV=10,fg=0,pg=64,ug=2,bO={size:{min:ag,max:ng,step:1},sizeTablet:{min:ag,max:ng,step:1},sizePhone:{min:ag,max:ng,step:1},padding:{min:fg,max:pg,step:ug}},lV=.05,iV=.01,cV=["line","letter"],dV=.5,fV=2.5,pV=-1,uV=1,mV=0,hV=400,xV=[...new Set(Object.values(kn))];function vO(e){return[`${e} { transition: translate var(--page-motion-hover-duration) var(--page-ease-media) var(--page-motion-hover-delay) }`,`${e}:hover, ${e}:active { translate: 0 calc(-1 * var(--page-hover-lift)) }`]}function SPe(e){return is(e,ig)}function Xl(e,o){return qf(e,ig,o)}function TO(e,o,t){return Yf(e,ig,o,IV(t).length?t:null)}function IV(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function gV(e){return cV.includes(e)}var ql=(e,o,t)=>Math.min(t,Math.max(o,e));function bV(e,o){if(gV(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:ql(t,nV,sV)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?ds(ql(t,dV,fV),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?ds(ql(t,pV,uV),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:ql(t,mV,hV)}if(Object.hasOwn(bO,e)){let{min:t,max:r}=bO[e],a=Math.round(Number(o));return Number.isFinite(a)?ql(a,t,r):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?ar(o)?o:null:e==="sizeToken"?mg(o)?o:null:e==="textStyle"?za(o)?o:null:e==="alignPhone"||e==="alignTablet"?Yl.includes(o)?o:null:o}var yV=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function fs(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of yV){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}return e.align!==void 0&&!Yl.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Yl.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Yl.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!za(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!mg(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!ar(e.fontRole)&&t("fontRole"),o??e}function mg(e){if(!e||typeof e!="object")return!1;let{step:o,px:t,stepPhone:r,pxPhone:a,fluid:n}=e,s=c=>typeof c=="number"&&Number.isFinite(c)&&c>0,l=c=>typeof c=="string"&&xV.includes(c);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||SV(n,t))}function SV(e,o){if(!e||typeof e!="object"||Array.isArray(e))return!1;let{minPx:t,vw:r,...a}=e;return Object.keys(a).length===0&&typeof t=="number"&&Number.isFinite(t)&&t>0&&t<o&&typeof r=="number"&&Number.isFinite(r)&&r>0&&r<=100}function hg(e){return e?.pxPhone&&mg(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function PO({step:e,px:o,fluid:t}){let r=t?`clamp(${t.minPx}px, ${t.vw}vw, ${o}px)`:`${o}px`,a=`var(--size-${e}, ${r})`;return e.startsWith("heading")?`min(${a}, var(--sf-heading-max,9999px))`:a}var wV=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function CV(e){let o=[];for(let[t,r]of wV)t===e?o.push(r):r===e&&o.push(t);return o}function Sr(e,o,t,r){let a={...Xl(e,o)},n=r==null?null:bV(t,r);if(n===null)delete a[t];else{a[t]=n;for(let s of CV(t))delete a[s]}return TO(e,o,a)}function EO(e,o){return TO(e,o,{})}function kV(e){return oV(e)??"none"}function vV(e){return eV(e)??""}var yO={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 TV(e,o){return ar(e.role)||(o?.blockDrawsStyle?null:rV(e.textStyle))}function OO(e,o){return e==="Text"&&o==="text"}var PV={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 EV(e){let o=kn[e],t=PV[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Zl(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=ds(OV+e.line*lV,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=ds(e.letter*iV,4)),o}var OV=1,Ga="--sf-part-para";function _V(e){e=fs(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=`${e.sizePhone}px`;else{let r=hg(e.sizeToken);if(r)o.fontSize=PO(r);else{let a=Jf(e);a!==void 0&&(o.fontSize=`${a}px`)}}let t=e.alignPhone??Zf(e);return t&&(o.textAlign=t),o}function Zf(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Jf(e){let o=It("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function AV(e){let o=fs(e),t={},r=Jf(o);r!==void 0&&(t.fontSize=`${r}px`);let a=Zf(o);return a&&(t.textAlign=a),t}function _O(e,o){if(o==="desktop")return;let t=fs(e);return(o==="mobile"?Zf(t):void 0)??t.align}function RV(e,o){if(o==="desktop")return e;let t=fs(e),r=Jf(t),a=Zf(t);if(o==="tablet"){let l=e;return r!==void 0&&(l={...l,size:r}),a&&(l={...l,align:a}),l}let n=e;if(typeof t.sizePhone=="number"&&t.sizePhone>0)n={...n,size:t.sizePhone};else{let l=hg(t.sizeToken);l?n={...n,size:void 0,sizeToken:l}:r!==void 0&&(n={...n,size:r})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function xg(e,o,t){return gg(RV(e,o),Qf,t)}function Ig(e){return e==="mobile"?"sizePhone":e==="tablet"?"sizeTablet":"size"}function AO(e,o){if(o==="desktop")return null;let t=fs(e);if(o==="mobile"){if(hg(t.sizeToken))return null;let r=Jf(t);if(r!==void 0)return{px:r,view:"tablet"}}return typeof t.size=="number"&&t.size>0?{px:t.size,view:"desktop"}:null}function RO(e,o){let t=Ig(o);if(!Object.hasOwn(e,t))return e;let r={...e};return delete r[t],r}function wPe(e,o,t){let r=xg(RO(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function gg(e,o,t){e=fs(e);let r=TV(e,t),a=Zl(e),n=e.size?`${e.size}px`:e.sizeToken?PO(e.sizeToken):r?EV(r):"";return{fontFamily:e.font?DV(e.font):e.fontRole?`var(${yO[e.fontRole]})`:r?`var(${yO[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`:"",[Ga]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:vV(e.case),textAlign:e.align??"",paddingTop:SO(e.padding),paddingBottom:SO(e.padding),color:LV(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var LV=e=>Gn(e),SO=e=>e===void 0?"":`${e}px`,ds=(e,o)=>Number(e.toFixed(o));function CPe(e,o){let t=Number.parseFloat(e.fontSize)||16,r=Number.parseFloat(e.lineHeight),a=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop);return{fontKey:o,sizePx:t,weight:FV(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?ds(r/t,3):1.2,letterEm:Number.isFinite(a)?ds(a/t,4):0,align:BV(e.textAlign),case:kV(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function FV(e){return Number.isFinite(e)?aV.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function BV(e){for(let o of Yl)if(o===e)return o;return e==="end"?"right":"left"}function kPe(e,o){let t=wO(e);if(!t)return"";for(let r of xt)if(wO(o(r.cssVar))===t)return r.key;return""}var wO=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function DV(e){let o=Cn(e);return o?`var(${o.cssVar})`:""}function vPe(e,o,t,r){return!o||DI(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function NV(e,o){return Object.hasOwn(e,o)?ls(e[o])??{}:{}}function TPe(e,o,t=()=>Qf,r=l=>l,a=WV,n="desktop",s=()=>!1){let l=0;for(let{element:c,partId:d}of e){let f=DI(d)?.propKey;if(!f)continue;let u=NV(o,r(f)),p=xg(u,n,{blockDrawsStyle:s(f)});za(u.textStyle)?c.setAttribute?.(cs,u.textStyle):c.removeAttribute?.(cs);let x=sg.some(g=>c.style[g]),I=!1;for(let[g,k]of Object.entries(p))$V(c,g,k),k&&(I=!0);if(x||sg.some(g=>p[g]))for(let g of MV(c,a))for(let k of sg)g.style[k]=p[k]??"";I&&(l+=1)}return l}function MV(e,o){let t=ns(e.textContent??""),r=[],a=e;for(let n=0;n<HV&&o(a);n+=1){let s=a.parentElement;if(!s||ns(s.textContent??"")!==t)break;r.push(s),a=s}return r}var HV=8;function WV(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Qf={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function GV(e){if(!e||typeof e!="object")return null;let o={};return za(e.textStyle)&&(o.textStyle=e.textStyle),typeof e.size=="number"&&e.size>0&&(o.size=e.size),typeof e.sizeTablet=="number"&&e.sizeTablet>0&&(o.sizeTablet=e.sizeTablet),typeof e.sizePhone=="number"&&e.sizePhone>0&&(o.sizePhone=e.sizePhone),Object.keys(o).length?o:null}function zV(e,o){let t=GV(e);if(!t)return{};let r=xg(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function LO(e){return za(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function PPe(e,o,t){if(!e||typeof e!="object")return{};let r=Zc(e.role,o,kn)??{},a=o.sized?zV(RO(e,t),t):{};return{...r,...a}}function EPe(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function $V(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===Ga&&(t?a.setAttribute?.(CO,""):a.removeAttribute?.(CO))}var CO="data-sf-part-para",UV=Object.keys(gg({},Qf)),lg=new Set(["color","overflowWrap",Ga,"fontStyle"]),sg=UV.filter(e=>!lg.has(e));function FO(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=as(u.key,u.row);for(let x of u.texts){let I=l.get(x);I?(I.keys.add(u.key),I.partKeys.add(p)):l.set(x,{keys:new Set([u.key]),partKeys:new Set([p])})}}let c=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!jV(u))continue;let p=kO(t,u,ls(o[u])??{},!1,n(u));p&&c.set(u,p)}let d=u=>{let p=r(u),x=n(p);if(!Object.hasOwn(o,p)&&!x)return null;let I=ls(o[p])??{};return kO(t,u,I,a(u),x)},f=new Map;for(let[u,{keys:p,partKeys:x}]of l){let I=x.size===1?[...x][0]:p.size===1?[...p][0]:null;if(!I)continue;let g=d(I);g&&f.set(u,g)}for(let u of e){if(!u.keyed)continue;let p=d(as(u.key,u.row));p&&c.set(u.key,p)}return f.size||c.size?{rules:f,kindRules:c,drawn:new Set(l.keys())}:null}function kO(e,o,t,r,a){let n=gg(t,Qf,{blockDrawsStyle:r}),s=AV(t),l=_V(t),c=za(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!c&&!a?null:{stamp:KV(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...c?{textStyle:c}:{},...a?{motion:a}:{}}}function jV(e){return e.startsWith("@")}function bg(e,o){return e?.kindRules.get(o)??null}function KV(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function yg(e){return e?{tablet:IO,phone:gO}:{tablet:Kf,phone:Vf}}function BO(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=yg(o),a=[],n=new Set,s=l=>{let{stamp:c,declarations:d}=l;if(n.has(c))return;n.add(c);let f=Object.entries(d).filter(([,S])=>S!==""),u=S=>S.map(([C,b])=>`${VV(C)}: ${b}`).join("; "),p=`[${cg}="${c}"]`,x=f.filter(([S])=>!lg.has(S)),I=f.filter(([S])=>lg.has(S));x.length&&a.push(`${p}, *:has(> ${p}) { ${u(x)} }`),I.length&&a.push(`${p} { ${u(I)} }`),d[Ga]&&(a.push(`*:has(> ${p}) { ${Ga}: ${d[Ga]} }`),a.push(...ep(p,`*:has(> ${p})`)));let g=Object.entries(l.tablet??{}).filter(([,S])=>S!=="");g.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(g)} } }`);let k=Object.entries(l.phone??{}).filter(([,S])=>S!=="");k.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(k)} } }`)};for(let l of e.rules.values())s(l);for(let l of e.kindRules.values())s(l);return a.join(`
|
|
60
|
+
`)}function ep(e,o){let t=`var(${Ga})`,r=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${t} }`,`${e} ${r}:not(:first-child) { margin-top: ${t} }`,`${e} ${r}:not(:last-child) { margin-bottom: ${t} }`,`:is(${o}) + :is(${o}) { margin-top: ${t} }`]}var VV=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function DO(e,o){if(!e)return null;let t=ns(o),r=e.rules.get(t);if(r)return r;if(t.length<qV||e.drawn.has(t))return null;let a=null;for(let[n,s]of e.rules)if(n.includes(t)){if(a&&a.stamp!==s.stamp)return null;a=s}return a}var qV=8;function NO(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}var Sg=e=>e==="sentence"?"none":void 0,GO=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],ps=["desktop","tablet","phone"],Jl=(e,o)=>o==="desktop"?e:o==="tablet"?JV(e):ZV(e),$a=(e,o)=>o==="desktop"?e:XV(e,o);function kg(e,o,t,r=vn()){return WO("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var QV=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function wg(e){for(let[o,t,r]of QV)for(let a of ps)if(e===$a(o,a))return{key:Jl(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function Zt(e){let o={};for(let t of GO)e[t]!==void 0&&(o[t]=e[t]);return o}function vg(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=GO.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function zO(e){let o=e.fonts,t=e.sizes,r=e.typography,a=_w(e.compression),n={"heading-1":{font:Z(o.heading),size:U(t.headingLarge),weight:U(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Sg(r.case),largestSize:U(r.maxPx)},"heading-2":{font:Z(o.heading2),size:U(t.headingMedium),weight:U(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Sg(r.case2)},"heading-3":{font:Z(o.heading3),size:U(t.headingSmall),weight:U(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Sg(r.case3)},"body-1":{font:Z(o.body),size:U(t.body)},"body-5":{font:Z(o.label),size:U(t.label)}};return HO().map(({id:s,kind:l,name:c})=>({id:s,kind:l,name:c,values:Zt(n[s]??{})}))}function Tg(e){return Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof o.id=="string"&&(o.kind==="heading"||o.kind==="body")&&typeof o.name=="string")?e.map(o=>vg({...o,values:Zt(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function GPe(e){return Tg(e)??[]}function $O(e){return Tg(e)??HO().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function wr(e,o){let t=zO(o),r=Tg(e);return r?r.map(a=>{let n={...Cg(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:Zt({...n,...a.values})}}):t}var Cg=(e,o)=>e.find(t=>t.id===o)?.values??{},MO=["heading-1","heading-2","heading-3"];function UO({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=zO(o),l=$O(e),c=wr(l,o),d=[],f=r.map(p=>{let x=t.find(T=>T.id===p.id),I=l.find(T=>T.id===p.id);if(!x||!I){let T=e7([p],a,n)[0],F=T.values.color;return F===void 0?T:{...T,values:{...T.values,color:Zo(F)}}}let g={...I.values},k=new Set(I.auto??[]),S=p.values,C=x.values,b=[...new Set([...Object.keys(S),...Object.keys(C)])].filter(T=>JSON.stringify(S[T])!==JSON.stringify(C[T])),v=T=>wg(T).spacing==="letter";b.sort((T,F)=>Number(v(T))-Number(v(F)));for(let T of b){let{key:F,view:P,spacing:D}=wg(T),O=F,R=S[T];if(R===void 0){delete g[O],Cg(s,p.id)[O]!==void 0&&(d.push([p.id,O]),k.add(O));continue}if(k.delete(O),D==="line")g[O]=us(R/100,3);else if(D==="letter"){let N={...c.find(L=>L.id===p.id)?.values??{}};for(let L of b)S[L]===void 0&&delete N[wg(L).key];let y=Zt({...N,...g}),A=kg(y,a({...p,values:y}),P);g[O]=A?us(R/A,4):0}else g[O]=R}return vg({id:p.id,kind:p.kind,name:p.name,values:Zt(g)},k)}),u=o.compression;if(d.some(([p,x])=>(x==="lineHeight"||x==="letterSpacing")&&MO.includes(p))&&ua(u)!=="normal"){for(let p of MO){let x=f.find(g=>g.id===p);if(!x)continue;let I={...x.values};for(let g of["lineHeight","letterSpacing"])d.some(([k,S])=>k===p&&S===g)||I[g]===void 0&&!(x.auto??[]).includes(g)&&(I[g]=Cg(s,p)[g]);x.values=Zt(I)}u="normal"}return{saved:f,old:{...o,compression:u}}}function jO(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=ua(e.old.compression)),t}var us=(e,o)=>Number(e.toFixed(o)),KO=(e,o)=>ps.indexOf(e)<ps.indexOf(o)?o:e;function VO(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of ps){let l=Jl("lineHeight",s),c=r.values[l],d=r.values[Jl("letterSpacing",s)];delete a[l],c!==void 0&&(a[$a("lineSpacing",s)]=us(c*100,1));let f=KO(s,t);d!==void 0&&(a[$a("letterSpacing",s)]=us(d*kg(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function e7(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let d of ps)delete n[$a("lineSpacing",d)],delete n[$a("letterSpacing",d)];let s={id:r.id,kind:r.kind,name:r.name,values:Zt(n)},l={...s.values},c=o({...s,values:{...s.values}});for(let d of ps){let f=a[$a("lineSpacing",d)],u=a[$a("letterSpacing",d)];if(typeof f=="number"&&(l[Jl("lineHeight",d)]=us(f/100,3)),typeof u=="number"){let p=kg(s.values,c,KO(d,t));l[Jl("letterSpacing",d)]=p?us(u/p,4):0}}return{...s,values:Zt(l)}})}function zPe(e){let o={fonts:Xs({heading:e.heading_font??void 0,heading2:e.heading_2_font??void 0,heading3:e.heading_3_font??void 0,body:e.body_font??void 0,accent:e.accent_font??void 0,label:e.label_font??void 0}),sizes:Fm({headingLarge:e.heading_size_large_px,headingMedium:e.heading_size_medium_px,headingSmall:e.heading_size_small_px,accent:e.accent_size_px,body:e.body_size_px,label:e.label_size_px}),compression:ua(e.heading_compression),typography:Rw(e)},t=e.text_styles??null,r=Array.isArray(t)?Pg(wr(t,o),o):o;return{fonts:Xs(r.fonts),sizes:Fm(r.sizes),compression:ua(r.compression),typography:r.typography,textStyles:t}}function Pg(e,o){let t=p=>e.find(x=>x.id===p)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),l=t("body-5"),c=o.fonts,d=o.sizes,f=o.typography,u=p=>p==="none"?"sentence":"authored";return{fonts:{...c,heading:r.font??c.heading,heading2:a.font??r.font??c.heading2,heading3:n.font??r.font??c.heading3,body:s.font??c.body,label:l.font??c.label},sizes:{...d,headingLarge:r.size??null,headingMedium:a.size??null,headingSmall:n.size??null,body:s.size??null,label:l.size??null},compression:o.compression,typography:{...f,case:u(r.letterCase),weight:r.weight??null,maxPx:r.largestSize??null,weight2:a.weight??null,weight3:n.weight??null,case2:u(a.letterCase),case3:u(n.letterCase)}}}function $Pe(e){let o=[];for(let t of e){let r=t.values,a=`.${NO(t)}`,n=`[${cs}="${t.id}"]`,s=`${a}, ${n}`,l=[],c=r.font!==void 0?xt.find(p=>p.key===r.font)?.cssVar:void 0;if(c&&l.push(`font-family: var(${c})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;l.push(`font-size: ${p}px`)}let d=Gn(r.color);d&&l.push(`color: ${d}`),r.italic===!0&&l.push("font-style: italic"),r.weight!==void 0&&l.push(`font-weight: ${r.weight}`);let f=[];r.lineHeight!==void 0&&f.push(`line-height: ${r.lineHeight}`),r.letterSpacing!==void 0&&f.push(`letter-spacing: ${r.letterSpacing}em`),t.kind==="body"&&l.push(...f);let u=YV(r.letterCase);u&&t.kind==="body"&&l.push(`text-transform: ${u}`),r.paragraphSpacing&&l.push(`--sf-part-para: ${r.paragraphSpacing}px`),l.length&&o.push(`${s} { ${l.join("; ")} }`),t.kind==="heading"&&f.length&&o.push(`${s}, ${a}:is(h1, h2, h3, h4), ${n}:is(h1, h2, h3, h4) { ${f.join("; ")} }`),t.kind==="heading"&&u&&o.push(`${n}, ${a}:is(h1, h2, h3, h4) { text-transform: ${u} }`),r.paragraphSpacing&&(o.push(`*:has(> ${n}) { --sf-part-para: ${r.paragraphSpacing}px }`),o.push(...ep(`:is(${s})`,`*:has(> ${n})`))),o.push(...o7(t,s,a,n))}return o.join(`
|
|
61
|
+
`)}function o7(e,o,t,r){let a=e.values,n=It("textSize",a.size,a.sizeTablet,a.sizePhone),s=It("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=It("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),c=It("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),d=It("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=WO("textSize",a.size,a.sizeTablet,a.sizePhone,vn()),u=t7[e.id],p=[];for(let[x,I]of[["tablet",Kf],["phone",Vf]]){let g=[],k=[],S=f[x],C=s[x],b=n[x]===void 0&&C===void 0||S===void 0?void 0:C===void 0?S:Math.min(S,C);b!==void 0&&k.push(`font-size: ${b}px`);let v=[];l[x]!==void 0&&v.push(`line-height: ${l[x]}`),c[x]!==void 0&&v.push(`letter-spacing: ${c[x]}em`),e.kind==="body"&&k.push(...v),d[x]!==void 0&&k.push(`--sf-part-para: ${d[x]}px`),k.length&&g.push(`${o} { ${k.join("; ")} }`),e.kind==="heading"&&v.length&&g.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${v.join("; ")} }`),d[x]!==void 0&&g.push(`*:has(> ${r}) { --sf-part-para: ${d[x]}px }`),d[x]!==void 0&&!a.paragraphSpacing&&g.push(...ep(`:is(${o})`,`*:has(> ${r})`)),b!==void 0&&u&&g.push(`.sf-themed-content { --size-${u}: ${b}px !important }`),g.length&&p.push(`@media ${I} { ${g.join(" ")} }`)}return p}var t7={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function UPe(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function qO(e){return e?Xf[e]:void 0}function Eg(e){let o=Zl(e);return Zt({font:e.font,color:e.color===void 0?void 0:Zo(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function YO(e){return Object.keys(Eg(e)).length>0}function XO({saved:e,old:o,styleId:t,values:r}){let a=$O(e);return{saved:r7(a,t,r),old:o}}function r7(e,o,t){return e.map(r=>r.id===o?vg({...r,values:Zt({...r.values,...t})},r.auto):r)}var i7={desktop:"desktop",tablet:"tablet",mobile:"phone"},ZO=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],c7=["size","lineSpacing","letterSpacing","letterCase"],d7=500,Og=xt.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function JO({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:c=!1,withoutSize:d=!1}){let f=l7(),[u,p]=n7(null),x=wr(e,o),I=i7[f],g=VO(x,a,I);return a7(s7,{styles:g,onChange:k=>n(UO({saved:e,old:o,cur:g,next:k,sizeOf:a,panelView:I})),fonts:Og,colours:t,colourNameOf:r,settings:d?ZO.filter(k=>k!=="size"):ZO,auto:c7,openId:s===void 0?u:s,onOpenChange:l??p,readOnly:c,device:I,fallback:k=>{let S=x.find(b=>b.id===(k.kind==="heading"?"heading-1":"body-1")),C={};return S?.values.font&&k.id!==S.id&&(C.font=S.values.font),k.kind==="heading"&&(C.weight=d7),C}})}var e_=["font","size","weight","emphasis"],u7=500;function m7({font:e,size:o,weight:t,italic:r}){let a={font:e};return o!==null&&(a.size=o),t!==null&&(a.weight=t),r!==null&&(a.italic=r),{id:"accent",kind:"heading",name:i("Emphasis"),values:a}}function h7(e,o){let t=[],r=e.values,a=o.values;return a.font!==r.font&&a.font!==void 0&&t.push({key:"font",value:a.font}),a.size!==r.size&&t.push({key:"size",value:a.size??null}),a.weight!==r.weight&&t.push({key:"weight",value:a.weight??null}),a.italic!==r.italic&&t.push({key:"italic",value:a.italic??null}),t}function o_(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=m7(e);return QO(p7,{label:i("Emphasis"),children:QO(f7,{style:s,fonts:Og,settings:n?e_.filter(l=>l!=="size"):e_,auto:["size"],fallback:()=>({weight:o??u7}),open:t,onOpenChange:r,onChange:l=>h7(s,l).forEach(a)})})}import{EmptyState as W7,SliderGroup as G7,Tabs as z7,Tooltip as pEe,tabButtonId as $7,tabPanelId as U7}from"efficient-shell/ui";import{ContrastIcon as j7,SettingsIcon as K7,TypeIcon as V7}from"efficient-easel/icons";function t_(e){switch(e.status){case"saved":return null;case"failed":return{msg:i("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:i("Not saved. Reload the page."),tone:"error"};case"template":return{msg:i("Templates keep their look. Press Done."),tone:"success"}}}}import{jsx as Lg}from"react/jsx-runtime";import{ListIcon as E7,PaddingTopIcon as O7}from"efficient-easel/icons";import{jsx as op}from"react/jsx-runtime";import{SettingsDefaultReset as x7,SettingsField as I7,SettingsSegmented as g7}from"efficient-easel/panel";import{WidthIcon as b7}from"efficient-easel/icons";function r_({value:e,resolved:o,onChange:t,label:r="Width",labelId:a,followsLabel:n,hint:s}){let l=e===void 0,c=l?o:e,d=i(r);return op(I7,{label:d,labelId:a,icon:op(b7,{}),value:l?n:void 0,changed:!l,action:op(x7,{words:ae()?.panel,label:d,changed:!l,onReset:()=>t(void 0)}),hint:s,children:op(g7,{options:[{label:i(La.full),id:"full"},{label:i(La.page),id:"content"}],value:c,ariaLabel:d,onChange:t})})}import{HEADER_TYPE as _g,FOOTER_TYPE as y7}from"efficient-easel/draw";var S7=new Set(["Hero","HeroSingle","IntroBleed"]),a_={min:56,max:140,default:88},u0e={min:0,max:120,step:2,default:32},m0e=`var(--sf-header-h, ${a_.default}px)`,w7="--sf-header-set-h",h0e="--sf-header-h",x0e=`var(${w7}, ${a_.default}px)`,I0e="sf-header-clearance",g0e="sf-sticky-underheader";function C7(e){return e?.find(o=>o?.type&&o.type!==_g)??null}function n_(e){let o=C7(e)?.type;return!o||!S7.has(o)}function b0e(e){return!n_(e)}function y0e(e){return!!e?.some(o=>o?.type===_g)}function S0e(e){return!e||e.length===0?!1:!e.some(o=>o?.type===_g||o?.type===y7)}var k7=["auto","shared","own"],Ag="auto",v7="topSpace",w0e="data-top-space";function T7(e){return k7.includes(e)?e:Ag}function P7(e,o){let t=T7(e?.props?.[v7]);return t==="own"?!0:t==="shared"?!1:n_(o)}function C0e(e,o){return P7(e,o)?"own":null}function _7(){return{type:"custom",render:({value:e,onChange:o})=>Lg(r_,{value:e==="full"?"full":e==="content"?"content":void 0,resolved:"content",label:"Page width",followsLabel:i("Follows the site"),hint:i("Whether this page sits on the site's content column, or runs edge to edge."),onChange:t=>o(t)})}}var A7=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],F0e={pageBackground:iE(),topSpace:Tt("Top space",Lg(O7,{}),A7,Ag),widthChoice:_7()},Ql=["pageBackground","topSpace","widthChoice"],R7="Record type",Rg=new Map,s_=-1;function L7(e){s_!==Jh()&&(Rg.clear(),s_=Jh());let o=Zh(),t=o.some(a=>a.key===e)?"":e,r=Rg.get(t);return r||(r=Tt(R7,Lg(E7,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Wr),Rg.set(t,r)),r}var l_=new WeakMap;function B0e(e,o){if(!Sl()||Zh().length<2||ud in e)return e;let t=L7(yl(o)),r=l_.get(e);if(r&&r.row===t)return r.fields;let a={[ud]:t,...e};return l_.set(e,{row:t,fields:a}),a}import{previewFrame as q7}from"efficient-easel/screen/lib/document/preview-dom";var i_="background";function c_(e){let o=Wo(Tn(e));return zn({main:o.accent,text:o.text,background:o.background,muted:o.muted}).map(t=>({key:t.name,name:t.label??t.name,value:t.value}))}function d_(e){return c_(e).filter(o=>o.key!==i_)}function f_(e){let o=c_(e).filter(t=>t.key===i_);return t=>{let r=Zo(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as F7}from"efficient-easel/easel";function tp({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=F7(P=>P),{fonts:a,setFonts:n,sizes:s,setSizes:l,headingCompression:c,setHeadingCompression:d,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:x}=xe(),I=t.data,g=I.root?.props??{},k=e?Xs(g.fonts):a,S=e?vw:s,C=e?ua(g.headingCompression):c,b=e?Aw(g.headingTypography):f,v={fonts:k,sizes:S,compression:C,typography:b},T=e?g.textStyles:p,F=P=>r({type:"replaceRoot",root:{...I.root,props:{...g,...P}},recordHistory:!0});return{fonts:k,sizes:S,compression:C,typography:b,old:v,saved:T,write:(P,D)=>{let O=Pg(wr(P.saved,P.old),P.old);e?F({textStyles:P.saved,fonts:O.fonts,headingCompression:O.compression,headingTypography:O.typography}):(x(P.saved),n(O.fonts),l(O.sizes),d(O.compression),u(O.typography)),o(jO(P,v),D)},writeRoot:F}}import{pictureShadowColor as Y7}from"efficient-easel/screen/lib/document/shadow-values";var Bg="sf-site-styles",X7="sf-site-styles-tabpanel",m_="text",xs="basics",p_="this-page-group",ms=[{id:xs,label:"Basics",icon:be(K7,{})},{id:"theme",label:"Theme",icon:be(j7,{})},{id:"text",label:"Text",icon:be(V7,{})}];function Z7({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=u_(d=>d),{theme:a,setTheme:n}=xe(),s=t.data,l=s.root?.props??{},c=d=>{if(e){let f={...l,theme:d};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(d);o({selected_preset:d.selected,theme_presets:d.themes})};return be(YE,{value:e?l.theme:a,onChange:c})}function J7({themeFromDocument:e,persist:o}){let[t,r]=Dg(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=xe(),c=tp({themeFromDocument:e,persist:o}),{old:d,saved:f,writeRoot:u}=c,p=c.fonts,x=c.sizes,I=c.typography,g=P=>P.values.size??tq(Q7[P.id]??"body")??eq[P.kind],k=P=>c.write(P),S=d_(a),C=f_(a),b=P=>{let D={...p,accent:P};e?u({fonts:D}):n(D),o({accent_font:P})},v=P=>{s({...x,accent:P}),o({accent_size_px:P})},T=P=>{let D={...I,weightStrong:P};e?u({headingTypography:D}):l(D),o({heading_weight_strong:P})},F=P=>{let D={...I,italicStrong:P};e?u({headingTypography:D}):l(D),o({accent_italic:P})};return Ua(hs,{children:[be(JO,{saved:f,old:d,colours:S,colourNameOf:C,sizeOf:g,onChange:k,openId:t===Fg?null:t,onOpenChange:r,withoutSize:e}),be(o_,{font:p.accent,size:x.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===Fg,onOpenChange:P=>r(P?Fg:null),onChange:P=>{P.key==="font"?b(P.value):P.key==="size"?v(P.value):P.key==="weight"?T(P.value):F(P.value)},withoutSize:e})]})}var Fg="accent",Q7={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},eq={heading:32,body:14},oq={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function tq(e){if(typeof document>"u")return null;let o=(q7()?.contentDocument??document).querySelector(oq[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function rq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=u_(u=>u),{cornerRadiusPx:a,setCornerRadiusPx:n}=xe(),s=t.data,l=s.root?.props??{},c=l.cornerRadiusPx===void 0?Pw[Tw(l.cornerStyle)]:Mt(l.cornerRadiusPx),d=e?c:a,f=u=>r({type:"replaceRoot",root:{...s.root,props:{...l,...u}},recordHistory:!0});return be(XE,{value:d,onChange:u=>{e?f({cornerRadiusPx:u}):n(u),o({corner_radius_px:u})}})}function aq(e){return{site_width:e}}function nq({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=xe();if(Ng()!=="desktop")return null;let l=typeof o=="number"?o:ho.default,c=u=>{t(u),e(aq(u),u===null)},d=u=>{a(u),e({section_background_width:u},!0)},f=u=>{s(u),e({section_content_width:u},!0)};return Ua(hs,{children:[be(uO,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:d,onReset:()=>d(null),hint:fO}),be(mO,{mode:n??"content",px:l,min:ho.min,max:ho.max,changed:typeof o=="number"||n!==null,detail:`${i("Content width")} ${ho.default}px`,onMode:f,onPx:u=>c(u),onReset:()=>{f(null),c(null)},hint:pO})]})}function sq(e){return{block_gap:e}}function lq(e){return{block_gap_phone:e}}function iq(e){return{site_gutter:e}}function cq(e){return{site_gutter_phone:e}}function h_(e,[o,t],r){o(e),r(t(e),e===null)}function dq({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a}=xe(),n=cO(Ng(),{gutter:o,phone:t});if(!n)return null;let s=n.key==="site_gutter_phone"?[a,cq]:[r,iq];return be(dO,{value:n.value,onChange:l=>h_(l,s,e),unsetPx:n.unsetPx,bounds:n.bounds})}function fq({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a}=xe(),n=tO(Ng(),{gap:o,phone:t});if(!n)return null;let s=n.key==="block_gap_phone"?[a,lq]:[r,sq];return be(rO,{value:n.value,onChange:l=>h_(l,s,e),followsPx:n.followsPx})}function pq({persist:e}){return Ua(hs,{children:[be(nq,{persist:e}),be(dq,{persist:e}),be(fq,{persist:e})]})}function uq(e){return{card_shadow:e}}function mq(e){return e===null?{shadow_color:null}:{shadow_color:Y7(e)}}function hq(e){return{hover_effect:e}}function xq({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=xe();return Ua(hs,{children:[be(ZE,{value:o,onChange:l=>{t(l),e(uq(l),!0)}}),be(eO,{value:r,onChange:l=>{a(l),e(mq(l),l===null)}}),be(aO,{value:n,onChange:l=>{s(l),e(hq(l),!0)}})]})}function Iq(e){return{photography_grayscale:e}}function gq({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=xe();return be(sO,{value:o,onChange:r=>{t(r),e(Iq(r),!0)}})}function bq({persist:e}){return be(hs,{children:be(gq,{persist:e})})}function yq(e){return{share_button_on_posts:e}}function Sq({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=xe();return be(lO,{value:o,onChange:r=>{t(r),e(yq(r),!0)}})}function Is(){let{websiteName:e}=xe();return e?.trim()||lC}function rp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:c}){let{persist:d}=Kn({themeFromDocument:e,tokenRef:o,siteId:t,onResult:k=>{let S=t_(k);S&&r?.(S.msg,S.tone)}}),[f,u]=Dg(s??ms[0].id),p=a!==void 0,x=p?a:f,I=p?n??(()=>{}):u,g=ms.find(k=>k.id===x)??ms[0];return Ua(G7,{children:[be(kq,{activeId:g.id,onSelect:I}),Ua("div",{id:U7(Bg,g.id),className:X7,role:"tabpanel","aria-labelledby":$7(Bg,g.id),children:[x===xs&&Ua(hs,{children:[be(rq,{themeFromDocument:e,persist:d}),!e&&be(xq,{persist:d}),!e&&be(pq,{persist:d}),!e&&be(bq,{persist:d}),!e&&be(Sq,{persist:d}),be(wq,{reveal:l,onRevealed:c})]}),x==="theme"&&be(Z7,{themeFromDocument:e,persist:d}),x==="text"&&be(J7,{themeFromDocument:e,persist:d})]})]})}function wq({reveal:e,onRevealed:o}){let[t,r]=Dg(!0),a=H7(o);return a.current=o,M7(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(p_)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),be(N7,{title:i("This page"),open:t,onToggle:r,id:p_,children:be(Cq,{})})}function Cq(){let{fields:e,values:o,readOnly:t,onChange:r}=B7(),a=Object.fromEntries(Ql.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?be(W7,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):be(D7,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function kq({activeId:e,onSelect:o}){return be("div",{className:"es-insp-tabs",children:be(z7,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:Bg,value:e,onChange:o,items:ms.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as Fq}from"efficient-easel/chrome";import{Button as C_,Dialog as Bq,FormField as Dq,Input as k_,PopupMenu as Nq,PopupMenuItem as v_,toast as T_}from"efficient-shell/ui";import{LayersTree as Mq,TreeGroupLabel as Hq,TreeRow as P_,TreeRowAction as lp}from"efficient-easel/tree";import{AddIcon as Wq,DuplicateIcon as Gq,PageIcon as zq,SettingsIcon as $q}from"efficient-easel/icons";import{PagesIcon as Uq}from"efficient-easel/rail";import{useEaselHost as jq}from"efficient-easel/screen/lib/host";import{useEaselSession as A_}from"efficient-easel/screen/lib/session-context";import{useCallback as ap,useEffect as vq,useSyncExternalStore as Tq}from"react";import{useScreenDocument as b_}from"efficient-easel/screen/components/ScreenDocumentContext";var x_=new WeakMap;function ei(e){let o=x_.get(e);return o||(o={rows:null,loading:null,listeners:new Set},x_.set(e,o)),o}function Mg(e,o){e.rows=o;for(let t of e.listeners)t()}var np=new Set;function sp(e,o){o?np.add(e):np.delete(e)}function I_(e){let o=ei(e),t=e.listPages().then(r=>Mg(o,np.size?r.filter(a=>!np.has(a.id)):r),()=>Mg(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var g_=()=>null,Pq=()=>()=>{};function oi(){let{adapter:e,ready:o}=b_(),t=ap(l=>{let{listeners:c}=ei(e);return c.add(l),()=>c.delete(l)},[e]),r=ap(()=>ei(e).rows,[e]),a=Tq(o?t:Pq,o?r:g_,g_);vq(()=>{if(!o)return;let l=ei(e);l.rows===null&&!l.loading&&I_(e)},[e,o]);let n=ap(()=>o?I_(e):Promise.resolve(),[e,o]),s=ap(l=>Mg(ei(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function Eq(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function y_(){let{currentSlug:e}=b_(),{rows:o}=oi();return Eq(o,e)}import{canDuplicatePage as Kq,DuplicatePageDialog as Vq,uniqueSlug as E_}from"efficient-easel/page-copy";var O_="sf-editor-pages-collapsed-groups";function qq(){let e=A_(),{siteId:o,templateId:t}=__(),r=Ue(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function Yq(){try{let e=Rn()||(typeof window>"u"?"":window.location.origin);return e?new URL(e).host:""}catch{return""}}function R_({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=A_().chrome?.pageRows,n=jq(),{adapter:s,capabilities:l,ready:c,currentSlug:d}=__(),f=Is(),{rows:u,reload:p,setRows:x,getRows:I}=oi(),[g,k]=Jr(""),[S,C]=Jr(!1),[b,v]=Jr(null),[T,F]=Jr(!1),[P,D]=Jr(""),O=Aq(),R=qq(),[N,y]=Jr(null),[A,L]=Jr(()=>{if(typeof window>"u")return new Set;try{let W=window.localStorage.getItem(O_);return new Set(W?JSON.parse(W):[])}catch{return new Set}});_q(()=>{try{window.localStorage.setItem(O_,JSON.stringify([...A]))}catch{}},[A]);let H=W=>L(Fe=>{let le=new Set(Fe);return le.has(W)?le.delete(W):le.add(W),le}),X=w_(()=>Av(u??[]),[u]),q=g.trim().toLowerCase(),j=W=>!q||W.toLowerCase().includes(q),Ie=W=>q?!0:!A.has(W),te=w_(()=>new Set((u??[]).map(W=>W.slug)),[u]),Le=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}D(""),v(null),F(!0)},We=async()=>{let W=P.trim();if(!(!W||!c||S||!s.createPage)){C(!0),v(null);try{let Fe=await s.createPage({slug:E_(W,te),title:W,layout:{}});await p(),F(!1),D(""),e(Fe.slug)}catch{v(i("Couldn\u2019t add the page \u2014 please retry."))}finally{C(!1)}}},Ee=l.hasSiteSettings&&!!s.createPage,ge=async()=>{if(!(!c||S||!s.createPage)){C(!0),v(null);try{let W=await s.createPage(EP(i("New popup"),te));await p(),e(W.slug)}catch{v(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{C(!1)}}},Oe=Rq(null),[Ge,to]=Jr(null),Co=()=>{if(!Ee)return Le();if(Ge)return to(null);let W=Oe.current?.getBoundingClientRect();W&&to({top:W.bottom+6,right:Math.max(8,window.innerWidth-W.right)})},he=W=>{let Fe=u??[],le=s.deletePage;if(!c||S||!le||Fe.length<=1)return;let Be=Fe.findIndex(Qe=>Qe.id===W.id),_e=Fe.filter(Qe=>Qe.id!==W.id),ut=W.slug===d;sp(W.id,!0),x(_e),v(null),ut&&_e[0]&&e(_e[0].slug);let Dt=()=>{sp(W.id,!1);let Qe=I()??[];if(Qe.some(Nt=>Nt.id===W.id))return;let mt=[...Qe];mt.splice(Math.max(0,Math.min(Be,mt.length)),0,W),x(mt)};T_.undoable(i("Deleted \u201C{name}\u201D",{name:W.label}),{actionLabel:i("Undo"),commit:async Qe=>{await le(W.id,Qe),sp(W.id,!1)},undo:()=>{Dt(),ut&&e(W.slug)},onFail:()=>{Dt(),T_.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Ve=W=>n.send("storefront-editor:open-page",{slug:W}),ve=W=>{if(!j(W.label))return null;let Fe=!t&&W.slug===d,le=l.canDeletePagesInline&&(u??[]).length>1,Be=Ca(W),_e=_v(W),ut=[...Be?[{label:i("Dynamic"),tone:"info"}]:[],..._e?[{label:i("Lightbox"),tone:"success"}]:[],...W.draft?[{label:i("draft"),tone:"draft"}]:[]],Dt=ut.length>0?ut:void 0,Qe=!!R&&Kq(W),mt=Qe||l.pageCreationInAdminForm||le?ti(S_,{children:[Qe&&Ce(lp,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:W.label}),disabled:S,onClick:()=>y(W),children:Ce(Gq,{size:13})}),l.pageCreationInAdminForm&&Ce(lp,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:W.label}),onClick:()=>Ve(W.slug),children:Ce($q,{size:13})}),le&&Ce(lp,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:W.label}),disabled:S,onClick:()=>he(W),children:Ce(Hg,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Ce(P_,{icon:Ce(zq,{size:14}),name:W.label,selected:Fe,onSelect:()=>e(W.slug),badge:Dt,actions:mt,rowProps:{"data-page-slug":W.slug}},W.id)},Te=(W,Fe,le)=>{let Be=le.filter(Boolean);if(Be.length===0)return null;let _e=Ie(W);return ti(Oq,{children:[Ce(Hq,{count:Be.length,countLabel:Oo("{n} page","{n} pages",Be.length),expanded:_e,onToggle:()=>H(W),children:Fe}),_e&&Be]},W)},Je=(a?.rows??[]).filter(W=>j(W.label)).map(W=>{let Fe=t===W.key;return Ce(P_,{icon:W.icon,name:W.label,selected:Fe,onSelect:()=>r(W.key),badge:{label:i("Preview"),tone:"warning"},actions:Ce(lp,{kind:"plain",label:i("Open the {name} in a new tab",{name:W.label}),onClick:()=>window.open(W.href,"_blank","noopener,noreferrer"),children:Ce(Hg,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":W.key}},W.key)}),Bt=l.hasSiteSettings&&!!a,Mo=(()=>{if(u===null)return null;let W=[],Fe=!1;for(let le of X){Bt&&!Fe&&le.key.startsWith("system:")&&(W.push(Te("shop",a.title,Je)),Fe=!0);let Be=le.key===ox||le.label===ex?i(le.label):le.label;W.push(Te(le.key,Be,le.rows.map(ve)))}return Bt&&!Fe&&W.push(Te("shop",a.title,Je)),W})();return ti("div",{className:"sf-pages",children:[Ce(Lq,{icon:Ce(Uq,{}),title:i("Pages"),context:f,actions:Ce(Fq,{buttonRef:Oe,label:Ee?i("Add"):i("New page"),hasPopup:Ee?"menu":void 0,expanded:Ee?Ge!==null:void 0,onClick:Co,children:Ce(Wq,{size:15})})}),Ge&&Ce(Nq,{portal:!0,style:{top:Ge.top,right:Ge.right},onClose:()=>to(null),children:ti("div",{role:"menu","aria-label":i("Add"),children:[Ce(v_,{role:"menuitem",onClick:()=>{to(null),Le()},children:i("Page")}),Ce(v_,{role:"menuitem",disabled:S,onClick:()=>{to(null),ge()},children:i("Popup")})]})}),Ce("div",{className:"sf-pages-find",children:Ce(k_,{type:"search",leftIcon:Ce(Hg,{name:"search",size:14,rounded:!0}),placeholder:i("Search all pages\u2026"),value:g,onChange:W=>k(W.target.value),"aria-label":i("Search all pages")})}),b&&!T&&Ce("div",{className:"sf-note sf-note--error",role:"alert",children:b}),Mo===null?Ce("div",{className:"sf-note",children:i("Loading\u2026")}):Mo.some(Boolean)?Ce(Mq,{ariaLabel:i("Pages"),className:"sf-scroll",children:Mo}):Ce("div",{className:"sf-note",children:g.trim()?i("No pages match your search"):i("No pages yet. Add one with + above.")}),R&&N&&Ce(Vq,{source:{title:N.label,slug:N.slug},taken:te,host:Yq(),duplicate:W=>R(N,W),onClose:()=>y(null),onDuplicated:W=>{y(null),p(),e(W.slug)}},N.id),Ce(Bq,{open:T,onClose:()=>F(!1),size:"sm",title:i("Add a page"),description:i("Give the new template page a name. It starts blank \u2014 add sections once it opens."),footer:ti(S_,{children:[Ce(C_,{variant:"secondary",onClick:()=>F(!1),children:i("Cancel")}),Ce(C_,{onClick:()=>{We()},disabled:S||!P.trim(),loading:S,children:i("Add page")})]}),children:Ce(Dq,{label:i("Page name"),htmlFor:O,hint:P.trim()?i("URL: /{slug}",{slug:E_(P,te)}):void 0,error:b??void 0,children:Ce(k_,{id:O,value:P,invalid:!!b,onChange:W=>D(W.target.value),onKeyDown:W=>{W.key==="Enter"&&We()},placeholder:i("e.g. About")})})})]})}import{jsx as B_}from"react/jsx-runtime";import{createContext as Zq,useCallback as Jq,useContext as Qq,useMemo as eY,useState as oY}from"react";import{CanvasChromeContext as tY}from"efficient-easel/easel";import{useSelectHandler as rY}from"efficient-easel/draw/client";import{parseHexColor as Xq}from"efficient-shell/format";var ip=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],gs=ip[0];var ja="right";function cp(e){return ip.includes(e??"")?e:gs}function L_(e){return e==="left"?"left":ja}function F_(e){return e&&Xq(e)===e.toLowerCase()?e.toLowerCase():""}var D_="chat",dp={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:ja,launcherLabel:"",showOnPhones:!0};function rOe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:F_(e.launcherColor),launcherIcon:e.launcherIcon?cp(e.launcherIcon):"",launcherPosition:L_(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var N_=Zq({chat:dp,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function aOe({children:e,chat:o=dp,onChatChange:t}){let[r,a]=oY(!1),n=Jq(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=rY(),c=eY(()=>({selected:()=>r?D_:null,select:d=>d===D_&&s()}),[r,s]);return B_(N_.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:B_(tY.Provider,{value:c,children:e})})}var fp=()=>Qq(N_);import{jsx as Wg}from"react/jsx-runtime";import{DesktopIcon as aY,PhoneIcon as nY,TabletIcon as sY}from"efficient-easel/icons";import{VIEW_TIERS as lY,VIEW_TIER_LABEL as iY}from"efficient-easel/draw";var cY={desktop:Wg(aY,{}),tablet:Wg(sY,{}),mobile:Wg(nY,{})},M_=lY.map(e=>({id:e,get label(){return i(iY[e])},icon:cY[e]}));import{PreviewDeviceContext as qce}from"efficient-easel/draw/client";import{jsx as dY}from"react/jsx-runtime";import{createContext as fY,useCallback as H_,useContext as pY,useMemo as uY,useRef as mY}from"react";var hY=Object.fromEntries(Ac.map(e=>[e,{value:"",error:null}])),W_=fY({links:cC,rows:hY,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function mOe({children:e,value:o}){let t=mY(()=>{}),r=H_(()=>t.current(),[]),a=H_(s=>{t.current=s},[]),n=uY(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return dY(W_.Provider,{value:n,children:e})}var ri=()=>pY(W_);import{jsx as xY}from"react/jsx-runtime";import{createContext as IY,useContext as gY,useMemo as bY,useState as yY}from"react";var G_=IY(null);function gOe({children:e}){let[o,t]=yY(null),r=bY(()=>({surface:o,setSurface:t}),[o]);return xY(G_.Provider,{value:r,children:e})}function z_(){return gY(G_)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as SY}from"efficient-easel/draw/client";var ai="Scrolling Bar",{Provider:SOe,useSelection:$_}=SY("selectedHeroId"),wOe="data-sf-hero-ticker";function COe(e){return`${e}::ticker`}function kOe(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var U_=["","","","","",""],j_="#ticker",ni="strip",Gg={sectionAccent:Ht,line:!1};function wY(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function zg(e){return wY(e).length>0}function POe(e){return e.showTicker!==!1&&zg(e)}import{createPreviewSelectionContext as CY}from"efficient-easel/draw/client";var{Provider:_Oe,useSelection:pp}=CY("selectedHeroPart");var V_=["one","side","stacked"];var ROe={one:"One",side:"Side by side",stacked:"Stacked"};function up(e){return V_.includes(e)?e:"one"}function K_(e){return e==="one"?1:2}function $g(e,o){if(V_.includes(e))return e;let t=up(o);return t==="side"?"stacked":t}function si(e){let o=up(e.mediaLayout);return Math.max(K_(o),K_($g(e.mediaLayoutPhone,o)))}var Ka=["media","image","image2"],Va={media:"Media",image:"Image",image2:"Image 2"},li={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function mp(e,o){return e==="image"&&si(o)>1?"Image 1":Va[e]}var DOe="Video file",NOe="Upload a video file";function kY(e,o){return{field:"mediaType",is:e,default:o}}var vY=new Set(["HeroSingle"]),q_="heroPart";function TY(e,o){return{...o,[q_]:e}}function MOe(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e};for(let s of["image","video"])for(let l of t[s])n[l]=ze(n[l],kY(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=ze(n[s],l));for(let s of Ka)for(let l of o[s]??[])n[l]=TY(s,n[l]);return n}function PY(e){let o=e?.[q_];return Ka.includes(o)?o:null}function Y_(e,o){let t={};for(let[r,a]of Object.entries(e))PY(a)===o&&(t[r]=a);return t}function X_(e){if(!vY.has(e.type))return[];let o=[{part:"media",label:Va.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:mp("image",e.props),depth:1}),si(e.props)>1&&o.push({part:"image2",label:mp("image2",e.props),depth:1})),o}function ii(e,o){return`${e}::${o}`}function Z_(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Ka.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var J_="data-sf-hero-part";import{jsx as Se,jsxs as sa,Fragment as AD}from"react/jsx-runtime";import{useEasel as fne,useRootFields as pne}from"efficient-easel/easel";import{Button as une,EmptyState as mne}from"efficient-shell/ui";function Q_({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Ca({kind:e})?i("Template"):i("Page")}}import{headWords as BD,InspectorHead as hne,InspectorIconButton as RD}from"efficient-easel/chrome";import{DuplicateIcon as xne,TrashIcon as Ine}from"efficient-easel/icons";import{panelFieldsOf as gne}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as B,Fragment as ue,jsxs as me}from"react/jsx-runtime";import{BlockBannerIcon as _Y,BlockBoxIcon as AY,BlockButtonIcon as RY,BlockDividerIcon as oA,BlockFooterIcon as tA,BlockHeadingIcon as LY,BlockProductIcon as FY,BlockSocialIcon as BY,BlockTextIcon as DY,CardPaymentIcon as NY,ChatIcon as MY,AccountIcon as HY,GlobeIcon as WY,GridIcon as GY,ImageIcon as jg,MapIcon as zY,MediaIcon as $Y,PageIcon as UY}from"efficient-easel/icons";import{jsx as Ug,Fragment as EY,jsxs as OY}from"react/jsx-runtime";var eA=OY(EY,{children:[Ug("circle",{cx:"9",cy:"20",r:"1.3"}),Ug("circle",{cx:"18",cy:"20",r:"1.3"}),Ug("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"})]});var jY={header:me(ue,{children:[B("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),B("path",{d:"M3 9.5h18"})]}),social:me(ue,{children:[B("circle",{cx:"6",cy:"12",r:"2.5"}),B("circle",{cx:"18",cy:"6",r:"2.5"}),B("circle",{cx:"18",cy:"18",r:"2.5"}),B("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:me(ue,{children:[B("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),B("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:me(ue,{children:[B("path",{d:"M4 15.5h6M4 18h4"}),B("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:B("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:me(ue,{children:[B("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),B("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:B("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:me(ue,{children:[B("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),B("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:me(ue,{children:[B("circle",{cx:"11",cy:"11",r:"6"}),B("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:eA,CountrySwitchBlock:me(ue,{children:[B("circle",{cx:"12",cy:"12",r:"8.5"}),B("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"})]}),ThemeSwitchBlock:me(ue,{children:[B("circle",{cx:"12",cy:"12",r:"8.5"}),B("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:me(ue,{children:[B("path",{d:"M3 9h18"}),B("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:me(ue,{children:[B("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),B("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:me(ue,{children:[B("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),B("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:me(ue,{children:[B("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),B("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),B("path",{d:"M7 17h7"})]}),Collections:me(ue,{children:[B("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),B("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),B("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:me(ue,{children:[B("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),B("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:me(ue,{children:[B("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),B("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),B("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),B("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),B("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:me(ue,{children:[B("path",{d:"M3 7h9M15.5 7H21"}),B("circle",{cx:"13.5",cy:"7",r:"1.7"}),B("path",{d:"M3 12h4M10.5 12H21"}),B("circle",{cx:"8.5",cy:"12",r:"1.7"}),B("path",{d:"M3 17h9M15.5 17H21"}),B("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:me(ue,{children:[B("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),B("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:me(ue,{children:[B("path",{d:"M3 5h10"}),B("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),B("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),B("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:me(ue,{children:[B("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),B("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),B("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:me(ue,{children:[B("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),B("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),B("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),B("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:me(ue,{children:[B("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),B("circle",{cx:"9",cy:"10",r:"1.6"}),B("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:me(ue,{children:[B("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),B("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:me(ue,{children:[B("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),B("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),B("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:me(ue,{children:[B("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),B("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:me(ue,{children:[B("path",{d:"M3.5 20h17"}),B("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:me(ue,{children:[B("circle",{cx:"6",cy:"12",r:"2.6"}),B("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),B("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:me(ue,{children:[B("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),B("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:me(ue,{children:[B("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),B("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:me(ue,{children:[B("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),B("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:me(ue,{children:[B("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),B("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:me(ue,{children:[B("path",{d:"M4 8.5h4.5M11 8.5h9"}),B("path",{d:"M4 14.5h16"})]}),HeroGroup:me(ue,{children:[B("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),B("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:me(ue,{children:[B("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),B("path",{d:"M6.5 9h11M6.5 12.5h11"}),B("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:B(ue,{children:B("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:me(ue,{children:[B("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),B("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:me(ue,{children:[B("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),B("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),B("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),B("path",{d:"M4 13.5h11M4 17.5h7"}),B("path",{d:"M17 15l3 2-3 2"})]}),Contents:me(ue,{children:[B("path",{d:"M4 7h2M4 12h2M4 17h2"}),B("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:me(ue,{children:[B("path",{d:"M4 6h9M4 11h5M4 16h5"}),B("circle",{cx:"15",cy:"15",r:"4"}),B("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:B("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},KY=B("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),VY={footer:tA,Footer:tA,Divider:oA,FooterDivider:oA,Banner:_Y,Flex:AY,FooterSocial:BY,FooterPayment:NY,page:UY,website:WY,AccountBlock:HY,chat:MY,Heading:LY,Text:DY,ImageBlock:jg,ButtonBlock:RY,LocationMap:zY,Grid:GY,ProductRef:FY,heroMedia:$Y,heroImage:jg,heroImage2:jg},qY={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function qa({type:e,size:o=16,className:t}){let r=qY[e]??e,a=VY[r];return a?B(a,{size:o,className:t}):B("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:jY[r]??KY})}import{PanelHideButton as LD}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as bne}from"efficient-easel/screen/lib/session-context";import{jsx as ke,jsxs as ci,Fragment as YY}from"react/jsx-runtime";import{useEffect as XY,useId as rA,useState as ZY}from"react";import{IconPicker as JY}from"efficient-shell/ui";import{SettingsDefaultReset as QY,SettingsField as di,SettingsSegmented as e9,SettingsSwitch as aA}from"efficient-easel/panel";import{ButtonIcon as o9,ButtonIconIcon as t9,EyeIcon as r9,PhoneIcon as a9,PlacementIcon as n9,TypeIcon as s9}from"efficient-easel/icons";var l9="Chat with us",i9="We usually reply within a few minutes",c9="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function hp({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=ZY(o);XY(()=>l(o),[o]);let c=()=>{s!==o&&r(s)};return ke(di,{label:e,icon:ke(s9,{}),changed:o!=="",action:ke(fi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?ke("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:c,"aria-label":e}):ke("input",{type:"text",value:s,placeholder:t,onChange:d=>l(d.target.value),onBlur:c,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function fi({label:e,changed:o,onReset:t}){return ke(QY,{words:ae()?.panel,label:e,changed:o,onReset:t})}function d9({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=rA();return ke(di,{label:e,labelId:s,icon:o,changed:t!==r,action:ci("span",{className:"inline-flex items-center gap-2",children:[ke(aA,{checked:t,onChange:a,ariaLabelledBy:s}),ke(fi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var f9=ip.map(e=>({value:e,icon:Id(e)}));function p9(){let{theme:e}=xe(),o=ro(e).themes[0];return Qs(o)??o?.accent??""}function nA(){let{chat:e,setChat:o}=fp(),t=rA(),r=p9(),a=e.launcherIcon?cp(e.launcherIcon):gs;return ci(YY,{children:[ke(di,{label:i("Show the chat bubble"),labelId:t,icon:ke(r9,{}),changed:!e.enabled,action:ci("span",{className:"inline-flex items-center gap-2",children:[ke(aA,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),ke(fi,{label:i("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?i("The floating chat bubble shows in the corner of every page."):i("The chat bubble is hidden across the whole site.")}),ci(kI,{title:i("Look"),children:[ke(Uo,{label:i("Button color"),icon:ke(o9,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:i("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),ke(di,{label:i("Icon"),icon:ke(t9,{}),value:ke(mI,{value:a}),changed:a!==gs,action:ke(fi,{label:i("Icon"),changed:a!==gs,onReset:()=>o({launcherIcon:""})}),children:ke(JY,{label:i("Icon"),value:a,options:f9,onChange:n=>o({launcherIcon:n===gs?"":n})})}),ke(di,{label:i("Position"),icon:ke(n9,{}),changed:e.launcherPosition!==ja,action:ke(fi,{label:i("Position"),changed:e.launcherPosition!==ja,onReset:()=>o({launcherPosition:ja})}),children:ke(e9,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),ke(hp,{label:i("Label"),value:e.launcherLabel,placeholder:i("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:i("Shows when a visitor points at the button")}),ke(d9,{label:i("Show on phones"),icon:ke(a9,{}),checked:e.showOnPhones,fallback:dp.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),ci(kI,{title:i("Wording"),children:[ke(hp,{label:i("Title"),value:e.title,placeholder:l9,onCommit:n=>o({title:n})}),ke(hp,{label:i("Subtitle"),value:e.subtitle,placeholder:i9,onCommit:n=>o({subtitle:n})}),ke(hp,{label:i("Greeting message"),value:e.greeting,placeholder:c9,onCommit:n=>o({greeting:n}),multiline:!0}),ke("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Ya,Fragment as ub,jsxs as dA}from"react/jsx-runtime";import{useEffect as z9,useId as iA,useState as cA}from"react";import{SettingsField as $9}from"efficient-easel/panel";import{jsx as L9}from"react/jsx-runtime";import{forwardRef as u9,createElement as Kg}from"react";var sA={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 ie=(e,o,t,r)=>{let a=u9(({color:n="currentColor",size:s=24,stroke:l=2,title:c,className:d,children:f,...u},p)=>Kg("svg",{ref:p,...sA[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...u},[c&&Kg("title",{key:"svg-title"},c),...r.map(([x,I])=>Kg(x,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var m9=[["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"}]],Vg=ie("outline","brand-facebook","BrandFacebook",m9);var h9=[["path",{d:"M3 7a4 4 0 0 1 4 -4h10a4 4 0 0 1 4 4v10a4 4 0 0 1 -4 4h-10a4 4 0 0 1 -4 -4l0 -10",key:"svg-0"}],["path",{d:"M8.5 12a3.5 3.5 0 1 0 7 0a3.5 3.5 0 0 0 -7 0",key:"svg-1"}],["path",{d:"M17 7v.01",key:"svg-2"}]],qg=ie("outline","brand-instagram","BrandInstagram",h9);var x9=[["path",{d:"M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01",key:"svg-0"}]],Yg=ie("outline","brand-line","BrandLine",x9);var I9=[["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"}]],Xg=ie("outline","brand-linkedin","BrandLinkedin",I9);var g9=[["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"}]],Zg=ie("outline","brand-pinterest","BrandPinterest",g9);var b9=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Jg=ie("outline","brand-telegram","BrandTelegram",b9);var y9=[["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"}]],Qg=ie("outline","brand-tiktok","BrandTiktok",y9);var S9=[["path",{d:"M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5",key:"svg-0"}],["path",{d:"M11.197 15.698c-.69 .196 -1.43 .302 -2.197 .302a8.008 8.008 0 0 1 -2.612 -.432l-2.388 1.432v-2.801c-1.237 -1.082 -2 -2.564 -2 -4.199c0 -3.314 3.134 -6 7 -6c3.782 0 6.863 2.57 7 5.785l0 .233",key:"svg-1"}],["path",{d:"M10 8h.01",key:"svg-2"}],["path",{d:"M7 8h.01",key:"svg-3"}],["path",{d:"M15 14h.01",key:"svg-4"}],["path",{d:"M18 14h.01",key:"svg-5"}]],eb=ie("outline","brand-wechat","BrandWechat",S9);var w9=[["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"}]],ob=ie("outline","brand-whatsapp","BrandWhatsapp",w9);var C9=[["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"}]],tb=ie("outline","brand-x","BrandX",C9);var k9=[["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"}]],rb=ie("outline","brand-youtube","BrandYoutube",k9);var v9=[["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"}]],ab=ie("filled","brand-facebook-filled","BrandFacebookFilled",v9);var T9=[["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"}]],nb=ie("filled","brand-instagram-filled","BrandInstagramFilled",T9);var P9=[["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"}]],sb=ie("filled","brand-linkedin-filled","BrandLinkedinFilled",P9);var E9=[["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"}]],lb=ie("filled","brand-pinterest-filled","BrandPinterestFilled",E9);var O9=[["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"}]],ib=ie("filled","brand-tiktok-filled","BrandTiktokFilled",O9);var _9=[["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"}]],cb=ie("filled","brand-whatsapp-filled","BrandWhatsappFilled",_9);var A9=[["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"}]],db=ie("filled","brand-x-filled","BrandXFilled",A9);var R9=[["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"}]],fb=ie("filled","brand-youtube-filled","BrandYoutubeFilled",R9);var SAe="outline",xp={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},F9={},pb={fillRule:"evenodd"},B9=[["path",{...xp,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...pb,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],D9=[["path",{...xp,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}],["path",{...F9,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}]],N9=[["path",{...xp,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z"].join("")}],["path",{...xp,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972z"].join("")}],["path",{...pb,d:["M8.319 15.972L7.84 15.918L7.349 15.832L6.865 15.715L6.388 15.568L4 17L4 14.199","L3.559 13.775L3.197 13.356L2.877 12.91L2.603 12.439L2.376 11.946L2.201 11.433","L2.079 10.902L2.016 10.405L2.001 9.897L2.036 9.386L2.12 8.889L2.25 8.405L2.425 7.937","L2.642 7.486L2.9 7.055L3.195 6.645L3.459 6.333L3.744 6.037L4.05 5.757L4.377 5.495","L4.723 5.25L5.086 5.025L5.467 4.819L5.864 4.634L6.275 4.471L6.701 4.331L7.139 4.214","L7.589 4.122L8.05 4.055L8.521 4.014L9.352 4.007L9.815 4.04L10.269 4.098L10.713 4.181","L11.146 4.287L11.567 4.416L11.975 4.567L12.369 4.739L12.748 4.932L13.112 5.143","L13.459 5.374L13.788 5.622L14.172 5.956L14.458 6.241L14.722 6.542L14.965 6.856","L15.217 7.237A8.35 7.35 0 0 0 8.319 15.972zM5.25 7.9a0.85 0.85 0 1 0 1.7 0","a0.85 0.85 0 1 0 -1.7 0zM8.25 7.9a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}],["path",{...pb,d:["M16.5 10c3.038 0 5.5 2.015 5.5 4.5c0 1.397 -.778 2.645 -2 3.47l0 2.03l-1.964 -1.178","a6.649 6.649 0 0 1 -1.536 .178c-3.038 0 -5.5 -2.015 -5.5 -4.5s2.462 -4.5 5.5 -4.5z","M14.15 14a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0zM17.15 14","a0.85 0.85 0 1 0 1.7 0a0.85 0.85 0 1 0 -1.7 0z"].join("")}]],M9=ie("filled","brand-telegram-filled","BrandTelegramFilled",B9),H9=ie("filled","brand-line-filled","BrandLineFilled",D9),W9=ie("filled","brand-wechat-filled","BrandWechatFilled",N9),G9={instagram:{outline:qg,solid:nb},facebook:{outline:Vg,solid:ab},tiktok:{outline:Qg,solid:ib},youtube:{outline:rb,solid:fb},x:{outline:tb,solid:db},linkedin:{outline:Xg,solid:sb},pinterest:{outline:Zg,solid:lb},whatsapp:{outline:ob,solid:cb},telegram:{outline:Jg,solid:M9},line:{outline:Yg,solid:H9},wechat:{outline:eb,solid:W9}};function lA({platform:e,iconStyle:o,size:t}){let r=G9[e][o];return L9(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var U9={instagram:"instagram.com/yourshop",facebook:"facebook.com/yourshop",tiktok:"tiktok.com/@yourshop",youtube:"youtube.com/@yourshop",x:"x.com/yourshop",linkedin:"linkedin.com/company/yourshop",pinterest:"pinterest.com/yourshop",whatsapp:"wa.me/61400000000",telegram:"t.me/yourshop",line:"line.me/ti/p/~yourshop",wechat:"u.wechat.com/your-qr-code-link"};function j9({platform:e}){let{rows:o,saveLink:t}=ri(),{value:r,error:a}=o[e],[n,s]=cA(r),[l,c]=cA(!1),d=iA(),f=iA();z9(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}c(!0),await t(e,n),c(!1)},p=iC[e];return dA(ub,{children:[Ya($9,{label:i(p),htmlFor:d,icon:Ya(lA,{platform:e,iconStyle:"outline",size:18}),children:Ya("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:U9[e],onChange:x=>s(x.target.value),onBlur:()=>{u()},onKeyDown:x=>{x.key==="Enter"&&x.currentTarget.blur(),x.key==="Escape"&&(s(r),x.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&Ya("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function fA({unavailable:e}){let{canSave:o}=ri();return!o&&e?Ya(ub,{children:e}):dA(ub,{children:[Ya("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Ac.map(t=>Ya(j9,{platform:t},t))]})}import{jsx as on,Fragment as IQ,jsxs as gQ}from"react/jsx-runtime";import{useId as bQ,useMemo as yQ}from"react";import{useEasel as SQ}from"efficient-easel/easel";import{SettingsField as wQ,SettingsSwitch as CQ}from"efficient-easel/panel";import{EyeIcon as kQ}from"efficient-easel/icons";import{fieldShownInView as vQ}from"efficient-easel/fields";import{usePreviewDevice as TQ}from"efficient-easel/draw/client";import{jsx as Za,Fragment as tZ,jsxs as rZ}from"react/jsx-runtime";import{createContext as aZ,useContext as nZ,useLayoutEffect as $A,useMemo as Tp,useRef as UA,useState as wb}from"react";import{useEasel as jA,useSelectedFields as sZ}from"efficient-easel/easel";import{fieldShownInView as lZ,Inspector as iZ,planFields as Cb}from"efficient-easel/fields";function pA({allTabs:e,remembered:o,inherited:t,buckets:r,hasText:a}){return o&&(e||r.includes(o))?o:t&&r.includes(t)?t:a?"Design":r[0]??"Design"}import{group as zX}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as $X,deviceMetaOf as _A}from"efficient-easel/screen/lib/document/device-fields";import{jsx as De,Fragment as J9,jsxs as Q9}from"react/jsx-runtime";import{useRef as wA}from"react";import{phoneKey as Cr}from"efficient-easel/draw";import{SettingsDefaultReset as eX}from"efficient-easel/panel";import{ClockIcon as oX,DirectionDownIcon as tX,DirectionIcon as rX,DirectionLeftIcon as aX,DirectionRightIcon as nX,DirectionUpIcon as sX,DurationIcon as lX,EntranceBounceIcon as iX,EntranceFadeIcon as cX,EntranceFlipIcon as dX,EntranceGlideIcon as fX,EntranceRevealIcon as pX,EntranceRiseIcon as uX,EntranceScaleIcon as mX,EntranceSpinIcon as hX,NoSymbolIcon as xX}from"efficient-easel/icons";import{effectTiles as IX}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as ws}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as gX,noControlField as bX}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as yX,describedAs as CA,group as SX,onDesktopWords as wX,phoneTwinFields as CX}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as kX,ENTRANCE_FROM_DEFAULT as kA,ENTRANCE_KINDS as Cp,ENTRANCE_KINDS_WITH_FROM as yA,MOTION_TIMING as vX,entranceAttrs as TX,playEntrance as PX,readEntrance as EX}from"efficient-shell/format";import{jsx as xb}from"react/jsx-runtime";import{ClockIcon as Y9,DurationIcon as X9}from"efficient-easel/icons";import{MOTION_TIMING as gA}from"efficient-shell/format";import{useSelectedHost as Z9}from"efficient-easel/easel";import{MOTION_EASING as K9,MOTION_TIMING as uA,motionSeconds as mA}from"efficient-shell/format";var mb="none",Ip=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function FAe(e){return Ho(Ip,mb,e)}var gp="_gLoop",pi={field:"loop",is:"scroll"},ui="left",hb=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],V9={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function hA(e){return Ho(hb,ui,e)}function BAe(e){return e==="up"||e==="down"}function xA(e){return mA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var DAe=uA.loop.duration.default,q9=uA.loop.delay.default;function IA(e){return mA("loop","delay",e.loopDelay)}function NAe(e,o,t=q9){return`${V9[e]} ${o}s ${K9.loop}${t?` ${t}s`:""} infinite`}function bs(e){let{min:o,max:t,step:r,default:a}=gA[e].duration;return To("Duration",xb(X9,{}),o,t,r,a,"s")}function ys(e){let{min:o,max:t,step:r,default:a}=gA[e].delay;return To("Delay",xb(Y9,{}),o,t,r,a,"s")}function Ss(e,o){let t=e.render,r=a=>{let n=Z9();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>xb(r,{...a})}}function bp({readsSpeed:e}){return Ss(bs("loop"),(o,t)=>xA({loopDuration:o,speed:e?t?.speed:void 0}))}function yp(){return Ss(ys("loop"),e=>IA({loopDelay:e}))}var bA="_gEntrance";var Ib={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},OX={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},_X={top:()=>De(tX,{}),bottom:()=>De(sX,{}),left:()=>De(nX,{}),right:()=>De(aX,{})},gb="Entrance",Sp=Cp.filter(e=>e!=="none"),wp=e=>({any:[{field:Ae.kind,in:e},{all:[{field:Ae.kind,set:!1},{field:Mm,in:e}]}]}),SA=e=>({any:[{field:Cr(Ae.kind),in:e},{all:[{field:Cr(Ae.kind),set:!1},wp(e)]}]}),AX={any:[wp(Sp),{field:Cr(Ae.kind),in:Sp}]},RX=[[[Ae.from],wp(yA)],[[Cr(Ae.from)],SA(yA)],[[Ae.duration,Ae.delay],wp(Sp)],[[Cr(Ae.duration),Cr(Ae.delay)],SA(Sp)]],LX={none:()=>De(xX,{}),fade:()=>De(cX,{}),rise:()=>De(uX,{}),scale:()=>De(mX,{}),glide:()=>De(fX,{}),bounce:()=>De(iX,{}),flip:()=>De(dX,{}),reveal:()=>De(pX,{}),spin:()=>De(hX,{})},vA="data-entrance-tile";function FX({kind:e}){let{attrs:o}=TX(EX(e,kA));return De("span",{className:"sf-entrance-stage",[vA]:e,children:De("i",{...o,children:LX[e]()})})}var BX=e=>o=>{let t=e.current?.querySelector(`[${vA}="${o}"] > i`);t&&PX(t)},TA=e=>IX({label:i(gb),options:Cp.map(o=>({value:o,label:i(Ib[o]),picture:De(FX,{kind:o})})),fallback:"none",onPreview:e?BX(e):void 0});function PA({row:e,children:o}){return De("div",{ref:e,style:{display:"contents"},children:o})}function DX({value:e,onChange:o}){let t=Bo(),r=Hm({...t,[Ae.kind]:e},"desktop").kind,a=wA(null);return De(PA,{row:a,children:TA(a).render({value:r,onChange:n=>o(n??"none")})})}function NX({value:e,onChange:o}){let t=Bo(),r=typeof e=="string"&&Cp.includes(e),a=Hm(t,"desktop").kind,n=wA(null);return Q9(J9,{children:[De(PA,{row:n,children:TA(n).render({value:r?e:a,onChange:o})}),r&&De(eX,{words:ae()?.panel,label:i(MX),changed:r,detail:wX(s=>i(s),i(Ib[a])),onReset:()=>o(void 0)})]})}var MX="Effect",EA={type:"select",label:gb,options:Cp.map(e=>({value:e,label:Ib[e]}))},HX=()=>CA({type:"custom",render:({value:e,onChange:o})=>De(DX,{value:e,onChange:o})},EA),WX=()=>CA({type:"custom",render:({value:e,onChange:o})=>De(NX,{value:e,onChange:o})},EA),GX=kX.map(e=>({label:OX[e],value:e,picture:_X[e]()}));function _t(){let{duration:e,delay:o}=vX.entrance,t={[bA]:SX(gb,{dot:AX}),[Ae.kind]:ws("desktop",HX()),[Mm]:bX({type:"custom",render:()=>De(gX,{})},"always"),[Cr(Ae.kind)]:ws("mobile",WX()),_cEntrance:yX(),...CX(Ae.from,Fa("From",De(rX,{}),GX,kA)),[Ae.duration]:ws("desktop",bs("entrance")),[Cr(Ae.duration)]:ws("mobile",yf({label:"Duration",desktopKey:Ae.duration,icon:De(lX,{}),min:e.min,max:e.max,step:e.step,fallback:e.default,unit:"s"})),[Ae.delay]:ws("desktop",ys("entrance")),[Cr(Ae.delay)]:ws("mobile",yf({label:"Delay",desktopKey:Ae.delay,icon:De(oX,{}),min:o.min,max:o.max,step:o.step,fallback:o.default,unit:"s"}))};return fl(t,RX)}import{DESIGN_GROUPS as yb,SETTINGS_BUCKETS as UX}from"efficient-easel/panel";import{BUCKET_KEY as Qo,DESIGN_GROUP_KEY as mi}from"efficient-easel/screen/lib/document/field-buckets";var hi=UX;var jX="Editor only \u2014 not shown live",Sb={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content","Card list":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content",Display:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"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:"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Map:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Shadow:"Design",Texture:"Design",Overlay:"Design","Text style":"Design",Entrance:"Animation",Hover:"Animation",Loop:"Animation",Scroll:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[jX]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Placement:"Position",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Size:"Size",Height:"Size"},AA={"AlloyWheelsListing._gCards":"Design"},RA={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function bb(e,o,t){let r=`${e}.${o}`;return RA[r]??AA[r]??Sb[t]}function LA(e){return e==="Animation"?[Qo.Animation]:[Qo.Design,mi[e]]}function kp(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=_A(r),n=yr(a?a.inner:r),s=n?Sb[n.label]:void 0;if(s)for(let l of LA(s))o.includes(l)||o.push(l)}return o}var b1e=[...kp(sf({tablet:!0}),Sf("full"),wf(),kf(),PI()),...Object.keys(sf({tablet:!0})),...Object.keys(Sf("full")),...Object.keys(wf()),...Object.keys(kf()),...Object.keys(PI())],y1e=[...kp(If()),...Object.keys(If())],S1e=[...kp(bf()),...Object.keys(bf())],w1e=[...kp(_t()),...Object.keys(_t())],KX=Object.keys(pE()),VX=new Set(["cardImage","imageBackground"]),C1e=[...LA(bb("ProductGrid","_gCards","Cards")??"Design"),...KX.filter(e=>e.startsWith("_g")||VX.has(e))],k1e=Object.keys(uE()),v1e=Object.keys(mE()),qX={"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)","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)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","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)","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)"},FA={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},BA={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...sf({tablet:!0}),...Sf("full"),...wf(),...kf(),...If(),...bf(),..._t()};for(let o of Object.keys(BA)){let t=yr(e[o]),r=t?Sb[t.label]:void 0;if(!t||t.level!==2||!r||!FA[r].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/document/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var YX=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),XX=new Map([[Qo.Design,"Content"],[Qo.Animation,"Animation"],...yb.map(e=>[mi[e],e])]);function DA(e){let o=new Set([...Object.values(Qo),mi.Content]);for(let[t,r]of Object.entries(e))if(!o.has(t)&&yr(r)?.level===1)return 1;return 2}function ZX(e){let o=`${e}.`;return Object.keys(qX).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function JX(e,o){let t=_A(e),r=zX(o);return t?$X(t.tier,r):r}function QX(e,o){let t=yr(o);return t?e==="Content"||e==="Animation"?X0(o,t.label):Z0(o):o}function OA(e){return e==="Design"?yb:["Animation"]}function NA(e,o){let t=[],r=new Set(ZX(o)),a=new Set,n=!1,s=null;for(let[p,x]of Object.entries(e)){let I=yr(x);if(YX.has(p))throw new Error(`${o}.${p}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);let g=XX.get(p);if(g!==void 0){if(I?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${g} heading of the settings panel, but this field is ${I?`a level-${I.level} "${I.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===Qo.Design||p===Qo.Animation)&&(n=!0),t.push(s={place:g,entries:[],adopted:!0});continue}if(!I){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,x]);continue}if(r.has(p)||p in BA){let S=bb(o,p,I.label);if(I.level!==2||!S||!FA[S].includes(I.label))throw new Error(`${o}.${p}: ${r.has(p)?"RETIRED":"INJECTED_RETIRED"} (lib/document/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${I.level} "${I.label}" header in the ${S??"(unclassified)"} place. Only a level-2 header whose label is one of its place's words (PLACE_WORDS) may be retired \u2014 anything else is a heading a merchant reads for its own sake. Fix the row or drop it.`);r.has(p)&&a.add(p),t.push(s={place:S,entries:[]});continue}let k=bb(o,p,I.label);if(!k)throw new Error(`${o}.${p}: the inspector group "${I.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...yb,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:k,entries:[[p,I.level===2?x:JX(x,I.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>yr(p)).map(([p])=>p));for(let[p,x]of[["BLOCK_KEY_GROUP",RA],["KEY_GROUP",AA]]){let I=Object.keys(x).filter(g=>g.startsWith(`${o}.`)).filter(g=>!l.has(g.slice(o.length+1)));if(I.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(I)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let c=n?[]:[...r].filter(p=>!a.has(p));if(c.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(c)}, but this section has no such fold header${c.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),f=hi.filter(p=>OA(p).some(x=>d.has(x))),u={};for(let p of f){u[Qo[p]]=xf(p,p===f[0]?f:null);for(let x of OA(p)){if(!d.has(x))continue;let I=t.filter(k=>k.place===x),g=I.findIndex(k=>k.adopted);g>0&&I.unshift(...I.splice(g,1)),p==="Design"&&(u[mi[x]]=CI(x));for(let k of I)for(let[S,C]of k.entries)u[S]=QX(x,C)}}return u}function T1e(e){return Qo.Design in e?e:{[Qo.Design]:xf("Design",null),[mi.Content]:CI("Content"),...e}}function P1e(e){return hi.some(o=>Qo[o]in e)}function E1e(e){let o=hi.filter(r=>Qo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Qo[r]]=xf(r,r===o[0]?o:null);return t}import{jsx as eZ}from"react/jsx-runtime";import{EmptyState as oZ}from"efficient-shell/ui";function Xa(){return eZ(oZ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as cZ}from"efficient-easel/draw/client";import{deviceField as dZ}from"efficient-easel/screen/lib/document/device-fields";var vp=" text",MA="Text";function xi(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function HA(e){return e.filter(xi).map(o=>o.key)}function WA(e,o){let t=e.filter(a=>!xi(a));if(t.length!==1)return null;let r=e.filter(xi).flatMap(a=>a.rows);return[...o,...r].some(a=>a.shown)?null:t[0].rows.filter(a=>a.shown).length>1?t[0].key:null}function GA(e,o){let t=null;for(let r of o){let a=e[r];!a||a.marker!==!0||typeof a.fold!="string"||(t??={...e},t[r]={...a,fold:!1})}return t??e}function zA(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var kb=new Map,Pp=new Set;function KA(e,o){let t=new Map;for(let a of e.querySelectorAll(".es-insp-row[data-field]"))t.set(a.getAttribute("data-field")??"",a);let r=[];for(let[a,n]of o)r.push({key:a,rows:n.map(s=>{let l=t.get(s),c=!!l&&[...l.children].some(f=>!f.hidden),d=l?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:c,labelled:c&&!!d}})});return r}var fZ=Object.fromEntries(hi.map(e=>{let o=Y0[e];return[e,Za(o,{},e)]})),VA=aZ(null),pZ={_partBody:dZ("each",{type:"custom",render:()=>Za(uZ,{})})};function uZ(){return Za(tZ,{children:nZ(VA)})}function At({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:c,values:d,readOnly:f,onChange:u}=sZ(),p=Tp(()=>a?{...d,...a.values}:d,[d,a?.values]),x=(he,Ve)=>a?.keys.has(he)?a.onChange(he,Ve):u(he,Ve),I=cZ(),{appState:g,config:k}=jA(he=>he),S=Bv(I,k,g.data.content??[],g.ui.itemSelector),C=n===void 0?Y_(c,t):pZ,b=Tp(()=>{let he=r?.length?Object.fromEntries(Object.entries(C).filter(([Ve])=>!r.includes(Ve))):C;return a?{...he,...a.fields}:he},[C,r,a?.fields]),v=rx(b,p,S),[T,F]=wb(()=>new Set(Pp)),[P,D]=wb(()=>new Set),O=UA(null),{bandRows:R,designBands:N,looseRows:y}=Tp(()=>{let he=new Map,Ve=new Set,ve=[];for(let Te of Cb(v).rows){if(!Te.fold){Te.bucket==="Design"&&ve.push(Te.name);continue}let Je=he.get(Te.fold.key)??[];Je.push(Te.name),he.set(Te.fold.key,Je),Te.bucket==="Design"&&Ve.add(Te.fold.key)}return{bandRows:he,designBands:Ve,looseRows:new Map([["",ve]])}},[v]),A=lZ({},I),L={key:vp,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};$A(()=>{let he=O.current?.parentElement;if(!he)return;let Ve=KA(he,R),ve=new Set(HA(Ve)),Te=WA([L,...Ve.filter(Je=>N.has(Je.key))],KA(he,y)[0].rows);Te&&ve.add(Te),D(Je=>zA(Je,ve)?Je:ve)});let H=Tp(()=>GA(v,P),[v,P]),X=!xi(L)&&!P.has(vp)?{key:vp,title:MA}:void 0,q=jA(he=>he.selectedItem)!==null,j=a?.part??t??"",Ie=`${l}:${j}:${String(I)}`,[te,Le]=wb(()=>({tab:kb.get(Ie)})),We=`${l}:${j}`,Ee=UA(null),ge={...S,node:p},Oe=Cb(v,{values:p,context:ge}).buckets,Ge=pA({allTabs:q,remembered:kb.get(Ie),inherited:Ee.current?.panel===We?Ee.current.tab:te.tab,buckets:Oe,hasText:A&&o>0}),to=!A&&!Oe.includes(Ge)&&(Cb(rx(b,p,{...S,device:"desktop"}),{values:p,context:{...ge,device:"desktop"}}).buckets.includes(Ge)||Ge==="Design"&&o>0);$A(()=>{Ee.current={panel:We,tab:Ge}});let Co=Ge==="Design";return Za(VA.Provider,{value:n??null,children:Za(TI.Provider,{value:a?p:null,children:rZ(iZ,{fields:H,values:p,onChange:x,readOnly:f,allTabs:q,showWhenContext:ge,context:{itemWord:s},tab:Ge,onTab:he=>{kb.set(Ie,he),Le({tab:he})},tabIcons:fZ,idPrefix:l,ariaLabel:i("Section settings"),lead:Co?e:null,leadFold:X,closedFolds:T,onFold:(he,Ve)=>{Ve?Pp.delete(he):Pp.add(he),F(new Set(Pp))},children:[Za("span",{ref:O,hidden:!0}),to&&Za(Xa,{})]})})})}import{useMemo as cQ}from"react";import{useEasel as dQ}from"efficient-easel/easel";import{useSectionOps as fQ}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as Do,Fragment as kZ,jsxs as vZ}from"react/jsx-runtime";import{SettingsDefaultReset as TZ}from"efficient-easel/panel";import{EntranceRevealIcon as PZ,NoSymbolIcon as EZ,PercentIcon as e1,ScrollFadeInIcon as OZ,ScrollFadeOutIcon as _Z,ScrollMoveDownIcon as AZ,ScrollMoveUpIcon as RZ,ScrollParallaxIcon as LZ,ScrollZoomInIcon as FZ,ScrollZoomOutIcon as BZ,ZoomInIcon as DZ}from"efficient-easel/icons";import{effectTiles as NZ}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as t1,customize as MZ,describedAs as HZ,group as WZ,onDesktopWords as GZ,phoneTwinFields as r1}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as Rp,SCROLL_EFFECTS_WITH_ZOOM as zZ,SCROLL_END as $Z,SCROLL_START as UZ,SCROLL_ZOOM as jZ}from"efficient-shell/format";import{FOLLOW_RULES as IZ,phoneKey as gZ,resolveViewValue as bZ,tabletKey as yZ}from"efficient-easel/screen/lib/content/view-tiers";import{parseFocal as SZ,formatFocal as wZ,readScroll as CZ}from"efficient-shell/format";import{phoneKey as mZ,tabletKey as hZ}from"efficient-easel/screen/lib/content/view-tiers";var xZ=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],qA=e=>[e,hZ(e),mZ(e)],Z1e=[...new Set(xZ.flatMap(e=>qA(e.focus)))].sort();function YA(e,o){let[t,r,a]=qA(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var Io={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},XA="_gScroll",ZA="_cScroll",JA=["desktop","tablet","phone"],Jt=(e,o)=>o==="phone"?gZ(e):o==="tablet"?yZ(e):e,Op=Object.values(Io).flatMap(e=>JA.map(o=>Jt(e,o))),vb=e=>e===null||e===""?void 0:e,QA=(e,o,t)=>bZ("same",vb(e),vb(o),vb(t),IZ);function Ep(e,o,t){return QA(e[Jt(o,"desktop")],e[Jt(o,"tablet")],e[Jt(o,"phone")])[t]}function Cs(e,o){return CZ(Ep(e,Io.effect,o),Ep(e,Io.zoom,o),Ep(e,Io.start,o),Ep(e,Io.end,o))}function _p(e){let o={desktop:Cs(e,"desktop"),tablet:Cs(e,"tablet"),phone:Cs(e,"phone")};return JA.every(t=>o[t].effect==="none")?null:o}function Tb(e){let o=QA(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=SZ(a);return wZ(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function tRe(e,o){return Tb(YA(e,o))}var Eb="Scroll",Ob={none:"None","zoom-in":"Zoom in","zoom-out":"Zoom out","fade-in":"Fade in","fade-out":"Fade out","move-up":"Move up","move-down":"Move down",reveal:"Reveal",parallax:"Parallax"},KZ={none:()=>Do(EZ,{}),"zoom-in":()=>Do(FZ,{}),"zoom-out":()=>Do(BZ,{}),"fade-in":()=>Do(OZ,{}),"fade-out":()=>Do(_Z,{}),"move-up":()=>Do(RZ,{}),"move-down":()=>Do(AZ,{}),reveal:()=>Do(PZ,{}),parallax:()=>Do(LZ,{})},VZ="Effect",a1=Rp.filter(e=>e!=="none"),Ap=["desktop","tablet","phone"],o1=(e,o)=>yh(Ap.slice(0,Ap.indexOf(e)+1).reverse().map(t=>Jt(Io.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),qZ={any:Ap.map(e=>({field:Jt(Io.effect,e),in:a1}))},YZ=Ap.flatMap(e=>[[[Jt(Io.zoom,e)],o1(e,zZ)],[[Jt(Io.start,e),Jt(Io.end,e)],o1(e,a1)]]),XZ=NZ({label:i(Eb),options:Rp.map(e=>({value:e,label:i(Ob[e]),picture:KZ[e]()})),fallback:"none"}),ZZ=e=>typeof e=="string"&&Rp.includes(e);function JZ(e){let o=ZZ(e.value),t="follows"in e,r=Cs(Bo(),e.followsView??"desktop").effect,a=o?e.value:t?r:"none",n=XZ.render;return vZ(kZ,{children:[n({value:a,onChange:s=>e.onChange(s??"none")}),t&&o&&Do(TZ,{words:ae()?.panel,label:i(VZ),changed:!0,detail:GZ(s=>i(s),i(Ob[r]),e.followsView),onReset:()=>e.onChange(void 0)})]})}var QZ=()=>HZ({type:"custom",render:e=>Do(JZ,{...e})},{type:"select",label:Eb,options:Rp.map(e=>({value:e,label:Ob[e]}))});function eJ({row:e,part:o,...t}){let r=Cs(Bo(),t.followsView??"desktop")[o];return e({...t,follows:r})}var Pb=(e,o,t,r,a)=>{let n=To(t,r,a.min,a.max,a.step,a.default,"%"),s=n.render,l={...n,render:c=>Do(eJ,{...c,row:s,part:o})};return r1(e,n,t1,{phoneRow:l})};function Ja(){let e={[XA]:WZ(Eb,{dot:qZ}),...r1(Io.effect,QZ(),t1),[ZA]:MZ(),...Pb(Io.zoom,"zoom","Zoom",Do(DZ,{}),jZ),...Pb(Io.start,"start","Start",Do(e1,{}),UZ),...Pb(Io.end,"end","End",Do(e1,{}),$Z)};return fl(e,YZ)}import{jsx as Vo}from"react/jsx-runtime";import{AccentIcon as oJ,ContrastIcon as tJ,ExpandIcon as rJ,FinishIcon as aJ,ImagesIcon as nJ,NoSymbolIcon as s1,HoverLiftIcon as sJ,HoverNextImageIcon as lJ,HoverRotateIcon as iJ,HoverZoomIcon as l1,OpacityIcon as cJ}from"efficient-easel/icons";import{customize as dJ,describedAs as i1,group as fJ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as c1}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Eo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as pJ,noControlField as uJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Lp=e=>Eo("desktop",fJ("Hover",{dot:e})),d1=()=>Eo("desktop",dJ()),mJ="What this does when a shopper points at it, or taps it on a phone.",hJ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",xJ="What this picture does when a shopper points at the card. Show next image covers the card or the picture with this product's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",IJ="What each card does when a shopper points at it. Show next image covers the card with this product's photos, with arrows; a phone shows the card as it is. Rotate turns the wheel picture.",gJ="Which of the product's pictures the card shows.",bJ="Same finish shows the photos of the finish the card shows, else the first group.",yJ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",SJ={none:()=>Vo(s1,{}),nextImage:()=>Vo(lJ,{}),rotate:()=>Vo(iJ,{}),zoom:()=>Vo(l1,{}),lift:()=>Vo(sJ,{}),mono:()=>Vo(tJ,{})};function _b(e,o){let t=c1({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(ya[r]),picture:SJ[r]()})),fallback:o});return i1(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:ya[r]}))})}function f1(){return{[ba]:Lp({field:Ye,in:Hc.filter(e=>e!=="none")}),[Ye]:Eo("desktop",{..._b(Hc,"none"),description:mJ})}}function p1(e){let o=QC(e),t=ch(),r=g0(sh);return{[ba]:Lp({any:[o,t]}),[we.kind]:Eo("desktop",{...Ss(_b(Wc,e),(a,n)=>dh(n??{},e)),description:IJ}),...u1(t),[al]:uJ({type:"custom",render:()=>Vo(pJ,{})},"always"),_cHover:d1(),[we.angle]:Eo("desktop",ze(Ss(r,a=>fh(a)),o)),[we.duration]:Eo("desktop",ze(bs("hover"),o)),[we.delay]:Eo("desktop",ze(ys("hover"),o))}}function u1(e){let o=Tt("Type",Vo(nJ,{}),Gc.map(a=>({value:a,label:YC[a]})),ga.kind),t=Fa("Group",Vo(aJ,{}),lh.map(a=>({value:a,label:XC[a]})),ga.group),r=Fa("Covers",Vo(rJ,{}),ih.map(a=>({value:a,label:ZC[a]})),ga.cover);return{[we.mediaKind]:Eo("desktop",ze({...o,description:gJ},e)),[we.mediaGroup]:Eo("desktop",ze({...t,description:bJ},e)),[we.cover]:Eo("desktop",ze({...r,description:yJ},e))}}function Ab(e,o=""){let t=hh(e),r=rk(e);return{[ba]:Lp(t),[we.kind]:m1(zc,e,hJ),...$c.includes(o)?u1(ch()):{},_cHover:d1(),...$c.includes(o)?wJ():{},[we.duration]:Eo("desktop",ze(bs("hover"),r)),[we.delay]:Eo("desktop",ze(ys("hover"),r))}}function wJ(){let e=tk(),o=To("Zoom",Vo(l1,{}),ir.min,ir.max,ir.step,ir.min,ir.unit),t=To("Darken on hover",Vo(cJ,{}),$r.min,$r.max,$r.step,$r.fallback,$r.unit);return{[nl.zoom]:Eo("desktop",ze(o,e)),[nl.darken]:Eo("desktop",ze(t,e))}}function m1(e,o,t){let r=Eo("desktop",{...Ss(_b(e,o),a=>mh({[Ye]:a},o,e)),description:t});return Object.assign(r,{[h1]:o})}var h1="sfPictureResting",n1=new WeakMap;function ORe(e,o,t){let r=e[we.kind],a=r?.[h1];if(!r||!a)return e;let n=o.props?.[Ye]==="nextImage",s=n?null:xl(t.appState,o.props?.id);if(!n&&!qC.includes(String(s?.type??"")))return e;let l=n1.get(e);return l||(l={...e,[we.kind]:m1(ph,a,xJ)},n1.set(e,l)),l}var CJ="What this card does when a shopper points at it, or taps it on a phone. Highlight fills it with the surface color and turns its text the main color.",kJ={none:()=>Vo(s1,{}),[Ut]:()=>Vo(oJ,{})},_Re=Eo("desktop",{...i1(c1({label:i("Hover effect"),options:rh.map(e=>({value:e,label:i(ah[e]),picture:kJ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:rh.map(e=>({value:e,label:ah[e]}))}),description:CJ});function x1(){let e={any:[hh("none"),{field:Ye,is:Ut}]};return{...Ab("none"),[ba]:Lp(e)}}import{jsx as Ii}from"react/jsx-runtime";import{isNodeList as EJ}from"efficient-easel/data";import{useEasel as OJ}from"efficient-easel/easel";import{hiddenInView as _J,hiddenKeyOf as Lb,hidePatch as AJ,slotChildName as RJ,slotChildRowName as LJ}from"efficient-easel/draw";var Fp=null;function Rb(e){Fp=e}function I1(){return!!(Fp&&Fp.state().lockHolder)}function Qa(){return Fp!==null}var vJ=new Set(["BookingBox","SubmitBox"]);function TJ(e){return typeof e=="string"&&vJ.has(e)}var PJ=iv(TJ,I1);function Bp(e,o){return PJ(e)||jx(o)}var Dp=(e,o,t)=>{if(o!=="block"||e.props?.fromProduct!==!0)return t;let r=e.props.product;return!r?.code||typeof r.name!="string"?t:r.name.trim()||t};import{deviceField as FJ}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as BJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var g1="notCardOfTemplate",Fb={not:{context:g1,is:!0}},XRe={[g1]:(e,o)=>{let t=Rh(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Np(e){let o=e.props?.content;return EJ(o)?o:[]}var Hp=(e,o)=>_J(e.props??{},o),DJ=(e,o)=>e.props?.[Lb(o)]!==void 0;function b1(e,o=()=>!1,t="desktop"){return Np(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Np(r).length&&!Hp(r,t)?b1(r,o,t):o(r)?[]:[r])}function NJ(e,o,t,r="desktop"){let a=b1(e,t,r).map(l=>({child:l,name:o(l)})),n=new Set(a.map(l=>l.name)),s=new Set;return a.map(({child:l,name:c})=>{let d=c;if(s.has(c)){let f=2;for(;n.has(`${c} ${f}`);)f+=1;d=`${c} ${f}`,n.add(d)}return s.add(c),{id:l.props.id,label:d,shown:!Hp(l,r)}})}function Mp(e,o,t){let r=a=>t==="desktop"?Hp(a,t):DJ(a,t);return Np(e).flatMap(a=>r(a)?o(a)?[]:[a,...Mp(a,o,t)]:Mp(a,o,t))}function MJ(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===Lb("desktop")&&a===!1?delete t[r]:t[r]=a;return Object.keys(t).length===Object.keys(e).length&&Object.keys(t).every(r=>t[r]===e[r])?e:t}function Bb(e,o,t){let r=Np(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let c=MJ(s.props,t(s.props));c!==s.props&&(l={...s,props:c})}else l=Bb(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function y1(e,o,t,r="desktop"){return Bb(e,o,a=>r==="desktop"&&Hp({props:a},r)===!t?{}:AJ(a,r,!t))}function HJ(e,o,t){return t==="desktop"?y1(e,o,!0,t):Bb(e,o,()=>({[Lb(t)]:void 0}))}function WJ(e,o,t,r,a,n){return RJ(e).trim()?t(e):ed({ownerType:o,owner:r,fields:a,slot:n},zo(e.props))?.label??t(e)}var GJ="This page is read-only.";function zJ({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:c="desktop"}){let d=p=>LJ(p,n,lr,void 0,Dp),f=p=>Bp(p.type,p),u=NJ(e,p=>WJ(p,o,d,t,r,a),f,c);return u.length?Ii(ts,{parts:u,changed:Mp(e,f,c).length>0,shown:p=>u.find(x=>x.id===p)?.shown??!0,disabledReason:l?GJ:void 0,onPress:(p,x)=>s(I=>y1(I,p,x,c)),onReset:()=>s(p=>Mp(p,f,c).reduce((x,I)=>HJ(x,String(I.props.id),c),p))}):Ii(BJ,{})}function $J(){try{let e=OJ(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Rh(e.appState,t.props?.id);return{labelOf:a=>o[a]?.label??a,card:t,ownerType:typeof r?.type=="string"?r.type:void 0,owner:r,fields:Mk(e.appState,r),slot:Ah(e.appState,t.props?.id)??void 0}}catch{return null}}function UJ({readOnly:e,view:o}){let t=$J(),r=Ol();return t?Ii(zJ,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},l=a(s);return l===s?null:{content:l.props.content}})}}):Ii(ts,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function ZRe(e){return ze(FJ(e,{type:"custom",render:({readOnly:o})=>Ii(UJ,{readOnly:o,view:e})}),Fb)}import{customize as eQ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Db}from"react/jsx-runtime";import{DirectionIcon as jJ,LoopMarqueeIcon as KJ,NoSymbolIcon as VJ}from"efficient-easel/icons";import{customize as qJ,describedAs as YJ,group as XJ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as ZJ}from"efficient-easel/screen/lib/document/effect-tiles";function Nb(){return dE("Direction",hb,ui,"A marquee cannot run diagonally, so the corners are not answers.",Db(jJ,{}),cE)}var Mb=e=>XJ("Loop",e?{dot:e}:void 0),JJ={none:()=>Db(VJ,{}),scroll:()=>Db(KJ,{})};function QJ(){let e=ZJ({label:i("Loop"),options:Ip.map(({value:o,label:t})=>({value:o,label:i(t),picture:JJ[o]()})),fallback:mb});return YJ(e,{type:"select",label:"Loop",options:Ip.map(({value:o,label:t})=>({value:o,label:t}))})}function S1(){return{[gp]:Mb(pi),loop:QJ(),_cLoop:qJ(),scrollDirection:ze(Nb(),pi),loopDuration:ze(bp({readsSpeed:!1}),pi),loopDelay:ze(yp(),pi)}}function oQ(){let e=x1(),o=[ba,Ye],t=Ln(e,Object.keys(e).filter(r=>!o.includes(r)),km);return Ln(t,o,{any:[km,Fb]})}function w1(e,o=""){switch(e){case"section":case"block":return{..._t(),...Ja()};case"box":return{..._t(),...Ja(),...S1(),...oQ()};case"picture":return{..._t(),...Ja(),...Ab(uh(o),o)};case"textPart":return{..._t(),...Ja(),...f1()};case"cards":return{..._t(),...Ja(),...p1(nh(o))};case"marquee":return{..._t(),...Ja(),[gp]:Mb(),_cLoop:eQ(),scrollDirection:Nb(),loopDuration:bp({readsSpeed:!0}),loopDelay:yp()}}}import{phoneKey as tQ}from"efficient-easel/draw";import{ENTRANCE_STATE_ATTR as rQ,entranceAttrs as aQ,scrollAttrs as nQ}from"efficient-shell/format";var k1={},Hb="_partMotion",Wb=[...Object.values(Ae).flatMap(e=>[e,tQ(e)]),Ye,we.duration,we.delay,...Op];function ELe(e){return is(e,Hb)}function en(e,o){return qf(e,Hb,o)}var sQ=new Set([Ae.kind,Ye,Io.effect]);function v1(e,o,t,r){let{[t]:a,...n}=en(e,o),s=r==null||r===""||r==="none"&&sQ.has(t)?n:{...n,[t]:r};return Yf(e,Hb,o,Object.keys(s).length?s:null)}function Gb(e){return{entrance:vc(e),hover:KC(e),scroll:_p(e)}}function T1(e){let o=Gb(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function P1(e,o){let{attrs:t,style:r}=aQ(o),a=Object.keys(t).filter(n=>t[n]!==void 0);for(let n of a)e.setAttribute(n,String(t[n]));for(let[n,s]of Object.entries(r))e.style.setProperty(n,String(s));return()=>{for(let n of a)e.removeAttribute(n);for(let n of Object.keys(r))e.style.removeProperty(n);e.removeAttribute(rQ)}}function E1(e,o){let{attrs:t,style:r}=nQ(o);for(let[a,n]of Object.entries(t))e.setAttribute(a,n);for(let[a,n]of Object.entries(r))e.style.setProperty(a,n);return()=>{for(let a of Object.keys(t))e.removeAttribute(a);for(let a of Object.keys(r))e.style.removeProperty(a)}}var lQ=4;function zb(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&lQ)&&(o=t);return o}var iQ="data-sf-part-host";function O1(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(iQ)&&!t.classList.contains(On);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Wp="data-sf-part-lift",C1="sf-part-lift";function _1(e){if(e.getElementById(C1))return;let o=e.createElement("style");o.id=C1,o.textContent=vO(`[${Wp}]`).join(`
|
|
62
|
+
`),e.head.appendChild(o)}var A1=new Map,pQ=e=>{let o=A1.get(e);return o||A1.set(e,o=NA(w1(e),`part:${e}`)),o},uQ=new Set(Wb);function ks(e,o,t){let{getItemById:r,getSelectorForId:a}=dQ(f=>f),n=fQ(),s=r(e)?.props??{},l=en(s,o),c=JSON.stringify(l),d=cQ(()=>Object.fromEntries(Wb.map(f=>[f,l[f]])),[c]);return{part:o,fields:pQ(t),values:d,keys:uQ,onChange:(f,u)=>{let p=a(e),x=r(e);if(!p||!x)return;let I=v1(x.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...x,props:I})}}}import{Fragment as mQ,createElement as hQ}from"react";import{deviceField as $b}from"efficient-easel/screen/lib/document/device-fields";var go=()=>({type:"custom",render:()=>hQ(mQ)});var Ub={words:go(),sourceNote:go(),style:go(),font:go(),italic:go(),fontSize:$b("each",go()),lineHeight:go(),letterSpacing:go(),paragraphSpacing:go(),padding:go(),align:$b("each",go()),letterCase:go(),fixedSizeHint:$b("each",go()),regionNote:go(),regionStyle:go()},xQ=["fontSize","align"];function R1(e){return xQ.includes(e)}var L1={showTicker:go(),items:go()};var PQ="root:default-zone";function F1({heroId:e}){let{appState:o,dispatch:t}=SQ(x=>x),r=o.data.content??[],a=r.findIndex(x=>x.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,l=yQ(()=>{let x=n?.props.tickerItems;return Array.isArray(x)?x:U_.map(I=>({text:I}))},[n]),c=bQ(),d=TQ(),f=x=>vQ(L1[x],d),u=ks(e,j_,"block");if(!n)return on("p",{className:"sf-note",children:i("This ticker\u2019s hero is no longer on the page.")});let p=x=>t({type:"replace",destinationZone:PQ,destinationIndex:a,data:{...n,props:{...n.props,...x}}});return on(At,{motion:u,body:gQ(IQ,{children:[!f("showTicker")&&!f("items")&&on(Xa,{}),f("showTicker")&&on(wQ,{label:i("Show ticker"),labelId:c,icon:on(kQ,{}),action:on(CQ,{checked:s,onChange:x=>p({showTicker:x}),ariaLabelledBy:c})}),f("items")&&on(RI,{label:AI.label,icon:AI.icon,items:l,placeholder:"item",onChange:x=>p({tickerItems:x}),markup:!0})]})})}import{jsx as J,Fragment as Ci,jsxs as nt}from"react/jsx-runtime";import{useContext as VQ,useEffect as Kb,useRef as qQ,useState as Z1}from"react";import{FieldSelect as YQ,InspectorField as XQ,fieldShownInView as ZQ}from"efficient-easel/fields";import{InertHint as sR,SettingsField as JQ}from"efficient-easel/panel";import{InspectorUpLevel as Yp}from"efficient-easel/chrome";import{StylesIcon as QQ,TypeIcon as eee}from"efficient-easel/icons";import{useEasel as oee}from"efficient-easel/easel";import{TextPartPanel as J1}from"efficient-easel/copy";import{Button as tee,IconButton as ree,Tooltip as aee}from"efficient-shell/ui";import{jsx as B1,jsxs as EQ}from"react/jsx-runtime";import{COPY_CELLS as Gp,CopyBox as OQ}from"efficient-easel/copy";import{PaddingYIcon as _Q}from"efficient-easel/icons";import{onDesktopWords as AQ}from"efficient-easel/screen/lib/document/box-fields";var RQ=["left","center","right","justify"];function zp(e,o,t,r="desktop"){let a=Zl(e),n=Ig(r),s=e[n]??e.size??o.sizePx,l=AO(e,r);return[{...Gp.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:c=>t({[n]:c??null}),...n==="size"?{}:{reset:{detail:l?AQ(c=>i(c),`${l.px}px`,l.view):void 0}}},{...Gp.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:c=>t(c===void 0?{lineHeight:null,line:null}:{lineHeight:c})},{...Gp.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:c=>t(c===void 0?{letterSpacing:null,letter:null}:{letterSpacing:c})},{...Gp.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:c=>t({paragraphSpacing:c??null})},{key:"padding",name:i("Padding"),icon:B1(_Q,{}),unit:"px",step:ug,shiftStep:10,min:fg,max:pg,value:e.padding,styleValue:o.paddingPx,onChange:c=>t({padding:c??null})}]}function D1({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:c,placeholder:d,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let x=zp(n,s,l),I=KI(r,t);return EQ("div",{className:"sf-part-textbox",children:[u,B1(OQ,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:xa,tools:I,barShows:p?"focus":"always",colors:r?c:[],colorNameOf:Zo,align:a?{value:n.align??s.align,allow:RQ,onChange:g=>l({align:g})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:g=>l({case:g||null})}:void 0,cells:a?x:void 0})]})}import{UiIcon as Q1}from"efficient-easel/draw/client";import{jsx as $p,Fragment as LQ,jsxs as FQ}from"react/jsx-runtime";import{Button as N1,Dialog as BQ}from"efficient-shell/ui";function M1({styleName:e,onCancel:o,onConfirm:t}){return $p(BQ,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:FQ(LQ,{children:[$p(N1,{variant:"secondary",onClick:o,children:i("Cancel")}),$p(N1,{variant:"primary",onClick:t,children:i("Update style")})]}),children:$p("p",{children:i("Every text on the site that follows {style} changes to look like this one. This text\u2019s own changes are cleared, and it keeps following {style}.",{style:e})})})}import{ScreenDocumentContext as nee}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as see}from"efficient-easel/draw/client";import{shownTier as Vp}from"efficient-easel/screen/lib/document/device-fields";import{jsx as DQ}from"react/jsx-runtime";import{createContext as NQ,useContext as MQ,useMemo as HQ,useState as WQ}from"react";var GQ={partStyle:null,setPartStyle:()=>{}},H1=NQ(GQ);function gFe({children:e}){let[o,t]=WQ(null),r=HQ(()=>({partStyle:o,setPartStyle:t}),[o]);return DQ(H1.Provider,{value:r,children:e})}function W1(){return MQ(H1)}import{TEXT_FIELD_MARKER as lee}from"efficient-easel/draw";import{useSectionOps as iee}from"efficient-easel/screen/lib/document/use-section-ops";var gi="@name",G1="@body",z1="@value",$1={[gi]:"Name",[G1]:"Body",[z1]:"Value"},zQ={TimelineTrack:{"entries.date":gi,"entries.title":gi,"entries.blurb":G1},Footprint:{"offices.city":gi},Stats:{"items.label":gi,"items.value":z1}};function $Q(e){let{key:o,row:t}=Et(e);return t?`${o}.${t.rowKey}`:null}function bi(e,o){if(!e)return o;let t=$Q(o);return t?zQ[e]?.[t]??o:o}import{useEaselHost as cee}from"efficient-easel/screen/lib/host";function UQ(e){let o=new Set([...Object.keys(Rd[e]??{}),...Ld[e]??[]]);for(let[t,r]of Object.entries(kx[e]??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var jQ={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},U1={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},j1="Open",K1={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function vs(e){let o=e?.source?.slug;return Z(o)}function yi(e){return jQ[e]??null}function V1(e,o){let t=yi(e);return t&&UQ(e).includes(o)?t:null}function Up(e){let o=e?.menu?.id;return Z(o)}var Si={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-view-wide:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},KQ={tag:{label:"Tag",follows:"Labels",builtIn:Bn(Si.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Bn(Si.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Bn(Si.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Bn(Si.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Bn(Si.link),writable:!0}},q1=KQ;var jp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var AFe=Xc,Y1={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 jb={SpecTable:Y1,FAQ:bk,Collections:q1,Contents:jp};function X1(){return Gt("efficient.section-text-regions",()=>new Map)}function MFe(e){let o=X1();for(let[t,r]of Object.entries(e)){if(Object.hasOwn(jb,t))throw new Error(`lib/sections/section-text-regions: "${t}" is a builder section; its table is the builder's`);let a=o.get(t);if(a&&a!==r)throw new Error(`lib/sections/section-text-regions: "${t}" already has a table`);o.set(t,r)}}function Kp(e){return e?Object.hasOwn(jb,e)?jb[e]:X1().get(e)??null:null}function Vb(e){return e?i(e):null}function eR(e){return e.kind==="role"?Cm[e.role]:e.kind==="custom"?"Custom":null}function dee(e){let o=ar(e.role);return o?{kind:"role",role:o}:null}function fee(e,o){if(!e)return{kind:"unread"};let{faceRole:t,base:r}=e;if(o[t]===r.fontKey)return{kind:"role",role:t};let a=Object.keys(o).filter(n=>o[n]===r.fontKey);return a.length===1?{kind:"role",role:a[0]}:{kind:"custom"}}function qp(e,o,t,r){return dee(Xl(e,o))??fee(t,r)}function pee(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function oR(e){return[{value:wi,label:i("No style"),description:i("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?Cn(o.values.font)?.label:void 0}))]}var wi="";function uee({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:wi,a=[{label:i("No style"),value:wi},...nw.map(n=>({label:i(Cm[n]),value:n}))];return J(YQ,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===wi?null:n),renderOption:n=>n.value===wi?nt(Ci,{children:[J("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),J("span",{className:"sf-part-style-aside","aria-hidden":"true",children:i("Section\u2019s own")})]}):J("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>J("span",{style:{fontFamily:o?.fontKey?`var(${Cn(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:Vb(eR(e))}),valueText:n=>Vb(eR(e))??n?.label??""})}var lR=["regionNote","regionStyle"],mee=Object.keys(Ub).filter(e=>!lR.includes(e));function iR(e,o){return!e.some(o)}function hee({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=nt(Ci,{children:[t,r,a]});return nt("div",{className:"sf-part-panel",children:[J(Yp,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function Xp({source:e,slug:o,menuId:t}){let r=cee(),a=K1[e],n=!a.needsSlug||!!o;return J("div",{className:"sf-note sf-note--source",children:nt(sR,{children:[i(U1[e]),n?nt(Ci,{children:[" ",J(tee,{type:"button",variant:"link",size:"sm",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:i(j1)})]}):null]})})}var tR=4,xee=120;function rR(e){return i("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:i(e.label).toLowerCase()})}function aR({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:c,sizedStyle:d,ownLook:f}){let u=e.follows;return nt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:i(e.label)})}),c("regionNote")&&!f&&J("p",{children:o?i("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:i(u),px:Math.round(o)}):i("Its size follows Styles \u25B8 {follows}.",{follows:i(u)})}),d?nt(Ci,{children:[d,c("regionStyle")&&J("p",{className:"es-field-hint",children:rR(e)})]}):a?c("regionStyle")?J(Ci,{children:J(JQ,{label:i("Style"),icon:J(QQ,{}),hint:rR(e),children:J(uee,{face:t,base:r,onPick:a})})}):null:c("regionNote")&&J("p",{className:"es-field-hint",children:i("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&c("sourceNote")?J(Xp,{source:n,slug:s}):null,iR([...lR,"sourceNote",...d?["fontSize"]:[]],p=>c(p)&&(p!=="sourceNote"||!!n))&&J(Xa,{}),J(Yp,{inline:!0,name:i("Page"),onSelect:l})]})}function Iee({onBack:e}){return nt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:i("This part is no longer here.")})}),J("p",{children:i("The section it belonged to has been changed or removed.")}),J(Yp,{inline:!0,name:i("Page"),onSelect:e})]})}function gee({onBack:e,partId:o,why:t}){return nt("div",{className:"sf-note",children:[J("p",{children:J("strong",{children:i("This part's settings did not open.")})}),J("p",{children:i("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),J("p",{className:"sf-note-detail",children:nt("code",{children:[o," \u2014 ",t]})}),J(Yp,{inline:!0,name:i("Page"),onSelect:e})]})}function cR({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=oee($=>$),l=iee(),c=WE(),{partStyle:d}=W1(),{fonts:f,textStyles:u}=xe(),p=VQ(nee),x=!p?.capabilities?.hasSiteTheme,{persist:I}=Kn({themeFromDocument:x,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),g=tp({themeFromDocument:x,persist:I}),[k,S]=Z1(!1),C=see(),b=$=>(Vp(C)!=="tablet"||R1($))&&ZQ(Ub[$],C),v=qQ(null),T=a(e),F=n(e),P=T?s.components[T.type]:void 0,{key:D,row:O}=Et(o),R=P?.fields?.[D],N=O?ss(R,O):R,y=Of(e,o),A=T?.props??{},L=rs(N),H=hf(N),X=NI(N),q=T?yi(T.type):null,j=T?V1(T.type,D):null,Ie=O?jl(A[D],O):A[D],te=!!O&&!(Array.isArray(A[D])&&O.index<A[D].length);Kb(()=>{HE(document)||v.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[y]);let[Le,We]=Z1(0);Kb(()=>We(0),[y]);let Ee=!!T&&!te&&(!F||!N);Kb(()=>{if(!Ee||Le>=tR)return;let $=setTimeout(()=>We(qe=>qe+1),xee);return()=>clearTimeout($)},[Ee,Le]);let ge=Ee&&Le<tR,Oe=ks(e,bi(T?.type,o),"textPart");if(!T||te)return J(Iee,{onBack:t});let Ge=Kp(T.type),to=Ge?ul(Ge,o):null;if(Ge&&to){let $=d?.partId===y?d:null,qe=Ge[to],ht=qe.writable===!0&&!!F,Er=ca=>{F&&l.replaceComponent(F.zone,F.index,{...T,props:Sr(A,o,"role",ca)})};if(ht&&gk(qe)){let ca=Xl(A,o),aw=da=>{if(!F)return;let wm=A;for(let[HH,WH]of Object.entries(da))wm=Sr(wm,o,HH,WH??null);l.replaceComponent(F.zone,F.index,{...T,props:wm})},DH=wr(g.saved,g.old),NH=dg(ca)??"",MH=zp(ca,$?.base??nR,aw,Vp(C)).filter(da=>da.key==="fontSize"&&b(da.key));return J(At,{motion:Oe,body:J(aR,{region:qe,sizePx:$?.base.sizePx??null,face:qp(A,o,$,f),base:$?.base??null,source:q,slug:vs(A),onBack:t,shows:b,ownLook:LO(ca),sizedStyle:J(J1,{style:b("style")?{value:NH,options:oR(DH),onChange:da=>aw(da?{textStyle:da}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:MH})})})}return J(At,{motion:Oe,body:J(aR,{region:qe,sizePx:$?.base.sizePx??null,face:qp(A,o,$,f),base:$?.base??null,onFollowStyle:ht?Er:void 0,source:q,slug:vs(A),onBack:t,shows:b})})}if(!F||!N)return ge?J("div",{className:"sf-note","aria-busy":"true"}):J(gee,{onBack:t,partId:y,why:F?"no field":"no selector"});let Co=$=>{l.replaceComponent(F.zone,F.index,{...T,props:$})},he=$=>{if(Zr($).hidden!==Zr(Ie).hidden||!L){let qe=O?BI(A,D,O,$):{...A,[D]:$};qe&&Co(qe);return}Rf({node:T,propKey:o,kind:L,zone:F.zone,index:F.index},Zr($).text,l.replaceComponent)},Ve=Ie,ve=d?.partId===y?d:null,Te=ve?.styleOwner,Je=Te?a(Te.owner):null,Bt=Te&&Je?n(Te.owner):null,Mo=!!(Te&&Je&&Bt),W=Mo?Je.props??{}:A,Fe=Mo?$=>l.replaceComponent(Bt.zone,Bt.index,{...Je,props:$}):Co,le=Mo?Te.kind:bi(T?.type,o),Be=Xl(W,le),_e=[{partKey:le,face:qp(W,le,ve,f),sizeGroup:ve?.sizeGroup??null,base:ve?.base??nR,style:Be}],ut=pee(_e,$=>$.sizeGroup),Dt=zn(ve?.inks),Qe=($,qe)=>{let ht=W;for(let Er of _e)ht=Sr(ht,Er.partKey,$,qe);Fe(ht)},mt=$=>$?Qe("textStyle",$):Nt({textStyle:null,role:null}),Nt=$=>{let qe=W;for(let ht of _e)for(let[Er,ca]of Object.entries($))qe=Sr(qe,ht.partKey,Er,ca??null);Fe(qe)},Sn=L==="text"||L==="textarea",{text:qs,hidden:rr}=Zr(Ie),la=N?.[lee]?.label??o,Ys=rr?i("Show {label} on the slide",{label:i(la)}):i("Hide {label} on the slide",{label:i(la)}),wn=nt("div",{className:"sf-field-head",children:[J(eee,{}),J("span",{className:"sf-field-label sf-field-label--inline",children:i(la)}),Sn&&J(aee,{content:Ys,children:J(ree,{"aria-pressed":rr,"aria-label":Ys,onClick:()=>he({text:qs,hidden:!rr}),children:rr?J(Q1,{name:"eye-off",size:14}):J(Q1,{name:"eye",size:14})})})]}),bc=!H&&X,OH=!!L&&(V0(N)||H||rr||!X),tw=qp(W,le,ve,f),_H=tw.kind==="role"?tw.role:null,Sm=dg(Be)??qO(_H),rw=wr(g.saved,g.old),AH=Object.entries(Be).filter(([$,qe])=>$!=="role"&&$!=="textStyle"&&qe!==void 0).length,RH=()=>{let $=W;for(let qe of _e){let{role:ht,textStyle:Er}=qe.style;$=EO($,qe.partKey),ht&&($=Sr($,qe.partKey,"role",ht)),Er&&($=Sr($,qe.partKey,"textStyle",Er))}Fe($)},ia=Sm,LH=YO(_e[0].style),FH=ia?rw.find($=>$.id===ia)?.name??ia:"",BH=()=>{S(!1),ia&&(g.write(XO({saved:g.saved,old:g.old,styleId:ia,values:Eg(_e[0].style)}),!0),RH())};return nt(hee,{sectionName:P?.label??T.type,onBack:t,tabs:$=>J(At,{motion:Oe,body:$}),textEditor:b("words")?J("div",{ref:v,className:"sf-part-text",children:OH?J(D1,{text:qs,onTextChange:$=>he(Sn?{text:$,hidden:rr}:$),multiline:vf(L),markup:L!=="plainText",styled:!1,style:_e[0].style,base:_e[0].base,setValue:Nt,colors:Dt,placeholder:Vb(IE(N))??void 0,ariaLabel:i(la),head:wn,typedOnCanvas:c===y}):L?Sn?wn:null:J(XQ,{field:N,name:o,value:Ve,onChange:he,id:`sf-part-${e}-${o}`})}):void 0,children:[j&&b("sourceNote")&&J(Xp,{source:j,slug:vs(A),menuId:Up(A)}),bc&&J(J1,{style:b("style")?{value:Sm??"",options:oR(rw),onChange:$=>mt($||null),changed:AH>0,onEditStyles:r,onUpdateStyle:ia&&LH?()=>S(!0):void 0}:void 0,font:b("font")?{value:Be.font??"",styleValue:Cn(_e[0].base.fontKey)?.label,options:xt.map($=>({label:$.label,value:$.key})),onChange:$=>Qe("font",$||null)}:void 0,italic:b("italic")?{value:Be.italic,styleValue:See(u,Sm),onChange:$=>Qe("italic",$??null)}:void 0,cells:zp(_e[0].style,_e[0].base,Nt,Vp(C)).filter($=>b($.key)),align:b("align")?yee(Be,_e[0].base.align,Vp(C),Qe):void 0,letterCase:b("letterCase")?{value:Be.case??"",styleValue:_e[0].base.case,onChange:$=>Qe("case",$||null)}:void 0}),k&&ia&&J(M1,{styleName:FH,onCancel:()=>S(!1),onConfirm:BH}),bc&&ut===null&&b("fixedSizeHint")&&J(sR,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),iR(mee,$=>b($)&&($==="words"||($==="sourceNote"?!!j:$==="fixedSizeHint"?bc&&ut===null:bc)))&&J(Xa,{})]})}var bee={desktop:"align",tablet:"alignTablet",mobile:"alignPhone"};function yee(e,o,t,r){let a=bee[t],n=_O(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function See(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var nR={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Rt,jsxs as oy,Fragment as Oee}from"react/jsx-runtime";import{useCallback as _ee,useRef as Aee,useState as Ti}from"react";import{InspectorIconButton as Ree}from"efficient-easel/chrome";import{useEasel as Lee}from"efficient-easel/easel";import{PopupMenu as Fee,PopupMenuItem as Bee,PopupMenuLabel as ru}from"efficient-shell/ui";import{CopyToPageIcon as Dee}from"efficient-easel/icons";import{useEaselSession as Nee}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Mee}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Hee}from"efficient-easel/draw";import{currentEaselSession as wee}from"efficient-easel/screen/lib/session";var Cee={general:!0,commerce:!0,service:!0};function qb(e){let o=e?.sets;return o?Object.fromEntries(kC.map(t=>[t,o.includes(t)])):Cee}function Yb(e=wee()){return qb(e.blocks)}import{isBackendError as Ts}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as bR}from"efficient-easel/screen/lib/session";var Zp=sd(),Xb=Zp.set;function Jp(e,o){Xb(e,o)}function Qp(e,o){let t=Zp.get(e);Xb(e,o??(t==="live"?"changed":t))}function eu(e,o){Xb(e,o??"live")}function dR(e){return Zp.get(e)}function fR(e){return Zp.use(e)}function pR(e,o){return e==="live"&&o?"changed":e}function Zb({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?i("Changes not live yet"):e==="never"?i("Never published"):r?i("Header and footer not live yet"):e==="live"?i("Everything is live"):null;return{label:i("Publish"),tooltip:e==="never"?i("Put this page on your site"):i("Put your changes on your site"),status:s,quiet:n?{label:i("Published"),reason:i("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function uR(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var mR="SharedSection",kee=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,ki=e=>{let o=e?.content;return Array.isArray(o)?o:[]},vi=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function hR(e){if(e?.type!==mR)return null;let o=e.props?.section;return typeof o=="string"&&kee.test(o)?o.toLowerCase():null}function xR(e){let o=[];for(let t of ki(e)){let r=hR(t),a=vi(t);r&&a&&o.push({refId:a,section:r})}return o}function ou(e){let o=ki(e)[0];return o&&typeof o=="object"&&vi(o)?o:null}function vee(e,o){return{type:mR,props:{id:e,section:o}}}function IR(e,o){let t=new Map,r=new Set,a=!1,n=ki(e).map(s=>{let l=hR(s),c=vi(s);if(!l||!c||r.has(l))return s;let d=ou(o.get(l)),f=vi(d??void 0);return!d||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:c,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function gR(e,o,t){let r=new Map,a=!1,n=ki(e).map(s=>{let l=vi(s),c=l?o.get(l):void 0,d=c?t.get(c.section):void 0;if(!c||!d||r.has(c.section))return s;let f=ki(d).slice(1),u=ou(d);return r.set(c.section,u===s?d:{...d,content:[s,...f]}),a=!0,c.reference??vee(c.refId,c.section)});return{page:a?{...e,content:n}:e,docs:r}}function ey(e){return!!(e?.publish&&e.liveState)}function Tee(e,o){if(!ey(e))return;let{versions:t,nameVersion:r,restoreVersion:a,previewVersion:n}=e;if(!(!t||!r||!a||!n))return{list:()=>t.call(e,o),name:(s,l)=>r.call(e,s,l,o),restore:(s,l)=>a.call(e,s,l??{},o),preview:s=>n.call(e,s,o)}}function Pee(e,o){return async(t,r)=>{try{await JT()}catch(a){throw new Error(i("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?Dd({state:"live",changes:[]}):fr(0),{version:r??null}}}function Qb(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(Jp(n.id,n.live),pv(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(c=>(Qp(a,c.live),uv(a,c.videoFrames),fr(),c)),rereadVersion:e.version?a=>e.version(a):void 0,publish:ey(t)?Pee(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(eu(a,s.live),s)):void 0,listPages:()=>e.list(r),createPage:e.create?a=>e.create({...a,...r}):void 0,deletePage:e.remove?(a,n)=>e.remove(a,n):void 0}}function Eee(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,c=new Map,d=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},x=new Set,I=()=>{if(!n)return!1;let O=dR(n.id);return O==="changed"||O==="never"||O===void 0&&l},g=O=>{p={...p,...O,docId:n?.id??null,unpublished:I(),sections:[...f.values()]};for(let R of x)R()},k=(O,R,N)=>{R?f.set(O,{section:O,title:c.get(O)?.title??"",problem:R,holder:N}):f.delete(O)},S=O=>O&&typeof O=="object"&&!Array.isArray(O)?O:{},C=O=>s.has(O),b=()=>new Map([...c].map(([O,R])=>[O,R.layout])),v=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,T=(O,R,N,y)=>{let A=S(R);c.set(O,{layout:A,version:N,savedJson:JSON.stringify(A),title:y})},F={state:()=>p,subscribe:O=>(x.add(O),()=>{x.delete(O)})},P={sectionOf:O=>d.get(O)?.section??null,heldElsewhere:O=>{let R=d.get(O)?.section;return!!(R&&f.get(R)?.problem==="lock")},adopt:(O,R)=>{T(R.id,R.layout,R.layout_updated_at,R.title),d.set(O,{section:R.id,refId:v()}),u.set(R.id,R.used_on),g({})},place:O=>{if([...d.values()].some(y=>y.section===O.id))return null;let R=ou(S(O.layout)),N=typeof R?.props?.id=="string"?R.props.id:null;return!R||!N||!R.type?null:(T(O.id,O.layout,O.layout_updated_at,O.title),d.set(N,{section:O.id,refId:v()}),u.set(O.id,O.used_on),R)},usedOn:O=>u.get(O)??null,learn:O=>{for(let R of O){u.set(R.id,R.used_on);let N=c.get(R.id);N&&(N.title=R.title);let y=f.get(R.id);y&&f.set(R.id,{...y,title:R.title})}g({})}},D=async(O,R)=>{for(let[N,y]of O){let A=c.get(N),L=JSON.stringify(y);if(!(!A||L===A.savedJson||f.get(N)?.problem==="lock"))try{let H=await e.save(N,{layout:y},{version:A.version,clientId:R??""});Qp(N,H.live),A.layout=y,A.version=H.version,A.savedJson=L,k(N,null)}catch(H){Ts(H,"changed-elsewhere")?k(N,"conflict"):Ts(H,"lock-taken")?k(N,"lock",H.holder??void 0):k(N,"save")}}O.size&&fr(),g({})};return{resolve:async O=>{if(Rb(O===kt?null:F),$h(O===kt?null:P),c=new Map,d=new Map,f=new Map,u=new Map,O===kt)return t.resolve(O);let R=!1,[N,y]=await Promise.all([t.resolve(O),e.load({slug:kt,...o}).catch(()=>(R=!0,null))]);if(y&&!Rl(N?.layout)){Jp(y.id,y.live);let j=S(y.layout);n={id:y.id,layout:j,version:y.version,savedJson:""}}else n=null;if(l=!1,!N)return g({conflict:null,saveFailed:!1,loadFailed:R}),N;let A=S(N.layout),L=xR(A),H=await Promise.all(L.map(j=>e.load({id:j.section,...o}).catch(()=>null)));L.forEach((j,Ie)=>{let te=H[Ie];te?(Jp(te.id,te.live),T(j.section,te.layout,te.version,"")):(c.delete(j.section),f.set(j.section,{section:j.section,title:"",problem:"load"}))});let X=IR(A,b());if(d=X.held,!n)return d.size&&s.add(N.id),g({conflict:null,saveFailed:!1,loadFailed:R}),d.size?{...N,layout:X.working}:N;let q=lv(X.working,n.layout);return n.savedJson=JSON.stringify(zh(q,n.layout).chrome),s.add(N.id),g({conflict:null,saveFailed:!1,loadFailed:!1}),{...N,layout:q}},saveLayout:async(O,R,N,y)=>{if(!C(O))return t.saveLayout(O,R,N,y);let A=n,L=A?zh(R,A.layout):{page:R,chrome:null},H=gR(L.page,d,b()),X=await t.saveLayout(O,H.page,N,y);if(await D(H.docs,y),!A)return X;let q=JSON.stringify(L.chrome);if(!L.chrome||q===A.savedJson||p.lockHolder)return X;try{let j=await e.save(A.id,{layout:L.chrome},{version:A.version,clientId:y??""});Qp(A.id,j.live),fr(),A.layout=L.chrome,A.version=j.version,A.savedJson=q,l=!0,g({conflict:null,saveFailed:!1})}catch(j){Ts(j,"changed-elsewhere")?g({conflict:j.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ts(j,"lock-taken")?g({lockHolder:j.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):g({saveFailed:!0})}return X},publish:t.publish?async(O,R)=>{let N=await t.publish(O,R),y=n;if(y&&C(O)&&!a&&e.publish&&I()&&!p.lockHolder){let A=await e.publish(y.id,y.version?{version:y.version}:void 0);eu(y.id,A.live),A.version!==null&&(y.version=A.version),l=!1,g({})}if(C(O)&&!a&&e.publish)for(let[A,L]of c){if(f.get(A)?.problem==="lock")continue;let H=await e.publish(A,L.version?{version:L.version}:void 0);eu(A,H.live),H.version!==null&&(L.version=H.version)}return N}:void 0,lock:r?{claim:async(O,R,N)=>{let y=await r.claim(O,R,N);if(!C(O))return y;let A=n;if(A)try{await r.claim(A.id,R,!1),p.lockHolder&&g({lockHolder:null})}catch(L){Ts(L,"lock-taken")&&g({lockHolder:L.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let L of c.keys())try{await r.claim(L,R,!1),f.get(L)?.problem==="lock"&&k(L,null)}catch(H){Ts(H,"lock-taken")&&k(L,"lock",H.holder??void 0)}return c.size&&g({}),y},release:async(O,R)=>{if(await r.release(O,R),!C(O))return;let N=n;N&&!p.lockHolder&&await r.release(N.id,R).catch(()=>{});for(let y of c.keys())f.get(y)?.problem!=="lock"&&await r.release(y,R).catch(()=>{})}}:void 0,pinnedChrome:F}}function tu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:Gk(r.layout)}:r,a);return new Proxy(e,{get(t,r){if(r==="save")return o;let a=Reflect.get(t,r,t);return typeof a=="function"?a.bind(t):a}})}function JBe(e,o,t){return e.update(o,zk(t))}function QBe(e,o=Ue(),t=Yb(),r={}){let a=bR(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,c=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&c,f=ey(o.site)?o.site:void 0,u=tu(o.pages),p=Qb(u,e,f),x=d?Eee(u,n,p,o.lock,!!f):null;return{capabilities:{canPublish:!!f||!!o.pages.publish,hasSiteSettings:a,hasSiteTheme:!!o.theme,placeholderFrames:!1,mediaEditing:!0,pageCreationInAdminForm:!o.pages.create,canDeletePagesInline:!!o.pages.remove,hasEditLock:!!o.lock,hasEditGuard:!0,hasPinnedChrome:c,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!l,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...p,...yR(p.resolve),lock:o.lock,...x,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:Tee(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function eDe(e,o=Ue(),t=Yb()){let r=bR(o),a=o.templates,n=a?tu(a.pages(e)):{list:()=>Promise.reject(new Error(Jb)),load:()=>Promise.reject(new Error(Jb)),save:()=>Promise.reject(new Error(Jb))};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,editsPinnedInPlace:!1,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},...Qb(n,void 0),...yR(Qb(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function yR(e){return{resolve:o=>(Rb(null),$h(null),e(o))}}var Jb="This editor's backend has no website templates.";function Wee(e,o,t){let r=Mee(e,void 0,o);return t?.(r)??r}function SR({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Ti(!1),[c,d]=Ti(null),f=Nee(),u=Lee(P=>P.config.components),[p,x]=Ti(!1),[I,g]=Ti(null),k=Aee(null),[S,C]=Ti(null),b=_ee(async()=>{if(f.usesBridgedToken&&!r.current){x(!0);return}try{d(await Ue(f).pages.list(t?{siteId:t}:void 0))}catch{x(!0)}},[r,t,f]),v=()=>{if(s){l(!1);return}let P=k.current?.getBoundingClientRect();P&&C({top:P.bottom+6,right:Math.max(8,window.innerWidth-P.right)}),d(null),x(!1),b(),l(!0)},T=(c??[]).filter(P=>P.slug!==o),F=async P=>{if(I)return;g(P.slug);let D=Wee(e,u,f.documentHooks?.storedNode),O=await a(()=>Gee(Ue(f).pages,P,D));g(null),l(!1),n?.(O?i("Duplicated to \u201C{name}\u201D",{name:P.label}):i("Couldn\u2019t duplicate the section \u2014 please retry"),O?"success":"error")};return oy(Oee,{children:[Rt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Rt(Ree,{buttonRef:k,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:v,children:Rt(Dee,{size:15})})}),s&&S&&Rt(Fee,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>l(!1),children:oy("div",{role:"menu","aria-label":i("Duplicate to page"),children:[Rt(ru,{children:i("Duplicate to page")}),p?Rt(ru,{children:i("Couldn\u2019t load pages")}):c===null?Rt(ru,{children:i("Loading\u2026")}):T.length===0?Rt(ru,{children:i("No other pages")}):T.map(P=>oy(Bee,{role:"menuitem",disabled:I!==null,onClick:()=>{F(P)},children:[Rt("span",{className:"min-w-0 flex-1 truncate",children:P.label}),I===P.slug?Rt("span",{className:"shrink-0 text-xs",children:i("Copying\u2026")}):P.draft&&Rt("span",{className:"shrink-0 text-xs",children:i("draft")})]},P.id))]})})]})}async function Gee(e,o,t){let r=tu(e),a=await r.load({id:o.id});if(!a)throw new Error(`Page "${o.slug}" no longer exists.`);let n=a.layout??{},s=Array.isArray(n.content)?[...n.content]:[],l=s.findIndex(c=>c?.type===Hee);s.splice(l===-1?s.length:l,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as yne}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Sne}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as hWe,isSelectionMode as mS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as wne}from"efficient-easel/draw/client";import{jsx as Pi,jsxs as zee}from"react/jsx-runtime";import{SettingsDrill as $ee}from"efficient-easel/panel";import{UiIcon as Uee}from"efficient-easel/draw/client";var jee="Not shown on the page";function Kee({part:e,onOpen:o}){return Pi($ee,{name:i(e.label),preview:e.offPage?i(jee):e.preview||i("Empty"),offPage:e.offPage,status:e.hidden?Pi("span",{className:"sf-entry-eye",role:"img","aria-label":i("Hidden on the page"),children:Pi(Uee,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function ty(e){return e.filter(o=>!o.identifier)}function wR({parts:e,onOpen:o,heading:t=!0}){let r=ty(e);return r.length?zee("div",{className:"sf-entries",children:[t?Pi("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>Pi(Kee,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Cne,ROOT_ZONE as FD}from"efficient-easel/draw";import{HEADER_TYPE as qo,FOOTER_TYPE as He,newNodeId as Vee}from"efficient-easel/draw";function au(){return{type:qo,props:{id:Vee(qo)}}}var CR=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterPayment",label:"Payment Logos"},{type:"FooterGroup",label:"Footer Box"}],qee=CR.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Yee="FooterGroup",kR="blocks";function vR(e){return e===He?CR:e===Yee?qee:null}function nu(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...CP}),e("FooterPayment",{...Gd})]}function ry(e){switch(e?.type){case Me:case Re:return i("On every page");case qo:case He:return i("On every page \xB7 old style");default:return null}}var TR=()=>null,PR=()=>i("Changed on every page");function su(e,o){let t=Gw(e,o);if(t)return t;let r=ov(e,o);if(!r)return null;let a=r.group===Me;return r.why==="type"?a?i("The header cannot take another one of these"):i("The footer cannot take another one of these"):a?i("The header holds at most 3 sections"):i("The footer holds at most 6 sections")}import{jsx as Vu,Fragment as tne,jsxs as rne}from"react/jsx-runtime";import{useState as ane}from"react";import{createNode as nne,newId as sne}from"efficient-easel/data";import{useEasel as lne}from"efficient-easel/easel";import{Banner as ine,Button as pS}from"efficient-shell/ui";import{useScreenDocument as cne}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as Xee}from"efficient-easel/data";import{hiddenKeyOf as Zee}from"efficient-easel/screen/lib/content/view-hide";var lu="Flex",Jee={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Qee={FooterPayment:"PaymentLogosBlock"},eoe=e=>{let{id:o,...t}=e;return t},ER=e=>typeof e=="string"?e:"",Ps={sm:12,md:13,lg:15},OR={sm:{mark:16,words:Ps.sm},md:{mark:20,words:Ps.md}},ooe="md",_R=1.5,toe={size:13,lineHeight:_R,width:280},roe=14,aoe=40,noe=e=>e==="center"||e==="right"?e:"left";function soe(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=U(e[r]);n&&(o[a]=n)}return o}function loe(e,o,t){let r=t(e,eoe(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:AR(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=_k(e,r.props);return a===r.props?r:{...r,props:a}}function AR(e,o,t={at:0}){return e.map(r=>{let a={...r.props,id:`${o}~t${t.at++}`};for(let[n,s]of Object.entries(a))Xee(s)&&(a[n]=AR(s,o,t));return{...r,props:a}})}function RR(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=Jee[e.type]??Qee[e.type];if(n)return[loe(n,r,o)];switch(e.type){case"FooterLogo":{let s=noe(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(eC*((U(r.widthPct)??100)/100)),href:"/",align:s,...soe(r)}),c=ER(r.tagline).trim();return c?[l,o("Text",{text:c,tone:"dim",align:s,_partStyles:{text:{...toe}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&r.size in Ps?r.size:ooe;return[o("Text",{text:ER(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:Ps[s],lineHeight:_R}}})]}case"FooterDivider":{let s=U(r.thickness),l=U(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[Zee("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(lu,{direction:r.direction==="horizontal"?"row":"column",gap:Ra("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...Js,content:s.flatMap(l=>RR(l,o,t))})]}default:return[]}}function Ei(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(lu,{direction:"row",wrap:!0,share:"equal",gap:aoe,content:f}),s=[],l=[];for(let f of a){let u=RR(f,o,r);if(f.type==="FooterDivider"){l.length&&s.push(n(l)),l=[],s.push(...u);continue}u.length<=1?l.push(...u):l.push(o(lu,{direction:"column",gap:roe,align:"stretch",...Js,content:u}))}(l.length||!s.length)&&s.push(n(l));let c=o(lu,{direction:"column",content:[o("LegalLineBlock")]}),d=Jk(Re,t,[...s,c]);return{...d,props:{...d.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{isNodeList as ene}from"efficient-easel/data";import{readHidable as coe}from"efficient-easel/draw";function iu(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),l=r.find(c=>c.key===s);l||(l={key:s,name:t(a),items:[]},r.push(l)),l.items.push({item:a,index:n})}),r}function NDe(e){return ioe[Oi(e)]}var ioe={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function Oi(e){if(e<=1)return 1;if(e<=4)return e;let o=t=>e%t||t;return o(4)>=o(3)?4:3}var Qt=K,er=se;function rn(e){if(e.theme)return ro(e.theme);let o=e.site?.themePresets;return o?ro({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function doe(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var FR=new Set(["id"]),tn={},BR=[],foe=["ProductGrid","Events","ContactRouting","ReviewForm","AppointmentBooking","Reviews","CheckoutCTA"],_i=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ",...foe,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Countdown","FeaturedCover","Cards"];function bo(e){for(let[o,t]of Object.entries(e)){if(o in tn&&tn[o]!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);tn[o]=t}}function Qr(e){return tn[e]}function poe(e){return e in tn&&BR.includes(e)}function DR(e,o=_i){return e in tn&&(o.includes(e)||poe(e))}function qDe(e){let o=Ro[e];if(!o)throw new Error(`lib/sections/section-to-box: "${e}" has no head row in SPLITTABLE_SECTIONS`);let t=[{kind:"text",key:o.num,role:"eyebrow"},{kind:"text",key:o.title,role:"heading"}];return o.description&&t.push({kind:"text",key:o.description,role:"body"}),o.headRows.includes("linkText")&&o.headRows.includes("linkHref")&&t.push({kind:"button",key:"linkText",href:"linkHref"}),t}var ay=e=>coe(e),Ze=e=>ay(e).text.trim()!=="";function uoe(e){if(e.includes("=="))return e;let o=e.indexOf("/"),t=o===-1?e:e.slice(0,o),r=t.trim();if(!r)return e;let a=t.indexOf(r);return`${t.slice(0,a)}==${r}==${t.slice(a+r.length)}${o===-1?"":e.slice(o)}`}var moe=e=>e==="heading"?Nr():e==="eyebrow"?yt():{};function hoe(e,o,t,r){let a={...e._partStyles?.text??{},...o??{},...t??{}};return(r==="center"||r==="right")&&a.align===void 0&&(a.align=r),Object.keys(a).length?{_partStyles:{text:a}}:{}}function xoe(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:typeof t=="string"&&Object.hasOwn(e.map,t)?e.map[t]:e.fallback}}function LR(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,c,d]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=d?d(t[l],t,a):t[l];f===void 0?delete n[c]:n[c]=f,r(l,c,f===void 0)}return n}function Ioe(e){let o=new Set([...FR,"headPlacement","_partStyles",...Object.keys(e.drop??{}),...Object.keys(e.reads??{})]),t=a=>{for(let n of a??[])o.add(typeof n=="string"?n:n[0])},r=a=>{for(let n of a)switch(n.kind){case"text":case"image":o.add(n.key),n.kind==="image"&&n.alt&&o.add(n.alt);break;case"button":o.add(n.key),o.add(n.href),typeof n.variant=="object"&&o.add(n.variant.key);break;case"list":o.add(n.key);break;case"group":case"block":t(n.box),r(n.parts??[]);break;case"core":if(n.keep!=="rest"&&n.keep.forEach(s=>o.add(s)),Object.keys(n.rename??{}).forEach(s=>o.add(s)),n.derive?.reads.forEach(s=>o.add(s)),typeof n.slots!="function")for(let s of Object.values(n.slots??{}))for(let l of s)"kind"in l&&o.add(l.key);break}};for(let a of[e,...e.also??[]])t(a.box),r(a.parts);return o}var ny=e=>Yc(e.headPlacement)==="own-box";function goe(e){return ny(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function boe(e,o){let t=e[o];return Array.isArray(t)&&t.some(r=>!!r&&typeof r=="object"&&typeof r.type=="string")?"already on the Box path: its items draw from a filled card template":void 0}function yoe(e){let o=new Set,t=r=>{for(let a of r)if(a.kind==="group"||a.kind==="block")t(a.parts??[]);else if(a.kind==="core"&&a.slots&&typeof a.slots!="function")for(let[n,s]of Object.entries(a.slots))s.length>0&&s.every(l=>!("kind"in l))&&o.add(n)};for(let r of[e,...e.also??[]])t(r.parts);return[...o]}function Soe(e,o,t){if(!t.press)for(let r of yoe(e)){let a=boe(o,r);if(a!==void 0)return a}}function Es(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:goe(r))??Soe(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],restyled:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],c=[],d=new Set,f=(T,F)=>{s.push({key:T,home:F}),d.add(T)},u=r._partStyles??{},p=Ioe(o),x=0,I=(T,F)=>({type:T,props:{...F,id:`${n}~${T}-${++x}`}}),g=(T,F,P,D,O,R,N)=>{if(O){for(let A of T??[]){let L=typeof A=="string"?A:A[0];P[L]!==void 0&&N(L,`nothing \u2014 the ${D} has no parts, so it is not drawn`)}return}let y=typeof F=="function"?F(r,t):F??{};return LR(T??[],y,P,(A,L,H)=>N(A,H?`nothing \u2014 the old value draws nothing (${D}: no ${L})`:`${R}${D}: ${L}`),t)},k=T=>lo(T,F=>`${n}~${F}-${++x}`),S=(T,F,P)=>{let D=T.of?T.of(F):Array.isArray(F[T.key])?F[T.key]:[],O=typeof T.props=="function"?T.props(r,t):T.props??{},R=D.map((H,X)=>{let q=H??{},j=T.item?.(q,X,r)??{},Ie=C(j.reverse?[...T.parts].reverse():T.parts,q,!1,`item ${X+1}: `);return T.flat?j.props?Ie.map(te=>({...te,props:{...te.props,...j.props,id:te.props.id}})):Ie:[I(Qt,{name:`${T.name} ${X+1}`,...O,...j.props??{},[er]:Ie})]});if(T.groups){let H=T.groups;return P(T.key,D.length?`one Box per item (${D.length}), in a Box per group`:"nothing \u2014 the list is empty"),iu(D.map(X=>X??{}),H.of,H.of).map((X,q)=>{let j=X.items.map(ge=>ge.item),Ie=H.parts?C(H.parts,H.head?.(j,r)??{},!1,`group ${q+1}: `):[],te=X.items.map(ge=>R[ge.index]),Le=H.perRow?.(j.length,r),We=Number.isInteger(Le)&&Le>=1?Le:1,Ee=[];if(H.perRow&&We<te.length)for(let ge=0;ge*We<te.length;ge++)Ee.push(te.slice(ge*We,(ge+1)*We).flat());return I(Qt,{name:`${H.name} ${q+1}`,...H.props??{},[er]:[...Ie,I(Qt,{name:`${H.itemsName} ${q+1}`,...H.itemsProps?.(j.length,r)??{},[er]:Ee.length?Ee.map((ge,Oe)=>I(Qt,{name:`${H.rowName??`${H.itemsName} row`} ${Oe+1}`,...H.rowProps??{},[er]:ge})):te.flat()})]})})}let N=T.perRow?.(r),y=T.perRow?Number.isInteger(N)&&N>=1?N:1:0;if(P(T.key,(D.length?T.flat?`each item's parts (${D.length} items), in order`:`one Box per item (${D.length}), its parts inside`:"nothing \u2014 the list is empty")+(y&&D.length?`, in rows of ${y}`:"")),!y)return R.flat();let A=typeof T.rowProps=="function"?T.rowProps(r,t):T.rowProps??{},L=[];for(let H=0;H*y<R.length;H++){let X=R.slice(H*y,(H+1)*y).flat(),q=T.rowFiller?y-R.slice(H*y,(H+1)*y).length:0;L.push(I(Qt,{name:`${T.rowName??`${T.name} row`} ${H+1}`,...A,[er]:[...X,...Array.from({length:q},(j,Ie)=>I(Qt,{name:`Empty ${Ie+1}`,...T.rowFiller,[er]:[]}))]}))}return L},C=(T,F,P,D)=>{let O=[],R=(y,A)=>P?f(y,A):void 0,N=y=>P?u[y]:void 0;for(let y of T)if(!(y.when&&!y.when(r,P?void 0:F)))switch(y.kind){case"text":{let A=ay(F[y.key]);if(!A.text.trim()&&!(P&&t.press&&o.pressKeepsEmpty?.includes(y.key))){R(y.key,"nothing \u2014 empty words draw nothing, so no block");break}let L=moe(y.role??"body"),{_partStyles:H,...X}=L,q=hoe(L,y.styleFrom?{...y.style,...y.styleFrom(r,t)}:y.style,N(y.key),y.props?.align);if(y.was&&P){let j=q._partStyles?.text??{};c.push({key:y.key,was:y.was,...typeof j.textStyle=="string"?{textStyle:j.textStyle}:{},...U(j.size)!==void 0?{size:U(j.size)}:{},...U(j.sizePhone)!==void 0?{sizePhone:U(j.sizePhone)}:{}})}O.push(I("Text",{text:y.mark==="accentLead"?uoe(A.text):y.mark==="accentItalic"?Ia(A.text):A.text,...X,...y.props??{},...q,...A.hidden?{_hidden:!0}:{}})),R(y.key,`${D}Text block: its words${A.hidden?", hidden":""}`);break}case"button":{let A=ay(F[y.key]);if(!A.text.trim()){R(y.key,"nothing \u2014 no words, no button"),R(y.href,"nothing \u2014 no button to link"),typeof y.variant=="object"&&R(y.variant.key,"nothing \u2014 no button to style");break}let L=typeof F[y.href]=="string"&&F[y.href]?F[y.href]:"#",H={...y.style??{},...N(y.key)??{}};O.push(I("ButtonBlock",{label:A.text,href:L,...typeof y.props=="function"?y.props(F,t):y.props??{},...xoe(y.variant,F),...Object.keys(H).length?{_partStyles:{label:H}}:{},...A.hidden?{_hidden:!0}:{}})),R(y.key,`${D}Button block: its words`),R(y.href,`${D}Button block: its link`),typeof y.variant=="object"&&R(y.variant.key,`${D}Button block: its Style`);break}case"image":{let A=F[y.key];if(typeof A!="string"||!A){R(y.key,"nothing \u2014 no picture, no block"),y.alt&&R(y.alt,"nothing \u2014 no picture to describe");break}let L=y.alt&&typeof F[y.alt]=="string"?F[y.alt]:"";O.push(I("ImageBlock",{src:A,alt:L,...y.props??{}})),R(y.key,`${D}Image block: its picture`),y.alt&&R(y.alt,`${D}Image block: its alt text`);break}case"list":{O.push(...S(y,F,R));break}case"group":{let A=C(y.parts,F,P,D),L=g(y.box,y.props,F,`${y.name} Box`,!A.length&&!y.keepEmpty,D,R);L&&O.push(I(Qt,{name:y.name,...L,[er]:A}));break}case"block":{let A=y.parts?C(y.parts,F,P,D):[],L=g(y.box,y.props,F,`${y.type} block`,!!y.parts&&!A.length&&!y.keepEmpty,D,R);L&&O.push(I(y.type,{...L,...y.slot?{[y.slot]:A}:{}}));break}case"core":{let A=y.as??e.type,L={...y.headless?{}:{headPlacement:"own-box"},...y.props??{}},H=y.keep==="rest"?Object.keys(F).filter(q=>!p.has(q)&&!(q in L)):y.keep;for(let q of H)F[q]!==void 0&&(L[q]=F[q],R(q,`the ${A} block inside the Box`));if(y.keep==="rest"){for(let j of Object.keys(y.props??{}))F[j]!==void 0&&!p.has(j)&&R(j,`nothing \u2014 the ${A} block inside the Box has the row's own value`);F.headPlacement!==void 0&&R("headPlacement",`the ${A} block inside the Box: own-box`);let q=Object.fromEntries(Object.entries(u).filter(([j])=>!p.has(j)));Object.keys(q).length&&(L._partStyles=q)}for(let[q,j]of Object.entries(y.rename??{}))F[q]!==void 0&&(L[j]=F[q],R(q,`the ${A} block inside the Box: ${j}`));if(y.derive){Object.assign(L,y.derive.props(F,t));for(let q of y.derive.reads)F[q]!==void 0&&R(q,`the ${A} block inside the Box`)}let X=typeof y.slots=="function"?y.slots(F,t):y.slots??{};for(let[q,j]of Object.entries(X))L[q]=j.flatMap(Ie=>"kind"in Ie?S(Ie,F,R):k([Ie]));O.push(I(A,L));break}}return O},b=(T,F)=>{let P=F===0?"Box":`${T.name} Box`,D=C(T.parts,r,!0,F===0?"":`${P}: `),O=typeof T.boxProps=="function"?T.boxProps(r,t):T.boxProps??{},R=LR(T.box??[],O,r,(N,y,A)=>f(N,A?`nothing \u2014 the old value draws nothing (${P}: no ${y})`:`${P}: ${y}`),t);return{type:Qt,props:{name:T.name,...R,[er]:D,id:doe(n,F)}}},v=[o,...o.also??[]].map(b);r._partStyles!==void 0&&f("_partStyles","each old part's style moved to its new part");for(let[T,F]of Object.entries(o.reads??{}))r[T]!==void 0&&f(T,F);for(let[T,F]of Object.entries(o.drop??{}))T in r&&(l.push({key:T,why:F}),d.add(T));for(let T of Object.keys(r))FR.has(T)||d.has(T)||l.push({key:T,why:"not in the row \u2014 not carried"});return{node:v[0],nodes:v,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]],restyled:c}}function NR(e,o=BR,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?tn[a.type]:void 0;if(!s)return;let l=Es(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{phoneKey as Eoe}from"efficient-easel/draw";var MR={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as Coe}from"react/jsx-runtime";import{isNodeList as woe}from"efficient-easel/data";var sy=new Set(["FAQ"]);function HR(e,o){if(!sy.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:woe(t)}var cu={ParagraphsA:{top:60,bottom:80},StatsParagraph:{top:120,bottom:120},Timeline:{top:120,bottom:120},Footprint:{top:120,bottom:120},TimelineTrack:{top:120,bottom:120},TitleWithButtons:{top:140,bottom:140},ProcessSteps:{top:120,bottom:120},DetailRows:{top:100,bottom:100}},WR=new Set(Object.keys(cu)),zR=new Set(["Flex","Text","Heading","ImageBlock"]),koe=new Set(["Divider"]),voe=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),GR=new Set(["ProductGrid"]);function ly(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=Kd(DP(a,jd,t)),s=r(a),l=Qw(a);return n?Coe(_c,{className:l?`${n.className} ${l}`:n.className,style:n.style,children:s}):s}}var nNe={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!voe.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){WR.has(o)||GR.has(o)||(e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0})})},draw(e,o){if(WR.has(o)){let t=e.render,r=cu[o];e.render=a=>{let n=Vd(a,r);return t({...a,padTop:n.top,padBottom:n.bottom})};return}if(GR.has(o)){ly(e);return}zR.has(o)||koe.has(o)||ly(e,o==="Flex"?t=>mx(t.bgImage):sy.has(o)?t=>HR(o,t):void 0,!0)}},Toe=["Heading","Text","ImageBlock"],Poe=["LogoBlock"],sNe={name:"blockPadding",applies:(e,o,t)=>(Toe.includes(e)||Poe.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0})}},draw(e,o){zR.has(o)||ly(e,void 0,!0)}};import{parseHexColor as Ooe}from"efficient-shell/format";import{convertLength as _oe,isLengthUnit as Aoe}from"efficient-easel/screen/lib/content/length-units";var iy=e=>Aoe(e)?e:"px",ea=(e,o,t,r)=>o===t?e:_oe(e,o,t,r,{min:0,max:200,step:4}),an={textFit:"line",textFitPhone:"wrap"},nn={...G,[gt]:""},{label:ONe,href:_Ne,...Roe}=MR.defaultProps,fo=Roe,sn={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...Uc,sectionAccent:0},_s={sectionAccent:-1},re=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent","stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...zP,"anchor","sectionAnimation",...$n,...Object.values(Ae).flatMap(e=>[e,Eoe(e)]),...Op,"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(co)],Os="a section width key, ignored since efficient-web-builder 45 (an old key; a section's own width has new keys, lib/content/section-width), so dropping it changes nothing",oe={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Os,fullWidth:Os,pageWidth:Os,backgroundWidth:Os,contentWidth:Os,contentMax:Os},de=Object.fromEntries(["sectionPaddingLeft","sectionPaddingRight","sectionPaddingLeftTablet","sectionPaddingRightTablet","sectionPaddingLeftPhone","sectionPaddingRightPhone"].map(e=>[e,"needs Box side padding outside its gutter: the old section added it outside its frame, a Box's side padding replaces the gutter. 0 live nodes store it (JJ's read-only export, 2026-10-24)"]));function ce(e,o){let t=U(e.sectionPaddingTop)??0,r=U(e.sectionPaddingBottom)??0,a=U(e.sectionPaddingTopTablet),n=U(e.sectionPaddingBottomTablet),s=iy(e.sectionPaddingUnit),l=iy(e.sectionPaddingUnitTablet),c=iy(e.sectionPaddingUnitPhone),d=(u,p,x,I)=>{let g=U(u);if(g!==void 0)return g+ea(I,"px",c,"mobile");let k=p===void 0?{n:x,unit:s}:{n:p,unit:l};return ea(k.n,k.unit,c,"mobile")+ea(I,"px",c,"mobile")},f=(u,p,x,I,g)=>p!==void 0?{[u]:p+ea(g??I,"px",l,"tablet")}:g===void 0?{}:{[u]:ea(x,s,l,"tablet")+ea(g,"px",l,"tablet")};return{sectionPaddingTop:t+ea(o.top,"px",s,"desktop"),sectionPaddingBottom:r+ea(o.bottom,"px",s,"desktop"),...f("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...f("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:d(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:d(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var ye=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>ce(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function No(e,o){let t=Vd(e,cu[o]);return{sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom}}var oa=e=>[["padTop","sectionPaddingTop",(o,t)=>No(t,e).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,t)=>No(t,e).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,t)=>No(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>No(t,e).sectionPaddingBottom]],Loe={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},ANe=e=>o=>Ze(o.props[e])?[Loe]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:G,...o?{style:o}:{}}),du=e=>({kind:"group",name:"Chip",props:{..._,...Dr("main"),...Xe(6,14)},parts:[pe(e,{color:"background",...M("label",12),weight:600,letterSpacing:.16})]}),$R=e=>e.background!=="transparent",Foe=(e,o)=>{let[t,r]=[e,o].map(a=>typeof a=="string"?a.trim():"");return t?r?`[${t} ]{color=text}${r}`:`[${t}]{color=text}`:r},Ai={align:"right",alignPhone:"left"},Boe=(e,o,t)=>{let r=a=>Foe(a[e],a[o]);return{kind:"block",type:"Text",when:(a,n)=>n!==void 0&&r(n)!=="",box:[[e,"text",(a,n)=>r(n)],[o,"text",(a,n)=>r(n)]],props:t}},Ri=(e,o,t,r={})=>Boe(e,o,{...nn,...Ai,...r,_partStyles:{text:{...Ao,color:"labels",...t,case:Ao.case,...Ai}}}),As=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:rn(o)?.selected??0,UR="var(--site-surface-2)",fu=(e,o)=>rn(o)?.themes[As(e.sectionAccent??0,o)],Yo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Dr(e);let a=fu(t,r)?.[e];return a?{fillColor:a}:{}},pu=(e,o)=>ta(e,o)>=0,jR=e=>e.startsWith("#")&&Ooe(e)!==null,uu=(e,o,t)=>{let r=e?.trim();if(r&&jR(r))return{fillColor:r};let a=fx(r);if(a)return Dr(a);let n=r===UR?fu(o,t):void 0;return n?{fillColor:wc(n)}:{}},mu=e=>{let o=e?.trim();return!o||o==="transparent"||o===vo||fx(o)||o===UR||jR(o)?void 0:"it paints a colour that no Box Fill can hold"},ta=(e,o)=>{let t=rn(o)?.themes;return t&&$R(e)?Sw(t,As(e.sectionAccent,o)):-1},ra=(e,o,t)=>{let r=ta(o,t);return r>=0?r:e},cy=(e,o)=>{let t=rn(o)?.themes,r=t?ww(t,As(e,o)):-1;return r>=0?r:e},ln=(e,o)=>{let t=ta(e,o);return t>=0?{sectionAccent:t}:{}},aa=(e,o)=>$R(e.props)&&ta(e.props,o)<0?[{kind:"band-preset",page:As(e.props.sectionAccent,o)}]:[],Rs=e=>of(e.site?.siteGutter),Li=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),Fi=e=>({top:0,right:0,bottom:0,left:0,...e}),dy=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({..._,...Li,...Yo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],we.kind,we.duration,we.delay],parts:r});import{phoneKey as Sy,readHidable as wy}from"efficient-easel/draw";import{isNodeList as pte,newId as ute}from"efficient-easel/data";function KR(e){return Math.min(4,Math.max(2,e??3))}var BNe={eyebrow:"Label",title:"Section *heading.*"},Doe={template:Ek()},VR={label:"Cards",fields:Doe,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var MNe={eyebrow:"Highlight",title:"Key *features.*"},HNe=()=>[{label:i("Feature label one")},{label:i("Feature label two")},{label:i("Feature label three")},{label:i("Feature label four")},{label:i("Feature label five")},{label:i("Feature label six")}],qR={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Noe="plain",YR=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],Moe="line",Hoe={KeyFeatures:"filled"};function Bi(e){return Hoe[e]??Noe}function XR(e,o){return Ho(YR,Bi(o),e)}function zNe(e){return Ho(YR,Moe,e)}var fy="cardPlace";function jNe(e){return e[fy]==="top-line"?"top-line":""}var KNe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",VNe="data-sf-top-line",Woe=new Set(["Cards",Lo]);function qNe(e){return typeof e=="string"&&Woe.has(e)}var Goe=e=>{if(!e||typeof e!="object")return!1;let o=e,t=n=>typeof n=="number"&&n>0,r=o.width,a=n=>typeof o[n]=="number"?t(o[n]):t(r);return a("top")&&!a("right")&&!a("bottom")&&!a("left")};function YNe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Goe(e)?{...e,top:0}:e}var XNe="outsideFramedCard";function QNe(e){return typeof e=="string"?e.trim():""}var eMe="data-sf-box-link",ZR="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",oMe="relative isolate pointer-events-none [&_a]:pointer-events-auto [&_button]:pointer-events-auto [&_input]:pointer-events-auto [&_select]:pointer-events-auto [&_textarea]:pointer-events-auto [&_label]:pointer-events-auto [&_summary]:pointer-events-auto [&_iframe]:pointer-events-auto [&_video]:pointer-events-auto [&_audio]:pointer-events-auto [&_[role=button]]:pointer-events-auto [&_[tabindex]:not([tabindex='-1'])]:pointer-events-auto",zoe="data-sf-box-jump";function $oe(e){return`sf-box-jump-${e}`}function tMe(e,o){return e===!0?gd(o):""}function Uoe({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
63
|
+
`),a=t(e),n=o.flatMap(t);return`
|
|
64
|
+
${e} {
|
|
65
|
+
outline: 2px solid transparent;
|
|
66
|
+
outline-offset: -2px;
|
|
67
|
+
transition: outline-color 600ms ease-out;
|
|
68
|
+
}
|
|
69
|
+
${r(a)} { transition: background-color 600ms ease-out; }
|
|
70
|
+
${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
|
|
71
|
+
${r(o)} { outline-color: var(--accent); }
|
|
72
|
+
${r(n)} { background-color: var(--accent); }
|
|
73
|
+
${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
|
|
74
|
+
`}function rMe(e){let o=`[${zoe}="${e}"]`,t=`.${$oe(e)}`,r=`[id="${e}"]:target`;return Uoe({box:o,lit:[`${r}~${o}`,`${r}~* ${o}`],first:a=>[`${a} ${t}>:first-child:not(.sf-section-anchor)`,`${a} ${t}>.sf-section-anchor:first-child+*`]})}var joe=["selected","highlighted"],JR="data-sf-card-state",iMe="pointer-events-none absolute inset-0 border border-accent",cMe="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",dMe="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",fMe="absolute inset-y-0 left-0 w-[3px] bg-accent",pMe="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",uMe="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",QR=e=>{let o=Fw.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},Koe={[QR("muted")]:`var(${QR("fg")})`};function Voe(e){return e?.selected===!0}function qoe(e){return e?joe.filter(o=>e[o]===!0).join(" "):""}function mMe(e,o="frame"){let t=qoe(e);return t?o==="frame"&&Voe(e)?{[JR]:t,className:"relative isolate",style:{...Koe}}:{[JR]:t,className:"relative"}:{}}var Yoe={highlighted:!0},Xoe={},hu="badge";function hMe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||hl(t,r)}))}function xMe(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===hu||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function IMe(e,{chosen:o,badge:t}){let r=o.trim(),a=r?e.findIndex(n=>n.key===r):-1;return{rows:e.map((n,s)=>({...n,[hu]:s===a?t:""})),states:e.map((n,s)=>s===a?Yoe:Xoe)}}function gMe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function bMe(e){if(!e||typeof e!="object")return;let{press:o,pressLabel:t,pressDisabled:r}=e;if(typeof o=="function")return{press:o,...typeof t=="string"&&t.trim()!==""?{label:t}:null,...r===!0?{disabled:!0}:null}}var yMe="data-sf-card-press",eL=`${ZR} appearance-none bg-transparent border-0 p-0 m-0`,SMe=`${eL} cursor-pointer`,wMe=eL;var xu={sectionBorder:{top:0,right:1,bottom:1,left:0},...Dr("background")},Zoe={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},Iu=e=>({direction:"row",columns:e,columnsTablet:e,...Zoe}),oL=(e={})=>ne(hu,{...G,tag:"p",[fy]:"top-line"},e,!0),tL=(e=Mr)=>{let o=xh(e);return{...o,props:{...xu,...o.props},slots:{[se]:[...o.slots?.[se]??[],oL()]}}},py=(e=!1)=>{let o=Ih(e);return{...o,props:{...xu,...o.props}}},Joe={name:"name",time:"time",note:"note",price:"price"},Qoe={textStyle:"body-1",...M("body",16),weight:500,lineHeight:1.5},ete={...Ao,...M("label",12),letterSpacing:.18,lineHeight:1.5},ote={textStyle:"body-1",...M("body",14),lineHeight:1.6},tte={textStyle:"body-1",fontRole:"heading",...M("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},rte={...M("label",11),letterSpacing:.25},ate={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},nte=e=>({direction:"row",columns:e,...ate}),OMe=[...new Set([...Object.keys(Iu(1)),...Object.keys(nte(1))])],_Me=()=>{let e=Joe,o={tag:"p",widthFit:"fill"};return{type:K,props:{..._,name:"Card",justify:"between",gap:16,gapPhone:16,...Xe(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Dr("surface"),shadow:!0},slots:{[se]:[oL(rte),{type:K,props:{..._,name:"Words",gap:8,gapPhone:8},slots:{[se]:[ne(e.name,{...G,...o},Qoe),ne(e.time,{...Y,...o},ete),ne(e.note,{...Y,...o},ote)]}},ne(e.price,{...G,...o},tte)]}}};function Fs(e){if(e==="ProductGrid")return"shelf";let o=Ro[e]?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var bu={standard:64,editorial:60,simple:36,essay:28,shelf:20},ste={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function lte(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=Ro[e];if(!o)throw new Error(`section-head-looks: "${e}" has no head row in SPLITTABLE_SECTIONS`);return{num:o.num,title:o.title,description:o.description,link:o.headRows.includes("linkText")&&o.headRows.includes("linkHref")}}function yu(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=gu.get(r);if(a)return a;let n=sL({num:e,title:o,description:t,link:!1});return gu.set(r,n),n}var my={top:0,right:0,bottom:1,left:0},Xo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Su=(e,o,t={})=>pe(e,{...M("label",o),...t}),wu=(e,o)=>({kind:"text",key:e,role:"heading",props:G,style:{textStyle:"heading-2",...o}}),hy=800,xy=(e,o,t,r)=>({kind:"text",key:e,props:{...Y,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:hy}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...M("body",o),...r}}),nL={...fo,align:"right",alignPhone:"left",...sn,icon:"arrow-right",iconPosition:"after"},uy=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:nL,style:{...bt(e),color:"labels"}}),rL=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...G,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?ite(yt()):{},...t.style}}}}},ite=e=>e._partStyles.text??{},Ls={widthFitPhone:"fill"};function Iy(e){if(e.kind!=="group")return e;if(e.name==="Words"){let o=e.props;return{...e,props:typeof o=="function"?(t,r)=>({...o(t,r),...Ls}):{...o,...Ls}}}return{...e,parts:e.parts.map(Iy)}}function cte(e,o){let t=ste[e],r=t==="accent",a=Su(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=wu(o.title,r?{...Xo("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...M("headingMedium",56,36),case:"none",lineHeight:1,letterSpacing:-.03}),l=e==="Collections";return{kind:"group",name:"Header",props:{..._,direction:"row",align:"end",justify:"between",gap:40,gapPhone:12,share:"content",sectionBorder:my,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{..._,...Ls,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{..._,...Ls,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[rL(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{..._,...Ls},parts:[s,...l?[rL(o.title,`Three ranges,
|
|
75
|
+
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{..._,...Ls,gap:12,maxWidth:340,maxWidthPhone:hy},parts:[...o.description?[xy(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[uy(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...nL,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:uy(14).style}}}]:[]]}]}}function sL(e){return{kind:"group",name:"Header",props:{..._,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:my,sectionPaddingBottom:32},parts:[{kind:"group",name:"Title",props:{..._,direction:"row",align:"end",gap:40,gapPhone:14,share:"content"},parts:[{kind:"group",name:"Number",props:{..._,sectionPaddingBottom:8},parts:[{...Su(e.num,13),props:{...G,...an}}]},wu(e.title,{...Xo("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{..._,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:hy},parts:e.description?[xy(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function aL(e,o){return{kind:"group",name:"Header",props:{..._,gap:16,gapPhone:16},parts:[Su(e.num,13),wu(e.title,o)]}}var lL=[["para",{...bt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...M("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...M("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...M("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...M("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],dte=e=>lL.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function fte(e){return{kind:"group",name:"Header",props:{..._,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:my,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{..._,direction:"row",align:"end",gap:24,share:"content"},parts:[Su(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...lL.map(([o,t])=>({...wu(e.title,t),when:r=>dte(r)===o}))]},{kind:"group",name:"Words",props:{..._,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[xy(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[uy(13)]:[]]}]}}function Cu(e){return Fs(e)==="shelf"?{titleSize:"the Header Box's title Text part: its size, as the old shelf title drew it (lib/document/blocks/general/section-head-looks)"}:{}}var gu=new Map,gy={...M("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function st(e){let o=gu.get(e);if(o)return o;let t=lte(e),r=Fs(e),a=r==="editorial"?sL(t):r==="simple"?aL(t,gy):r==="essay"?aL(t,{...M("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?fte(t):cte(e,t);return gu.set(e,a),a}var cn={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:vo,Stats:void 0};var Di=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),yL=e=>o=>KR(U(o.columns)??U(e.columns)),mte="inline is the head the row draws; an own-box node is skipped (`skip`)",hte={kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-3",...gy}},iL={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},vu=e=>{let o=qt(typeof e.background=="string"?e.background:void 0,cn.Series);return o&&o!=="transparent"?o:void 0},ku=e=>vu(e)===vo,xte={..._,justify:"between",gap:16,gapPhone:16,sectionHeightMode:"fixed",sectionHeightValue:340,sectionHeightUnit:"px",sectionPaddingTop:36,sectionPaddingRight:28,sectionPaddingBottom:32,sectionPaddingLeft:28,sectionPaddingTopPhone:36,sectionPaddingRightPhone:28,sectionPaddingBottomPhone:32,sectionPaddingLeftPhone:28},cL={..._,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[Sy("share")]:"content"},Ite=e=>{let o=vu(e)?1:2;return{..._,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},by={...bt(12),letterSpacing:.22,lineHeight:1.5},dL=e=>Ze(e.viewLabel)&&!wy(e.viewLabel).hidden,lt=e=>wy(e).text?.trim?.()??"",Tu=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Z(o)!==void 0)),Cy=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),gte=Cy([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),bte=Cy([["label","Label"],["value","Value"],["body","Card body",!0]]),Ni=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Lo,headless:!0,keep:s,derive:{reads:n,props:l=>rd(r(l),t)},slots:(l,c)=>({[io]:[a(l,c)]})}]}),SL=e=>Array.isArray(e.cards)?e.cards:[],fL={top:76,bottom:76,topPhone:76,bottomPhone:76},wL=e=>(Array.isArray(e.items)?e.items:[]).map(o=>Tu({title:lt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:hl(Ph(o),t),...o})),yte=e=>wL(e).some(o=>Z(o.href)!==void 0),CL=[{key:ll.label,label:"Feature label"},{key:ll.href,label:"Link",kind:"link"}],pL=e=>XR(e.eyebrowLook,"KeyFeatures")==="filled",Ste={name:"Key Features",boxProps:(e,o)=>({...Q,direction:"column",gap:44,gapPhone:32,...Yo("surface")(e,o),...Di(1,0,1,0),...ce(e,fL)}),box:[...re,...ye(fL)],parts:[{kind:"group",name:"Heading",props:{..._,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[Sy("share")]:"content"},parts:[{...du("eyebrow"),when:pL},{...pe("eyebrow"),when:e=>!pL(e)},hte]},Ni("Cards",e=>({..._,...Iu(yL(qR.defaultProps)(e))}),CL,wL,e=>py(yte(e)),{reads:["items"]})],drop:{...oe,...de,columns:'Box "Cards": its Columns and tablet Columns',eyebrowLook:"the Filled look is a Box in the main colour round the eyebrow Text; the plain look is the eyebrow Text"}},uL={top:72,bottom:72,topPhone:72,bottomPhone:72},mL=(e,o)=>({...xu,...Yo("background")(e,o)}),hL=e=>{let o=yL(VR.defaultProps)(e);return{..._,...Iu(o)}},wte=Cy([["title","Card title"],["body","Card body",!0]]),kL=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:hl(Ph(o),t),title:lt(o?.title),body:lt(o?.body)})),vL=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(pte(a)?t[r]=a.map(vL):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},xL=(e,o)=>{let t=yy(e)?py(Cte(e)):tL(),r=Array.isArray(e.template)?e.template.map(vL):[t],[a]=r;return r.length===1&&a.type===K?{...a,props:{...mL(e,o),...a.props}}:{type:K,props:{..._,...mL(e,o),name:"Card"},slots:{[se]:r}}},yy=e=>e.cardStyle==="label-only",TL=e=>kL(e).map((o,t)=>{let r=e.items[t]?.href;return Tu({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),Cte=e=>TL(e).some(o=>Z(o.href)!==void 0),IL=e=>Array.isArray(e.template)&&e.template.length===0,gL=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function PL(){let e=t=>({key:ute("card"),title:i(t),body:i("A short line about this card.")}),o=[e("Card title one"),e("Card title two"),e("Card title three")];return{eyebrow:i("Label"),title:i("Section *heading.*"),items:o}}var kte={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Q,direction:"column",gap:36,gapPhone:28,...Yo("surface")(e,o),...ce(e,uL)}),box:[...re,...ye(uL)],parts:[{...st("Cards"),when:e=>!ny(e)},{...Ni("Cards",hL,wte,kL,xL,{reads:["items"],keep:gL}),when:e=>!IL(e)&&!yy(e)},{...Ni("Cards",hL,CL,TL,xL,{reads:["items"],keep:gL}),when:e=>!IL(e)&&yy(e)}],drop:{...oe,...de,columns:'Box "Cards": its Columns and tablet Columns',cardStyle:"the Card list's template: the Cards card, or under Label only the Label only card (a cell Box, a Mark Box, the label Text)",template:"the Card list's template (the card Box takes the old cell's ground and lines)",headPlacement:"an own-box node lands without its head; inline is the head the row draws",eyebrowLook:"needs the eyebrow's Filled look on a Text block: Plain is the eyebrow start look the row draws; 2 of 62 live nodes store it (the stored-node export, 2026-10-24)"}},vte={name:"Recurring Columns",boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,...Di(0,0,1,0),...ku(e)?ln(e,o):{},...uu(vu(e),e,o),...ce(e,iL)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ku(o)?ra(e,o,t):e],...ye(iL)],skip:e=>mu(vu(e)),site:(e,o)=>ku(e.props)?aa(e,o):[],parts:[st("Series"),Ni("Cards",Ite,gte,e=>SL(e).map(o=>Tu({num:lt(o.num),since:lt(o.since),title:lt(o.title),body:lt(o.desc),count:lt(o.entries),countLabel:lt(o.entriesLabel)})),(e,o)=>({type:K,props:{...xte,...Yo("background",(t,r)=>ku(t)&&pu(t,r))(e,o),name:"Card"},slots:{[se]:[{type:K,props:{..._,name:"Words",gap:16,gapPhone:16},slots:{[se]:[{type:K,props:{...cL,name:"Top"},slots:{[se]:[ne("num",G,M("label",13),!0),ne("since",G,M("label",13),!0)]}},ne("title",{...G,tag:"h3"},{textStyle:"heading-3",...M("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),ne("body",Y,{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.6})]}},{type:K,props:{...cL,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...Di(1,0,0,0),...dL(e)?{}:{[Eh]:["count","countLabel"]}},slots:{[se]:[{type:K,props:{..._,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[Sy("share")]:"content"},slots:{[se]:[ne("count",G,by),ne("countLabel",Y,by)]}},...dL(e)?[{type:K,props:{..._,name:"View",maxWidthPhone:266},slots:{[se]:[{type:"Text",props:{...G,text:wy(e.viewLabel).text,_partStyles:{text:{...yt()._partStyles.text,...by}}}}]}}]:[]]}}]}}))],reads:{viewLabel:"a Text typed once in the card template: the far end of every card's footer",background:"the Box's theme (the band preset) or its Fill"},drop:{...oe,...de,headPlacement:mte}},bL={top:60,bottom:60,topPhone:40,bottomPhone:40},Tte={..._,direction:"row",columns:3,gap:40,gapPhone:16},Pte={..._,gap:8,gapPhone:8,...Xe(24),...Di(1,1,1,1)},Ete={name:"Document Detail Cards",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:16,...Di(0,0,1,0),...ce(e,bL)}),box:[...re,...ye(bL)],parts:[Ni("Cards",Tte,bte,e=>SL(e).map(o=>Tu({label:lt(o.label),value:lt(o.value),body:lt(o.desc)})),(e,o)=>({type:K,props:{...Pte,...Yo("surface")(e,o),name:"Card"},slots:{[se]:[ne("label",G,{...M("label",12),lineHeight:1.5},!0),{type:K,props:{..._,name:"Words",gap:14,gapPhone:14},slots:{[se]:[ne("value",G,{textStyle:"heading-3",...M("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),ne("body",Y,{textStyle:"body-5",fontRole:"accent",...M("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...oe,...de}},EL={Cards:kte,KeyFeatures:Ste,Series:vte,DocMetaCards:Ete};import{phoneKey as Rte}from"efficient-easel/draw";import{newId as Lte}from"efficient-easel/data";import{phoneKey as Ote}from"efficient-easel/draw";import{isNode as Mi}from"efficient-easel/data";var Bs="cardStyle";function OL(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Pu={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[Ote("share")]:"content"},card:{justify:"between",gap:12,gapPhone:12,sectionHeightMode:"fixed",sectionHeightValue:242,sectionHeightUnit:"px",widthFitPhone:"fixed",widthPhone:800,sectionPaddingTop:48,sectionPaddingBottom:48,sectionPaddingLeft:32,sectionPaddingRight:32,sectionBorder:{top:1,right:1,bottom:1,left:1}}},list:{items:{gap:32,gapPhone:32,phoneRow:2},grid:{gap:32,gapPhone:32},row:{gap:32,gapPhone:32},card:{justify:"start",gap:8,gapPhone:8,sectionPaddingTop:20,sectionPaddingBottom:0,sectionBorder:{top:1,right:0,bottom:0,left:0}}}},it={table:{...Pu.table,listCard:OL(Pu.table.card)},list:{...Pu.list,listCard:OL(Pu.list.card)}},d2e=[{label:"Table",value:"table"},{label:"List",value:"list"}],f2e=e=>e==="table"||e==="list",_te=e=>[...new Set([...Object.keys(it.table[e]),...Object.keys(it.list[e])])];function Hi(e,o,t){let r={...e};for(let a of _te(o))delete r[a];return{...r,...structuredClone(it[t][o])}}function Ate(e,o,t){let r=e.props??{},a=Array.isArray(r[io])?r[io]:[],n=a.findIndex(c=>Mi(c)&&c.type===t);if(n<0)return e;let s=a[n],l=a.map((c,d)=>d===n?{...s,props:Hi(s.props??{},"listCard",o)}:c);return{...e,props:{...r,[io]:l}}}function p2e(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>Mi(s)&&s.type===Lo)){let s=a.map(l=>Mi(l)&&l.type===Lo?Ate(l,o,t):l);return{...Hi(e,"items",o),[Bs]:o,[r]:s}}let n=a.map(s=>{if(!Mi(s)||s.type!==t)return s;let l=s.props??{},c=(Array.isArray(l[r])?l[r]:[]).map(d=>Mi(d)&&d.type===t?{...d,props:Hi(d.props??{},"card",o)}:d);return{...s,props:{...Hi(l,"row",o),[r]:c}}});return{...Hi(e,"grid",o),[Bs]:o,[r]:n}}var ky=e=>typeof e=="string"?e.trim():"";function _L(e){let o=`${ky(e.prefix)}${ky(e.value)}`,t=ky(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var LL={textStyle:"heading-2",...Xo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},vy={kind:"block",type:"Text",props:{...nn,_partStyles:{text:LL}},box:[["value","text",(e,o)=>_L(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&_L(o)!==""},AL=e=>Ze(e?.supSuffix),FL={textStyle:"body-1",fontRole:"heading",...M("body",16),lineHeight:1.5,letterSpacing:-.01},BL={color:"labels",...M("label",12),lineHeight:1.5,letterSpacing:.24},DL={..._,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Rte("share")]:"content"},NL={textStyle:"body-5",...M("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},Ty=e=>qt(e.background,cn.StatsParagraph),Wi=e=>Ty(e)===vo,Eu=e=>({...e,sectionAccent:e.sectionAccent??0}),Fte=(e,o)=>Wi(e)?Yo("background",(t,r)=>pu(Eu(t),r))(e,o):{},Bte={name:"Stats with Text",skip:e=>Ty(e)&&Ty(e)!=="transparent"&&!Wi(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...No(e,"StatsParagraph"),...Wi(e)?ln(Eu(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wi(o)?ra(e,Eu(o),t):e],...oa("StatsParagraph")],site:(e,o)=>Wi(e.props)?aa({props:Eu(e.props)},o):[],parts:[st("StatsParagraph"),{kind:"group",name:"Stats",props:{..._,...it.table.grid,[Bs]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{..._,direction:"row",share:"equal",phoneRow:2,...it.table.row},props:(e,o)=>({..._,...it.table.card,...Fte(e,o)}),parts:[{...vy,when:(e,o)=>!AL(o)&&vy.when(e,o)},{kind:"group",name:"Figure",props:DL,when:(e,o)=>AL(o),parts:[vy,{kind:"text",key:"supSuffix",props:G,style:NL}]},{kind:"group",name:"Words",props:{..._,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:G,style:FL},pe("sub",BL)]}]}]}],drop:{...oe,...de,background:"the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write; none paints nothing, and any other colour is skipped",headPlacement:"needs a row per head placement: an own-box Stats with Text draws no head (its words sit in a Section Header above it), the row always draws the head"}},Dte=new Set(["value","label",gt]),RL={top:48,bottom:48,topPhone:48,bottomPhone:48},Nte=e=>{let o=qt(typeof e.background=="string"?e.background:void 0,cn.Stats);return!!o&&o!=="transparent"},Mte={name:"Stats",skip:e=>Nte(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Ze(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Ze(o?.[gt]))?"a figure names a count, and each figure Text here is typed by hand until it is linked":Array.isArray(e.items)&&e.items.some(o=>Object.keys(o??{}).some(t=>!Dte.has(t)))?"a figure has a key no part here reads":Object.keys(e._partStyles??{}).some(o=>o!=="heading")?"a figure or a name has a style of its own, kept by kind, which no part here reads":void 0,boxProps:e=>({...Q,direction:"column",gap:24,gapPhone:24,...ce(e,RL)}),box:[...re,...ye(RL)],parts:[pe("heading",{color:"labels",...M("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{..._,...it.list.grid,[Bs]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>U(e.columns)??4,rowName:"Stats row",rowProps:{..._,direction:"row",share:"equal",phoneRow:2,...it.list.row},props:{..._,...it.list.card},parts:[{kind:"text",key:"value",props:nn,style:{textStyle:"heading-2",...M("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},pe("label",{color:"labels",...M("label",12),letterSpacing:.2})]}]}],drop:{...oe,...de,columns:"the rows of N: one row Box per `columns` figures, which the Box draws",dataSource:"an empty source is typed figures, what the row draws; a sourced node is skipped (0 Hartes nodes)",dataSourceOptions:"read only with a source; a sourced node is skipped (0 Hartes nodes)",contained:"the Box draws the site frame now; each figure fills the Box's column",background:"only no fill reaches here: a node that paints a colour is skipped"}},ML={StatsParagraph:Bte,Stats:Mte};function HL(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var Hte=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function WL(){let e=(o,t,r,a="")=>({key:Lte("stat"),figure:o,superscript:a,label:t,body:r});return[e("28==_yr_==",i("Years in business"),i("Privately held since day one. Same two founders.")),e("==_8_==",i("Operating footprint"),i("Los Angeles \xB7 Fort Lauderdale \xB7 Bewdley \xB7 Drachten \xB7 Mumbai \xB7 Selangor \xB7 Ho Chi Minh \xB7 Sydney. Three continents covered from one California design studio."),i("cities")),e("\u221221==_%_==",i("Avg. weight saving"),i("Versus OEM equivalents, across our forged catalog.")),e("14==_\xD7_==",i("Finish steps"),i("Specified in California to a 14-step protocol. No two sets are identical."))]}function Wte(e){return{type:K,props:{..._,name:"Card",...structuredClone(it[e].listCard)},slots:{[se]:[{type:K,props:{...DL,name:"Figure"},slots:{[se]:[ne("figure",nn,LL),ne("superscript",G,NL)]}},{type:K,props:{..._,name:"Words",gap:4,gapPhone:4},slots:{[se]:[ne("label",{...G,widthFit:"fill"},FL),ne("body",{...G,widthFit:"fill"},BL,!0)]}}]}}}function Py(e,o,t=4){return{type:K,props:{..._,name:"Stats",direction:"row",columns:t,...structuredClone(it[o].items),[Bs]:o},slots:{[se]:[{type:Lo,props:rd(e,Hte),slots:{[io]:[Wte(o)]}}]}}}var GL={heading:"Trusted by *teams worldwide*"},zL=()=>[{src:"",alt:i("Logo one")},{src:"",alt:i("Logo two")},{src:"",alt:i("Logo three")},{src:"",alt:i("Logo four")},{src:"",alt:i("Logo five")}],Gte={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},_2e={label:"Logos",drawsPictures:!0,fields:Gte,defaultProps:{items:[],contained:!0}};var $L={heading:"Ways to pay"},UL=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],jL=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],L2e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};var D2e={left:"justify-start",center:"justify-center",right:"justify-end"},zte={text:{left:"view-wide:max-view-desktop:text-left",center:"view-wide:max-view-desktop:text-center",right:"view-wide:max-view-desktop:text-right"},place:{left:"view-wide:max-view-desktop:mx-0",center:"view-wide:max-view-desktop:mx-auto",right:"view-wide:max-view-desktop:ml-auto view-wide:max-view-desktop:mr-0"},items:{left:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-start",center:"view-wide:max-view-desktop:grid-cols-1 view-wide:max-view-desktop:justify-items-center",right:"view-wide:max-view-desktop:justify-items-end"},justify:{left:"view-wide:max-view-desktop:justify-start",center:"view-wide:max-view-desktop:justify-center",right:"view-wide:max-view-desktop:justify-end"}},$te={text:{left:"max-view-wide:text-left",center:"max-view-wide:text-center",right:"max-view-wide:text-right"},place:{left:"max-view-wide:mx-0",center:"max-view-wide:mx-auto",right:"max-view-wide:ml-auto max-view-wide:mr-0"},items:{left:"max-view-wide:grid-cols-1 max-view-wide:justify-items-start",center:"max-view-wide:grid-cols-1 max-view-wide:justify-items-center",right:"max-view-wide:justify-items-end"},justify:{left:"max-view-wide:justify-start",center:"max-view-wide:justify-center",right:"max-view-wide:justify-end"}},Ute={text:{left:"view-tablet:max-view-desktop:text-left",center:"view-tablet:max-view-desktop:text-center",right:"view-tablet:max-view-desktop:text-right"},place:{left:"view-tablet:max-view-desktop:mx-0",center:"view-tablet:max-view-desktop:mx-auto",right:"view-tablet:max-view-desktop:ml-auto view-tablet:max-view-desktop:mr-0"},items:{left:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-start",center:"view-tablet:max-view-desktop:grid-cols-1 view-tablet:max-view-desktop:justify-items-center",right:"view-tablet:max-view-desktop:justify-items-end"},justify:{left:"view-tablet:max-view-desktop:justify-start",center:"view-tablet:max-view-desktop:justify-center",right:"view-tablet:max-view-desktop:justify-end"}},jte={text:{left:"max-view-tablet:text-left",center:"max-view-tablet:text-center",right:"max-view-tablet:text-right"},place:{left:"max-view-tablet:mx-0",center:"max-view-tablet:mx-auto",right:"max-view-tablet:ml-auto max-view-tablet:mr-0"},items:{left:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-start",center:"max-view-tablet:grid-cols-1 max-view-tablet:justify-items-center",right:"max-view-tablet:justify-items-end"},justify:{left:"max-view-tablet:justify-start",center:"max-view-tablet:justify-center",right:"max-view-tablet:justify-end"}};function Ou(e){return e==="left"||e==="center"||e==="right"?e:void 0}function KL(e){return e==="start"?"left":e==="end"?"right":Ou(e)}function Kte(e,o,t){let r=Ou(e)??"left",a=It("same",r,Ou(o),Ou(t)),n={};return a.tablet&&a.tablet!==r&&(n.tablet=a.tablet),a.phone&&a.phone!==r&&(n.phone=a.phone),n}function N2e(e,o,t,r,{atSectionLine:a=!1}={}){let n=Kte(o,t,r),s=a?Ute:zte,l=a?jte:$te;return[n.tablet?s[e][n.tablet]:"",n.phone?l[e][n.phone]:""].filter(Boolean).join(" ")}import{phoneKey as Oy,readHidable as Vte}from"efficient-easel/draw";var _y={contained:!1},Ay=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Ze(r?.src)||Ze(r?.[o])}]}]}),Ey=e=>{let o=U(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},qte={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...G,align:"center"}},Yte={name:"Logos",boxProps:e=>({...Q,direction:"column",gap:32,...ce(e,Ey(e))}),box:[...re,...ye(Ey),["bandPadding","sectionPaddingTop",(e,o)=>ce(o,Ey(o)).sectionPaddingTop]],parts:[qte,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:_y,slots:Ay("items","alt")}],drop:{...oe,...de,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)",headPlacement:"a Logos band has no split head (not in SPLITTABLE_SECTIONS): no stored node can hold one, and the converted block stores own-box"}},Xte={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:jc(4,"main",{sectionCorners:2})},VL={top:24,bottom:24,topPhone:24,bottomPhone:24},Zte={name:"Payment Methods",boxProps:e=>({...Q,direction:"column",...ce(e,VL)}),box:[...re,...ye(VL)],parts:[{kind:"group",name:"Methods",props:{..._,align:"center",gap:20,gapPhone:20,sectionBorder:{top:1,bottom:1},sectionPaddingTop:32,sectionPaddingBottom:32},parts:[{...pe("heading",{color:"labels"}),props:{...G,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,nr],props:e=>Ze(e[_o])?{[_o]:e[_o],...e[nr]!==void 0?{[nr]:e[nr]}:{}}:{}},props:{..._y,look:"cards",grayscale:!1},slots:e=>({...Ay("badges","label"),...Ze(e[_o])?{[io]:[qc()]}:{}})},{kind:"group",name:"Reassurance",props:{..._,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[Oy("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Ze(o?.text)),props:{..._,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[Oy("share")]:"content"},item:e=>Vte(e.text).hidden?{props:{_hidden:!0}}:{},parts:[Xte,{kind:"text",key:"text",props:{...G,align:"center"},style:{...M("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...oe,...de,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},Jte={left:"start",center:"center",right:"end"},qL=e=>KL(e.align)??"left",YL=e=>e.size==="md"?"md":"sm",XL=12,ZL={name:"Payment logos",boxProps:e=>({..._,direction:"row",wrap:!0,align:"center",justify:Jte[qL(e)],gap:XL,gapPhone:XL,phoneRow:2,[Oy("share")]:"content"}),parts:[{kind:"text",key:"lead",props:Y,styleFrom:e=>({size:Ps[YL(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,nr],props:e=>({logoHeight:OR[YL(e)].mark,align:qL(e),...Ze(e[_o])?{[_o]:e[_o],...e[nr]!==void 0?{[nr]:e[nr]}:{}}:{}})},props:{..._y,look:"marks",grayscale:!1,sectionAccent:Ht},slots:e=>({...Ay("methods","label"),...Ze(e[_o])?{[io]:[qc()]}:{}})}],drop:{size:"read as the wall's Logo height (S 16, M 20) and the lead's size (the footer size table, 12 / 13)",align:"read as the Box's justify and the wall's own Alignment (start is left, end is right)",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}},JL={Logos:Yte,PaymentBadges:Zte,FooterPayment:ZL,PaymentLogosBlock:ZL},QL=()=>({heading:GL.heading,items:zL()}),eF=()=>({heading:$L.heading,badges:UL(),assurances:jL()}),oF=()=>({...Gd,methods:[]});import{mixHex as ere}from"efficient-shell/format";var eHe="none",oHe=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function tF(e){return e==="above"||e==="below"?e:null}var tHe="sf-ticker-join";function Qte(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function rHe(e){return`absolute inset-x-0 ${Qte(e)}`}var dn={direction:"row",share:"content",align:"center"},Gi={top:14,bottom:14,topPhone:12,bottomPhone:12},_u={wrap:"nowrap",loop:"scroll",sectionAccent:Nw,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},rF={gap:120,gapPhone:64},Au={...Ao,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},aF={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},zi={top:16,bottom:16,topPhone:12,bottomPhone:12},$i={justify:"between",wrap:"wrap",gap:32,separator:"none"},Ui={...Ao,letterSpacing:.1,lineHeight:1.5};var nF=e=>e.size==="display",ore=(e,o)=>{let t=fu(e,o),r=e.tone!=="plain"&&t?.text&&t.background?ere(t.text,t.background,.3):null;return r?{color:r}:{}},tre=(e,o)=>e.tone!=="plain"&&Wt(e.sectionAccent)===null?Yo("background")(e,o):{},sF=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:Y,style:e,styleFrom:ore}]}),rre={name:"Scrolling Bar",boxProps:(e,o)=>({...Q,...dn,..._u,...iw[vm(e.separator)]===""?rF:{},...ce(e,Gi),...tre(e,o)}),box:[["scrollDirection","scrollDirection",e=>hA(e)],["speed","loopDuration",(e,o)=>o.loopDuration!=null?o.loopDuration:e],["loopDuration","loopDuration",(e,o)=>e??o.speed],["loopDelay","loopDelay",e=>e],["separator","separator",e=>vm(e)],["join","join",e=>tF(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...re,["tone","sectionAccent",(e,o)=>Wt(o.sectionAccent)??Ht],...ye(Gi)],parts:[sF(Au,e=>!nF(e)),sF(aF,nF)],drop:{...oe,...de,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},lF=e=>e?.tone==="muted",iF=e=>Cc(rn(e)),are={name:"Spec Strip",boxProps:(e,o)=>({...Q,...dn,...$i,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:iF(o)},...ce(e,zi)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:iF(t)],...ye(zi)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:G,style:Ui,when:(e,o)=>!lF(o)},{kind:"text",key:"text",props:Y,style:Ui,when:(e,o)=>lF(o)}]}],drop:{...oe,...de,fill:"None \u2192 no fill and a line on top. Dark band (the default) \u2192 the Box's theme is the site's first dark preset that is not its page (lib/theme `darkBandIndex`; Theme 2 with no site theme): the old fixed `plate-band` colour, as a theme"}},cF={Ticker:rre,SpecStrip:are};import{jsxs as fn,jsx as Ke}from"react/jsx-runtime";import{Fragment as Ny}from"react";import{Fragment as bre,jsx as By}from"react/jsx-runtime";import{Fragment as uF,jsx as Ki,jsxs as fre}from"react/jsx-runtime";import{createContext as Fy,useContext as Vi,useEffect as pre,useId as ure,useMemo as mre,useRef as hre}from"react";import{armEntrance as xre}from"efficient-shell/format";import{jsx as nre}from"react/jsx-runtime";import{useEffect as fF,useRef as dF,useState as sre}from"react";import{armEntrance as lre,entranceAttrs as ire,playEntrance as cre}from"efficient-shell/format";function pF({desktop:e,phone:o,editing:t,boxClass:r,boxAttrs:a,boxStyle:n,takesViewHide:s=!1,atEdge:l=!1,children:c}){let d=dF(null),f=Oc(),u=Ar(),p=s?u:An,x=dre(d,!0,l),I=x?o:e,{attrs:g,style:k}=ire(I),S=dF(Ry.seed(e,o)),C=JSON.stringify(e),b=JSON.stringify(o);return fF(()=>{let v=d.current;if(v){if(t){let T=Ry.next(S.current,e,o,x);S.current=T.seen,T.play&&cre(v);return}return lre(v)}},[C,b,x,t]),p.scope(nre("div",{ref:d,className:Rr(`${On}${f.fill}${r?` ${r}`:""}`,p.className),...a,...p.attrs,...g,...Object.keys(k).length||n?{style:{...n,...k}}:{},children:f.inner(c)}))}var Ry={seed(e,o){return{desktop:JSON.stringify(e),phone:JSON.stringify(o)}},next(e,o,t,r){let a=Ry.seed(o,t);return{play:r?a.phone!==e.phone:a.desktop!==e.desktop,seen:a}}};function ji(e,o=!0,t=!1){let[r,a]=sre("desktop"),n=Ec()||t,{phone:s,tablet:l}=yg(n);return fF(()=>{if(!o)return;let c=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!c?.matchMedia)return;let d=c.matchMedia(s),f=c.matchMedia(l),u=()=>a(d.matches?"phone":f.matches?"tablet":"desktop");return u(),d.addEventListener("change",u),f.addEventListener("change",u),()=>{d.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,l]),r}function dre(e,o=!0,t=!1){return ji(e,o,t)==="phone"}var Ru=Fy(null),hF=Fy(null),xF=Fy(null);function FHe({needles:e,styles:o,motions:t=k1,type:r,atEdge:a=!1,children:n}){let s=ure(),l=Ec()||a,c=JSON.stringify([s,e,o,t,r]),d=mre(()=>{let u=Object.keys(t).filter(p=>T1(t[p]));return FO(e,o,s,p=>bi(r,p),p=>OO(r,p),p=>u.includes(p)?Gb(t[p]):null,u)},[c]);if(!d)return Ki(uF,{children:n});let f=BO(d,{inBox:l});return fre(uF,{children:[f&&Ki("style",{href:`${Ire}${s}-${gre(f)}`,precedence:gF,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),Ki(Ru.Provider,{value:d,children:n})]})}var Ly=new WeakMap;function mF(e,o){let t=zb(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:zb(o.filter(a=>a.scroll));for(let a of o)a!==t&&a.undo&&(a.undo(),a.undo=void 0),a!==r&&a.undoScroll&&(a.undoScroll(),a.undoScroll=void 0);t?.arm&&!t.undo&&(t.undo=t.arm()),r?.scroll&&!r.undoScroll&&(r.undoScroll=r.scroll()),o.some(a=>a.lift)?(_1(e.ownerDocument),e.setAttribute(Wp,"")):e.removeAttribute(Wp)}function IF(e){let o=hre(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=ji(o,t!==null||r!==null),s=JSON.stringify([t,r]),l=n==="phone",c=r?n:null;return pre(()=>{let d=o.current,f=O1(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let u=t?l?t.phone:t.desktop:null,p=u?()=>{let k=P1(f,u),S=xre(f);return()=>{S?.(),k()}}:null,x=r&&c&&r[c].effect!=="none"?r[c]:null,I=Ly.get(f)??[];Ly.set(f,I);let g={element:d,arm:p,entering:u!==null&&u.kind!=="none",scroll:x?()=>E1(f,x):null,lift:a};return I.push(g),mF(f,I),()=>{let k=I.indexOf(g);k<0||(I.splice(k,1),g.undo?.(),g.undo=void 0,g.undoScroll?.(),g.undoScroll=void 0,mF(f,I),I.length||Ly.delete(f))}},[s,a,l,c]),o}var gF="sf-part-styles",Ire=`${gF}-`;function gre(e){let o=2166136261;for(let t=0;t<e.length;t+=1)o^=e.charCodeAt(t),o=Math.imul(o,16777619);return(o>>>0).toString(36)}function bF(e){let o=Vi(Ru),t=Vi(hF),r=DO(o,e);return r&&r.stamp!==t?r:null}function BHe(e){return bg(Vi(Ru),e)}function yF({stamp:e,children:o}){return Ki(hF.Provider,{value:e,children:o})}function DHe({children:e}){let o=Vi(Ru);return Ki(xF.Provider,{value:o,children:e})}function NHe(e){return bg(Vi(xF),e)}function qi({value:e,children:o}){let t=bF(e),r=IF(t);return t?By(yF,{stamp:t.stamp,children:By("span",{ref:r,[cg]:t.stamp,...t.textStyle?{[cs]:t.textStyle}:{},children:o})}):By(bre,{children:o})}import{jsx as Dy,Fragment as yre}from"react/jsx-runtime";function SF({className:e=""}){return Dy("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Lu(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(Dy(SF,{},`r${a}`))}),Dy(yre,{children:t})}var UHe=SF;function kr(e,o=!1,t){let r=Ere(o),a=rl(e);if(a.length===1){let[s]=a,l=eh(s),c=l?Tre(l,s.children):s.children;return fn(qi,{value:e,children:[t,Fu(c,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(Ke("span",{"data-sf-bullet":"",className:Sre,children:Fu(s.children,r)},l));return}if(s.number!=null){n.push(fn("span",{"data-sf-number":s.number,className:wre,children:[fn("span",{className:Cre,children:[s.number,"."]}),Fu(s.children,r)]},l));return}l>0&&!kre(a[l-1])&&n.push(Ke("br",{},`br${l}`)),n.push(Ke(Ny,{children:Fu(s.children,r)},l))}),fn(qi,{value:e,children:[t,n]})}var Sre="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",wre="relative block pl-[2em]",Cre="absolute left-0 w-[1.6em] text-right tabular-nums";function kre(e){return e.bullet||e.number!=null}var vre="text-accent underline underline-offset-[0.18em]";function Tre(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Pre(e){return Gn(e)||void 0}function Fu(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(Ke("span",{children:Lu(a.text)},n)),r=!0;return}r||t.push(Ke("span",{},`e${n}`)),t.push(kF(a,n,o)),r=!1}),r||t.push(Ke("span",{},"end")),t}function wF(e,o){return e.length===1&&e[0].kind==="text"?Lu(e[0].text):e.map((t,r)=>t.kind==="text"?Ke(Ny,{children:Lu(t.text)},r):kF(t,r,o))}function Ere(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function QHe(e){return CF(e)}function CF(e,o){let t=e.split(`
|
|
76
|
+
`);return fn(qi,{value:e,children:[o,t.map((r,a)=>fn(Ny,{children:[a>0?Ke("br",{}):null,Ke("span",{children:r})]},a))]})}function kF(e,o,t){if(e.kind==="link")return Ke("a",{href:e.href,className:vre,children:wF(e.children,t)},o);let r=wF(e.children,t),a=LC[e.kind];if(a)return Ke("span",{[FC]:a,children:r},o);switch(e.kind){case"underline":return Ke("u",{children:r},o);case"sup":return Ke("sup",{children:r},o);case"sub":return Ke("sub",{children:r},o);case"color":{let n=Pre(e.color);return n?Ke("span",{style:{color:n},children:r},o):Ke("span",{children:r},o)}case"accent":case"highlight":return Ke("em",{className:t,children:r},o);case"bold":return Ke("strong",{className:"font-semibold",children:r},o);case"italic":return Ke("em",{className:"italic",children:r},o);case"strike":return Ke("s",{className:"line-through",children:r},o);default:return Ke("span",{children:r},o)}}function e5e(e,o=!0,t=!1){let r=e.split(`
|
|
77
|
+
`);return Ke(qi,{value:e,children:r.map((a,n)=>fn("span",{children:[t?CF(a):kr(a,o),n<r.length-1?Ke("br",{}):null]},n))})}function vF(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var TF={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},My={name:"Year and title",direction:"column",gap:14,gapPhone:14};var vr={text:"Button label",href:"#"},Yi=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),yo={eyebrow:"Eyebrow",heading:"Main heading",accent:"Highlight line",body:"Add a sentence or two of supporting copy.",button:"Button label",link:"#",sectionHeading:"Section heading",slideName:"Slide name",boxName:"Box name",headingAccent:"Section heading *here.*",sectionNumber:"Section number",imageCaption:"Image caption",bookingConfirmation:"Thanks \u2014 we'll email you to confirm.",imageMeta:"Image meta",label:"Label",value:"Value",viewAll:"View all",date:"Month DD, YYYY",category:"Category"};var Bu={eyebrow:yo.eyebrow,title:`Section heading
|
|
78
|
+
*Highlight line*`,intro:yo.body,imageCaption:yo.imageCaption,imageMeta:yo.imageMeta,cta:vr.text},PF=()=>[{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")},{date:i("Year"),title:i("Milestone title."),body:i("Describe what happened, in a sentence or two.")}],s5e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Du={eyebrow:yo.eyebrow,title:yo.headingAccent,intro:yo.body,cta:vr.text},EF=()=>[{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year"),title:i("Milestone"),blurb:i("A short line about this milestone."),future:!1},{date:i("Year \u2192"),title:i("Upcoming"),blurb:i("A milestone still to come."),future:!0}],f5e={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Hl,padTop:120,padBottom:120}};var FF={buttonBorder:{width:0}},Hu=(e,o,t={})=>({textStyle:"body-5",...M("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),Ds=(e,o,t={})=>({...Hu(e,o),...Ao,...t}),Wu=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),Xi=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),ct=(e,o,t={})=>({kind:"text",key:e,props:G,style:o,...t});function BF(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>BF(t,o))}:e}var OF=(e,o)=>o?.future===!0,Nu=e=>vF(typeof e?.body=="string"?e.body:""),$y=e=>qt(typeof e.background=="string"?e.background:void 0,cn.TimelineTrack),Hy=e=>$y(e)===vo?e:{...e,background:"transparent"},Ore={name:"Milestone Timeline",skip:e=>mu($y(e)),boxProps:(e,o)=>{let t=ta(Hy(e),o);return{...Q,direction:"column",gap:60,gapPhone:36,sectionBorder:{bottom:1},...No(e,"TimelineTrack"),...uu($y(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ra(e,Hy(o),t)],...oa("TimelineTrack")],parts:[Iy(BF(yu("eyebrow","title","intro"),["title","intro"])),{kind:"group",name:"Track",props:{..._,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{..._,direction:"row",share:"equal",gap:0,line:!0},parts:[{kind:"list",key:"entries",name:"Year",props:{..._,...TF},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:My.name,props:{..._,...My},parts:[ct("date",Hu(13,.22,{color:"accent"}),{when:(e,o)=>!OF(e,o)}),ct("date",Hu(13,.22,{color:"labels"}),{when:OF}),ct("title",{textStyle:"heading-3",...Wu(M("headingSmall",20),-.02,1.1)},{role:"heading"})]},ct("blurb",Xi(M("body",13),1.55),{props:Y,mark:"accentItalic"})]}]},{kind:"group",name:"Button row",props:{..._,sectionBorder:{top:1,right:0,bottom:0,left:0},sectionPaddingTop:32},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,align:"right",...FF},style:Ds(13,.3)}]}]}],site:(e,o)=>aa({props:Hy(e.props)},o),drop:{...oe,...de,background:"another colour is the Box's Fill, or a skip if no Fill holds it; the band is the Box's theme: the site's band preset (`sectionAccent`), or a declared band-preset write (`lib/theme` `bandPresetIndex`)",headPlacement:"needs a row per head placement: an own-box Milestone Timeline draws no head (its words sit in a Section Header above it), the row always draws the head"}},jy=e=>typeof e.layout=="string"?e.layout:"split",Mu=e=>jy(e)==="split",Uy=e=>!Mu(e),DF=e=>jy(e)==="spine",_re=e=>Uy(e)&&!DF(e),_F=(e,o,t,r)=>({kind:"group",name:"Picture",keepEmpty:!0,box:[["imageSrc","bgImage"]],props:{..._,sectionBorder:{top:1,right:1,bottom:1,left:1},darken:75,darkenStyle:"bottom",placement:"bottom-center",sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",sectionHeightModePhone:"fixed",sectionHeightValuePhone:o,sectionHeightUnitPhone:"px",...Xe(12,16),...t},when:a=>r(a)&&typeof a.imageSrc=="string"&&a.imageSrc.trim()!=="",parts:[{kind:"group",name:"Caption",props:{..._,direction:"row",justify:"between",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2},parts:[ct("imageCaption",Ds(11,.24,{color:"text"})),ct("imageMeta",Ds(11,.24,{color:"accent"}),{props:{...G,align:"right"}})]}]}),AF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,...e,...FF},style:Ds(13,.3)}),Wy=()=>[ct("title",{textStyle:"heading-3",...Wu(M("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...G,_partStyles:{text:Xi(M("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ia(Nu(o)[0]??"")]],when:(e,o)=>Nu(o).length>0},{kind:"block",type:"Text",props:{...Y,_partStyles:{text:Xi(M("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ia(Nu(o).slice(1).join(`
|
|
79
|
+
|
|
80
|
+
`))]],when:(e,o)=>Nu(o).length>1}],Gy=()=>ct("date",Hu(13,.24,{color:"accent"})),zy=(e,o,t={})=>ct(e,o,{...t,props:{...G,...t.props??{},align:"center"}}),RF=Xo("headingMedium",40,5,76),LF={sectionBorder:{bottom:1}},Are={name:"Story Timeline",skip:e=>jy(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Mu(e)?{...Q,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...LF,...No(e,"Timeline")}:{...Q,direction:"column",gap:48,gapPhone:48,align:"center",...LF,...No(e,"Timeline")},box:[...re,...oa("Timeline")],parts:[{kind:"group",name:"Heading",props:{..._,gap:24,gapPhone:24},when:Mu,parts:[ct("eyebrow",Ds(12,.3,{color:"accent"}),{role:"eyebrow"}),ct("title",{textStyle:"heading-2",...Wu(RF,-.03,.94)},{role:"heading",mark:"accentItalic"}),ct("intro",Xi(M("body",14),1.6),{props:{...Y,maxWidth:360},mark:"accentItalic"}),_F(667,419,{},()=>!0),AF()]},{kind:"group",name:"Chapters",props:{..._,gap:48,gapPhone:48,line:!1},when:Mu,parts:[{kind:"list",key:"entries",name:"Chapter",props:{..._,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[Gy(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:Wy()}]}]},{kind:"group",name:"Heading",props:{..._,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:Uy,parts:[zy("eyebrow",Ds(12,.3,{color:"accent"}),{role:"eyebrow"}),zy("title",{textStyle:"heading-2",...Wu(RF,-.03,.94)},{role:"heading",mark:"accentItalic"}),zy("intro",Xi(M("body",14),1.6),{props:{...Y,maxWidth:520},mark:"accentItalic"}),AF({align:"center"})]},_F(506,192,{maxWidth:900,widthFit:"fill"},Uy),{kind:"group",name:"Chapters",props:{..._,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:DF,parts:[{kind:"list",key:"entries",name:"Chapter",props:{..._,gap:8,gapPhone:8},parts:[Gy(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:Wy()}]}]},{kind:"group",name:"Chapters",props:{..._,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:_re,parts:[{kind:"list",key:"entries",name:"Chapter",props:{..._,direction:"row",gap:64,gapPhone:0,share:[50],align:"start"},parts:[{kind:"group",name:"Entry",props:{..._,gap:8,gapPhone:8},parts:[Gy(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:Wy()}]},{kind:"group",name:"Spacer",props:{..._},keepEmpty:!0,parts:[]}]}]}],drop:{...oe,...de,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},NF=()=>({eyebrow:Bu.eyebrow,title:Yi(Bu.title),intro:Bu.intro,ctaText:vr.text,ctaHref:vr.href,entries:PF()}),MF=()=>({eyebrow:Du.eyebrow,title:Yi(Du.title),intro:Du.intro,ctaText:vr.text,ctaHref:vr.href,entries:EF()}),HF={TimelineTrack:Ore,Timeline:Are};import{tabletKey as Dre}from"efficient-easel/draw";import{slugify as O5e}from"efficient-shell/format";import{rootIsDark as Rre}from"efficient-shell/format";function T5e(e="auto"){return e==="light"?!0:e==="dark"?!1:!Rre({whenUnset:!0})}function WF(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function Ky(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var Lre=["tall","square","wide"],Fre="tall";function GF(e){return Lre.includes(String(e??""))?String(e):Fre}var A5e={sectionNumber:"\xB7 Locations",heading:"Our *locations.*",tagline:"Visit us in person \u2014 find your nearest studio below.",galleryKicker:"Gallery",galleryHint:"Hover to see in colour \xB7 click to jump",mapTheme:"auto"},R5e=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
81
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""},{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
82
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],Bre=/^https?:\/\//i;function L5e(e){let o=(e.mapsUrl??"").trim();return{photo:"",group:"",groupName:"",name:e.name??"",state:e.state??"",country:e.country??"",timezone:"",address:e.address??"",phone:e.phone??"",hours:e.hours??"",lat:Ky(e.lat),lng:Ky(e.lng),mapsUrl:Bre.test(o)?o:""}}function Vy(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var F5e="other",B5e={routingNumber:"02 \xB7 Routing",routingTagline:"What can we help you with?",groups:[{id:"fitment",eyebrow:"A \xB7 Label",title:"Group one",copy:"Short description of this routing group.",response:"< 48h"},{id:"trade",eyebrow:"B \xB7 Label",title:"Group two",copy:"Short description of this routing group.",response:"< 24h"},{id:"press",eyebrow:"C \xB7 Label",title:"Group three",copy:"Short description of this routing group.",response:"< 48h"},{id:"order",eyebrow:"D \xB7 Label",title:"Group four",copy:"Short description of this routing group.",response:"< 24h"}],formNumber:"03 \xB7 Message",formHeading:"Send *a note.*",metaLines:["Encrypted in transit","Stored 12 months"],showOther:!0,otherLabel:"Other",otherNoteTitle:"No matching team",otherNoteBody:"Tell us what you need in the message field below \u2014 we'll route it to whoever can help.",buttonText:"Send Message \u2192",consent:"By submitting, you agree to our privacy policy. We never share contact details with third parties.",channels:[{label:"Team one",value:"team-one@email.com",href:"mailto:team-one@email.com",sub:"Detail \xB7 Detail",groupId:"fitment"},{label:"Team two",value:"team-two@email.com",href:"mailto:team-two@email.com",sub:"Detail \xB7 Detail",groupId:"trade"},{label:"Team three",value:"team-three@email.com",href:"mailto:team-three@email.com",sub:"Detail \xB7 Detail",groupId:"press"},{label:"Team four",value:"team-four@email.com",href:"mailto:team-four@email.com",sub:"Detail \xB7 Detail",groupId:"order"},{label:"Phone",value:"+1 (000) 000-0000",href:"tel:+10000000000",sub:"Mon\u2013Fri \xB7 9:00\u201318:00"}]};function zF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var dt=e=>typeof e=="string"?e:e==null?"":String(e),Yy=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Ns=e=>dt(e.group),ZF=e=>`loc-${e}`,JF=e=>dt(e.state).trim()||Vy(dt(e.region)).state,QF=e=>dt(e.country).trim()||Vy(dt(e.region)).country,$F=e=>[JF(e),QF(e)].filter(Boolean).join(" \xB7 "),Nre=e=>Yy(e).some(o=>dt(o.photo).trim()!==""),Mre=e=>Yy(e).some(o=>WF(Number(o.lat),Number(o.lng))),Hre=(e,o)=>Yy(e).filter(t=>Ns(t)===Ns(o)).length,Wre=(e,o)=>Hre(e,o)===1?"wide":GF(e.imageShape),qy={top:100,bottom:100,topPhone:60,bottomPhone:60},UF=48,Lt=(e,o={})=>({...bt(e),...o}),Xy={top:1,right:1,bottom:1,left:1},Zy={..._,direction:"row",share:"equal",gap:0},Gre=e=>o=>o>Oi(o)?{..._,gap:0}:{...Zy,...o>1?{phoneRow:e}:{}},zre={kind:"group",name:"Gallery",props:{..._,gap:20,_hidden:!0},when:Nre,parts:[{kind:"group",name:"Gallery head",props:{..._,direction:"row",justify:"between",align:"end",gap:24,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},parts:[pe("galleryKicker",Lt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...Y,align:"right",alignPhone:"left"},style:Lt(11,{letterSpacing:.22,alignPhone:"left"})}]},{kind:"group",name:"Groups",props:{..._,gap:24},parts:[{kind:"list",key:"locations",name:"City picture",props:{..._,darken:85,darkenStyle:"bottom",placement:"bottom-left",sectionBorder:Xy,...Xe(12,12)},item:(e,o,t)=>({props:{...dt(e.photo).trim()?{bgImage:dt(e.photo),hover:"mono"}:{},link:`#${ZF(o)}`,boxShape:Wre(t,e)}}),parts:[{kind:"text",key:"name",props:G,style:Lt(11,{letterSpacing:.22,color:"text"})}],groups:{of:Ns,name:"Group",props:{..._,gap:10},head:e=>({label:Ns(e[0]??{})}),parts:[pe("label",Lt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Gre(2),perRow:Oi,rowName:"Row",rowProps:{...Zy,phoneRow:2}}}]}]},$re={kind:"group",name:"Words",props:{..._,gap:12,gapPhone:12,...Xe(28,28),sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},parts:[{kind:"group",name:"Name row",props:{..._,direction:"row",justify:"between",align:"start",gap:14,share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"wrap",sectionPaddingBottom:6,sectionPaddingBottomPhone:6},parts:[{kind:"group",name:"Name",props:{..._,gap:6,gapPhone:6},parts:[{kind:"text",key:"name",role:"heading",props:G,style:{textStyle:"heading-3",...M("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...G,_partStyles:{text:Lt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>$F(t)]),when:(e,o)=>$F(o??{})!==""}]},{kind:"group",name:"Time zone",props:{..._,sectionBorder:Xy,...Xe(6,10)},parts:[{kind:"text",key:"timezone",props:{...Y,textFit:"line"},style:Lt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:Y,style:{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...fo,...sn,variant:"ghost",arrow:!1,_partStyles:{label:Lt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>zF(dt(e))??"#"]],when:(e,o)=>dt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:Y,style:Lt(12,{letterSpacing:.18,lineHeight:1.7})}]},Ure={kind:"block",type:"LocationMap",props:e=>({mapTheme:typeof e.mapTheme=="string"?e.mapTheme:"auto"}),box:["name","lat","lng","mapsUrl","geocode",...["region","state"].map(e=>[e,"state",(o,t)=>JF(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>QF(t)])]},jre={kind:"group",name:"Map",props:{..._,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Ure]},Kre={kind:"list",key:"locations",name:"City",props:(e,o)=>({..._,gap:0,justify:"between",sectionBorder:Xy,jumpHighlight:!0,sectionAccent:ta(e,o)>=0?As(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:ZF(o)}}),parts:[$re,jre],groups:{of:Ns,name:"Group",props:{..._,gap:20},head:e=>{let o=e[0]??{};return{key:Ns(o),groupName:dt(o.groupName),count:`${e.length} location${e.length===1?"":"s"}`}},parts:[{kind:"group",name:"Group head",props:{..._,direction:"row",justify:"between",align:"end",gap:16,share:"content",sectionBorder:{bottom:1},sectionPaddingBottom:16},when:(e,o)=>dt(o?.key).trim()!=="",parts:[pe("key",Lt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:G,style:{textStyle:"heading-3",...M("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:Y,style:Lt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...Zy,columns:Oi(e),[Dre("columns")]:1})}},jF=Lt(10,{letterSpacing:.25}),Vre={kind:"block",type:Qt,props:{..._,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:Mre,slot:er,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...Y,text:"Location coordinates \xA9",_partStyles:{text:jF}}},{kind:"block",type:"ButtonBlock",props:{...fo,...sn,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...jF,color:"labels"}}}}]},KF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),VF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],qF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],YF=e=>e.map(o=>[o,o,(t,r)=>ce(r,qy)[o]]),XF=["sectionAccent","sectionAccent",ra],qre=["gridSpan",...$n,...Object.values(co)],Yre={name:"City pictures",skip:e=>so(e)?`fed by the data source "${so(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...Q,direction:"column",gap:40,anchor:"studios",...KF(ce(e,qy),VF),sectionPaddingBottom:UF,sectionPaddingBottomPhone:UF,...ln(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),XF,["anchor","anchor",e=>wl(e).trim()?e:"studios"],...YF(VF)],parts:[yu("sectionNumber","heading","tagline"),zre],also:[{name:"City maps",boxProps:(e,o)=>({...Q,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...KF(ce(e,qy),qF),...ln(e,o)}),box:[...qre,XF,...YF(qF)],parts:[Kre,Vre]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:aa,drop:{...oe,...de,apiKey:"a stored Google Maps key from before the map needed none: the website's one map (components/SiteMap) takes no key, and a key is a credential, never page content",mapId:"a Google Maps style id from the same retired map: nothing in src/ reads it",gallery:"the retired separate tile list: the wall is derived from the cities (`components/ContactLocations`), nothing in src/ reads it",dataSource:"always empty here: a node fed by a source is skipped (see skip)"}},eB={ContactLocations:Yre};var oB="sideSpace",pn="site",J5e=[{value:"box",label:"Box"},{value:pn,label:"Site"}],Q5e="box",e4e="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function o4e(e){return e===pn?pn:"box"}function t4e(e){return e===pn?pn:void 0}var Xre=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"];var na=(e,o)=>()=>({top:e,topPhone:o}),tB=e=>o=>{let t=No(o,e).sectionPaddingTop;return{top:t,topPhone:t}},Zre={Collections:na(120,70),Events:na(120,70),FAQ:na(120,70),GalleryB:na(120,70),FitmentTable:na(120,80),SpecTable:na(120,80),LongRead:na(120,80),RelatedProducts:na(0,0),Footprint:tB("Footprint"),ProcessSteps:tB("ProcessSteps"),ProductGrid:e=>({top:U(e.padTop)??120,topPhone:0})};function Jre(e,o={}){let t=Ro[e],r=Zre[e];if(!t||!r)throw new Error(`section-to-box-rows-head: "${e}" has no head row or no head room`);let a=t.padKey,n=st(e),s=Cu(e),l=t.headRows.filter(d=>![t.num,t.title,t.description,"linkText","linkHref"].includes(d)),c={...Object.fromEntries(l.filter(d=>!(d in s)).map(d=>[d,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:Dc[e]??e,boxProps:(d,f)=>{let u=r(d),p=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},x=typeof o.boxProps=="function"?o.boxProps(d,f):o.boxProps??{};return{...Q,direction:"column",gap:bu[Fs(e)],sectionPaddingTop:u.top,sectionPaddingTopPhone:u.topPhone,...p,...x}},box:[...re,...a?[[a,"sectionPaddingTop",(d,f)=>r(f).top]]:[]],parts:[n,...(()=>{let d={...a?{[a]:0}:{},...o.coreProps},f={kind:"core",keep:"rest",...Object.keys(d).length?{props:d}:{},...o.slots?{slots:o.slots}:{}};return[o.coreBox?{kind:"group",name:o.coreBox.name,props:o.coreBox.props,parts:[f]}:f]})(),...o.partsAfter??[]],...Object.keys(s).length?{reads:s}:{},...Object.keys(c).length?{drop:c}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var Qre={..._,direction:"accordion",rowStyle:"numbered"},eae={Footprint:{slots:{[io]:[kk()]},pressHeading:!0},FAQ:{slots:{[io]:[wh()]},pressHeading:!0,coreBox:{name:"Questions",props:Qre},coreProps:{sectionAccent:Ht},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[oB]:pn},skip:e=>{let o=e._partStyles??{},t=yk().filter(r=>o[r]!==void 0);return t.length?`held: its rows carry their own run style (_partStyles ${t.map(r=>`"${r}"`).join(", ")}), which the Box path does not draw the same`:void 0}}},rB=Object.fromEntries(Xre.map(e=>[e,Jre(e,eae[e])]));import{BLOCK_WIDTH_LIMIT as oae}from"efficient-easel/draw";var Gu={eyebrow:yo.eyebrow,title:yo.headingAccent,deck:"Add a sentence or two introducing this document."},I4e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var pB={minWidth:oae.min},aB=(e,o,t)=>({...pe(e,{...o,...Ai}),props:{...G,align:"right",...an,...t}}),uB={top:1,bottom:0},Qy=(e,o,t,r)=>({kind:"group",name:e,props:{..._,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),nB={widthFit:"fill",...pB},sB={top:100,bottom:60,topPhone:60,bottomPhone:40},tae={...M("label",13),letterSpacing:.22,lineHeight:1.8},lB={textStyle:"heading-1",...Xo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},iB=e=>e.titleLevel===2,rae=()=>({name:"Page Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ce(e,sB)}),box:[...re,...ye(sB)],parts:[{kind:"group",name:"Header",props:{..._,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Qy("Eyebrow",12,0,{...pe("eyebrow",M("label",13)),props:{...G,...an}}),{kind:"text",key:"title",role:"heading",props:{...G,tag:"h1",...nB},style:lB,mark:"accentItalic",when:e=>!iB(e)},{kind:"text",key:"title",role:"heading",props:{...G,tag:"h2",...nB},style:lB,mark:"accentItalic",when:iB},{kind:"group",name:"Details",props:{..._,align:"stretch",gap:0,gapPhone:0,sectionPaddingBottom:12,sectionPaddingBottomPhone:0},parts:[{kind:"list",key:"meta",name:"Detail",flat:!0,parts:[Ri("label","value",tae,an)]}]}]},{kind:"group",name:"Deck",props:{..._,maxWidth:760,sectionBorder:uB,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:Y,style:{textStyle:"body-1",fontRole:"accent",...M("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...oe,...de,titleLevel:"read by the title part's `when`: 2 (set by lib/document/one-h1 on a later opener) makes the Text an h2, anything else an h1"}}),mB=()=>({eyebrow:Gu.eyebrow,title:Yi(Gu.title),deck:Gu.deck,meta:[{label:yo.label,value:yo.value},{label:yo.label,value:yo.value}]}),cB={top:80,bottom:40,topPhone:60,bottomPhone:32},aae={...M("label",13),letterSpacing:.18,lineHeight:1.8},dB={...M("label",13),letterSpacing:.22,lineHeight:1.9},nae=()=>({name:"Issue Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ce(e,cB)}),box:[...re,...ye(cB)],parts:[{kind:"group",name:"Top",props:{..._,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Qy("Eyebrow",14,14,pe("eyebrow",M("label",14))),{kind:"group",name:"Issue",props:{..._,align:"end",gap:0,gapPhone:0,sectionPaddingBottom:14},parts:[{kind:"list",key:"issueMeta",name:"Issue line",flat:!0,parts:[Ri("lead","rest",aae)]}]}]},{kind:"group",name:"Bottom",props:{..._,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:uB,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...G,maxWidth:720,...pB},style:{textStyle:"body-1",fontRole:"heading3",...M("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{..._,align:"stretch",gap:0},parts:[Qy("Heading",6,6,{kind:"text",key:"issueHeading",props:{...G,align:"right",...an},style:{textStyle:"body-1",fontRole:"heading",...M("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...Ai}}),{kind:"group",name:"Lines",props:{..._,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[aB("text",{color:"labels",...dB})]}]},aB("issueTotal",dB)]}]}],drop:{...oe,...de}}),fB={top:24,bottom:24,topPhone:16,bottomPhone:16},Jy={color:"labels",...M("label",13),letterSpacing:.2},hB=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),eS=(e,o)=>o!==void 0&&hB(e).at(-1)===o,xB=(e,o)=>o!==void 0&&hB(e).includes(o),sae=(e,o)=>xB(e,o)&&!eS(e,o)&&Ze(o?.href),lae=()=>({name:"Breadcrumb",skip:e=>Ze(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Q,...dn,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ce(e,fB)}),box:[...re,...ye(fB)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:sae,props:{...fo,...sn,icon:"none"},style:Jy},{...pe("label",Jy),when:(e,o)=>xB(e,o)&&!eS(e,o)&&!Ze(o?.href)},{...pe("label",{...Jy,color:"text"}),when:eS}]}],drop:{...oe,...de,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),IB={DocMasthead:rae(),Masthead:nae(),Breadcrumb:lae()};import{jsx as un,jsxs as tS}from"react/jsx-runtime";import{slugify as iae}from"efficient-shell/format";import{jsx as oS,jsxs as gB}from"react/jsx-runtime";var P4e="sticky top-[120px]";var bB=(e,o)=>e?{[Xc]:o}:{},yB=(e,o)=>Zc(e?.[pl(o)]?.role,jp[o],kn),SB=120;function wB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=GI,takesViewHide:l=!1}){let c=s==="plain",d=Ar(),f=l?d:An;return f.scope(gB("aside",{className:Rr(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&oS("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:kr(e)}),o.map((u,p)=>{let x=oS("span",{...bB(a,"number"),style:yB(n,"number"),className:"text-accent",children:Lf(s,p)});return gB("a",{href:`#${u.anchor}`,className:`flex items-center ${c?"justify-start gap-1":"justify-between gap-3"} border-b border-line py-2.5 font-mono text-[length:var(--size-label,13px)] uppercase tracking-[0.18em] text-fg-dim transition-colors hover:text-fg${p===0?" border-t":""}`,children:[c&&x,oS("span",{...bB(a,"entry"),style:yB(n,"entry"),children:kr(u.label||"Section")}),!c&&x]},`${p}-${u.anchor}`)})]}))}function cae(e,o){return iae(e)||`section-${o+1}`}var rS=e=>typeof e=="string"&&e.trim()!=="";function aS(e){return(e??[]).filter(o=>rS(o.heading)||rS(o.label)||rS(o.body))}function nS(e){let o=new Set;return e.map((t,r)=>{let a=cae(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function sS(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
83
|
+
`).split(/\n[ \t]*\n/))t.split(`
|
|
84
|
+
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=rl(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let c=r.slice(2);!l&&s?.type==="ul"?s.items.push(c):o.push({type:"ul",items:[c]})}else!l&&s?.type==="p"?s.text+=`
|
|
85
|
+
${r}`:o.push({type:"p",text:r})});return o}var dae=()=>[{label:i("First section"),heading:i("Your *first* section."),body:i(`Write the opening paragraph here.
|
|
86
|
+
|
|
87
|
+
- Start a line with a dash for a bullet.
|
|
88
|
+
- Add as many as you like.`)},{label:i("Second section"),heading:i("Your *second* section."),body:i("Leave a blank line between paragraphs to start a new one.")}],fae=SB;function K4e({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=fae}){let a=aS(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?dae():a,s=nS(n);return un(_c,{as:"section",className:"relative z-[2] bg-bg",children:tS("div",{className:"mx-auto grid max-w-[var(--sf-site-width,1600px)] grid-cols-[240px_1fr] items-start gap-20 border-b border-line px-[var(--sf-site-gutter,40px)] py-20 max-[900px]:grid-cols-1 max-[900px]:gap-10 max-[900px]:px-[min(24px,var(--sf-site-gutter,40px))] max-[900px]:py-[60px]",children:[un(wB,{title:e,entries:n.map((l,c)=>({label:l.label||"Section",anchor:s[c]})),stickyTop:r}),un("div",{className:"flex flex-col gap-16",children:n.map((l,c)=>tS("article",{id:s[c],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[tS("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[WI(c)," \xB7 ",kr(l.label||"Section")]}),l.heading&&un("h2",{className:"mb-2 border-b border-line pb-[18px] font-heading2 text-[length:min(var(--size-headingMedium,clamp(28px,3.5vw,44px)),var(--sf-heading-max,9999px))] font-medium uppercase leading-[1.04] tracking-[-0.025em]",children:kr(l.heading)}),sS(l.body??"").map((d,f)=>d.type==="ul"?un("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((u,p)=>un("li",{className:"relative pl-6 font-serif text-[length:var(--size-body,17px)] leading-[1.65] text-fg-dim before:absolute before:-top-0.5 before:left-1.5 before:text-[length:var(--size-body,24px)] before:leading-none before:text-accent before:content-['\xB7']",children:kr(u)},p))},f):un("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:kr(d.text)},f))]},s[c]))})]})})}import{VIEW_DESKTOP_MIN as lS,VIEW_TABLET_MIN as Y4e}from"efficient-easel/draw";var zu=Or,CB=960,kB=Or;var vB={min:zu,max:1600,step:10},TB="stackBelow";function Z4e(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<vB.min||e>vB.max))return Math.round(e)}var pae=e=>`sf-stack-${e}`,uae=e=>`sf-stack-${e}-gutter`,mae=e=>`sf-stack-${e}-outer`,Ms=e=>`${e-.02}px`;function J4e(e,o={}){let t=o.gutter!==!1,r=`.${pae(e)}`,a=`.${uae(e)}`,n=`.${mae(e)}`,s=[];if(e>zu){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,c=Math.min(e,lS);s.push(`@media (min-width:${zu}px) and (max-width:${Ms(e)}){${r}${r}{flex-direction:column}.sf-gap-overlap${r}{--sf-gap-overlap-eff:calc(var(--sf-gap-overlap) / 2)}${l}{width:min(var(--sf-bw-p,100%),100%);flex-grow:0}}`,`@media (min-width:${zu}px) and (max-width:${Ms(c)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>lS&&s.push(`@media (min-width:${lS}px) and (max-width:${Ms(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${Ms(e)}){${a}${a}{padding-inline:min(24px,var(--sf-site-gutter,40px))}}`),t&&e<CB&&s.push(`@media (min-width:${e}px) and (max-width:${Ms(CB)}){${a}${a}{padding-inline:var(--sf-site-gutter,40px)}}`),e>kB&&s.push(`@media (min-width:${kB}px) and (max-width:${Ms(e)}){`+["top","bottom","left","right"].map(l=>`.sf-pad-${l}-phone:has(>${n}),.sf-pad-${l}-phone${n}{padding-${l}:var(--sf-pad-${l[0]}-phone)!important}`).join("")+"}"),s.join("")}var PB={top:80,bottom:80,topPhone:60,bottomPhone:60},EB=18,OB=18,_B=8,hae=10,iS=e=>typeof e=="string"&&e.trim()!=="",AB=e=>aS(e.sections),xae=e=>sS(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
|
|
89
|
+
`)}:{kind:"p",text:o.text}),cS={...bt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},RB={textStyle:"body-1",fontRole:"accent",...M("body",17)},Iae=[pe("label",cS),{...pe("title",cS),when:(e,o)=>!iS(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!iS(o?.label)&&!iS(o?.title),props:{...G,text:"Section",_partStyles:{text:cS}}},{kind:"group",name:"Heading",props:{..._,sectionPaddingBottom:_B,sectionPaddingBottomPhone:_B},parts:[{kind:"group",name:"Heading line",props:{..._,sectionBorder:{bottom:1},sectionPaddingBottom:OB,sectionPaddingBottomPhone:OB},parts:[{kind:"text",key:"heading",role:"heading",props:G,style:{textStyle:"heading-2",...Xo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:xae,parts:[{kind:"text",key:"text",props:Y,style:{...RB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:Y,style:{...RB,lineHeight:1.65,paragraphSpacing:hae},when:(e,o)=>o?.kind==="ul"}]}],gae=900,bae={name:"Document Text",boxProps:e=>({...Q,direction:"row",gap:80,gapPhone:40,[TB]:gae,sectionBorder:{bottom:1},...ce(e,PB)}),box:["anchor","sectionAccent",...$n,...Object.values(co),...ye(PB)],parts:[{kind:"block",type:"Contents",props:e=>({title:e.tocTitle??"",sticky:!0,widthFit:"fixed",width:240,widthFitPhone:"fill"})},{kind:"group",name:"Sections",props:{..._,gap:64,gapPhone:64,widthFit:"fill"},parts:[{kind:"list",key:"sections",name:"Section",of:e=>AB(e),props:{..._,gap:EB,gapPhone:EB},item:(e,o,t)=>({props:{anchor:nS(AB(t))[o]??`section-${o+1}`}}),parts:Iae}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...oe,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},LB={DocBody:bae};var c6e="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",yae="overlay",Sae=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function FB(e){return Ho(Sae,yae,e)}var d6e={desktop:40,mobile:45,min:20,max:80,step:5};function f6e(e,o){return`${typeof e=="number"?e:o}%`}var BB=(e,o)=>{let t=U(e),r=U(o);return{...t===void 0?{}:{size:t},...r===void 0?{}:{sizePhone:r}}},wae=e=>FB(e.layout)==="stacked",DB=e=>Math.min(Math.max(U(e.overlay)??60,0),100),$u=e=>U(e)??100,Cae={textStyle:"heading-1",sizeToken:{...Xo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},kae=[pe("eyebrow",M("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:G,style:{...Cae,case:e?"upper":"none"},styleFrom:o=>BB(o.titleSizeDesktop,o.titleSizeMobile),when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...Y,maxWidth:560},style:{textStyle:"body-1",...M("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>BB(e.bodySizeDesktop,e.bodySizeMobile)},{kind:"group",name:"Button",props:{..._,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:fo}]}],NB=e=>`${e}: a Button block has no colour of its own (it follows the site Button colour, as the old fallback did); 0 of 3 live US nodes store one (CLI read, 2026-11-03)`,vae=()=>({name:"Scroll-Over Text",skip:e=>wae(e)?"the stacked layout: its words row's height floor (`copyShare*`) and the header subtraction have no Box setting; 0 live US nodes":void 0,boxProps:e=>({...Q,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...Li,placement:"left",darken:DB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:$u(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:$u(e.heightMobile)}),box:[...re.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>DB(o)],["heightDesktop","sectionHeightValue",e=>$u(e)],["heightMobile","sectionHeightValuePhone",e=>$u(e)]],parts:kae,drop:{uppercase:"not a value of its own: it picks the heading part \u2014 Case Upper when on, None (as typed) when off",layout:"not a value of its own: the overlay layout is this tree; a stacked node is skipped (`skip`)",copyShareDesktop:"the stacked layout's words-row floor, read only there; a stacked node is skipped",copyShareMobile:"the stacked layout's words-row floor, read only there; a stacked node is skipped",sticky:"the old pin key, read as `stickTop` by the section pin's one reader (lib/content/section-sticky); the Box keeps a stored `stickTop` (SAME_KEYS), and this row is switched off until the stored pages hold `stickTop`",titleSizeDesktop:"read by the heading part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",titleSizeMobile:"read by the heading part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",bodySizeDesktop:"read by the words part's `styleFrom`: a number is its Size, `inherit` and unset follow the token",bodySizeMobile:"read by the words part's `styleFrom`: a number is its phone Size, `inherit` and unset follow the token",buttonColor:NB("Button color"),buttonTextColor:NB("Button text color"),...oe}}),WB={textStyle:"heading-2",...M("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},Tae={textStyle:"body-1",...M("body",16),lineHeight:1.7},GB=e=>({kind:"text",key:"body",props:{...Y,maxWidth:520},style:{...Tae,paragraphSpacing:e}}),ju={top:0,bottom:0,topPhone:0,bottomPhone:0},dS=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},Pae=(e,o)=>{let t=dS(e,o);return Object.keys(t).length?t:{sectionHeightMode:e.sectionHeightMode,...e.sectionHeightValue===void 0?{}:{sectionHeightValue:e.sectionHeightValue},...e.sectionHeightUnit===void 0?{}:{sectionHeightUnit:e.sectionHeightUnit},sectionHeightModePhone:"auto"}},zB={boxShapePhone:"landscape"},$B="needs a black-and-white setting on a Box picture (the old photograph followed it, else the site's Photography); 0 live US nodes store it (CLI read, 2026-11-03)",Eae=(e,o)=>({[e]:o,[`${e}Phone`]:o}),Oae={textStyle:"heading-2",...M("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},MB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),_ae=()=>({name:"Brand Text",boxProps:(e,o)=>({...Q,...Yo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ce(e,ju),...dS(e,100)}),box:[...re,...ye(ju)],parts:[{kind:"group",name:"Words",props:(e,o)=>({..._,justify:"center",gap:28,gapPhone:28,sectionBorder:Fi({right:1}),sectionBorderPhone:Fi({}),...Li,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Rs(o)}),parts:[pe("eyebrow",M("label",14)),{kind:"text",key:"heading",role:"heading",props:G,style:{...WB,case:"none"},mark:"accentItalic"},GB(28),{kind:"group",name:"Stats",props:{..._,sectionPaddingTop:16,sectionPaddingTopPhone:16},parts:[{kind:"group",name:"Figures",props:e=>({..._,direction:"row",share:"equal",gap:24,gapPhone:24,maxWidth:520,phoneRow:Math.min(Math.max(MB(e).length,1),3),...Eae("sectionBorder",Fi({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:MB,props:{..._,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:nn,style:Oae},pe("label",{...M("label",13),color:"labels",letterSpacing:.2})]}]}]}]},dy("Picture","imageSrc",zB)],drop:{...oe,grayscale:$B,...de}}),Uu=e=>{let o=e.textAlign==="center"||e.textAlign==="right"?{align:e.textAlign}:{},t=e.textAlignPhone==="left"||e.textAlignPhone==="center"||e.textAlignPhone==="right"?{alignPhone:e.textAlignPhone}:{};return{...o,...t}},Aae=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",Rae=e=>Math.min(Math.max(U(e.overlay)??60,0),100),UB=e=>typeof e=="string"&&e.trim()!=="",Lae={...fo,align:"center",alignPhone:"center",buttonFillOpacity:0,buttonBorder:{width:1},buttonPaddingTop:16,buttonPaddingRight:28,buttonPaddingBottom:16,buttonPaddingLeft:28,buttonPaddingTopPhone:12,buttonPaddingRightPhone:20,buttonPaddingBottomPhone:12,buttonPaddingLeftPhone:20},HB=e=>({...dy("Picture","imageSrc",(o,t)=>({...UB(o.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...zB,sectionBorder:Fi(e?{left:1}:{right:1}),...jB(e?"left":"right",Rs(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Lae,style:{...bt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),jB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Fae={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{..._,justify:"center",align:Aae(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...Pae(e,72),gap:24,gapPhone:24,...UB(e.textBgSrc)?{darken:Rae(e),darkenStyle:"even"}:{},...Li,sectionPaddingTop:100,sectionPaddingBottom:100,...jB(t?"right":"left",Rs(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",M("label",14)),styleFrom:Uu},{kind:"text",key:"title",role:"heading",props:G,style:WB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Uu(e)})},{...GB(24),styleFrom:Uu},{kind:"group",name:"Button",props:{..._,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Uu(e);return{...fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},Bae=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Q,...Yo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ce(e,ju),...dS(e,72)}),box:[...re,...ye(ju)],parts:[HB(!1),Fae,HB(!0)],drop:{reverse:"not a value of its own: it picks the order \u2014 the Picture Box first, or after the Words",uppercase:"not a value of its own: the heading part's Case \u2014 Upper when on, None (as typed) when off",textAlign:"read by each words part (its Align) and the Words Box (its Align); left writes nothing, as the old emitted no class",textAlignPhone:"read by each words part as its phone Align",textAlignTablet:"not carried to the words part's own tablet Align (`alignTablet`) yet: no old node stores it (new with the Tablet view's Text alignment row, 0 stored on the US sites 2026-11-06), so nothing moves",overlay:"read by the Words Box: its Darken over the words picture (60 when unset); no picture, no wash",grayscale:$B,...oe,...de}}),KB={IntroBleed:vae(),Manifesto:_ae(),Split:Bae()};var YB={headPlacement:void 0},VB={top:0,bottom:0,topPhone:0,bottomPhone:0},Dae=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Q,direction:"column",...ce(e,VB)}),box:[...re,...ye(VB)],parts:[{kind:"core",keep:"rest",props:YB}],drop:{...oe,...de}}),qB={top:120,bottom:120,topPhone:60,bottomPhone:60},Nae=()=>({name:"Photo Submission Form",boxProps:e=>({...Q,direction:"column",gap:24,...ce(e,qB)}),box:[...re,...ye(qB)],parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:Y},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:YB}],skip:e=>e.layout==="boxes"?`its words are in its two SubmitBox regions (layout "boxes"); this row reads only the section's own words`:void 0,drop:{...oe,...de,layout:'the marker of the two-region drawing; a node that has it is skipped (above), so here it is never "boxes"',boxes:'the SubmitBox regions, drawn only under layout "boxes", which this row skips (above); without that marker they draw nothing'}}),XB={Form:Dae(),SubmitBuild:Nae()};import{phoneKey as ZB}from"efficient-easel/draw";var QB=1.5,JB={textStyle:"body-1",...M("body",15),lineHeight:QB},Mae={...Ao,...M("label",12),letterSpacing:.12,lineHeight:QB},eD=()=>({type:K,props:{..._,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[ZB("share")]:"content",[ZB("wrap")]:"nowrap",...Xe(12,0),sectionBorder:{top:1},name:"Item"},slots:{[se]:[{type:K,props:{..._,gap:0,gapPhone:0,name:"Item words"},slots:{[se]:[ne("label",{...G,tag:"p"},JB),ne("meta",{...Y,tag:"p"},Mae)]}},ne("amount",{...G,tag:"p"},JB)]}});var Hae=()=>({name:"Order Table",boxProps:()=>({...Q,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[io]:[eD()]}}],drop:{...oe}}),oD={OrderSummary:Hae()};import{phoneKey as Wae}from"efficient-easel/draw";var _6e={eyebrow:"By the numbers",title:`A picture worth
|
|
90
|
+
*a thousand rows.*`},tD=["eyebrow","title","body","caption"],A6e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var rD=["eyebrow","title","body"],L6e={label:"Mockup Card",defaultProps:{eyebrow:"",title:"",body:"",variant:"spec-card",cardHeader:"",badge:"",cardTitle:"",cardSubtitle:"",pills:[],tiles:[],rows:[],button:"",footnote:"",col1Title:"",col1Cards:[],col2Title:"",col2Cards:[],col3Title:"",col3Cards:[],col4Title:"",col4Cards:[],barsHeading:"",bars:[],termLines:[],urlText:"",heroTitle:"",heroButton:"",products:[],align:"right"}};var sD={top:76,bottom:76,topPhone:76,bottomPhone:76},lD=()=>({kind:"group",name:"Words",props:{..._,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{..._,direction:"row",phoneRow:2,[Wae("share")]:"content"},parts:[du("eyebrow")]},{kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-2",...M("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...Y,maxWidth:435},style:{textStyle:"body-1",...M("body",15),lineHeight:1.625}}]}),iD=e=>(o,t)=>({...Q,sectionAccent:cy(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ce(o,sD)}),cD=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>cy(e,t)],...ye(sD)],Gae=()=>({name:"Chart",boxProps:iD([42]),box:cD,parts:[lD(),{kind:"group",name:"Chart",props:{..._,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:_s},pe("caption",{color:"muted",...M("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...tD],drop:{...oe,...de}}),aD=e=>e.align==="left",nD={kind:"group",name:"Card",keepEmpty:!0,props:_,parts:[{kind:"core",keep:"rest",props:_s}]},zae=()=>({name:"Mockup Card",boxProps:iD("equal"),box:cD,parts:[{...nD,when:aD},lD(),{...nD,when:e=>!aD(e)}],pressKeepsEmpty:[...rD],drop:{...oe,...de}}),dD={Chart:Gae(),Mockup:zae()};var $ae={title:"Back online in",zeroText:"Almost done. Back very soon."},fD=["title"],G6e={label:"Countdown",defaultProps:{...$ae,endsAt:"",showUnits:!0}};var pD={top:48,bottom:48,topPhone:48,bottomPhone:48},Uae={...pe("title",{...sl(12),color:"muted"}),props:{...G,align:"center"}},jae=()=>({name:"Countdown",boxProps:e=>({...Q,direction:"column",align:"center",gap:16,gapPhone:16,...ce(e,pD)}),box:[...re,...ye(pD)],parts:[Uae,{kind:"core",keep:"rest",props:_s}],pressKeepsEmpty:[...fD],drop:{...oe,...de}}),uD={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},Kae=()=>({name:"Feature Banner",boxProps:e=>({...Q,direction:"column",sectionBorder:{bottom:1},...ce(e,uD)}),box:[...re,...ye(uD)],parts:[{kind:"core",keep:"rest",props:_s}],drop:{...oe,...de}}),mD={Countdown:jae(),FeaturedCover:Kae()};var hD={top:80,bottom:80,topPhone:60,bottomPhone:60},Vae=()=>{let e=Cu("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Q,direction:"column",gap:bu[Fs("FitmentFinder")],...ce(o,hD)}),box:[...re,...ye(hD)],parts:[st("FitmentFinder"),{kind:"block",type:"FitmentPicker"},{kind:"block",type:"StockFitment"},{kind:"button",key:"ctaText",href:"ctaHref"}],skip:o=>o.layout==="bar"?"the one-row shape goes to the shop on the fourth pick and draws no head; the Fitment picker block never leaves the page":void 0,...Object.keys(e).length?{reads:e}:{},drop:{...oe,...de,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},xD={FitmentFinder:Vae()};var ID={top:72,bottom:72,topPhone:72,bottomPhone:72},qae={name:"Editorial Text",boxProps:e=>({...Q,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ce(e,ID)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ye(ID)],parts:[st("Prose"),{kind:"text",key:"body",props:Y,style:{textStyle:"body-1",...M("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...oe,...de,headPlacement:"needs a row per head placement: an own-box Prose draws no head (its words sit in a Section Header above it), the row always draws the head. 0 of 123 live nodes store it (the live export, 2026-10-24)"}},gD={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},bD=(e,o)=>o?.variant==="primary",yD=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:bD,variant:"primary",style:{letterSpacing:.3},props:{...fo,...gD,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!bD(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...fo,...gD,...o}}]}),Ku=e=>Ze(e.title),Yae={name:"Call-to-Action Heading",boxProps:e=>({...Q,direction:"row",align:"center",justify:Ku(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...No(e,"TitleWithButtons")}),box:[...re,...oa("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{..._,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-1",...Xo("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035}}]},{kind:"group",name:"Buttons",props:e=>({..._,gap:14,gapPhone:14,widthFitPhone:"fill",...Ku(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[yD(Ku,{widthFit:"fill",iconPosition:"end"}),yD(e=>!Ku(e),{})]}],drop:{...oe,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function Xae(e){let{siteGutter:o,siteGutterPhone:t}=e.site??{},r=Rs(e),a=Math.min(20,tf(t)??rf(o));return{sectionPaddingLeft:r,sectionPaddingRight:r,sectionPaddingLeftPhone:a,sectionPaddingRightPhone:a}}var SD={top:40,bottom:64,topPhone:24,bottomPhone:36},Zae={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...ce(e,SD),...Xae(o)}),box:[...re,...ye(SD)],parts:[st("SectionHeader")],drop:{...oe,...de,headStyle:"needs a row per head look: the row draws the standard look; the editorial, simple, statement, natural and essay looks are other layouts. 0 of 69 live nodes store it (the live export, 2026-10-24)",eyebrowLook:"read only by the simple, statement, natural and essay looks, which this row does not draw. 0 of 69 live nodes store it",rowGap:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",descriptionSize:"read only by the natural look, which this row does not draw. 0 of 69 live nodes store it",numStyle:"Solid (the default; 4 of 69 live nodes store it) IS the eyebrow Text the row draws; Outlined (0 live) needs an outlined-number text look"}},wD={..._,direction:"row",share:[67],gap:30},CD={..._,sectionPaddingLeft:30,sectionPaddingLeftPhone:0},kD=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Jae={name:"Lead Text",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...No(e,"ParagraphsA")}),box:[...re,...oa("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...wD,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{..._,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[pe("eyebrow",{color:"labels",...M("label",12),letterSpacing:.24})]},kD("Stats column",_,{kind:"group",name:"Stats",props:{...CD,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[Ri("value","label",{...M("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...wD,gapPhone:28},parts:[{kind:"group",name:"Lead",props:_,parts:[{kind:"group",name:"Measure",props:{..._,maxWidth:780},parts:[{kind:"text",key:"lead",props:G,style:{textStyle:"heading-3",...M("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},kD("Note column",{..._,justify:"end",widthFit:"fill"},{kind:"group",name:"Founders",props:{...CD,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{..._,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:G,style:{textStyle:"body-1",fontRole:"heading",...M("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:Y,style:{textStyle:"body-5",fontRole:"heading",...M("body",14,12),lineHeight:1.7}}]},pe("attribution",{...M("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...oe}},vD={top:24,bottom:24,topPhone:24,bottomPhone:24},Qae={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...ce(e,vD)}),box:[...re,"contained",...ye(vD)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{..._,gap:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Xe(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(U(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{..._,gap:20},parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...G,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none"}},{kind:"text",key:"body",props:{...Y,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6},was:{size:16}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:fo}]}],drop:{...oe,...de}},fS={Prose:qae,TitleWithButtons:Yae,SectionHeader:Zae,ParagraphsA:Jae,Banner:Qae};function TD(){bo(fS),bo(ML),bo(JL),bo(EL),bo(cF),bo(HF),bo(eB),bo(rB),bo(IB),bo(LB),bo(KB),bo(XB),bo(oD),bo(xD),bo(dD),bo(mD)}var one=["FooterPayment"];function PD(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))ene(n)&&(r[a]=n.map(s=>PD(s,o)));return o(e.type,r)}var Zi=(e,o)=>{if(!one.includes(e.type))return null;TD();let t=Qr(e.type);return t?Es({type:e.type,props:{...e.props}},t).nodes.map(r=>PD(r,o)):null};function ED(){let{appState:e,dispatch:o,config:t}=lne(f=>f),{readOnly:r}=cne(),[a,n]=ane(!1),s=e.data.content;if(r||s.some(f=>f.type===Re))return null;let l=s.find(f=>f.type===He)??null,c=(f,u)=>nne(t,f,u),d=()=>{let f=Ei(l,c,sne(Re),Zi);o({type:"setData",data:u=>({...u,content:[...ld(u.content,f)]}),recordHistory:!0}),n(!1)};return Vu(ine,{tone:"info",title:i("This footer uses the old layout"),action:a?rne(tne,{children:[Vu(pS,{variant:"primary",size:"sm",onClick:d,children:i("Switch now")}),Vu(pS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):Vu(pS,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:i("Switch to Box footer")}),children:i("Build this footer out of Boxes and blocks, like a page: the same menus, signup, social links and logo, with the copyright as a Legal Line. Your current footer is kept.")})}import{jsx as uS,jsxs as dne}from"react/jsx-runtime";import{InspectorUpLevel as OD}from"efficient-easel/chrome";function _D({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=pp(),n=ks(e,o,"picture");return dne("div",{children:[o!=="media"?uS(OD,{inline:!0,name:i(Va.media),onSelect:()=>a(ii(e,"media"))}):uS(OD,{inline:!0,name:i(t),onSelect:r}),uS(At,{part:o,motion:n,itemWord:i(Va[o])})]})}import{HintsToggle as kne,SettingsSwitch as vne,hintsFoldClass as Tne}from"efficient-easel/panel";import{useHints as Pne}from"efficient-easel/screen/lib/hints";var DD={kind:"header"},xS={kind:"website"},ND={kind:"website",tab:xs,revealPageGroup:!0},MD={kind:"chat"},HD={kind:"social"},Ji="Part";function Ene(e){return i("Part of {name}",{name:i(e)})}function One(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Ene(r.label):i(Ji)}}function _ne(e){switch(e){case"Header":return{title:i("Header settings belong to a website."),own:i("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:i("Appearance settings belong to a website."),own:i("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:i("Live chat settings belong to a website."),own:i("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:i("Social link settings belong to a website."),own:i("Each website created from this template sets its own social link afterwards.")};default:return{title:i("{what} settings belong to a website.",{what:e}),own:i("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function WD({what:e}){let o=_ne(e);return sa("div",{className:"sf-note",children:[Se("p",{children:Se("strong",{children:o.title})}),sa("p",{children:[i("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function hS(e){let o=li[e];return{name:Va[e],kindLabel:Ji,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=BD({name:i(mp(e,a.props)),tier:"part",of:i(a.label)},{partOf:({name:s})=>i("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?Se(_D,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Ane={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Se(t,{placeholderMode:o.capabilities.placeholderFrames,tokenRef:o.tokenRef,siteId:o.siteId,websiteName:o.websiteName,onOpenWebsiteSettings:o.onOpenWebsiteSettings,onAuthExpired:()=>o.notifyParent("storefront-editor:auth-expired")}):null}},website:{name:"Appearance",kindLabel:"Site settings",icon:"website",render:(e,o)=>Se(rp,{initialTab:e.tab,revealPageGroup:e.revealPageGroup,themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify},e.tab??"")},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>Se(nA,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Se(fA,{unavailable:Se(WD,{what:"Social link"})})},ticker:{name:ai,kindLabel:Ji,icon:"ticker",head:(e,o)=>e.kind==="ticker"?One(o,e.heroId,i(ai)):null,render:e=>Se(F1,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:hS("media"),heroImage:hS("image"),heroImage2:hS("image2"),part:{name:Ji,kindLabel:Ji,icon:"Text",head:(e,o)=>{if(e.kind!=="part")return null;let t=o.describeNode(e.nodeId);if(!t)return null;let{key:r,row:a}=Et(e.propKey),n=a?ss(t.fields[r],a):t.fields[r],s=Kp(t.type),l=s?ul(s,e.propKey):null,c=s&&l?s[l].label:$1[e.propKey],d=c?i(c):SE(i(MI(Af(n??{},r))),a),f=BD({name:d,tier:"part",of:i(t.label)},{partOf:({name:u})=>i("Part of {name}",{name:u})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?Se(cR,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Rne=new Set(["header","website","chat"]);function Lne(e,o){if(e==="selection")return null;let t=Ane[e];return Rne.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Se(WD,{what:t.name})}:t}function GD({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onOpenPageStyles:r,onSelectNode:a,hideNodeActions:n=!1,onNotify:s,onHidePanel:l}){let{capabilities:c,tokenRef:d,notifyParent:f,currentSlug:u,siteId:p,runAuthed:x,readOnly:I,navigate:g}=yne(),{rows:k}=oi(),S=k?.find(le=>le.slug===u)??null,C=pne(),b=Object.keys(C.fields).some(le=>!le.startsWith("_")&&!Ql.includes(le)),{websiteName:v}=xe(),T=Sne({readOnly:I}),{select:F}=wne(),{selectedItem:P,getItemById:D,getSelectorForId:O,config:R,appState:N}=fne(le=>le),y=gne(R,P?{type:P.type,props:P.props}:null),A=P?PE(y??R.components[P.type]?.fields,P.props):[],L=le=>R.components[le]?.label??le,H=P?O(P.props.id):void 0,X=Lne(e.kind,c),q=bne(),j={capabilities:c,tokenRef:d,hostPanels:q.chrome?.panels,describeNode:le=>{let Be=D(le);if(!Be)return null;let _e=R.components[Be.type];return{type:Be.type,label:_e?.label??Be.type,fields:_e?.fields??{},props:Be.props??{}}},siteId:p,websiteName:v??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},Ie=X?.head?.(e,j)??null,te=Q_({kind:S?.kind,pageName:S?.label}),Le=Ie?.name??(X?i(X.name):P?i(L(P.type)):te.name),We=Ie?.kindLabel??(X?i(X.kindLabel):P?H&&H.zone!==FD?i("Block"):i("Section"):te.kindLabel),Ee=X?X.icon:P?P.type:"page",ge=X?null:P?R.components[P.type]?.fields??null:R.root?.fields??null,Oe=ge?DA(ge):2,Ge=mS(e)&&P?yi(P.type):null,to=!!P&&!!H&&H.zone===FD&&P.type!==He&&P.type!==Cne,Co=su(N?.data,P),he=()=>{Co||H&&T.duplicateComponent(H.zone,H.index)},Ve=()=>{H&&(T.removeComponent(H.zone,H.index),T.select(null))},ve=P?R.components[P.type]?.defaultProps?.previewHover:void 0,Te=mS(e)&&!!P&&!!H&&ve!==void 0,Je=Te&&P.props.previewHover===!0,Bt=()=>{!P||!H||T.replaceComponent(H.zone,H.index,{...P,props:{...P.props,previewHover:!Je}})},{shown:Mo,setShown:W}=Pne(),Fe=!!(X||P||b);return sa("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${Tne(Mo)}`.trim(),children:[Se(hne,{icon:Se(qa,{type:Ee,size:15}),name:Le,kind:We,actions:!n&&mS(e)&&P&&P.type!==He?sa(AD,{children:[Se(RD,{label:i("Duplicate section"),title:Co??void 0,disabled:Co!==null,onClick:he,children:Se(xne,{size:15})}),to&&c.hasSiteSettings&&Se(SR,{node:P,currentSlug:u,siteId:p??void 0,tokenRef:d,runAuthed:x,onNotify:s}),Se(RD,{label:i("Remove section"),danger:!0,onClick:Ve,children:Se(Ine,{size:15})}),l?Se(LD,{side:"right",onHide:l,divider:!0}):null]}):l?Se(LD,{side:"right",onHide:l}):void 0}),Te&&sa("div",{className:"sf-preview-pin",children:[sa("div",{className:"sf-preview-pin-text",children:[Se("span",{className:"sf-preview-pin-label",children:i("Preview hover state")}),Se("span",{className:"sf-preview-pin-hint",children:i("not shown live")})]}),Se(vne,{checked:Je,onChange:Bt,ariaLabel:i("Preview hover state")})]}),Se(h0,{tier:Oe,children:sa("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[X?X.render(e,j):P?sa(AD,{children:[P.type===He&&c.hasSiteSettings&&Se(ED,{}),Se(RT,{children:Se(At,{entries:Se(wR,{parts:A,heading:!1,onOpen:le=>F(Of(P.props.id,le))}),entryCount:ty(A).length,itemWord:Le})}),Ge&&Se(Xp,{source:Ge,slug:vs(P?.props),menuId:Up(P?.props)})]}):b?Se(At,{omit:Ql}):Se(mne,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&Se(une,{variant:"secondary",onClick:r,children:i("This page")})}),Fe&&Se(kne,{shown:Mo,onChange:W,label:i("Show hints")})]})})]})}import{jsx as m,jsxs as E,Fragment as KD}from"react/jsx-runtime";var no={dark:"var(--sf-thumb-bar-dark)",soft:"var(--sf-thumb-bar-light)",accent:"var(--sf-thumb-accent)",tint:"var(--sf-thumb-accent-tint)",block:"var(--sf-thumb-block)",line:"var(--sf-thumb-border)",card:"var(--sf-thumb-card)"},IS="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function z({w:e,h:o,tone:t="dark",r=2,style:a}){return m("div",{style:{width:e,height:o,borderRadius:r,background:no[t],flex:"none",...a}})}var Fne={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",ArticleBody:"articlebody",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",CityPictures:"citypictures",CityMaps:"citymaps",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",PaymentLogosBlock:"paymentlogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},V={position:"absolute",inset:0},h={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},Ne=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Pr({size:e,style:o}){let t=Math.max(2,Math.round(e*.13)),r=(a,n,s)=>({position:"absolute",inset:a,background:n,borderRadius:t,...s?{mixBlendMode:s}:null});return E("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[m("span",{style:r("8% 26% 30% 6%",h.mark1)}),m("span",{style:r("26% 6% 8% 30%",h.mark2,"multiply")})]})}function Yu({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:h.muted},children:e})}function zD({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return E(KD,{children:[e&&m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),m("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:l},children:t}),a&&m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function gS({name:e,price:o}){return E("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...Ne(h.paper,h.paper2,150)},children:m(Pr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:h.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:h.muted},children:o})]})}function Tr({k:e,v:o,ok:t}){return E("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${h.rule}`,fontSize:"3.98cqw",color:h.muted},children:[m("span",{children:e}),E("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("b",{style:{color:h.text,fontWeight:700},children:o}),t&&m("span",{style:{color:h.rust,fontWeight:700},children:"\u2713"})]})]})}function Pe({title:e,children:o}){return E("div",{style:{...V,background:h.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(Yu,{children:e}),o]})}function $D({size:e=14}){return m("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${h.mark1},${h.mark2})`}})}function bS({filled:e=5,size:o=6}){return E("span",{style:{fontSize:o,letterSpacing:"0.06em",color:h.rust,lineHeight:1},children:["\u2605".repeat(e),m("span",{style:{color:h.mark1},children:"\u2605".repeat(5-e)})]})}function Qi({n:e,label:o,tone:t=h.text}){return E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function oo({children:e,w:o}){return m("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:h.muted,width:o,display:"block"},children:e})}function qu({label:e,w:o="100%",filled:t}){return E("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:h.muted},children:e}),m("span",{style:{height:9,borderRadius:3,border:`1px solid ${h.rule}`,background:t?h.paper:h.card}})]})}function UD({children:e}){return m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:h.text,color:h.onInk},children:e})}var Bne={wheelslisting:m(Pe,{title:"All wheels",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>E("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Ne(h.paper,h.paper2,150)},children:m(Pr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("b",{style:{flex:1,fontSize:"4.31cqw",color:h.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:h.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:h.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:E("div",{style:{...V,background:h.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[E("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>E("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:h.text,color:h.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,m("span",{style:{opacity:.6},children:"\u2715"})]},e)),m("span",{style:{fontSize:"3.65cqw",color:h.rust,fontWeight:700},children:"Clear"})]}),E("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"3.65cqw",color:h.muted},children:"128 results"}),m("span",{style:{fontSize:"3.65cqw",color:h.muted,border:`1px solid ${h.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:E("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...Ne(h.ink,h.inkSoft)},children:[m("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:h.onInk},children:"Will it fit your rig?"}),E("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>E("span",{style:{flex:1,fontSize:"3.65cqw",color:h.text,background:h.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",m("span",{style:{color:h.muted},children:"\u25BE"})]},e)),m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:h.warm,color:h.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:m(Pe,{title:"Tyres that suit",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>E("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:h.ink},children:m("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${h.mark2}`,boxSizing:"border-box"}})}),m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:h.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),m("span",{style:{fontSize:"3.32cqw",color:h.muted},children:o})]},e))})}),tyresizes:m(Pe,{title:"Available sizes",children:m("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>m("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?h.rust:h.rule}`,color:o===0?h.rust:h.text,background:o===0?h.paper:h.card},children:e},e))})}),tyrefitment:E(Pe,{title:"Will it fit your car?",children:[m("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>E("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:h.muted,background:h.paper,border:`1px solid ${h.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",m("span",{style:{color:h.muted},children:"\u25BE"})]},e))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>E("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${h.rule}`,paddingTop:3},children:[m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:h.text},children:e}),m("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?h.warm:h.muted},children:o})]},e))})]}),eutyrelabel:E("div",{style:{...V,background:h.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>E("div",{style:{display:"flex",alignItems:"center",gap:3},children:[m("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?h.rust:h.mark1}}),m("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?h.rust:h.muted},children:e})]},e))}),E("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[m("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:h.text},children:"72"}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:h.muted},children:"dB"})]})]}),bundleoffer:E("div",{style:{...V,background:h.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Yu,{children:"Buy it with"}),E("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>m("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:h.card},children:m(Pr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:h.muted},children:"+"}),E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[m("span",{style:{fontSize:"3.65cqw",color:h.muted,textDecoration:"line-through"},children:"$1,024"}),m("b",{style:{fontSize:"6.02cqw",color:h.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:E("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...Ne(h.ink,h.ink2)},children:[E("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:h.warm,fontWeight:700},children:"READY TO ORDER"}),m("b",{style:{fontSize:"6.63cqw",color:h.onInk,lineHeight:1},children:"$1,956"}),m("span",{style:{fontSize:"3.65cqw",color:h.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:h.warm,color:h.ink,flex:"none"},children:"CHECKOUT"})]}),contact:m(Pe,{title:"Who do you need?",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>E("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m("b",{style:{flex:1,fontSize:"4.31cqw",color:h.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:h.muted},children:o}),m("span",{style:{fontSize:"4.64cqw",color:h.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:m(Pe,{title:"Find us",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>E("div",{style:{border:`1px solid ${h.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"4.31cqw",color:h.text},children:e}),m("span",{style:{fontSize:"3.32cqw",color:h.muted},children:o}),m("span",{style:{fontSize:"3.32cqw",color:h.rust,fontWeight:700},children:t})]},e))})}),citypictures:m(Pe,{title:"Our studios",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:h.muted},children:"A \xB7 AMERICAS"}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>E("div",{style:{position:"relative",minHeight:0},children:[m(z,{r:3,style:{...V,background:`linear-gradient(transparent 45%,${h.scrim} 45%),${Ne(h.ink,h.inkSoft2).background}`}}),m("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:h.onInk},children:e})]},e))})]})}),citymaps:m(Pe,{title:"Find us",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd"],["Townsville","12 Enterprise"]].map(([e,o])=>E("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[m(z,{r:4,style:{...V,background:"none",border:`1px solid ${h.rule}`}}),m("b",{style:{position:"relative",fontSize:"4.31cqw",color:h.text},children:e}),m("span",{style:{position:"relative",fontSize:"3.32cqw",color:h.muted},children:o}),E("div",{style:{flex:1,minHeight:0,position:"relative"},children:[m(z,{r:3,style:{...V,...Ne(h.paper,h.paper2,150)}}),m(z,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:h.mark1,opacity:.75}}),m(z,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:h.rust}})]})]},e))})}),form:m(Pe,{title:"Send us a message",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[E("div",{style:{display:"flex",gap:5},children:[m(qu,{label:"Name"}),m(qu,{label:"Email"})]}),m(qu,{label:"Message",filled:!0}),m(UD,{children:"SEND"})]})}),appointmentbooking:m(Pe,{title:"Book a fitting",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?h.text:h.paper,color:o===2?h.onInk:h.muted},children:e},e))}),m("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?h.rust:h.rule}`,color:o===1?h.rust:h.muted,background:o===3?h.paper:h.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:m(Pe,{title:"Leave a review",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(bS,{filled:4,size:14}),m(qu,{label:"Your review",filled:!0}),m(UD,{children:"POST"})]})}),submitbuild:m(Pe,{title:"Show us your build",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${h.mark1}`,borderRadius:5,background:h.paper},children:[m("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:h.rust,fontWeight:300},children:"+"}),m("span",{style:{fontSize:"3.65cqw",color:h.muted},children:"Drop a photo of your rig"})]})}),masthead:E("div",{style:{...V,background:h.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[m("span",{style:{height:1.5,background:h.text}}),m("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:h.text,lineHeight:1},children:"THE TRACK"}),E("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:h.muted},children:[m("span",{children:"Issue 14"}),m("span",{children:"Spring 2026"})]}),m("span",{style:{height:1,background:h.rule}})]}),featuredcover:E("div",{style:{...V,overflow:"hidden",...Ne(h.ink,h.inkSoft2)},children:[m(Pr,{size:92,style:{right:-18,top:-14}}),m("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${h.scrim},transparent 62%)`}}),E("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:h.warm},children:"FEATURE"}),m("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:h.onInk},children:"Four days on the Madigan Line"})]})]}),longread:E("div",{style:{...V,background:h.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:h.rust},children:"12 MIN READ"}),m("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:h.text},children:"What breaks first, and why"}),m(oo,{children:"Every failure starts in the same place:"}),m(oo,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:E("div",{style:{...V,background:h.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[m("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:h.text},children:"Why offset beats width"}),m(oo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),m(oo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),m(oo,{w:"80%",children:"Width follows from the space left."})]}),series:m(Pe,{title:"Recurring columns",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>E("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:3,height:12,borderRadius:2,background:h.rust,flex:"none"}}),m("b",{style:{flex:1,fontSize:"4.64cqw",color:h.text},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:h.muted},children:o})]},e))})}),events:m(Pe,{title:"Latest posts",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[h.inkSoft,h.inkSoft2,"Madigan Line, four days"],[h.rust,h.warm,"Why offset beats width"]].map(([e,o,t])=>E("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...Ne(e,o,150)}}),E("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:h.text},children:t}),m("span",{style:{fontSize:"3.65cqw",color:h.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:E("div",{style:{...V,background:h.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:h.muted},children:"POLICY"}),m("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:h.text,lineHeight:1.1},children:"Returns & refunds"}),m("span",{style:{fontSize:"3.65cqw",color:h.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),m("span",{style:{height:2,width:26,background:h.rust,borderRadius:1}})]}),docbody:m("div",{style:{...V,background:h.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>E("div",{style:{display:"flex",gap:5},children:[m("b",{style:{fontSize:"3.98cqw",color:h.rust,flex:"none"},children:e}),m(oo,{children:o})]},e))}),docmetacards:m(Pe,{title:"At a glance",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>E("div",{style:{border:`1px solid ${h.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"5.31cqw",color:h.text,lineHeight:1},children:e}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:h.muted},children:o})]},o))})}),doctabs:E("div",{style:{...V,background:h.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?h.text:h.muted,background:o===0?h.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?h.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),m("span",{style:{height:1,background:h.rule}}),E("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[m(oo,{children:"Unfitted wheels come back within 30 days, no questions."}),m(oo,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:E("div",{style:{...V,background:h.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[m("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:h.text},children:"The right wheel is the boring one."}),E("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(oo,{children:"Forged, correctly offset, rated for what you actually"}),m(oo,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:m(Pe,{title:"Key features",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>E("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{fontSize:"4.64cqw",color:h.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),m("span",{style:{fontSize:"4.31cqw",color:h.text},children:e})]},e))})}),statsparagraph:E("div",{style:{...V,background:h.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[E("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[m(Qi,{n:"27k",label:"Rigs"}),m(Qi,{n:"4.9",label:"Rating"})]}),E("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(oo,{children:"Twelve years of fitting the same three questions, and the"}),m(oo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:E(Pe,{title:"Load vs weight",children:[m("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>m("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?h.rust:h.mark1}},o))}),m("span",{style:{height:1,background:h.rule,marginTop:-4}})]}),mockup:m("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...Ne(h.inkSoft,h.ink)},children:E("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:h.card,boxShadow:`0 6px 14px ${h.scrim}`},children:[m("div",{style:{height:9,background:h.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>m("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:h.mark1}},e))}),E("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{height:4,width:"56%",borderRadius:1,background:h.mark2}}),m("span",{style:{height:14,borderRadius:2,...Ne(h.paper,h.paper2,150)}}),m("span",{style:{height:3,width:"38%",borderRadius:1,background:h.rust}})]})]})}),manifesto:m("div",{style:{...V,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...Ne(h.ink,h.ink2)},children:E("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:h.onInk},children:["We build for the ",m("span",{style:{color:h.warm},children:"last"})," ten percent of the track."]})}),timeline:m(Pe,{title:"Our story",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>E("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&m("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:h.rule}}),m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:h.rust,zIndex:1}}),E("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[m("b",{style:{fontSize:"4.64cqw",color:h.text},children:e}),m(oo,{children:o})]})]},e))})}),timelinetrack:E("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Ne(h.ink,h.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:h.warm},children:"Milestones"}),E("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[m("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:h.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>E("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[m("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?h.warm:h.mark1}}),m("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?h.warm:h.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:E("div",{style:{...V,overflow:"hidden",...Ne(h.paper,h.paper2,150)},children:[m("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:h.mark1,opacity:.75}}),m("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:h.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>m("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:h.rust}},e)),m("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:h.text},children:"3 fitting bays"})]}),banner:E("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:h.rust},children:[E("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("b",{style:{fontSize:"6.02cqw",color:h.onInk},children:"End of season \xB7 20% off"}),m("span",{style:{fontSize:"3.98cqw",color:h.onInk,opacity:.8},children:"Fitted free, this month only."})]}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:h.onInk,color:h.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:E("div",{style:{...V,background:h.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[m("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:h.text},children:"Not sure what fits?"}),E("div",{style:{display:"flex",gap:5},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:h.text,color:h.onInk},children:"FIND MY FIT"}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${h.text}`,color:h.text},children:"CALL US"})]})]}),ticker:m("div",{style:{...V,overflow:"hidden",background:h.ink,display:"flex",alignItems:"center"},children:m("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:h.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:E("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...Ne(h.ink,h.ink2)},children:[m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:h.muted},children:"Back online in"}),m("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>E("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&m("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:h.warm},children:":"}),E("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[m("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:h.onInk,fontVariantNumeric:"tabular-nums"},children:e}),m("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:h.onInk},children:o})]})]},o))})]}),breadcrumb:m("div",{style:{...V,background:h.card,display:"flex",alignItems:"center",padding:"0 13px"},children:E("span",{style:{fontSize:"4.64cqw",color:h.muted},children:["Home ",m("span",{style:{opacity:.5},children:"/"})," Wheels ",m("span",{style:{opacity:.5},children:"/"})," ",m("span",{style:{color:h.text,fontWeight:700},children:"20 inch"})]})}),categorybar:E("div",{style:{...V,background:h.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[m("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?h.text:h.paper,color:o===0?h.onInk:h.muted},children:e},e))}),m("span",{style:{height:1,background:h.rule}})]}),intro:E("div",{style:{...V,overflow:"hidden",background:h.card},children:[m("div",{style:{position:"absolute",inset:0,...Ne(h.ink,h.inkSoft2)}}),m(Pr,{size:64,style:{right:8,top:6}}),E("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:h.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${h.scrim}`},children:[m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:h.text},children:"Since 1998"}),m(oo,{children:"One shed, one lathe, one idea."}),m(oo,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:m(Pe,{title:"Photo gallery",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[h.rust,h.warm],[h.inkSoft,h.ink],[h.paper2,h.mark2],[h.ink,h.inkSoft2],[h.warm,h.paper2],[h.mark2,h.inkSoft]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...Ne(e,o,140+t*22)}},t))})}),gallery:E(Pe,{title:"Gallery",children:[m("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>m("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?h.text:h.muted,borderBottom:`1.5px solid ${o===0?h.rust:"transparent"}`,paddingBottom:2},children:e},e))}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[h.rust,h.warm],[h.ink,h.inkSoft],[h.paper2,h.mark2]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...Ne(e,o,150+t*20)}},t))})]}),ordersummary:E(Pe,{title:"Order summary",children:[E("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[m("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...Ne(h.paper,h.paper2,150)},children:m(Pr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),E("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:h.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"3.65cqw",color:h.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),E("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Tr,{k:"Subtotal",v:"$1,956"}),m(Tr,{k:"Fitting",v:"Free"}),E("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[m("b",{style:{color:h.text},children:"Total"}),m("b",{style:{color:h.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:m(Pe,{title:"Delivery",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>E("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?h.rust:h.rule}`,background:r?h.paper:h.card},children:[m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?h.rust:h.mark1}`,background:r?h.rust:"transparent"}}),m("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:h.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:h.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:h.text},children:t})]},e))})}),paymentbadges:E("div",{style:{...V,background:h.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[m(Yu,{children:"Ways to pay"}),m("div",{style:{display:"flex",gap:5},children:[["VISA",h.ink],["MC",h.rust],["AMEX",h.inkSoft],["PayPal",h.ink2]].map(([e,o])=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:h.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:E("div",{style:{...V,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...Ne(h.ink,h.ink2)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:h.warm},children:"By the numbers"}),E("div",{style:{display:"flex",gap:8},children:[m(Qi,{n:"27k",label:"Rigs fitted",tone:h.onInk}),m(Qi,{n:"12",label:"Years",tone:h.onInk}),m(Qi,{n:"4.9",label:"Avg rating",tone:h.warm})]})]}),testimonials:E("div",{style:{...V,overflow:"hidden",background:h.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[m("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:h.rust,opacity:.16},children:"\u201D"}),m(bS,{filled:5,size:7}),m("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:h.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),E("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m($D,{}),m("span",{style:{fontSize:"3.98cqw",color:h.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:E(Pe,{title:"Reviews",children:[m("div",{style:{display:"flex",gap:4,height:22},children:[[h.inkSoft,h.inkSoft2],[h.rust,h.warm],[h.ink,h.inkSoft],[h.mark2,h.mark1]].map(([e,o],t)=>m("div",{style:{flex:1,borderRadius:3,...Ne(e,o,140+t*15)}},t))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>E("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[m($D,{size:12}),E("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[E("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[m("b",{style:{fontSize:"3.98cqw",color:h.text},children:e}),m(bS,{filled:o})]}),m(oo,{children:t})]})]},e))})]}),logos:E("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Ne(h.ink,h.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:h.warm},children:"As fitted by"}),m("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>m("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:h.onInk,opacity:.82},children:e},e))})]}),prose:E("div",{style:{...V,background:h.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:h.text},children:"Why offset matters"}),E("div",{style:{display:"flex",gap:6},children:[m("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:h.rust,marginTop:1},children:"T"}),E("div",{style:{display:"flex",flexDirection:"column"},children:[m(oo,{children:"he number on the back of your wheel decides whether the"}),m(oo,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:m(Pe,{title:"What you get",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>E("div",{style:{border:`1px solid ${h.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:3,background:h.rust,opacity:.9}}),m("b",{style:{fontSize:"3.98cqw",color:h.text},children:e}),m(oo,{children:o})]},e))})}),faq:m(Pe,{title:"Questions",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>E("div",{style:{borderBottom:`1px solid ${h.rule}`,padding:"4px 2px"},children:[E("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[m("b",{style:{fontSize:"4.31cqw",color:h.text},children:e}),m("span",{style:{fontSize:"4.64cqw",color:h.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&m(oo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:E("div",{style:{...V,overflow:"hidden",...Ne(h.ink,h.ink2)},children:[m("div",{style:{...V,background:`linear-gradient(90deg,${h.scrim},transparent 70%)`}}),m("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:m(zD,{over:"NEW \xB7 SUMMER",overTone:h.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:h.warm,ctaFg:h.ink,tone:h.onInk})}),m(Pr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:E("div",{style:{...V,display:"flex",background:h.paper,overflow:"hidden"},children:[m("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:m(zD,{over:"ALL-TERRAIN",overTone:h.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:h.text,ctaFg:h.onInk,tone:h.text})}),m("div",{style:{flex:1,position:"relative",...Ne(h.inkSoft,h.inkSoft2)},children:m(Pr,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(Pe,{title:"Best sellers",children:E("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(gS,{name:"Ridge 19",price:"$365"}),m(gS,{name:"Ridge 29",price:"$410"}),m(gS,{name:"Ridge 39",price:"$455"})]})}),collections:m(Pe,{title:"Shop by category",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",h.inkSoft,h.inkSoft2],["Tyres",h.rust,h.warm],["Lift kits",h.ink,h.inkSoft]].map(([e,o,t])=>m("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:h.onInk,...Ne(o,t)},children:m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:E("div",{style:{...V,display:"flex",background:h.card,overflow:"hidden"},children:[m("div",{style:{flex:1.1,position:"relative",...Ne(h.paper,h.paper2,150)},children:m(Pr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),E("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:h.rust},children:"NITTO"}),m("b",{style:{fontSize:"6.29cqw",color:h.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:h.text},children:"$489"}),m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:h.text,color:h.onInk},children:"ADD TO CART"})]})]}),spectable:m(Pe,{title:"Specifications",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Tr,{k:"Diameter",v:'20"'}),m(Tr,{k:"Width",v:"9.0J"}),m(Tr,{k:"Offset",v:"+12"}),m(Tr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:m(Pe,{title:"Will it fit?",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Tr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(Tr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(Tr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:E("div",{style:{...V,background:h.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[m(Yu,{children:"How it works"}),m("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:"50%",background:h.text,color:h.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),m("span",{style:{fontSize:"3.98cqw",color:h.text,fontWeight:600},children:e})]},e))})]}),detailrows:m("div",{style:{...V,background:h.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=m("div",{style:{flex:1,...Ne(t?h.rust:h.inkSoft,t?h.warm:h.inkSoft2)}},"art"),a=E("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[m("b",{style:{fontSize:"4.64cqw",color:h.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:h.muted,lineHeight:1.3},children:o})]},"tx");return m("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:m("div",{style:{...V,background:h.ink,color:h.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>E("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[m("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),m("span",{style:{fontSize:"3.65cqw",color:h.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},jD={subscribe:E("div",{style:{...V,padding:13,display:"flex",flexDirection:"column"},children:[E("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[E("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m(z,{w:8,h:8,r:2,tone:"accent"}),m(z,{w:38,h:7,r:3,tone:"dark"}),m(z,{w:16,h:7,r:3,tone:"accent"})]}),m(z,{w:38,h:4,r:2,tone:"soft"})]}),m("div",{style:{height:1,background:no.line,marginBottom:10}}),E("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${no.line}`,borderRadius:7,padding:10},children:[E("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[m(z,{w:"46%",h:3,r:2,tone:"accent"}),m(z,{w:"84%",h:8,r:4,tone:"dark"}),m(z,{w:"56%",h:8,r:4,tone:"accent"}),m(z,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),E("div",{style:{display:"flex",gap:5,marginTop:4},children:[m("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${no.line}`,background:no.block}}),m(z,{w:34,h:13,r:5,tone:"accent"})]})]}),E("div",{style:{flex:1,background:no.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[m(z,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>E("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${no.line}`:"none",paddingTop:o?4:0},children:[m(z,{w:34,h:4,r:2,tone:"dark"}),m(z,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:E("div",{style:{...V,display:"flex"},children:[m("div",{style:{width:"44%",background:IS}}),E("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(z,{w:"44%",h:5,r:3,tone:"accent"}),m(z,{w:"88%",h:8,r:4,tone:"dark"}),m(z,{w:"70%",h:8,r:4,tone:"dark"}),m(z,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),m(z,{w:"80%",h:5,r:2,tone:"soft"}),m(z,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:E(KD,{children:[m(z,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),E("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[E("div",{style:{display:"flex",alignItems:"center",gap:9},children:[m(z,{w:16,h:16,r:4,tone:"accent"}),m(z,{w:"20%",h:9,r:4,tone:"dark"})]}),m(z,{w:"62%",h:10,r:5,tone:"dark"}),m(z,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:m("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:E("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m(z,{w:"22%",h:12,r:4,tone:"dark"}),E("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[m(z,{w:26,h:6,r:3,tone:"soft"}),m(z,{w:26,h:6,r:3,tone:"soft"}),m(z,{w:26,h:6,r:3,tone:"soft"}),m(z,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:E("div",{style:{...V,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[E("div",{style:{display:"flex",gap:14},children:[E("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[m(z,{w:"60%",h:9,r:4,tone:"dark"}),m(z,{w:"90%",h:5,r:2,tone:"soft"}),m(z,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[m(z,{w:"50%",h:6,r:3,tone:"dark"}),m(z,{w:"80%",h:5,r:2,tone:"soft"}),m(z,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),m("div",{style:{height:1,background:no.line}}),E("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(z,{w:"30%",h:5,r:2,tone:"soft"}),m(z,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:m("div",{style:{...V,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>m("div",{style:{borderRadius:6,background:no.block}},o))}),blanksection:m("div",{style:{...V,padding:14,display:"flex"},children:E("div",{style:{flex:1,border:`1px dashed ${no.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[m(z,{w:14,h:2,r:1,tone:"tint"}),m(z,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:E("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[m(z,{w:"100%",h:6,r:3,tone:"soft"}),m(z,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),m(z,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:m("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:m(z,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:E("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:IS},children:[m(z,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),m(z,{w:16,h:10,r:3,tone:"accent"}),m(z,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:m("div",{style:{...V,padding:14,display:"flex",alignItems:"center"},children:m(z,{w:"64%",h:13,r:4,tone:"dark"})}),text:E("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(z,{w:"100%",h:6,r:3,tone:"soft"}),m(z,{w:"96%",h:6,r:3,tone:"soft"}),m(z,{w:"100%",h:6,r:3,tone:"soft"}),m(z,{w:"58%",h:6,r:3,tone:"soft"})]}),image:m("div",{style:{position:"absolute",inset:14,borderRadius:7,background:IS}}),button:m("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center"},children:m(z,{w:"34%",h:16,r:8,tone:"accent"})}),menu:E("div",{style:{...V,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[m(z,{w:"48%",h:7,r:3,tone:"dark"}),m(z,{w:"82%",h:5,r:2,tone:"soft"}),m(z,{w:"66%",h:5,r:2,tone:"soft"}),m(z,{w:"74%",h:5,r:2,tone:"soft"}),m(z,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:E("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m(z,{w:"56%",h:8,r:3,tone:"dark"}),E("div",{style:{display:"flex",gap:6},children:[m("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${no.line}`}}),m(z,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:m("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>m(z,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:E("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m(z,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>m(z,{w:20,h:13,r:3,tone:"dark"},e))]}),search:m("div",{style:{...V,padding:"0 18%",display:"flex",alignItems:"center"},children:E("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${no.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${no.dark}`}}),m(z,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:E("div",{style:{...V,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${no.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${no.dark}`},children:m(z,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:E("div",{style:{...V,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[E("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${no.line}`},children:[m(z,{w:22,h:6,r:2,tone:"dark"}),m(z,{w:6,h:4,r:1,tone:"soft"})]}),E("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${no.line}`},children:[m(z,{w:"80%",h:4,r:2,tone:"accent"}),m(z,{w:"64%",h:4,r:2,tone:"soft"}),m(z,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:E("div",{style:{...V,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m("div",{style:{height:1,background:no.line}}),E("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(z,{w:"38%",h:5,r:2,tone:"soft"}),E("div",{style:{display:"flex",gap:5},children:[m(z,{w:14,h:5,r:2,tone:"soft"}),m(z,{w:14,h:5,r:2,tone:"soft"}),m(z,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:m("div",{style:{position:"absolute",inset:14,borderRadius:8,background:no.block}})};function VD({type:e}){let o=Fne[e]??"",t=Bne[o]??jD[o]??jD.fallback;return m("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as ym}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Hs,jsxs as qD}from"react/jsx-runtime";import Dne from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as Nne}from"efficient-easel/rail";import{Tooltip as Mne}from"efficient-shell/ui";import{HintsToggle as Hne,hintsFoldClass as Wne}from"efficient-easel/panel";import{useHints as Gne}from"efficient-easel/screen/lib/hints";function YD({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let c=Is(),{shown:d,setShown:f}=Gne();return qD("div",{className:`sf-styles ${Wne(d)}`.trim(),children:[Hs(Dne,{icon:Hs(Nne,{}),title:i("Styles"),context:Hs(Mne,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:c,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Hs("span",{className:"sf-name-text",children:c})})}),qD("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Hs(rp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Hs(Hne,{shown:d,onChange:f,label:i("Show hints")})]})]})}import{jsx as po,jsxs as hn,Fragment as Vne}from"react/jsx-runtime";import{Fragment as cN,useEffect as dN,useRef as vS}from"react";import{useTreeDrag as fN}from"efficient-easel/drag";import{GlobeIcon as qne,ImageIcon as Yne,LocationIcon as Xne,MapIcon as Zne,TextLinesIcon as Jne,TrashIcon as pN}from"efficient-easel/icons";import{Subtree as uN,TreeRow as oc,TreeRowAction as mN,TreeSeam as hN}from"efficient-easel/tree";import{useEaselStrings as Qne}from"efficient-easel/strings";import{createPreviewSelectionContext as zne}from"efficient-easel/draw/client";var{Provider:VWe,useSelection:XD}=zne("selectedLocationPartId");function ZD(e,o,t){return`${e}::${o}::${t}`}function JD(e){if(!e)return null;let o=e.split("::");if(o.length<3)return null;let t=o[o.length-1];if(t!=="image"&&t!=="map"&&t!=="city")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}import{isSelectionMode as ese}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as $ne}from"react";var Une={level:"groups"},eN=Une,yS=new Set;function Ft(e){eN=e;for(let o of yS)o()}function jne(e){return yS.add(e),()=>{yS.delete(e)}}var QD=()=>eN;function oN(){return $ne(jne,QD,QD)}var ec=e=>String(e?.group??""),SS=new WeakMap,Kne=0;function Xu(e){let o=SS.get(e);return o||(o=`loc${++Kne}`,SS.set(e,o)),o}var tN=(e,o)=>o||e||"Ungrouped",rN={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
91
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function mn(e){return iu(e,ec,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var wS=e=>e.flatMap(o=>o.cards),aN=(e,o,t)=>Math.min(Math.max(e,o),t);function Zu(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(ec(e[a])===o){if(r===t)return a;r++}return-1}function CS(e,o,t){let r=mn(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=aN(o<t?t-1:t,0,r.length);return r.splice(n,0,a),wS(r)}function kS(e,o,t,r,a){let n=mn(e),s=n.find(u=>u.key===o),l=n.find(u=>u.key===r);if(!s||!l||t<0||t>=s.cards.length)return e;let[c]=s.cards.splice(t,1),d=o===r?c:{...c,group:l.key,groupName:l.name};d!==c&&SS.set(d,Xu(c));let f=aN(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),wS(n)}function nN(e,o){let t=mn(e),r=t.find(n=>n.key===o),a={...rN,group:o,groupName:r?.name??""};return r?(r.cards.push(a),wS(t)):[...e,a]}function sN(e){let o=new Set(mn(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...rN,group:r,groupName:""}],key:r}}function lN(e,o){return e.filter(t=>ec(t)!==o)}function iN(e,o,t){let r=Zu(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function JWe(e,o,t){let r=e.flatMap((s,l)=>ec(s)===o?[l]:[]),a=e.slice();r.forEach((s,l)=>{a[s]=t[l]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function QWe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>ec(n)===r);return a.length?a:t(r)})}var Qu="ContactLocations",Ju=e=>({parentId:`locations-${e}`,slot:"groups"}),TS=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function xN(e,o){let{readOnly:t,selected:r}=o,a=Qne().tree,n=o.data?.content??[],s=ese(e),l=vS(null);dN(()=>{let b=r?.type===Qu?String(r.props.id):null;b&&b!==l.current&&Ft({level:"groups"}),l.current=b},[r?.props.id]);let{selectedLocationPartId:c,setSelectedLocationPartId:d,setSelectHandler:f}=XD(),u=oN(),p=(b,v)=>{let T=n[b];T&&o.replace(b,{type:T.type,props:{...T.props,locations:v}})},x=b=>{let v=n[b]?.props?.locations;return Array.isArray(v)?v:[]},I=fN({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,v)=>v.parentId===Ju(b.si).parentId&&v.slot==="groups",onDrop:(b,v)=>{p(b.si,CS(x(b.si),b.index,v.index)),u.level==="city"&&Ft({level:"groups"})},onStep:(b,v)=>{p(b.si,CS(x(b.si),b.index,v<0?b.index-1:b.index+2)),u.level==="city"&&Ft({level:"groups"})}}),g=fN({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,v)=>v.parentId===Ju(b.si).parentId&&v.slot.startsWith("cities:"),onDrop:(b,v)=>{let T=v.slot.slice(7);p(b.si,kS(x(b.si),b.group,b.index,T,v.index)),Ft({level:"group",key:T})},onStep:(b,v)=>{p(b.si,kS(x(b.si),b.group,b.index,b.group,v<0?b.index-1:b.index+2)),u.level==="city"&&Ft({level:"group",key:b.group})}}),k=vS(n);k.current=n;let S=vS(()=>{});dN(()=>{f(b=>{let v=JD(b);if(!v)return;let T=k.current.findIndex(F=>F.props?.id===v.nodeId);T<0||S.current(T,{level:v.part,index:v.index})})},[f]);let C=(b,v)=>{l.current=n[b]?.props?.id??null,o.select(b),Ft(v),e.reveal();let T=n[b]?.props?.id;typeof T=="string"&&(v.level==="city"||v.level==="image"||v.level==="map")?d(ZD(T,v.index,v.level)):d(null),typeof T=="string"&&o.scrollTo(T)};return S.current=C,{renderLocationTree:(b,v,{rowClick:T,isCollapsed:F,toggleCollapse:P})=>{let D=x(v),O=mn(D),R=String(b.props.id),N=s&&r?.props.id===R,y=L=>po(hN,{...t?{}:I.seam({place:{...Ju(v),index:L}})},`seam:${R}:groups:${L}`),A=(L,H)=>po(hN,{...t?{}:g.seam({place:{...TS(v,L),index:H}})},`seam:${R}:cities:${L}:${H}`);return hn(Vne,{children:[po(oc,{icon:po(Jne,{size:13}),name:i("Texts"),words:a,onSelect:()=>C(v,{level:"texts"}),selected:N&&u.level==="texts",rowProps:{onClick:T(()=>C(v,{level:"texts"}))}}),O.map((L,H)=>{let X=`${R}::grp::${L.key}`,q=F(X),j=N&&u.level==="group"&&u.key===L.key,Ie=L.name||L.key?tN(L.key,L.name):i("Ungrouped"),te={...TS(v,L.key),index:L.cards.length},Le=g.row({item:{si:v,group:L.key,index:-1},place:te,into:te,canDrag:!1},{onClick:T(()=>C(v,{level:"group",key:L.key}))}),We=I.row({item:{si:v,index:H},place:{...Ju(v),index:H}},Le.rowProps);return hn(cN,{children:[H===0&&y(0),po(oc,{icon:po(qne,{size:13}),name:Ie,words:a,onSelect:()=>C(v,{level:"group",key:L.key}),selected:j,draggable:We.draggable,dragging:We.dragging,drop:We.drop??Le.drop,fold:{open:!q,label:i("group"),onToggle:()=>P(X)},actions:po(mN,{kind:"delete",label:Oo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",L.cards.length,{label:Ie}),onClick:()=>{p(v,lN(D,L.key)),Ft({level:"groups"})},children:po(pN,{size:15})}),rowProps:We.rowProps,count:L.cards.length,countLabel:Oo("{n} city","{n} cities",L.cards.length)}),!q&&hn(uN,{children:[L.cards.map((Ee,ge)=>{let Oe=Zu(D,L.key,ge),Ge=N&&u.level==="city"&&u.index===Oe,to=String(Ee?.name??"")||i("City"),Co=`${R}::city::${Xu(Ee)}`,he=F(Co),{rowProps:Ve,...ve}=g.row({item:{si:v,group:L.key,index:ge},place:{...TS(v,L.key),index:ge}},{onClick:T(()=>C(v,{level:"city",index:Oe}))});return hn(cN,{children:[ge===0&&A(L.key,0),po(oc,{icon:po(Xne,{size:13}),name:to,words:a,onSelect:()=>C(v,{level:"city",index:Oe}),selected:Ge,...ve,fold:{open:!he,label:to,onToggle:()=>P(Co)},actions:po(mN,{kind:"delete",label:i("Delete {name}",{name:to}),onClick:()=>{p(v,iN(D,L.key,ge)),Ft({level:"group",key:L.key})},children:po(pN,{size:15})}),rowProps:Ve}),!he&&hn(uN,{children:[po(oc,{icon:po(Yne,{size:13}),name:i("Image"),words:a,onSelect:()=>C(v,{level:"image",index:Oe}),selected:N&&u.level==="image"&&u.index===Oe,rowProps:{onClick:T(()=>C(v,{level:"image",index:Oe}))}}),po(oc,{icon:po(Zne,{size:13}),name:i("Map"),words:a,onSelect:()=>C(v,{level:"map",index:Oe}),selected:N&&u.level==="map"&&u.index===Oe,rowProps:{onClick:T(()=>C(v,{level:"map",index:Oe}))}})]}),A(L.key,ge+1)]},Xu(Ee))}),hn("button",{type:"button",className:"sf-add-card",onClick:()=>{let Ee=nN(D,L.key);p(v,Ee);let ge=mn(Ee).find(Oe=>Oe.key===L.key);Ft(ge&&ge.cards.length?{level:"city",index:Zu(Ee,L.key,ge.cards.length-1)}:{level:"group",key:L.key})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add city")]})]}),y(H+1)]},X)}),hn("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:L,key:H}=sN(D);p(v,L),C(v,{level:"group",key:H})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add group")]})]})},sectionPressed:b=>{b?.type===Qu&&Ft({level:"groups"})}}}import{useEffect as ase,useRef as nse}from"react";import{createNode as ES,newId as OS}from"efficient-easel/data";import{useEaselApi as sse}from"efficient-easel/easel";import{useScreenDocument as lse}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as ise}from"efficient-easel/screen/lib/session-context";import{useEffect as bN,useRef as ose}from"react";import{useEasel as tse}from"efficient-easel/easel";import{ROOT_ZONE as PS}from"efficient-easel/draw";var tc={};function IN(e){return tc=e?.theme?{theme:e.theme}:{},tc}function gN(e){tc===e&&(tc={})}function em(){return tc}function SN(e){let o=tse(s=>s.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a}=xe(),n=ose(new Set);bN(()=>{let s=yN({theme:t,themeRow:r,themeFromDocument:a});s&&rse(NR(o,void 0,s),e,n.current)},[o,e,t,r,a]),bN(()=>{let s=IN(yN({theme:t,themeRow:r,themeFromDocument:a}));return()=>gN(s)},[t,r,a])}function yN(e){return e.themeFromDocument||e.themeRow==="none"?{}:e.themeRow==="read"?{theme:e.theme}:null}function rse(e,o,t){for(let{index:r,nodes:a}of[...e].sort((n,s)=>s.index-n.index)){let n=String(a[0].props.id);t.has(n)||(t.add(n),o.replaceComponent(PS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(PS,r+1+l,s),o.replaceComponent(PS,r+1+l,s)}))}}import{ROOT_ZONE as Ws,missingPinnedTypes as cse,pinnedDuplicateIds as _S}from"efficient-easel/draw";function wN(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function CN(e,o){let t=e.some(l=>l?.type===Re),r=e[e.length-1],a=!t&&r?.type===He?r:null,n=e.filter(l=>l?.type===He&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===qo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Me)}}async function kN(e){let o=e.blocks?.seeds?.siteHeader;if(!o)return!1;let t;try{t=await o({make:e.make,id:e.id,siteId:e.siteId,token:e.token})}catch{return!1}if(!t||t.type!==Me||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Me)?!1:(e.write(ld(r,t)),!0)}function vN(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:c,tokenRef:d}=lse(),f=ise(),{hasSiteSettings:u,hasPinnedChrome:p}=r;SN(e);let x=!!r.editsPinnedInPlace&&a!==kt,I=a===kt,g=sse().getState,k=nse(null);ase(()=>{if(!wN({docId:n,saveStatus:l,seededDocId:k.current})||(k.current=n,!p))return;let S=g().appState.data,C=S.content,b=s?.content??[],v=(D,O)=>D.some(R=>R?.type===O);if(!u){let D=new Set(_S(C)),O=D.size?C.filter(N=>!D.has(N.props.id)):C;if(D.size&&e.setDocument({...S,content:O}),I)return;let R=cse(O,b);if(R.includes(He)){let N=O.length,y=e.insertSection(He,N);e.replaceComponent(Ws,N,{type:He,props:{id:y,blocks:nu()}})}R.includes(qo)&&e.insertNode(Ws,0,au());return}if(I){let D=Mn(C);if(D!==C&&e.setDocument({...S,content:[...D]}),!D.find(O=>O.type===He)&&!v(b,He)&&!v(D,Re)&&!v(b,Re)){let O=(N,y)=>ES(o,N,y),R={type:He,props:{blocks:nu()}};e.insertNode(Ws,D.length,Ei(R,O,OS(Re),Zi))}return}if(x){let D=!!t?.pinnedChrome?.state().docId,O=CN(C,{hasChromeDoc:D}),R=new Set([...O.remove,..._S(C.filter(y=>!O.remove.includes(String(y.props.id))))]),N=R.size?C.filter(y=>!R.has(String(y.props.id))):C;if(N.length!==C.length&&e.setDocument({...S,content:N}),O.seedFooter&&!v(b,He)&&!v(b,Re)){let y=(L,H)=>ES(o,L,H),A={type:He,props:{blocks:nu()}};e.insertNode(Ws,N.length,Ei(A,y,OS(Re),Zi))}if(O.seedHeader&&!v(b,qo)){let y=N[0]?.type===Me?1:0;e.insertNode(Ws,y,au())}if(O.seedSiteHeader&&!v(b,Me)&&!v(b,He)&&!v(b,Re)){let y=n;kN({blocks:Ed(f),make:(A,L)=>ES(o,A,L),id:OS(Me),siteId:c??null,token:d.current,latest:()=>g().appState.data.content,stillOpen:()=>k.current===y,write:A=>{let L=g().appState.data;e.setDocument({...L,content:[...A]})}})}return}let T=C.filter(D=>D.type!==He),F=new Set(_S(T)),P=F.size?T.filter(D=>!F.has(D.props.id)):T;P.length!==C.length&&e.setDocument({...S,content:P}),!v(P,qo)&&!v(b,qo)&&e.insertNode(Ws,0,au())},[n,l,s,g,e,u,p,I,x,t,f,c,d])}import{useEffect as zN,useMemo as kse,useRef as $N}from"react";import{useEasel as vse}from"efficient-easel/easel";import{useEaselHost as Tse}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as gse}from"efficient-easel/screen/lib/host";import{isNode as AS}from"efficient-easel/data";var TN=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],VGe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:sw,separator:lw,scrollDirection:ui}};var PN=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],XGe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function So(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function EN(e,o,t){return So(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var om={Manifesto:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[So(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[So("Text",e,o,yt()),So("Text",e,o,Nr()),So("Text",e,o),So("Stats",e,o)]}),EN(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[So(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[So("Text",e,o,yt()),So("Text",e,o,Nr()),So("Text",e,o),So("ButtonBlock",e,o)]}),EN(e,o,{direction:"column",name:"Image",content:[So("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"column",name:"Subscribe",content:[So("Text",e,o,Nr()),So("Text",e,o),So("Form",e,o)]}}),Ticker:(e,o)=>ON("Scrolling Bar",_u,Gi,TN.map(t=>({text:t.text,style:Au,muted:!0})),e,o),SpecStrip:(e,o,t)=>ON("Spec Strip",t?.theme?{...$i,sectionAccent:Cc(ro(t.theme))}:{...$i,sectionBorder:{top:1}},zi,PN().map(r=>({text:r.text??"",style:Ui,muted:r.tone==="muted"})),e,o)};function ON(e,o,t,r,a,n){return So(K,a,n,{...dn,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>So("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function _N(e){return om[e]??null}import{isNodeList as rc}from"efficient-easel/data";var xze=Object.keys(fS),dse={Logos:QL,DocMasthead:mB,Timeline:NF,TimelineTrack:MF},fse={PaymentBadges:eF,PaymentLogosBlock:oF};function tm(e,o,t){let r={};for(let a of Object.keys(o(e.type)))r[a]=void 0;for(let[a,n]of Object.entries(e.props))r[a]=rc(n)?n.map(s=>tm(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var AN=e=>({...e?.theme?{theme:e.theme}:{},press:!0});function rm(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Es({type:e,props:{...a(e),...r(),id:n(e)}},o,AN(s));return tm(l[t],a,n)}}var pse={Stats:mse,Cards:use};function use(){let e=Qr("Cards");if(!e)return null;let o=rm("Cards",e,0,PL);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function mse(){let e=Qr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Es({type:"StatsParagraph",props:{...o("StatsParagraph"),...HL(),id:t("StatsParagraph")}},e,AN(r)),n=a[0],s=rc(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=LN(Py(WL(),"table")),c=s.map(RN),d=tm({...n,props:{...n.props,content:[...c,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function RN(e){if(e.props?.name==="Words"){let o=rc(e.props.content)?e.props.content.map(hse):e.props.content;return{...e,props:{...e.props,widthFitPhone:"fill",content:o}}}return rc(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(RN)}}:e}function hse(e){return e.type!=="Text"?e:{...e,props:Sr({...e.props,alignTablet:"left"},"text","alignTablet","left")}}var LN=e=>lo([e],(o,t)=>`${o}-seed-${t}`)[0];function xse(e,o){if(!DR(e,o))return null;let t=pse[e];if(t)return t();let r=Qr(e);return r?rm(e,r,0,dse[e]??fse[e]):null}function Ise(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let c=tm(LN(Py([],"list")),o,t);return{...c,props:{...c.props,name:"Numbers"}}}let s=!1,l={};for(let[c,d]of Object.entries(n.props))if(rc(d)){let f=d.map(a);s||=f.some((u,p)=>u!==d[p]),l[c]=f}else l[c]=d;return s?{type:n.type,props:l}:n};return a(e(o,t,r))}}function Gs(e,o=_i){let t=_N(e);return t?Ise(t):xse(e,o)}function ac(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function bse(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function RS(e,o,t,r){e.forEach((a,n)=>{if(AS(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let[s,l]of Object.entries(a.props))Array.isArray(l)&&l.some(AS)&&RS(l,a,s,r)}})}function yse(e){let o=[];RS(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&RS(t,null,"",o);return o}function DN(e,o){return yse(e).find(t=>String(t.node.props.id)===o)}function NN(e,o,t){if(!t)return null;let r=DN(o,t);if(!r)return null;let a=ac(e,r.node.type),n=r.parent?`${ac(e,r.parent.type)} \xB7 ${bse(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Sse=e=>e.filter(o=>!!o&&typeof o=="object"&&"value"in o).map(o=>typeof o.label=="string"?{value:o.value,label:o.label}:{value:o.value});function wse(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[gse]:void 0,r={type:t?.type??o.type},a=t?.label??o.label;typeof a=="string"&&(r.label=a);let n=t?.options??o.options;Array.isArray(n)&&(r.options=Sse(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=MN(l))}return r}function MN(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=wse(r);a&&(o[t]=a)}return o}function HN(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:ac(e,t),fields:MN(r.fields),...WN(t)?{retired:!0}:{}});return o}function WN(e){return Object.prototype.hasOwnProperty.call(qm,e)}function FN(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Cse(e,o){let t=e;for(let r of o?o.split("."):[]){let a=/^([A-Za-z_][A-Za-z0-9_]*)(?:\[(\d+)\])?$/.exec(r);if(!a||!t||typeof t!="object")return null;t=t[a[1]],a[2]!==void 0&&(t=Array.isArray(t)?t[Number(a[2])]:void 0)}return t&&typeof t=="object"&&!Array.isArray(t)?t:null}function LS(e,o){return e.findIndex(t=>AS(t)&&String(t.props.id)===o)}function BN(e,o,t){let r=o||t;if(!r)return e.length;let a=LS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function GN(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,c)=>{let d=f=>{throw new Error(`change ${c+1}: ${f}`)};switch(l.op){case"set_props":{let f=DN(n,l.block_id)??d(`there is no block ${l.block_id}`);"id"in l.props&&d("a block's id is never changed");let u=Cse(f.node.props,l.path)??d(`there is no ${l.path} in that block`);Object.assign(u,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??d(`there is no block type ${l.type}`),WN(l.type)&&d(`${ac(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Gs(l.type),u=Object.keys(l.props??{}).filter(x=>x!=="id");f&&u.length&&d(`${ac(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(x=>FN(e,x),r,a):{type:l.type,props:{...FN(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(BN(s,l.after,l.before),0,p);break}case"remove_block":{let f=LS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=LS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(BN(s,l.after,l.before),0,u);break}default:d(`"${l.op}" is not a change this editor makes`)}})}catch(l){return{ok:!1,reason:l instanceof Error?l.message:String(l)}}return{ok:!0,document:n}}var FS=e=>Z(e.requestId)??null;function UN(){let e=Tse(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=vse(p=>p),s=n,l=$N({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let c=$N(new Map),d=t?.props?.id,f=kse(()=>NN(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";zN(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),zN(()=>e.subscribe(p=>{let{appState:x,dispatch:I,history:g,blockConfig:k}=l.current;switch(p.type){case"storefront-editor:request-document":{let S=FS(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:x.data,blocks:HN(k)});return}case"storefront-editor:apply-page-edits":{let S=FS(p);if(!S)return;let C=Array.isArray(p.ops)?p.ops:[],b=C.length?GN(k,x.data,C,v=>`${v}-${crypto.randomUUID()}`,em()):{ok:!1,reason:"no changes"};b.ok&&(I({type:"setData",data:b.document,recordHistory:!0}),c.current.set(S,JSON.stringify(b.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b.ok,reason:b.ok?null:b.reason});return}case"storefront-editor:undo-page-edits":{let S=FS(p);if(!S)return;let C=c.current.get(S),b=C!==void 0&&C===JSON.stringify(x.data.content??[]);b&&g.hasPast&&(g.back(),c.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b&&g.hasPast,reason:b?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&I({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as VN,useState as qN}from"react";var am=new Map;async function Pse(e,o){try{return(await Ue().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function jN(e,o){let t=am.get(o);return t||(t=Pse(e,o),am.set(o,t),t.catch(()=>{am.get(o)===t&&am.delete(o)})),t}var Ese=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function BS(e){return!!e&&Ese.test(e)}function KN(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===bd?"/":`/${encodeURIComponent(o)}`;if(!BS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function YN(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=qN(null),[s,l]=qN(null),c=Rn();VN(()=>l(c?new URL(c).hostname:window.location.hostname),[c]),VN(()=>{if(!BS(s)||!t||!r){n(null);return}let f=!1;return jN(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=KN({pageSlug:o,siteSlug:a,hostname:s});return c?`${c}${d}`:d}import{jsx as nc}from"react/jsx-runtime";import{useEffect as Ose,useRef as XN,useState as _se}from"react";import{ExternalIcon as ZN}from"efficient-easel/icons";import{EaselIconButton as Ase}from"efficient-easel/chrome";import{Tooltip as Rse,iconButtonClasses as Lse}from"efficient-shell/ui";import{useSettledPress as Fse}from"efficient-easel/easel";import{useScreenDocument as Bse}from"efficient-easel/screen/components/ScreenDocumentContext";async function Dse({pageId:e,liveHref:o,draftLink:t,ready:r=async()=>!0,win:a=window}){let n=a.open("","_blank");if(n)try{n.opener=null}catch{}let s=l=>{n&&!n.closed?n.location.href=l:a.open(l,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(l=>s(l.url??o),()=>s(o))}function JN({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Bse(),a=XN(r);a.current=r;let n=Fse(),[s,l]=_se(!1),c=XN(null);if(Ose(()=>()=>c.current?.(),[]),t&&o){let d=()=>new Promise((u,p)=>{c.current=()=>u(!1),n.run(()=>{c.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(l(!0),Dse({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return nc(Ase,{label:i("Preview your saved draft in a new tab"),tip:i("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:nc(ZN,{})})}return nc(Rse,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:nc("a",{className:Lse({className:"es-iconbtn"}),href:e,target:"_blank",rel:"noopener noreferrer","aria-label":i("Preview the live site in a new tab"),children:nc(ZN,{})})})}import{createElement as Gse,useCallback as zse,useEffect as hM,useRef as xM,useState as $se}from"react";import{ClockIcon as Use}from"efficient-shell/icons/efficient";import{useScreenDocument as jse}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as Nse}from"react";import{useScreenDocument as Mse}from"efficient-easel/screen/components/ScreenDocumentContext";var Hse=()=>()=>{},QN=()=>null;function nm(e){return Nse(e?e.subscribe:Hse,e?e.state:QN,e?e.state:QN)}function sm(){let{adapter:e}=Mse();return e?.pinnedChrome}import{useSyncExternalStore as tM}from"react";var sc=!1,zs=null,DS=new Set;function ic(){for(let e of DS)e()}function rM(e){return DS.add(e),()=>{DS.delete(e)}}function aM(){sc||(sc=!0,ic())}function nM(){sc&&(sc=!1,ic())}function eM(){return sc}function sM(){return tM(rM,eM,eM)}function oM(){return zs}function lm(){zs&&(zs=null,ic())}function lM(){return tM(rM,oM,oM)}var lc=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function iM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new lc;let n=await e.restore(o,t);return Dd(n.liveState),a(),n}async function cM({access:e,version:o,page:t,...r}){let a=await iM(e,o.id,t?{page:t.id}:{},r);zs={title:Wse(o,t??null),undo:a.undo},ic()}async function dM({access:e,...o}){let t=zs?.undo;t&&(await iM(e,t,{},o),zs=null,ic())}function fM(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function Wse(e,o){return e.kind==="draft_before_restore"?i("Your drafts from before the restore are back"):o?i("{page} from version {n} is now your draft",{page:o.name,n:e.number}):i("Version {n} is now your draft",{n:e.number})}function pM(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Oo("{n} page","{n} pages",o)]:[],...e.changes.filter(r=>r.kind!=="page").map(r=>r.name)];if(!t.length)return"";try{return new Intl.ListFormat(Um(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function uM(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function mM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Um(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return i("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return i("{day}, {time}",{day:n,time:a})}function IM(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=jse(),s=pR(fR(o??null),r),l=nm(sm()),c=n.siteLiveState;hM(()=>{if(c)return Mx(c),fr(0),()=>Mx(null)},[c]);let d=Nd(),[f,u]=$se(!1),p=xM(e);p.current=e;let x=xM(!0);hM(()=>(x.current=!0,()=>{x.current=!1}),[]);let I=zse(()=>{u(!0),a(p.current).then(()=>{lm()}).finally(()=>{x.current&&u(!1)})},[a]);if(t.canPublish){if(c){let g=d===void 0?void 0:r||d.state==="changed"?"changed":"live",k=Zb({live:g,onPress:I,busy:f,goingLive:uR(d?.changes??[])});return n.siteVersions?{...k,menuItems:Kse()}:k}return Zb({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Kse(){return[{key:"version-history",label:i("Version history"),icon:Gse(Use),onSelect:aM}]}import{jsx as ee,jsxs as et,Fragment as fc}from"react/jsx-runtime";import{useCallback as Vse,useEffect as qse,useId as yM,useRef as Yse,useState as ft}from"react";import{useSettledAction as Xse}from"efficient-easel/easel";import{Avatar as Zse,Banner as cc,Button as xn,ColoredBadge as NS,Dialog as SM,Drawer as Jse,DropdownMenu as Qse,FormField as wM,iconButtonClasses as ele,Inline as MS,Input as ole,ListRow as tle,Select as rle,SortableList as ale,Stack as dc}from"efficient-shell/ui";import{EditIcon as nle,EyeIcon as gM,MenuIcon as sle,MoreIcon as lle,PageIcon as CM,RevertIcon as bM,StylesIcon as ile}from"efficient-shell/icons/efficient";import{useScreenDocument as kM}from"efficient-easel/screen/components/ScreenDocumentContext";var cle={page:CM,menu:sle};function dle(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function fle(e,o){let t=window.open("","_blank");if(t)try{t.opener=null}catch{}return e.preview(o).then(({url:r})=>{t&&!t.closed?t.location.href=r:window.open(r,"_blank","noopener,noreferrer")},r=>{throw t?.close(),r})}function ple({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let c=yM();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=pM(e),p=d?i("Put your drafts back?"):o?i("Restore {page} from version {n}?",{page:o.name,n:f}):i("Restore version {n}?",{n:f}),x=d?i("Your drafts go back to how they were before the restore."):o?i("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):u?i("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:u}):i("The whole website goes back to version {n} as a draft.",{n:f}),I=e.deletedPictures??0;return ee(SM,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:et(fc,{children:[ee(xn,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),ee(xn,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:et(dc,{gap:4,children:[o&&e.pages.length>1?ee(wM,{label:i("Page"),htmlFor:c,children:ee(rle,{id:c,value:o.id,options:e.pages.map(g=>({value:g.id,label:g.name})),onChange:l,disabled:r})}):null,ee("p",{children:x}),ee("p",{children:i("Your live website does not change until you press Publish.")}),I>0?ee(cc,{tone:"warning",children:Oo("{n} picture in this version was deleted from the media library. It stays empty.","{n} pictures in this version were deleted from the media library. They stay empty.",I)}):null,t?ee(cc,{tone:"info",title:i("Your unpublished changes are kept"),children:i("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ee(cc,{tone:"danger",children:a}):null]})})}function ule({version:e,onCancel:o,onSave:t}){let r=yM(),[a,n]=ft(null),[s,l]=ft(""),[c,d]=ft(!1),[f,u]=ft(null);if(e!==a&&(n(e),l(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,x=async()=>{if(!(c||p)){d(!0),u(null);try{await t(s.trim())}catch{u(i("The name was not saved. Try again."))}finally{d(!1)}}};return ee(SM,{open:!0,onClose:()=>{c||o()},size:"sm",title:i("Name this version"),footer:et(fc,{children:[ee(xn,{variant:"secondary",onClick:o,disabled:c,children:i("Cancel")}),ee(xn,{onClick:()=>{x()},loading:c,disabled:c||p,children:i("Save")})]}),children:ee(wM,{label:i("Name"),htmlFor:r,hint:i("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ee(ole,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&x()}})})})}function mle({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",c=!e.live,d=e.changes.length,f=[...l?[]:[{key:"preview",label:i("Preview"),icon:ee(gM,{}),onSelect:r}],...c?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:ee(bM,{}),onSelect:a}]:[],...c&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:ee(CM,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:ee(nle,{}),onSelect:s}]];return ee(tle,{title:et("span",{className:"sf-version-title",children:[ee("span",{children:fM(e)}),e.live?ee(NS,{tone:"success",size:"xs",children:i("Live")}):null,e.name?ee(NS,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?ee(NS,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:ee(Qse,{align:"end","aria-label":i("More"),items:f,triggerClassName:ele({variant:"ghost",size:"sm"}),trigger:ee(lle,{})}),below:et(dc,{gap:3,children:[et(MS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ee(Zse,{name:e.createdBy,size:"xs"}),ee("span",{children:e.createdBy}),ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:mM(e.createdAt)}),d?et(fc,{children:[ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:Oo("{n} change","{n} changes",d)})]}):null]}),o?et(dc,{gap:3,children:[d?ee(dc,{gap:2,children:e.changes.map(u=>{let p=cle[u.kind]??ile;return et(MS,{gap:2,align:"center",children:[ee(p,{size:16}),ee("span",{children:uM(u)})]},`${u.kind}:${u.id}`)})}):null,et(MS,{gap:2,children:[l?null:ee(xn,{variant:"secondary",size:"sm",leftIcon:ee(gM,{}),onClick:r,children:i("Preview")}),c?ee(xn,{variant:"secondary",size:"sm",leftIcon:ee(bM,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function hle({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=kM(),[l,c]=ft(null),[d,f]=ft(!1),[u,p]=ft(null),[x,I]=ft(null),[g,k]=ft(!1),[S,C]=ft(null),[b,v]=ft(null),[T,F]=ft(!1),P=Yse(0),D=Vse(()=>{let y=++P.current;f(!1),t.list().then(A=>{y===P.current&&c(A)},()=>{y===P.current&&f(!0)})},[t]);qse(()=>{e&&D()},[e,D]);let O=y=>{F(!1),fle(t,y.id).catch(()=>F(!0))},R=async()=>{if(!(!x||g)){k(!0),C(null);try{await cM({access:t,version:x.version,page:x.page,flushSave:a,reload:n}),I(null),o()}catch(y){C(y instanceof lc?i("Your last changes did not save, so nothing was restored. Try again."):i("The version was not restored. Nothing changed. Try again."))}finally{k(!1)}}},N=Xse({onPress:()=>{R()},busy:g});return et(fc,{children:[ee(Jse,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:et(fc,{children:[i("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",i("Products, prices and forms always show as they are now.")]}),footer:ee("span",{className:"sf-version-foot",children:i("The newest 30 are kept. Named versions are always kept.")}),children:et(dc,{gap:3,children:[T?ee(cc,{tone:"danger",onDismiss:()=>F(!1),children:i("The preview did not open. Try again.")}):null,d?ee(cc,{tone:"danger",action:ee(xn,{variant:"secondary",size:"sm",onClick:D,children:i("Try again")}),children:i("Version history did not load.")}):l===null?ee("p",{className:"sf-version-foot",children:i("Loading versions")}):l.length===0?ee("p",{className:"sf-version-foot",children:i("No versions yet. Every Publish from now on keeps one.")}):ee(ale,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(y=>ee(mle,{version:y,expanded:u===y.id,onToggle:()=>p(A=>A===y.id?null:y.id),onPreview:()=>O(y),onRestore:()=>{C(null),I({version:y,page:null})},onRestorePage:()=>{C(null),I({version:y,page:dle(y,s)})},onName:()=>v(y)},y.id))})]})}),ee(ple,{version:x?.version??null,page:x?.page??null,waiting:r,busy:N.busy===!0,error:S,onCancel:()=>I(null),onConfirm:N.onPress,onPage:y=>I(A=>A&&{...A,page:A.version.pages.find(L=>L.id===y)??A.page})}),ee(ule,{version:b,onCancel:()=>v(null),onSave:async y=>{await t.name(b.id,y),v(null),D()}})]})}function vM(){let{adapter:e,hasUnsavedEdits:o}=kM(),t=e.siteVersions,r=sM(),a=Nd();return t?ee(hle,{open:r,onClose:nM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as kH}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as S$e,categoryLabel as w$e,paletteWithoutPinned as C$e,pinnedSection as k$e}from"efficient-easel/screen/lib/document/palette-sections";var xle={openers:{label:"Hero & intros",icon:"image"},shop:{label:"Shop & galleries",icon:"bag"},product:{label:"Product page",icon:"box"},checkout:{label:"Checkout & ordering",icon:"bag"},about:{label:"About & brand story",icon:"book"},content:{label:"Text & content",icon:"type"},proof:{label:"Stats & social proof",icon:"star"},promo:{label:"Promotions & sign-ups",icon:"sparkles"},blog:{label:"Blog & journal",icon:"newspaper"},navigation:{label:"Navigation & wayfinding",icon:"bookmark"},legal:{label:"Legal & documents",icon:"file"},contact:{label:"Contact, FAQ & forms",icon:"mail"},structure:{label:"Layout, structure & embeds",icon:"grid"},layouts:{label:"Layouts",icon:"layers"}};function TM(e){return xle[e]?.label}var PM=Xm;import{currentEaselSession as _2}from"efficient-easel/screen/lib/session";import{blockTypesIn as P2}from"efficient-easel/screen/lib/document/block-types-in";import{jsx as pt,jsxs as S2}from"react/jsx-runtime";import{createContext as bie,useContext as yie,useEffect as Sie,useRef as wie,useState as w2}from"react";import{jsx as $s,jsxs as zM}from"react/jsx-runtime";import{useEffect as Us,useRef as Mle,useState as gn}from"react";import{jsx as In}from"react/jsx-runtime";import{Component as yle,createContext as Sle,lazy as F$e,Suspense as B$e,useContext as wle}from"react";var Ile="hrefRewrite";function gle(){return Gt("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function ble(){return typeof process<"u"&&!0}function E$e(e){let o=e?.[Ile];return typeof o=="string"?o.trim():""}function EM(e){if(!e)return null;let o=gle(),t=o.rewrites.get(e);return!t&&!ble()&&o.missed.add(e),t??null}var Cle={Link:tC,Image:oC},OM=Sle(Cle);function H$e({runtime:e,children:o}){return In(OM.Provider,{value:e,children:o})}function WS(){return wle(OM)}function W$e(){return WS().pagePath??null}function G$e({hrefRewrite:e,...o}){let{Link:t}=WS(),r=EM(e);return r?In(HS,{name:r.name,href:o.href,fallback:In(t,{...o}),children:In(kle,{Link:t,rewrite:r.rewrite,...o})},r.key):In(t,{...o})}function kle({Link:e,rewrite:o,...t}){let r=Z(o(t.href)),a=r&&DC(r)?r:t.href;return In(e,{...t,href:a})}var HS=class extends yle{state={failed:!1,href:this.props.href};static getDerivedStateFromProps(o,t){return o.href===t.href?null:{failed:!1,href:o.href}}static getDerivedStateFromError(){return{failed:!0}}componentDidCatch(o){console.error(`The link href rewrite ${this.props.name} failed; the link goes where it was typed.`,o)}render(){return this.state.failed?this.props.fallback:this.props.children}};function _M(e){let{Image:o}=WS();return In(o,{...e})}import{jsx as AM,Fragment as vle,jsxs as Tle}from"react/jsx-runtime";import{useEffect as Ple,useRef as RM,useState as Ele}from"react";var Ole="#t=0.001",_le=2;function Ale(e,o){if(e.readyState<_le||!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 LM({src:e,objectPosition:o="50% 50%",onError:t}){let r=RM(null),a=RM(null),[n,s]=Ele(!1);return Ple(()=>{let l=r.current,c=a.current;if(n||!l||!c)return;let d=()=>{Ale(l,c)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),Tle(vle,{children:[AM("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&&AM("video",{ref:r,src:`${e}${Ole}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as DM,imageSrcSet as Rle}from"efficient-shell/image-copies";var FM;function GS(){return FM===void 0?{}:{host:FM}}var V$e="(max-width: 800px) 100vw, min(100vw, 1600px)",q$e="(max-width: 960px) 100vw, 50vw";function NM(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=Rle(e,{...GS(),...t===void 0?{}:{maxWidth:t}});return r?{src:DM(e,o,GS()),srcSet:r}:{src:e}}var Lle=/[\s"'()\\;]/,Fle={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function BM(e){return e.replace(/[\\"\n\r\f]/g,o=>Fle[o]??o)}function Y$e(e){let o=DM(e,1920,GS());return o===e?Lle.test(e)?`url("${BM(e)}")`:`url(${e})`:`url("${BM(o)}")`}import{jsx as MM}from"react/jsx-runtime";import{createContext as Ble,useContext as Dle,useMemo as Q$e}from"react";var HM=Ble(null);function WM({children:e}){return MM(HM.Provider,{value:"below",children:e})}function pc(){return Dle(HM)}function Nle(){return pc()==="below"?{loading:"lazy"}:{}}function GM(e){let o=Nle();return MM("img",{...e,...o})}var eUe="laterSlideIds";var Hle=.5;function uc({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:r=Hle,objectPosition:a="50% 50%",objectPositionPhone:n,objectPositionTablet:s,quiet:l=!1,slideShown:c,laterSlide:d=!1,laterOfLead:f=!1}){let u=MT(n,s),p=pc(),[x,I]=gn(!1),g=p==="below"&&!x,k=p==="first",S=o||"",C=e||"",[b,v]=gn(!1),[T,F]=gn(!1),[P,D]=gn(!1),[O,R]=gn(!1),N=c??!0,[y,A]=gn(!1),L=p!=="first"&&!f,[H,X]=gn(!1),q=Mle(null);Us(()=>{if(!L)return;if(document.readyState==="complete"){X(!0);return}let te=()=>X(!0);return window.addEventListener("load",te,{once:!0}),()=>window.removeEventListener("load",te)},[L]),Us(()=>{v(!1),F(!1),D(!1),R(!1)},[e,o]),Us(()=>{N&&A(!0)},[N]),Us(()=>{let te=q.current;te&&(N?te.play()?.catch(()=>{}):te.pause())},[N,y,H]),Us(()=>{if(!d||L&&!H)return;let te=()=>I(!0);if(typeof window.requestIdleCallback=="function"){let We=window.requestIdleCallback(te,{timeout:2e3});return()=>window.cancelIdleCallback(We)}let Le=setTimeout(te,800);return()=>clearTimeout(Le)},[d,L,H]),Us(()=>{let te=q.current;if(!te)return;let Le=()=>{te.playbackRate=r};return Le(),te.addEventListener("loadedmetadata",Le),()=>te.removeEventListener("loadedmetadata",Le)},[e,r]);let j=rC(S),Ie=S&&j&&!T?NM(S):{src:S};return zM("div",{className:"absolute inset-0 z-[1]",children:[$s("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),S&&(j?$s("img",{src:Ie.src,...Ie.srcSet?{srcSet:Ie.srcSet,sizes:"100vw"}:{},alt:"",...g?{loading:"lazy"}:{},...k?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${u.className}`.trim(),style:{display:b?"none":"block",objectPosition:a,...u.style},onError:()=>Ie.srcSet?F(!0):v(!0)},S):$s(_M,{src:S,alt:"",fill:!0,...g?{}:x?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${u.className}`.trim(),style:{display:b?"none":"block",objectPosition:a,...u.style},onError:()=>v(!0)},S)),t&&!l&&C&&y&&(!L||H)&&!P&&zM("video",{ref:q,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:()=>D(!0),children:[aC(C)&&$s("source",{src:C.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),$s("source",{src:C,type:"video/mp4"})]},C),t&&l&&C&&y&&(!L||H)&&!O&&(!S||b)&&$s(LM,{src:C,objectPosition:a,onError:()=>R(!0)},C)]})}import{jsx as wo,Fragment as XM,jsxs as jS}from"react/jsx-runtime";import{jsx as js}from"react/jsx-runtime";import{useRef as Wle}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as Gle,scrollAttrs as zle}from"efficient-shell/format";function $M({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:c,children:d}){let f=Wle(null),u=Oc(),p=Ar(),x=n?p:An,I=ji(f,!0,s),{attrs:g,style:k}=zle(e[I],o[I]),S=Gle.includes(e[I].effect),C=Rr(`${On}${u.fill}${t?` ${t}`:""}`,x.className);if(S&&l==="picture")return x.scope(js("div",{ref:f,className:C,...r,...x.attrs,...a?{style:a}:{},children:js(jw,{attrs:g,style:k,children:u.inner(d)})}));let b=js(Kw,{children:u.inner(d)});if(S){let T=c??(u.fill?"h-full":void 0);return x.scope(js("div",{ref:f,className:C,...r,...x.attrs,style:{...a,overflow:"clip"},children:js("div",{...T?{className:T}:{},...g,style:k,children:b})}))}let v=Object.keys(k).length||a?{style:{...a,...k}}:{};return x.scope(js("div",{ref:f,className:C,...r,...x.attrs,...g,...v,children:b}))}import{MOTION_TIMING as $le}from"efficient-shell/format";var VM="grayscale(1) contrast(1.03)",SUe="Black and white";function Ule(e){return e===!0?{filter:VM}:{}}function jle(e){let{filter:o}=Ule(e);return o?{style:{filter:o}}:{}}var bn="sf-photo-grayscale",US="data-sf-photo-host",UM={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},dm=`@media (hover:hover){.${bn}{filter:${VM};transition:filter var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))}.${bn}:hover,[data-sf-photo-host]:hover .${bn}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${bn}{transition:none}}`;function qM(e){let o=$le.hover,t={...e.duration!==o.duration.default?{[UM.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[UM.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function YM(e,o,t){if(e===!0)return jle(!0);if(t?.kind==="mono"){let r=qM(t);return{className:bn,sheet:dm,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:bn}:{}}var jM="data-sf-repeat",zS="sf-photo-zoom",Kle="--sf-photo-zoom",wUe="sf-photo-wash",im="sf-photo-wash-rest",mc="sf-photo-wash-hover",cm="sf-photo-frame",$S=(e,o)=>{let t=`:not([${jM}]:not(:hover) .${e})`;return`${o},[${jM}]:hover .${e}${t},[${US}]:hover .${e}${t}`},KM=e=>`${e} var(--sf-photo-hover-duration,var(--page-motion-hover-duration)) var(--page-ease-media) var(--sf-photo-hover-delay,var(--page-motion-hover-delay))`,Vle=`.${mc}{opacity:0}@media (hover:hover){.${im},.${mc}{transition:${KM("opacity")}}${$S(mc,`.${cm}:hover .${mc}`)}{opacity:1}${$S(im,`.${cm}:hover .${im}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${zS}{transition:${KM("transform")}}${$S(zS,`.${cm}:hover .${zS}`)}{transform:scale(var(${Kle}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${im},.${mc}{transition:none}}`,CUe="sf-photo-move";function kUe(e){if(!e||!e.zoom&&!e.darken)return null;let o=qM(e);return{className:cm,sheet:Vle,...o?{style:o}:{}}}function vUe(e){return e===!0?{[bn]:dm}:{}}import{hidableText as qle}from"efficient-easel/draw";var Yle={one:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-1",side:"max-view-tablet:grid-cols-2 max-view-tablet:grid-rows-1",stacked:"max-view-tablet:grid-cols-1 max-view-tablet:grid-rows-2"},Xle={one:"view-tablet:grid-cols-1 view-tablet:grid-rows-1",side:"view-tablet:grid-cols-2 view-tablet:grid-rows-1",stacked:"view-tablet:grid-cols-1 view-tablet:grid-rows-2"};function ZM(e){let o=e.isVideo&&Uk(e.videoSource)==="youtube",t=e.isVideo&&jk(e.videoPlayback)==="click",r=o?Kk(qle(e.youtubeUrl)):null,a=up(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:$g(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&si(e)>1}}function hc(e,o){return vc(en({_partMotion:e},o))}function xc(e,o){return _p(en({_partMotion:e},o))}var fm=e=>Tb({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),JM=zm.img;function QM({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:c}){return e?wo(pF,{desktop:e.desktop,phone:e.phone,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:c}):o?wo($M,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:c}):wo("div",{className:a,...n,...s?{style:s}:{},children:c})}function Ks(e,o){return YM(void 0,void 0,ok(en({_partMotion:e},o)))}function e2(e){return Ka.some(o=>Ks(e,o).className)?{hostAttrs:{[US]:""},sheet:dm}:{}}function pm({treatment:e,children:o}){return e.className?wo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):wo(XM,{children:o})}function um({color:e,opacity:o,passClicks:t=!0}){return o>0?wo("div",{className:t?"pointer-events-none absolute inset-0 z-[2]":"absolute inset-0 z-[2]",style:{background:e,opacity:Math.min(Math.max(o,0),100)/100}}):null}function mm({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let c=o&&t?{[J_]:e}:void 0;return wo(QM,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:c,zoomLayerClass:JM,children:l})}function o2({partMotion:e,editing:o,children:t}){let r=hc(e,"media"),a=xc(e,"media"),n=Ks(e,"media"),s=wo(Vw,{fill:zm,children:t}),l=n.className?wo("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?wo(QM,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:JM,children:l}):wo(XM,{children:l})}function t2({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return jS("div",{className:`absolute inset-0 z-[1] grid ${Yle[o]} ${Xle[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[wo(mm,{part:"image",editing:t,marked:r,entrance:hc(a,"image"),scroll:xc(a,"image"),origins:fm(n),className:"relative overflow-hidden",children:jS(pm,{treatment:Ks(a,"image"),children:[wo(uc,{posterSrc:Lr(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),wo(um,{color:n.tintColor,opacity:n.tintOpacity})]})}),wo(mm,{part:"image2",editing:t,marked:r,entrance:hc(a,"image2"),scroll:xc(a,"image2"),origins:fm(s),className:`relative overflow-hidden ${Td({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:jS(pm,{treatment:Ks(a,"image2"),children:[wo(uc,{posterSrc:Lr(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),wo(um,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as yn,Fragment as Zle,jsxs as Jle}from"react/jsx-runtime";import{useEffect as Qle,useState as eie}from"react";import{PlaySolidIcon as oie}from"efficient-shell/icons/efficient-looks";function r2({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=eie("large");return Qle(()=>n("large"),[e]),e?Jle(Zle,{children:[!o&&a!=="none"&&yn(GM,{src:a==="large"?Vk(e):qk(e),alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",onLoad:s=>{a==="large"&&s.currentTarget.naturalWidth<=120&&n("small")},onError:()=>n(a==="large"?"small":"none")},`${e}-${a}`),t&&!r&&yn("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:yn("iframe",{src:Dh(e,"background"),title:"",tabIndex:-1,allow:"autoplay; encrypted-media; picture-in-picture",className:"absolute left-1/2 top-1/2 h-[max(100%,56.25cqw)] w-[max(100%,177.78cqh)] -translate-x-1/2 -translate-y-1/2 border-0"})})]}):null}function a2({youTubeId:e,fileSrc:o,playing:t,onPlay:r,editing:a}){return!e&&!o?null:t&&!a?e?yn("iframe",{src:Dh(e,"click"),title:Nh,allow:"autoplay; encrypted-media; picture-in-picture; fullscreen",allowFullScreen:!0,className:"absolute inset-0 z-[6] h-full w-full border-0 bg-overlay-scrim"}):yn("video",{src:o,controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain"}):yn("button",{type:"button","aria-label":Nh,onClick:a?void 0:r,className:`absolute left-1/2 top-1/2 z-[4] grid h-16 w-16 -translate-x-1/2 -translate-y-1/2 place-items-center rounded-full bg-btn text-btn-ink shadow-lg transition-transform motion-reduce:transition-none ${a?"pointer-events-none":"cursor-pointer hover:scale-105"}`,children:yn(oie,{size:28})})}function n2(e,o){if(!e)return[];let t=`[${o}]`;return Array.from(e.querySelectorAll(t)).filter(r=>{let a=r.parentElement?.closest(t);return!a||a===e||!e.contains(a)})}var s2=["top","middle","bottom"],l2=["left","center","right"],i2="bottom",c2="left",tie={top:"Top",middle:"Middle",bottom:"Bottom"},rie={left:"Left",center:"Center",right:"Right"},JUe="Up and down",QUe="Sideways",aie={top:"flex-start",middle:"center",bottom:"flex-end"},nie={left:"flex-start",center:"center",right:"flex-end"},sie="--sf-hero-phone-y",lie="--sf-hero-phone-x";function iie(e){return s2.includes(e)?e:i2}function cie(e){return l2.includes(e)?e:c2}function d2(e,o){let t=iie(e),r=cie(o),a={};return t!==i2&&(a[sie]=aie[t]),r!==c2&&(a[lie]=nie[r]),a}function eje(){return s2.map(e=>({label:tie[e],value:e}))}function oje(){return l2.map(e=>({label:rie[e],value:e}))}import{hexToRgb as die}from"efficient-shell/format";var fie=!0;var pie=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function f2(e){let o=die(e);return o?`${o.r},${o.g},${o.b}`:null}function p2(e){return e==null?fie:e!==!1}function u2(e){let o=(e?f2(e):null)??f2(Ct);return`linear-gradient(180deg, ${pie.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as m2}from"efficient-shell/format";var h2="bottom";var uie=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],mie={bottom:180,top:0,left:270,right:90},hie=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],xie=[[null,33],[.6,67],[.94,100]];function Iie(e,o){let{r:t,g:r,b:a}=m2(e)??m2(Ct);return`rgba(${t},${r},${a},${o})`}function x2(e){return Ho(uie,h2,e)}function I2(e=Ct,o=h2){let t=x2(o),r=(t==="top"||t==="bottom"?hie:xie).map(([a,n])=>`${a===null?"transparent":Iie(e,a)} ${n}%`);return`linear-gradient(${mie[t]}deg, ${r.join(", ")})`}function g2(e,o){let t=Z(e.overlayColor),r=Z(e.overlayPosition),a=Z(o)??Ct;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:x2(r)}}import{jsx as gie}from"react/jsx-runtime";var b2="sf-photo-hover";function y2({sheet:e,name:o=b2}){return e?gie("style",{href:o,precedence:b2,dangerouslySetInnerHTML:{__html:e}}):null}var Cie=bie({});function Eje({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,objectPosition:s,objectPositionPhone:l,objectPositionTablet:c,tintColor:d=Ct,tintOpacity:f=0,groups:u,editing:p=!1,themeClassName:x,themeStyle:I,overlayColor:g,overlayPosition:k,mediaLayout:S,mediaLayoutPhone:C,mediaImage2:b,objectPosition2:v,objectPosition2Phone:T,objectPosition2Tablet:F,tintColor2:P=Ct,tintOpacity2:D=0,videoSource:O,youtubeUrl:R,videoPlayback:N,partMotion:y,laterSlide:A=!1}){let L=Ar(),{alignment:H="left",textureOpacity:X,textureOn:q,textureColor:j,quietVideo:Ie,phoneUpDown:te,phoneSideways:Le,holdReel:We,reelHeld:Ee,shownSlide:ge,ratioMin:Oe}=yie(Cie),Ge=pc(),to=A&&Ge==="first",Co=wie(null),[he,Ve]=w2(ge===void 0?void 0:!1);Sie(()=>{let wn=Co.current;Ve(ge===void 0||!wn?void 0:n2(wn.closest(".hero-track"),"data-slide-name")[ge]===wn)});let ve=t==="video",Te=ve?Lr(r):void 0,Je=ve?Lr(n):Lr(r)??Lr(n),Bt=typeof a=="number"?a/100:1,{fromYouTube:Mo,onClick:W,youTubeId:Fe,backgroundFile:le,desktopLayout:Be,phoneLayout:_e,twoPictures:ut}=ZM({isVideo:ve,videoSource:O,videoPlayback:N,youtubeUrl:R,mediaLayout:S,mediaLayoutPhone:C}),[Dt,Qe]=w2(!1);Dt&&Ee===!1&&Qe(!1);let mt=!Dt,Nt=g2({overlayColor:g,overlayPosition:k},j),Sn=ve?null:hc(y,"image"),qs=ve?null:xc(y,"image"),rr=e2(y),la=pt(pm,{treatment:ve?{}:Ks(y,"image"),children:pt(uc,{videoSrc:le?Te:void 0,posterSrc:Je,showVideo:le,playbackRate:Bt,objectPosition:s,objectPositionPhone:ve?void 0:l,objectPositionTablet:ve?void 0:c,quiet:Ie,slideShown:he,laterSlide:A,laterOfLead:to})}),Ys=S2("section",{ref:Co,className:Rr(`${Oe?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${x?` ${x}`:""}`,L.className),...L.attrs,style:I,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":le&&Te?"video":"still",...rr.hostAttrs,children:[pt(y2,{sheet:rr.sheet}),pt(o2,{partMotion:y,editing:p,children:ut?pt(t2,{laterSlide:A,desktopLayout:Be,phoneLayout:_e,editing:p,marked:!1,partMotion:y,first:{src:r,objectPosition:s,objectPositionPhone:l,objectPositionTablet:c,tintColor:d,tintOpacity:f},second:{src:b,objectPosition:v,objectPositionPhone:T,objectPositionTablet:F,tintColor:P,tintOpacity:D}}):Mo||Sn||qs?S2(mm,{part:ve?"media":"image",editing:p,marked:!1,entrance:Sn,scroll:qs,origins:fm({objectPosition:s,objectPositionTablet:c,objectPositionPhone:l}),className:"absolute inset-0 z-[1]",children:[la,Mo&&pt(r2,{youTubeId:Fe,ownPoster:!!Je,background:!W,editing:p})]}):la}),W&&pt(a2,{youTubeId:Fe,fileSrc:Mo?void 0:Te,playing:Dt,onPlay:()=>{Qe(!0),We?.()},editing:p}),mt&&!ut&&pt(um,{color:d,opacity:f,passClicks:!1}),mt&&p2(q)&&pt("div",{className:"absolute inset-0 z-[2]",style:{background:Nt.own?I2(Nt.color,Nt.position??void 0):u2(Nt.color),...X!==void 0?{opacity:X/100}:null}}),mt&&pt("div",{className:[Oe?"sf-hero-group-layer relative min-h-full z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14":"sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[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:{...Bw,...d2(te,Le)},children:u&&pt(u,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return L.scope(to?pt(WM,{children:Ys}):Ys)}var C2=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as v2}from"efficient-easel/draw";var kie="ImageBlock",vie=3,hm=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:v2(e),...t}}),Tie=e=>({...e?.(K)??{},direction:"column",[se]:[hm(kie,e),hm(K,e,{direction:"column",[se]:[hm("Text",e,Nr()),hm("Text",e)]})]}),or={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>C2.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${sr.toLowerCase()}`,seeds:()=>[],addBlocked:Wm,notice:Gm},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${sr.toLowerCase()}`,seeds:()=>[],addBlocked:Wm,notice:Gm},ProcessSteps:{slot:"boxes",childType:K,addLabel:`Add ${sr.toLowerCase()}`,seeds:e=>Array.from({length:vie},()=>Tie(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},k2=1,Pie={slot:ni,childType:K,addLabel:`Add ${sr.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=k2?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>k2?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},T2={Hero:{[ni]:Pie}};function Nje(e){for(let[o,t]of Object.entries(e)){if(o in or&&or[o]!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);or[o]=t}}function Mje(e,o){let t=or[e];return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:v2(t.childType),...r}}))}:null}var E2=()=>({}),O2=new Map;function Eie(e){let o=O2.get(e);if(o)return o;let t=new Set,r=or[e];if(r)for(let s of r.seeds(E2))for(let l of P2({type:r.childType,props:s}))t.add(l);let a=Gs(e);if(a){let s=0;for(let l of P2(a(E2,c=>`${c}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return O2.set(e,n),n}function Oie(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=qb(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=c=>{if(r.has(c))return!1;if(a.has(c))return!0;let d=TC(c);return!d||!o[d]?!1:t?t.has(c):!0},s=new Map,l=c=>{let d=s.get(c);if(d!==void 0)return d;s.set(c,!1);let f=n(c)&&Eie(c).every(l);return s.set(c,f),f};return{sets:o,offers:l}}var _ie="block-offer";function KS(e=_2()){return e.cache(_ie,()=>Oie(Ed(e)))}function A2(e,o=_2()){let t=KS(o);return t?t.offers(e):!0}function Aie(e){let o=om.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Gg.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Gg.sectionAccent}}}var Rie={Hero:{[ni]:{newChild:Aie,childLabel:Dc.Ticker}}},R2=Object.fromEntries(Object.entries(T2).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...Rie[e]?.[t]}]))]));function L2(e,o=0,t,r){let a=Fie(Bie(e,o,r),t),n=a?KS():null;return a&&n?Lie(a,n):a}function Lie(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 Fie(e,o){if(!e||e.source!=="container"||!o||!Ak())return e;let t=xl({data:o.data},o.id),r=typeof t?.type=="string"?Rk(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(l=>l.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function Bie(e,o,t){let r=t?R2[e]?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=or[e];if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=OC(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=vR(e);return s?{source:"footer",slot:kR,choices:s,spec:null}:null}function F2(e,o=vh(e.type)){return Fk(e.type)?o.map(t=>{let r=Bk(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as Die}from"react";var VS=null,qS=new Set;function B2(e){if(VS!==e){VS=e;for(let o of qS)o()}}function Nie(e){return qS.add(e),()=>{qS.delete(e)}}function fKe(){return Die(Nie,()=>VS,()=>null)}function D2(e){return gl(e)?.ownerId??null}function N2(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||i("Menu")}if(e.type==="FooterText"){let r=typeof t.text=="string"?t.text.trim():"";return r?r.length>28?`${r.slice(0,28)}\u2026`:r:i("Text")}return e.type==="FooterEmailSignup"?t.heading||i("Email signup"):o(e.type)}var M2="sf-editor-left-view";function H2(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(M2);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function W2(e){if(!(typeof window>"u"))try{window.localStorage.setItem(M2,e)}catch{}}function G2(e,o){return e==="styles"&&!o?"sections":e}function z2(e,o){return e?"sections":o}import{copyNode as Mie}from"efficient-easel/data";function $2(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=St(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?i("On 1 page"):i("On {count} pages",{count:a.length}):i("On other pages")}var U2={usedOn:e=>{let o=St(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>dd()?.openPage(e),adopt:(e,o)=>St()?.adopt(e.props.id,o),nodeOf:e=>St()?.place(e)??null,detach:e=>{let o=dd()?.config;return o?Mie(e,o):e},removed:()=>dd()?.reload()};import{sharedSectionsOf as Yce}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Xce,scrollPreviewToTop as IH}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as ZS,Fragment as xce,jsxs as Ice}from"react/jsx-runtime";import{useContext as gce,useEffect as bce,useMemo as ew,useRef as tH}from"react";import{EaselCanvas as yce,repeatCopyAt as Sce,useEasel as wce}from"efficient-easel/easel";import{jsx as Y2,Fragment as Zie,jsxs as Jie}from"react/jsx-runtime";import{useEffect as X2,useLayoutEffect as Qie}from"react";var xm="data-theme",j2="light";function Hie(e){return e.getAttribute(xm)===j2?"light":"dark"}function Wie(e,o){return Hie(e)===o?!1:(o==="light"?e.setAttribute(xm,j2):e.removeAttribute(xm),!0)}function Gie(e){return $m(e).getItem(Am)}function wKe(e,o){$m(e).setItem(Am,o)}function zie(e,o,t=new Date().getHours()){return mw({mode:o.mode,override:Gie(e),switchShown:o.switchShown,hour:t})}function K2(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Wie(t,zie(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[xm]}),()=>n.disconnect()}var $ie="style";function Uie(e,o){let t=kw(o),r=!1;for(let a of Cw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function V2(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Uie(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[$ie]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as jie,VIEW_TABLET_MIN as Kie}from"efficient-easel/screen/lib/content/view-tiers";var Vie={fit:"data-fit",fitTablet:"data-fit-tablet",fitPhone:"data-fit-phone",min:"data-fit-min",minTablet:"data-fit-min-tablet",minPhone:"data-fit-min-phone",edge:"data-fit-edge"},ot=Vie,qie=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),Yie=String.raw`(function (doc) {
|
|
92
|
+
if (doc.__sfFitWords) return;
|
|
93
|
+
var win = doc.defaultView;
|
|
94
|
+
var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
|
|
95
|
+
// Body text a block asked to shrink (its Text group's Shrink), beside
|
|
96
|
+
// the headings: what this script may fit at all. modeOf() decides each one.
|
|
97
|
+
var SHRINK_BODY = ${JSON.stringify(qie([ot.fit,ot.fitTablet,ot.fitPhone]))};
|
|
98
|
+
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
99
|
+
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Or};
|
|
100
|
+
var TABLET_MIN = ${Kie}, DESKTOP_MIN = ${jie};
|
|
101
|
+
|
|
102
|
+
// A block's own answer (lib/content/block-size, the wrapper's attributes):
|
|
103
|
+
// the fit "wrap" | "shrink" | "line" and the floor, each with a tablet and a
|
|
104
|
+
// phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
|
|
105
|
+
// in a Box, marked edge; 720 outside one) the tablet's where it has one;
|
|
106
|
+
// under it the phone's, else the tablet's, else the desktop's. With no
|
|
107
|
+
// tablet answer the phone's is read under 800, as before (the edge moves with
|
|
108
|
+
// F1). With none, a heading shrinks and body text wraps, as always.
|
|
109
|
+
// A holder with any tablet attribute takes the three views (its line and 1100)
|
|
110
|
+
// for its fit AND its floor together; one with none keeps the 800 edge.
|
|
111
|
+
var TABLET_ATTRS = [${JSON.stringify(ot.fitTablet)}, ${JSON.stringify(ot.minTablet)}];
|
|
112
|
+
function own(el, attr, tabletAttr, phoneAttr) {
|
|
113
|
+
var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
|
|
114
|
+
if (!holder) return null;
|
|
115
|
+
var w = win.innerWidth, d = holder.getAttribute(attr);
|
|
116
|
+
if (w >= DESKTOP_MIN) return d;
|
|
117
|
+
var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
|
|
118
|
+
if (w < (holder.hasAttribute(${JSON.stringify(ot.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
|
|
119
|
+
if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
|
|
120
|
+
return (w < PHONE_BELOW && p) || d;
|
|
121
|
+
}
|
|
122
|
+
function modeOf(el) {
|
|
123
|
+
var mode = own(el, ${JSON.stringify(ot.fit)}, ${JSON.stringify(ot.fitTablet)}, ${JSON.stringify(ot.fitPhone)});
|
|
124
|
+
if (mode === "wrap" || mode === "shrink") return mode;
|
|
125
|
+
if (mode === "line") return "wrap"; // One line: the block keeps its words whole, nothing shrinks
|
|
126
|
+
return el.matches(SELECTOR) ? "shrink" : "wrap";
|
|
127
|
+
}
|
|
128
|
+
function floorOf(el, set) {
|
|
129
|
+
var min = parseFloat(own(el, ${JSON.stringify(ot.min)}, ${JSON.stringify(ot.minTablet)}, ${JSON.stringify(ot.minPhone)}));
|
|
130
|
+
return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
function measure(el) {
|
|
134
|
+
var widest = 0, current = 0, last = null, split = false, lastBlock = null;
|
|
135
|
+
function blockOf(n) {
|
|
136
|
+
for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
|
|
137
|
+
var d = win.getComputedStyle(p).display;
|
|
138
|
+
if (d.indexOf("inline") !== 0 && d !== "contents") return p;
|
|
139
|
+
}
|
|
140
|
+
return el;
|
|
141
|
+
}
|
|
142
|
+
function close() { if (current > widest) widest = current; current = 0; last = null; }
|
|
143
|
+
var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
|
|
144
|
+
while ((node = walker.nextNode())) {
|
|
145
|
+
if (node.nodeType === 1) {
|
|
146
|
+
if (node.tagName === "BR" || node.tagName === "WBR") close();
|
|
147
|
+
continue;
|
|
148
|
+
}
|
|
149
|
+
var block = blockOf(node);
|
|
150
|
+
if (block !== lastBlock) close();
|
|
151
|
+
lastBlock = block;
|
|
152
|
+
var re = /(\S+)|(\s+)/g, m;
|
|
153
|
+
while ((m = re.exec(node.data))) {
|
|
154
|
+
if (m[2]) { close(); continue; }
|
|
155
|
+
range.setStart(node, m.index);
|
|
156
|
+
range.setEnd(node, m.index + m[0].length);
|
|
157
|
+
var rects = range.getClientRects();
|
|
158
|
+
for (var i = 0; i < rects.length; i++) {
|
|
159
|
+
var r = rects[i];
|
|
160
|
+
if (r.width <= 0) continue;
|
|
161
|
+
current += r.width;
|
|
162
|
+
if (last && r.top > last.top + last.height / 2) split = true;
|
|
163
|
+
last = r;
|
|
164
|
+
}
|
|
165
|
+
}
|
|
166
|
+
}
|
|
167
|
+
close();
|
|
168
|
+
return { widest: widest, split: split };
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
function lineWidth(el) {
|
|
172
|
+
var cs = win.getComputedStyle(el);
|
|
173
|
+
return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
|
|
174
|
+
- parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
|
|
175
|
+
}
|
|
176
|
+
|
|
177
|
+
// ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
|
|
178
|
+
// runs before React hydrates, and React 19 in development reports ANY
|
|
179
|
+
// attribute that differs from what it rendered ("a tree hydrated but some
|
|
180
|
+
// attributes didn't match"): first our inline font-size on the hero (which
|
|
181
|
+
// React owns via --heading-size), then, when that moved to a data-sf-fit
|
|
182
|
+
// attribute, the attribute itself. So the fitted size lives only in this
|
|
183
|
+
// script's own stylesheet, in <head>, addressed to each heading by its
|
|
184
|
+
// POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
|
|
185
|
+
// structure changes, so the rules are rewritten in the MutationObserver
|
|
186
|
+
// callback, which runs before the next paint. !important so the size also
|
|
187
|
+
// beats a part's own inline size.
|
|
188
|
+
var head = doc.head || doc.documentElement;
|
|
189
|
+
var fitEl = doc.createElement("style");
|
|
190
|
+
fitEl.id = "storefront-fit-words-sizes";
|
|
191
|
+
head.appendChild(fitEl);
|
|
192
|
+
// heading -> [[element, fitted size]]: the heading and each Text part inside
|
|
193
|
+
// it that holds its own size (a span [data-sf-part-styled]), e.g.
|
|
194
|
+
// [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
|
|
195
|
+
// a part at its own size, and the word still breaks (card C25, Spec Table).
|
|
196
|
+
var fitted = new Map();
|
|
197
|
+
|
|
198
|
+
function pathOf(el) {
|
|
199
|
+
var parts = [];
|
|
200
|
+
for (var e = el; e && e.parentElement; e = e.parentElement) {
|
|
201
|
+
var i = 1, s = e;
|
|
202
|
+
while ((s = s.previousElementSibling)) i++;
|
|
203
|
+
parts.unshift("*:nth-child(" + i + ")");
|
|
204
|
+
}
|
|
205
|
+
return ":root>" + parts.join(">");
|
|
206
|
+
}
|
|
207
|
+
function writeRules() {
|
|
208
|
+
var css = "";
|
|
209
|
+
fitted.forEach(function (sizes, el) {
|
|
210
|
+
if (!el.isConnected) { fitted.delete(el); return; }
|
|
211
|
+
for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
|
|
212
|
+
});
|
|
213
|
+
if (fitEl.textContent !== css) fitEl.textContent = css;
|
|
214
|
+
}
|
|
215
|
+
|
|
216
|
+
function unfit(el) {
|
|
217
|
+
if (fitted.delete(el)) writeRules();
|
|
218
|
+
}
|
|
219
|
+
|
|
220
|
+
function fits(el) {
|
|
221
|
+
var m = measure(el);
|
|
222
|
+
return !m.split && m.widest <= lineWidth(el) + SLACK;
|
|
223
|
+
}
|
|
224
|
+
|
|
225
|
+
function fit(el) {
|
|
226
|
+
unfit(el);
|
|
227
|
+
if (modeOf(el) !== "shrink") return; // the block's own Wrap
|
|
228
|
+
if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
|
|
229
|
+
if (fits(el)) return;
|
|
230
|
+
var set = parseFloat(win.getComputedStyle(el).fontSize);
|
|
231
|
+
if (!set) return;
|
|
232
|
+
var floor = floorOf(el, set);
|
|
233
|
+
if (floor >= set) return;
|
|
234
|
+
function size(px) { return Math.floor(px * 10) / 10 + "px"; }
|
|
235
|
+
// The SEARCH tries sizes on the element's own style and then puts that
|
|
236
|
+
// attribute back byte for byte (or removes it, if it had none), so nothing
|
|
237
|
+
// is left for React to see. A trial in a stylesheet instead restyles the
|
|
238
|
+
// whole page per step: a full pass on the Hartes home took 75–160ms at 4x
|
|
239
|
+
// CPU that way.
|
|
240
|
+
// Every trial scales the heading AND each part inside it that holds its
|
|
241
|
+
// own size, by the same ratio, so a part keeps its proportion to the
|
|
242
|
+
// heading.
|
|
243
|
+
var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
|
|
244
|
+
var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
|
|
245
|
+
var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
|
|
246
|
+
function attempt(px) {
|
|
247
|
+
for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
|
|
248
|
+
}
|
|
249
|
+
function done() {
|
|
250
|
+
for (var i = 0; i < carriers.length; i++) {
|
|
251
|
+
if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
|
|
252
|
+
}
|
|
253
|
+
}
|
|
254
|
+
attempt(floor);
|
|
255
|
+
if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
|
|
256
|
+
var lo = floor, hi = set;
|
|
257
|
+
for (var i = 0; i < 8; i++) {
|
|
258
|
+
var mid = (lo + hi) / 2;
|
|
259
|
+
attempt(mid);
|
|
260
|
+
if (fits(el)) lo = mid; else hi = mid;
|
|
261
|
+
}
|
|
262
|
+
done();
|
|
263
|
+
fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
|
|
264
|
+
writeRules();
|
|
265
|
+
}
|
|
266
|
+
|
|
267
|
+
// What each heading measured right after we last fitted it, so the
|
|
268
|
+
// ResizeObserver below can tell a real change (a font swap, a rotate, a
|
|
269
|
+
// container that moved) from the size change our own write just caused.
|
|
270
|
+
var seen = new WeakMap();
|
|
271
|
+
function remember(el) {
|
|
272
|
+
var b = el.getBoundingClientRect();
|
|
273
|
+
seen.set(el, b.width + "x" + b.height);
|
|
274
|
+
}
|
|
275
|
+
function fitAndRemember(el) { fit(el); remember(el); }
|
|
276
|
+
|
|
277
|
+
// ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
|
|
278
|
+
// WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
|
|
279
|
+
// fitted heading, and fonts.ready resolves only after that frame is painted —
|
|
280
|
+
// measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
|
|
281
|
+
// reported here is fitted in the same frame, so the broken state is never
|
|
282
|
+
// drawn. It also covers a container that resizes.
|
|
283
|
+
var ro = new win.ResizeObserver(function (entries) {
|
|
284
|
+
for (var i = 0; i < entries.length; i++) {
|
|
285
|
+
var el = entries[i].target;
|
|
286
|
+
var b = el.getBoundingClientRect();
|
|
287
|
+
if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
|
|
288
|
+
fitAndRemember(el);
|
|
289
|
+
}
|
|
290
|
+
});
|
|
291
|
+
// Its own set, not seen: fitAndRemember has written seen by the
|
|
292
|
+
// time watch runs, so a seen test observed no heading at all, and a
|
|
293
|
+
// heading fitted in the fallback face was never fitted again when the web
|
|
294
|
+
// font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
|
|
295
|
+
var watched = new WeakSet();
|
|
296
|
+
function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
|
|
297
|
+
|
|
298
|
+
function fitAll() {
|
|
299
|
+
var els = doc.querySelectorAll(CANDIDATES);
|
|
300
|
+
for (var i = 0; i < els.length; i++) {
|
|
301
|
+
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
302
|
+
else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
|
|
303
|
+
}
|
|
304
|
+
}
|
|
305
|
+
|
|
306
|
+
var queued = 0, all = false, touched = new Set();
|
|
307
|
+
function run() {
|
|
308
|
+
queued = 0;
|
|
309
|
+
if (all) { all = false; touched.clear(); fitAll(); return; }
|
|
310
|
+
var els = Array.from(touched);
|
|
311
|
+
touched.clear();
|
|
312
|
+
for (var i = 0; i < els.length; i++) {
|
|
313
|
+
if (!els[i].isConnected) continue;
|
|
314
|
+
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
315
|
+
else unfit(els[i]);
|
|
316
|
+
}
|
|
317
|
+
}
|
|
318
|
+
function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
|
|
319
|
+
function scheduleAll() { all = true; schedule(); }
|
|
320
|
+
|
|
321
|
+
fitAll();
|
|
322
|
+
// A backstop only: a font that changes widths without changing any
|
|
323
|
+
// heading's box is not seen by the ResizeObserver.
|
|
324
|
+
if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
|
|
325
|
+
|
|
326
|
+
// …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
|
|
327
|
+
// heading sized to its own text (fit-content, a flex item) keeps the SAME box
|
|
328
|
+
// when the phone turns to 844, so nothing reports a change and it would stay
|
|
329
|
+
// shrunk. The probe's rotate check caught exactly that.
|
|
330
|
+
var lastWidth = win.innerWidth;
|
|
331
|
+
function onResize() {
|
|
332
|
+
if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
|
|
333
|
+
lastWidth = win.innerWidth;
|
|
334
|
+
scheduleAll();
|
|
335
|
+
}
|
|
336
|
+
win.addEventListener("resize", onResize);
|
|
337
|
+
|
|
338
|
+
var mo = new win.MutationObserver(function (records) {
|
|
339
|
+
// Positions first: a node added or removed anywhere can shift the
|
|
340
|
+
// nth-child path of a fitted heading, and this callback runs before paint.
|
|
341
|
+
if (fitted.size) {
|
|
342
|
+
for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
|
|
343
|
+
}
|
|
344
|
+
for (var i = 0; i < records.length; i++) {
|
|
345
|
+
var r = records[i];
|
|
346
|
+
// A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
|
|
347
|
+
// only a data-fit attribute moved, so every heading is measured again.
|
|
348
|
+
if (r.type === "attributes") { scheduleAll(); continue; }
|
|
349
|
+
var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
|
|
350
|
+
var owner = target && target.closest(CANDIDATES);
|
|
351
|
+
if (owner) touched.add(owner);
|
|
352
|
+
for (var j = 0; j < r.addedNodes.length; j++) {
|
|
353
|
+
var n = r.addedNodes[j];
|
|
354
|
+
if (n.nodeType !== 1) continue;
|
|
355
|
+
if (n.matches(CANDIDATES)) touched.add(n);
|
|
356
|
+
var inner = n.querySelectorAll(CANDIDATES);
|
|
357
|
+
for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
|
|
358
|
+
}
|
|
359
|
+
}
|
|
360
|
+
if (touched.size) schedule();
|
|
361
|
+
});
|
|
362
|
+
mo.observe(doc.body, {
|
|
363
|
+
childList: true,
|
|
364
|
+
subtree: true,
|
|
365
|
+
characterData: true,
|
|
366
|
+
attributes: true,
|
|
367
|
+
attributeFilter: ${JSON.stringify(Object.values(ot))},
|
|
368
|
+
});
|
|
369
|
+
|
|
370
|
+
doc.__sfFitWords = function stop() {
|
|
371
|
+
win.removeEventListener("resize", onResize);
|
|
372
|
+
ro.disconnect();
|
|
373
|
+
mo.disconnect();
|
|
374
|
+
if (queued) win.cancelAnimationFrame(queued);
|
|
375
|
+
fitted.clear();
|
|
376
|
+
fitEl.remove();
|
|
377
|
+
delete doc.__sfFitWords;
|
|
378
|
+
};
|
|
379
|
+
// For the probe and for debugging: which headings are fitted, at what size,
|
|
380
|
+
// and the sheet that holds it (disable it to read a heading's set size).
|
|
381
|
+
doc.__sfFitWords.fitted = fitted;
|
|
382
|
+
doc.__sfFitWords.sheet = fitEl;
|
|
383
|
+
// …and the two questions a block's own answer changes, for the guard
|
|
384
|
+
// (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
|
|
385
|
+
doc.__sfFitWords.modeOf = modeOf;
|
|
386
|
+
doc.__sfFitWords.floorOf = floorOf;
|
|
387
|
+
})(document);`,Xie="storefront-fit-words";function q2(e){let o=e.createElement("script");return o.id=Xie,o.textContent=Yie,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var ece=`
|
|
388
|
+
[${Ot}][${Ot}] { cursor: text; }
|
|
389
|
+
`;function Z2({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=xe(),n=ro(t);return X2(()=>{if(o)return K2(o,{mode:r,switchShown:a})},[o,r,a]),X2(()=>{if(o)return V2(o,n)},[o,n]),Qie(()=>{if(o)return q2(o)},[o]),Jie(Zie,{children:[Y2(xC,{}),Y2("style",{children:ece}),e]})}import{jsx as YS}from"react/jsx-runtime";import{useEffect as oce,useState as tce}from"react";import{Banner as rce}from"efficient-shell/ui";var Im={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},ace={load:"{section} could not load. It stays on the page as it was. Reload to try again.",lock:"{name} is editing {section}. Nothing you change in it here is saved.",conflict:"{section} was changed somewhere else. Nothing you change in it here is saved. Reload to get the latest.",save:"{section} did not save. It is sent again with your next change."},nce=Im.load,sce=Im.lock,lce=Im.conflict,ice=Im.save;function cce(e){if(!e)return null;if(e.loadFailed)return i(nce);if(e.lockHolder)return i(sce,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(lce);if(e.saveFailed)return i(ice);let o=e.sections?.[0];if(!o)return null;let t=o.title||i("A shared section"),r=o.holder?.name||i("Somebody else");return i(ace[o.problem],{section:t,name:r})}function dce({report:e}){let o=cce(nm(e)),[t,r]=tce(null);return oce(()=>{o||r(null)},[o]),!o||t===o?null:YS("aside",{className:"sf-canvas-notice",children:YS(rce,{tone:"warning",onDismiss:()=>r(o),children:o})})}function J2(){return YS(dce,{report:sm()})}import{jsx as gm}from"react/jsx-runtime";import{useState as Q2}from"react";import{Banner as fce,Button as pce}from"efficient-shell/ui";import{UndoIcon as uce}from"efficient-shell/icons/efficient";import{useScreenDocument as mce}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as hce}from"efficient-easel/easel";function eH(){let e=lM(),{adapter:o,flushSave:t,reloadFromServer:r}=mce(),a=o.siteVersions,[n,s]=Q2(!1),[l,c]=Q2(!1),d=async()=>{if(!(!a||n)){s(!0),c(!1);try{await dM({access:a,flushSave:t,reload:r})}catch{c(!0)}finally{s(!1)}}},f=hce({onPress:()=>{d()},busy:n});return e?gm("aside",{className:"sf-canvas-notice",children:gm(fce,{tone:l?"danger":"info",title:e.title,onDismiss:lm,action:a&&e.undo?gm(pce,{variant:"secondary",size:"sm",leftIcon:gm(uce,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:i("Undo")}):void 0,children:l?i("Undo did not work. Nothing changed. Try again."):i("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as Cce,REPEAT_ATTRIBUTE as JS,REPEAT_INDEX_ATTRIBUTE as QS}from"efficient-easel/draw";import{usePreviewParts as kce}from"efficient-easel/draw/client";var oH=null;function XS(e){oH=e}function ZKe(){return oH}import{ScreenDocumentContext as vce}from"efficient-easel/screen/components/ScreenDocumentContext";function rH(e){let{mirrorHostStyles:o}=Km(),t=gC(),{sectionBackgroundWidth:r,themeFromDocument:a}=xe(),n=sC(),s=gce(vce),l=fd(s?.docId??null),c=wce(S=>S.appState.data),d=xv(l,c),f=JSON.stringify(d),u=ew(()=>d,[f]),p=ew(()=>({...e.metadata??t??{},...m0(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);bce(()=>(XS(n),()=>XS(null)),[n]);let x=tH(null),I=Tce(x),{onDocument:g}=e,k=S=>{x.current=S,g?.(S)};return Ice(xce,{children:[ZS(eH,{}),ZS(J2,{}),ZS(yce,{...e,onDocument:k,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:Z2})]})}function Tce(e){let o=Lc(),t=kce(),r=tH({parts:t});return r.current={parts:t},ew(()=>{let a=(n,s)=>{let l=Ff(n,o),c,d=null,f=s??(l?null:VI(null,e.current,n)),u=!l&&f?Sce(f):null,p=u?Cce(n):null;if(u&&f&&p?.propKey){l=Df({...u,nodeId:p.nodeId,key:p.propKey},o),c=p.propKey;let k=f.closest(`[${JS}][${QS}]`),S=`[${JS}="${Bf(k?.getAttribute(JS)??"")}"][${QS}="${Bf(k?.getAttribute(QS)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!l)return null;let x=f,I=()=>(x=VI(x,d?d():x?.ownerDocument??e.current,n),x),g=I();return g?{element:I,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:c,toolbar:{offered:l.offered,colors:l.offered.length>0?zn(hT(g)):void 0,colorNameOf:Zo}}:null};return{at:n=>{let s=n.closest(`[${Ot}]`),l=s?.getAttribute(Ot);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>$E(n,o),copyValue:n=>zE(n,o),onChange:n=>{if(!n.typing){qI(null);return}let s=n.element.closest(`[${Ot}]`)?.getAttribute(Ot)??null;qI(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Pce=nC.mediaFields,Ece=/video|poster|focal|phone/i;function aH(e){return(Pce[e]??[]).find(o=>!o.includes("[]")&&!Ece.test(o))??null}var nH={adds:{kind:"block",type:"ImageBlock"},takes:e=>aH(e.type)!==null,replace:(e,o)=>{let t=aH(e.type);return t?{...e.props,[t]:o.url}:{...e.props}},create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var sH={Hero:"Full-screen opener with rotating slides.",HeroSingle:"Full-screen image or video with a headline.",IntroBleed:"Full-bleed intro image the next section scrolls over.",Collections:"Product collections in a tidy grid.",AlloyWheelsListing:"A full product-listing page: filter rail, sortable card grid and pagination, from the live catalog. Choose which product types it shows.",CatalogFilterBar:"Filters the collection grids below it \u2014 a sticky row of Pills (the default), or Columns, one per filter you switch on.",ProductGrid:"Hand-picked products in a tidy grid.",FitmentFinder:"A vehicle picker \u2014 make, model, year and trim resolve the OEM stock fitment live.",Gallery:"Two image galleries with tabs and filters.",GalleryB:"A wall of your photos or your products' pictures, with a click-to-open lightbox.",SpecStrip:"A thin one-line spec strip \u2014 small-caps items spread across the width, as a dark band or a bare hairline row.",ProductHero:"A product hero \u2014 image beside price, bullets and a buy button.",SpecTable:"A spec sheet \u2014 labeled rows of product specifications.",ProcessSteps:"A heading over columns, or alternating rows, of image, title, blurb and specs.",DetailRows:"Repeating full-width rows \u2014 eyebrow, title and copy beside a numbered close-up image, alternating sides each row.",FitmentTable:"A fitment table \u2014 per-size bolt patterns, offsets and load ratings, filterable by diameter.",CompatibleTyres:"The current product's compatible tyres \u2014 image, size, key specs and price per tyre, with an inquiry link. Display only.",RelatedProducts:"The current product's related items in a tidy row \u2014 the product page's built-in 'Pair with' cross-sell.",OrderSummary:"A display order-summary panel \u2014 items, totals and a note.",DeliveryOptions:"Delivery tiers as cards \u2014 name, window and price, one highlighted.",PaymentBadges:"A payment-methods trust strip with reassurance lines.",CheckoutCTA:"A centered 'ready to order?' headline with the checkout button.",Manifesto:"A bold brand statement beside a full-height image, with a stat strip.",ParagraphsA:"An editorial text panel with a stat strip and founders' note.",StatsParagraph:"An editorial heading and paragraph over a row of stat cards whose units and small labels take the main color.",Chart:"A titled chart \u2014 bars, line or donut \u2014 drawn from your own labeled data points.",Mockup:"A headline beside a stylized product-UI mockup card \u2014 spec sheet, fitment, portal, kanban and more.",Prose:"A plain editorial text section \u2014 eyebrow, heading and body copy.",Timeline:"An editorial aside beside a rail-marked timeline of dated entries.",TimelineTrack:"A horizontal year track of milestones \u2014 company history or roadmap.",Footprint:"A world map of your locations with a legend \u2014 designed here, sold worldwide.",TitleWithButtons:"A big headline beside a stack of call-to-action buttons.",Split:"Side-by-side image and text in two columns.",Cards:"A heading over a grid of free-text title-and-blurb cards.",FAQ:"A frequently-asked-questions accordion with a header.",Testimonials:"Customer quotes in a grid \u2014 the quote, a name and a role.",Masthead:"A journal issue header with a lead statement and contents.",Breadcrumb:"A slim trail showing where the reader is (Home / Journal\u2026).",CategoryBar:"A sticky row of category tabs with counts and links.",FeaturedCover:"A featured article \u2014 big cover image beside a headline and dek.",LongRead:"A long-form article spread with a pull-quote and cover image.",Series:"A section heading over a grid of column cards.",Subscribe:"A newsletter signup beside a list of recent issues.",SubscribeBlogs:"A newsletter signup beside your latest blog posts, pulled live.",Events:"Latest journal posts in a three-card row.",DocMasthead:"A page header: eyebrow, title, details and a deck.",DocTabs:"A sticky tab bar to switch between documents.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};import{jsx as bm}from"react/jsx-runtime";import{useState as Oce}from"react";import{Button as _ce,Tooltip as Ace,toast as lH}from"efficient-shell/ui";import{TemplateIcon as Rce}from"efficient-easel/icons";import{useSettledAction as Lce}from"efficient-easel/easel";import{useScreenDocument as Fce}from"efficient-easel/screen/components/ScreenDocumentContext";function cH({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Fce(),[a,n]=Oce(!1),s=async()=>{if(!a){n(!0);try{await r()?t():lH.error(i(iH))}catch{lH.error(i(iH))}finally{n(!1)}}},l=Lce({onPress:()=>{s()},busy:a});return bm(Ace,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:bm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:bm(_ce,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:bm(Rce,{size:15}),children:i("Save as Template")})})})}var iH="Your last changes did not save, so the template was not made. Try again.";var Bce="Save your page changes first";function dH(e){return e.hasTrustedConsole?e.canCreatePlatformTemplate?!e.capabilities.canPublish||!e.capabilities.hasSiteSettings?{visible:!1,hiddenReason:"not-a-site-page"}:e.siteId?e.hasUnsavedEdits?{visible:!0,enabled:!1,disabledReason:Bce}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var fH="storefront-editor:save-as-template";var Ic="ContactLocations",Dce="CityPictures",Nce="CityMaps",Mce=[{key:Dce,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:Nce,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function pH(e=_i){let o=Fr.find(t=>t.sections.some(r=>r.type===Ic))?.key;return!e.includes(Ic)||!o?[]:Mce.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:Ic,desc:a,alias:"locations offices stores branches",insert:s=>{let l=Qr(Ic);return l?rm(Ic,l,n)(s.nodeDefaults,s.newNodeId):null}}))}function mH(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Gs(e);if(n)return n(o,t,em());if(xk(e)&&a(K)&&a(Fn))return{type:K,props:{...o(K),id:t(K),direction:"column",name:`${r(e)} section`,content:[{type:Fn,props:{...o(Fn),id:t(Fn),...Ro[e]?.headStyle?{headStyle:Ro[e].headStyle}:{},...Ro[e]?.headRowGap?{rowGap:Ro[e].headRowGap}:{},...Ro[e]?.headDescriptionSize?{descriptionSize:Ro[e].headDescriptionSize}:{},...Bi(e)!==Bi(Fn)?{eyebrowLook:Bi(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...uH(e,t)}}]}};if(or[e]?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=uH(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function uH(e,o){return e==="Cards"?{template:Vc(t=>o(t))}:e===dl?{template:gh(t=>o(t))}:{}}import{useEffect as Hce,useState as Wce}from"react";import{useEaselSession as Gce}from"efficient-easel/screen/lib/session-context";function hH(){let e=Gce().chrome?.products?.list,[o,t]=Wce(null);return Hce(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function vH({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=$_(),a=CH().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=Vs(c=>{c&&(o({kind:"ticker",heroId:c}),Xce(c))},[o]);return tr(()=>{t(s)},[s,t]),tr(()=>{r(l)},[r,l]),{partRows:(c,{rowClick:d})=>{let f=String(c.props.id);return c.type==="Hero"&&zg(c.props)&&uo(SH,{icon:uo(qa,{type:"ticker",size:13}),name:i(ai),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function TH({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=pp(),a=CH().tree,{appState:n}=wH(p=>p),s=n.data.content??[],l=zce(s);l.current=s;let c=e,d=Ka.find(p=>li[p]===c.kind),f=d&&"nodeId"in c?ii(String(c.nodeId),d):null,u=Vs(p=>{let x=Z_(p);if(!x)return;let I=l.current.findIndex(k=>String(k.props.id)===x.nodeId);if(I<0)return;let g={kind:li[x.part],nodeId:x.nodeId};o({index:I},g)},[o]);return tr(()=>{t(f)},[f,t]),tr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:x})=>{let I=String(p.props.id),g=X_(p);if(g.length===0)return null;let k=b=>{let v=ii(I,b.part);return uo(SH,{icon:uo(qa,{type:b.part==="media"?"heroMedia":"heroImage",size:13}),name:i(b.label),onSelect:()=>u(v),selected:f===v,rowProps:{onClick:x(()=>u(v))},words:a},v)},[S,...C]=g;return gc(yH,{children:[k(S),C.length>0&&uo(Vce,{children:C.map(k)})]})}}}function PH(e,o){return{partRows:(t,r)=>gc(yH,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Zce(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:c,token:d}=ym(),{hasPreviewLink:f}=t,u=Ue(kH()).preview?.draftLink,p=IM(e.data),x=dH({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=Vs(()=>{!a||!r||c(fH,{siteId:a,slug:r})},[c,a,r]),g=YN({pageSlug:r,siteId:a,token:d}),k=o.previewHref?.(r)??g;return{barLead:()=>x.visible&&uo(cH,{enabled:x.enabled,reason:x.enabled?"":x.disabledReason,onSaved:I}),barView:()=>f&&r&&uo(JN,{liveHref:k,pageId:n??null,draftLink:u}),mainAction:p}}function Jce(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=ym(),{hasSiteTheme:l,explainsSiteSettings:c}=t,d=b=>o.setView(b),[f,u]=xH(ms[0].id),[p,x]=xH(!1),{surface:I,setSurface:g}=z_(),k=()=>{if(l){d("styles"),o.reveal(),IH();return}e.show(xS),e.reveal(),IH()},S={id:"pages",label:i("Pages"),icon:uo(Uce,{}),panel:({onHide:b})=>uo(R_,{activeSurface:I,onPreviewSurface:g,onNavigate:v=>{g(null),s(r?{kind:"template",id:r,pageSlug:v}:{kind:"page",slug:v,siteId:a??void 0})},onClose:b})},C=[];return!l&&c&&C.push({id:"appearance",label:i("Appearance"),icon:uo(Kce,{}),active:e.kind==="website",onSelect:k}),l&&C.push({id:"styles",label:i("Styles"),icon:uo(jce,{}),panel:({onHide:b,notify:v})=>uo(YD,{tokenRef:n,siteId:a??void 0,onClose:b,onNotify:v,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>x(!1)})}),{railLead:[S],railTrail:C,resolveLeftView:b=>G2(b,l),openSettings:k,openStyles:()=>{u(m_),d("styles")},openPageStyles:l?()=>{u(xs),x(!0),d("styles"),o.reveal()}:c?()=>{e.show(ND),e.reveal()}:void 0}}function Qce(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=ym(),a=wH(s=>s.config),n=kH();tr(()=>(Uh({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Uh(null)),[e,o,t,a]),tr(()=>{let s=St();if(!s||!r)return;let l=!1;return Yce(n).list().then(c=>{l||s.learn(c)}).catch(()=>{}),()=>{l=!0}},[r,n])}function EH(){let e=Lc();return Vs(o=>{UE(o,e)},[e])}function ede(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;tr(()=>{B2(s?.type==="BookingBox"&&s.props.region==="confirm"?D2(l(String(s.props.id))):null)},[s?.props.id]);let c=xN(e,o),{capabilities:{hasSiteSettings:d}}=ym();Qce();let{chat:f,setChat:u,setSelected:p,setSelectHandler:x}=fp(),I=Vs(()=>n(MD),[n]),g=a==="chat";tr(()=>{p(g)},[g,p]),tr(()=>{x(I)},[x,I]);let{setOpenHandler:k}=ri(),S=Vs(()=>n(HD),[n]);tr(()=>{k(S)},[k,S]);let C=PH(vH(e),TH(e)),b=Zce(o),v=Jce(e,r),T=t.device,F=EH();return{...C,...b,...v,hasOwnRows:P=>P.type===Qu,ownRows:c.renderLocationTree,sectionPressed:c.sectionPressed,onCopyItem:F,wrap:P=>uo(Vm.Provider,{value:!0,children:gc(qce.Provider,{value:T,children:[P,uo(vM,{})]})}),addPanelRow:P=>d?gc("div",{className:"sf-addside-sitewide",children:[uo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:uo(qa,{type:"chat",size:16})}),gc("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{P(),I()},children:[i("Live chat"),uo("span",{className:"sf-addside-sitewide-desc",children:i("A chat bubble on every page")})]}),uo($ce,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var gH=null,ow=new WeakMap;function ode(e){let o=mC();if(!e||!o)return e;gH!==o&&(gH=o,ow=new WeakMap);let t=ow.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:i(r.label)})):null,spec:e.spec?{...e.spec,addLabel:i(e.spec.addLabel),...e.spec.childLabel?{childLabel:i(e.spec.childLabel)}:{}}:null},ow.set(e,t)),t}var tde={isLockedBlock:(e,o)=>Bp(e,o)||!!(o&&St()?.heldElsewhere(o.props.id)),duplicateBlocked:su,nestDepth:(e,o,t)=>o===Ww?$w(e,t):0,newSectionNode:mH,canAddTo:(e,o,t,r)=>ode(L2(e,o,r,t)),blockIsOffered:A2,slotsOf:F2,resolveOnInsert:!0},rde=new Proxy(sH,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),ade={labelAtLevel:(e,o,t)=>i(Zm(e,o,t)),descriptions:rde,categoryLabel:e=>{let o=TM(e);return o===void 0?void 0:i(o)},firstSection:PM,blockRowName:N2,rowName:Dp,plainText:lr,Icon:qa,Thumbnail:VD,useProducts:hH,presets:pH()},nde={desktop:2e3,tablet:800,mobile:390},bH="desktop",sde={options:M_,initial:bH,fluid:bH,widths:nde,hidesPerView:!0},lde={read:H2,write:e=>W2(e),forSelection:(e,o)=>z2(e,o)},ide={first:qo,last:He,firstGroup:Me,lastGroup:Re,isSectionGroup:Nn,sectionGroupZone:Zk,panelOf:e=>e===qo?DD:null,get sharedReach(){return Qa()?dde:void 0},get shared(){return St()?U2:void 0},get groupTab(){return Qa()?TR:void 0},get groupBadge(){return Qa()?ry({type:Re})??void 0:void 0},get changeNotice(){return Qa()?PR():void 0},get band(){return Qa()?cde:void 0},get groupAccepts(){return Qa()?ev:void 0}},cde={foldable:!0},dde=e=>ry(e)??$2(e);function fde(e){return{...PH(vH(e),TH(e)),onCopyItem:EH(),openSettings:()=>e.show(xS)}}function pde(e,o){vN(e,o),UN()}var s7e={useOwnerName:Is,useDocumentLabel:y_,useBridges:ede,useStandaloneBridges:fde,useDocumentPass:pde,blockRules:tde,blockLook:ade,devices:sde,leftView:lde,pinned:ide,Canvas:rH,canvasDrag:{media:nH},Inspector:GD};export{Gt as a,Z as b,_o as c,o5 as d,gt as e,ol as f,Mde as g,yC as h,Hde as i,t5 as j,Wde as k,SC as l,Fc as m,wC as n,Gde as o,so as p,i5 as q,zde as r,Ude as s,jde as t,Kde as u,Dc as v,sr as w,se as x,K as y,PC as z,Qde as A,OC as B,tfe as C,rfe as D,xa as E,WC as F,lr as G,U as H,UC as I,yfe as J,Ye as K,ba as L,Tfe as M,Pfe as N,Efe as O,we as P,qC as Q,Ofe as R,_fe as S,ok as T,ak as U,G as V,Y as W,Uc as X,_ as Y,Xe as Z,Dr as _,M as $,Ao as aa,sl as ba,bt as ca,lo as da,il as ea,ne as fa,Mr as ga,Kc as ha,xh as ia,Ih as ja,sk as ka,ik as la,fk as ma,fpe as na,bh as oa,p4 as pa,u4 as qa,fl as ra,Ln as sa,ze as ta,hpe as ua,yh as va,Ro as wa,Yc as xa,bpe as ya,Ik as za,ype as Aa,Spe as Ba,Xc as Ca,Zc as Da,Bn as Ea,pl as Fa,I4 as Ga,Sh as Ha,k4 as Ia,kh as Ja,Tk as Ka,io as La,Lo as Ma,ko as Na,cl as Oa,Ek as Pa,ml as Qa,Ok as Ra,tue as Sa,rue as Ta,F4 as Ua,_k as Va,Rk as Wa,aue as Xa,nue as Ya,Fk as Za,vh as _a,D4 as $a,N4 as ab,H4 as bb,Dk as cb,ed as db,sue as eb,zo as fb,hl as gb,Ph as hb,Eh as ib,lue as jb,iue as kb,od as lb,cue as mb,xl as nb,Ah as ob,Rh as pb,due as qb,Mk as rb,qb as sb,Ue as tb,Ed as ub,iu as vb,NDe as wb,Qt as xb,er as yb,bo as zb,qDe as Ab,FAe as Bb,gp as Cb,pi as Db,ui as Eb,hA as Fb,BAe as Gb,xA as Hb,DAe as Ib,q9 as Jb,IA as Kb,NAe as Lb,bA as Mb,TN as Nb,VGe as Ob,hde as Pb,ae as Qb,i as Rb,Oo as Sb,PN as Tb,XGe as Ub,ho as Vb,I$ as Wb,fI as Xb,Kye as Yb,l0 as Zb,Yye as _b,vt as $b,S$ as ac,Zye as bc,Jye as cc,Qye as dc,eSe as ec,of as fc,oSe as gc,tf as hc,tSe as ic,rSe as jc,d0 as kc,f0 as lc,v$ as mc,T$ as nc,lSe as oc,cSe as pc,dSe as qc,fSe as rc,pSe as sc,p0 as tc,La as uc,R$ as vc,hSe as wc,L$ as xc,xSe as yc,co as zc,F$ as Ac,ISe as Bc,gSe as Cc,bSe as Dc,ySe as Ec,SSe as Fc,wSe as Gc,Jn as Hc,CSe as Ic,xZ as Jc,YA as Kc,XA as Lc,ZA as Mc,Cs as Nc,_p as Oc,tRe as Pc,yye as Qc,Bl as Rc,zP as Sc,Sye as Tc,wye as Uc,$P as Vc,Cye as Wc,Kd as Xc,tye as Yc,zz as Zc,DP as _c,rye as $c,aye as ad,MR as bd,hT as cd,Zhe as dd,$r as ed,w3 as fd,Jhe as gd,Qhe as hd,mx as id,exe as jd,oxe as kd,txe as ld,IT as md,ux as nd,k3 as od,rxe as pd,axe as qd,nxe as rd,sxe as sd,HR as td,cu as ud,zR as vd,nNe as wd,sNe as xd,Hl as yd,qt as zd,kl as Ad,dxe as Bd,fxe as Cd,fo as Dd,sn as Ed,Q as Fd,_s as Gd,re as Hd,oe as Id,de as Jd,ce as Kd,ye as Ld,ANe as Md,pe as Nd,As as Od,cy as Pd,Li as Qd,Fi as Rd,KR as Sd,BNe as Td,Doe as Ud,VR as Vd,MNe as Wd,HNe as Xd,qR as Yd,Noe as Zd,YR as _d,Moe as $d,Bi as ae,XR as be,zNe as ce,fy as de,jNe as ee,KNe as fe,VNe as ge,qNe as he,YNe as ie,XNe as je,gd as ke,QNe as le,eMe as me,ZR as ne,oMe as oe,zoe as pe,$oe as qe,tMe as re,Uoe as se,rMe as te,JR as ue,iMe as ve,cMe as we,dMe as xe,fMe as ye,pMe as ze,uMe as Ae,Voe as Be,qoe as Ce,mMe as De,hMe as Ee,xMe as Fe,IMe as Ge,gMe as He,bMe as Ie,yMe as Je,SMe as Ke,wMe as Le,Iu as Me,tL as Ne,nte as Oe,OMe as Pe,_Me as Qe,cn as Re,Bs as Se,d2e as Te,f2e as Ue,p2e as Ve,GL as We,zL as Xe,Gte as Ye,_2e as Ze,$L as _e,UL as $e,jL as af,L2e as bf,D2e as cf,Ou as df,KL as ef,Kte as ff,N2e as gf,QG as hf,kt as if,xbe as jf,Ibe as kf,gbe as lf,bbe as mf,Wd as nf,ybe as of,Xd as pf,Nl as qf,Aye as rf,Rye as sf,Lye as tf,qP as uf,YP as vf,XP as wf,Fye as xf,Me as yf,Re as zf,Oue as Af,Jk as Bf,ld as Cf,OR as Df,eHe as Ef,oHe as Ff,tF as Gf,tHe as Hf,rHe as If,as as Jf,Tl as Kf,LI as Lf,DI as Mf,Of as Nf,Ot as Of,Mke as Pf,Hke as Qf,Wke as Rf,Gke as Sf,_K as Tf,AK as Uf,zke as Vf,ns as Wf,MI as Xf,$ke as Yf,Uke as Zf,Vf as _f,ig as $f,cg as ag,cs as bg,za as cg,SPe as dg,Xl as eg,OO as fg,wPe as gg,gg as hg,CPe as ig,kPe as jg,vPe as kg,NV as lg,TPe as mg,GV as ng,zV as og,PPe as pg,EPe as qg,UV as rg,pF as sg,Ry as tg,gi as ug,G1 as vg,z1 as wg,bi as xg,k1 as yg,Hb as zg,ELe as Ag,en as Bg,Gb as Cg,P1 as Dg,E1 as Eg,zb as Fg,iQ as Gg,O1 as Hg,Wp as Ig,_1 as Jg,FHe as Kg,IF as Lg,BHe as Mg,DHe as Ng,NHe as Og,qi as Pg,Lu as Qg,UHe as Rg,kr as Sg,QHe as Tg,CF as Ug,e5e as Vg,vF as Wg,vr as Xg,yo as Yg,Bu as Zg,PF as _g,s5e as $g,Du as ah,EF as bh,f5e as ch,T5e as dh,WF as eh,Ky as fh,GF as gh,A5e as hh,R5e as ih,L5e as jh,Vy as kh,F5e as lh,B5e as mh,zF as nh,oB as oh,pn as ph,J5e as qh,Q5e as rh,e4e as sh,o4e as th,t4e as uh,Jre as vh,Gu as wh,I4e as xh,WI as yh,Jke as zh,GI as Ah,EE as Bh,P4e as Ch,SB as Dh,wB as Eh,K4e as Fh,zu as Gh,vB as Hh,TB as Ih,Z4e as Jh,pae as Kh,uae as Lh,mae as Mh,J4e as Nh,c6e as Oh,yae as Ph,Sae as Qh,FB as Rh,d6e as Sh,f6e as Th,_6e as Uh,tD as Vh,A6e as Wh,rD as Xh,L6e as Yh,$ae as Zh,fD as _h,G6e as $h,TD as ai,E$e as bi,H$e as ci,WS as di,W$e as ei,G$e as fi,_M as gi,V$e as hi,q$e as ii,NM as ji,Y$e as ki,MT as li,a_ as mi,u0e as ni,m0e as oi,w7 as pi,h0e as qi,x0e as ri,I0e as si,g0e as ti,C7 as ui,b0e as vi,y0e as wi,S0e as xi,w0e as yi,P7 as zi,C0e as Ai,Nle as Bi,GM as Ci,eUe as Di,uc as Ei,$M as Fi,Wr as Gi,cme as Hi,g6 as Ii,Jh as Ji,yl as Ki,dme as Li,ume as Mi,y6 as Ni,Ev as Oi,mme as Pi,Ca as Qi,v6 as Ri,yme as Si,Sme as Ti,Sl as Ui,wme as Vi,Cme as Wi,rx as Xi,Lv as Yi,_me as Zi,V_ as _i,ROe as $i,$g as aj,Va as bj,DOe as cj,NOe as dj,kY as ej,MOe as fj,ii as gj,Z_ as hj,J_ as ij,SUe as jj,US as kj,YM as lj,jM as mj,zS as nj,Kle as oj,wUe as pj,im as qj,mc as rj,CUe as sj,kUe as tj,vUe as uj,V4 as vj,gue as wj,q4 as xj,Y4 as yj,Sue as zj,X4 as Aj,Z4 as Bj,wue as Cj,Cue as Dj,kue as Ej,vue as Fj,ZM as Gj,hc as Hj,xc as Ij,fm as Jj,QM as Kj,Ks as Lj,e2 as Mj,pm as Nj,um as Oj,mm as Pj,o2 as Qj,t2 as Rj,r2 as Sj,a2 as Tj,n2 as Uj,i2 as Vj,c2 as Wj,JUe as Xj,QUe as Yj,eje as Zj,oje as _j,Ct as $j,fie as ak,h2 as bk,uie as ck,I2 as dk,g2 as ek,y2 as fk,Cie as gk,Eje as hk,j_ as ik,POe as jk,Nje as kk,Mje as lk,Oie as mk,Vie as nk,Jz as ok,qn as pk,vye as qk,cr as rk,$v as sk,Hv as tk,sx as uk,R6 as vk,Wme as wk,xd as xk,jv as yk,L6 as zk,F6 as Ak,B6 as Bk,$me as Ck,Ume as Dk,jme as Ek,Kme as Fk,Pye as Gk,Eye as Hk,Oye as Ik,jue as Jk,Yue as Kk,ZKe as Lk,gFe as Mk,W1 as Nk,ai as Ok,SOe as Pk,$_ as Qk,wOe as Rk,COe as Sk,kOe as Tk,VWe as Uk,XD as Vk,ZD as Wk,JD as Xk,x0 as Yk,Z$ as Zk,To as _k,Tt as $k,af as al,Fa as bl,MSe as cl,HSe as dl,GSe as el,zSe as fl,$Se as gl,USe as hl,jSe as il,VSe as jl,sf as kl,g0 as ll,mI as ml,Q$ as nl,b0 as ol,y0 as pl,Lme as ql,Nme as rl,Id as sl,bd as tl,Cl as ul,Xv as vl,the as wl,rhe as xl,tT as yl,cx as zl,b3 as Al,Ghe as Bl,mxe as Cl,Sxe as Dl,wxe as El,V3 as Fl,Uo as Gl,vl as Hl,Tx as Il,Px as Jl,tIe as Kl,FT as Ll,rIe as Ml,aIe as Nl,nIe as Ol,GT as Pl,$T as Ql,fr as Rl,ZT as Sl,wG as Tl,kge as Ul,sP as Vl,Age as Wl,iP as Xl,pP as Yl,uP as Zl,mP as _l,hP as $l,xP as am,IP as bm,zx as cm,GG as dm,zG as em,Al as fm,$x as gm,bP as hm,Qge as im,UG as jm,ebe as km,obe as lm,tbe as mm,SP as nm,sbe as om,VG as pm,lbe as qm,ibe as rm,YG as sm,Ux as tm,ZG as um,pbe as vm,JG as wm,ube as xm,Vx as ym,Ebe as zm,TP as Am,rz as Bm,_be as Cm,Rl as Dm,Iz as Em,Xbe as Fm,Kz as Gm,pye as Hm,qz as Im,uye as Jm,mye as Km,hye as Lm,Zn as Mm,Qd as Nm,Wye as Om,Gye as Pm,zye as Qm,a0 as Rm,Uye as Sm,Zr as Tm,yr as Um,Na as Vm,vCe as Wm,TCe as Xm,PCe as Ym,ECe as Zm,OCe as _m,_Ce as $m,ACe as an,BCe as bn,DCe as cn,pj as dn,NCe as en,MCe as fn,HCe as gn,WCe as hn,GCe as in,zCe as jn,$Ce as kn,UCe as ln,xj as mn,jCe as nn,kI as on,KCe as pn,If as qn,Ko as rn,gr as sn,Q0 as tn,Ol as un,eE as vn,bf as wn,VCe as xn,qCe as yn,Mj as zn,YCe as An,XCe as Bn,ZCe as Cn,JCe as Dn,QCe as En,eke as Fn,Bo as Gn,oke as Hn,tke as In,cf as Jn,Sf as Kn,wf as Ln,PI as Mn,kf as Nn,rke as On,rK as Pn,ake as Qn,aK as Rn,nke as Sn,ske as Tn,dE as Un,lke as Vn,ike as Wn,cke as Xn,dke as Yn,fke as Zn,pke as _n,AI as $n,uke as ao,pE as bo,uE as co,mke as do,ts as eo,IK as fo,hke as go,xke as ho,ORe as io,_Re as jo,Dp as ko,Fb as lo,XRe as mo,ZRe as no,w1 as oo,Qo as po,mi as qo,jX as ro,LA as so,b1e as to,y1e as uo,S1e as vo,w1e as wo,NA as xo,T1e as yo,P1e as zo,E1e as Ao,uO as Bo,mO as Co,cp as Do,L_ as Eo,F_ as Fo,D_ as Go,dp as Ho,rOe as Io,aOe as Jo,fp as Ko,hY as Lo,mOe as Mo,ri as No,gOe as Oo,z_ as Po,Dn as Qo,j4 as Ro,hue as So,xue as To,JBe as Uo,QBe as Vo,eDe as Wo,_Oe as Xo,pp as Yo,Tde as Zo,FK as _o,cve as $o,dve as ap,RE as bp,fve as cp,pve as dp,tg as ep,NO as fp,GPe as gp,zPe as hp,$Pe as ip,UPe as jp,r_ as kp,F0e as lp,B0e as mp,eA as np,SAe as op,lA as pp,Si as qp,KQ as rp,AFe as sp,MFe as tp,Kp as up,He as vp,nu as wp,Ft as xp,oN as yp,ec as zp,tN as Ap,rN as Bp,JWe as Cp,QWe as Dp,jN as Ep,BS as Fp,KN as Gp,L2 as Hp,fKe as Ip,xm as Jp,Hie as Kp,Wie as Lp,wKe as Mp,bde as Np,Cde as Op,s7e as Pp};
|