efficient-storefront-blocks 0.96.0 → 0.98.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 +53 -0
- package/dist/chunks/EditorPreviewCheckout-2FW4VEOK.js +4 -0
- package/dist/chunks/{SiteEditorProvider-JF3MS6J7.js → SiteEditorProvider-LW5QSBKM.js} +1 -1
- package/dist/chunks/chunk-4QN263UJ.js +412 -0
- package/dist/chunks/chunk-GOHV3G3C.js +1 -0
- package/dist/chunks/chunk-PWSMCGXO.js +1 -0
- package/dist/chunks/chunk-SEIKSSUW.js +1 -0
- package/dist/chunks/chunk-XEZ7BYVZ.js +1 -0
- package/dist/chunks/{fitment-data-KWJP5ZQB.js → fitment-data-BRGBDG7Y.js} +1 -1
- package/dist/consent.js +1 -1
- package/dist/contract.js +19 -3
- package/dist/editor/components/EditorPreviewCheckout.js +1 -1
- package/dist/editor/components/HeaderSettingsPanel.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/Collections/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/SpecTable/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/WheelDiagram/fields.d.ts +2 -0
- package/dist/editor/lib/document/blocks/commerce/WheelDiagram/fields.js +1 -0
- package/dist/editor/lib/document/blocks/commerce/index.d.ts +1 -1
- package/dist/editor/lib/document/blocks/commerce/index.js +1 -1
- package/dist/editor/lib/document/blocks/service/ContactCards/fields.js +1 -1
- package/dist/editor/lib/document/box-header-for-site.d.ts +5 -0
- package/dist/editor/lib/document/box-header-for-site.js +1 -1
- package/dist/editor/lib/document/box-header.d.ts +2 -0
- package/dist/editor/lib/document/box-header.js +1 -1
- package/dist/editor/lib/document/config.d.ts +1 -0
- package/dist/editor/lib/document/config.js +1 -1
- package/dist/editor/lib/efficient-block-sources.js +1 -1
- package/dist/editor/lib/header-settings-source.js +1 -1
- package/dist/editor/lib/storefront-editor-words.d.ts +3 -1
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/editor.css +1 -1
- package/dist/index.d.ts +12 -1
- package/dist/index.js +229 -66
- package/dist/links.js +1 -1
- package/dist/render/app/globals.css +7 -4
- package/dist/render/built-with.json +1 -1
- package/dist/render/components/BundleCard.js +1 -1
- package/dist/render/components/CollectionCard.d.ts +3 -0
- package/dist/render/components/CollectionCard.js +1 -1
- package/dist/render/components/Collections.d.ts +2 -1
- package/dist/render/components/Collections.js +1 -1
- package/dist/render/components/CompatibleTyres.js +1 -1
- package/dist/render/components/ContactRouting.d.ts +6 -0
- package/dist/render/components/ContactRouting.js +1 -1
- package/dist/render/components/CountrySelect.js +1 -1
- package/dist/render/components/FooterGroup.js +1 -1
- package/dist/render/components/FooterLogo.js +1 -1
- package/dist/render/components/FooterPayment.js +1 -1
- package/dist/render/components/FooterSection.js +1 -1
- package/dist/render/components/FooterSocial.js +1 -1
- package/dist/render/components/FooterText.js +1 -1
- package/dist/render/components/GridCardTemplate.js +1 -1
- package/dist/render/components/Header.js +1 -1
- package/dist/render/components/ProductCard.js +1 -1
- package/dist/render/components/ProductHeroPanel.d.ts +3 -1
- package/dist/render/components/ProductHeroPanel.js +1 -1
- package/dist/render/components/SpecTable.d.ts +2 -1
- package/dist/render/components/SpecTable.js +1 -1
- package/dist/render/components/WheelCardFrame.d.ts +3 -10
- package/dist/render/components/WheelCardFrame.js +1 -1
- package/dist/render/components/WheelDiagram.d.ts +16 -0
- package/dist/render/components/WheelDiagram.js +1 -0
- package/dist/render/components/card-pieces/CardName.js +1 -1
- package/dist/render/components/card-pieces/CardPrice.js +1 -1
- package/dist/render/components/card-pieces/CardSurfaceFrame.d.ts +12 -0
- package/dist/render/components/card-pieces/CardSurfaceFrame.js +1 -0
- package/dist/render/components/card-pieces/ProductCardState.d.ts +1 -0
- package/dist/render/components/card-pieces/ProductCardState.js +1 -1
- package/dist/render/components/card-pieces/card-row.js +1 -1
- package/dist/render/components/catalog/CatalogFilterBar.js +1 -1
- package/dist/render/components/catalog/ShopperChips.d.ts +7 -4
- package/dist/render/components/catalog/ShopperChips.js +1 -1
- package/dist/render/components/catalog/ShopperFilters.d.ts +1 -0
- package/dist/render/components/catalog/ShopperFilters.js +1 -1
- package/dist/render/components/checkout/CheckoutPageClient.js +1 -1
- package/dist/render/components/checkout/checkout-parts.js +1 -1
- package/dist/render/components/checkout/checkout-state.d.ts +5 -0
- package/dist/render/components/checkout/checkout-state.js +3 -3
- package/dist/render/components/pdp-dynamic/DynamicSpecTable.d.ts +3 -0
- package/dist/render/components/pdp-dynamic/DynamicSpecTable.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicWheelDiagram.d.ts +6 -0
- package/dist/render/components/pdp-dynamic/DynamicWheelDiagram.js +1 -0
- package/dist/render/components/pdp-dynamic/KindGate.d.ts +2 -1
- package/dist/render/components/pdp-dynamic/KindGate.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpFacetRows.d.ts +6 -4
- package/dist/render/components/wheels-plp/PlpFacetRows.js +1 -1
- package/dist/render/components/wheels-plp/PlpSidebar.d.ts +19 -14
- package/dist/render/components/wheels-plp/PlpSidebar.js +1 -1
- package/dist/render/components/wheels-plp/PlpTypePicker.d.ts +2 -5
- package/dist/render/lib/api/index.d.ts +6 -1
- package/dist/render/lib/api/index.js +1 -1
- package/dist/render/lib/api/types.d.ts +28 -0
- package/dist/render/lib/checkout/pay-first.d.ts +1 -0
- package/dist/render/lib/checkout/pay-first.js +1 -1
- package/dist/render/lib/consent/rules.js +1 -1
- package/dist/render/lib/content/collection-card-look.d.ts +13 -0
- package/dist/render/lib/content/collection-card-look.js +1 -0
- package/dist/render/lib/content/contact-card-seed.js +1 -1
- package/dist/render/lib/content/facet-row-seed.d.ts +14 -0
- package/dist/render/lib/content/facet-row-seed.js +1 -1
- package/dist/render/lib/content/filter-card-seed.js +1 -1
- package/dist/render/lib/content/hero-option-seed.js +1 -1
- package/dist/render/lib/content/square-box.d.ts +4 -0
- package/dist/render/lib/content/square-box.js +1 -0
- package/dist/render/lib/countries.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Collections/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/commerce/Collections/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/Collections/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.d.ts +4 -0
- package/dist/render/lib/document/blocks/commerce/FilterBlock/meta.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FilterBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FilterChipsBlock/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/ProductHero/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/WheelDiagram/meta.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/WheelDiagram/meta.js +1 -0
- package/dist/render/lib/document/blocks/commerce/WheelDiagram/render.d.ts +2 -0
- package/dist/render/lib/document/blocks/commerce/WheelDiagram/render.js +1 -0
- package/dist/render/lib/document/blocks/commerce/metas.d.ts +1 -0
- package/dist/render/lib/document/blocks/commerce/metas.js +1 -1
- package/dist/render/lib/document/blocks/commerce/renders.d.ts +1 -0
- package/dist/render/lib/document/blocks/commerce/renders.js +1 -1
- package/dist/render/lib/document/blocks/service/ContactRouting/render.js +1 -1
- package/dist/render/lib/document/card-templates.d.ts +2 -0
- package/dist/render/lib/document/card-templates.js +1 -1
- package/dist/render/lib/document/current-record.js +1 -1
- package/dist/render/lib/document/lazy-draws.js +1 -1
- package/dist/render/lib/document/render-config.d.ts +4 -0
- package/dist/render/lib/document/render-config.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-collections.d.ts +1 -0
- package/dist/render/lib/document/section-to-box-rows-collections.js +1 -0
- package/dist/render/lib/document/section-to-box-rows-detail.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-listing.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-reviews.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-service.js +1 -1
- package/dist/render/lib/document/section-to-box-rows-spec.js +1 -1
- package/dist/render/lib/document/template-product-kind.d.ts +1 -0
- package/dist/render/lib/document/template-product-kind.js +1 -1
- package/dist/render/lib/next-fonts.js +1 -1
- package/dist/render/lib/sections/gallery-toolbar.js +1 -1
- package/dist/render/lib/storefront-page-groups.js +1 -1
- package/dist/render/lib/wheels/fitments.js +1 -1
- package/dist/render/lib/wheels/price-display.d.ts +5 -1
- package/dist/render/lib/wheels/price-display.js +1 -1
- package/dist/render/lib/wheels/wheel-specs.js +1 -1
- package/dist/words.d.ts +20 -1
- package/dist/words.js +4 -4
- package/package.json +5 -4
- package/dist/chunks/EditorPreviewCheckout-BXTY7X47.js +0 -4
- package/dist/chunks/chunk-KJQS4BOV.js +0 -1
- package/dist/chunks/chunk-KNUGQTUV.js +0 -1
- package/dist/chunks/chunk-QNBU3FGY.js +0 -1
- package/dist/chunks/chunk-YCB5WS3U.js +0 -1
- package/dist/chunks/chunk-Z2TVM6MN.js +0 -389
- package/dist/render/components/ProductCardChrome.d.ts +0 -38
- package/dist/render/components/ProductCardChrome.js +0 -1
- /package/dist/chunks/{chunk-Z2TVM6MN.js.LEGAL.txt → chunk-4QN263UJ.js.LEGAL.txt} +0 -0
|
@@ -1,389 +0,0 @@
|
|
|
1
|
-
import{$a as wc,$b as Ho,Cd as _c,Dc as Hw,Ec as Bm,F as Er,Fa as pw,Fc as Ww,Ga as uw,Gc as Dm,Ha as Em,Hb as pa,Hc as Gw,Hd as On,I as Cn,Ia as to,Ic as zw,J as St,Ja as mw,Jb as Ew,Jc as $w,Jd as _r,K as Xs,Ka as hw,Kc as Pc,La as kn,Lb as Ow,Ld as Ar,Ma as Mo,Mc as Uw,Md as Ac,Nb as _w,Oa as vn,Ob as Aw,Od as eC,Pa as Tn,Pb as Rw,Qb as Lw,Sa as xw,Sb as $t,Sd as oC,T as da,Tb as Fw,Tc as Nm,Ud as tC,V as wm,Va as Zs,W as Cm,Wb as Bw,Xa as Iw,Xb as Ut,Y as yc,Ya as Om,Yb as Lm,Yd as xe,a as yt,ab as gw,ac as ke,ae as sC,b as Sn,ba as km,bb as bw,bc as Dw,be as lC,c as rw,ca as Sc,cb as yw,cc as Nw,cd as jw,d as nr,da as lw,db as Cc,dc as Js,dd as Kw,de as Rc,e as bm,ea as iw,eb as Sw,ec as Xo,ed as Vw,ee as iC,f as wn,fa as cw,fb as ww,fc as Qs,fe as cC,ga as vm,gc as vc,ha as dw,hb as Cw,hc as Pn,hd as qw,ib as _m,ic as Fm,id as Yw,j as qs,kb as kw,kc as Tc,kd as Xw,l as Ys,lb as tt,mb as fa,md as En,n as ym,nb as vw,nd as Zw,ob as zt,pb as kc,pd as Ec,q as No,qd as Jw,r as aw,rc as Mw,s as nw,sb as Tw,ta as fw,tb as Am,u as sw,ua as Tm,ud as Qw,w as Sm,wb as Pw,wd as Oc,xb as Rm,ya as Or,za as Pm}from"./chunk-QNBU3FGY.js";import{d as rC,e as Rr,f as aC,g as nC,j as _n,n as Mm}from"./chunk-KNUGQTUV.js";var Z=e=>typeof e=="string"&&e?e:void 0;var fC="en",Lc=null,pC=fC,uC=null;function ide(e,o,t){Lc=e??null,pC=o||fC,uC=t??null}function ne(){return uC}function Hm(){return pC}function mC(){return Lc}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=Lc?Lc[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 Wm,Fragment as jH,jsxs as KH}from"react/jsx-runtime";import{createContext as VH,useContext as qH}from"react";var YH={mirrorHostStyles:!0,css:null,fontHrefs:[]},hC=VH(YH);function pde({value:e,children:o}){return Wm(hC.Provider,{value:e,children:o})}function Gm(){return qH(hC)}function xC(){let{css:e,fontHrefs:o}=Gm();return KH(jH,{children:[o.map(t=>Wm("link",{rel:"stylesheet",href:t},t)),e?Wm("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as XH}from"react/jsx-runtime";import{createContext as ZH,useContext as JH}from"react";var IC=ZH(void 0);function xde({metadata:e,children:o}){return XH(IC.Provider,{value:e,children:o})}var gC=()=>JH(IC);import{jsx as uo,Fragment as kH,jsxs as gc}from"react/jsx-runtime";import{useCallback as js,useEffect as rr,useRef as Bce,useState as yH}from"react";import{SettingsSwitch as Dce}from"efficient-easel/panel";import{PagesIcon as Nce,StylesIcon as Mce}from"efficient-easel/rail";import{PaletteIcon as Hce}from"efficient-shell/icons/efficient";import{Subtree as Wce,TreeRow as vH}from"efficient-easel/tree";import{useEasel as TH}from"efficient-easel/easel";import{useEaselStrings as PH}from"efficient-easel/strings";import{createContext as QH,useContext as e5}from"react";var zm=QH(!1),bde=()=>e5(zm);import{useMemo as o5,useRef as t5}from"react";import{useEaselApi as r5}from"efficient-easel/easel";import{useSectionOps as a5}from"efficient-easel/screen/lib/document/use-section-ops";function Fc(){let e=r5(),o=a5(),t=t5(o);return t.current=o,o5(()=>({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 pV}from"efficient-easel/draw";import{insertAt as uV,moveTo as mV,removeAt as hV}from"efficient-easel/fields";function jt(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 jt("efficient.slot-field-blocks",()=>new Set)}var _o="dataSource",sr="dataSourceOptions",n5="dataRows",wt="countKey",ol="counts",Ade="location-payment-methods",yC="shop-payment-methods",Rde="delivery-options";function s5(e){return typeof e.open=="function"}var l5=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function tl(){return jt("efficient.block-sources",()=>({sources:new Map,revision:0}))}var i5=e=>[e?.key,e?.label,e?.value].every(o=>typeof o=="string"&&o.trim()!==""),c5=e=>[e?.key,e?.label].every(o=>typeof o=="string"&&o.trim()!==""),bC=e=>typeof e=="string"&&e.trim()!=="";function d5(e){if(!e||!bC(e.label))return null;if(s5(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 f5(e){if(typeof e.key!="string"||!l5.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=d5(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(i5)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(c5).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 Lde(e){let o=e.map(f5),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 Bc(e){return tl().sources.get(e)??null}function wC(e){return tl().sources.get(e)?.choices??[]}function Fde(){return tl().revision}function no(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 p5(e){let o=e?.[n5];return Array.isArray(o)?o.map(CC).filter(t=>t!==null):null}function Bde(e,o,t=[]){let r=p5(e);if(r!==null&&(r.length||!o))return{rows:r,sample:!1};if(!o)return{rows:[],sample:!1};let a=Bc(no(e))?.sample;return{rows:a?.length?a:t,sample:!0}}import{isNodeList as F4}from"efficient-easel/data";var kC=["general","commerce","service"],Lr=[{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 Nde(){return Object.fromEntries(Lr.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var u5="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 ${u5}). 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.'}},$m=Object.fromEntries(Object.entries(vC).map(([e,o])=>[e,o.note])),Mde=["Grid","Spacer","TyreFitment"],Hde=Array.from(new Set([...Lr.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys($m)])),m5=Object.fromEntries(Object.entries(vC).map(([e,o])=>[e,o.label])),Nc={...m5,...Object.fromEntries(Lr.flatMap(e=>e.sections.map(o=>[o.type,o.label])))},h5={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"},Dc={...h5,...Object.fromEntries(Lr.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function TC(e){return Object.prototype.hasOwnProperty.call(Dc,e)?Dc[e]:void 0}function Um(e){return Object.keys(Dc).filter(o=>Dc[o]===e).sort()}var Wde=Um("general"),Gde=Um("commerce"),zde=Um("service"),jm="Flex",lr="Box",$de=`${lr}es`;function x5(e){return e==="section"?"Blank section":lr}function Km(e,o,t){return e===jm?x5(o):t}var se="content",K="Flex",I5="Text & media",g5="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"}],b5=[...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:I5})),y5=(Lr.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:g5})),PC=[...b5,...y5],Vm=[...EC,{type:"HeroGroup",label:lr}],Kde=Vm.map(e=>e.type),S5=1,w5=Vm.filter(e=>e.type!=="HeroGroup");function C5(e){return e<S5?Vm:w5}var k5={Flex:{slot:se,choices:()=>PC},Grid:{slot:se,choices:()=>PC},HeroGroup:{slot:se,choices:C5}};function OC(e,o=0){let t=k5[e];return t?{slot:t.slot,choices:t.choices(o)}:null}import{applyMark as Qde,markupTools as efe,MARKUP_TOOLS as ofe,COPY_FIELD_TOOLS as tfe,STOREFRONT_MARKUP as rfe,tokenizeInline as afe,stripInline as nfe,isSafeLinkHref as DC}from"efficient-shell/markup";import{applyMark as N5,clearStyle as M5,markedAt as H5,markupTools as W5,MARKUP_TOOLS as G5,parseMarkup as z5,RETIRED_MARKS as $5,STOREFRONT_MARKUP as U5,tokenizeInline as lfe}from"efficient-shell/markup";var ua=["highlight","strong","quiet"],ma={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},Kt={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},LC=Object.fromEntries(ua.map(e=>[Kt[e].kind,e])),FC="data-sf-ws",v5=["accent","text","labels"],Fr={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},T5=80,P5=120,E5=100,O5=900,_5=.5,A5=3,R5=-.1,L5=.5,F5=3,qm={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},B5={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**F5;return Math.round(Math.min(Math.max(e,o),t)*r)/r}function RC(e){return typeof e=="boolean"?e:null}function D5(e){let o=typeof e?.font=="string"&&yt.some(r=>r.key===e.font)?e.font:null,t=typeof e?.colour=="string"&&v5.includes(e.colour)?e.colour:null;return{font:o,size:_C(e?.size,T5,P5),weight:_C(e?.weight,E5,O5),bold:RC(e?.bold),italic:RC(e?.italic),lineGap:AC(e?.lineGap,_5,A5),textGap:AC(e?.textGap,R5,L5),colour:t}}function BC(e){let o={};for(let t of ua)o[t]=e&&t in e&&e[t]?D5(e[t]):{...B5[t]};return o}function Yde(e){let o=BC(e),t={};for(let r of ua){let a=o[r],n=`--sf-ws-${r}`;if(a.font){let s=yt.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`]=Fr[a.colour])}return t}function Xde(e){let o=e?.word_styles??void 0,t={};for(let r of ua)o&&r in o&&(t[r]=o[r]??null);return BC(t)}var j5=new Set(["strong"]),NC=ua.map(e=>({open:Kt[e].delimiter,close:Kt[e].delimiter,kind:Kt[e].kind,...j5.has(e)?{wordStart:!0}:{}})),cfe=[{style:Kt.highlight.kind,label:ma.highlight,title:`${ma.highlight} word style`},{style:Kt.strong.kind,label:ma.strong,title:`${ma.strong} word style`},{style:Kt.quiet.kind,label:ma.quiet,title:`${ma.quiet} word style`}],K5=new Set(NC.map(e=>e.open)),ha=[...U5.filter(e=>!K5.has(e.open)),...NC];function Ym(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function rl(e){return z5(typeof e=="string"?e:"",ha)}var V5=G5.map(e=>e.style).filter(e=>!$5.includes(e)).filter(e=>ha.some(o=>o.kind===e));function MC(){return W5(V5)}var HC=Object.fromEntries(ua.map(e=>[Kt[e].kind,Kt[e].delimiter]));function WC(e,o,t,r){let a=HC[r];if(!a)return N5(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:H5(e,o,t,r)}function xa(e){return e.replace(/==(.+?)==/g,(o,t)=>t.startsWith("_")&&t.endsWith("_")?o:`==_${t}_==`)}function ir(e){return rl(e).map(o=>Ym(o)+$C(o.children)).join(`
|
|
58
|
-
`)}function zC(e,o,t){return M5(e,o,t,ha)}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 Vt={min:0,max:360,step:1},UC="angle";function ufe(e){let o=U(e);if(o===void 0)return null;let t=Math.min(Vt.max,Math.max(Vt.min,o));return t===Vt.min||t===Vt.max?null:{rotate:`${t}deg`}}import{MEDIA_ZONES as q5,MEDIA_ZONE_LABELS as Y5}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as X5,hoverKindsOf as Hc,motionSeconds as Mc}from"efficient-shell/format";var qe="hover",ga="_gHover",ba={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},qt="highlight",Zm="Highlight",Jm=["none",qt],Qm={none:ba.none,[qt]:Zm};function Z5(e){return e[qe]===qt?qt:"none"}var bfe="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)]",yfe="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 Sfe(e,o){return Z5(e)!==qt?null:{"--sf-hl-bg":o("surface"),"--sf-hl-ink":o("main")}}var Wc=Hc(["none","lift"]);function KC(e){let o=e[qe];return Wc.includes(o)?o:"none"}var Gc=Hc(["none","nextImage","rotate"]),we={kind:qe,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},al="spinOnHover",jC=Vt,VC={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},qC=Object.keys(VC);function eh(e){return VC[e]??"none"}var oh=X5.rotateFallbackDeg,J5=e=>e==="rendering"?"renderings":e,Q5=e=>e==="renderings"?"rendering":e,zc=Object.freeze(q5.filter(e=>e!=="videos").map(J5)),YC=Object.freeze(Object.fromEntries(zc.map(e=>[e,Y5[Q5(e)]]))),th=["finish","first"],XC={finish:"Same finish",first:"First group"},rh=["card","picture"],ZC={card:"Whole card",picture:"Picture"},Ia={kind:"photos",group:"finish",cover:"card"},Xm=(e,o,t)=>e.includes(o)?o:t;function JC(e){return{kind:Xm(zc,e[we.mediaKind],Ia.kind),group:Xm(th,e[we.mediaGroup],Ia.group),cover:Xm(rh,e[we.cover],Ia.cover)}}function ah(){return{field:we.kind,is:"nextImage"}}function nh(e,o){let t=e[we.kind];if(Gc.includes(t))return t;let r=e[al];return typeof r=="boolean"?r?"rotate":"none":o}function sh(e){let o=U(e);return o===void 0?oh:Math.min(jC.max,Math.max(jC.min,o))}function wfe(e,o){let t=eh(o),r=nh(e,t);return{kind:r,angle:r==="rotate"?sh(e[we.angle]):null,duration:Mc("hover","duration",r==="rotate"?e[we.duration]:void 0),delay:Mc("hover","delay",r==="rotate"?e[we.delay]:void 0),...r==="nextImage"?{media:JC(e)}:{}}}function QC(e){let o={field:we.kind,in:[...Gc]};return{any:[{field:we.kind,is:"rotate"},{all:[{not:o},e==="rotate"?{not:{field:al,is:!1}}:{field:al,is:!0}]}]}}var $c=Hc(["none","mono"]),lh=Hc(["none","nextImage","mono"]),ek={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},Cfe=Object.keys(ek);function ih(e){return ek[e]??"none"}var nl={zoom:"hoverZoom",darken:"hoverDarken"},cr={min:100,max:150,step:1,unit:"%"};function e4(e){let o=U(e[nl.zoom]);if(o===void 0)return null;let t=Math.min(cr.max,Math.max(cr.min,o));return t===cr.min?null:String(t/100)}function o4(e){let o=U(e[nl.darken]);return o!==void 0&&o>0?o:null}var Uc=["ImageBlock"];function ch(e,o,t=$c){let r=e[qe];return t.includes(r)?r:o}function ok(e,o=""){let t=Uc.includes(o)?lh:$c,r=ch(e,ih(o),t),a=r==="mono";return{kind:r,duration:Mc("hover","duration",a?e[we.duration]:void 0),delay:Mc("hover","delay",a?e[we.delay]:void 0),...r==="nextImage"?{media:JC(e)}:t4(e)}}function t4(e){let o=e4(e),t=o4(e);return{...o?{zoom:o}:{},...t?{darken:t}:{}}}function tk(){return{not:{field:qe,is:"nextImage"}}}function dh(e){return e==="none"?{field:qe,in:["mono","nextImage"]}:{not:{field:qe,is:"none"}}}function rk(e){return e==="none"?{field:qe,is:"mono"}:{not:{field:qe,in:["none","nextImage"]}}}var ak={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:Efe,tag:Ofe,...r4}=ak.defaultProps,G=r4,Y={...G,tone:"dim"},jc={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},_={...jc,direction:"column",...Xs},Ye=(e,o=e,t=e,r=o)=>({sectionPaddingTop:e,sectionPaddingRight:o,sectionPaddingBottom:e,sectionPaddingLeft:o,sectionPaddingTopPhone:t,sectionPaddingRightPhone:r,sectionPaddingBottomPhone:t,sectionPaddingLeftPhone:r}),Br=e=>({fillColor:e}),Kc=(e,o,t={})=>({..._,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...Br(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}),Ct=(e,o)=>({...Ao,...sl(e,o)});function so(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]=so(c,o,n);return{type:r.type,props:{...s,id:o(r.type,n)}}})}var Dr=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),kt=()=>({_partStyles:{text:{...Ao,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var a4={..._,gap:12,gapPhone:12,...Ye(32,32,28,28)},n4={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},ae=(e,o,t,r=!1)=>({type:"Text",props:{...o,text:"",[ko]:e,_partStyles:{text:{...r?kt()._partStyles?.text??{}:{},...t}}}}),Nr={title:"title",body:"body"},Vc={title:"name",body:"note"},fh=(e=Nr)=>({type:K,props:{...a4,name:"Card"},slots:{[se]:[ae(e.title,{...G,tag:"p",widthFit:"fill"},n4),ae(e.body,{...Y,tag:"p",widthFit:"fill"},il)]}}),qc=(e,o)=>so([fh(o)],e),ll={label:Nr.title,href:"href"},s4={textStyle:"body-1",fontRole:"heading",color:"text",...M("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},l4=Kc(9,"main",{[UC]:45}),ph=(e=!1)=>({type:K,props:{..._,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...Ye(32,28),[cl]:ll.href,...e?{[qe]:qt}:{}},slots:{[se]:[{type:K,props:{...l4,name:"Mark"}},ae(ll.label,{...G,tag:"p",widthFit:"fill"},s4)]}}),sk=e=>(o,t)=>t==="0"?`${e}~card`:`${e}~card.${t.slice(2)}`,lk=(e,o=!1)=>so([ph(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=no(o)?Vc:Nr;return{...o,template:qc(r,a)}}var i4=e=>{let[o,t]=e?[Nr,Vc]:[Vc,Nr];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=i4(!!no(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 c4="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]:[ae(c4,{...G,tag:"p"},il)]}};return{...e,template:so([t],(r,a)=>a==="0"?`${o}~item`:`${o}~item.${a.slice(2)}`)}}var dl="ArticleBody",d4={textStyle:"heading-3",...M("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},f4={...il,align:"center"},pk=640,p4=()=>[ae("heading",{...G,tag:"h2",align:"center",maxWidth:pk},d4),ae("paragraph",{...Y,tag:"p",align:"center",maxWidth:pk},f4)],uh=e=>so(p4(),e);function u4(e){return uh((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:u4(o)}}var m4="label",Yc=()=>({type:"LogoBlock",props:{[ko]:m4}}),mk=e=>{let o=Z(e.id)??"Logos";return{...e,template:so([Yc()],()=>`${o}~logo`)}};function hk(e){return!no(e)||e.template!==void 0?e:mk(e)}function ape(e){if(!no(e))return e;let o=e.template;return o!==void 0&&!(Array.isArray(o)&&o.length===0)?e:mk(e)}import{addShowWhenFacts as h4}from"efficient-shell/format";import{showWhenOf as mh,shownForOption as x4,truthy as I4,withRowRules as fl,withRowsShownWhen as An,withShowWhen as Ge}from"efficient-shell/format";var ipe=h4;function pl(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 g4="inline",b4=[{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"}},Rn="SectionHeader";function xk(e){return e in Ro}function Xc(e){return No(b4,g4,e)}var y4=new Set(["Flex"]);function ppe(e){return!!e?.type&&y4.has(e.type)}var Ik={not:{field:"headPlacement",is:"own-box"}},upe={not:Ik};function mpe(e,o,t){return An(e,t,Ik)}var Zc="data-sf-spec-region";function gk(e){return e.writable===!0&&e.sized===!0}function Jc(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 Ln(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 ul(e){return`@${e}`}function ml(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function S4(e,o){return o&&o in e?o:null}var hh={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=hh;var w4="question",C4="answer",k4={textStyle:"body-1",fontRole:"heading",...M("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},v4={textStyle:"body-1",...M("body",15),lineHeight:1.7};function yk(){return Object.keys(hh).map(ul)}var xh=()=>({type:K,props:{..._,gap:0,name:"Question"},slots:{rowTitle:[ae(w4,{...G,tag:"p",widthFit:"fill"},k4)],[se]:[ae(C4,{...Y,tag:"p",widthFit:"fill",maxWidth:760},v4)]}});function T4(e){return Xc(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(o=>Z(e[o])!==void 0)}function Sk(e){if(e.template!==void 0||T4(e))return e;let o=Z(e.id)??"FAQ",t=0;return{...e,template:so([xh()],r=>r===K?`${o}~row`:`${o}~row.${t++}`)}}var P4=["below","left","right"];function E4(e){return P4.includes(e)?e:"below"}function wk(e){return E4(e)!=="below"}function Ih(e){return Array.isArray(e)?e.map(Ih):!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,Ih(t)]))}var gh=e=>JSON.stringify(Ih(e));var Qc=sl(11),O4={textStyle:"body-1",...M("body",18),weight:500,lineHeight:1.2},kk=()=>({type:K,props:{..._,gap:8,gapPhone:8,...Ye(20,24,20,20),name:"Office"},slots:{[se]:[ae("badge",{...G,tag:"p",widthFit:"fill"},Qc,!0),ae("role",{...G,tag:"p",widthFit:"fill"},Qc,!0),ae("city",{...G,tag:"p",widthFit:"fill"},O4),ae("country",{...Y,tag:"p",widthFit:"fill"},Qc),ae("address",{...Y,tag:"p",widthFit:"fill"},Qc),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[ko]:"linkLabel",[cl]:"href"}}]}}),_4={textStyle:"body-1",fontRole:"heading",...M("body",16),weight:500,lineHeight:1.25},Ck={textStyle:"body-1",...M("body",14),lineHeight:1.5},A4=()=>({type:K,props:{..._,gap:4,gapPhone:4,...Ye(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[se]:[ae("city",{...G,tag:"p",widthFit:"fill"},_4),ae("address",{...Y,tag:"p",widthFit:"fill"},Ck),ae("phone",{...Y,tag:"p",widthFit:"fill"},Ck)]}});function vk(e){let o=Z(e.id)??"Footprint",t=0;return so([A4()],r=>r===K?`${o}~office`:`${o}~office.${t++}`)}function R4(e){return Array.isArray(e.template)&&e.template.length>0&&gh(e.template)===gh(vk(e))}var L4=e=>e===void 0||Array.isArray(e)&&e.length===0;function Tk(e){return wk(e.listPosition)?!L4(e.template)||e.source==="dealers"?e:{...e,template:vk(e)}:R4(e)?{...e,template:[]}:e}var lo="template",B4="Card template",Lo="CardList",Pk=["Text","ImageBlock","ButtonBlock","Flex"],ko="rowField",cl="rowLinkField";function Ek(){return{type:"slot",allow:[...Pk]}}var D4=Pk.filter(e=>e!=="ButtonBlock"),hl="items",Ok="itemFields";function Ype(){return{type:"slot",allow:[...D4]}}var N4=[{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:hl,seed:e=>fk(e)},{block:dl,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>uk(e)}];function Wo(){return jt("efficient.card-templates",()=>new Map(N4.map(e=>[e.block,e])))}function Xpe(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);Wo().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 M4(e,o){let t=e?Wo().get(e)?.seed:void 0;return t?t(o):o}function _k(e,o){let t=bh(e),r=(t.length?t:[lo]).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?Wo().get(e)?.seedOnInsert:void 0,s=n?n(a):M4(e,a);return s===a?o:s}function Ak(){for(let e of Wo().values())if(e.blocks?.length)return!0;return!1}function Rk(e){return Wo().get(e)?.blocks??[]}function Zpe(e){for(let o of Wo().values())if(o.blocks?.some(t=>t.type===e))return!0;return!1}function Lk(e){return typeof e=="string"&&Wo().get(e)?.typedRows||""}function Jpe(e){return typeof e=="string"&&Wo().get(e)?.linesBetween===!0}function Fk(e){return typeof e=="string"&&Wo().has(e)}var H4=[{slot:lo}];function ed(e){if(typeof e!="string")return[];let o=Wo().get(e);return o?o.slots??H4:[]}function bh(e){return ed(e).map(o=>o.slot)}function W4(e,o){return ed(e).some(t=>t.slot===o)}function Bk(e,o){let t=ed(e).find(r=>r.slot===o);return t?t.label??B4:null}function yh(e,o){return o?ed(e).find(t=>t.slot===o)?.fields:void 0}function G4(e,o){let t=Wo().get(e)?.fields??[];return o?t.filter(r=>(r.kind??"text")===o):t}function z4(e,o){if(typeof e!="string")return"";let t=yh(e,o);return(t?t.filter(r=>r.kind==="list"):G4(e,"list"))[0]?.key??""}function $4(e,o,t){return Go(e)||z4(o,t)}function Dk(e,o,t){let r=typeof e?.type=="string"?e.type:"";if(!r)return[];let a=yh(r,t);if(a)return o?a.filter(c=>(c.kind??"text")===o):a;let n=Wo().get(r)?.fields??[],s=Bc(no(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 U4(e,o,t,r){if(!e)return null;let a=yh(e,r);return a?a.find(n=>n.key===o)??null:t?Dk(t).find(n=>n.key===o)??null:Wo().get(e)?.fields.find(n=>n.key===o)??null}function od(e,o){return!e||!o?null:e.fields?.find(t=>t.key===o)??U4(e.ownerType,o,e.owner,e.slot)}function Qpe(e,o){return od(e,o)?.plain===!0}function Go(e,o=ko){let t=e?.[o];return typeof t=="string"?t.trim():""}function xl(e,o){return e.key||String(o+1)}function Sh(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 wh="hideWhenRowEmpty";function eue(e,o){let t=e[wh];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 j4=new Set(["ButtonBlock.label","LogoBlock.alt"]);function oue(e,o,t){return Ch(e,o,t)&&!j4.has(`${e}.${t}`)}function Ch(e,o,t){return kh(e,o,t)!==""}function kh(e,o,t){let r=Nk[e]?.[t];return r?Go(o,r):""}function td(e,o){return!o||!e?null:e[o]??""}function tue(e,o,t,r,a,n){if(!t)return o;let s=null;for(let[l,c]of Object.entries(Nk[e]??{})){let d=Go(o,c),f=td(t,d);f!==null&&(s??={...o},s[l]=od({ownerType:r,fields:a,slot:n},d)?.mark==="accentItalic"?xa(f):f)}return s??o}function rd(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(!F4(d))continue;let f=W4(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 Il(e,o){let t=rd(e,o);return t&&t.owner}function vh(e,o){let t=rd(e,o);return t&&t.slot}function Th(e,o){let t=rd(e,o);return t&&(t.direct?t.owner:null)}function rue(e,o){let t=rd(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=Il(e,o.props?.id);if(!r){let l=Bc(no(o.props))?.fields,c=l?.length?l.map(u=>({...u})):K4(o.props),d=(Wo().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=vh(e,o.props?.id)??void 0,n=$4(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 ad(e,o){return{[ko]:"",[hl]:e.map(t=>({...t})),[Ok]:o.map(t=>({...t}))}}function K4(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 nV}from"react";import{isNodeList as nd}from"efficient-easel/data";var Hk="Flex";function Fn(e,o){return Go(e)?typeof e?.[wt]=="string"?Ph(o?.[wt]):"":Ph(e?.[wt])}var Ph=e=>typeof e=="string"?e.trim():"",V4=e=>e.type===Lo&&Array.isArray(e.props?.[hl])&&e.props[hl].some(o=>Ph(o?.[wt])!==""),q4=new Intl.NumberFormat("en-US");function Y4(e){return/^\d+$/.test(e)?q4.format(Number(e)):e}function iue(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:Y4(t)}var X4={[wt]:"any"};function Eh(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(Fn(t)!==""||o&&Fn(t,X4)!==""),a=o||V4(e),n=t;for(let[l,c]of Object.entries(t)){if(!nd(c))continue;let d=c.map(f=>Eh(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=no(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(!nd(a))continue;let n=Wk(a,o,r.type===Hk?r:t);if(n!==void 0)return n}}}function cue(e,o){if(!nd(e))return!0;let t=Wk(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=no(t.props);return!r||r===ol}function Gk(e){let o=e?.content;if(!nd(o))return e;let t=o.map(r=>Eh(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function zk(e){return Eh(e).node}import{jsx as w,jsxs as qr,Fragment as br}from"react/jsx-runtime";import{cloneElement as gI,createContext as SU,useContext as HE,useEffect as wU,useId as WE,useRef as $l,useState as Ul}from"react";import{useEasel as If,useSelectedHost as Qn}from"efficient-easel/easel";import{PIN_LENGTH as pf,toDateKey as owe,fromDateKey as twe}from"efficient-shell/format";function Z4(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function Fo(e){return typeof e=="string"?e:Z4(e)?e.src:""}function fue(e,o,t){return Oh(e,o.split("."),t)}function Oh(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=Oh(p,a,t);return x!==p&&(f=!0),x});return f?{...l,[s]:u}:e}let d=Oh(c,a,t);return d===c?e:{...l,[s]:d}}var J4=["upload","youtube"],Q4="upload",mue={upload:"Upload",youtube:"YouTube"},e6=["background","click"],o6="background",hue={background:"Background",click:"Click to play"};function Uk(e){return J4.includes(e)?e:Q4}function jk(e){return e6.includes(e)?e:o6}var $k=/^[A-Za-z0-9_-]{11}$/,t6=/^(?: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:"||!t6.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 _h(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 Ah="Play video";var Rh={frame:"Video frame",image:"Image"},xue={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function gl(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":Fo(e.poster)?"image":"frame"}function Iue(e){let[o,t]=gl(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(gl(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 sd="videoFrames",Lh="videoFramesNotOwn";function Xk(e,o,t){let r=Fo(e.mediaVideo);if(!r||!o||gl(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 r6(e,o){let t=Fo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function gue(e,o,t){let r=t?.[Lh];if(!(Array.isArray(r)&&r.includes(e)))return r6(o,t?.[sd])}import{useSyncExternalStore as a6}from"react";function ld(){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 a6(t,a,a)}}}var Ne="SiteHeader",Re="SiteFooter",Fh="sections",wue=[Ne,Re],Bn=e=>e===Ne||e===Re,Zk=e=>`${e}:${Fh}`;function Jk(e,o,t=[]){return{type:e,props:{id:o,[Fh]:t}}}var n6=new Set(["Footer",Ne,Re]);function Dn(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):n6.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function id(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ne?[o,...e]:[...e,o]}var Qk={[Ne]:{max:3,takes:["Flex","Ticker"]},[Re]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function ev(e,o,t){if(!Bn(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(!Bn(n?.type))continue;let s=n.props?.[Fh];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 s6}from"efficient-easel/draw";function bl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function cd(e,o,t){let r=bl(t?.zone),a=r?s6(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as l6}from"efficient-easel/data";var tv="Footer",rv=[Ne,tv,Re],ya=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Mr=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Nn=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},av=e=>bl(e)?.ownerId??"";function nv(e){let o=Dn(ya(e)),t=o.some(r=>r?.type===Re);return o.filter(r=>r?.type===Ne||r?.type===Re||r?.type===tv&&!t)}function dd(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(l6(a)){let n=Nn(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=ya(e).filter(r=>{let a=Nn(r);return typeof r?.type=="string"&&rv.includes(r.type)||a!==void 0&&o(a)});return t.length?dd(t,Mr(e)):new Set}function Bh(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===Ne),a=t.filter(l=>l.type!==Ne),n={...e,content:[...r,...ya(e),...a]},{owned:s}=Bh(Mr(o),dd(t,Mr(o)));return Object.keys(s).length&&(n.zones={...Mr(e)??{},...s}),n}function Dh(e,o){if(!o)return{page:e,chrome:null};let t=nv(o),r=new Set(t.map(Nn).filter(C=>!!C)),a=[],n=[];for(let C of ya(e)){let b=Nn(C);b&&r.has(b)||Bn(C?.type)?n.push(C):a.push(C)}let s=new Map(n.map(C=>[Nn(C),C])),l=new Set,c=Dn(ya(o)).flatMap(C=>{let b=Nn(C);if(!b||!r.has(b))return[C];let k=s.get(b);return k?(l.add(k),[k]):[]});for(let C of n)l.has(C)||c.some(b=>b?.type===C.type)||(c=C.type===Ne?[C,...c]:[...c,C]);c=Dn(c);let d=c.length===ya(o).length&&c.every((C,b)=>C===ya(o)[b]),f=Mr(e),u=dd(c,f),{owned:p,rest:x}=Bh(f,u),I=Bh(Mr(o),dd(t,Mr(o))).owned,g={...o,content:d?o.content:[...c]},v=Mr(o);if(v||Object.keys(p).length){let C={};for(let[b,k]of Object.entries(v??{}))b in I?b in p&&(C[b]=p[b]):C[b]=k;for(let[b,k]of Object.entries(p))b in C||(C[b]=k);g.zones=C,v&&i6(g.zones,v)&&(g.zones=v)}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 i6(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 Nh(e){cv=e}function vt(){return cv}var dv=null;function Mh(e){dv=e}function fd(){return dv}var Hh=ld();function fv(e,o,t){if(!o)return;let r={...Hh.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};Hh.set(e,r)}function pv(e,o){fv(e,o,"load")}function uv(e,o){fv(e,o,"save")}function pd(e){return Hh.use(e)}var Wh=e=>!!vt()?.sectionOf(e);function mv(e,o=Wh){return sv(e,o)}function hv(e,o,t,r=Wh){if(t)return e&&mv(o,r).has(e)?void 0:t}function xv(e,o,t=Wh){if(!e)return{};let r=[...mv(o,t)];return r.length?{[sd]:e,[Lh]:r}:{[sd]:e}}import{ScreenDocumentContext as CU}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as Xr,hidableText as kU}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as GE,LINK_FIELD_MARKER as vU,MEDIA_FIELD_MARKER as TU,SCAFFOLD_FIELD_MARKER as PU,TEXT_FIELD_MARKER as Ir,foldMetaOf as yr,textFieldIdentifier as dwe}from"efficient-easel/draw";import{jsx as Cv}from"react/jsx-runtime";import{useCallback as f6}from"react";import{useEasel as p6}from"efficient-easel/easel";import{SettingsAction as u6}from"efficient-easel/panel";import{CORNER_SIDES as ud,hasCornerSubset as yl,normalizeCornerSides as Yt}from"efficient-easel/screen/lib/content/style-keys";function Gh(e){return typeof e=="number"&&Number.isFinite(e)}function Mue(e,o){if(!Gh(e))return;let t=kc(zt(e));if(Object.keys(t).length===0)return;let r=t[zh];if(typeof r!="string")return t;let a=yl(o)?Sa(r,Yt(o)??[]):r;return{...t,[c6]:a}}var c6="--sf-section-radius",zh="--sf-card-radius";function Sa(e,o){return ud.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 d6="--sf-card-box-radius";function $h(e){return typeof e=="number"&&Number.isFinite(e)}function zue(e,o){if(!$h(e))return;let t=kc(zt(e))[zh];if(typeof t!="string")return;let r=yl(o)?Sa(t,Yt(o)??[]):t;return{[d6]: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=cd(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}:$h(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 m6}from"efficient-easel/screen/lib/document/use-section-ops";var h6="apply-corners-to-siblings",x6="Apply to all cards";function I6({plan:e,onPress:o}){return Cv(u6,{id:h6,label:i(x6),note:yv(e),disabled:!e.can,doneLabel:Sv(e.others),onPress:o})}function kv(){let{appState:e,config:o}=p6(n=>n),t=m6(),r=bv(o,e.data.content??[],e.ui.itemSelector),a=f6(()=>{wv(r,t.replaceComponent)},[r,t]);return Cv(I6,{plan:r,onPress:a})}import{isShown as Fv,lazyShowWhenContext as _6}from"efficient-shell/format";var Hr="product",md="recordType",vv={key:Hr,label:"Product",fields:[]},g6=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,b6=/^[a-z][A-Za-z0-9]*$/,y6=["text","date","images"],Uh=new Map,Tv=0;function S6(e){if(typeof e.key!="string"||!g6.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===Hr)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"||!b6.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(!y6.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 tme(e){let o=e.map(S6);for(let t of o)Uh.set(t.key,t);o.length&&(Tv+=1)}function jh(){return[vv,...Uh.values()]}function w6(e){return e===Hr?vv:Uh.get(e)??null}function Kh(){return Tv}function Sl(e){let o=e?.[md];return typeof o!="string"?Hr:o.trim()||Hr}function Vh(e){return Sl(e)===Hr}function rme(e,o){let t=w6(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var hd="product",Pv="tyre",C6=[hd,Pv];function sme(e){return C6.includes(e)}var k6="productType",v6={[hd]:"alloy-wheel",[Pv]:"tyre"},T6=["alloy-wheel","tyre"];function Ev(e,o){return Vh(o)?Ov(o)??v6[e]??null:null}function Ov(e){if(!Vh(e))return null;let o=e?.[k6];return typeof o=="string"&&T6.includes(o)?o:null}function lme(e){let o=e?.root;return Ov(o?.props)}var qh="Main Pages",P6="Dynamic Pages",Yh="dynamic",E6="dynamic";function wa(e){return e.kind===E6}var Xh="lightbox";function _v(e){return e.kind===Xh}function Av(e){let o=[],t=[];for(let r of e){if(wa(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??qh,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:Yh,label:P6,rows:t})}return o}var xd=null,Rv=null;function O6(e,o){xd=e,Rv=o}function ume(e){O6(e,null)}function mme(){return xd}function wl(){return wa({kind:Rv})||xd===hd}function hme(e){return Ev(xd??"",e)??"alloy-wheel"}function xme(e){return wl()?Sl(e):null}function Zh(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!Fv(mh(s),o??{},t)){r=!0;continue}let l=A6(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function A6(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=cd(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 Cme(e,o={}){return _6({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>wl(),root:()=>e.appState?.data?.root?.props,...o})}var Dv=1;function R6(e){return zt(e)}function Tme(e){let o=R6(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var Nv=1,Mv="Corners";function L6(e){return zt(e)}function _me(e,o){let t=L6(e);if(t===null)return null;let r=`${t}px`;return{borderRadius:yl(o)?Sa(r,Yt(o)??[]):r}}var Wv=12,Gv=6,F6=800,dr={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"}},Jh=Object.keys(dr),zv=[2,3,4,6];function Qh(e,o){return Jh.filter(t=>t===o||e===null||dr[t].across===e)}function $v(e){return typeof e!="string"||e===""?null:dr[e]??null}function Hv(e,o){return o?Gv/e.acrossPhone:Wv/e.across}function ex(e){return e.ratio?Uw.find(o=>o.shape===e.ratio)?.ratio??null:null}function Uv(e){return[...e.lead??[],...e.desktop]}var B6="sf-wall--";function D6(e){return`${B6}${e}`}function Lme(e){let o=dr[e],t=`.${D6(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=ex(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:${F6}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 Id=12,jv=1,N6=3;var M6=3;function ox(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 H6(e){return ox(e,1,Id)??M6}function Dme(e,o){return ox(e,jv,N6)??(H6(o)===4?2:jv)}function Nme(e){return e==null||e===""?null:ox(e,1,Id)}var Mme="data-sf-span";function Hme(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 W6}from"react/jsx-runtime";import*as G6 from"efficient-easel/icons";function gd(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=G6[`${o}Icon`];return t?W6(t,{size:16}):null}import{jsx as Wr,Fragment as U6,jsxs as Qv}from"react/jsx-runtime";import{useContext as j6,useEffect as K6,useId as V6,useState as eT}from"react";import{SettingsField as q6,SettingsSwitch as Y6}from"efficient-easel/panel";import{AnchorIcon as X6}from"efficient-easel/icons";import{ScreenDocumentContext as Z6}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as J6}from"efficient-shell/ui";import{slugify as Q6}from"efficient-shell/format";import{slugify as z6}from"efficient-shell/format";function Cl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var bd=e=>z6(Cl(e));var yd="homepage";import{slugify as $6}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 tx="#popup:";function qv(e){return`${tx}${e}`}function Yv(e){return e.startsWith(tx)&&e.slice(tx.length).trim()||null}function kl(e){return e===yd?"/":`/${e}`}function Xv(e){return`/journal/${e}`}function Yme(e){return`/wheels/${e}`}function Sd(e,o){return`${kl(e)}#${o}`}function Zv(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Cl(a?.props?.anchor);if(!n)continue;let s=$6(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function Xme(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 e3}from"efficient-easel/draw";function oT({value:e,onChange:o,nameBox:t}){let r=e3(e).text,[a,n]=eT(!1),s=a||r.trim()!=="",l=V6();return Qv(U6,{children:[Wr(q6,{label:i("Add an anchor"),labelId:l,icon:Wr(X6,{}),action:Wr(Y6,{checked:s,ariaLabelledBy:l,onChange:c=>{n(c),!c&&r!==""&&o("")}})}),s&&t(e,o),s&&Wr(o3,{name:r})]})}function o3({name:e}){let o=j6(Z6),t=o?.templateId?"":o?.currentSlug??"",[r,a]=eT("");K6(()=>a(_n()||window.location.origin),[]);let n=Q6(e);if(!n||!t)return null;let s=`${r}${Sd(t,n)}`,l=s.replace(/^https?:\/\//,""),c=l.lastIndexOf("#");return Wr("div",{className:"sf-anchor-link",children:Wr(J6,{value:s,label:i("link"),size:"sm",children:Qv("span",{className:"sf-anchor-link-text",children:[Wr("span",{className:"sf-anchor-link-path",children:l.slice(0,c)}),Wr("span",{className:"sf-anchor-link-hash",children:l.slice(c)})]})})})}import{jsx as Xt,jsxs as t3}from"react/jsx-runtime";import{Fragment as r3}from"react";import{Button as wd,Tooltip as a3}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?Xt("div",{className:`sf-blogsource sf-blogsource--compact${c?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:Xt(a3,{content:n,className:c?"sf-name-tip":void 0,children:Xt("p",{className:"sf-blogsource-status","data-state":e,children:[o?Xt(r3,{children:o},"status"):null,t?Xt(wd,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?Xt(wd,{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])})})}):t3("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[Xt("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?Xt(wd,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?Xt(wd,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,Xt("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as EU,EyeIcon as OU,AnimationIcon as _U,BackgroundIcon as _E,BorderAllIcon as AU,BlockSectionIcon as RU,ColumnWidthsIcon as bI,ColumnsIcon as zE,CornerIcon as $E,DirectionDownIcon as LU,DirectionLeftIcon as FU,DirectionRightIcon as BU,DirectionUpIcon as DU,EditIcon as NU,GapIcon as MU,GridIcon as HU,GroundIcon as xI,HashIcon as UE,HeightIcon as jE,ImageIcon as WU,ListIcon as GU,LocationIcon as AE,PaddingBottomIcon as KE,PaddingLeftIcon as VE,PaddingRightIcon as qE,PaddingTopIcon as yI,PageIcon as zU,StickyIcon as YE,SearchIcon as $U,SquareIcon as UU,TypeIcon as jU,WidthIcon as KU}from"efficient-easel/icons";import{jsx as ze,Fragment as Ca,jsxs as ka}from"react/jsx-runtime";import{CaptionIcon as n3,DateIcon as s3,FlagIcon as l3,TitleIcon as i3,ButtonIcon as c3,DollarIcon as d3,HashIcon as f3,LinkIcon as p3,NoteIcon as u3,TagIcon as m3,TextLinesIcon as h3}from"efficient-easel/icons";var rT={body:h3,button:c3,link:p3,label:m3,number:f3,price:d3,note:u3,name:l3,date:s3,caption:n3,title:i3},aT={eyebrow:ka(Ca,{children:[ze("path",{d:"M5 6.5h5"}),ze("path",{d:"M5 12.5h14"}),ze("path",{d:"M5 18h11"})]}),heading:ka(Ca,{children:[ze("path",{d:"M6.5 5v14"}),ze("path",{d:"M17.5 5v14"}),ze("path",{d:"M6.5 12h11"})]}),intro:ka(Ca,{children:[ze("path",{d:"M4 5.5v13"}),ze("path",{d:"M8 7.5h12"}),ze("path",{d:"M8 12h12"}),ze("path",{d:"M8 16.5h8"})]}),value:ka(Ca,{children:[ze("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),ze("path",{d:"M6.5 12h7"})]}),quote:ka(Ca,{children:[ze("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),ze("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:ka(Ca,{children:[ze("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),ze("path",{d:"M8 9.5h8"}),ze("path",{d:"M12 9.5v5"})]}),meta:ka(Ca,{children:[ze("path",{d:"M4 7h16"}),ze("path",{d:"M4 14h3.5"}),ze("path",{d:"M10.5 14h3"}),ze("path",{d:"M17 14h3"})]})};function rx({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=rT[e];return n?ze("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:ze(n,{size:o})}):ze("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 Ihe=Object.keys(rT);var ghe=Object.keys(aT);import{parseHexColor as S3}from"efficient-shell/format";import{parseHexColor as fT}from"efficient-shell/format";import{COLOR_SLOTS as pT,FILL_COLOR_SLOTS as b3,colorRole as y3,fillColorRole as uT}from"efficient-shell/markup";import{parseHexColor as sT}from"efficient-shell/format";import{FILL_COLOR_SLOTS as x3}from"efficient-shell/markup";var Cd=e=>{let o=Aw.find(t=>t.role===e);return o?`var(${o.token})`:""},I3=e=>Cd(e)?`var(--theme-${e})`:"",nT={main:{ink:Fr.accent,page:Fr.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Fr.text,page:Fr.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:Cd("bg"),page:I3("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Fr.labels,page:Fr.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:Cd("surface"),page:Cd("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function Gr(e){return Object.hasOwn(nT,e)?nT[e]:void 0}var ax="#9ca3af";function Mn(e,o,t){let r=Gr(e);return r?{hex:sT(o[r.key]??"")??"",words:r.words(t)}:null}function lT(e,o){return x3.flatMap(t=>{let r=Mn(t,e,o);return r&&Gr(t)?.ink?[{name:t,label:r.words,value:r.hex||ax}]:[]})}var g3=["main","text","background"];function iT(e){let o=new Set,t=[];return to(e).themes.forEach((r,a)=>{for(let n of g3){let s=Gr(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 fr(e){return Gr(e)?.ink??""}function Zt(e){if(typeof e!="string")return null;let o=uT(e.trim());return o?.kind==="slot"&&fr(o.slot)?o.slot:null}var cT={accent:"main",labels:"muted"};function Zo(e){return Object.hasOwn(cT,e)?cT[e]:e}function Hn(e){if(!e)return"";if(e.startsWith("#"))return fT(e)===e.toLowerCase()?e:"";let o=y3(Zo(e));return o?.kind==="slot"?fr(o.slot):""}function Wn(e,o=pT){return o.flatMap(t=>{let r=Gr(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||ax}]:[]})}function mT(e){let o=uT(Zo(e));return o?.kind==="slot"?fr(o.slot):""}function nx(e){let o=e?.trim();return o?b3.find(t=>fr(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=fr(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 w3="#ffffff";function sx(e){return xT(e)||(C3(e)?e:w3)}function xT(e){let o=Zt(e);return o?Gr(o)?.page??"":""}function C3(e){return typeof e=="string"&&S3(e)===e.toLowerCase()||xT(e)!==""}function Fhe(e){return{"--bg":sx(e)}}import{parseHexColor as k3}from"efficient-shell/format";import{fillColorRole as v3}from"efficient-shell/markup";function va(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 Uhe="sf-card",zr={min:0,max:100,step:5,fallback:0,unit:"%"},T3=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],P3="68%",jhe={desktop:20,phone:20,side:40,sidePhone:24},Khe="sf-box-sides";function ix(e){return typeof e=="string"&&e.trim()!==""}function Vhe(e){return ix(typeof e?.bgImage=="string"?e.bgImage:null)||Go(e,Ys)!==""}function qhe(e,o){return o||Go(e,Ys)===""?e:{...e,[Ys]:""}}function Yhe(e,o){return td(o,Go(e,Ys))?.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(zr.max,Math.max(zr.min,t))/100).toFixed(2);return o!=="bottom"?{background:Pc(Number(r))}:{background:`linear-gradient(0deg, ${Pc(Number(r))} 0%, ${Pc(0)} ${P3})`}}var kd=e=>typeof e=="string"?k3(e.trim()):null,lx=e=>{let o=kd(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&mT(t)||null},vd=e=>{if(typeof e!="string")return null;let o=v3(Zo(e.trim()));return o?.kind==="slot"?o.slot:null},E3="swatch";function Xhe(e,o){if(!o)return null;let t=td(o,Go(e,E3)),r=Zt(t);return kd(t)??(r&&fr(r)||null)}var O3={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Zhe(e,o,t){return va(O3,lx(e),lx(o),lx(t))}var _3={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Jhe(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=>T3.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 va(_3,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 Qhe(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(cx(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function cx(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>cx(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>cx(a,o,t+1))}function bT(e,o){let t=e?.content;return Array.isArray(t)?Td(t,o,0)??[]:[]}function Td(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=Td(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=Td(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=Td(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Po,SettingsDrill as VU,SettingsField as Qe,SettingsGroup as qU,SettingsGroupSub as Ewe,SettingsSegmented as YU,SettingsBorder as XU,SettingsSidesEach as ZU,SettingsSwitch as SI,borderSides as JU,borderStartEach as QU}from"efficient-easel/panel";import{ListField as ej}from"efficient-easel/fields";import{DisplayChips as oj}from"efficient-shell/ui";import{HIDDEN_KEY as A3,hiddenInEveryView as R3,hiddenInView as dx,hiddenKeyOf as yT}from"efficient-easel/screen/lib/content/view-hide";var L3={"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"},F3={"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 Pd(e,{atSectionLine:o=!1}={}){return(o?F3:L3)[ST(e)]}var Gn=[A3,yT("tablet"),yT("mobile")];function wT(e){return{desktop:dx(e,"desktop"),tablet:dx(e,"tablet"),mobile:dx(e,"mobile")}}function vl(e){return R3(e)}function rxe(e){let o=wT(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var B3={"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!"},D3={"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 axe(e,{atSectionLine:o=!1}={}){return(o?D3:B3)[ST(wT(e))]}function zn(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 Ed(e,o){return zn(e)[o]!==!1}function fx(e,o,t){let r=zn(o)[t];return typeof r=="boolean"?r:Ed(e,t)}function CT(e){return Object.values(zn(e)).some(o=>o===!1)}function kT(e){return Object.keys(zn(e)).length>0}function vT(e,o,t){let r={...zn(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function TT(e,o,t){return{...zn(e),[o]:t}}function lxe(e,o,t,{atSectionLine:r=!0}={}){let a=!Ed(e,t);return Pd({desktop:a,tablet:a,mobile:!fx(e,o,t)},{atSectionLine:r})}import{AlignmentGrid as tj,Checkbox as Lwe,ColorSwatch as rj,CornersInput as aj,DatePicker as Fwe,DateTimePicker as nj,FOCAL_DEFAULT as Bwe,IconPicker as XE,COLUMN_COUNT_MAX as RE,COLUMN_SHARE_MIN as sj,COLUMN_SHARES_EQUAL as lj,resolveColumnShares as ZE,WidthsBar as ij,useShellStrings as cj,IconButton as JE,InputNumber as LE,Slider as dj,Tooltip as wI}from"efficient-shell/ui";import{backendOf as N3}from"efficient-easel/screen/lib/session";var $e=N3,Od=e=>e.blocks;async function PT(e){let o=e.trim();if(!o)return null;let t=$e().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var px="Lookup busy \u2014 try again in a moment.",_d=e=>typeof e=="number"&&Number.isFinite(e);function mxe(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:_d(t.lat)&&t.lat!==o.lat||_d(t.lng)&&t.lng!==o.lng:!1})}async function hxe(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:px}})}}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=_d(l.lat)&&l.lat!==s.lat?l.lat:s.lat,d=_d(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 zo,jsxs as mx}from"react/jsx-runtime";import{useRef as M3}from"react";import{ColorPicker as H3,ColorPickerPanel as W3,ColorSwatch as G3,HexInput as z3,Popover as $3,Tooltip as U3,colorFill as j3,colorSwatchClasses as K3,useShellStrings as V3}from"efficient-shell/ui";import{SettingsDefaultReset as q3,SettingsField as Y3}from"efficient-easel/panel";import{typedHex as ux}from"efficient-easel/pick";var ET="Not set";function X3({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return zo(J3,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function Z3(){let{theme:e}=xe();return iT(e)}function J3({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=Z3(),c=e?null:ux(n??""),d=a!==void 0&&(!e||ux(a)!==ux(e))?a:null,f=u=>{u!==e&&o(u)};return mx("div",{className:"sf-colour",children:[s?zo(Q3,{id:r,value:e,onChange:o,label:t,presets:l,follows:c,choices:s}):zo(H3,{id:r,value:e,onChange:f,label:t,presets:l,fallback:c??void 0,size:"md",align:"start"}),d!==null?zo("span",{className:"sf-colour-caption",children:d}):zo("span",{className:"sf-colour-hexwrap",children:zo(z3,{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 Q3({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=V3().color,c=e||n||"",d=s.findIndex(p=>p.selected),f=d>=0,u=M3(d);return f&&(u.current=d),zo($3,{id:r,trigger:zo("span",{"aria-hidden":"true",className:"absolute inset-0",style:j3(c)}),triggerLabel:l.swatch(t,c.toUpperCase()||l.none),triggerClassName:K3({size:"md"}),"aria-label":l.panel(t),align:"start",children:mx("div",{className:"sf-colour-window",children:[zo("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>zo(U3,{content:p.label,children:zo(G3,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),zo(W3,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?c:n)??void 0},u.current)]})})}function $o({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return mx(Y3,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?zo(q3,{words:ne()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:[X3({...l,label:e}),s]})}function Tl({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:l,choices:c}){let d=!!t;return zo($o,{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 fj}from"efficient-easel/screen/lib/document/style-fields";import{jsx as eW}from"react/jsx-runtime";import{useEffect as oW,useState as tW}from"react";import{clearRangeOf as rW,markSelection as aW,useCaretEdit as nW}from"efficient-easel/copy";import{TextToolbar as sW}from"efficient-shell/ui";function lW(e,o,t){return aW(e,o,t,WC)}function OT(e,o){let t=rW(o,e.length),r=zC(e,t.start,t.end);return r.text===e?null:r}function iW(e){let[o,t]=tW(null);return oW(()=>{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 cW({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=nW({target:e,onChange:t}),[s,l]=iW(e),c=p=>n(x=>{let I=lW(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 eW(sW,{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 hx=cW;import{deviceField as lt}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as pj,NoControlMark as uj,noControlField as QE}from"efficient-easel/screen/lib/document/panel-no-control-mark";var xx="__ownBox";function _T(e){return!!e&&typeof e=="object"&&e[xx]===!0}var Ix="sfPanelOnly";function $n(e){return!!e&&typeof e=="object"&&e[Ix]===!0}function Ad(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var Rd=void 0;import{phoneKey as Jn,tabletKey as CI}from"efficient-easel/draw";import{jsx as Ld,Fragment as dW,jsxs as fW}from"react/jsx-runtime";import{useRef as pW}from"react";import{SettingsDefaultReset as uW}from"efficient-easel/panel";import{effectTiles as mW}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as AT,describedAs as hW,onDesktopWords as xW,phoneTwinFields as RT}from"efficient-easel/screen/lib/document/box-fields";function IW({row:e,read:o,...t}){let r=o(rt(),t.followsView??"desktop");return e({...t,follows:r})}function pr(e,o){return Object.fromEntries(Ho.map(t=>{let r=ke(e,t);return[r,RT(e,o(t),AT)[r]]}))}function Fd(e,o,t){let r=o.render,a={...o,render:n=>Ld(IW,{...n,row:r,read:t})};return pr(e,n=>n==="desktop"?o:a)}function gW({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(rt(),o.followsView??"desktop"),n=t?o.value:a,s=pW(null),{preview:l}=e,c=mW({label:i(e.label),options:e.values.map(f=>({value:f,label:i(e.word(f)),picture:e.picture(f)})),fallback:e.fallback,onPreview:l?f=>s.current&&l(s.current,f):void 0}).render,d=c({value:n,onChange:f=>o.onChange(f??e.fallback)});return fW(dW,{children:[l?Ld("div",{ref:s,style:{display:"contents"},children:d}):d,r&&t&&Ld(uW,{words:ne()?.panel,label:i(e.tileWord),changed:!0,detail:xW(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function Bd(e,o){let t=hW({type:"custom",render:r=>Ld(gW,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return RT(e,t,AT)}import{jsx as bx,Fragment as SW}from"react/jsx-runtime";import{createContext as wW,useContext as CW}from"react";var Dd={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Nd={Events:["posts"],SubscribeBlogs:["posts"]};var bW=["anchor"],yW=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Pl(e){return bW.includes(e)||yW.test(e)}var gx={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"}}};gx.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var Yxe=Object.fromEntries(Object.entries(Dd).map(([e,o])=>[e,Object.keys(o)])),Xxe=Object.fromEntries(Object.entries(Nd).map(([e,o])=>[e,[...o]]));import{NoControlMark as kW}from"efficient-easel/screen/lib/document/panel-no-control-mark";var LT=wW(!1);function FT({children:e}){return bx(LT.Provider,{value:!0,children:e})}function vW(){return CW(LT)}function BT({name:e,children:o}){return!vW()||!e||!TW(e)||Pl(e)?bx(SW,{children:o}):bx(kW,{})}function TW(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var yx="off",NT="none",Sx=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],MT=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function aIe(e){return No(Sx,yx,e)}var DT="sf-card-index",El="sf-card-index",nIe="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",PW={plain:`counter(${El})`,padded:`counter(${El}, decimal-leading-zero)`,numero:`"N\xB0" counter(${El}, decimal-leading-zero)`};function sIe(e,o){return o==="off"?"":`.${e}{counter-reset:${El}}.${e} .${DT}{counter-increment:${El}}.${e} .${DT}::before{content:${PW[o]}}`}function lIe(e){return e==="hairline"?"border border-line hover:border-accent":""}var HT=[{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 mj}from"efficient-easel/draw";import{jsx as Uo}from"react/jsx-runtime";import{SettingsDefaultReset as BW,SettingsField as wx}from"efficient-easel/panel";import{useSelectedHost as DW}from"efficient-easel/easel";import{FOCAL_DEFAULT as NW}from"efficient-shell/format";import{ImageIcon as Cx,PlayIcon as GT}from"efficient-easel/icons";import{ImageFocusPoint as MW,MediaUploadField as HW}from"efficient-shell/ui";import{useContext as WW}from"react";import{ScreenDocumentContext as GW}from"efficient-easel/screen/components/ScreenDocumentContext";import{phoneKey as zW,tabletKey as zT}from"efficient-easel/draw";import{usePreviewDevice as $W}from"efficient-easel/draw/client";import{formatFocal as EW,parseFocal as OW}from"efficient-shell/format";var _W="sf-focus-phone",AW="--sf-focus-phone",RW="sf-focus-tablet",LW="--sf-focus-tablet",Ol=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=OW(e);return EW(o,t)};function WT(e,o){return va(FW,null,Ol(o),Ol(e))}var FW={tabletClass:RW,tabletVar:LW,phoneClass:_W,phoneVar:AW};import{shownTier as kx}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as UW}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as jW}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as KW}from"efficient-easel/screen/lib/host";import{useEaselSession as VW}from"efficient-easel/screen/lib/session-context";function qW(e,o,t,r=!0){let a=kx(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):NW;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=a==="tablet"?zT(o):zW(o),l=Ol(e[s])??void 0,c=a==="mobile"&&r?Ol(e[zT(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 YW(e,o,t){let r=DW();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,kx(e)))return null;let n=qW(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,Rd)}}function $T({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:c}){let d=KW(),f=VW(),u=i(t),p=$W(),x=r.startsWith("video"),I=YW(p,x?void 0:n,s),g=!!n&&kx(p)!=="desktop",v=WW(GW),S=_l(),C=l&&c?{video:c,frame:l}:null,b=P=>jW(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)),k=C?P=>P?o(P):S({[C.video]:"",[C.frame]:""}):o,T=Fo(e);if(g&&(!I||!T))return null;if(v&&!v.capabilities.mediaEditing)return Uo(wx,{label:u,icon:x?Uo(GT,{}):Uo(Cx,{}),children:Uo("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?Uo(BW,{words:ne()?.panel,label:i("Image focus"),changed:!!I.own,detail:UW(P=>i(P),I.followed,I.followsView),onReset:I.clear}):void 0;return g&&I?Uo(wx,{label:u,icon:Uo(Cx,{}),action:F,children:Uo("div",{style:{flex:"1 1 auto",minWidth:0},children:Uo(MW,{value:I.focus,onChange:I.set,label:i("Image focus"),image:T,hint:null})})}):Uo(wx,{label:u,icon:x?Uo(GT,{}):Uo(Cx,{}),children:Uo("div",{style:{flex:"1 1 auto",minWidth:0},children:Uo(HW,{value:T,onChange:k,onPick:b,accept:x?"video/*":"image/*",kind:x?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:$e(f).media.maxUploadBytes,...I?{focus:I.focus,onFocusChange:I.set}:{}})})})}import{jsx as UT}from"react/jsx-runtime";import{useId as XW}from"react";import{FieldSelect as ZW}from"efficient-easel/fields";import{SettingsField as JW}from"efficient-easel/panel";function QW(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function jT({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=XW(),c=`${l}-label`,d=`${l}-button`,f=Array.isArray(t)?t:[];return UT(JW,{label:i(e),labelId:c,icon:n,hint:s,children:UT(ZW,{id:d,multiple:!0,value:f,options:QW(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${c} ${d}`,inline:!0})})}import{jsx as ro,jsxs as Pa,Fragment as EG}from"react/jsx-runtime";import{useCallback as aP,useContext as OG,useId as lP,useRef as nP,useState as sP}from"react";import{ThemeIcon as _G}from"efficient-easel/icons";import{Button as AG,useClickOutside as RG}from"efficient-shell/ui";import{SettingsField as LG}from"efficient-easel/panel";import{ScreenDocumentContext as FG}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as Ur,Fragment as iG}from"react/jsx-runtime";import{parseHexColor as cG}from"efficient-shell/format";import{Button as Tx,IconButton as dG,Tooltip as fG}from"efficient-shell/ui";import{jsx as $r,jsxs as eG}from"react/jsx-runtime";import{AccentIcon as oG}from"efficient-easel/icons";import{Button as tG,Tooltip as rG}from"efficient-shell/ui";function vx(e){return Mo(e).background}function aG(e){let o=Or(e.accent,vx(e));return o===null?null:{ratio:o,grade:Tn(o)}}function nG(e){let o=vx(e),t=Or(e.accent,o);return t===null?[]:xw(e.accent).filter(r=>{let a=Or(r,o);return a!==null&&a>t&&Tn(a)==="good"})}var sG={good:"Easy to read","large-only":vn["large-only"],hard:vn.hard};function KT({value:e,onChange:o}){let t=aG(e),r=t?.grade,a=t&&t.grade!=="good"?nG(e):[];return $r($o,{label:i("Main color"),icon:$r(oG,{}),hint:t?i(sG[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?$r("div",{className:"w-full min-w-0",children:eG("div",{className:"sf-readability",children:[$r("p",{className:"sf-readability-advice",children:lG(r,!0)}),$r("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Or(n,vx(e));return $r(rG,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:$r(tG,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:$r("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 lG(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 pG,ChevronDownIcon as qT,ChevronUpIcon as uG,GroundIcon as mG,LayoutIcon as hG,SquareIcon as xG,TextSmallIcon as IG,TypeIcon as VT}from"efficient-easel/icons";var Al=e=>i("Theme {n}",{n:e+1});function YT({colors:e}){let o=Mo(e),t=Zs(e)??o.accent;return Ur("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")}),Ur("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")}),Ur("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:Om(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var Px={"Text color":fe(VT,{}),"Label color":fe(IG,{}),Background:fe(mG,{}),"Panels & cards":fe(hG,{}),Borders:fe(xG,{}),"Button color":fe(pG,{}),"Button text color":fe(VT,{})};function gG({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe($o,{label:i(e),icon:Px[e],id:n,value:t,onChange:s=>r(o,s)})}function bG({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&cG(e)===e.toLowerCase(),s=n?e:o;return fe($o,{label:i("Button color"),icon:Px["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function yG({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=Iw(e),s=Om(e,o),l=Zs(e)??o,c=Tn(Or(s,l)??0);return fe($o,{label:i("Button text color"),icon:Px["Button text color"],hint:n&&c!=="good"?i("{grade} on the button",{grade:i(vn[c])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var SG=[{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 Ex({colors:e,onChange:o,idPrefix:t}){let r=Mo(e);return fe(iG,{children:SG.map(a=>"colour"in a?fe(KT,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(bG,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(yG,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(gG,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function Md({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:c}){let d=Mo(o),f=Al(e),u=e<Em.length&&!o.brandInk?Em[e]:null,p=Tn(Or(d.text,d.background)??0),x=u?JSON.stringify(o)!==JSON.stringify(u):!1,I=a!==void 0;return Ur("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(YT,{colors:o})}),Ur("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(vn[p])}),n&&l&&I&&fe("span",{className:"sf-theme-edit",children:fe(fG,{content:a?i("Collapse"):i("Edit colors"),children:fe(dG,{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(uG,{size:14}):fe(qT,{size:14})})})}),n&&l&&!I&&fe(Tx,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&Ur("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(Ex,{colors:o,onChange:g=>c?.(g)}),u&&fe(Tx,{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 XT({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:c,onEdit:d}){return Ur("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(YT,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Ur("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),d&&fe(Tx,{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(qT,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as Fx,useEffect as oP,useRef as zd}from"react";import{currentEaselSession as kG}from"efficient-easel/screen/lib/session";import{useEaselSession as vG}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as wG}from"react";var JT,Ox=null,Ta=null,Hd=0,_x=new Set;function Ax(e){JT=e;for(let o of _x)o()}function Rx(e){Ox=e,Hd+=1,Ta&&clearTimeout(Ta),Ta=null,Ax(void 0)}function Wd(e){Hd+=1,Ax(e)}function ur(e=250){Ox&&(Ta&&clearTimeout(Ta),Ta=setTimeout(()=>{Ta=null;let o=Ox;if(!o)return;let t=++Hd;o().then(r=>{t===Hd&&Ax(r)}).catch(()=>{})},e))}function ZT(){return JT}function CG(e){return _x.add(e),()=>{_x.delete(e)}}function Gd(){return wG(CG,ZT,ZT)}var Lx=new Set;function QT(e){return Lx.add(e),()=>{Lx.delete(e)}}async function eP(){let e=(await Promise.allSettled([...Lx].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as TG}from"efficient-easel/screen/lib/backend-error";function tP(e=kG()){return(o,t,r)=>{let a=$e(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new TG("invalid","This backend stores no site theme."))}}function rP(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function PG(e,o=tP()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=rP({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 Un({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=zd(null),n=zd({}),s=vG(),l=zd(r);l.current=r;let c=zd(null),d=Fx(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=Fx(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let x=await PG({themeFromDocument:e,token:o?.current,siteId:t,patch:p},tP(s));return d(x),x.status==="saved"&&ur(),x.status==="failed"&&(n.current={...p,...n.current}),x},[e,o,t,d,s]),u=Fx((p,x=!1)=>{let I=rP({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 oP(()=>()=>{f()},[f]),oP(()=>QT(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 BG="Follow the page",Tge="Follow the slideshow",DG=e=>i("Editing {name} changes it everywhere.",{name:e});function NG({colors:e}){if(!e)return ro("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=Mo(e);return Pa("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[ro("i",{style:{background:o.background}}),ro("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function MG({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Pa("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Pa(EG,{children:[Pa("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t($t),children:[ro(NG,{}),ro("span",{className:"sf-secttheme-name",children:i(n)})]}),ro("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&ro("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:Al(o)})}),e.map((s,l)=>l===o?null:ro(Md,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function HG({index:e,colors:o,onChange:t,onDone:r}){let a=Al(e),n=lP();return Pa("div",{className:"sf-secttheme-sheet",children:[Pa("div",{className:"sf-secttheme-sheet-head",children:[ro("span",{children:a}),ro(AG,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),ro("div",{className:"sf-secttheme-rows",children:ro(Ex,{colors:o,onChange:t,idPrefix:n})}),ro("p",{className:"sf-secttheme-warn",children:DG(a)})]})}function iP({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=xe(),s=to(a),l=OG(FG),c=l?.tokenRef,d=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=Un({themeFromDocument:f,tokenRef:c,siteId:d}),x=to(s),I=x.themes,g=Ut(e),v=g!==null?I[g]:void 0,S=v??(I.length?kn(x):void 0),[C,b]=sP(!1),[k,T]=sP(null),F=nP(null),P=nP(null),D=lP(),O=aP(()=>{b(!1),T(null)},[]),R=aP(()=>{!C&&k===null||(p(),O())},[C,k,O,p]);RG(F,R);let N=A=>{o(A),O()},y=A=>{if(k===null)return;let L=I.map((X,q)=>q===k?A:X),H={...x,themes:L};n(H),u({selected_preset:H.selected,theme_presets:H.themes})};return Pa("div",{className:"sf-secttheme",ref:F,children:[ro(LG,{label:i("Theme"),icon:ro(_G,{}),labelId:`${D}-label`,hint:r,children:ro(XT,{colors:S,onEdit:g!==null?()=>{T(g),b(!1)}:void 0,name:v?Al(g):i(t??BG),nameId:`${D}-value`,labelId:`${D}-label`,open:C,menuId:D,buttonRef:P,onClick:()=>{T(null),b(A=>!A)},onKeyDown:A=>{A.key==="Escape"&&(C||k!==null)&&(A.preventDefault(),O())}})}),C&&k===null&&ro("div",{onKeyDown:A=>{A.key==="Escape"&&(A.preventDefault(),O(),P.current?.focus())},children:ro(MG,{themes:I,value:g,onPick:N,onEdit:A=>{T(A),b(!1)},menuId:D,followLabel:t})}),k!==null&&I[k]&&ro(HG,{index:k,colors:I[k],onChange:y,onDone:()=>{p(),O(),P.current?.focus()}})]})}import{jsx as cP}from"react/jsx-runtime";import{useId as WG}from"react";import{FieldSelect as GG}from"efficient-easel/fields";import{SettingsField as zG}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 Lge({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let c=WG(),d=`${c}-label`,f=`${c}-button`,u=r??"",p=o.some(v=>v.value===u)?u:t,x=i(e),I=n===void 0?void 0:i(n),g=cP(GG,{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:cP(zG,{label:x,labelId:d,icon:l,children:g})}import{jsx as Oa,jsxs as wz}from"react/jsx-runtime";import{SettingsField as RP}from"efficient-easel/panel";import{LinkIcon as Cz}from"efficient-easel/icons";import{LinkPicker as kz,TextLinkField as vz}from"efficient-shell/ui";import{useEffect as AP,useMemo as Vd,useRef as Tz,useState as Kd}from"react";import{currentEaselSession as UG}from"efficient-easel/screen/lib/session";function dP(){return UG().auth.token}import{currentEaselSession as Pz}from"efficient-easel/screen/lib/session";import{useScreenDocument as Ez}from"efficient-easel/screen/components/ScreenDocumentContext";var jG=()=>({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 fP(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 Bx(e,o){let t=jG(),r=e.pages.map(f=>({value:kl(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:Sd(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=>fP(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=>fP(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 Oz}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 pP(e,o){return U(e)??o}function mr(e,o){return typeof e=="boolean"?e:o}function $d(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 mP=["delay","scroll","exit"],hP=["all","chosen","except"],xP=["visit","days","never","once"],KG=["all","desktop","phone"],VG=["stop","continue"],IP={min:0,max:60},gP={min:10,max:90},bP={min:1,max:90},Tt={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 jn(e,o,t){let r=pP(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function qG(e){return typeof e.hideAfter=="string"?Jo(xP,e.hideAfter,Tt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Tt.hideAfter}function YG(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function uP(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function yP(e){let o=e??{},t=Tt;return{autoOpen:mr(o.autoOpen,t.autoOpen),trigger:Jo(mP,o.trigger,t.trigger),autoOpenDelaySec:jn(o.autoOpenDelaySec,IP,t.autoOpenDelaySec),scrollPercent:jn(o.scrollPercent,gP,t.scrollPercent),showOn:Jo(hP,o.showOn,t.showOn),showOnPages:YG(o.showOnPages),devices:Jo(KG,o.devices,t.devices),hideAfter:qG(o),hideDays:jn(o.hideDays,bP,t.hideDays),afterSubmit:Jo(VG,o.afterSubmit,t.afterSubmit),startDate:uP(o.startDate),endDate:uP(o.endDate)}}import{parseHexColor as XG}from"efficient-shell/format";var Pt="#000000";var Dx="popup",ZG=Mw,JG=["auto","full"],QG=["inside","outside","none"],ez={min:240,max:1440},oz={min:0,max:100},Rl={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Pt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function tz(e,o){let t=typeof e=="string"?e.trim():"";return t&&XG(t)===t.toLowerCase()?t:o}function Nx(e,o=Rl){let t=e??{},r=o;return{placement:Jo(ZG,t.placement,r.placement),fullWidth:mr(t.fullWidth,r.fullWidth),width:jn(t.width,ez,r.width),height:Jo(JG,t.height,r.height),tintColor:tz(t.tintColor,r.tintColor),tintOpacity:jn(t.tintOpacity,oz,r.tintOpacity),outsideClick:mr(t.outsideClick,r.outsideClick),closeButton:Jo(QG,t.closeButton,r.closeButton)}}var SP="cart-drawer",obe="cart-drawer",rz={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 tbe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function rbe(e){let o=e??{},t=rz;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:$d(o.promises,t.promises),emptyKicker:mo(o.emptyKicker,t.emptyKicker),emptyBody:mo(o.emptyBody,t.emptyBody)}}var az=["right","left"],nz={...Rl,width:520,tintOpacity:68};function abe(e){let o=e??{};return{...Nx(o,nz),placement:Jo(az,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:mr(o.autoOpen,!0)}}var CP="consent-banner",ibe="consent-banner";var sz=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],cbe="Layout",wP={layout:"bar"},lz=e=>sz.some(o=>o.value===e);function dbe(e){let o=mo((e??{}).layout,wP.layout);return{layout:lz(o)?o:wP.layout}}var fbe={...Rl,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var iz="consentWords",cz=["eyebrow","notice","accept","reject","choose"];function Mx(e){let o=(e??{})[iz];return typeof o=="string"&&cz.includes(o)?o:null}function Hx(e){let o=e?.props;return o?Mx(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&Hx(r))):!1}var dz=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],mbe={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"},fz={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"},hbe={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 kP(e){let o={};for(let t of dz){let r=nr(e[fz[t]]);r&&(o[t]=r)}return o}var vP={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},pz={lead:"We accept"},jd={...pz,methods:[],size:"sm",align:"start",dataSource:yC},Et="site-footer";var gbe=Et,bbe={desktop:!0,tablet:!0,mobile:!0},ybe={desktop:!1,tablet:!1,mobile:!1},Wx=1,TP=6,Sbe=Array.from({length:TP-Wx+1},(e,o)=>Wx+o),Ud={desktop:6,tablet:3,mobile:2},uz={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}},Ea=e=>Math.min(Math.max(Math.round(e),Wx),TP);function wbe(e){if(typeof e=="number")return uz[Ea(e)]??{desktop:Ea(e),tablet:Ea(e),mobile:Ea(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ea(o.desktop??Ud.desktop),tablet:Ea(o.tablet??Ud.tablet),mobile:Ea(o.mobile??Ud.mobile)}}return{...Ud}}var Gx="subscribe-popup",_be="subscribe-popup",mz=[Gx,Et,SP,CP];function EP(e){return mz.includes(e)}var hz=["right","left"],xz={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:Tt.autoOpen,autoOpenDelaySec:Tt.autoOpenDelaySec,formSlug:"",trigger:Tt.trigger,scrollPercent:Tt.scrollPercent,showOn:Tt.showOn,showOnPages:[],hideAfter:Tt.hideAfter,hideDays:Tt.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},Ue=mo,Iz=mr,OP=$d;function PP(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 gz(e,o){return Array.isArray(e)?OP(e,[]):o}function bz(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:Ue(r.label,""),value:Ue(r.value,"")}}).filter(t=>t.label||t.value):o}function Rbe(e){let o=e??{},t=xz,r=yP(o);return{metaLabel:Ue(o.metaLabel,t.metaLabel),issueLabel:PP(o.issueLabel,t.issueLabel),issueNumber:PP(o.issueNumber,t.issueNumber),kicker:Ue(o.kicker,t.kicker),heading:Ue(o.heading,t.heading),deck:Ue(o.deck,t.deck),stats:bz(o.stats,t.stats),formLabel:Ue(o.formLabel,t.formLabel),formHeading:Ue(o.formHeading,t.formHeading),formIntro:Ue(o.formIntro,t.formIntro),firstNameLabel:Ue(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:Ue(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:Ue(o.emailLabel,t.emailLabel),emailPlaceholder:Ue(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:Ue(o.interestsLabel,t.interestsLabel),interests:OP(o.interests,t.interests),frequencyLabel:Ue(o.frequencyLabel,t.frequencyLabel),frequencies:gz(o.frequencies,t.frequencies),submitText:Ue(o.submitText,t.submitText),finePrint:Ue(o.finePrint,t.finePrint),dismissText:Ue(o.dismissText,t.dismissText),emailInvalidText:Ue(o.emailInvalidText,t.emailInvalidText),submitErrorText:Ue(o.submitErrorText,t.submitErrorText),successHeading:Ue(o.successHeading,t.successHeading),successBody:Ue(o.successBody,t.successBody),keepBrowsingText:Ue(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(hz,o.formSide,t.formSide),valuePanelOnPhone:Iz(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:kP(o)}}function yz(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function Sz(e){return{root:{props:{title:e,kind:Dx}},content:[],zones:{}}}function _P(e,o,t){return{slug:yz(o,t),title:e,kind:Xh,layout:Sz(e)}}function Ll(e){return e?.root?.props?.kind===Dx}function LP(e){let o=new Map;return(t="")=>{let r=dP(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!Pz().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var _z=LP(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=$e();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),Az=LP(async(e,o)=>await $e().blog?.posts(o?{siteId:o}:void 0)??[]);function Rz({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=Vd(()=>Bx(r,a),[r,a]),s=i(t);return Oa(RP,{label:s,icon:Oa(Cz,{}),children:Oa(kz,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function FP(){let{siteId:e,capabilities:o}=Ez(),{offersCommerce:t,hasBlog:r}=o,[a,n]=Kd([]),[s,l]=Kd([]),[c,d]=Kd([]),[f,u]=Kd(null),p=Oz().chrome,x=p?.products?.list,I=p?.linkFilters,g=I?void 0:p?.linkRow,v=Tz(!0);AP(()=>(v.current=!0,()=>{v.current=!1}),[]),AP(()=>{let b=!0;return _z(e??void 0).then(k=>b&&v.current&&n(k)),r&&Az(e??void 0).then(k=>b&&v.current&&l(k)),t&&x?.().then(k=>b&&v.current&&d(k)),t&&I?I.load(e).catch(()=>null).then(k=>b&&v.current&&u(()=>k)):u(null),()=>{b=!1}},[e,t,r,x,I]);let S=Vd(()=>({pages:a.filter(b=>!EP(b.slug)&&!Ll(b.layout)).map(b=>({slug:b.slug,title:b.label,docs:[b.layout]})),popups:a.filter(b=>b.slug===Gx||Ll(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=Vd(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:C,pages:a,offersCommerce:t,HostLinkRow:g}}function Jbe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=FP(),c=Vd(()=>Bx(s,l),[s,l]),d=i(e);return Oa(RP,{label:d,icon:o,children:Oa(vz,{label:d,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:c.kinds,rules:c.rules,filtersFor:c.filtersFor})})}function BP({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:c}=FP(),d=a.pages.map(u=>kl(u.slug)),f=l&&c&&(r==="/"||d.includes(r))?c:void 0;return wz("div",{children:[Oa(Rz,{value:r,onChange:o,label:t,data:a,filters:n}),f&&Oa(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as FE}from"efficient-easel/draw/client";import{phoneKey as Fl,resolveViewValue as Lz,tabletKey as Bl}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as Fz,convertLength as Bz,isLengthUnit as NP,sideLengthAt as Dz,withLength as zx}from"efficient-easel/screen/lib/content/length-units";var at={min:10,max:200,step:10};function Nz(e,o,t,r=0){let a=U(e),n=U(o);if(a===void 0&&n===void 0)return;let s=qd(t),l=c=>c===void 0?void 0:s==="px"?c:zx(c,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var qd=e=>NP(e)?e:"px",Mz="sf-pad-top-phone",Hz="sf-pad-bottom-phone",Wz="--sf-pad-t-phone",Gz="--sf-pad-b-phone",zz="sf-pad-left-phone",$z="sf-pad-right-phone",Uz="--sf-pad-l-phone",jz="--sf-pad-r-phone",Kz="sf-pad-top-tablet",Vz="sf-pad-bottom-tablet",qz="sf-pad-left-tablet",Yz="sf-pad-right-tablet",Xz="--sf-pad-t-tablet",Zz="--sf-pad-b-tablet",Jz="--sf-pad-l-tablet",Qz="--sf-pad-r-tablet";function Xd(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=Nz(e.top,e.bottom,e.unit,e.frame),r=$x({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 e$=[["top","paddingTop",[Kz,Xz],[Mz,Wz]],["bottom","paddingBottom",[Vz,Zz],[Hz,Gz]],["left","paddingLeft",[qz,Jz],[zz,Uz]],["right","paddingRight",[Yz,Qz],[$z,jz]]];function aye(e,o,t){return!NP(o)||o==="px"?e:Bz(e,"px",o,t,{min:0,max:at.max,step:1})}function o$(e,o,t,r={},a=0){let n=(x,I)=>{if(I==="px")return`${x}px`;let g=zx(x,I,a);return typeof g=="number"?`${g}px`:g},s={n:e,[Bl("n")]:o,[Fl("n")]:t,u:r.desktop,[Bl("u")]:r.tablet,[Fl("u")]:r.phone},l=Lz("spacing",e,o,t,Cn()),c=(x,I,g)=>{let v=Dz(s,{side:"n"},"u",x,"side");if(!v)return;let S=I!==null&&!g&&v.unit==="px"&&typeof l[I]=="number";return n(S?l[I]:v.value,v.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 $x(e,o,t={},r=e,a={},n=0){let s={},l={},c=[];for(let[d,f,...u]of e$){let p=U(e[d]),x=d==="top"||d==="bottom"?n:0;p!==void 0&&(s[f]=qd(a.desktop)==="px"?p:zx(p,qd(a.desktop),x));let I=o$(U(r[d]),U(t[d]),U(o[d]),a,x);for(let[g,[v,S]]of[["tablet",u[0]],["phone",u[1]]]){let C=I[g];C!==void 0&&(c.push(v),l[S]=C)}}return{classes:c,style:{...s,...l}}}function DP(e,o,t){let r=U(e)??t,a=U(o);return r===void 0?a:a===void 0?r:r+a}function Zd(e,o={}){return{top:DP(e.padTop,e.sectionPaddingTop,o.top),bottom:DP(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var Yd={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function MP(e,o=Yd,t=!0,r=o===Yd?Fz:void 0){let a={};r&&(e[r]!==void 0&&(a.unit=e[r]),e[Bl(r)]!==void 0&&(a.unitTablet=e[Bl(r)]),e[Fl(r)]!==void 0&&(a.unitPhone=e[Fl(r)]));for(let n of t?["top","bottom","left","right"]:["top","bottom"])a[n]=e[o[n]],a[`${n}Tablet`]=e[Bl(o[n])],a[`${n}Phone`]=e[Fl(o[n])];return a}function nye(e){return Xd(e)}function sye(e,o){let t=(r,a)=>typeof r!="number"?void 0:qd(a)==="px"?r+o:r;return Xd({...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 Jd,buttonBorderOf as t$,buttonFillOpacityOf as r$,buttonPadSidesOf as a$}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as Ux}from"efficient-easel/screen/lib/content/length-units";var n$="px-6 py-4",s$=4,Qd=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(n$);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*s$},mye={top:Qd("y"),right:Qd("x"),bottom:Qd("y"),left:Qd("x")},WP="var(--btn)";function l$(e){let o=e.variant==="ghost",t=r$(e.buttonFillOpacity),r=t$(e.buttonBorder),a=Z(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":WP)},changed:t!==void 0||r!==void 0}}function hye(e){let o=l$(e);if(!o.changed)return null;let t=Z(e.buttonColor)??WP;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 i$="var(--sf-button-radius, 0)";function xye(e){let o=U(e.buttonCorners),t=Yt(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?i$:`${Math.max(0,o)}px`;return{borderRadius:t===null?r:Sa(r,t)}}function Iye(e){let o=n=>a$({top:e[`${Jd.top}${n}`],right:e[`${Jd.right}${n}`],bottom:e[`${Jd.bottom}${n}`],left:e[`${Jd.left}${n}`]})??{},t={desktop:e[Ux],tablet:e[`${Ux}Tablet`],phone:e[`${Ux}Phone`]},{classes:r,style:a}=$x(o(""),o("Phone"),o("Tablet"),void 0,t);return Object.keys(a).length?{className:r.join(" "),style:a}:null}var HP="upper";function GP(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)??HP;return`${l} \xB7 ${c[d]??c[HP]}`}import{usePreviewParts as hj}from"efficient-easel/draw/client";import{encodePartId as xj}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as Ij,useEaselStrings as gj}from"efficient-easel/strings";import{PIN_STICK_VAR as c$,PIN_TRACK_POSITION_VAR as d$,pinAttrs as zP,pinStickVars as f$,readPin as Vx}from"efficient-shell/format";var wye="Stick to top",jr={min:0,max:200,step:4,fallback:0},qx="Pin while scrolling",$P="Scroll",Ot={distance:"--sf-pin-distance",position:"--sf-pin-position",on:"--sf-pin-on",length:"--sf-pin-length",stick:"--sf-pin-stick",trackPosition:"--sf-pin-track-position",header:"--sf-pin-header"},Dl="stickTopScreens",p$=[Dl,"stickTopScreensTablet","stickTopScreensPhone"],Yx="Screens",Xx="stickTopStop",Kn="screen",UP="Pin stops at",jP=[{value:"header",label:"Under the header"},{value:Kn,label:"Screen top"}],KP="header",VP="Under the header: the section stops below the site header. Screen top: it stops at the top edge of the screen, under a see-through header.";function Zx(e){return e===Kn?Kn:"header"}function qP(e){return e===Kn?Kn:void 0}var Jx="stickAbove",YP="Stays above",XP="On: the pinned box stays on top, and the sections after it scroll under it.";function u$(e){return e.stickAbove===!0}var ZP=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...p$,Xx,Jx],Cye=new Set(["IntroBleed"]),kye=new Set(["CategoryBar","DocTabs","Contents"]);function m$(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var jx=e=>Vx(!0,e).length,Qx={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},JP={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function Kx(e){let o=U(e)??jr.fallback;return Math.min(jr.max,Math.max(jr.min,Math.round(o)))}function eI(e){return typeof e.stickTopTablet=="boolean"}function oI(e){return typeof e.stickTopPhone=="boolean"}function Nl(e,o={}){let t=o.intro?m$(e):e.stickTop===!0,r=Kx(e.stickTopDistance),a=jx(e.stickTopScreens),n=eI(e),s=n?e.stickTopTablet===!0:t,l=n?Kx(e.stickTopDistanceTablet):r,c=n?jx(e.stickTopScreensTablet):a,d=oI(e),f=d?e.stickTopPhone===!0:s,u=d?Kx(e.stickTopDistancePhone):l,p=d?jx(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 vye(e,o={}){let t=Nl(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.above===!0&&u$(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,x,I)=>va({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,x,I).style,c={...o.atScreenTop||Zx(e.stickTopStop)===Kn?{[Ot.header]:"0px"}:{},[Ot.distance]:`${t.desktopDistance}px`,...l(Ot.distance,`${t.desktopDistance}px`,`${t.tabletDistance}px`,`${t.phoneDistance}px`)};if(s){let u=x=>x?"1":"0",p={...c,...t.desktop?{}:{[Ot.on]:"0"},...l(Ot.on,u(t.desktop),u(t.tablet),u(t.phone)),[Ot.length]:String(t.desktopScreens),...l(Ot.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...h$(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:zP(Vx(!0),"track").attrs,style:p}}let d=u=>u?"sticky":"static",f={...c,...t.desktop?{}:{[Ot.position]:"static"},...l(Ot.position,d(t.desktop),d(t.tablet),d(t.phone))};return{attrs:zP(Vx(!0),"stick",n?{above:n}:{}).attrs,style:f}}function h$(e,o,t,r){let a=[[Ot.stick,c$],[Ot.trackPosition,d$]],[n,s,l]=[e,o,t].map(f$);return Object.fromEntries(a.flatMap(([c,d])=>[...e?[[c,n[d]]]:[],...Object.entries(r(c,n[d],s[d],l[d]))]))}var x$=["column","row","tabs","accordion"];var I$={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},QP={Flex:x$,HeroGroup:["column","row"]},g$={Flex:"row",HeroGroup:"column"},b$={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Vn(e,o){return QP[e].includes(o)?o:g$[e]}function Pye(e,o){return b$[Vn(e,o)]}function eE(e){return QP[e].map(o=>({label:I$[o],value:o}))}var y$=["solid","dashed","dotted"],tE=["top","right","bottom","left"],Oye="sf-section-border",_ye="sf-section-border-self",S$=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,oE=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(20,Math.max(0,Math.round(e)))}px`:void 0;function qn(e,{phone:o=!1,tablet:t=!1}={}){if(!e||typeof e!="object")return;let r=o?"-phone":t?"-tablet":"",a={};for(let n of tE){let s=oE(e[n])??oE(e.width);s!==void 0&&(a[`--sf-border-${n}-width${r}`]=s)}return typeof e.style=="string"&&y$.includes(e.style)&&(a[`--sf-border-style${r}`]=e.style),typeof e.color=="string"&&S$.test(e.color)&&(a[`--sf-border-color${r}`]=e.color.toLowerCase()),Object.keys(a).length?a:void 0}function tI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(tE.map(r=>[r,t[r]??o]))}}function Aye(e,o,t){let r=qn(e),a=qn(t,{tablet:!0}),n=qn(t,{phone:!0})||qn(o,{phone:!0})?{...qn(t,{phone:!0}),...qn(o,{phone:!0})}:void 0;return r||a||n?{...r,...a,...n}:void 0}var ef="sf.gapContainer",hr={min:-32,max:64,step:2},sE={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},Yn={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},w$=new Set(["Events","GalleryB"]);function Aa(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=hr.min)return o;if(typeof o=="string"){let r=sE[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:Yn[e]}var C$="sf-gap-overlap",k$="--sf-gap-overlap",lE="--sf-block-gap",v$="--sf-block-gap-rem",_a={min:0,max:hr.max,step:hr.step};function Ml(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),_a.min),_a.max);return o-o%_a.step}function Lye(e){let o=Ml(e);return o===null?{}:{[lE]:`${o}px`,[v$]:`${o/16}rem`}}var T$="--sf-block-gap-phone",P$="--sf-block-gap-phone-rem",E$="--sf-block-gap-on-phone",O$="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function Fye(e){let o=Ml(e);return o===null?{}:{[T$]:`${o}px`,[P$]:`${o/16}rem`}}function Bye(e){return Ml(e)===null?"":O$}var rE="sf-gap-zone",aE="--sf-gap-len";function of(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=hr.min?!0:typeof o=="string"&&typeof sE[e]?.[o]=="number"}var nE="--sf-gap-len-phone",_$="--sf-gap-len-tablet",Hl={min:0,max:hr.max,step:hr.step};function Kr(e){return typeof e=="number"&&Number.isFinite(e)&&e>=Hl.min}function rI(e){return e/2}function aI(e,o,t){return Kr(t)&&!of(e,o)}function nI(e,o,t,r,a){return Kr(o)?o:aI(e,t,a)?a:rI(Aa(e,t,r))}var A$={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function Dye(e,o,t,r,a){let n={...Kr(r)?{[nE]:`${r}px`}:null,...Kr(a)?{[_$]:`${a}px`}:null};if(!of(e,o)){let l=`${Yn[e]}px`,c=w$.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${rE}`,style:{[aE]:`var(${lE}, ${c})`,[nE]:`var(${E$})`,...n}}}let s=Aa(e,o);return s>=0?{className:` ${rE}`,style:{[aE]:`${s}px`,...n}}:{className:` ${C$} ${A$[t]}`,style:{gap:"0px",[k$]:`${-s/2}px`}}}import{parseHexColor as R$}from"efficient-shell/format";var vo="var(--section-bg)",Wl="inherit";function Jt(e,o){return e===Wl?vo:e===void 0?o:tf(e)}var L$=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function tf(e){let o=Zt(e);return o?fr(o):e.replace(L$,"var(--site-$1")}var F$={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function sI(e,o,t){let r=Jt(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?R$(a):null;if(n)return n.toLowerCase();let s=F$[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var lI="transparent";function iE(e,o){let t=Jt(e,o);return!t||t===lI?"none":t===vo?"band":null}function cE(e,o,t=o){let r=n=>!n||n==="transparent",a=Jt(e,o);return a===t||r(a)&&r(t)}var dE=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],fE={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Xn="var(--wheel-stage)",rf="transparent",Gl="inherit";function zye(e,o){return tf(iI(e,o))}function iI(e,o){return e===Gl?Xn:e==null?o:e===!0?Xn:e===!1?rf:e}function $ye(e){return typeof e=="string"&&e!==Gl?tf(e):Xn}function Uye(e){return e!==rf&&e!=="none"&&e!==""}function pE(e,o){return e===Gl||e===!0?!0:e==null?o===Xn:!1}var uE="inherit",af="fixed",mE=e=>typeof e!="number"&&e!==af,B$="var(--sf-heading-max, 9999px)";function Kye(e,o,t,r){if(typeof e=="number")return`${e}px`;if(e===af)return o;let a=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${a}, ${B$})`:a}var ho={min:1e3,max:2e3,step:50,default:1600};function D$(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var hE="--sf-site-width",cI=`var(${hE},${ho.default}px)`,qye="100vw",Yye=`max-w-[${cI}]`,Xye=`max-w-[${ho.default}px]`;function xE(e){return typeof e!="number"||!Number.isFinite(e)?ho.default:Math.round(Math.min(Math.max(e,ho.min),ho.max))}function Zye(e){let o=xE(e);return o===ho.default?{}:{[hE]:`${o}px`}}var xr={min:0,max:80,step:4,default:40},IE="--sf-site-gutter",zl={min:0,max:24,step:4},N$="--sf-site-gutter-phone",M$="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",_t=`var(${IE},${xr.default}px)`,H$=`px-[${_t}]`;var Vr={md:`min(24px,${_t})`,sm:`min(20px,${_t})`,frame:`min(24px,${_t})`,tabs:`min(16px,${_t})`},Jye=[[`max-view-desktop:px-[${Vr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${Vr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${Vr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Vr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${Vr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${Vr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${Vr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${Vr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${_t}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${_t})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${_t})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${_t})]`,"max-view-tablet:-mx-5"],[`-mx-[${_t}]`,"-mx-10"],[H$,"px-10"]];var W$="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]",Qye="max-view-wide:[--sf-edge-g:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",eSe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${W$}`,oSe="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var tSe="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 nf(e){return typeof e!="number"||!Number.isFinite(e)?xr.default:Math.round(Math.min(Math.max(e,xr.min),xr.max))}function rSe(e){let o=nf(e);return o===xr.default?{}:{[IE]:`${o}px`}}function sf(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,zl.min),zl.max))}function gE(e){return typeof e=="number"&&Number.isFinite(e)?xE(e):null}function aSe(e){let o=sf(e);return o===null?{}:{[N$]:`${o}px`}}function nSe(e){return sf(e)===null?"":M$}function lf(e){return Math.min(zl.max,nf(e))}var bE=cI,sSe=`max-w-[${bE}]`,lSe=`max-w-[min(var(--sf-page-cap,${ho.default}px),${ho.default}px)]`,yE="--sf-hero-cap",G$=`var(${yE},none)`,iSe=`max-w-[${G$}]`,z$="--sf-hero-bleed-m",$$="--sf-hero-bleed-w",U$="--sf-hero-chrome-x",j$="--sf-hero-chrome-cap";function cSe(e){return e===!0?{[yE]:bE,[z$]:"auto",[$$]:"100%",[U$]:"24px",[j$]:"none"}:{}}var dI=`calc(${cI} - ${_t}*2)`,dSe=`max-w-[${dI.replace(/ /g,"_")}]`;var K$="--sf-chrome-cap",V$=`var(${K$},${dI})`,fSe="data-page-width";function pSe(e){return e==="full"?"full":null}function uSe(e){return e==="full"?null:D$(e==="content"?dI:V$)}function mSe(e){if(e==="full")return"full";if(e==="content")return"content"}var q$=["page","full"],SE=["full","page"],Ra={full:"Full",page:"Content"},fI="inherit",Y$=e=>typeof e=="string"&&q$.includes(e),X$=e=>e===fI;function Z$(e,o){return X$(e.widthMode)?{mode:"full",inherited:!0}:Y$(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function ISe(e){return Z$(e,"page").mode==="full"}var J$={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 gSe(e){return Object.prototype.hasOwnProperty.call(J$,e)}var io={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax"};function Q$(e){let o=gE(e[io.contentMax]),t=Zn(e[io.content])??(o===null?null:"content");return{background:Zn(e[io.background]),content:t,contentMax:t==="content"?o:null}}function bSe(e){let o=Q$(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function ySe(e){return e.background!==null||e.content!==null}var SSe=e=>({[io.background]:e}),wSe=e=>e==="full"?{[io.content]:e,[io.contentMax]:void 0}:{[io.content]:e},CSe=e=>({[io.content]:"content",[io.contentMax]:e}),kSe=e=>e==="background"?{[io.background]:void 0}:{[io.content]:void 0,[io.contentMax]:void 0},wE="siteWidths",eU=e=>e==="full"||e==="content";function Zn(e){return eU(e)?e:null}function CE(e,o){return{[wE]:{background:Zn(e),content:Zn(o)}}}function vSe(e){let o=e.editor?.metadata?.[wE];return{background:Zn(o?.background),content:Zn(o?.content)}}import{jsx as oU}from"react/jsx-runtime";import{createContext as tU,useContext as OSe}from"react";var rU=2,_Se=rU+1,aU=tU(2);function kE({tier:e,children:o}){return oU(aU.Provider,{value:e,children:o})}import{useEaselSession as bj}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as yj,describedAs as Yr,group as At,iconOf as es,sharedStyleKinds as jl}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as eO,onDesktopWords as Fa,phoneTwinFields as II}from"efficient-easel/screen/lib/document/box-fields";import{createElement as nt}from"react";import{SettingsDefaultReset as nU,SettingsField as sU}from"efficient-easel/panel";import{boxFieldBuilders as lU,describedAs as iU,iconOf as cU,onDesktopWords as dU}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_UNITS as fU}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as pU,Tooltip as uU,useShellStrings as mU}from"efficient-shell/ui";import{RotateIcon as hU}from"efficient-easel/icons";var vE=e=>i(e),xU=fU,xo=lU(vE,{paddingUnits:xU}),To=xo.slider,st=xo.select,cf=xo.Segmented,La=xo.segmented,WSe=xo.alignmentField,GSe=xo.alignmentFields,zSe=xo.blockAlignmentField,$Se=xo.blockAlignmentFields,USe=xo.boxJustifyField,jSe=xo.boxAlignField,KSe=xo.boxWrapField,TE=xo.directionField,df=xo.gapField,VSe=xo.placementField,qSe=xo.PlacementGridView,YSe=xo.positionFields,ff=xo.sidesPaddingFields;function PE(e,o){return To("Angle",nt(hU),Vt.min,Vt.max,Vt.step,e,"\xB0",o)}var IU={width:"3.5rem",height:"2.75rem"};function pI({value:e}){return mU().iconNames[e]??e}function uI(e,o,t){return nt(uU,{content:t,className:"sf-pick-tip",children:nt("span",{className:"sf-pick"},nt("span",{className:"sf-pick-pic"},e),nt("span",{className:"sf-pick-cap"},o))})}function gU(e){let o=t=>t.label===void 0?nt(pI,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:uI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function EE(e,o){return nt("span",{className:"sf-pick"},nt("span",{className:"sf-pick-pic"},e),nt("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function OE(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",...iU({},{type:"radio",label:e,options:l}),options:l,render:c=>{let{value:d,onChange:f,field:u}=c,p=u?.options,x=gU(t.filter(k=>!p||p.some(T=>T.value===k.value))),I="follows"in c,g=I?s(a.phoneRest?a.phoneRest(c.follows):c.follows)??r:void 0,v=u?.currentValue,S=s(d)??g??s(v)??r,C=d!=null&&d!=="",b=g===void 0?void 0:t.find(k=>k.value===g);return nt(sU,{label:i(e),icon:cU(o),action:I?nt(nU,{words:ne()?.panel,label:i(e),changed:C,detail:b?.label!==void 0?dU(vE,i(b.label),c.followsView):void 0,disabled:c.readOnly===!0,onReset:()=>f(void 0)}):void 0},nt(pU,{label:i(e),value:S,options:x,onChange:f,columns:a.columns,cell:a.cell??IU,tooltips:!1,disabled:c.readOnly===!0}))}}}import{TEXT_CONTROL_KINDS as NCe,SCALAR_TEXT_CONTROLS as MCe}from"efficient-easel/draw";function Ba(e,o){return i("{value} from {from}",{value:e,from:o})}function Sj(){let{blockGap:e}=xe();return e===null?i("this container's own spacing"):Ba(`${e}px`,i("Styles"))}function wj({inherited:e,onReset:o,label:t}){return w(Po,{words:ne()?.panel,label:i(t),changed:!e,detail:Sj(),onReset:o})}function Cj(e){return df({...yj,builtIn:Yn[e],resolve:(o,t)=>Aa(e,o,t?.siteGap),action:(o,t)=>w(wj,{inherited:!of(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[ef]:e}})}function kj(e){return Ge(lt("mobile",{[ef]:e,type:"custom",render:o=>w(Pj,{container:e,...o})}),oO)}function vj(e){return Ge(lt("tablet",{[ef]:e,type:"custom",render:o=>w(Tj,{container:e,...o})}),oO)}var oO={not:{field:"gap",in:Array.from({length:-hr.min},(e,o)=>hr.min+o)}};function OCe(e){return{gap:lt("desktop",Cj(e)),[CI("gap")]:vj(e),[Jn("gap")]:kj(e)}}function Tj({container:e,...o}){let[t]=gr("gap"),{siteGap:r}=o.field??{},a=Math.max(Hl.min,Aa(e,t,r));return df({...Hl,builtIn:a,resolve:n=>Kr(n)?n:a,action:(n,s)=>w(Po,{words:ne()?.panel,label:i("Gap"),changed:Kr(n),detail:Fa(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function Pj({container:e,...o}){let[t]=gr("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=nI(e,void 0,t,r,a);return df({...Hl,builtIn:n,resolve:s=>nI(e,s,t,r,a),action:(s,l)=>w(Po,{words:ne()?.panel,label:i("Gap"),changed:Kr(s),detail:Ba(`${n}px`,aI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function _Ce(e){return TE({offered:eE(e),fallback:Vn(e,void 0),resolve:o=>Vn(e,o)})}function ACe(e,o){return Hw(o?zw(e,o):[],o)}function Ej({inherited:e,onReset:o,label:t}){return w(Po,{words:ne()?.panel,label:i(t),changed:!e,detail:Ba(i("Full"),i("the page")),onReset:o})}function Da({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:c,hidden:d}=Xr(e),f=$l(null),u=$l(null),p=C=>o(s?{text:C,hidden:d}:C),x=()=>o({text:c,hidden:!d}),I=s&&d,g=WE(),v=a?Lj(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(Qe,{label:i(t),icon:w(jU,{}),htmlFor:g,className:I?"is-hidden":void 0,hint:v,action:s?w(wI,{content:S,children:w(JE,{"aria-pressed":d,"aria-label":S,onClick:x,children:d?w(FE,{name:"eye-off",size:14}):w(FE,{name:"eye",size:14})})}):void 0,children:qr("div",{className:"sf-copybox",children:[l&&w(hx,{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 RCe(e,o){return{...e,[PU]:o}}function LCe(e){let o=e[Ir];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Ir]:{...o,offPage:!0}}}function gf(e){return!e||typeof e!="object"?!1:e[Ir]?.offPage===!0}function FCe(e){if(!e[Ir])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Ix]:!0}}function tO(e){return $n(e)}function BCe(e){let o=e[Ir];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Ir]:{...o,identifier:!0}}}function HCe(e,o){if(!e[Ir])throw new Error("inOwnBox: the field holds no authored text");let{[pj]:t,...r}=e;return{...r,[xx]:!0,render:o}}var Oj=new Set(mj),hf={type:"radio",options:[{value:!0},{value:!1}]},rO={text:{type:"object",objectFields:{text:{type:"text"},hidden:hf}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:hf}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},Na=(e,o)=>{let t=Yr({...o,[Ir]:e},{...rO[e.control],label:e.label});if(!Oj.has(e.control))return t;let r=o.render;return{...QE(t,"authored-copy"),render:a=>w(BT,{name:a.name,children:r(a)})}},WCe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",_j={field:"source.slug",set:!0},GCe={not:_j},Aj="Select a word, then press the highlighter.",Rj=new Set([Aj]),Lj=e=>Rj.has(e);function zCe(e,o,t){return Na({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Da,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function $Ce(e,o,t){return Na({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Da,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function UCe(e,o,t){return Na({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Da,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function jCe(e,o,t){return Na({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Da,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function KCe(e){return{type:"custom",[vU]:{label:e},...Yr({},{type:"text",label:e}),render:({value:o,onChange:t})=>w(BP,{value:kU(o),onChange:t,label:e})}}function VCe(e,o,t){return Na({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>w(Da,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var aO={Design:EU,Animation:_U};function qCe(e){return{type:"custom",render:()=>w(Fj,{text:e})}}function Fj({text:e}){return w("p",{className:"sf-note",children:i(e)})}function YCe(e){return yr(e)!==null&&e?.tabs!==void 0}var BE=new Map;function bf(e,o){let t=`${e}\0${o?o.join(""):""}`,r=BE.get(t)??{type:"custom",tabs:o,[GE]:{label:e,level:1},bucket:e,marker:!0,render:()=>w(br,{})};return BE.set(t,r),r}var DE=new Map;function kI(e){let o=DE.get(e)??{type:"custom",[GE]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>w(br,{})};return DE.set(e,o),o}function Bj(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function nO(e,o){return Bj(e)===o?e:{...e,marker:!0,fold:o,render:()=>w(br,{})}}function sO(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 vI({title:e,children:o}){let[t,r]=Ul(()=>!mI.has(e));return w(qU,{title:e,open:t,onToggle:a=>{r(a),a?mI.delete(e):mI.add(e)},children:o})}var mI=new Set;function Dj({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 qr("div",{className:"sf-swatches",children:[e.map(l=>{let c=r?.[l]?i(r[l]):l;return w(wI,{content:c,children:w(rj,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":c})},l)}),w("span",{className:"sf-swatch-hex",children:s})]})}function XCe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>w(Nj,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function Nj({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=AI(),c={background:s.background,surface:s.surface,surface2:wc(s),band:gw(s)},d=t?vo:o,f=cE(n,o,d),u=sI(void 0,d,c),p=t?Wl:void 0,x=d===vo?i("the theme's section background"):i("Theme {n} background",{n:l}),I=Mj(n,o,s,l,c,a),g=Ba(u.toUpperCase(),x),v=Zt(n),S=v?Mn(v,s,l):null;return S?w($o,{label:i(e),icon:w(_E,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:g,choices:I}):w(Tl,{label:i(e),icon:w(_E,{}),value:f?"":sI(n,o,c),inherited:u,resetTo:g,onChange:a,onReset:()=>a(p),choices:I})}function Mj(e,o,t,r,a,n){let s=iE(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(lI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(vo)},..._I(Zt(e)??"",t,r,n)]}function Hj(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=pE(a,o);return w(Qe,{label:i(e),icon:w(xI,{}),changed:!n,action:w(Po,{words:ne()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(Gl)}),children:Dj({swatches:dE,current:n?Xn:iI(a,o),onPick:r,names:fE})})}}}function yf(e=t=>t,o){return jl({_gSectionTheme:At(Fw),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>w(iP,{value:e(t),onChange:r,followLabel:o})}})}function jo({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(dj,{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 lO(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(Qe,{label:i(e),icon:d?es(d):void 0,value:I?c||n===void 0?void 0:i(n):`${x}${f}`,changed:!I,action:c?gI(c,{changed:!I,onReset:()=>p(null)}):w(Po,{words:ne()?.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}):jo({min:t,max:r,step:a,value:x??t,readout:!1,ariaLabel:e,onChange:p})})}}}var Sf="Corners";function TI(e){return{type:"custom",render:({value:o,onChange:t})=>{let r=typeof o=="number"&&Number.isFinite(o)?o:null,a=r!==null;return w(Qe,{label:i(Sf),icon:w($E,{}),changed:a,action:gI(e.mark,{changed:a,onReset:()=>t(null)}),hint:e.hint,children:w(Wj,{tier:e,px:r,onRadius:t})})}}}function gr(e){let o=Qn();return[o?.values?.[e],t=>o?.onChange(e,t)]}function iO(){return QE({type:"custom",render:()=>w(uj,{})},"always")}function _l(){let e=Qn();return o=>e?.onChangeMany(o)}function Wj({tier:e,px:o,onRadius:t}){let r=e.useFollowed(),[a,n]=gr(e.sidesKey),s=Yt(a)??[...ud];return w(aj,{label:i(Sf),value:s,corners:Iv,onChange:l=>{let c=Yt(l)??[];n(c.length===ud.length?null:c)},radius:o,onRadiusChange:t,radiusMin:tt,radiusMax:fa,radiusStep:e.step??1,radiusPlaceholder:String(r)})}function cO(){return iO()}function Gj({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=xe(),a=typeof r=="number"?`${r}px`:i("not set");return w(Po,{words:ne()?.panel,label:i(e),changed:o,detail:r==null?i("the built-in corners"):Ba(a,i("Styles")),onReset:t})}function zj(){let{cornerRadiusPx:e}=xe();return typeof e=="number"?e:tt}function $j(){return TI({sidesKey:"sectionCornerSides",useFollowed:zj,mark:w(Gj,{label:Sf}),hint:Uj})}var Uj="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function wf(){return jl({_gShape:At("Shape"),sectionCorners:$j(),sectionCornerSides:cO(),...pr("sectionBorder",Xj)})}var jj=()=>({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 Kj(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function Vj(){let e;try{let o=to(xe().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||uw.line}function qj({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]=Ul(()=>a?QU(l,s):!1),f=jj(),u=p=>Kj(a&&n?p:{width:p.width,color:p.color,...n?{style:p.style}:{}});return w(Qe,{label:i("Border"),icon:w(AU,{}),action:a?w(ZU,{each:c,label:i("Each side"),onChange:d}):void 0,children:w(XU,{label:i("Border"),value:l,each:c,onChange:p=>o(u(p)),placeholder:t,presets:r,words:f,styles:n,max:20})})}function Yj({value:e,onChange:o,view:t}){let[r]=gr("sectionBorder"),[a]=gr(CI("sectionBorder")),n=Vj(),s=c=>c&&typeof c=="object"?c:{},l=t==="phone"?{...tI(s(r)),...tI(s(a))}:t==="tablet"?s(r):{};return w(qj,{value:e,onChange:o,placeholder:{sides:JU(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}function Xj(e){return{type:"custom",render:({value:o,onChange:t})=>w(Yj,{value:o,onChange:t,view:e})}}function ZCe(e){return{type:"custom",render:()=>w(Zj,{partKey:e})}}function Zj({partKey:e}){let[o]=gr("id"),[t]=gr("_partStyles"),{textStyles:r}=xe(),a=gj(),n=null;try{n=hj().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return w(VU,{name:i("Text"),preview:GP(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??Ij.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(xj(o,e))}})}function dO(e){let{cornerRadiusPx:o}=xe(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=If(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 Gh(a)?a:t}function Jj({label:e,changed:o=!1,onReset:t=()=>{}}){let r=dO(tt);return w(Po,{words:ne()?.panel,label:i(e),changed:o,detail:Ba(`${r}px`,i("the section")),onReset:t})}function Qj(){return w(br,{children:i("Follows the section's Corners until you set a number here.")})}function eK(){return TI({sidesKey:"cardCornerSides",useFollowed:()=>dO(tt),mark:w(Jj,{label:Sf}),hint:w(Qj,{})})}function oK(){return{type:"custom",render:()=>w(kv,{})}}function JCe(){return{_gShape:At("Shape"),cardCorners:eK(),cardCornerSides:cO(),cardCornersApplyAll:oK()}}function tK(){return Yr({type:"custom",render:e=>w(aK,{...e})},{type:"select",label:da,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 rK(e,o){let t=Cm(e);if(t!=="custom")return i(wm.find(a=>a.value===t)?.label??"");let r=ZE(yc(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function aK(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=Cm(l),d=a>=2&&a<=RE,f=()=>[...lj[a]??[]],u=$l(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:RE}),g=s&&(n||o!=="content"),v=cj().widths.hint(a,sj);return w(Qe,{label:i(da),icon:w(bI,{}),changed:g,hint:c!=="custom"?void 0:d?v:I,action:w(Po,{words:ne()?.panel,label:i(da),changed:g,disabled:e.readOnly===!0,detail:n?Fa(S=>i(S),rK(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:qr("div",{className:"sf-share-row",children:[w("div",{className:"sf-share-pick",children:w(XE,{label:i(da),value:c,options:wm.map(S=>({value:S.value,label:S.value==="custom"&&!d?I:i(S.label),icon:uI(w("span",{className:"sf-gallery-pic sf-share-pic",children:fO(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:pO,tooltips:!1,disabled:e.readOnly===!0})}),c==="custom"&&d?w("div",{onFocus:()=>{u.current={value:o,shares:ZE(yc(l,a),a)}},onBlur:()=>{u.current=null},children:w(ij,{label:i(da),count:a,value:yc(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function fO(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 QCe(){return st(fw,w(MU,{}),Tm,Tm[0].value)}function eke(){return lt("mobile",OE(da,w(bI,{}),iw.map(e=>({label:e.label,value:e.value,picture:w("span",{className:"sf-gallery-pic sf-share-pic",children:fO(e.weights).map((o,t)=>w("i",{style:{gridColumn:`span ${o}`}},t))})})),cw,{columns:2,cell:pO}))}var pO={width:"5.75rem",height:"3.25rem"};function oke(){return II("share",tK(),eO)[CI("share")]}function nK(){return lt("mobile",To(km,w(zE,{}),Sc,lw,1,Sc,"",{clear:{phoneFollows:!1,hint:Sc}}))}var NE={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function tke(){let e=To(km,w(zE,{}),vm,dw,1,vm,"",{clear:{emptyLabel:"Auto"}}),o=II("columns",e,{...NE,tablet:eO.tablet}),t=II("columns",e,NE,{phoneRow:nK()});return{...o,phoneRow:t.phoneRow}}function rke(e,o,t,r,a,n){return{type:"custom",render:({value:s,onChange:l})=>w(Qe,{label:i(e),icon:w(rx,{noun:n}),action:w(Po,{words:ne()?.panel,label:i(e),changed:!mE(s),detail:i("the Text style in Styles"),onReset:()=>l(uE),defaultAction:{onPress:()=>l(af),title:i("Keep this section's own built-in size"),icon:w(RU,{})}}),children:jo({min:o,max:t,step:r,value:typeof s=="number"?s:a,suffix:"px",ariaLabel:e,onChange:l})})}}function ake(){return{_gCellWidth:At("Cell width"),gridSpan:st("Positions",w(bI,{}),[{label:"Auto",value:""},...Array.from({length:Id},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function rt(){let e=null,o=null;try{e=HE(PI),o=If(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var PI=SU(null);function sK({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let c=rt()[s],d=Ad(void 0,c,l);return w(br,{children:jo({min:e,max:o,step:t,value:Ad(r,c,l),readout:!1,ariaLabel:a,notch:d,onChange:n})})}function lK({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=rt()[o],l=Ad(void 0,s,t);return w(Po,{words:ne()?.panel,label:i(e),changed:a,detail:Fa(c=>i(c),`${l}${r}`),onReset:n})}function iK(e){return lO(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:w(lK,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>w(sK,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var cK={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},dK={Top:yI,Bottom:KE,Left:VE,Right:qE},fK=e=>{let o=dK[e];return w(o,{})};function nke(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=v=>cK[v],n=v=>To(a("Top"),w(yI,{}),at.min,at.max,at.step,v,"px"),s=(v,S,C,b=at)=>lt("mobile",iK({label:a(v),icon:fK(v),desktopKey:S,min:b.min,max:b.max,step:b.step,fallback:C})),l=e.top??at.min,c=e.bottom??at.min,d="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??at,p=e.side??u.min,x=e.sidePhone??p,I=e.phone===!0,g=v=>I?lt("desktop",v):v;return jl({...r?{_gSpacing:At("Padding")}:{},[o]:g(n(l)),...I?{[Jn(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:g(To(a("Bottom"),w(KE,{}),at.min,at.max,at.step,c,"px")),...I?{[Jn(t)]:s("Bottom",t,c)}:{}},...e.sides?{[d]:g(To(a("Left"),w(VE,{}),u.min,u.max,u.step,p,"px")),...I?{[Jn(d)]:s("Left",d,x,u)}:{},[f]:g(To(a("Right"),w(qE,{}),u.min,u.max,u.step,p,"px")),...I?{[Jn(f)]:s("Right",f,x,u)}:{}}:{}})}function ske(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 uf="Width";function Cf(e,o=SE,t=!0){let r=o.map(a=>({label:Ra[a],value:a}));return jl({...t?{_gWidth:At(uf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>w(Qe,{label:i(uf),icon:w(KU,{}),action:t?w(Ej,{inherited:n?.inherited??!1,onReset:()=>a(fI),label:uf}):void 0,children:cf({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:uf})})}})}function kf(){let e=(r,a)=>({type:"custom",render:({value:n,onChange:s})=>w(pK,{value:n,onChange:s,view:r,badge:a})}),o=r=>({type:"custom",render:({value:a,onChange:n,field:s})=>w(mK,{value:a,onChange:n,unit:s?.unit,view:r})}),t=r=>{let a=La("Unit",w(UE,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");if(r==="desktop")return a;let n=a.render;return{...a,render:s=>w(hK,{props:s,draw:n,view:r})}};return jl({_gHeight:At(En),...pr("sectionHeightMode",r=>r==="desktop"?e(r):e(r,a=>w(xK,{view:r,onClear:()=>a(void 0)}))),...pr("sectionHeightValue",o),...pr("sectionHeightUnit",t)})}function pK({value:e,onChange:o,view:t,badge:r}){let a=rt(),n=l=>["auto","fixed","screen"].includes(l),s=vf(t,a)?.mode??"auto";return w(Qe,{label:En,icon:es(w(jE,{})),action:r?r(o):void 0,children:cf({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:n(e)?e:s,onChange:o,ariaLabel:En})})}function uO(e,o){return e==="phone"&&Ec(o)?Jw(o):Xw(o)}function vf(e,o){return e==="desktop"||(e==="tablet"?Ec(o):Zw(o))?null:uO(e,o)}function uK(e,o,t,r){let a=vf(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[ke("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[ke("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[ke("sectionHeightValue",e)]:a.value}:{},[ke(t,e)]:r}}function mO(e,o,t){let r=Qn(),a=vf(e,rt());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=uK(e,s,o,n);return l===null?{[ke(o,e)]:n}:Object.keys(l).length?l:null})}}function mK({value:e,onChange:o,unit:t,view:r}){let{followed:a,write:n}=mO(r,"sectionHeightValue",o),s=(a?a.unit:t)==="%"?"%":"px",l=s==="%"?Yw:qw;return w("div",{className:"sf-field",children:jo({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:En,onChange:n})})}function hK({props:e,draw:o,view:t}){let{followed:r,write:a}=mO(t,"sectionHeightUnit",e.onChange);return o({...e,...r?{value:void 0,storedValue:void 0,follows:r.unit}:{},onChange:a})}function xK({view:e,onClear:o}){let t=rt(),r=vf(e,t)===null,a=e==="phone"&&Ec(t),n=uO(e,t),s=Fa(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return w(Po,{words:ne()?.panel,label:i(En),changed:r,detail:s,onReset:o})}function EI(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:c,name:d})=>w(CK,{value:s,onChange:l,labelId:`${c??d??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>w(yK,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>w(SK,{value:s,onChange:l,view:n,intro:o})});return{_gStick:At($P,{dot:o?bK:Qx}),...pr("stickTop",t),...pr("stickTopDistance",r),...e.screens?pr(Dl,a):{},...o?{}:{[Xx]:IK()},...o||e.above===!1?{}:{[Jx]:gK()}}}function IK(){let e=st(UP,w(yI,{}),jP,KP);return lt("desktop",{...e,render:o=>{let t=e.render({...o,value:Zx(o.value),onChange:r=>o.onChange(qP(r))});return gI(t,{hint:i(VP)})}})}function gK(){let e=xO(YP,!1,w(YE,{}),XP);return lt("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var bK={any:[Qx,JP]};function hO(e,o,t,r){let a=Qn(),n=rt(),s=e==="desktop"||xf(e,n)?null:OI(e,Nl(n,{intro:r}));return{followed:s,write:s&&a?l=>a.onChangeMany(c=>{let d=wK(e,c,l,o,r);return d===null?{[ke(o,e)]:l}:Object.keys(d).length?d:null}):t}}function yK({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=hO(t,"stickTopDistance",o,r);return w("div",{className:"sf-field",children:jo({min:jr.min,max:jr.max,step:jr.step,value:a?null:typeof e=="number"?e:jr.fallback,...a?{placeholder:a.distance}:{},suffix:"px",ariaLabel:i("Distance from top"),onChange:n})})}function SK({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=hO(t,Dl,o,r);return w(Qe,{label:i(Yx),icon:es(w(jE,{})),children:jo({min:pf.min,max:pf.max,step:pf.step,value:a?null:U(e)??pf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(Yx),onChange:n})})}function xf(e,o){return e==="tablet"?eI(o):oI(o)}function OI(e,o){return e==="phone"?{on:o.tablet,distance:o.tabletDistance,screens:o.tabletScreens}:{on:o.desktop,distance:o.desktopDistance,screens:o.desktopScreens}}function wK(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||xf(e,o))return null;if(t===void 0)return{};let n=OI(e,Nl(o,{intro:a})),s=e==="phone"&&xf("tablet",o)?c=>ke(c,"tablet"):c=>c,l=(c,d)=>o[s(c)]==null?{}:{[ke(c,e)]:d};return{[ke("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...l(Dl,n.screens),[ke(r,e)]:t}}function CK({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=rt(),s=Nl(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:OI(r,s),f=d?.on?`${d.distance}px`:i("Off");return w(Qe,{label:i(qx),labelId:t,icon:es(w(YE,{})),action:qr(br,{children:[r!=="desktop"?w(Po,{words:ne()?.panel,label:i(qx),changed:xf(r,n),detail:Fa(u=>i(u),f,c?"tablet":"desktop"),onReset:()=>o(void 0)}):null,w(SI,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var ME="e.g. about";function Tf(){return{_gAnchor:At("Anchor"),anchor:Na({control:"plainText",label:"Name",placeholder:ME},{type:"custom",render:({value:e,onChange:o})=>w(oT,{value:e,onChange:o,nameBox:(t,r)=>w(Da,{value:t,onChange:r,label:"Name",placeholder:ME,hideable:!1,markup:!1})})})}}function lke(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(Qe,{label:i(e),icon:o,htmlFor:l,hint:t===void 0?void 0:i(t),children:w(nj,{id:l,value:Number.isFinite(c)?new Date(c):null,onChange:d=>a(d?d.toISOString():"")})})}}}function xO(e,o,t,r){return{type:"custom",...Yr({},{...hf,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,v=w(SI,{checked:x,onChange:s,disabled:g,ariaLabelledBy:I});return w(Qe,{label:i(e),labelId:I,icon:t,hint:r===void 0?void 0:i(r),action:d?qr(br,{children:[w(Po,{words:ne()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):Fa(S=>i(S),i(p?"On":"Off"),f.followsView),disabled:g,onReset:()=>s(void 0)}),v]}):v})}}}function IO(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return w(kK,{label:"Background",icon:w(zU,{}),id:a,value:e,shown:sx(e),onChange:o})}}}function ike(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>w($o,{label:i(e),icon:t,value:r||o,onChange:a})}}function kK({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=AI(),c=Zt(r),d=c?Mn(c,s,l):null;return w($o,{label:i(e),icon:o,id:t,value:d?d.hex:a,caption:d?.words,onChange:n,choices:_I(c??"",s,l,n)})}function cke(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return w(vK,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function _I(e,o,t,r){let a=vd(e);return lT(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function vK({value:e,onChange:o,twin:t}){let{colors:r,n:a}=AI(),n=r.background,s=Ba(n.toUpperCase(),i("Theme {n} background",{n:a})),l=vd(e),c=l?Mn(l,r,a):null,d=_I(e,r,a,o),f=t?()=>o(void 0):()=>o(""),u=n,p=s;if(t){let x=vd(t.follows),I=kd(t.follows),g=x?Mn(x,r,a):I?{hex:I,words:I.toUpperCase()}:null;u=g?.hex??n,p=Fa(v=>i(v),g?g.words:s,t.view)}return c?w($o,{label:i("Fill"),icon:w(xI,{}),value:c.hex,caption:c.words,onChange:o,changed:!0,onReset:f,resetTo:p,choices:d}):w(Tl,{label:i("Fill"),icon:w(xI,{}),value:e,inherited:u,resetTo:p,onChange:o,onReset:f,choices:d})}function TK(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Ut(t);let r=bT(e,o);if(r.length===0)return null;let a=Ut(Lm(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Ut(Lm(r[n].sectionAccent));if(s!==null)return s}return Ut(r[0].sectionAccent)}function AI(){let e=to(xe().theme),[o]=gr("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=If(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?TK(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:Mo(e.themes[r]),n:r+1}}var PK=[{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 EK({label:e,value:o,onChange:t,points:r=PK}){let a=r.map(n=>({...n,label:i(n.label),...n.title?{title:i(n.title)}:null}));return w(tj,{label:i(e),value:o,points:a,onChange:t})}function dke(){return iO()}var gO={top:w(DU,{}),right:w(BU,{}),bottom:w(LU,{}),left:w(FU,{})};function bO(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(Qe,{label:i(e),icon:a,value:l(x)?.label?i(l(x).label):s?i(s):"",children:EK({label:e,value:x,onChange:p,points:f})})}}}function fke(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>w(jT,{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 pke(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return w(e,{...a})}}}var uke=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function mke(e,o,t){let r=Object.keys(Rh).map(a=>({label:Rh[a],value:a,picture:t[a]}));return{type:"custom",...Yr({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>w(_K,{label:e,icon:o,options:r,onChange:a})}}function OK(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 _K({label:e,icon:o,options:t,onChange:r}){let a=Qn(),n=a?.values??{},s=gl(n),l=HE(CU),c=pd(l?.docId??null),d=null;try{d=If(u=>u.appState.data)}catch{d=null}let f=hv(a?.id,d,c);return w(Qe,{label:i(e),icon:es(o),hint:OK(n,f,l?.hasUnsavedEdits??!1),children:cf({options:t,value:s,onChange:r,ariaLabel:e})})}function hke(e,o,t,r={}){let a={type:"custom",[TU]:!0,render:({value:n,onChange:s,name:l})=>w($T,{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?lt("each",a):a}function AK(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 xke({value:e,onChange:o,label:t}){let r=e||{},a=Qn(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,c=!!$e(bj()).geocode,d=WE(),f=(u,p)=>o({...r,[u]:p??void 0});return qr(br,{children:[w(Qe,{label:i(t),icon:w(AE,{}),action:c?w(wI,{content:i("Find from the address (OpenStreetMap)"),children:w(JE,{"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($U,{})})}):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(px):i(r.status),hint:AK(r)}):null}),w(Qe,{label:i("Enter by hand"),labelId:d,icon:w(NU,{}),action:w(SI,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:d})}),r.manual&&w(Qe,{label:i("Latitude, longitude"),icon:w(AE,{}),children:qr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[w(LE,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),w(LE,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function RK(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function LK(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 FK(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 RI={label:"Ticker items",icon:w(GU,{})};function Ike(e,o,t,r){return{type:"custom",[Ir]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...Yr({},{...rO.textList,label:e}),render:({value:a,onChange:n})=>w(LI,{label:e,icon:es(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function LI({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=$l(null),[l,c]=Ul(null),d=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=FK(t,u,l);p===null&&(s.current=null),c(p),a(d(u))};return w(ej,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?w(hx,{target:s,value:RK(t,l),onChange:u=>a(LK(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 yO(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Na({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>w(Da,{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 SO(e){return{_gCards:At("Cards"),coverIndex:st("Cover image",w(WU,{}),HT,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:Hj("Image background",rf),cardImage:NK()}}function wO(){return{outline:st("Card outline",w(UU,{}),MT,NT),indexBadge:st("Card number",w(UE,{}),Sx,yx),showBadge:xO("Product badge",!0,w(rx,{noun:"tag"}))}}function CO(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...hf,label:mf.find(n=>n.id===a).label}),r=a=>Yr(fj(hI),t(a));return{_gShowOnCard:At("Show on a card"),[hI]:Yr({type:"custom",render:()=>w(BK,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(hI)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var hI="showCardPrice",mf=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function BK({rest:e}){let o=rt(),t=_l(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=mf.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return w(os,{parts:mf,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(mf.map(({id:s})=>[s,void 0])))})}function gke(e,o="display"){let t=Jn(o);return{[o]:lt("desktop",{type:"custom",render:({value:r,onChange:a})=>w(os,{parts:e,changed:CT(r),shown:n=>Ed(r,n),onPress:(n,s)=>a(vT(r,n,s)),onReset:()=>a(void 0)})}),[t]:lt("mobile",{type:"custom",render:({value:r,onChange:a})=>w(DK,{parts:e,desktopKey:o,value:r,onChange:a})})}}function os({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let l=i("Display");return w(Qe,{label:l,icon:w(OU,{}),changed:o,action:w(Po,{words:ne()?.panel,label:l,changed:o,detail:n,onReset:a}),children:w(oj,{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 DK({parts:e,desktopKey:o,value:t,onChange:r}){let a=rt()[o];return w(os,{parts:e,changed:kT(t),shown:n=>fx(a,t,n),onPress:(n,s)=>r(TT(t,n,s)),onReset:()=>r(Rd),detail:i("the same as Desktop")})}function NK(){return lO("Card image",{min:tt,max:fa,step:Dv,icon:w($E,{}),hint:"Rounds the picture. The card's own corner is in Styles."})}function bke(){return TI({sidesKey:"cornerSides",step:Nv,useFollowed:()=>tt,mark:w(MK,{label:Mv}),hint:i("Rounds the picture. Left alone it stays square.")})}function MK({label:e,changed:o=!1,onReset:t=()=>{}}){return w(Po,{words:ne()?.panel,label:i(e),changed:o,onReset:t})}function yke(){return{type:"custom",render:({value:e,onChange:o})=>w(zK,{value:typeof e=="string"?e:"",onChange:o})}}function HK({layout:e,width:o}){let t=ex(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 WK={width:"3.5rem",height:"2.5rem"},GK=200;function zK({value:e,onChange:o}){let[t,r]=Ul(null),[a,n]=Ul(4),s=$l(null);wU(()=>{let p=s.current;if(!p||typeof ResizeObserver!="function")return;let x=()=>n(p.getBoundingClientRect().width>=GK?4:3);x();let I=new ResizeObserver(x);return I.observe(p),()=>I.disconnect()},[]);let l=e&&e in dr?e:"",c=Qh(t,l),d=Qh(t,"").length,f=gd("no-symbol"),u=[{value:"",label:i("Not chosen"),icon:EE(f,i("Not chosen"))},...c.map(p=>({value:p,label:i(dr[p].label),icon:w(HK,{layout:dr[p],width:40})}))];return w(Qe,{label:i("Layout"),icon:w(HU,{}),value:l?i(dr[l].label):void 0,children:w("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:w(XE,{label:i("Layout"),value:l,options:u,onChange:o,columns:a,cell:WK,header:qr("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(YU,{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:Jh.length})})]})})})})}import{decodePartId as sV}from"efficient-easel/draw";import{decodePartId as NI,encodePartId as Af}from"efficient-easel/draw";import{LINK_FIELD_MARKER as LO,SCAFFOLD_FIELD_MARKER as AO,TEXT_FIELD_MARKER as Rf}from"efficient-easel/draw";import{readHidable as FO}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as YK}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as qK}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as kO}from"efficient-easel/draw";import{readHidable as vO}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as $K}from"efficient-easel/draw";var UK=$K,jK=["text","textarea"],KK=["textarea","plainTextarea"];function VK(e){return!e||typeof e!="object"?null:e[kO]?.control??null}function ts(e){let o=VK(e);return o&&UK.includes(o)?o:null}function Pf(e){return KK.includes(e)}function TO(e){return!e||typeof e!="object"?void 0:e[kO]?.placeholder}function Ef(e){return vO(e).text}function FI(e,o,t){return jK.includes(e)?{text:t,hidden:vO(o).hidden}:t}function PO(e,o,t,r){return Ef(e[o])===r?null:{...e,[o]:FI(t,e[o],r)}}function rs(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Rt(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 Of(e){if(!(!e||typeof e!="object"))return e[qK]}function BI(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function EO(e,o){if(!Array.isArray(o))return[];let t=Of(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=BI(e);return a?(o.forEach((n,s)=>{for(let[l,c]of Object.entries(a)){if(!ts(c))continue;let d=Ef(n?.[l])||Of(c)?.placeholder||"";d&&r.push({row:{index:s,rowKey:l},text:d})}}),r):[]}function Kl(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function DI(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 OO(e,o,t,r,a){let n=Kl(e[o],t);return Ef(n)===a?null:DI(e,o,t,FI(r,n,a))}function _O(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Lt="data-sf-part",zke="data-sf-region-part",$ke="data-sf-part-row";function Uke(e,o){return`${e}[${o}]`}var jke="data-sf-part-kind",XK="data-sf-part-style-owner",ZK="data-sf-part-style-kind";function Kke(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(XK),r=o.getAttribute(ZK);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var RO=2;function as(e){return ir(e).replace(/\s+/gu,"")}function _f(e,o,t){let r=e[Rf];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}=FO(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[LO]){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))_f(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))_f(n,o[a],t)}}function MI(e){if(!e||typeof e!="object")return!1;let o=e;return o[LO]?!1:!!o[Rf]||o.type==="text"||o.type==="textarea"}function Lf(e,o){let t=e[Rf];return t?.label?t.label:typeof e.label=="string"?e.label:o}function HI(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function Vke(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Pl(a))continue;let s=n,l=[];_f(s,o?.[a],l),!l.length&&s[AO]!==void 0&&_f(s,s[AO],l);let c=Lf(s,a);if(t?.(a)&&MI(s)){l.length&&r.push({key:a,label:c,texts:[],keyed:!0});continue}let d=new Set;for(let{row:p,text:x}of EO(s,o?.[a])){let I=as(x);I.length<RO||(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=as(p);x.length<RO||f.has(x)||(f.add(x),u.push(x))}u.length&&r.push({key:a,label:c,texts:u})}return r}function WI(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var JK=YK;function BO(e,o){if(!o||typeof o!="object"||Pl(e)||_T(o))return null;let t=o[Rf];return!t||!JK.includes(t.control)?null:t}function qke(e,o){let t=BO(e,o);return t!==null&&t.identifier!==!0}function DO(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=BO(r,a);if(!n)continue;let{text:s,hidden:l}=FO(o?.[r]);if(WI({offPage:n.offPage===!0,hidden:!!l,panelOnly:$n(a)}))continue;let c=s||n.placeholder||"",d=ir(c).replace(/\s+/gu," ").trim();t.push({key:r,label:HI(Lf(a,r)),preview:d,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function ns(e,o){let t=Of(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?yO(t,o.index):null:BI(e)?.[o.rowKey]??null}function Ff(e,o,t){let r=e.node.props,{key:a,row:n}=Rt(e.propKey),s=n?OO(r,a,n,e.kind,o):PO(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as WO}from"efficient-easel/draw";import{isNodeList as QK}from"efficient-easel/data";var GI=e=>String(e+1).padStart(2,"0"),tve=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],zI="two-digit",NO=e=>e==="plain"?"plain":zI,Bf=(e,o)=>e==="plain"?`${o+1}.`:GI(o);var UI="Contents",$I="Flex",MO="Text",eV="numberForm",uve="_contentsEntries",mve="_kickerNumber",GO="data-sf-kicker-number",oV=e=>WO(e).text.trim(),zO=e=>bd(e?.anchor),HO=e=>String(e.props?.id??""),tV=e=>!WO(e.props?.text).hidden&&!Fn(e.props)&&!Go(e.props);function Vl(e){return Object.values(e.props??{}).filter(QK)}function $O(e){for(let o of Vl(e))for(let t of o){if(vl(t.props??{}))continue;if(t.type===MO&&tV(t))return t;if(t.type===MO)continue;let r=$O(t);if(r)return r}}function UO(e){return Vl(e).some(o=>o.some(t=>t&&!vl(t.props??{})&&(t.type===UI||UO(t))))}var jO=e=>e.type===$I&&Vn($I,e.props?.direction)==="row";function KO(e){return Vl(e).some(o=>o.some(t=>t&&!vl(t.props??{})&&(t.type===UI||!jO(t)&&KO(t))))}function rV(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||vl(n.props??{}))continue;if(n.type===UI){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(jO(n)&&KO(n)){let l={inRow:!0,open:null,waiting:[]};for(let c of Vl(n))t(c,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===$I&&zO(n.props)&&s&&!UO(n)){s.push({box:n,kicker:$O(n)});continue}for(let l of Vl(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function aV(e){return e.map(o=>({label:o.kicker?ir(oV(o.kicker.props?.text)):"",anchor:zO(o.box.props)}))}function hve(e){let o=e?.length?rV(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=HO(a.contents);n&&t.set(n,aV(a.sections));let s=NO(a.contents.props?.[eV]);a.sections.forEach((l,c)=>{let d=l.kicker?HO(l.kicker):"";d&&r.set(d,Bf(s,c))})}return{entries:t,numbers:r}}var xve=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var lV=`[${GO}]`,iV=["bold","italic","underline","strike","link","sup","sub"],cV=["bullet","number"];function VI(e,o){return e?[...iV,...o?cV:[]]:[]}function VO(e,o){let t=sV(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}=Rt(a),d=o.components[n.type]?.fields?.[l],f=c?ns(d,c):d,u=ts(f);if(!u)return null;let p=n.props??{};if(Mx(p)!==null||!c&&Ch(n.type,p,l)||n.type==="Text"&&l==="text"&&Fn(p)||c&&!(Array.isArray(p[l])&&c.index<p[l].length))return null;let x=c?Kl(p[l],c):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:x,offPage:gf(f),panelOnly:$n(f)}}function Df(e,o){let t=VO(e,o);if(!t)return null;let{text:r,hidden:a}=Xr(t.stored);if(!WI({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=Pf(t.kind);return{partId:e,value:r,rules:ha,multiline:n,skip:lV,offered:VI(t.kind!=="plainText",n),write:s=>{let l=VO(e,o);l&&Ff({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function qI(e,o,t){return e?.isConnected&&e.getAttribute(Lt)===t?e:o?.querySelector(`[${Lt}="${Nf(t)}"]`)??null}function Nf(e){return e.replace(/["\\]/g,"\\$&")}function qO(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var jI=null,KI=new Set;function dV(){return jI}function YI(e){if(e!==jI){jI=e;for(let o of KI)o()}}function fV(e){return KI.add(e),()=>{KI.delete(e)}}function YO(){return nV(fV,dV,()=>null)}function XO(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=Lk(t.type);return!r||no(t.props)?null:{node:t,rows:r}}function xV(e,o){let t=XO(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=kh(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:pV(e.ownerId,rs(t.rows,{index:e.index,rowKey:a}))}function Mf(e,o){let t=xV(e,o);return t?Df(t,o):null}function ZO(e,o){return Mf(e,o)?.value}function JO(e,o){let t=Mf(e,o);return t?(t.write(e.text),!0):!1}function QO(e,o){let t=XO(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=uV(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=mV(n,s,c);break}case"delete":l=hV(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 __,jsxs as ti}from"react/jsx-runtime";import{Fragment as Vq,useEffect as qq,useId as Yq,useMemo as A_,useRef as Xq,useState as Zr}from"react";import{useScreenDocument as H_}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Wg}from"efficient-easel/draw/client";import Zq from"efficient-easel/screen/components/SidePanelHead";import{jsx as be,Fragment as ms,jsxs as za}from"react/jsx-runtime";import{useEasel as w_,useRootFields as Q7}from"efficient-easel/easel";import{Inspector as eq}from"efficient-easel/fields";import{SettingsGroup as oq}from"efficient-easel/panel";import{useEffect as tq,useRef as rq,useState as Ng}from"react";import{jsx as Ma,Fragment as yV,jsxs as SV}from"react/jsx-runtime";import{useState as r0}from"react";import{SettingsDefaultReset as wV,SettingsField as CV}from"efficient-easel/panel";import{useEaselStrings as kV}from"efficient-easel/strings";import{AddIcon as vV}from"efficient-easel/icons";import{Button as TV}from"efficient-shell/ui";import{iconOf as PV,noGlyph as EV}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Hf,Fragment as IV,jsxs as e0}from"react/jsx-runtime";import{Button as o0,Dialog as gV}from"efficient-shell/ui";function bV(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 t0({count:e,onCancel:o,onConfirm:t}){return e0(gV,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:e0(IV,{children:[Hf(o0,{variant:"secondary",onClick:o,children:i("Cancel")}),Hf(o0,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[Hf("p",{children:bV(e)}),Hf("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var OV=EV("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"),_V="Reset color",AV={selected:0,themes:[]};function RV(e){e(AV)}function a0({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=to(e),[n,s]=r0(!1),l=kV(),[c,d]=r0(null),f=(S,C)=>{o({...a,themes:a.themes.map((b,k)=>k===S?C:b)})},u=kn(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),x=mw.filter(S=>!p.has(S)).map(S=>hw(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})},v=()=>{let S=[...a.themes,{...Mo(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),d(S.length-1)};return SV(yV,{children:[r?null:Ma(CV,{label:i(_V),icon:PV(OV),labelId:"sf-theme-reset",action:Ma(wV,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&Ma(t0,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),RV(o)}}),Ma("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:I.map((S,C)=>Ma(Md,{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))}),Ma(TV,{variant:"secondary",leftIcon:Ma(vV,{}),onClick:v,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as Wf}from"react/jsx-runtime";import{SettingsDefaultReset as LV,SettingsField as FV}from"efficient-easel/panel";import{SquareIcon as BV}from"efficient-easel/icons";var DV="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",XI="Corners";function n0({value:e,onChange:o}){let t=e===null;return Wf(FV,{label:i(XI),icon:Wf(BV,{}),changed:!t,action:Wf(LV,{words:ne()?.panel,label:i(XI),changed:!t,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(DV),children:Wf(jo,{min:tt,max:fa,step:1,value:e,...e===null?{}:{suffix:"px"},placeholder:tt,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(XI),onChange:o})})}import{jsx as ql}from"react/jsx-runtime";import{SettingsDefaultReset as NV,SettingsField as MV}from"efficient-easel/panel";import{IconPicker as HV}from"efficient-shell/ui";import{ShadowIcon as WV}from"efficient-easel/icons";var ZI={none:"None",soft:"Soft",lifted:"Lifted"},GV="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.",zV={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 s0({value:e,onChange:o}){let t=e===null,r=e??Am;return ql(MV,{label:i("Card shadow"),icon:ql(WV,{}),value:i(ZI[r]),changed:!t,action:ql(NV,{words:ne()?.panel,label:i("Card shadow"),changed:!t,detail:i(ZI[Am]),onReset:()=>o(null)}),hint:i(GV),children:ql(HV,{label:i("Card shadow"),value:r,options:Tw.map(a=>({value:a,label:i(ZI[a]),icon:ql("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:zV[a]}})})),onChange:o})})}import{jsx as l0}from"react/jsx-runtime";import{ShadowIcon as $V}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as i0}from"efficient-easel/screen/lib/document/shadow-values";var UV="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 c0({value:e,onChange:o}){let t=e===null;return l0(Tl,{label:i("Shadow color"),icon:l0($V,{}),value:e??"",inherited:i0,resetTo:i0,onChange:o,onReset:()=>o(null),hint:i(UV)})}import{jsx as zf}from"react/jsx-runtime";import{SettingsDefaultReset as jV,SettingsField as KV}from"efficient-easel/panel";import{AlignSeparateIcon as VV}from"efficient-easel/icons";function Gf(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var qV="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",YV="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.",JI="Block gap",d0=Yn.Grid;function f0(e,o){return Gf(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:rI(o.gap)}})}function p0({value:e,onChange:o,followsPx:t=null}){let r=e===null,a=t===null?null:`${t}px`,n=t===null?d0:Ml(t)??d0;return zf(KV,{label:i(JI),labelId:"sf-block-gap",icon:zf(VV,{}),changed:!r,action:zf(jV,{words:ne()?.panel,label:i(JI),changed:!r,detail:a??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(a===null?qV:YV),children:zf(jo,{min:_a.min,max:_a.max,step:_a.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(JI),onChange:o})})}import{jsx as $f}from"react/jsx-runtime";import{SettingsDefaultReset as XV,SettingsField as ZV,SettingsSegmented as JV}from"efficient-easel/panel";import{HoverIcon as QV}from"efficient-easel/icons";var QI={none:ba.none,lift:ba.lift,highlight:Zm},e8="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 u0({value:e,onChange:o}){let t=e===null,r=e??Rm;return $f(ZV,{label:i("Hover effect"),icon:$f(QV,{}),value:i(QI[r]),changed:!t,action:$f(XV,{words:ne()?.panel,label:i("Hover effect"),changed:!t,detail:i(QI[Rm]),onReset:()=>o(null)}),hint:i(e8),children:$f(JV,{options:Pw.map(a=>({id:a,label:i(QI[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as Uf}from"react/jsx-runtime";import{SettingsDefaultReset as o8,SettingsField as t8,SettingsSegmented as r8}from"efficient-easel/panel";import{DropIcon as a8}from"efficient-easel/icons";var eg="Photography",m0={shot:"As shot",mono:"Black and white"},og=[{grayscale:!1,label:m0.shot},{grayscale:!0,label:m0.mono}],n8="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function h0({value:e,onChange:o}){let t=e===null,r=e??!1;return Uf(t8,{label:i(eg),icon:Uf(a8,{}),value:i(og.find(a=>a.grayscale===r).label),changed:!t,action:Uf(o8,{words:ne()?.panel,label:i(eg),changed:!t,detail:i(og.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(n8),children:Uf(r8,{options:og.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(eg),onChange:o})})}import{jsx as tg}from"react/jsx-runtime";import{useId as s8}from"react";import{SettingsField as l8,SettingsSwitch as i8}from"efficient-easel/panel";import{ShareIcon as c8}from"efficient-easel/icons";var d8="Share button",f8="On every blog post.";function x0({value:e,onChange:o}){let t=s8();return tg(l8,{label:i(d8),labelId:t,icon:tg(c8,{}),action:tg(i8,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(f8)})}import{usePreviewDevice as Mg}from"efficient-easel/draw/client";import{jsx as jf}from"react/jsx-runtime";import{SettingsDefaultReset as p8,SettingsField as u8}from"efficient-easel/panel";import{PaddingXIcon as m8}from"efficient-easel/icons";var rg="Side space",I0=xr.default,h8="The room left at the left and right edge of every page.";function g0(e,o){return Gf(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:I0,bounds:xr},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:lf(o.gutter),bounds:zl}})}function b0({value:e,onChange:o,unsetPx:t=I0,bounds:r=xr}){let a=e===null;return jf(u8,{label:i(rg),labelId:"sf-side-space",icon:jf(m8,{}),changed:!a,action:jf(p8,{words:ne()?.panel,label:i(rg),changed:!a,detail:`${t}px`,onReset:()=>o(null)}),hint:i(h8),children:jf(jo,{min:r.min,max:r.max,step:r.step,value:e,suffix:"px",placeholder:t,onClear:()=>o(null),ariaLabel:i(rg),onChange:o})})}import{jsx as ag}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as nPe,SettingsBackgroundWidth as x8,SettingsContentWidth as I8}from"efficient-easel/panel";var g8="Background width",b8="Content width";var Kf=e=>i(Ra[e==="content"?"page":"full"]),y0="The width of every section's background.",S0="The width of every section's content.";function w0({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return ag(x8,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(g8),full:Kf("full"),content:Kf("content")},resetWords:ne()?.panel})}function C0({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(b8),x=e!=="full"?ag(jo,{min:r,max:t,step:ho.step,value:Math.min(Math.max(o,r),t),onChange:c,suffix:"px",ariaLabel:p}):null;return ag(I8,{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:Kf("full"),content:Kf("content")},resetWords:ne()?.panel})}import{jsx as i_}from"react/jsx-runtime";import{TextStyleItem as O7,TextStylesGroup as _7}from"efficient-easel/text-styles";import{jsx as w7}from"react/jsx-runtime";import{useState as C7}from"react";import{TextStylesList as k7}from"efficient-easel/text-styles";import{usePreviewDevice as v7}from"efficient-easel/draw/client";import{defaultTextStyles as q0,textStyleCaseCss as h7,textStyleViewKey as x7}from"efficient-easel/text-styles/model";import{resolveViewValue as Y0}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as k0,VIEW_TABLET_MIN as v0}from"efficient-easel/draw";var Vf=.02,T0=`(min-width: ${Er}px) and (max-width: ${k0-Vf}px)`,P0=`(max-width: ${Er-Vf}px)`,qf=`(min-width: ${v0}px) and (max-width: ${k0-Vf}px)`,Yf=`(max-width: ${v0-Vf}px)`;import{textStyleCaseCss as y8,textStyleCaseOfCss as S8}from"efficient-easel/draw";function ss(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function ls(e,o){return ss(e?.[o])??{}}function Xf(e,o,t){let r=ls(e,o);return Object.hasOwn(r,t)?ss(r[t])??{}:{}}function Zf(e,o,t,r){let{[t]:a,...n}=ls(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...c}=e;return Object.keys(s).length?{...c,[o]:s}:c}var cg="_partStyles",dg="data-sf-part-styled",is="data-sf-text-style",w8=/^(heading|body)-[1-7]$/;function Wa(e){return typeof e=="string"&&w8.test(e)}var Jf={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function C8(e){if(!e)return null;for(let[o,t]of Object.entries(Jf))if(t===e)return o;return null}function fg(e){if(Wa(e.textStyle))return e.textStyle;let o=nr(e.role);return o?Jf[o]:void 0}var k8=[400,500,600,700],Xl=["left","center","right","justify"],ng=5,sg=1e3,v8=-5,T8=10,pg=0,ug=64,mg=2,E0={size:{min:ng,max:sg,step:1},sizeTablet:{min:ng,max:sg,step:1},sizePhone:{min:ng,max:sg,step:1},padding:{min:pg,max:ug,step:mg}},P8=.05,E8=.01,O8=["line","letter"],_8=.5,A8=2.5,R8=-1,L8=1,F8=0,B8=400,D8=[...new Set(Object.values(wn))];function F0(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 vPe(e){return ls(e,cg)}function Zl(e,o){return Xf(e,cg,o)}function B0(e,o,t){return Zf(e,cg,o,N8(t).length?t:null)}function N8(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function M8(e){return O8.includes(e)}var Yl=(e,o,t)=>Math.min(t,Math.max(o,e));function H8(e,o){if(M8(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:Yl(t,v8,T8)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?cs(Yl(t,_8,A8),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?cs(Yl(t,R8,L8),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:Yl(t,F8,B8)}if(Object.hasOwn(E0,e)){let{min:t,max:r}=E0[e],a=Math.round(Number(o));return Number.isFinite(a)?Yl(a,t,r):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?nr(o)?o:null:e==="sizeToken"?hg(o)?o:null:e==="textStyle"?Wa(o)?o:null:e==="alignPhone"||e==="alignTablet"?Xl.includes(o)?o:null:o}var W8=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function ds(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of W8){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}return e.align!==void 0&&!Xl.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Xl.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Xl.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!Wa(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!hg(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!nr(e.fontRole)&&t("fontRole"),o??e}function hg(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"&&D8.includes(c);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||G8(n,t))}function G8(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 xg(e){return e?.pxPhone&&hg(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function D0({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 z8=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function $8(e){let o=[];for(let[t,r]of z8)t===e?o.push(r):r===e&&o.push(t);return o}function Sr(e,o,t,r){let a={...Zl(e,o)},n=r==null?null:H8(t,r);if(n===null)delete a[t];else{a[t]=n;for(let s of $8(t))delete a[s]}return B0(e,o,a)}function N0(e,o){return B0(e,o,{})}function U8(e){return S8(e)??"none"}function j8(e){return y8(e)??""}var O0={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 K8(e,o){return nr(e.role)||(o?.blockDrawsStyle?null:C8(e.textStyle))}function M0(e,o){return e==="Text"&&o==="text"}var V8={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 q8(e){let o=wn[e],t=V8[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Jl(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=cs(Y8+e.line*P8,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=cs(e.letter*E8,4)),o}var Y8=1,Ha="--sf-part-para";function X8(e){e=ds(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=`${e.sizePhone}px`;else{let r=xg(e.sizeToken);if(r)o.fontSize=D0(r);else{let a=ep(e);a!==void 0&&(o.fontSize=`${a}px`)}}let t=e.alignPhone??Qf(e);return t&&(o.textAlign=t),o}function Qf(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function ep(e){let o=St("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function Z8(e){let o=ds(e),t={},r=ep(o);r!==void 0&&(t.fontSize=`${r}px`);let a=Qf(o);return a&&(t.textAlign=a),t}function H0(e,o){if(o==="desktop")return;let t=ds(e);return(o==="mobile"?Qf(t):void 0)??t.align}function J8(e,o){if(o==="desktop")return e;let t=ds(e),r=ep(t),a=Qf(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=xg(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 Ig(e,o,t){return bg(J8(e,o),op,t)}function gg(e){return e==="mobile"?"sizePhone":e==="tablet"?"sizeTablet":"size"}function W0(e,o){if(o==="desktop")return null;let t=ds(e);if(o==="mobile"){if(xg(t.sizeToken))return null;let r=ep(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 G0(e,o){let t=gg(o);if(!Object.hasOwn(e,t))return e;let r={...e};return delete r[t],r}function TPe(e,o,t){let r=Ig(G0(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function bg(e,o,t){e=ds(e);let r=K8(e,t),a=Jl(e),n=e.size?`${e.size}px`:e.sizeToken?D0(e.sizeToken):r?q8(r):"";return{fontFamily:e.font?t7(e.font):e.fontRole?`var(${O0[e.fontRole]})`:r?`var(${O0[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`:"",[Ha]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:j8(e.case),textAlign:e.align??"",paddingTop:_0(e.padding),paddingBottom:_0(e.padding),color:Q8(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var Q8=e=>Hn(e),_0=e=>e===void 0?"":`${e}px`,cs=(e,o)=>Number(e.toFixed(o));function PPe(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:e7(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?cs(r/t,3):1.2,letterEm:Number.isFinite(a)?cs(a/t,4):0,align:o7(e.textAlign),case:U8(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function e7(e){return Number.isFinite(e)?k8.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function o7(e){for(let o of Xl)if(o===e)return o;return e==="end"?"right":"left"}function EPe(e,o){let t=A0(e);if(!t)return"";for(let r of yt)if(A0(o(r.cssVar))===t)return r.key;return""}var A0=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function t7(e){let o=Sn(e);return o?`var(${o.cssVar})`:""}function OPe(e,o,t,r){return!o||NI(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function r7(e,o){return Object.hasOwn(e,o)?ss(e[o])??{}:{}}function _Pe(e,o,t=()=>op,r=l=>l,a=s7,n="desktop",s=()=>!1){let l=0;for(let{element:c,partId:d}of e){let f=NI(d)?.propKey;if(!f)continue;let u=r7(o,r(f)),p=Ig(u,n,{blockDrawsStyle:s(f)});Wa(u.textStyle)?c.setAttribute?.(is,u.textStyle):c.removeAttribute?.(is);let x=lg.some(g=>c.style[g]),I=!1;for(let[g,v]of Object.entries(p))c7(c,g,v),v&&(I=!0);if(x||lg.some(g=>p[g]))for(let g of a7(c,a))for(let v of lg)g.style[v]=p[v]??"";I&&(l+=1)}return l}function a7(e,o){let t=as(e.textContent??""),r=[],a=e;for(let n=0;n<n7&&o(a);n+=1){let s=a.parentElement;if(!s||as(s.textContent??"")!==t)break;r.push(s),a=s}return r}var n7=8;function s7(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var op={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function l7(e){if(!e||typeof e!="object")return null;let o={};return Wa(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 i7(e,o){let t=l7(e);if(!t)return{};let r=Ig(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function z0(e){return Wa(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function APe(e,o,t){if(!e||typeof e!="object")return{};let r=Jc(e.role,o,wn)??{},a=o.sized?i7(G0(e,t),t):{};return{...r,...a}}function RPe(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function c7(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===Ha&&(t?a.setAttribute?.(R0,""):a.removeAttribute?.(R0))}var R0="data-sf-part-para",d7=Object.keys(bg({},op)),ig=new Set(["color","overflowWrap",Ha,"fontStyle"]),lg=d7.filter(e=>!ig.has(e));function $0(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=rs(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(!f7(u))continue;let p=L0(t,u,ss(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=ss(o[p])??{};return L0(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(rs(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 L0(e,o,t,r,a){let n=bg(t,op,{blockDrawsStyle:r}),s=Z8(t),l=X8(t),c=Wa(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!c&&!a?null:{stamp:p7(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...c?{textStyle:c}:{},...a?{motion:a}:{}}}function f7(e){return e.startsWith("@")}function yg(e,o){return e?.kindRules.get(o)??null}function p7(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function Sg(e){return e?{tablet:T0,phone:P0}:{tablet:qf,phone:Yf}}function U0(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=Sg(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])=>`${u7(C)}: ${b}`).join("; "),p=`[${dg}="${c}"]`,x=f.filter(([S])=>!ig.has(S)),I=f.filter(([S])=>ig.has(S));x.length&&a.push(`${p}, *:has(> ${p}) { ${u(x)} }`),I.length&&a.push(`${p} { ${u(I)} }`),d[Ha]&&(a.push(`*:has(> ${p}) { ${Ha}: ${d[Ha]} }`),a.push(...tp(p,`*:has(> ${p})`)));let g=Object.entries(l.tablet??{}).filter(([,S])=>S!=="");g.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(g)} } }`);let v=Object.entries(l.phone??{}).filter(([,S])=>S!=="");v.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(v)} } }`)};for(let l of e.rules.values())s(l);for(let l of e.kindRules.values())s(l);return a.join(`
|
|
60
|
-
`)}function tp(e,o){let t=`var(${Ha})`,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 u7=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function j0(e,o){if(!e)return null;let t=as(o),r=e.rules.get(t);if(r)return r;if(t.length<m7||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 m7=8;function K0(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 wg=e=>e==="sentence"?"none":void 0,X0=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],fs=["desktop","tablet","phone"],Ga=(e,o)=>o==="desktop"?e:x7(e,o);function vg(e,o,t,r=Cn()){return Y0("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var I7=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function Cg(e){for(let[o,t,r]of I7)for(let a of fs)if(e===Ga(o,a))return{key:ke(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function Qt(e){let o={};for(let t of X0)e[t]!==void 0&&(o[t]=e[t]);return o}function Tg(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=X0.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function Z0(e){let o=e.fonts,t=e.sizes,r=e.typography,a=Ew(e.compression),n={"heading-1":{font:Z(o.heading),size:U(t.headingLarge),weight:U(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:wg(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:wg(r.case2)},"heading-3":{font:Z(o.heading3),size:U(t.headingSmall),weight:U(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:wg(r.case3)},"body-1":{font:Z(o.body),size:U(t.body)},"body-5":{font:Z(o.label),size:U(t.label)}};return q0().map(({id:s,kind:l,name:c})=>({id:s,kind:l,name:c,values:Qt(n[s]??{})}))}function Pg(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=>Tg({...o,values:Qt(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function KPe(e){return Pg(e)??[]}function J0(e){return Pg(e)??q0().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function wr(e,o){let t=Z0(o),r=Pg(e);return r?r.map(a=>{let n={...kg(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:Qt({...n,...a.values})}}):t}var kg=(e,o)=>e.find(t=>t.id===o)?.values??{},V0=["heading-1","heading-2","heading-3"];function Q0({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=Z0(o),l=J0(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=g7([p],a,n)[0],F=T.values.color;return F===void 0?T:{...T,values:{...T.values,color:Zo(F)}}}let g={...I.values},v=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])),k=T=>Cg(T).spacing==="letter";b.sort((T,F)=>Number(k(T))-Number(k(F)));for(let T of b){let{key:F,view:P,spacing:D}=Cg(T),O=F,R=S[T];if(R===void 0){delete g[O],kg(s,p.id)[O]!==void 0&&(d.push([p.id,O]),v.add(O));continue}if(v.delete(O),D==="line")g[O]=ps(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[Cg(L).key];let y=Qt({...N,...g}),A=vg(y,a({...p,values:y}),P);g[O]=A?ps(R/A,4):0}else g[O]=R}return Tg({id:p.id,kind:p.kind,name:p.name,values:Qt(g)},v)}),u=o.compression;if(d.some(([p,x])=>(x==="lineHeight"||x==="letterSpacing")&&V0.includes(p))&&pa(u)!=="normal"){for(let p of V0){let x=f.find(g=>g.id===p);if(!x)continue;let I={...x.values};for(let g of["lineHeight","letterSpacing"])d.some(([v,S])=>v===p&&S===g)||I[g]===void 0&&!(x.auto??[]).includes(g)&&(I[g]=kg(s,p)[g]);x.values=Qt(I)}u="normal"}return{saved:f,old:{...o,compression:u}}}function e_(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=pa(e.old.compression)),t}var ps=(e,o)=>Number(e.toFixed(o)),o_=(e,o)=>fs.indexOf(e)<fs.indexOf(o)?o:e;function t_(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of fs){let l=ke("lineHeight",s),c=r.values[l],d=r.values[ke("letterSpacing",s)];delete a[l],c!==void 0&&(a[Ga("lineSpacing",s)]=ps(c*100,1));let f=o_(s,t);d!==void 0&&(a[Ga("letterSpacing",s)]=ps(d*vg(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function g7(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let d of fs)delete n[Ga("lineSpacing",d)],delete n[Ga("letterSpacing",d)];let s={id:r.id,kind:r.kind,name:r.name,values:Qt(n)},l={...s.values},c=o({...s,values:{...s.values}});for(let d of fs){let f=a[Ga("lineSpacing",d)],u=a[Ga("letterSpacing",d)];if(typeof f=="number"&&(l[ke("lineHeight",d)]=ps(f/100,3)),typeof u=="number"){let p=vg(s.values,c,o_(d,t));l[ke("letterSpacing",d)]=p?ps(u/p,4):0}}return{...s,values:Qt(l)}})}function VPe(e){let o={fonts:qs({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:_m({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:pa(e.heading_compression),typography:_w(e)},t=e.text_styles??null,r=Array.isArray(t)?Eg(wr(t,o),o):o;return{fonts:qs(r.fonts),sizes:_m(r.sizes),compression:pa(r.compression),typography:r.typography,textStyles:t}}function Eg(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 qPe(e){let o=[];for(let t of e){let r=t.values,a=`.${K0(t)}`,n=`[${is}="${t.id}"]`,s=`${a}, ${n}`,l=[],c=r.font!==void 0?yt.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=Hn(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=h7(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(...tp(`:is(${s})`,`*:has(> ${n})`))),o.push(...b7(t,s,a,n))}return o.join(`
|
|
61
|
-
`)}function b7(e,o,t,r){let a=e.values,n=St("textSize",a.size,a.sizeTablet,a.sizePhone),s=St("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=St("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),c=St("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),d=St("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=Y0("textSize",a.size,a.sizeTablet,a.sizePhone,Cn()),u=y7[e.id],p=[];for(let[x,I]of[["tablet",qf],["phone",Yf]]){let g=[],v=[],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&&v.push(`font-size: ${b}px`);let k=[];l[x]!==void 0&&k.push(`line-height: ${l[x]}`),c[x]!==void 0&&k.push(`letter-spacing: ${c[x]}em`),e.kind==="body"&&v.push(...k),d[x]!==void 0&&v.push(`--sf-part-para: ${d[x]}px`),v.length&&g.push(`${o} { ${v.join("; ")} }`),e.kind==="heading"&&k.length&&g.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${k.join("; ")} }`),d[x]!==void 0&&g.push(`*:has(> ${r}) { --sf-part-para: ${d[x]}px }`),d[x]!==void 0&&!a.paragraphSpacing&&g.push(...tp(`: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 y7={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function YPe(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function r_(e){return e?Jf[e]:void 0}function Og(e){let o=Jl(e);return Qt({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 a_(e){return Object.keys(Og(e)).length>0}function n_({saved:e,old:o,styleId:t,values:r}){let a=J0(e);return{saved:S7(a,t,r),old:o}}function S7(e,o,t){return e.map(r=>r.id===o?Tg({...r,values:Qt({...r.values,...t})},r.auto):r)}var T7={desktop:"desktop",tablet:"tablet",mobile:"phone"},s_=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],P7=["size","lineSpacing","letterSpacing","letterCase"],E7=500,_g=yt.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function l_({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:c=!1,withoutSize:d=!1}){let f=v7(),[u,p]=C7(null),x=wr(e,o),I=T7[f],g=t_(x,a,I);return w7(k7,{styles:g,onChange:v=>n(Q0({saved:e,old:o,cur:g,next:v,sizeOf:a,panelView:I})),fonts:_g,colours:t,colourNameOf:r,settings:d?s_.filter(v=>v!=="size"):s_,auto:P7,openId:s===void 0?u:s,onOpenChange:l??p,readOnly:c,device:I,fallback:v=>{let S=x.find(b=>b.id===(v.kind==="heading"?"heading-1":"body-1")),C={};return S?.values.font&&v.id!==S.id&&(C.font=S.values.font),v.kind==="heading"&&(C.weight=E7),C}})}var c_=["font","size","weight","emphasis"],A7=500;function R7({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 L7(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 d_(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=R7(e);return i_(_7,{label:i("Emphasis"),children:i_(O7,{style:s,fonts:_g,settings:n?c_.filter(l=>l!=="size"):c_,auto:["size"],fallback:()=>({weight:o??A7}),open:t,onOpenChange:r,onChange:l=>L7(s,l).forEach(a)})})}import{EmptyState as aq,SliderGroup as nq,Tabs as sq,Tooltip as IOe,tabButtonId as lq,tabPanelId as iq}from"efficient-shell/ui";import{ContrastIcon as cq,SettingsIcon as dq,TypeIcon as fq}from"efficient-easel/icons";function f_(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 Fg}from"react/jsx-runtime";import{ListIcon as K7,PaddingTopIcon as V7}from"efficient-easel/icons";import{jsx as rp}from"react/jsx-runtime";import{SettingsDefaultReset as F7,SettingsField as B7,SettingsSegmented as D7}from"efficient-easel/panel";import{WidthIcon as N7}from"efficient-easel/icons";function p_({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 rp(B7,{label:d,labelId:a,icon:rp(N7,{}),value:l?n:void 0,changed:!l,action:rp(F7,{words:ne()?.panel,label:d,changed:!l,onReset:()=>t(void 0)}),hint:s,children:rp(D7,{options:[{label:i(Ra.full),id:"full"},{label:i(Ra.page),id:"content"}],value:c,ariaLabel:d,onChange:t})})}import{HEADER_TYPE as Ag,FOOTER_TYPE as M7}from"efficient-easel/draw";var H7=new Set(["Hero","HeroSingle","IntroBleed"]),u_={min:56,max:140,default:88},gEe={min:0,max:120,step:2,default:32},bEe=`var(--sf-header-h, ${u_.default}px)`,W7="--sf-header-set-h",yEe="--sf-header-h",SEe=`var(${W7}, ${u_.default}px)`,wEe="sf-header-clearance",CEe="sf-sticky-underheader";function G7(e){return e?.find(o=>o?.type&&o.type!==Ag)??null}function m_(e){let o=G7(e)?.type;return!o||!H7.has(o)}function kEe(e){return!m_(e)}function vEe(e){return!!e?.some(o=>o?.type===Ag)}function TEe(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Ag||o?.type===M7)}var z7=["auto","shared","own"],Rg="auto",$7="topSpace",PEe="data-top-space";function U7(e){return z7.includes(e)?e:Rg}function j7(e,o){let t=U7(e?.props?.[$7]);return t==="own"?!0:t==="shared"?!1:m_(o)}function EEe(e,o){return j7(e,o)?"own":null}function q7(){return{type:"custom",render:({value:e,onChange:o})=>Fg(p_,{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 Y7=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],HEe={pageBackground:IO(),topSpace:st("Top space",Fg(V7,{}),Y7,Rg),widthChoice:q7()},Ql=["pageBackground","topSpace","widthChoice"],X7="Record type",Lg=new Map,h_=-1;function Z7(e){h_!==Kh()&&(Lg.clear(),h_=Kh());let o=jh(),t=o.some(a=>a.key===e)?"":e,r=Lg.get(t);return r||(r=st(X7,Fg(K7,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],Hr),Lg.set(t,r)),r}var x_=new WeakMap;function WEe(e,o){if(!wl()||jh().length<2||md in e)return e;let t=Z7(Sl(o)),r=x_.get(e);if(r&&r.row===t)return r.fields;let a={[md]:t,...e};return x_.set(e,{row:t,fields:a}),a}import{previewFrame as pq}from"efficient-easel/screen/lib/document/preview-dom";var I_="background";function g_(e){let o=Mo(kn(e));return Wn({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 b_(e){return g_(e).filter(o=>o.key!==I_)}function y_(e){let o=g_(e).filter(t=>t.key===I_);return t=>{let r=Zo(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as J7}from"efficient-easel/easel";function ap({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=J7(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??{},v=e?qs(g.fonts):a,S=e?Cw:s,C=e?pa(g.headingCompression):c,b=e?Ow(g.headingTypography):f,k={fonts:v,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:v,sizes:S,compression:C,typography:b,old:k,saved:T,write:(P,D)=>{let O=Eg(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(e_(P,k),D)},writeRoot:F}}import{pictureShadowColor as uq}from"efficient-easel/screen/lib/document/shadow-values";var Dg="sf-site-styles",mq="sf-site-styles-tabpanel",C_="text",hs="basics",S_="this-page-group",us=[{id:hs,label:"Basics",icon:be(dq,{})},{id:"theme",label:"Theme",icon:be(cq,{})},{id:"text",label:"Text",icon:be(fq,{})}];function hq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=w_(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(a0,{value:e?l.theme:a,onChange:c})}function xq({themeFromDocument:e,persist:o}){let[t,r]=Ng(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=xe(),c=ap({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??yq(Iq[P.id]??"body")??gq[P.kind],v=P=>c.write(P),S=b_(a),C=y_(a),b=P=>{let D={...p,accent:P};e?u({fonts:D}):n(D),o({accent_font:P})},k=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 za(ms,{children:[be(l_,{saved:f,old:d,colours:S,colourNameOf:C,sizeOf:g,onChange:v,openId:t===Bg?null:t,onOpenChange:r,withoutSize:e}),be(d_,{font:p.accent,size:x.accent,weight:I.weightStrong,italic:I.italicStrong,headingWeight:I.weight,open:t===Bg,onOpenChange:P=>r(P?Bg:null),onChange:P=>{P.key==="font"?b(P.value):P.key==="size"?k(P.value):P.key==="weight"?T(P.value):F(P.value)},withoutSize:e})]})}var Bg="accent",Iq={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},gq={heading:32,body:14},bq={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 yq(e){if(typeof document>"u")return null;let o=(pq()?.contentDocument??document).querySelector(bq[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function Sq({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=w_(u=>u),{cornerRadiusPx:a,setCornerRadiusPx:n}=xe(),s=t.data,l=s.root?.props??{},c=l.cornerRadiusPx===void 0?vw[kw(l.cornerStyle)]:zt(l.cornerRadiusPx),d=e?c:a,f=u=>r({type:"replaceRoot",root:{...s.root,props:{...l,...u}},recordHistory:!0});return be(n0,{value:d,onChange:u=>{e?f({cornerRadiusPx:u}):n(u),o({corner_radius_px:u})}})}function wq(e){return{site_width:e}}function Cq({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=xe();if(Mg()!=="desktop")return null;let l=typeof o=="number"?o:ho.default,c=u=>{t(u),e(wq(u),u===null)},d=u=>{a(u),e({section_background_width:u},!0)},f=u=>{s(u),e({section_content_width:u},!0)};return za(ms,{children:[be(w0,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:d,onReset:()=>d(null),hint:y0}),be(C0,{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:S0})]})}function kq(e){return{block_gap:e}}function vq(e){return{block_gap_phone:e}}function Tq(e){return{site_gutter:e}}function Pq(e){return{site_gutter_phone:e}}function k_(e,[o,t],r){o(e),r(t(e),e===null)}function Eq({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a}=xe(),n=g0(Mg(),{gutter:o,phone:t});if(!n)return null;let s=n.key==="site_gutter_phone"?[a,Pq]:[r,Tq];return be(b0,{value:n.value,onChange:l=>k_(l,s,e),unsetPx:n.unsetPx,bounds:n.bounds})}function Oq({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a}=xe(),n=f0(Mg(),{gap:o,phone:t});if(!n)return null;let s=n.key==="block_gap_phone"?[a,vq]:[r,kq];return be(p0,{value:n.value,onChange:l=>k_(l,s,e),followsPx:n.followsPx})}function _q({persist:e}){return za(ms,{children:[be(Cq,{persist:e}),be(Eq,{persist:e}),be(Oq,{persist:e})]})}function Aq(e){return{card_shadow:e}}function Rq(e){return e===null?{shadow_color:null}:{shadow_color:uq(e)}}function Lq(e){return{hover_effect:e}}function Fq({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=xe();return za(ms,{children:[be(s0,{value:o,onChange:l=>{t(l),e(Aq(l),!0)}}),be(c0,{value:r,onChange:l=>{a(l),e(Rq(l),l===null)}}),be(u0,{value:n,onChange:l=>{s(l),e(Lq(l),!0)}})]})}function Bq(e){return{photography_grayscale:e}}function Dq({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=xe();return be(h0,{value:o,onChange:r=>{t(r),e(Bq(r),!0)}})}function Nq({persist:e}){return be(ms,{children:be(Dq,{persist:e})})}function Mq(e){return{share_button_on_posts:e}}function Hq({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=xe();return be(x0,{value:o,onChange:r=>{t(r),e(Mq(r),!0)}})}function xs(){let{websiteName:e}=xe();return e?.trim()||lC}function np({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:c}){let{persist:d}=Un({themeFromDocument:e,tokenRef:o,siteId:t,onResult:v=>{let S=f_(v);S&&r?.(S.msg,S.tone)}}),[f,u]=Ng(s??us[0].id),p=a!==void 0,x=p?a:f,I=p?n??(()=>{}):u,g=us.find(v=>v.id===x)??us[0];return za(nq,{children:[be(zq,{activeId:g.id,onSelect:I}),za("div",{id:iq(Dg,g.id),className:mq,role:"tabpanel","aria-labelledby":lq(Dg,g.id),children:[x===hs&&za(ms,{children:[be(Sq,{themeFromDocument:e,persist:d}),!e&&be(Fq,{persist:d}),!e&&be(_q,{persist:d}),!e&&be(Nq,{persist:d}),!e&&be(Hq,{persist:d}),be(Wq,{reveal:l,onRevealed:c})]}),x==="theme"&&be(hq,{themeFromDocument:e,persist:d}),x==="text"&&be(xq,{themeFromDocument:e,persist:d})]})]})}function Wq({reveal:e,onRevealed:o}){let[t,r]=Ng(!0),a=rq(o);return a.current=o,tq(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(S_)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),be(oq,{title:i("This page"),open:t,onToggle:r,id:S_,children:be(Gq,{})})}function Gq(){let{fields:e,values:o,readOnly:t,onChange:r}=Q7(),a=Object.fromEntries(Ql.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?be(aq,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):be(eq,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function zq({activeId:e,onSelect:o}){return be("div",{className:"es-insp-tabs",children:be(sq,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:Dg,value:e,onChange:o,items:us.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as Jq}from"efficient-easel/chrome";import{Button as R_,Dialog as Qq,FormField as eY,Input as L_,PopupMenu as oY,PopupMenuItem as F_,toast as B_}from"efficient-shell/ui";import{LayersTree as tY,TreeGroupLabel as rY,TreeRow as D_,TreeRowAction as cp}from"efficient-easel/tree";import{AddIcon as aY,DuplicateIcon as nY,PageIcon as sY,SettingsIcon as lY}from"efficient-easel/icons";import{PagesIcon as iY}from"efficient-easel/rail";import{useEaselHost as cY}from"efficient-easel/screen/lib/host";import{useEaselSession as W_}from"efficient-easel/screen/lib/session-context";import{useCallback as sp,useEffect as $q,useSyncExternalStore as Uq}from"react";import{useScreenDocument as E_}from"efficient-easel/screen/components/ScreenDocumentContext";var v_=new WeakMap;function ei(e){let o=v_.get(e);return o||(o={rows:null,loading:null,listeners:new Set},v_.set(e,o)),o}function Hg(e,o){e.rows=o;for(let t of e.listeners)t()}var lp=new Set;function ip(e,o){o?lp.add(e):lp.delete(e)}function T_(e){let o=ei(e),t=e.listPages().then(r=>Hg(o,lp.size?r.filter(a=>!lp.has(a.id)):r),()=>Hg(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var P_=()=>null,jq=()=>()=>{};function oi(){let{adapter:e,ready:o}=E_(),t=sp(l=>{let{listeners:c}=ei(e);return c.add(l),()=>c.delete(l)},[e]),r=sp(()=>ei(e).rows,[e]),a=Uq(o?t:jq,o?r:P_,P_);$q(()=>{if(!o)return;let l=ei(e);l.rows===null&&!l.loading&&T_(e)},[e,o]);let n=sp(()=>o?T_(e):Promise.resolve(),[e,o]),s=sp(l=>Hg(ei(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function Kq(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function O_(){let{currentSlug:e}=E_(),{rows:o}=oi();return Kq(o,e)}import{canDuplicatePage as dY,DuplicatePageDialog as fY,uniqueSlug as N_}from"efficient-easel/page-copy";var M_="sf-editor-pages-collapsed-groups";function pY(){let e=W_(),{siteId:o,templateId:t}=H_(),r=$e(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function uY(){try{let e=_n()||(typeof window>"u"?"":window.location.origin);return e?new URL(e).host:""}catch{return""}}function G_({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=W_().chrome?.pageRows,n=cY(),{adapter:s,capabilities:l,ready:c,currentSlug:d}=H_(),f=xs(),{rows:u,reload:p,setRows:x,getRows:I}=oi(),[g,v]=Zr(""),[S,C]=Zr(!1),[b,k]=Zr(null),[T,F]=Zr(!1),[P,D]=Zr(""),O=Yq(),R=pY(),[N,y]=Zr(null),[A,L]=Zr(()=>{if(typeof window>"u")return new Set;try{let W=window.localStorage.getItem(M_);return new Set(W?JSON.parse(W):[])}catch{return new Set}});qq(()=>{try{window.localStorage.setItem(M_,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=A_(()=>Av(u??[]),[u]),q=g.trim().toLowerCase(),j=W=>!q||W.toLowerCase().includes(q),Ie=W=>q?!0:!A.has(W),te=A_(()=>new Set((u??[]).map(W=>W.slug)),[u]),Le=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}D(""),k(null),F(!0)},He=async()=>{let W=P.trim();if(!(!W||!c||S||!s.createPage)){C(!0),k(null);try{let Fe=await s.createPage({slug:N_(W,te),title:W,layout:{}});await p(),F(!1),D(""),e(Fe.slug)}catch{k(i("Couldn\u2019t add the page \u2014 please retry."))}finally{C(!1)}}},Oe=l.hasSiteSettings&&!!s.createPage,ge=async()=>{if(!(!c||S||!s.createPage)){C(!0),k(null);try{let W=await s.createPage(_P(i("New popup"),te));await p(),e(W.slug)}catch{k(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{C(!1)}}},_e=Xq(null),[We,oo]=Zr(null),Co=()=>{if(!Oe)return Le();if(We)return oo(null);let W=_e.current?.getBoundingClientRect();W&&oo({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(Je=>Je.id===W.id),Ae=Fe.filter(Je=>Je.id!==W.id),It=W.slug===d;ip(W.id,!0),x(Ae),k(null),It&&Ae[0]&&e(Ae[0].slug);let Wt=()=>{ip(W.id,!1);let Je=I()??[];if(Je.some(Gt=>Gt.id===W.id))return;let gt=[...Je];gt.splice(Math.max(0,Math.min(Be,gt.length)),0,W),x(gt)};B_.undoable(i("Deleted \u201C{name}\u201D",{name:W.label}),{actionLabel:i("Undo"),commit:async Je=>{await le(W.id,Je),ip(W.id,!1)},undo:()=>{Wt(),It&&e(W.slug)},onFail:()=>{Wt(),B_.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Ke=W=>n.send("storefront-editor:open-page",{slug:W}),Te=W=>{if(!j(W.label))return null;let Fe=!t&&W.slug===d,le=l.canDeletePagesInline&&(u??[]).length>1,Be=wa(W),Ae=_v(W),It=[...Be?[{label:i("Dynamic"),tone:"info"}]:[],...Ae?[{label:i("Lightbox"),tone:"success"}]:[],...W.draft?[{label:i("draft"),tone:"draft"}]:[]],Wt=It.length>0?It:void 0,Je=!!R&&dY(W),gt=Je||l.pageCreationInAdminForm||le?ti(__,{children:[Je&&Ce(cp,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:W.label}),disabled:S,onClick:()=>y(W),children:Ce(nY,{size:13})}),l.pageCreationInAdminForm&&Ce(cp,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:W.label}),onClick:()=>Ke(W.slug),children:Ce(lY,{size:13})}),le&&Ce(cp,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:W.label}),disabled:S,onClick:()=>he(W),children:Ce(Wg,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Ce(D_,{icon:Ce(sY,{size:14}),name:W.label,selected:Fe,onSelect:()=>e(W.slug),badge:Wt,actions:gt,rowProps:{"data-page-slug":W.slug}},W.id)},Pe=(W,Fe,le)=>{let Be=le.filter(Boolean);if(Be.length===0)return null;let Ae=Ie(W);return ti(Vq,{children:[Ce(rY,{count:Be.length,countLabel:Oo("{n} page","{n} pages",Be.length),expanded:Ae,onToggle:()=>H(W),children:Fe}),Ae&&Be]},W)},Ze=(a?.rows??[]).filter(W=>j(W.label)).map(W=>{let Fe=t===W.key;return Ce(D_,{icon:W.icon,name:W.label,selected:Fe,onSelect:()=>r(W.key),badge:{label:i("Preview"),tone:"warning"},actions:Ce(cp,{kind:"plain",label:i("Open the {name} in a new tab",{name:W.label}),onClick:()=>window.open(W.href,"_blank","noopener,noreferrer"),children:Ce(Wg,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":W.key}},W.key)}),Ht=l.hasSiteSettings&&!!a,Do=(()=>{if(u===null)return null;let W=[],Fe=!1;for(let le of X){Ht&&!Fe&&le.key.startsWith("system:")&&(W.push(Pe("shop",a.title,Ze)),Fe=!0);let Be=le.key===Yh||le.label===qh?i(le.label):le.label;W.push(Pe(le.key,Be,le.rows.map(Te)))}return Ht&&!Fe&&W.push(Pe("shop",a.title,Ze)),W})();return ti("div",{className:"sf-pages",children:[Ce(Zq,{icon:Ce(iY,{}),title:i("Pages"),context:f,actions:Ce(Jq,{buttonRef:_e,label:Oe?i("Add"):i("New page"),hasPopup:Oe?"menu":void 0,expanded:Oe?We!==null:void 0,onClick:Co,children:Ce(aY,{size:15})})}),We&&Ce(oY,{portal:!0,style:{top:We.top,right:We.right},onClose:()=>oo(null),children:ti("div",{role:"menu","aria-label":i("Add"),children:[Ce(F_,{role:"menuitem",onClick:()=>{oo(null),Le()},children:i("Page")}),Ce(F_,{role:"menuitem",disabled:S,onClick:()=>{oo(null),ge()},children:i("Popup")})]})}),Ce("div",{className:"sf-pages-find",children:Ce(L_,{type:"search",leftIcon:Ce(Wg,{name:"search",size:14,rounded:!0}),placeholder:i("Search all pages\u2026"),value:g,onChange:W=>v(W.target.value),"aria-label":i("Search all pages")})}),b&&!T&&Ce("div",{className:"sf-note sf-note--error",role:"alert",children:b}),Do===null?Ce("div",{className:"sf-note",children:i("Loading\u2026")}):Do.some(Boolean)?Ce(tY,{ariaLabel:i("Pages"),className:"sf-scroll",children:Do}):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(fY,{source:{title:N.label,slug:N.slug},taken:te,host:uY(),duplicate:W=>R(N,W),onClose:()=>y(null),onDuplicated:W=>{y(null),p(),e(W.slug)}},N.id),Ce(Qq,{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(__,{children:[Ce(R_,{variant:"secondary",onClick:()=>F(!1),children:i("Cancel")}),Ce(R_,{onClick:()=>{He()},disabled:S||!P.trim(),loading:S,children:i("Add page")})]}),children:Ce(eY,{label:i("Page name"),htmlFor:O,hint:P.trim()?i("URL: /{slug}",{slug:N_(P,te)}):void 0,error:b??void 0,children:Ce(L_,{id:O,value:P,invalid:!!b,onChange:W=>D(W.target.value),onKeyDown:W=>{W.key==="Enter"&&He()},placeholder:i("e.g. About")})})})]})}import{jsx as U_}from"react/jsx-runtime";import{createContext as hY,useCallback as xY,useContext as IY,useMemo as gY,useState as bY}from"react";import{CanvasChromeContext as yY}from"efficient-easel/easel";import{useSelectHandler as SY}from"efficient-easel/draw/client";import{parseHexColor as mY}from"efficient-shell/format";var dp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Is=dp[0];var $a="right";function fp(e){return dp.includes(e??"")?e:Is}function z_(e){return e==="left"?"left":$a}function $_(e){return e&&mY(e)===e.toLowerCase()?e.toLowerCase():""}var j_="chat",pp={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:$a,launcherLabel:"",showOnPhones:!0};function i0e(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:$_(e.launcherColor),launcherIcon:e.launcherIcon?fp(e.launcherIcon):"",launcherPosition:z_(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var K_=hY({chat:pp,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function c0e({children:e,chat:o=pp,onChatChange:t}){let[r,a]=bY(!1),n=xY(d=>t?.(d),[t]),{select:s,setSelectHandler:l}=SY(),c=gY(()=>({selected:()=>r?j_:null,select:d=>d===j_&&s()}),[r,s]);return U_(K_.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:U_(yY.Provider,{value:c,children:e})})}var up=()=>IY(K_);import{jsx as Gg}from"react/jsx-runtime";import{DesktopIcon as wY,PhoneIcon as CY,TabletIcon as kY}from"efficient-easel/icons";import{VIEW_TIERS as vY,VIEW_TIER_LABEL as TY}from"efficient-easel/draw";var PY={desktop:Gg(wY,{}),tablet:Gg(kY,{}),mobile:Gg(CY,{})},V_=vY.map(e=>({id:e,get label(){return i(TY[e])},icon:PY[e]}));import{PreviewDeviceContext as Gce}from"efficient-easel/draw/client";import{jsx as EY}from"react/jsx-runtime";import{createContext as OY,useCallback as q_,useContext as _Y,useMemo as AY,useRef as RY}from"react";var LY=Object.fromEntries(Rc.map(e=>[e,{value:"",error:null}])),Y_=OY({links:cC,rows:LY,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function b0e({children:e,value:o}){let t=RY(()=>{}),r=q_(()=>t.current(),[]),a=q_(s=>{t.current=s},[]),n=AY(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return EY(Y_.Provider,{value:n,children:e})}var ri=()=>_Y(Y_);import{jsx as FY}from"react/jsx-runtime";import{createContext as BY,useContext as DY,useMemo as NY,useState as MY}from"react";var X_=BY(null);function C0e({children:e}){let[o,t]=MY(null),r=NY(()=>({surface:o,setSurface:t}),[o]);return FY(X_.Provider,{value:r,children:e})}function Z_(){return DY(X_)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as HY}from"efficient-easel/draw/client";var ai="Scrolling Bar",{Provider:T0e,useSelection:J_}=HY("selectedHeroId"),P0e="data-sf-hero-ticker";function E0e(e){return`${e}::ticker`}function O0e(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var Q_=["","","","","",""],eA="#ticker",ni="strip",zg={sectionAccent:$t,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 $g(e){return WY(e).length>0}function R0e(e){return e.showTicker!==!1&&$g(e)}import{createPreviewSelectionContext as GY}from"efficient-easel/draw/client";var{Provider:B0e,useSelection:mp}=GY("selectedHeroPart");var tA=["one","side","stacked"];var N0e={one:"One",side:"Side by side",stacked:"Stacked"};function hp(e){return tA.includes(e)?e:"one"}function oA(e){return e==="one"?1:2}function Ug(e,o){if(tA.includes(e))return e;let t=hp(o);return t==="side"?"stacked":t}function si(e){let o=hp(e.mediaLayout);return Math.max(oA(o),oA(Ug(e.mediaLayoutPhone,o)))}var Ua=["media","image","image2"],ja={media:"Media",image:"Image",image2:"Image 2"},li={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function xp(e,o){return e==="image"&&si(o)>1?"Image 1":ja[e]}var G0e="Video file",z0e="Upload a video file";function zY(e,o){return{field:"mediaType",is:e,default:o}}var $Y=new Set(["HeroSingle"]),rA="heroPart";function UY(e,o){return{...o,[rA]:e}}function $0e(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]=Ge(n[l],zY(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=Ge(n[s],l));for(let s of Ua)for(let l of o[s]??[])n[l]=UY(s,n[l]);return n}function jY(e){let o=e?.[rA];return Ua.includes(o)?o:null}function aA(e,o){let t={};for(let[r,a]of Object.entries(e))jY(a)===o&&(t[r]=a);return t}function nA(e){if(!$Y.has(e.type))return[];let o=[{part:"media",label:ja.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:xp("image",e.props),depth:1}),si(e.props)>1&&o.push({part:"image2",label:xp("image2",e.props),depth:1})),o}function ii(e,o){return`${e}::${o}`}function sA(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return Ua.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var lA="data-sf-hero-part";import{jsx as Se,jsxs as na,Fragment as BD}from"react/jsx-runtime";import{useEasel as ane,useRootFields as nne}from"efficient-easel/easel";import{Button as sne,EmptyState as lne}from"efficient-shell/ui";function iA({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:wa({kind:e})?i("Template"):i("Page")}}import{headWords as HD,InspectorHead as ine,InspectorIconButton as DD}from"efficient-easel/chrome";import{DuplicateIcon as cne,TrashIcon as dne}from"efficient-easel/icons";import{panelFieldsOf as fne}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 qY,BlockBoxIcon as YY,BlockButtonIcon as XY,BlockDividerIcon as dA,BlockFooterIcon as fA,BlockHeadingIcon as ZY,BlockProductIcon as JY,BlockSocialIcon as QY,BlockTextIcon as e9,CardPaymentIcon as o9,ChatIcon as t9,AccountIcon as r9,GlobeIcon as a9,GridIcon as n9,ImageIcon as Kg,MapIcon as s9,MediaIcon as l9,PageIcon as i9}from"efficient-easel/icons";import{jsx as jg,Fragment as KY,jsxs as VY}from"react/jsx-runtime";var cA=VY(KY,{children:[jg("circle",{cx:"9",cy:"20",r:"1.3"}),jg("circle",{cx:"18",cy:"20",r:"1.3"}),jg("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 c9={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:cA,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"})},d9=B("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),f9={footer:fA,Footer:fA,Divider:dA,FooterDivider:dA,Banner:qY,Flex:YY,FooterSocial:QY,FooterPayment:o9,page:i9,website:a9,AccountBlock:r9,chat:t9,Heading:ZY,Text:e9,ImageBlock:Kg,ButtonBlock:XY,LocationMap:s9,Grid:n9,ProductRef:JY,heroMedia:l9,heroImage:Kg,heroImage2:Kg},p9={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ka({type:e,size:o=16,className:t}){let r=p9[e]??e,a=f9[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:c9[r]??d9})}import{PanelHideButton as ND}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as pne}from"efficient-easel/screen/lib/session-context";import{jsx as ve,jsxs as ci,Fragment as u9}from"react/jsx-runtime";import{useEffect as m9,useId as pA,useState as h9}from"react";import{IconPicker as x9}from"efficient-shell/ui";import{SettingsDefaultReset as I9,SettingsField as di,SettingsSegmented as g9,SettingsSwitch as uA}from"efficient-easel/panel";import{ButtonIcon as b9,ButtonIconIcon as y9,EyeIcon as S9,PhoneIcon as w9,PlacementIcon as C9,TypeIcon as k9}from"efficient-easel/icons";var v9="Chat with us",T9="We usually reply within a few minutes",P9="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Ip({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=h9(o);m9(()=>l(o),[o]);let c=()=>{s!==o&&r(s)};return ve(di,{label:e,icon:ve(k9,{}),changed:o!=="",action:ve(fi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?ve("textarea",{value:s,placeholder:t,rows:3,onChange:d=>l(d.target.value),onBlur:c,"aria-label":e}):ve("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 ve(I9,{words:ne()?.panel,label:e,changed:o,onReset:t})}function E9({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=pA();return ve(di,{label:e,labelId:s,icon:o,changed:t!==r,action:ci("span",{className:"inline-flex items-center gap-2",children:[ve(uA,{checked:t,onChange:a,ariaLabelledBy:s}),ve(fi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var O9=dp.map(e=>({value:e,icon:gd(e)}));function _9(){let{theme:e}=xe(),o=to(e).themes[0];return Zs(o)??o?.accent??""}function mA(){let{chat:e,setChat:o}=up(),t=pA(),r=_9(),a=e.launcherIcon?fp(e.launcherIcon):Is;return ci(u9,{children:[ve(di,{label:i("Show the chat bubble"),labelId:t,icon:ve(S9,{}),changed:!e.enabled,action:ci("span",{className:"inline-flex items-center gap-2",children:[ve(uA,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),ve(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(vI,{title:i("Look"),children:[ve($o,{label:i("Button color"),icon:ve(b9,{}),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:""})}),ve(di,{label:i("Icon"),icon:ve(y9,{}),value:ve(pI,{value:a}),changed:a!==Is,action:ve(fi,{label:i("Icon"),changed:a!==Is,onReset:()=>o({launcherIcon:""})}),children:ve(x9,{label:i("Icon"),value:a,options:O9,onChange:n=>o({launcherIcon:n===Is?"":n})})}),ve(di,{label:i("Position"),icon:ve(C9,{}),changed:e.launcherPosition!==$a,action:ve(fi,{label:i("Position"),changed:e.launcherPosition!==$a,onReset:()=>o({launcherPosition:$a})}),children:ve(g9,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),ve(Ip,{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")}),ve(E9,{label:i("Show on phones"),icon:ve(w9,{}),checked:e.showOnPhones,fallback:pp.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),ci(vI,{title:i("Wording"),children:[ve(Ip,{label:i("Title"),value:e.title,placeholder:v9,onCommit:n=>o({title:n})}),ve(Ip,{label:i("Subtitle"),value:e.subtitle,placeholder:T9,onCommit:n=>o({subtitle:n})}),ve(Ip,{label:i("Greeting message"),value:e.greeting,placeholder:P9,onCommit:n=>o({greeting:n}),multiline:!0}),ve("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as Va,Fragment as mb,jsxs as bA}from"react/jsx-runtime";import{useEffect as sX,useId as IA,useState as gA}from"react";import{SettingsField as lX}from"efficient-easel/panel";import{jsx as Z9}from"react/jsx-runtime";import{forwardRef as A9,createElement as Vg}from"react";var hA={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=A9(({color:n="currentColor",size:s=24,stroke:l=2,title:c,className:d,children:f,...u},p)=>Vg("svg",{ref:p,...hA[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&&Vg("title",{key:"svg-title"},c),...r.map(([x,I])=>Vg(x,I)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var R9=[["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"}]],qg=ie("outline","brand-facebook","BrandFacebook",R9);var L9=[["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"}]],Yg=ie("outline","brand-instagram","BrandInstagram",L9);var F9=[["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"}]],Xg=ie("outline","brand-line","BrandLine",F9);var B9=[["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"}]],Zg=ie("outline","brand-linkedin","BrandLinkedin",B9);var D9=[["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"}]],Jg=ie("outline","brand-pinterest","BrandPinterest",D9);var N9=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Qg=ie("outline","brand-telegram","BrandTelegram",N9);var M9=[["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"}]],eb=ie("outline","brand-tiktok","BrandTiktok",M9);var H9=[["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"}]],ob=ie("outline","brand-wechat","BrandWechat",H9);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"}]],tb=ie("outline","brand-whatsapp","BrandWhatsapp",W9);var G9=[["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"}]],rb=ie("outline","brand-x","BrandX",G9);var z9=[["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"}]],ab=ie("outline","brand-youtube","BrandYoutube",z9);var $9=[["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"}]],nb=ie("filled","brand-facebook-filled","BrandFacebookFilled",$9);var U9=[["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"}]],sb=ie("filled","brand-instagram-filled","BrandInstagramFilled",U9);var j9=[["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"}]],lb=ie("filled","brand-linkedin-filled","BrandLinkedinFilled",j9);var K9=[["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"}]],ib=ie("filled","brand-pinterest-filled","BrandPinterestFilled",K9);var V9=[["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"}]],cb=ie("filled","brand-tiktok-filled","BrandTiktokFilled",V9);var q9=[["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"}]],db=ie("filled","brand-whatsapp-filled","BrandWhatsappFilled",q9);var Y9=[["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"}]],fb=ie("filled","brand-x-filled","BrandXFilled",Y9);var X9=[["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"}]],pb=ie("filled","brand-youtube-filled","BrandYoutubeFilled",X9);var TAe="outline",gp={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},J9={},ub={fillRule:"evenodd"},Q9=[["path",{...gp,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...ub,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],eX=[["path",{...gp,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",{...J9,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("")}]],oX=[["path",{...gp,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",{...gp,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",{...ub,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",{...ub,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("")}]],tX=ie("filled","brand-telegram-filled","BrandTelegramFilled",Q9),rX=ie("filled","brand-line-filled","BrandLineFilled",eX),aX=ie("filled","brand-wechat-filled","BrandWechatFilled",oX),nX={instagram:{outline:Yg,solid:sb},facebook:{outline:qg,solid:nb},tiktok:{outline:eb,solid:cb},youtube:{outline:ab,solid:pb},x:{outline:rb,solid:fb},linkedin:{outline:Zg,solid:lb},pinterest:{outline:Jg,solid:ib},whatsapp:{outline:tb,solid:db},telegram:{outline:Qg,solid:tX},line:{outline:Xg,solid:rX},wechat:{outline:ob,solid:aX}};function xA({platform:e,iconStyle:o,size:t}){let r=nX[e][o];return Z9(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var iX={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 cX({platform:e}){let{rows:o,saveLink:t}=ri(),{value:r,error:a}=o[e],[n,s]=gA(r),[l,c]=gA(!1),d=IA(),f=IA();sX(()=>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 bA(mb,{children:[Va(lX,{label:i(p),htmlFor:d,icon:Va(xA,{platform:e,iconStyle:"outline",size:18}),children:Va("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:iX[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&&Va("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function yA({unavailable:e}){let{canSave:o}=ri();return!o&&e?Va(mb,{children:e}):bA(mb,{children:[Va("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),Rc.map(t=>Va(cX,{platform:t},t))]})}import{jsx as Qa,Fragment as fQ,jsxs as pQ}from"react/jsx-runtime";import{useId as uQ,useMemo as mQ}from"react";import{useEasel as hQ}from"efficient-easel/easel";import{SettingsField as xQ,SettingsSwitch as IQ}from"efficient-easel/panel";import{EyeIcon as gQ}from"efficient-easel/icons";import{fieldShownInView as bQ}from"efficient-easel/fields";import{usePreviewDevice as yQ}from"efficient-easel/draw/client";import{jsx as Ya,Fragment as dZ,jsxs as fZ}from"react/jsx-runtime";import{createContext as pZ,useContext as uZ,useLayoutEffect as YA,useMemo as vp,useRef as XA,useState as Cb}from"react";import{useEasel as ZA,useSelectedFields as mZ}from"efficient-easel/easel";import{fieldShownInView as hZ,Inspector as xZ,planFields as kb}from"efficient-easel/fields";function SA({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 XX}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as ZX,deviceMetaOf as DA}from"efficient-easel/screen/lib/document/device-fields";import{jsx as co}from"react/jsx-runtime";import{DirectionDownIcon as xX,DirectionIcon as IX,DirectionLeftIcon as gX,DirectionRightIcon as bX,DirectionUpIcon as yX,EntranceBounceIcon as SX,EntranceFadeIcon as wX,EntranceFlipIcon as CX,EntranceGlideIcon as kX,EntranceRevealIcon as vX,EntranceRiseIcon as TX,EntranceScaleIcon as PX,EntranceSpinIcon as EX,NoSymbolIcon as OX}from"efficient-easel/icons";import{NoControlMark as _X,noControlField as AX}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as RX,group as LX}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as FX,ENTRANCE_FROM_DEFAULT as _A,ENTRANCE_KINDS as AA,ENTRANCE_KINDS_WITH_FROM as BX,entranceAttrs as DX,playEntrance as NX,readEntrance as MX}from"efficient-shell/format";import{jsx as Ib}from"react/jsx-runtime";import{ClockIcon as uX,DurationIcon as mX}from"efficient-easel/icons";import{MOTION_TIMING as PA}from"efficient-shell/format";import{useSelectedHost as hX}from"efficient-easel/easel";import{MOTION_EASING as dX,MOTION_TIMING as wA,motionSeconds as CA}from"efficient-shell/format";var hb="none",bp=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function HAe(e){return No(bp,hb,e)}var yp="_gLoop",pi={field:"loop",is:"scroll"},ui="left",xb=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],fX={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function kA(e){return No(xb,ui,e)}function WAe(e){return e==="up"||e==="down"}function vA(e){return CA("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var GAe=wA.loop.duration.default,pX=wA.loop.delay.default;function TA(e){return CA("loop","delay",e.loopDelay)}function zAe(e,o,t=pX){return`${fX[e]} ${o}s ${dX.loop}${t?` ${t}s`:""} infinite`}function gs(e){let{min:o,max:t,step:r,default:a}=PA[e].duration;return To("Duration",Ib(mX,{}),o,t,r,a,"s")}function bs(e){let{min:o,max:t,step:r,default:a}=PA[e].delay;return To("Delay",Ib(uX,{}),o,t,r,a,"s")}function ys(e,o){let t=e.render,r=a=>{let n=hX();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>Ib(r,{...a})}}function Sp({readsSpeed:e}){return ys(gs("loop"),(o,t)=>vA({loopDuration:o,speed:e?t?.speed:void 0}))}function wp(){return ys(bs("loop"),e=>TA({loopDelay:e}))}var EA="_gEntrance";var HX={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},WX={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},GX={top:()=>co(xX,{}),bottom:()=>co(yX,{}),left:()=>co(bX,{}),right:()=>co(gX,{})},RA="Entrance",bb=AA.filter(e=>e!=="none"),LA=e=>({any:[{field:Xo.kind,in:e},{all:[{field:Xo.kind,set:!1},{field:Qs,in:e}]}]}),OA=(e,o)=>pl(Ho.slice(0,Ho.indexOf(e)+1).reverse().map(t=>ke(Xo.kind,t)),t=>({field:t,set:!0}),t=>t===Xo.kind?LA(o):{field:t,in:o}),zX={any:[LA(bb),...Ho.slice(1).map(e=>({field:ke(Xo.kind,e),in:bb}))]},$X=Ho.flatMap(e=>[[[ke(Xo.from,e)],OA(e,BX)],[[ke(Xo.duration,e),ke(Xo.delay,e)],OA(e,bb)]]),UX={none:()=>co(OX,{}),fade:()=>co(wX,{}),rise:()=>co(TX,{}),scale:()=>co(PX,{}),glide:()=>co(kX,{}),bounce:()=>co(SX,{}),flip:()=>co(CX,{}),reveal:()=>co(vX,{}),spin:()=>co(EX,{})},FA="data-entrance-tile";function jX({kind:e}){let{attrs:o}=DX(MX(e,_A));return co("span",{className:"sf-entrance-stage",[FA]:e,children:co("i",{...o,children:UX[e]()})})}var KX=(e,o)=>{let t=e.querySelector(`[${FA}="${o}"] > i`);t&&NX(t)},VX="Effect",qX=()=>Bd(Xo.kind,{label:RA,tileWord:VX,values:AA,fallback:"none",word:e=>HX[e],picture:e=>co(jX,{kind:e}),read:(e,o)=>Fm(e,o).kind,preview:KX}),gb=(e,o)=>Fd(Xo[e],o,(t,r)=>Fm(t,r)[e]),YX=FX.map(e=>({label:WX[e],value:e,picture:GX[e]()}));function Ft(){let e={[EA]:LX(RA,{dot:zX}),...qX(),[Qs]:AX({type:"custom",render:()=>co(_X,{})},"always"),_cEntrance:RX(),...gb("from",La("From",co(IX,{}),YX,_A)),...gb("duration",gs("entrance")),...gb("delay",bs("entrance"))};return fl(e,$X)}import{DESIGN_GROUPS as Sb,SETTINGS_BUCKETS as JX}from"efficient-easel/panel";import{BUCKET_KEY as Qo,DESIGN_GROUP_KEY as mi}from"efficient-easel/screen/lib/document/field-buckets";var hi=JX;var QX="Editor only \u2014 not shown live",wb={"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",[QX]:"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"},NA={"AlloyWheelsListing._gCards":"Design"},MA={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function yb(e,o,t){let r=`${e}.${o}`;return MA[r]??NA[r]??wb[t]}function HA(e){return e==="Animation"?[Qo.Animation]:[Qo.Design,mi[e]]}function Cp(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=DA(r),n=yr(a?a.inner:r),s=n?wb[n.label]:void 0;if(s)for(let l of HA(s))o.includes(l)||o.push(l)}return o}var b1e=[...Cp(ff({tablet:!0}),Cf("full"),kf(),Tf(),EI()),...Object.keys(ff({tablet:!0})),...Object.keys(Cf("full")),...Object.keys(kf()),...Object.keys(Tf()),...Object.keys(EI())],y1e=[...Cp(yf()),...Object.keys(yf())],S1e=[...Cp(wf()),...Object.keys(wf())],w1e=[...Cp(Ft()),...Object.keys(Ft())],eZ=Object.keys(SO()),oZ=new Set(["cardImage","imageBackground"]),C1e=[...HA(yb("ProductGrid","_gCards","Cards")??"Design"),...eZ.filter(e=>e.startsWith("_g")||oZ.has(e))],k1e=Object.keys(wO()),v1e=Object.keys(CO()),tZ={"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)"},WA={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},GA={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...ff({tablet:!0}),...Cf("full"),...kf(),...Tf(),...yf(),...wf(),...Ft()};for(let o of Object.keys(GA)){let t=yr(e[o]),r=t?wb[t.label]:void 0;if(!t||t.level!==2||!r||!WA[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 rZ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),aZ=new Map([[Qo.Design,"Content"],[Qo.Animation,"Animation"],...Sb.map(e=>[mi[e],e])]);function zA(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 nZ(e){let o=`${e}.`;return Object.keys(tZ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function sZ(e,o){let t=DA(e),r=XX(o);return t?ZX(t.tier,r):r}function lZ(e,o){let t=yr(o);return t?e==="Content"||e==="Animation"?nO(o,t.label):sO(o):o}function BA(e){return e==="Design"?Sb:["Animation"]}function $A(e,o){let t=[],r=new Set(nZ(o)),a=new Set,n=!1,s=null;for(let[p,x]of Object.entries(e)){let I=yr(x);if(rZ.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=aZ.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 GA){let S=yb(o,p,I.label);if(I.level!==2||!S||!WA[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 v=yb(o,p,I.label);if(!v)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 ${[...Sb,"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:v,entries:[[p,I.level===2?x:sZ(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",MA],["KEY_GROUP",NA]]){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=>BA(p).some(x=>d.has(x))),u={};for(let p of f){u[Qo[p]]=bf(p,p===f[0]?f:null);for(let x of BA(p)){if(!d.has(x))continue;let I=t.filter(v=>v.place===x),g=I.findIndex(v=>v.adopted);g>0&&I.unshift(...I.splice(g,1)),p==="Design"&&(u[mi[x]]=kI(x));for(let v of I)for(let[S,C]of v.entries)u[S]=lZ(x,C)}}return u}function T1e(e){return Qo.Design in e?e:{[Qo.Design]:bf("Design",null),[mi.Content]:kI("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]]=bf(r,r===o[0]?o:null);return t}import{jsx as iZ}from"react/jsx-runtime";import{EmptyState as cZ}from"efficient-shell/ui";function qa(){return iZ(cZ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as IZ}from"efficient-easel/draw/client";import{deviceField as gZ}from"efficient-easel/screen/lib/document/device-fields";var kp=" text",UA="Text";function xi(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function jA(e){return e.filter(xi).map(o=>o.key)}function KA(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 VA(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 qA(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var vb=new Map,Tp=new Set;function JA(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 bZ=Object.fromEntries(hi.map(e=>{let o=aO[e];return[e,Ya(o,{},e)]})),QA=pZ(null),yZ={_partBody:gZ("each",{type:"custom",render:()=>Ya(SZ,{})})};function SZ(){return Ya(dZ,{children:uZ(QA)})}function Bt({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}=mZ(),p=vp(()=>a?{...d,...a.values}:d,[d,a?.values]),x=(he,Ke)=>a?.keys.has(he)?a.onChange(he,Ke):u(he,Ke),I=IZ(),{appState:g,config:v}=ZA(he=>he),S=Bv(I,v,g.data.content??[],g.ui.itemSelector),C=n===void 0?aA(c,t):yZ,b=vp(()=>{let he=r?.length?Object.fromEntries(Object.entries(C).filter(([Ke])=>!r.includes(Ke))):C;return a?{...he,...a.fields}:he},[C,r,a?.fields]),k=Zh(b,p,S),[T,F]=Cb(()=>new Set(Tp)),[P,D]=Cb(()=>new Set),O=XA(null),{bandRows:R,designBands:N,looseRows:y}=vp(()=>{let he=new Map,Ke=new Set,Te=[];for(let Pe of kb(k).rows){if(!Pe.fold){Pe.bucket==="Design"&&Te.push(Pe.name);continue}let Ze=he.get(Pe.fold.key)??[];Ze.push(Pe.name),he.set(Pe.fold.key,Ze),Pe.bucket==="Design"&&Ke.add(Pe.fold.key)}return{bandRows:he,designBands:Ke,looseRows:new Map([["",Te]])}},[k]),A=hZ({},I),L={key:kp,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};YA(()=>{let he=O.current?.parentElement;if(!he)return;let Ke=JA(he,R),Te=new Set(jA(Ke)),Pe=KA([L,...Ke.filter(Ze=>N.has(Ze.key))],JA(he,y)[0].rows);Pe&&Te.add(Pe),D(Ze=>qA(Ze,Te)?Ze:Te)});let H=vp(()=>VA(k,P),[k,P]),X=!xi(L)&&!P.has(kp)?{key:kp,title:UA}:void 0,q=ZA(he=>he.selectedItem)!==null,j=a?.part??t??"",Ie=`${l}:${j}:${String(I)}`,[te,Le]=Cb(()=>({tab:vb.get(Ie)})),He=`${l}:${j}`,Oe=XA(null),ge={...S,node:p},_e=kb(k,{values:p,context:ge}).buckets,We=SA({allTabs:q,remembered:vb.get(Ie),inherited:Oe.current?.panel===He?Oe.current.tab:te.tab,buckets:_e,hasText:A&&o>0}),oo=!A&&!_e.includes(We)&&(kb(Zh(b,p,{...S,device:"desktop"}),{values:p,context:{...ge,device:"desktop"}}).buckets.includes(We)||We==="Design"&&o>0);YA(()=>{Oe.current={panel:He,tab:We}});let Co=We==="Design";return Ya(QA.Provider,{value:n??null,children:Ya(PI.Provider,{value:a?p:null,children:fZ(xZ,{fields:H,values:p,onChange:x,readOnly:f,allTabs:q,showWhenContext:ge,context:{itemWord:s},tab:We,onTab:he=>{vb.set(Ie,he),Le({tab:he})},tabIcons:bZ,idPrefix:l,ariaLabel:i("Section settings"),lead:Co?e:null,leadFold:X,closedFolds:T,onFold:(he,Ke)=>{Ke?Tp.delete(he):Tp.add(he),F(new Set(Tp))},children:[Ya("span",{ref:O,hidden:!0}),oo&&Ya(qa,{})]})})})}import{useMemo as rQ}from"react";import{useEasel as aQ}from"efficient-easel/easel";import{useSectionOps as nQ}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as it}from"react/jsx-runtime";import{EntranceRevealIcon as EZ,NoSymbolIcon as OZ,PercentIcon as a1,ScrollFadeInIcon as _Z,ScrollFadeOutIcon as AZ,ScrollMoveDownIcon as RZ,ScrollMoveUpIcon as LZ,ScrollParallaxIcon as FZ,ScrollZoomInIcon as BZ,ScrollZoomOutIcon as DZ,ZoomInIcon as NZ}from"efficient-easel/icons";import{customize as MZ,group as HZ}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as s1,SCROLL_EFFECTS_WITH_ZOOM as WZ,SCROLL_END as GZ,SCROLL_START as zZ,SCROLL_ZOOM as $Z}from"efficient-shell/format";import{parseFocal as vZ,formatFocal as TZ,readScroll as PZ}from"efficient-shell/format";import{phoneKey as wZ,tabletKey as CZ}from"efficient-easel/screen/lib/content/view-tiers";var kZ=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],e1=e=>[e,CZ(e),wZ(e)],Z1e=[...new Set(kZ.flatMap(e=>e1(e.focus)))].sort();function o1(e,o){let[t,r,a]=e1(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"},t1="_gScroll",r1="_cScroll",Pp=Dw(Object.values(Io));function Ss(e,o){return PZ(Js(e,Io.effect,o),Js(e,Io.zoom,o),Js(e,Io.start,o),Js(e,Io.end,o))}function Ep(e){let o={desktop:Ss(e,"desktop"),tablet:Ss(e,"tablet"),phone:Ss(e,"phone")};return Ho.every(t=>o[t].effect==="none")?null:o}function Tb(e){let o=Nw(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=vZ(a);return TZ(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function tRe(e,o){return Tb(o1(e,o))}var l1="Scroll",UZ={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"},jZ={none:()=>it(OZ,{}),"zoom-in":()=>it(BZ,{}),"zoom-out":()=>it(DZ,{}),"fade-in":()=>it(_Z,{}),"fade-out":()=>it(AZ,{}),"move-up":()=>it(LZ,{}),"move-down":()=>it(RZ,{}),reveal:()=>it(EZ,{}),parallax:()=>it(FZ,{})},KZ="Effect",i1=s1.filter(e=>e!=="none"),n1=(e,o)=>pl(Ho.slice(0,Ho.indexOf(e)+1).reverse().map(t=>ke(Io.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),VZ={any:Ho.map(e=>({field:ke(Io.effect,e),in:i1}))},qZ=Ho.flatMap(e=>[[[ke(Io.zoom,e)],n1(e,WZ)],[[ke(Io.start,e),ke(Io.end,e)],n1(e,i1)]]),YZ=()=>Bd(Io.effect,{label:l1,tileWord:KZ,values:s1,fallback:"none",word:e=>UZ[e],picture:e=>jZ[e](),read:(e,o)=>Ss(e,o).effect}),Pb=(e,o,t,r,a)=>Fd(e,To(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Ss(n,s)[o]);function Xa(){let e={[t1]:HZ(l1,{dot:VZ}),...YZ(),[r1]:MZ(),...Pb(Io.zoom,"zoom","Zoom",it(NZ,{}),$Z),...Pb(Io.start,"start","Start",it(a1,{}),zZ),...Pb(Io.end,"end","End",it(a1,{}),GZ)};return fl(e,qZ)}import{jsx as Ko}from"react/jsx-runtime";import{AccentIcon as XZ,ContrastIcon as ZZ,ExpandIcon as JZ,FinishIcon as QZ,ImagesIcon as eJ,NoSymbolIcon as d1,HoverLiftIcon as oJ,HoverNextImageIcon as tJ,HoverRotateIcon as rJ,HoverZoomIcon as f1,OpacityIcon as aJ}from"efficient-easel/icons";import{customize as nJ,describedAs as p1,group as sJ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as u1}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Eo}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as lJ,noControlField as iJ}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Op=e=>Eo("desktop",sJ("Hover",{dot:e})),m1=()=>Eo("desktop",nJ()),cJ="What this does when a shopper points at it, or taps it on a phone.",dJ="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",fJ="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.",pJ="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.",uJ="Which of the product's pictures the card shows.",mJ="Same finish shows the photos of the finish the card shows, else the first group.",hJ="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",xJ={none:()=>Ko(d1,{}),nextImage:()=>Ko(tJ,{}),rotate:()=>Ko(rJ,{}),zoom:()=>Ko(f1,{}),lift:()=>Ko(oJ,{}),mono:()=>Ko(ZZ,{})};function Eb(e,o){let t=u1({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(ba[r]),picture:xJ[r]()})),fallback:o});return p1(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:ba[r]}))})}function h1(){return{[ga]:Op({field:qe,in:Wc.filter(e=>e!=="none")}),[qe]:Eo("desktop",{...Eb(Wc,"none"),description:cJ})}}function x1(e){let o=QC(e),t=ah(),r=PE(oh);return{[ga]:Op({any:[o,t]}),[we.kind]:Eo("desktop",{...ys(Eb(Gc,e),(a,n)=>nh(n??{},e)),description:pJ}),...I1(t),[al]:iJ({type:"custom",render:()=>Ko(lJ,{})},"always"),_cHover:m1(),[we.angle]:Eo("desktop",Ge(ys(r,a=>sh(a)),o)),[we.duration]:Eo("desktop",Ge(gs("hover"),o)),[we.delay]:Eo("desktop",Ge(bs("hover"),o))}}function I1(e){let o=st("Type",Ko(eJ,{}),zc.map(a=>({value:a,label:YC[a]})),Ia.kind),t=La("Group",Ko(QZ,{}),th.map(a=>({value:a,label:XC[a]})),Ia.group),r=La("Covers",Ko(JZ,{}),rh.map(a=>({value:a,label:ZC[a]})),Ia.cover);return{[we.mediaKind]:Eo("desktop",Ge({...o,description:uJ},e)),[we.mediaGroup]:Eo("desktop",Ge({...t,description:mJ},e)),[we.cover]:Eo("desktop",Ge({...r,description:hJ},e))}}function Ob(e,o=""){let t=dh(e),r=rk(e);return{[ga]:Op(t),[we.kind]:g1($c,e,dJ),...Uc.includes(o)?I1(ah()):{},_cHover:m1(),...Uc.includes(o)?IJ():{},[we.duration]:Eo("desktop",Ge(gs("hover"),r)),[we.delay]:Eo("desktop",Ge(bs("hover"),r))}}function IJ(){let e=tk(),o=To("Zoom",Ko(f1,{}),cr.min,cr.max,cr.step,cr.min,cr.unit),t=To("Darken on hover",Ko(aJ,{}),zr.min,zr.max,zr.step,zr.fallback,zr.unit);return{[nl.zoom]:Eo("desktop",Ge(o,e)),[nl.darken]:Eo("desktop",Ge(t,e))}}function g1(e,o,t){let r=Eo("desktop",{...ys(Eb(e,o),a=>ch({[qe]:a},o,e)),description:t});return Object.assign(r,{[b1]:o})}var b1="sfPictureResting",c1=new WeakMap;function PRe(e,o,t){let r=e[we.kind],a=r?.[b1];if(!r||!a)return e;let n=o.props?.[qe]==="nextImage",s=n?null:Il(t.appState,o.props?.id);if(!n&&!qC.includes(String(s?.type??"")))return e;let l=c1.get(e);return l||(l={...e,[we.kind]:g1(lh,a,fJ)},c1.set(e,l)),l}var gJ="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.",bJ={none:()=>Ko(d1,{}),[qt]:()=>Ko(XZ,{})},ERe=Eo("desktop",{...p1(u1({label:i("Hover effect"),options:Jm.map(e=>({value:e,label:i(Qm[e]),picture:bJ[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:Jm.map(e=>({value:e,label:Qm[e]}))}),description:gJ});function y1(){let e={any:[dh("none"),{field:qe,is:qt}]};return{...Ob("none"),[ga]:Op(e)}}import{jsx as Ii}from"react/jsx-runtime";import{isNodeList as CJ}from"efficient-easel/data";import{useEasel as kJ}from"efficient-easel/easel";import{hiddenInView as vJ,hiddenKeyOf as Ab,hidePatch as TJ,slotChildName as PJ,slotChildRowName as EJ}from"efficient-easel/draw";var _p=null;function _b(e){_p=e}function S1(){return!!(_p&&_p.state().lockHolder)}function Za(){return _p!==null}var yJ=new Set(["BookingBox","SubmitBox"]);function SJ(e){return typeof e=="string"&&yJ.has(e)}var wJ=iv(SJ,S1);function Ap(e,o){return wJ(e)||Hx(o)}var Rp=(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 OJ}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as _J}from"efficient-easel/screen/lib/document/panel-no-control-mark";var w1="notCardOfTemplate",Rb={not:{context:w1,is:!0}},qRe={[w1]:(e,o)=>{let t=Th(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Lp(e){let o=e.props?.content;return CJ(o)?o:[]}var Bp=(e,o)=>vJ(e.props??{},o),AJ=(e,o)=>e.props?.[Ab(o)]!==void 0;function C1(e,o=()=>!1,t="desktop"){return Lp(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Lp(r).length&&!Bp(r,t)?C1(r,o,t):o(r)?[]:[r])}function RJ(e,o,t,r="desktop"){let a=C1(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:!Bp(l,r)}})}function Fp(e,o,t){let r=a=>t==="desktop"?Bp(a,t):AJ(a,t);return Lp(e).flatMap(a=>r(a)?o(a)?[]:[a,...Fp(a,o,t)]:Fp(a,o,t))}function LJ(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===Ab("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 Lb(e,o,t){let r=Lp(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let c=LJ(s.props,t(s.props));c!==s.props&&(l={...s,props:c})}else l=Lb(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function k1(e,o,t,r="desktop"){return Lb(e,o,a=>r==="desktop"&&Bp({props:a},r)===!t?{}:TJ(a,r,!t))}function FJ(e,o,t){return t==="desktop"?k1(e,o,!0,t):Lb(e,o,()=>({[Ab(t)]:void 0}))}function BJ(e,o,t,r,a,n){return PJ(e).trim()?t(e):od({ownerType:o,owner:r,fields:a,slot:n},Go(e.props))?.label??t(e)}var DJ="This page is read-only.";function NJ({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:c="desktop"}){let d=p=>EJ(p,n,ir,void 0,Rp),f=p=>Ap(p.type,p),u=RJ(e,p=>BJ(p,o,d,t,r,a),f,c);return u.length?Ii(os,{parts:u,changed:Fp(e,f,c).length>0,shown:p=>u.find(x=>x.id===p)?.shown??!0,disabledReason:l?DJ:void 0,onPress:(p,x)=>s(I=>k1(I,p,x,c)),onReset:()=>s(p=>Fp(p,f,c).reduce((x,I)=>FJ(x,String(I.props.id),c),p))}):Ii(_J,{})}function MJ(){try{let e=kJ(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Th(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:vh(e.appState,t.props?.id)??void 0}}catch{return null}}function HJ({readOnly:e,view:o}){let t=MJ(),r=_l();return t?Ii(NJ,{...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(os,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function YRe(e){return Ge(OJ(e,{type:"custom",render:({readOnly:o})=>Ii(HJ,{readOnly:o,view:e})}),Rb)}import{customize as YJ}from"efficient-easel/screen/lib/document/box-fields";import{jsx as Fb}from"react/jsx-runtime";import{DirectionIcon as WJ,LoopMarqueeIcon as GJ,NoSymbolIcon as zJ}from"efficient-easel/icons";import{customize as $J,describedAs as UJ,group as jJ}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as KJ}from"efficient-easel/screen/lib/document/effect-tiles";function Bb(){return bO("Direction",xb,ui,"A marquee cannot run diagonally, so the corners are not answers.",Fb(WJ,{}),gO)}var Db=e=>jJ("Loop",e?{dot:e}:void 0),VJ={none:()=>Fb(zJ,{}),scroll:()=>Fb(GJ,{})};function qJ(){let e=KJ({label:i("Loop"),options:bp.map(({value:o,label:t})=>({value:o,label:i(t),picture:VJ[o]()})),fallback:hb});return UJ(e,{type:"select",label:"Loop",options:bp.map(({value:o,label:t})=>({value:o,label:t}))})}function v1(){return{[yp]:Db(pi),loop:qJ(),_cLoop:$J(),scrollDirection:Ge(Bb(),pi),loopDuration:Ge(Sp({readsSpeed:!1}),pi),loopDelay:Ge(wp(),pi)}}function XJ(){let e=y1(),o=[ga,qe],t=An(e,Object.keys(e).filter(r=>!o.includes(r)),ym);return An(t,o,{any:[ym,Rb]})}function T1(e,o=""){switch(e){case"section":case"block":return{...Ft(),...Xa()};case"box":return{...Ft(),...Xa(),...v1(),...XJ()};case"picture":return{...Ft(),...Xa(),...Ob(ih(o),o)};case"textPart":return{...Ft(),...Xa(),...h1()};case"cards":return{...Ft(),...Xa(),...x1(eh(o))};case"marquee":return{...Ft(),...Xa(),[yp]:Db(),_cLoop:YJ(),scrollDirection:Bb(),loopDuration:Sp({readsSpeed:!0}),loopDelay:wp()}}}import{ENTRANCE_STATE_ATTR as ZJ,entranceAttrs as JJ,scrollAttrs as QJ}from"efficient-shell/format";var E1={},Nb="_partMotion",Mb=[...vc,qe,we.duration,we.delay,...Pp];function vLe(e){return ls(e,Nb)}function Ja(e,o){return Xf(e,Nb,o)}var eQ=new Set([Xo.kind,qe,Io.effect]);function O1(e,o,t,r){let{[t]:a,...n}=Ja(e,o),s=r==null||r===""||r==="none"&&eQ.has(t)?n:{...n,[t]:r};return Zf(e,Nb,o,Object.keys(s).length?s:null)}function Hb(e){return{entrance:Tc(e),hover:KC(e),scroll:Ep(e)}}function _1(e){let o=Hb(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function A1(e,o){let{attrs:t,style:r}=JJ(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(ZJ)}}function R1(e,o){let{attrs:t,style:r}=QJ(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 oQ=4;function Wb(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&oQ)&&(o=t);return o}var tQ="data-sf-part-host";function L1(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(tQ)&&!t.classList.contains(Pn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var Dp="data-sf-part-lift",P1="sf-part-lift";function F1(e){if(e.getElementById(P1))return;let o=e.createElement("style");o.id=P1,o.textContent=F0(`[${Dp}]`).join(`
|
|
62
|
-
`),e.head.appendChild(o)}var B1=new Map,sQ=e=>{let o=B1.get(e);return o||B1.set(e,o=$A(T1(e),`part:${e}`)),o},lQ=new Set(Mb);function ws(e,o,t){let{getItemById:r,getSelectorForId:a}=aQ(f=>f),n=nQ(),s=r(e)?.props??{},l=Ja(s,o),c=JSON.stringify(l),d=rQ(()=>Object.fromEntries(Mb.map(f=>[f,l[f]])),[c]);return{part:o,fields:sQ(t),values:d,keys:lQ,onChange:(f,u)=>{let p=a(e),x=r(e);if(!p||!x)return;let I=O1(x.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...x,props:I})}}}import{Fragment as iQ,createElement as cQ}from"react";import{deviceField as Gb}from"efficient-easel/screen/lib/document/device-fields";var go=()=>({type:"custom",render:()=>cQ(iQ)});var zb={words:go(),sourceNote:go(),style:go(),font:go(),italic:go(),fontSize:Gb("each",go()),lineHeight:go(),letterSpacing:go(),paragraphSpacing:go(),padding:go(),align:Gb("each",go()),letterCase:go(),fixedSizeHint:Gb("each",go()),regionNote:go(),regionStyle:go()},dQ=["fontSize","align"];function D1(e){return dQ.includes(e)}var N1={showTicker:go(),items:go()};var SQ="root:default-zone";function M1({heroId:e}){let{appState:o,dispatch:t}=hQ(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=mQ(()=>{let x=n?.props.tickerItems;return Array.isArray(x)?x:Q_.map(I=>({text:I}))},[n]),c=uQ(),d=yQ(),f=x=>bQ(N1[x],d),u=ws(e,eA,"block");if(!n)return Qa("p",{className:"sf-note",children:i("This ticker\u2019s hero is no longer on the page.")});let p=x=>t({type:"replace",destinationZone:SQ,destinationIndex:a,data:{...n,props:{...n.props,...x}}});return Qa(Bt,{motion:u,body:pQ(fQ,{children:[!f("showTicker")&&!f("items")&&Qa(qa,{}),f("showTicker")&&Qa(xQ,{label:i("Show ticker"),labelId:c,icon:Qa(gQ,{}),action:Qa(IQ,{checked:s,onChange:x=>p({showTicker:x}),ariaLabelledBy:c})}),f("items")&&Qa(LI,{label:RI.label,icon:RI.icon,items:l,placeholder:"item",onChange:x=>p({tickerItems:x}),markup:!0})]})})}import{jsx as J,Fragment as Ci,jsxs as ct}from"react/jsx-runtime";import{useContext as GQ,useEffect as Ub,useRef as zQ,useState as oR}from"react";import{FieldSelect as $Q,InspectorField as UQ,fieldShownInView as jQ}from"efficient-easel/fields";import{InertHint as dR,SettingsField as KQ}from"efficient-easel/panel";import{InspectorUpLevel as jp}from"efficient-easel/chrome";import{StylesIcon as VQ,TypeIcon as qQ}from"efficient-easel/icons";import{useEasel as YQ}from"efficient-easel/easel";import{TextPartPanel as tR}from"efficient-easel/copy";import{Button as XQ,IconButton as ZQ,Tooltip as JQ}from"efficient-shell/ui";import{jsx as H1,jsxs as wQ}from"react/jsx-runtime";import{COPY_CELLS as Np,CopyBox as CQ}from"efficient-easel/copy";import{PaddingYIcon as kQ}from"efficient-easel/icons";import{onDesktopWords as vQ}from"efficient-easel/screen/lib/document/box-fields";var TQ=["left","center","right","justify"];function Mp(e,o,t,r="desktop"){let a=Jl(e),n=gg(r),s=e[n]??e.size??o.sizePx,l=W0(e,r);return[{...Np.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:c=>t({[n]:c??null}),...n==="size"?{}:{reset:{detail:l?vQ(c=>i(c),`${l.px}px`,l.view):void 0}}},{...Np.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:c=>t(c===void 0?{lineHeight:null,line:null}:{lineHeight:c})},{...Np.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:c=>t(c===void 0?{letterSpacing:null,letter:null}:{letterSpacing:c})},{...Np.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:c=>t({paragraphSpacing:c??null})},{key:"padding",name:i("Padding"),icon:H1(kQ,{}),unit:"px",step:mg,shiftStep:10,min:pg,max:ug,value:e.padding,styleValue:o.paddingPx,onChange:c=>t({padding:c??null})}]}function W1({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=Mp(n,s,l),I=VI(r,t);return wQ("div",{className:"sf-part-textbox",children:[u,H1(CQ,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:ha,tools:I,barShows:p?"focus":"always",colors:r?c:[],colorNameOf:Zo,align:a?{value:n.align??s.align,allow:TQ,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 rR}from"efficient-easel/draw/client";import{jsx as Hp,Fragment as PQ,jsxs as EQ}from"react/jsx-runtime";import{Button as G1,Dialog as OQ}from"efficient-shell/ui";function z1({styleName:e,onCancel:o,onConfirm:t}){return Hp(OQ,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:EQ(PQ,{children:[Hp(G1,{variant:"secondary",onClick:o,children:i("Cancel")}),Hp(G1,{variant:"primary",onClick:t,children:i("Update style")})]}),children:Hp("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 QQ}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as eee}from"efficient-easel/draw/client";import{shownTier as $p}from"efficient-easel/screen/lib/document/device-fields";import{jsx as _Q}from"react/jsx-runtime";import{createContext as AQ,useContext as RQ,useMemo as LQ,useState as FQ}from"react";var BQ={partStyle:null,setPartStyle:()=>{}},$1=AQ(BQ);function hFe({children:e}){let[o,t]=FQ(null),r=LQ(()=>({partStyle:o,setPartStyle:t}),[o]);return _Q($1.Provider,{value:r,children:e})}function U1(){return RQ($1)}import{TEXT_FIELD_MARKER as oee}from"efficient-easel/draw";import{useSectionOps as tee}from"efficient-easel/screen/lib/document/use-section-ops";var gi="@name",j1="@body",K1="@value",V1={[gi]:"Name",[j1]:"Body",[K1]:"Value"},DQ={TimelineTrack:{"entries.date":gi,"entries.title":gi,"entries.blurb":j1},Footprint:{"offices.city":gi},Stats:{"items.label":gi,"items.value":K1}};function NQ(e){let{key:o,row:t}=Rt(e);return t?`${o}.${t.rowKey}`:null}function bi(e,o){if(!e)return o;let t=NQ(o);return t?DQ[e]?.[t]??o:o}import{useEaselHost as ree}from"efficient-easel/screen/lib/host";function MQ(e){let o=new Set([...Object.keys(Dd[e]??{}),...Nd[e]??[]]);for(let[t,r]of Object.entries(gx[e]??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var HQ={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},q1={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},Y1="Open",X1={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 Cs(e){let o=e?.source?.slug;return Z(o)}function yi(e){return HQ[e]??null}function Z1(e,o){let t=yi(e);return t&&MQ(e).includes(o)?t:null}function Wp(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)]"},WQ={tag:{label:"Tag",follows:"Labels",builtIn:Ln(Si.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Ln(Si.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Ln(Si.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Ln(Si.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Ln(Si.link),writable:!0}},J1=WQ;var Gp={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var EFe=Zc,Q1={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 $b={SpecTable:Q1,FAQ:bk,Collections:J1,Contents:Gp};function eR(){return jt("efficient.section-text-regions",()=>new Map)}function BFe(e){let o=eR();for(let[t,r]of Object.entries(e)){if(Object.hasOwn($b,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 zp(e){return e?Object.hasOwn($b,e)?$b[e]:eR().get(e)??null:null}function jb(e){return e?i(e):null}function aR(e){return e.kind==="role"?bm[e.role]:e.kind==="custom"?"Custom":null}function aee(e){let o=nr(e.role);return o?{kind:"role",role:o}:null}function nee(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 Up(e,o,t,r){return aee(Zl(e,o))??nee(t,r)}function see(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function nR(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?Sn(o.values.font)?.label:void 0}))]}var wi="";function lee({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:wi,a=[{label:i("No style"),value:wi},...rw.map(n=>({label:i(bm[n]),value:n}))];return J($Q,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===wi?null:n),renderOption:n=>n.value===wi?ct(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(${Sn(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:jb(aR(e))}),valueText:n=>jb(aR(e))??n?.label??""})}var fR=["regionNote","regionStyle"],iee=Object.keys(zb).filter(e=>!fR.includes(e));function pR(e,o){return!e.some(o)}function cee({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=ct(Ci,{children:[t,r,a]});return ct("div",{className:"sf-part-panel",children:[J(jp,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function Kp({source:e,slug:o,menuId:t}){let r=ree(),a=X1[e],n=!a.needsSlug||!!o;return J("div",{className:"sf-note sf-note--source",children:ct(dR,{children:[i(q1[e]),n?ct(Ci,{children:[" ",J(XQ,{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(Y1)})]}):null]})})}var sR=4,dee=120;function lR(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 iR({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 ct("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?ct(Ci,{children:[d,c("regionStyle")&&J("p",{className:"es-field-hint",children:lR(e)})]}):a?c("regionStyle")?J(Ci,{children:J(KQ,{label:i("Style"),icon:J(VQ,{}),hint:lR(e),children:J(lee,{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(Kp,{source:n,slug:s}):null,pR([...fR,"sourceNote",...d?["fontSize"]:[]],p=>c(p)&&(p!=="sourceNote"||!!n))&&J(qa,{}),J(jp,{inline:!0,name:i("Page"),onSelect:l})]})}function fee({onBack:e}){return ct("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(jp,{inline:!0,name:i("Page"),onSelect:e})]})}function pee({onBack:e,partId:o,why:t}){return ct("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:ct("code",{children:[o," \u2014 ",t]})}),J(jp,{inline:!0,name:i("Page"),onSelect:e})]})}function uR({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=YQ($=>$),l=tee(),c=YO(),{partStyle:d}=U1(),{fonts:f,textStyles:u}=xe(),p=GQ(QQ),x=!p?.capabilities?.hasSiteTheme,{persist:I}=Un({themeFromDocument:x,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),g=ap({themeFromDocument:x,persist:I}),[v,S]=oR(!1),C=eee(),b=$=>($p(C)!=="tablet"||D1($))&&jQ(zb[$],C),k=zQ(null),T=a(e),F=n(e),P=T?s.components[T.type]:void 0,{key:D,row:O}=Rt(o),R=P?.fields?.[D],N=O?ns(R,O):R,y=Af(e,o),A=T?.props??{},L=ts(N),H=gf(N),X=MI(N),q=T?yi(T.type):null,j=T?Z1(T.type,D):null,Ie=O?Kl(A[D],O):A[D],te=!!O&&!(Array.isArray(A[D])&&O.index<A[D].length);Ub(()=>{qO(document)||k.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[y]);let[Le,He]=oR(0);Ub(()=>He(0),[y]);let Oe=!!T&&!te&&(!F||!N);Ub(()=>{if(!Oe||Le>=sR)return;let $=setTimeout(()=>He(Ve=>Ve+1),dee);return()=>clearTimeout($)},[Oe,Le]);let ge=Oe&&Le<sR,_e=ws(e,bi(T?.type,o),"textPart");if(!T||te)return J(fee,{onBack:t});let We=zp(T.type),oo=We?ml(We,o):null;if(We&&oo){let $=d?.partId===y?d:null,Ve=We[oo],bt=Ve.writable===!0&&!!F,Pr=ia=>{F&&l.replaceComponent(F.zone,F.index,{...T,props:Sr(A,o,"role",ia)})};if(bt&&gk(Ve)){let ia=Zl(A,o),tw=ca=>{if(!F)return;let gm=A;for(let[$H,UH]of Object.entries(ca))gm=Sr(gm,o,$H,UH??null);l.replaceComponent(F.zone,F.index,{...T,props:gm})},WH=wr(g.saved,g.old),GH=fg(ia)??"",zH=Mp(ia,$?.base??cR,tw,$p(C)).filter(ca=>ca.key==="fontSize"&&b(ca.key));return J(Bt,{motion:_e,body:J(iR,{region:Ve,sizePx:$?.base.sizePx??null,face:Up(A,o,$,f),base:$?.base??null,source:q,slug:Cs(A),onBack:t,shows:b,ownLook:z0(ia),sizedStyle:J(tR,{style:b("style")?{value:GH,options:nR(WH),onChange:ca=>tw(ca?{textStyle:ca}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:zH})})})}return J(Bt,{motion:_e,body:J(iR,{region:Ve,sizePx:$?.base.sizePx??null,face:Up(A,o,$,f),base:$?.base??null,onFollowStyle:bt?Pr:void 0,source:q,slug:Cs(A),onBack:t,shows:b})})}if(!F||!N)return ge?J("div",{className:"sf-note","aria-busy":"true"}):J(pee,{onBack:t,partId:y,why:F?"no field":"no selector"});let Co=$=>{l.replaceComponent(F.zone,F.index,{...T,props:$})},he=$=>{if(Xr($).hidden!==Xr(Ie).hidden||!L){let Ve=O?DI(A,D,O,$):{...A,[D]:$};Ve&&Co(Ve);return}Ff({node:T,propKey:o,kind:L,zone:F.zone,index:F.index},Xr($).text,l.replaceComponent)},Ke=Ie,Te=d?.partId===y?d:null,Pe=Te?.styleOwner,Ze=Pe?a(Pe.owner):null,Ht=Pe&&Ze?n(Pe.owner):null,Do=!!(Pe&&Ze&&Ht),W=Do?Ze.props??{}:A,Fe=Do?$=>l.replaceComponent(Ht.zone,Ht.index,{...Ze,props:$}):Co,le=Do?Pe.kind:bi(T?.type,o),Be=Zl(W,le),Ae=[{partKey:le,face:Up(W,le,Te,f),sizeGroup:Te?.sizeGroup??null,base:Te?.base??cR,style:Be}],It=see(Ae,$=>$.sizeGroup),Wt=Wn(Te?.inks),Je=($,Ve)=>{let bt=W;for(let Pr of Ae)bt=Sr(bt,Pr.partKey,$,Ve);Fe(bt)},gt=$=>$?Je("textStyle",$):Gt({textStyle:null,role:null}),Gt=$=>{let Ve=W;for(let bt of Ae)for(let[Pr,ia]of Object.entries($))Ve=Sr(Ve,bt.partKey,Pr,ia??null);Fe(Ve)},bn=L==="text"||L==="textarea",{text:Ks,hidden:ar}=Xr(Ie),sa=N?.[oee]?.label??o,Vs=ar?i("Show {label} on the slide",{label:i(sa)}):i("Hide {label} on the slide",{label:i(sa)}),yn=ct("div",{className:"sf-field-head",children:[J(qQ,{}),J("span",{className:"sf-field-label sf-field-label--inline",children:i(sa)}),bn&&J(JQ,{content:Vs,children:J(ZQ,{"aria-pressed":ar,"aria-label":Vs,onClick:()=>he({text:Ks,hidden:!ar}),children:ar?J(rR,{name:"eye-off",size:14}):J(rR,{name:"eye",size:14})})})]}),bc=!H&&X,LH=!!L&&(tO(N)||H||ar||!X),ew=Up(W,le,Te,f),FH=ew.kind==="role"?ew.role:null,Im=fg(Be)??r_(FH),ow=wr(g.saved,g.old),BH=Object.entries(Be).filter(([$,Ve])=>$!=="role"&&$!=="textStyle"&&Ve!==void 0).length,DH=()=>{let $=W;for(let Ve of Ae){let{role:bt,textStyle:Pr}=Ve.style;$=N0($,Ve.partKey),bt&&($=Sr($,Ve.partKey,"role",bt)),Pr&&($=Sr($,Ve.partKey,"textStyle",Pr))}Fe($)},la=Im,NH=a_(Ae[0].style),MH=la?ow.find($=>$.id===la)?.name??la:"",HH=()=>{S(!1),la&&(g.write(n_({saved:g.saved,old:g.old,styleId:la,values:Og(Ae[0].style)}),!0),DH())};return ct(cee,{sectionName:P?.label??T.type,onBack:t,tabs:$=>J(Bt,{motion:_e,body:$}),textEditor:b("words")?J("div",{ref:k,className:"sf-part-text",children:LH?J(W1,{text:Ks,onTextChange:$=>he(bn?{text:$,hidden:ar}:$),multiline:Pf(L),markup:L!=="plainText",styled:!1,style:Ae[0].style,base:Ae[0].base,setValue:Gt,colors:Wt,placeholder:jb(TO(N))??void 0,ariaLabel:i(sa),head:yn,typedOnCanvas:c===y}):L?bn?yn:null:J(UQ,{field:N,name:o,value:Ke,onChange:he,id:`sf-part-${e}-${o}`})}):void 0,children:[j&&b("sourceNote")&&J(Kp,{source:j,slug:Cs(A),menuId:Wp(A)}),bc&&J(tR,{style:b("style")?{value:Im??"",options:nR(ow),onChange:$=>gt($||null),changed:BH>0,onEditStyles:r,onUpdateStyle:la&&NH?()=>S(!0):void 0}:void 0,font:b("font")?{value:Be.font??"",styleValue:Sn(Ae[0].base.fontKey)?.label,options:yt.map($=>({label:$.label,value:$.key})),onChange:$=>Je("font",$||null)}:void 0,italic:b("italic")?{value:Be.italic,styleValue:hee(u,Im),onChange:$=>Je("italic",$??null)}:void 0,cells:Mp(Ae[0].style,Ae[0].base,Gt,$p(C)).filter($=>b($.key)),align:b("align")?mee(Be,Ae[0].base.align,$p(C),Je):void 0,letterCase:b("letterCase")?{value:Be.case??"",styleValue:Ae[0].base.case,onChange:$=>Je("case",$||null)}:void 0}),v&&la&&J(z1,{styleName:MH,onCancel:()=>S(!1),onConfirm:HH}),bc&&It===null&&b("fixedSizeHint")&&J(dR,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),pR(iee,$=>b($)&&($==="words"||($==="sourceNote"?!!j:$==="fixedSizeHint"?bc&&It===null:bc)))&&J(qa,{})]})}var uee={desktop:"align",tablet:"alignTablet",mobile:"alignPhone"};function mee(e,o,t,r){let a=uee[t],n=H0(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function hee(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var cR={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Dt,jsxs as Qb,Fragment as Cee}from"react/jsx-runtime";import{useCallback as kee,useRef as vee,useState as Ti}from"react";import{InspectorIconButton as Tee}from"efficient-easel/chrome";import{useEasel as Pee}from"efficient-easel/easel";import{PopupMenu as Eee,PopupMenuItem as Oee,PopupMenuLabel as Qp}from"efficient-shell/ui";import{CopyToPageIcon as _ee}from"efficient-easel/icons";import{useEaselSession as Aee}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as Ree}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as Lee}from"efficient-easel/draw";import{currentEaselSession as xee}from"efficient-easel/screen/lib/session";var Iee={general:!0,commerce:!0,service:!0};function Kb(e){let o=e?.sets;return o?Object.fromEntries(kC.map(t=>[t,o.includes(t)])):Iee}function Vb(e=xee()){return Kb(e.blocks)}import{isBackendError as ks}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as CR}from"efficient-easel/screen/lib/session";var Vp=ld(),qb=Vp.set;function qp(e,o){qb(e,o)}function Yp(e,o){let t=Vp.get(e);qb(e,o??(t==="live"?"changed":t))}function Xp(e,o){qb(e,o??"live")}function mR(e){return Vp.get(e)}function hR(e){return Vp.use(e)}function xR(e,o){return e==="live"&&o?"changed":e}function Yb({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 IR(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var gR="SharedSection",gee=/^[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 bR(e){if(e?.type!==gR)return null;let o=e.props?.section;return typeof o=="string"&&gee.test(o)?o.toLowerCase():null}function yR(e){let o=[];for(let t of ki(e)){let r=bR(t),a=vi(t);r&&a&&o.push({refId:a,section:r})}return o}function Zp(e){let o=ki(e)[0];return o&&typeof o=="object"&&vi(o)?o:null}function bee(e,o){return{type:gR,props:{id:e,section:o}}}function SR(e,o){let t=new Map,r=new Set,a=!1,n=ki(e).map(s=>{let l=bR(s),c=vi(s);if(!l||!c||r.has(l))return s;let d=Zp(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 wR(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=Zp(d);return r.set(c.section,u===s?d:{...d,content:[s,...f]}),a=!0,c.reference??bee(c.refId,c.section)});return{page:a?{...e,content:n}:e,docs:r}}function Jb(e){return!!(e?.publish&&e.liveState)}function yee(e,o){if(!Jb(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 See(e,o){return async(t,r)=>{try{await eP()}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"?Wd({state:"live",changes:[]}):ur(0),{version:r??null}}}function Zb(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(qp(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=>(Yp(a,c.live),uv(a,c.videoFrames),ur(),c)),rereadVersion:e.version?a=>e.version(a):void 0,publish:Jb(t)?See(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Xp(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 wee(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=mR(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()},v=(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])),k=()=>`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:k()}),u.set(R.id,R.used_on),g({})},place:O=>{if([...d.values()].some(y=>y.section===O.id))return null;let R=Zp(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:k()}),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??""});Yp(N,H.live),A.layout=y,A.version=H.version,A.savedJson=L,v(N,null)}catch(H){ks(H,"changed-elsewhere")?v(N,"conflict"):ks(H,"lock-taken")?v(N,"lock",H.holder??void 0):v(N,"save")}}O.size&&ur(),g({})};return{resolve:async O=>{if(_b(O===Et?null:F),Nh(O===Et?null:P),c=new Map,d=new Map,f=new Map,u=new Map,O===Et)return t.resolve(O);let R=!1,[N,y]=await Promise.all([t.resolve(O),e.load({slug:Et,...o}).catch(()=>(R=!0,null))]);if(y&&!Ll(N?.layout)){qp(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=yR(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?(qp(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=SR(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(Dh(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?Dh(R,A.layout):{page:R,chrome:null},H=wR(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??""});Yp(A.id,j.live),ur(),A.layout=L.chrome,A.version=j.version,A.savedJson=q,l=!0,g({conflict:null,saveFailed:!1})}catch(j){ks(j,"changed-elsewhere")?g({conflict:j.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):ks(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);Xp(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);Xp(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){ks(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"&&v(L,null)}catch(H){ks(H,"lock-taken")&&v(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 Jp(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 YBe(e,o,t){return e.update(o,zk(t))}function XBe(e,o=$e(),t=Vb(),r={}){let a=CR(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=Jb(o.site)?o.site:void 0,u=Jp(o.pages),p=Zb(u,e,f),x=d?wee(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,...kR(p.resolve),lock:o.lock,...x,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:yee(f,n),updateSite:s&&l?I=>l(I,n):void 0,previewHref:o.preview?I=>o.preview.href(I):void 0}}function ZBe(e,o=$e(),t=Vb()){let r=CR(o),a=o.templates,n=a?Jp(a.pages(e)):{list:()=>Promise.reject(new Error(Xb)),load:()=>Promise.reject(new Error(Xb)),save:()=>Promise.reject(new Error(Xb))};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},...Zb(n,void 0),...kR(Zb(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function kR(e){return{resolve:o=>(_b(null),Nh(null),e(o))}}var Xb="This editor's backend has no website templates.";function Fee(e,o,t){let r=Ree(e,void 0,o);return t?.(r)??r}function vR({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Ti(!1),[c,d]=Ti(null),f=Aee(),u=Pee(P=>P.config.components),[p,x]=Ti(!1),[I,g]=Ti(null),v=vee(null),[S,C]=Ti(null),b=kee(async()=>{if(f.usesBridgedToken&&!r.current){x(!0);return}try{d(await $e(f).pages.list(t?{siteId:t}:void 0))}catch{x(!0)}},[r,t,f]),k=()=>{if(s){l(!1);return}let P=v.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=Fee(e,u,f.documentHooks?.storedNode),O=await a(()=>Bee($e(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 Qb(Cee,{children:[Dt("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Dt(Tee,{buttonRef:v,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:k,children:Dt(_ee,{size:15})})}),s&&S&&Dt(Eee,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>l(!1),children:Qb("div",{role:"menu","aria-label":i("Duplicate to page"),children:[Dt(Qp,{children:i("Duplicate to page")}),p?Dt(Qp,{children:i("Couldn\u2019t load pages")}):c===null?Dt(Qp,{children:i("Loading\u2026")}):T.length===0?Dt(Qp,{children:i("No other pages")}):T.map(P=>Qb(Oee,{role:"menuitem",disabled:I!==null,onClick:()=>{F(P)},children:[Dt("span",{className:"min-w-0 flex-1 truncate",children:P.label}),I===P.slug?Dt("span",{className:"shrink-0 text-xs",children:i("Copying\u2026")}):P.draft&&Dt("span",{className:"shrink-0 text-xs",children:i("draft")})]},P.id))]})})]})}async function Bee(e,o,t){let r=Jp(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===Lee);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 une}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as mne}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as pWe,isSelectionMode as pS}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as hne}from"efficient-easel/draw/client";import{jsx as Pi,jsxs as Dee}from"react/jsx-runtime";import{SettingsDrill as Nee}from"efficient-easel/panel";import{UiIcon as Mee}from"efficient-easel/draw/client";var Hee="Not shown on the page";function Wee({part:e,onOpen:o}){return Pi(Nee,{name:i(e.label),preview:e.offPage?i(Hee):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(Mee,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function ey(e){return e.filter(o=>!o.identifier)}function TR({parts:e,onOpen:o,heading:t=!0}){let r=ey(e);return r.length?Dee("div",{className:"sf-entries",children:[t?Pi("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>Pi(Wee,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as xne,ROOT_ZONE as MD}from"efficient-easel/draw";import{HEADER_TYPE as Vo,FOOTER_TYPE as Me,newNodeId as Gee}from"efficient-easel/draw";function eu(){return{type:Vo,props:{id:Gee(Vo)}}}var PR=[{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"}],zee=PR.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),$ee="FooterGroup",ER="blocks";function OR(e){return e===Me?PR:e===$ee?zee:null}function ou(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...vP}),e("FooterPayment",{...jd})]}function oy(e){switch(e?.type){case Ne:case Re:return i("On every page");case Vo:case Me:return i("On every page \xB7 old style");default:return null}}var _R=()=>null,AR=()=>i("Changed on every page");function tu(e,o){let t=Gw(e,o);if(t)return t;let r=ov(e,o);if(!r)return null;let a=r.group===Ne;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 $u,Fragment as Yae,jsxs as Xae}from"react/jsx-runtime";import{useState as Zae}from"react";import{createNode as Jae,newId as Qae}from"efficient-easel/data";import{useEasel as ene}from"efficient-easel/easel";import{Banner as one,Button as dS}from"efficient-shell/ui";import{useScreenDocument as tne}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as Uee}from"efficient-easel/data";import{hiddenKeyOf as jee}from"efficient-easel/screen/lib/content/view-hide";var ru="Flex",Kee={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Vee={FooterPayment:"PaymentLogosBlock"},qee=e=>{let{id:o,...t}=e;return t},RR=e=>typeof e=="string"?e:"",vs={sm:12,md:13,lg:15},LR={sm:{mark:16,words:vs.sm},md:{mark:20,words:vs.md}},Yee="md",FR=1.5,Xee={size:13,lineHeight:FR,width:280},Zee=14,Jee=40,Qee=e=>e==="center"||e==="right"?e:"left";function eoe(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 ooe(e,o,t){let r=t(e,qee(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:BR(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 BR(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))Uee(s)&&(a[n]=BR(s,o,t));return{...r,props:a}})}function DR(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=Kee[e.type]??Vee[e.type];if(n)return[ooe(n,r,o)];switch(e.type){case"FooterLogo":{let s=Qee(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,...eoe(r)}),c=RR(r.tagline).trim();return c?[l,o("Text",{text:c,tone:"dim",align:s,_partStyles:{text:{...Xee}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&r.size in vs?r.size:Yee;return[o("Text",{text:RR(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:vs[s],lineHeight:FR}}})]}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?{[jee("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(ru,{direction:r.direction==="horizontal"?"row":"column",gap:Aa("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...Xs,content:s.flatMap(l=>DR(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(ru,{direction:"row",wrap:!0,share:"equal",gap:Jee,content:f}),s=[],l=[];for(let f of a){let u=DR(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(ru,{direction:"column",gap:Zee,align:"stretch",...Xs,content:u}))}(l.length||!s.length)&&s.push(n(l));let c=o(ru,{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 Vae}from"efficient-easel/data";import{readHidable as roe}from"efficient-easel/draw";function au(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 FDe(e){return toe[Oi(e)]}var toe={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 er=K,or=se;function on(e){if(e.theme)return to(e.theme);let o=e.site?.themePresets;return o?to({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function aoe(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var MR=new Set(["id"]),en={},HR=[],noe=["ProductGrid","Events","ContactRouting","ReviewForm","AppointmentBooking","Reviews","CheckoutCTA"],_i=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ",...noe,"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 en&&en[o]!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);en[o]=t}}function Jr(e){return en[e]}function soe(e){return e in en&&HR.includes(e)}function WR(e,o=_i){return e in en&&(o.includes(e)||soe(e))}function jDe(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 ty=e=>roe(e),Xe=e=>ty(e).text.trim()!=="";function loe(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 ioe=e=>e==="heading"?Dr():e==="eyebrow"?kt():{};function coe(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 doe(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 NR(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 foe(e){let o=new Set([...MR,"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 ry=e=>Xc(e.headPlacement)==="own-box";function poe(e){return ry(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function uoe(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 moe(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 hoe(e,o,t){if(!t.press)for(let r of moe(e)){let a=uoe(o,r);if(a!==void 0)return a}}function Ts(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:poe(r))??hoe(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=foe(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 NR(T??[],y,P,(A,L,H)=>N(A,H?`nothing \u2014 the old value draws nothing (${D}: no ${L})`:`${R}${D}: ${L}`),t)},v=T=>so(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(er,{name:`${T.name} ${X+1}`,...O,...j.props??{},[or]: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"),au(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),He=Number.isInteger(Le)&&Le>=1?Le:1,Oe=[];if(H.perRow&&He<te.length)for(let ge=0;ge*He<te.length;ge++)Oe.push(te.slice(ge*He,(ge+1)*He).flat());return I(er,{name:`${H.name} ${q+1}`,...H.props??{},[or]:[...Ie,I(er,{name:`${H.itemsName} ${q+1}`,...H.itemsProps?.(j.length,r)??{},[or]:Oe.length?Oe.map((ge,_e)=>I(er,{name:`${H.rowName??`${H.itemsName} row`} ${_e+1}`,...H.rowProps??{},[or]: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(er,{name:`${T.rowName??`${T.name} row`} ${H+1}`,...A,[or]:[...X,...Array.from({length:q},(j,Ie)=>I(er,{name:`Empty ${Ie+1}`,...T.rowFiller,[or]:[]}))]}))}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=ty(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=ioe(y.role??"body"),{_partStyles:H,...X}=L,q=coe(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"?loe(A.text):y.mark==="accentItalic"?xa(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=ty(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??{},...doe(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(er,{name:y.name,...L,[or]: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):v([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=NR(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:er,props:{name:T.name,...R,[or]:D,id:aoe(n,F)}}},k=[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))MR.has(T)||d.has(T)||l.push({key:T,why:"not in the row \u2014 not carried"});return{node:k[0],nodes:k,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]],restyled:c}}function GR(e,o=HR,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?en[a.type]:void 0;if(!s)return;let l=Ts(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}var zR={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as Ioe}from"react/jsx-runtime";import{isNodeList as xoe}from"efficient-easel/data";var ay=new Set(["FAQ"]);function $R(e,o){if(!ay.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:xoe(t)}var nu={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}},UR=new Set(Object.keys(nu)),KR=new Set(["Flex","Text","Heading","ImageBlock"]),goe=new Set(["Divider"]),boe=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),jR=new Set(["ProductGrid"]);function ny(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=Xd(MP(a,Yd,t)),s=r(a),l=Qw(a);return n?Ioe(Ac,{className:l?`${n.className} ${l}`:n.className,style:n.style,children:s}):s}}var tNe={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!boe.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){UR.has(o)||jR.has(o)||(e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0})})},draw(e,o){if(UR.has(o)){let t=e.render,r=nu[o];e.render=a=>{let n=Zd(a,r);return t({...a,padTop:n.top,padBottom:n.bottom})};return}if(jR.has(o)){ny(e);return}KR.has(o)||goe.has(o)||ny(e,o==="Flex"?t=>ix(t.bgImage):ay.has(o)?t=>$R(o,t):void 0,!0)}},yoe=["Heading","Text","ImageBlock"],Soe=["LogoBlock"],rNe={name:"blockPadding",applies:(e,o,t)=>(yoe.includes(e)||Soe.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0})}},draw(e,o){KR.has(o)||ny(e,void 0,!0)}};import{parseHexColor as woe}from"efficient-shell/format";import{convertLength as Coe,isLengthUnit as koe}from"efficient-easel/screen/lib/content/length-units";var sy=e=>koe(e)?e:"px",Qr=(e,o,t,r)=>o===t?e:Coe(e,o,t,r,{min:0,max:200,step:4}),tn={textFit:"line",textFitPhone:"wrap"},rn={...G,[wt]:""},{label:vNe,href:TNe,...voe}=zR.defaultProps,fo=voe,an={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},Q={...jc,sectionAccent:0},Es={sectionAccent:-1},re=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",...ZP,"anchor",Qs,...Gn,...vc,...Pp,"widthFit","widthFitTablet","widthFitPhone","width","widthTablet","widthPhone","minWidth","minWidthTablet","minWidthPhone","maxWidth","maxWidthTablet","maxWidthPhone",...Object.values(io)],Ps="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:Ps,fullWidth:Ps,pageWidth:Ps,backgroundWidth:Ps,contentWidth:Ps,contentMax:Ps},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=sy(e.sectionPaddingUnit),l=sy(e.sectionPaddingUnitTablet),c=sy(e.sectionPaddingUnitPhone),d=(u,p,x,I)=>{let g=U(u);if(g!==void 0)return g+Qr(I,"px",c,"mobile");let v=p===void 0?{n:x,unit:s}:{n:p,unit:l};return Qr(v.n,v.unit,c,"mobile")+Qr(I,"px",c,"mobile")},f=(u,p,x,I,g)=>p!==void 0?{[u]:p+Qr(g??I,"px",l,"tablet")}:g===void 0?{}:{[u]:Qr(x,s,l,"tablet")+Qr(g,"px",l,"tablet")};return{sectionPaddingTop:t+Qr(o.top,"px",s,"desktop"),sectionPaddingBottom:r+Qr(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 Bo(e,o){let t=Zd(e,nu[o]);return{sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom}}var ea=e=>[["padTop","sectionPaddingTop",(o,t)=>Bo(t,e).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,t)=>Bo(t,e).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,t)=>Bo(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>Bo(t,e).sectionPaddingBottom]],Toe={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},PNe=e=>o=>Xe(o.props[e])?[Toe]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:G,...o?{style:o}:{}}),su=e=>({kind:"group",name:"Chip",props:{..._,...Br("main"),...Ye(6,14)},parts:[pe(e,{color:"background",...M("label",12),weight:600,letterSpacing:.16})]}),VR=e=>e.background!=="transparent",Poe=(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"},Eoe=(e,o,t)=>{let r=a=>Poe(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={})=>Eoe(e,o,{...rn,...Ai,...r,_partStyles:{text:{...Ao,color:"labels",...t,case:Ao.case,...Ai}}}),Os=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:on(o)?.selected??0,qR="var(--site-surface-2)",lu=(e,o)=>on(o)?.themes[Os(e.sectionAccent??0,o)],qo=(e,o)=>(t,r)=>{if(!o?.(t,r))return Br(e);let a=lu(t,r)?.[e];return a?{fillColor:a}:{}},iu=(e,o)=>oa(e,o)>=0,YR=e=>e.startsWith("#")&&woe(e)!==null,cu=(e,o,t)=>{let r=e?.trim();if(r&&YR(r))return{fillColor:r};let a=nx(r);if(a)return Br(a);let n=r===qR?lu(o,t):void 0;return n?{fillColor:wc(n)}:{}},du=e=>{let o=e?.trim();return!o||o==="transparent"||o===vo||nx(o)||o===qR||YR(o)?void 0:"it paints a colour that no Box Fill can hold"},oa=(e,o)=>{let t=on(o)?.themes;return t&&VR(e)?bw(t,Os(e.sectionAccent,o)):-1},ta=(e,o,t)=>{let r=oa(o,t);return r>=0?r:e},ly=(e,o)=>{let t=on(o)?.themes,r=t?yw(t,Os(e,o)):-1;return r>=0?r:e},nn=(e,o)=>{let t=oa(e,o);return t>=0?{sectionAccent:t}:{}},ra=(e,o)=>VR(e.props)&&oa(e.props,o)<0?[{kind:"band-preset",page:Os(e.props.sectionAccent,o)}]:[],_s=e=>nf(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}),iy=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({..._,...Li,...qo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],we.kind,we.duration,we.delay],parts:r});import{phoneKey as by,readHidable as yy}from"efficient-easel/draw";import{isNodeList as nte,newId as ste}from"efficient-easel/data";function XR(e){return Math.min(4,Math.max(2,e??3))}var ANe={eyebrow:"Label",title:"Section *heading.*"},Ooe={template:Ek()},ZR={label:"Cards",fields:Ooe,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var FNe={eyebrow:"Highlight",title:"Key *features.*"},BNe=()=>[{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")}],JR={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var _oe="plain",QR=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],Aoe="line",Roe={KeyFeatures:"filled"};function Bi(e){return Roe[e]??_oe}function eL(e,o){return No(QR,Bi(o),e)}function MNe(e){return No(QR,Aoe,e)}var cy="cardPlace";function GNe(e){return e[cy]==="top-line"?"top-line":""}var zNe="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",$Ne="data-sf-top-line",Loe=new Set(["Cards",Lo]);function UNe(e){return typeof e=="string"&&Loe.has(e)}var Foe=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 jNe(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:Foe(e)?{...e,top:0}:e}var KNe="outsideFramedCard";function YNe(e){return typeof e=="string"?e.trim():""}var XNe="data-sf-box-link",oL="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",ZNe="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",Boe="data-sf-box-jump";function Doe(e){return`sf-box-jump-${e}`}function JNe(e,o){return e===!0?bd(o):""}function Noe({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 QNe(e){let o=`[${Boe}="${e}"]`,t=`.${Doe(e)}`,r=`[id="${e}"]:target`;return Noe({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 Moe=["selected","highlighted"],tL="data-sf-card-state",aMe="pointer-events-none absolute inset-0 border border-accent",nMe="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",sMe="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",lMe="absolute inset-y-0 left-0 w-[3px] bg-accent",iMe="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",cMe="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",rL=e=>{let o=Rw.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},Hoe={[rL("muted")]:`var(${rL("fg")})`};function Woe(e){return e?.selected===!0}function Goe(e){return e?Moe.filter(o=>e[o]===!0).join(" "):""}function dMe(e,o="frame"){let t=Goe(e);return t?o==="frame"&&Woe(e)?{[tL]:t,className:"relative isolate",style:{...Hoe}}:{[tL]:t,className:"relative"}:{}}var zoe={highlighted:!0},$oe={},fu="badge";function fMe(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||xl(t,r)}))}function pMe(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===fu||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function uMe(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,[fu]:s===a?t:""})),states:e.map((n,s)=>s===a?zoe:$oe)}}function mMe(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function hMe(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 xMe="data-sf-card-press",aL=`${oL} appearance-none bg-transparent border-0 p-0 m-0`,IMe=`${aL} cursor-pointer`,gMe=aL;var pu={sectionBorder:{top:0,right:1,bottom:1,left:0},...Br("background")},Uoe={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},uu=e=>({direction:"row",columns:e,columnsTablet:e,...Uoe}),nL=(e={})=>ae(fu,{...G,tag:"p",[cy]:"top-line"},e,!0),sL=(e=Nr)=>{let o=fh(e);return{...o,props:{...pu,...o.props},slots:{[se]:[...o.slots?.[se]??[],nL()]}}},dy=(e=!1)=>{let o=ph(e);return{...o,props:{...pu,...o.props}}},joe={name:"name",time:"time",note:"note",price:"price"},Koe={textStyle:"body-1",...M("body",16),weight:500,lineHeight:1.5},Voe={...Ao,...M("label",12),letterSpacing:.18,lineHeight:1.5},qoe={textStyle:"body-1",...M("body",14),lineHeight:1.6},Yoe={textStyle:"body-1",fontRole:"heading",...M("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},Xoe={...M("label",11),letterSpacing:.25},Zoe={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},Joe=e=>({direction:"row",columns:e,...Zoe}),vMe=[...new Set([...Object.keys(uu(1)),...Object.keys(Joe(1))])],TMe=()=>{let e=joe,o={tag:"p",widthFit:"fill"};return{type:K,props:{..._,name:"Card",justify:"between",gap:16,gapPhone:16,...Ye(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...Br("surface"),shadow:!0},slots:{[se]:[nL(Xoe),{type:K,props:{..._,name:"Words",gap:8,gapPhone:8},slots:{[se]:[ae(e.name,{...G,...o},Koe),ae(e.time,{...Y,...o},Voe),ae(e.note,{...Y,...o},qoe)]}},ae(e.price,{...G,...o},Yoe)]}}};function Rs(e){if(e==="ProductGrid")return"shelf";let o=Ro[e]?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var hu={standard:64,editorial:60,simple:36,essay:28,shelf:20},Qoe={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function ete(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 xu(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=mu.get(r);if(a)return a;let n=dL({num:e,title:o,description:t,link:!1});return mu.set(r,n),n}var py={top:0,right:0,bottom:1,left:0},Yo=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),Iu=(e,o,t={})=>pe(e,{...M("label",o),...t}),gu=(e,o)=>({kind:"text",key:e,role:"heading",props:G,style:{textStyle:"heading-2",...o}}),uy=800,my=(e,o,t,r)=>({kind:"text",key:e,props:{...Y,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:uy}:{}},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...M("body",o),...r}}),cL={...fo,align:"right",alignPhone:"left",...an,icon:"arrow-right",iconPosition:"after"},fy=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:cL,style:{...Ct(e),color:"labels"}}),lL=(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"?ote(kt()):{},...t.style}}}}},ote=e=>e._partStyles.text??{},As={widthFitPhone:"fill"};function hy(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),...As}):{...o,...As}}}return{...e,parts:e.parts.map(hy)}}function tte(e,o){let t=Qoe[e],r=t==="accent",a=Iu(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=gu(o.title,r?{...Yo("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:py,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{..._,...As,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{..._,...As,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[lL(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{..._,...As},parts:[s,...l?[lL(o.title,`Three ranges,
|
|
75
|
-
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{..._,...As,gap:12,maxWidth:340,maxWidthPhone:uy},parts:[...o.description?[my(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[fy(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...cL,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:fy(14).style}}}]:[]]}]}}function dL(e){return{kind:"group",name:"Header",props:{..._,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:py,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:[{...Iu(e.num,13),props:{...G,...tn}}]},gu(e.title,{...Yo("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03})]},{kind:"group",name:"Words",props:{..._,sectionPaddingBottom:4,maxWidth:360,maxWidthPhone:uy},parts:e.description?[my(e.description,14,void 0,{lineHeight:1.5})]:[]}]}}function iL(e,o){return{kind:"group",name:"Header",props:{..._,gap:16,gapPhone:16},parts:[Iu(e.num,13),gu(e.title,o)]}}var fL=[["para",{...Ct(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}]],rte=e=>fL.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function ate(e){return{kind:"group",name:"Header",props:{..._,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:py,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{..._,direction:"row",align:"end",gap:24,share:"content"},parts:[Iu(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...fL.map(([o,t])=>({...gu(e.title,t),when:r=>rte(r)===o}))]},{kind:"group",name:"Words",props:{..._,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[my(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[fy(13)]:[]]}]}}function bu(e){return Rs(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 mu=new Map,xy={...M("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function dt(e){let o=mu.get(e);if(o)return o;let t=ete(e),r=Rs(e),a=r==="editorial"?dL(t):r==="simple"?iL(t,xy):r==="essay"?iL(t,{...M("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?ate(t):tte(e,t);return mu.set(e,a),a}var sn={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:vo,Stats:void 0};var Di=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),kL=e=>o=>XR(U(o.columns)??U(e.columns)),lte="inline is the head the row draws; an own-box node is skipped (`skip`)",ite={kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-3",...xy}},pL={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},Su=e=>{let o=Jt(typeof e.background=="string"?e.background:void 0,sn.Series);return o&&o!=="transparent"?o:void 0},yu=e=>Su(e)===vo,cte={..._,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},uL={..._,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[by("share")]:"content"},dte=e=>{let o=Su(e)?1:2;return{..._,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},Iy={...Ct(12),letterSpacing:.22,lineHeight:1.5},mL=e=>Xe(e.viewLabel)&&!yy(e.viewLabel).hidden,ft=e=>yy(e).text?.trim?.()??"",wu=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Z(o)!==void 0)),Sy=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),fte=Sy([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),pte=Sy([["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=>ad(r(l),t)},slots:(l,c)=>({[lo]:[a(l,c)]})}]}),vL=e=>Array.isArray(e.cards)?e.cards:[],hL={top:76,bottom:76,topPhone:76,bottomPhone:76},TL=e=>(Array.isArray(e.items)?e.items:[]).map(o=>wu({title:ft(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:xl(Sh(o),t),...o})),ute=e=>TL(e).some(o=>Z(o.href)!==void 0),PL=[{key:ll.label,label:"Feature label"},{key:ll.href,label:"Link",kind:"link"}],xL=e=>eL(e.eyebrowLook,"KeyFeatures")==="filled",mte={name:"Key Features",boxProps:(e,o)=>({...Q,direction:"column",gap:44,gapPhone:32,...qo("surface")(e,o),...Di(1,0,1,0),...ce(e,hL)}),box:[...re,...ye(hL)],parts:[{kind:"group",name:"Heading",props:{..._,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[by("share")]:"content"},parts:[{...su("eyebrow"),when:xL},{...pe("eyebrow"),when:e=>!xL(e)},ite]},Ni("Cards",e=>({..._,...uu(kL(JR.defaultProps)(e))}),PL,TL,e=>dy(ute(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"}},IL={top:72,bottom:72,topPhone:72,bottomPhone:72},gL=(e,o)=>({...pu,...qo("background")(e,o)}),bL=e=>{let o=kL(ZR.defaultProps)(e);return{..._,...uu(o)}},hte=Sy([["title","Card title"],["body","Card body",!0]]),EL=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:xl(Sh(o),t),title:ft(o?.title),body:ft(o?.body)})),OL=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(nte(a)?t[r]=a.map(OL):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},yL=(e,o)=>{let t=gy(e)?dy(xte(e)):sL(),r=Array.isArray(e.template)?e.template.map(OL):[t],[a]=r;return r.length===1&&a.type===K?{...a,props:{...gL(e,o),...a.props}}:{type:K,props:{..._,...gL(e,o),name:"Card"},slots:{[se]:r}}},gy=e=>e.cardStyle==="label-only",_L=e=>EL(e).map((o,t)=>{let r=e.items[t]?.href;return wu({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),xte=e=>_L(e).some(o=>Z(o.href)!==void 0),SL=e=>Array.isArray(e.template)&&e.template.length===0,wL=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function AL(){let e=t=>({key:ste("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 Ite={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...Q,direction:"column",gap:36,gapPhone:28,...qo("surface")(e,o),...ce(e,IL)}),box:[...re,...ye(IL)],parts:[{...dt("Cards"),when:e=>!ry(e)},{...Ni("Cards",bL,hte,EL,yL,{reads:["items"],keep:wL}),when:e=>!SL(e)&&!gy(e)},{...Ni("Cards",bL,PL,_L,yL,{reads:["items"],keep:wL}),when:e=>!SL(e)&&gy(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)"}},gte={name:"Recurring Columns",boxProps:(e,o)=>({...Q,direction:"column",gap:60,gapPhone:60,...Di(0,0,1,0),...yu(e)?nn(e,o):{},...cu(Su(e),e,o),...ce(e,pL)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>yu(o)?ta(e,o,t):e],...ye(pL)],skip:e=>du(Su(e)),site:(e,o)=>yu(e.props)?ra(e,o):[],parts:[dt("Series"),Ni("Cards",dte,fte,e=>vL(e).map(o=>wu({num:ft(o.num),since:ft(o.since),title:ft(o.title),body:ft(o.desc),count:ft(o.entries),countLabel:ft(o.entriesLabel)})),(e,o)=>({type:K,props:{...cte,...qo("background",(t,r)=>yu(t)&&iu(t,r))(e,o),name:"Card"},slots:{[se]:[{type:K,props:{..._,name:"Words",gap:16,gapPhone:16},slots:{[se]:[{type:K,props:{...uL,name:"Top"},slots:{[se]:[ae("num",G,M("label",13),!0),ae("since",G,M("label",13),!0)]}},ae("title",{...G,tag:"h3"},{textStyle:"heading-3",...M("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),ae("body",Y,{textStyle:"body-5",fontRole:"heading",...M("body",14),lineHeight:1.6})]}},{type:K,props:{...uL,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...Di(1,0,0,0),...mL(e)?{}:{[wh]:["count","countLabel"]}},slots:{[se]:[{type:K,props:{..._,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[by("share")]:"content"},slots:{[se]:[ae("count",G,Iy),ae("countLabel",Y,Iy)]}},...mL(e)?[{type:K,props:{..._,name:"View",maxWidthPhone:266},slots:{[se]:[{type:"Text",props:{...G,text:yy(e.viewLabel).text,_partStyles:{text:{...kt()._partStyles.text,...Iy}}}}]}}]:[]]}}]}}))],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:lte}},CL={top:60,bottom:60,topPhone:40,bottomPhone:40},bte={..._,direction:"row",columns:3,gap:40,gapPhone:16},yte={..._,gap:8,gapPhone:8,...Ye(24),...Di(1,1,1,1)},Ste={name:"Document Detail Cards",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:16,...Di(0,0,1,0),...ce(e,CL)}),box:[...re,...ye(CL)],parts:[Ni("Cards",bte,pte,e=>vL(e).map(o=>wu({label:ft(o.label),value:ft(o.value),body:ft(o.desc)})),(e,o)=>({type:K,props:{...yte,...qo("surface")(e,o),name:"Card"},slots:{[se]:[ae("label",G,{...M("label",12),lineHeight:1.5},!0),{type:K,props:{..._,name:"Words",gap:14,gapPhone:14},slots:{[se]:[ae("value",G,{textStyle:"heading-3",...M("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),ae("body",Y,{textStyle:"body-5",fontRole:"accent",...M("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...oe,...de}},RL={Cards:Ite,KeyFeatures:mte,Series:gte,DocMetaCards:Ste};import{phoneKey as vte}from"efficient-easel/draw";import{newId as Tte}from"efficient-easel/data";import{phoneKey as wte}from"efficient-easel/draw";import{isNode as Mi}from"efficient-easel/data";var Ls="cardStyle";function LL(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var Cu={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[wte("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}}}},pt={table:{...Cu.table,listCard:LL(Cu.table.card)},list:{...Cu.list,listCard:LL(Cu.list.card)}},s2e=[{label:"Table",value:"table"},{label:"List",value:"list"}],l2e=e=>e==="table"||e==="list",Cte=e=>[...new Set([...Object.keys(pt.table[e]),...Object.keys(pt.list[e])])];function Hi(e,o,t){let r={...e};for(let a of Cte(o))delete r[a];return{...r,...structuredClone(pt[t][o])}}function kte(e,o,t){let r=e.props??{},a=Array.isArray(r[lo])?r[lo]:[],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,[lo]:l}}}function i2e(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?kte(l,o,t):l);return{...Hi(e,"items",o),[Ls]: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),[Ls]:o,[r]:n}}var wy=e=>typeof e=="string"?e.trim():"";function FL(e){let o=`${wy(e.prefix)}${wy(e.value)}`,t=wy(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var NL={textStyle:"heading-2",...Yo("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},Cy={kind:"block",type:"Text",props:{...rn,_partStyles:{text:NL}},box:[["value","text",(e,o)=>FL(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&FL(o)!==""},BL=e=>Xe(e?.supSuffix),ML={textStyle:"body-1",fontRole:"heading",...M("body",16),lineHeight:1.5,letterSpacing:-.01},HL={color:"labels",...M("label",12),lineHeight:1.5,letterSpacing:.24},WL={..._,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[vte("share")]:"content"},GL={textStyle:"body-5",...M("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},ky=e=>Jt(e.background,sn.StatsParagraph),Wi=e=>ky(e)===vo,ku=e=>({...e,sectionAccent:e.sectionAccent??0}),Pte=(e,o)=>Wi(e)?qo("background",(t,r)=>iu(ku(t),r))(e,o):{},Ete={name:"Stats with Text",skip:e=>ky(e)&&ky(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},...Bo(e,"StatsParagraph"),...Wi(e)?nn(ku(e),o):{}}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Wi(o)?ta(e,ku(o),t):e],...ea("StatsParagraph")],site:(e,o)=>Wi(e.props)?ra({props:ku(e.props)},o):[],parts:[dt("StatsParagraph"),{kind:"group",name:"Stats",props:{..._,...pt.table.grid,[Ls]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{..._,direction:"row",share:"equal",phoneRow:2,...pt.table.row},props:(e,o)=>({..._,...pt.table.card,...Pte(e,o)}),parts:[{...Cy,when:(e,o)=>!BL(o)&&Cy.when(e,o)},{kind:"group",name:"Figure",props:WL,when:(e,o)=>BL(o),parts:[Cy,{kind:"text",key:"supSuffix",props:G,style:GL}]},{kind:"group",name:"Words",props:{..._,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:G,style:ML},pe("sub",HL)]}]}]}],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"}},Ote=new Set(["value","label",wt]),DL={top:48,bottom:48,topPhone:48,bottomPhone:48},_te=e=>{let o=Jt(typeof e.background=="string"?e.background:void 0,sn.Stats);return!!o&&o!=="transparent"},Ate={name:"Stats",skip:e=>_te(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Xe(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Xe(o?.[wt]))?"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=>!Ote.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,DL)}),box:[...re,...ye(DL)],parts:[pe("heading",{color:"labels",...M("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{..._,...pt.list.grid,[Ls]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>U(e.columns)??4,rowName:"Stats row",rowProps:{..._,direction:"row",share:"equal",phoneRow:2,...pt.list.row},props:{..._,...pt.list.card},parts:[{kind:"text",key:"value",props:rn,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"}},zL={StatsParagraph:Ete,Stats:Ate};function $L(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var Rte=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function UL(){let e=(o,t,r,a="")=>({key:Tte("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 Lte(e){return{type:K,props:{..._,name:"Card",...structuredClone(pt[e].listCard)},slots:{[se]:[{type:K,props:{...WL,name:"Figure"},slots:{[se]:[ae("figure",rn,NL),ae("superscript",G,GL)]}},{type:K,props:{..._,name:"Words",gap:4,gapPhone:4},slots:{[se]:[ae("label",{...G,widthFit:"fill"},ML),ae("body",{...G,widthFit:"fill"},HL,!0)]}}]}}}function vy(e,o,t=4){return{type:K,props:{..._,name:"Stats",direction:"row",columns:t,...structuredClone(pt[o].items),[Ls]:o},slots:{[se]:[{type:Lo,props:ad(e,Rte),slots:{[lo]:[Lte(o)]}}]}}}var jL={heading:"Trusted by *teams worldwide*"},KL=()=>[{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")}],Fte={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},T2e={label:"Logos",drawsPictures:!0,fields:Fte,defaultProps:{items:[],contained:!0}};var VL={heading:"Ways to pay"},qL=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],YL=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],O2e={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};var R2e={left:"justify-start",center:"justify-center",right:"justify-end"},Bte={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"}},Dte={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"}},Nte={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"}},Mte={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 vu(e){return e==="left"||e==="center"||e==="right"?e:void 0}function XL(e){return e==="start"?"left":e==="end"?"right":vu(e)}function Hte(e,o,t){let r=vu(e)??"left",a=St("same",r,vu(o),vu(t)),n={};return a.tablet&&a.tablet!==r&&(n.tablet=a.tablet),a.phone&&a.phone!==r&&(n.phone=a.phone),n}function L2e(e,o,t,r,{atSectionLine:a=!1}={}){let n=Hte(o,t,r),s=a?Nte:Bte,l=a?Mte:Dte;return[n.tablet?s[e][n.tablet]:"",n.phone?l[e][n.phone]:""].filter(Boolean).join(" ")}import{phoneKey as Py,readHidable as Wte}from"efficient-easel/draw";var Ey={contained:!1},Oy=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Xe(r?.src)||Xe(r?.[o])}]}]}),Ty=e=>{let o=U(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},Gte={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...G,align:"center"}},zte={name:"Logos",boxProps:e=>({...Q,direction:"column",gap:32,...ce(e,Ty(e))}),box:[...re,...ye(Ty),["bandPadding","sectionPaddingTop",(e,o)=>ce(o,Ty(o)).sectionPaddingTop]],parts:[Gte,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:Ey,slots:Oy("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"}},$te={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:Kc(4,"main",{sectionCorners:2})},ZL={top:24,bottom:24,topPhone:24,bottomPhone:24},Ute={name:"Payment Methods",boxProps:e=>({...Q,direction:"column",...ce(e,ZL)}),box:[...re,...ye(ZL)],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,sr],props:e=>Xe(e[_o])?{[_o]:e[_o],...e[sr]!==void 0?{[sr]:e[sr]}:{}}:{}},props:{...Ey,look:"cards",grayscale:!1},slots:e=>({...Oy("badges","label"),...Xe(e[_o])?{[lo]:[Yc()]}:{}})},{kind:"group",name:"Reassurance",props:{..._,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[Py("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Xe(o?.text)),props:{..._,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[Py("share")]:"content"},item:e=>Wte(e.text).hidden?{props:{_hidden:!0}}:{},parts:[$te,{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"},JL=e=>XL(e.align)??"left",QL=e=>e.size==="md"?"md":"sm",eF=12,oF={name:"Payment logos",boxProps:e=>({..._,direction:"row",wrap:!0,align:"center",justify:jte[JL(e)],gap:eF,gapPhone:eF,phoneRow:2,[Py("share")]:"content"}),parts:[{kind:"text",key:"lead",props:Y,styleFrom:e=>({size:vs[QL(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[_o,sr],props:e=>({logoHeight:LR[QL(e)].mark,align:JL(e),...Xe(e[_o])?{[_o]:e[_o],...e[sr]!==void 0?{[sr]:e[sr]}:{}}:{}})},props:{...Ey,look:"marks",grayscale:!1,sectionAccent:$t},slots:e=>({...Oy("methods","label"),...Xe(e[_o])?{[lo]:[Yc()]}:{}})}],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"}},tF={Logos:zte,PaymentBadges:Ute,FooterPayment:oF,PaymentLogosBlock:oF},rF=()=>({heading:jL.heading,items:KL()}),aF=()=>({heading:VL.heading,badges:qL(),assurances:YL()}),nF=()=>({...jd,methods:[]});import{mixHex as Vte}from"efficient-shell/format";var X2e="none",Z2e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function sF(e){return e==="above"||e==="below"?e:null}var J2e="sf-ticker-join";function Kte(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function Q2e(e){return`absolute inset-x-0 ${Kte(e)}`}var ln={direction:"row",share:"content",align:"center"},Gi={top:14,bottom:14,topPhone:12,bottomPhone:12},Tu={wrap:"nowrap",loop:"scroll",sectionAccent:Bw,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},lF={gap:120,gapPhone:64},Pu={...Ao,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},iF={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 cF=e=>e.size==="display",qte=(e,o)=>{let t=lu(e,o),r=e.tone!=="plain"&&t?.text&&t.background?Vte(t.text,t.background,.3):null;return r?{color:r}:{}},Yte=(e,o)=>e.tone!=="plain"&&Ut(e.sectionAccent)===null?qo("background")(e,o):{},dF=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:Y,style:e,styleFrom:qte}]}),Xte={name:"Scrolling Bar",boxProps:(e,o)=>({...Q,...ln,...Tu,...sw[Sm(e.separator)]===""?lF:{},...ce(e,Gi),...Yte(e,o)}),box:[["scrollDirection","scrollDirection",e=>kA(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=>Sm(e)],["join","join",e=>sF(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...re,["tone","sectionAccent",(e,o)=>Ut(o.sectionAccent)??$t],...ye(Gi)],parts:[dF(Pu,e=>!cF(e)),dF(iF,cF)],drop:{...oe,...de,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},fF=e=>e?.tone==="muted",pF=e=>Cc(on(e)),Zte={name:"Spec Strip",boxProps:(e,o)=>({...Q,...ln,...$i,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:pF(o)},...ce(e,zi)}),box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:pF(t)],...ye(zi)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:G,style:Ui,when:(e,o)=>!fF(o)},{kind:"text",key:"text",props:Y,style:Ui,when:(e,o)=>fF(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"}},uF={Ticker:Xte,SpecStrip:Zte};import{jsxs as cn,jsx as je}from"react/jsx-runtime";import{Fragment as By}from"react";import{Fragment as fre,jsx as Ly}from"react/jsx-runtime";import{Fragment as IF,jsx as Ki,jsxs as rre}from"react/jsx-runtime";import{createContext as Ry,useContext as Vi,useEffect as are,useId as nre,useMemo as sre,useRef as lre}from"react";import{armEntrance as ire}from"efficient-shell/format";import{jsx as Jte}from"react/jsx-runtime";import{useEffect as hF,useRef as mF,useState as Qte}from"react";import{armEntrance as ere,entranceAttrs as ore,playEntrance as tre}from"efficient-shell/format";function xF({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let c=mF(null),d=_c(),f=_r(),u=n?f:On,p=ji(c,!0,s),{attrs:x,style:I}=ore(e[p]),g=mF(_y.seed(e)),v=JSON.stringify(e);return hF(()=>{let S=c.current;if(S){if(o){let C=_y.next(g.current,e,p);g.current=C.seen,C.play&&tre(S);return}return ere(S)}},[v,p,o]),u.scope(Jte("div",{ref:c,className:Ar(`${Pn}${d.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...x,...Object.keys(I).length||a?{style:{...a,...I}}:{},children:d.inner(l)}))}var _y={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=_y.seed(o);return{play:r[t]!==e[t],seen:r}}};function ji(e,o=!0,t=!1){let[r,a]=Qte("desktop"),n=Oc()||t,{phone:s,tablet:l}=Sg(n);return hF(()=>{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}var Eu=Ry(null),bF=Ry(null),yF=Ry(null);function _He({needles:e,styles:o,motions:t=E1,type:r,atEdge:a=!1,children:n}){let s=nre(),l=Oc()||a,c=JSON.stringify([s,e,o,t,r]),d=sre(()=>{let u=Object.keys(t).filter(p=>_1(t[p]));return $0(e,o,s,p=>bi(r,p),p=>M0(r,p),p=>u.includes(p)?Hb(t[p]):null,u)},[c]);if(!d)return Ki(IF,{children:n});let f=U0(d,{inBox:l});return rre(IF,{children:[f&&Ki("style",{href:`${cre}${s}-${dre(f)}`,precedence:wF,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),Ki(Eu.Provider,{value:d,children:n})]})}var Ay=new WeakMap;function gF(e,o){let t=Wb(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Wb(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)?(F1(e.ownerDocument),e.setAttribute(Dp,"")):e.removeAttribute(Dp)}function SF(e){let o=lre(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=ji(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,c=JSON.stringify([s,l]);return are(()=>{let d=o.current,f=L1(d?.parentElement??null);if(!t&&!r&&!a||!d||!f)return;let u=s?()=>{let I=A1(f,s),g=ire(f);return()=>{g?.(),I()}}:null,p=Ay.get(f)??[];Ay.set(f,p);let x={element:d,arm:u,entering:s!==null&&s.kind!=="none",scroll:l?()=>R1(f,l):null,lift:a};return p.push(x),gF(f,p),()=>{let I=p.indexOf(x);I<0||(p.splice(I,1),x.undo?.(),x.undo=void 0,x.undoScroll?.(),x.undoScroll=void 0,gF(f,p),p.length||Ay.delete(f))}},[c,a]),o}var wF="sf-part-styles",cre=`${wF}-`;function dre(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 CF(e){let o=Vi(Eu),t=Vi(bF),r=j0(o,e);return r&&r.stamp!==t?r:null}function AHe(e){return yg(Vi(Eu),e)}function kF({stamp:e,children:o}){return Ki(bF.Provider,{value:e,children:o})}function RHe({children:e}){let o=Vi(Eu);return Ki(yF.Provider,{value:o,children:e})}function LHe(e){return yg(Vi(yF),e)}function qi({value:e,children:o}){let t=CF(e),r=SF(t);return t?Ly(kF,{stamp:t.stamp,children:Ly("span",{ref:r,[dg]:t.stamp,...t.textStyle?{[is]:t.textStyle}:{},children:o})}):Ly(fre,{children:o})}import{jsx as Fy,Fragment as pre}from"react/jsx-runtime";function vF({className:e=""}){return Fy("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Ou(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(Fy(vF,{},`r${a}`))}),Fy(pre,{children:t})}var WHe=vF;function Cr(e,o=!1,t){let r=yre(o),a=rl(e);if(a.length===1){let[s]=a,l=Ym(s),c=l?gre(l,s.children):s.children;return cn(qi,{value:e,children:[t,_u(c,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(je("span",{"data-sf-bullet":"",className:ure,children:_u(s.children,r)},l));return}if(s.number!=null){n.push(cn("span",{"data-sf-number":s.number,className:mre,children:[cn("span",{className:hre,children:[s.number,"."]}),_u(s.children,r)]},l));return}l>0&&!xre(a[l-1])&&n.push(je("br",{},`br${l}`)),n.push(je(By,{children:_u(s.children,r)},l))}),cn(qi,{value:e,children:[t,n]})}var ure="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",mre="relative block pl-[2em]",hre="absolute left-0 w-[1.6em] text-right tabular-nums";function xre(e){return e.bullet||e.number!=null}var Ire="text-accent underline underline-offset-[0.18em]";function gre(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function bre(e){return Hn(e)||void 0}function _u(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(je("span",{children:Ou(a.text)},n)),r=!0;return}r||t.push(je("span",{},`e${n}`)),t.push(EF(a,n,o)),r=!1}),r||t.push(je("span",{},"end")),t}function TF(e,o){return e.length===1&&e[0].kind==="text"?Ou(e[0].text):e.map((t,r)=>t.kind==="text"?je(By,{children:Ou(t.text)},r):EF(t,r,o))}function yre(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function YHe(e){return PF(e)}function PF(e,o){let t=e.split(`
|
|
76
|
-
`);return cn(qi,{value:e,children:[o,t.map((r,a)=>cn(By,{children:[a>0?je("br",{}):null,je("span",{children:r})]},a))]})}function EF(e,o,t){if(e.kind==="link")return je("a",{href:e.href,className:Ire,children:TF(e.children,t)},o);let r=TF(e.children,t),a=LC[e.kind];if(a)return je("span",{[FC]:a,children:r},o);switch(e.kind){case"underline":return je("u",{children:r},o);case"sup":return je("sup",{children:r},o);case"sub":return je("sub",{children:r},o);case"color":{let n=bre(e.color);return n?je("span",{style:{color:n},children:r},o):je("span",{children:r},o)}case"accent":case"highlight":return je("em",{className:t,children:r},o);case"bold":return je("strong",{className:"font-semibold",children:r},o);case"italic":return je("em",{className:"italic",children:r},o);case"strike":return je("s",{className:"line-through",children:r},o);default:return je("span",{children:r},o)}}function XHe(e,o=!0,t=!1){let r=e.split(`
|
|
77
|
-
`);return je(qi,{value:e,children:r.map((a,n)=>cn("span",{children:[t?PF(a):Cr(a,o),n<r.length-1?je("br",{}):null]},n))})}function OF(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var _F={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",sectionHeightModePhone:"auto"},Dy={name:"Year and title",direction:"column",gap:14,gapPhone:14};var kr={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 Au={eyebrow:yo.eyebrow,title:`Section heading
|
|
78
|
-
*Highlight line*`,intro:yo.body,imageCaption:yo.imageCaption,imageMeta:yo.imageMeta,cta:kr.text},AF=()=>[{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.")}],t5e={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var Ru={eyebrow:yo.eyebrow,title:yo.headingAccent,intro:yo.body,cta:kr.text},RF=()=>[{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}],l5e={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:Wl,padTop:120,padBottom:120}};var MF={buttonBorder:{width:0}},Bu=(e,o,t={})=>({textStyle:"body-5",...M("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),Fs=(e,o,t={})=>({...Bu(e,o),...Ao,...t}),Du=(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}),ut=(e,o,t={})=>({kind:"text",key:e,props:G,style:o,...t});function HF(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>HF(t,o))}:e}var LF=(e,o)=>o?.future===!0,Lu=e=>OF(typeof e?.body=="string"?e.body:""),Gy=e=>Jt(typeof e.background=="string"?e.background:void 0,sn.TimelineTrack),Ny=e=>Gy(e)===vo?e:{...e,background:"transparent"},Sre={name:"Milestone Timeline",skip:e=>du(Gy(e)),boxProps:(e,o)=>{let t=oa(Ny(e),o);return{...Q,direction:"column",gap:60,gapPhone:36,sectionBorder:{bottom:1},...Bo(e,"TimelineTrack"),...cu(Gy(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ta(e,Ny(o),t)],...ea("TimelineTrack")],parts:[hy(HF(xu("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:{..._,..._F},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:Dy.name,props:{..._,...Dy},parts:[ut("date",Bu(13,.22,{color:"accent"}),{when:(e,o)=>!LF(e,o)}),ut("date",Bu(13,.22,{color:"labels"}),{when:LF}),ut("title",{textStyle:"heading-3",...Du(M("headingSmall",20),-.02,1.1)},{role:"heading"})]},ut("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",...MF},style:Fs(13,.3)}]}]}],site:(e,o)=>ra({props:Ny(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"}},$y=e=>typeof e.layout=="string"?e.layout:"split",Fu=e=>$y(e)==="split",zy=e=>!Fu(e),WF=e=>$y(e)==="spine",wre=e=>zy(e)&&!WF(e),FF=(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",...Ye(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:[ut("imageCaption",Fs(11,.24,{color:"text"})),ut("imageMeta",Fs(11,.24,{color:"accent"}),{props:{...G,align:"right"}})]}]}),BF=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...fo,...e,...MF},style:Fs(13,.3)}),My=()=>[ut("title",{textStyle:"heading-3",...Du(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)=>xa(Lu(o)[0]??"")]],when:(e,o)=>Lu(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)=>xa(Lu(o).slice(1).join(`
|
|
79
|
-
|
|
80
|
-
`))]],when:(e,o)=>Lu(o).length>1}],Hy=()=>ut("date",Bu(13,.24,{color:"accent"})),Wy=(e,o,t={})=>ut(e,o,{...t,props:{...G,...t.props??{},align:"center"}}),DF=Yo("headingMedium",40,5,76),NF={sectionBorder:{bottom:1}},Cre={name:"Story Timeline",skip:e=>$y(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>Fu(e)?{...Q,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...NF,...Bo(e,"Timeline")}:{...Q,direction:"column",gap:48,gapPhone:48,align:"center",...NF,...Bo(e,"Timeline")},box:[...re,...ea("Timeline")],parts:[{kind:"group",name:"Heading",props:{..._,gap:24,gapPhone:24},when:Fu,parts:[ut("eyebrow",Fs(12,.3,{color:"accent"}),{role:"eyebrow"}),ut("title",{textStyle:"heading-2",...Du(DF,-.03,.94)},{role:"heading",mark:"accentItalic"}),ut("intro",Xi(M("body",14),1.6),{props:{...Y,maxWidth:360},mark:"accentItalic"}),FF(667,419,{},()=>!0),BF()]},{kind:"group",name:"Chapters",props:{..._,gap:48,gapPhone:48,line:!1},when:Fu,parts:[{kind:"list",key:"entries",name:"Chapter",props:{..._,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[Hy(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:My()}]}]},{kind:"group",name:"Heading",props:{..._,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:zy,parts:[Wy("eyebrow",Fs(12,.3,{color:"accent"}),{role:"eyebrow"}),Wy("title",{textStyle:"heading-2",...Du(DF,-.03,.94)},{role:"heading",mark:"accentItalic"}),Wy("intro",Xi(M("body",14),1.6),{props:{...Y,maxWidth:520},mark:"accentItalic"}),BF({align:"center"})]},FF(506,192,{maxWidth:900,widthFit:"fill"},zy),{kind:"group",name:"Chapters",props:{..._,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:WF,parts:[{kind:"list",key:"entries",name:"Chapter",props:{..._,gap:8,gapPhone:8},parts:[Hy(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:My()}]}]},{kind:"group",name:"Chapters",props:{..._,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:wre,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:[Hy(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:My()}]},{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)"}},GF=()=>({eyebrow:Au.eyebrow,title:Yi(Au.title),intro:Au.intro,ctaText:kr.text,ctaHref:kr.href,entries:AF()}),zF=()=>({eyebrow:Ru.eyebrow,title:Yi(Ru.title),intro:Ru.intro,ctaText:kr.text,ctaHref:kr.href,entries:RF()}),$F={TimelineTrack:Sre,Timeline:Cre};import{tabletKey as Ere}from"efficient-easel/draw";import{slugify as v5e}from"efficient-shell/format";import{rootIsDark as kre}from"efficient-shell/format";function w5e(e="auto"){return e==="light"?!0:e==="dark"?!1:!kre({whenUnset:!0})}function UF(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function Uy(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var vre=["tall","square","wide"],Tre="tall";function jF(e){return vre.includes(String(e??""))?String(e):Tre}var P5e={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"},E5e=[{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:""}],Pre=/^https?:\/\//i;function O5e(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:Uy(e.lat),lng:Uy(e.lng),mapsUrl:Pre.test(o)?o:""}}function jy(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var _5e="other",A5e={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 KF(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var mt=e=>typeof e=="string"?e:e==null?"":String(e),Vy=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],Bs=e=>mt(e.group),oB=e=>`loc-${e}`,tB=e=>mt(e.state).trim()||jy(mt(e.region)).state,rB=e=>mt(e.country).trim()||jy(mt(e.region)).country,VF=e=>[tB(e),rB(e)].filter(Boolean).join(" \xB7 "),Ore=e=>Vy(e).some(o=>mt(o.photo).trim()!==""),_re=e=>Vy(e).some(o=>UF(Number(o.lat),Number(o.lng))),Are=(e,o)=>Vy(e).filter(t=>Bs(t)===Bs(o)).length,Rre=(e,o)=>Are(e,o)===1?"wide":jF(e.imageShape),Ky={top:100,bottom:100,topPhone:60,bottomPhone:60},qF=48,Nt=(e,o={})=>({...Ct(e),...o}),qy={top:1,right:1,bottom:1,left:1},Yy={..._,direction:"row",share:"equal",gap:0},Lre=e=>o=>o>Oi(o)?{..._,gap:0}:{...Yy,...o>1?{phoneRow:e}:{}},Fre={kind:"group",name:"Gallery",props:{..._,gap:20,_hidden:!0},when:Ore,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",Nt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...Y,align:"right",alignPhone:"left"},style:Nt(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:qy,...Ye(12,12)},item:(e,o,t)=>({props:{...mt(e.photo).trim()?{bgImage:mt(e.photo),hover:"mono"}:{},link:`#${oB(o)}`,boxShape:Rre(t,e)}}),parts:[{kind:"text",key:"name",props:G,style:Nt(11,{letterSpacing:.22,color:"text"})}],groups:{of:Bs,name:"Group",props:{..._,gap:10},head:e=>({label:Bs(e[0]??{})}),parts:[pe("label",Nt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:Lre(2),perRow:Oi,rowName:"Row",rowProps:{...Yy,phoneRow:2}}}]}]},Bre={kind:"group",name:"Words",props:{..._,gap:12,gapPhone:12,...Ye(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:Nt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>VF(t)]),when:(e,o)=>VF(o??{})!==""}]},{kind:"group",name:"Time zone",props:{..._,sectionBorder:qy,...Ye(6,10)},parts:[{kind:"text",key:"timezone",props:{...Y,textFit:"line"},style:Nt(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,...an,variant:"ghost",arrow:!1,_partStyles:{label:Nt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>KF(mt(e))??"#"]],when:(e,o)=>mt(o?.phone).trim()!==""},{kind:"text",key:"hours",props:Y,style:Nt(12,{letterSpacing:.18,lineHeight:1.7})}]},Dre={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)=>tB(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>rB(t)])]},Nre={kind:"group",name:"Map",props:{..._,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[Dre]},Mre={kind:"list",key:"locations",name:"City",props:(e,o)=>({..._,gap:0,justify:"between",sectionBorder:qy,jumpHighlight:!0,sectionAccent:oa(e,o)>=0?Os(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:oB(o)}}),parts:[Bre,Nre],groups:{of:Bs,name:"Group",props:{..._,gap:20},head:e=>{let o=e[0]??{};return{key:Bs(o),groupName:mt(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)=>mt(o?.key).trim()!=="",parts:[pe("key",Nt(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:Nt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...Yy,columns:Oi(e),[Ere("columns")]:1})}},YF=Nt(10,{letterSpacing:.25}),Hre={kind:"block",type:er,props:{..._,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:_re,slot:or,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...Y,text:"Location coordinates \xA9",_partStyles:{text:YF}}},{kind:"block",type:"ButtonBlock",props:{...fo,...an,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...YF,color:"labels"}}}}]},XF=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),ZF=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],JF=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],QF=e=>e.map(o=>[o,o,(t,r)=>ce(r,Ky)[o]]),eB=["sectionAccent","sectionAccent",ta],Wre=["gridSpan",...Gn,...Object.values(io)],Gre={name:"City pictures",skip:e=>no(e)?`fed by the data source "${no(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",...XF(ce(e,Ky),ZF),sectionPaddingBottom:qF,sectionPaddingBottomPhone:qF,...nn(e,o)}),box:[...re.filter(e=>e!=="sectionAccent"&&e!=="anchor"),eB,["anchor","anchor",e=>Cl(e).trim()?e:"studios"],...QF(ZF)],parts:[xu("sectionNumber","heading","tagline"),Fre],also:[{name:"City maps",boxProps:(e,o)=>({...Q,direction:"column",gap:40,sectionBorder:{bottom:1},sectionPaddingTop:0,sectionPaddingTopPhone:0,...XF(ce(e,Ky),JF),...nn(e,o)}),box:[...Wre,eB,...QF(JF)],parts:[Mre,Hre]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:ra,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)"}},aB={ContactLocations:Gre};var nB="sideSpace",dn="site",q5e=[{value:"box",label:"Box"},{value:dn,label:"Site"}],Y5e="box",X5e="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 Z5e(e){return e===dn?dn:"box"}function J5e(e){return e===dn?dn:void 0}var zre=["Collections","FAQ","Footprint","GalleryB","LongRead","ProcessSteps","RelatedProducts"];var aa=(e,o)=>()=>({top:e,topPhone:o}),sB=e=>o=>{let t=Bo(o,e).sectionPaddingTop;return{top:t,topPhone:t}},$re={Collections:aa(120,70),Events:aa(120,70),FAQ:aa(120,70),GalleryB:aa(120,70),FitmentTable:aa(120,80),SpecTable:aa(120,80),LongRead:aa(120,80),RelatedProducts:aa(0,0),Footprint:sB("Footprint"),ProcessSteps:sB("ProcessSteps"),ProductGrid:e=>({top:U(e.padTop)??120,topPhone:0})};function Ure(e,o={}){let t=Ro[e],r=$re[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=dt(e),s=bu(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:Nc[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:hu[Rs(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 jre={..._,direction:"accordion",rowStyle:"numbered"},Kre={Footprint:{slots:{[lo]:[kk()]},pressHeading:!0},FAQ:{slots:{[lo]:[xh()]},pressHeading:!0,coreBox:{name:"Questions",props:jre},coreProps:{sectionAccent:$t},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[nB]:dn},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}}},lB=Object.fromEntries(zre.map(e=>[e,Ure(e,Kre[e])]));import{BLOCK_WIDTH_LIMIT as Vre}from"efficient-easel/draw";var Nu={eyebrow:yo.eyebrow,title:yo.headingAccent,deck:"Add a sentence or two introducing this document."},u4e={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var xB={minWidth:Vre.min},iB=(e,o,t)=>({...pe(e,{...o,...Ai}),props:{...G,align:"right",...tn,...t}}),IB={top:1,bottom:0},Zy=(e,o,t,r)=>({kind:"group",name:e,props:{..._,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),cB={widthFit:"fill",...xB},dB={top:100,bottom:60,topPhone:60,bottomPhone:40},qre={...M("label",13),letterSpacing:.22,lineHeight:1.8},fB={textStyle:"heading-1",...Yo("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},pB=e=>e.titleLevel===2,Yre=()=>({name:"Page Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ce(e,dB)}),box:[...re,...ye(dB)],parts:[{kind:"group",name:"Header",props:{..._,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Zy("Eyebrow",12,0,{...pe("eyebrow",M("label",13)),props:{...G,...tn}}),{kind:"text",key:"title",role:"heading",props:{...G,tag:"h1",...cB},style:fB,mark:"accentItalic",when:e=>!pB(e)},{kind:"text",key:"title",role:"heading",props:{...G,tag:"h2",...cB},style:fB,mark:"accentItalic",when:pB},{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",qre,tn)]}]}]},{kind:"group",name:"Deck",props:{..._,maxWidth:760,sectionBorder:IB,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"}}),gB=()=>({eyebrow:Nu.eyebrow,title:Yi(Nu.title),deck:Nu.deck,meta:[{label:yo.label,value:yo.value},{label:yo.label,value:yo.value}]}),uB={top:80,bottom:40,topPhone:60,bottomPhone:32},Xre={...M("label",13),letterSpacing:.18,lineHeight:1.8},mB={...M("label",13),letterSpacing:.22,lineHeight:1.9},Zre=()=>({name:"Issue Header",boxProps:e=>({...Q,direction:"column",gap:0,sectionBorder:{bottom:1},...ce(e,uB)}),box:[...re,...ye(uB)],parts:[{kind:"group",name:"Top",props:{..._,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Zy("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",Xre)]}]}]},{kind:"group",name:"Bottom",props:{..._,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:IB,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...G,maxWidth:720,...xB},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:[Zy("Heading",6,6,{kind:"text",key:"issueHeading",props:{...G,align:"right",...tn},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:[iB("text",{color:"labels",...mB})]}]},iB("issueTotal",mB)]}]}],drop:{...oe,...de}}),hB={top:24,bottom:24,topPhone:16,bottomPhone:16},Xy={color:"labels",...M("label",13),letterSpacing:.2},bB=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),Jy=(e,o)=>o!==void 0&&bB(e).at(-1)===o,yB=(e,o)=>o!==void 0&&bB(e).includes(o),Jre=(e,o)=>yB(e,o)&&!Jy(e,o)&&Xe(o?.href),Qre=()=>({name:"Breadcrumb",skip:e=>Xe(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...Q,...ln,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ce(e,hB)}),box:[...re,...ye(hB)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:Jre,props:{...fo,...an,icon:"none"},style:Xy},{...pe("label",Xy),when:(e,o)=>yB(e,o)&&!Jy(e,o)&&!Xe(o?.href)},{...pe("label",{...Xy,color:"text"}),when:Jy}]}],drop:{...oe,...de,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),SB={DocMasthead:Yre(),Masthead:Zre(),Breadcrumb:Qre()};import{jsx as fn,jsxs as eS}from"react/jsx-runtime";import{slugify as eae}from"efficient-shell/format";import{jsx as Qy,jsxs as wB}from"react/jsx-runtime";var C4e="sticky top-[120px]";var CB=(e,o)=>e?{[Zc]:o}:{},kB=(e,o)=>Jc(e?.[ul(o)]?.role,Gp[o],wn),vB=120;function TB({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=zI,takesViewHide:l=!1}){let c=s==="plain",d=_r(),f=l?d:On;return f.scope(wB("aside",{className:Ar(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&Qy("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Cr(e)}),o.map((u,p)=>{let x=Qy("span",{...CB(a,"number"),style:kB(n,"number"),className:"text-accent",children:Bf(s,p)});return wB("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,Qy("span",{...CB(a,"entry"),style:kB(n,"entry"),children:Cr(u.label||"Section")}),!c&&x]},`${p}-${u.anchor}`)})]}))}function oae(e,o){return eae(e)||`section-${o+1}`}var oS=e=>typeof e=="string"&&e.trim()!=="";function tS(e){return(e??[]).filter(o=>oS(o.heading)||oS(o.label)||oS(o.body))}function rS(e){let o=new Set;return e.map((t,r)=>{let a=oae(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function aS(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 tae=()=>[{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.")}],rae=vB;function z4e({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=rae}){let a=tS(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?tae():a,s=rS(n);return fn(Ac,{as:"section",className:"relative z-[2] bg-bg",children:eS("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:[fn(TB,{title:e,entries:n.map((l,c)=>({label:l.label||"Section",anchor:s[c]})),stickyTop:r}),fn("div",{className:"flex flex-col gap-16",children:n.map((l,c)=>eS("article",{id:s[c],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[eS("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[GI(c)," \xB7 ",Cr(l.label||"Section")]}),l.heading&&fn("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:Cr(l.heading)}),aS(l.body??"").map((d,f)=>d.type==="ul"?fn("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:d.items.map((u,p)=>fn("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:Cr(u)},p))},f):fn("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Cr(d.text)},f))]},s[c]))})]})})}import{VIEW_DESKTOP_MIN as nS,VIEW_TABLET_MIN as j4e}from"efficient-easel/draw";var Mu=Er,PB=960,EB=Er;var OB={min:Mu,max:1600,step:10},_B="stackBelow";function V4e(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<OB.min||e>OB.max))return Math.round(e)}var aae=e=>`sf-stack-${e}`,nae=e=>`sf-stack-${e}-gutter`,sae=e=>`sf-stack-${e}-outer`,Ds=e=>`${e-.02}px`;function q4e(e,o={}){let t=o.gutter!==!1,r=`.${aae(e)}`,a=`.${nae(e)}`,n=`.${sae(e)}`,s=[];if(e>Mu){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,c=Math.min(e,nS);s.push(`@media (min-width:${Mu}px) and (max-width:${Ds(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:${Mu}px) and (max-width:${Ds(c)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>nS&&s.push(`@media (min-width:${nS}px) and (max-width:${Ds(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${Ds(e)}){${a}${a}{padding-inline:min(24px,var(--sf-site-gutter,40px))}}`),t&&e<PB&&s.push(`@media (min-width:${e}px) and (max-width:${Ds(PB)}){${a}${a}{padding-inline:var(--sf-site-gutter,40px)}}`),e>EB&&s.push(`@media (min-width:${EB}px) and (max-width:${Ds(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 AB={top:80,bottom:80,topPhone:60,bottomPhone:60},RB=18,LB=18,FB=8,lae=10,sS=e=>typeof e=="string"&&e.trim()!=="",BB=e=>tS(e.sections),iae=e=>aS(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}),lS={...Ct(12),letterSpacing:.3,color:"accent",lineHeight:1.5},DB={textStyle:"body-1",fontRole:"accent",...M("body",17)},cae=[pe("label",lS),{...pe("title",lS),when:(e,o)=>!sS(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!sS(o?.label)&&!sS(o?.title),props:{...G,text:"Section",_partStyles:{text:lS}}},{kind:"group",name:"Heading",props:{..._,sectionPaddingBottom:FB,sectionPaddingBottomPhone:FB},parts:[{kind:"group",name:"Heading line",props:{..._,sectionBorder:{bottom:1},sectionPaddingBottom:LB,sectionPaddingBottomPhone:LB},parts:[{kind:"text",key:"heading",role:"heading",props:G,style:{textStyle:"heading-2",...Yo("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:iae,parts:[{kind:"text",key:"text",props:Y,style:{...DB,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:Y,style:{...DB,lineHeight:1.65,paragraphSpacing:lae},when:(e,o)=>o?.kind==="ul"}]}],dae=900,fae={name:"Document Text",boxProps:e=>({...Q,direction:"row",gap:80,gapPhone:40,[_B]:dae,sectionBorder:{bottom:1},...ce(e,AB)}),box:["anchor","sectionAccent",...Gn,...Object.values(io),...ye(AB)],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=>BB(e),props:{..._,gap:RB,gapPhone:RB},item:(e,o,t)=>({props:{anchor:rS(BB(t))[o]??`section-${o+1}`}}),parts:cae}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...oe,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},NB={DocBody:fae};import{phoneKey as mae}from"efficient-easel/draw";var n6e="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",pae="overlay",uae=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function MB(e){return No(uae,pae,e)}var s6e={desktop:40,mobile:45,min:20,max:80,step:5};function l6e(e,o){return`${typeof e=="number"?e:o}%`}var HB=(e,o)=>{let t=U(e),r=U(o);return{...t===void 0?{}:{size:t},...r===void 0?{}:{sizePhone:r}}},hae=e=>MB(e.layout)==="stacked",WB=e=>Math.min(Math.max(U(e.overlay)??60,0),100),Hu=e=>U(e)??100,xae={textStyle:"heading-1",sizeToken:{...Yo("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},Iae=[pe("eyebrow",M("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:G,style:{...xae,case:e?"upper":"none"},styleFrom:o=>HB(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=>HB(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}]}],GB=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)`,gae=()=>({name:"Scroll-Over Text",skip:e=>hae(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:WB(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Hu(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Hu(e.heightMobile)}),box:[...re.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>WB(o)],["heightDesktop","sectionHeightValue",e=>Hu(e)],["heightMobile","sectionHeightValuePhone",e=>Hu(e)]],parts:Iae,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:GB("Button color"),buttonTextColor:GB("Button text color"),...oe}}),UB={textStyle:"heading-2",...M("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},bae={textStyle:"body-1",...M("body",16),lineHeight:1.7},jB=e=>({kind:"text",key:"body",props:{...Y,maxWidth:520},style:{...bae,paragraphSpacing:e}}),Gu={top:0,bottom:0,topPhone:0,bottomPhone:0},iS=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},yae=(e,o)=>{let t=iS(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"}},KB={boxShapePhone:"landscape"},VB="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)",Sae=(e,o)=>({[e]:o,[mae(e)]:o}),wae={textStyle:"heading-2",...M("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},zB=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),Cae=()=>({name:"Brand Text",boxProps:(e,o)=>({...Q,...qo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ce(e,Gu),...iS(e,100)}),box:[...re,...ye(Gu)],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:_s(o)}),parts:[pe("eyebrow",M("label",14)),{kind:"text",key:"heading",role:"heading",props:G,style:{...UB,case:"none"},mark:"accentItalic"},jB(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(zB(e).length,1),3),...Sae("sectionBorder",Fi({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:zB,props:{..._,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:rn,style:wae},pe("label",{...M("label",13),color:"labels",letterSpacing:.2})]}]}]}]},iy("Picture","imageSrc",KB)],drop:{...oe,grayscale:VB,...de}}),Wu=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}},kae=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",vae=e=>Math.min(Math.max(U(e.overlay)??60,0),100),qB=e=>typeof e=="string"&&e.trim()!=="",Tae={...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},$B=e=>({...iy("Picture","imageSrc",(o,t)=>({...qB(o.imageSrc)?{darken:40,darkenStyle:"even"}:{},placement:"center",...KB,sectionBorder:Fi(e?{left:1}:{right:1}),...YB(e?"left":"right",_s(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:Tae,style:{...Ct(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),YB=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},Pae={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{..._,justify:"center",align:kae(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...yae(e,72),gap:24,gapPhone:24,...qB(e.textBgSrc)?{darken:vae(e),darkenStyle:"even"}:{},...Li,sectionPaddingTop:100,sectionPaddingBottom:100,...YB(t?"right":"left",_s(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",M("label",14)),styleFrom:Wu},{kind:"text",key:"title",role:"heading",props:G,style:UB,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",...Wu(e)})},{...jB(24),styleFrom:Wu},{kind:"group",name:"Button",props:{..._,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=Wu(e);return{...fo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},Eae=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...Q,...qo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ce(e,Gu),...iS(e,72)}),box:[...re,...ye(Gu)],parts:[$B(!1),Pae,$B(!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:VB,...oe,...de}}),XB={IntroBleed:gae(),Manifesto:Cae(),Split:Eae()};var QB={headPlacement:void 0},ZB={top:0,bottom:0,topPhone:0,bottomPhone:0},Oae=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...Q,direction:"column",...ce(e,ZB)}),box:[...re,...ye(ZB)],parts:[{kind:"core",keep:"rest",props:QB}],drop:{...oe,...de}}),JB={top:120,bottom:120,topPhone:60,bottomPhone:60},_ae=()=>({name:"Photo Submission Form",boxProps:e=>({...Q,direction:"column",gap:24,...ce(e,JB)}),box:[...re,...ye(JB)],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:QB}],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'}}),eD={Form:Oae(),SubmitBuild:_ae()};import{phoneKey as oD}from"efficient-easel/draw";var rD=1.5,tD={textStyle:"body-1",...M("body",15),lineHeight:rD},Aae={...Ao,...M("label",12),letterSpacing:.12,lineHeight:rD},aD=()=>({type:K,props:{..._,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[oD("share")]:"content",[oD("wrap")]:"nowrap",...Ye(12,0),sectionBorder:{top:1},name:"Item"},slots:{[se]:[{type:K,props:{..._,gap:0,gapPhone:0,name:"Item words"},slots:{[se]:[ae("label",{...G,tag:"p"},tD),ae("meta",{...Y,tag:"p"},Aae)]}},ae("amount",{...G,tag:"p"},tD)]}});var Rae=()=>({name:"Order Table",boxProps:()=>({...Q,direction:"column"}),box:[...re],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[lo]:[aD()]}}],drop:{...oe}}),nD={OrderSummary:Rae()};import{phoneKey as Lae}from"efficient-easel/draw";var P6e={eyebrow:"By the numbers",title:`A picture worth
|
|
90
|
-
*a thousand rows.*`},sD=["eyebrow","title","body","caption"],E6e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var lD=["eyebrow","title","body"],_6e={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 dD={top:76,bottom:76,topPhone:76,bottomPhone:76},fD=()=>({kind:"group",name:"Words",props:{..._,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{..._,direction:"row",phoneRow:2,[Lae("share")]:"content"},parts:[su("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}}]}),pD=e=>(o,t)=>({...Q,sectionAccent:ly(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ce(o,dD)}),uD=[...re.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>ly(e,t)],...ye(dD)],Fae=()=>({name:"Chart",boxProps:pD([42]),box:uD,parts:[fD(),{kind:"group",name:"Chart",props:{..._,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Es},pe("caption",{color:"muted",...M("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...sD],drop:{...oe,...de}}),iD=e=>e.align==="left",cD={kind:"group",name:"Card",keepEmpty:!0,props:_,parts:[{kind:"core",keep:"rest",props:Es}]},Bae=()=>({name:"Mockup Card",boxProps:pD("equal"),box:uD,parts:[{...cD,when:iD},fD(),{...cD,when:e=>!iD(e)}],pressKeepsEmpty:[...lD],drop:{...oe,...de}}),mD={Chart:Fae(),Mockup:Bae()};var Dae={title:"Back online in",zeroText:"Almost done. Back very soon."},hD=["title"],M6e={label:"Countdown",defaultProps:{...Dae,endsAt:"",showUnits:!0}};var xD={top:48,bottom:48,topPhone:48,bottomPhone:48},Nae={...pe("title",{...sl(12),color:"muted"}),props:{...G,align:"center"}},Mae=()=>({name:"Countdown",boxProps:e=>({...Q,direction:"column",align:"center",gap:16,gapPhone:16,...ce(e,xD)}),box:[...re,...ye(xD)],parts:[Nae,{kind:"core",keep:"rest",props:Es}],pressKeepsEmpty:[...hD],drop:{...oe,...de}}),ID={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},Hae=()=>({name:"Feature Banner",boxProps:e=>({...Q,direction:"column",sectionBorder:{bottom:1},...ce(e,ID)}),box:[...re,...ye(ID)],parts:[{kind:"core",keep:"rest",props:Es}],drop:{...oe,...de}}),gD={Countdown:Mae(),FeaturedCover:Hae()};var bD={top:80,bottom:80,topPhone:60,bottomPhone:60},Wae=()=>{let e=bu("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...Q,direction:"column",gap:hu[Rs("FitmentFinder")],...ce(o,bD)}),box:[...re,...ye(bD)],parts:[dt("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'}}},yD={FitmentFinder:Wae()};var SD={top:72,bottom:72,topPhone:72,bottomPhone:72},Gae={name:"Editorial Text",boxProps:e=>({...Q,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ce(e,SD)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ye(SD)],parts:[dt("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)"}},wD={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},CD=(e,o)=>o?.variant==="primary",kD=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:CD,variant:"primary",style:{letterSpacing:.3},props:{...fo,...wD,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!CD(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...fo,...wD,...o}}]}),zu=e=>Xe(e.title),zae={name:"Call-to-Action Heading",boxProps:e=>({...Q,direction:"row",align:"center",justify:zu(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...Bo(e,"TitleWithButtons")}),box:[...re,...ea("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{..._,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:G,style:{textStyle:"heading-1",...Yo("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035}}]},{kind:"group",name:"Buttons",props:e=>({..._,gap:14,gapPhone:14,widthFitPhone:"fill",...zu(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[kD(zu,{widthFit:"fill",iconPosition:"end"}),kD(e=>!zu(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 $ae(e){let{siteGutter:o,siteGutterPhone:t}=e.site??{},r=_s(e),a=Math.min(20,sf(t)??lf(o));return{sectionPaddingLeft:r,sectionPaddingRight:r,sectionPaddingLeftPhone:a,sectionPaddingRightPhone:a}}var vD={top:40,bottom:64,topPhone:24,bottomPhone:36},Uae={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...ce(e,vD),...$ae(o)}),box:[...re,...ye(vD)],parts:[dt("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"}},TD={..._,direction:"row",share:[67],gap:30},PD={..._,sectionPaddingLeft:30,sectionPaddingLeftPhone:0},ED=(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},...Bo(e,"ParagraphsA")}),box:[...re,...ea("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...TD,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})]},ED("Stats column",_,{kind:"group",name:"Stats",props:{...PD,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:{...TD,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}}]}]},ED("Note column",{..._,justify:"end",widthFit:"fill"},{kind:"group",name:"Founders",props:{...PD,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}},OD={top:24,bottom:24,topPhone:24,bottomPhone:24},Kae={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...ce(e,OD)}),box:[...re,"contained",...ye(OD)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{..._,gap:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...Ye(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}},cS={Prose:Gae,TitleWithButtons:zae,SectionHeader:Uae,ParagraphsA:jae,Banner:Kae};function _D(){bo(cS),bo(zL),bo(tF),bo(RL),bo(uF),bo($F),bo(aB),bo(lB),bo(SB),bo(NB),bo(XB),bo(eD),bo(nD),bo(yD),bo(mD),bo(gD)}var qae=["FooterPayment"];function AD(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))Vae(n)&&(r[a]=n.map(s=>AD(s,o)));return o(e.type,r)}var Zi=(e,o)=>{if(!qae.includes(e.type))return null;_D();let t=Jr(e.type);return t?Ts({type:e.type,props:{...e.props}},t).nodes.map(r=>AD(r,o)):null};function RD(){let{appState:e,dispatch:o,config:t}=ene(f=>f),{readOnly:r}=tne(),[a,n]=Zae(!1),s=e.data.content;if(r||s.some(f=>f.type===Re))return null;let l=s.find(f=>f.type===Me)??null,c=(f,u)=>Jae(t,f,u),d=()=>{let f=Ei(l,c,Qae(Re),Zi);o({type:"setData",data:u=>({...u,content:[...id(u.content,f)]}),recordHistory:!0}),n(!1)};return $u(one,{tone:"info",title:i("This footer uses the old layout"),action:a?Xae(Yae,{children:[$u(dS,{variant:"primary",size:"sm",onClick:d,children:i("Switch now")}),$u(dS,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):$u(dS,{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 fS,jsxs as rne}from"react/jsx-runtime";import{InspectorUpLevel as LD}from"efficient-easel/chrome";function FD({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=mp(),n=ws(e,o,"picture");return rne("div",{children:[o!=="media"?fS(LD,{inline:!0,name:i(ja.media),onSelect:()=>a(ii(e,"media"))}):fS(LD,{inline:!0,name:i(t),onSelect:r}),fS(Bt,{part:o,motion:n,itemWord:i(ja[o])})]})}import{HintsToggle as Ine,SettingsSwitch as gne,hintsFoldClass as bne}from"efficient-easel/panel";import{useHints as yne}from"efficient-easel/screen/lib/hints";var WD={kind:"header"},mS={kind:"website"},GD={kind:"website",tab:hs,revealPageGroup:!0},zD={kind:"chat"},$D={kind:"social"},Ji="Part";function Sne(e){return i("Part of {name}",{name:i(e)})}function wne(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Sne(r.label):i(Ji)}}function Cne(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 UD({what:e}){let o=Cne(e);return na("div",{className:"sf-note",children:[Se("p",{children:Se("strong",{children:o.title})}),na("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 uS(e){let o=li[e];return{name:ja[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=HD({name:i(xp(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(FD,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var kne={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(np,{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(mA,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Se(yA,{unavailable:Se(UD,{what:"Social link"})})},ticker:{name:ai,kindLabel:Ji,icon:"ticker",head:(e,o)=>e.kind==="ticker"?wne(o,e.heroId,i(ai)):null,render:e=>Se(M1,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:uS("media"),heroImage:uS("image"),heroImage2:uS("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}=Rt(e.propKey),n=a?ns(t.fields[r],a):t.fields[r],s=zp(t.type),l=s?ml(s,e.propKey):null,c=s&&l?s[l].label:V1[e.propKey],d=c?i(c):_O(i(HI(Lf(n??{},r))),a),f=HD({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(uR,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},vne=new Set(["header","website","chat"]);function Tne(e,o){if(e==="selection")return null;let t=kne[e];return vne.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Se(UD,{what:t.name})}:t}function jD({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}=une(),{rows:v}=oi(),S=v?.find(le=>le.slug===u)??null,C=nne(),b=Object.keys(C.fields).some(le=>!le.startsWith("_")&&!Ql.includes(le)),{websiteName:k}=xe(),T=mne({readOnly:I}),{select:F}=hne(),{selectedItem:P,getItemById:D,getSelectorForId:O,config:R,appState:N}=ane(le=>le),y=fne(R,P?{type:P.type,props:P.props}:null),A=P?DO(y??R.components[P.type]?.fields,P.props):[],L=le=>R.components[le]?.label??le,H=P?O(P.props.id):void 0,X=Tne(e.kind,c),q=pne(),j={capabilities:c,tokenRef:d,hostPanels:q.chrome?.panels,describeNode:le=>{let Be=D(le);if(!Be)return null;let Ae=R.components[Be.type];return{type:Be.type,label:Ae?.label??Be.type,fields:Ae?.fields??{},props:Be.props??{}}},siteId:p,websiteName:k??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},Ie=X?.head?.(e,j)??null,te=iA({kind:S?.kind,pageName:S?.label}),Le=Ie?.name??(X?i(X.name):P?i(L(P.type)):te.name),He=Ie?.kindLabel??(X?i(X.kindLabel):P?H&&H.zone!==MD?i("Block"):i("Section"):te.kindLabel),Oe=X?X.icon:P?P.type:"page",ge=X?null:P?R.components[P.type]?.fields??null:R.root?.fields??null,_e=ge?zA(ge):2,We=pS(e)&&P?yi(P.type):null,oo=!!P&&!!H&&H.zone===MD&&P.type!==Me&&P.type!==xne,Co=tu(N?.data,P),he=()=>{Co||H&&T.duplicateComponent(H.zone,H.index)},Ke=()=>{H&&(T.removeComponent(H.zone,H.index),T.select(null))},Te=P?R.components[P.type]?.defaultProps?.previewHover:void 0,Pe=pS(e)&&!!P&&!!H&&Te!==void 0,Ze=Pe&&P.props.previewHover===!0,Ht=()=>{!P||!H||T.replaceComponent(H.zone,H.index,{...P,props:{...P.props,previewHover:!Ze}})},{shown:Do,setShown:W}=yne(),Fe=!!(X||P||b);return na("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${bne(Do)}`.trim(),children:[Se(ine,{icon:Se(Ka,{type:Oe,size:15}),name:Le,kind:He,actions:!n&&pS(e)&&P&&P.type!==Me?na(BD,{children:[Se(DD,{label:i("Duplicate section"),title:Co??void 0,disabled:Co!==null,onClick:he,children:Se(cne,{size:15})}),oo&&c.hasSiteSettings&&Se(vR,{node:P,currentSlug:u,siteId:p??void 0,tokenRef:d,runAuthed:x,onNotify:s}),Se(DD,{label:i("Remove section"),danger:!0,onClick:Ke,children:Se(dne,{size:15})}),l?Se(ND,{side:"right",onHide:l,divider:!0}):null]}):l?Se(ND,{side:"right",onHide:l}):void 0}),Pe&&na("div",{className:"sf-preview-pin",children:[na("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(gne,{checked:Ze,onChange:Ht,ariaLabel:i("Preview hover state")})]}),Se(kE,{tier:_e,children:na("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[X?X.render(e,j):P?na(BD,{children:[P.type===Me&&c.hasSiteSettings&&Se(RD,{}),Se(FT,{children:Se(Bt,{entries:Se(TR,{parts:A,heading:!1,onOpen:le=>F(Af(P.props.id,le))}),entryCount:ey(A).length,itemWord:Le})}),We&&Se(Kp,{source:We,slug:Cs(P?.props),menuId:Wp(P?.props)})]}):b?Se(Bt,{omit:Ql}):Se(lne,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&Se(sne,{variant:"secondary",onClick:r,children:i("This page")})}),Fe&&Se(Ine,{shown:Do,onChange:W,label:i("Show hints")})]})})]})}import{jsx as m,jsxs as E,Fragment as XD}from"react/jsx-runtime";var ao={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)"},hS="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:ao[t],flex:"none",...a}})}var Pne={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)"},De=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Tr({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 ju({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:h.muted},children:e})}function KD({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return E(XD,{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 xS({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",...De(h.paper,h.paper2,150)},children:m(Tr,{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 vr({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 Ee({title:e,children:o}){return E("div",{style:{...V,background:h.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(ju,{children:e}),o]})}function VD({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 IS({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 eo({children:e,w:o}){return m("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:h.muted,width:o,display:"block"},children:e})}function Uu({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 qD({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 Ene={wheelslisting:m(Ee,{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",...De(h.paper,h.paper2,150)},children:m(Tr,{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",...De(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(Ee,{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(Ee,{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(Ee,{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(ju,{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(Tr,{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,...De(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(Ee,{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(Ee,{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(Ee,{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%),${De(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(Ee,{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,...De(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(Ee,{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(Uu,{label:"Name"}),m(Uu,{label:"Email"})]}),m(Uu,{label:"Message",filled:!0}),m(qD,{children:"SEND"})]})}),appointmentbooking:m(Ee,{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(Ee,{title:"Leave a review",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(IS,{filled:4,size:14}),m(Uu,{label:"Your review",filled:!0}),m(qD,{children:"POST"})]})}),submitbuild:m(Ee,{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",...De(h.ink,h.inkSoft2)},children:[m(Tr,{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(eo,{children:"Every failure starts in the same place:"}),m(eo,{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(eo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),m(eo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),m(eo,{w:"80%",children:"Width follows from the space left."})]}),series:m(Ee,{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(Ee,{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",...De(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(eo,{children:o})]},e))}),docmetacards:m(Ee,{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(eo,{children:"Unfitted wheels come back within 30 days, no questions."}),m(eo,{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(eo,{children:"Forged, correctly offset, rated for what you actually"}),m(eo,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:m(Ee,{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(eo,{children:"Twelve years of fitting the same three questions, and the"}),m(eo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:E(Ee,{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",...De(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,...De(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",...De(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(Ee,{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(eo,{children:o})]})]},e))})}),timelinetrack:E("div",{style:{...V,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...De(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",...De(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",...De(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,...De(h.ink,h.inkSoft2)}}),m(Tr,{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(eo,{children:"One shed, one lathe, one idea."}),m(eo,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:m(Ee,{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,...De(e,o,140+t*22)}},t))})}),gallery:E(Ee,{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,...De(e,o,150+t*20)}},t))})]}),ordersummary:E(Ee,{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",...De(h.paper,h.paper2,150)},children:m(Tr,{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(vr,{k:"Subtotal",v:"$1,956"}),m(vr,{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(Ee,{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(ju,{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",...De(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(IS,{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(VD,{}),m("span",{style:{fontSize:"3.98cqw",color:h.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:E(Ee,{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,...De(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(VD,{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(IS,{filled:o})]}),m(eo,{children:t})]})]},e))})]}),logos:E("div",{style:{...V,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...De(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(eo,{children:"he number on the back of your wheel decides whether the"}),m(eo,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:m(Ee,{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(eo,{children:o})]},e))})}),faq:m(Ee,{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(eo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:E("div",{style:{...V,overflow:"hidden",...De(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(KD,{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(Tr,{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(KD,{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",...De(h.inkSoft,h.inkSoft2)},children:m(Tr,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(Ee,{title:"Best sellers",children:E("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(xS,{name:"Ridge 19",price:"$365"}),m(xS,{name:"Ridge 29",price:"$410"}),m(xS,{name:"Ridge 39",price:"$455"})]})}),collections:m(Ee,{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,...De(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",...De(h.paper,h.paper2,150)},children:m(Tr,{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(Ee,{title:"Specifications",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(vr,{k:"Diameter",v:'20"'}),m(vr,{k:"Width",v:"9.0J"}),m(vr,{k:"Offset",v:"+12"}),m(vr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:m(Ee,{title:"Will it fit?",children:E("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(vr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(vr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(vr,{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(ju,{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,...De(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))})},YD={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:ao.line,marginBottom:10}}),E("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${ao.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 ${ao.line}`,background:ao.block}}),m(z,{w:34,h:13,r:5,tone:"accent"})]})]}),E("div",{style:{flex:1,background:ao.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 ${ao.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:hS}}),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(XD,{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:ao.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:ao.block}},o))}),blanksection:m("div",{style:{...V,padding:14,display:"flex"},children:E("div",{style:{flex:1,border:`1px dashed ${ao.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:hS},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:hS}}),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 ${ao.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 ${ao.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${ao.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 ${ao.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${ao.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 ${ao.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 ${ao.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:ao.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:ao.block}})};function ZD({type:e}){let o=Pne[e]??"",t=Ene[o]??YD[o]??YD.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 xm}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as Ns,jsxs as JD}from"react/jsx-runtime";import One from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as _ne}from"efficient-easel/rail";import{Tooltip as Ane}from"efficient-shell/ui";import{HintsToggle as Rne,hintsFoldClass as Lne}from"efficient-easel/panel";import{useHints as Fne}from"efficient-easel/screen/lib/hints";function QD({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let c=xs(),{shown:d,setShown:f}=Fne();return JD("div",{className:`sf-styles ${Lne(d)}`.trim(),children:[Ns(One,{icon:Ns(_ne,{}),title:i("Styles"),context:Ns(Ane,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:c,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Ns("span",{className:"sf-name-text",children:c})})}),JD("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[Ns(np,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),Ns(Rne,{shown:d,onChange:f,label:i("Show hints")})]})]})}import{jsx as po,jsxs as un,Fragment as Wne}from"react/jsx-runtime";import{Fragment as uN,useEffect as mN,useRef as CS}from"react";import{useTreeDrag as hN}from"efficient-easel/drag";import{GlobeIcon as Gne,ImageIcon as zne,LocationIcon as $ne,MapIcon as Une,TextLinesIcon as jne,TrashIcon as xN}from"efficient-easel/icons";import{Subtree as IN,TreeRow as oc,TreeRowAction as gN,TreeSeam as bN}from"efficient-easel/tree";import{useEaselStrings as Kne}from"efficient-easel/strings";import{createPreviewSelectionContext as Bne}from"efficient-easel/draw/client";var{Provider:UWe,useSelection:eN}=Bne("selectedLocationPartId");function oN(e,o,t){return`${e}::${o}::${t}`}function tN(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 Vne}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Dne}from"react";var Nne={level:"groups"},aN=Nne,gS=new Set;function Mt(e){aN=e;for(let o of gS)o()}function Mne(e){return gS.add(e),()=>{gS.delete(e)}}var rN=()=>aN;function nN(){return Dne(Mne,rN,rN)}var ec=e=>String(e?.group??""),bS=new WeakMap,Hne=0;function Ku(e){let o=bS.get(e);return o||(o=`loc${++Hne}`,bS.set(e,o)),o}var sN=(e,o)=>o||e||"Ungrouped",lN={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 pn(e){return au(e,ec,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var yS=e=>e.flatMap(o=>o.cards),iN=(e,o,t)=>Math.min(Math.max(e,o),t);function Vu(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 SS(e,o,t){let r=pn(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=iN(o<t?t-1:t,0,r.length);return r.splice(n,0,a),yS(r)}function wS(e,o,t,r,a){let n=pn(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&&bS.set(d,Ku(c));let f=iN(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,d),yS(n)}function cN(e,o){let t=pn(e),r=t.find(n=>n.key===o),a={...lN,group:o,groupName:r?.name??""};return r?(r.cards.push(a),yS(t)):[...e,a]}function dN(e){let o=new Set(pn(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...lN,group:r,groupName:""}],key:r}}function fN(e,o){return e.filter(t=>ec(t)!==o)}function pN(e,o,t){let r=Vu(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function YWe(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 XWe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>ec(n)===r);return a.length?a:t(r)})}var Yu="ContactLocations",qu=e=>({parentId:`locations-${e}`,slot:"groups"}),kS=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function yN(e,o){let{readOnly:t,selected:r}=o,a=Kne().tree,n=o.data?.content??[],s=Vne(e),l=CS(null);mN(()=>{let b=r?.type===Yu?String(r.props.id):null;b&&b!==l.current&&Mt({level:"groups"}),l.current=b},[r?.props.id]);let{selectedLocationPartId:c,setSelectedLocationPartId:d,setSelectHandler:f}=eN(),u=nN(),p=(b,k)=>{let T=n[b];T&&o.replace(b,{type:T.type,props:{...T.props,locations:k}})},x=b=>{let k=n[b]?.props?.locations;return Array.isArray(k)?k:[]},I=hN({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,k)=>k.parentId===qu(b.si).parentId&&k.slot==="groups",onDrop:(b,k)=>{p(b.si,SS(x(b.si),b.index,k.index)),u.level==="city"&&Mt({level:"groups"})},onStep:(b,k)=>{p(b.si,SS(x(b.si),b.index,k<0?b.index-1:b.index+2)),u.level==="city"&&Mt({level:"groups"})}}),g=hN({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,k)=>k.parentId===qu(b.si).parentId&&k.slot.startsWith("cities:"),onDrop:(b,k)=>{let T=k.slot.slice(7);p(b.si,wS(x(b.si),b.group,b.index,T,k.index)),Mt({level:"group",key:T})},onStep:(b,k)=>{p(b.si,wS(x(b.si),b.group,b.index,b.group,k<0?b.index-1:b.index+2)),u.level==="city"&&Mt({level:"group",key:b.group})}}),v=CS(n);v.current=n;let S=CS(()=>{});mN(()=>{f(b=>{let k=tN(b);if(!k)return;let T=v.current.findIndex(F=>F.props?.id===k.nodeId);T<0||S.current(T,{level:k.part,index:k.index})})},[f]);let C=(b,k)=>{l.current=n[b]?.props?.id??null,o.select(b),Mt(k),e.reveal();let T=n[b]?.props?.id;typeof T=="string"&&(k.level==="city"||k.level==="image"||k.level==="map")?d(oN(T,k.index,k.level)):d(null),typeof T=="string"&&o.scrollTo(T)};return S.current=C,{renderLocationTree:(b,k,{rowClick:T,isCollapsed:F,toggleCollapse:P})=>{let D=x(k),O=pn(D),R=String(b.props.id),N=s&&r?.props.id===R,y=L=>po(bN,{...t?{}:I.seam({place:{...qu(k),index:L}})},`seam:${R}:groups:${L}`),A=(L,H)=>po(bN,{...t?{}:g.seam({place:{...kS(k,L),index:H}})},`seam:${R}:cities:${L}:${H}`);return un(Wne,{children:[po(oc,{icon:po(jne,{size:13}),name:i("Texts"),words:a,onSelect:()=>C(k,{level:"texts"}),selected:N&&u.level==="texts",rowProps:{onClick:T(()=>C(k,{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?sN(L.key,L.name):i("Ungrouped"),te={...kS(k,L.key),index:L.cards.length},Le=g.row({item:{si:k,group:L.key,index:-1},place:te,into:te,canDrag:!1},{onClick:T(()=>C(k,{level:"group",key:L.key}))}),He=I.row({item:{si:k,index:H},place:{...qu(k),index:H}},Le.rowProps);return un(uN,{children:[H===0&&y(0),po(oc,{icon:po(Gne,{size:13}),name:Ie,words:a,onSelect:()=>C(k,{level:"group",key:L.key}),selected:j,draggable:He.draggable,dragging:He.dragging,drop:He.drop??Le.drop,fold:{open:!q,label:i("group"),onToggle:()=>P(X)},actions:po(gN,{kind:"delete",label:Oo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",L.cards.length,{label:Ie}),onClick:()=>{p(k,fN(D,L.key)),Mt({level:"groups"})},children:po(xN,{size:15})}),rowProps:He.rowProps,count:L.cards.length,countLabel:Oo("{n} city","{n} cities",L.cards.length)}),!q&&un(IN,{children:[L.cards.map((Oe,ge)=>{let _e=Vu(D,L.key,ge),We=N&&u.level==="city"&&u.index===_e,oo=String(Oe?.name??"")||i("City"),Co=`${R}::city::${Ku(Oe)}`,he=F(Co),{rowProps:Ke,...Te}=g.row({item:{si:k,group:L.key,index:ge},place:{...kS(k,L.key),index:ge}},{onClick:T(()=>C(k,{level:"city",index:_e}))});return un(uN,{children:[ge===0&&A(L.key,0),po(oc,{icon:po($ne,{size:13}),name:oo,words:a,onSelect:()=>C(k,{level:"city",index:_e}),selected:We,...Te,fold:{open:!he,label:oo,onToggle:()=>P(Co)},actions:po(gN,{kind:"delete",label:i("Delete {name}",{name:oo}),onClick:()=>{p(k,pN(D,L.key,ge)),Mt({level:"group",key:L.key})},children:po(xN,{size:15})}),rowProps:Ke}),!he&&un(IN,{children:[po(oc,{icon:po(zne,{size:13}),name:i("Image"),words:a,onSelect:()=>C(k,{level:"image",index:_e}),selected:N&&u.level==="image"&&u.index===_e,rowProps:{onClick:T(()=>C(k,{level:"image",index:_e}))}}),po(oc,{icon:po(Une,{size:13}),name:i("Map"),words:a,onSelect:()=>C(k,{level:"map",index:_e}),selected:N&&u.level==="map"&&u.index===_e,rowProps:{onClick:T(()=>C(k,{level:"map",index:_e}))}})]}),A(L.key,ge+1)]},Ku(Oe))}),un("button",{type:"button",className:"sf-add-card",onClick:()=>{let Oe=cN(D,L.key);p(k,Oe);let ge=pn(Oe).find(_e=>_e.key===L.key);Mt(ge&&ge.cards.length?{level:"city",index:Vu(Oe,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)}),un("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:L,key:H}=dN(D);p(k,L),C(k,{level:"group",key:H})},children:[po("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add group")]})]})},sectionPressed:b=>{b?.type===Yu&&Mt({level:"groups"})}}}import{useEffect as Zne,useRef as Jne}from"react";import{createNode as TS,newId as PS}from"efficient-easel/data";import{useEaselApi as Qne}from"efficient-easel/easel";import{useScreenDocument as ese}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as ose}from"efficient-easel/screen/lib/session-context";import{useEffect as CN,useRef as qne}from"react";import{useEasel as Yne}from"efficient-easel/easel";import{ROOT_ZONE as vS}from"efficient-easel/draw";var tc={};function SN(e){return tc=e?.theme?{theme:e.theme}:{},tc}function wN(e){tc===e&&(tc={})}function Xu(){return tc}function vN(e){let o=Yne(s=>s.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a}=xe(),n=qne(new Set);CN(()=>{let s=kN({theme:t,themeRow:r,themeFromDocument:a});s&&Xne(GR(o,void 0,s),e,n.current)},[o,e,t,r,a]),CN(()=>{let s=SN(kN({theme:t,themeRow:r,themeFromDocument:a}));return()=>wN(s)},[t,r,a])}function kN(e){return e.themeFromDocument||e.themeRow==="none"?{}:e.themeRow==="read"?{theme:e.theme}:null}function Xne(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(vS,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(vS,r+1+l,s),o.replaceComponent(vS,r+1+l,s)}))}}import{ROOT_ZONE as Ms,missingPinnedTypes as tse,pinnedDuplicateIds as ES}from"efficient-easel/draw";function TN(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function PN(e,o){let t=e.some(l=>l?.type===Re),r=e[e.length-1],a=!t&&r?.type===Me?r:null,n=e.filter(l=>l?.type===Me&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Vo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ne)}}async function EN(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!==Ne||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ne)?!1:(e.write(id(r,t)),!0)}function ON(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:c,tokenRef:d}=ese(),f=ose(),{hasSiteSettings:u,hasPinnedChrome:p}=r;vN(e);let x=!!r.editsPinnedInPlace&&a!==Et,I=a===Et,g=Qne().getState,v=Jne(null);Zne(()=>{if(!TN({docId:n,saveStatus:l,seededDocId:v.current})||(v.current=n,!p))return;let S=g().appState.data,C=S.content,b=s?.content??[],k=(D,O)=>D.some(R=>R?.type===O);if(!u){let D=new Set(ES(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=tse(O,b);if(R.includes(Me)){let N=O.length,y=e.insertSection(Me,N);e.replaceComponent(Ms,N,{type:Me,props:{id:y,blocks:ou()}})}R.includes(Vo)&&e.insertNode(Ms,0,eu());return}if(I){let D=Dn(C);if(D!==C&&e.setDocument({...S,content:[...D]}),!D.find(O=>O.type===Me)&&!k(b,Me)&&!k(D,Re)&&!k(b,Re)){let O=(N,y)=>TS(o,N,y),R={type:Me,props:{blocks:ou()}};e.insertNode(Ms,D.length,Ei(R,O,PS(Re),Zi))}return}if(x){let D=!!t?.pinnedChrome?.state().docId,O=PN(C,{hasChromeDoc:D}),R=new Set([...O.remove,...ES(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&&!k(b,Me)&&!k(b,Re)){let y=(L,H)=>TS(o,L,H),A={type:Me,props:{blocks:ou()}};e.insertNode(Ms,N.length,Ei(A,y,PS(Re),Zi))}if(O.seedHeader&&!k(b,Vo)){let y=N[0]?.type===Ne?1:0;e.insertNode(Ms,y,eu())}if(O.seedSiteHeader&&!k(b,Ne)&&!k(b,Me)&&!k(b,Re)){let y=n;EN({blocks:Od(f),make:(A,L)=>TS(o,A,L),id:PS(Ne),siteId:c??null,token:d.current,latest:()=>g().appState.data.content,stillOpen:()=>v.current===y,write:A=>{let L=g().appState.data;e.setDocument({...L,content:[...A]})}})}return}let T=C.filter(D=>D.type!==Me),F=new Set(ES(T)),P=F.size?T.filter(D=>!F.has(D.props.id)):T;P.length!==C.length&&e.setDocument({...S,content:P}),!k(P,Vo)&&!k(b,Vo)&&e.insertNode(Ms,0,eu())},[n,l,s,g,e,u,p,I,x,t,f,c,d])}import{useEffect as KN,useMemo as Ise,useRef as VN}from"react";import{useEasel as gse}from"efficient-easel/easel";import{useEaselHost as bse}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as fse}from"efficient-easel/screen/lib/host";import{isNode as OS}from"efficient-easel/data";var _N=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],UGe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:aw,separator:nw,scrollDirection:ui}};var AN=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],VGe={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 RN(e,o,t){return So(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Zu={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,kt()),So("Text",e,o,Dr()),So("Text",e,o),So("Stats",e,o)]}),RN(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,kt()),So("Text",e,o,Dr()),So("Text",e,o),So("ButtonBlock",e,o)]}),RN(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,Dr()),So("Text",e,o),So("Form",e,o)]}}),Ticker:(e,o)=>LN("Scrolling Bar",Tu,Gi,_N.map(t=>({text:t.text,style:Pu,muted:!0})),e,o),SpecStrip:(e,o,t)=>LN("Spec Strip",t?.theme?{...$i,sectionAccent:Cc(to(t.theme))}:{...$i,sectionBorder:{top:1}},zi,AN().map(r=>({text:r.text??"",style:Ui,muted:r.tone==="muted"})),e,o)};function LN(e,o,t,r,a,n){return So(K,a,n,{...ln,...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 FN(e){return Zu[e]??null}import{isNodeList as rc}from"efficient-easel/data";var uze=Object.keys(cS),rse={Logos:rF,DocMasthead:gB,Timeline:GF,TimelineTrack:zF},ase={PaymentBadges:aF,PaymentLogosBlock:nF};function Ju(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=>Ju(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var BN=e=>({...e?.theme?{theme:e.theme}:{},press:!0});function Qu(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Ts({type:e,props:{...a(e),...r(),id:n(e)}},o,BN(s));return Ju(l[t],a,n)}}var nse={Stats:lse,Cards:sse};function sse(){let e=Jr("Cards");if(!e)return null;let o=Qu("Cards",e,0,AL);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function lse(){let e=Jr("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Ts({type:"StatsParagraph",props:{...o("StatsParagraph"),...$L(),id:t("StatsParagraph")}},e,BN(r)),n=a[0],s=rc(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=NN(vy(UL(),"table")),c=s.map(DN),d=Ju({...n,props:{...n.props,content:[...c,l]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function DN(e){if(e.props?.name==="Words"){let o=rc(e.props.content)?e.props.content.map(ise):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(DN)}}:e}function ise(e){return e.type!=="Text"?e:{...e,props:Sr({...e.props,alignTablet:"left"},"text","alignTablet","left")}}var NN=e=>so([e],(o,t)=>`${o}-seed-${t}`)[0];function cse(e,o){if(!WR(e,o))return null;let t=nse[e];if(t)return t();let r=Jr(e);return r?Qu(e,r,0,rse[e]??ase[e]):null}function dse(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let c=Ju(NN(vy([],"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 Hs(e,o=_i){let t=FN(e);return t?dse(t):cse(e,o)}function ac(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function pse(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function _S(e,o,t,r){e.forEach((a,n)=>{if(OS(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(OS)&&_S(l,a,s,r)}})}function use(e){let o=[];_S(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&_S(t,null,"",o);return o}function WN(e,o){return use(e).find(t=>String(t.node.props.id)===o)}function GN(e,o,t){if(!t)return null;let r=WN(o,t);if(!r)return null;let a=ac(e,r.node.type),n=r.parent?`${ac(e,r.parent.type)} \xB7 ${pse(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var mse=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 hse(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[fse]: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=mse(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=zN(l))}return r}function zN(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=hse(r);a&&(o[t]=a)}return o}function $N(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:ac(e,t),fields:zN(r.fields),...UN(t)?{retired:!0}:{}});return o}function UN(e){return Object.prototype.hasOwnProperty.call($m,e)}function MN(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function xse(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 AS(e,o){return e.findIndex(t=>OS(t)&&String(t.props.id)===o)}function HN(e,o,t){let r=o||t;if(!r)return e.length;let a=AS(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function jN(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=WN(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=xse(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}`),UN(l.type)&&d(`${ac(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Hs(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=>MN(e,x),r,a):{type:l.type,props:{...MN(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(HN(s,l.after,l.before),0,p);break}case"remove_block":{let f=AS(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=AS(s,l.block_id);f<0&&d(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(HN(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 RS=e=>Z(e.requestId)??null;function qN(){let e=bse(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=gse(p=>p),s=n,l=VN({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let c=VN(new Map),d=t?.props?.id,f=Ise(()=>GN(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";KN(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),KN(()=>e.subscribe(p=>{let{appState:x,dispatch:I,history:g,blockConfig:v}=l.current;switch(p.type){case"storefront-editor:request-document":{let S=RS(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:x.data,blocks:$N(v)});return}case"storefront-editor:apply-page-edits":{let S=RS(p);if(!S)return;let C=Array.isArray(p.ops)?p.ops:[],b=C.length?jN(v,x.data,C,k=>`${k}-${crypto.randomUUID()}`,Xu()):{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=RS(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 ZN,useState as JN}from"react";var em=new Map;async function yse(e,o){try{return(await $e().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function YN(e,o){let t=em.get(o);return t||(t=yse(e,o),em.set(o,t),t.catch(()=>{em.get(o)===t&&em.delete(o)})),t}var Sse=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function LS(e){return!!e&&Sse.test(e)}function XN(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===yd?"/":`/${encodeURIComponent(o)}`;if(!LS(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function QN(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=JN(null),[s,l]=JN(null),c=_n();ZN(()=>l(c?new URL(c).hostname:window.location.hostname),[c]),ZN(()=>{if(!LS(s)||!t||!r){n(null);return}let f=!1;return YN(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=XN({pageSlug:o,siteSlug:a,hostname:s});return c?`${c}${d}`:d}import{jsx as nc}from"react/jsx-runtime";import{useEffect as wse,useRef as eM,useState as Cse}from"react";import{ExternalIcon as oM}from"efficient-easel/icons";import{EaselIconButton as kse}from"efficient-easel/chrome";import{Tooltip as vse,iconButtonClasses as Tse}from"efficient-shell/ui";import{useSettledPress as Pse}from"efficient-easel/easel";import{useScreenDocument as Ese}from"efficient-easel/screen/components/ScreenDocumentContext";async function Ose({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 tM({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Ese(),a=eM(r);a.current=r;let n=Pse(),[s,l]=Cse(!1),c=eM(null);if(wse(()=>()=>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),Ose({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>l(!1)))};return nc(kse,{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(oM,{})})}return nc(vse,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:nc("a",{className:Tse({className:"es-iconbtn"}),href:e,target:"_blank",rel:"noopener noreferrer","aria-label":i("Preview the live site in a new tab"),children:nc(oM,{})})})}import{createElement as Fse,useCallback as Bse,useEffect as bM,useRef as yM,useState as Dse}from"react";import{ClockIcon as Nse}from"efficient-shell/icons/efficient";import{useScreenDocument as Mse}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as _se}from"react";import{useScreenDocument as Ase}from"efficient-easel/screen/components/ScreenDocumentContext";var Rse=()=>()=>{},rM=()=>null;function om(e){return _se(e?e.subscribe:Rse,e?e.state:rM,e?e.state:rM)}function tm(){let{adapter:e}=Ase();return e?.pinnedChrome}import{useSyncExternalStore as sM}from"react";var sc=!1,Ws=null,FS=new Set;function ic(){for(let e of FS)e()}function lM(e){return FS.add(e),()=>{FS.delete(e)}}function iM(){sc||(sc=!0,ic())}function cM(){sc&&(sc=!1,ic())}function aM(){return sc}function dM(){return sM(lM,aM,aM)}function nM(){return Ws}function rm(){Ws&&(Ws=null,ic())}function fM(){return sM(lM,nM,nM)}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 pM(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new lc;let n=await e.restore(o,t);return Wd(n.liveState),a(),n}async function uM({access:e,version:o,page:t,...r}){let a=await pM(e,o.id,t?{page:t.id}:{},r);Ws={title:Lse(o,t??null),undo:a.undo},ic()}async function mM({access:e,...o}){let t=Ws?.undo;t&&(await pM(e,t,{},o),Ws=null,ic())}function hM(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function Lse(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 xM(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(Hm(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function IM(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function gM(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Hm(),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 SM(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Mse(),s=xR(hR(o??null),r),l=om(tm()),c=n.siteLiveState;bM(()=>{if(c)return Rx(c),ur(0),()=>Rx(null)},[c]);let d=Gd(),[f,u]=Dse(!1),p=yM(e);p.current=e;let x=yM(!0);bM(()=>(x.current=!0,()=>{x.current=!1}),[]);let I=Bse(()=>{u(!0),a(p.current).then(()=>{rm()}).finally(()=>{x.current&&u(!1)})},[a]);if(t.canPublish){if(c){let g=d===void 0?void 0:r||d.state==="changed"?"changed":"live",v=Yb({live:g,onPress:I,busy:f,goingLive:IR(d?.changes??[])});return n.siteVersions?{...v,menuItems:Hse()}:v}return Yb({live:s,onPress:I,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Hse(){return[{key:"version-history",label:i("Version history"),icon:Fse(Nse),onSelect:iM}]}import{jsx as ee,jsxs as et,Fragment as fc}from"react/jsx-runtime";import{useCallback as Wse,useEffect as Gse,useId as kM,useRef as zse,useState as ht}from"react";import{useSettledAction as $se}from"efficient-easel/easel";import{Avatar as Use,Banner as cc,Button as mn,ColoredBadge as BS,Dialog as vM,Drawer as jse,DropdownMenu as Kse,FormField as TM,iconButtonClasses as Vse,Inline as DS,Input as qse,ListRow as Yse,Select as Xse,SortableList as Zse,Stack as dc}from"efficient-shell/ui";import{EditIcon as Jse,EyeIcon as wM,MenuIcon as Qse,MoreIcon as ele,PageIcon as PM,RevertIcon as CM,StylesIcon as ole}from"efficient-shell/icons/efficient";import{useScreenDocument as EM}from"efficient-easel/screen/components/ScreenDocumentContext";var tle={page:PM,menu:Qse};function rle(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function ale(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 nle({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let c=kM();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=xM(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(vM,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:et(fc,{children:[ee(mn,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),ee(mn,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:et(dc,{gap:4,children:[o&&e.pages.length>1?ee(TM,{label:i("Page"),htmlFor:c,children:ee(Xse,{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 sle({version:e,onCancel:o,onSave:t}){let r=kM(),[a,n]=ht(null),[s,l]=ht(""),[c,d]=ht(!1),[f,u]=ht(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(vM,{open:!0,onClose:()=>{c||o()},size:"sm",title:i("Name this version"),footer:et(fc,{children:[ee(mn,{variant:"secondary",onClick:o,disabled:c,children:i("Cancel")}),ee(mn,{onClick:()=>{x()},loading:c,disabled:c||p,children:i("Save")})]}),children:ee(TM,{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(qse,{id:r,value:s,invalid:!!f,onChange:I=>l(I.target.value),onKeyDown:I=>{I.key==="Enter"&&x()}})})})}function lle({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(wM,{}),onSelect:r}],...c?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:ee(CM,{}),onSelect:a}]:[],...c&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:ee(PM,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:ee(Jse,{}),onSelect:s}]];return ee(Yse,{title:et("span",{className:"sf-version-title",children:[ee("span",{children:hM(e)}),e.live?ee(BS,{tone:"success",size:"xs",children:i("Live")}):null,e.name?ee(BS,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?ee(BS,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:ee(Kse,{align:"end","aria-label":i("More"),items:f,triggerClassName:Vse({variant:"ghost",size:"sm"}),trigger:ee(ele,{})}),below:et(dc,{gap:3,children:[et(DS,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ee(Use,{name:e.createdBy,size:"xs"}),ee("span",{children:e.createdBy}),ee("span",{"aria-hidden":"true",children:"\xB7"}),ee("span",{children:gM(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=tle[u.kind]??ole;return et(DS,{gap:2,align:"center",children:[ee(p,{size:16}),ee("span",{children:IM(u)})]},`${u.kind}:${u.id}`)})}):null,et(DS,{gap:2,children:[l?null:ee(mn,{variant:"secondary",size:"sm",leftIcon:ee(wM,{}),onClick:r,children:i("Preview")}),c?ee(mn,{variant:"secondary",size:"sm",leftIcon:ee(CM,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function ile({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=EM(),[l,c]=ht(null),[d,f]=ht(!1),[u,p]=ht(null),[x,I]=ht(null),[g,v]=ht(!1),[S,C]=ht(null),[b,k]=ht(null),[T,F]=ht(!1),P=zse(0),D=Wse(()=>{let y=++P.current;f(!1),t.list().then(A=>{y===P.current&&c(A)},()=>{y===P.current&&f(!0)})},[t]);Gse(()=>{e&&D()},[e,D]);let O=y=>{F(!1),ale(t,y.id).catch(()=>F(!0))},R=async()=>{if(!(!x||g)){v(!0),C(null);try{await uM({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{v(!1)}}},N=$se({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(mn,{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(Zse,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(y=>ee(lle,{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:rle(y,s)})},onName:()=>k(y)},y.id))})]})}),ee(nle,{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(sle,{version:b,onCancel:()=>k(null),onSave:async y=>{await t.name(b.id,y),k(null),D()}})]})}function OM(){let{adapter:e,hasUnsavedEdits:o}=EM(),t=e.siteVersions,r=dM(),a=Gd();return t?ee(ile,{open:r,onClose:cM,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as EH}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as g$e,categoryLabel as b$e,paletteWithoutPinned as y$e,pinnedSection as S$e}from"efficient-easel/screen/lib/document/palette-sections";var cle={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 _M(e){return cle[e]?.label}var AM=jm;import{currentEaselSession as F2}from"efficient-easel/screen/lib/session";import{blockTypesIn as A2}from"efficient-easel/screen/lib/document/block-types-in";import{jsx as xt,jsxs as v2}from"react/jsx-runtime";import{createContext as pie,useContext as uie,useEffect as mie,useRef as hie,useState as T2}from"react";import{jsx as Gs,jsxs as KM}from"react/jsx-runtime";import{useEffect as zs,useRef as Ale,useState as xn}from"react";import{jsx as hn}from"react/jsx-runtime";import{Component as ule,createContext as mle,lazy as A$e,Suspense as R$e,useContext as hle}from"react";var dle="hrefRewrite";function fle(){return jt("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function ple(){return typeof process<"u"&&!0}function v$e(e){let o=e?.[dle];return typeof o=="string"?o.trim():""}function RM(e){if(!e)return null;let o=fle(),t=o.rewrites.get(e);return!t&&!ple()&&o.missed.add(e),t??null}var xle={Link:tC,Image:oC},LM=mle(xle);function D$e({runtime:e,children:o}){return hn(LM.Provider,{value:e,children:o})}function MS(){return hle(LM)}function N$e(){return MS().pagePath??null}function M$e({hrefRewrite:e,...o}){let{Link:t}=MS(),r=RM(e);return r?hn(NS,{name:r.name,href:o.href,fallback:hn(t,{...o}),children:hn(Ile,{Link:t,rewrite:r.rewrite,...o})},r.key):hn(t,{...o})}function Ile({Link:e,rewrite:o,...t}){let r=Z(o(t.href)),a=r&&DC(r)?r:t.href;return hn(e,{...t,href:a})}var NS=class extends ule{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 FM(e){let{Image:o}=MS();return hn(o,{...e})}import{jsx as BM,Fragment as gle,jsxs as ble}from"react/jsx-runtime";import{useEffect as yle,useRef as DM,useState as Sle}from"react";var wle="#t=0.001",Cle=2;function kle(e,o){if(e.readyState<Cle||!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 NM({src:e,objectPosition:o="50% 50%",onError:t}){let r=DM(null),a=DM(null),[n,s]=Sle(!1);return yle(()=>{let l=r.current,c=a.current;if(n||!l||!c)return;let d=()=>{kle(l,c)&&s(!0)};return d(),l.addEventListener("loadeddata",d),l.addEventListener("seeked",d),()=>{l.removeEventListener("loadeddata",d),l.removeEventListener("seeked",d)}},[n]),ble(gle,{children:[BM("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&&BM("video",{ref:r,src:`${e}${wle}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as WM,imageSrcSet as vle}from"efficient-shell/image-copies";var MM;function HS(){return MM===void 0?{}:{host:MM}}var U$e="(max-width: 800px) 100vw, min(100vw, 1600px)",j$e="(max-width: 960px) 100vw, 50vw";function GM(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=vle(e,{...HS(),...t===void 0?{}:{maxWidth:t}});return r?{src:WM(e,o,HS()),srcSet:r}:{src:e}}var Tle=/[\s"'()\\;]/,Ple={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function HM(e){return e.replace(/[\\"\n\r\f]/g,o=>Ple[o]??o)}function K$e(e){let o=WM(e,1920,HS());return o===e?Tle.test(e)?`url("${HM(e)}")`:`url(${e})`:`url("${HM(o)}")`}import{jsx as zM}from"react/jsx-runtime";import{createContext as Ele,useContext as Ole,useMemo as X$e}from"react";var $M=Ele(null);function UM({children:e}){return zM($M.Provider,{value:"below",children:e})}function pc(){return Ole($M)}function _le(){return pc()==="below"?{loading:"lazy"}:{}}function jM(e){let o=_le();return zM("img",{...e,...o})}var Z$e="laterSlideIds";var Rle=.5;function uc({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:r=Rle,objectPosition:a="50% 50%",objectPositionPhone:n,objectPositionTablet:s,quiet:l=!1,slideShown:c,laterSlide:d=!1,laterOfLead:f=!1}){let u=WT(n,s),p=pc(),[x,I]=xn(!1),g=p==="below"&&!x,v=p==="first",S=o||"",C=e||"",[b,k]=xn(!1),[T,F]=xn(!1),[P,D]=xn(!1),[O,R]=xn(!1),N=c??!0,[y,A]=xn(!1),L=p!=="first"&&!f,[H,X]=xn(!1),q=Ale(null);zs(()=>{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]),zs(()=>{k(!1),F(!1),D(!1),R(!1)},[e,o]),zs(()=>{N&&A(!0)},[N]),zs(()=>{let te=q.current;te&&(N?te.play()?.catch(()=>{}):te.pause())},[N,y,H]),zs(()=>{if(!d||L&&!H)return;let te=()=>I(!0);if(typeof window.requestIdleCallback=="function"){let He=window.requestIdleCallback(te,{timeout:2e3});return()=>window.cancelIdleCallback(He)}let Le=setTimeout(te,800);return()=>clearTimeout(Le)},[d,L,H]),zs(()=>{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?GM(S):{src:S};return KM("div",{className:"absolute inset-0 z-[1]",children:[Gs("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),S&&(j?Gs("img",{src:Ie.src,...Ie.srcSet?{srcSet:Ie.srcSet,sizes:"100vw"}:{},alt:"",...g?{loading:"lazy"}:{},...v?{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):k(!0)},S):Gs(FM,{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:()=>k(!0)},S)),t&&!l&&C&&y&&(!L||H)&&!P&&KM("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)&&Gs("source",{src:C.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),Gs("source",{src:C,type:"video/mp4"})]},C),t&&l&&C&&y&&(!L||H)&&!O&&(!S||b)&&Gs(NM,{src:C,objectPosition:a,onError:()=>R(!0)},C)]})}import{jsx as wo,Fragment as e2,jsxs as $S}from"react/jsx-runtime";import{jsx as $s}from"react/jsx-runtime";import{useRef as Lle}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as Fle,scrollAttrs as Ble}from"efficient-shell/format";function VM({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=Lle(null),u=_c(),p=_r(),x=n?p:On,I=ji(f,!0,s),{attrs:g,style:v}=Ble(e[I],o[I]),S=Fle.includes(e[I].effect),C=Ar(`${Pn}${u.fill}${t?` ${t}`:""}`,x.className);if(S&&l==="picture")return x.scope($s("div",{ref:f,className:C,...r,...x.attrs,...a?{style:a}:{},children:$s(jw,{attrs:g,style:v,children:u.inner(d)})}));let b=$s(Kw,{children:u.inner(d)});if(S){let T=c??(u.fill?"h-full":void 0);return x.scope($s("div",{ref:f,className:C,...r,...x.attrs,style:{...a,overflow:"clip"},children:$s("div",{...T?{className:T}:{},...g,style:v,children:b})}))}let k=Object.keys(v).length||a?{style:{...a,...v}}:{};return x.scope($s("div",{ref:f,className:C,...r,...x.attrs,...g,...k,children:b}))}import{MOTION_TIMING as Dle}from"efficient-shell/format";var ZM="grayscale(1) contrast(1.03)",gUe="Black and white";function Nle(e){return e===!0?{filter:ZM}:{}}function Mle(e){let{filter:o}=Nle(e);return o?{style:{filter:o}}:{}}var In="sf-photo-grayscale",zS="data-sf-photo-host",qM={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},sm=`@media (hover:hover){.${In}{filter:${ZM};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))}.${In}:hover,[data-sf-photo-host]:hover .${In}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${In}{transition:none}}`;function JM(e){let o=Dle.hover,t={...e.duration!==o.duration.default?{[qM.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[qM.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function QM(e,o,t){if(e===!0)return Mle(!0);if(t?.kind==="mono"){let r=JM(t);return{className:In,sheet:sm,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:In}:{}}var YM="data-sf-repeat",WS="sf-photo-zoom",Hle="--sf-photo-zoom",bUe="sf-photo-wash",am="sf-photo-wash-rest",mc="sf-photo-wash-hover",nm="sf-photo-frame",GS=(e,o)=>{let t=`:not([${YM}]:not(:hover) .${e})`;return`${o},[${YM}]:hover .${e}${t},[${zS}]:hover .${e}${t}`},XM=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))`,Wle=`.${mc}{opacity:0}@media (hover:hover){.${am},.${mc}{transition:${XM("opacity")}}${GS(mc,`.${nm}:hover .${mc}`)}{opacity:1}${GS(am,`.${nm}:hover .${am}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${WS}{transition:${XM("transform")}}${GS(WS,`.${nm}:hover .${WS}`)}{transform:scale(var(${Hle}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${am},.${mc}{transition:none}}`,yUe="sf-photo-move";function SUe(e){if(!e||!e.zoom&&!e.darken)return null;let o=JM(e);return{className:nm,sheet:Wle,...o?{style:o}:{}}}function wUe(e){return e===!0?{[In]:sm}:{}}import{hidableText as Gle}from"efficient-easel/draw";var zle={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"},$le={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 o2(e){let o=e.isVideo&&Uk(e.videoSource)==="youtube",t=e.isVideo&&jk(e.videoPlayback)==="click",r=o?Kk(Gle(e.youtubeUrl)):null,a=hp(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:Ug(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&si(e)>1}}function hc(e,o){return Tc(Ja({_partMotion:e},o))}function xc(e,o){return Ep(Ja({_partMotion:e},o))}var lm=e=>Tb({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),t2=Nm.img;function r2({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:c}){return e?wo(xF,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:c}):o?wo(VM,{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 Us(e,o){return QM(void 0,void 0,ok(Ja({_partMotion:e},o)))}function a2(e){return Ua.some(o=>Us(e,o).className)?{hostAttrs:{[zS]:""},sheet:sm}:{}}function im({treatment:e,children:o}){return e.className?wo("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):wo(e2,{children:o})}function cm({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 dm({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let c=o&&t?{[lA]:e}:void 0;return wo(r2,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:c,zoomLayerClass:t2,children:l})}function n2({partMotion:e,editing:o,children:t}){let r=hc(e,"media"),a=xc(e,"media"),n=Us(e,"media"),s=wo(Vw,{fill:Nm,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(r2,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:t2,children:l}):wo(e2,{children:l})}function s2({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return $S("div",{className:`absolute inset-0 z-[1] grid ${zle[o]} ${$le[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[wo(dm,{part:"image",editing:t,marked:r,entrance:hc(a,"image"),scroll:xc(a,"image"),origins:lm(n),className:"relative overflow-hidden",children:$S(im,{treatment:Us(a,"image"),children:[wo(uc,{posterSrc:Rr(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),wo(cm,{color:n.tintColor,opacity:n.tintOpacity})]})}),wo(dm,{part:"image2",editing:t,marked:r,entrance:hc(a,"image2"),scroll:xc(a,"image2"),origins:lm(s),className:`relative overflow-hidden ${Pd({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:$S(im,{treatment:Us(a,"image2"),children:[wo(uc,{posterSrc:Rr(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),wo(cm,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as gn,Fragment as Ule,jsxs as jle}from"react/jsx-runtime";import{useEffect as Kle,useState as Vle}from"react";import{PlaySolidIcon as qle}from"efficient-shell/icons/efficient-looks";function l2({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=Vle("large");return Kle(()=>n("large"),[e]),e?jle(Ule,{children:[!o&&a!=="none"&&gn(jM,{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&&gn("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:gn("iframe",{src:_h(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 i2({youTubeId:e,fileSrc:o,playing:t,onPlay:r,editing:a}){return!e&&!o?null:t&&!a?e?gn("iframe",{src:_h(e,"click"),title:Ah,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"}):gn("video",{src:o,controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain"}):gn("button",{type:"button","aria-label":Ah,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:gn(qle,{size:28})})}function c2(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 d2=["top","middle","bottom"],f2=["left","center","right"],p2="bottom",u2="left",Yle={top:"Top",middle:"Middle",bottom:"Bottom"},Xle={left:"Left",center:"Center",right:"Right"},YUe="Up and down",XUe="Sideways",Zle={top:"flex-start",middle:"center",bottom:"flex-end"},Jle={left:"flex-start",center:"center",right:"flex-end"},Qle="--sf-hero-phone-y",eie="--sf-hero-phone-x";function oie(e){return d2.includes(e)?e:p2}function tie(e){return f2.includes(e)?e:u2}function m2(e,o){let t=oie(e),r=tie(o),a={};return t!==p2&&(a[Qle]=Zle[t]),r!==u2&&(a[eie]=Jle[r]),a}function ZUe(){return d2.map(e=>({label:Yle[e],value:e}))}function JUe(){return f2.map(e=>({label:Xle[e],value:e}))}import{hexToRgb as rie}from"efficient-shell/format";var aie=!0;var nie=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function h2(e){let o=rie(e);return o?`${o.r},${o.g},${o.b}`:null}function x2(e){return e==null?aie:e!==!1}function I2(e){let o=(e?h2(e):null)??h2(Pt);return`linear-gradient(180deg, ${nie.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as g2}from"efficient-shell/format";var b2="bottom";var sie=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],lie={bottom:180,top:0,left:270,right:90},iie=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],cie=[[null,33],[.6,67],[.94,100]];function die(e,o){let{r:t,g:r,b:a}=g2(e)??g2(Pt);return`rgba(${t},${r},${a},${o})`}function y2(e){return No(sie,b2,e)}function S2(e=Pt,o=b2){let t=y2(o),r=(t==="top"||t==="bottom"?iie:cie).map(([a,n])=>`${a===null?"transparent":die(e,a)} ${n}%`);return`linear-gradient(${lie[t]}deg, ${r.join(", ")})`}function w2(e,o){let t=Z(e.overlayColor),r=Z(e.overlayPosition),a=Z(o)??Pt;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:y2(r)}}import{jsx as fie}from"react/jsx-runtime";var C2="sf-photo-hover";function k2({sheet:e,name:o=C2}){return e?fie("style",{href:o,precedence:C2,dangerouslySetInnerHTML:{__html:e}}):null}var xie=pie({});function vje({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,objectPosition:s,objectPositionPhone:l,objectPositionTablet:c,tintColor:d=Pt,tintOpacity:f=0,groups:u,editing:p=!1,themeClassName:x,themeStyle:I,overlayColor:g,overlayPosition:v,mediaLayout:S,mediaLayoutPhone:C,mediaImage2:b,objectPosition2:k,objectPosition2Phone:T,objectPosition2Tablet:F,tintColor2:P=Pt,tintOpacity2:D=0,videoSource:O,youtubeUrl:R,videoPlayback:N,partMotion:y,laterSlide:A=!1}){let L=_r(),{alignment:H="left",textureOpacity:X,textureOn:q,textureColor:j,quietVideo:Ie,phoneUpDown:te,phoneSideways:Le,holdReel:He,reelHeld:Oe,shownSlide:ge,ratioMin:_e}=uie(xie),We=pc(),oo=A&&We==="first",Co=hie(null),[he,Ke]=T2(ge===void 0?void 0:!1);mie(()=>{let yn=Co.current;Ke(ge===void 0||!yn?void 0:c2(yn.closest(".hero-track"),"data-slide-name")[ge]===yn)});let Te=t==="video",Pe=Te?Rr(r):void 0,Ze=Te?Rr(n):Rr(r)??Rr(n),Ht=typeof a=="number"?a/100:1,{fromYouTube:Do,onClick:W,youTubeId:Fe,backgroundFile:le,desktopLayout:Be,phoneLayout:Ae,twoPictures:It}=o2({isVideo:Te,videoSource:O,videoPlayback:N,youtubeUrl:R,mediaLayout:S,mediaLayoutPhone:C}),[Wt,Je]=T2(!1);Wt&&Oe===!1&&Je(!1);let gt=!Wt,Gt=w2({overlayColor:g,overlayPosition:v},j),bn=Te?null:hc(y,"image"),Ks=Te?null:xc(y,"image"),ar=a2(y),sa=xt(im,{treatment:Te?{}:Us(y,"image"),children:xt(uc,{videoSrc:le?Pe:void 0,posterSrc:Ze,showVideo:le,playbackRate:Ht,objectPosition:s,objectPositionPhone:Te?void 0:l,objectPositionTablet:Te?void 0:c,quiet:Ie,slideShown:he,laterSlide:A,laterOfLead:oo})}),Vs=v2("section",{ref:Co,className:Ar(`${_e?"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&&Pe?"video":"still",...ar.hostAttrs,children:[xt(k2,{sheet:ar.sheet}),xt(n2,{partMotion:y,editing:p,children:It?xt(s2,{laterSlide:A,desktopLayout:Be,phoneLayout:Ae,editing:p,marked:!1,partMotion:y,first:{src:r,objectPosition:s,objectPositionPhone:l,objectPositionTablet:c,tintColor:d,tintOpacity:f},second:{src:b,objectPosition:k,objectPositionPhone:T,objectPositionTablet:F,tintColor:P,tintOpacity:D}}):Do||bn||Ks?v2(dm,{part:Te?"media":"image",editing:p,marked:!1,entrance:bn,scroll:Ks,origins:lm({objectPosition:s,objectPositionTablet:c,objectPositionPhone:l}),className:"absolute inset-0 z-[1]",children:[sa,Do&&xt(l2,{youTubeId:Fe,ownPoster:!!Ze,background:!W,editing:p})]}):sa}),W&&xt(i2,{youTubeId:Fe,fileSrc:Do?void 0:Pe,playing:Wt,onPlay:()=>{Je(!0),He?.()},editing:p}),gt&&!It&&xt(cm,{color:d,opacity:f,passClicks:!1}),gt&&x2(q)&&xt("div",{className:"absolute inset-0 z-[2]",style:{background:Gt.own?S2(Gt.color,Gt.position??void 0):I2(Gt.color),...X!==void 0?{opacity:X/100}:null}}),gt&&xt("div",{className:[_e?"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:{...Lw,...m2(te,Le)},children:u&&xt(u,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return L.scope(oo?xt(UM,{children:Vs}):Vs)}var P2=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as O2}from"efficient-easel/draw";var Iie="ImageBlock",gie=3,fm=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:O2(e),...t}}),bie=e=>({...e?.(K)??{},direction:"column",[se]:[fm(Iie,e),fm(K,e,{direction:"column",[se]:[fm("Text",e,Dr()),fm("Text",e)]})]}),tr={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>P2.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${lr.toLowerCase()}`,seeds:()=>[],addBlocked:Bm,notice:Dm},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${lr.toLowerCase()}`,seeds:()=>[],addBlocked:Bm,notice:Dm},ProcessSteps:{slot:"boxes",childType:K,addLabel:`Add ${lr.toLowerCase()}`,seeds:e=>Array.from({length:gie},()=>bie(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},E2=1,yie={slot:ni,childType:K,addLabel:`Add ${lr.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=E2?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>E2?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},_2={Hero:{[ni]:yie}};function Fje(e){for(let[o,t]of Object.entries(e)){if(o in tr&&tr[o]!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);tr[o]=t}}function Bje(e,o){let t=tr[e];return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:O2(t.childType),...r}}))}:null}var R2=()=>({}),L2=new Map;function Sie(e){let o=L2.get(e);if(o)return o;let t=new Set,r=tr[e];if(r)for(let s of r.seeds(R2))for(let l of A2({type:r.childType,props:s}))t.add(l);let a=Hs(e);if(a){let s=0;for(let l of A2(a(R2,c=>`${c}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return L2.set(e,n),n}function wie(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Kb(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)&&Sie(c).every(l);return s.set(c,f),f};return{sets:o,offers:l}}var Cie="block-offer";function US(e=F2()){return e.cache(Cie,()=>wie(Od(e)))}function B2(e,o=F2()){let t=US(o);return t?t.offers(e):!0}function kie(e){let o=Zu.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=zg.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:zg.sectionAccent}}}var vie={Hero:{[ni]:{newChild:kie,childLabel:Nc.Ticker}}},D2=Object.fromEntries(Object.entries(_2).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...vie[e]?.[t]}]))]));function N2(e,o=0,t,r){let a=Pie(Eie(e,o,r),t),n=a?US():null;return a&&n?Tie(a,n):a}function Tie(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 Pie(e,o){if(!e||e.source!=="container"||!o||!Ak())return e;let t=Il({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 Eie(e,o,t){let r=t?D2[e]?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=tr[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=OR(e);return s?{source:"footer",slot:ER,choices:s,spec:null}:null}function M2(e,o=bh(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 Oie}from"react";var jS=null,KS=new Set;function H2(e){if(jS!==e){jS=e;for(let o of KS)o()}}function _ie(e){return KS.add(e),()=>{KS.delete(e)}}function iKe(){return Oie(_ie,()=>jS,()=>null)}function W2(e){return bl(e)?.ownerId??null}function G2(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 z2="sf-editor-left-view";function $2(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(z2);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function U2(e){if(!(typeof window>"u"))try{window.localStorage.setItem(z2,e)}catch{}}function j2(e,o){return e==="styles"&&!o?"sections":e}function K2(e,o){return e?"sections":o}import{copyNode as Aie}from"efficient-easel/data";function V2(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=vt(),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 q2={usedOn:e=>{let o=vt(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>fd()?.openPage(e),adopt:(e,o)=>vt()?.adopt(e.props.id,o),nodeOf:e=>vt()?.place(e)??null,detach:e=>{let o=fd()?.config;return o?Aie(e,o):e},removed:()=>fd()?.reload()};import{sharedSectionsOf as zce}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as $ce,scrollPreviewToTop as SH}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as YS,Fragment as cce,jsxs as dce}from"react/jsx-runtime";import{useContext as fce,useEffect as pce,useMemo as JS,useRef as sH}from"react";import{EaselCanvas as uce,repeatCopyAt as mce,useEasel as hce}from"efficient-easel/easel";import{jsx as Q2,Fragment as Uie,jsxs as jie}from"react/jsx-runtime";import{useEffect as eH,useLayoutEffect as Kie}from"react";var pm="data-theme",Y2="light";function Rie(e){return e.getAttribute(pm)===Y2?"light":"dark"}function Lie(e,o){return Rie(e)===o?!1:(o==="light"?e.setAttribute(pm,Y2):e.removeAttribute(pm),!0)}function Fie(e){return Mm(e).getItem(Pm)}function bKe(e,o){Mm(e).setItem(Pm,o)}function Bie(e,o,t=new Date().getHours()){return pw({mode:o.mode,override:Fie(e),switchShown:o.switchShown,hour:t})}function X2(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>Lie(t,Bie(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[pm]}),()=>n.disconnect()}var Die="style";function Nie(e,o){let t=ww(o),r=!1;for(let a of Sw){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function Z2(e,o){let t=e.body;if(!t)return()=>{};let r=()=>Nie(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Die]}),()=>n.disconnect()}import{VIEW_DESKTOP_MIN as Mie,VIEW_TABLET_MIN as Hie}from"efficient-easel/screen/lib/content/view-tiers";var Wie={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=Wie,Gie=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),zie=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(Gie([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 = ${Er};
|
|
100
|
-
var TABLET_MIN = ${Hie}, DESKTOP_MIN = ${Mie};
|
|
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);`,$ie="storefront-fit-words";function J2(e){let o=e.createElement("script");return o.id=$ie,o.textContent=zie,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var Vie=`
|
|
388
|
-
[${Lt}][${Lt}] { cursor: text; }
|
|
389
|
-
`;function oH({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=xe(),n=to(t);return eH(()=>{if(o)return X2(o,{mode:r,switchShown:a})},[o,r,a]),eH(()=>{if(o)return Z2(o,n)},[o,n]),Kie(()=>{if(o)return J2(o)},[o]),jie(Uie,{children:[Q2(xC,{}),Q2("style",{children:Vie}),e]})}import{jsx as VS}from"react/jsx-runtime";import{useEffect as qie,useState as Yie}from"react";import{Banner as Xie}from"efficient-shell/ui";var um={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."},Zie={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."},Jie=um.load,Qie=um.lock,ece=um.conflict,oce=um.save;function tce(e){if(!e)return null;if(e.loadFailed)return i(Jie);if(e.lockHolder)return i(Qie,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(ece);if(e.saveFailed)return i(oce);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(Zie[o.problem],{section:t,name:r})}function rce({report:e}){let o=tce(om(e)),[t,r]=Yie(null);return qie(()=>{o||r(null)},[o]),!o||t===o?null:VS("aside",{className:"sf-canvas-notice",children:VS(Xie,{tone:"warning",onDismiss:()=>r(o),children:o})})}function tH(){return VS(rce,{report:tm()})}import{jsx as mm}from"react/jsx-runtime";import{useState as rH}from"react";import{Banner as ace,Button as nce}from"efficient-shell/ui";import{UndoIcon as sce}from"efficient-shell/icons/efficient";import{useScreenDocument as lce}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as ice}from"efficient-easel/easel";function aH(){let e=fM(),{adapter:o,flushSave:t,reloadFromServer:r}=lce(),a=o.siteVersions,[n,s]=rH(!1),[l,c]=rH(!1),d=async()=>{if(!(!a||n)){s(!0),c(!1);try{await mM({access:a,flushSave:t,reload:r})}catch{c(!0)}finally{s(!1)}}},f=ice({onPress:()=>{d()},busy:n});return e?mm("aside",{className:"sf-canvas-notice",children:mm(ace,{tone:l?"danger":"info",title:e.title,onDismiss:rm,action:a&&e.undo?mm(nce,{variant:"secondary",size:"sm",leftIcon:mm(sce,{}),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 xce,REPEAT_ATTRIBUTE as XS,REPEAT_INDEX_ATTRIBUTE as ZS}from"efficient-easel/draw";import{usePreviewParts as Ice}from"efficient-easel/draw/client";var nH=null;function qS(e){nH=e}function qKe(){return nH}import{ScreenDocumentContext as gce}from"efficient-easel/screen/components/ScreenDocumentContext";function lH(e){let{mirrorHostStyles:o}=Gm(),t=gC(),{sectionBackgroundWidth:r,themeFromDocument:a}=xe(),n=sC(),s=fce(gce),l=pd(s?.docId??null),c=hce(S=>S.appState.data),d=xv(l,c),f=JSON.stringify(d),u=JS(()=>d,[f]),p=JS(()=>({...e.metadata??t??{},...CE(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);pce(()=>(qS(n),()=>qS(null)),[n]);let x=sH(null),I=bce(x),{onDocument:g}=e,v=S=>{x.current=S,g?.(S)};return dce(cce,{children:[YS(aH,{}),YS(tH,{}),YS(uce,{...e,onDocument:v,typing:I,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:oH})]})}function bce(e){let o=Fc(),t=Ice(),r=sH({parts:t});return r.current={parts:t},JS(()=>{let a=(n,s)=>{let l=Df(n,o),c,d=null,f=s??(l?null:qI(null,e.current,n)),u=!l&&f?mce(f):null,p=u?xce(n):null;if(u&&f&&p?.propKey){l=Mf({...u,nodeId:p.nodeId,key:p.propKey},o),c=p.propKey;let v=f.closest(`[${XS}][${ZS}]`),S=`[${XS}="${Nf(v?.getAttribute(XS)??"")}"][${ZS}="${Nf(v?.getAttribute(ZS)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!l)return null;let x=f,I=()=>(x=qI(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?Wn(hT(g)):void 0,colorNameOf:Zo}}:null};return{at:n=>{let s=n.closest(`[${Lt}]`),l=s?.getAttribute(Lt);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>JO(n,o),copyValue:n=>ZO(n,o),onChange:n=>{if(!n.typing){YI(null);return}let s=n.element.closest(`[${Lt}]`)?.getAttribute(Lt)??null;YI(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var yce=nC.mediaFields,Sce=/video|poster|focal|phone/i;function iH(e){return(yce[e]??[]).find(o=>!o.includes("[]")&&!Sce.test(o))??null}var cH={adds:{kind:"block",type:"ImageBlock"},takes:e=>iH(e.type)!==null,replace:(e,o)=>{let t=iH(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 dH={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 hm}from"react/jsx-runtime";import{useState as wce}from"react";import{Button as Cce,Tooltip as kce,toast as fH}from"efficient-shell/ui";import{TemplateIcon as vce}from"efficient-easel/icons";import{useSettledAction as Tce}from"efficient-easel/easel";import{useScreenDocument as Pce}from"efficient-easel/screen/components/ScreenDocumentContext";function uH({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=Pce(),[a,n]=wce(!1),s=async()=>{if(!a){n(!0);try{await r()?t():fH.error(i(pH))}catch{fH.error(i(pH))}finally{n(!1)}}},l=Tce({onPress:()=>{s()},busy:a});return hm(kce,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:hm("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:hm(Cce,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:hm(vce,{size:15}),children:i("Save as Template")})})})}var pH="Your last changes did not save, so the template was not made. Try again.";var Ece="Save your page changes first";function mH(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:Ece}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var hH="storefront-editor:save-as-template";var Ic="ContactLocations",Oce="CityPictures",_ce="CityMaps",Ace=[{key:Oce,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:_ce,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function xH(e=_i){let o=Lr.find(t=>t.sections.some(r=>r.type===Ic))?.key;return!e.includes(Ic)||!o?[]:Ace.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=Jr(Ic);return l?Qu(Ic,l,n)(s.nodeDefaults,s.newNodeId):null}}))}function gH(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Hs(e);if(n)return n(o,t,Xu());if(xk(e)&&a(K)&&a(Rn))return{type:K,props:{...o(K),id:t(K),direction:"column",name:`${r(e)} section`,content:[{type:Rn,props:{...o(Rn),id:t(Rn),...Ro[e]?.headStyle?{headStyle:Ro[e].headStyle}:{},...Ro[e]?.headRowGap?{rowGap:Ro[e].headRowGap}:{},...Ro[e]?.headDescriptionSize?{descriptionSize:Ro[e].headDescriptionSize}:{},...Bi(e)!==Bi(Rn)?{eyebrowLook:Bi(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...IH(e,t)}}]}};if(tr[e]?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=IH(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function IH(e,o){return e==="Cards"?{template:qc(t=>o(t))}:e===dl?{template:uh(t=>o(t))}:{}}import{useEffect as Rce,useState as Lce}from"react";import{useEaselSession as Fce}from"efficient-easel/screen/lib/session-context";function bH(){let e=Fce().chrome?.products?.list,[o,t]=Lce(null);return Rce(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function OH({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=J_(),a=PH().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=js(c=>{c&&(o({kind:"ticker",heroId:c}),$ce(c))},[o]);return rr(()=>{t(s)},[s,t]),rr(()=>{r(l)},[r,l]),{partRows:(c,{rowClick:d})=>{let f=String(c.props.id);return c.type==="Hero"&&$g(c.props)&&uo(vH,{icon:uo(Ka,{type:"ticker",size:13}),name:i(ai),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:d(()=>l(f))},words:a})}}}function _H({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=mp(),a=PH().tree,{appState:n}=TH(p=>p),s=n.data.content??[],l=Bce(s);l.current=s;let c=e,d=Ua.find(p=>li[p]===c.kind),f=d&&"nodeId"in c?ii(String(c.nodeId),d):null,u=js(p=>{let x=sA(p);if(!x)return;let I=l.current.findIndex(v=>String(v.props.id)===x.nodeId);if(I<0)return;let g={kind:li[x.part],nodeId:x.nodeId};o({index:I},g)},[o]);return rr(()=>{t(f)},[f,t]),rr(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:x})=>{let I=String(p.props.id),g=nA(p);if(g.length===0)return null;let v=b=>{let k=ii(I,b.part);return uo(vH,{icon:uo(Ka,{type:b.part==="media"?"heroMedia":"heroImage",size:13}),name:i(b.label),onSelect:()=>u(k),selected:f===k,rowProps:{onClick:x(()=>u(k))},words:a},k)},[S,...C]=g;return gc(kH,{children:[v(S),C.length>0&&uo(Wce,{children:C.map(v)})]})}}}function AH(e,o){return{partRows:(t,r)=>gc(kH,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function Uce(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:c,token:d}=xm(),{hasPreviewLink:f}=t,u=$e(EH()).preview?.draftLink,p=SM(e.data),x=mH({hasTrustedConsole:!!d,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),I=js(()=>{!a||!r||c(hH,{siteId:a,slug:r})},[c,a,r]),g=QN({pageSlug:r,siteId:a,token:d}),v=o.previewHref?.(r)??g;return{barLead:()=>x.visible&&uo(uH,{enabled:x.enabled,reason:x.enabled?"":x.disabledReason,onSaved:I}),barView:()=>f&&r&&uo(tM,{liveHref:v,pageId:n??null,draftLink:u}),mainAction:p}}function jce(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=xm(),{hasSiteTheme:l,explainsSiteSettings:c}=t,d=b=>o.setView(b),[f,u]=yH(us[0].id),[p,x]=yH(!1),{surface:I,setSurface:g}=Z_(),v=()=>{if(l){d("styles"),o.reveal(),SH();return}e.show(mS),e.reveal(),SH()},S={id:"pages",label:i("Pages"),icon:uo(Nce,{}),panel:({onHide:b})=>uo(G_,{activeSurface:I,onPreviewSurface:g,onNavigate:k=>{g(null),s(r?{kind:"template",id:r,pageSlug:k}:{kind:"page",slug:k,siteId:a??void 0})},onClose:b})},C=[];return!l&&c&&C.push({id:"appearance",label:i("Appearance"),icon:uo(Hce,{}),active:e.kind==="website",onSelect:v}),l&&C.push({id:"styles",label:i("Styles"),icon:uo(Mce,{}),panel:({onHide:b,notify:k})=>uo(QD,{tokenRef:n,siteId:a??void 0,onClose:b,onNotify:k,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>x(!1)})}),{railLead:[S],railTrail:C,resolveLeftView:b=>j2(b,l),openSettings:v,openStyles:()=>{u(C_),d("styles")},openPageStyles:l?()=>{u(hs),x(!0),d("styles"),o.reveal()}:c?()=>{e.show(GD),e.reveal()}:void 0}}function Kce(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=xm(),a=TH(s=>s.config),n=EH();rr(()=>(Mh({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Mh(null)),[e,o,t,a]),rr(()=>{let s=vt();if(!s||!r)return;let l=!1;return zce(n).list().then(c=>{l||s.learn(c)}).catch(()=>{}),()=>{l=!0}},[r,n])}function RH(){let e=Fc();return js(o=>{QO(o,e)},[e])}function Vce(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;rr(()=>{H2(s?.type==="BookingBox"&&s.props.region==="confirm"?W2(l(String(s.props.id))):null)},[s?.props.id]);let c=yN(e,o),{capabilities:{hasSiteSettings:d}}=xm();Kce();let{chat:f,setChat:u,setSelected:p,setSelectHandler:x}=up(),I=js(()=>n(zD),[n]),g=a==="chat";rr(()=>{p(g)},[g,p]),rr(()=>{x(I)},[x,I]);let{setOpenHandler:v}=ri(),S=js(()=>n($D),[n]);rr(()=>{v(S)},[v,S]);let C=AH(OH(e),_H(e)),b=Uce(o),k=jce(e,r),T=t.device,F=RH();return{...C,...b,...k,hasOwnRows:P=>P.type===Yu,ownRows:c.renderLocationTree,sectionPressed:c.sectionPressed,onCopyItem:F,wrap:P=>uo(zm.Provider,{value:!0,children:gc(Gce.Provider,{value:T,children:[P,uo(OM,{})]})}),addPanelRow:P=>d?gc("div",{className:"sf-addside-sitewide",children:[uo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:uo(Ka,{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(Dce,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var wH=null,QS=new WeakMap;function qce(e){let o=mC();if(!e||!o)return e;wH!==o&&(wH=o,QS=new WeakMap);let t=QS.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},QS.set(e,t)),t}var Yce={isLockedBlock:(e,o)=>Ap(e,o)||!!(o&&vt()?.heldElsewhere(o.props.id)),duplicateBlocked:tu,nestDepth:(e,o,t)=>o===Ww?$w(e,t):0,newSectionNode:gH,canAddTo:(e,o,t,r)=>qce(N2(e,o,r,t)),blockIsOffered:B2,slotsOf:M2,resolveOnInsert:!0},Xce=new Proxy(dH,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),Zce={labelAtLevel:(e,o,t)=>i(Km(e,o,t)),descriptions:Xce,categoryLabel:e=>{let o=_M(e);return o===void 0?void 0:i(o)},firstSection:AM,blockRowName:G2,rowName:Rp,plainText:ir,Icon:Ka,Thumbnail:ZD,useProducts:bH,presets:xH()},Jce={desktop:2e3,tablet:800,mobile:390},CH="desktop",Qce={options:V_,initial:CH,fluid:CH,widths:Jce,hidesPerView:!0},ede={read:$2,write:e=>U2(e),forSelection:(e,o)=>K2(e,o)},ode={first:Vo,last:Me,firstGroup:Ne,lastGroup:Re,isSectionGroup:Bn,sectionGroupZone:Zk,panelOf:e=>e===Vo?WD:null,get sharedReach(){return Za()?rde:void 0},get shared(){return vt()?q2:void 0},get groupTab(){return Za()?_R:void 0},get groupBadge(){return Za()?oy({type:Re})??void 0:void 0},get changeNotice(){return Za()?AR():void 0},get band(){return Za()?tde:void 0},get groupAccepts(){return Za()?ev:void 0}},tde={foldable:!0},rde=e=>oy(e)??V2(e);function ade(e){return{...AH(OH(e),_H(e)),onCopyItem:RH(),openSettings:()=>e.show(mS)}}function nde(e,o){ON(e,o),qN()}var r7e={useOwnerName:xs,useDocumentLabel:O_,useBridges:Vce,useStandaloneBridges:ade,useDocumentPass:nde,blockRules:Yce,blockLook:Zce,devices:Qce,leftView:ede,pinned:ode,Canvas:lH,canvasDrag:{media:cH},Inspector:jD};export{jt as a,Z as b,_o as c,n5 as d,wt as e,ol as f,Ade as g,yC as h,Rde as i,s5 as j,Lde as k,SC as l,Bc as m,wC as n,Fde as o,no as p,p5 as q,Bde as r,Nde as s,Mde as t,Hde as u,Nc as v,lr as w,se as x,K as y,PC as z,Kde as A,OC as B,Yde as C,Xde as D,ha as E,WC as F,ir as G,U as H,UC as I,ufe as J,qe as K,ga as L,bfe as M,yfe as N,Sfe as O,we as P,qC as Q,wfe as R,Cfe as S,ok as T,ak as U,G as V,Y as W,jc as X,_ as Y,Ye as Z,Br as _,M as $,Ao as aa,sl as ba,Ct as ca,so as da,il as ea,ae as fa,Nr as ga,Vc as ha,fh as ia,ph as ja,sk as ka,ik as la,fk as ma,ape as na,mh as oa,x4 as pa,I4 as qa,fl as ra,An as sa,Ge as ta,ipe as ua,pl as va,Ro as wa,Xc as xa,ppe as ya,Ik as za,upe as Aa,mpe as Ba,Zc as Ca,Jc as Da,Ln as Ea,ul as Fa,S4 as Ga,hh as Ha,E4 as Ia,gh as Ja,Tk as Ka,lo as La,Lo as Ma,ko as Na,cl as Oa,Ek as Pa,hl as Qa,Ok as Ra,Ype as Sa,Xpe as Ta,M4 as Ua,_k as Va,Rk as Wa,Zpe as Xa,Jpe as Ya,Fk as Za,bh as _a,W4 as $a,G4 as ab,$4 as bb,Dk as cb,od as db,Qpe as eb,Go as fb,xl as gb,Sh as hb,wh as ib,eue as jb,oue as kb,td as lb,tue as mb,Il as nb,vh as ob,Th as pb,rue as qb,Mk as rb,Kb as sb,$e as tb,Od as ub,au as vb,FDe as wb,er as xb,or as yb,bo as zb,jDe as Ab,ry as Bb,HAe as Cb,yp as Db,pi as Eb,ui as Fb,kA as Gb,WAe as Hb,vA as Ib,GAe as Jb,pX as Kb,TA as Lb,zAe as Mb,EA as Nb,_N as Ob,UGe as Pb,ide as Qb,ne as Rb,i as Sb,Oo as Tb,AN as Ub,VGe as Vb,ho as Wb,D$ as Xb,cI as Yb,qye as Zb,xE as _b,Zye as $b,_t as ac,W$ as bc,Qye as cc,eSe as dc,oSe as ec,tSe as fc,nf as gc,rSe as hc,sf as ic,aSe as jc,nSe as kc,bE as lc,yE as mc,U$ as nc,j$ as oc,cSe as pc,fSe as qc,pSe as rc,uSe as sc,mSe as tc,SE as uc,Ra as vc,Z$ as wc,ISe as xc,J$ as yc,gSe as zc,io as Ac,Q$ as Bc,bSe as Cc,ySe as Dc,SSe as Ec,wSe as Fc,CSe as Gc,kSe as Hc,Zn as Ic,vSe as Jc,kZ as Kc,o1 as Lc,t1 as Mc,r1 as Nc,Ss as Oc,Ep as Pc,tRe as Qc,wye as Rc,Dl as Sc,p$ as Tc,Xx as Uc,Jx as Vc,Cye as Wc,kye as Xc,Qx as Yc,JP as Zc,vye as _c,Xd as $c,aye as ad,o$ as bd,MP as cd,nye as dd,sye as ed,zR as fd,hT as gd,Uhe as hd,zr as id,T3 as jd,jhe as kd,Khe as ld,ix as md,Vhe as nd,qhe as od,Yhe as pd,IT as qd,lx as rd,E3 as sd,Xhe as td,Zhe as ud,Jhe as vd,Qhe as wd,$R as xd,nu as yd,KR as zd,tNe as Ad,rNe as Bd,Wl as Cd,Jt as Dd,vl as Ed,rxe as Fd,axe as Gd,fo as Hd,an as Id,Q as Jd,Es as Kd,re as Ld,oe as Md,de as Nd,ce as Od,ye as Pd,PNe as Qd,pe as Rd,Os as Sd,ly as Td,Li as Ud,Fi as Vd,XR as Wd,ANe as Xd,Ooe as Yd,ZR as Zd,FNe as _d,BNe as $d,JR as ae,_oe as be,QR as ce,Aoe as de,Bi as ee,eL as fe,MNe as ge,cy as he,GNe as ie,zNe as je,$Ne as ke,UNe as le,jNe as me,KNe as ne,bd as oe,YNe as pe,XNe as qe,oL as re,ZNe as se,Boe as te,Doe as ue,JNe as ve,Noe as we,QNe as xe,tL as ye,aMe as ze,nMe as Ae,sMe as Be,lMe as Ce,iMe as De,cMe as Ee,Woe as Fe,Goe as Ge,dMe as He,fMe as Ie,pMe as Je,uMe as Ke,mMe as Le,hMe as Me,xMe as Ne,IMe as Oe,gMe as Pe,uu as Qe,sL as Re,Joe as Se,vMe as Te,TMe as Ue,Yo as Ve,sn as We,Ls as Xe,s2e as Ye,l2e as Ze,i2e as _e,jL as $e,KL as af,Fte as bf,T2e as cf,VL as df,qL as ef,YL as ff,O2e as gf,R2e as hf,vu as if,XL as jf,Hte as kf,L2e as lf,pz as mf,Et as nf,gbe as of,bbe as pf,ybe as qf,Sbe as rf,Ud as sf,wbe as tf,ef as uf,Ml as vf,Lye as wf,Fye as xf,Bye as yf,rE as zf,aE as Af,nE as Bf,Dye as Cf,Ne as Df,Re as Ef,wue as Ff,Jk as Gf,id as Hf,LR as If,X2e as Jf,Z2e as Kf,sF as Lf,J2e as Mf,Q2e as Nf,rs as Of,Pl as Pf,FI as Qf,NI as Rf,Af as Sf,Lt as Tf,zke as Uf,$ke as Vf,Uke as Wf,jke as Xf,XK as Yf,ZK as Zf,Kke as _f,as as $f,HI as ag,Vke as bg,qke as cg,Yf as dg,cg as eg,dg as fg,is as gg,Wa as hg,vPe as ig,Zl as jg,M0 as kg,TPe as lg,bg as mg,PPe as ng,EPe as og,OPe as pg,r7 as qg,_Pe as rg,l7 as sg,i7 as tg,APe as ug,RPe as vg,d7 as wg,xF as xg,_y as yg,gi as zg,j1 as Ag,K1 as Bg,bi as Cg,E1 as Dg,Nb as Eg,vLe as Fg,Ja as Gg,Hb as Hg,A1 as Ig,R1 as Jg,Wb as Kg,tQ as Lg,L1 as Mg,Dp as Ng,F1 as Og,_He as Pg,SF as Qg,AHe as Rg,RHe as Sg,LHe as Tg,qi as Ug,Ou as Vg,WHe as Wg,Cr as Xg,YHe as Yg,PF as Zg,XHe as _g,OF as $g,kr as ah,yo as bh,Au as ch,AF as dh,t5e as eh,Ru as fh,RF as gh,l5e as hh,w5e as ih,UF as jh,Uy as kh,jF as lh,P5e as mh,E5e as nh,O5e as oh,jy as ph,_5e as qh,A5e as rh,KF as sh,nB as th,dn as uh,q5e as vh,Y5e as wh,X5e as xh,Z5e as yh,J5e as zh,Ure as Ah,Nu as Bh,u4e as Ch,GI as Dh,tve as Eh,zI as Fh,NO as Gh,C4e as Hh,vB as Ih,TB as Jh,z4e as Kh,Mu as Lh,OB as Mh,_B as Nh,V4e as Oh,aae as Ph,nae as Qh,sae as Rh,q4e as Sh,n6e as Th,pae as Uh,uae as Vh,MB as Wh,s6e as Xh,l6e as Yh,P6e as Zh,sD as _h,E6e as $h,lD as ai,_6e as bi,Dae as ci,hD as di,M6e as ei,_D as fi,v$e as gi,D$e as hi,MS as ii,N$e as ji,M$e as ki,FM as li,U$e as mi,j$e as ni,GM as oi,K$e as pi,WT as qi,u_ as ri,gEe as si,bEe as ti,W7 as ui,yEe as vi,SEe as wi,wEe as xi,CEe as yi,G7 as zi,kEe as Ai,vEe as Bi,TEe as Ci,PEe as Di,j7 as Ei,EEe as Fi,_le as Gi,jM as Hi,Z$e as Ii,uc as Ji,VM as Ki,Hr as Li,tme as Mi,w6 as Ni,Kh as Oi,Sl as Pi,rme as Qi,sme as Ri,k6 as Si,Ev as Ti,lme as Ui,wa as Vi,O6 as Wi,ume as Xi,mme as Yi,wl as Zi,hme as _i,xme as $i,Zh as aj,Lv as bj,Cme as cj,tA as dj,N0e as ej,Ug as fj,ja as gj,G0e as hj,z0e as ij,zY as jj,$0e as kj,ii as lj,sA as mj,lA as nj,gUe as oj,zS as pj,QM as qj,YM as rj,WS as sj,Hle as tj,bUe as uj,am as vj,mc as wj,yUe as xj,SUe as yj,wUe as zj,Z4 as Aj,fue as Bj,J4 as Cj,Q4 as Dj,mue as Ej,e6 as Fj,o6 as Gj,hue as Hj,xue as Ij,Iue as Jj,gue as Kj,o2 as Lj,hc as Mj,xc as Nj,lm as Oj,r2 as Pj,Us as Qj,a2 as Rj,im as Sj,cm as Tj,dm as Uj,n2 as Vj,s2 as Wj,l2 as Xj,i2 as Yj,c2 as Zj,p2 as _j,u2 as $j,YUe as ak,XUe as bk,ZUe as ck,JUe as dk,Pt as ek,aie as fk,b2 as gk,sie as hk,S2 as ik,w2 as jk,k2 as kk,xie as lk,vje as mk,eA as nk,R0e as ok,Fje as pk,Bje as qk,wie as rk,Wie as sk,I$ as tk,Vn as uk,Pye as vk,dr as wk,$v as xk,Hv as yk,ex as zk,D6 as Ak,Lme as Bk,Id as Ck,jv as Dk,N6 as Ek,M6 as Fk,H6 as Gk,Dme as Hk,Nme as Ik,Mme as Jk,Hme as Kk,Oye as Lk,_ye as Mk,Aye as Nk,Mue as Ok,zue as Pk,qKe as Qk,hFe as Rk,U1 as Sk,ai as Tk,T0e as Uk,J_ as Vk,P0e as Wk,E0e as Xk,O0e as Yk,UWe as Zk,eN as _k,oN as $k,tN as al,vE as bl,xU as cl,To as dl,st as el,cf as fl,La as gl,WSe as hl,GSe as il,$Se as jl,USe as kl,jSe as ll,KSe as ml,VSe as nl,YSe as ol,ff as pl,PE as ql,pI as rl,gU as sl,EE as tl,OE as ul,Tme as vl,_me as wl,gd as xl,yd as yl,kl as zl,Xv as Al,Yme as Bl,Xme as Cl,tT as Dl,rx as El,C3 as Fl,Fhe as Gl,lxe as Hl,mxe as Il,hxe as Jl,Z3 as Kl,$o as Ll,Tl as Ml,yx as Nl,Sx as Ol,aIe as Pl,DT as Ql,nIe as Rl,sIe as Sl,lIe as Tl,$T as Ul,jT as Vl,ur as Wl,QT as Xl,BG as Yl,Tge as Zl,iP as _l,Lge as $l,dP as am,mP as bm,hP as cm,xP as dm,IP as em,gP as fm,bP as gm,Dx as hm,ez as im,oz as jm,Rl as km,Nx as lm,SP as mm,obe as nm,rz as om,tbe as pm,rbe as qm,abe as rm,CP as sm,ibe as tm,sz as um,cbe as vm,dbe as wm,iz as xm,Mx as ym,dz as zm,mbe as Am,fz as Bm,hbe as Cm,Gx as Dm,_be as Em,EP as Fm,xz as Gm,Rbe as Hm,Ll as Im,_z as Jm,Jbe as Km,n$ as Lm,mye as Mm,l$ as Nm,hye as Om,xye as Pm,Iye as Qm,Xn as Rm,rf as Sm,zye as Tm,$ye as Um,Uye as Vm,uE as Wm,Kye as Xm,Xr as Ym,yr as Zm,Ba as _m,OCe as $m,_Ce as an,ACe as bn,RCe as cn,LCe as dn,FCe as en,BCe as fn,HCe as gn,WCe as hn,_j as in,GCe as jn,zCe as kn,$Ce as ln,UCe as mn,jCe as nn,KCe as on,VCe as pn,qCe as qn,Fj as rn,YCe as sn,vI as tn,XCe as un,yf as vn,jo as wn,gr as xn,iO as yn,_l as zn,cO as An,wf as Bn,ZCe as Cn,JCe as Dn,tK as En,QCe as Fn,eke as Gn,oke as Hn,tke as In,rke as Jn,ake as Kn,rt as Ln,nke as Mn,ske as Nn,uf as On,Cf as Pn,kf as Qn,EI as Rn,Tf as Sn,lke as Tn,xO as Un,ike as Vn,kK as Wn,cke as Xn,dke as Yn,bO as Zn,fke as _n,pke as $n,uke as ao,mke as bo,hke as co,xke as do,RI as eo,Ike as fo,SO as go,wO as ho,gke as io,os as jo,NK as ko,bke as lo,yke as mo,PRe as no,ERe as oo,Rp as po,Rb as qo,qRe as ro,YRe as so,T1 as to,Qo as uo,mi as vo,QX as wo,HA as xo,b1e as yo,y1e as zo,S1e as Ao,w1e as Bo,$A as Co,T1e as Do,P1e as Eo,E1e as Fo,w0 as Go,C0 as Ho,fp as Io,z_ as Jo,$_ as Ko,j_ as Lo,pp as Mo,i0e as No,c0e as Oo,up as Po,LY as Qo,b0e as Ro,ri as So,C0e as To,Z_ as Uo,Fn as Vo,Y4 as Wo,iue as Xo,cue as Yo,YBe as Zo,XBe as _o,ZBe as $o,B0e as ap,mp as bp,bde as cp,eV as dp,uve as ep,mve as fp,GO as gp,hve as hp,xve as ip,rg as jp,K0 as kp,KPe as lp,VPe as mp,qPe as np,YPe as op,p_ as pp,HEe as qp,WEe as rp,cA as sp,TAe as tp,xA as up,Si as vp,WQ as wp,EFe as xp,BFe as yp,zp,Me as Ap,ou as Bp,Mt as Cp,nN as Dp,ec as Ep,sN as Fp,lN as Gp,YWe as Hp,XWe as Ip,YN as Jp,LS as Kp,XN as Lp,N2 as Mp,iKe as Np,pm as Op,Rie as Pp,Lie as Qp,bKe as Rp,pde as Sp,xde as Tp,r7e as Up};
|