efficient-storefront-blocks 0.97.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 +28 -0
- package/dist/chunks/EditorPreviewCheckout-2FW4VEOK.js +4 -0
- package/dist/chunks/{SiteEditorProvider-VZUU5OPZ.js → SiteEditorProvider-LW5QSBKM.js} +1 -1
- package/dist/chunks/chunk-4QN263UJ.js +412 -0
- package/dist/chunks/chunk-PWSMCGXO.js +1 -0
- package/dist/chunks/{chunk-NYEB6V2R.js → chunk-SEIKSSUW.js} +1 -1
- package/dist/chunks/chunk-XEZ7BYVZ.js +1 -0
- package/dist/chunks/{fitment-data-MCGKHSA4.js → fitment-data-BRGBDG7Y.js} +1 -1
- package/dist/consent.js +1 -1
- package/dist/contract.js +11 -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 +211 -43
- package/dist/links.js +1 -1
- 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/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/Header.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.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 +1 -1
- 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/catalog/CatalogFilterBar.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/lib/api/index.d.ts +3 -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/countries.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/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/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-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 +10 -1
- package/dist/words.js +4 -4
- package/package.json +5 -4
- package/dist/chunks/EditorPreviewCheckout-O7F36ZXB.js +0 -4
- package/dist/chunks/chunk-AOZEO73W.js +0 -401
- package/dist/chunks/chunk-MXWQOFM6.js +0 -1
- package/dist/chunks/chunk-SQ62RGWV.js +0 -1
- /package/dist/chunks/{chunk-AOZEO73W.js.LEGAL.txt → chunk-4QN263UJ.js.LEGAL.txt} +0 -0
- /package/dist/chunks/{chunk-UFEEFZ5M.js → chunk-GOHV3G3C.js} +0 -0
|
@@ -0,0 +1,412 @@
|
|
|
1
|
+
import{$ as Zd,$b as lk,Ab as Zn,Ad as Qn,Ba as Le,Bd as vk,Ca as eo,Cd as sc,Da as MC,Db as ek,Dd as Tk,Ea as Vn,Eb as wh,Fa as HC,Fc as fk,Ga as _a,Gd as Pk,Hb as ok,I as Xt,Ib as Ch,Ja as Kr,Ka as Ih,L as jn,Ld as lc,M as _t,N as bl,Qa as WC,Ra as UC,Rc as pk,Rd as ic,Sa as bh,Sb as Aa,Sc as Ph,Ta as uo,Tc as uk,Ua as GC,Ub as tk,Uc as Eh,Va as zC,Vc as mk,W as Oa,Wa as Yn,Wb as rk,Wc as hk,Wd as es,Xa as $o,Xc as xk,Y as uh,Yb as ak,Yc as nc,Z as mh,Za as qn,Zb as nk,_a as Xn,_b as sk,_c as gk,_d as Vr,a as G,ae as Yr,b as He,bb as $C,bc as Jt,be as dc,c as Ot,cc as ik,d as $n,de as Ek,e as OC,ea as hh,eb as yl,f as Sr,fa as Jd,fc as dk,fd as Oh,g as fh,ga as LC,gb as KC,gc as Qt,h as Kn,ha as FC,hb as yh,hc as kh,he as Ok,ia as BC,ja as xh,je as _k,ka as DC,kb as Qd,kc as vh,l as Il,lb as jC,lc as wr,mb as VC,mc as oc,n as j,nb as YC,nc as Ko,ne as ge,o as qd,ob as ec,oc as Ie,pb as qC,pc as tc,q as Xd,qb as XC,qc as ck,qd as Ik,rc as Sl,rd as bk,re as Bk,sb as ZC,sc as tt,sd as yk,se as Dk,t as io,tb as Sh,tc as wl,u as _C,uc as rc,ud as Sk,ue as pc,v as AC,vb as JC,vc as Jn,vd as wk,ve as Nk,wa as NC,wb as No,wc as Th,wd as Ck,we as Mk,x as RC,xa as gh,xb as jr,yb as QC,yc as ac,yd as kk,z as ph,zb as Zt}from"./chunk-XEZ7BYVZ.js";import{c as Ak,d as cc,e as fc,i as Rk,j as qr,k as Lk,l as Fk,p as _h}from"./chunk-GOHV3G3C.js";var Z=e=>typeof e=="string"&&e?e:void 0;var Wk="en",uc=null,Uk=Wk,Gk=null;function Mue(e,o,t){uc=e??null,Uk=o||Wk,Gk=t??null}function se(){return Gk}function Ah(){return Uk}function zk(){return uc}function Hk(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>He(o,r)?String(G(o,r)):t):e}function i(e,o){let t=uc?G(uc,e):void 0;if(typeof t=="function"){try{let r=Z(t(o??{}));if(r)return r}catch{}return Hk(e,o)}return Hk(Z(t)??e,o)}function Mo(e,o,t,r){return i(t===1?e:o,{...r,n:t})}import{jsx as Rh,Fragment as w6,jsxs as C6}from"react/jsx-runtime";import{createContext as k6,useContext as v6}from"react";var T6={mirrorHostStyles:!0,css:null,fontHrefs:[]},$k=k6(T6);function Gue({value:e,children:o}){return Rh($k.Provider,{value:e,children:o})}function Lh(){return v6($k)}function Kk(){let{css:e,fontHrefs:o}=Lh();return C6(w6,{children:[o.map(t=>Rh("link",{rel:"stylesheet",href:t},t)),e?Rh("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as P6}from"react/jsx-runtime";import{createContext as E6,useContext as O6}from"react";var jk=E6(void 0);function jue({metadata:e,children:o}){return P6(jk.Provider,{value:e,children:o})}var Vk=()=>O6(jk);import{jsx as ko,Fragment as o6,jsxs as Vd}from"react/jsx-runtime";import{useCallback as hl,useEffect as br,useRef as cue,useState as Z5}from"react";import{SettingsSwitch as fue}from"efficient-easel/panel";import{PagesIcon as pue,StylesIcon as uue}from"efficient-easel/rail";import{PaletteIcon as mue}from"efficient-shell/icons/efficient";import{Subtree as hue,TreeRow as t6}from"efficient-easel/tree";import{useEasel as r6}from"efficient-easel/easel";import{useEaselStrings as a6}from"efficient-easel/strings";import{createContext as _6,useContext as A6}from"react";var Fh=_6(!1),que=()=>A6(Fh);import{useMemo as R6,useRef as L6}from"react";import{useEaselApi as F6}from"efficient-easel/easel";import{useSectionOps as B6}from"efficient-easel/screen/lib/document/use-section-ops";function mc(){let e=F6(),o=B6(),t=L6(o);return t.current=o,R6(()=>({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 o7}from"efficient-easel/draw";import{insertAt as t7,moveTo as r7,removeAt as a7}from"efficient-easel/fields";function er(e,o){let t=globalThis,r=Symbol.for(e),a=t[r];return a===void 0&&(a=o(),t[r]=a),a}function Cl(){return er("efficient.slot-field-blocks",()=>new Set)}var mo="dataSource",Cr="dataSourceOptions",D6="dataRows",At="countKey",kl="counts",lme="location-payment-methods",Xk="shop-payment-methods",ime="delivery-options",Zk="blog-categories",Bh="dealers";function N6(e){return typeof e.open=="function"}var Jk=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/;function Qk(e){return typeof e=="string"&&Jk.test(e)}var Yk=new Set([Bh]);function vl(){return er("efficient.block-sources",()=>({sources:new Map,revision:0}))}var M6=e=>[e?.key,e?.label,e?.value].every(o=>typeof o=="string"&&o.trim()!==""),H6=e=>[e?.key,e?.label].every(o=>typeof o=="string"&&o.trim()!==""),qk=e=>typeof e=="string"&&e.trim()!=="";function W6(e){if(!e||!qk(e.label))return null;if(N6(e))return{label:e.label.trim(),open:e.open};let o=e.href;return qk(o)?{label:e.label.trim(),href:o.trim()}:null}function U6(e){if(typeof e.key!="string"||!Jk.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=>Cl().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=W6(e.edit);return{key:e.key,label:e.label.trim(),blocks:[...e.blocks],...e.sample?{sample:e.sample.map(r=>tv(r)).filter(r=>r!==null)}:{},...Array.isArray(e.choices)?{choices:e.choices.filter(M6)}:{},...Array.isArray(e.fields)?{fields:e.fields.filter(H6).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 dme(e){let o=e.map(U6),t=vl();for(let r of o)t.sources.set(r.key,r);o.length&&(t.revision+=1)}function ev(e){let o=[...vl().sources.values()],t=[...o.filter(r=>!Yk.has(r.key)),...o.filter(r=>Yk.has(r.key))];return e===void 0?t:t.filter(r=>r.blocks.includes(e))}function hc(e){return vl().sources.get(e)??null}function ov(e){return vl().sources.get(e)?.choices??[]}function cme(){return vl().revision}function oo(e){let o=e?.[mo];return typeof o=="string"?o.trim():""}function tv(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 G6(e){let o=e?.[D6];return Array.isArray(o)?o.map(tv).filter(t=>t!==null):null}function fme(e,o,t=[]){let r=G6(e);if(r!==null&&(r.length||!o))return{rows:r,sample:!1};if(!o)return{rows:[],sample:!1};let a=hc(oo(e))?.sample;return{rows:a?.length?a:t,sample:!0}}import{isNodeList as c3}from"efficient-easel/data";var rv=["general","commerce","service"],Xr=[{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"}]},{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:"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:"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"}]},{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"},{type:"DocTabs",label:"Tab Bar",set:"general"},{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Banner",label:"Banner",set:"general"}]}];function mme(){return Object.fromEntries(Xr.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var z6="2027-02-05",av={CategoryBar:{label:"Category bar",note:`The reviewer, 2026-11-06 (the page headers and the tab bars become TWO Layouts rows, Page Header and Tab Bar): Category Bar folds into the Tab Bar. Retired from the Add menu with no second preset.
|
|
2
|
+
|
|
3
|
+
WHAT REPLACES IT: Tab Bar, a Box pinned under the header that stays above the sections after it, with a line below, holding the Menu block (One row, Menu style Tabs, Current page). Set the Menu's content to Blog categories: the blog's own categories, most posts first, each with its count in its cell (the host seeds the count card, Count on). Its converter row (\`section-to-box-rows-tabbar\` \`categoryBar\`, OFF) draws that bar for a stored page that moves later.
|
|
4
|
+
|
|
5
|
+
WHAT A MERCHANT LOSES: typed tabs with typed counts (the Menu draws the blog's categories, or a Console menu); the Archive and RSS links at the bar's right end (a Box beside the Menu holds Buttons, if wanted); the first tab marked when no page matches (the Menu marks the page's own entry); the blur behind the bar.
|
|
6
|
+
|
|
7
|
+
0 Category Bars are stored on the US sites (34 pages, draft and published; read only, 2026-11-09). Old sites stay as they are (owner, 2026-11-06).
|
|
8
|
+
|
|
9
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT. A page holding a Category Bar still renders through it and can still be edited; no document is rewritten. Delete the component when CategoryBar is on SECTION_TO_BOX_ON and the stored count on the US sites is 0.`},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).
|
|
10
|
+
|
|
11
|
+
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.
|
|
12
|
+
|
|
13
|
+
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.
|
|
14
|
+
|
|
15
|
+
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).
|
|
16
|
+
|
|
17
|
+
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).
|
|
18
|
+
|
|
19
|
+
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.
|
|
20
|
+
|
|
21
|
+
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.
|
|
22
|
+
|
|
23
|
+
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).
|
|
24
|
+
|
|
25
|
+
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).
|
|
26
|
+
|
|
27
|
+
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\`).
|
|
28
|
+
|
|
29
|
+
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.
|
|
30
|
+
|
|
31
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT, until the stored nodes move (delete date ${z6}). 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).
|
|
32
|
+
|
|
33
|
+
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.
|
|
34
|
+
|
|
35
|
+
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.
|
|
36
|
+
|
|
37
|
+
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).
|
|
38
|
+
|
|
39
|
+
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.
|
|
40
|
+
|
|
41
|
+
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).
|
|
42
|
+
|
|
43
|
+
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).
|
|
44
|
+
|
|
45
|
+
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.
|
|
46
|
+
|
|
47
|
+
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.
|
|
48
|
+
|
|
49
|
+
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.
|
|
50
|
+
|
|
51
|
+
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).
|
|
52
|
+
|
|
53
|
+
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.
|
|
54
|
+
|
|
55
|
+
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).
|
|
56
|
+
|
|
57
|
+
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.
|
|
58
|
+
|
|
59
|
+
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.
|
|
60
|
+
|
|
61
|
+
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.
|
|
62
|
+
|
|
63
|
+
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).
|
|
64
|
+
|
|
65
|
+
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.`},EuTyreLabel:{label:"EU Tyre Label",note:`Owner, 2026-10-10 (approved): the EU Tyre Label becomes a Spec Table display chip. One place for a tyre's sheet, not two sections.
|
|
66
|
+
|
|
67
|
+
WHAT REPLACES IT: the Spec Table's "EU tyre label" Display chip (efficient-storefront-blocks, default off), which draws this page's grades under the tyre sheet; and the EU Tyre Label block (\`EuTyreLabelBlock\`, efficient-storefront-blocks), the same grades as a block of their own. Both read the grades live through the one grades draw (\`EuTyreLabelGrades\`), as this section did. Default on for sites that sell to the EU or UK waits for a site market source (a later step).
|
|
68
|
+
|
|
69
|
+
WHAT A MERCHANT LOSES: the label as a section of its own, with its fixed head ("EU tyre label.") and its section number (\`num\`, its only field). The grades, their source line and the live read are not lost.
|
|
70
|
+
|
|
71
|
+
NO CONVERTER ROW: 0 EU Tyre Labels are stored on the US and AU sites (inovit_us and inovit_au, \`layout\` and \`published_layout\`; read only, 2026-11-10). Old sites stay as they are (owner, 2026-11-06).
|
|
72
|
+
|
|
73
|
+
THE TYPE KEY STAYS AND SO DOES THE COMPONENT (efficient-storefront-blocks EuTyreLabels). A stored EU Tyre Label still renders through it and can still be edited, its 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.'}},Nh=Object.fromEntries(Object.entries(av).map(([e,o])=>[e,o.note])),hme=["Grid","Spacer","TyreFitment"],xme=Array.from(new Set([...Xr.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(Nh)])),$6=Object.fromEntries(Object.entries(av).map(([e,o])=>[e,o.label])),xc={...$6,...Object.fromEntries(Xr.flatMap(e=>e.sections.map(o=>[o.type,o.label])))},K6={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",CategoryBar:"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",EuTyreLabel:"commerce",PaymentBadges:"general",Gallery:"commerce",EmailFormBlock:"service",SocialLogosBlock:"service",PaymentLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},Dh={...K6,...Object.fromEntries(Xr.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function nv(e){return G(Dh,e)}function Mh(e){return Object.keys(Dh).filter(o=>G(Dh,o)===e).sort()}var gme=Mh("general"),Ime=Mh("commerce"),bme=Mh("service"),Hh="Flex",kr="Box",yme=`${kr}es`;function j6(e){return e==="section"?"Blank section":kr}function Wh(e,o,t){return e===Hh?j6(o):t}var re="content",K="Flex",V6="Text & media",Y6="Layout & structure",lv=[{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"}],q6=[...lv,{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:V6})),X6=(Xr.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:Y6})),sv=[...q6,...X6],Uh=[...lv,{type:"HeroGroup",label:kr}],kme=Uh.map(e=>e.type),Z6=1,J6=Uh.filter(e=>e.type!=="HeroGroup");function Q6(e){return e<Z6?Uh:J6}var eW={Flex:{slot:re,choices:()=>sv},Grid:{slot:re,choices:()=>sv},HeroGroup:{slot:re,choices:Q6}};function iv(e,o=0){let t=G(eW,e);return t?{slot:t.slot,choices:t.choices(o)}:null}import{applyMark as Ame,markupTools as Rme,MARKUP_TOOLS as Lme,COPY_FIELD_TOOLS as Fme,STOREFRONT_MARKUP as Bme,tokenizeInline as Dme,stripInline as Nme,isSafeLinkHref as hv}from"efficient-shell/markup";import{applyMark as uW,clearStyle as mW,markedAt as hW,markupTools as xW,MARKUP_TOOLS as gW,parseMarkup as IW,RETIRED_MARKS as bW,STOREFRONT_MARKUP as yW,tokenizeInline as Hme}from"efficient-shell/markup";var Ra=["highlight","strong","quiet"],La={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},or={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},pv=Object.fromEntries(Ra.map(e=>[or[e].kind,e])),uv="data-sf-ws",oW=["accent","text","labels"],Zr={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},tW=80,rW=120,aW=100,nW=900,sW=.5,lW=3,iW=-.1,dW=.5,cW=3,Gh={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},fW={highlight:{...Gh},strong:{...Gh},quiet:{...Gh}};function dv(e,o,t){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,o),t))}function cv(e,o,t){if(typeof e!="number"||!Number.isFinite(e))return null;let r=10**cW;return Math.round(Math.min(Math.max(e,o),t)*r)/r}function fv(e){return typeof e=="boolean"?e:null}function pW(e){let o=typeof e?.font=="string"&&Ot.some(r=>r.key===e.font)?e.font:null,t=typeof e?.colour=="string"&&oW.includes(e.colour)?e.colour:null;return{font:o,size:dv(e?.size,tW,rW),weight:dv(e?.weight,aW,nW),bold:fv(e?.bold),italic:fv(e?.italic),lineGap:cv(e?.lineGap,sW,lW),textGap:cv(e?.textGap,iW,dW),colour:t}}function mv(e){let o={};for(let t of Ra)o[t]=e&&t in e&&e[t]?pW(e[t]):{...fW[t]};return o}function Pme(e){let o=mv(e),t={};for(let r of Ra){let a=o[r],n=`--sf-ws-${r}`;if(a.font){let s=Ot.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`]=Zr[a.colour])}return t}function Eme(e){let o=e?.word_styles??void 0,t={};for(let r of Ra)o&&r in o&&(t[r]=o[r]??null);return mv(t)}var SW=new Set(["strong"]),xv=Ra.map(e=>({open:or[e].delimiter,close:or[e].delimiter,kind:or[e].kind,...SW.has(e)?{wordStart:!0}:{}})),Ume=[{style:or.highlight.kind,label:La.highlight,title:`${La.highlight} word style`},{style:or.strong.kind,label:La.strong,title:`${La.strong} word style`},{style:or.quiet.kind,label:La.quiet,title:`${La.quiet} word style`}],wW=new Set(xv.map(e=>e.open)),Fa=[...yW.filter(e=>!wW.has(e.open)),...xv];function zh(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function os(e){return IW(typeof e=="string"?e:"",Fa)}var CW=gW.map(e=>e.style).filter(e=>!bW.includes(e)).filter(e=>Fa.some(o=>o.kind===e));function gv(){return xW(CW)}var Iv=Object.fromEntries(Ra.map(e=>[or[e].kind,or[e].delimiter]));function bv(e,o,t,r){let a=Iv[r];if(!a)return uW(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 d=n||"styled text";return{text:e.slice(0,o)+a+d+a+e.slice(t),selectionStart:o+a.length,selectionEnd:o+a.length+d.length}}function yv(e,o,t,r){let a=Iv[r];return a?o>=a.length&&e.slice(o-a.length,o)===a&&e.slice(t,t+a.length)===a:hW(e,o,t,r)}function Ba(e){return e.replace(/==(.+?)==/g,(o,t)=>t.startsWith("_")&&t.endsWith("_")?o:`==_${t}_==`)}function vr(e){return os(e).map(o=>zh(o)+wv(o.children)).join(`
|
|
74
|
+
`)}function Sv(e,o,t){return mW(e,o,t,Fa)}function wv(e){return e.map(o=>o.kind==="text"?o.text:wv(o.children)).join("")}function Gme(e){let o=t=>t.some(r=>r.kind==="link"||"children"in r&&o(r.children));return os(e).some(t=>o(t.children))}var tr={min:0,max:360,step:1},Cv="angle";function Kme(e){let o=j(e);if(o===void 0)return null;let t=Math.min(tr.max,Math.max(tr.min,o));return t===tr.min||t===tr.max?null:{rotate:`${t}deg`}}import{MEDIA_ZONES as kW,MEDIA_ZONE_LABELS as vW}from"efficient-easel/screen/lib/content/media-zones";import{HOVER_MOTION as TW,hoverKindsOf as Ic,motionSeconds as gc}from"efficient-shell/format";var qe="hover",Pr="_gHover",Na={none:"None",nextImage:"Show next image",rotate:"Rotate",zoom:"Zoom",lift:"Lift",mono:"Black and white"},rr="highlight",Kh="Highlight",jh=["none",rr],Vh={none:Na.none,[rr]:Kh};function PW(e){return e[qe]===rr?rr:"none"}var Zme="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)]",Jme="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 Qme(e,o){return PW(e)!==rr?null:{"--sf-hl-bg":o("surface"),"--sf-hl-ink":o("main")}}var bc=Ic(["none","lift"]);function Tv(e){let o=e[qe];return bc.includes(o)?o:"none"}var yc=Ic(["none","nextImage","rotate"]),Se={kind:qe,angle:"hoverAngle",duration:"hoverDuration",delay:"hoverDelay",mediaKind:"hoverKind",mediaGroup:"hoverGroup",cover:"hoverCover"},Tl="spinOnHover",kv=tr,Pv={ProductGrid:"rotate",RelatedProducts:"rotate",AlloyWheelsListing:"none"},Ev=Object.keys(Pv);function Yh(e){return Pv[e]??"none"}var qh=TW.rotateFallbackDeg,EW=e=>e==="rendering"?"renderings":e,OW=e=>e==="renderings"?"rendering":e,Sc=Object.freeze(kW.filter(e=>e!=="videos").map(EW)),Ov=Object.freeze(Object.fromEntries(Sc.map(e=>[e,vW[OW(e)]]))),Xh=["finish","first"],_v={finish:"Same finish",first:"First group"},Zh=["card","picture"],Av={card:"Whole card",picture:"Picture"},Da={kind:"photos",group:"finish",cover:"card"},$h=(e,o,t)=>e.includes(o)?o:t;function Rv(e){return{kind:$h(Sc,e[Se.mediaKind],Da.kind),group:$h(Xh,e[Se.mediaGroup],Da.group),cover:$h(Zh,e[Se.cover],Da.cover)}}function wc(){return{field:Se.kind,is:"nextImage"}}function Jh(e,o){let t=e[Se.kind];if(yc.includes(t))return t;let r=e[Tl];return typeof r=="boolean"?r?"rotate":"none":o}function Qh(e){let o=j(e);return o===void 0?qh:Math.min(kv.max,Math.max(kv.min,o))}function ehe(e,o){let t=Yh(o),r=Jh(e,t);return{kind:r,angle:r==="rotate"?Qh(e[Se.angle]):null,duration:gc("hover","duration",r==="rotate"?e[Se.duration]:void 0),delay:gc("hover","delay",r==="rotate"?e[Se.delay]:void 0),...r==="nextImage"?{media:Rv(e)}:{}}}function Lv(e){let o={field:Se.kind,in:[...yc]};return{any:[{field:Se.kind,is:"rotate"},{all:[{not:o},e==="rotate"?{not:{field:Tl,is:!1}}:{field:Tl,is:!0}]}]}}var Cc=Ic(["none","mono"]),kc=Ic(["none","nextImage","mono"]),Fv={ImageBlock:"none",Manifesto:"none",Split:"none",ContactLocations:"mono"},ohe=Object.keys(Fv);function ex(e){return Fv[e]??"none"}var Pl={zoom:"hoverZoom",darken:"hoverDarken"},Tr={min:100,max:150,step:1,unit:"%"};function _W(e){let o=j(e[Pl.zoom]);if(o===void 0)return null;let t=Math.min(Tr.max,Math.max(Tr.min,o));return t===Tr.min?null:String(t/100)}function AW(e){let o=j(e[Pl.darken]);return o!==void 0&&o>0?o:null}var Ma="hoverShow",ox="cardHover",tx="always",vc=["ImageBlock","Flex"];function rx(e,o,t=Cc){let r=e[qe];return t.includes(r)?r:o}function Bv(e,o=""){let t=vc.includes(o)?kc:Cc,r=rx(e,ex(o),t),a=r==="mono";return{kind:r,duration:gc("hover","duration",a?e[Se.duration]:void 0),delay:gc("hover","delay",a?e[Se.delay]:void 0),...r==="nextImage"?{media:Rv(e),...o==="Flex"?vv(e):{}}:vv(e)}}function vv(e){let o=_W(e),t=AW(e);return{...o?{zoom:o}:{},...t?{darken:t}:{}}}function Dv(){return{not:{field:qe,is:"nextImage"}}}function ax(e){return e==="none"?{field:qe,in:["mono","nextImage"]}:{not:{field:qe,is:"none"}}}function Nv(e){return e==="none"?{field:qe,is:"mono"}:{not:{field:qe,in:["none","nextImage"]}}}var Mv={label:"Text",defaultProps:{text:"",align:"left",tone:"default",tag:"p",contained:!0}};var{text:she,tag:lhe,...RW}=Mv.defaultProps,H=RW,X={...H,tone:"dim"},Tc={justify:"start",align:"stretch",wrap:!1,blockSpacing:"gap",padV2:!0},_={...Tc,direction:"column",...bl},We=(e,o=e,t=e,r=o)=>({sectionPaddingTop:e,sectionPaddingRight:o,sectionPaddingBottom:e,sectionPaddingLeft:o,sectionPaddingTopPhone:t,sectionPaddingRightPhone:r,sectionPaddingBottomPhone:t,sectionPaddingLeftPhone:r}),ar=e=>({fillColor:e}),Pc=(e,o,t={})=>({..._,widthFit:"fixed",width:e,minWidth:e,sectionHeightMode:"fixed",sectionHeightValue:e,sectionHeightUnit:"px",...ar(o),...t}),N=(e,o,t,r)=>({sizeToken:{step:e,px:o,...r?{stepPhone:r}:{},...t?{pxPhone:t}:{}}}),Hv={case:"upper"},vo={textStyle:"body-5",...Hv},El=(e,o)=>({...N("label",e,o),letterSpacing:.2,...Hv}),Rt=(e,o)=>({...vo,...El(e,o)});function ao(e,o,t=""){return e.map((r,a)=>{let n=t?`${t}.${a}`:String(a),s={...r.props??{}};for(let[l,d]of Object.entries(r.slots??{}))s[l]=ao(d,o,n);return{type:r.type,props:{...s,id:o(r.type,n)}}})}var Jr=()=>({tag:"h2",_partStyles:{text:{textStyle:"heading-2"}}}),Lt=()=>({_partStyles:{text:{...vo,color:"accent",letterSpacing:.3,lineHeight:1.5}}});var LW={..._,gap:12,gapPhone:12,...We(32,32,28,28)},FW={textStyle:"heading-3",...N("headingSmall",20),weight:500,case:"upper",lineHeight:1.5,letterSpacing:.02},_l={textStyle:"body-1",...N("body",15),lineHeight:1.6},ne=(e,o,t,r=!1)=>({type:"Text",props:{...o,text:"",[Fo]:e,_partStyles:{text:{...r?Lt()._partStyles?.text??{}:{},...t}}}}),Qr={title:"title",body:"body"},Ec={title:"name",body:"note"},nx=(e=Qr)=>({type:K,props:{...LW,name:"Card"},slots:{[re]:[ne(e.title,{...H,tag:"p",widthFit:"fill"},FW),ne(e.body,{...X,tag:"p",widthFit:"fill"},_l)]}}),Oc=(e,o)=>ao([nx(o)],e),Ol={label:Qr.title,href:"href"},BW={textStyle:"body-1",fontRole:"heading",color:"text",...N("body",17),weight:500,case:"upper",letterSpacing:.06,lineHeight:1.5},DW=Pc(9,"main",{[Cv]:45}),sx=(e=!1)=>({type:K,props:{..._,name:"Card",direction:"row",align:"center",gap:16,gapPhone:16,phoneRow:2,sharePhone:"content",wrapPhone:!1,...We(32,28),[nr]:Ol.href,...e?{[qe]:rr}:{}},slots:{[re]:[{type:K,props:{...DW,name:"Mark"}},ne(Ol.label,{...H,tag:"p",widthFit:"fill"},BW)]}}),Wv=e=>(o,t)=>t==="0"?`${e}~card`:`${e}~card.${t.slice(2)}`,Uv=(e,o=!1)=>ao([sx(o)],e);function zv(e,o){if(e!=="Cards")return o;if(o.template!==void 0)return Gv(o);let t=Z(o.id)??"Cards",r=Wv(t);if(o.cardStyle==="label-only"){let n=Array.isArray(o.items)&&o.items.some(s=>Z(s?.href)!==void 0);return Gv({...o,template:Uv(r,n)})}let a=oo(o)?Ec:Qr;return{...o,template:Oc(r,a)}}var NW=e=>{let[o,t]=e?[Qr,Ec]:[Ec,Qr];return new Map([[o.title,t.title],[o.body,t.body]])};function $v(e,o){let t=null;return e.forEach((r,a)=>{let n=r?.props;if(!n)return;let s=n,l=n[Fo];r.type==="Text"&&typeof l=="string"&&o.has(l)&&(s={...s,[Fo]:o.get(l)});let d=n[re];if(Array.isArray(d)){let c=$v(d,o);c!==d&&(s={...s,[re]:c})}s!==n&&(t??=[...e],t[a]={...r,props:s})}),t??e}function Gv(e,o){if(!Array.isArray(e.template))return e;let t=NW(!!oo(e)),r=o?new Map([...t].filter(([n,s])=>o(s)&&!o(n))):t;if(!r.size)return e;let a=$v(e.template,r);return a===e.template?e:{...e,template:a}}var MW="label";function Kv(e){if(e.template!==void 0)return e;let o=Z(e.id)??"CardList",t={type:K,props:{..._,name:"Item"},slots:{[re]:[ne(MW,{...H,tag:"p"},_l)]}};return{...e,template:ao([t],(r,a)=>a==="0"?`${o}~item`:`${o}~item.${a.slice(2)}`)}}var Al="ArticleBody",HW={textStyle:"heading-3",...N("headingSmall",20),weight:500,lineHeight:1.4,align:"center"},WW={..._l,align:"center"},jv=640,UW=()=>[ne("heading",{...H,tag:"h2",align:"center",maxWidth:jv},HW),ne("paragraph",{...X,tag:"p",align:"center",maxWidth:jv},WW)],lx=e=>ao(UW(),e);function GW(e){return lx((o,t)=>`${e}~${t==="0"?"heading":"paragraph"}`)}function Vv(e){if(e.template!==void 0)return e;let o=typeof e.id=="string"&&e.id.trim()?e.id:Al;return{...e,template:GW(o)}}var zW="label",_c=()=>({type:"LogoBlock",props:{[Fo]:zW}}),Yv=e=>{let o=Z(e.id)??"Logos";return{...e,template:ao([_c()],()=>`${o}~logo`)}};function qv(e){return!oo(e)||e.template!==void 0?e:Yv(e)}function Dhe(e){if(!oo(e))return e;let o=e.template;return o!==void 0&&!(Array.isArray(o)&&o.length===0)?e:Yv(e)}import{addShowWhenFacts as $W}from"efficient-shell/format";import{showWhenOf as ix,shownForOption as dx,truthy as KW,withRowRules as Ha,withRowsShownWhen as ea,withShowWhen as Xe}from"efficient-shell/format";var Whe=$W;function Rl(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 jW="inline",VW=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var sr={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"}},ts="SectionHeader";function Xv(e){return He(sr,e)}function Ac(e){return io(VW,jW,e)}var YW=new Set(["Flex"]);function Khe(e){return!!e?.type&&YW.has(e.type)}var Zv={not:{field:"headPlacement",is:"own-box"}},jhe={not:Zv};function Vhe(e,o,t){return ea(e,t,Zv)}var Rc="data-sf-spec-region";function Jv(e){return e.writable===!0&&e.sized===!0}function Lc(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 rs(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 Ll(e){return`@${e}`}function Fl(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function qW(e,o){return o&&o in e?o:null}var cx={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}},Qv=cx;var XW="question",ZW="answer",JW={textStyle:"body-1",fontRole:"heading",...N("body",18,15),weight:500,case:"upper",letterSpacing:.02,lineHeight:1.5},QW={textStyle:"body-1",...N("body",15),lineHeight:1.7};function eT(){return Object.keys(cx).map(Ll)}var fx=()=>({type:K,props:{..._,gap:0,name:"Question"},slots:{rowTitle:[ne(XW,{...H,tag:"p",widthFit:"fill"},JW)],[re]:[ne(ZW,{...X,tag:"p",widthFit:"fill",maxWidth:760},QW)]}});function e3(e){return Ac(e.headPlacement)==="own-box"?!1:["num","title","linkText"].some(o=>Z(e[o])!==void 0)}function oT(e){if(e.template!==void 0||e3(e))return e;let o=Z(e.id)??"FAQ",t=0;return{...e,template:ao([fx()],r=>r===K?`${o}~row`:`${o}~row.${t++}`)}}var o3=["below","left","right"];function t3(e){return o3.includes(e)?e:"below"}function px(e){return t3(e)!=="below"}function ux(e){return Array.isArray(e)?e.map(ux):!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,ux(t)]))}var oa=e=>JSON.stringify(ux(e));var aT=e=>oo(e)===Bh,Fc=El(11),r3={textStyle:"body-1",...N("body",18),weight:500,lineHeight:1.2},nT=()=>({type:K,props:{..._,gap:8,gapPhone:8,...We(20,24,20,20),name:"Office"},slots:{[re]:[ne("badge",{...H,tag:"p",widthFit:"fill"},Fc,!0),ne("role",{...H,tag:"p",widthFit:"fill"},Fc,!0),ne("city",{...H,tag:"p",widthFit:"fill"},r3),ne("country",{...X,tag:"p",widthFit:"fill"},Fc),ne("address",{...X,tag:"p",widthFit:"fill"},Fc),{type:"ButtonBlock",props:{variant:"link",label:"",href:"",[Fo]:"linkLabel",[nr]:"href"}}]}}),sT={textStyle:"body-1",fontRole:"heading",...N("body",16),weight:500,lineHeight:1.25},hx={textStyle:"body-1",...N("body",14),lineHeight:1.5},a3=()=>({type:K,props:{..._,gap:4,gapPhone:4,...We(16,4),sectionBorder:{bottom:1},name:"Office"},slots:{[re]:[ne("city",{...H,tag:"p",widthFit:"fill"},sT),ne("address",{...X,tag:"p",widthFit:"fill"},hx),ne("phone",{...X,tag:"p",widthFit:"fill"},hx)]}});function lT(e){let o=Z(e.id)??"Footprint",t=0;return ao([a3()],r=>r===K?`${o}~office`:`${o}~office.${t++}`)}function iT(e){return Array.isArray(e.template)&&e.template.length>0&&oa(e.template)===oa(lT(e))}var dT=e=>e===void 0||Array.isArray(e)&&e.length===0;function tT(e){return px(e.listPosition)?!dT(e.template)||aT(e)?e:{...e,template:lT(e)}:iT(e)?{...e,template:[]}:e}var n3=sT,s3=hx,l3={textFit:"line"},xx=(e,o,t="",r={},a={})=>{let n=ne(e,{...o?X:H,tag:"p",...r},{...s3,...a});return t?{...n,props:{...n.props,[nr]:t}}:n},mx=(e,o,t,r)=>({type:K,props:{..._,gap:0,gapPhone:0,[Bl]:[e],name:r},slots:{[re]:[xx(e,o,t,l3,{align:"right"})]}}),i3=e=>({type:K,props:{..._,direction:"row",justify:"between",share:"content",phoneRow:2,sharePhone:"content",wrapPhone:"nowrap",gap:12,gapPhone:12,...e?We(20,24):{...We(16,4),sectionBorder:{bottom:1}},name:"Dealer"},slots:{[re]:[{type:K,props:{..._,justify:"center",gap:0,gapPhone:0,widthFit:"fill",name:"Dealer words"},slots:{[re]:[{type:K,props:{..._,gap:4,gapPhone:4,widthFit:"fill",name:"Dealer name"},slots:{[re]:[ne("name",{...H,tag:"p",widthFit:"fill"},n3),xx("address",!0)]}},xx("place",!0,"",{widthFit:"fill"})]}},{type:K,props:{..._,align:"end",gap:4,gapPhone:4,name:"Dealer contact"},slots:{[re]:[mx("distance",!0,"","Dealer distance"),mx("phone",!1,"phoneHref","Dealer phone"),mx("website",!1,"websiteHref","Dealer website")]}}]}}),d3=e=>{let o=i3(e),t={type:K,props:{..._,...We(0,12),name:"Dealer"},slots:{[re]:[{...o,props:{...o.props,name:"Dealer row"}}]}};return e?o:t};function gx(e,o){let t=Z(e.id)??"Footprint",r=0;return ao([d3(o)],(a,n)=>n==="0"?`${t}~dealer`:`${t}~dealer.${r++}`)}function rT(e){if(!Array.isArray(e.template)||e.template.length===0)return!1;let o=oa(e.template);return o===oa(gx(e,!0))||o===oa(gx(e,!1))}function cT(e){if(aT(e)){let t=gx(e,!px(e.listPosition));return!(dT(e.template)||iT(e)||rT(e))||oa(e.template??[])===oa(t)?e:{...e,template:t}}if(!rT(e))return tT(e);let o={...e,template:[]};return tT(o)}var go="template",f3="Card template",Ho="CardList",fT=["Text","ImageBlock","ButtonBlock","Flex"],Fo="rowField",nr="rowLinkField";function pT(){return{type:"slot",allow:[...fT]}}var p3=fT.filter(e=>e!=="ButtonBlock"),Dl="items",uT="itemFields";function Oxe(){return{type:"slot",allow:[...p3]}}var u3=[{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=>oT(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=>cT(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=>zv("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:Ho,label:"Card list"}]},{block:"Logos",fields:[{key:"label",label:"Name"},{key:"kind",label:"Kind"}],seed:e=>qv(e)},{block:Ho,fields:[{key:"badge",label:"Highlight badge",everySource:!0,plain:!0}],typedRows:Dl,seed:e=>Kv(e)},{block:Al,fields:[{key:"heading",label:"Subhead"},{key:"paragraph",label:"Paragraph",multiline:!0}],seed:e=>Vv(e)}];function jo(){return er("efficient.card-templates",()=>new Map(u3.map(e=>[e.block,e])))}function _xe(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),d=Array.isArray(s.fields)?{fields:s.fields.map(c=>({...c}))}:null;r.some(c=>c.slot===s.slot)||r.push({slot:s.slot,...l?{label:l}:null,...d})}let a=r.some(s=>s.fields);if(a&&(o.fields.some(s=>s.everySource)||ev(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?Cl().add(o.block):Cl().delete(o.block);let n=Z(o.typedRows);jo().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 Ix(e,o){let t=e?jo().get(e)?.seed:void 0;return t?t(o):o}function mT(e,o){let t=bx(e),r=(t.length?t:[go]).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?jo().get(e)?.seedOnInsert:void 0,s=n?n(a):Ix(e,a);return s===a?o:s}function hT(){for(let e of jo().values())if(e.blocks?.length)return!0;return!1}function xT(e){return jo().get(e)?.blocks??[]}function Axe(e){for(let o of jo().values())if(o.blocks?.some(t=>t.type===e))return!0;return!1}function gT(e){return typeof e=="string"&&jo().get(e)?.typedRows||""}function Rxe(e){return typeof e=="string"&&jo().get(e)?.linesBetween===!0}function IT(e){return typeof e=="string"&&jo().has(e)}var m3=[{slot:go}];function Bc(e){if(typeof e!="string")return[];let o=jo().get(e);return o?o.slots??m3:[]}function bx(e){return Bc(e).map(o=>o.slot)}function h3(e,o){return Bc(e).some(t=>t.slot===o)}function bT(e,o){let t=Bc(e).find(r=>r.slot===o);return t?t.label??f3:null}function yx(e,o){return o?Bc(e).find(t=>t.slot===o)?.fields:void 0}function x3(e,o){let t=jo().get(e)?.fields??[];return o?t.filter(r=>(r.kind??"text")===o):t}function g3(e,o){if(typeof e!="string")return"";let t=yx(e,o);return(t?t.filter(r=>r.kind==="list"):x3(e,"list"))[0]?.key??""}function I3(e,o,t){return rt(e)||g3(o,t)}function yT(e,o,t){let r=typeof e?.type=="string"?e.type:"";if(!r)return[];let a=yx(r,t);if(a)return o?a.filter(d=>(d.kind??"text")===o):a;let n=jo().get(r)?.fields??[],s=hc(oo(e?.props))?.fields,l=s?.length?[...s.map(d=>({...d})),...n.filter(d=>d.everySource&&!s.some(c=>c.key===d.key))]:n;return o?l.filter(d=>(d.kind??"text")===o):l}function b3(e,o,t,r){if(!e)return null;let a=yx(e,r);return a?a.find(n=>n.key===o)??null:t?yT(t).find(n=>n.key===o)??null:jo().get(e)?.fields.find(n=>n.key===o)??null}function Dc(e,o){return!e||!o?null:e.fields?.find(t=>t.key===o)??b3(e.ownerType,o,e.owner,e.slot)}function Lxe(e,o){return Dc(e,o)?.plain===!0}function rt(e,o=Fo){let t=e?.[o];return typeof t=="string"?t.trim():""}function Nl(e,o){return e.key||String(o+1)}function Sx(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 Bl="hideWhenRowEmpty";function Fxe(e,o){let t=e[Bl];return!o||!Array.isArray(t)||!t.length?!1:t.every(r=>typeof r!="string"||!o[r]?.trim())}var ST={Text:{text:Fo,href:nr},ImageBlock:{src:Fo,href:nr},ButtonBlock:{label:Fo,href:nr},LogoBlock:{alt:Fo,href:nr},Breadcrumb:{currentCrumb:Fo}};var y3=new Set(["ButtonBlock.label","LogoBlock.alt"]);function Bxe(e,o,t){return Ml(e,o,t)&&!y3.has(`${e}.${t}`)}function Ml(e,o,t){return wx(e,o,t)!==""}function wx(e,o,t){let r=ST[e]?.[t];return r?rt(o,r):""}function Hl(e,o){return!o||!e?null:e[o]??""}function S3(e,o){return Hl(e,o)?.trim()||void 0}function Dxe(e,o,t,r,a,n){if(!t)return o;let s=null;for(let[l,d]of Object.entries(ST[e]??{})){let c=rt(o,d),f=Hl(t,c);if(f!==null){if(s??={...o},d===nr){s[l]=S3(t,c);continue}s[l]=Dc({ownerType:r,fields:a,slot:n},c)?.mark==="accentItalic"?Ba(f):f}}return s??o}function Nc(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[d,c]of Object.entries(l?.props??{})){if(!c3(c))continue;let f=h3(l.type,d)?{owner:l,slot:d,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(c,f);if(u!==void 0)return u}}},a=r(t,null);return a===void 0?null:a}function Wl(e,o){let t=Nc(e,o);return t&&t.owner}function Cx(e,o){let t=Nc(e,o);return t&&t.slot}function kx(e,o){let t=Nc(e,o);return t&&(t.direct?t.owner:null)}function Nxe(e,o){let t=Nc(e,o);if(t!==void 0)return t===null?{inCopy:!1,nestedCopy:!1,underBox:!1}:{inCopy:!0,nestedCopy:t.nested,underBox:t.underBox}}function wT(e,o,t){if(o?.type!==Ho)return[];let r=Wl(e,o.props?.id);if(!r){let l=hc(oo(o.props))?.fields,d=l?.length?l.map(u=>({...u})):w3(o.props),c=(jo().get(Ho)?.fields??[]).filter(u=>u.everySource&&!d.some(p=>p.key===u.key)),f=[...d,...c];return t?f.filter(u=>(u.kind??"text")===t):f}let a=Cx(e,o.props?.id)??void 0,n=I3(o.props,r.type,a),s=n&&yT(r,"list",a).find(l=>l.key===n)?.fields||[];return t?s.filter(l=>(l.kind??"text")===t):s}function Mc(e,o){return{[Fo]:"",[Dl]:e.map(t=>({...t})),[uT]:o.map(t=>({...t}))}}function w3(e,o){let t=e?.[uT];if(!Array.isArray(t))return[];let r=t.flatMap(a=>{if(!a||typeof a!="object")return[];let{key:n,label:s,kind:l,multiline:d,alt:c,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}:{},...d===!0?{multiline:!0}:{},...typeof c=="string"&&c?{alt:c}:{},...typeof f=="string"&&f?{next:f}:{}}]});return o?r.filter(a=>(a.kind??"text")===o):r}import{useSyncExternalStore as YY}from"react";import{isNodeList as Hc}from"efficient-easel/data";var CT="Flex";function as(e,o){return rt(e)?typeof e?.[At]=="string"?vx(o?.[At]):"":vx(e?.[At])}var vx=e=>typeof e=="string"?e.trim():"",C3=e=>e.type===Ho&&Array.isArray(e.props?.[Dl])&&e.props[Dl].some(o=>vx(o?.[At])!==""),k3=new Intl.NumberFormat("en-US");function v3(e){return/^\d+$/.test(e)?k3.format(Number(e)):e}function Gxe(e,o){let t=o?o.find(r=>r.key===e)?.value:ov(kl).find(r=>r.key===e)?.value;return t===void 0?null:v3(t)}var T3={[At]:"any"};function Tx(e,o=!1){let t=e.props;if(!t)return{node:e,names:!1};let r=e.type==="Text"&&(as(t)!==""||o&&as(t,T3)!==""),a=o||C3(e),n=t;for(let[l,d]of Object.entries(t)){if(!Hc(d))continue;let c=d.map(f=>Tx(f,a));c.some(f=>f.names)&&(r=!0),c.some((f,u)=>f.node!==d[u])&&(n={...n,[l]:c.map(f=>f.node)})}if(e.type!==CT)return{node:n===t?e:{...e,props:n},names:r};let s=oo(n);if(r&&!s&&(n={...n,[mo]:kl}),!r&&s===kl){let{[mo]:l,...d}=n;n=d}return{node:n===t?e:{...e,props:n},names:!1}}function kT(e,o,t){for(let r of e){if(r?.props?.id===o)return t;for(let a of Object.values(r?.props??{})){if(!Hc(a))continue;let n=kT(a,o,r.type===CT?r:t);if(n!==void 0)return n}}}function zxe(e,o){if(!Hc(e))return!0;let t=kT(e,o,null);if(t===void 0)return!0;if(t===null)return!1;let r=oo(t.props);return!r||r===kl}function vT(e){let o=e?.content;if(!Hc(o))return e;let t=o.map(r=>Tx(r));return t.every((r,a)=>r.node===o[a])?e:{...e,content:t.map(r=>r.node)}}function TT(e){return Tx(e).node}import{jsx as v,jsxs as Fr,Fragment as Nr}from"react/jsx-runtime";import{cloneElement as PI,createContext as sV,useContext as _0,useEffect as lV,useId as A0,useRef as mi,useState as hi}from"react";import{useEasel as ep,useSelectedHost as Qa}from"efficient-easel/easel";import{PIN_LENGTH as Xf,toDateKey as Jve,fromDateKey as Qve}from"efficient-shell/format";function P3(e){return!!e&&typeof e=="object"&&!Array.isArray(e)&&typeof e.src=="string"}function Wo(e){return typeof e=="string"?e:P3(e)?e.src:""}function Kxe(e,o,t){return Px(e,o.split("."),t)}function Px(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 d=l[s];if(n){if(!Array.isArray(d))return e;let f=!1,u=d.map(p=>{let h=Px(p,a,t);return h!==p&&(f=!0),h});return f?{...l,[s]:u}:e}let c=Px(d,a,t);return c===d?e:{...l,[s]:c}}var E3=["upload","youtube"],O3="upload",Yxe={upload:"Upload",youtube:"YouTube"},_3=["background","click"],A3="background",qxe={background:"Background",click:"Click to play"};function ET(e){return E3.includes(e)?e:O3}function OT(e){return _3.includes(e)?e:A3}var PT=/^[A-Za-z0-9_-]{11}$/,R3=/^(?:www\.|m\.|music\.)?(?:youtube\.com|youtube-nocookie\.com|youtu\.be)$/;function _T(e){let o=typeof e=="string"?e.trim():"";if(!o)return null;if(PT.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:"||!R3.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&&PT.test(a)?a:null}function Ex(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 AT(e){return`https://i.ytimg.com/vi/${e}/maxresdefault.jpg`}function RT(e){return`https://i.ytimg.com/vi/${e}/hqdefault.jpg`}var Ox="Play video";var _x={frame:"Video frame",image:"Image"},Xxe={any:[{field:"loadingShows",is:"image"},{all:[{not:{field:"loadingShows",set:!0}},{field:"poster",set:!0}]}]};function Ul(e){let o=e.loadingShows;return o==="image"?"image":o!=null&&o!==""?"frame":Wo(e.poster)?"image":"frame"}function Zxe(e){let[o,t]=Ul(e)==="image"?[e.poster,e.videoFrame]:[e.videoFrame,e.poster];return Wo(o)||Wo(t)||void 0}function LT(e){if(Wo(e.mediaVideo)){if(Ul(e)==="frame")return Wo(e.videoFrame)?void 0:Wo(e.poster)?"frame-missing-image":"frame-missing-surface";if(!Wo(e.poster))return Wo(e.videoFrame)?"image-missing-frame":"image-missing-surface"}}var Wc="videoFrames",Ax="videoFramesNotOwn";function FT(e,o,t){let r=Wo(e.mediaVideo);if(!r||!o||Ul(e)!=="frame"||Wo(e.videoFrame))return;let a=o[r],n=!!Wo(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 L3(e,o){let t=Wo(e),r=t&&o?o[t]:void 0;return r?.state==="ready"&&r.frame?r.frame:void 0}function Jxe(e,o,t){let r=t?.[Ax];if(!(Array.isArray(r)&&r.includes(e)))return L3(o,t?.[Wc])}import{useSyncExternalStore as F3}from"react";function Uc(){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 F3(t,a,a)}}}var Ue="SiteHeader",Fe="SiteFooter",Rx="sections",tge=[Ue,Fe],ns=e=>e===Ue||e===Fe,BT=e=>`${e}:${Rx}`;function DT(e,o,t=[]){return{type:e,props:{id:o,[Rx]:t}}}var B3=new Set(["Footer",Ue,Fe]);function ss(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):B3.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Gc(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ue?[o,...e]:[...e,o]}var NT={[Ue]:{max:3,takes:["Flex","Ticker"]},[Fe]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function MT(e,o,t){if(!ns(e))return!0;let r=NT[e];return t<r.max&&r.takes.includes(o)}function HT(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(!ns(n?.type))continue;let s=n.props?.[Rx];if(!Array.isArray(s)||!s.some(d=>d?.props?.id===r))continue;let l=NT[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 D3}from"efficient-easel/draw";function Gl(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function zc(e,o,t){let r=Gl(t?.zone),a=r?D3(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}import{isNode as N3}from"efficient-easel/data";var WT="Footer",UT=[Ue,WT,Fe],Wa=e=>{let o=e?.content;return Array.isArray(o)?o:[]},ta=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},ls=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},GT=e=>Gl(e)?.ownerId??"";function zT(e){let o=ss(Wa(e)),t=o.some(r=>r?.type===Fe);return o.filter(r=>r?.type===Ue||r?.type===Fe||r?.type===WT&&!t)}function $c(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(N3(a)){let n=ls(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(GT(s))||(n.add(s),r(l),a=!0)}}return t}function $T(e,o){let t=Wa(e).filter(r=>{let a=ls(r);return typeof r?.type=="string"&&UT.includes(r.type)||a!==void 0&&o(a)});return t.length?$c(t,ta(e)):new Set}function Lx(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(GT(a))?t:r)[a]=n;return{owned:t,rest:r}}function KT(e,o){if(!o)return e;let t=zT(o);if(!t.length)return e;let r=t.filter(l=>l.type===Ue),a=t.filter(l=>l.type!==Ue),n={...e,content:[...r,...Wa(e),...a]},{owned:s}=Lx(ta(o),$c(t,ta(o)));return Object.keys(s).length&&(n.zones={...ta(e)??{},...s}),n}function Fx(e,o){if(!o)return{page:e,chrome:null};let t=zT(o),r=new Set(t.map(ls).filter(k=>!!k)),a=[],n=[];for(let k of Wa(e)){let y=ls(k);y&&r.has(y)||ns(k?.type)?n.push(k):a.push(k)}let s=new Map(n.map(k=>[ls(k),k])),l=new Set,d=ss(Wa(o)).flatMap(k=>{let y=ls(k);if(!y||!r.has(y))return[k];let b=s.get(y);return b?(l.add(b),[b]):[]});for(let k of n)l.has(k)||d.some(y=>y?.type===k.type)||(d=k.type===Ue?[k,...d]:[...d,k]);d=ss(d);let c=d.length===Wa(o).length&&d.every((k,y)=>k===Wa(o)[y]),f=ta(e),u=$c(d,f),{owned:p,rest:h}=Lx(f,u),g=Lx(ta(o),$c(t,ta(o))).owned,I={...o,content:c?o.content:[...d]},C=ta(o);if(C||Object.keys(p).length){let k={};for(let[y,b]of Object.entries(C??{}))y in g?y in p&&(k[y]=p[y]):k[y]=b;for(let[y,b]of Object.entries(p))y in k||(k[y]=b);I.zones=k,C&&M3(I.zones,C)&&(I.zones=C)}let S={...e,content:a};return f&&(Object.keys(h).length||!Object.keys(g).length?S.zones=h:delete S.zones),{page:S,chrome:I}}function M3(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 jT(e,o){return t=>e(t)||t!==void 0&&UT.includes(t)&&o()}var VT=null;function Bx(e){VT=e}function Ft(){return VT}var YT=null;function Dx(e){YT=e}function Kc(){return YT}var Nx=Uc();function qT(e,o,t){if(!o)return;let r={...Nx.get(e)};for(let[a,n]of Object.entries(o))r[a]={...n,noted:t};Nx.set(e,r)}function XT(e,o){qT(e,o,"load")}function ZT(e,o){qT(e,o,"save")}function jc(e){return Nx.use(e)}var Mx=e=>!!Ft()?.sectionOf(e);function JT(e,o=Mx){return $T(e,o)}function QT(e,o,t,r=Mx){if(t)return e&&JT(o,r).has(e)?void 0:t}function eP(e,o,t=Mx){if(!e)return{};let r=[...JT(o,t)];return r.length?{[Wc]:e,[Ax]:r}:{[Wc]:e}}import{ScreenDocumentContext as iV}from"efficient-easel/screen/components/ScreenDocumentContext";import{readHidable as ma,hidableText as dV}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as R0,LINK_FIELD_MARKER as cV,MEDIA_FIELD_MARKER as fV,SCAFFOLD_FIELD_MARKER as pV,TEXT_FIELD_MARKER as Br,foldMetaOf as ha,textFieldIdentifier as lTe}from"efficient-easel/draw";import{jsx as lP}from"react/jsx-runtime";import{useCallback as z3}from"react";import{useEasel as $3}from"efficient-easel/easel";import{SettingsAction as K3}from"efficient-easel/panel";import{isLengthUnit as U3}from"efficient-easel/screen/lib/content/length-units";import{CORNER_SIDES as Vc,hasCornerSubset as zl,normalizeCornerSides as lr}from"efficient-easel/screen/lib/content/style-keys";import{isLengthUnit as H3}from"efficient-easel/screen/lib/content/length-units";var $l={kind:"radius",unitKey:"sectionCornersUnit"};function Hx(e){return typeof e=="number"&&Number.isFinite(e)}function bge(e,o,t){if(!Hx(e))return;let r=H3(t)&&t!=="px"?Zn(e,t):Zn(Zt(e));if(Object.keys(r).length===0)return;let a=r[Wx];if(typeof a!="string")return r;let n=zl(o)?Ua(a,lr(o)??[]):a;return{...r,[W3]:n}}var W3="--sf-section-radius",Wx="--sf-card-radius";function Ua(e,o){return Vc.map(t=>o.includes(t)?e:"0").join(" ")}var oP=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Kl={kind:"radius",unitKey:"cardCornersUnit"},G3="--sf-card-box-radius";function Ux(e){return typeof e=="number"&&Number.isFinite(e)}function kge(e,o,t){if(!Ux(e))return;let r=(U3(t)&&t!=="px"?Zn(e,t):Zn(Zt(e)))[Wx];if(typeof r!="string")return;let a=zl(o)?Ua(r,lr(o)??[]):r;return{[G3]:a}}function tP(e,o){let t=e.find(s=>s?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides,n=t.props?.[Kl.unitKey];return e.map(s=>s?.props?.id===o?s:{...s,props:{...s.props,cardCorners:r,cardCornerSides:a,[Kl.unitKey]:n}})}function rP(e,o,t){let r=zc(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,d=l?.props?.id?String(l.props.id):"",c=Math.max(n.length-1,0);return!r||!d?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:c}:Ux(l?.props?.cardCorners)?{can:!0,others:c,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:tP(n,d)}}}:{can:!1,reason:"unset",others:c}}function aP(e){return e.can?Mo("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 nP(e){return Mo("Applied to {n} card","Applied to {n} cards",e)}function sP(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as j3}from"efficient-easel/screen/lib/document/use-section-ops";var V3="apply-corners-to-siblings",Y3="Apply to all cards";function q3({plan:e,onPress:o}){return lP(K3,{id:V3,label:i(Y3),note:aP(e),disabled:!e.can,doneLabel:nP(e.others),onPress:o})}function iP(){let{appState:e,config:o}=$3(n=>n),t=j3(),r=rP(o,e.data.content??[],e.ui.itemSelector),a=z3(()=>{sP(r,t.replaceComponent)},[r,t]);return lP(q3,{plan:r,onPress:a})}import{isShown as IP,lazyShowWhenContext as iU}from"efficient-shell/format";var ra="product",Yc="recordType",dP={key:ra,label:"Product",fields:[]},X3=/^[a-z][a-z0-9]*(-[a-z0-9]+)*$/,Z3=/^[a-z][A-Za-z0-9]*$/,J3=["text","date","images"],Gx=new Map,cP=0;function Q3(e){if(typeof e.key!="string"||!X3.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===ra)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"||!Z3.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(!J3.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 Mge(e){let o=e.map(Q3);for(let t of o)Gx.set(t.key,t);o.length&&(cP+=1)}function zx(){return[dP,...Gx.values()]}function eU(e){return e===ra?dP:Gx.get(e)??null}function $x(){return cP}function jl(e){let o=e?.[Yc];return typeof o!="string"?ra:o.trim()||ra}function Kx(e){return jl(e)===ra}function Hge(e,o){let t=eU(e)?.fields??[];return o?t.filter(r=>o.includes(r.kind)):t}var qc="product",fP="tyre",oU=[qc,fP];function Gge(e){return oU.includes(e)}var tU="productType",rU={[qc]:"alloy-wheel",[fP]:"tyre"},aU=["alloy-wheel","tyre"];function pP(e,o){return Kx(o)?uP(o)??rU[e]??null:null}function uP(e){if(!Kx(e))return null;let o=e?.[tU];return typeof o=="string"&&aU.includes(o)?o:null}function zge(e){let o=e?.root;return uP(o?.props)}var jx="Main Pages",nU="Dynamic Pages",Vx="dynamic",sU="dynamic";function Ga(e){return e.kind===sU}var Yx="lightbox";function mP(e){return e.kind===Yx}function hP(e){let o=[],t=[];for(let r of e){if(Ga(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??jx,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:Vx,label:nU,rows:t})}return o}var Xc=null,xP=null;function lU(e,o){Xc=e,xP=o}function qge(e){lU(e,null)}function Xge(){return Xc}function Vl(){return Ga({kind:xP})||Xc===qc}function Zge(e){return pP(Xc??"",e)??"alloy-wheel"}function Jge(e){return Vl()?jl(e):null}function qx(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e)){if(!IP(ix(s),o??{},t)){r=!0;continue}let l=dU(s,o?.[n],o??{},t);l!==s&&(r=!0),a[n]=l}return r?a:e}function dU(e,o,t,r){let a=e?.options;if(!Array.isArray(a))return e;let n=a.filter(s=>s?.value===o||!s?.showWhen||IP(s.showWhen,t,r));return n.length===a.length?e:{...e,options:n}}function bP(e,o,t,r){let a=zc(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function gP(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 gP(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>gP(a,o)))return!0;return!1}function nIe(e,o={}){return iU({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Vl(),root:()=>e.appState?.data?.root?.props,...o})}import{isLengthUnit as cU}from"efficient-easel/screen/lib/content/length-units";var yP=1,fU="cardImageUnit",Xx={kind:"radius",unitKey:fU},SP={kind:"radius"};function pU(e){return Zt(e)}function fIe(e,o){if(cU(o)&&o!=="px"){let r=j(e);return r!==void 0&&r>=0?{"--sf-card-image-radius":Le(r,o)}:{}}let t=pU(e);return t===null?{}:{"--sf-card-image-radius":`${t}px`}}import{isLengthUnit as uU}from"efficient-easel/screen/lib/content/length-units";var wP={kind:"radius",unitKey:"cornersUnit"},CP=1,kP="Corners";function mU(e){return Zt(e)}function IIe(e,o,t){let r=uU(t)&&t!=="px"?j(e):void 0,a=r===void 0?mU(e):null;if(r===void 0&&a===null)return null;let n=r!==void 0?Le(Math.max(0,r),t):`${a}px`;return{borderRadius:zl(o)?Ua(n,lr(o)??[]):n}}var TP=12,PP=6,hU=800,aa={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"}},Zx=Object.keys(aa),EP=[2,3,4,6];function Jx(e,o){return Zx.filter(t=>t===o||e===null||aa[t].across===e)}function OP(e){return typeof e!="string"||e===""?null:aa[e]??null}function vP(e,o){return o?PP/e.acrossPhone:TP/e.across}function Qx(e){return e.ratio?gk.find(o=>o.shape===e.ratio)?.ratio??null:null}function _P(e){return[...e.lead??[],...e.desktop]}var xU="sf-wall--";function gU(e){return`${xU}${e}`}function SIe(e){let o=aa[e],t=`.${gU(e)}`,r=[],a=(l,d,c)=>`${t}:has(> :nth-child(${l}n+${d+c}):last-child) > :nth-last-child(-n+${c})`,n=(l,d,c=[])=>{let f=[],u=l.length,p=c.length;c.forEach(([h,g],I)=>{f.push(`${t} > :nth-child(${I+1}){grid-column:span ${h};grid-row:span ${g}}`)}),l.forEach(([h,g],I)=>{f.push(`${t} > :nth-child(${u}n+${p+I+1}){grid-column:span ${h};grid-row:span ${g}}`)});for(let h=1;h<u;h+=1)f.push(`${a(u,p,h)}{grid-column:span ${d};grid-row:span 1}`);return f};r.push(`${t}{grid-template-columns:repeat(${TP},minmax(0,1fr))}`);let s=Qx(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,vP(o,!1),o.lead)),r.push(`@media (max-width:${hU}px){`),r.push(`${t}{grid-template-columns:repeat(${PP},minmax(0,1fr))}`),r.push(...n(o.phone,vP(o,!0),o.leadPhone)),o.phone.length===1&&!o.leadPhone?.length){let[l,d]=o.phone[0],c=o.lead?.length??0;for(let f=1;f<o.desktop.length;f+=1)r.push(`${a(o.desktop.length,c,f)}{grid-column:span ${l};grid-row:span ${d}}`)}return r.push("}"),r.join("")}var Zc=12,AP=1,IU=3;var bU=3;function eg(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 yU(e){return eg(e,1,Zc)??bU}function kIe(e,o){return eg(e,AP,IU)??(yU(o)===4?2:AP)}function vIe(e){return e==null||e===""?null:eg(e,1,Zc)}var TIe="data-sf-span";function PIe(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(OP(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}import{jsx as SU}from"react/jsx-runtime";import*as wU from"efficient-easel/icons";function Jc(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=wU[`${o}Icon`];return t?SU(t,{size:16}):null}import{jsx as na,Fragment as vU,jsxs as HP}from"react/jsx-runtime";import{useContext as TU,useEffect as PU,useId as EU,useState as WP}from"react";import{SettingsField as OU,SettingsSwitch as _U}from"efficient-easel/panel";import{AnchorIcon as AU}from"efficient-easel/icons";import{ScreenDocumentContext as RU}from"efficient-easel/screen/components/ScreenDocumentContext";import{Snippet as LU}from"efficient-shell/ui";import{slugify as FU}from"efficient-shell/format";import{slugify as CU}from"efficient-shell/format";function Yl(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}var Qc=e=>CU(Yl(e));var ef="homepage";import{slugify as kU}from"efficient-shell/format";var RP=[{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 LP(e){return e.offersCommerce&&e.offersService?RP:RP.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}var og="#popup:";function FP(e){return`${og}${e}`}function BP(e){return e.startsWith(og)&&e.slice(og.length).trim()||null}function ql(e){return e===ef?"/":`/${e}`}function DP(e){return`/journal/${e}`}function NIe(e){return`/wheels/${e}`}function of(e,o){return`${ql(e)}#${o}`}function NP(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=Yl(a?.props?.anchor);if(!n)continue;let s=kU(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function MIe(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 MP(e){return/^\/wheels\/[^/?#]+(?:[?#].*)?$/.test(e)}import{readHidable as BU}from"efficient-easel/draw";function UP({value:e,onChange:o,nameBox:t}){let r=BU(e).text,[a,n]=WP(!1),s=a||r.trim()!=="",l=EU();return HP(vU,{children:[na(OU,{label:i("Add an anchor"),labelId:l,icon:na(AU,{}),action:na(_U,{checked:s,ariaLabelledBy:l,onChange:d=>{n(d),!d&&r!==""&&o("")}})}),s&&t(e,o),s&&na(DU,{name:r})]})}function DU({name:e}){let o=TU(RU),t=o?.templateId?"":o?.currentSlug??"",[r,a]=WP("");PU(()=>a(cc()),[]);let n=FU(e);if(!n||!t)return null;let s=`${r}${of(t,n)}`,l=s.replace(/^https?:\/\//,""),d=l.lastIndexOf("#");return na("div",{className:"sf-anchor-link",children:na(LU,{value:s,label:i("link"),size:"sm",children:HP("span",{className:"sf-anchor-link-text",children:[na("span",{className:"sf-anchor-link-path",children:l.slice(0,d)}),na("span",{className:"sf-anchor-link-hash",children:l.slice(d)})]})})})}import{jsx as ir,jsxs as NU}from"react/jsx-runtime";import{Fragment as MU}from"react";import{Button as tf,Tooltip as HU}from"efficient-shell/ui";function GP({status:e,statusText:o,onRefresh:t,busy:r=!1,edit:a,hint:n,spaced:s=!0,compact:l=!1,oneLine:d=!1}){return l?ir("div",{className:`sf-blogsource sf-blogsource--compact${d?" sf-blogsource--line":""}`,style:s?{marginTop:8}:void 0,children:ir(HU,{content:n,className:d?"sf-name-tip":void 0,children:ir("p",{className:"sf-blogsource-status","data-state":e,children:[o?ir(MU,{children:o},"status"):null,t?ir(tf,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:t,disabled:r,children:i("Refresh now")},"refresh"):null,a?ir(tf,{variant:"link",size:"sm",className:"sf-blogsource-link",onClick:a.onClick,children:a.label},"edit"):null].filter(Boolean).flatMap((c,f)=>f?[" \xB7 ",c]:[c])})})}):NU("div",{className:"sf-blogsource",style:s?{marginTop:9}:void 0,children:[ir("p",{className:"sf-blogsource-status","data-state":e,children:o}),t?ir(tf,{variant:"secondary",className:"sf-blogsource-action",onClick:t,disabled:r,children:i("Refresh now")}):null,a?ir(tf,{variant:"secondary",className:"sf-blogsource-action",onClick:a.onClick,children:a.label}):null,ir("p",{className:"es-field-hint",children:n})]})}import{AdjustIcon as uV,EyeIcon as mV,AnimationIcon as hV,BackgroundIcon as y0,BorderAllIcon as xV,BlockSectionIcon as gV,ColumnWidthsIcon as EI,ColumnsIcon as L0,CornerIcon as F0,DirectionDownIcon as IV,DirectionLeftIcon as bV,DirectionRightIcon as yV,DirectionUpIcon as SV,EditIcon as wV,GapIcon as CV,GridIcon as kV,GroundIcon as kI,HashIcon as vV,HeightIcon as B0,ImageIcon as TV,ListIcon as PV,LocationIcon as S0,PaddingBottomIcon as D0,PaddingLeftIcon as N0,PaddingRightIcon as M0,PaddingTopIcon as OI,PageIcon as EV,StickyIcon as H0,SearchIcon as OV,SquareIcon as _V,TypeIcon as AV,WidthIcon as RV}from"efficient-easel/icons";import{jsx as $e,Fragment as za,jsxs as $a}from"react/jsx-runtime";import{CaptionIcon as WU,DateIcon as UU,FlagIcon as GU,TitleIcon as zU,ButtonIcon as $U,DollarIcon as KU,HashIcon as jU,LinkIcon as VU,NoteIcon as YU,TagIcon as qU,TextLinesIcon as XU}from"efficient-easel/icons";var zP={body:XU,button:$U,link:VU,label:qU,number:jU,price:KU,note:YU,name:GU,date:UU,caption:WU,title:zU},$P={eyebrow:$a(za,{children:[$e("path",{d:"M5 6.5h5"}),$e("path",{d:"M5 12.5h14"}),$e("path",{d:"M5 18h11"})]}),heading:$a(za,{children:[$e("path",{d:"M6.5 5v14"}),$e("path",{d:"M17.5 5v14"}),$e("path",{d:"M6.5 12h11"})]}),intro:$a(za,{children:[$e("path",{d:"M4 5.5v13"}),$e("path",{d:"M8 7.5h12"}),$e("path",{d:"M8 12h12"}),$e("path",{d:"M8 16.5h8"})]}),value:$a(za,{children:[$e("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),$e("path",{d:"M6.5 12h7"})]}),quote:$a(za,{children:[$e("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),$e("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:$a(za,{children:[$e("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),$e("path",{d:"M8 9.5h8"}),$e("path",{d:"M12 9.5v5"})]}),meta:$a(za,{children:[$e("path",{d:"M4 7h16"}),$e("path",{d:"M4 14h3.5"}),$e("path",{d:"M10.5 14h3"}),$e("path",{d:"M17 14h3"})]})};function tg({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=zP[e];return n?$e("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:$e(n,{size:o})}):$e("svg",{className:r,style:a,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:$P[e]})}var nbe=Object.keys(zP);var sbe=Object.keys($P);import{parseHexColor as aG}from"efficient-shell/format";import{parseHexColor as qP}from"efficient-shell/format";import{COLOR_SLOTS as XP,FILL_COLOR_SLOTS as oG,colorRole as tG,fillColorRole as ZP}from"efficient-shell/markup";import{parseHexColor as KP}from"efficient-shell/format";import{FILL_COLOR_SLOTS as ZU}from"efficient-shell/markup";var rf=e=>{let o=nk.find(t=>t.role===e);return o?`var(${o.token})`:""},JU=e=>rf(e)?`var(--theme-${e})`:"",QU={main:{ink:Zr.accent,page:Zr.accent,key:"accent",label:()=>i("Main"),words:e=>i("Theme {n} main color",{n:e})},text:{ink:Zr.text,page:Zr.text,key:"text",label:()=>i("Text"),words:e=>i("Theme {n} text color",{n:e})},background:{ink:rf("bg"),page:JU("bg"),key:"background",label:()=>i("Background"),words:e=>i("Theme {n} background",{n:e})},muted:{ink:Zr.labels,page:Zr.labels,key:"muted",label:()=>i("Muted"),words:e=>i("Theme {n} muted color",{n:e})},surface:{ink:rf("surface"),page:rf("surface"),key:"surface",label:()=>i("Surface"),words:e=>i("Theme {n} surface color",{n:e})}};function sa(e){return G(QU,e)}var rg="#9ca3af";function is(e,o,t){let r=sa(e);return r?{hex:KP(o[r.key]??"")??"",words:r.words(t)}:null}function jP(e,o){return ZU.flatMap(t=>{let r=is(t,e,o);return r&&sa(t)?.ink?[{name:t,label:r.words,value:r.hex||rg}]:[]})}var eG=["main","text","background"];function VP(e){let o=new Set,t=[];return uo(e).themes.forEach((r,a)=>{for(let n of eG){let s=sa(n),l=s?r[s.key]:void 0,d=typeof l=="string"&&l?KP(l):null;!s||!d||o.has(d)||(o.add(d),t.push({value:d,label:s.words(a+1)}))}}),t}function Er(e){return sa(e)?.ink??""}function dr(e){if(typeof e!="string")return null;let o=ZP(e.trim());return o?.kind==="slot"&&Er(o.slot)?o.slot:null}var rG={accent:"main",labels:"muted"};function at(e){return G(rG,e)??e}function ds(e){if(!e)return"";if(e.startsWith("#"))return qP(e)===e.toLowerCase()?e:"";let o=tG(at(e));return o?.kind==="slot"?Er(o.slot):""}function cs(e,o=XP){return o.flatMap(t=>{let r=sa(t);return r?.ink?[{name:t,label:r.label(),value:e?.[t]||rg}]:[]})}function JP(e){let o=ZP(at(e));return o?.kind==="slot"?Er(o.slot):""}function ag(e){let o=e?.trim();return o?oG.find(t=>Er(t)===o)??null:null}function QP(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 XP){let l=Er(s);if(!l)continue;let d=l.replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(d).trim();if(!c)continue;let f=YP(c);!f&&n&&(n.fillStyle="#000000",n.fillStyle=c,f=YP(String(n.fillStyle))),f&&(o[s]=f)}return o}function YP(e){let o=e.trim().toLowerCase();if(o.startsWith("#"))return qP(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 nG="#ffffff";function ng(e){return eE(e)||(sG(e)?e:nG)}function eE(e){let o=dr(e);return o?sa(o)?.page??"":""}function sG(e){return typeof e=="string"&&aG(e)===e.toLowerCase()||eE(e)!==""}function kbe(e){return{"--bg":ng(e)}}import{parseHexColor as lG}from"efficient-shell/format";import{fillColorRole as iG}from"efficient-shell/markup";function Ka(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 Fbe="sf-card",la={min:0,max:100,step:5,fallback:0,unit:"%"},dG=[{label:"Even",value:"even"},{label:"From the bottom",value:"bottom"}],cG="68%",Bbe={desktop:20,phone:20,side:40,sidePhone:24},Dbe="sf-box-sides";function lg(e){return typeof e=="string"&&e.trim()!==""}function Nbe(e){return lg(typeof e?.bgImage=="string"?e.bgImage:null)||af(e)}function af(e){return rt(e,qd)!==""}function Mbe(e,o){return o||!af(e)?e:{...e,[qd]:""}}function Hbe(e,o){return Hl(o,rt(e,qd))?.trim()||null}function oE(e,o){let t=typeof e=="number"?e:Number.parseFloat(String(e??""));if(!Number.isFinite(t)||t<=0)return null;let r=(Math.min(la.max,Math.max(la.min,t))/100).toFixed(2);return o!=="bottom"?{background:nc(Number(r))}:{background:`linear-gradient(0deg, ${nc(Number(r))} 0%, ${nc(0)} ${cG})`}}var nf=e=>typeof e=="string"?lG(e.trim()):null,sg=e=>{let o=nf(e);if(o!==null||typeof e!="string")return o;let t=e.trim();return t&&!t.startsWith("#")&&JP(t)||null},sf=e=>{if(typeof e!="string")return null;let o=iG(at(e.trim()));return o?.kind==="slot"?o.slot:null},fG="swatch";function Wbe(e,o){if(!o)return null;let t=Hl(o,rt(e,fG)),r=dr(t);return nf(t)??(r&&Er(r)||null)}var pG={tabletClass:"sf-fill-tablet",tabletVar:"--sf-fill-tablet",phoneClass:"sf-fill-phone",phoneVar:"--sf-fill-phone"};function Ube(e,o,t){return Ka(pG,sg(e),sg(o),sg(t))}var uG={tabletClass:"sf-wash-tablet",tabletVar:"--sf-wash-tablet",phoneClass:"sf-wash-phone",phoneVar:"--sf-wash-phone"};function Gbe(e){let o=oE(e.darken,e.darkenStyle);if(!o)return{className:"",style:{}};let t=(u,p)=>String(oE(u,p)?.background??"none"),r=u=>(typeof u=="number"||typeof u=="string"&&u.trim()!=="")&&Number.isFinite(Number(u))?u:void 0,a=u=>dG.some(p=>p.value===u)?u:void 0,[n,s,l,d]=[r(e.darkenTablet),a(e.darkenStyleTablet),r(e.darkenPhone),a(e.darkenStylePhone)],c=n??e.darken,f=s??e.darkenStyle;return Ka(uG,String(o.background),n!==void 0||s!==void 0?t(c,f):null,l!==void 0||d!==void 0?t(l??c,d??f):null)}function zbe(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"},d={start:"items-start",center:"items-center",end:"items-end"};return`${l[n]} ${d[s]}`}function tE(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(ig(r,o,0))return{type:typeof a=="string"?a:"",props:n??{}}}return null}function ig(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>ig(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>ig(a,o,t+1))}function rE(e,o){let t=e?.content;return Array.isArray(t)?lf(t,o,0)??[]:[]}function lf(e,o,t){if(t>12||!e||typeof e!="object")return null;if(Array.isArray(e)){for(let a of e){let n=lf(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=lf(a,o,t+1);if(n)return[r,...n]}return null}for(let a of Object.values(e)){let n=lf(a,o,t+1);if(n)return n}return null}import{SettingsDefaultReset as Do,SettingsDrill as LV,SettingsField as co,SettingsGroup as FV,SettingsSegmented as BV,SettingsBorder as DV,SettingsSidesEach as NV,SettingsSwitch as _I,borderSides as MV,borderStartEach as HV}from"efficient-easel/panel";import{ListField as WV}from"efficient-easel/fields";import{DisplayChips as UV}from"efficient-shell/ui";import{HIDDEN_KEY as mG,hiddenInEveryView as hG,hiddenInView as dg,hiddenKeyOf as aE}from"efficient-easel/screen/lib/content/view-hide";var xG={"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"},gG={"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"},nE=e=>(e.desktop?"1":"0")+(e.tablet?"1":"0")+(e.mobile?"1":"0");function df(e,{atSectionLine:o=!1}={}){return(o?gG:xG)[nE(e)]}var fs=[mG,aE("tablet"),aE("mobile")];function sE(e){return{desktop:dg(e,"desktop"),tablet:dg(e,"tablet"),mobile:dg(e,"mobile")}}function Xl(e){return hG(e)}function Vbe(e){let o=sE(e);return["desktop","tablet","mobile"].filter(t=>o[t]).join(" ")}var IG={"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!"},bG={"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 Ybe(e,{atSectionLine:o=!1}={}){return(o?bG:IG)[nE(sE(e))]}function ps(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 cf(e,o){return ps(e)[o]!==!1}function cg(e,o,t){let r=ps(o)[t];return typeof r=="boolean"?r:cf(e,t)}function lE(e){return Object.values(ps(e)).some(o=>o===!1)}function iE(e){return Object.keys(ps(e)).length>0}function dE(e,o,t){let r={...ps(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function cE(e,o,t){return{...ps(e),[o]:t}}function Zbe(e,o,t,{atSectionLine:r=!0}={}){let a=!cf(e,t);return df({desktop:a,tablet:a,mobile:!cg(e,o,t)},{atSectionLine:r})}import{ColorSwatch as GV,CornersInput as zV,DatePicker as _Te,DateTimePicker as $V,FOCAL_DEFAULT as ATe,IconPicker as W0,COLUMN_COUNT_MAX as w0,COLUMN_SHARE_MIN as KV,COLUMN_SHARES_EQUAL as jV,resolveColumnShares as U0,WidthsBar as VV,useShellStrings as YV,IconButton as G0,InputNumber as C0,Slider as qV,Tooltip as AI}from"efficient-shell/ui";import{backendOf as yG}from"efficient-easel/screen/lib/session";var Ze=yG,ff=e=>e.blocks;async function fE(e){let o=e.trim();if(!o)return null;let t=Ze().geocode;if(!t)throw new Error("geocode_unavailable");return t.locate(o)}var fg="Lookup busy \u2014 try again in a moment.",pf=e=>typeof e=="number"&&Number.isFinite(e);function aye(e){return e.some(o=>{let t=o?.geocode;return t?t.pending||t.manual&&t.lat===void 0&&t.lng===void 0?!0:pf(t.lat)&&t.lat!==o.lat||pf(t.lng)&&t.lng!==o.lng:!1})}async function nye(e,o,{geocode:t=fE,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 d of e){if(!d?.geocode?.pending){s.push(d);continue}l&&r>0&&await a(r),l=!0;try{let c=await t(o(d));s.push(c?{...d,lat:c.lat,lng:c.lng,geocode:{...d.geocode,pending:!1,ok:!0,status:`Found \u2014 ${c.label.split(",").slice(0,3).join(",").trim()}`,lat:c.lat,lng:c.lng}}:{...d,geocode:{...d.geocode,pending:!1,ok:!1,status:"No match \u2014 check the address and try again."}})}catch{s.push({...d,geocode:{...d.geocode,pending:!1,ok:!1,status:fg}})}}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 d=pf(l.lat)&&l.lat!==s.lat?l.lat:s.lat,c=pf(l.lng)&&l.lng!==s.lng?l.lng:s.lng;return d!==s.lat||c!==s.lng?{...s,lat:d,lng:c}:s})}import{jsx as Vo,jsxs as ug}from"react/jsx-runtime";import{useRef as SG}from"react";import{ColorPicker as wG,ColorPickerPanel as CG,ColorSwatch as kG,HexInput as vG,Popover as TG,Tooltip as PG,colorFill as EG,colorSwatchClasses as OG,useShellStrings as _G}from"efficient-shell/ui";import{SettingsDefaultReset as AG,SettingsField as RG}from"efficient-easel/panel";import{typedHex as pg}from"efficient-easel/pick";var pE="Not set";function LG({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,ariaLabel:s,choices:l}){return Vo(BG,{value:e,onChange:o,label:i(s??t),id:r,caption:a,inherited:n,choices:l})}function FG(){let{theme:e}=ge();return VP(e)}function BG({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,choices:s}){let l=FG(),d=e?null:pg(n??""),c=a!==void 0&&(!e||pg(a)!==pg(e))?a:null,f=u=>{u!==e&&o(u)};return ug("div",{className:"sf-colour",children:[s?Vo(DG,{id:r,value:e,onChange:o,label:t,presets:l,follows:d,choices:s}):Vo(wG,{id:r,value:e,onChange:f,label:t,presets:l,fallback:d??void 0,size:"md",align:"start"}),c!==null?Vo("span",{className:"sf-colour-caption",children:c}):Vo("span",{className:"sf-colour-hexwrap",children:Vo(vG,{value:e||d||"",onChange:f,label:i("{label} hex code",{label:t}),placeholder:e||d?void 0:i(pE),className:d?"sf-colour-hex is-inherited":"sf-colour-hex",size:"md"})})]})}function DG({value:e,onChange:o,label:t,id:r,presets:a,follows:n,choices:s}){let l=_G().color,d=e||n||"",c=s.findIndex(p=>p.selected),f=c>=0,u=SG(c);return f&&(u.current=c),Vo(TG,{id:r,trigger:Vo("span",{"aria-hidden":"true",className:"absolute inset-0",style:EG(d)}),triggerLabel:l.swatch(t,d.toUpperCase()||l.none),triggerClassName:OG({size:"md"}),"aria-label":l.panel(t),align:"start",children:ug("div",{className:"sf-colour-window",children:[Vo("div",{role:"group","aria-label":t,className:"sf-colour-choices",children:s.map(p=>Vo(PG,{content:p.label,children:Vo(kG,{color:p.color,"aria-label":p.label,selected:p.selected,onClick:()=>{p.selected||p.onPick()}})},p.label))}),Vo(CG,{value:f?"":e,onChange:o,label:t,presets:a,fallback:(f?d:n)??void 0},u.current)]})})}function Yo({label:e,icon:o,changed:t,hint:r,onReset:a,resetTo:n,children:s,...l}){return ug(RG,{label:e,icon:o,htmlFor:l.id,changed:t,hint:r,action:a?Vo(AG,{words:se()?.panel,label:e,changed:!!t,detail:n,onReset:a}):void 0,children:[LG({...l,label:e}),s]})}function Zl({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:l,choices:d}){let c=!!t;return Vo(Yo,{label:e,icon:o,value:t,inherited:c?void 0:r,onChange:n,changed:c,onReset:s,resetTo:a,hint:l,choices:d})}import{keptByRow as vI}from"efficient-easel/screen/lib/document/style-fields";import{jsx as NG}from"react/jsx-runtime";import{useEffect as MG,useState as HG}from"react";import{clearRangeOf as WG,markSelection as UG,useCaretEdit as GG}from"efficient-easel/copy";import{TextToolbar as zG}from"efficient-shell/ui";function $G(e,o,t){return UG(e,o,t,bv)}function uE(e,o){let t=WG(o,e.length),r=Sv(e,t.start,t.end);return r.text===e?null:r}function KG(e){let[o,t]=HG(null);return MG(()=>{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(d=>d&&d.start===s&&d.end===l?d:{start:s,end:l})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function jG({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=GG({target:e,onChange:t}),[s,l]=KG(e),d=p=>n(h=>{let g=$G(o,p,h);return l({start:g.selectionStart,end:g.selectionEnd}),g}),c=gv(),f={};if(s)for(let p of c)f[p.style]=yv(o,s.start,s.end,p.style);let u=r?null:uE(o,s);return NG(zG,{offered:new Set(c.map(p=>p.style)),onMark:p=>d(p),pressed:f,disabled:r,"aria-label":i(a),className:"sf-markup-bar",clear:u?{onClear:()=>n(()=>{let p=e.current,h=p&&p.ownerDocument.activeElement===p?{start:p.selectionStart??0,end:p.selectionEnd??0}:null,g=uE(o,h)??{text:o,selectionStart:h?.start??0,selectionEnd:h?.end??0};return l({start:g.selectionStart,end:g.selectionEnd}),g})}:void 0})}var mg=jG;import{deviceField as mt}from"efficient-easel/screen/lib/document/device-fields";import{NO_CONTROL_FIELD as XV,NoControlMark as ZV,noControlField as z0}from"efficient-easel/screen/lib/document/panel-no-control-mark";var hg="__ownBox";function mE(e){return!!e&&typeof e=="object"&&e[hg]===!0}var xg="sfPanelOnly";function us(e){return!!e&&typeof e=="object"&&e[xg]===!0}function uf(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var mf=void 0;import{phoneKey as Cs,tabletKey as RI,viewKeyAt as LI}from"efficient-easel/draw";import{jsx as hf,Fragment as VG,jsxs as YG}from"react/jsx-runtime";import{useRef as qG}from"react";import{SettingsDefaultReset as XG}from"efficient-easel/panel";import{effectTiles as ZG}from"efficient-easel/screen/lib/document/effect-tiles";import{VIEW_KEY_ACCESS as hE,describedAs as JG,onDesktopWords as QG,phoneTwinFields as xE}from"efficient-easel/screen/lib/document/box-fields";function ez({row:e,read:o,...t}){let r=o(To(),t.followsView??"desktop");return e({...t,follows:r})}function Or(e,o){return Object.fromEntries(Ko.map(t=>{let r=Ie(e,t);return[r,xE(e,o(t),hE)[r]]}))}function xf(e,o,t){let r=o.render,a={...o,render:n=>hf(ez,{...n,row:r,read:t})};return Or(e,n=>n==="desktop"?o:a)}function oz({spec:e,...o}){let t=e.values.includes(o.value),r="follows"in o,a=e.read(To(),o.followsView??"desktop"),n=t?o.value:a,s=qG(null),{preview:l}=e,d=ZG({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,c=d({value:n,onChange:f=>o.onChange(f??e.fallback)});return YG(VG,{children:[l?hf("div",{ref:s,style:{display:"contents"},children:c}):c,r&&t&&hf(XG,{words:se()?.panel,label:i(e.tileWord),changed:!0,detail:QG(f=>i(f),i(e.word(a)),o.followsView),onReset:()=>o.onChange(void 0)})]})}function gf(e,o){let t=JG({type:"custom",render:r=>hf(oz,{...r,spec:o})},{type:"select",label:o.label,options:o.values.map(r=>({value:r,label:o.word(r)}))});return xE(e,t,hE)}import{jsx as Ig,Fragment as az}from"react/jsx-runtime";import{createContext as nz,useContext as sz}from"react";var If={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},bf={Events:["posts"],SubscribeBlogs:["posts"]};var tz=["anchor"],rz=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Jl(e){return tz.includes(e)||rz.test(e)}var gg={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"}}};gg.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var Hye=Object.fromEntries(Object.entries(If).map(([e,o])=>[e,Object.keys(o)])),Wye=Object.fromEntries(Object.entries(bf).map(([e,o])=>[e,[...o]]));import{NoControlMark as lz}from"efficient-easel/screen/lib/document/panel-no-control-mark";var gE=nz(!1);function IE({children:e}){return Ig(gE.Provider,{value:!0,children:e})}function iz(){return sz(gE)}function bE({name:e,children:o}){return!iz()||!e||!dz(e)||Jl(e)?Ig(az,{children:o}):Ig(lz,{})}function dz(e){return/^[A-Za-z0-9_$]+$/u.test(e)}var bg="off",SE="none",yg=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],wE=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function Yye(e){return io(yg,bg,e)}var yE="sf-card-index",Ql="sf-card-index",qye="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",cz={plain:`counter(${Ql})`,padded:`counter(${Ql}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Ql}, decimal-leading-zero)`};function Xye(e,o){return o==="off"?"":`.${e}{counter-reset:${Ql}}.${e} .${yE}{counter-increment:${Ql}}.${e} .${yE}::before{content:${cz[o]}}`}function Zye(e){return e==="hairline"?"border border-line hover:border-accent":""}var CE=[{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 JV}from"efficient-easel/draw";import{jsx as qo}from"react/jsx-runtime";import{SettingsDefaultReset as Iz,SettingsField as Sg}from"efficient-easel/panel";import{useSelectedHost as bz}from"efficient-easel/easel";import{FOCAL_DEFAULT as yz}from"efficient-shell/format";import{ImageIcon as wg,PlayIcon as vE}from"efficient-easel/icons";import{ImageFocusPoint as Sz,MediaUploadField as wz}from"efficient-shell/ui";import{useContext as Cz}from"react";import{ScreenDocumentContext as kz}from"efficient-easel/screen/components/ScreenDocumentContext";import{tabletKey as vz,viewKeyAt as Tz}from"efficient-easel/draw";import{usePreviewDevice as Pz}from"efficient-easel/draw/client";import{formatFocal as fz,parseFocal as pz}from"efficient-shell/format";var uz="sf-focus-phone",mz="--sf-focus-phone",hz="sf-focus-tablet",xz="--sf-focus-tablet",ei=e=>{if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return null;let{x:o,y:t}=pz(e);return fz(o,t)};function kE(e,o){return Ka(gz,null,ei(o),ei(e))}var gz={tabletClass:hz,tabletVar:xz,phoneClass:uz,phoneVar:mz};import{shownTier as Cg}from"efficient-easel/screen/lib/document/device-fields";import{onDesktopWords as Ez}from"efficient-easel/screen/lib/document/box-fields";import{requestMediaPick as Oz}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as _z}from"efficient-easel/screen/lib/host";import{useEaselSession as Az}from"efficient-easel/screen/lib/session-context";function Rz(e,o,t,r=!0){let a=Cg(t),n=typeof e[o]=="string"&&e[o]?String(e[o]):yz;if(a==="desktop")return{ownView:!1,followed:n,followsView:"desktop",own:void 0,focus:n,key:o};let s=Tz(o,a),l=ei(e[s])??void 0,d=a==="mobile"&&r?ei(e[vz(o)])??void 0:void 0,c=d??n;return{ownView:!0,followed:c,followsView:d?"tablet":"desktop",own:l,focus:l??c,key:s}}function Lz(e,o,t){let r=bz();if(!o||!r)return null;let a=r.values??{};if(t&&!t(a,Cg(e)))return null;let n=Rz(a,o,e,t?t(a,"tablet"):!0),s=r.onChange;return{...n,set:l=>s(n.key,l),clear:()=>s(n.key,mf)}}function TE({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s,frameKey:l,fieldKey:d}){let c=_z(),f=Az(),u=i(t),p=Pz(),h=r.startsWith("video"),g=Lz(p,h?void 0:n,s),I=!!n&&Cg(p)!=="desktop",C=Cz(kz),S=ia(),k=l&&d?{video:d,frame:l}:null,y=T=>Oz(c,{accept:r,title:u,...T?{file:T}:{}}).then(M=>!M||!k?M?.url??null:(S({[k.video]:M.url,[k.frame]:M.posterUrl??""}),null)),b=k?T=>T?o(T):S({[k.video]:"",[k.frame]:""}):o,O=Wo(e);if(I&&(!g||!O))return null;if(C&&!C.capabilities.mediaEditing)return qo(Sg,{label:u,icon:h?qo(vE,{}):qo(wg,{}),children:qo("div",{className:"sf-image-slot-inert",children:h?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 W=g?.ownView&&O?qo(Iz,{words:se()?.panel,label:i("Image focus"),changed:!!g.own,detail:Ez(T=>i(T),g.followed,g.followsView),onReset:g.clear}):void 0;return I&&g?qo(Sg,{label:u,icon:qo(wg,{}),action:W,children:qo("div",{style:{flex:"1 1 auto",minWidth:0},children:qo(Sz,{value:g.focus,onChange:g.set,label:i("Image focus"),image:O,hint:null})})}):qo(Sg,{label:u,icon:h?qo(vE,{}):qo(wg,{}),children:qo("div",{style:{flex:"1 1 auto",minWidth:0},children:qo(wz,{value:O,onChange:b,onPick:y,accept:h?"video/*":"image/*",kind:h?"video":"image",placeholder:a===void 0?void 0:i(a),maxSizeBytes:Ze(f).media.maxUploadBytes,...g?{focus:g.focus,onFocusChange:g.set}:{}})})})}import{jsx as PE}from"react/jsx-runtime";import{useId as Fz}from"react";import{FieldSelect as Bz}from"efficient-easel/fields";import{SettingsField as Dz}from"efficient-easel/panel";function Nz(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function EE({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let l=Fz(),d=`${l}-label`,c=`${l}-button`,f=Array.isArray(t)?t:[];return PE(Dz,{label:i(e),labelId:d,icon:n,hint:s,children:PE(Bz,{id:c,multiple:!0,value:f,options:Nz(o),onChange:r,placeholder:a===void 0?i("None"):i(a),ariaLabelledBy:`${d} ${c}`,inline:!0})})}import{jsx as ho,jsxs as Va,Fragment as p$}from"react/jsx-runtime";import{useCallback as UE,useContext as u$,useId as $E,useRef as GE,useState as zE}from"react";import{ThemeIcon as m$}from"efficient-easel/icons";import{Button as h$,useClickOutside as x$}from"efficient-shell/ui";import{SettingsField as g$}from"efficient-easel/panel";import{ScreenDocumentContext as I$}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as fe,jsxs as ca,Fragment as jz}from"react/jsx-runtime";import{parseHexColor as Vz}from"efficient-shell/format";import{Button as vg,IconButton as Yz,Tooltip as qz}from"efficient-shell/ui";import{jsx as da,jsxs as Mz}from"react/jsx-runtime";import{AccentIcon as Hz}from"efficient-easel/icons";import{Button as Wz,Tooltip as Uz}from"efficient-shell/ui";function kg(e){return $o(e).background}function Gz(e){let o=Kr(e.accent,kg(e));return o===null?null:{ratio:o,grade:Xn(o)}}function zz(e){let o=kg(e),t=Kr(e.accent,o);return t===null?[]:$C(e.accent).filter(r=>{let a=Kr(r,o);return a!==null&&a>t&&Xn(a)==="good"})}var $z={good:"Easy to read","large-only":qn["large-only"],hard:qn.hard};function OE({value:e,onChange:o}){let t=Gz(e),r=t?.grade,a=t&&t.grade!=="good"?zz(e):[];return da(Yo,{label:i("Main color"),icon:da(Hz,{}),hint:t?i($z[t.grade]):void 0,value:e.accent,onChange:n=>o({...e,accent:n}),children:a.length>0?da("div",{className:"w-full min-w-0",children:Mz("div",{className:"sf-readability",children:[da("p",{className:"sf-readability-advice",children:Kz(r,!0)}),da("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Kr(n,kg(e));return da(Uz,{content:i("Use {colour}",{colour:n.toUpperCase()}),children:da(Wz,{variant:"secondary",className:"sf-readability-suggestion",leftIcon:da("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 Kz(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 Xz,ChevronDownIcon as AE,ChevronUpIcon as Zz,GroundIcon as Jz,LayoutIcon as Qz,SquareIcon as e$,TextSmallIcon as o$,TypeIcon as _E}from"efficient-easel/icons";var oi=e=>i("Theme {n}",{n:e+1});function RE({colors:e}){let o=$o(e),t=yl(e)??o.accent;return ca("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")}),ca("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")}),ca("span",{className:"sf-theme-row",children:[fe("span",{className:"sf-theme-btn",style:{background:t,color:yh(e,o.accent)},children:i("button")}),fe("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:i("card")})]})]})}var Tg={"Text color":fe(_E,{}),"Label color":fe(o$,{}),Background:fe(Jz,{}),"Panels & cards":fe(Qz,{}),Borders:fe(e$,{}),"Button color":fe(Xz,{}),"Button text color":fe(_E,{})};function t$({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return fe(Yo,{label:i(e),icon:Tg[e],id:n,value:t,onChange:s=>r(o,s)})}function r$({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=e!==void 0&&Vz(e)===e.toLowerCase(),s=n?e:o;return fe(Yo,{label:i("Button color"),icon:Tg["Button color"],id:a,value:s,caption:n?s:i("Main"),onChange:t})}function a$({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=KC(e),s=yh(e,o),l=yl(e)??o,d=Xn(Kr(s,l)??0);return fe(Yo,{label:i("Button text color"),icon:Tg["Button text color"],hint:n&&d!=="good"?i("{grade} on the button",{grade:i(qn[d])}):void 0,id:a,value:s,caption:n?s:i("Auto"),onChange:t})}var n$=[{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 Pg({colors:e,onChange:o,idPrefix:t}){let r=$o(e);return fe(jz,{children:n$.map(a=>"colour"in a?fe(OE,{value:e,onChange:o},"colour"):"moduleBreak"in a?fe("div",{className:"sf-theme-module-break","aria-hidden":"true"},"module-break"):"button"in a?fe(r$,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?fe(a$,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):fe(t$,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function yf({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:l,onChangeColors:d}){let c=$o(o),f=oi(e),u=e<bh.length&&!o.brandInk?bh[e]:null,p=Xn(Kr(c.text,c.background)??0),h=u?JSON.stringify(o)!==JSON.stringify(u):!1,g=a!==void 0;return ca("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(RE,{colors:o})}),ca("div",{className:"sf-theme-foot",children:[fe("span",{className:"sf-theme-name",children:f}),p!=="good"&&fe("span",{className:"sf-theme-warn",children:i(qn[p])}),n&&l&&g&&fe("span",{className:"sf-theme-edit",children:fe(qz,{content:a?i("Collapse"):i("Edit colors"),children:fe(Yz,{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(Zz,{size:14}):fe(AE,{size:14})})})}),n&&l&&!g&&fe(vg,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:f}),onClick:l,children:i("Edit")})]}),a&&ca("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[fe(Pg,{colors:o,onChange:I=>d?.(I)}),u&&fe(vg,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!h,onClick:()=>d?.({...u}),children:h?i("Reset {name} to the preset",{name:f}):i("Not changed")})]})]})}function LE({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:l,onKeyDown:d,onEdit:c}){return ca("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:d,children:e?fe(RE,{colors:e}):fe("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),ca("div",{className:"sf-theme-foot",children:[fe("span",{id:t,className:"sf-theme-name",children:o}),c&&fe(vg,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":i("Edit {name}",{name:o}),onClick:c,children:i("Edit")}),fe("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:l,children:fe(AE,{size:12,className:"sf-multi-caret","aria-hidden":"true"})})]})]})}import{useCallback as Lg,useEffect as ME,useRef as kf}from"react";import{currentEaselSession as i$}from"efficient-easel/screen/lib/session";import{useEaselSession as d$}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as s$}from"react";var BE,Eg=null,ja=null,Sf=0,Og=new Set;function _g(e){BE=e;for(let o of Og)o()}function Ag(e){Eg=e,Sf+=1,ja&&clearTimeout(ja),ja=null,_g(void 0)}function wf(e){Sf+=1,_g(e)}function _r(e=250){Eg&&(ja&&clearTimeout(ja),ja=setTimeout(()=>{ja=null;let o=Eg;if(!o)return;let t=++Sf;o().then(r=>{t===Sf&&_g(r)}).catch(()=>{})},e))}function FE(){return BE}function l$(e){return Og.add(e),()=>{Og.delete(e)}}function Cf(){return s$(l$,FE,FE)}var Rg=new Set;function DE(e){return Rg.add(e),()=>{Rg.delete(e)}}async function NE(){let e=(await Promise.allSettled([...Rg].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as c$}from"efficient-easel/screen/lib/backend-error";function HE(e=i$()){return(o,t,r)=>{let a=Ze(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new c$("invalid","This backend stores no site theme."))}}function WE(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function f$(e,o=HE()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=WE({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 ms({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=kf(null),n=kf({}),s=d$(),l=kf(r);l.current=r;let d=kf(null),c=Lg(p=>{if(p.status==="skipped"){let h=`skipped:${p.reason}`;if(d.current===h)return;d.current=h}else d.current=null;l.current?.(p)},[]),f=Lg(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let p=n.current;n.current={};let h=await f$({themeFromDocument:e,token:o?.current,siteId:t,patch:p},HE(s));return c(h),h.status==="saved"&&_r(),h.status==="failed"&&(n.current={...p,...n.current}),h},[e,o,t,c,s]),u=Lg((p,h=!1)=>{let g=WE({themeFromDocument:e,token:o?.current});if(g){c(g);return}n.current={...n.current,...p},a.current&&clearTimeout(a.current),h?f():a.current=setTimeout(()=>{f()},500)},[e,o,f,c]);return ME(()=>()=>{f()},[f]),ME(()=>DE(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 b$="Follow the page",xwe="Follow the slideshow",y$=e=>i("Editing {name} changes it everywhere.",{name:e});function S$({colors:e}){if(!e)return ho("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=$o(e);return Va("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[ho("i",{style:{background:o.background}}),ho("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function w$({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return Va("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&Va(p$,{children:[Va("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Jt),children:[ho(S$,{}),ho("span",{className:"sf-secttheme-name",children:i(n)})]}),ho("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&ho("p",{className:"sf-secttheme-oncard",role:"presentation",children:i("{name} is on this section",{name:oi(o)})}),e.map((s,l)=>l===o?null:ho(yf,{role:"option",index:l,colors:s,selected:!1,onPick:()=>t(l),onEdit:()=>r(l)},l))]})}function C$({index:e,colors:o,onChange:t,onDone:r}){let a=oi(e),n=$E();return Va("div",{className:"sf-secttheme-sheet",children:[Va("div",{className:"sf-secttheme-sheet-head",children:[ho("span",{children:a}),ho(h$,{variant:"secondary",className:"sf-secttheme-done",onClick:r,children:i("Done")})]}),ho("div",{className:"sf-secttheme-rows",children:ho(Pg,{colors:o,onChange:t,idPrefix:n})}),ho("p",{className:"sf-secttheme-warn",children:y$(a)})]})}function KE({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=ge(),s=uo(a),l=u$(I$),d=l?.tokenRef,c=l?.siteId??null,f=!l?.capabilities?.hasSiteTheme,{persist:u,flush:p}=ms({themeFromDocument:f,tokenRef:d,siteId:c}),h=uo(s),g=h.themes,I=Qt(e),C=I!==null?g[I]:void 0,S=C??(g.length?Yn(h):void 0),[k,y]=zE(!1),[b,O]=zE(null),W=GE(null),T=GE(null),M=$E(),P=UE(()=>{y(!1),O(null)},[]),F=UE(()=>{!k&&b===null||(p(),P())},[k,b,P,p]);x$(W,F);let w=A=>{o(A),P()},E=A=>{if(b===null)return;let L=g.map(($,q)=>q===b?A:$),U={...h,themes:L};n(U),u({selected_preset:U.selected,theme_presets:U.themes})};return Va("div",{className:"sf-secttheme",ref:W,children:[ho(g$,{label:i("Theme"),icon:ho(m$,{}),labelId:`${M}-label`,hint:r,children:ho(LE,{colors:S,onEdit:I!==null?()=>{O(I),y(!1)}:void 0,name:C?oi(I):i(t??b$),nameId:`${M}-value`,labelId:`${M}-label`,open:k,menuId:M,buttonRef:T,onClick:()=>{O(null),y(A=>!A)},onKeyDown:A=>{A.key==="Escape"&&(k||b!==null)&&(A.preventDefault(),P())}})}),k&&b===null&&ho("div",{onKeyDown:A=>{A.key==="Escape"&&(A.preventDefault(),P(),T.current?.focus())},children:ho(w$,{themes:g,value:I,onPick:w,onEdit:A=>{O(A),y(!1)},menuId:M,followLabel:t})}),b!==null&&g[b]&&ho(C$,{index:b,colors:g[b],onChange:E,onDone:()=>{p(),P(),T.current?.focus()}})]})}import{jsx as jE}from"react/jsx-runtime";import{useId as k$}from"react";import{FieldSelect as v$}from"efficient-easel/fields";import{SettingsField as T$}from"efficient-easel/panel";function P$(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 Cwe({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:l}){let d=k$(),c=`${d}-label`,f=`${d}-button`,u=r??"",p=o.some(C=>C.value===u)?u:t,h=i(e),g=n===void 0?void 0:i(n),I=jE(v$,{id:f,value:p,options:P$(o),onChange:a,placeholder:g,searchPlaceholder:g,...s?{ariaLabel:h}:{ariaLabelledBy:`${c} ${f}`},searchable:!0,groupCount:!0,inline:!0});return s?I:jE(T$,{label:h,labelId:c,icon:l,children:I})}import{jsx as qa,jsxs as sK}from"react/jsx-runtime";import{SettingsField as hO}from"efficient-easel/panel";import{LinkIcon as lK}from"efficient-easel/icons";import{LinkPicker as iK,TextLinkField as dK}from"efficient-shell/ui";import{useEffect as mO,useMemo as Of,useRef as cK,useState as Ef}from"react";import{currentEaselSession as E$}from"efficient-easel/screen/lib/session";function VE(){return E$().auth.token}import{currentEaselSession as fK}from"efficient-easel/screen/lib/session";import{useScreenDocument as pK}from"efficient-easel/screen/components/ScreenDocumentContext";var O$=()=>({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 YE(e,o,t){if(!e)return"page";if(BP(e))return"popup";if(e.startsWith("/journal/"))return"blog";if(MP(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 Fg(e,o){let t=O$(),r=e.pages.map(f=>({value:ql(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:NP(...f.docs).map(u=>({value:of(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:DP(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:FP(u.slug),label:u.title||u.slug})),placeholder:t.choosePopup};case"custom":return{type:"text"}}},d=LP(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:d,rules:{kindOf:f=>YE(f,n),targetOf:f=>f,readFilter:()=>null,withFilter:f=>f}};let c=f=>{let u=o.withFilter(f,null);return o.listingPaths.includes(u)?u:f};return{kinds:d,rules:{kindOf:f=>YE(f,n,{listingPaths:o.listingPaths,targetOf:c}),targetOf:c,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:f=>o.listingPaths.includes(f)?o.filtersFor(f):null}}import{useEaselSession as uK}from"efficient-easel/screen/lib/session-context";function Po(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 qE(e,o){return j(e)??o}function Ar(e,o){return typeof e=="boolean"?e:o}function vf(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Po(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var ZE=["delay","scroll","exit"],JE=["all","chosen","except"],QE=["visit","days","never","once"],_$=["all","desktop","phone"],A$=["stop","continue"],eO={min:0,max:60},oO={min:10,max:90},tO={min:1,max:90},Bt={autoOpen:!1,trigger:"delay",autoOpenDelaySec:15,scrollPercent:50,showOn:"all",showOnPages:[],devices:"all",hideAfter:"days",hideDays:7,afterSubmit:"stop",startDate:null,endDate:null};function nt(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function hs(e,o,t){let r=qE(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function R$(e){return typeof e.hideAfter=="string"?nt(QE,e.hideAfter,Bt.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Bt.hideAfter}function L$(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function XE(e){if(typeof e!="string")return null;let o=e.trim();return/^\d{4}-\d{2}-\d{2}$/.test(o)?o:null}function rO(e){let o=e??{},t=Bt;return{autoOpen:Ar(o.autoOpen,t.autoOpen),trigger:nt(ZE,o.trigger,t.trigger),autoOpenDelaySec:hs(o.autoOpenDelaySec,eO,t.autoOpenDelaySec),scrollPercent:hs(o.scrollPercent,oO,t.scrollPercent),showOn:nt(JE,o.showOn,t.showOn),showOnPages:L$(o.showOnPages),devices:nt(_$,o.devices,t.devices),hideAfter:R$(o),hideDays:hs(o.hideDays,tO,t.hideDays),afterSubmit:nt(A$,o.afterSubmit,t.afterSubmit),startDate:XE(o.startDate),endDate:XE(o.endDate)}}import{parseHexColor as F$}from"efficient-shell/format";var Dt="#000000";var Bg="popup",B$=fk,D$=["auto","full"],N$=["inside","outside","none"],M$={min:240,max:1440},H$={min:0,max:100},ti={placement:"center",fullWidth:!1,width:720,height:"auto",tintColor:Dt,tintOpacity:60,outsideClick:!0,closeButton:"inside"};function W$(e,o){let t=typeof e=="string"?e.trim():"";return t&&F$(t)===t.toLowerCase()?t:o}function Dg(e,o=ti){let t=e??{},r=o;return{placement:nt(B$,t.placement,r.placement),fullWidth:Ar(t.fullWidth,r.fullWidth),width:hs(t.width,M$,r.width),height:nt(D$,t.height,r.height),tintColor:W$(t.tintColor,r.tintColor),tintOpacity:hs(t.tintOpacity,H$,r.tintOpacity),outsideClick:Ar(t.outsideClick,r.outsideClick),closeButton:nt(N$,t.closeButton,r.closeButton)}}var aO="cart-drawer",Kwe="cart-drawer",U$={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 jwe(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function Vwe(e){let o=e??{},t=U$;return{kickerBadge:Po(o.kickerBadge,t.kickerBadge),kickerText:Po(o.kickerText,t.kickerText),titleLead:Po(o.titleLead,t.titleLead),titleAccent:Po(o.titleAccent,t.titleAccent),subtitleEmpty:Po(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Po(o.subtitleOne,t.subtitleOne),subtitleMany:Po(o.subtitleMany,t.subtitleMany),leadTimeValue:Po(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Po(o.shipsToFallback,t.shipsToFallback),promises:vf(o.promises,t.promises),emptyKicker:Po(o.emptyKicker,t.emptyKicker),emptyBody:Po(o.emptyBody,t.emptyBody)}}var G$=["right","left"],z$={...ti,width:520,tintOpacity:68};function Ywe(e){let o=e??{};return{...Dg(o,z$),placement:nt(G$,o.placement,"right"),height:"full",fullWidth:!1,autoOpen:Ar(o.autoOpen,!0)}}var sO="consent-banner",Jwe="consent-banner";var $$=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],Qwe="Layout",nO={layout:"bar"},K$=e=>$$.some(o=>o.value===e);function eCe(e){let o=Po((e??{}).layout,nO.layout);return{layout:K$(o)?o:nO.layout}}var oCe={...ti,placement:"bottom-center",fullWidth:!0,width:440,tintOpacity:0,outsideClick:!1,closeButton:"none"};var j$="consentWords",V$=["eyebrow","notice","accept","reject","choose"];function Ng(e){let o=(e??{})[j$];return typeof o=="string"&&V$.includes(o)?o:null}function Mg(e){let o=e?.props;return o?Ng(o)!==null?!0:Object.values(o).some(t=>Array.isArray(t)&&t.some(r=>r&&typeof r=="object"&&"props"in r&&Mg(r))):!1}var Y$=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],aCe={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"},q$={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"},nCe={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 lO(e){let o={};for(let t of Y$){let r=Sr(e[q$[t]]);r&&(o[t]=r)}return o}var iO={heading:"Join our email list",placeholder:"Email address",buttonLabel:"Subscribe"},X$={lead:"We accept"},Pf={...X$,methods:[],size:"sm",align:"start",dataSource:Xk},Nt="site-footer";var iCe=Nt,dCe={desktop:!0,tablet:!0,mobile:!0},cCe={desktop:!1,tablet:!1,mobile:!1},Hg=1,dO=6,fCe=Array.from({length:dO-Hg+1},(e,o)=>Hg+o),Tf={desktop:6,tablet:3,mobile:2},Z$={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}},Ya=e=>Math.min(Math.max(Math.round(e),Hg),dO);function pCe(e){if(typeof e=="number")return Z$[Ya(e)]??{desktop:Ya(e),tablet:Ya(e),mobile:Ya(e)};if(e&&typeof e=="object"){let o=e;return{desktop:Ya(o.desktop??Tf.desktop),tablet:Ya(o.tablet??Tf.tablet),mobile:Ya(o.mobile??Tf.mobile)}}return{...Tf}}var Wg="subscribe-popup",yCe="subscribe-popup",J$=[Wg,Nt,aO,sO];function fO(e){return J$.includes(e)}var Q$=["right","left"],eK={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
|
|
75
|
+
*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:Bt.autoOpen,autoOpenDelaySec:Bt.autoOpenDelaySec,formSlug:"",trigger:Bt.trigger,scrollPercent:Bt.scrollPercent,showOn:Bt.showOn,showOnPages:[],hideAfter:Bt.hideAfter,hideDays:Bt.hideDays,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},Je=Po,oK=Ar,pO=vf;function cO(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 tK(e,o){return Array.isArray(e)?pO(e,[]):o}function rK(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:Je(r.label,""),value:Je(r.value,"")}}).filter(t=>t.label||t.value):o}function wCe(e){let o=e??{},t=eK,r=rO(o);return{metaLabel:Je(o.metaLabel,t.metaLabel),issueLabel:cO(o.issueLabel,t.issueLabel),issueNumber:cO(o.issueNumber,t.issueNumber),kicker:Je(o.kicker,t.kicker),heading:Je(o.heading,t.heading),deck:Je(o.deck,t.deck),stats:rK(o.stats,t.stats),formLabel:Je(o.formLabel,t.formLabel),formHeading:Je(o.formHeading,t.formHeading),formIntro:Je(o.formIntro,t.formIntro),firstNameLabel:Je(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:Je(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:Je(o.emailLabel,t.emailLabel),emailPlaceholder:Je(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:Je(o.interestsLabel,t.interestsLabel),interests:pO(o.interests,t.interests),frequencyLabel:Je(o.frequencyLabel,t.frequencyLabel),frequencies:tK(o.frequencies,t.frequencies),submitText:Je(o.submitText,t.submitText),finePrint:Je(o.finePrint,t.finePrint),dismissText:Je(o.dismissText,t.dismissText),emailInvalidText:Je(o.emailInvalidText,t.emailInvalidText),submitErrorText:Je(o.submitErrorText,t.submitErrorText),successHeading:Je(o.successHeading,t.successHeading),successBody:Je(o.successBody,t.successBody),keepBrowsingText:Je(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:r.autoOpen,autoOpenDelaySec:r.autoOpenDelaySec,trigger:r.trigger,scrollPercent:r.scrollPercent,showOn:r.showOn,showOnPages:r.showOnPages,hideAfter:r.hideAfter,hideDays:r.hideDays,formSide:nt(Q$,o.formSide,t.formSide),valuePanelOnPhone:oK(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:lO(o)}}function aK(e,o=Math.random){for(;;){let t=`popup-${Math.floor(o()*2176782336).toString(36).padStart(6,"0")}`;if(!e.has(t))return t}}function nK(e){return{root:{props:{title:e,kind:Bg}},content:[],zones:{}}}function uO(e,o,t){return{slug:aK(o,t),title:e,kind:Yx,layout:nK(e)}}function ri(e){return e?.root?.props?.kind===Bg}function xO(e){let o=new Map;return(t="")=>{let r=VE(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!fK().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var mK=xO(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ze();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),hK=xO(async(e,o)=>await Ze().blog?.posts(o?{siteId:o}:void 0)??[]);function xK({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=Of(()=>Fg(r,a),[r,a]),s=i(t);return qa(hO,{label:s,icon:qa(lK,{}),children:qa(iK,{value:e,onChange:l=>o(l),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function gO(){let{siteId:e,capabilities:o}=pK(),{offersCommerce:t,hasBlog:r}=o,[a,n]=Ef([]),[s,l]=Ef([]),[d,c]=Ef([]),[f,u]=Ef(null),p=uK().chrome,h=p?.products?.list,g=p?.linkFilters,I=g?void 0:p?.linkRow,C=cK(!0);mO(()=>(C.current=!0,()=>{C.current=!1}),[]),mO(()=>{let y=!0;return mK(e??void 0).then(b=>y&&C.current&&n(b)),r&&hK(e??void 0).then(b=>y&&C.current&&l(b)),t&&h?.().then(b=>y&&C.current&&c(b)),t&&g?g.load(e).catch(()=>null).then(b=>y&&C.current&&u(()=>b)):u(null),()=>{y=!1}},[e,t,r,h,g]);let S=Of(()=>({pages:a.filter(y=>!fO(y.slug)&&!ri(y.layout)).map(y=>({slug:y.slug,title:y.label,docs:[y.layout]})),popups:a.filter(y=>y.slug===Wg||ri(y.layout)).map(y=>({slug:y.slug,title:y.label})),posts:r?s.map(y=>({slug:y.slug,title:y.title})):[],products:t?d.map(y=>({href:y.href,name:y.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,d,t,r]),k=Of(()=>f?f(S.pages):null,[f,S]);return{data:S,filters:k,pages:a,offersCommerce:t,HostLinkRow:I}}function GCe({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:l}=gO(),d=Of(()=>Fg(s,l),[s,l]),c=i(e);return qa(hO,{label:c,icon:o,children:qa(dK,{label:c,text:t,onTextChange:r,link:a,onLinkChange:f=>n(f),kinds:d.kinds,rules:d.rules,filtersFor:d.filtersFor})})}function IO({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:l,HostLinkRow:d}=gO(),c=a.pages.map(u=>ql(u.slug)),f=l&&d&&(r==="/"||c.includes(r))?d:void 0;return sK("div",{children:[qa(xK,{value:r,onChange:o,label:t,data:a,filters:n}),f&&qa(f,{value:r,onChange:o,pages:s})]})}import{UiIcon as k0}from"efficient-easel/draw/client";import{phoneKey as PO,resolveViewValue as EK,tabletKey as EO,viewKeyAt as ai}from"efficient-easel/draw";import{SECTION_PAD_UNIT_KEY as OK,SITE_SIDE as _K,convertLength as AK,isLengthUnit as RK,isSiteSide as _O,sideLengthAt as LK,sideValueAt as FK,withLength as jg}from"efficient-easel/screen/lib/content/length-units";var Io={min:1e3,max:2e3,step:50,default:1600};function gK(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var Ug="--sf-site-width",zg=`var(${Ug},${Io.default}px)`,KCe="100vw",jCe=`max-w-[${zg}]`,VCe=`max-w-[${Io.default}px]`;function wO(e){return typeof e!="number"||!Number.isFinite(e)?Io.default:Math.round(Math.min(Math.max(e,Io.min),Io.max))}function YCe(e,o){let t=_a(e,o,"size",Io,{floor:!0});if(t!==null)return{[Ug]:t};let r=wO(e);return r===Io.default?{}:{[Ug]:`${r}px`}}var dt={min:0,max:80,step:4,default:40},Gg="--sf-site-gutter",fa={min:0,max:24,step:4},bO="--sf-site-gutter-phone",IK="max-view-tablet:[--sf-site-gutter:var(--sf-site-gutter-phone)]!",st=`var(${Gg},${dt.default}px)`,bK=`px-[${st}]`;var cr={md:`min(24px,${st})`,sm:`min(20px,${st})`,frame:`min(24px,${st})`,tabs:`min(16px,${st})`},qCe=[[`max-view-desktop:px-[${cr.md}]`,"max-view-desktop:px-6"],[`max-view-desktop:px-[${cr.tabs}]`,"max-view-desktop:px-4"],[`max-[960px]:px-[${cr.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${cr.md}]`,"max-[900px]:px-6"],[`max-view-wide:px-[${cr.md}]`,"max-view-wide:px-6"],[`max-view-tablet:px-[${cr.sm}]`,"max-view-tablet:px-5"],[`max-view-wide:px-[${cr.sm}]`,"max-view-wide:px-5"],[`max-[640px]:px-[${cr.sm}]`,"max-[640px]:px-5"],[`view-wide:px-[${st}]`,"view-wide:px-10"],[`max-view-tablet:px-[min(24px,${st})]`,"max-view-tablet:px-6"],[`max-view-wide:-mx-[min(20px,${st})]`,"max-view-wide:-mx-5"],[`max-view-tablet:-mx-[min(20px,${st})]`,"max-view-tablet:-mx-5"],[`-mx-[${st}]`,"-mx-10"],[bK,"px-10"]];var CO="max-view-wide:px-[min(20px,var(--sf-site-gutter,40px))]";function $g(e){return yK[e??"box"]}var yO="var(--sf-pad-site,var(--sf-box-g,var(--sf-site-gutter,40px)))",SO="[--sf-edge-g:var(--sf-pad-site)]",yK={box:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-[960px]:[--sf-pad-site:min(24px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:yO,edge:SO,frame:"max-[960px]:px-[min(24px,var(--sf-site-gutter,40px))]"},site:{className:"[--sf-pad-site:var(--sf-box-g,var(--sf-site-gutter,40px))] max-view-wide:[--sf-pad-site:min(20px,var(--sf-box-g,var(--sf-site-gutter,40px)))]",value:yO,edge:SO,frame:CO}},XCe=`mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] ${CO}`,ZCe="[--sf-box-g:var(--sf-site-gutter,40px)] [&>*]:[--sf-site-gutter:0px]";var JCe="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 _f(e){return typeof e!="number"||!Number.isFinite(e)?dt.default:Math.round(Math.min(Math.max(e,dt.min),dt.max))}function QCe(e,o){let t=_a(e,o,"spacing",dt);if(t!==null)return{[Gg]:t};let r=_f(e);return r===dt.default?{}:{[Gg]:`${r}px`}}function Af(e){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,fa.min),fa.max))}function kO(e){return typeof e=="number"&&Number.isFinite(e)?wO(e):null}function eke(e,o){let t=_a(e,o,"spacing",fa);if(t!==null)return{[bO]:t};let r=Af(e);return r===null?{}:{[bO]:`${r}px`}}function oke(e){return Af(e)===null?"":IK}function Rf(e){return Math.min(fa.max,_f(e))}var vO=zg,tke=`max-w-[${vO}]`,rke=`max-w-[min(var(--sf-page-cap,${Io.default}px),${Io.default}px)]`,TO="--sf-hero-cap",SK=`var(${TO},none)`,ake=`max-w-[${SK}]`,wK="--sf-hero-bleed-m",CK="--sf-hero-bleed-w",kK="--sf-hero-chrome-x",vK="--sf-hero-chrome-cap";function nke(e){return e===!0?{[TO]:vO,[wK]:"auto",[CK]:"100%",[kK]:"24px",[vK]:"none"}:{}}var Kg=`calc(${zg} - ${st}*2)`,ske=`max-w-[${Kg.replace(/ /g,"_")}]`;var TK="--sf-chrome-cap",PK=`var(${TK},${Kg})`,lke="data-page-width";function ike(e){return e==="full"?"full":null}function dke(e){return e==="full"?null:gK(e==="content"?Kg:PK)}function cke(e){if(e==="full")return"full";if(e==="content")return"content"}var ct={min:10,max:200,step:10};function BK(e,o,t,r=0){let a=j(e),n=j(o);if(a===void 0&&n===void 0)return;let s=Lf(t),l=d=>d===void 0?void 0:s==="px"?d:jg(d,s,r);return{paddingTop:l(a),paddingBottom:l(n)}}var Lf=e=>eo(e),DK="sf-pad-top-phone",NK="sf-pad-bottom-phone",MK="--sf-pad-t-phone",HK="--sf-pad-b-phone",WK="sf-pad-left-phone",UK="sf-pad-right-phone",GK="--sf-pad-l-phone",zK="--sf-pad-r-phone",$K="sf-pad-top-tablet",KK="sf-pad-bottom-tablet",jK="sf-pad-left-tablet",VK="sf-pad-right-tablet",YK="--sf-pad-t-tablet",qK="--sf-pad-b-tablet",XK="--sf-pad-l-tablet",ZK="--sf-pad-r-tablet";function Bf(e){let o={desktop:e.unit,tablet:e.unitTablet,phone:e.unitPhone},t=BK(e.top,e.bottom,e.unit,e.frame),r=Vg({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,e.sideSpace);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 JK=e=>_O(e)?e:j(e),QK=[["top","paddingTop",[$K,YK],[DK,MK]],["bottom","paddingBottom",[KK,qK],[NK,HK]],["left","paddingLeft",[jK,XK],[WK,GK]],["right","paddingRight",[VK,ZK],[UK,zK]]];function Ike(e,o,t){return!RK(o)||o==="px"?e:AK(e,"px",o,t,{min:0,max:ct.max,step:1})}function ej(e,o,t,r={},a=0){let n=(h,g)=>{if(g==="px")return`${h}px`;let I=jg(h,g,a);return typeof I=="number"?`${I}px`:I},s={n:e,[EO("n")]:o,[PO("n")]:t,u:r.desktop,[EO("u")]:r.tablet,[PO("u")]:r.phone},l=EK("spacing",j(e),j(o),j(t),jn()),d=(h,g,I)=>{if(FK(s,{side:"n"},h,"side",["side"])?.value===_K)return $g().value;let C=LK(s,{side:"n"},"u",h,"side");if(!C)return;let S=g!==null&&!I&&C.unit==="px"&&typeof l[g]=="number";return n(S?l[g]:C.value,C.unit)},c=d("desktop",null,!0),f={},u=d("tablet","tablet",o!==void 0);u!==void 0&&(o!==void 0||u!==c)&&(f.tablet=u);let p=d("mobile","phone",t!==void 0);return p!==void 0&&(t!==void 0||p!==c)&&(f.phone=p),f}function Vg(e,o,t={},r=e,a={},n=0,s="box"){let l={},d={},c=[],f=$g(s),u=!1;for(let[p,h,...g]of QK){let I=p==="left"||p==="right"?JK:j,C=I(e[p]),S=p==="top"||p==="bottom"?n:0;_O(C)?(l[h]=f.value,u=!0):C!==void 0&&(l[h]=Lf(a.desktop)==="px"?C:jg(C,Lf(a.desktop),S));let k=ej(I(r[p]),I(t[p]),I(o[p]),a,S);for(let[y,[b,O]]of[["tablet",g[0]],["phone",g[1]]]){let W=k[y];W!==void 0&&(c.push(b),d[O]=W,W===f.value&&(u=!0))}}return u&&c.push(...f.className.split(" ")),{classes:c,style:{...l,...d}}}function OO(e,o,t){let r=j(e)??t,a=j(o);return r===void 0?a:a===void 0?r:r+a}function Df(e,o={}){return{top:OO(e.padTop,e.sectionPaddingTop,o.top),bottom:OO(e.padBottom,e.sectionPaddingBottom,o.bottom)}}var Ff={top:"sectionPaddingTop",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft",right:"sectionPaddingRight"};function AO(e,o=Ff,t=!0,r=o===Ff?OK:void 0){let a={};if(r){e[r]!==void 0&&(a.unit=e[r]);for(let n of["tablet","mobile"])e[ai(r,n)]!==void 0&&(a[ai("unit",n)]=e[ai(r,n)])}for(let n of t?["top","bottom","left","right"]:["top","bottom"]){a[n]=e[o[n]];for(let s of["tablet","mobile"])a[ai(n,s)]=e[ai(o[n],s)]}return a}function bke(e){return Bf(e)}function yke(e,o){let t=(r,a)=>typeof r!="number"?void 0:Lf(a)==="px"?r+o:r;return Bf({...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 Nf,buttonBorderOf as oj,buttonFillOpacityOf as tj,buttonPadSidesOf as rj,viewKeyAt as aj}from"efficient-easel/draw";import{BUTTON_PAD_UNIT_KEY as Yg,lengthOf as nj}from"efficient-easel/screen/lib/content/length-units";var sj="px-6 py-4",lj=4,Mf=e=>{let o=new RegExp(`\\bp${e}-(?:\\[(\\d+)px\\]|(\\d+))`).exec(sj);if(!o)throw new Error(`BUTTON_PAD_CLASSES has no p${e}`);return o[1]!==void 0?Number(o[1]):Number(o[2])*lj},Oke={top:Mf("y"),right:Mf("x"),bottom:Mf("y"),left:Mf("x")},LO="var(--btn)";function ij(e){let o=e.variant==="ghost",t=tj(e.buttonFillOpacity),r=oj(e.buttonBorder),a=Z(e.buttonColor);return{fillOpacity:t??(o?0:100),border:{width:r?.width??1,color:r?.color??a??(o?"currentColor":LO)},changed:t!==void 0||r!==void 0}}function _ke(e){let o=ij(e);if(!o.changed)return null;let t=Z(e.buttonColor)??LO;return{background:o.fillOpacity===0?"transparent":o.fillOpacity===100?t:`color-mix(in srgb, ${t} ${o.fillOpacity}%, transparent)`,borderWidth:nj(o.border.width,eo(e.buttonBorderUnit)),borderStyle:"solid",borderColor:o.border.color}}var dj="var(--sf-button-radius, 0)";function Ake(e){let o=j(e.buttonCorners),t=lr(e.buttonCornerSides);if(o===void 0&&t===null)return null;let r=o===void 0?dj:Le(Math.max(0,o),e.buttonCornersUnit);return{borderRadius:t===null?r:Ua(r,t)}}function Rke(e){let o=(s,l)=>e[aj(s,l)],t=s=>rj({top:o(Nf.top,s),right:o(Nf.right,s),bottom:o(Nf.bottom,s),left:o(Nf.left,s)})??{},r={desktop:o(Yg,"desktop"),tablet:o(Yg,"tablet"),phone:o(Yg,"mobile")},{classes:a,style:n}=Vg(t("desktop"),t("mobile"),t("tablet"),void 0,r);return Object.keys(n).length?{className:a.join(" "),style:n}:null}var RO="upper";function FO(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:d}=t,c=Z(r.case)??RO;return`${l} \xB7 ${d[c]??d[RO]}`}import{usePreviewParts as QV}from"efficient-easel/draw/client";import{encodePartId as e8}from"efficient-easel/draw";import{DEFAULT_EASEL_STRINGS as o8,useEaselStrings as t8}from"efficient-easel/strings";import{PIN_STICK_VAR as cj,PIN_TRACK_POSITION_VAR as fj,pinAttrs as BO,pinStickVars as pj,readPin as Zg}from"efficient-shell/format";var Mke="Stick to top",ft={min:0,max:200,step:4,fallback:0},ni={kind:"position",unitKey:"stickTopDistanceUnit"},DO=Vn(ni),[uj,mj,hj]=DO,Jg="Pin while scrolling",NO="Scroll",Mt={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"},Xa="stickTopScreens",xj=[Xa,"stickTopScreensTablet","stickTopScreensPhone"],Qg="Screens",eI="stickTopStop",xs="screen",MO="Pin stops at",HO=[{value:"header",label:"Under the header"},{value:xs,label:"Screen top"}],WO="header",UO="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 oI(e){return e===xs?xs:"header"}function GO(e){return e===xs?xs:void 0}var si="stickAbove",zO="Stays above",$O="On: the pinned box stays on top, and the sections after it scroll under it.";function gj(e){return e.stickAbove===!0}var KO=["stickTop","stickTopDistance","stickTopTablet","stickTopDistanceTablet","stickTopPhone","stickTopDistancePhone",...DO,...xj,eI,si],Hke=new Set(["IntroBleed"]),Wke=new Set(["CategoryBar","DocTabs","Contents"]);function Ij(e){return typeof e.stickTop=="boolean"?e.stickTop:e.sticky!==!1}var qg=e=>Zg(!0,e).length,tI={any:["stickTop","stickTopTablet","stickTopPhone"].map(e=>({field:e,is:!0}))},jO={all:[{not:{field:"stickTop",in:[!0,!1]}},{not:{field:"sticky",is:!1}}]};function Xg(e,o="px"){let t=j(e)??ft.fallback;return o!=="px"?Math.max(ft.min,t):Math.min(ft.max,Math.max(ft.min,Math.round(t)))}function rI(e){return typeof e.stickTopTablet=="boolean"}function aI(e){return typeof e.stickTopPhone=="boolean"}function gs(e,o={}){let t=o.intro?Ij(e):e.stickTop===!0,r=e,a=eo(r[uj]),n=Xg(e.stickTopDistance,a),s=qg(e.stickTopScreens),l=rI(e),d=l?e.stickTopTablet===!0:t,c=l?eo(r[mj]):a,f=l?Xg(e.stickTopDistanceTablet,c):n,u=l?qg(e.stickTopScreensTablet):s,p=aI(e),h=p?e.stickTopPhone===!0:d,g=p?eo(r[hj]):c,I=p?Xg(e.stickTopDistancePhone,g):f,C=p?qg(e.stickTopScreensPhone):u;return{desktop:t,desktopDistance:n,desktopUnit:a,desktopScreens:s,tablet:d,tabletDistance:f,tabletUnit:c,tabletScreens:u,ownTablet:l,phone:h,phoneDistance:I,phoneUnit:g,phoneScreens:C,ownPhone:p}}function Uke(e,o={}){let t=gs(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&&gj(e),s=o.track===!0&&!r&&a&&!n,l=(u,p,h,g)=>Ka({tabletClass:"",tabletVar:`${u}-tablet`,phoneClass:"",phoneVar:`${u}-phone`},p,h,g).style,d={...o.atScreenTop||oI(e.stickTopStop)===xs?{[Mt.header]:"0px"}:{},[Mt.distance]:Le(t.desktopDistance,t.desktopUnit),...l(Mt.distance,Le(t.desktopDistance,t.desktopUnit),Le(t.tabletDistance,t.tabletUnit),Le(t.phoneDistance,t.phoneUnit))};if(s){let u=h=>h?"1":"0",p={...d,...t.desktop?{}:{[Mt.on]:"0"},...l(Mt.on,u(t.desktop),u(t.tablet),u(t.phone)),[Mt.length]:String(t.desktopScreens),...l(Mt.length,String(t.desktopScreens),String(t.tabletScreens),String(t.phoneScreens)),...bj(t.desktop&&t.desktopScreens===0,t.tablet&&t.tabletScreens===0,t.phone&&t.phoneScreens===0,l)};return{attrs:BO(Zg(!0),"track").attrs,style:p}}let c=u=>u?"sticky":"static",f={...d,...t.desktop?{}:{[Mt.position]:"static"},...l(Mt.position,c(t.desktop),c(t.tablet),c(t.phone))};return{attrs:BO(Zg(!0),"stick",n?{above:n}:{}).attrs,style:f}}function bj(e,o,t,r){let a=[[Mt.stick,cj],[Mt.trackPosition,fj]],[n,s,l]=[e,o,t].map(pj);return Object.fromEntries(a.flatMap(([d,c])=>[...e?[[d,n[c]]]:[],...Object.entries(r(d,n[c],s[c],l[c]))]))}var yj=["column","row","tabs","accordion"];var Sj={column:"Stacked",row:"One row",tabs:"Tabs",accordion:"Accordion"},VO={Flex:yj,HeroGroup:["column","row"]},wj={Flex:"row",HeroGroup:"column"},Cj={column:"flex-col",row:"flex-row",tabs:"flex-col",accordion:"flex-col"};function Is(e,o){return VO[e].includes(o)?o:wj[e]}function zke(e,o){return Cj[Is(e,o)]}function YO(e){return VO[e].map(o=>({label:Sj[o],value:o}))}import{viewKeyAt as nI}from"efficient-easel/screen/lib/content/view-tiers";var Wf=20,kj=["solid","dashed","dotted"],Uf=["top","right","bottom","left"],Vke="sf-section-border",Yke="sf-section-border-self",vj=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Tj=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(Wf,Math.max(0,Math.round(e)))}px`:void 0,li={kind:"border",unitKey:"sectionBorderUnit"},XO=Vn(li);function qke(e){let o=li.unitKey;return{desktop:e[nI(o,"desktop")],tablet:e[nI(o,"tablet")],phone:e[nI(o,"mobile")]}}var qO=(e,o)=>o==="px"?Tj(e):typeof e=="number"&&Number.isFinite(e)?Le(Math.max(0,e),o):void 0;function Hf(e,{phone:o=!1,tablet:t=!1,unit:r}={}){if(!e||typeof e!="object")return;let a=o?"-phone":t?"-tablet":"",n={},s=eo(r);for(let l of Uf){let d=qO(e[l],s)??qO(e.width,s);d!==void 0&&(n[`--sf-border-${l}-width${a}`]=d)}return typeof e.style=="string"&&kj.includes(e.style)&&(n[`--sf-border-style${a}`]=e.style),typeof e.color=="string"&&vj.test(e.color)&&(n[`--sf-border-color${a}`]=e.color.toLowerCase()),Object.keys(n).length?n:void 0}function sI(e){let{width:o,...t}=e;return typeof o!="number"?e:{...t,...Object.fromEntries(Uf.map(r=>[r,t[r]??o]))}}function Xke(e,o,t,r={}){let a=Hf(e,{unit:r.desktop}),n=Hf(t,{tablet:!0,unit:r.tablet}),s=Hf(t,{phone:!0,unit:r.tablet}),l=Hf(o,{phone:!0,unit:r.phone}),d=s||l?{...s,...l}:void 0;return a||n||d?{...a,...n,...d}:void 0}var Gf="sf.gapContainer",Lr={min:-32,max:64,step:2},r0={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},bs={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},Pj=new Set(["Events","GalleryB"]);function Za(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Lr.min)return o;if(typeof o=="string"){let r=r0[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:bs[e]}var Ej="sf-gap-overlap",Oj="--sf-gap-overlap",lI="--sf-block-gap",ZO="--sf-block-gap-rem",Rr={min:0,max:Lr.max,step:Lr.step};function ii(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Rr.min),Rr.max);return o-o%Rr.step}function Qke(e,o){let t=_a(e,o,"gap",Rr);if(t!==null)return{[lI]:t,[ZO]:t};let r=ii(e);return r===null?{}:{[lI]:`${r}px`,[ZO]:`${r/16}rem`}}var JO="--sf-block-gap-phone",QO="--sf-block-gap-phone-rem",_j="--sf-block-gap-on-phone",Aj="max-view-tablet:[--sf-block-gap-on-phone:var(--sf-block-gap-phone)]";function eve(e,o){let t=_a(e,o,"gap",Rr);if(t!==null)return{[JO]:t,[QO]:t};let r=ii(e);return r===null?{}:{[JO]:`${r}px`,[QO]:`${r/16}rem`}}function ove(e){return ii(e)===null?"":Aj}var e0="sf-gap-zone",o0="--sf-gap-len";function zf(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Lr.min?!0:typeof o=="string"&&typeof r0[e]?.[o]=="number"}var t0="--sf-gap-len-phone",Rj="--sf-gap-len-tablet",di={min:0,max:Lr.max,step:Lr.step};function pa(e){return typeof e=="number"&&Number.isFinite(e)&&e>=di.min}function iI(e){return e/2}function dI(e,o,t){return pa(t)&&!zf(e,o)}function cI(e,o,t,r,a){return pa(o)?o:dI(e,t,a)?a:iI(Za(e,t,r))}var Lj={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function tve(e,o,t,r,a){let n={...pa(r)?{[t0]:`${r}px`}:null,...pa(a)?{[Rj]:`${a}px`}:null};if(!zf(e,o)){let l=`${bs[e]}px`,d=Pj.has(e)?`var(--sf-card-gap, ${l})`:l;return{className:` ${e0}`,style:{[o0]:`var(${lI}, ${d})`,[t0]:`var(${_j})`,...n}}}let s=Za(e,o);return s>=0?{className:` ${e0}`,style:{[o0]:`${s}px`,...n}}:{className:` ${Ej} ${Lj[t]}`,style:{gap:"0px",[Oj]:`${-s/2}px`}}}import{parseHexColor as Fj}from"efficient-shell/format";var Bo="var(--section-bg)",ci="inherit";function fr(e,o){return e===ci?Bo:e===void 0?o:$f(e)}var Bj=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function $f(e){let o=dr(e);return o?Er(o):e.replace(Bj,"var(--site-$1")}var Dj={"var(--section-bg)":"band","var(--site-surface)":"surface","var(--site-surface-2)":"surface2"};function fI(e,o,t){let r=fr(e,o);if(!r||r==="transparent")return t.background.toLowerCase();let a=r.trim(),n=a.startsWith("#")?Fj(a):null;if(n)return n.toLowerCase();let s=Dj[a.replace(/\s+/g,"")];return(s?t[s]:t.background).toLowerCase()}var pI="transparent";function a0(e,o){let t=fr(e,o);return!t||t===pI?"none":t===Bo?"band":null}function n0(e,o,t=o){let r=n=>!n||n==="transparent",a=fr(e,o);return a===t||r(a)&&r(t)}var s0=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],l0={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},ys="var(--wheel-stage)",Kf="transparent",fi="inherit";function ive(e,o){return $f(uI(e,o))}function uI(e,o){return e===fi?ys:e==null?o:e===!0?ys:e===!1?Kf:e}function dve(e){return typeof e=="string"&&e!==fi?$f(e):ys}function cve(e){return e!==Kf&&e!=="none"&&e!==""}function i0(e,o){return e===fi||e===!0?!0:e==null?o===ys:!1}var d0="inherit",jf="fixed",c0=e=>typeof e!="number"&&e!==jf,Nj="var(--sf-heading-max, 9999px)";function uve(e,o,t,r,a){if(typeof e=="number")return Le(e,a);if(e===jf)return o;let n=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${n}, ${Nj})`:n}var mI={kind:"fontSize",unitKey:"titleSizeUnit"},hI={kind:"fontSize",unitKey:"bodySizeUnit"},Mj=["desktop","mobile"],f0=[mI,hI].flatMap(e=>Vn(e,Mj));function xI(e){let o=(t,r)=>MC(e,t,r);return{titleDesktop:o(mI,"desktop"),titleMobile:o(mI,"mobile"),bodyDesktop:o(hI,"desktop"),bodyMobile:o(hI,"mobile")}}var Hj=["page","full"],p0=["full","page"],Ja={full:"Full",page:"Content"},gI="inherit",Wj=e=>typeof e=="string"&&Hj.includes(e),Uj=e=>e===gI;function Gj(e,o){return Uj(e.widthMode)?{mode:"full",inherited:!0}:Wj(e.widthMode)?{mode:e.widthMode,inherited:!1}:{mode:o,inherited:o==="full"}}function Ive(e){return Gj(e,"page").mode==="full"}var zj={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 bve(e){return He(zj,e)}var to={background:"sectionBackgroundWidth",content:"sectionContentWidth",contentMax:"sectionContentMax",contentMaxUnit:"sectionContentMaxUnit"},yve={kind:"size",unitKey:to.contentMaxUnit};function $j(e){let o=e[to.contentMaxUnit],t=eo(o),r=e[to.contentMax],a=t==="px"?kO(r):typeof r=="number"&&Number.isFinite(r)&&r>0?r:null,n=Ss(e[to.content])??(a===null?null:"content");return{background:Ss(e[to.background]),content:n,contentMax:n==="content"?a:null,contentMaxUnit:t}}function Sve(e){let o=$j(e);return o.content===null&&e.fullWidth===!0?{...o,content:"full"}:o}function wve(e){return e.background!==null||e.content!==null}var Cve=e=>({[to.background]:e}),kve=e=>e==="full"?{[to.content]:e,[to.contentMax]:void 0,[to.contentMaxUnit]:void 0}:{[to.content]:e},vve=e=>({[to.content]:"content",[to.contentMax]:e}),Tve=e=>e==="background"?{[to.background]:void 0}:{[to.content]:void 0,[to.contentMax]:void 0,[to.contentMaxUnit]:void 0},u0="siteWidths",Kj=e=>e==="full"||e==="content";function Ss(e){return Kj(e)?e:null}function m0(e,o){return{[u0]:{background:Ss(e),content:Ss(o)}}}function Pve(e){let o=e.editor?.metadata?.[u0];return{background:Ss(o?.background),content:Ss(o?.content)}}import{useEaselSession as r8}from"efficient-easel/screen/lib/session-context";import{BOX_GAP as a8,describedAs as ua,group as Ht,iconOf as ks,sharedStyleKinds as Ii}from"efficient-easel/screen/lib/document/box-fields";import{VIEW_KEY_ACCESS as $0,onDesktopWords as en,phoneTwinFields as TI,saidAlignmentGrid as n8,useLengthUnit as s8}from"efficient-easel/screen/lib/document/box-fields";import{createElement as pt}from"react";import{SettingsDefaultReset as jj,SettingsField as Vj}from"efficient-easel/panel";import{boxFieldBuilders as Yj,describedAs as qj,iconOf as Xj,onDesktopWords as Zj}from"efficient-easel/screen/lib/document/box-fields";import{LENGTH_KIND_UNITS as Jj}from"efficient-easel/screen/lib/content/length-units";import{IconPicker as Qj,Tooltip as eV,useShellStrings as oV}from"efficient-shell/ui";import{RotateIcon as tV}from"efficient-easel/icons";var h0=e=>i(e),pi=Jj,bo=Yj(h0,{lengthUnits:pi}),Eo=bo.slider,ut=bo.select,Vf=bo.Segmented,ws=bo.segmented,Nve=bo.alignmentField,Mve=bo.alignmentFields,Hve=bo.blockAlignmentField,Wve=bo.blockAlignmentFields,Uve=bo.boxJustifyField,Gve=bo.boxAlignField,zve=bo.boxWrapField,x0=bo.directionField,Yf=bo.gapField,$ve=bo.placementField,Kve=bo.PlacementGridView,jve=bo.positionFields,qf=bo.sidesPaddingFields,ui=bo.lengthUnitFields;function g0(e,o){return Eo("Angle",pt(tV),tr.min,tr.max,tr.step,e,"\xB0",o)}var rV={width:"3.5rem",height:"2.75rem"};function II({value:e}){return oV().iconNames[e]??e}function bI(e,o,t){return pt(eV,{content:t,className:"sf-pick-tip",children:pt("span",{className:"sf-pick"},pt("span",{className:"sf-pick-pic"},e),pt("span",{className:"sf-pick-cap"},o))})}function aV(e){let o=t=>t.label===void 0?pt(II,{value:t.value}):i(t.label);return e.map(t=>({value:t.value,...t.label===void 0?{}:{label:i(t.hint??t.label)},icon:bI(t.picture,o(t),t.hint===void 0?o(t):i(t.hint))}))}function I0(e,o){return pt("span",{className:"sf-pick"},pt("span",{className:"sf-pick-pic"},e),pt("span",{className:"sf-pick-cap sf-pick-cap-closed"},o))}function b0(e,o,t,r,a={}){let n=d=>t.some(c=>c.value===d),s=d=>a.resolve?a.resolve(d):n(d)?d:void 0,l=t.map(d=>({value:d.value,...d.label===void 0?{}:{label:d.label},...d.showWhen?{showWhen:d.showWhen}:{}}));return{type:"custom",...qj({},{type:"radio",label:e,options:l}),options:l,render:d=>{let{value:c,onChange:f,field:u}=d,p=u?.options,h=aV(t.filter(b=>!p||p.some(O=>O.value===b.value))),g="follows"in d,I=g?s(a.phoneRest?a.phoneRest(d.follows):d.follows)??r:void 0,C=u?.currentValue,S=s(c)??I??s(C)??r,k=c!=null&&c!=="",y=I===void 0?void 0:t.find(b=>b.value===I);return pt(Vj,{label:i(e),icon:Xj(o),action:g?pt(jj,{words:se()?.panel,label:i(e),changed:k,detail:y?.label!==void 0?Zj(h0,i(y.label),d.followsView):void 0,disabled:d.readOnly===!0,onReset:()=>f(void 0)}):void 0},pt(Qj,{label:i(e),value:S,options:h,onChange:f,columns:a.columns,cell:a.cell??rV,tooltips:!1,disabled:d.readOnly===!0}))}}}import{VIEW_ABOVE as yI}from"efficient-easel/screen/lib/content/length-units";import{TEXT_CONTROL_KINDS as NPe,SCALAR_TEXT_CONTROLS as MPe}from"efficient-easel/draw";function on(e,o){return i("{value} from {from}",{value:e,from:o})}function l8(){let{blockGap:e}=ge();return e===null?i("this container's own spacing"):on(`${e}px`,i("Styles"))}function i8({inherited:e,onReset:o,label:t}){return v(Do,{words:se()?.panel,label:i(t),changed:!e,detail:l8(),onReset:o})}function d8(e){return Yf({...a8,builtIn:bs[e],resolve:(o,t)=>Za(e,o,t?.siteGap),action:(o,t)=>v(i8,{inherited:!zf(e,o),onReset:()=>t(void 0),label:"Gap"}),mark:{[Gf]:e}})}function c8(e){return Xe(mt("mobile",{[Gf]:e,type:"custom",render:o=>v(u8,{container:e,...o})}),K0)}function f8(e){return Xe(mt("tablet",{[Gf]:e,type:"custom",render:o=>v(p8,{container:e,...o})}),K0)}var K0={not:{field:"gap",in:Array.from({length:-Lr.min},(e,o)=>Lr.min+o)}};function OPe(e){return{gap:mt("desktop",d8(e)),[RI("gap")]:f8(e),[Cs("gap")]:c8(e)}}function p8({container:e,...o}){let[t]=Dr("gap"),{siteGap:r}=o.field??{},a=Math.max(di.min,Za(e,t,r));return Yf({...di,builtIn:a,resolve:n=>pa(n)?n:a,action:(n,s)=>v(Do,{words:se()?.panel,label:i("Gap"),changed:pa(n),detail:en(l=>i(l),`${a}px`),onReset:()=>s(void 0)})}).render(o)}function u8({container:e,...o}){let[t]=Dr("gap"),{siteGap:r,siteGapPhone:a}=o.field??{},n=cI(e,void 0,t,r,a);return Yf({...di,builtIn:n,resolve:s=>cI(e,s,t,r,a),action:(s,l)=>v(Do,{words:se()?.panel,label:i("Gap"),changed:pa(s),detail:on(`${n}px`,dI(e,t,a)?i("Styles"):i("Desktop")),onReset:()=>l(void 0)})}).render(o)}function _Pe(e){return x0({offered:YO(e),fallback:Is(e,void 0),resolve:o=>Is(e,o)})}function APe(e,o){return pk(o?hk(e,o):[],o)}function m8({inherited:e,onReset:o,label:t}){return v(Do,{words:se()?.panel,label:i(t),changed:!e,detail:on(i("Full"),i("the page")),onReset:o})}function tn({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:l=!0}){let{text:d,hidden:c}=ma(e),f=mi(null),u=mi(null),p=k=>o(s?{text:k,hidden:c}:k),h=()=>o({text:d,hidden:!c}),g=s&&c,I=A0(),C=a?b8(a)?v("span",{className:"sf-hint-while-typing",children:i(a)}):i(a):void 0,S=c?i("Show {label} on the slide",{label:i(t)}):i("Hide {label} on the slide",{label:i(t)});return v(co,{label:i(t),icon:v(AV,{}),htmlFor:I,className:g?"is-hidden":void 0,hint:C,action:s?v(AI,{content:S,children:v(G0,{"aria-pressed":c,"aria-label":S,onClick:h,children:c?v(k0,{name:"eye-off",size:14}):v(k0,{name:"eye",size:14})})}):void 0,children:Fr("div",{className:"sf-copybox",children:[l&&v(mg,{target:n?u:f,value:d,onChange:p}),n?v("textarea",{id:I,ref:u,value:d,placeholder:r===void 0?void 0:i(r),onChange:k=>p(k.target.value)}):v("input",{id:I,ref:f,type:"text",value:d,placeholder:r===void 0?void 0:i(r),onChange:k=>p(k.target.value)})]})})}function RPe(e,o){return{...e,[pV]:o}}function LPe(e){let o=e[Br];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[Br]:{...o,offPage:!0}}}function op(e){return!e||typeof e!="object"?!1:e[Br]?.offPage===!0}function FPe(e){if(!e[Br])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[xg]:!0}}function j0(e){return us(e)}function BPe(e){let o=e[Br];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[Br]:{...o,identifier:!0}}}function HPe(e,o){if(!e[Br])throw new Error("inOwnBox: the field holds no authored text");let{[XV]:t,...r}=e;return{...r,[hg]:!0,render:o}}var h8=new Set(JV),Qf={type:"radio",options:[{value:!0},{value:!1}]},V0={text:{type:"object",objectFields:{text:{type:"text"},hidden:Qf}},textarea:{type:"object",objectFields:{text:{type:"textarea"},hidden:Qf}},plainText:{type:"text"},copyText:{type:"text"},plainTextarea:{type:"textarea"},textList:{type:"array",arrayFields:{text:{type:"text"}}}},rn=(e,o)=>{let t=ua({...o,[Br]:e},{...V0[e.control],label:e.label});if(!h8.has(e.control))return t;let r=o.render;return{...z0(t,"authored-copy"),render:a=>v(bE,{name:a.name,children:r(a)})}},WPe="Everything else on this block comes from the linked post. Unlink it to edit by hand.",x8={field:"source.slug",set:!0},UPe={not:x8},g8="Select a word, then press the highlighter.",I8=new Set([g8]),b8=e=>I8.has(e);function GPe(e,o,t){return rn({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>v(tn,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function zPe(e,o,t){return rn({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>v(tn,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function $Pe(e,o,t){return rn({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>v(tn,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function KPe(e,o,t){return rn({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>v(tn,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function jPe(e){return{type:"custom",[cV]:{label:e},...ua({},{type:"text",label:e}),render:({value:o,onChange:t})=>v(IO,{value:dV(o),onChange:t,label:e})}}function VPe(e,o,t){return rn({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>v(tn,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var Y0={Design:uV,Animation:hV};function YPe(e){return{type:"custom",render:()=>v(y8,{text:e})}}function y8({text:e}){return v("p",{className:"sf-note",children:i(e)})}function qPe(e){return ha(e)!==null&&e?.tabs!==void 0}var v0=new Map;function tp(e,o){let t=`${e}\0${o?o.join(""):""}`,r=v0.get(t)??{type:"custom",tabs:o,[R0]:{label:e,level:1},bucket:e,marker:!0,render:()=>v(Nr,{})};return v0.set(t,r),r}var T0=new Map;function FI(e){let o=T0.get(e)??{type:"custom",[R0]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>v(Nr,{})};return T0.set(e,o),o}function S8(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function q0(e,o){return S8(e)===o?e:{...e,marker:!0,fold:o,render:()=>v(Nr,{})}}function X0(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>v(Nr,{})}}function BI({title:e,children:o}){let[t,r]=hi(()=>!SI.has(e));return v(FV,{title:e,open:t,onToggle:a=>{r(a),a?SI.delete(e):SI.add(e)},children:o})}var SI=new Set;function w8({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 Fr("div",{className:"sf-swatches",children:[e.map(l=>{let d=r?.[l]?i(r[l]):l;return v(AI,{content:d,children:v(GV,{color:l,selected:o.toLowerCase()===l.toLowerCase(),onClick:()=>t(l),"aria-label":d})},l)}),v("span",{className:"sf-swatch-hex",children:s})]})}function XPe(e,o,t=!1){return{type:"custom",render:({value:r,onChange:a})=>v(C8,{label:e,builtIn:o,followsBand:t,value:r,onChange:a})}}function C8({label:e,builtIn:o,followsBand:t,value:r,onChange:a}){let n=typeof r=="string"?r:void 0,{colors:s,n:l}=UI(),d={background:s.background,surface:s.surface,surface2:Qd(s),band:jC(s)},c=t?Bo:o,f=n0(n,o,c),u=fI(void 0,c,d),p=t?ci:void 0,h=c===Bo?i("the theme's section background"):i("Theme {n} background",{n:l}),g=k8(n,o,s,l,d,a),I=on(u.toUpperCase(),h),C=dr(n),S=C?is(C,s,l):null;return S?v(Yo,{label:i(e),icon:v(y0,{}),value:S.hex,caption:S.words,onChange:a,changed:!0,onReset:()=>a(p),resetTo:I,choices:g}):v(Zl,{label:i(e),icon:v(y0,{}),value:f?"":fI(n,o,d),inherited:u,resetTo:I,onChange:a,onReset:()=>a(p),choices:g})}function k8(e,o,t,r,a,n){let s=a0(e,o);return[{label:i("No fill"),color:"",selected:s==="none",onPick:()=>n(pI)},{label:`${i("Section band")} \xB7 ${a.band.toUpperCase()}`,color:a.band,selected:s==="band",onPick:()=>n(Bo)},...WI(dr(e)??"",t,r,n)]}function v8(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=i0(a,o);return v(co,{label:i(e),icon:v(kI,{}),changed:!n,action:v(Do,{words:se()?.panel,label:i(e),changed:!n,detail:i("the theme's image stage"),onReset:()=>r(fi)}),children:w8({swatches:s0,current:n?ys:uI(a,o),onPick:r,names:l0})})}}}function rp(e=t=>t,o){return Ii({_gSectionTheme:Ht(ik),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>v(KE,{value:e(t),onChange:r,followLabel:o})}})}function ap(e){let o=To(),t=wr(e?.view),r=s=>LI(e.valueKey,s),a=e.numbersIn??(s=>j(o[r(s)])!==void 0),n=e.followsView??W8(t,a);return s8({props:{value:void 0,onChange:()=>{},field:{}},row:e.valueKey?e.row:void 0,table:pi,label:i(e.label),grid:e.grid,hasOwn:a(t),view:{tier:t,numbersIn:a,followsView:n},convertTo:e.convertTo??(s=>{let l=j(o[r(t)]);return l===void 0?{}:{[r(t)]:s(l)}})})}function Xo({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:l,ariaLabel:d,disabled:c=!1,placeholder:f,placeholderWord:u,onClear:p,units:h}){let g=l!==void 0&&Number.isFinite(l)&&l>=e&&l<=o;return v("div",{className:g?"sf-slider has-notch":"sf-slider",style:g?{"--sf-notch":(l-e)/(o-e)}:void 0,children:v(qV,{min:e,max:o,step:t,value:r,...r===null&&f!==void 0?{placeholderValue:f}:{},...u?{emptyLabel:i(u)}:{},suffix:n||void 0,...h?{units:h}:{},showInput:s,label:d===void 0?void 0:i(d),disabled:c,size:"sm",boxSize:"md",className:"sf-slider-track",onChange:I=>{I===null?p?.():I!==r&&a(I)}})})}function T8(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:l,unsetMark:d,icon:c,unit:f="px"}=o;return{type:"custom",render:({value:u,onChange:p})=>{let h=typeof u=="number"?u:null,g=h===null;return v(co,{label:i(e),icon:c?ks(c):void 0,value:g?d||n===void 0?void 0:i(n):`${h}${f}`,changed:!g,action:d?PI(d,{changed:!g,onReset:()=>p(null)}):v(Do,{words:se()?.panel,label:i(e),changed:!g,onReset:()=>p(null)}),hint:typeof s=="string"?i(s):s,children:l?l({min:t,max:r,step:a,px:h,label:e,onChange:p}):Xo({min:t,max:r,step:a,value:h??t,readout:!1,ariaLabel:e,onChange:p})})}}}var xi="Corners",P8={kind:"radius"};function DI(e){return{type:"custom",render:o=>{let{value:t,onChange:r}=o,a=typeof t=="number"&&Number.isFinite(t)?t:null,n=a!==null;return v(co,{label:i(xi),icon:v(F0,{}),changed:n,action:PI(e.mark,{changed:n,onReset:()=>r(null)}),hint:e.hint,children:v(E8,{tier:e,px:a,name:o.name,onRadius:r})})}}}function Dr(e){let o=Qa();return[o?.values?.[e],t=>o?.onChange(e,t)]}function Z0(){return z0({type:"custom",render:()=>v(ZV,{})},"always")}function ia(){let e=Qa();return o=>e?.onChangeMany(o)}function E8({tier:e,px:o,name:t,onRadius:r}){let a=e.useFollowed(),[n,s]=Dr(e.sidesKey),l=ia(),d=ap({row:e.row??P8,label:xi,grid:{min:No,max:jr,step:e.step??1},valueKey:t??"",view:"desktop"}),c=lr(n)??[...Vc];return v(zV,{label:i(xi),value:c,corners:oP,onChange:f=>{let u=lr(f)??[];s(u.length===Vc.length?null:u)},radius:o,onRadiusChange:d&&t?f=>l({[t]:f,...d.unitPatch(f===null)}):r,radiusMin:d?.grid.min??No,radiusMax:d?.grid.max??jr,radiusStep:d?.grid.step??e.step??1,radiusPlaceholder:d&&d.unit!=="px"?"\u2013":String(a),...d?{radiusUnit:d.unit,units:d.units}:{}})}function J0(e,o){return ui(e,o)}function Q0(){return Z0()}function O8({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=ge(),a=typeof r=="number"?`${r}px`:i("not set");return v(Do,{words:se()?.panel,label:i(e),changed:o,detail:r==null?i("the built-in corners"):on(a,i("Styles")),onReset:t})}function _8(){let{cornerRadiusPx:e}=ge();return typeof e=="number"?e:No}function A8(){return DI({sidesKey:"sectionCornerSides",row:$l,useFollowed:_8,mark:v(O8,{label:xi}),hint:R8})}var R8="Follows Styles \u25B8 Basics \u25B8 Corners until you set a number here.";function np(){return Ii({_gShape:Ht("Shape"),sectionCorners:A8(),...J0($l,"sectionCorners"),sectionCornerSides:Q0(),...Or("sectionBorder",H8),...ui(li,"sectionBorder",{tablet:!0,phone:!0})})}var L8=()=>({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 F8(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function B8(){let e;try{let o=uo(ge().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||UC.line}function D8({value:e,onChange:o,placeholder:t,presets:r,sides:a=!0,styles:n=!0,above:s={},length:l}){let d=e&&typeof e=="object"?e:{},[c,f]=hi(()=>a?HV(d,s):!1),u=L8(),p=h=>F8(a&&n?h:{width:h.width,color:h.color,...n?{style:h.style}:{}});return v(co,{label:i("Border"),icon:v(xV,{}),action:a?v(NV,{each:c,label:i("Each side"),onChange:f}):void 0,children:v(DV,{label:i("Border"),value:d,each:c,onChange:h=>o(p(h)),placeholder:t,presets:r,words:l?{...u,unit:l.unit}:u,styles:n,max:l?.grid.max??Wf,...l?{step:l.grid.step,units:l.units}:{}})})}function N8({value:e,onChange:o,view:t}){let[r]=Dr("sectionBorder"),[a]=Dr(RI("sectionBorder")),n=B8(),s=p=>p&&typeof p=="object"?p:{},l=t==="phone"?{...sI(s(r)),...sI(s(a))}:t==="tablet"?s(r):{},d=To(),c=ia(),f=Ie("sectionBorder",t),u=ap({row:li,label:"Border",grid:{min:0,max:Wf,step:1},valueKey:"sectionBorder",view:t,numbersIn:p=>wI(d[LI("sectionBorder",p)]),convertTo:p=>{let h=s(d[f]);return wI(h)?{[f]:M8(h,p)}:{}}});return v(D8,{value:e,length:u,onChange:u?p=>c({[f]:p,...u.unitPatch(!wI(p))}):o,placeholder:{sides:MV(l),style:l.style??"solid",color:l.color||n},presets:[n],above:l})}var e_=["width",...Uf];function wI(e){if(!e||typeof e!="object")return!1;let o=e;return e_.some(t=>j(o[t])!==void 0)}function M8(e,o){let t={...e};for(let r of e_){let a=j(t[r]);a!==void 0&&(t[r]=o(a))}return t}function H8(e){return{type:"custom",render:({value:o,onChange:t})=>v(N8,{value:o,onChange:t,view:e})}}function W8(e,o){let t=yI[e];for(;t&&yI[t]!==null&&!o(t);)t=yI[t];return t??e}function ZPe(e){return{type:"custom",render:()=>v(U8,{partKey:e})}}function U8({partKey:e}){let[o]=Dr("id"),[t]=Dr("_partStyles"),{textStyles:r}=ge(),a=t8(),n=null;try{n=QV().select}catch{n=null}let s=t&&typeof t=="object"?t[e]:void 0,l=Array.isArray(r)?r:null;return v(LV,{name:i("Text"),preview:FO(s,l,{noStyle:i("No style"),styleName:a.textStyles.styleName,cases:(a.copy.panel??o8.copy.panel).cases}),onOpen:()=>{n&&typeof o=="string"&&n(e8(o,e))}})}function o_(e){let{cornerRadiusPx:o}=ge(),t=typeof o=="number"?o:e,r=null;try{let{appState:n,selectedItem:s}=ep(d=>d),l=s?.props?.id?String(s.props.id):void 0;r=l?tE(n?.data,l)?.props??null:null}catch{r=null}if(!r)return t;let a=r.sectionCorners;return Hx(a)?a:t}function G8({label:e,changed:o=!1,onReset:t=()=>{}}){let r=o_(No);return v(Do,{words:se()?.panel,label:i(e),changed:o,detail:on(`${r}px`,i("the section")),onReset:t})}function z8(){return v(Nr,{children:i("Follows the section's Corners until you set a number here.")})}function $8(){return DI({sidesKey:"cardCornerSides",row:Kl,useFollowed:()=>o_(No),mark:v(G8,{label:xi}),hint:v(z8,{})})}function K8(){return{type:"custom",render:()=>v(iP,{})}}function JPe(){return{_gShape:Ht("Shape"),cardCorners:$8(),...J0(Kl,"cardCorners"),cardCornerSides:Q0(),cardCornersApplyAll:K8()}}function j8(){return ua({type:"custom",render:e=>v(Y8,{...e})},{type:"select",label:Oa,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 V8(e,o){let t=mh(e);if(t!=="custom")return i(uh.find(a=>a.value===t)?.label??"");let r=U0(Zd(e,o),o);return r?[...r,100-r.reduce((a,n)=>a+n,0)].join(" / "):i("Custom")}function Y8(e){let{value:o,onChange:t}=e,[r]=Dr("content"),a=Array.isArray(r)?r.length:0,n="follows"in e,s=o!=null,l=s?o:n?e.follows:void 0,d=mh(l),c=a>=2&&a<=w0,f=()=>[...jV[a]??[]],u=mi(null),p=S=>{let k=u.current;k&&JSON.stringify(S)===JSON.stringify(k.shares)?t(k.value):S&&t(S)},h=S=>{S===d||S==="custom"&&!c||t(S==="custom"?f():S)},g=i("The width bar works for 2 to {count} blocks.",{count:w0}),I=s&&(n||o!=="content"),C=YV().widths.hint(a,KV);return v(co,{label:i(Oa),icon:v(EI,{}),changed:I,hint:d!=="custom"?void 0:c?C:g,action:v(Do,{words:se()?.panel,label:i(Oa),changed:I,disabled:e.readOnly===!0,detail:n?en(S=>i(S),V8(e.follows,a),e.followsView):i("Fit content"),onReset:()=>t(void 0)}),children:Fr("div",{className:"sf-share-row",children:[v("div",{className:"sf-share-pick",children:v(W0,{label:i(Oa),value:d,options:uh.map(S=>({value:S.value,label:S.value==="custom"&&!c?g:i(S.label),icon:bI(v("span",{className:"sf-gallery-pic sf-share-pic",children:t_(S.weights).map((k,y)=>v("i",{style:{gridColumn:`span ${k}`}},y))}),i(S.label),S.value==="custom"&&!c?g:i(S.label))})),onChange:h,columns:3,cell:r_,tooltips:!1,disabled:e.readOnly===!0})}),d==="custom"&&c?v("div",{onFocus:()=>{u.current={value:o,shares:U0(Zd(l,a),a)}},onBlur:()=>{u.current=null},children:v(VV,{label:i(Oa),count:a,value:Zd(l,a),onChange:p,readOnly:e.readOnly===!0})}):null]})})}function t_(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 QPe(){return ut(NC,v(CV,{}),gh,gh[0].value)}function eEe(){return mt("mobile",b0(Oa,v(EI,{}),FC.map(e=>({label:e.label,value:e.value,picture:v("span",{className:"sf-gallery-pic sf-share-pic",children:t_(e.weights).map((o,t)=>v("i",{style:{gridColumn:`span ${o}`}},t))})})),BC,{columns:2,cell:r_}))}var r_={width:"5.75rem",height:"3.25rem"};function oEe(){return TI("share",j8(),$0)[RI("share")]}function q8(){return mt("mobile",Eo(hh,v(L0,{}),Jd,LC,1,Jd,"",{clear:{phoneFollows:!1,hint:Jd}}))}var P0={read:e=>e.phoneRow,write:(e,o,t)=>({phoneRow:t}),fieldKey:()=>"phoneRow",ownField:!0};function tEe(){let e=Eo(hh,v(L0,{}),xh,DC,1,xh,"",{clear:{emptyLabel:"Auto"}}),o=TI("columns",e,{...P0,tablet:$0.tablet}),t=TI("columns",e,P0,{phoneRow:q8()});return{...o,phoneRow:t.phoneRow}}function rEe(e,o,t,r,a,n,s){return{type:"custom",render:({value:l,onChange:d,name:c})=>v(X8,{label:e,min:o,max:t,step:r,fallback:a,role:n,value:l,onChange:d,name:c??"",length:s})}}function X8({label:e,min:o,max:t,step:r,fallback:a,role:n,value:s,onChange:l,name:d,length:c}){let f=To(),u=ia(),p=wr(c?.view),h=ap({row:c?.row??{kind:"fontSize"},label:e,grid:{min:o,max:t,step:r},valueKey:c?d:"",view:c?.view??"desktop",numbersIn:I=>I===p&&typeof f[d]=="number",followsView:p,convertTo:I=>typeof f[d]=="number"?{[d]:I(f[d])}:{}}),g=I=>h?u({[d]:I,...h.unitPatch(typeof I!="number")}):l(I);return v(co,{label:i(e),icon:v(tg,{noun:n}),action:v(Do,{words:se()?.panel,label:i(e),changed:!c0(s),detail:i("the Text style in Styles"),onReset:()=>g(d0),defaultAction:{onPress:()=>g(jf),title:i("Keep this section's own built-in size"),icon:v(gV,{})}}),children:Xo({min:h?.grid.min??o,max:h?.grid.max??t,step:h?.grid.step??r,value:typeof s=="number"?s:a,...h?{suffix:h.unit,units:h.units}:{suffix:"px"},ariaLabel:e,onChange:g})})}function aEe(){return{_gCellWidth:Ht("Cell width"),gridSpan:ut("Positions",v(EI,{}),[{label:"Auto",value:""},...Array.from({length:Zc},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function To(){let e=null,o=null;try{e=_0(NI),o=ep(t=>t).selectedItem}catch{o=null}return e??o?.props??{}}var NI=sV(null);function Z8({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:l}){let d=To()[s],c=uf(void 0,d,l);return v(Nr,{children:Xo({min:e,max:o,step:t,value:uf(r,d,l),readout:!1,ariaLabel:a,notch:c,onChange:n})})}function J8({label:e,desktopKey:o,fallback:t,unit:r="px",changed:a=!1,onReset:n=()=>{}}){let s=To()[o],l=uf(void 0,s,t);return v(Do,{words:se()?.panel,label:i(e),changed:a,detail:en(d=>i(d),`${l}${r}`),onReset:n})}function Q8(e){return T8(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unit:e.unit,unsetLabel:"Follows Desktop",unsetMark:v(J8,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback,unit:e.unit}),restTrack:o=>v(Z8,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var eY={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},oY={Top:OI,Bottom:D0,Left:N0,Right:M0},tY=e=>{let o=oY[e];return v(o,{})};function nEe(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=C=>eY[C],n=C=>Eo(a("Top"),v(OI,{}),ct.min,ct.max,ct.step,C,"px"),s=(C,S,k,y=ct)=>mt("mobile",Q8({label:a(C),icon:tY(C),desktopKey:S,min:y.min,max:y.max,step:y.step,fallback:k})),l=e.top??ct.min,d=e.bottom??ct.min,c="sectionPaddingLeft",f="sectionPaddingRight",u=e.sideBounds??ct,p=e.side??u.min,h=e.sidePhone??p,g=e.phone===!0,I=C=>g?mt("desktop",C):C;return Ii({...r?{_gSpacing:Ht("Padding")}:{},[o]:I(n(l)),...g?{[Cs(o)]:s("Top",o,l)}:{},...e.only==="top"?{}:{[t]:I(Eo(a("Bottom"),v(D0,{}),ct.min,ct.max,ct.step,d,"px")),...g?{[Cs(t)]:s("Bottom",t,d)}:{}},...e.sides?{[c]:I(Eo(a("Left"),v(N0,{}),u.min,u.max,u.step,p,"px")),...g?{[Cs(c)]:s("Left",c,h,u)}:{},[f]:I(Eo(a("Right"),v(M0,{}),u.min,u.max,u.step,p,"px")),...g?{[Cs(f)]:s("Right",f,h,u)}:{}}:{}})}function sEe(e,o){let t=Object.fromEntries(Object.entries(o).map(([n,s])=>[n,n in e&&ha(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 Zf="Width";function sp(e,o=p0,t=!0){let r=o.map(a=>({label:Ja[a],value:a}));return Ii({...t?{_gWidth:Ht(Zf)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>v(co,{label:i(Zf),icon:v(RV,{}),action:t?v(m8,{inherited:n?.inherited??!1,onReset:()=>a(gI),label:Zf}):void 0,children:Vf({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:Zf})})}})}function lp({fill:e=!1}={}){let o=(a,n)=>({type:"custom",render:({value:s,onChange:l})=>v(rY,{value:s,onChange:l,view:a,badge:n,fill:e})}),t=()=>vI("sectionHeightMode"),r=()=>vI("sectionHeightMode");return Ii({_gHeight:Ht(Qn),...Or("sectionHeightMode",a=>a==="desktop"?o(a):o(a,n=>v(lY,{view:a,onClear:()=>n(void 0)}))),...Or("sectionHeightValue",t),...Or("sectionHeightUnit",r)})}function rY({value:e,onChange:o,view:t,badge:r,fill:a=!1}){let n=To(),{mode:s,number:l,unit:d}=aY(t,n,e);return v(co,{label:Qn,icon:ks(v(B0,{})),action:r?r(o):void 0,children:Fr("div",{className:"es-width-stack",children:[Vf({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"},...a?[{label:"Fill",value:"fill"}]:[]],value:s,onChange:o,ariaLabel:Qn}),l?v(sY,{view:t,mode:s,menu:d}):null]})})}function a_(e,o){return e==="phone"&&sc(o)?Tk(o):kk(o)}function ip(e,o){return e==="desktop"||(e==="tablet"?sc(o):vk(o))?null:a_(e,o)}function aY(e,o,t){let r=(a=>Sk.includes(a))(t)?t:ip(e,o)?.mode??"auto";return{mode:r,number:r!=="auto"&&r!=="fill",unit:r==="fixed"}}function nY(e,o,t,r){let a=ip(e,o);return!a||e==="desktop"?null:r===void 0?{}:{[Ie("sectionHeightMode",e)]:a.mode,...a.mode==="fixed"?{[Ie("sectionHeightUnit",e)]:a.unit}:{},...t==="sectionHeightUnit"?{[Ie("sectionHeightValue",e)]:a.value}:{},[Ie(t,e)]:r}}function E0(e,o,t){let r=Qa(),a=ip(e,To());return!r||!a?{followed:null,write:t}:{followed:a,write:n=>r.onChangeMany(s=>{let l=nY(e,s,o,n);return l===null?{[Ie(o,e)]:n}:Object.keys(l).length?l:null})}}function sY({view:e,mode:o,menu:t}){let r=Qa(),a=To(),n=Ie("sectionHeightValue",e),s=Ie("sectionHeightUnit",e),l=C=>S=>r?.onChangeMany(()=>({[C]:S})),{followed:d,write:c}=E0(e,"sectionHeightValue",l(n)),{write:f}=E0(e,"sectionHeightUnit",l(s)),u=o==="screen"?"%":a[s],p=(d?d.unit:u)==="%"?"%":"px",h=p==="%"?Ck:wk,g=a[n],I=t?{options:["px","%"],label:i("Unit"),onChange:C=>f(C)}:void 0;return Xo({min:h.min,max:h.max,step:h.step,value:d?null:typeof g=="number"?g:h.fallback,...d?{placeholder:d.value}:{},suffix:p,...I?{units:I}:{},ariaLabel:Qn,onChange:c})}function lY({view:e,onClear:o}){let t=To(),r=ip(e,t)===null,a=e==="phone"&&sc(t),n=a_(e,t),s=en(l=>i(l),n.mode==="auto"?i("Auto"):`${n.value}${n.unit}`,a?"tablet":"desktop");return v(Do,{words:se()?.panel,label:i(Qn),changed:r,detail:s,onReset:o})}function MI(e={}){let o=e.intro===!0,t=n=>({type:"custom",render:({value:s,onChange:l,id:d,name:c})=>v(mY,{value:s,onChange:l,labelId:`${d??c??"stickTop"}-label`,view:n,intro:o})}),r=n=>({type:"custom",render:({value:s,onChange:l})=>v(fY,{value:s,onChange:l,view:n,intro:o})}),a=n=>({type:"custom",render:({value:s,onChange:l})=>v(pY,{value:s,onChange:l,view:n,intro:o})});return{_gStick:Ht(NO,{dot:o?cY:tI}),...Or("stickTop",t),...Or("stickTopDistance",r),...ui(ni,"stickTopDistance",{tablet:!0,phone:!0}),...e.screens?Or(Xa,a):{},...o?{}:{[eI]:iY()},...o||e.above===!1?{}:{[si]:dY()}}}function iY(){let e=ut(MO,v(OI,{}),HO,WO);return mt("desktop",{...e,render:o=>{let t=e.render({...o,value:oI(o.value),onChange:r=>o.onChange(GO(r))});return PI(t,{hint:i(UO)})}})}function dY(){let e=s_(zO,!1,v(H0,{}),$O);return mt("desktop",{...e,render:o=>e.render({...o,onChange:t=>o.onChange(t===!0?!0:void 0)})})}var cY={any:[tI,jO]};function n_(e,o,t,r,a){let n=Qa(),s=To(),l=e==="desktop"||gi(e,s)?null:HI(e,gs(s,{intro:r}));return{followed:l,write:(l||a)&&n?d=>n.onChangeMany(c=>{let f=uY(e,c,d,o,r),u=f===null?{[Ie(o,e)]:d}:f;return Object.keys(u).length?{...u,...a?.(d)??{}}:null}):t}}function fY({value:e,onChange:o,view:t,intro:r}){let a=To(),n=gs(a,{intro:r}),s=f=>{let u=oc(f);return u==="desktop"||gi(u,a)},l=ap({row:ni,label:"Distance from top",grid:{min:ft.min,max:ft.max,step:ft.step},valueKey:"stickTopDistance",view:t,numbersIn:f=>s(f)&&j(a[LI("stickTopDistance",f)])!==void 0,followsView:t==="phone"&&n.ownTablet?"tablet":"desktop"}),{followed:d,write:c}=n_(t,"stickTopDistance",o,r,l?f=>l.unitPatch(f===void 0):void 0);return v("div",{className:"sf-field",children:Xo({min:l?.grid.min??ft.min,max:l?.grid.max??ft.max,step:l?.grid.step??ft.step,value:d?null:typeof e=="number"?e:ft.fallback,...d?{placeholder:d.distance}:{},...l?{suffix:l.unit,units:l.units}:{suffix:"px"},ariaLabel:i("Distance from top"),onChange:c})})}function pY({value:e,onChange:o,view:t,intro:r}){let{followed:a,write:n}=n_(t,Xa,o,r);return v(co,{label:i(Qg),icon:ks(v(B0,{})),children:Xo({min:Xf.min,max:Xf.max,step:Xf.step,value:a?null:j(e)??Xf.default,...a?{placeholder:a.screens}:{},ariaLabel:i(Qg),onChange:n})})}function gi(e,o){return e==="tablet"?rI(o):aI(o)}function HI(e,o){return e==="phone"?{on:o.tablet,distance:o.tabletDistance,unit:o.tabletUnit,screens:o.tabletScreens}:{on:o.desktop,distance:o.desktopDistance,unit:o.desktopUnit,screens:o.desktopScreens}}function uY(e,o,t,r="stickTopDistance",a=!1){if(e==="desktop"||gi(e,o))return null;if(t===void 0)return{};let n=HI(e,gs(o,{intro:a})),s=e==="phone"&&gi("tablet",o)?f=>Ie(f,"tablet"):f=>f,l=(f,u)=>o[s(f)]==null?{}:{[Ie(f,e)]:u},d=ni.unitKey,c=o[s(d)]==null?{}:{[Ie(d,e)]:n.unit};return{[Ie("stickTop",e)]:!0,...l("stickTopDistance",n.distance),...c,...l(Xa,n.screens),[Ie(r,e)]:t}}function mY({value:e,onChange:o,labelId:t,view:r,intro:a}){let n=To(),s=gs(n,{intro:a}),l=r==="phone"?s.phone:r==="tablet"?s.tablet:a?s.desktop:e===!0,d=r==="phone"&&s.ownTablet,c=r==="desktop"?null:HI(r,s),f=c?.on?Le(c.distance,c.unit):i("Off");return v(co,{label:i(Jg),labelId:t,icon:ks(v(H0,{})),action:Fr(Nr,{children:[r!=="desktop"?v(Do,{words:se()?.panel,label:i(Jg),changed:gi(r,n),detail:en(u=>i(u),f,d?"tablet":"desktop"),onReset:()=>o(void 0)}):null,v(_I,{checked:l,onChange:o,ariaLabelledBy:t})]})})}var O0="e.g. about";function dp(){return{_gAnchor:Ht("Anchor"),anchor:rn({control:"plainText",label:"Name",placeholder:O0},{type:"custom",render:({value:e,onChange:o})=>v(UP,{value:e,onChange:o,nameBox:(t,r)=>v(tn,{value:t,onChange:r,label:"Name",placeholder:O0,hideable:!1,markup:!1})})})}}function lEe(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let l=`${n??s??e}-datetime`,d=Date.parse(typeof r=="string"?r:"");return v(co,{label:i(e),icon:o,htmlFor:l,hint:t===void 0?void 0:i(t),children:v($V,{id:l,value:Number.isFinite(d)?new Date(d):null,onChange:c=>a(c?c.toISOString():"")})})}}}function s_(e,o,t,r){return{type:"custom",...ua({},{...Qf,label:e}),render:a=>{let{value:n,onChange:s,id:l,name:d}=a,c="follows"in a,f=a,u=typeof n=="boolean",p=typeof f.follows=="boolean"?f.follows:o,h=u?n:c?p:o,g=`${l??d??e}-label`,I=f.readOnly===!0,C=v(_I,{checked:h,onChange:s,disabled:I,ariaLabelledBy:g});return v(co,{label:i(e),labelId:g,icon:t,hint:r===void 0?void 0:i(r),action:c?Fr(Nr,{children:[v(Do,{words:se()?.panel,label:i(e),changed:u,detail:f.followsNoView?i(p?"On":"Off"):en(S=>i(S),i(p?"On":"Off"),f.followsView),disabled:I,onReset:()=>s(void 0)}),C]}):C})}}}function l_(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return v(hY,{label:"Background",icon:v(EV,{}),id:a,value:e,shown:ng(e),onChange:o})}}}function iEe(e,o,t){return{type:"custom",render:({value:r,onChange:a})=>v(Yo,{label:i(e),icon:t,value:r||o,onChange:a})}}function hY({label:e,icon:o,id:t,value:r,shown:a,onChange:n}){let{colors:s,n:l}=UI(),d=dr(r),c=d?is(d,s,l):null;return v(Yo,{label:i(e),icon:o,id:t,value:c?c.hex:a,caption:c?.words,onChange:n,choices:WI(d??"",s,l,n)})}function dEe(){return{type:"custom",render:e=>{let{value:o,onChange:t}=e,r=e;return v(xY,{value:typeof o=="string"?o:"",onChange:t,twin:"follows"in e?{follows:r.follows,view:r.followsView}:void 0})}}}function WI(e,o,t,r){let a=sf(e);return jP(o,t).map(n=>({label:n.label,color:n.value,selected:a===n.name,onPick:()=>r(n.name)}))}function xY({value:e,onChange:o,twin:t}){let{colors:r,n:a}=UI(),n=r.background,s=on(n.toUpperCase(),i("Theme {n} background",{n:a})),l=sf(e),d=l?is(l,r,a):null,c=WI(e,r,a,o),f=t?()=>o(void 0):()=>o(""),u=n,p=s;if(t){let h=sf(t.follows),g=nf(t.follows),I=h?is(h,r,a):g?{hex:g,words:g.toUpperCase()}:null;u=I?.hex??n,p=en(C=>i(C),I?I.words:s,t.view)}return d?v(Yo,{label:i("Fill"),icon:v(kI,{}),value:d.hex,caption:d.words,onChange:o,changed:!0,onReset:f,resetTo:p,choices:c}):v(Zl,{label:i("Fill"),icon:v(kI,{}),value:e,inherited:u,resetTo:p,onChange:o,onReset:f,choices:c})}function gY(e,o,t){if((e?.content??[]).some(n=>n?.props?.id===o))return Qt(t);let r=rE(e,o);if(r.length===0)return null;let a=Qt(kh(t));if(a!==null)return a;for(let n=r.length-1;n>0;n-=1){let s=Qt(kh(r[n].sectionAccent));if(s!==null)return s}return Qt(r[0].sectionAccent)}function UI(){let e=uo(ge().theme),[o]=Dr("sectionAccent"),t=null;try{let{appState:a,selectedItem:n}=ep(l=>l),s=n?.props?.id?String(n.props.id):void 0;t=s?gY(a?.data,s,o):null}catch{t=null}let r=t!==null&&e.themes[t]?t:e.selected;return{colors:$o(e.themes[r]),n:r+1}}function cEe(){return Z0()}var i_={top:v(SV,{}),right:v(yV,{}),bottom:v(IV,{}),left:v(bV,{})};function d_(e,o,t,r,a,n,s){let l=u=>o.find(p=>p.value===u),d=u=>({value:u,label:"",disabled:!0,title:r}),c=u=>{let p=o.find(g=>g.cell===u);if(!p)return d(`missing-${u}`);let h=n?.[u];return h?{value:p.value,label:p.label,icon:h}:{value:p.value,label:p.label}},f=[d("corner-top-left"),c("top"),d("corner-top-right"),c("left"),d("centre"),c("right"),d("corner-bottom-left"),c("bottom"),d("corner-bottom-right")];return{type:"custom",render:({value:u,onChange:p})=>{let h=o.some(g=>g.value===u)?u:t;return v(co,{label:i(e),icon:a,value:l(h)?.label?i(l(h).label):s?i(s):"",children:n8(i,{label:e,value:h,onChange:p,points:f})})}}}function fEe(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>v(EE,{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 pEe(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return v(e,{...a})}}}var uEe=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function mEe(e,o,t){let r=Object.keys(_x).map(a=>({label:_x[a],value:a,picture:t[a]}));return{type:"custom",...ua({},{type:"radio",label:e,options:r.map(a=>({value:a.value,label:a.label}))}),render:({onChange:a})=>v(bY,{label:e,icon:o,options:r,onChange:a})}}function IY(e,o,t){let r=FT(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=LT(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 bY({label:e,icon:o,options:t,onChange:r}){let a=Qa(),n=a?.values??{},s=Ul(n),l=_0(iV),d=jc(l?.docId??null),c=null;try{c=ep(u=>u.appState.data)}catch{c=null}let f=QT(a?.id,c,d);return v(co,{label:i(e),icon:ks(o),hint:IY(n,f,l?.hasUnsavedEdits??!1),children:Vf({options:t,value:s,onChange:r,ariaLabel:e})})}function hEe(e,o,t,r={}){let a={type:"custom",[fV]:!0,render:({value:n,onChange:s,name:l})=>v(TE,{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?mt("each",a):a}function yY(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 xEe({value:e,onChange:o,label:t}){let r=e||{},a=Qa(),n=a?a.values!==a.node.props:!0,s=!!r.pending&&n,l=!!r.pending&&!n,d=!!Ze(r8()).geocode,c=A0(),f=(u,p)=>o({...r,[u]:p??void 0});return Fr(Nr,{children:[v(co,{label:i(t),icon:v(S0,{}),action:d?v(AI,{content:i("Find from the address (OpenStreetMap)"),children:v(G0,{"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:v(OV,{})})}):void 0,children:d&&r.status?v(GP,{compact:!0,oneLine:!0,spaced:!1,status:s?"busy":r.ok&&!l?"found":"notfound",statusText:s?i("Finding\u2026"):l?i(fg):i(r.status),hint:yY(r)}):null}),v(co,{label:i("Enter by hand"),labelId:c,icon:v(wV,{}),action:v(_I,{checked:!!r.manual,onChange:u=>o({...r,manual:u}),ariaLabelledBy:c})}),r.manual&&v(co,{label:i("Latitude, longitude"),icon:v(S0,{}),children:Fr("div",{style:{display:"grid",gridTemplateColumns:"1fr 1fr",gap:8,width:"100%",minWidth:0},children:[v(C0,{value:typeof r.lat=="number"?r.lat:null,onChange:u=>f("lat",u),min:-90,max:90,step:1e-4,placeholder:i("Latitude")}),v(C0,{value:typeof r.lng=="number"?r.lng:null,onChange:u=>f("lng",u),min:-180,max:180,step:1e-4,placeholder:i("Longitude")})]})})]})}function SY(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function wY(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 CY(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 GI={label:"Ticker items",icon:v(PV,{})};function gEe(e,o,t,r){return{type:"custom",[Br]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},...ua({},{...V0.textList,label:e}),render:({value:a,onChange:n})=>v(zI,{label:e,icon:ks(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function zI({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=mi(null),[l,d]=hi(null),c=u=>u.map(p=>({text:p?.text??""})),f=u=>{let p=CY(t,u,l);p===null&&(s.current=null),d(p),a(c(u))};return v(WV,{label:i(e),icon:o,noun:i("item"),items:t,onChange:f,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?v(mg,{target:s,value:SY(t,l),onChange:u=>a(wY(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,h)=>v("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:g=>h({text:g.target.value}),onFocus:g=>{s.current=g.currentTarget,d(p)}})})}function c_(e,o){let t=`${e.label} \u2014 row ${o+1}`;return rn({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>v(tn,{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 f_(e){return{_gCards:Ht("Cards"),coverIndex:ut("Cover image",v(TV,{}),CE,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:v8("Image background",Kf),cardImage:u_()}}function IEe(){return{outline:ut("Card outline",v(_V,{}),wE,SE),indexBadge:ut("Card number",v(vV,{}),yg,bg),showBadge:s_("Product badge",!0,v(tg,{noun:"tag"}))}}function p_(e){let o=e?.defaults??{showCardSizes:!0,showCardBuy:!0,showCardPage:!0},t=a=>({...Qf,label:Jf.find(n=>n.id===a).label}),r=a=>ua(vI(CI),t(a));return{_gShowOnCard:Ht("Show on a card"),[CI]:ua({type:"custom",render:()=>v(kY,{rest:{showCardPrice:!0,showCardFinishes:!0,...o}})},t(CI)),showCardFinishes:r("showCardFinishes"),showCardSizes:r("showCardSizes"),showCardBuy:r("showCardBuy"),showCardPage:r("showCardPage")}}var CI="showCardPrice",Jf=[{id:"showCardPrice",label:"Price"},{id:"showCardFinishes",label:"Finish swatches"},{id:"showCardSizes",label:"Sizes"},{id:"showCardBuy",label:"Buy button"},{id:"showCardPage",label:"Page button"}];function kY({rest:e}){let o=To(),t=ia(),r=s=>typeof o[s]=="boolean"?o[s]:void 0,a=s=>r(s)??e[s],n=Jf.some(({id:s})=>r(s)!==void 0&&r(s)!==e[s]);return v(vs,{parts:Jf,changed:n,shown:a,onPress:(s,l)=>t({[s]:l}),onReset:()=>t(Object.fromEntries(Jf.map(({id:s})=>[s,void 0])))})}function bEe(e,o="display"){let t=Cs(o);return{[o]:mt("desktop",{type:"custom",render:({value:r,onChange:a})=>v(vs,{parts:e,changed:lE(r),shown:n=>cf(r,n),onPress:(n,s)=>a(dE(r,n,s)),onReset:()=>a(void 0)})}),[t]:mt("mobile",{type:"custom",render:({value:r,onChange:a})=>v(vY,{parts:e,desktopKey:o,value:r,onChange:a})})}}function vs({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n,disabledReason:s}){let l=i("Display");return v(co,{label:l,icon:v(mV,{}),changed:o,action:v(Do,{words:se()?.panel,label:l,changed:o,detail:n,onReset:a}),children:v(UV,{label:l,items:e.map(d=>({id:d.id,label:i(d.label),shown:t(d.id),...s?{disabled:!0,disabledReason:i(s)}:{}})),onChange:r})})}function vY({parts:e,desktopKey:o,value:t,onChange:r}){let a=To()[o];return v(vs,{parts:e,changed:iE(t),shown:n=>cg(a,t,n),onPress:(n,s)=>r(cE(t,n,s)),onReset:()=>r(mf),detail:i("the same as Desktop")})}function u_(e=SP){return Eo("Card image",v(F0,{}),No,jr,yP,No,e,{clear:{hint:No},hint:"Rounds the picture. The card's own corner is in Styles."})}function TY(){return ui(Xx,"cardImage")}function yEe(){return{cardImage:u_(Xx),...TY()}}function SEe(){return DI({sidesKey:"cornerSides",row:wP,step:CP,useFollowed:()=>No,mark:v(PY,{label:kP}),hint:i("Rounds the picture. Left alone it stays square.")})}function PY({label:e,changed:o=!1,onReset:t=()=>{}}){return v(Do,{words:se()?.panel,label:i(e),changed:o,onReset:t})}function wEe(){return{type:"custom",render:({value:e,onChange:o})=>v(AY,{value:typeof e=="string"?e:"",onChange:o})}}function EY({layout:e,width:o}){let t=Qx(e),r=t?`${t[0]}/${t[1]}`:void 0;return v("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:_P(e).map(([a,n],s)=>v("i",{className:"block rounded-xs bg-current opacity-60",style:{gridColumn:`span ${a}`,gridRow:`span ${n}`,aspectRatio:r}},s))})}var OY={width:"3.5rem",height:"2.5rem"},_Y=200;function AY({value:e,onChange:o}){let[t,r]=hi(null),[a,n]=hi(4),s=mi(null);lV(()=>{let h=s.current;if(!h||typeof ResizeObserver!="function")return;let g=()=>n(h.getBoundingClientRect().width>=_Y?4:3);g();let I=new ResizeObserver(g);return I.observe(h),()=>I.disconnect()},[]);let l=e?G(aa,e):void 0,d=l?e:"",c=Jx(t,d),f=Jx(t,"").length,u=Jc("no-symbol"),p=[{value:"",label:i("Not chosen"),icon:I0(u,i("Not chosen"))},...c.map(h=>({value:h,label:i(aa[h].label),icon:v(EY,{layout:aa[h],width:40})}))];return v(co,{label:i("Layout"),icon:v(kV,{}),value:l?i(l.label):void 0,children:v("div",{ref:s,style:{flex:"1 1 auto",minWidth:0},children:v(W0,{label:i("Layout"),value:d,options:p,onChange:o,columns:a,cell:OY,header:Fr("div",{className:"mb-2 flex flex-col gap-1",style:{minWidth:"11rem"},children:[v("span",{className:"text-2xs text-ink-faint",children:i("Photos in a row")}),v(BV,{options:[{id:"all",label:i("All")},...EP.map(h=>({id:String(h),label:String(h)}))],value:t===null?"all":String(t),ariaLabel:i("Photos in a row"),onChange:h=>r(h==="all"?null:Number(h))}),v("span",{className:"text-2xs text-ink-faint",children:i("{n} of {total} layouts",{n:f,total:Zx.length})})]})})})})}import{decodePartId as qY}from"efficient-easel/draw";import{decodePartId as VI,encodePartId as mp}from"efficient-easel/draw";import{LINK_FIELD_MARKER as C_,SCAFFOLD_FIELD_MARKER as S_,TEXT_FIELD_MARKER as hp}from"efficient-easel/draw";import{readHidable as k_}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as MY}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as NY}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as m_}from"efficient-easel/draw";import{readHidable as h_}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as RY}from"efficient-easel/draw";var LY=RY,FY=["text","textarea"],BY=["textarea","plainTextarea"];function DY(e){return!e||typeof e!="object"?null:e[m_]?.control??null}function Ts(e){let o=DY(e);return o&&LY.includes(o)?o:null}function cp(e){return BY.includes(e)}function x_(e){return!e||typeof e!="object"?void 0:e[m_]?.placeholder}function fp(e){return h_(e).text}function $I(e,o,t){return FY.includes(e)?{text:t,hidden:h_(o).hidden}:t}function g_(e,o,t,r){return fp(e[o])===r?null:{...e,[o]:$I(t,e[o],r)}}function Ps(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Wt(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 pp(e){if(!(!e||typeof e!="object"))return e[NY]}function KI(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function I_(e,o){if(!Array.isArray(o))return[];let t=pp(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,l)=>{let d=Z(s?.[n]);d&&r.push({row:{index:l,rowKey:n},text:d})}),r}let a=KI(e);return a?(o.forEach((n,s)=>{for(let[l,d]of Object.entries(a)){if(!Ts(d))continue;let c=fp(n?.[l])||pp(d)?.placeholder||"";c&&r.push({row:{index:s,rowKey:l},text:c})}}),r):[]}function bi(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function jI(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 b_(e,o,t,r,a){let n=bi(e[o],t);return fp(n)===a?null:jI(e,o,t,$I(r,n,a))}function y_(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var Ut="data-sf-part",$Ee="data-sf-region-part",KEe="data-sf-part-row";function jEe(e,o){return`${e}[${o}]`}var VEe="data-sf-part-kind",HY="data-sf-part-style-owner",WY="data-sf-part-style-kind";function YEe(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(HY),r=o.getAttribute(WY);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-easel-block"))return null}return null}var w_=2;function Es(e){return vr(e).replace(/\s+/gu,"")}function up(e,o,t){let r=e[hp];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}=k_(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[C_]){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))up(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))up(n,o[a],t)}}function YI(e){if(!e||typeof e!="object")return!1;let o=e;return o[C_]?!1:!!o[hp]||o.type==="text"||o.type==="textarea"}function xp(e,o){let t=e[hp];return t?.label?t.label:typeof e.label=="string"?e.label:o}function qI(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function qEe(e,o,t){if(!e)return[];let r=[];for(let[a,n]of Object.entries(e)){if(!n||typeof n!="object"||Jl(a))continue;let s=n,l=[];up(s,o?.[a],l),!l.length&&s[S_]!==void 0&&up(s,s[S_],l);let d=xp(s,a);if(t?.(a)&&YI(s)){l.length&&r.push({key:a,label:d,texts:[],keyed:!0});continue}let c=new Set;for(let{row:p,text:h}of I_(s,o?.[a])){let g=Es(h);g.length<w_||(c.add(g),r.push({key:a,label:d,texts:[g],row:p}))}let f=new Set(c),u=[];for(let p of l){let h=Es(p);h.length<w_||f.has(h)||(f.add(h),u.push(h))}u.length&&r.push({key:a,label:d,texts:u})}return r}function XI(e){return!e.offPage&&!e.hidden&&e.panelOnly!==!0}var UY=MY;function v_(e,o){if(!o||typeof o!="object"||Jl(e)||mE(o))return null;let t=o[hp];return!t||!UY.includes(t.control)?null:t}function XEe(e,o){let t=v_(e,o);return t!==null&&t.identifier!==!0}function T_(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=v_(r,a);if(!n)continue;let{text:s,hidden:l}=k_(o?.[r]);if(XI({offPage:n.offPage===!0,hidden:!!l,panelOnly:us(a)}))continue;let d=s||n.placeholder||"",c=vr(d).replace(/\s+/gu," ").trim();t.push({key:r,label:qI(xp(a,r)),preview:c,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!l})}return t}function Os(e,o){let t=pp(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?c_(t,o.index):null:KI(e)?.[o.rowKey]??null}function gp(e,o,t){let r=e.node.props,{key:a,row:n}=Wt(e.propKey),s=n?b_(r,a,n,e.kind,o):g_(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}import{readHidable as __}from"efficient-easel/draw";import{isNodeList as GY}from"efficient-easel/data";var ZI=e=>String(e+1).padStart(2,"0"),aOe=[{label:"01 \xB7",value:"two-digit"},{label:"1.",value:"plain"}],JI="two-digit",P_=e=>e==="plain"?"plain":JI,Ip=(e,o)=>e==="plain"?`${o+1}.`:ZI(o);var eb="Contents",QI="Flex",E_="Text",zY="numberForm",hOe="_contentsEntries",xOe="_kickerNumber",A_="data-sf-kicker-number",$Y=e=>__(e).text.trim(),R_=e=>Qc(e?.anchor),O_=e=>String(e.props?.id??""),KY=e=>!__(e.props?.text).hidden&&!as(e.props)&&!rt(e.props);function yi(e){return Object.values(e.props??{}).filter(GY)}function L_(e){for(let o of yi(e))for(let t of o){if(Xl(t.props??{}))continue;if(t.type===E_&&KY(t))return t;if(t.type===E_)continue;let r=L_(t);if(r)return r}}function F_(e){return yi(e).some(o=>o.some(t=>t&&!Xl(t.props??{})&&(t.type===eb||F_(t))))}var B_=e=>e.type===QI&&Is(QI,e.props?.direction)==="row";function D_(e){return yi(e).some(o=>o.some(t=>t&&!Xl(t.props??{})&&(t.type===eb||!B_(t)&&D_(t))))}function jY(e){let o=[],t=(r,a)=>{for(let n of r){if(!n||Xl(n.props??{}))continue;if(n.type===eb){a.open={contents:n,sections:a.waiting??[]},a.waiting=null,o.push(a.open);continue}if(B_(n)&&D_(n)){let l={inRow:!0,open:null,waiting:[]};for(let d of yi(n))t(d,l);a.inRow||(a.open=null);continue}let s=a.open?.sections??a.waiting;if(n.type===QI&&R_(n.props)&&s&&!F_(n)){s.push({box:n,kicker:L_(n)});continue}for(let l of yi(n))t(l,a)}};return t(e,{inRow:!1,open:null,waiting:null}),o}function VY(e){return e.map(o=>({label:o.kicker?vr($Y(o.kicker.props?.text)):"",anchor:R_(o.box.props)}))}function gOe(e){let o=e?.length?jY(e):[];if(!o.length)return null;let t=new Map,r=new Map;for(let a of o){let n=O_(a.contents);n&&t.set(n,VY(a.sections));let s=P_(a.contents.props?.[zY]);a.sections.forEach((l,d)=>{let c=l.kicker?O_(l.kicker):"";c&&r.set(c,Ip(s,d))})}return{entries:t,numbers:r}}var IOe=e=>e.endsWith(".")?`${e} `:`${e} \xB7 `;var XY=`[${A_}]`,ZY=["bold","italic","underline","strike","link","sup","sub"],JY=["bullet","number"];function rb(e,o){return e?[...ZY,...o?JY:[]]:[]}function N_(e,o){let t=qY(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:d}=Wt(a),c=o.components[n.type]?.fields?.[l],f=d?Os(c,d):c,u=Ts(f);if(!u)return null;let p=n.props??{};if(Ng(p)!==null||!d&&Ml(n.type,p,l)||n.type==="Text"&&l==="text"&&as(p)||d&&!(Array.isArray(p[l])&&d.index<p[l].length))return null;let h=d?bi(p[l],d):p[l];return{node:n,selector:s,propKey:a,kind:u,stored:h,offPage:op(f),panelOnly:us(f)}}function bp(e,o){let t=N_(e,o);if(!t)return null;let{text:r,hidden:a}=ma(t.stored);if(!XI({offPage:t.offPage,hidden:!!a,panelOnly:t.panelOnly}))return null;let n=cp(t.kind);return{partId:e,value:r,rules:Fa,multiline:n,skip:XY,offered:rb(t.kind!=="plainText",n),write:s=>{let l=N_(e,o);l&&gp({node:l.node,propKey:l.propKey,kind:l.kind,zone:l.selector.zone,index:l.selector.index},s,o.replace)}}}function ab(e,o,t){return e?.isConnected&&e.getAttribute(Ut)===t?e:o?.querySelector(`[${Ut}="${yp(t)}"]`)??null}function yp(e){return e.replace(/["\\]/g,"\\$&")}function M_(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var ob=null,tb=new Set;function QY(){return ob}function nb(e){if(e!==ob){ob=e;for(let o of tb)o()}}function e7(e){return tb.add(e),()=>{tb.delete(e)}}function H_(){return YY(e7,QY,()=>null)}function W_(e,o){if(e.outer)return null;let t=o.getItemById(e.ownerId);if(!t)return null;let r=gT(t.type);return!r||oo(t.props)?null:{node:t,rows:r}}function n7(e,o){let t=W_(e,o),r=o.getItemById(e.nodeId);if(!t||!r)return null;let a=wx(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:o7(e.ownerId,Ps(t.rows,{index:e.index,rowKey:a}))}function Sp(e,o){let t=n7(e,o);return t?bp(t,o):null}function U_(e,o){return Sp(e,o)?.value}function G_(e,o){let t=Sp(e,o);return t?(t.write(e.text),!0):!1}function z_(e,o){let t=W_(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 d=o.components[t.node.type]?.fields?.[t.rows];l=t7(n,s+1,{...d?.defaultItemProps??{}});break}case"moveEarlier":case"moveLater":{let d=e.action==="moveEarlier"?s-1:s+1;if(d<0||d>=n.length)return!1;l=r7(n,s,d);break}case"delete":l=a7(n,s);break;default:return!1}return o.replace(r.zone,r.index,{...t.node,props:{...a,[t.rows]:l}}),!0}import{jsx as ke,Fragment as wR,jsxs as _i}from"react/jsx-runtime";import{Fragment as BX,useEffect as DX,useId as NX,useMemo as CR,useRef as MX,useState as xa}from"react";import{useScreenDocument as AR}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as Zb}from"efficient-easel/draw/client";import HX from"efficient-easel/screen/components/SidePanelHead";import{jsx as be,Fragment as Ns,jsxs as fn}from"react/jsx-runtime";import{useEasel as mR,useRootFields as U9}from"efficient-easel/easel";import{Inspector as G9}from"efficient-easel/fields";import{SettingsGroup as z9}from"efficient-easel/panel";import{useEffect as $9,useRef as K9,useState as Yb}from"react";import{jsx as an,Fragment as d7,jsxs as c7}from"react/jsx-runtime";import{useState as V_}from"react";import{SettingsDefaultReset as f7,SettingsField as p7}from"efficient-easel/panel";import{useEaselStrings as u7}from"efficient-easel/strings";import{AddIcon as m7}from"efficient-easel/icons";import{Button as h7}from"efficient-shell/ui";import{iconOf as x7,noGlyph as g7}from"efficient-easel/screen/lib/document/box-fields";import{jsx as wp,Fragment as s7,jsxs as $_}from"react/jsx-runtime";import{Button as K_,Dialog as l7}from"efficient-shell/ui";function i7(e){return Mo("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 j_({count:e,onCancel:o,onConfirm:t}){return $_(l7,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Clear this site\u2019s colors?"),footer:$_(s7,{children:[wp(K_,{variant:"secondary",onClick:o,children:i("Cancel")}),wp(K_,{variant:"danger",onClick:t,children:i("Clear colors")})]}),children:[wp("p",{children:i7(e)}),wp("p",{className:"mt-2 font-medium",children:i("This cannot be undone.")})]})}var I7=g7("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"),b7="Reset color",y7={selected:0,themes:[]};function S7(e){e(y7)}function Y_({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=uo(e),[n,s]=V_(!1),l=u7(),[d,c]=V_(null),f=(S,k)=>{o({...a,themes:a.themes.map((y,b)=>b===S?k:y)})},u=Yn(a).accent,p=new Set(a.themes.map(S=>S.brandInk).filter(Boolean)),h=GC.filter(S=>!p.has(S)).map(S=>zC(u,S)),g=[...a.themes,...h],I=S=>{if(S<a.themes.length)return o({...a,selected:S});let k=[...a.themes,g[S]];o({...a,themes:k,selected:k.length-1})},C=()=>{let S=[...a.themes,{...$o(a.themes[a.selected])}];o({...a,themes:S,selected:S.length-1}),c(S.length-1)};return c7(d7,{children:[r?null:an(p7,{label:i(b7),icon:x7(I7),labelId:"sf-theme-reset",action:an(f7,{label:i("all theme colors"),words:l.panel,changed:!0,onReset:()=>s(!0)})}),n&&an(j_,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),S7(o)}}),an("div",{className:"sf-theme-list",role:"radiogroup","aria-label":i("Theme"),children:g.map((S,k)=>an(yf,{index:k,colors:S,selected:k===a.selected,open:d===k&&k<a.themes.length,editable:k<a.themes.length,onPick:()=>I(k),onEdit:()=>c(y=>y===k?null:k),onChangeColors:y=>f(k,y)},k))}),an(h7,{variant:"secondary",leftIcon:an(m7,{}),onClick:C,className:"sf-theme-add",children:i("Add new theme")})]})}import{jsx as Cp}from"react/jsx-runtime";import{SettingsDefaultReset as w7,SettingsField as C7}from"efficient-easel/panel";import{SquareIcon as k7}from"efficient-easel/icons";var v7="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",sb="Corners";function q_({value:e,onChange:o}){let t=e===null;return Cp(C7,{label:i(sb),icon:Cp(k7,{}),changed:!t,action:Cp(w7,{words:se()?.panel,label:i(sb),changed:!t,detail:i("the built-in corners"),onReset:()=>o(null)}),hint:i(v7),children:Cp(Xo,{min:No,max:jr,step:1,value:e,...e===null?{}:{suffix:"px"},placeholder:No,placeholderWord:"Auto",onClear:()=>o(null),ariaLabel:i(sb),onChange:o})})}import{jsx as Si}from"react/jsx-runtime";import{SettingsDefaultReset as T7,SettingsField as P7}from"efficient-easel/panel";import{IconPicker as E7}from"efficient-shell/ui";import{ShadowIcon as O7}from"efficient-easel/icons";import{SHADOW_PREVIEW as _7}from"efficient-easel/screen/lib/document/shadow-values";var lb={none:"None",soft:"Soft",lifted:"Lifted"},A7="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.";function X_({value:e,onChange:o}){let t=e===null,r=e??wh;return Si(P7,{label:i("Card shadow"),icon:Si(O7,{}),value:i(lb[r]),changed:!t,action:Si(T7,{words:se()?.panel,label:i("Card shadow"),changed:!t,detail:i(lb[wh]),onReset:()=>o(null)}),hint:i(A7),children:Si(E7,{label:i("Card shadow"),value:r,options:ek.map(a=>({value:a,label:i(lb[a]),icon:Si("span",{className:"sf-shadow-chip border border-line bg-surface",style:{boxShadow:_7[a]}})})),onChange:o})})}import{jsx as Z_}from"react/jsx-runtime";import{ShadowIcon as R7}from"efficient-easel/icons";import{DEFAULT_SHADOW_COLOR as J_}from"efficient-easel/screen/lib/document/shadow-values";var L7="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 Q_({value:e,onChange:o}){let t=e===null;return Z_(Zl,{label:i("Shadow color"),icon:Z_(R7,{}),value:e??"",inherited:J_,resetTo:J_,onChange:o,onReset:()=>o(null),hint:i(L7)})}import{jsx as vp}from"react/jsx-runtime";import{SettingsDefaultReset as F7,SettingsField as B7}from"efficient-easel/panel";import{AlignSeparateIcon as D7}from"efficient-easel/icons";function kp(e,o){return e==="tablet"?null:e==="mobile"?o.phone:o.desktop}var N7="The space between the blocks inside a row, a grid or a box. Auto means each one keeps the spacing it already has.",M7="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.",ib="Block gap",eA=bs.Grid;function oA(e,o){return kp(e,{desktop:{key:"block_gap",value:o.gap,followsPx:null},phone:{key:"block_gap_phone",value:o.phone,followsPx:o.gap===null?null:iI(o.gap)}})}function tA({value:e,onChange:o,followsPx:t=null}){let r=e===null,a=t===null?null:`${t}px`,n=t===null?eA:ii(t)??eA;return vp(B7,{label:i(ib),labelId:"sf-block-gap",icon:vp(D7,{}),changed:!r,action:vp(F7,{words:se()?.panel,label:i(ib),changed:!r,detail:a??i("each block's own spacing"),onReset:()=>o(null)}),hint:i(a===null?N7:M7),children:vp(Xo,{min:Rr.min,max:Rr.max,step:Rr.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(ib),onChange:o})})}import{jsx as Tp}from"react/jsx-runtime";import{SettingsDefaultReset as H7,SettingsField as W7,SettingsSegmented as U7}from"efficient-easel/panel";import{HoverIcon as G7}from"efficient-easel/icons";var db={none:Na.none,lift:Na.lift,highlight:Kh},z7="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 rA({value:e,onChange:o}){let t=e===null,r=e??Ch;return Tp(W7,{label:i("Hover effect"),icon:Tp(G7,{}),value:i(db[r]),changed:!t,action:Tp(H7,{words:se()?.panel,label:i("Hover effect"),changed:!t,detail:i(db[Ch]),onReset:()=>o(null)}),hint:i(z7),children:Tp(U7,{options:ok.map(a=>({id:a,label:i(db[a])})),value:r,ariaLabel:i("Hover effect"),onChange:o})})}import{jsx as Pp}from"react/jsx-runtime";import{SettingsDefaultReset as $7,SettingsField as K7,SettingsSegmented as j7}from"efficient-easel/panel";import{DropIcon as V7}from"efficient-easel/icons";var cb="Photography",aA={shot:"As shot",mono:"Black and white"},fb=[{grayscale:!1,label:aA.shot},{grayscale:!0,label:aA.mono}],Y7="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function nA({value:e,onChange:o}){let t=e===null,r=e??!1;return Pp(K7,{label:i(cb),icon:Pp(V7,{}),value:i(fb.find(a=>a.grayscale===r).label),changed:!t,action:Pp($7,{words:se()?.panel,label:i(cb),changed:!t,detail:i(fb.find(a=>!a.grayscale).label),onReset:()=>o(null)}),hint:i(Y7),children:Pp(j7,{options:fb.map(a=>({id:a.grayscale,label:i(a.label)})),value:r,ariaLabel:i(cb),onChange:o})})}import{jsx as pb}from"react/jsx-runtime";import{useId as q7}from"react";import{SettingsField as X7,SettingsSwitch as Z7}from"efficient-easel/panel";import{ShareIcon as J7}from"efficient-easel/icons";var Q7="Share button",eq="On every blog post.";function sA({value:e,onChange:o}){let t=q7();return pb(X7,{label:i(Q7),labelId:t,icon:pb(J7,{}),action:pb(Z7,{checked:e===!0,onChange:o,ariaLabelledBy:t}),hint:i(eq)})}import{usePreviewDevice as qb}from"efficient-easel/draw/client";import{jsx as Ep}from"react/jsx-runtime";import{SettingsDefaultReset as oq,SettingsField as tq}from"efficient-easel/panel";import{PaddingXIcon as rq}from"efficient-easel/icons";var ub="Side space",lA=dt.default,aq="The room left at the left and right edge of every page.";function iA(e,o){return kp(e,{desktop:{key:"site_gutter",value:o.gutter,unsetPx:lA,bounds:dt},phone:{key:"site_gutter_phone",value:o.phone,unsetPx:Rf(o.gutter),bounds:fa}})}function dA({value:e,onChange:o,unsetPx:t=lA,bounds:r=dt}){let a=e===null;return Ep(tq,{label:i(ub),labelId:"sf-side-space",icon:Ep(rq,{}),changed:!a,action:Ep(oq,{words:se()?.panel,label:i(ub),changed:!a,detail:`${t}px`,onReset:()=>o(null)}),hint:i(aq),children:Ep(Xo,{min:r.min,max:r.max,step:r.step,value:e,suffix:"px",placeholder:t,onClear:()=>o(null),ariaLabel:i(ub),onChange:o})})}import{jsx as mb}from"react/jsx-runtime";import{BACKGROUND_WIDTHS as i_e,SettingsBackgroundWidth as nq,SettingsContentWidth as sq}from"efficient-easel/panel";var lq="Background width",iq="Content width";var Op=e=>i(Ja[e==="content"?"page":"full"]),cA="The width of every section's background.",fA="The width of every section's content.";function pA({value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n,labelId:s}){return mb(nq,{value:e,changed:o,detail:t,onChange:r,onReset:a,hint:n?i(n):void 0,labelId:s,words:{label:i(lq),full:Op("full"),content:Op("content")},resetWords:se()?.panel})}function uA({mode:e,px:o,max:t=Io.max,min:r=Io.min,changed:a,detail:n,fullClosed:s,onMode:l,onPx:d,onReset:c,hint:f,labelId:u,length:p}){let h=i(iq),g=p?.grid.min??r,I=p?.grid.max??t,C=e!=="full"?mb(Xo,{min:g,max:I,step:p?.grid.step??Io.step,value:Math.min(Math.max(o,g),I),onChange:d,...p?{suffix:p.unit,units:p.units}:{suffix:"px"},ariaLabel:h}):null;return mb(sq,{mode:e,onMode:l,number:C,changed:a,detail:n,fullClosed:s,onReset:c,hint:f?i(f):void 0,labelId:u,words:{label:h,full:Op("full"),content:Op("content")},resetWords:se()?.panel})}import{jsx as eR}from"react/jsx-runtime";import{TextStyleItem as g9,TextStylesGroup as I9}from"efficient-easel/text-styles";import{jsx as f9}from"react/jsx-runtime";import{useState as p9}from"react";import{TextStylesList as u9}from"efficient-easel/text-styles";import{usePreviewDevice as m9}from"efficient-easel/draw/client";import{defaultTextStyles as WA,textStyleCaseCss as n9}from"efficient-easel/text-styles/model";import{resolveViewValue as UA}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as mA,VIEW_TABLET_MIN as hA}from"efficient-easel/draw";var _p=.02,xA=`(min-width: ${Xt}px) and (max-width: ${mA-_p}px)`,gA=`(max-width: ${Xt-_p}px)`,Ap=`(min-width: ${hA}px) and (max-width: ${mA-_p}px)`,Rp=`(max-width: ${hA-_p}px)`;import{textStyleCaseCss as dq,textStyleCaseOfCss as cq,viewKeyAt as kA}from"efficient-easel/draw";function _s(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function As(e,o){return _s(e?.[o])??{}}function Lp(e,o,t){let r=As(e,o);return _s(G(r,t))??{}}function Fp(e,o,t,r){let{[t]:a,...n}=As(e,o),s=r?{...n,[t]:r}:n,{[o]:l,...d}=e;return Object.keys(s).length?{...d,[o]:s}:d}import{isLengthUnit as yb}from"efficient-easel/screen/lib/content/length-units";var ki="_partStyles",Sb="data-sf-part-styled",Rs="data-sf-text-style",fq=/^(heading|body)-[1-7]$/;function ln(e){return typeof e=="string"&&fq.test(e)}var Bp={heading:"heading-1",heading2:"heading-2",heading3:"heading-3",body:"body-1",label:"body-5"};function pq(e){if(!e)return null;for(let[o,t]of Object.entries(Bp))if(t===e)return o;return null}function wb(e){if(ln(e.textStyle))return e.textStyle;let o=Sr(e.role);return o?Bp[o]:void 0}var uq=[400,500,600,700],Ci=["left","center","right","justify"],hb=5,xb=1e3,mq=-5,hq=10,Cb=0,kb=64,vb=2,IA={size:{min:hb,max:xb,step:1},sizeTablet:{min:hb,max:xb,step:1},sizePhone:{min:hb,max:xb,step:1},padding:{min:Cb,max:kb,step:vb}},xq=.05,gq=.01,Iq=["line","letter"],bq=.5,yq=2.5,Sq=-1,wq=1,Cq=0,kq=400,vq=[...new Set(Object.values(Kn))];function vA(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 R_e(e){return As(e,ki)}function vi(e,o){return Lp(e,ki,o)}function TA(e,o,t){return Fp(e,ki,o,Tq(t).length?t:null)}function Tq(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function Pq(e){return Iq.includes(e)}var wi=(e,o,t)=>Math.min(t,Math.max(o,e)),Eq=["sizeUnit","sizeUnitTablet","sizeUnitPhone"];function gb(e){let o=kA("sizeUnit",e),t=Eq.find(r=>r===o);if(!t)throw new Error(`a part stores no unit key ${o}`);return t}var ht={size:gb("desktop"),sizeTablet:gb("tablet"),sizePhone:gb("mobile"),paragraphSpacing:"paragraphSpacingUnit",padding:"paddingUnit"},PA=Object.values(ht);function pr(e,o){return eo(e[ht[o]])}function Oq(e,o,t={}){if(PA.includes(e))return yb(o)&&o!=="px"?o:null;if(He(ht,e)&&pr(t,e)!=="px"){let r=sn(Number(o),2);return!Number.isFinite(r)||r<0||r===0&&e!=="padding"?null:r}if(Pq(e)){let r=Math.round(Number(o));return!Number.isFinite(r)||r===0?null:wi(r,mq,hq)}if(e==="lineHeight"){let r=Number(o);return Number.isFinite(r)?sn(wi(r,bq,yq),3):null}if(e==="letterSpacing"){let r=Number(o);return Number.isFinite(r)?sn(wi(r,Sq,wq),4):null}if(e==="paragraphSpacing"){let r=Math.round(Number(o));return!Number.isFinite(r)||r<=0?null:wi(r,Cq,kq)}if(He(IA,e)){let{min:r,max:a}=IA[e],n=Math.round(Number(o));return Number.isFinite(n)?wi(n,r,a):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"||e==="fontRole"?Sr(o)?o:null:e==="sizeToken"?Tb(o)?o:null:e==="textStyle"?ln(o)?o:null:e==="alignPhone"||e==="alignTablet"?Ci.includes(o)?o:null:o}var _q=["weight","size","sizeTablet","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding"];function Ls(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of _q){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}e.align!==void 0&&!Ci.includes(e.align)&&t("align"),e.alignTablet!==void 0&&!Ci.includes(e.alignTablet)&&t("alignTablet"),e.alignPhone!==void 0&&!Ci.includes(e.alignPhone)&&t("alignPhone"),e.textStyle!==void 0&&!ln(e.textStyle)&&t("textStyle"),e.sizeToken!==void 0&&!Tb(e.sizeToken)&&t("sizeToken"),e.fontRole!==void 0&&!Sr(e.fontRole)&&t("fontRole");for(let r of PA)e[r]!==void 0&&!yb(e[r])&&t(r);return o??e}function Tb(e){if(!e||typeof e!="object")return!1;let{step:o,px:t,stepPhone:r,pxPhone:a,fluid:n}=e,s=d=>typeof d=="number"&&Number.isFinite(d)&&d>0,l=d=>typeof d=="string"&&vq.includes(d);return l(o)&&s(t)&&(r===void 0||l(r))&&(a===void 0||s(a))&&(n===void 0||Aq(n,t))}function Aq(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 Pb(e){return e?.pxPhone&&Tb(e)?{step:e.stepPhone??e.step,px:e.pxPhone}:null}function EA({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 Rq=[["font","role"],["font","fontRole"],["role","textStyle"],["line","lineHeight"],["letter","letterSpacing"]];function Lq(e){let o=[];for(let[t,r]of Rq)t===e?o.push(r):r===e&&o.push(t);return o}function dn(e,o,t,r){let a={...vi(e,o)},n=r==null?null:Oq(t,r,a);if(n===null)delete a[t];else{a[t]=n;for(let s of Lq(t))delete a[s]}return TA(e,o,a)}function OA(e,o){return TA(e,o,{})}function Fq(e){return cq(e)??"none"}function Bq(e){return dq(e)??""}var bA={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 Dq(e,o){return Sr(e.role)||(o?.blockDrawsStyle?null:pq(e.textStyle))}function _A(e,o){return e==="Text"&&o==="text"}var Nq={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 Mq(e){let o=Kn[e],t=G(Nq,o);return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Ti(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=sn(Hq+e.line*xq,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=sn(e.letter*gq,4)),o}var Hq=1,nn="--sf-part-para";function Wq(e){e=Ls(e);let o={};if(typeof e.sizePhone=="number"&&e.sizePhone>0)o.fontSize=Le(e.sizePhone,pr(e,"sizePhone"));else{let r=Pb(e.sizeToken);if(r)o.fontSize=EA(r);else{let a=Np(e);a!==void 0&&(o.fontSize=Le(a,pr(e,"sizeTablet")))}}let t=e.alignPhone??Dp(e);return t&&(o.textAlign=t),o}function Dp(e){return e.alignTablet&&e.alignTablet!==e.align?e.alignTablet:void 0}function Np(e){let o=e.sizeTablet!==void 0&&pr(e,"sizeTablet")!==pr(e,"size")?e.sizeTablet:_t("textSize",e.size,e.sizeTablet,void 0).tablet;return o&&o>0?o:void 0}function Uq(e){let o=Ls(e),t={},r=Np(o);r!==void 0&&(t.fontSize=Le(r,pr(o,"sizeTablet")));let a=Dp(o);return a&&(t.textAlign=a),t}function AA(e,o){if(o==="desktop")return;let t=Ls(e);return(o==="mobile"?Dp(t):void 0)??t.align}function Gq(e,o){if(o==="desktop")return e;let t=Ls(e),r=Np(t),a=Dp(t);if(o==="tablet"){let l=e;return r!==void 0&&(l={...l,size:r,sizeUnit:t[ht.sizeTablet]}),a&&(l={...l,align:a}),l}let n=e;if(typeof t.sizePhone=="number"&&t.sizePhone>0)n={...n,size:t.sizePhone,sizeUnit:t[ht.sizePhone]};else{let l=Pb(t.sizeToken);l?n={...n,size:void 0,sizeToken:l}:r!==void 0&&(n={...n,size:r,sizeUnit:t[ht.sizeTablet]})}let s=t.alignPhone??a;return s&&(n={...n,align:s}),n}function Eb(e,o,t){return _b(Gq(e,o),Mp,t)}function Ob(e){return kA("size",e)}function RA(e,o){if(o==="desktop")return null;let t=Ls(e);if(o==="mobile"){if(Pb(t.sizeToken))return null;let r=Np(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 LA(e,o){let t=Ob(o);if(!He(e,t))return e;let r={...e};return delete r[t],r}function L_e(e,o,t){let r=Eb(LA(e,o),o,t);return{fontFamily:r.fontFamily,fontSize:r.fontSize}}function _b(e,o,t){e=Ls(e);let r=Dq(e,t),a=Ti(e),n=e.size?Le(e.size,pr(e,"size")):e.sizeToken?EA(e.sizeToken):r?Mq(r):"";return{fontFamily:e.font?jq(e.font):e.fontRole?`var(${bA[e.fontRole]})`:r?`var(${bA[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`:"",[nn]:e.paragraphSpacing?Le(e.paragraphSpacing,pr(e,"paragraphSpacing")):"",textTransform:Bq(e.case),textAlign:e.align??"",paddingTop:yA(e.padding,pr(e,"padding")),paddingBottom:yA(e.padding,pr(e,"padding")),color:zq(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var zq=e=>ds(e),yA=(e,o)=>e===void 0?"":Le(e,o),sn=(e,o)=>Number(e.toFixed(o));function F_e(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:$q(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?sn(r/t,3):1.2,letterEm:Number.isFinite(a)?sn(a/t,4):0,align:Kq(e.textAlign),case:Fq(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0}}function $q(e){return Number.isFinite(e)?uq.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function Kq(e){for(let o of Ci)if(o===e)return o;return e==="end"?"right":"left"}function B_e(e,o){let t=SA(e);if(!t)return"";for(let r of Ot)if(SA(o(r.cssVar))===t)return r.key;return""}var SA=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function jq(e){let o=$n(e);return o?`var(${o.cssVar})`:""}function D_e(e,o,t,r){return!o||VI(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function Vq(e,o){return _s(G(e,o))??{}}function N_e(e,o,t=()=>Mp,r=l=>l,a=Xq,n="desktop",s=()=>!1){let l=0;for(let{element:d,partId:c}of e){let f=VI(c)?.propKey;if(!f)continue;let u=Vq(o,r(f)),p=Eb(u,n,{blockDrawsStyle:s(f)});ln(u.textStyle)?d.setAttribute?.(Rs,u.textStyle):d.removeAttribute?.(Rs);let h=Ib.some(I=>d.style[I]),g=!1;for(let[I,C]of Object.entries(p))Qq(d,I,C),C&&(g=!0);if(h||Ib.some(I=>p[I]))for(let I of Yq(d,a))for(let C of Ib)I.style[C]=p[C]??"";g&&(l+=1)}return l}function Yq(e,o){let t=Es(e.textContent??""),r=[],a=e;for(let n=0;n<qq&&o(a);n+=1){let s=a.parentElement;if(!s||Es(s.textContent??"")!==t)break;r.push(s),a=s}return r}var qq=8;function Xq(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Mp={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0};function Zq(e){if(!e||typeof e!="object")return null;let o={};ln(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);for(let t of["size","sizeTablet","sizePhone"]){let r=ht[t];o[t]!==void 0&&yb(e[r])&&(o[r]=e[r])}return Object.keys(o).length?o:null}function Jq(e,o){let t=Zq(e);if(!t)return{};let r=Eb(t,o);return{...r.fontFamily?{fontFamily:r.fontFamily}:{},...r.fontSize?{fontSize:r.fontSize}:{}}}function FA(e){return ln(e?.textStyle)||!!e?.role||typeof e?.size=="number"&&e.size>0}function M_e(e,o,t){if(!e||typeof e!="object")return{};let r=Lc(e.role,o,Kn)??{},a=o.sized?Jq(LA(e,t),t):{};return{...r,...a}}function H_e(e,o,t){t.fontFamily&&e.fontFamily===t.fontFamily&&(e.fontFamily=o.fontFamily),t.fontSize&&e.fontSize===t.fontSize&&(e.fontSize=o.fontSize)}function Qq(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===nn&&(t?a.setAttribute?.(wA,""):a.removeAttribute?.(wA))}var wA="data-sf-part-para",e9=Object.keys(_b({},Mp)),bb=new Set(["color","overflowWrap",nn,"fontStyle"]),Ib=e9.filter(e=>!bb.has(e));function BA(e,o,t,r=l=>l,a=()=>!1,n=()=>null,s=[]){let l=new Map;for(let u of e){let p=Ps(u.key,u.row);for(let h of u.texts){let g=l.get(h);g?(g.keys.add(u.key),g.partKeys.add(p)):l.set(h,{keys:new Set([u.key]),partKeys:new Set([p])})}}let d=new Map;for(let u of new Set([...Object.keys(o),...s])){if(!o9(u))continue;let p=CA(t,u,_s(o[u])??{},!1,n(u));p&&d.set(u,p)}let c=u=>{let p=r(u),h=n(p);if(!He(o,p)&&!h)return null;let g=_s(o[p])??{};return CA(t,u,g,a(u),h)},f=new Map;for(let[u,{keys:p,partKeys:h}]of l){let g=h.size===1?[...h][0]:p.size===1?[...p][0]:null;if(!g)continue;let I=c(g);I&&f.set(u,I)}for(let u of e){if(!u.keyed)continue;let p=c(Ps(u.key,u.row));p&&d.set(u.key,p)}return f.size||d.size?{rules:f,kindRules:d,drawn:new Set(l.keys())}:null}function CA(e,o,t,r,a){let n=_b(t,Mp,{blockDrawsStyle:r}),s=Uq(t),l=Wq(t),d=ln(t.textStyle)?t.textStyle:void 0;return!Object.values(n).some(Boolean)&&!Object.keys(s).length&&!Object.keys(l).length&&!d&&!a?null:{stamp:t9(e,o),declarations:n,...Object.keys(s).length?{tablet:s}:{},...Object.keys(l).length?{phone:l}:{},...d?{textStyle:d}:{},...a?{motion:a}:{}}}function o9(e){return e.startsWith("@")}function Ab(e,o){return e?.kindRules.get(o)??null}function t9(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function Rb(e){return e?{tablet:xA,phone:gA}:{tablet:Ap,phone:Rp}}function DA(e,{inBox:o=!1}={}){let{tablet:t,phone:r}=Rb(o),a=[],n=new Set,s=l=>{let{stamp:d,declarations:c}=l;if(n.has(d))return;n.add(d);let f=Object.entries(c).filter(([,S])=>S!==""),u=S=>S.map(([k,y])=>`${r9(k)}: ${y}`).join("; "),p=`[${Sb}="${d}"]`,h=f.filter(([S])=>!bb.has(S)),g=f.filter(([S])=>bb.has(S));h.length&&a.push(`${p}, *:has(> ${p}) { ${u(h)} }`),g.length&&a.push(`${p} { ${u(g)} }`),c[nn]&&(a.push(`*:has(> ${p}) { ${nn}: ${c[nn]} }`),a.push(...Hp(p,`*:has(> ${p})`)));let I=Object.entries(l.tablet??{}).filter(([,S])=>S!=="");I.length&&a.push(`@media ${t} { ${p}, *:has(> ${p}) { ${u(I)} } }`);let C=Object.entries(l.phone??{}).filter(([,S])=>S!=="");C.length&&a.push(`@media ${r} { ${p}, *:has(> ${p}) { ${u(C)} } }`)};for(let l of e.rules.values())s(l);for(let l of e.kindRules.values())s(l);return a.join(`
|
|
76
|
+
`)}function Hp(e,o){let t=`var(${nn})`,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 r9=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function NA(e,o){if(!e)return null;let t=Es(o),r=e.rules.get(t);if(r)return r;if(t.length<a9||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 a9=8;function MA(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 Lb=e=>e==="sentence"?"none":void 0,GA=["font","color","size","sizeTablet","sizePhone","weight","italic","lineHeight","lineHeightTablet","lineHeightPhone","letterSpacing","letterSpacingTablet","letterSpacingPhone","paragraphSpacing","paragraphSpacingTablet","paragraphSpacingPhone","letterCase","largestSize","largestSizeTablet","largestSizePhone"],Fs=["desktop","tablet","phone"],cn=(e,o)=>Ie(e,o);function Db(e,o,t,r=jn()){return UA("textSize",o,e.sizeTablet,e.sizePhone,r)[t]}var s9=[["lineSpacing","lineHeight","line"],["letterSpacing","letterSpacing","letter"]];function Fb(e){for(let[o,t,r]of s9)for(let a of Fs)if(e===cn(o,a))return{key:Ie(t,a),view:a,spacing:r};return{key:e,view:"desktop",spacing:null}}function ur(e){let o={};for(let t of GA)e[t]!==void 0&&(o[t]=e[t]);return o}function Nb(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=GA.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function zA(e){let o=e.fonts,t=e.sizes,r=e.typography,a=tk(e.compression),n={"heading-1":{font:Z(o.heading),size:j(t.headingLarge),weight:j(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Lb(r.case),largestSize:j(r.maxPx)},"heading-2":{font:Z(o.heading2),size:j(t.headingMedium),weight:j(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Lb(r.case2)},"heading-3":{font:Z(o.heading3),size:j(t.headingSmall),weight:j(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Lb(r.case3)},"body-1":{font:Z(o.body),size:j(t.body)},"body-5":{font:Z(o.label),size:j(t.label)}};return WA().map(({id:s,kind:l,name:d})=>({id:s,kind:l,name:d,values:ur(n[s]??{})}))}function Mb(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=>Nb({...o,values:ur(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function Q_e(e){return Mb(e)??[]}function $A(e){return Mb(e)??WA().map(({id:o,kind:t,name:r})=>({id:o,kind:t,name:r,values:{}}))}function Mr(e,o){let t=zA(o),r=Mb(e);return r?r.map(a=>{let n={...Bb(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:ur({...n,...a.values})}}):t}var Bb=(e,o)=>e.find(t=>t.id===o)?.values??{},HA=["heading-1","heading-2","heading-3"];function KA({saved:e,old:o,cur:t,next:r,sizeOf:a,panelView:n="desktop"}){let s=zA(o),l=$A(e),d=Mr(l,o),c=[],f=r.map(p=>{let h=t.find(O=>O.id===p.id),g=l.find(O=>O.id===p.id);if(!h||!g){let O=l9([p],a,n)[0],W=O.values.color;return W===void 0?O:{...O,values:{...O.values,color:at(W)}}}let I={...g.values},C=new Set(g.auto??[]),S=p.values,k=h.values,y=[...new Set([...Object.keys(S),...Object.keys(k)])].filter(O=>JSON.stringify(S[O])!==JSON.stringify(k[O])),b=O=>Fb(O).spacing==="letter";y.sort((O,W)=>Number(b(O))-Number(b(W)));for(let O of y){let{key:W,view:T,spacing:M}=Fb(O),P=W,F=S[O];if(F===void 0){delete I[P],Bb(s,p.id)[P]!==void 0&&(c.push([p.id,P]),C.add(P));continue}if(C.delete(P),M==="line")I[P]=Bs(F/100,3);else if(M==="letter"){let w={...d.find(L=>L.id===p.id)?.values??{}};for(let L of y)S[L]===void 0&&delete w[Fb(L).key];let E=ur({...w,...I}),A=Db(E,a({...p,values:E}),T);I[P]=A?Bs(F/A,4):0}else I[P]=F}return Nb({id:p.id,kind:p.kind,name:p.name,values:ur(I)},C)}),u=o.compression;if(c.some(([p,h])=>(h==="lineHeight"||h==="letterSpacing")&&HA.includes(p))&&Aa(u)!=="normal"){for(let p of HA){let h=f.find(I=>I.id===p);if(!h)continue;let g={...h.values};for(let I of["lineHeight","letterSpacing"])c.some(([C,S])=>C===p&&S===I)||g[I]===void 0&&!(h.auto??[]).includes(I)&&(g[I]=Bb(s,p)[I]);h.values=ur(g)}u="normal"}return{saved:f,old:{...o,compression:u}}}function jA(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=Aa(e.old.compression)),t}var Bs=(e,o)=>Number(e.toFixed(o)),VA=(e,o)=>Fs.indexOf(e)<Fs.indexOf(o)?o:e;function YA(e,o,t="desktop"){return e.map(r=>{let a={...r.values},n=o(r);for(let s of Fs){let l=Ie("lineHeight",s),d=r.values[l],c=r.values[Ie("letterSpacing",s)];delete a[l],d!==void 0&&(a[cn("lineSpacing",s)]=Bs(d*100,1));let f=VA(s,t);c!==void 0&&(a[cn("letterSpacing",s)]=Bs(c*Db(r.values,n,f),f===s?2:4))}return{id:r.id,kind:r.kind,name:r.name,values:a}})}function l9(e,o,t="desktop"){return e.map(r=>{let a=r.values,n={...a};for(let c of Fs)delete n[cn("lineSpacing",c)],delete n[cn("letterSpacing",c)];let s={id:r.id,kind:r.kind,name:r.name,values:ur(n)},l={...s.values},d=o({...s,values:{...s.values}});for(let c of Fs){let f=a[cn("lineSpacing",c)],u=a[cn("letterSpacing",c)];if(typeof f=="number"&&(l[Ie("lineHeight",c)]=Bs(f/100,3)),typeof u=="number"){let p=Db(s.values,d,VA(c,t));l[Ie("letterSpacing",c)]=p?Bs(u/p,4):0}}return{...s,values:ur(l)}})}function eAe(e){let o={fonts:Il({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:Sh({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:Aa(e.heading_compression),typography:ak(e)},t=e.text_styles??null,r=Array.isArray(t)?Hb(Mr(t,o),o):o;return{fonts:Il(r.fonts),sizes:Sh(r.sizes),compression:Aa(r.compression),typography:r.typography,textStyles:t}}function Hb(e,o){let t=p=>e.find(h=>h.id===p)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),l=t("body-5"),d=o.fonts,c=o.sizes,f=o.typography,u=p=>p==="none"?"sentence":"authored";return{fonts:{...d,heading:r.font??d.heading,heading2:a.font??r.font??d.heading2,heading3:n.font??r.font??d.heading3,body:s.font??d.body,label:l.font??d.label},sizes:{...c,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 oAe(e){let o=[];for(let t of e){let r=t.values,a=`.${MA(t)}`,n=`[${Rs}="${t.id}"]`,s=`${a}, ${n}`,l=[],d=r.font!==void 0?Ot.find(p=>p.key===r.font)?.cssVar:void 0;if(d&&l.push(`font-family: var(${d})`),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 c=ds(r.color);c&&l.push(`color: ${c}`),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=n9(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(...Hp(`:is(${s})`,`*:has(> ${n})`))),o.push(...i9(t,s,a,n))}return o.join(`
|
|
77
|
+
`)}function i9(e,o,t,r){let a=e.values,n=_t("textSize",a.size,a.sizeTablet,a.sizePhone),s=_t("textSize",a.largestSize,a.largestSizeTablet,a.largestSizePhone),l=_t("same",a.lineHeight,a.lineHeightTablet,a.lineHeightPhone),d=_t("same",a.letterSpacing,a.letterSpacingTablet,a.letterSpacingPhone),c=_t("spacing",a.paragraphSpacing,a.paragraphSpacingTablet,a.paragraphSpacingPhone),f=UA("textSize",a.size,a.sizeTablet,a.sizePhone,jn()),u=d9[e.id],p=[];for(let[h,g]of[["tablet",Ap],["phone",Rp]]){let I=[],C=[],S=f[h],k=s[h],y=n[h]===void 0&&k===void 0||S===void 0?void 0:k===void 0?S:Math.min(S,k);y!==void 0&&C.push(`font-size: ${y}px`);let b=[];l[h]!==void 0&&b.push(`line-height: ${l[h]}`),d[h]!==void 0&&b.push(`letter-spacing: ${d[h]}em`),e.kind==="body"&&C.push(...b),c[h]!==void 0&&C.push(`--sf-part-para: ${c[h]}px`),C.length&&I.push(`${o} { ${C.join("; ")} }`),e.kind==="heading"&&b.length&&I.push(`${o}, ${t}:is(h1, h2, h3, h4), ${r}:is(h1, h2, h3, h4) { ${b.join("; ")} }`),c[h]!==void 0&&I.push(`*:has(> ${r}) { --sf-part-para: ${c[h]}px }`),c[h]!==void 0&&!a.paragraphSpacing&&I.push(...Hp(`:is(${o})`,`*:has(> ${r})`)),y!==void 0&&u&&I.push(`.sf-themed-content { --size-${u}: ${y}px !important }`),I.length&&p.push(`@media ${g} { ${I.join(" ")} }`)}return p}var d9={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function tAe(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function qA(e){return e?Bp[e]:void 0}function Wb(e){let o=Ti(e);return ur({font:e.font,color:e.color===void 0?void 0:at(e.color),size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function XA(e){return Object.keys(Wb(e)).length>0}function ZA({saved:e,old:o,styleId:t,values:r}){let a=$A(e);return{saved:c9(a,t,r),old:o}}function c9(e,o,t){return e.map(r=>r.id===o?Nb({...r,values:ur({...r.values,...t})},r.auto):r)}var JA=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],h9=["size","lineSpacing","letterSpacing","letterCase"],x9=500,Ub=Ot.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function QA({saved:e,old:o,colours:t,colourNameOf:r,sizeOf:a,onChange:n,openId:s,onOpenChange:l,readOnly:d=!1,withoutSize:c=!1}){let f=m9(),[u,p]=p9(null),h=Mr(e,o),g=oc(f),I=YA(h,a,g);return f9(u9,{styles:I,onChange:C=>n(KA({saved:e,old:o,cur:I,next:C,sizeOf:a,panelView:g})),fonts:Ub,colours:t,colourNameOf:r,settings:c?JA.filter(C=>C!=="size"):JA,auto:h9,openId:s===void 0?u:s,onOpenChange:l??p,readOnly:d,device:g,fallback:C=>{let S=h.find(y=>y.id===(C.kind==="heading"?"heading-1":"body-1")),k={};return S?.values.font&&C.id!==S.id&&(k.font=S.values.font),C.kind==="heading"&&(k.weight=x9),k}})}var oR=["font","size","weight","emphasis"],b9=500;function y9({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 S9(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 tR(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=y9(e);return eR(I9,{label:i("Emphasis"),children:eR(g9,{style:s,fonts:Ub,settings:n?oR.filter(l=>l!=="size"):oR,auto:["size"],fallback:()=>({weight:o??b9}),open:t,onOpenChange:r,onChange:l=>S9(s,l).forEach(a)})})}import{EmptyState as j9,SliderGroup as V9,Tabs as Y9,Tooltip as vRe,tabButtonId as q9,tabPanelId as X9}from"efficient-shell/ui";import{ContrastIcon as Z9,SettingsIcon as J9,TypeIcon as Q9}from"efficient-easel/icons";function rR(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 Kb}from"react/jsx-runtime";import{ListIcon as F9,PaddingTopIcon as B9}from"efficient-easel/icons";import{jsx as Wp}from"react/jsx-runtime";import{SettingsDefaultReset as w9,SettingsField as C9,SettingsSegmented as k9}from"efficient-easel/panel";import{WidthIcon as v9}from"efficient-easel/icons";function aR({value:e,resolved:o,onChange:t,label:r="Width",labelId:a,followsLabel:n,hint:s}){let l=e===void 0,d=l?o:e,c=i(r);return Wp(C9,{label:c,labelId:a,icon:Wp(v9,{}),value:l?n:void 0,changed:!l,action:Wp(w9,{words:se()?.panel,label:c,changed:!l,onReset:()=>t(void 0)}),hint:s,children:Wp(k9,{options:[{label:i(Ja.full),id:"full"},{label:i(Ja.page),id:"content"}],value:d,ariaLabel:c,onChange:t})})}import{HEADER_TYPE as Gb,FOOTER_TYPE as T9}from"efficient-easel/draw";var P9=new Set(["Hero","HeroSingle","IntroBleed"]),nR={min:56,max:140,default:88},TAe={min:0,max:120,step:2,default:32},PAe=`var(--sf-header-h, ${nR.default}px)`,E9="--sf-header-set-h",EAe="--sf-header-h",OAe=`var(${E9}, ${nR.default}px)`,_Ae="sf-header-clearance",AAe="sf-sticky-underheader";function O9(e){return e?.find(o=>o?.type&&o.type!==Gb)??null}function sR(e){let o=O9(e)?.type;return!o||!P9.has(o)}function RAe(e){return!sR(e)}function LAe(e){return!!e?.some(o=>o?.type===Gb)}function FAe(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Gb||o?.type===T9)}var _9=["auto","shared","own"],zb="auto",A9="topSpace",BAe="data-top-space";function R9(e){return _9.includes(e)?e:zb}function L9(e,o){let t=R9(e?.props?.[A9]);return t==="own"?!0:t==="shared"?!1:sR(o)}function DAe(e,o){return L9(e,o)?"own":null}function D9(){return{type:"custom",render:({value:e,onChange:o})=>Kb(aR,{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 N9=[{label:"Auto",value:"auto"},{label:"Shared",value:"shared"},{label:"Its own",value:"own"}],VAe={pageBackground:l_(),topSpace:ut("Top space",Kb(B9,{}),N9,zb),widthChoice:D9()},Pi=["pageBackground","topSpace","widthChoice"],M9="Record type",$b=new Map,lR=-1;function H9(e){lR!==$x()&&($b.clear(),lR=$x());let o=zx(),t=o.some(a=>a.key===e)?"":e,r=$b.get(t);return r||(r=ut(M9,Kb(F9,{}),[...o.map(a=>({label:a.label,value:a.key})),...t?[{label:t,value:t}]:[]],ra),$b.set(t,r)),r}var iR=new WeakMap;function YAe(e,o){if(!Vl()||zx().length<2||Yc in e)return e;let t=H9(jl(o)),r=iR.get(e);if(r&&r.row===t)return r.fields;let a={[Yc]:t,...e};return iR.set(e,{row:t,fields:a}),a}import{previewFrame as eX}from"efficient-easel/screen/lib/document/preview-dom";var dR="background";function cR(e){let o=$o(Yn(e));return cs({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 fR(e){return cR(e).filter(o=>o.key!==dR)}function pR(e){let o=cR(e).filter(t=>t.key===dR);return t=>{let r=at(t);return o.find(a=>a.key===r)?.value??r}}import{useEasel as W9}from"efficient-easel/easel";function Up({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=W9(T=>T),{fonts:a,setFonts:n,sizes:s,setSizes:l,headingCompression:d,setHeadingCompression:c,headingTypography:f,setHeadingTypography:u,textStyles:p,setTextStyles:h}=ge(),g=t.data,I=g.root?.props??{},C=e?Il(I.fonts):a,S=e?ZC:s,k=e?Aa(I.headingCompression):d,y=e?rk(I.headingTypography):f,b={fonts:C,sizes:S,compression:k,typography:y},O=e?I.textStyles:p,W=T=>r({type:"replaceRoot",root:{...g.root,props:{...I,...T}},recordHistory:!0});return{fonts:C,sizes:S,compression:k,typography:y,old:b,saved:O,write:(T,M)=>{let P=Hb(Mr(T.saved,T.old),T.old);e?W({textStyles:T.saved,fonts:P.fonts,headingCompression:P.compression,headingTypography:P.typography}):(h(T.saved),n(P.fonts),l(P.sizes),c(P.compression),u(P.typography)),o(jA(T,b),M)},writeRoot:W}}import{pictureShadowColor as oX}from"efficient-easel/screen/lib/document/shadow-values";var Vb="sf-site-styles",tX="sf-site-styles-tabpanel",hR="text",Ms="basics",uR="this-page-group",Ds=[{id:Ms,label:"Basics",icon:be(J9,{})},{id:"theme",label:"Theme",icon:be(Z9,{})},{id:"text",label:"Text",icon:be(Q9,{})}];function rX({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=mR(c=>c),{theme:a,setTheme:n}=ge(),s=t.data,l=s.root?.props??{},d=c=>{if(e){let f={...l,theme:c};r({type:"replaceRoot",root:{...s.root,props:f},recordHistory:!0})}else n(c);o({selected_preset:c.selected,theme_presets:c.themes})};return be(Y_,{value:e?l.theme:a,onChange:d})}function aX({themeFromDocument:e,persist:o}){let[t,r]=Yb(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:l}=ge(),d=Up({themeFromDocument:e,persist:o}),{old:c,saved:f,writeRoot:u}=d,p=d.fonts,h=d.sizes,g=d.typography,I=T=>T.values.size??iX(nX[T.id]??"body")??sX[T.kind],C=T=>d.write(T),S=fR(a),k=pR(a),y=T=>{let M={...p,accent:T};e?u({fonts:M}):n(M),o({accent_font:T})},b=T=>{s({...h,accent:T}),o({accent_size_px:T})},O=T=>{let M={...g,weightStrong:T};e?u({headingTypography:M}):l(M),o({heading_weight_strong:T})},W=T=>{let M={...g,italicStrong:T};e?u({headingTypography:M}):l(M),o({accent_italic:T})};return fn(Ns,{children:[be(QA,{saved:f,old:c,colours:S,colourNameOf:k,sizeOf:I,onChange:C,openId:t===jb?null:t,onOpenChange:r,withoutSize:e}),be(tR,{font:p.accent,size:h.accent,weight:g.weightStrong,italic:g.italicStrong,headingWeight:g.weight,open:t===jb,onOpenChange:T=>r(T?jb:null),onChange:T=>{T.key==="font"?y(T.value):T.key==="size"?b(T.value):T.key==="weight"?O(T.value):W(T.value)},withoutSize:e})]})}var jb="accent",nX={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},sX={heading:32,body:14},lX={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 iX(e){if(typeof document>"u")return null;let o=(eX()?.contentDocument??document).querySelector(lX[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function dX({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=mR(u=>u),{cornerRadiusPx:a,setCornerRadiusPx:n}=ge(),s=t.data,l=s.root?.props??{},d=l.cornerRadiusPx===void 0?QC[JC(l.cornerStyle)]:Zt(l.cornerRadiusPx),c=e?d:a,f=u=>r({type:"replaceRoot",root:{...s.root,props:{...l,...u}},recordHistory:!0});return be(q_,{value:c,onChange:u=>{e?f({cornerRadiusPx:u}):n(u),o({corner_radius_px:u})}})}function cX(e){return{site_width:e}}function fX({persist:e}){let{siteWidth:o,setSiteWidth:t,sectionBackgroundWidth:r,setSectionBackgroundWidth:a,sectionContentWidth:n,setSectionContentWidth:s}=ge();if(qb()!=="desktop")return null;let l=typeof o=="number"?o:Io.default,d=u=>{t(u),e(cX(u),u===null)},c=u=>{a(u),e({section_background_width:u},!0)},f=u=>{s(u),e({section_content_width:u},!0)};return fn(Ns,{children:[be(pA,{value:r??"full",changed:r!==null,detail:i("Full width"),onChange:c,onReset:()=>c(null),hint:cA}),be(uA,{mode:n??"content",px:l,min:Io.min,max:Io.max,changed:typeof o=="number"||n!==null,detail:`${i("Content width")} ${Io.default}px`,onMode:f,onPx:u=>d(u),onReset:()=>{f(null),d(null)},hint:fA})]})}function pX(e){return{block_gap:e}}function uX(e){return{block_gap_phone:e}}function mX(e){return{site_gutter:e}}function hX(e){return{site_gutter_phone:e}}function xR(e,[o,t],r){o(e),r(t(e),e===null)}function xX({persist:e}){let{siteGutter:o,siteGutterPhone:t,setSiteGutter:r,setSiteGutterPhone:a}=ge(),n=iA(qb(),{gutter:o,phone:t});if(!n)return null;let s=n.key==="site_gutter_phone"?[a,hX]:[r,mX];return be(dA,{value:n.value,onChange:l=>xR(l,s,e),unsetPx:n.unsetPx,bounds:n.bounds})}function gX({persist:e}){let{blockGap:o,blockGapPhone:t,setBlockGap:r,setBlockGapPhone:a}=ge(),n=oA(qb(),{gap:o,phone:t});if(!n)return null;let s=n.key==="block_gap_phone"?[a,uX]:[r,pX];return be(tA,{value:n.value,onChange:l=>xR(l,s,e),followsPx:n.followsPx})}function IX({persist:e}){return fn(Ns,{children:[be(fX,{persist:e}),be(xX,{persist:e}),be(gX,{persist:e})]})}function bX(e){return{card_shadow:e}}function yX(e){return e===null?{shadow_color:null}:{shadow_color:oX(e)}}function SX(e){return{hover_effect:e}}function wX({persist:e}){let{cardShadow:o,setCardShadow:t,shadowColor:r,setShadowColor:a,hoverEffect:n,setHoverEffect:s}=ge();return fn(Ns,{children:[be(X_,{value:o,onChange:l=>{t(l),e(bX(l),!0)}}),be(Q_,{value:r,onChange:l=>{a(l),e(yX(l),l===null)}}),be(rA,{value:n,onChange:l=>{s(l),e(SX(l),!0)}})]})}function CX(e){return{photography_grayscale:e}}function kX({persist:e}){let{photographyGrayscale:o,setPhotographyGrayscale:t}=ge();return be(nA,{value:o,onChange:r=>{t(r),e(CX(r),!0)}})}function vX({persist:e}){return be(Ns,{children:be(kX,{persist:e})})}function TX(e){return{share_button_on_posts:e}}function PX({persist:e}){let{shareButtonOnPosts:o,setShareButtonOnPosts:t}=ge();return be(sA,{value:o,onChange:r=>{t(r),e(TX(r),!0)}})}function Hs(){let{websiteName:e}=ge();return e?.trim()||Dk}function Gp({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n,initialTab:s,revealPageGroup:l=!1,onPageGroupRevealed:d}){let{persist:c}=ms({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let S=rR(C);S&&r?.(S.msg,S.tone)}}),[f,u]=Yb(s??Ds[0].id),p=a!==void 0,h=p?a:f,g=p?n??(()=>{}):u,I=Ds.find(C=>C.id===h)??Ds[0];return fn(V9,{children:[be(_X,{activeId:I.id,onSelect:g}),fn("div",{id:X9(Vb,I.id),className:tX,role:"tabpanel","aria-labelledby":q9(Vb,I.id),children:[h===Ms&&fn(Ns,{children:[be(dX,{themeFromDocument:e,persist:c}),!e&&be(wX,{persist:c}),!e&&be(IX,{persist:c}),!e&&be(vX,{persist:c}),!e&&be(PX,{persist:c}),be(EX,{reveal:l,onRevealed:d})]}),h==="theme"&&be(rX,{themeFromDocument:e,persist:c}),h==="text"&&be(aX,{themeFromDocument:e,persist:c})]})]})}function EX({reveal:e,onRevealed:o}){let[t,r]=Yb(!0),a=K9(o);return a.current=o,$9(()=>{if(!e)return;r(!0);let n=requestAnimationFrame(()=>{document.getElementById(uR)?.scrollIntoView({block:"start"}),a.current?.()});return()=>cancelAnimationFrame(n)},[e]),be(z9,{title:i("This page"),open:t,onToggle:r,id:uR,children:be(OX,{})})}function OX(){let{fields:e,values:o,readOnly:t,onChange:r}=U9(),a=Object.fromEntries(Pi.filter(n=>n in e).map(n=>[n,e[n]]));return Object.keys(a).length===0?be(j9,{variant:"none",icon:!1,message:i("This page has no look of its own to set.")}):be(G9,{fields:a,values:o,onChange:r,readOnly:t,tabs:!1,idPrefix:"this-page",ariaLabel:i("This page")})}function _X({activeId:e,onSelect:o}){return be("div",{className:"es-insp-tabs",children:be(Y9,{variant:"underline",block:!0,labelsFit:!0,"aria-label":i("Styles"),idPrefix:Vb,value:e,onChange:o,items:Ds.map(t=>{let r=i(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as WX}from"efficient-easel/chrome";import{Button as kR,Dialog as UX,FormField as GX,Input as vR,PopupMenu as zX,PopupMenuItem as TR,toast as PR}from"efficient-shell/ui";import{LayersTree as $X,TreeGroupLabel as KX,TreeRow as ER,TreeRowAction as jp}from"efficient-easel/tree";import{AddIcon as jX,DuplicateIcon as VX,PageIcon as YX,SettingsIcon as qX}from"efficient-easel/icons";import{PagesIcon as XX}from"efficient-easel/rail";import{useEaselHost as ZX}from"efficient-easel/screen/lib/host";import{useEaselSession as RR}from"efficient-easel/screen/lib/session-context";import{useCallback as zp,useEffect as AX,useSyncExternalStore as RX}from"react";import{useScreenDocument as yR}from"efficient-easel/screen/components/ScreenDocumentContext";var gR=new WeakMap;function Ei(e){let o=gR.get(e);return o||(o={rows:null,loading:null,listeners:new Set},gR.set(e,o)),o}function Xb(e,o){e.rows=o;for(let t of e.listeners)t()}var $p=new Set;function Kp(e,o){o?$p.add(e):$p.delete(e)}function IR(e){let o=Ei(e),t=e.listPages().then(r=>Xb(o,$p.size?r.filter(a=>!$p.has(a.id)):r),()=>Xb(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var bR=()=>null,LX=()=>()=>{};function Oi(){let{adapter:e,ready:o}=yR(),t=zp(l=>{let{listeners:d}=Ei(e);return d.add(l),()=>d.delete(l)},[e]),r=zp(()=>Ei(e).rows,[e]),a=RX(o?t:LX,o?r:bR,bR);AX(()=>{if(!o)return;let l=Ei(e);l.rows===null&&!l.loading&&IR(e)},[e,o]);let n=zp(()=>o?IR(e):Promise.resolve(),[e,o]),s=zp(l=>Xb(Ei(e),l),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function FX(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function SR(){let{currentSlug:e}=yR(),{rows:o}=Oi();return FX(o,e)}import{canDuplicatePage as JX,DuplicatePageDialog as QX,uniqueSlug as OR}from"efficient-easel/page-copy";var _R="sf-editor-pages-collapsed-groups";function eZ(){let e=RR(),{siteId:o,templateId:t}=AR(),r=Ze(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function LR({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=RR().chrome?.pageRows,n=ZX(),{adapter:s,capabilities:l,ready:d,currentSlug:c}=AR(),f=Hs(),{rows:u,reload:p,setRows:h,getRows:g}=Oi(),[I,C]=xa(""),[S,k]=xa(!1),[y,b]=xa(null),[O,W]=xa(!1),[T,M]=xa(""),P=NX(),F=eZ(),[w,E]=xa(null),[A,L]=xa(()=>{if(typeof window>"u")return new Set;try{let D=window.localStorage.getItem(_R);return new Set(D?JSON.parse(D):[])}catch{return new Set}});DX(()=>{try{window.localStorage.setItem(_R,JSON.stringify([...A]))}catch{}},[A]);let U=D=>L(Ee=>{let Ce=new Set(Ee);return Ce.has(D)?Ce.delete(D):Ce.add(D),Ce}),$=CR(()=>hP(u??[]),[u]),q=I.trim().toLowerCase(),te=D=>!q||D.toLowerCase().includes(q),we=D=>q?!0:!A.has(D),ce=CR(()=>new Set((u??[]).map(D=>D.slug)),[u]),Ae=()=>{if(l.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}M(""),b(null),W(!0)},Ve=async()=>{let D=T.trim();if(!(!D||!d||S||!s.createPage)){k(!0),b(null);try{let Ee=await s.createPage({slug:OR(D,ce),title:D,layout:{}});await p(),W(!1),M(""),e(Ee.slug)}catch{b(i("Couldn\u2019t add the page \u2014 please retry."))}finally{k(!1)}}},ye=l.hasSiteSettings&&!!s.createPage,Re=async()=>{if(!(!d||S||!s.createPage)){k(!0),b(null);try{let D=await s.createPage(uO(i("New popup"),ce));await p(),e(D.slug)}catch{b(i("Couldn\u2019t add the popup \u2014 please retry."))}finally{k(!1)}}},Be=MX(null),[Me,po]=xa(null),zo=()=>{if(!ye)return Ae();if(Me)return po(null);let D=Be.current?.getBoundingClientRect();D&&po({top:D.bottom+6,right:Math.max(8,window.innerWidth-D.right)})},xe=D=>{let Ee=u??[],Ce=s.deletePage;if(!d||S||!Ce||Ee.length<=1)return;let so=Ee.findIndex(lo=>lo.id===D.id),ze=Ee.filter(lo=>lo.id!==D.id),Tt=D.slug===c;Kp(D.id,!0),h(ze),b(null),Tt&&ze[0]&&e(ze[0].slug);let Yt=()=>{Kp(D.id,!1);let lo=g()??[];if(lo.some(qt=>qt.id===D.id))return;let Pt=[...lo];Pt.splice(Math.max(0,Math.min(so,Pt.length)),0,D),h(Pt)};PR.undoable(i("Deleted \u201C{name}\u201D",{name:D.label}),{actionLabel:i("Undo"),commit:async lo=>{await Ce(D.id,lo),Kp(D.id,!1)},undo:()=>{Yt(),Tt&&e(D.slug)},onFail:()=>{Yt(),PR.error(i("Couldn\u2019t delete the page \u2014 please retry."))}})},Ye=D=>n.send("storefront-editor:open-page",{slug:D}),Pe=D=>{if(!te(D.label))return null;let Ee=!t&&D.slug===c,Ce=l.canDeletePagesInline&&(u??[]).length>1,so=Ga(D),ze=mP(D),Tt=[...so?[{label:i("Dynamic"),tone:"info"}]:[],...ze?[{label:i("Lightbox"),tone:"success"}]:[],...D.draft?[{label:i("draft"),tone:"draft"}]:[]],Yt=Tt.length>0?Tt:void 0,lo=!!F&&JX(D),Pt=lo||l.pageCreationInAdminForm||Ce?_i(wR,{children:[lo&&ke(jp,{kind:"plain",label:i("Duplicate \u201C{name}\u201D",{name:D.label}),disabled:S,onClick:()=>E(D),children:ke(VX,{size:13})}),l.pageCreationInAdminForm&&ke(jp,{kind:"plain",label:i("Page settings for \u201C{name}\u201D",{name:D.label}),onClick:()=>Ye(D.slug),children:ke(qX,{size:13})}),Ce&&ke(jp,{kind:"delete",label:i("Delete \u201C{name}\u201D",{name:D.label}),disabled:S,onClick:()=>xe(D),children:ke(Zb,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ke(ER,{icon:ke(YX,{size:14}),name:D.label,selected:Ee,onSelect:()=>e(D.slug),badge:Yt,actions:Pt,rowProps:{"data-page-slug":D.slug}},D.id)},_e=(D,Ee,Ce)=>{let so=Ce.filter(Boolean);if(so.length===0)return null;let ze=we(D);return _i(BX,{children:[ke(KX,{count:so.length,countLabel:Mo("{n} page","{n} pages",so.length),expanded:ze,onToggle:()=>U(D),children:Ee}),ze&&so]},D)},ro=(a?.rows??[]).filter(D=>te(D.label)).map(D=>{let Ee=t===D.key;return ke(ER,{icon:D.icon,name:D.label,selected:Ee,onSelect:()=>r(D.key),badge:{label:i("Preview"),tone:"warning"},actions:ke(jp,{kind:"plain",label:i("Open the {name} in a new tab",{name:D.label}),onClick:()=>window.open(D.href,"_blank","noopener,noreferrer"),children:ke(Zb,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":D.key}},D.key)}),Vt=l.hasSiteSettings&&!!a,ot=(()=>{if(u===null)return null;let D=[],Ee=!1;for(let Ce of $){Vt&&!Ee&&Ce.key.startsWith("system:")&&(D.push(_e("shop",a.title,ro)),Ee=!0);let so=Ce.key===Vx||Ce.label===jx?i(Ce.label):Ce.label;D.push(_e(Ce.key,so,Ce.rows.map(Pe)))}return Vt&&!Ee&&D.push(_e("shop",a.title,ro)),D})();return _i("div",{className:"sf-pages",children:[ke(HX,{icon:ke(XX,{}),title:i("Pages"),context:f,actions:ke(WX,{buttonRef:Be,label:ye?i("Add"):i("New page"),hasPopup:ye?"menu":void 0,expanded:ye?Me!==null:void 0,onClick:zo,children:ke(jX,{size:15})})}),Me&&ke(zX,{portal:!0,style:{top:Me.top,right:Me.right},onClose:()=>po(null),children:_i("div",{role:"menu","aria-label":i("Add"),children:[ke(TR,{role:"menuitem",onClick:()=>{po(null),Ae()},children:i("Page")}),ke(TR,{role:"menuitem",disabled:S,onClick:()=>{po(null),Re()},children:i("Popup")})]})}),ke("div",{className:"sf-pages-find",children:ke(vR,{type:"search",leftIcon:ke(Zb,{name:"search",size:14,rounded:!0}),placeholder:i("Search all pages\u2026"),value:I,onChange:D=>C(D.target.value),"aria-label":i("Search all pages")})}),y&&!O&&ke("div",{className:"sf-note sf-note--error",role:"alert",children:y}),ot===null?ke("div",{className:"sf-note",children:i("Loading\u2026")}):ot.some(Boolean)?ke($X,{ariaLabel:i("Pages"),className:"sf-scroll",children:ot}):ke("div",{className:"sf-note",children:I.trim()?i("No pages match your search"):i("No pages yet. Add one with + above.")}),F&&w&&ke(QX,{source:{title:w.label,slug:w.slug},taken:ce,host:fc(),duplicate:D=>F(w,D),onClose:()=>E(null),onDuplicated:D=>{E(null),p(),e(D.slug)}},w.id),ke(UX,{open:O,onClose:()=>W(!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:_i(wR,{children:[ke(kR,{variant:"secondary",onClick:()=>W(!1),children:i("Cancel")}),ke(kR,{onClick:()=>{Ve()},disabled:S||!T.trim(),loading:S,children:i("Add page")})]}),children:ke(GX,{label:i("Page name"),htmlFor:P,hint:T.trim()?i("URL: /{slug}",{slug:OR(T,ce)}):void 0,error:y??void 0,children:ke(vR,{id:P,value:T,invalid:!!y,onChange:D=>M(D.target.value),onKeyDown:D=>{D.key==="Enter"&&Ve()},placeholder:i("e.g. About")})})})]})}import{jsx as DR}from"react/jsx-runtime";import{createContext as tZ,useCallback as rZ,useContext as aZ,useMemo as nZ,useState as sZ}from"react";import{CanvasChromeContext as lZ}from"efficient-easel/easel";import{useSelectHandler as iZ}from"efficient-easel/draw/client";import{parseHexColor as oZ}from"efficient-shell/format";var Vp=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],Ws=Vp[0];var pn="right";function Yp(e){return Vp.includes(e??"")?e:Ws}function FR(e){return e==="left"?"left":pn}function BR(e){return e&&oZ(e)===e.toLowerCase()?e.toLowerCase():""}var NR="chat",qp={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:pn,launcherLabel:"",showOnPhones:!0};function xLe(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:BR(e.launcherColor),launcherIcon:e.launcherIcon?Yp(e.launcherIcon):"",launcherPosition:FR(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var MR=tZ({chat:qp,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function gLe({children:e,chat:o=qp,onChatChange:t}){let[r,a]=sZ(!1),n=rZ(c=>t?.(c),[t]),{select:s,setSelectHandler:l}=iZ(),d=nZ(()=>({selected:()=>r?NR:null,select:c=>c===NR&&s()}),[r,s]);return DR(MR.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:l},children:DR(lZ.Provider,{value:d,children:e})})}var Xp=()=>aZ(MR);import{jsx as Jb}from"react/jsx-runtime";import{DesktopIcon as dZ,PhoneIcon as cZ,TabletIcon as fZ}from"efficient-easel/icons";import{VIEW_TIERS as pZ,VIEW_TIER_LABEL as uZ}from"efficient-easel/draw";var mZ={desktop:Jb(dZ,{}),tablet:Jb(fZ,{}),mobile:Jb(cZ,{})},HR=pZ.map(e=>({id:e,get label(){return i(uZ[e])},icon:mZ[e]}));import{PreviewDeviceContext as xue}from"efficient-easel/draw/client";import{jsx as hZ}from"react/jsx-runtime";import{createContext as xZ,useCallback as WR,useContext as gZ,useMemo as IZ,useRef as bZ}from"react";var yZ=Object.fromEntries(pc.map(e=>[e,{value:"",error:null}])),UR=xZ({links:Mk,rows:yZ,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function PLe({children:e,value:o}){let t=bZ(()=>{}),r=WR(()=>t.current(),[]),a=WR(s=>{t.current=s},[]),n=IZ(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return hZ(UR.Provider,{value:n,children:e})}var Ai=()=>gZ(UR);import{jsx as SZ}from"react/jsx-runtime";import{createContext as wZ,useContext as CZ,useMemo as kZ,useState as vZ}from"react";var GR=wZ(null);function ALe({children:e}){let[o,t]=vZ(null),r=kZ(()=>({surface:o,setSurface:t}),[o]);return SZ(GR.Provider,{value:r,children:e})}function zR(){return CZ(GR)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as TZ}from"efficient-easel/draw/client";var Ri="Scrolling Bar",{Provider:FLe,useSelection:$R}=TZ("selectedHeroId"),BLe="data-sf-hero-ticker";function DLe(e){return`${e}::ticker`}function NLe(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}var KR=["","","","","",""],jR="#ticker",Li="strip",Qb={sectionAccent:Jt,line:!1};function PZ(e){return(Array.isArray(e.tickerItems)?e.tickerItems:[]).map(o=>typeof o?.text=="string"?o.text:"").filter(o=>o.trim()!=="")}function ey(e){return PZ(e).length>0}function WLe(e){return e.showTicker!==!1&&ey(e)}import{createPreviewSelectionContext as EZ}from"efficient-easel/draw/client";var{Provider:zLe,useSelection:Zp}=EZ("selectedHeroPart");var YR=["one","side","stacked"];var KLe={one:"One",side:"Side by side",stacked:"Stacked"};function Jp(e){return YR.includes(e)?e:"one"}function VR(e){return e==="one"?1:2}function oy(e,o){if(YR.includes(e))return e;let t=Jp(o);return t==="side"?"stacked":t}function Fi(e){let o=Jp(e.mediaLayout);return Math.max(VR(o),VR(oy(e.mediaLayoutPhone,o)))}var un=["media","image","image2"],mn={media:"Media",image:"Image",image2:"Image 2"},Bi={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Qp(e,o){return e==="image"&&Fi(o)>1?"Image 1":mn[e]}var qLe="Video file",XLe="Upload a video file";function OZ(e,o){return{field:"mediaType",is:e,default:o}}var _Z=new Set(["HeroSingle"]),qR="heroPart";function AZ(e,o){return{...o,[qR]:e}}function ZLe(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]=Xe(n[l],OZ(s,r));for(let[s,l]of Object.entries(a??{}))l&&(n[s]=Xe(n[s],l));for(let s of un)for(let l of o[s]??[])n[l]=AZ(s,n[l]);return n}function RZ(e){let o=e?.[qR];return un.includes(o)?o:null}function XR(e,o){let t={};for(let[r,a]of Object.entries(e))RZ(a)===o&&(t[r]=a);return t}function ZR(e){if(!_Z.has(e.type))return[];let o=[{part:"media",label:mn.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Qp("image",e.props),depth:1}),Fi(e.props)>1&&o.push({part:"image2",label:Qp("image2",e.props),depth:1})),o}function Di(e,o){return`${e}::${o}`}function JR(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return un.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var QR="data-sf-hero-part";import{jsx as ve,jsxs as ka,Fragment as fH}from"react/jsx-runtime";import{useEasel as zie,useRootFields as $ie}from"efficient-easel/easel";import{Button as Kie,EmptyState as jie}from"efficient-shell/ui";function eL({kind:e,pageName:o}){return{name:o?.trim()||i("This page"),kindLabel:Ga({kind:e})?i("Template"):i("Page")}}import{headWords as hH,InspectorHead as Vie,InspectorIconButton as pH}from"efficient-easel/chrome";import{DuplicateIcon as Yie,TrashIcon as qie}from"efficient-easel/icons";import{panelFieldsOf as Xie}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 BZ,BlockBoxIcon as DZ,BlockButtonIcon as NZ,BlockDividerIcon as tL,BlockFooterIcon as rL,BlockHeadingIcon as MZ,BlockProductIcon as HZ,BlockSocialIcon as WZ,BlockTextIcon as UZ,CardPaymentIcon as GZ,ChatIcon as zZ,AccountIcon as $Z,GlobeIcon as KZ,GridIcon as jZ,ImageIcon as ry,MapIcon as VZ,MediaIcon as YZ,PageIcon as qZ}from"efficient-easel/icons";import{jsx as ty,Fragment as LZ,jsxs as FZ}from"react/jsx-runtime";var oL=FZ(LZ,{children:[ty("circle",{cx:"9",cy:"20",r:"1.3"}),ty("circle",{cx:"18",cy:"20",r:"1.3"}),ty("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 XZ={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:oL,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"})},ZZ=B("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),JZ={footer:rL,Footer:rL,Divider:tL,FooterDivider:tL,Banner:BZ,Flex:DZ,FooterSocial:WZ,FooterPayment:GZ,page:qZ,website:KZ,AccountBlock:$Z,chat:zZ,Heading:MZ,Text:UZ,ImageBlock:ry,ButtonBlock:NZ,LocationMap:VZ,Grid:jZ,ProductRef:HZ,heroMedia:YZ,heroImage:ry,heroImage2:ry},QZ={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function hn({type:e,size:o=16,className:t}){let r=QZ[e]??e,a=JZ[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:XZ[r]??ZZ})}import{PanelHideButton as uH}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Zie}from"efficient-easel/screen/lib/session-context";import{jsx as Te,jsxs as Ni,Fragment as eJ}from"react/jsx-runtime";import{useEffect as oJ,useId as aL,useState as tJ}from"react";import{IconPicker as rJ}from"efficient-shell/ui";import{SettingsDefaultReset as aJ,SettingsField as Mi,SettingsSegmented as nJ,SettingsSwitch as nL}from"efficient-easel/panel";import{ButtonIcon as sJ,ButtonIconIcon as lJ,EyeIcon as iJ,PhoneIcon as dJ,PlacementIcon as cJ,TypeIcon as fJ}from"efficient-easel/icons";var pJ="Chat with us",uJ="We usually reply within a few minutes",mJ="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function eu({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,l]=tJ(o);oJ(()=>l(o),[o]);let d=()=>{s!==o&&r(s)};return Te(Mi,{label:e,icon:Te(fJ,{}),changed:o!=="",action:Te(Hi,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Te("textarea",{value:s,placeholder:t,rows:3,onChange:c=>l(c.target.value),onBlur:d,"aria-label":e}):Te("input",{type:"text",value:s,placeholder:t,onChange:c=>l(c.target.value),onBlur:d,onKeyDown:c=>{c.key==="Enter"&&c.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function Hi({label:e,changed:o,onReset:t}){return Te(aJ,{words:se()?.panel,label:e,changed:o,onReset:t})}function hJ({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=aL();return Te(Mi,{label:e,labelId:s,icon:o,changed:t!==r,action:Ni("span",{className:"inline-flex items-center gap-2",children:[Te(nL,{checked:t,onChange:a,ariaLabelledBy:s}),Te(Hi,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var xJ=Vp.map(e=>({value:e,icon:Jc(e)}));function gJ(){let{theme:e}=ge(),o=uo(e).themes[0];return yl(o)??o?.accent??""}function sL(){let{chat:e,setChat:o}=Xp(),t=aL(),r=gJ(),a=e.launcherIcon?Yp(e.launcherIcon):Ws;return Ni(eJ,{children:[Te(Mi,{label:i("Show the chat bubble"),labelId:t,icon:Te(iJ,{}),changed:!e.enabled,action:Ni("span",{className:"inline-flex items-center gap-2",children:[Te(nL,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Te(Hi,{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.")}),Ni(BI,{title:i("Look"),children:[Te(Yo,{label:i("Button color"),icon:Te(sJ,{}),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:""})}),Te(Mi,{label:i("Icon"),icon:Te(lJ,{}),value:Te(II,{value:a}),changed:a!==Ws,action:Te(Hi,{label:i("Icon"),changed:a!==Ws,onReset:()=>o({launcherIcon:""})}),children:Te(rJ,{label:i("Icon"),value:a,options:xJ,onChange:n=>o({launcherIcon:n===Ws?"":n})})}),Te(Mi,{label:i("Position"),icon:Te(cJ,{}),changed:e.launcherPosition!==pn,action:Te(Hi,{label:i("Position"),changed:e.launcherPosition!==pn,onReset:()=>o({launcherPosition:pn})}),children:Te(nJ,{options:[{label:i("Right"),id:"right"},{label:i("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:i("Position"),onChange:n=>o({launcherPosition:n})})}),Te(eu,{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")}),Te(hJ,{label:i("Show on phones"),icon:Te(dJ,{}),checked:e.showOnPhones,fallback:qp.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Ni(BI,{title:i("Wording"),children:[Te(eu,{label:i("Title"),value:e.title,placeholder:pJ,onCommit:n=>o({title:n})}),Te(eu,{label:i("Subtitle"),value:e.subtitle,placeholder:uJ,onCommit:n=>o({subtitle:n})}),Te(eu,{label:i("Greeting message"),value:e.greeting,placeholder:mJ,onCommit:n=>o({greeting:n}),multiline:!0}),Te("p",{className:"es-field-hint",children:i("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as xn,Fragment as vy,jsxs as fL}from"react/jsx-runtime";import{useEffect as VJ,useId as dL,useState as cL}from"react";import{SettingsField as YJ}from"efficient-easel/panel";import{jsx as MJ}from"react/jsx-runtime";import{forwardRef as IJ,createElement as ay}from"react";var lL={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 de=(e,o,t,r)=>{let a=IJ(({color:n="currentColor",size:s=24,stroke:l=2,title:d,className:c,children:f,...u},p)=>ay("svg",{ref:p,...lL[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,c].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:l,stroke:n},...u},[d&&ay("title",{key:"svg-title"},d),...r.map(([h,g])=>ay(h,g)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var bJ=[["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"}]],ny=de("outline","brand-facebook","BrandFacebook",bJ);var yJ=[["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"}]],sy=de("outline","brand-instagram","BrandInstagram",yJ);var SJ=[["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"}]],ly=de("outline","brand-line","BrandLine",SJ);var wJ=[["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"}]],iy=de("outline","brand-linkedin","BrandLinkedin",wJ);var CJ=[["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"}]],dy=de("outline","brand-pinterest","BrandPinterest",CJ);var kJ=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],cy=de("outline","brand-telegram","BrandTelegram",kJ);var vJ=[["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"}]],fy=de("outline","brand-tiktok","BrandTiktok",vJ);var TJ=[["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"}]],py=de("outline","brand-wechat","BrandWechat",TJ);var PJ=[["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"}]],uy=de("outline","brand-whatsapp","BrandWhatsapp",PJ);var EJ=[["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"}]],my=de("outline","brand-x","BrandX",EJ);var OJ=[["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"}]],hy=de("outline","brand-youtube","BrandYoutube",OJ);var _J=[["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"}]],xy=de("filled","brand-facebook-filled","BrandFacebookFilled",_J);var AJ=[["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"}]],gy=de("filled","brand-instagram-filled","BrandInstagramFilled",AJ);var RJ=[["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"}]],Iy=de("filled","brand-linkedin-filled","BrandLinkedinFilled",RJ);var LJ=[["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"}]],by=de("filled","brand-pinterest-filled","BrandPinterestFilled",LJ);var FJ=[["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"}]],yy=de("filled","brand-tiktok-filled","BrandTiktokFilled",FJ);var BJ=[["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"}]],Sy=de("filled","brand-whatsapp-filled","BrandWhatsappFilled",BJ);var DJ=[["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"}]],wy=de("filled","brand-x-filled","BrandXFilled",DJ);var NJ=[["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"}]],Cy=de("filled","brand-youtube-filled","BrandYoutubeFilled",NJ);var FFe="outline",ou={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},HJ={},ky={fillRule:"evenodd"},WJ=[["path",{...ou,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...ky,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],UJ=[["path",{...ou,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",{...HJ,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("")}]],GJ=[["path",{...ou,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",{...ou,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",{...ky,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",{...ky,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("")}]],zJ=de("filled","brand-telegram-filled","BrandTelegramFilled",WJ),$J=de("filled","brand-line-filled","BrandLineFilled",UJ),KJ=de("filled","brand-wechat-filled","BrandWechatFilled",GJ),jJ={instagram:{outline:sy,solid:gy},facebook:{outline:ny,solid:xy},tiktok:{outline:fy,solid:yy},youtube:{outline:hy,solid:Cy},x:{outline:my,solid:wy},linkedin:{outline:iy,solid:Iy},pinterest:{outline:dy,solid:by},whatsapp:{outline:uy,solid:Sy},telegram:{outline:cy,solid:zJ},line:{outline:ly,solid:$J},wechat:{outline:py,solid:KJ}};function iL({platform:e,iconStyle:o,size:t}){let r=jJ[e][o];return MJ(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var qJ={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 XJ({platform:e}){let{rows:o,saveLink:t}=Ai(),{value:r,error:a}=o[e],[n,s]=cL(r),[l,d]=cL(!1),c=dL(),f=dL();VJ(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}d(!0),await t(e,n),d(!1)},p=Nk[e];return fL(vy,{children:[xn(YJ,{label:i(p),htmlFor:c,icon:xn(iL,{platform:e,iconStyle:"outline",size:18}),children:xn("input",{id:c,type:"text",inputMode:"url",value:n,placeholder:qJ[e],onChange:h=>s(h.target.value),onBlur:()=>{u()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":l||void 0,autoComplete:"off",spellCheck:!1})}),a&&xn("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function pL({unavailable:e}){let{canSave:o}=Ai();return!o&&e?xn(vy,{children:e}):fL(vy,{children:[xn("p",{className:"es-field-hint",children:i("Paste a link to each profile. A platform left empty shows nothing on the site.")}),pc.map(t=>xn(XJ,{platform:t},t))]})}import{jsx as wn,Fragment as ete,jsxs as ote}from"react/jsx-runtime";import{useId as tte,useMemo as rte}from"react";import{useEasel as ate}from"efficient-easel/easel";import{SettingsField as nte,SettingsSwitch as ste}from"efficient-easel/panel";import{EyeIcon as lte}from"efficient-easel/icons";import{fieldShownInView as ite}from"efficient-easel/fields";import{usePreviewDevice as dte}from"efficient-easel/draw/client";import{jsx as In,Fragment as XQ,jsxs as ZQ}from"react/jsx-runtime";import{createContext as JQ,useContext as QQ,useLayoutEffect as WL,useMemo as du,useRef as UL,useState as Ly}from"react";import{useEasel as GL,useSelectedFields as eee}from"efficient-easel/easel";import{fieldShownInView as oee,Inspector as tee,planFields as Fy}from"efficient-easel/fields";function uL({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 NQ}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as MQ,deviceMetaOf as OL}from"efficient-easel/screen/lib/document/device-fields";import{jsx as yo}from"react/jsx-runtime";import{DirectionDownIcon as rQ,DirectionIcon as aQ,DirectionLeftIcon as nQ,DirectionRightIcon as sQ,DirectionUpIcon as lQ,EntranceBounceIcon as iQ,EntranceFadeIcon as dQ,EntranceFlipIcon as cQ,EntranceGlideIcon as fQ,EntranceRevealIcon as pQ,EntranceRiseIcon as uQ,EntranceScaleIcon as mQ,EntranceSpinIcon as hQ,NoSymbolIcon as xQ}from"efficient-easel/icons";import{NoControlMark as gQ,noControlField as IQ}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as bQ,group as yQ}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as SQ,ENTRANCE_FROM_DEFAULT as wL,ENTRANCE_KINDS as CL,ENTRANCE_KINDS_WITH_FROM as wQ,entranceAttrs as CQ,playEntrance as kQ,readEntrance as vQ}from"efficient-shell/format";import{jsx as Ey}from"react/jsx-runtime";import{ClockIcon as eQ,DurationIcon as oQ}from"efficient-easel/icons";import{MOTION_TIMING as bL}from"efficient-shell/format";import{useSelectedHost as tQ}from"efficient-easel/easel";import{MOTION_EASING as ZJ,MOTION_TIMING as mL,motionSeconds as hL}from"efficient-shell/format";var Ty="none",tu=[{label:"None",value:"none"},{label:"Marquee",value:"scroll"}];function VFe(e){return io(tu,Ty,e)}var ru="_gLoop",Wi={field:"loop",is:"scroll"},Ui="left",Py=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],JJ={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function xL(e){return io(Py,Ui,e)}function YFe(e){return e==="up"||e==="down"}function gL(e){return hL("loop","duration",e.loopDuration!=null?e.loopDuration:e.speed)}var qFe=mL.loop.duration.default,QJ=mL.loop.delay.default;function IL(e){return hL("loop","delay",e.loopDelay)}function XFe(e,o,t=QJ){return`${JJ[e]} ${o}s ${ZJ.loop}${t?` ${t}s`:""} infinite`}function Us(e){let{min:o,max:t,step:r,default:a}=bL[e].duration;return Eo("Duration",Ey(oQ,{}),o,t,r,a,"s")}function Gs(e){let{min:o,max:t,step:r,default:a}=bL[e].delay;return Eo("Delay",Ey(eQ,{}),o,t,r,a,"s")}function zs(e,o){let t=e.render,r=a=>{let n=tQ();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>Ey(r,{...a})}}function au({readsSpeed:e}){return zs(Us("loop"),(o,t)=>gL({loopDuration:o,speed:e?t?.speed:void 0}))}function nu(){return zs(Gs("loop"),e=>IL({loopDelay:e}))}var yL="_gEntrance";var TQ={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},PQ={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},EQ={top:()=>yo(rQ,{}),bottom:()=>yo(lQ,{}),left:()=>yo(sQ,{}),right:()=>yo(nQ,{})},kL="Entrance",_y=CL.filter(e=>e!=="none"),vL=e=>({any:[{field:tt.kind,in:e},{all:[{field:tt.kind,set:!1},{field:wl,in:e}]}]}),SL=(e,o)=>Rl(Ko.slice(0,Ko.indexOf(e)+1).reverse().map(t=>Ie(tt.kind,t)),t=>({field:t,set:!0}),t=>t===tt.kind?vL(o):{field:t,in:o}),OQ={any:[vL(_y),...Ko.slice(1).map(e=>({field:Ie(tt.kind,e),in:_y}))]},_Q=Ko.flatMap(e=>[[[Ie(tt.from,e)],SL(e,wQ)],[[Ie(tt.duration,e),Ie(tt.delay,e)],SL(e,_y)]]),AQ={none:()=>yo(xQ,{}),fade:()=>yo(dQ,{}),rise:()=>yo(uQ,{}),scale:()=>yo(mQ,{}),glide:()=>yo(fQ,{}),bounce:()=>yo(iQ,{}),flip:()=>yo(cQ,{}),reveal:()=>yo(pQ,{}),spin:()=>yo(hQ,{})},TL="data-entrance-tile";function RQ({kind:e}){let{attrs:o}=CQ(vQ(e,wL));return yo("span",{className:"sf-entrance-stage",[TL]:e,children:yo("i",{...o,children:AQ[e]()})})}var LQ=(e,o)=>{let t=e.querySelector(`[${TL}="${o}"] > i`);t&&kQ(t)},FQ="Effect",BQ=()=>gf(tt.kind,{label:kL,tileWord:FQ,values:CL,fallback:"none",word:e=>TQ[e],picture:e=>yo(RQ,{kind:e}),read:(e,o)=>Th(e,o).kind,preview:LQ}),Oy=(e,o)=>xf(tt[e],o,(t,r)=>Th(t,r)[e]),DQ=SQ.map(e=>({label:PQ[e],value:e,picture:EQ[e]()}));function Gt(){let e={[yL]:yQ(kL,{dot:OQ}),...BQ(),[wl]:IQ({type:"custom",render:()=>yo(gQ,{})},"always"),_cEntrance:bQ(),...Oy("from",ws("From",yo(aQ,{}),DQ,wL)),...Oy("duration",Us("entrance")),...Oy("delay",Gs("entrance"))};return Ha(e,_Q)}import{DESIGN_GROUPS as Ay,SETTINGS_BUCKETS as HQ}from"efficient-easel/panel";import{BUCKET_KEY as xt,DESIGN_GROUP_KEY as su}from"efficient-easel/screen/lib/document/field-buckets";var Gi=HQ;var WQ="Editor only \u2014 not shown live",Ry={"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",[WQ]:"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"},_L={"AlloyWheelsListing._gCards":"Design"},AL={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function PL(e,o,t){let r=`${e}.${o}`;return G(AL,r)??G(_L,r)??G(Ry,t)}function UQ(e){return e==="Animation"?[xt.Animation]:[xt.Design,su[e]]}function lu(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=OL(r),n=ha(a?a.inner:r),s=n?G(Ry,n.label):void 0;if(s)for(let l of UQ(s))o.includes(l)||o.push(l)}return o}var EBe=[...lu(qf({tablet:!0,siteSide:!0}),sp("full"),lp(),dp(),MI()),...Object.keys(qf({tablet:!0,siteSide:!0})),...Object.keys(sp("full")),...Object.keys(lp()),...Object.keys(dp()),...Object.keys(MI())],OBe=[...lu(rp()),...Object.keys(rp())],_Be=[...lu(np()),...Object.keys(np())],ABe=[...lu(Gt()),...Object.keys(Gt())],RBe=Object.keys(f_()),LBe=Object.keys(p_()),GQ={"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)"},RL={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},LL={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...qf({tablet:!0,siteSide:!0}),...sp("full"),...lp(),...dp(),...rp(),...np(),...Gt()};for(let o of Object.keys(LL)){let t=ha(e[o]),r=t?G(Ry,t.label):void 0;if(!t||t.level!==2||!r||!RL[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 zQ=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),$Q=new Map([[xt.Design,"Content"],[xt.Animation,"Animation"],...Ay.map(e=>[su[e],e])]);function KQ(e){let o=`${e}.`;return Object.keys(GQ).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function jQ(e,o){let t=OL(e),r=NQ(o);return t?MQ(t.tier,r):r}function VQ(e,o){let t=ha(o);return t?e==="Content"||e==="Animation"?q0(o,t.label):X0(o):o}function EL(e){return e==="Design"?Ay:["Animation"]}function FL(e,o){let t=[],r=new Set(KQ(o)),a=new Set,n=!1,s=null;for(let[p,h]of Object.entries(e)){let g=ha(h);if(zQ.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 I=$Q.get(p);if(I!==void 0){if(g?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${I} heading of the settings panel, but this field is ${g?`a level-${g.level} "${g.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===xt.Design||p===xt.Animation)&&(n=!0),t.push(s={place:I,entries:[],adopted:!0});continue}if(!g){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,h]);continue}if(r.has(p)||He(LL,p)){let S=PL(o,p,g.label);if(g.level!==2||!S||!RL[S].includes(g.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-${g.level} "${g.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 C=PL(o,p,g.label);if(!C)throw new Error(`${o}.${p}: the inspector group "${g.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...Ay,"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:C,entries:[[p,g.level===2?h:jQ(h,g.label)]]})}let l=new Set(Object.entries(e).filter(([,p])=>ha(p)).map(([p])=>p));for(let[p,h]of[["BLOCK_KEY_GROUP",AL],["KEY_GROUP",_L]]){let g=Object.keys(h).filter(I=>I.startsWith(`${o}.`)).filter(I=>!l.has(I.slice(o.length+1)));if(g.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(g)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let d=n?[]:[...r].filter(p=>!a.has(p));if(d.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(d)}, but this section has no such fold header${d.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let c=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),f=Gi.filter(p=>EL(p).some(h=>c.has(h))),u={};for(let p of f){u[xt[p]]=tp(p,p===f[0]?f:null);for(let h of EL(p)){if(!c.has(h))continue;let g=t.filter(C=>C.place===h),I=g.findIndex(C=>C.adopted);I>0&&g.unshift(...g.splice(I,1)),p==="Design"&&(u[su[h]]=FI(h));for(let C of g)for(let[S,k]of C.entries)u[S]=VQ(h,k)}}return u}function FBe(e){return xt.Design in e?e:{[xt.Design]:tp("Design",null),[su.Content]:FI("Content"),...e}}function BBe(e){return Gi.some(o=>xt[o]in e)}function DBe(e){let o=Gi.filter(r=>xt[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[xt[r]]=tp(r,r===o[0]?o:null);return t}import{jsx as YQ}from"react/jsx-runtime";import{EmptyState as qQ}from"efficient-shell/ui";function gn(){return YQ(qQ,{variant:"none",icon:!1,message:i("These settings apply to every view.")})}import{usePreviewDevice as ree}from"efficient-easel/draw/client";import{deviceField as aee}from"efficient-easel/screen/lib/document/device-fields";var iu=" text",BL="Text";function zi(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function DL(e){return e.filter(zi).map(o=>o.key)}function NL(e,o){let t=e.filter(a=>!zi(a));if(t.length!==1)return null;let r=e.filter(zi).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 ML(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 HL(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var By=new Map,cu=new Set;function zL(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),d=!!l&&[...l.children].some(f=>!f.hidden),c=l?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:d,labelled:d&&!!c}})});return r}var nee=Object.fromEntries(Gi.map(e=>{let o=Y0[e];return[e,In(o,{},e)]})),$L=JQ(null),see={_partBody:aee("each",{type:"custom",render:()=>In(lee,{})})};function lee(){return In(XQ,{children:QQ($L)})}function zt({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:l,fields:d,values:c,readOnly:f,onChange:u}=eee(),p=du(()=>a?{...c,...a.values}:c,[c,a?.values]),h=(xe,Ye)=>a?.keys.has(xe)?a.onChange(xe,Ye):u(xe,Ye),g=ree(),{appState:I,config:C}=GL(xe=>xe),S=bP(g,C,I.data.content??[],I.ui.itemSelector),k=n===void 0?XR(d,t):see,y=du(()=>{let xe=r?.length?Object.fromEntries(Object.entries(k).filter(([Ye])=>!r.includes(Ye))):k;return a?{...xe,...a.fields}:xe},[k,r,a?.fields]),b=qx(y,p,S),[O,W]=Ly(()=>new Set(cu)),[T,M]=Ly(()=>new Set),P=UL(null),{bandRows:F,designBands:w,looseRows:E}=du(()=>{let xe=new Map,Ye=new Set,Pe=[];for(let _e of Fy(b).rows){if(!_e.fold){_e.bucket==="Design"&&Pe.push(_e.name);continue}let ro=xe.get(_e.fold.key)??[];ro.push(_e.name),xe.set(_e.fold.key,ro),_e.bucket==="Design"&&Ye.add(_e.fold.key)}return{bandRows:xe,designBands:Ye,looseRows:new Map([["",Pe]])}},[b]),A=oee({},g),L={key:iu,rows:Array.from({length:A?o:0},()=>({shown:!0,labelled:!0}))};WL(()=>{let xe=P.current?.parentElement;if(!xe)return;let Ye=zL(xe,F),Pe=new Set(DL(Ye)),_e=NL([L,...Ye.filter(ro=>w.has(ro.key))],zL(xe,E)[0].rows);_e&&Pe.add(_e),M(ro=>HL(ro,Pe)?ro:Pe)});let U=du(()=>ML(b,T),[b,T]),$=!zi(L)&&!T.has(iu)?{key:iu,title:BL}:void 0,q=GL(xe=>xe.selectedItem)!==null,te=a?.part??t??"",we=`${l}:${te}:${String(g)}`,[ce,Ae]=Ly(()=>({tab:By.get(we)})),Ve=`${l}:${te}`,ye=UL(null),Re={...S,node:p},Be=Fy(b,{values:p,context:Re}).buckets,Me=uL({allTabs:q,remembered:By.get(we),inherited:ye.current?.panel===Ve?ye.current.tab:ce.tab,buckets:Be,hasText:A&&o>0}),po=!A&&!Be.includes(Me)&&(Fy(qx(y,p,{...S,device:"desktop"}),{values:p,context:{...Re,device:"desktop"}}).buckets.includes(Me)||Me==="Design"&&o>0);WL(()=>{ye.current={panel:Ve,tab:Me}});let zo=Me==="Design";return In($L.Provider,{value:n??null,children:In(NI.Provider,{value:a?p:null,children:ZQ(tee,{fields:U,values:p,onChange:h,readOnly:f,allTabs:q,showWhenContext:Re,context:{itemWord:s},tab:Me,onTab:xe=>{By.set(we,xe),Ae({tab:xe})},tabIcons:nee,idPrefix:l,ariaLabel:i("Section settings"),lead:zo?e:null,leadFold:$,closedFolds:O,onFold:(xe,Ye)=>{Ye?cu.delete(xe):cu.add(xe),W(new Set(cu))},children:[In("span",{ref:P,hidden:!0}),po&&In(gn,{})]})})})}import{useMemo as joe}from"react";import{useEasel as Voe}from"efficient-easel/easel";import{useSectionOps as Yoe}from"efficient-easel/screen/lib/document/use-section-ops";import{jsx as gt}from"react/jsx-runtime";import{EntranceRevealIcon as mee,NoSymbolIcon as hee,PercentIcon as qL,ScrollFadeInIcon as xee,ScrollFadeOutIcon as gee,ScrollMoveDownIcon as Iee,ScrollMoveUpIcon as bee,ScrollParallaxIcon as yee,ScrollZoomInIcon as See,ScrollZoomOutIcon as wee,ZoomInIcon as Cee}from"efficient-easel/icons";import{customize as kee,group as vee}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as ZL,SCROLL_EFFECTS_WITH_ZOOM as Tee,SCROLL_END as Pee,SCROLL_START as Eee,SCROLL_ZOOM as Oee}from"efficient-shell/format";import{parseFocal as fee,formatFocal as pee,readScroll as uee}from"efficient-shell/format";import{phoneKey as iee,tabletKey as dee}from"efficient-easel/screen/lib/content/view-tiers";var cee=[{block:"HeroSlide",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage",focus:"imageFocal"},{block:"HeroSingle",upload:"mediaImage2",focus:"imageFocal2"},{block:"ImageBlock",upload:"src",focus:"focal"}],KL=e=>[e,dee(e),iee(e)],nDe=[...new Set(cee.flatMap(e=>KL(e.focus)))].sort();function jL(e,o){let[t,r,a]=KL(o).map(n=>typeof e[n]=="string"&&e[n]?e[n]:void 0);return{desktop:t,tablet:r,phone:a}}var Oo={effect:"scroll",zoom:"scrollZoom",start:"scrollStart",end:"scrollEnd"},VL="_gScroll",YL="_cScroll",fu=tc(Object.values(Oo));function $s(e,o){return uee(Sl(e,Oo.effect,o),Sl(e,Oo.zoom,o),Sl(e,Oo.start,o),Sl(e,Oo.end,o))}function pu(e){let o={desktop:$s(e,"desktop"),tablet:$s(e,"tablet"),phone:$s(e,"phone")};return Ko.every(t=>o[t].effect==="none")?null:o}function Dy(e){let o=ck(e.desktop,e.tablet,e.phone),t=r=>{let a=o[r];if(typeof a!="string")return;let{x:n,y:s}=fee(a);return pee(n,s)};return{desktop:t("desktop"),tablet:t("tablet"),phone:t("phone")}}function cDe(e,o){return Dy(jL(e,o))}var JL="Scroll",_ee={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"},Aee={none:()=>gt(hee,{}),"zoom-in":()=>gt(See,{}),"zoom-out":()=>gt(wee,{}),"fade-in":()=>gt(xee,{}),"fade-out":()=>gt(gee,{}),"move-up":()=>gt(bee,{}),"move-down":()=>gt(Iee,{}),reveal:()=>gt(mee,{}),parallax:()=>gt(yee,{})},Ree="Effect",QL=ZL.filter(e=>e!=="none"),XL=(e,o)=>Rl(Ko.slice(0,Ko.indexOf(e)+1).reverse().map(t=>Ie(Oo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),Lee={any:Ko.map(e=>({field:Ie(Oo.effect,e),in:QL}))},Fee=Ko.flatMap(e=>[[[Ie(Oo.zoom,e)],XL(e,Tee)],[[Ie(Oo.start,e),Ie(Oo.end,e)],XL(e,QL)]]),Bee=()=>gf(Oo.effect,{label:JL,tileWord:Ree,values:ZL,fallback:"none",word:e=>_ee[e],picture:e=>Aee[e](),read:(e,o)=>$s(e,o).effect}),Ny=(e,o,t,r,a)=>xf(e,Eo(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>$s(n,s)[o]);function bn(){let e={[VL]:vee(JL,{dot:Lee}),...Bee(),[YL]:kee(),...Ny(Oo.zoom,"zoom","Zoom",gt(Cee,{}),Oee),...Ny(Oo.start,"start","Start",gt(qL,{}),Eee),...Ny(Oo.end,"end","End",gt(qL,{}),Pee)};return Ha(e,Fee)}import{jsx as Uo}from"react/jsx-runtime";import{AccentIcon as Dee,ContrastIcon as Nee,EyeIcon as Mee,ExpandIcon as Hee,FinishIcon as Wee,ImagesIcon as Uee,NoSymbolIcon as o1,HoverLiftIcon as Gee,HoverNextImageIcon as zee,HoverRotateIcon as $ee,HoverZoomIcon as t1,OpacityIcon as Kee}from"efficient-easel/icons";import{customize as jee,describedAs as r1,group as Vee}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as a1}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as _o}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as Yee,noControlField as qee}from"efficient-easel/screen/lib/document/panel-no-control-mark";var uu=e=>_o("desktop",Vee("Hover",{dot:e})),n1=()=>_o("desktop",jee()),Xee="What this does when a shopper points at it, or taps it on a phone.",Zee="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",Jee="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.",Qee="What this picture does when a shopper points at the card. Show next image covers the picture with the card's photos, with arrows; a phone shows the picture as it is. Black and white shows it in grey until then.",eoe="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",ooe="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.",toe="Which of the product's pictures the card shows.",roe="Same finish shows the photos of the finish the card shows, else the first group.",aoe="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",noe={none:()=>Uo(o1,{}),nextImage:()=>Uo(zee,{}),rotate:()=>Uo($ee,{}),zoom:()=>Uo(t1,{}),lift:()=>Uo(Gee,{}),mono:()=>Uo(Nee,{})};function My(e,o){let t=a1({label:i("Hover effect"),options:e.map(r=>({value:r,label:i(Na[r]),picture:noe[r]()})),fallback:o});return r1(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:Na[r]}))})}function s1(){return{[Pr]:uu({field:qe,in:bc.filter(e=>e!=="none")}),[qe]:_o("desktop",{...My(bc,"none"),description:Xee})}}function l1(e){let o=Lv(e),t=wc(),r=g0(qh);return{[Pr]:uu({any:[o,t]}),[Se.kind]:_o("desktop",{...zs(My(yc,e),(a,n)=>Jh(n??{},e)),description:ooe}),...Hy(t),[Tl]:qee({type:"custom",render:()=>Uo(Yee,{})},"always"),_cHover:n1(),[Se.angle]:_o("desktop",Xe(zs(r,a=>Qh(a)),o)),[Se.duration]:_o("desktop",Xe(Us("hover"),o)),[Se.delay]:_o("desktop",Xe(Gs("hover"),o))}}function Hy(e){let o=ut("Type",Uo(Uee,{}),Sc.map(a=>({value:a,label:Ov[a]})),Da.kind),t=ws("Group",Uo(Wee,{}),Xh.map(a=>({value:a,label:_v[a]})),Da.group),r=ws("Covers",Uo(Hee,{}),Zh.map(a=>({value:a,label:Av[a]})),Da.cover);return{[Se.mediaKind]:_o("desktop",Xe({...o,description:toe},e)),[Se.mediaGroup]:_o("desktop",Xe({...t,description:roe},e)),[Se.cover]:_o("desktop",Xe({...r,description:aoe},e))}}function Wy(e,o="",t=vc.includes(o)){let r=ax(e),a=Nv(e);return{[Pr]:uu(r),[Se.kind]:Uy(Cc,e,Zee),...vc.includes(o)?Hy(wc()):{},_cHover:n1(),...t?i1():{},[Se.duration]:_o("desktop",Xe(Us("hover"),a)),[Se.delay]:_o("desktop",Xe(Gs("hover"),a))}}function i1(e=!1){let o=a=>e?a:Xe(a,Dv()),t=Eo("Zoom",Uo(t1,{}),Tr.min,Tr.max,Tr.step,Tr.min,Tr.unit),r=Eo("Darken on hover",Uo(Kee,{}),la.min,la.max,la.step,la.fallback,la.unit);return{[Pl.zoom]:_o("desktop",o(t)),[Pl.darken]:_o("desktop",o(r))}}function Uy(e,o,t){let r=_o("desktop",{...zs(My(e,o),a=>rx({[qe]:a},o,e)),description:t});return Object.assign(r,{[d1]:o})}var d1="sfPictureResting",e1=new WeakMap;function BDe(e,o,t){let r=e[Se.kind],a=r?.[d1];if(!r||!a)return e;let n=o.props?.[qe]==="nextImage",s=n?null:Wl(t.appState,o.props?.id);if(!n&&!Ev.includes(String(s?.type??"")))return e;let l=e1.get(e);return l||(l={...e,[Se.kind]:Uy(kc,a,Jee)},e1.set(e,l)),l}var soe="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.",loe={none:()=>Uo(o1,{}),[rr]:()=>Uo(Dee,{})},DDe=_o("desktop",{...r1(a1({label:i("Hover effect"),options:jh.map(e=>({value:e,label:i(Vh[e]),picture:loe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:jh.map(e=>({value:e,label:Vh[e]}))}),description:soe}),ioe=_o("desktop",{...ws("Show",Uo(Mee,{}),[{value:tx,label:"Always"},{value:ox,label:"On card hover"}],tx),description:eoe});function c1(){let e={any:[ax("none"),{field:qe,is:rr},{field:Ma,is:ox}]},{[Pr]:o,[Se.kind]:t,...r}=Wy("none","",!0);return{[Pr]:uu(e),[Se.kind]:t,[Ma]:ioe,...Hy(wc()),...r,...i1(!0)}}var NDe=Uy(kc,"none",Qee);import{jsx as $i}from"react/jsx-runtime";import{isNodeList as poe}from"efficient-easel/data";import{useEasel as uoe}from"efficient-easel/easel";import{hiddenInView as moe,hiddenKeyOf as zy,hidePatch as hoe,slotChildName as xoe,slotChildRowName as goe}from"efficient-easel/draw";var mu=null;function Gy(e){mu=e}function f1(){return!!(mu&&mu.state().lockHolder)}function yn(){return mu!==null}var doe=new Set(["BookingBox","SubmitBox"]);function coe(e){return typeof e=="string"&&doe.has(e)}var foe=jT(coe,f1);function hu(e,o){return foe(e)||Mg(o)}var xu=(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 Ioe}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as boe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var p1="notCardOfTemplate",u1={not:{context:p1,is:!0}},$y={any:[Xd,u1]},aNe={[p1]:(e,o)=>{let t=kx(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function gu(e){let o=e.props?.content;return poe(o)?o:[]}var bu=(e,o)=>moe(e.props??{},o),yoe=(e,o)=>e.props?.[zy(o)]!==void 0;function m1(e,o=()=>!1,t="desktop"){return gu(e).flatMap(r=>typeof r?.props?.id!="string"?[]:gu(r).length&&!bu(r,t)?m1(r,o,t):o(r)?[]:[r])}function Soe(e,o,t,r="desktop"){let a=m1(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:d})=>{let c=d;if(s.has(d)){let f=2;for(;n.has(`${d} ${f}`);)f+=1;c=`${d} ${f}`,n.add(c)}return s.add(d),{id:l.props.id,label:c,shown:!bu(l,r)}})}function Iu(e,o,t){let r=a=>t==="desktop"?bu(a,t):yoe(a,t);return gu(e).flatMap(a=>r(a)?o(a)?[]:[a,...Iu(a,o,t)]:Iu(a,o,t))}function woe(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===zy("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 Ky(e,o,t){let r=gu(e),a=!1,n=r.map(s=>{if(a)return s;let l=s;if(s?.props?.id===o){let d=woe(s.props,t(s.props));d!==s.props&&(l={...s,props:d})}else l=Ky(s,o,t);return a=l!==s,l});return a?{...e,props:{...e.props,content:n}}:e}function h1(e,o,t,r="desktop"){return Ky(e,o,a=>r==="desktop"&&bu({props:a},r)===!t?{}:hoe(a,r,!t))}function Coe(e,o,t){return t==="desktop"?h1(e,o,!0,t):Ky(e,o,()=>({[zy(t)]:void 0}))}function koe(e,o,t,r,a,n){return xoe(e).trim()?t(e):Dc({ownerType:o,owner:r,fields:a,slot:n},rt(e.props))?.label??t(e)}var voe="This page is read-only.";function Toe({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:l,view:d="desktop"}){let c=p=>goe(p,n,vr,void 0,xu),f=p=>hu(p.type,p),u=Soe(e,p=>koe(p,o,c,t,r,a),f,d);return u.length?$i(vs,{parts:u,changed:Iu(e,f,d).length>0,shown:p=>u.find(h=>h.id===p)?.shown??!0,disabledReason:l?voe:void 0,onPress:(p,h)=>s(g=>h1(g,p,h,d)),onReset:()=>s(p=>Iu(p,f,d).reduce((h,g)=>Coe(h,String(g.props.id),d),p))}):$i(boe,{})}function Poe(){try{let e=uoe(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=kx(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:wT(e.appState,r),slot:Cx(e.appState,t.props?.id)??void 0}}catch{return null}}function Eoe({readOnly:e,view:o}){let t=Poe(),r=ia();return t?$i(Toe,{...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}})}}):$i(vs,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function nNe(e){return Xe(Ioe(e,{type:"custom",render:({readOnly:o})=>$i(Eoe,{readOnly:o,view:e})}),u1)}import{customize as Moe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as jy}from"react/jsx-runtime";import{DirectionIcon as Ooe,LoopMarqueeIcon as _oe,NoSymbolIcon as Aoe}from"efficient-easel/icons";import{customize as Roe,describedAs as Loe,group as Foe}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as Boe}from"efficient-easel/screen/lib/document/effect-tiles";function Vy(){return d_("Direction",Py,Ui,"A marquee cannot run diagonally, so the corners are not answers.",jy(Ooe,{}),i_)}var Yy=e=>Foe("Loop",e?{dot:e}:void 0),Doe={none:()=>jy(Aoe,{}),scroll:()=>jy(_oe,{})};function Noe(){let e=Boe({label:i("Loop"),options:tu.map(({value:o,label:t})=>({value:o,label:i(t),picture:Doe[o]()})),fallback:Ty});return Loe(e,{type:"select",label:"Loop",options:tu.map(({value:o,label:t})=>({value:o,label:t}))})}function x1(){return{[ru]:Yy(Wi),loop:Noe(),_cLoop:Roe(),scrollDirection:Xe(Vy(),Wi),loopDuration:Xe(au({readsSpeed:!1}),Wi),loopDelay:Xe(nu(),Wi)}}var g1={field:Ma,set:!0};function Hoe(){let e=c1(),o=[Pr,qe],t=ea(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==Ma),Xd),r=ea(t,[Ma],g1),a=ea(r,[qe],$y);return ea(a,[Pr],{any:[$y,g1]})}function I1(e,o=""){switch(e){case"section":case"block":return{...Gt(),...bn()};case"box":return{...Gt(),...bn(),...x1(),...Hoe()};case"picture":return{...Gt(),...bn(),...Wy(ex(o),o)};case"textPart":return{...Gt(),...bn(),...s1()};case"cards":return{...Gt(),...bn(),...l1(Yh(o))};case"marquee":return{...Gt(),...bn(),[ru]:Yy(),_cLoop:Moe(),scrollDirection:Vy(),loopDuration:au({readsSpeed:!0}),loopDelay:nu()}}}import{ENTRANCE_STATE_ATTR as Woe,entranceAttrs as Uoe,scrollAttrs as Goe}from"efficient-shell/format";var y1={},qy="_partMotion",Xy=[...rc,qe,Se.duration,Se.delay,...fu];function BNe(e){return As(e,qy)}function Sn(e,o){return Lp(e,qy,o)}var zoe=new Set([tt.kind,qe,Oo.effect]);function S1(e,o,t,r){let{[t]:a,...n}=Sn(e,o),s=r==null||r===""||r==="none"&&zoe.has(t)?n:{...n,[t]:r};return Fp(e,qy,o,Object.keys(s).length?s:null)}function Zy(e){return{entrance:ac(e),hover:Tv(e),scroll:pu(e)}}function w1(e){let o=Zy(e);return o.entrance!==null||o.hover!=="none"||o.scroll!==null}function C1(e,o){let{attrs:t,style:r}=Uoe(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(Woe)}}function k1(e,o){let{attrs:t,style:r}=Goe(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 $oe=4;function Jy(e){let o;for(let t of e)(!o||t.element.compareDocumentPosition(o.element)&$oe)&&(o=t);return o}var Koe="data-sf-part-host";function v1(e){let o=e?.ownerDocument.defaultView,t=e;for(;t&&!t.hasAttribute(Koe)&&!t.classList.contains(Jn);){let r=o?.getComputedStyle(t).display??"";if(r==="contents")return null;if(r!=="inline")return t;t=t.parentElement}return null}var yu="data-sf-part-lift",b1="sf-part-lift";function T1(e){if(e.getElementById(b1))return;let o=e.createElement("style");o.id=b1,o.textContent=vA(`[${yu}]`).join(`
|
|
78
|
+
`),e.head.appendChild(o)}var P1=new Map,qoe=e=>{let o=P1.get(e);return o||P1.set(e,o=FL(I1(e),`part:${e}`)),o},Xoe=new Set(Xy);function Ks(e,o,t){let{getItemById:r,getSelectorForId:a}=Voe(f=>f),n=Yoe(),s=r(e)?.props??{},l=Sn(s,o),d=JSON.stringify(l),c=joe(()=>Object.fromEntries(Xy.map(f=>[f,l[f]])),[d]);return{part:o,fields:qoe(t),values:c,keys:Xoe,onChange:(f,u)=>{let p=a(e),h=r(e);if(!p||!h)return;let g=S1(h.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...h,props:g})}}}import{Fragment as Zoe,createElement as Joe}from"react";import{deviceField as Qy}from"efficient-easel/screen/lib/document/device-fields";var Ao=()=>({type:"custom",render:()=>Joe(Zoe)});var eS={words:Ao(),sourceNote:Ao(),style:Ao(),font:Ao(),italic:Ao(),fontSize:Qy("each",Ao()),lineHeight:Ao(),letterSpacing:Ao(),paragraphSpacing:Ao(),padding:Ao(),align:Qy("each",Ao()),letterCase:Ao(),fixedSizeHint:Qy("each",Ao()),regionNote:Ao(),regionStyle:Ao()},Qoe=["fontSize","align"];function E1(e){return Qoe.includes(e)}var O1={showTicker:Ao(),items:Ao()};var cte="root:default-zone";function _1({heroId:e}){let{appState:o,dispatch:t}=ate(h=>h),r=o.data.content??[],a=r.findIndex(h=>h.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,l=rte(()=>{let h=n?.props.tickerItems;return Array.isArray(h)?h:KR.map(g=>({text:g}))},[n]),d=tte(),c=dte(),f=h=>ite(O1[h],c),u=Ks(e,jR,"block");if(!n)return wn("p",{className:"sf-note",children:i("This ticker\u2019s hero is no longer on the page.")});let p=h=>t({type:"replace",destinationZone:cte,destinationIndex:a,data:{...n,props:{...n.props,...h}}});return wn(zt,{motion:u,body:ote(ete,{children:[!f("showTicker")&&!f("items")&&wn(gn,{}),f("showTicker")&&wn(nte,{label:i("Show ticker"),labelId:d,icon:wn(lte,{}),action:wn(ste,{checked:s,onChange:h=>p({showTicker:h}),ariaLabelledBy:d})}),f("items")&&wn(zI,{label:GI.label,icon:GI.icon,items:l,placeholder:"item",onChange:h=>p({tickerItems:h}),markup:!0})]})})}import{jsx as Q,Fragment as Xi,jsxs as It}from"react/jsx-runtime";import{useContext as Lte,useEffect as oS,useRef as Fte,useState as X1}from"react";import{FieldSelect as Bte,InspectorField as Dte,fieldShownInView as Nte}from"efficient-easel/fields";import{InertHint as nF,SettingsField as Mte}from"efficient-easel/panel";import{InspectorUpLevel as Eu}from"efficient-easel/chrome";import{StylesIcon as Hte,TypeIcon as Wte}from"efficient-easel/icons";import{useEasel as Ute}from"efficient-easel/easel";import{TextPartPanel as Z1}from"efficient-easel/copy";import{Button as Gte,IconButton as zte,Tooltip as $te}from"efficient-shell/ui";import{jsx as L1,jsxs as fte}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as pte}from"efficient-easel/strings";import{COPY_CELLS as js,COPY_CELL_LENGTHS as A1,CopyBox as ute,lengthCellUnits as mte}from"efficient-easel/copy";import{PaddingYIcon as hte}from"efficient-easel/icons";import{onDesktopWords as xte}from"efficient-easel/screen/lib/document/box-fields";var R1=pte.copy.cells,gte={kind:"spacing"},Ite=["left","center","right","justify"];function Su(e,o,t,r="desktop"){let a=Ti(e),n=Ob(r),s=e[n]??e.size??o.sizePx,l=RA(e,r),d=(f,u,p,h,g)=>{let I=ht[p];return mte({preset:f,row:u,table:pi,unit:e[I],value:e[p],tier:r,styleValue:h,label:i(g),onPick:(C,S)=>t({[I]:C??null,[p]:S??null}),onChange:(C,S)=>t({...S?{[I]:S.unit??null}:{},[p]:C??null})})},c={key:"padding",name:i("Padding"),icon:L1(hte,{}),unit:"px",step:vb,shiftStep:10,min:Cb,max:kb};return[{...js.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...d(js.fontSize,A1.fontSize,n,Math.round(o.sizePx),R1.fontSize),...n==="size"?{}:{reset:{detail:l?xte(f=>i(f),`${l.px}px`,l.view):void 0}}},{...js.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...js.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...js.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...d(js.paragraphSpacing,A1.paragraphSpacing,"paragraphSpacing",0,R1.paragraphSpacing)},{...c,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...d(c,gte,"padding",o.paddingPx,"Padding")}]}function F1({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:l,colors:d,placeholder:c,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let h=Su(n,s,l),g=rb(r,t);return fte("div",{className:"sf-part-textbox",children:[u,L1(ute,{value:e,onChange:o,multiline:t,placeholder:c,ariaLabel:f,rules:Fa,tools:g,barShows:p?"focus":"always",colors:r?d:[],colorNameOf:at,align:a?{value:n.align??s.align,allow:Ite,onChange:I=>l({align:I})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:I=>l({case:I||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as J1}from"efficient-easel/draw/client";import{jsx as wu,Fragment as bte,jsxs as yte}from"react/jsx-runtime";import{Button as B1,Dialog as Ste}from"efficient-shell/ui";function D1({styleName:e,onCancel:o,onConfirm:t}){return wu(Ste,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:i("Update {style}?",{style:e}),footer:yte(bte,{children:[wu(B1,{variant:"secondary",onClick:o,children:i("Cancel")}),wu(B1,{variant:"primary",onClick:t,children:i("Update style")})]}),children:wu("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 Kte}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as jte}from"efficient-easel/draw/client";import{shownTier as Tu}from"efficient-easel/screen/lib/document/device-fields";import{jsx as wte}from"react/jsx-runtime";import{createContext as Cte,useContext as kte,useMemo as vte,useState as Tte}from"react";var Pte={partStyle:null,setPartStyle:()=>{}},N1=Cte(Pte);function PMe({children:e}){let[o,t]=Tte(null),r=vte(()=>({partStyle:o,setPartStyle:t}),[o]);return wte(N1.Provider,{value:r,children:e})}function M1(){return kte(N1)}import{TEXT_FIELD_MARKER as Vte,viewKeyAt as Yte}from"efficient-easel/draw";import{useSectionOps as qte}from"efficient-easel/screen/lib/document/use-section-ops";var Ki="@name",H1="@body",W1="@value",U1={[Ki]:"Name",[H1]:"Body",[W1]:"Value"},Ete={TimelineTrack:{"entries.date":Ki,"entries.title":Ki,"entries.blurb":H1},Footprint:{"offices.city":Ki},Stats:{"items.label":Ki,"items.value":W1}};function Ote(e){let{key:o,row:t}=Wt(e);return t?`${o}.${t.rowKey}`:null}function ji(e,o){if(!e)return o;let t=Ote(o);return t?G(Ete,e)?.[t]??o:o}import{useEaselHost as Xte}from"efficient-easel/screen/lib/host";function _te(e){let o=new Set([...Object.keys(G(If,e)??{}),...G(bf,e)??[]]);for(let[t,r]of Object.entries(G(gg,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var Ate={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},G1={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},z1="Open",$1={product:{type:"storefront-editor:open-product",needsSlug:!0},blog:{type:"storefront-editor:open-post",needsSlug:!0},menu:{type:"storefront-editor:open-menus",needsSlug:!1}};function Vs(e){let o=e?.source?.slug;return Z(o)}function Vi(e){return G(Ate,e)??null}function K1(e,o){let t=Vi(e);return t&&_te(e).includes(o)?t:null}function Cu(e){let o=e?.menu?.id;return Z(o)}var Yi={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)]"},Rte={tag:{label:"Tag",follows:"Labels",builtIn:rs(Yi.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:rs(Yi.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:rs(Yi.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:rs(Yi.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:rs(Yi.link),writable:!0}},j1=Rte;var ku={entry:{label:"Entry",follows:"Labels",builtIn:"13px",writable:!0},number:{label:"Entry number",follows:"Labels",builtIn:"13px",writable:!0}};var GMe=Rc,V1={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 Y1={SpecTable:V1,FAQ:Qv,Collections:j1,Contents:ku};function q1(){return er("efficient.section-text-regions",()=>new Map)}function XMe(e){let o=q1();for(let[t,r]of Object.entries(e)){if(He(Y1,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 vu(e){return e?G(Y1,e)??q1().get(e)??null:null}function tS(e){return e?i(e):null}function Q1(e){return e.kind==="role"?fh[e.role]:e.kind==="custom"?"Custom":null}function Zte(e){let o=Sr(e.role);return o?{kind:"role",role:o}:null}function Jte(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 Pu(e,o,t,r){return Zte(vi(e,o))??Jte(t,r)}function Qte(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function eF(e){return[{value:qi,label:i("No style"),description:i("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?$n(o.values.font)?.label:void 0}))]}var qi="";function ere({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:qi,a=[{label:i("No style"),value:qi},...OC.map(n=>({label:i(fh[n]),value:n}))];return Q(Bte,{ariaLabel:i("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===qi?null:n),renderOption:n=>n.value===qi?It(Xi,{children:[Q("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),Q("span",{className:"sf-part-style-aside","aria-hidden":"true",children:i("Section\u2019s own")})]}):Q("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>Q("span",{style:{fontFamily:o?.fontKey?`var(${$n(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:tS(Q1(e))}),valueText:n=>tS(Q1(e))??n?.label??""})}var sF=["regionNote","regionStyle"],ore=Object.keys(eS).filter(e=>!sF.includes(e));function lF(e,o){return!e.some(o)}function tre({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=It(Xi,{children:[t,r,a]});return It("div",{className:"sf-part-panel",children:[Q(Eu,{inline:!0,name:i(e),onSelect:o}),n?n(s):s]})}function Ou({source:e,slug:o,menuId:t}){let r=Xte(),a=$1[e],n=!a.needsSlug||!!o;return Q("div",{className:"sf-note sf-note--source",children:It(nF,{children:[i(G1[e]),n?It(Xi,{children:[" ",Q(Gte,{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(z1)})]}):null]})})}var oF=4,rre=120;function tF(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 rF({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:l,shows:d,sizedStyle:c,ownLook:f}){let u=e.follows;return It("div",{className:"sf-note",children:[Q("p",{children:Q("strong",{children:i(e.label)})}),d("regionNote")&&!f&&Q("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)})}),c?It(Xi,{children:[c,d("regionStyle")&&Q("p",{className:"es-field-hint",children:tF(e)})]}):a?d("regionStyle")?Q(Xi,{children:Q(Mte,{label:i("Style"),icon:Q(Hte,{}),hint:tF(e),children:Q(ere,{face:t,base:r,onPick:a})})}):null:d("regionNote")&&Q("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&&d("sourceNote")?Q(Ou,{source:n,slug:s}):null,lF([...sF,"sourceNote",...c?["fontSize"]:[]],p=>d(p)&&(p!=="sourceNote"||!!n))&&Q(gn,{}),Q(Eu,{inline:!0,name:i("Page"),onSelect:l})]})}function are({onBack:e}){return It("div",{className:"sf-note",children:[Q("p",{children:Q("strong",{children:i("This part is no longer here.")})}),Q("p",{children:i("The section it belonged to has been changed or removed.")}),Q(Eu,{inline:!0,name:i("Page"),onSelect:e})]})}function nre({onBack:e,partId:o,why:t}){return It("div",{className:"sf-note",children:[Q("p",{children:Q("strong",{children:i("This part's settings did not open.")})}),Q("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.")}),Q("p",{className:"sf-note-detail",children:It("code",{children:[o," \u2014 ",t]})}),Q(Eu,{inline:!0,name:i("Page"),onSelect:e})]})}function iF({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=Ute(V=>V),l=qte(),d=H_(),{partStyle:c}=M1(),{fonts:f,textStyles:u}=ge(),p=Lte(Kte),h=!p?.capabilities?.hasSiteTheme,{persist:g}=ms({themeFromDocument:h,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=Up({themeFromDocument:h,persist:g}),[C,S]=X1(!1),k=jte(),y=V=>(Tu(k)!=="tablet"||E1(V))&&Nte(eS[V],k),b=Fte(null),O=a(e),W=n(e),T=O?s.components[O.type]:void 0,{key:M,row:P}=Wt(o),F=T?.fields?.[M],w=P?Os(F,P):F,E=mp(e,o),A=O?.props??{},L=Ts(w),U=op(w),$=YI(w),q=O?Vi(O.type):null,te=O?K1(O.type,M):null,we=P?bi(A[M],P):A[M],ce=!!P&&!(Array.isArray(A[M])&&P.index<A[M].length);oS(()=>{M_(document)||b.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[E]);let[Ae,Ve]=X1(0);oS(()=>Ve(0),[E]);let ye=!!O&&!ce&&(!W||!w);oS(()=>{if(!ye||Ae>=oF)return;let V=setTimeout(()=>Ve(Qe=>Qe+1),rre);return()=>clearTimeout(V)},[ye,Ae]);let Re=ye&&Ae<oF,Be=Ks(e,ji(O?.type,o),"textPart");if(!O||ce)return Q(are,{onBack:t});let Me=vu(O.type),po=Me?Fl(Me,o):null;if(Me&&po){let V=c?.partId===E?c:null,Qe=Me[po],Et=Qe.writable===!0&&!!W,$r=Pa=>{W&&l.replaceComponent(W.zone,W.index,{...O,props:dn(A,o,"role",Pa)})};if(Et&&Jv(Qe)){let Pa=vi(A,o),EC=Ea=>{if(!W)return;let ch=A;for(let[y6,S6]of Object.entries(Ea))ch=dn(ch,o,y6,S6??null);l.replaceComponent(W.zone,W.index,{...O,props:ch})},g6=Mr(I.saved,I.old),I6=wb(Pa)??"",b6=Su(Pa,V?.base??aF,EC,Tu(k)).filter(Ea=>Ea.key==="fontSize"&&y(Ea.key));return Q(zt,{motion:Be,body:Q(rF,{region:Qe,sizePx:V?.base.sizePx??null,face:Pu(A,o,V,f),base:V?.base??null,source:q,slug:Vs(A),onBack:t,shows:y,ownLook:FA(Pa),sizedStyle:Q(Z1,{style:y("style")?{value:I6,options:eF(g6),onChange:Ea=>EC(Ea?{textStyle:Ea}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:b6})})})}return Q(zt,{motion:Be,body:Q(rF,{region:Qe,sizePx:V?.base.sizePx??null,face:Pu(A,o,V,f),base:V?.base??null,onFollowStyle:Et?$r:void 0,source:q,slug:Vs(A),onBack:t,shows:y})})}if(!W||!w)return Re?Q("div",{className:"sf-note","aria-busy":"true"}):Q(nre,{onBack:t,partId:E,why:W?"no field":"no selector"});let zo=V=>{l.replaceComponent(W.zone,W.index,{...O,props:V})},xe=V=>{if(ma(V).hidden!==ma(we).hidden||!L){let Qe=P?jI(A,M,P,V):{...A,[M]:V};Qe&&zo(Qe);return}gp({node:O,propKey:o,kind:L,zone:W.zone,index:W.index},ma(V).text,l.replaceComponent)},Ye=we,Pe=c?.partId===E?c:null,_e=Pe?.styleOwner,ro=_e?a(_e.owner):null,Vt=_e&&ro?n(_e.owner):null,ot=!!(_e&&ro&&Vt),D=ot?ro.props??{}:A,Ee=ot?V=>l.replaceComponent(Vt.zone,Vt.index,{...ro,props:V}):zo,Ce=ot?_e.kind:ji(O?.type,o),so=vi(D,Ce),ze=[{partKey:Ce,face:Pu(D,Ce,Pe,f),sizeGroup:Pe?.sizeGroup??null,base:Pe?.base??aF,style:so}],Tt=Qte(ze,V=>V.sizeGroup),Yt=cs(Pe?.inks),lo=(V,Qe)=>{let Et=D;for(let $r of ze)Et=dn(Et,$r.partKey,V,Qe);Ee(Et)},Pt=V=>V?lo("textStyle",V):qt({textStyle:null,role:null}),qt=V=>{let Qe=D;for(let Et of ze)for(let[$r,Pa]of Object.entries(V))Qe=dn(Qe,Et.partKey,$r,Pa??null);Ee(Qe)},Gn=L==="text"||L==="textarea",{text:xl,hidden:yr}=ma(we),va=w?.[Vte]?.label??o,gl=yr?i("Show {label} on the slide",{label:i(va)}):i("Hide {label} on the slide",{label:i(va)}),zn=It("div",{className:"sf-field-head",children:[Q(Wte,{}),Q("span",{className:"sf-field-label sf-field-label--inline",children:i(va)}),Gn&&Q($te,{content:gl,children:Q(zte,{"aria-pressed":yr,"aria-label":gl,onClick:()=>xe({text:xl,hidden:!yr}),children:yr?Q(J1,{name:"eye-off",size:14}):Q(J1,{name:"eye",size:14})})})]}),Yd=!U&&$,c6=!!L&&(j0(w)||U||yr||!$),TC=Pu(D,Ce,Pe,f),f6=TC.kind==="role"?TC.role:null,dh=wb(so)??qA(f6),PC=Mr(I.saved,I.old),p6=Object.entries(so).filter(([V,Qe])=>V!=="role"&&V!=="textStyle"&&Qe!==void 0).length,u6=()=>{let V=D;for(let Qe of ze){let{role:Et,textStyle:$r}=Qe.style;V=OA(V,Qe.partKey),Et&&(V=dn(V,Qe.partKey,"role",Et)),$r&&(V=dn(V,Qe.partKey,"textStyle",$r))}Ee(V)},Ta=dh,m6=XA(ze[0].style),h6=Ta?PC.find(V=>V.id===Ta)?.name??Ta:"",x6=()=>{S(!1),Ta&&(I.write(ZA({saved:I.saved,old:I.old,styleId:Ta,values:Wb(ze[0].style)}),!0),u6())};return It(tre,{sectionName:T?.label??O.type,onBack:t,tabs:V=>Q(zt,{motion:Be,body:V}),textEditor:y("words")?Q("div",{ref:b,className:"sf-part-text",children:c6?Q(F1,{text:xl,onTextChange:V=>xe(Gn?{text:V,hidden:yr}:V),multiline:cp(L),markup:L!=="plainText",styled:!1,style:ze[0].style,base:ze[0].base,setValue:qt,colors:Yt,placeholder:tS(x_(w))??void 0,ariaLabel:i(va),head:zn,typedOnCanvas:d===E}):L?Gn?zn:null:Q(Dte,{field:w,name:o,value:Ye,onChange:xe,id:`sf-part-${e}-${o}`})}):void 0,children:[te&&y("sourceNote")&&Q(Ou,{source:te,slug:Vs(A),menuId:Cu(A)}),Yd&&Q(Z1,{style:y("style")?{value:dh??"",options:eF(PC),onChange:V=>Pt(V||null),changed:p6>0,onEditStyles:r,onUpdateStyle:Ta&&m6?()=>S(!0):void 0}:void 0,font:y("font")?{value:so.font??"",styleValue:$n(ze[0].base.fontKey)?.label,options:Ot.map(V=>({label:V.label,value:V.key})),onChange:V=>lo("font",V||null)}:void 0,italic:y("italic")?{value:so.italic,styleValue:lre(u,dh),onChange:V=>lo("italic",V??null)}:void 0,cells:Su(ze[0].style,ze[0].base,qt,Tu(k)).filter(V=>y(V.key)),align:y("align")?sre(so,ze[0].base.align,Tu(k),lo):void 0,letterCase:y("letterCase")?{value:so.case??"",styleValue:ze[0].base.case,onChange:V=>lo("case",V||null)}:void 0}),C&&Ta&&Q(D1,{styleName:h6,onCancel:()=>S(!1),onConfirm:x6}),Yd&&Tt===null&&y("fixedSizeHint")&&Q(nF,{children:i("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),lF(ore,V=>y(V)&&(V==="words"||(V==="sourceNote"?!!te:V==="fixedSizeHint"?Yd&&Tt===null:Yd)))&&Q(gn,{})]})}function sre(e,o,t,r){let a=Yte("align",t),n=AA(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function lre(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var aF={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as $t,jsxs as cS,Fragment as hre}from"react/jsx-runtime";import{useCallback as xre,useRef as gre,useState as Qi}from"react";import{InspectorIconButton as Ire}from"efficient-easel/chrome";import{useEasel as bre}from"efficient-easel/easel";import{PopupMenu as yre,PopupMenuItem as Sre,PopupMenuLabel as Du}from"efficient-shell/ui";import{CopyToPageIcon as wre}from"efficient-easel/icons";import{useEaselSession as Cre}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as kre}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as vre}from"efficient-easel/draw";import{currentEaselSession as ire}from"efficient-easel/screen/lib/session";var dre={general:!0,commerce:!0,service:!0};function rS(e){let o=e?.sets;return o?Object.fromEntries(rv.map(t=>[t,o.includes(t)])):dre}function aS(e=ire()){return rS(e.blocks)}import{isBackendError as Ys}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as IF}from"efficient-easel/screen/lib/session";var _u=Uc(),nS=_u.set;function Au(e,o){nS(e,o)}function Ru(e,o){let t=_u.get(e);nS(e,o??(t==="live"?"changed":t))}function Lu(e,o){nS(e,o??"live")}function dF(e){return _u.get(e)}function cF(e){return _u.use(e)}function fF(e,o){return e==="live"&&o?"changed":e}function sS({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 pF(e){return e.map(o=>o.change==="take_down"?i("{name} (taken down)",{name:o.name}):o.name)}var uF="SharedSection",cre=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Zi=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Ji=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function mF(e){if(e?.type!==uF)return null;let o=e.props?.section;return typeof o=="string"&&cre.test(o)?o.toLowerCase():null}function hF(e){let o=[];for(let t of Zi(e)){let r=mF(t),a=Ji(t);r&&a&&o.push({refId:a,section:r})}return o}function Fu(e){let o=Zi(e)[0];return o&&typeof o=="object"&&Ji(o)?o:null}function fre(e,o){return{type:uF,props:{id:e,section:o}}}function xF(e,o){let t=new Map,r=new Set,a=!1,n=Zi(e).map(s=>{let l=mF(s),d=Ji(s);if(!l||!d||r.has(l))return s;let c=Fu(o.get(l)),f=Ji(c??void 0);return!c||!f||t.has(f)?s:(r.add(l),t.set(f,{section:l,refId:d,reference:s}),a=!0,c)});return{working:a?{...e,content:n}:e,held:t}}function gF(e,o,t){let r=new Map,a=!1,n=Zi(e).map(s=>{let l=Ji(s),d=l?o.get(l):void 0,c=d?t.get(d.section):void 0;if(!d||!c||r.has(d.section))return s;let f=Zi(c).slice(1),u=Fu(c);return r.set(d.section,u===s?c:{...c,content:[s,...f]}),a=!0,d.reference??fre(d.refId,d.section)});return{page:a?{...e,content:n}:e,docs:r}}function dS(e){return!!(e?.publish&&e.liveState)}function pre(e,o){if(!dS(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 ure(e,o){return async(t,r)=>{try{await NE()}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"?wf({state:"live",changes:[]}):_r(0),{version:r??null}}}function iS(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(Au(n.id,n.live),XT(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,l)=>e.save(a,{layout:n},{version:s,clientId:l??""}).then(d=>(Ru(a,d.live),ZT(a,d.videoFrames),_r(),d)),rereadVersion:e.version?a=>e.version(a):void 0,publish:dS(t)?ure(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(Lu(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 mre(e,o,t,r,a=!1){let n=null,s=new Set,l=!1,d=new Map,c=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},h=new Set,g=()=>{if(!n)return!1;let P=dF(n.id);return P==="changed"||P==="never"||P===void 0&&l},I=P=>{p={...p,...P,docId:n?.id??null,unpublished:g(),sections:[...f.values()]};for(let F of h)F()},C=(P,F,w)=>{F?f.set(P,{section:P,title:d.get(P)?.title??"",problem:F,holder:w}):f.delete(P)},S=P=>P&&typeof P=="object"&&!Array.isArray(P)?P:{},k=P=>s.has(P),y=()=>new Map([...d].map(([P,F])=>[P,F.layout])),b=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,O=(P,F,w,E)=>{let A=S(F);d.set(P,{layout:A,version:w,savedJson:JSON.stringify(A),title:E})},W={state:()=>p,subscribe:P=>(h.add(P),()=>{h.delete(P)})},T={sectionOf:P=>c.get(P)?.section??null,heldElsewhere:P=>{let F=c.get(P)?.section;return!!(F&&f.get(F)?.problem==="lock")},adopt:(P,F)=>{O(F.id,F.layout,F.layout_updated_at,F.title),c.set(P,{section:F.id,refId:b()}),u.set(F.id,F.used_on),I({})},place:P=>{if([...c.values()].some(E=>E.section===P.id))return null;let F=Fu(S(P.layout)),w=typeof F?.props?.id=="string"?F.props.id:null;return!F||!w||!F.type?null:(O(P.id,P.layout,P.layout_updated_at,P.title),c.set(w,{section:P.id,refId:b()}),u.set(P.id,P.used_on),F)},usedOn:P=>u.get(P)??null,learn:P=>{for(let F of P){u.set(F.id,F.used_on);let w=d.get(F.id);w&&(w.title=F.title);let E=f.get(F.id);E&&f.set(F.id,{...E,title:F.title})}I({})}},M=async(P,F)=>{for(let[w,E]of P){let A=d.get(w),L=JSON.stringify(E);if(!(!A||L===A.savedJson||f.get(w)?.problem==="lock"))try{let U=await e.save(w,{layout:E},{version:A.version,clientId:F??""});Ru(w,U.live),A.layout=E,A.version=U.version,A.savedJson=L,C(w,null)}catch(U){Ys(U,"changed-elsewhere")?C(w,"conflict"):Ys(U,"lock-taken")?C(w,"lock",U.holder??void 0):C(w,"save")}}P.size&&_r(),I({})};return{resolve:async P=>{if(Gy(P===Nt?null:W),Bx(P===Nt?null:T),d=new Map,c=new Map,f=new Map,u=new Map,P===Nt)return t.resolve(P);let F=!1,[w,E]=await Promise.all([t.resolve(P),e.load({slug:Nt,...o}).catch(()=>(F=!0,null))]);if(E&&!ri(w?.layout)){Au(E.id,E.live);let te=S(E.layout);n={id:E.id,layout:te,version:E.version,savedJson:""}}else n=null;if(l=!1,!w)return I({conflict:null,saveFailed:!1,loadFailed:F}),w;let A=S(w.layout),L=hF(A),U=await Promise.all(L.map(te=>e.load({id:te.section,...o}).catch(()=>null)));L.forEach((te,we)=>{let ce=U[we];ce?(Au(ce.id,ce.live),O(te.section,ce.layout,ce.version,"")):(d.delete(te.section),f.set(te.section,{section:te.section,title:"",problem:"load"}))});let $=xF(A,y());if(c=$.held,!n)return c.size&&s.add(w.id),I({conflict:null,saveFailed:!1,loadFailed:F}),c.size?{...w,layout:$.working}:w;let q=KT($.working,n.layout);return n.savedJson=JSON.stringify(Fx(q,n.layout).chrome),s.add(w.id),I({conflict:null,saveFailed:!1,loadFailed:!1}),{...w,layout:q}},saveLayout:async(P,F,w,E)=>{if(!k(P))return t.saveLayout(P,F,w,E);let A=n,L=A?Fx(F,A.layout):{page:F,chrome:null},U=gF(L.page,c,y()),$=await t.saveLayout(P,U.page,w,E);if(await M(U.docs,E),!A)return $;let q=JSON.stringify(L.chrome);if(!L.chrome||q===A.savedJson||p.lockHolder)return $;try{let te=await e.save(A.id,{layout:L.chrome},{version:A.version,clientId:E??""});Ru(A.id,te.live),_r(),A.layout=L.chrome,A.version=te.version,A.savedJson=q,l=!0,I({conflict:null,saveFailed:!1})}catch(te){Ys(te,"changed-elsewhere")?I({conflict:te.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):Ys(te,"lock-taken")?I({lockHolder:te.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):I({saveFailed:!0})}return $},publish:t.publish?async(P,F)=>{let w=await t.publish(P,F),E=n;if(E&&k(P)&&!a&&e.publish&&g()&&!p.lockHolder){let A=await e.publish(E.id,E.version?{version:E.version}:void 0);Lu(E.id,A.live),A.version!==null&&(E.version=A.version),l=!1,I({})}if(k(P)&&!a&&e.publish)for(let[A,L]of d){if(f.get(A)?.problem==="lock")continue;let U=await e.publish(A,L.version?{version:L.version}:void 0);Lu(A,U.live),U.version!==null&&(L.version=U.version)}return w}:void 0,lock:r?{claim:async(P,F,w)=>{let E=await r.claim(P,F,w);if(!k(P))return E;let A=n;if(A)try{await r.claim(A.id,F,!1),p.lockHolder&&I({lockHolder:null})}catch(L){Ys(L,"lock-taken")&&I({lockHolder:L.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let L of d.keys())try{await r.claim(L,F,!1),f.get(L)?.problem==="lock"&&C(L,null)}catch(U){Ys(U,"lock-taken")&&C(L,"lock",U.holder??void 0)}return d.size&&I({}),E},release:async(P,F)=>{if(await r.release(P,F),!k(P))return;let w=n;w&&!p.lockHolder&&await r.release(w.id,F).catch(()=>{});for(let E of d.keys())f.get(E)?.problem!=="lock"&&await r.release(E,F).catch(()=>{})}}:void 0,pinnedChrome:W}}function Bu(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:vT(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 c2e(e,o,t){return e.update(o,TT(t))}function f2e(e,o=Ze(),t=aS(),r={}){let a=IF(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,l=o.site.update,d=a&&t.commerce&&t.service,c=!!r.editsPinnedInPlace&&d,f=dS(o.site)?o.site:void 0,u=Bu(o.pages),p=iS(u,e,f),h=c?mre(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:d,editsPinnedInPlace:c,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,...bF(p.resolve),lock:o.lock,...h,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:pre(f,n),updateSite:s&&l?g=>l(g,n):void 0,previewHref:o.preview?g=>o.preview.href(g):void 0}}function p2e(e,o=Ze(),t=aS()){let r=IF(o),a=o.templates,n=a?Bu(a.pages(e)):{list:()=>Promise.reject(new Error(lS)),load:()=>Promise.reject(new Error(lS)),save:()=>Promise.reject(new Error(lS))};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},...iS(n,void 0),...bF(iS(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function bF(e){return{resolve:o=>(Gy(null),Bx(null),e(o))}}var lS="This editor's backend has no website templates.";function Tre(e,o,t){let r=kre(e,void 0,o);return t?.(r)??r}function yF({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,l]=Qi(!1),[d,c]=Qi(null),f=Cre(),u=bre(T=>T.config.components),[p,h]=Qi(!1),[g,I]=Qi(null),C=gre(null),[S,k]=Qi(null),y=xre(async()=>{if(f.usesBridgedToken&&!r.current){h(!0);return}try{c(await Ze(f).pages.list(t?{siteId:t}:void 0))}catch{h(!0)}},[r,t,f]),b=()=>{if(s){l(!1);return}let T=C.current?.getBoundingClientRect();T&&k({top:T.bottom+6,right:Math.max(8,window.innerWidth-T.right)}),c(null),h(!1),y(),l(!0)},O=(d??[]).filter(T=>T.slug!==o),W=async T=>{if(g)return;I(T.slug);let M=Tre(e,u,f.documentHooks?.storedNode),P=await a(()=>Pre(Ze(f).pages,T,M));I(null),l(!1),n?.(P?i("Duplicated to \u201C{name}\u201D",{name:T.label}):i("Couldn\u2019t duplicate the section \u2014 please retry"),P?"success":"error")};return cS(hre,{children:[$t("span",{"data-menu-toggle":!0,style:{display:"contents"},children:$t(Ire,{buttonRef:C,label:i("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:b,children:$t(wre,{size:15})})}),s&&S&&$t(yre,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>l(!1),children:cS("div",{role:"menu","aria-label":i("Duplicate to page"),children:[$t(Du,{children:i("Duplicate to page")}),p?$t(Du,{children:i("Couldn\u2019t load pages")}):d===null?$t(Du,{children:i("Loading\u2026")}):O.length===0?$t(Du,{children:i("No other pages")}):O.map(T=>cS(Sre,{role:"menuitem",disabled:g!==null,onClick:()=>{W(T)},children:[$t("span",{className:"min-w-0 flex-1 truncate",children:T.label}),g===T.slug?$t("span",{className:"shrink-0 text-xs",children:i("Copying\u2026")}):T.draft&&$t("span",{className:"shrink-0 text-xs",children:i("draft")})]},T.id))]})})]})}async function Pre(e,o,t){let r=Bu(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(d=>d?.type===vre);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 Jie}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Qie}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as Bje,isSelectionMode as Mw}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as ede}from"efficient-easel/draw/client";import{jsx as ed,jsxs as Ere}from"react/jsx-runtime";import{SettingsDrill as Ore}from"efficient-easel/panel";import{UiIcon as _re}from"efficient-easel/draw/client";var Are="Not shown on the page";function Rre({part:e,onOpen:o}){return ed(Ore,{name:i(e.label),preview:e.offPage?i(Are):e.preview||i("Empty"),offPage:e.offPage,status:e.hidden?ed("span",{className:"sf-entry-eye",role:"img","aria-label":i("Hidden on the page"),children:ed(_re,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function fS(e){return e.filter(o=>!o.identifier)}function SF({parts:e,onOpen:o,heading:t=!0}){let r=fS(e);return r.length?Ere("div",{className:"sf-entries",children:[t?ed("h3",{className:"sf-entries-head",children:i("Text")}):null,r.map(a=>ed(Rre,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as ode,ROOT_ZONE as mH}from"efficient-easel/draw";import{HEADER_TYPE as Zo,FOOTER_TYPE as Ge,newNodeId as Lre}from"efficient-easel/draw";function Nu(){return{type:Zo,props:{id:Lre(Zo)}}}var wF=[{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"}],Fre=wF.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),Bre="FooterGroup",CF="blocks";function kF(e){return e===Ge?wF:e===Bre?Fre:null}function Mu(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...iO}),e("FooterPayment",{...Pf})]}function pS(e){switch(e?.type){case Ue:case Fe:return i("On every page");case Zo:case Ge:return i("On every page \xB7 old style");default:return null}}var vF=()=>null,TF=()=>i("Changed on every page");function Hu(e,o){let t=mk(e,o);if(t)return t;let r=HT(e,o);if(!r)return null;let a=r.group===Ue;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 Bm,Fragment as Fie,jsxs as Bie}from"react/jsx-runtime";import{useState as Die}from"react";import{createNode as Nie,newId as Mie}from"efficient-easel/data";import{useEasel as Hie}from"efficient-easel/easel";import{Banner as Wie,Button as Dw}from"efficient-shell/ui";import{useScreenDocument as Uie}from"efficient-easel/screen/components/ScreenDocumentContext";import{isNodeList as Dre}from"efficient-easel/data";import{hiddenKeyOf as Nre}from"efficient-easel/screen/lib/content/view-hide";var Wu="Flex",Mre={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},Hre={FooterPayment:"PaymentLogosBlock"},Wre=e=>{let{id:o,...t}=e;return t},PF=e=>typeof e=="string"?e:"",qs={sm:12,md:13,lg:15},EF={sm:{mark:16,words:qs.sm},md:{mark:20,words:qs.md}},Ure="md",OF=1.5,Gre={size:13,lineHeight:OF,width:280},zre=14,$re=40,Kre=e=>e==="center"||e==="right"?e:"left";function jre(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=j(e[r]);n&&(o[a]=n)}return o}function Vre(e,o,t){let r=t(e,Wre(o));if(Array.isArray(o.template))return{...r,props:{...r.props,template:_F(o.template,String(r.props.id))}};if(o.template!==void 0)return r;let a=mT(e,r.props);return a===r.props?r:{...r,props:a}}function _F(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))Dre(s)&&(a[n]=_F(s,o,t));return{...r,props:a}})}function AF(e,o,t){let r=e.props??{},a=t?.(e,o);if(a)return a;let n=G(Mre,e.type)??G(Hre,e.type);if(n)return[Vre(n,r,o)];switch(e.type){case"FooterLogo":{let s=Kre(r.align),l=o("LogoBlock",{...r.reverse?{reverse:r.reverse}:{},...typeof r.customColor=="string"&&r.customColor?{customColor:r.customColor}:{},heightPx:Math.round(Ek*((j(r.widthPct)??100)/100)),href:"/",align:s,...jre(r)}),d=PF(r.tagline).trim();return d?[l,o("Text",{text:d,tone:"dim",align:s,_partStyles:{text:{...Gre}}})]:[l]}case"FooterText":{let s=typeof r.size=="string"&&He(qs,r.size)?r.size:Ure;return[o("Text",{text:PF(r.text),tone:typeof r.tone=="string"?r.tone:"default",_partStyles:{text:{size:qs[s],lineHeight:OF}}})]}case"FooterDivider":{let s=j(r.thickness),l=j(r.lengthPct);return[o("Divider",{...s!==void 0?{thickness:s}:{},...l!==void 0?{lengthPct:l}:{},...r.hideOnMobile===!0?{[Nre("mobile")]:!0}:{}})]}case"FooterGroup":{let s=Array.isArray(r.blocks)?r.blocks:[];return[o(Wu,{direction:r.direction==="horizontal"?"row":"column",gap:Za("FooterGroup",r.gap),align:r.align==="center"||r.align==="end"||r.align==="stretch"?r.align:"start",...bl,content:s.flatMap(l=>AF(l,o,t))})]}default:return[]}}function od(e,o,t,r){let a=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],n=f=>o(Wu,{direction:"row",wrap:!0,share:"equal",gap:$re,content:f}),s=[],l=[];for(let f of a){let u=AF(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(Wu,{direction:"column",gap:zre,align:"stretch",...bl,content:u}))}(l.length||!s.length)&&s.push(n(l));let d=o(Wu,{direction:"column",content:[o("LegalLineBlock")]}),c=DT(Fe,t,[...s,d]);return{...c,props:{...c.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}import{isNodeList as Rie}from"efficient-easel/data";import{readHidable as qre}from"efficient-easel/draw";function Uu(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),l=r.find(d=>d.key===s);l||(l={key:s,name:t(a),items:[]},r.push(l)),l.items.push({item:a,index:n})}),r}function X2e(e){return Yre[td(e)]}var Yre={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4"};function td(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 mr=K,hr=re;function kn(e){if(e.theme)return uo(e.theme);let o=e.site?.themePresets;return o?uo({selected:e.site?.selectedPreset??0,themes:[...o]}):void 0}function Xre(e,o){return o===0?`${e}~box`:`${e}~box-${o+1}`}var LF=new Set(["id"]),Cn={},FF=[],Zre=["ProductGrid","Events","Collections","GalleryB","ContactRouting","ReviewForm","AppointmentBooking","Reviews","CheckoutCTA","AlloyWheelsListing","SpecTable"],rd=["Breadcrumb","DocBody","Form","SubmitBuild","Footprint","FAQ","ProcessSteps",...Zre,"Stats","Logos","PaymentBadges","PaymentLogosBlock","FitmentFinder","DocMasthead","DocTabs","Timeline","TimelineTrack","OrderSummary","Chart","Mockup","Countdown","FeaturedCover","SectionHeader","TitleWithButtons","Prose","ParagraphsA","Banner","Cards"];function So(e){for(let[o,t]of Object.entries(e)){if(He(Cn,o)&&G(Cn,o)!==t)throw new Error(`lib/sections/section-to-box: "${o}" already has a row`);Cn[o]=t}}function ga(e){return G(Cn,e)}function Jre(e){return He(Cn,e)&&FF.includes(e)}function BF(e,o=rd){return He(Cn,e)&&(o.includes(e)||Jre(e))}function l4e(e){let o=G(sr,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 uS=e=>qre(e),Ke=e=>uS(e).text.trim()!=="";function Qre(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 eae=e=>e==="heading"?Jr():e==="eyebrow"?Lt():{};function oae(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 tae(e,o){if(e===void 0)return{};if(typeof e=="string")return{variant:e};let t=o[e.key];return{variant:(typeof t=="string"?G(e.map,t):void 0)??e.fallback}}function RF(e,o,t,r,a={}){let n={...o};for(let s of e){let[l,d,c]=typeof s=="string"?[s,s,void 0]:s;if(t[l]===void 0)continue;let f=c?c(t[l],t,a):t[l];f===void 0?delete n[d]:n[d]=f,r(l,d,f===void 0)}return n}function rae(e){let o=new Set([...LF,"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 mS=e=>Ac(e.headPlacement)==="own-box";function aae(e){return mS(e)?"its head sits in a Box of its own above it (own-box): the row draws the head inline":void 0}function nae(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 sae(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 lae(e,o,t){if(!t.press)for(let r of sae(e)){let a=nae(o,r);if(a!==void 0)return a}}function Xs(e,o,t={}){let r=e.props,a=(o.ownBoxConverts?void 0:aae(r))??lae(o,r,t)??o.skip?.(r);if(a!==void 0)return{node:e,nodes:[e],carried:[],dropped:[],siteWrites:[],skipped:a};let n=String(r.id??e.type),s=[],l=[],d=new Set,c=(b,O)=>{s.push({key:b,home:O}),d.add(b)},f=r._partStyles??{},u=rae(o),p=0,h=(b,O)=>({type:b,props:{...O,id:`${n}~${b}-${++p}`}}),g=(b,O,W,T,M,P,F)=>{if(M){for(let E of b??[]){let A=typeof E=="string"?E:E[0];W[A]!==void 0&&F(A,`nothing \u2014 the ${T} has no parts, so it is not drawn`)}return}let w=typeof O=="function"?O(r,t):O??{};return RF(b??[],w,W,(E,A,L)=>F(E,L?`nothing \u2014 the old value draws nothing (${T}: no ${A})`:`${P}${T}: ${A}`),t)},I=b=>ao(b,O=>`${n}~${O}-${++p}`),C=(b,O,W)=>{let T=b.of?b.of(O):Array.isArray(O[b.key])?O[b.key]:[],M=typeof b.props=="function"?b.props(r,t):b.props??{},P=T.map((L,U)=>{let $=L??{},q=b.item?.($,U,r)??{},te=S(q.reverse?[...b.parts].reverse():b.parts,$,!1,`item ${U+1}: `);return b.flat?q.props?te.map(we=>({...we,props:{...we.props,...q.props,id:we.props.id}})):te:[h(mr,{name:`${b.name} ${U+1}`,...M,...q.props??{},[hr]:te})]});if(b.groups){let L=b.groups;return W(b.key,T.length?`one Box per item (${T.length}), in a Box per group`:"nothing \u2014 the list is empty"),Uu(T.map(U=>U??{}),L.of,L.of).map((U,$)=>{let q=U.items.map(ye=>ye.item),te=L.parts?S(L.parts,L.head?.(q,r)??{},!1,`group ${$+1}: `):[],we=U.items.map(ye=>P[ye.index]),ce=L.perRow?.(q.length,r),Ae=Number.isInteger(ce)&&ce>=1?ce:1,Ve=[];if(L.perRow&&Ae<we.length)for(let ye=0;ye*Ae<we.length;ye++)Ve.push(we.slice(ye*Ae,(ye+1)*Ae).flat());return h(mr,{name:`${L.name} ${$+1}`,...L.props??{},[hr]:[...te,h(mr,{name:`${L.itemsName} ${$+1}`,...L.itemsProps?.(q.length,r)??{},[hr]:Ve.length?Ve.map((ye,Re)=>h(mr,{name:`${L.rowName??`${L.itemsName} row`} ${Re+1}`,...L.rowProps??{},[hr]:ye})):we.flat()})]})})}let F=b.perRow?.(r),w=b.perRow?Number.isInteger(F)&&F>=1?F:1:0;if(W(b.key,(T.length?b.flat?`each item's parts (${T.length} items), in order`:`one Box per item (${T.length}), its parts inside`:"nothing \u2014 the list is empty")+(w&&T.length?`, in rows of ${w}`:"")),!w)return P.flat();let E=typeof b.rowProps=="function"?b.rowProps(r,t):b.rowProps??{},A=[];for(let L=0;L*w<P.length;L++){let U=P.slice(L*w,(L+1)*w).flat(),$=b.rowFiller?w-P.slice(L*w,(L+1)*w).length:0;A.push(h(mr,{name:`${b.rowName??`${b.name} row`} ${L+1}`,...E,[hr]:[...U,...Array.from({length:$},(q,te)=>h(mr,{name:`Empty ${te+1}`,...b.rowFiller,[hr]:[]}))]}))}return A},S=(b,O,W,T)=>{let M=[],P=(w,E)=>W?c(w,E):void 0,F=w=>W?f[w]:void 0;for(let w of b)if(!(w.when&&!w.when(r,W?void 0:O)))switch(w.kind){case"text":{let E=uS(O[w.key]);if(!E.text.trim()&&!(W&&t.press&&o.pressKeepsEmpty?.includes(w.key))){P(w.key,"nothing \u2014 empty words draw nothing, so no block");break}let A=eae(w.role??"body"),{_partStyles:L,...U}=A,$=oae(A,w.styleFrom?{...w.style,...w.styleFrom(r,t)}:w.style,F(w.key),w.props?.align);M.push(h("Text",{text:w.mark==="accentLead"?Qre(E.text):w.mark==="accentItalic"?Ba(E.text):E.text,...U,...w.props??{},...$,...E.hidden?{_hidden:!0}:{}})),P(w.key,`${T}Text block: its words${E.hidden?", hidden":""}`);break}case"button":{let E=uS(O[w.key]);if(!E.text.trim()){P(w.key,"nothing \u2014 no words, no button"),P(w.href,"nothing \u2014 no button to link"),typeof w.variant=="object"&&P(w.variant.key,"nothing \u2014 no button to style");break}let A=typeof O[w.href]=="string"&&O[w.href]?O[w.href]:"#",L={...w.style??{},...F(w.key)??{}};M.push(h("ButtonBlock",{label:E.text,href:A,...typeof w.props=="function"?w.props(O,t):w.props??{},...tae(w.variant,O),...Object.keys(L).length?{_partStyles:{label:L}}:{},...E.hidden?{_hidden:!0}:{}})),P(w.key,`${T}Button block: its words`),P(w.href,`${T}Button block: its link`),typeof w.variant=="object"&&P(w.variant.key,`${T}Button block: its Style`);break}case"image":{let E=O[w.key];if(typeof E!="string"||!E){P(w.key,"nothing \u2014 no picture, no block"),w.alt&&P(w.alt,"nothing \u2014 no picture to describe");break}let A=w.alt&&typeof O[w.alt]=="string"?O[w.alt]:"";M.push(h("ImageBlock",{src:E,alt:A,...w.props??{}})),P(w.key,`${T}Image block: its picture`),w.alt&&P(w.alt,`${T}Image block: its alt text`);break}case"list":{M.push(...C(w,O,P));break}case"group":{let E=S(w.parts,O,W,T),A=g(w.box,w.props,O,`${w.name} Box`,!E.length&&!w.keepEmpty,T,P);A&&M.push(h(mr,{name:w.name,...A,[hr]:E}));break}case"block":{let E=w.parts?S(w.parts,O,W,T):[],A=g(w.box,w.props,O,`${w.type} block`,!!w.parts&&!E.length&&!w.keepEmpty,T,P);A&&M.push(h(w.type,{...A,...w.slot?{[w.slot]:E}:{}}));break}case"core":{let E=w.as??e.type,A={...w.headless?{}:{headPlacement:"own-box"},...w.props??{}},L=w.keep==="rest"?Object.keys(O).filter($=>!u.has($)&&!($ in A)):w.keep;for(let $ of L)O[$]!==void 0&&(A[$]=O[$],P($,`the ${E} block inside the Box`));if(w.keep==="rest"){for(let q of Object.keys(w.props??{}))O[q]!==void 0&&!u.has(q)&&P(q,`nothing \u2014 the ${E} block inside the Box has the row's own value`);O.headPlacement!==void 0&&P("headPlacement",`the ${E} block inside the Box: own-box`);let $=Object.fromEntries(Object.entries(f).filter(([q])=>!u.has(q)));Object.keys($).length&&(A._partStyles=$)}for(let[$,q]of Object.entries(w.rename??{}))O[$]!==void 0&&(A[q]=O[$],P($,`the ${E} block inside the Box: ${q}`));if(w.derive){Object.assign(A,w.derive.props(O,t));for(let $ of w.derive.reads)O[$]!==void 0&&P($,`the ${E} block inside the Box`)}let U=typeof w.slots=="function"?w.slots(O,t):w.slots??{};for(let[$,q]of Object.entries(U))A[$]=q.flatMap(te=>"kind"in te?C(te,O,P):I([te]));M.push(h(E,A));break}}return M},k=(b,O)=>{let W=O===0?"Box":`${b.name} Box`,T=S(b.parts,r,!0,O===0?"":`${W}: `),M=typeof b.boxProps=="function"?b.boxProps(r,t):b.boxProps??{},P=RF(b.box??[],M,r,(F,w,E)=>c(F,E?`nothing \u2014 the old value draws nothing (${W}: no ${w})`:`${W}: ${w}`),t);return{type:mr,props:{name:b.name,...P,[hr]:T,id:Xre(n,O)}}},y=[o,...o.also??[]].map(k);r._partStyles!==void 0&&c("_partStyles","each old part's style moved to its new part");for(let[b,O]of Object.entries(o.reads??{}))r[b]!==void 0&&c(b,O);for(let[b,O]of Object.entries(o.drop??{}))b in r&&(l.push({key:b,why:O}),d.add(b));for(let b of Object.keys(r))LF.has(b)||d.has(b)||l.push({key:b,why:"not in the row \u2014 not carried"});return{node:y[0],nodes:y,carried:s,dropped:l,siteWrites:[...o.site?.(e,t)??[]]}}function DF(e,o=FF,t={}){if(!Array.isArray(e))return[];let r=[];return e.forEach((a,n)=>{let s=a&&typeof a.type=="string"&&o.includes(a.type)?G(Cn,a.type):void 0;if(!s)return;let l=Xs(a,s,t);l.skipped===void 0&&r.push({index:n,node:l.node,nodes:l.nodes})}),r}import{BLOCK_FIXED_WIDTH as uae,BLOCK_SIZE_KEYS as mae,parseBlockWidthFit as zu,phoneKey as MF,parseTextFit as Gu,tabletKey as HF,viewKeyAt as WF}from"efficient-easel/draw";import{sideLengthAt as hae}from"efficient-easel/screen/lib/content/length-units";import{VIEW_DESKTOP_MIN as iae,VIEW_TABLET_MIN as dae}from"efficient-easel/screen/lib/content/view-tiers";var Hr={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"},lt=Hr,cae=e=>e.flatMap(o=>[`[${o}] p`,`[${o}] li`]).join(","),fae=String.raw`(function (doc) {
|
|
79
|
+
if (doc.__sfFitWords) return;
|
|
80
|
+
var win = doc.defaultView;
|
|
81
|
+
var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
|
|
82
|
+
// Body text a block asked to shrink (its Text group's Shrink), beside
|
|
83
|
+
// the headings: what this script may fit at all. modeOf() decides each one.
|
|
84
|
+
var SHRINK_BODY = ${JSON.stringify(cae([lt.fit,lt.fitTablet,lt.fitPhone]))};
|
|
85
|
+
var CANDIDATES = SELECTOR + "," + SHRINK_BODY;
|
|
86
|
+
var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1, PHONE_BELOW = ${Xt};
|
|
87
|
+
var TABLET_MIN = ${dae}, DESKTOP_MIN = ${iae};
|
|
88
|
+
|
|
89
|
+
// A block's own answer (lib/content/block-size, the wrapper's attributes):
|
|
90
|
+
// the fit "wrap" | "shrink" | "line" | "ellipsis" and the floor, each with a tablet and a
|
|
91
|
+
// phone twin. From 1100 the desktop's; from the tablet line (800 for a holder
|
|
92
|
+
// in a Box, marked edge; 720 outside one) the tablet's where it has one;
|
|
93
|
+
// under it the phone's, else the tablet's, else the desktop's. With no
|
|
94
|
+
// tablet answer the phone's is read under 800, as before (the edge moves with
|
|
95
|
+
// F1). With none, a heading shrinks and body text wraps, as always.
|
|
96
|
+
// A holder with any tablet attribute takes the three views (its line and 1100)
|
|
97
|
+
// for its fit AND its floor together; one with none keeps the 800 edge.
|
|
98
|
+
var TABLET_ATTRS = [${JSON.stringify(lt.fitTablet)}, ${JSON.stringify(lt.minTablet)}];
|
|
99
|
+
function own(el, attr, tabletAttr, phoneAttr) {
|
|
100
|
+
var holder = el.closest("[" + attr + "],[" + tabletAttr + "],[" + phoneAttr + "]");
|
|
101
|
+
if (!holder) return null;
|
|
102
|
+
var w = win.innerWidth, d = holder.getAttribute(attr);
|
|
103
|
+
if (w >= DESKTOP_MIN) return d;
|
|
104
|
+
var t = holder.getAttribute(tabletAttr), p = holder.getAttribute(phoneAttr);
|
|
105
|
+
if (w < (holder.hasAttribute(${JSON.stringify(lt.edge)}) ? PHONE_BELOW : TABLET_MIN)) return p || t || d;
|
|
106
|
+
if (holder.hasAttribute(TABLET_ATTRS[0]) || holder.hasAttribute(TABLET_ATTRS[1])) return t || d;
|
|
107
|
+
return (w < PHONE_BELOW && p) || d;
|
|
108
|
+
}
|
|
109
|
+
function modeOf(el) {
|
|
110
|
+
var mode = own(el, ${JSON.stringify(lt.fit)}, ${JSON.stringify(lt.fitTablet)}, ${JSON.stringify(lt.fitPhone)});
|
|
111
|
+
if (mode === "wrap" || mode === "shrink") return mode;
|
|
112
|
+
// One line and Shorten (stored "ellipsis", which cuts its words with "..."):
|
|
113
|
+
// the block keeps its words at their set size, nothing shrinks.
|
|
114
|
+
if (mode === "line" || mode === "ellipsis") return "wrap";
|
|
115
|
+
return el.matches(SELECTOR) ? "shrink" : "wrap";
|
|
116
|
+
}
|
|
117
|
+
function floorOf(el, set) {
|
|
118
|
+
var raw = own(el, ${JSON.stringify(lt.min)}, ${JSON.stringify(lt.minTablet)}, ${JSON.stringify(lt.minPhone)});
|
|
119
|
+
var min = parseFloat(raw);
|
|
120
|
+
// A Min font size in vw (block-size.ts): a share of the window's width.
|
|
121
|
+
if (/vw$/.test(String(raw))) min = min * win.innerWidth / 100;
|
|
122
|
+
return min >= 0 ? min : Math.max(set * MIN_SCALE, MIN_PX);
|
|
123
|
+
}
|
|
124
|
+
|
|
125
|
+
function measure(el) {
|
|
126
|
+
var widest = 0, current = 0, last = null, split = false, lastBlock = null;
|
|
127
|
+
function blockOf(n) {
|
|
128
|
+
for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
|
|
129
|
+
var d = win.getComputedStyle(p).display;
|
|
130
|
+
if (d.indexOf("inline") !== 0 && d !== "contents") return p;
|
|
131
|
+
}
|
|
132
|
+
return el;
|
|
133
|
+
}
|
|
134
|
+
function close() { if (current > widest) widest = current; current = 0; last = null; }
|
|
135
|
+
var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
|
|
136
|
+
while ((node = walker.nextNode())) {
|
|
137
|
+
if (node.nodeType === 1) {
|
|
138
|
+
if (node.tagName === "BR" || node.tagName === "WBR") close();
|
|
139
|
+
continue;
|
|
140
|
+
}
|
|
141
|
+
var block = blockOf(node);
|
|
142
|
+
if (block !== lastBlock) close();
|
|
143
|
+
lastBlock = block;
|
|
144
|
+
var re = /(\S+)|(\s+)/g, m;
|
|
145
|
+
while ((m = re.exec(node.data))) {
|
|
146
|
+
if (m[2]) { close(); continue; }
|
|
147
|
+
range.setStart(node, m.index);
|
|
148
|
+
range.setEnd(node, m.index + m[0].length);
|
|
149
|
+
var rects = range.getClientRects();
|
|
150
|
+
for (var i = 0; i < rects.length; i++) {
|
|
151
|
+
var r = rects[i];
|
|
152
|
+
if (r.width <= 0) continue;
|
|
153
|
+
current += r.width;
|
|
154
|
+
if (last && r.top > last.top + last.height / 2) split = true;
|
|
155
|
+
last = r;
|
|
156
|
+
}
|
|
157
|
+
}
|
|
158
|
+
}
|
|
159
|
+
close();
|
|
160
|
+
return { widest: widest, split: split };
|
|
161
|
+
}
|
|
162
|
+
|
|
163
|
+
function lineWidth(el) {
|
|
164
|
+
var cs = win.getComputedStyle(el);
|
|
165
|
+
return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
|
|
166
|
+
- parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
// ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
|
|
170
|
+
// runs before React hydrates, and React 19 in development reports ANY
|
|
171
|
+
// attribute that differs from what it rendered ("a tree hydrated but some
|
|
172
|
+
// attributes didn't match"): first our inline font-size on the hero (which
|
|
173
|
+
// React owns via --heading-size), then, when that moved to a data-sf-fit
|
|
174
|
+
// attribute, the attribute itself. So the fitted size lives only in this
|
|
175
|
+
// script's own stylesheet, in <head>, addressed to each heading by its
|
|
176
|
+
// POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
|
|
177
|
+
// structure changes, so the rules are rewritten in the MutationObserver
|
|
178
|
+
// callback, which runs before the next paint. !important so the size also
|
|
179
|
+
// beats a part's own inline size.
|
|
180
|
+
var head = doc.head || doc.documentElement;
|
|
181
|
+
var fitEl = doc.createElement("style");
|
|
182
|
+
fitEl.id = "storefront-fit-words-sizes";
|
|
183
|
+
head.appendChild(fitEl);
|
|
184
|
+
// heading -> [[element, fitted size]]: the heading and each Text part inside
|
|
185
|
+
// it that holds its own size (a span [data-sf-part-styled]), e.g.
|
|
186
|
+
// [[h2, "43.8px"], [span, "43.8px"]]. Sizing the heading alone leaves such
|
|
187
|
+
// a part at its own size, and the word still breaks (card C25, Spec Table).
|
|
188
|
+
var fitted = new Map();
|
|
189
|
+
|
|
190
|
+
function pathOf(el) {
|
|
191
|
+
var parts = [];
|
|
192
|
+
for (var e = el; e && e.parentElement; e = e.parentElement) {
|
|
193
|
+
var i = 1, s = e;
|
|
194
|
+
while ((s = s.previousElementSibling)) i++;
|
|
195
|
+
parts.unshift("*:nth-child(" + i + ")");
|
|
196
|
+
}
|
|
197
|
+
return ":root>" + parts.join(">");
|
|
198
|
+
}
|
|
199
|
+
function writeRules() {
|
|
200
|
+
var css = "";
|
|
201
|
+
fitted.forEach(function (sizes, el) {
|
|
202
|
+
if (!el.isConnected) { fitted.delete(el); return; }
|
|
203
|
+
for (var i = 0; i < sizes.length; i++) css += pathOf(sizes[i][0]) + "{font-size:" + sizes[i][1] + " !important}";
|
|
204
|
+
});
|
|
205
|
+
if (fitEl.textContent !== css) fitEl.textContent = css;
|
|
206
|
+
}
|
|
207
|
+
|
|
208
|
+
function unfit(el) {
|
|
209
|
+
if (fitted.delete(el)) writeRules();
|
|
210
|
+
}
|
|
211
|
+
|
|
212
|
+
function fits(el) {
|
|
213
|
+
var m = measure(el);
|
|
214
|
+
return !m.split && m.widest <= lineWidth(el) + SLACK;
|
|
215
|
+
}
|
|
216
|
+
|
|
217
|
+
function fit(el) {
|
|
218
|
+
unfit(el);
|
|
219
|
+
if (modeOf(el) !== "shrink") return; // the block's own Wrap
|
|
220
|
+
if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
|
|
221
|
+
if (fits(el)) return;
|
|
222
|
+
var set = parseFloat(win.getComputedStyle(el).fontSize);
|
|
223
|
+
if (!set) return;
|
|
224
|
+
var floor = floorOf(el, set);
|
|
225
|
+
if (floor >= set) return;
|
|
226
|
+
function size(px) { return Math.floor(px * 10) / 10 + "px"; }
|
|
227
|
+
// The SEARCH tries sizes on the element's own style and then puts that
|
|
228
|
+
// attribute back byte for byte (or removes it, if it had none), so nothing
|
|
229
|
+
// is left for React to see. A trial in a stylesheet instead restyles the
|
|
230
|
+
// whole page per step: a full pass on the Hartes home took 75–160ms at 4x
|
|
231
|
+
// CPU that way.
|
|
232
|
+
// Every trial scales the heading AND each part inside it that holds its
|
|
233
|
+
// own size, by the same ratio, so a part keeps its proportion to the
|
|
234
|
+
// heading.
|
|
235
|
+
var carriers = [el].concat(Array.prototype.slice.call(el.querySelectorAll("[data-sf-part-styled]")));
|
|
236
|
+
var base = carriers.map(function (c) { return parseFloat(win.getComputedStyle(c).fontSize) || set; });
|
|
237
|
+
var saved = carriers.map(function (c) { return c.hasAttribute("style") ? c.getAttribute("style") : null; });
|
|
238
|
+
function attempt(px) {
|
|
239
|
+
for (var i = 0; i < carriers.length; i++) carriers[i].style.setProperty("font-size", size(base[i] * px / set), "important");
|
|
240
|
+
}
|
|
241
|
+
function done() {
|
|
242
|
+
for (var i = 0; i < carriers.length; i++) {
|
|
243
|
+
if (saved[i] !== null) carriers[i].setAttribute("style", saved[i]); else carriers[i].removeAttribute("style");
|
|
244
|
+
}
|
|
245
|
+
}
|
|
246
|
+
attempt(floor);
|
|
247
|
+
if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
|
|
248
|
+
var lo = floor, hi = set;
|
|
249
|
+
for (var i = 0; i < 8; i++) {
|
|
250
|
+
var mid = (lo + hi) / 2;
|
|
251
|
+
attempt(mid);
|
|
252
|
+
if (fits(el)) lo = mid; else hi = mid;
|
|
253
|
+
}
|
|
254
|
+
done();
|
|
255
|
+
fitted.set(el, carriers.map(function (c, i) { return [c, size(base[i] * lo / set)]; }));
|
|
256
|
+
writeRules();
|
|
257
|
+
}
|
|
258
|
+
|
|
259
|
+
// What each heading measured right after we last fitted it, so the
|
|
260
|
+
// ResizeObserver below can tell a real change (a font swap, a rotate, a
|
|
261
|
+
// container that moved) from the size change our own write just caused.
|
|
262
|
+
var seen = new WeakMap();
|
|
263
|
+
function remember(el) {
|
|
264
|
+
var b = el.getBoundingClientRect();
|
|
265
|
+
seen.set(el, b.width + "x" + b.height);
|
|
266
|
+
}
|
|
267
|
+
function fitAndRemember(el) { fit(el); remember(el); }
|
|
268
|
+
|
|
269
|
+
// ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
|
|
270
|
+
// WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
|
|
271
|
+
// fitted heading, and fonts.ready resolves only after that frame is painted —
|
|
272
|
+
// measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
|
|
273
|
+
// reported here is fitted in the same frame, so the broken state is never
|
|
274
|
+
// drawn. It also covers a container that resizes.
|
|
275
|
+
var ro = new win.ResizeObserver(function (entries) {
|
|
276
|
+
for (var i = 0; i < entries.length; i++) {
|
|
277
|
+
var el = entries[i].target;
|
|
278
|
+
var b = el.getBoundingClientRect();
|
|
279
|
+
if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
|
|
280
|
+
fitAndRemember(el);
|
|
281
|
+
}
|
|
282
|
+
});
|
|
283
|
+
// Its own set, not seen: fitAndRemember has written seen by the
|
|
284
|
+
// time watch runs, so a seen test observed no heading at all, and a
|
|
285
|
+
// heading fitted in the fallback face was never fitted again when the web
|
|
286
|
+
// font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
|
|
287
|
+
var watched = new WeakSet();
|
|
288
|
+
function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
|
|
289
|
+
|
|
290
|
+
function fitAll() {
|
|
291
|
+
var els = doc.querySelectorAll(CANDIDATES);
|
|
292
|
+
for (var i = 0; i < els.length; i++) {
|
|
293
|
+
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
294
|
+
else unfit(els[i]); // Wrap here (a phone value may differ from the desktop's)
|
|
295
|
+
}
|
|
296
|
+
}
|
|
297
|
+
|
|
298
|
+
var queued = 0, all = false, touched = new Set();
|
|
299
|
+
function run() {
|
|
300
|
+
queued = 0;
|
|
301
|
+
if (all) { all = false; touched.clear(); fitAll(); return; }
|
|
302
|
+
var els = Array.from(touched);
|
|
303
|
+
touched.clear();
|
|
304
|
+
for (var i = 0; i < els.length; i++) {
|
|
305
|
+
if (!els[i].isConnected) continue;
|
|
306
|
+
if (modeOf(els[i]) === "shrink") { fitAndRemember(els[i]); watch(els[i]); }
|
|
307
|
+
else unfit(els[i]);
|
|
308
|
+
}
|
|
309
|
+
}
|
|
310
|
+
function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
|
|
311
|
+
function scheduleAll() { all = true; schedule(); }
|
|
312
|
+
|
|
313
|
+
fitAll();
|
|
314
|
+
// A backstop only: a font that changes widths without changing any
|
|
315
|
+
// heading's box is not seen by the ResizeObserver.
|
|
316
|
+
if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
|
|
317
|
+
|
|
318
|
+
// …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
|
|
319
|
+
// heading sized to its own text (fit-content, a flex item) keeps the SAME box
|
|
320
|
+
// when the phone turns to 844, so nothing reports a change and it would stay
|
|
321
|
+
// shrunk. The probe's rotate check caught exactly that.
|
|
322
|
+
var lastWidth = win.innerWidth;
|
|
323
|
+
function onResize() {
|
|
324
|
+
if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
|
|
325
|
+
lastWidth = win.innerWidth;
|
|
326
|
+
scheduleAll();
|
|
327
|
+
}
|
|
328
|
+
win.addEventListener("resize", onResize);
|
|
329
|
+
|
|
330
|
+
var mo = new win.MutationObserver(function (records) {
|
|
331
|
+
// Positions first: a node added or removed anywhere can shift the
|
|
332
|
+
// nth-child path of a fitted heading, and this callback runs before paint.
|
|
333
|
+
if (fitted.size) {
|
|
334
|
+
for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
|
|
335
|
+
}
|
|
336
|
+
for (var i = 0; i < records.length; i++) {
|
|
337
|
+
var r = records[i];
|
|
338
|
+
// A block's text fit (Wrap / Shrink / One line) or Min font size changed in the editor:
|
|
339
|
+
// only a data-fit attribute moved, so every heading is measured again.
|
|
340
|
+
if (r.type === "attributes") { scheduleAll(); continue; }
|
|
341
|
+
var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
|
|
342
|
+
var owner = target && target.closest(CANDIDATES);
|
|
343
|
+
if (owner) touched.add(owner);
|
|
344
|
+
for (var j = 0; j < r.addedNodes.length; j++) {
|
|
345
|
+
var n = r.addedNodes[j];
|
|
346
|
+
if (n.nodeType !== 1) continue;
|
|
347
|
+
if (n.matches(CANDIDATES)) touched.add(n);
|
|
348
|
+
var inner = n.querySelectorAll(CANDIDATES);
|
|
349
|
+
for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
|
|
350
|
+
}
|
|
351
|
+
}
|
|
352
|
+
if (touched.size) schedule();
|
|
353
|
+
});
|
|
354
|
+
mo.observe(doc.body, {
|
|
355
|
+
childList: true,
|
|
356
|
+
subtree: true,
|
|
357
|
+
characterData: true,
|
|
358
|
+
attributes: true,
|
|
359
|
+
attributeFilter: ${JSON.stringify(Object.values(lt))},
|
|
360
|
+
});
|
|
361
|
+
|
|
362
|
+
doc.__sfFitWords = function stop() {
|
|
363
|
+
win.removeEventListener("resize", onResize);
|
|
364
|
+
ro.disconnect();
|
|
365
|
+
mo.disconnect();
|
|
366
|
+
if (queued) win.cancelAnimationFrame(queued);
|
|
367
|
+
fitted.clear();
|
|
368
|
+
fitEl.remove();
|
|
369
|
+
delete doc.__sfFitWords;
|
|
370
|
+
};
|
|
371
|
+
// For the probe and for debugging: which headings are fitted, at what size,
|
|
372
|
+
// and the sheet that holds it (disable it to read a heading's set size).
|
|
373
|
+
doc.__sfFitWords.fitted = fitted;
|
|
374
|
+
doc.__sfFitWords.sheet = fitEl;
|
|
375
|
+
// …and the two questions a block's own answer changes, for the guard
|
|
376
|
+
// (scripts/test-block-size.tsx §5): which mode an element is in, and its floor.
|
|
377
|
+
doc.__sfFitWords.modeOf = modeOf;
|
|
378
|
+
doc.__sfFitWords.floorOf = floorOf;
|
|
379
|
+
})(document);`,pae="storefront-fit-words";function NF(e){let o=e.createElement("script");return o.id=pae,o.textContent=fae,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var xae="sf-block-size",ad=["width","minWidth","maxWidth"],$u=e=>`${e}Unit`,Ia=e=>typeof e=="number"&&Number.isFinite(e)&&e>=0?e:void 0,gae={desktop:{fill:"view-wide:w-full view-wide:[.flex-row>&]:grow",fixed:"view-wide:w-[min(var(--sf-bw),100%)] view-wide:basis-auto! view-wide:grow-0! view-wide:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},$F={desktop:{fill:"view-desktop:w-full view-desktop:[.flex-row>&]:grow",fixed:"view-desktop:w-[min(var(--sf-bw),100%)] view-desktop:basis-auto! view-desktop:grow-0! view-desktop:shrink-0"},tablet:{fill:"view-wide:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-wide:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-wide:max-view-desktop:basis-auto! view-wide:max-view-desktop:grow-0! view-wide:max-view-desktop:shrink-0"},phone:{fill:"max-view-wide:w-full",fixed:"max-view-wide:w-[min(var(--sf-bw-p),100%)] max-view-wide:basis-auto! max-view-wide:grow-0! max-view-wide:shrink-0"}},Iae={desktop:$F.desktop,tablet:{fill:"view-tablet:max-view-desktop:w-full view-wide:max-view-desktop:[.flex-row>&]:grow",fixed:"view-tablet:max-view-desktop:w-[min(var(--sf-bw-t),100%)] view-tablet:max-view-desktop:basis-auto! view-tablet:max-view-desktop:grow-0! view-tablet:max-view-desktop:shrink-0"},phone:{fill:"max-view-tablet:w-full",fixed:"max-view-tablet:w-[min(var(--sf-bw-p),100%)] max-view-tablet:basis-auto! max-view-tablet:grow-0! max-view-tablet:shrink-0"}},bae={two:{desktop:"view-wide:[.flex-row>*>&]:grow"},three:{desktop:"view-desktop:[.flex-row>*>&]:grow",tablet:"view-wide:max-view-desktop:[.flex-row>*>&]:grow"}},yae={desktop:"--sf-bw",tablet:"--sf-bw-t",phone:"--sf-bw-p"},Sae={fill:"data-sf-width-fill",fixed:"data-sf-width-fixed"},wae="data-sf-min-width",UF={two:{desktop:"wide",phone:vh.phone},three:vh},Cae={minWidth:{desktop:["--sf-bmin","view-wide:min-w-[var(--sf-bmin)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-wide:max-w-[var(--sf-bmax)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},hS={minWidth:{desktop:["--sf-bmin","view-desktop:min-w-[var(--sf-bmin)]!"],tablet:["--sf-bmin-t","view-wide:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-wide:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:["--sf-bmax","view-desktop:max-w-[var(--sf-bmax)]"],tablet:["--sf-bmax-t","view-wide:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-wide:max-w-[var(--sf-bmax-p)]"]}},kae={minWidth:{desktop:hS.minWidth.desktop,tablet:["--sf-bmin-t","view-tablet:max-view-desktop:min-w-[var(--sf-bmin-t)]!"],phone:["--sf-bmin-p","max-view-tablet:min-w-[var(--sf-bmin-p)]!"]},maxWidth:{desktop:hS.maxWidth.desktop,tablet:["--sf-bmax-t","view-tablet:max-view-desktop:max-w-[var(--sf-bmax-t)]"],phone:["--sf-bmax-p","max-view-tablet:max-w-[var(--sf-bmax-p)]"]}},vae=["widthFit",...ad],GF={desktop:"view-wide:whitespace-nowrap view-wide:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},xS={desktop:"view-desktop:whitespace-nowrap view-desktop:[&_*]:whitespace-nowrap!",tablet:"view-wide:max-view-desktop:whitespace-nowrap view-wide:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-wide:whitespace-nowrap max-view-wide:[&_*]:whitespace-nowrap!"},Tae={desktop:xS.desktop,tablet:"view-tablet:max-view-desktop:whitespace-nowrap view-tablet:max-view-desktop:[&_*]:whitespace-nowrap!",phone:"max-view-tablet:whitespace-nowrap max-view-tablet:[&_*]:whitespace-nowrap!"},KF={desktop:"view-wide:min-w-0 view-wide:[&_*]:overflow-hidden view-wide:[&_*]:text-ellipsis",phone:"max-view-wide:min-w-0 max-view-wide:[&_*]:overflow-hidden max-view-wide:[&_*]:text-ellipsis"},Pae={desktop:"view-desktop:min-w-0 view-desktop:[&_*]:overflow-hidden view-desktop:[&_*]:text-ellipsis",tablet:"view-wide:max-view-desktop:min-w-0 view-wide:max-view-desktop:[&_*]:overflow-hidden view-wide:max-view-desktop:[&_*]:text-ellipsis",phone:KF.phone},jF={desktop:"view-wide:max-w-full",phone:"max-view-wide:max-w-full"},zF={desktop:"view-desktop:max-w-full",tablet:"view-wide:max-view-desktop:max-w-full",phone:jF.phone};function g4e(e){let o=gS(e);return o.sides.filter(t=>o.mode[t]==="fill").map(t=>bae[o.three?"three":"two"][t]).filter(Boolean).join(" ")}function I4e(e){let{three:o,sides:t,mode:r,lengthPerSide:a}=gS(e),n=c=>o?UF.three[c]:UF.two[c],s={fill:[],fixed:[],min:[]},l=a("minWidth");for(let c of t){let f=r[c];(f==="fill"||f==="fixed")&&s[f].push(n(c)),l[c]!==void 0&&s.min.push(n(c))}let d={};for(let c of["fill","fixed"])s[c].length&&(d[Sae[c]]=s[c].join(" "));return s.min.length&&(d[wae]=s.min.join(" ")),d}function gS(e){let o=vae.some(a=>{let n=e[a]?.tablet;return a==="widthFit"?zu(n)!==void 0:Ia(n)!==void 0}),t=o?["desktop","tablet","phone"]:["desktop","phone"],r=(a,n)=>{let s=a(n?.desktop),l=o?a(n?.tablet)??s:s;return{desktop:s,tablet:l,phone:a(n?.phone)??l}};return{three:o,sides:t,perSide:r,lengthPerSide:a=>{let n=$u(a),s={};for(let d of t)s[WF(a,wr(d))]=Ia(e[a]?.[d]),s[WF(n,wr(d))]=e.units?.[a]?.[d];let l=d=>hae(s,{length:a},n,wr(d),"length")??void 0;return{desktop:l("desktop"),tablet:l("tablet"),phone:l("phone")}},mode:r(zu,e.widthFit)}}function b4e(e,{atSectionLine:o=!1}={}){let t=["desktop","tablet","phone"].some(E=>Gu(e.textFit?.[E])==="ellipsis"),r=o&&!t,a=r?Iae:$F,n=r?kae:hS,s=r?Tae:xS,l=[],d={},c={},{three:f,sides:u,lengthPerSide:p,mode:h}=gS(e),g=p("width");for(let E of u){let A=h[E];!A||A==="fit"||(l.push(f?a[E][A]:gae[E][A]),A==="fixed"&&(d[yae[E]]=Le(g[E]?.value??uae.fallback,g[E]?.unit)))}for(let E of ad.filter(A=>A!=="width")){let A=p(E);for(let L of u){let U=A[L];if(U===void 0)continue;let[$,q]=f?n[E][L]:Cae[E][L];d[$]=Le(U.value,U.unit),l.push(q)}}let I=Gu(e.textFit?.desktop),C=Gu(e.textFit?.phone),S=E=>{let A=Ia(e.minFont?.[E]);return A===void 0?void 0:e.units?.minFont?.[E]==="vw"?`${A}vw`:String(A)},k=S("desktop"),y=S("phone"),b=Gu(e.textFit?.tablet),O=b!==I||C!==void 0?b:void 0,W=S("tablet"),T=W!==k||y!==void 0?W:void 0,M=Ia(e.maxWidth?.desktop),P=Ia(e.maxWidth?.tablet)??M,F={desktop:M!==void 0,tablet:P!==void 0,phone:(Ia(e.maxWidth?.phone)??P)!==void 0},w=(E,A,L)=>{if(A!=="line"&&A!=="ellipsis")return;let U=E==="tablet"?void 0:E,$=(q,te)=>L||!U?q[E]:te[U];if(A==="line"){l.push($(s,GF));return}if(l.push($(xS,GF)),l.push($(Pae,KF)),f&&!L&&E==="desktop")for(let q of["desktop","tablet"])F[q]||l.push(zF[q]);else F[E]||l.push($(zF,jF))};return O?(w("desktop",I,!0),w("tablet",O,!0),w("phone",C??O,!0)):(w("desktop",I,!1),w("phone",C??I,!1)),I&&(c[Hr.fit]=I),O&&(c[Hr.fitTablet]=O),C&&(c[Hr.fitPhone]=C),k!==void 0&&(c[Hr.min]=k),T!==void 0&&(c[Hr.minTablet]=T),y!==void 0&&(c[Hr.minPhone]=y),!r&&(O||T!==void 0)&&(c[Hr.edge]=""),l.length===0&&Object.keys(c).length===0?null:{className:[xae,...l].join(" "),style:d,attrs:c}}function y4e(e){if(Ia(e.maxWidth?.desktop)!==void 0)return!0;let o=zu(e.widthFit?.desktop);return o==="fill"||o==="fixed"}function S4e(e){return["desktop","tablet","phone"].some(o=>{let t=zu(e.widthFit?.[o]);return t==="fixed"||t==="fill"||Ia(e.minWidth?.[o])!==void 0})}function w4e(e){let o={};for(let t of mae){let r=e[t],a=e[HF(t)],n=e[MF(t)];(r!==void 0||a!==void 0||n!==void 0)&&(o[t]={desktop:r,tablet:a,phone:n});let s=$u(t),l={desktop:e[s],tablet:e[HF(s)],phone:e[MF(s)]};(l.desktop!==void 0||l.tablet!==void 0||l.phone!==void 0)&&((o.units??={})[t]=l)}return o}var VF={label:"Button",defaultProps:{label:"",href:"#",variant:"primary",align:"left",contained:!0}};import{jsx as _ae}from"react/jsx-runtime";import{SITE_SIDE as Eae}from"efficient-easel/screen/lib/content/length-units";var YF="sideSpace",vn=Eae,T4e=[{value:"box",label:"Box"},{value:vn,label:"Site"}],P4e="box",E4e="Box: on small screens the Box keeps its own side space, up to 24 px. Site: it uses the site's Side space, as the site's own sections do. It has no effect when Content is Full width.";function qF(e){return e===vn?vn:"box"}function O4e(e){return e===vn?vn:void 0}import{isNodeList as Oae}from"efficient-easel/data";var IS=new Set(["FAQ"]);function XF(e,o){if(!IS.has(e))return!1;let t=o.template;return typeof t=="function"?(t.blockCount??0)>0:Oae(t)}var Ku={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}},ZF=new Set(Object.keys(Ku)),QF=new Set(["Flex","Text","Heading","ImageBlock"]),Aae=new Set(["Divider"]),Rae=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),JF=new Set(["ProductGrid"]);function bS(e,o,t=!1){let r=e.render;e.render=a=>{if(o?.(a))return r(a);let n=Bf({...AO(a,Ff,t),sideSpace:qF(a.sideSpace)}),s=r(a),l=Pk(a);return n?_ae(dc,{className:l?`${n.className} ${l}`:n.className,style:n.style,children:s}):s}}var U4e={name:"sectionPadding",applies:(e,o,t)=>o.isSection(e)&&!Rae.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){ZF.has(o)||JF.has(o)||(e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})})},draw(e,o){if(ZF.has(o)){let t=e.render,r=G(Ku,o);e.render=a=>{let n=Df(a,r);return t({...a,padTop:n.top,padBottom:n.bottom})};return}if(JF.has(o)){bS(e);return}QF.has(o)||Aae.has(o)||bS(e,o==="Flex"?t=>lg(t.bgImage):IS.has(o)?t=>XF(o,t):void 0,!0)}},Lae=["Heading","Text","ImageBlock"],Fae=["LogoBlock"],G4e={name:"blockPadding",applies:(e,o,t)=>(Lae.includes(e)||Fae.includes(e))&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sidesPaddingFields({tablet:!0,siteSide:!0})}},draw(e,o){QF.has(o)||bS(e,void 0,!0)}};import{parseHexColor as Bae}from"efficient-shell/format";import{convertLength as Dae}from"efficient-easel/screen/lib/content/length-units";var xr=(e,o,t,r)=>o===t?e:Dae(e,o,t,r,{min:0,max:200,step:4}),Tn={textFit:"line",textFitPhone:"wrap"},Pn={...H,[At]:""},{label:g5e,href:I5e,...Nae}=VF.defaultProps,wo=Nae,En={buttonFillOpacity:0,buttonBorder:{width:0},buttonPaddingTop:0,buttonPaddingRight:0,buttonPaddingBottom:0,buttonPaddingLeft:0},J={...Tc,sectionAccent:0},Js={sectionAccent:-1},ae=["gridSpan","sectionHeightMode","sectionHeightValue","sectionHeightUnit","sectionHeightModeTablet","sectionHeightValueTablet","sectionHeightUnitTablet","sectionHeightModePhone","sectionHeightValuePhone","sectionHeightUnitPhone","sectionCorners","sectionCornerSides","sectionBorder","sectionBorderTablet","sectionBorderPhone","sectionAccent",$l.unitKey,...XO,...KO,"anchor",wl,...fs,...rc,...fu,...tc(["widthFit",...ad,...ad.map($u)]),...Object.values(to)],Zs="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",ee={sectionSurface:"read by nothing in src/ (searched 2026-10-24): a retired theme key that draws nothing today, so dropping it changes nothing",widthMode:Zs,fullWidth:Zs,pageWidth:Zs,backgroundWidth:Zs,contentWidth:Zs,contentMax:Zs},le=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 ie(e,o){let t=j(e.sectionPaddingTop)??0,r=j(e.sectionPaddingBottom)??0,a=j(e.sectionPaddingTopTablet),n=j(e.sectionPaddingBottomTablet),s=eo(e.sectionPaddingUnit),l=eo(e.sectionPaddingUnitTablet),d=eo(e.sectionPaddingUnitPhone),c=(u,p,h,g)=>{let I=j(u);if(I!==void 0)return I+xr(g,"px",d,"mobile");let C=p===void 0?{n:h,unit:s}:{n:p,unit:l};return xr(C.n,C.unit,d,"mobile")+xr(g,"px",d,"mobile")},f=(u,p,h,g,I)=>p!==void 0?{[u]:p+xr(I??g,"px",l,"tablet")}:I===void 0?{}:{[u]:xr(h,s,l,"tablet")+xr(I,"px",l,"tablet")};return{sectionPaddingTop:t+xr(o.top,"px",s,"desktop"),sectionPaddingBottom:r+xr(o.bottom,"px",s,"desktop"),...f("sectionPaddingTopTablet",a,t,o.top,o.topTablet),...f("sectionPaddingBottomTablet",n,r,o.bottom,o.bottomTablet),sectionPaddingTopPhone:c(e.sectionPaddingTopPhone,a,t,o.topPhone),sectionPaddingBottomPhone:c(e.sectionPaddingBottomPhone,n,r,o.bottomPhone)}}var he=e=>[...["sectionPaddingTop","sectionPaddingBottom","sectionPaddingTopTablet","sectionPaddingBottomTablet","sectionPaddingTopPhone","sectionPaddingBottomPhone"].map(o=>[o,o,(t,r)=>ie(r,typeof e=="function"?e(r):e)[o]]),["sectionPaddingUnit","sectionPaddingUnit"],["sectionPaddingUnitTablet","sectionPaddingUnitTablet"],["sectionPaddingUnitPhone","sectionPaddingUnitPhone"]];function Go(e,o){let t=Df(e,G(Ku,o));return{sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom}}var ba=e=>[["padTop","sectionPaddingTop",(o,t)=>Go(t,e).sectionPaddingTop],["padBottom","sectionPaddingBottom",(o,t)=>Go(t,e).sectionPaddingBottom],["sectionPaddingTop","sectionPaddingTop",(o,t)=>Go(t,e).sectionPaddingTop],["sectionPaddingBottom","sectionPaddingBottom",(o,t)=>Go(t,e).sectionPaddingBottom]],Mae={kind:"heading-case-upper",styles:["heading-1","heading-2","heading-3"]},b5e=e=>o=>Ke(o.props[e])?[Mae]:[],pe=(e,o)=>({kind:"text",key:e,role:"eyebrow",props:H,...o?{style:o}:{}}),ju=e=>({kind:"group",name:"Chip",props:{..._,...ar("main"),...We(6,14)},parts:[pe(e,{color:"background",...N("label",12),weight:600,letterSpacing:.16})]}),eB=e=>e.background!=="transparent",Hae=(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},nd={align:"right",alignPhone:"left"},Wae=(e,o,t)=>{let r=a=>Hae(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}},sd=(e,o,t,r={})=>Wae(e,o,{...Pn,...nd,...r,_partStyles:{text:{...vo,color:"labels",...t,case:vo.case,...nd}}}),Qs=(e,o)=>typeof e=="number"&&Number.isInteger(e)&&e>=0?e:kn(o)?.selected??0,oB="var(--site-surface-2)",Vu=(e,o)=>kn(o)?.themes[Qs(e.sectionAccent??0,o)],Jo=(e,o)=>(t,r)=>{if(!o?.(t,r))return ar(e);let a=Vu(t,r)?.[e];return a?{fillColor:a}:{}},Yu=(e,o)=>ya(e,o)>=0,tB=e=>e.startsWith("#")&&Bae(e)!==null,qu=(e,o,t)=>{let r=e?.trim();if(r&&tB(r))return{fillColor:r};let a=ag(r);if(a)return ar(a);let n=r===oB?Vu(o,t):void 0;return n?{fillColor:Qd(n)}:{}},Xu=e=>{let o=e?.trim();return!o||o==="transparent"||o===Bo||ag(o)||o===oB||tB(o)?void 0:"it paints a colour that no Box Fill can hold"},ya=(e,o)=>{let t=kn(o)?.themes;return t&&eB(e)?VC(t,Qs(e.sectionAccent,o)):-1},Sa=(e,o,t)=>{let r=ya(o,t);return r>=0?r:e},yS=(e,o)=>{let t=kn(o)?.themes,r=t?YC(t,Qs(e,o)):-1;return r>=0?r:e},On=(e,o)=>{let t=ya(e,o);return t>=0?{sectionAccent:t}:{}},wa=(e,o)=>eB(e.props)&&ya(e.props,o)<0?[{kind:"band-preset",page:Qs(e.props.sectionAccent,o)}]:[],el=(e,{view:o="desktop",to:t="px",maxPx:r=1/0}={})=>{let{siteGutter:a,siteGutterUnit:n,siteGutterPhone:s,siteGutterPhoneUnit:l}=e.site??{},d=wr(o),c=(p,h,g)=>{let I=eo(h),C=HC(p,I,"spacing",g);return C===null?null:xr(C,I,"px",d)},f=c(a,n,dt)??_f(a),u=o==="desktop"?f:c(s,l,fa)??Af(s)??Rf(f);return xr(Math.min(r,u),"px",t,d)},ld=Object.fromEntries(["Top","Right","Bottom","Left","TopPhone","RightPhone","BottomPhone","LeftPhone"].map(e=>[`sectionPadding${e}`,0])),id=e=>({top:0,right:0,bottom:0,left:0,...e}),SS=(e,o,t,r=[])=>({kind:"group",name:e,keepEmpty:!0,props:(a,n)=>({..._,...ld,...Jo("surface")(a,n),...typeof t=="function"?t(a,n):t}),box:[[o,"bgImage"],Se.kind,Se.duration,Se.delay],parts:r});import{phoneKey as LS,readHidable as FS}from"efficient-easel/draw";import{isNodeList as wne,newId as Cne}from"efficient-easel/data";function rB(e){return Math.min(4,Math.max(2,e??3))}var C5e={eyebrow:"Label",title:"Section *heading.*"},Uae={template:pT()},aB={label:"Cards",fields:Uae,defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var T5e={eyebrow:"Highlight",title:"Key *features.*"},P5e=()=>[{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")}],nB={label:"Key Features",defaultProps:{eyebrow:"",title:"",items:[],columns:3}};var Gae="plain",sB=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],zae="line",$ae={KeyFeatures:"filled"};function dd(e){return G($ae,e)??Gae}function lB(e,o){return io(sB,dd(o),e)}function A5e(e){return io(sB,zae,e)}var wS="cardPlace";function F5e(e){return e[wS]==="top-line"?"top-line":""}var B5e="absolute left-5 top-0 z-10 -translate-y-1/2 bg-bg px-2",D5e="data-sf-top-line",Kae=new Set(["Cards",Ho]);function N5e(e){return typeof e=="string"&&Kae.has(e)}var jae=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 M5e(e,o,t){return!t||!o?.linesBetween||o.index!==0?e:jae(e)?{...e,top:0}:e}var H5e="outsideFramedCard";function Vae(e,o){let t=e.trim();if(!Zu(t))return!1;if(!o)return!0;let r;try{r=new URL(t,"https://x.invalid").host}catch{return!1}let a=n=>n.toLowerCase().replace(/^www\./,"");return a(r)!==a(o)}function G5e(e){return e.startsWith("/")||Zu(e)}function Zu(e){return/^(?:https?:)?\/\//i.test(e.trim())}var cd=Object.freeze({target:"_blank",rel:"noopener noreferrer"});function iB(e,o){return Vae(e,o)?{...cd}:{}}function z5e(e){return typeof e=="string"?e.trim():""}var $5e="data-sf-box-link",dB="absolute inset-0 -z-[1] outline-none focus-visible:z-[2] focus-visible:ring-2 focus-visible:ring-inset focus-visible:ring-accent",K5e="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",Yae="data-sf-box-jump";function qae(e){return`sf-box-jump-${e}`}function j5e(e,o){return e===!0?Qc(o):""}function Xae({box:e,lit:o,first:t}){let r=s=>s.join(`,
|
|
380
|
+
`),a=t(e),n=o.flatMap(t);return`
|
|
381
|
+
${e} {
|
|
382
|
+
outline: 2px solid transparent;
|
|
383
|
+
outline-offset: -2px;
|
|
384
|
+
transition: outline-color 600ms ease-out;
|
|
385
|
+
}
|
|
386
|
+
${r(a)} { transition: background-color 600ms ease-out; }
|
|
387
|
+
${r(a.map(s=>`${s} *`))} { transition: color 600ms ease-out; }
|
|
388
|
+
${r(o)} { outline-color: var(--accent); }
|
|
389
|
+
${r(n)} { background-color: var(--accent); }
|
|
390
|
+
${r([...n,...n.map(s=>`${s} *`)])} { color: var(--bg) !important; }
|
|
391
|
+
`}function V5e(e){let o=`[${Yae}="${e}"]`,t=`.${qae(e)}`,r=`[id="${e}"]:target`;return Xae({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 Zae=["selected","highlighted"],cB="data-sf-card-state",J5e="pointer-events-none absolute inset-0 border border-accent",Q5e="pointer-events-none absolute inset-x-0 bottom-0 border-b-2 border-accent",e6e="pointer-events-none absolute inset-0 border-2 border-accent outline outline-1 -outline-offset-1 outline-accent",o6e="absolute inset-y-0 left-0 w-[3px] bg-accent",t6e="absolute -inset-[2px] -z-[1] bg-[color-mix(in_oklab,var(--accent)_14%,transparent)]",r6e="after:pointer-events-none after:absolute after:inset-0 hover:after:border-2 hover:after:border-accent",fB=e=>{let o=sk.find(t=>t.role===e)?.token;if(!o)throw new Error(`card-state: the palette has no ink token for "${e}"`);return o},Jae={[fB("muted")]:`var(${fB("fg")})`};function Qae(e){return e?.selected===!0}function ene(e){return e?Zae.filter(o=>e[o]===!0).join(" "):""}function a6e(e,o="frame"){let t=ene(e);return t?o==="frame"&&Qae(e)?{[cB]:t,className:"relative isolate",style:{...Jae}}:{[cB]:t,className:"relative"}:{}}var one={highlighted:!0},tne={},Ju="badge";function n6e(e,o=[]){return e.map((t,r)=>({...t,key:t.key||o[r]?.key||Nl(t,r)}))}function s6e(e){return!e||typeof e!="object"?!1:Object.entries(e).some(([o,t])=>o==="key"||o===Ju||o==="state"?!1:typeof t=="string"?t.trim()!=="":Array.isArray(t)?t.length>0:t!=null&&typeof t!="function")}function l6e(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,[Ju]:s===a?t:""})),states:e.map((n,s)=>s===a?one:tne)}}function i6e(e){return{chosen:typeof e.highlightedCard=="string"?e.highlightedCard.trim():"",badge:typeof e.highlightBadge=="string"?e.highlightBadge:""}}function d6e(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 c6e="data-sf-card-press",pB=`${dB} appearance-none bg-transparent border-0 p-0 m-0`,f6e=`${pB} cursor-pointer`,p6e=pB;var Qu={sectionBorder:{top:0,right:1,bottom:1,left:0},...ar("background")},rne={gap:0,gapPhone:0,sectionBorder:{top:1,right:0,bottom:0,left:1},shadow:!0},em=e=>({direction:"row",columns:e,columnsTablet:e,...rne}),uB=(e={})=>ne(Ju,{...H,tag:"p",[wS]:"top-line"},e,!0),mB=(e=Qr)=>{let o=nx(e);return{...o,props:{...Qu,...o.props},slots:{[re]:[...o.slots?.[re]??[],uB()]}}},CS=(e=!1)=>{let o=sx(e);return{...o,props:{...Qu,...o.props}}},ane={name:"name",time:"time",note:"note",price:"price"},nne={textStyle:"body-1",...N("body",16),weight:500,lineHeight:1.5},sne={...vo,...N("label",12),letterSpacing:.18,lineHeight:1.5},lne={textStyle:"body-1",...N("body",14),lineHeight:1.6},ine={textStyle:"body-1",fontRole:"heading",...N("headingSmall",20),weight:500,color:"accent",lineHeight:1.5},dne={...N("label",11),letterSpacing:.25},cne={gap:16,gapPhone:16,sectionBorder:{top:0,right:0,bottom:0,left:0},shadow:!1},fne=e=>({direction:"row",columns:e,...cne}),b6e=[...new Set([...Object.keys(em(1)),...Object.keys(fne(1))])],y6e=()=>{let e=ane,o={tag:"p",widthFit:"fill"};return{type:K,props:{..._,name:"Card",justify:"between",gap:16,gapPhone:16,...We(24),sectionBorder:{top:1,right:1,bottom:1,left:1},...ar("surface"),shadow:!0},slots:{[re]:[uB(dne),{type:K,props:{..._,name:"Words",gap:8,gapPhone:8},slots:{[re]:[ne(e.name,{...H,...o},nne),ne(e.time,{...X,...o},sne),ne(e.note,{...X,...o},lne)]}},ne(e.price,{...H,...o},ine)]}}};import{tabletKey as IB}from"efficient-easel/draw";import{VIEW_DESKTOP_MIN as om}from"efficient-easel/draw";var tm=Xt,kS=om,hB=960,xB=Xt,gB={min:tm,max:1600,step:10},rm="stackBelow";function v6e(e){if(!(typeof e!="number"||!Number.isFinite(e))&&!(e<gB.min||e>gB.max))return Math.round(e)}var pne=e=>`sf-stack-${e}`,une=e=>`sf-stack-${e}-gutter`,mne=e=>`sf-stack-${e}-outer`,ol=e=>`${e-.02}px`;function T6e(e,o={}){let t=o.gutter!==!1,r=`.${pne(e)}`,a=`.${une(e)}`,n=`.${mne(e)}`,s=[];if(e>tm){let l=`${r}>.sf-block-size,${r}>[data-easel-block]>[data-sf-part-host]>.sf-block-size`,d=Math.min(e,om);s.push(`@media (min-width:${tm}px) and (max-width:${ol(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:${tm}px) and (max-width:${ol(d)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-tablet,var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2)))}}`),e>om&&s.push(`@media (min-width:${om}px) and (max-width:${ol(e)}){.sf-gap-zone${r}{gap:var(--sf-gap-len-phone,calc(var(--sf-gap-len) / 2))}}`)}return t&&s.push(`@media (max-width:${ol(e)}){${a}${a}{padding-inline:${cr.frame}}}`),t&&e<hB&&s.push(`@media (min-width:${e}px) and (max-width:${ol(hB)}){${a}${a}{padding-inline:${st}}}`),e>xB&&s.push(`@media (min-width:${xB}px) and (max-width:${ol(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("")}function _n(e){if(e==="ProductGrid")return"shelf";let o=G(sr,e)?.headStyle;return o==="editorial"||o==="simple"||o==="essay"?o:"standard"}var fd={standard:64,editorial:60,simple:36,essay:28,shelf:20},hne={SectionHeader:"accent",FAQ:"accent",FitmentFinder:"accent",FitmentTable:"accent",SpecTable:"accent",RelatedProducts:"accent",Collections:"accentNum"};function xne(e){if(e==="SectionHeader")return{num:"num",title:"title",description:"description",link:!0};let o=G(sr,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 nm(e,o,t){let r=`editorial:${e}|${o}|${t}`,a=am.get(r);if(a)return a;let n=wB({num:e,title:o,description:t,link:!1});return am.set(r,n),n}var Qo={[rm]:kS},TS={top:0,right:0,bottom:1,left:0},et=(e,o,t,r)=>({sizeToken:{step:e,px:r,fluid:{minPx:o,vw:t}}}),sm=(e,o,t={})=>pe(e,{...N("label",o),...t}),lm=(e,o)=>({kind:"text",key:e,role:"heading",props:H,style:{textStyle:"heading-2",...o}}),PS=800,gne=kS,ES=(e,o,t,r,a={})=>({kind:"text",key:e,props:{...X,align:"right",alignPhone:"left",...t?{maxWidth:t,maxWidthPhone:PS}:{},...a},style:{textStyle:"body-5",fontRole:"heading",alignPhone:"left",...N("body",o),...r,...a}}),SB={...wo,align:"right",alignPhone:"left",...En},vS=e=>({kind:"button",key:"linkText",href:"linkHref",variant:"ghost",props:SB,style:{...Rt(e),color:"labels"}}),bB=(e,o,t)=>{let r=t.role==="heading"?{tag:"h2"}:{};return{kind:"block",type:"Text",when:a=>a[e]===void 0,props:{...H,...r,...t.props,text:o,_partStyles:{text:{...t.role==="eyebrow"?Ine(Lt()):{},...t.style}}}}},Ine=e=>e._partStyles.text??{},tl={widthFitPhone:"fill"};function OS(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),...tl}):{...o,...tl}}}return{...e,parts:e.parts.map(OS)}}function bne(e,o){let t=G(hne,e),r=t==="accent",a=sm(o.num,14,{color:r?"accent":"labels"}),n=t==="accentNum"&&a.kind==="text"?{...a,mark:"accentLead"}:a,s=lm(o.title,r?{...et("headingMedium",36,5,64),case:"upper",lineHeight:.95,letterSpacing:-.025}:{...N("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:TS,sectionPaddingBottom:24,sectionPaddingBottomPhone:20},parts:[{kind:"group",name:"Title",props:{..._,...tl,direction:"row",align:"end",gap:40,gapPhone:12,share:"content"},parts:[{kind:"group",name:"Number",props:{..._,...tl,align:"start",gap:12},parts:[{kind:"image",key:"logoSrc",alt:"logoAlt",props:{aspect:"auto",contained:!1}},n,...l?[bB(o.num,"==01== / Collections",n)]:[]]},{kind:"group",name:"Heading",props:{..._,...tl},parts:[s,...l?[bB(o.title,`Three ranges,
|
|
392
|
+
one standard.`,s)]:[]]}]},{kind:"group",name:"Words",props:{..._,...tl,gap:12,maxWidth:340,maxWidthPhone:PS},parts:[...o.description?[ES(o.description,14,void 0,{lineHeight:1.5})]:[],...o.link?[vS(14)]:[],...l?[{kind:"block",type:"ButtonBlock",props:{...SB,variant:"ghost",label:"View all",href:"/wheels",_partStyles:{label:vS(14).style}}}]:[]]}]}}function im(e,o){return e.kind==="text"?o.includes(e.key)?{...e,mark:"accentItalic"}:e:e.kind==="group"?{...e,parts:e.parts.map(t=>im(t,o))}:e}function wB(e){let o=lm(e.title,{...et("headingMedium",40,5.5,80),case:"upper",weight:500,lineHeight:1,letterSpacing:-.03});return{kind:"group",name:"Header",props:{..._,direction:"row",align:"end",justify:"between",gap:40,gapPhone:14,share:"content",sectionBorder:TS,sectionPaddingBottom:32,...Qo},parts:[{kind:"group",name:"Title",props:{..._,direction:"row",align:"end",gap:40,gapPhone:14,share:"content",...Qo},parts:[{kind:"group",name:"Number",props:{..._,sectionPaddingBottom:8},parts:[{...sm(e.num,13),props:{...H,...Tn}}]},im(o,[e.title])]},{kind:"group",name:"Words",props:{..._,sectionPaddingBottom:4,maxWidth:360,[IB("maxWidth")]:gne,maxWidthPhone:PS},parts:e.description?[ES(e.description,14,void 0,{lineHeight:1.5},{[IB("align")]:"left"})]:[]}]}}function yB(e,o){return{kind:"group",name:"Header",props:{..._,gap:16,gapPhone:16},parts:[sm(e.num,13),lm(e.title,o)]}}var CB=[["para",{...Rt(13),weight:400,lineHeight:1,letterSpacing:.22}],["sm",{...N("headingMedium",40,28),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["md",{...N("headingMedium",48,32),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["lg",{...N("headingMedium",56,36),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}],["xl",{...N("headingMedium",64,40),case:"none",weight:500,lineHeight:1,letterSpacing:-.03}]],yne=e=>CB.some(([o])=>o===e.titleSize)?e.titleSize:"lg";function Sne(e){return{kind:"group",name:"Header",props:{..._,direction:"row",align:"center",justify:"between",gap:16,share:"content",stickTop:!0,sectionBorder:TS,sectionPaddingTop:12,sectionPaddingBottom:12},parts:[{kind:"group",name:"Title",props:{..._,direction:"row",align:"end",gap:24,share:"content"},parts:[sm(e.num,13,{color:"labels",letterSpacing:.22,lineHeight:1}),...CB.map(([o,t])=>({...lm(e.title,t),when:r=>yne(r)===o}))]},{kind:"group",name:"Words",props:{..._,direction:"row",align:"center",justify:"end",gap:20,share:"content"},parts:[...e.description?[ES(e.description,13,340,{lineHeight:1.4})]:[],...e.link?[vS(13)]:[]]}]}}function dm(e){return _n(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 am=new Map,_S={...N("headingMedium",44,32),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02};function bt(e){let o=am.get(e);if(o)return o;let t=xne(e),r=_n(e),a=r==="editorial"?wB(t):r==="simple"?yB(t,_S):r==="essay"?yB(t,{...N("headingMedium",38,28,"headingSmall"),case:"upper",lineHeight:1,letterSpacing:-.02}):r==="shelf"?Sne(t):bne(e,t);return am.set(e,a),a}var An={Series:"transparent",StatsParagraph:"transparent",TimelineTrack:Bo,Stats:void 0};var pd=(e,o,t,r)=>({sectionBorder:{top:e,right:o,bottom:t,left:r}}),DB=e=>o=>rB(j(o.columns)??j(e.columns)),kne="inline is the head the row draws; an own-box node is skipped (`skip`)",vne={kind:"text",key:"title",role:"heading",props:H,style:{textStyle:"heading-3",..._S}},kB={top:120,bottom:120,topPhone:80,bottomPhone:80,topTablet:80,bottomTablet:80},fm=e=>{let o=fr(typeof e.background=="string"?e.background:void 0,An.Series);return o&&o!=="transparent"?o:void 0},cm=e=>fm(e)===Bo,Tne={..._,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},vB={..._,direction:"row",justify:"between",gap:12,share:"content",phoneRow:2,[LS("share")]:"content"},Pne=e=>{let o=fm(e)?1:2;return{..._,direction:"row",columns:4,columnsTablet:2,gap:o,gapPhone:o}},AS={...Rt(12),letterSpacing:.22,lineHeight:1.5},TB=e=>Ke(e.viewLabel)&&!FS(e.viewLabel).hidden,yt=e=>FS(e).text?.trim?.()??"",pm=e=>Object.fromEntries(Object.entries(e).filter(([,o])=>Z(o)!==void 0)),BS=e=>e.map(([o,t,r])=>({key:o,label:t,...r?{multiline:!0}:{}})),Ene=BS([["num","Number"],["since","Corner note"],["title","Card title"],["body","Card body",!0],["count","Count"],["countLabel","Count word"]]),One=BS([["label","Label"],["value","Value"],["body","Card body",!0]]),ud=(e,o,t,r,a,{reads:n=["cards"],keep:s=[]}={})=>({kind:"group",name:e,props:o,parts:[{kind:"core",as:Ho,headless:!0,keep:s,derive:{reads:n,props:l=>Mc(r(l),t)},slots:(l,d)=>({[go]:[a(l,d)]})}]}),NB=e=>Array.isArray(e.cards)?e.cards:[],PB={top:76,bottom:76,topPhone:76,bottomPhone:76},MB=e=>(Array.isArray(e.items)?e.items:[]).map(o=>pm({title:yt(o?.label),href:typeof o?.href=="string"?o.href.trim():""})).filter(o=>o.title!==void 0).map((o,t)=>({key:Nl(Sx(o),t),...o})),_ne=e=>MB(e).some(o=>Z(o.href)!==void 0),HB=[{key:Ol.label,label:"Feature label"},{key:Ol.href,label:"Link",kind:"link"}],EB=e=>lB(e.eyebrowLook,"KeyFeatures")==="filled",Ane={name:"Key Features",boxProps:(e,o)=>({...J,direction:"column",gap:44,gapPhone:32,...Jo("surface")(e,o),...pd(1,0,1,0),...ie(e,PB)}),box:[...ae,...he(PB)],parts:[{kind:"group",name:"Heading",props:{..._,direction:"row",align:"end",gap:20,wrap:!0,share:"content",phoneRow:2,[LS("share")]:"content"},parts:[{...ju("eyebrow"),when:EB},{...pe("eyebrow"),when:e=>!EB(e)},vne]},ud("Cards",e=>({..._,...em(DB(nB.defaultProps)(e))}),HB,MB,e=>CS(_ne(e)),{reads:["items"]})],drop:{...ee,...le,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"}},OB={top:72,bottom:72,topPhone:72,bottomPhone:72},_B=(e,o)=>({...Qu,...Jo("background")(e,o)}),AB=e=>{let o=DB(aB.defaultProps)(e);return{..._,...em(o)}},Rne=BS([["title","Card title"],["body","Card body",!0]]),WB=e=>(Array.isArray(e.items)?e.items:[]).map((o,t)=>({key:typeof o?.key=="string"&&o.key?o.key:Nl(Sx(o),t),title:yt(o?.title),body:yt(o?.body)})),UB=e=>{let o={},t={};for(let[r,a]of Object.entries(e.props??{}))r!=="id"&&(wne(a)?t[r]=a.map(UB):o[r]=a);return{type:String(e.type),props:o,...Object.keys(t).length?{slots:t}:{}}},RB=(e,o)=>{let t=RS(e)?CS(Lne(e)):mB(),r=Array.isArray(e.template)?e.template.map(UB):[t],[a]=r;return r.length===1&&a.type===K?{...a,props:{..._B(e,o),...a.props}}:{type:K,props:{..._,..._B(e,o),name:"Card"},slots:{[re]:r}}},RS=e=>e.cardStyle==="label-only",GB=e=>WB(e).map((o,t)=>{let r=e.items[t]?.href;return pm({key:o.key,title:o.title,href:typeof r=="string"?r.trim():""})}),Lne=e=>GB(e).some(o=>Z(o.href)!==void 0),LB=e=>Array.isArray(e.template)&&e.template.length===0,FB=["dataSource","dataSourceOptions","highlightedCard","highlightBadge"];function zB(){let e=t=>({key:Cne("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 Fne={name:"Cards",ownBoxConverts:!0,boxProps:(e,o)=>({...J,direction:"column",gap:36,gapPhone:28,...Jo("surface")(e,o),...ie(e,OB)}),box:[...ae,...he(OB)],parts:[{...bt("Cards"),when:e=>!mS(e)},{...ud("Cards",AB,Rne,WB,RB,{reads:["items"],keep:FB}),when:e=>!LB(e)&&!RS(e)},{...ud("Cards",AB,HB,GB,RB,{reads:["items"],keep:FB}),when:e=>!LB(e)&&RS(e)}],drop:{...ee,...le,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)"}},Bne={name:"Recurring Columns",boxProps:(e,o)=>({...J,direction:"column",gap:60,gapPhone:60,...pd(0,0,1,0),...Qo,...cm(e)?On(e,o):{},...qu(fm(e),e,o),...ie(e,kB)}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>cm(o)?Sa(e,o,t):e],...he(kB)],skip:e=>Xu(fm(e)),site:(e,o)=>cm(e.props)?wa(e,o):[],parts:[bt("Series"),ud("Cards",Pne,Ene,e=>NB(e).map(o=>pm({num:yt(o.num),since:yt(o.since),title:yt(o.title),body:yt(o.desc),count:yt(o.entries),countLabel:yt(o.entriesLabel)})),(e,o)=>({type:K,props:{...Tne,...Jo("background",(t,r)=>cm(t)&&Yu(t,r))(e,o),name:"Card"},slots:{[re]:[{type:K,props:{..._,name:"Words",gap:16,gapPhone:16},slots:{[re]:[{type:K,props:{...vB,name:"Top"},slots:{[re]:[ne("num",H,N("label",13),!0),ne("since",H,N("label",13),!0)]}},ne("title",{...H,tag:"h3"},{textStyle:"heading-3",...N("headingSmall",28),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}),ne("body",X,{textStyle:"body-5",fontRole:"heading",...N("body",14),lineHeight:1.6})]}},{type:K,props:{...vB,name:"Footer",align:"center",gap:0,gapPhone:0,sectionPaddingTop:16,sectionPaddingTopPhone:16,...pd(1,0,0,0),...TB(e)?{}:{[Bl]:["count","countLabel"]}},slots:{[re]:[{type:K,props:{..._,name:"Count",direction:"row",align:"center",gap:12,gapPhone:12,share:"content",phoneRow:2,[LS("share")]:"content"},slots:{[re]:[ne("count",H,AS),ne("countLabel",X,AS)]}},...TB(e)?[{type:K,props:{..._,name:"View",maxWidthPhone:266},slots:{[re]:[{type:"Text",props:{...H,text:FS(e.viewLabel).text,_partStyles:{text:{...Lt()._partStyles.text,...AS}}}}]}}]:[]]}}]}}))],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:{...ee,...le,headPlacement:kne}},BB={top:60,bottom:60,topPhone:40,bottomPhone:40},Dne={..._,direction:"row",columns:3,gap:40,gapPhone:16},Nne={..._,gap:8,gapPhone:8,...We(24),...pd(1,1,1,1)},Mne={name:"Document Detail Cards",boxProps:e=>({...J,direction:"column",gap:40,gapPhone:16,...pd(0,0,1,0),...ie(e,BB)}),box:[...ae,...he(BB)],parts:[ud("Cards",Dne,One,e=>NB(e).map(o=>pm({label:yt(o.label),value:yt(o.value),body:yt(o.desc)})),(e,o)=>({type:K,props:{...Nne,...Jo("surface")(e,o),name:"Card"},slots:{[re]:[ne("label",H,{...N("label",12),lineHeight:1.5},!0),{type:K,props:{..._,name:"Words",gap:14,gapPhone:14},slots:{[re]:[ne("value",H,{textStyle:"heading-3",...N("headingSmall",20),weight:500,letterSpacing:-.015,lineHeight:1.5}),ne("body",X,{textStyle:"body-5",fontRole:"accent",...N("body",14),italic:!0,lineHeight:1.5})]}}]}}))],drop:{...ee,...le}},$B={Cards:Fne,KeyFeatures:Ane,Series:Bne,DocMetaCards:Mne};import{phoneKey as Gne}from"efficient-easel/draw";import{newId as zne}from"efficient-easel/data";import{phoneKey as Hne}from"efficient-easel/draw";import{isNode as md}from"efficient-easel/data";var rl="cardStyle";function KB(e){let{widthPhone:o,...t}=e;return e.widthFitPhone==="fixed"?{...t,widthFitPhone:"fill"}:{...e}}var um={table:{items:{gap:0,gapPhone:0,columnsTablet:2},grid:{gap:0},row:{gap:0,[Hne("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}}}},St={table:{...um.table,listCard:KB(um.table.card)},list:{...um.list,listCard:KB(um.list.card)}},dWe=[{label:"Table",value:"table"},{label:"List",value:"list"}],cWe=e=>e==="table"||e==="list",Wne=e=>[...new Set([...Object.keys(St.table[e]),...Object.keys(St.list[e])])];function hd(e,o,t){let r={...e};for(let a of Wne(o))delete r[a];return{...r,...structuredClone(St[t][o])}}function Une(e,o,t){let r=e.props??{},a=Array.isArray(r[go])?r[go]:[],n=a.findIndex(d=>md(d)&&d.type===t);if(n<0)return e;let s=a[n],l=a.map((d,c)=>c===n?{...s,props:hd(s.props??{},"listCard",o)}:d);return{...e,props:{...r,[go]:l}}}function fWe(e,o,t,r){let a=Array.isArray(e[r])?e[r]:[];if(a.some(s=>md(s)&&s.type===Ho)){let s=a.map(l=>md(l)&&l.type===Ho?Une(l,o,t):l);return{...hd(e,"items",o),[rl]:o,[r]:s}}let n=a.map(s=>{if(!md(s)||s.type!==t)return s;let l=s.props??{},d=(Array.isArray(l[r])?l[r]:[]).map(c=>md(c)&&c.type===t?{...c,props:hd(c.props??{},"card",o)}:c);return{...s,props:{...hd(l,"row",o),[r]:d}}});return{...hd(e,"grid",o),[rl]:o,[r]:n}}var DS=e=>typeof e=="string"?e.trim():"";function jB(e){let o=`${DS(e.prefix)}${DS(e.value)}`,t=DS(e.suffix);return e.emphasizeAll===!0?o?`==_${o}_==`:"":`${o}${t?`==_${t}_==`:""}`}var qB={textStyle:"heading-2",...et("headingMedium",56,7,96),weight:500,case:"none",lineHeight:.9,letterSpacing:-.04},NS={kind:"block",type:"Text",props:{...Pn,_partStyles:{text:qB}},box:[["value","text",(e,o)=>jB(o)]],when:(e,o)=>o!==void 0&&typeof o.value=="string"&&jB(o)!==""},VB=e=>Ke(e?.supSuffix),XB={textStyle:"body-1",fontRole:"heading",...N("body",16),lineHeight:1.5,letterSpacing:-.01},ZB={color:"labels",...N("label",12),lineHeight:1.5,letterSpacing:.24},JB={..._,direction:"row",align:"start",gap:32,gapPhone:32,share:"content",phoneRow:2,[Gne("share")]:"content"},QB={textStyle:"body-5",...N("label",13),weight:500,color:"accent",letterSpacing:.18,lineHeight:1,padding:12},MS=e=>fr(e.background,An.StatsParagraph),xd=e=>MS(e)===Bo,mm=e=>({...e,sectionAccent:e.sectionAccent??0}),$ne=(e,o)=>xd(e)?Jo("background",(t,r)=>Yu(mm(t),r))(e,o):{},Kne={name:"Stats with Text",skip:e=>MS(e)&&MS(e)!=="transparent"&&!xd(e)?"it paints a colour of its own, not the section band":void 0,boxProps:(e,o)=>({...J,direction:"column",gap:60,gapPhone:60,sectionBorder:{bottom:1},...Qo,...Go(e,"StatsParagraph"),...xd(e)?On(mm(e),o):{}}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>xd(o)?Sa(e,mm(o),t):e],...ba("StatsParagraph")],site:(e,o)=>xd(e.props)?wa({props:mm(e.props)},o):[],parts:[bt("StatsParagraph"),{kind:"group",name:"Stats",props:{..._,...St.table.grid,[rl]:"table"},parts:[{kind:"list",key:"stats",name:"Stat",perRow:()=>4,rowName:"Stats row",rowProps:{..._,direction:"row",share:"equal",phoneRow:2,...St.table.row},props:(e,o)=>({..._,...St.table.card,...$ne(e,o)}),parts:[{...NS,when:(e,o)=>!VB(o)&&NS.when(e,o)},{kind:"group",name:"Figure",props:JB,when:(e,o)=>VB(o),parts:[NS,{kind:"text",key:"supSuffix",props:H,style:QB}]},{kind:"group",name:"Words",props:{..._,gap:4,gapPhone:4},parts:[{kind:"text",key:"label",props:H,style:XB},pe("sub",ZB)]}]}]}],drop:{...ee,...le,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"}},jne=new Set(["value","label",At]),YB={top:48,bottom:48,topPhone:48,bottomPhone:48},Vne=e=>{let o=fr(typeof e.background=="string"?e.background:void 0,An.Stats);return!!o&&o!=="transparent"},Yne={name:"Stats",skip:e=>Vne(e)?"it paints a colour inside its padding, and a Box paints its Fill over the padding too":Ke(e.dataSource)?"its figures come from a source":Array.isArray(e.items)&&e.items.some(o=>Ke(o?.[At]))?"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=>!jne.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=>({...J,direction:"column",gap:24,gapPhone:24,...ie(e,YB)}),box:[...ae,...he(YB)],parts:[pe("heading",{color:"labels",...N("label",12),letterSpacing:.2}),{kind:"group",name:"Stats",props:{..._,...St.list.grid,[rl]:"list"},parts:[{kind:"list",key:"items",name:"Stat",perRow:e=>j(e.columns)??4,rowName:"Stats row",rowProps:{..._,direction:"row",share:"equal",phoneRow:2,...St.list.row},props:{..._,...St.list.card},parts:[{kind:"text",key:"value",props:Pn,style:{textStyle:"heading-2",...N("headingMedium",48,36),weight:500,case:"none",lineHeight:1,letterSpacing:-.03}},pe("label",{color:"labels",...N("label",12),letterSpacing:.2})]}]}],drop:{...ee,...le,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"}},eD={StatsParagraph:Kne,Stats:Yne};function oD(){return{eyebrow:i("By the numbers"),title:i("What we count."),desc:i("A few numbers that matter to us."),stats:[],background:"transparent"}}var qne=[{key:"figure",label:"Figure"},{key:"superscript",label:"Superscript"},{key:"label",label:"Label"},{key:"body",label:"Text",multiline:!0}];function tD(){let e=(o,t,r,a="")=>({key:zne("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 Xne(e){return{type:K,props:{..._,name:"Card",...structuredClone(St[e].listCard)},slots:{[re]:[{type:K,props:{...JB,name:"Figure"},slots:{[re]:[ne("figure",Pn,qB),ne("superscript",H,QB)]}},{type:K,props:{..._,name:"Words",gap:4,gapPhone:4},slots:{[re]:[ne("label",{...H,widthFit:"fill"},XB),ne("body",{...H,widthFit:"fill"},ZB,!0)]}}]}}}function HS(e,o,t=4){return{type:K,props:{..._,name:"Stats",direction:"row",columns:t,...structuredClone(St[o].items),[rl]:o},slots:{[re]:[{type:Ho,props:Mc(e,qne),slots:{[go]:[Xne(o)]}}]}}}var rD={heading:"Trusted by *teams worldwide*"},aD=()=>[{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")}],Zne={logos:{type:"slot",allow:["LogoBlock"]},template:{type:"slot",allow:["LogoBlock"]}},OWe={label:"Logos",drawsPictures:!0,fields:Zne,defaultProps:{items:[],contained:!0}};var nD={heading:"Ways to pay"},sD=()=>[{label:"Visa"},{label:"Mastercard"},{label:"Amex"},{label:"PayPal"}],lD=()=>[{text:i("Secure encrypted checkout")},{text:i("30-day returns")}],RWe={label:"Payment Methods",drawsPictures:!0,defaultProps:{heading:"",badges:[],assurances:[],contained:!0}};var BWe={left:"justify-start",center:"justify-center",right:"justify-end"},Jne={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"}},Qne={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"}},ese={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"}},ose={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 hm(e){return e==="left"||e==="center"||e==="right"?e:void 0}function iD(e){return e==="start"?"left":e==="end"?"right":hm(e)}function tse(e,o,t){let r=hm(e)??"left",a=_t("same",r,hm(o),hm(t)),n={};return a.tablet&&a.tablet!==r&&(n.tablet=a.tablet),a.phone&&a.phone!==r&&(n.phone=a.phone),n}function DWe(e,o,t,r,{atSectionLine:a=!1}={}){let n=tse(o,t,r),s=a?ese:Jne,l=a?ose:Qne;return[n.tablet?s[e][n.tablet]:"",n.phone?l[e][n.phone]:""].filter(Boolean).join(" ")}import{phoneKey as US,readHidable as rse}from"efficient-easel/draw";var GS={contained:!1},zS=(e,o)=>({logos:[{kind:"list",key:e,name:"Logo",flat:!0,parts:[{kind:"block",type:"LogoBlock",box:["src",[o,"alt"]],when:(t,r)=>Ke(r?.src)||Ke(r?.[o])}]}]}),WS=e=>{let o=j(e.bandPadding)??40;return{top:o,bottom:o,topPhone:o,bottomPhone:o}},ase={...pe("heading",{color:"labels",letterSpacing:.2}),props:{...H,align:"center"}},nse={name:"Logos",boxProps:e=>({...J,direction:"column",gap:32,...ie(e,WS(e))}),box:[...ae,...he(WS),["bandPadding","sectionPaddingTop",(e,o)=>ie(o,WS(o)).sectionPaddingTop]],parts:[ase,{kind:"core",keep:["columns","logoHeight","grayscale"],rename:{logosPerRow:"columns"},props:GS,slots:zS("items","alt")}],drop:{...ee,...le,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"}},sse={kind:"group",name:"Mark",keepEmpty:!0,parts:[],props:Pc(4,"main",{sectionCorners:2})},dD={top:24,bottom:24,topPhone:24,bottomPhone:24},lse={name:"Payment Methods",boxProps:e=>({...J,direction:"column",...ie(e,dD)}),box:[...ae,...he(dD)],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:{...H,align:"center"}},{kind:"core",keep:[],as:"Logos",derive:{reads:[mo,Cr],props:e=>Ke(e[mo])?{[mo]:e[mo],...e[Cr]!==void 0?{[Cr]:e[Cr]}:{}}:{}},props:{...GS,look:"cards",grayscale:!1},slots:e=>({...zS("badges","label"),...Ke(e[mo])?{[go]:[_c()]}:{}})},{kind:"group",name:"Reassurance",props:{..._,direction:"row",wrap:!0,justify:"center",gap:24,gapPhone:24,phoneRow:2,[US("share")]:"content"},parts:[{kind:"list",key:"assurances",name:"Line",of:e=>(Array.isArray(e.assurances)?e.assurances:[]).filter(o=>Ke(o?.text)),props:{..._,direction:"row",align:"center",gap:8,gapPhone:8,phoneRow:2,[US("share")]:"content"},item:e=>rse(e.text).hidden?{props:{_hidden:!0}}:{},parts:[sse,{kind:"text",key:"text",props:{...H,align:"center"},style:{...N("label",13),color:"labels",lineHeight:1.5}}]}]}]}],drop:{...ee,...le,contained:"the Box draws the site frame now; the Logos block inside it fills the Box's column (`contained: false`)"}},ise={left:"start",center:"center",right:"end"},cD=e=>iD(e.align)??"left",fD=e=>e.size==="md"?"md":"sm",pD=12,uD={name:"Payment logos",boxProps:e=>({..._,direction:"row",wrap:!0,align:"center",justify:ise[cD(e)],gap:pD,gapPhone:pD,phoneRow:2,[US("share")]:"content"}),parts:[{kind:"text",key:"lead",props:X,styleFrom:e=>({size:qs[fD(e)],lineHeight:1.5})},{kind:"core",keep:[],as:"Logos",derive:{reads:[mo,Cr],props:e=>({logoHeight:EF[fD(e)].mark,align:cD(e),...Ke(e[mo])?{[mo]:e[mo],...e[Cr]!==void 0?{[Cr]:e[Cr]}:{}}:{}})},props:{...GS,look:"marks",grayscale:!1,sectionAccent:Jt},slots:e=>({...zS("methods","label"),...Ke(e[mo])?{[go]:[_c()]}:{}})}],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"}},mD={Logos:nse,PaymentBadges:lse,FooterPayment:uD,PaymentLogosBlock:uD},hD=()=>({heading:rD.heading,items:aD()}),xD=()=>({heading:nD.heading,badges:sD(),assurances:lD()}),gD=()=>({...Pf,methods:[]});import{mixHex as cse}from"efficient-shell/format";var QWe="none",e3e=[{label:"Nothing",value:"none"},{label:"Section above",value:"above"},{label:"Section below",value:"below"}];function ID(e){return e==="above"||e==="below"?e:null}var o3e="sf-ticker-join";function dse(e){return e==="above"?"sf-ticker-join-above":"sf-ticker-join-below"}function t3e(e){return`absolute inset-x-0 ${dse(e)}`}var Rn={direction:"row",share:"content",align:"center"},gd={top:14,bottom:14,topPhone:12,bottomPhone:12},xm={wrap:"nowrap",loop:"scroll",sectionAccent:dk,gap:60,gapPhone:32,separator:"dot",sectionBorder:{top:1,bottom:1}},bD={gap:120,gapPhone:64},gm={...vo,sizeToken:{step:"label",px:14,pxPhone:12},letterSpacing:.25,lineHeight:1.5},yD={textStyle:"heading-3",letterSpacing:.005,case:"upper",lineHeight:1},Id={top:16,bottom:16,topPhone:12,bottomPhone:12},bd={justify:"between",wrap:"wrap",gap:32,separator:"none"},yd={...vo,letterSpacing:.1,lineHeight:1.5};var SD=e=>e.size==="display",fse=(e,o)=>{let t=Vu(e,o),r=e.tone!=="plain"&&t?.text&&t.background?cse(t.text,t.background,.3):null;return r?{color:r}:{}},pse=(e,o)=>e.tone!=="plain"&&Qt(e.sectionAccent)===null?Jo("background")(e,o):{},wD=(e,o)=>({kind:"list",key:"items",name:"Item",flat:!0,when:o,parts:[{kind:"text",key:"text",props:X,style:e,styleFrom:fse}]}),use={name:"Scrolling Bar",boxProps:(e,o)=>({...J,...Rn,...xm,...RC[ph(e.separator)]===""?bD:{},...ie(e,gd),...pse(e,o)}),box:[["scrollDirection","scrollDirection",e=>xL(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=>ph(e)],["join","join",e=>ID(e)??void 0],["borders","sectionBorder",e=>e===!1?void 0:{top:1,bottom:1}],...ae,["tone","sectionAccent",(e,o)=>Qt(o.sectionAccent)??Jt],...he(gd)],parts:[wD(gm,e=>!SD(e)),wD(yD,SD)],drop:{...ee,...le,size:"each item's Text style: Small \u2192 Body 5, Display \u2192 Heading 3"}},CD=e=>e?.tone==="muted",kD=e=>ec(kn(e)),mse={name:"Spec Strip",boxProps:(e,o)=>({...J,...Rn,...bd,...e.fill==="none"?{sectionBorder:{top:1}}:{sectionAccent:kD(o)},...ie(e,Id)}),box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>o.fill==="none"?e:kD(t)],...he(Id)],parts:[{kind:"list",key:"cells",name:"Cell",flat:!0,parts:[{kind:"text",key:"text",props:H,style:yd,when:(e,o)=>!CD(o)},{kind:"text",key:"text",props:X,style:yd,when:(e,o)=>CD(o)}]}],drop:{...ee,...le,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"}},vD={Ticker:use,SpecStrip:mse};import{jsxs as Fn,jsx as je}from"react/jsx-runtime";import{Fragment as JS}from"react";import{Fragment as Ese,jsx as VS}from"react/jsx-runtime";import{Fragment as OD,jsx as wd,jsxs as yse}from"react/jsx-runtime";import{createContext as jS,useContext as Cd,useEffect as Sse,useId as wse,useMemo as Cse,useRef as kse}from"react";import{armEntrance as vse}from"efficient-shell/format";import{jsx as hse}from"react/jsx-runtime";import{useEffect as PD,useRef as TD,useState as xse}from"react";import{armEntrance as gse,entranceAttrs as Ise,playEntrance as bse}from"efficient-shell/format";function ED({views:e,editing:o,boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,children:l}){let d=TD(null),c=ic(),f=Vr(),u=n?f:es,p=Sd(d,!0,s),{attrs:h,style:g}=Ise(e[p]),I=TD($S.seed(e)),C=JSON.stringify(e);return PD(()=>{let S=d.current;if(S){if(o){let k=$S.next(I.current,e,p);I.current=k.seen,k.play&&bse(S);return}return gse(S)}},[C,p,o]),u.scope(hse("div",{ref:d,className:Yr(`${Jn}${c.fill}${t?` ${t}`:""}`,u.className),...r,...u.attrs,...h,...Object.keys(g).length||a?{style:{...a,...g}}:{},children:c.inner(l)}))}var $S={seed(e){return{desktop:JSON.stringify(e.desktop),tablet:JSON.stringify(e.tablet),phone:JSON.stringify(e.phone)}},next(e,o,t){let r=$S.seed(o);return{play:r[t]!==e[t],seen:r}}};function Sd(e,o=!0,t=!1){let[r,a]=xse("desktop"),n=lc()||t,{phone:s,tablet:l}=Rb(n);return PD(()=>{if(!o)return;let d=e.current?.ownerDocument?.defaultView??(typeof window>"u"?null:window);if(!d?.matchMedia)return;let c=d.matchMedia(s),f=d.matchMedia(l),u=()=>a(c.matches?"phone":f.matches?"tablet":"desktop");return u(),c.addEventListener("change",u),f.addEventListener("change",u),()=>{c.removeEventListener("change",u),f.removeEventListener("change",u)}},[e,o,s,l]),r}var Im=jS(null),AD=jS(null),RD=jS(null);function L3e({needles:e,styles:o,motions:t=y1,type:r,atEdge:a=!1,children:n}){let s=wse(),l=lc()||a,d=JSON.stringify([s,e,o,t,r]),c=Cse(()=>{let u=Object.keys(t).filter(p=>w1(t[p]));return BA(e,o,s,p=>ji(r,p),p=>_A(r,p),p=>u.includes(p)?Zy(t[p]):null,u)},[d]);if(!c)return wd(OD,{children:n});let f=DA(c,{inBox:l});return yse(OD,{children:[f&&wd("style",{href:`${Tse}${s}-${Pse(f)}`,precedence:FD,dangerouslySetInnerHTML:{__html:f.replace(/</g,"\\3c ")}}),wd(Im.Provider,{value:c,children:n})]})}var KS=new WeakMap;function _D(e,o){let t=Jy(o.filter(a=>a.arm)),r=o.some(a=>a.entering)?void 0:Jy(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)?(T1(e.ownerDocument),e.setAttribute(yu,"")):e.removeAttribute(yu)}function LD(e){let o=kse(null),t=e?.motion?.entrance??null,r=e?.motion?.scroll??null,a=e?.motion?.hover==="lift",n=Sd(o,t!==null||r!==null),s=t?t[n]:null,l=r&&r[n].effect!=="none"?r[n]:null,d=JSON.stringify([s,l]);return Sse(()=>{let c=o.current,f=v1(c?.parentElement??null);if(!t&&!r&&!a||!c||!f)return;let u=s?()=>{let g=C1(f,s),I=vse(f);return()=>{I?.(),g()}}:null,p=KS.get(f)??[];KS.set(f,p);let h={element:c,arm:u,entering:s!==null&&s.kind!=="none",scroll:l?()=>k1(f,l):null,lift:a};return p.push(h),_D(f,p),()=>{let g=p.indexOf(h);g<0||(p.splice(g,1),h.undo?.(),h.undo=void 0,h.undoScroll?.(),h.undoScroll=void 0,_D(f,p),p.length||KS.delete(f))}},[d,a]),o}var FD="sf-part-styles",Tse=`${FD}-`;function Pse(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 BD(e){let o=Cd(Im),t=Cd(AD),r=NA(o,e);return r&&r.stamp!==t?r:null}function F3e(e){return Ab(Cd(Im),e)}function DD({stamp:e,children:o}){return wd(AD.Provider,{value:e,children:o})}function B3e({children:e}){let o=Cd(Im);return wd(RD.Provider,{value:o,children:e})}function D3e(e){return Ab(Cd(RD),e)}function kd({value:e,children:o}){let t=BD(e),r=LD(t);return t?VS(DD,{stamp:t.stamp,children:VS("span",{ref:r,[Sb]:t.stamp,...t.textStyle?{[Rs]:t.textStyle}:{},children:o})}):VS(Ese,{children:o})}import{jsx as YS,Fragment as Ose}from"react/jsx-runtime";function ND({className:e=""}){return YS("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function bm(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(YS(ND,{},`r${a}`))}),YS(Ose,{children:t})}var z3e=ND;import{jsx as Ln}from"react/jsx-runtime";import{Component as Lse,createContext as Fse,lazy as J3e,Suspense as Q3e,useContext as Bse,useSyncExternalStore as Dse}from"react";var _se="hrefRewrite";function Ase(){return er("efficient.link-href-rewrites",()=>({rewrites:new Map,count:0,missed:new Set}))}function Rse(){return typeof process<"u"&&!0}function j3e(e){let o=e?.[_se];return typeof o=="string"?o.trim():""}function MD(e){if(!e)return null;let o=Ase(),t=o.rewrites.get(e);return!t&&!Rse()&&o.missed.add(e),t??null}var Nse={Link:_k,Image:Ok},HD=Fse(Nse);function nUe({runtime:e,children:o}){return Ln(HD.Provider,{value:e,children:o})}function XS(){return Bse(HD)}function sUe(){return XS().pagePath??null}var Mse=()=>()=>{},Hse=()=>fc()||null,Wse=()=>null;function Use(){return Dse(Mse,Hse,Wse)}function WD({hrefRewrite:e,newTab:o,...t}){let{Link:r}=XS(),a=Use(),n=o===!0?{...t,...cd}:o==="auto"?{...t,...iB(t.href,a)}:t,s=MD(e);return s?Ln(qS,{name:s.name,href:n.href,fallback:Ln(r,{...n}),children:Ln(Gse,{Link:r,rewrite:s.rewrite,...n})},s.key):Ln(r,{...n})}function Gse({Link:e,rewrite:o,...t}){let r=Z(o(t.href)),a=r&&hv(r)?r:t.href;return Ln(e,{...t,href:a})}var qS=class extends Lse{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 UD(e){let{Image:o}=XS();return Ln(o,{...e})}function Wr(e,o=!1,t){let r=qse(o),a=os(e);if(a.length===1){let[s]=a,l=zh(s),d=l?Vse(l,s.children):s.children;return Fn(kd,{value:e,children:[t,ym(d,r)]})}let n=[];return a.forEach((s,l)=>{if(s.bullet){n.push(je("span",{"data-sf-bullet":"",className:zse,children:ym(s.children,r)},l));return}if(s.number!=null){n.push(Fn("span",{"data-sf-number":s.number,className:$se,children:[Fn("span",{className:Kse,children:[s.number,"."]}),ym(s.children,r)]},l));return}l>0&&!jse(a[l-1])&&n.push(je("br",{},`br${l}`)),n.push(je(JS,{children:ym(s.children,r)},l))}),Fn(kd,{value:e,children:[t,n]})}var zse="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",$se="relative block pl-[2em]",Kse="absolute left-0 w-[1.6em] text-right tabular-nums";function jse(e){return e.bullet||e.number!=null}var GD="text-accent underline underline-offset-[0.18em]";function Vse(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function Yse(e){return ds(e)||void 0}function ym(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(je("span",{children:bm(a.text)},n)),r=!0;return}r||t.push(je("span",{},`e${n}`)),t.push($D(a,n,o)),r=!1}),r||t.push(je("span",{},"end")),t}function ZS(e,o){return e.length===1&&e[0].kind==="text"?bm(e[0].text):e.map((t,r)=>t.kind==="text"?je(JS,{children:bm(t.text)},r):$D(t,r,o))}function qse(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function gUe(e){return zD(e)}function zD(e,o){let t=e.split(`
|
|
393
|
+
`);return Fn(kd,{value:e,children:[o,t.map((r,a)=>Fn(JS,{children:[a>0?je("br",{}):null,je("span",{children:r})]},a))]})}function $D(e,o,t){if(e.kind==="link")return Zu(e.href)?je(WD,{newTab:"auto",href:e.href,className:GD,children:ZS(e.children,t)},o):je("a",{href:e.href,className:GD,children:ZS(e.children,t)},o);let r=ZS(e.children,t),a=pv[e.kind];if(a)return je("span",{[uv]: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=Yse(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 IUe(e,o=!0,t=!1){let r=e.split(`
|
|
394
|
+
`);return je(kd,{value:e,children:r.map((a,n)=>Fn("span",{children:[t?zD(a):Wr(a,o),n<r.length-1?je("br",{}):null]},n))})}function KD(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}import{tabletKey as jD}from"efficient-easel/screen/lib/content/view-tiers";var VD={direction:"column",justify:"between",gap:14,gapPhone:14,sectionPaddingLeft:14,sectionPaddingRight:14,[jD("sectionPaddingLeft")]:0,sectionPaddingLeftPhone:0,sectionHeightMode:"fixed",sectionHeightValue:280,sectionHeightUnit:"px",[jD("sectionHeightMode")]:"auto",sectionHeightModePhone:"auto"},QS={name:"Year and title",direction:"column",gap:14,gapPhone:14};import{tabletKey as Xse}from"efficient-easel/draw";var no={text:"Button label",href:"#"},gr=e=>e.replace(/\*([^*]+)\*/g,"==$1=="),De={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 Sm={eyebrow:De.eyebrow,title:`Section heading
|
|
395
|
+
*Highlight line*`,intro:De.body,imageCaption:De.imageCaption,imageMeta:De.imageMeta,cta:no.text},YD=()=>[{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.")}],vUe={label:"Story Timeline",drawsPictures:!0,defaultProps:{layout:"split",eyebrow:"",title:"",intro:"",imageSrc:"",imageCaption:"",imageMeta:"",ctaText:"",ctaHref:"",entries:[],padTop:120,padBottom:120}};var wm={eyebrow:De.eyebrow,title:De.headingAccent,intro:De.body,cta:no.text},qD=()=>[{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}],_Ue={label:"Milestone Timeline",defaultProps:{eyebrow:"",title:"",intro:"",entries:[],ctaText:"",ctaHref:"",background:ci,padTop:120,padBottom:120}};var oN={buttonBorder:{width:0}},vm=(e,o,t={})=>({textStyle:"body-5",...N("label",e),letterSpacing:o,lineHeight:1.5,weight:400,...t}),al=(e,o,t={})=>({...vm(e,o),...vo,...t}),Tm=(e,o,t)=>({...e,case:"upper",weight:500,letterSpacing:o,lineHeight:t}),vd=(e,o,t={})=>({textStyle:"body-1",fontRole:"heading",...e,weight:400,case:"none",lineHeight:o,...t}),wt=(e,o,t={})=>({kind:"text",key:e,props:H,style:o,...t}),XD=(e,o)=>o?.future===!0,Cm=e=>KD(typeof e?.body=="string"?e.body:""),aw=e=>fr(typeof e.background=="string"?e.background:void 0,An.TimelineTrack),ew=e=>aw(e)===Bo?e:{...e,background:"transparent"},Zse={name:"Milestone Timeline",skip:e=>Xu(aw(e)),boxProps:(e,o)=>{let t=ya(ew(e),o);return{...J,direction:"column",gap:60,[Xse("gap")]:36,gapPhone:36,sectionBorder:{bottom:1},...Qo,...Go(e,"TimelineTrack"),...qu(aw(e),e,o),...t>=0?{sectionAccent:t}:{}}},box:[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>Sa(e,ew(o),t)],...ba("TimelineTrack")],parts:[OS(im(nm("eyebrow","title","intro"),["intro"])),{kind:"group",name:"Track",props:{..._,gap:48,gapPhone:48},parts:[{kind:"group",name:"Years",props:{..._,direction:"row",share:"equal",gap:0,line:!0,...Qo},parts:[{kind:"list",key:"entries",name:"Year",props:{..._,...VD},item:e=>({props:e.future===!0?{upcoming:!0}:{}}),parts:[{kind:"group",name:QS.name,props:{..._,...QS},parts:[wt("date",vm(13,.22,{color:"accent"}),{when:(e,o)=>!XD(e,o)}),wt("date",vm(13,.22,{color:"labels"}),{when:XD}),wt("title",{textStyle:"heading-3",...Tm(N("headingSmall",20),-.02,1.1)},{role:"heading"})]},wt("blurb",vd(N("body",13),1.55),{props:X,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:{...wo,align:"right",...oN},style:al(13,.3)}]}]}],site:(e,o)=>wa({props:ew(e.props)},o),drop:{...ee,...le,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"}},sw=e=>typeof e.layout=="string"?e.layout:"split",km=e=>sw(e)==="split",nw=e=>!km(e),tN=e=>sw(e)==="spine",Jse=e=>nw(e)&&!tN(e),ZD=(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",...We(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:[wt("imageCaption",al(11,.24,{color:"text"})),wt("imageMeta",al(11,.24,{color:"accent"}),{props:{...H,align:"right"}})]}]}),JD=(e={})=>({kind:"button",key:"ctaText",href:"ctaHref",variant:"ghost",props:{...wo,...e,...oN},style:al(13,.3)}),ow=()=>[wt("title",{textStyle:"heading-3",...Tm(N("headingSmall",24,20),-.02,1.5)},{role:"heading",mark:"accentItalic"}),{kind:"block",type:"Text",props:{...H,_partStyles:{text:vd(N("body",17,16),1.6)}},box:[["body","text",(e,o)=>Ba(Cm(o)[0]??"")]],when:(e,o)=>Cm(o).length>0},{kind:"block",type:"Text",props:{...X,_partStyles:{text:vd(N("body",17,16),1.6,{paragraphSpacing:14})}},box:[["body","text",(e,o)=>Ba(Cm(o).slice(1).join(`
|
|
396
|
+
|
|
397
|
+
`))]],when:(e,o)=>Cm(o).length>1}],tw=()=>wt("date",vm(13,.24,{color:"accent"})),rw=(e,o,t={})=>wt(e,o,{...t,props:{...H,...t.props??{},align:"center"}}),QD=et("headingMedium",40,5,76),eN={sectionBorder:{bottom:1}},Qse={name:"Story Timeline",skip:e=>sw(e)==="track"?'display "track": not converted (it draws the Milestone rail; a Track story is not stored anywhere)':void 0,boxProps:e=>km(e)?{...J,direction:"row",share:[40],gap:80,gapPhone:48,align:"start",...eN,...Go(e,"Timeline")}:{...J,direction:"column",gap:48,gapPhone:48,align:"center",...eN,...Go(e,"Timeline")},box:[...ae,...ba("Timeline")],parts:[{kind:"group",name:"Heading",props:{..._,gap:24,gapPhone:24},when:km,parts:[wt("eyebrow",al(12,.3,{color:"accent"}),{role:"eyebrow"}),wt("title",{textStyle:"heading-2",...Tm(QD,-.03,.94)},{role:"heading",mark:"accentItalic"}),wt("intro",vd(N("body",14),1.6),{props:{...X,maxWidth:360},mark:"accentItalic"}),ZD(667,419,{},()=>!0),JD()]},{kind:"group",name:"Chapters",props:{..._,gap:48,gapPhone:48,line:!1},when:km,parts:[{kind:"list",key:"entries",name:"Chapter",props:{..._,direction:"row",gap:24,gapPhone:8,share:[12],align:"start"},parts:[tw(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:ow()}]}]},{kind:"group",name:"Heading",props:{..._,gap:24,gapPhone:24,align:"center",maxWidth:760,widthFit:"fill"},when:nw,parts:[rw("eyebrow",al(12,.3,{color:"accent"}),{role:"eyebrow"}),rw("title",{textStyle:"heading-2",...Tm(QD,-.03,.94)},{role:"heading",mark:"accentItalic"}),rw("intro",vd(N("body",14),1.6),{props:{...X,maxWidth:520},mark:"accentItalic"}),JD({align:"center"})]},ZD(506,192,{maxWidth:900,widthFit:"fill"},nw),{kind:"group",name:"Chapters",props:{..._,gap:48,gapPhone:48,line:!0,maxWidth:760,widthFit:"fill",sectionPaddingTop:16},when:tN,parts:[{kind:"list",key:"entries",name:"Chapter",props:{..._,gap:8,gapPhone:8},parts:[tw(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:ow()}]}]},{kind:"group",name:"Chapters",props:{..._,gap:56,gapPhone:56,maxWidth:1e3,widthFit:"fill",sectionPaddingTop:16,mirrorCards:"even"},when:Jse,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:[tw(),{kind:"group",name:"Words",props:{..._,gap:14,gapPhone:14},parts:ow()}]},{kind:"group",name:"Spacer",props:{..._},keepEmpty:!0,parts:[]}]}]}],drop:{...ee,...le,layout:"the Box's own arrangement replaces it: Split a row of two Boxes; Spine and Alternating a centred column (Track is skipped)"}},rN=()=>({eyebrow:Sm.eyebrow,title:gr(Sm.title),intro:Sm.intro,ctaText:no.text,ctaHref:no.href,entries:YD()}),aN=()=>({eyebrow:wm.eyebrow,title:gr(wm.title),intro:wm.intro,ctaText:no.text,ctaHref:no.href,entries:qD()}),nN={TimelineTrack:Zse,Timeline:Qse};import{tabletKey as ale}from"efficient-easel/draw";import{rootIsDark as ele}from"efficient-shell/format";function jUe(e="auto"){return e==="light"?!0:e==="dark"?!1:!ele({whenUnset:!0})}function sN(e,o){return Number.isFinite(e)&&Number.isFinite(o)&&!(e===0&&o===0)}function lw(e){let o=Number.parseFloat(e??"");return Number.isFinite(o)?o:0}var ole=["tall","square","wide"],tle="tall";function lN(e){return ole.includes(String(e??""))?String(e):tle}var qUe={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"},XUe=[{photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
398
|
+
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
|
|
399
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""}],rle=/^https?:\/\//i;function ZUe(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:lw(e.lat),lng:lw(e.lng),mapsUrl:rle.test(o)?o:""}}function iw(e){let o=String(e??"").split(" \xB7 ");return{state:(o[0]??"").trim(),country:(o[1]??"").trim()}}var JUe="other",QUe={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 iN(e){let o=String(e??"").replace(/[^+\d]/g,"");return o?`tel:${o}`:void 0}var Ct=e=>typeof e=="string"?e:e==null?"":String(e),cw=e=>Array.isArray(e.locations)?e.locations.map(o=>o??{}):[],nl=e=>Ct(e.group),gN=e=>`loc-${e}`,IN=e=>Ct(e.state).trim()||iw(Ct(e.region)).state,bN=e=>Ct(e.country).trim()||iw(Ct(e.region)).country,dN=e=>[IN(e),bN(e)].filter(Boolean).join(" \xB7 "),nle=e=>cw(e).some(o=>Ct(o.photo).trim()!==""),sle=e=>cw(e).some(o=>sN(Number(o.lat),Number(o.lng))),lle=(e,o)=>cw(e).filter(t=>nl(t)===nl(o)).length,ile=(e,o)=>lle(e,o)===1?"wide":lN(e.imageShape),dw={top:100,bottom:100,topPhone:60,bottomPhone:60},cN=48,Kt=(e,o={})=>({...Rt(e),...o}),fw={top:1,right:1,bottom:1,left:1},pw={..._,direction:"row",share:"equal",gap:0},dle=e=>o=>o>td(o)?{..._,gap:0}:{...pw,...o>1?{phoneRow:e}:{}},cle={kind:"group",name:"Gallery",props:{..._,gap:20,_hidden:!0},when:nle,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",Kt(12,{color:"accent",letterSpacing:.3})),{kind:"text",key:"galleryHint",props:{...X,align:"right",alignPhone:"left"},style:Kt(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:fw,...We(12,12)},item:(e,o,t)=>({props:{...Ct(e.photo).trim()?{bgImage:Ct(e.photo),hover:"mono"}:{},link:`#${gN(o)}`,boxShape:ile(t,e)}}),parts:[{kind:"text",key:"name",props:H,style:Kt(11,{letterSpacing:.22,color:"text"})}],groups:{of:nl,name:"Group",props:{..._,gap:10},head:e=>({label:nl(e[0]??{})}),parts:[pe("label",Kt(11,{color:"accent",letterSpacing:.3}))],itemsName:"Cities",itemsProps:dle(2),perRow:td,rowName:"Row",rowProps:{...pw,phoneRow:2}}}]}]},fle={kind:"group",name:"Words",props:{..._,gap:12,gapPhone:12,...We(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:H,style:{textStyle:"heading-3",...N("headingSmall",30),case:"upper",weight:500,lineHeight:1,letterSpacing:-.02}},{kind:"block",type:"Text",props:{...H,_partStyles:{text:Kt(12,{color:"accent",letterSpacing:.24,lineHeight:1.5})}},box:["region","state","country"].map(e=>[e,"text",(o,t)=>dN(t)]),when:(e,o)=>dN(o??{})!==""}]},{kind:"group",name:"Time zone",props:{..._,sectionBorder:fw,...We(6,10)},parts:[{kind:"text",key:"timezone",props:{...X,textFit:"line"},style:Kt(12,{letterSpacing:.22,lineHeight:1.5})}]}]},{kind:"text",key:"address",props:X,style:{textStyle:"body-5",fontRole:"heading",...N("body",14),lineHeight:1.5}},{kind:"block",type:"ButtonBlock",props:{...wo,...En,variant:"ghost",arrow:!1,_partStyles:{label:Kt(13,{letterSpacing:.18,color:"text",lineHeight:24/13})}},box:[["phone","label"],["phone","href",e=>iN(Ct(e))??"#"]],when:(e,o)=>Ct(o?.phone).trim()!==""},{kind:"text",key:"hours",props:X,style:Kt(12,{letterSpacing:.18,lineHeight:1.7})}]},ple={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)=>IN(t)]),...["region","country"].map(e=>[e,"country",(o,t)=>bN(t)])]},ule={kind:"group",name:"Map",props:{..._,sectionBorder:{top:1,right:0,bottom:0,left:0}},parts:[ple]},mle={kind:"list",key:"locations",name:"City",props:(e,o)=>({..._,gap:0,justify:"between",sectionBorder:fw,jumpHighlight:!0,sectionAccent:ya(e,o)>=0?Qs(e.sectionAccent,o):-1}),item:(e,o)=>({props:{anchor:gN(o)}}),parts:[fle,ule],groups:{of:nl,name:"Group",props:{..._,gap:20},head:e=>{let o=e[0]??{};return{key:nl(o),groupName:Ct(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)=>Ct(o?.key).trim()!=="",parts:[pe("key",Kt(13,{color:"accent",letterSpacing:.3})),{kind:"text",key:"groupName",role:"heading",props:H,style:{textStyle:"heading-3",...N("headingSmall",24),case:"upper",weight:500,letterSpacing:-.01}},{kind:"text",key:"count",props:X,style:Kt(12,{letterSpacing:.22})}]}],itemsName:"Cities",itemsProps:e=>({...pw,columns:td(e),[ale("columns")]:1})}},fN=Kt(10,{letterSpacing:.25}),hle={kind:"block",type:mr,props:{..._,name:"Credit",direction:"row",justify:"end",align:"center",gap:6,share:"content",wrap:!0},when:sle,slot:hr,keepEmpty:!0,parts:[{kind:"block",type:"Text",props:{...X,text:"Location coordinates \xA9",_partStyles:{text:fN}}},{kind:"block",type:"ButtonBlock",props:{...wo,...En,variant:"ghost",arrow:!1,label:"OpenStreetMap contributors",href:"https://www.openstreetmap.org/copyright",_partStyles:{label:{...fN,color:"labels"}}}}]},pN=(e,o)=>Object.fromEntries(o.filter(t=>e[t]!==void 0).map(t=>[t,e[t]])),uN=["sectionPaddingTop","sectionPaddingTopTablet","sectionPaddingTopPhone"],mN=["sectionPaddingBottom","sectionPaddingBottomTablet","sectionPaddingBottomPhone"],hN=e=>e.map(o=>[o,o,(t,r)=>ie(r,dw)[o]]),xN=["sectionAccent","sectionAccent",Sa],xle=["gridSpan",...fs,...Object.values(to)],gle={name:"City pictures",skip:e=>oo(e)?`fed by the data source "${oo(e)}": its cities are read as the page is served, not stored on the node`:void 0,boxProps:(e,o)=>({...J,direction:"column",gap:40,anchor:"studios",...Qo,...pN(ie(e,dw),uN),sectionPaddingBottom:cN,sectionPaddingBottomPhone:cN,...On(e,o)}),box:[...ae.filter(e=>e!=="sectionAccent"&&e!=="anchor"),xN,["anchor","anchor",e=>Yl(e).trim()?e:"studios"],...hN(uN)],parts:[nm("sectionNumber","heading","tagline"),cle],also:[{name:"City maps",boxProps:(e,o)=>({...J,direction:"column",gap:40,sectionBorder:{bottom:1},...Qo,sectionPaddingTop:0,sectionPaddingTopPhone:0,...pN(ie(e,dw),mN),...On(e,o)}),box:[...xle,xN,...hN(mN)],parts:[mle,hle]}],reads:{mapTheme:"City maps Box: each Map block's Map theme",imageShape:"City pictures Box: each picture Box's Box shape"},site:wa,drop:{...ee,...le,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)"}},yN={ContactLocations:gle};import{SITE_SIDE as wN}from"efficient-easel/screen/lib/content/length-units";var Pm="boxes",uw=3,mw=()=>({type:K,props:{direction:"column"},slots:{[re]:[{type:"ImageBlock"},{type:K,props:{direction:"column"},slots:{[re]:[{type:"Text",props:Jr()},{type:"Text"}]}}]}}),SN=()=>Array.from({length:uw},mw);var Ile=["FAQ","Footprint","LongRead","ProcessSteps","RelatedProducts"];var Ca=(e,o)=>()=>({top:e,topPhone:o}),CN=e=>o=>{let t=Go(o,e).sectionPaddingTop;return{top:t,topPhone:t}},ble={Collections:Ca(120,70),Events:Ca(120,70),FAQ:Ca(120,70),GalleryB:Ca(120,70),FitmentTable:Ca(120,80),SpecTable:Ca(120,80),LongRead:Ca(120,80),RelatedProducts:Ca(0,0),Footprint:CN("Footprint"),ProcessSteps:CN("ProcessSteps"),ProductGrid:e=>({top:j(e.padTop)??120,topPhone:0})};function yle(e,o={}){let t=G(sr,e),r=G(ble,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=bt(e),s=dm(e),l=t.headRows.filter(c=>![t.num,t.title,t.description,"linkText","linkHref"].includes(c)),d={...Object.fromEntries(l.filter(c=>!(c in s)).map(c=>[c,"a head setting no Header Box part reads (lib/document/blocks/general/section-head-looks `headReads`)"])),...o.drop};return{name:G(xc,e)??e,boxProps:(c,f)=>{let u=r(c),p=o.roomBelow?{sectionPaddingBottom:o.roomBelow.bottom,sectionPaddingBottomPhone:o.roomBelow.bottomPhone}:{},h=typeof o.boxProps=="function"?o.boxProps(c,f):o.boxProps??{},g=_n(e)==="editorial"?Qo:{};return{...J,direction:"column",gap:fd[_n(e)],sectionPaddingTop:u.top,sectionPaddingTopPhone:u.topPhone,...g,...p,...h}},box:[...ae,...a?[[a,"sectionPaddingTop",(c,f)=>r(f).top]]:[]],parts:[n,...(()=>{let c={...a?{[a]:0}:{},...o.coreProps},f={kind:"core",keep:"rest",...Object.keys(c).length?{props:c}:{},...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(d).length?{drop:d}:{},...o.pressHeading?{pressKeepsEmpty:[t.title]}:{},...o.skip?{skip:o.skip}:{}}}var Sle={..._,direction:"accordion",rowStyle:"numbered"},wle={sectionPaddingLeft:wN,sectionPaddingRight:wN},Cle={Footprint:{slots:{[go]:[nT()]},pressHeading:!0},ProcessSteps:{slots:(e,o)=>o.press?{[Pm]:SN().map(t=>({...t,props:{...t.props,...wle}}))}:{},boxProps:{gapPhone:fd.editorial}},FAQ:{slots:{[go]:[fx()]},pressHeading:!0,coreBox:{name:"Questions",props:Sle},coreProps:{sectionAccent:Jt},roomBelow:{bottom:120,bottomPhone:70},boxProps:(e,o)=>o.press?{}:{[YF]:vn},skip:e=>{let o=e._partStyles??{},t=eT().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}}},kN=Object.fromEntries(Ile.map(e=>[e,yle(e,G(Cle,e))]));import{BLOCK_WIDTH_LIMIT as vle}from"efficient-easel/draw";var Em={eyebrow:De.eyebrow,title:De.headingAccent,deck:"Add a sentence or two introducing this document."},BGe={label:"Document masthead",defaultProps:{eyebrow:"",title:"",deck:"",meta:[]}};var hw="titleLevel",kle=e=>e===2?"h2":"h1",xw=e=>kle(e?.[hw])==="h2";var RN={minWidth:vle.min},vN=(e,o,t)=>({...pe(e,{...o,...nd}),props:{...H,align:"right",...Tn,...t}}),LN={top:1,bottom:0},Iw=(e,o,t,r)=>({kind:"group",name:e,props:{..._,sectionPaddingBottom:o,sectionPaddingBottomPhone:t},parts:[r]}),TN={widthFit:"fill",...RN},PN={top:100,bottom:60,topPhone:60,bottomPhone:40},Tle={...N("label",13),letterSpacing:.22,lineHeight:1.8},EN={textStyle:"heading-1",...et("headingLarge",56,8,128),case:"upper",weight:500,lineHeight:.88,letterSpacing:-.04},Ple=()=>({name:"Page Header",boxProps:e=>({...J,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,PN)}),box:[...ae,...he(PN)],parts:[{kind:"group",name:"Header",props:{..._,direction:"row",align:"end",justify:"between",gap:40,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Iw("Eyebrow",12,0,{...pe("eyebrow",N("label",13)),props:{...H,...Tn}}),{kind:"text",key:"title",role:"heading",props:{...H,tag:"h1",...TN},style:EN,mark:"accentItalic",when:e=>!xw(e)},{kind:"text",key:"title",role:"heading",props:{...H,tag:"h2",...TN},style:EN,mark:"accentItalic",when:xw},{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:[sd("label","value",Tle,Tn)]}]}]},{kind:"group",name:"Deck",props:{..._,maxWidth:760,sectionBorder:LN,sectionPaddingTop:28},parts:[{kind:"text",key:"deck",props:X,style:{textStyle:"body-1",fontRole:"accent",...N("body",22,19),italic:!0,lineHeight:1.5}}]}],drop:{...ee,...le,[hw]:"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"}}),FN=()=>({eyebrow:Em.eyebrow,title:gr(Em.title),deck:Em.deck,meta:[{label:De.label,value:De.value},{label:De.label,value:De.value}]}),ON={top:80,bottom:40,topPhone:60,bottomPhone:32},Ele={...N("label",13),letterSpacing:.18,lineHeight:1.8},_N={...N("label",13),letterSpacing:.22,lineHeight:1.9},Ole=()=>({name:"Issue Header",boxProps:e=>({...J,direction:"column",gap:0,sectionBorder:{bottom:1},...ie(e,ON)}),box:[...ae,...he(ON)],parts:[{kind:"group",name:"Top",props:{..._,direction:"row",align:"end",justify:"between",gap:60,gapPhone:16,share:"content",sectionPaddingBottom:32},parts:[Iw("Eyebrow",14,14,pe("eyebrow",N("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:[sd("lead","rest",Ele)]}]}]},{kind:"group",name:"Bottom",props:{..._,direction:"row",align:"start",justify:"between",gap:60,gapPhone:16,share:"content",sectionBorder:LN,sectionPaddingTop:32},parts:[{kind:"text",key:"lead",props:{...H,maxWidth:720,...RN},style:{textStyle:"body-1",fontRole:"heading3",...N("headingSmall",20),lineHeight:1.5,letterSpacing:-.005,paragraphSpacing:16}},{kind:"group",name:"In this issue",props:{..._,align:"stretch",gap:0},parts:[Iw("Heading",6,6,{kind:"text",key:"issueHeading",props:{...H,align:"right",...Tn},style:{textStyle:"body-1",fontRole:"heading",...N("body",18),weight:400,letterSpacing:-.01,lineHeight:1.9,...nd}}),{kind:"group",name:"Lines",props:{..._,align:"stretch",gap:0},parts:[{kind:"list",key:"issueList",name:"Line",flat:!0,parts:[vN("text",{color:"labels",..._N})]}]},vN("issueTotal",_N)]}]}],drop:{...ee,...le}}),AN={top:24,bottom:24,topPhone:16,bottomPhone:16},gw={color:"labels",...N("label",13),letterSpacing:.2},BN=e=>(Array.isArray(e.items)?e.items:[]).filter(o=>o&&typeof o.label=="string"&&o.label.trim()!==""),bw=(e,o)=>o!==void 0&&BN(e).at(-1)===o,DN=(e,o)=>o!==void 0&&BN(e).includes(o),_le=(e,o)=>DN(e,o)&&!bw(e,o)&&Ke(o?.href),Ale=()=>({name:"Breadcrumb",skip:e=>Ke(e.meta)?'a trailing note after "\xB7" needs a second mark; none live':void 0,boxProps:e=>({...J,...Rn,wrap:"wrap",gap:16,gapPhone:16,separator:"slash",sectionBorder:{bottom:1},...ie(e,AN)}),box:[...ae,...he(AN)],parts:[{kind:"list",key:"items",name:"Crumb",flat:!0,parts:[{kind:"button",key:"label",href:"href",variant:"ghost",when:_le,props:{...wo,...En,icon:"none"},style:gw},{...pe("label",gw),when:(e,o)=>DN(e,o)&&!bw(e,o)&&!Ke(o?.href)},{...pe("label",{...gw,color:"text"}),when:bw}]}],drop:{...ee,...le,meta:"a node that stores a note is skipped (`skip`); an empty one draws nothing"}}),NN={DocMasthead:Ple(),Masthead:Ole(),Breadcrumb:Ale()};import{BLOCK_WIDTH_LIMIT as Lle,hiddenKeyOf as Fle}from"efficient-easel/draw";import{readHidable as yw}from"efficient-easel/draw";function Rle(e,o,t){return e||(t?.isEditing?i(o):void 0)}function XGe(e,o,t){let r=Array.isArray(e)?e:[];return r.length?r:t?.isEditing?o:[]}function MN(e,o,t){let r=yw(e);if(!r.hidden)return Rle(r.text,o,t)}function HN(e){if(e==null)return;let o=yw(e);return o.hidden?"":o.text}function ZGe(e,o,t){return yw(e).hidden?"":MN(e,o,t)}function JGe(e,o,t){return{text:MN(e,no.text,t),href:o||no.href}}var zN="MenuBlock",Sw=e=>(Array.isArray(e)?e:[]).filter(o=>o&&Ke(o.label)),WN=e=>{let[o,t]=[e.metaLabel,e.metaValue].map(a=>(HN(a)??"").trim());if(!t)return o;let r=t.includes("==")?t:`==${t}==`;return o?`${o} ${r}`:r},UN={top:0,bottom:0,topPhone:0,bottomPhone:0},Ble={...vo,color:"labels",...N("label",12),letterSpacing:.24},Dle={kind:"group",name:"Note",props:{..._,justify:"center",sectionBorder:{top:0,right:0,bottom:0,left:1},sectionPaddingLeft:28,[Fle("mobile")]:!0},parts:[{kind:"block",type:"Text",when:e=>WN(e)!=="",props:e=>({...H,textFit:"line",text:WN(e),[ki]:{text:Ble}})}]},$N=()=>({tabs:[],metaLabel:De.label,metaValue:De.value}),GN="the note Text inside the Box (the label, then the value in the accent); no words, no Text",KN={direction:"row",menuStyle:"tabs",currentPage:!0,minWidth:Lle.min},jN=e=>({...e,boxProps:o=>({...J,direction:"row",align:"stretch",justify:"between",gap:0,stickTop:!0,[Xa]:0,[si]:!0,sectionBorder:{bottom:1},...ie(o,UN)}),box:[...ae,...he(UN)]}),Nle=()=>jN({name:"Tab Bar",skip:e=>Sw(e.tabs).length?"its tabs need a Console menu first: they are typed labels and links, and the Menu block draws only a Console menu":void 0,reads:{metaLabel:GN,metaValue:GN},parts:[{kind:"block",type:zN,props:KN},Dle],drop:{...ee,...le,tabs:"a node whose tabs hold words is skipped (`skip`): typed tabs are not a Console menu; a list of blank tabs draws nothing, so nothing is lost"}}),Mle=()=>jN({name:"Category Bar",skip:e=>{if(Sw(e.tabs).length)return"its tabs are typed words with typed counts, not the blog's categories: a Blog categories Menu would replace them";if(Sw(e.links).length)return"its right-hand links are typed words: the bar holds the Menu only"},parts:[{kind:"block",type:zN,props:{...KN,[mo]:Zk}}],drop:{...ee,...le,tabs:"a node whose tabs hold words is skipped (`skip`); blank tabs draw nothing on a page, so nothing is lost. The Menu draws the blog's own categories",activeTab:"the Menu marks the page's own entry (Current page), not a typed active tab",links:"a node whose links hold words is skipped (`skip`); blank links draw nothing",sticky:"the bar is always pinned (the Box's own pin, Stays above): the merchant turns the Box's pin off",editing:"the editor's preview flag, never a stored setting: the editor tells every block it is editing"}}),VN={DocTabs:Nle(),CategoryBar:Mle()};import{jsx as Bn,jsxs as Cw}from"react/jsx-runtime";import{slugify as Hle}from"efficient-shell/format";import{jsx as ww,jsxs as YN}from"react/jsx-runtime";var cze="sticky top-[120px]";var qN=(e,o)=>e?{[Rc]:o}:{},XN=(e,o)=>Lc(e?.[Ll(o)]?.role,ku[o],Kn),ZN=120;function JN({title:e,entries:o,stickyTop:t,sticky:r=!0,editing:a=!1,partStyles:n,numberForm:s=JI,takesViewHide:l=!1}){let d=s==="plain",c=Vr(),f=l?c:es;return f.scope(YN("aside",{className:Yr(`${r?"sticky ":""}flex flex-col self-start max-[900px]:static`,f.className),style:r?{top:t}:void 0,...f.attrs,children:[e&&ww("h4",{className:"mb-[18px] font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:Wr(e)}),o.map((u,p)=>{let h=ww("span",{...qN(a,"number"),style:XN(n,"number"),className:"text-accent",children:Ip(s,p)});return YN("a",{href:`#${u.anchor}`,className:`flex items-center ${d?"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:[d&&h,ww("span",{...qN(a,"entry"),style:XN(n,"entry"),children:Wr(u.label||"Section")}),!d&&h]},`${p}-${u.anchor}`)})]}))}function Wle(e,o){return Hle(e)||`section-${o+1}`}var kw=e=>typeof e=="string"&&e.trim()!=="";function vw(e){return(e??[]).filter(o=>kw(o.heading)||kw(o.label)||kw(o.body))}function Tw(e){let o=new Set;return e.map((t,r)=>{let a=Wle(t.label||t.heading||"",r),n=a,s=2;for(;o.has(n);)n=`${a}-${s++}`;return o.add(n),n})}function Pw(e){let o=[];for(let t of e.replace(/\r\n?/g,`
|
|
400
|
+
`).split(/\n[ \t]*\n/))t.split(`
|
|
401
|
+
`).map(r=>r.replace(/\s+$/,"")).filter(r=>r.trim()!=="").forEach((r,a)=>{let n=os(r)[0].bullet,s=o.at(-1),l=a===0||!s||s.type==="ul"!==n;if(n){let d=r.slice(2);!l&&s?.type==="ul"?s.items.push(d):o.push({type:"ul",items:[d]})}else!l&&s?.type==="p"?s.text+=`
|
|
402
|
+
${r}`:o.push({type:"p",text:r})});return o}var Ule=()=>[{label:i("First section"),heading:i("Your *first* section."),body:i(`Write the opening paragraph here.
|
|
403
|
+
|
|
404
|
+
- Start a line with a dash for a bullet.
|
|
405
|
+
- 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.")}],Gle=ZN;function Oze({tocTitle:e,sections:o,editing:t=!1,stickyTop:r=Gle}){let a=vw(o);if(a.length===0&&!t)return null;let n=a.length===0&&t?Ule():a,s=Tw(n);return Bn(dc,{as:"section",className:"relative z-[2] bg-bg",children:Cw("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:[Bn(JN,{title:e,entries:n.map((l,d)=>({label:l.label||"Section",anchor:s[d]})),stickyTop:r}),Bn("div",{className:"flex flex-col gap-16",children:n.map((l,d)=>Cw("article",{id:s[d],className:"flex flex-col gap-[18px]",style:{scrollMarginTop:r},children:[Cw("span",{className:"font-mono text-[length:var(--size-label,12px)] uppercase tracking-[0.3em] text-accent",children:[ZI(d)," \xB7 ",Wr(l.label||"Section")]}),l.heading&&Bn("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:Wr(l.heading)}),Pw(l.body??"").map((c,f)=>c.type==="ul"?Bn("ul",{className:"flex max-w-[680px] list-none flex-col gap-2.5 pl-0",children:c.items.map((u,p)=>Bn("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:Wr(u)},p))},f):Bn("p",{className:"max-w-[680px] font-serif text-[length:var(--size-body,17px)] leading-[1.7] text-fg-dim",children:Wr(c.text)},f))]},s[d]))})]})})}var QN={top:80,bottom:80,topPhone:60,bottomPhone:60},eM=18,oM=18,tM=8,zle=10,Ew=e=>typeof e=="string"&&e.trim()!=="",rM=e=>vw(e.sections),$le=e=>Pw(typeof e.body=="string"?e.body:"").map(o=>o.type==="ul"?{kind:"ul",text:o.items.map(t=>`- ${t}`).join(`
|
|
406
|
+
`)}:{kind:"p",text:o.text}),Ow={...Rt(12),letterSpacing:.3,color:"accent",lineHeight:1.5},aM={textStyle:"body-1",fontRole:"accent",...N("body",17)},Kle=[pe("label",Ow),{...pe("title",Ow),when:(e,o)=>!Ew(o?.label)},{kind:"block",type:"Text",when:(e,o)=>!Ew(o?.label)&&!Ew(o?.title),props:{...H,text:"Section",_partStyles:{text:Ow}}},{kind:"group",name:"Heading",props:{..._,sectionPaddingBottom:tM,sectionPaddingBottomPhone:tM},parts:[{kind:"group",name:"Heading line",props:{..._,sectionBorder:{bottom:1},sectionPaddingBottom:oM,sectionPaddingBottomPhone:oM},parts:[{kind:"text",key:"heading",role:"heading",props:H,style:{textStyle:"heading-2",...et("headingMedium",28,3.5,44),case:"upper",weight:500,lineHeight:1.04,letterSpacing:-.025}}]}]},{kind:"list",key:"body",name:"Body",flat:!0,of:$le,parts:[{kind:"text",key:"text",props:X,style:{...aM,lineHeight:1.7},when:(e,o)=>o?.kind==="p"},{kind:"text",key:"text",props:X,style:{...aM,lineHeight:1.65,paragraphSpacing:zle},when:(e,o)=>o?.kind==="ul"}]}],jle=900,Vle={name:"Document Text",boxProps:e=>({...J,direction:"row",gap:80,gapPhone:40,[rm]:jle,sectionBorder:{bottom:1},...ie(e,QN)}),box:["anchor","sectionAccent",...fs,...Object.values(to),...he(QN)],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=>rM(e),props:{..._,gap:eM,gapPhone:eM},item:(e,o,t)=>({props:{anchor:Tw(rM(t))[o]??`section-${o+1}`}}),parts:Kle}]}],reads:{tocTitle:"the Contents block's Heading"},drop:{...ee,stickyTop:"the Contents block draws DocBody's default (120px); 0 live nodes store it"}},nM={DocBody:Vle};import{phoneKey as Xle}from"efficient-easel/draw";import{SITE_SIDE as Zle}from"efficient-easel/screen/lib/content/length-units";var Hze={eyebrow:"\u2014 Label",title:`Section headline *here.*
|
|
407
|
+
*Highlight line*`,body:"Describe this section in a sentence or two."},Wze={text:"Learn more"},Uze={label:"Image & Text Split",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",reverse:!1,uppercase:!1,textAlign:"left",ctaText:"",ctaHref:"",imageBtnText:"",imageBtnHref:"",textBgSrc:"",overlay:60,imageOverlay:40}};function _w(e){return typeof e=="number"&&Number.isFinite(e)?Math.min(Math.max(e,0),100):40}var $ze="[--intro-edge:60px] max-[960px]:[--intro-edge:24px]",Yle="overlay",qle=[{label:"Copy over image",value:"overlay"},{label:"Copy above image",value:"stacked"}];function sM(e){return io(qle,Yle,e)}var Kze={desktop:40,mobile:45,min:20,max:80,step:5};function jze(e,o){return`${typeof e=="number"?e:o}%`}var lM=(e,o,t)=>{let r=j(e),a=j(o),n=(s,l)=>l&&l!=="px"?{[s]:l}:{};return{...r===void 0?{}:{size:r,...n(ht.size,t?.desktop)},...a===void 0?{}:{sizePhone:a,...n(ht.sizePhone,t?.phone)}}},Jle=e=>sM(e.layout)==="stacked",iM=e=>Math.min(Math.max(j(e.overlay)??60,0),100),Om=e=>j(e)??100,Qle={textStyle:"heading-1",sizeToken:{...et("headingLarge",48,7,96).sizeToken,pxPhone:36},weight:500,lineHeight:.95,letterSpacing:-.03},eie=[pe("eyebrow",N("label",14)),...[!0,!1].map(e=>({kind:"text",key:"title",role:"heading",props:H,style:{...Qle,case:e?"upper":"none"},styleFrom:o=>{let t=xI(o);return lM(o.titleSizeDesktop,o.titleSizeMobile,{desktop:t.titleDesktop,phone:t.titleMobile})},when:o=>o.uppercase===!0===e})),{kind:"text",key:"body",props:{...X,maxWidth:560},style:{textStyle:"body-1",...N("body",17,16),lineHeight:1.6,paragraphSpacing:24},styleFrom:e=>{let o=xI(e);return lM(e.bodySizeDesktop,e.bodySizeMobile,{desktop:o.bodyDesktop,phone:o.bodyMobile})}},{kind:"group",name:"Button",props:{..._,align:"start",sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:wo}]}],dM=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)`,oie=()=>({name:"Scroll-Over Text",skip:e=>Jle(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=>({...J,direction:"column",justify:"center",align:"start",gap:24,gapPhone:24,share:"content",...ld,placement:"left",darken:iM(e),darkenStyle:"even",sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:Om(e.heightDesktop),sectionHeightModePhone:"fixed",sectionHeightUnitPhone:"%",sectionHeightValuePhone:Om(e.heightMobile)}),box:[...ae.filter(e=>!String(typeof e=="string"?e:e[0]).startsWith("sectionHeight")),["imageSrc","bgImage"],["imageSrcMobile","bgImagePhone"],["overlay","darken",(e,o)=>iM(o)],["heightDesktop","sectionHeightValue",e=>Om(e)],["heightMobile","sectionHeightValuePhone",e=>Om(e)]],parts:eie,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",...Object.fromEntries(f0.map(e=>[e,"read by its part's `styleFrom`: the unit of that view's Size"])),buttonColor:dM("Button color"),buttonTextColor:dM("Button text color"),...ee}}),pM={textStyle:"heading-2",...N("headingMedium",56,36),weight:400,lineHeight:1.05,letterSpacing:-.03},tie={textStyle:"body-1",...N("body",16),lineHeight:1.7},uM=e=>({kind:"text",key:"body",props:{...X,maxWidth:520},style:{...tie,paragraphSpacing:e}}),Am={top:0,bottom:0,topPhone:0,bottomPhone:0},Aw=(e,o)=>typeof e.sectionHeightMode=="string"&&e.sectionHeightMode!=="auto"?{}:{sectionHeightMode:"fixed",sectionHeightUnit:"%",sectionHeightValue:o,sectionHeightModePhone:"auto"},rie=(e,o)=>{let t=Aw(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"}},mM={boxShapePhone:"landscape"},hM="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)",aie=(e,o)=>({[e]:o,[Xle(e)]:o}),nie={textStyle:"heading-2",...N("headingMedium",40),weight:500,case:"none",lineHeight:1,letterSpacing:-.02},cM=e=>(Array.isArray(e.stats)?e.stats:[]).filter(o=>o&&(String(o.value??"").trim()!==""||String(o.label??"").trim()!=="")),sie=()=>({name:"Brand Text",boxProps:(e,o)=>({...J,...Jo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,Am),...Aw(e,100)}),box:[...ae,...he(Am)],parts:[{kind:"group",name:"Words",props:()=>({..._,justify:"center",gap:28,gapPhone:28,sectionBorder:id({right:1}),sectionBorderPhone:id({}),...ld,sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60,sectionPaddingRight:Zle}),parts:[pe("eyebrow",N("label",14)),{kind:"text",key:"heading",role:"heading",props:H,style:{...pM,case:"none"},mark:"accentItalic"},uM(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(cM(e).length,1),3),...aie("sectionBorder",id({top:1})),sectionPaddingTop:28,sectionPaddingTopPhone:28}),parts:[{kind:"list",key:"stats",name:"Stat",of:cM,props:{..._,gap:4,gapPhone:4},parts:[{kind:"text",key:"value",props:Pn,style:nie},pe("label",{...N("label",13),color:"labels",letterSpacing:.2})]}]}]}]},SS("Picture","imageSrc",mM)],drop:{...ee,grayscale:hM,...le}}),_m=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}},lie=e=>e.textAlign==="center"?"center":e.textAlign==="right"?"end":"stretch",iie=e=>Math.min(Math.max(j(e.overlay)??60,0),100),xM=e=>typeof e=="string"&&e.trim()!=="",die={...wo,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},fM=e=>({...SS("Picture","imageSrc",(o,t)=>({...xM(o.imageSrc)&&_w(o.imageOverlay)>0?{darken:_w(o.imageOverlay),darkenStyle:"even"}:{},placement:"center",...mM,sectionBorder:id(e?{left:1}:{right:1}),...gM(e?"left":"right",el(t))}),[{kind:"button",key:"imageBtnText",href:"imageBtnHref",variant:"ghost",props:die,style:{...Rt(13,12),letterSpacing:.18}}]),when:o=>o.reverse===!0===e}),gM=(e,o)=>{let t=Math.max(60-o,0);return{sectionPaddingLeft:e==="left"?60:t,sectionPaddingRight:e==="right"?60:t}},cie={kind:"group",name:"Words",props:(e,o)=>{let t=e.reverse===!0;return{..._,justify:"center",align:lie(e),placement:e.textAlign==="center"?"center":e.textAlign==="right"?"right":"left",...rie(e,72),gap:24,gapPhone:24,...xM(e.textBgSrc)?{darken:iie(e),darkenStyle:"even"}:{},...ld,sectionPaddingTop:100,sectionPaddingBottom:100,...gM(t?"right":"left",el(o)),sectionPaddingTopPhone:60,sectionPaddingBottomPhone:60}},box:[["textBgSrc","bgImage"]],parts:[{...pe("eyebrow",N("label",14)),styleFrom:_m},{kind:"text",key:"title",role:"heading",props:H,style:pM,styleFrom:e=>({case:e.uppercase===!0?"upper":"none",..._m(e)})},{...uM(24),styleFrom:_m},{kind:"group",name:"Button",props:{..._,sectionPaddingTop:8,sectionPaddingTopPhone:8},parts:[{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:e=>{let o=_m(e);return{...wo,...o.align?{align:o.align}:{},...o.alignPhone?{alignPhone:o.alignPhone}:{}}}}]}]},fie=()=>({name:"Image & Text Split",boxProps:(e,o)=>({...J,...Jo("background")(e,o),direction:"row",share:"equal",gap:0,gapPhone:0,sectionBorder:{top:1,bottom:1},...ie(e,Am),...Aw(e,72)}),box:[...ae,...he(Am)],parts:[fM(!1),cie,fM(!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",imageOverlay:"read by the Picture Box: its Darken over the image column's picture (40 when unset, none at 0); no picture, no wash",grayscale:hM,...ee,...le}}),IM={IntroBleed:oie(),Manifesto:sie(),Split:fie()};var SM={headPlacement:void 0},bM={top:0,bottom:0,topPhone:0,bottomPhone:0},pie=()=>({name:"Form",ownBoxConverts:!0,boxProps:e=>({...J,direction:"column",...ie(e,bM)}),box:[...ae,...he(bM)],parts:[{kind:"core",keep:"rest",props:SM}],drop:{...ee,...le}}),yM={top:120,bottom:120,topPhone:60,bottomPhone:60},uie=()=>({name:"Photo Submission Form",boxProps:e=>({...J,direction:"column",gap:24,...ie(e,yM)}),box:[...ae,...he(yM)],parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:H,style:{textStyle:"heading-2"},mark:"accentItalic"},{kind:"text",key:"body",role:"body",props:X},{kind:"core",as:"Form",keep:["formSlug"],rename:{buttonText:"submitText",consent:"finePrint"},props:SM}],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:{...ee,...le,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'}}),wM={Form:pie(),SubmitBuild:uie()};import{phoneKey as CM}from"efficient-easel/draw";var vM=1.5,kM={textStyle:"body-1",...N("body",15),lineHeight:vM},mie={...vo,...N("label",12),letterSpacing:.12,lineHeight:vM},TM=()=>({type:K,props:{..._,direction:"row",justify:"between",align:"start",gap:16,gapPhone:16,share:"content",phoneRow:2,[CM("share")]:"content",[CM("wrap")]:"nowrap",...We(12,0),sectionBorder:{top:1},name:"Item"},slots:{[re]:[{type:K,props:{..._,gap:0,gapPhone:0,name:"Item words"},slots:{[re]:[ne("label",{...H,tag:"p"},kM),ne("meta",{...X,tag:"p"},mie)]}},ne("amount",{...H,tag:"p"},kM)]}});var hie=()=>({name:"Order Table",boxProps:()=>({...J,direction:"column"}),box:[...ae],parts:[{kind:"core",keep:"rest",headless:!0,slots:{[go]:[TM()]}}],drop:{...ee}}),PM={OrderSummary:hie()};import{phoneKey as xie}from"efficient-easel/draw";var x$e={eyebrow:"By the numbers",title:`A picture worth
|
|
408
|
+
*a thousand rows.*`},EM=["eyebrow","title","body","caption"],g$e={label:"Chart",defaultProps:{eyebrow:"",title:"",body:"",items:[],caption:"",chartStyle:"bars",valueSuffix:""}};var OM=["eyebrow","title","body"],b$e={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 RM={top:76,bottom:76,topPhone:76,bottomPhone:76},LM=()=>({kind:"group",name:"Words",props:{..._,gap:20,gapPhone:20},parts:[{kind:"group",name:"Chip row",props:{..._,direction:"row",phoneRow:2,[xie("share")]:"content"},parts:[ju("eyebrow")]},{kind:"text",key:"title",role:"heading",props:H,style:{textStyle:"heading-2",...N("headingMedium",44,32),weight:500,case:"upper",lineHeight:1.04,letterSpacing:-.02}},{kind:"text",key:"body",props:{...X,maxWidth:435},style:{textStyle:"body-1",...N("body",15),lineHeight:1.625}}]}),FM=e=>(o,t)=>({...J,sectionAccent:yS(o.sectionAccent??0,t),direction:"row",align:"center",gap:56,gapPhone:56,share:e,sectionBorder:{top:1,bottom:1},...ie(o,RM)}),BM=[...ae.filter(e=>e!=="sectionAccent"),["sectionAccent","sectionAccent",(e,o,t)=>yS(e,t)],...he(RM)],gie=()=>({name:"Chart",boxProps:FM([42]),box:BM,parts:[LM(),{kind:"group",name:"Chart",props:{..._,gap:16,gapPhone:16},keepEmpty:!0,parts:[{kind:"core",keep:"rest",props:Js},pe("caption",{color:"muted",...N("label",10),letterSpacing:.14})]}],pressKeepsEmpty:[...EM],drop:{...ee,...le}}),_M=e=>e.align==="left",AM={kind:"group",name:"Card",keepEmpty:!0,props:_,parts:[{kind:"core",keep:"rest",props:Js}]},Iie=()=>({name:"Mockup Card",boxProps:FM("equal"),box:BM,parts:[{...AM,when:_M},LM(),{...AM,when:e=>!_M(e)}],pressKeepsEmpty:[...OM],drop:{...ee,...le}}),DM={Chart:gie(),Mockup:Iie()};var bie={title:"Back online in",zeroText:"Almost done. Back very soon."},NM=["title"],P$e={label:"Countdown",defaultProps:{...bie,endsAt:"",showUnits:!0}};var MM={top:48,bottom:48,topPhone:48,bottomPhone:48},yie={...pe("title",{...El(12),color:"muted"}),props:{...H,align:"center"}},Sie=()=>({name:"Countdown",boxProps:e=>({...J,direction:"column",align:"center",gap:16,gapPhone:16,...ie(e,MM)}),box:[...ae,...he(MM)],parts:[yie,{kind:"core",keep:"rest",props:Js}],pressKeepsEmpty:[...NM],drop:{...ee,...le}}),HM={top:80,bottom:80,topTablet:60,bottomTablet:60,topPhone:60,bottomPhone:60},wie=()=>({name:"Feature Banner",boxProps:e=>({...J,direction:"column",sectionBorder:{bottom:1},...ie(e,HM)}),box:[...ae,...he(HM)],parts:[{kind:"core",keep:"rest",props:Js}],drop:{...ee,...le}}),WM={Countdown:Sie(),FeaturedCover:wie()};var UM={top:80,bottom:80,topPhone:60,bottomPhone:60},Cie=()=>{let e=dm("FitmentFinder");return{name:"Fitment Form",boxProps:o=>({...J,direction:"column",gap:fd[_n("FitmentFinder")],...ie(o,UM)}),box:[...ae,...he(UM)],parts:[bt("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:{...ee,...le,layout:'the section shape; "bar" is skipped (above), so here it is the stacked shape this Box draws'}}},GM={FitmentFinder:Cie()};var Rm={eyebrow:"Label",title:"Section *heading.*",body:"Add this section's copy here. A blank line starts a new paragraph."},D$e={label:"Editorial Text",defaultProps:{eyebrow:"",title:"",body:"",topBorder:!0}};var Td={eyebrow:De.eyebrow,lead:"Introduce your company in a paragraph or two.",foundersHeading:"Add a short heading.",foundersBody:"Add a short statement here \u2014 a sentence or two is plenty.",attribution:"\u2014 Name, Year"},H$e={label:"Lead Text",defaultProps:{eyebrow:"",lead:"",stats:[],foundersHeading:"",foundersBody:"",attribution:"",padTop:60,padBottom:80}};var zM={eyebrow:"Limited release",title:"Banner headline",body:"A line or two of supporting copy."},U$e={label:"Banner",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",ctaText:"",ctaHref:"",contained:!0,overlay:60}};var $M={title:`Section heading
|
|
409
|
+
*Highlight line*`},KM=[{label:no.text,href:no.href,variant:"primary"},{label:no.text,href:no.href,variant:"outline"}],$$e={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var Rw="solid",kie=[{label:"Solid",value:"solid"},{label:"Outlined",value:"outlined"}];function V$e(e){return io(kie,Rw,e)}var vie="sf-secnum-outline",Y$e="font-display text-[length:var(--size-headingMedium,clamp(48px,6vw,96px))] font-medium leading-[0.8] tracking-[-0.02em]",q$e=`@supports (-webkit-text-stroke: 1px currentColor){.${vie}{color:var(--site-surface-2);-webkit-text-stroke:1px var(--site-line)}}`;var Lm="standard",qM=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],Fw=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],Lw=[...Fw,"description"],jM={standard:["eyebrowLook"],editorial:[...Fw,"eyebrowLook"],simple:Lw,statement:Lw,natural:Fw,essay:Lw},VM=["gap-5","gap-3"],YM=["text-[length:var(--size-body,16px)]","text-[15px]"];function Q$e(e){return io(VM,VM[0],e)}function eKe(e){return io(YM,YM[0],e)}function oKe(e){return io(qM,Lm,e)}function tKe(e){let o=qM.map(r=>r.value),t=[...new Set(Object.values(jM).flat())];return Ha(e,t.map(r=>[[r],dx("headStyle",o,Lm,o.filter(a=>!jM[a].includes(r)))]))}var Ur={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:De.viewAll},lKe={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:Lm,num:Ur.num,numStyle:Rw,title:Ur.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var XM={top:72,bottom:72,topPhone:72,bottomPhone:72},Tie={name:"Editorial Text",boxProps:e=>({...J,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ie(e,XM)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...ae,...he(XM)],parts:[bt("Prose"),{kind:"text",key:"body",props:X,style:{textStyle:"body-1",...N("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...ee,...le,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)"}},ZM={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},JM=(e,o)=>o?.variant==="primary",QM=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:JM,variant:"primary",style:{letterSpacing:.3},props:{...wo,...ZM,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!JM(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...wo,...ZM,...o}}]}),Fm=e=>Ke(e.title),Pie={name:"Call-to-Action Heading",boxProps:e=>({...J,direction:"row",align:"center",justify:Fm(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...Go(e,"TitleWithButtons")}),box:[...ae,...ba("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{..._,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:H,style:{textStyle:"heading-1",...et("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({..._,gap:14,gapPhone:14,widthFitPhone:"fill",...Fm(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[QM(Fm,{widthFit:"fill",iconPosition:"end"}),QM(e=>!Fm(e),{})]}],drop:{...ee,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 Eie(e,o){let t=el(o,{to:eo(e.sectionPaddingUnit)}),r=el(o,{view:"phone",to:eo(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var eH={top:40,bottom:64,topPhone:24,bottomPhone:36},Oie={name:"Section Header",boxProps:(e,o)=>({...J,direction:"column",gap:0,...ie(e,eH),...Eie(e,o)}),box:[...ae,...he(eH)],parts:[bt("SectionHeader")],drop:{...ee,...le,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"}},oH={..._,direction:"row",share:[67],gap:32},tH={..._,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},rH=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),_ie={name:"Lead Text",boxProps:e=>({...J,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...Go(e,"ParagraphsA")}),box:[...ae,...ba("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...oH,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",...N("label",12),letterSpacing:.24})]},rH("Stats column",_,{kind:"group",name:"Stats",props:{...tH,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[sd("value","label",{...N("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...oH,gapPhone:28},parts:[{kind:"group",name:"Lead",props:_,parts:[{kind:"group",name:"Measure",props:{..._,maxWidth:780},parts:[{kind:"text",key:"lead",props:H,style:{textStyle:"heading-3",...N("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},rH("Note column",{..._,justify:"end"},{kind:"group",name:"Founders",props:{...tH,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{..._,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:H,style:{textStyle:"body-1",fontRole:"heading",...N("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:X,style:{textStyle:"body-5",fontRole:"heading",...N("body",14,12),lineHeight:1.7}}]},pe("attribution",{...N("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...ee}},aH={top:24,bottom:24,topPhone:24,bottomPhone:24},Aie={name:"Banner",boxProps:e=>({...J,direction:"column",gap:0,...ie(e,aH)}),box:[...ae,"contained",...he(aH)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{..._,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...ar("surface"),...We(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(j(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{..._,gap:20,gapPhone:20},parts:[pe("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...H,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...N("headingMedium",44,32)}},{kind:"text",key:"body",props:{...H,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...N("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:wo}]}],drop:{...ee,...le}},Bw={Prose:Tie,TitleWithButtons:Pie,SectionHeader:Oie,ParagraphsA:_ie,Banner:Aie},nH={Prose:()=>({eyebrow:Rm.eyebrow,title:gr(Rm.title),body:Rm.body}),TitleWithButtons:()=>({title:gr($M.title),buttons:KM.map(e=>({...e}))}),SectionHeader:()=>({num:Ur.num,title:gr(Ur.title),description:Ur.description,linkText:Ur.linkText,linkHref:no.href}),ParagraphsA:()=>({eyebrow:Td.eyebrow,lead:De.body,foundersHeading:Td.foundersHeading,foundersBody:Td.foundersBody,attribution:Td.attribution}),Banner:()=>({...zM,ctaText:no.text,ctaHref:no.href}),ProcessSteps:()=>({num:Ur.num,title:gr(Ur.title)})};function sH(){So(Bw),So(eD),So(mD),So($B),So(vD),So(nN),So(yN),So(kN),So(NN),So(VN),So(nM),So(IM),So(wM),So(PM),So(GM),So(DM),So(WM)}var Lie=["FooterPayment"];function lH(e,o){let{id:t,...r}=e.props;for(let[a,n]of Object.entries(r))Rie(n)&&(r[a]=n.map(s=>lH(s,o)));return o(e.type,r)}var Pd=(e,o)=>{if(!Lie.includes(e.type))return null;sH();let t=ga(e.type);return t?Xs({type:e.type,props:{...e.props}},t).nodes.map(r=>lH(r,o)):null};function iH(){let{appState:e,dispatch:o,config:t}=Hie(f=>f),{readOnly:r}=Uie(),[a,n]=Die(!1),s=e.data.content;if(r||s.some(f=>f.type===Fe))return null;let l=s.find(f=>f.type===Ge)??null,d=(f,u)=>Nie(t,f,u),c=()=>{let f=od(l,d,Mie(Fe),Pd);o({type:"setData",data:u=>({...u,content:[...Gc(u.content,f)]}),recordHistory:!0}),n(!1)};return Bm(Wie,{tone:"info",title:i("This footer uses the old layout"),action:a?Bie(Fie,{children:[Bm(Dw,{variant:"primary",size:"sm",onClick:c,children:i("Switch now")}),Bm(Dw,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:i("Cancel")})]}):Bm(Dw,{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 Nw,jsxs as Gie}from"react/jsx-runtime";import{InspectorUpLevel as dH}from"efficient-easel/chrome";function cH({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=Zp(),n=Ks(e,o,"picture");return Gie("div",{children:[o!=="media"?Nw(dH,{inline:!0,name:i(mn.media),onSelect:()=>a(Di(e,"media"))}):Nw(dH,{inline:!0,name:i(t),onSelect:r}),Nw(zt,{part:o,motion:n,itemWord:i(mn[o])})]})}import{HintsToggle as tde,SettingsSwitch as rde,hintsFoldClass as ade}from"efficient-easel/panel";import{useHints as nde}from"efficient-easel/screen/lib/hints";var xH={kind:"header"},Ww={kind:"website"},gH={kind:"website",tab:Ms,revealPageGroup:!0},IH={kind:"chat"},bH={kind:"social"},Ed="Part";function sde(e){return i("Part of {name}",{name:i(e)})}function lde(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?sde(r.label):i(Ed)}}function ide(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 yH({what:e}){let o=ide(e);return ka("div",{className:"sf-note",children:[ve("p",{children:ve("strong",{children:o.title})}),ka("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 Hw(e){let o=Bi[e];return{name:mn[e],kindLabel:Ed,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=hH({name:i(Qp(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?ve(cH,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var dde={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?ve(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)=>ve(Gp,{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:()=>ve(sL,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>ve(pL,{unavailable:ve(yH,{what:"Social link"})})},ticker:{name:Ri,kindLabel:Ed,icon:"ticker",head:(e,o)=>e.kind==="ticker"?lde(o,e.heroId,i(Ri)):null,render:e=>ve(_1,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:Hw("media"),heroImage:Hw("image"),heroImage2:Hw("image2"),part:{name:Ed,kindLabel:Ed,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}=Wt(e.propKey),n=a?Os(t.fields[r],a):t.fields[r],s=vu(t.type),l=s?Fl(s,e.propKey):null,d=s&&l?s[l].label:U1[e.propKey],c=d?i(d):y_(i(qI(xp(n??{},r))),a),f=hH({name:c,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"?ve(iF,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},cde=new Set(["header","website","chat"]);function fde(e,o){if(e==="selection")return null;let t=dde[e];return cde.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>ve(yH,{what:t.name})}:t}function SH({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onOpenPageStyles:r,onSelectNode:a,hideNodeActions:n=!1,onNotify:s,onHidePanel:l}){let{capabilities:d,tokenRef:c,notifyParent:f,currentSlug:u,siteId:p,runAuthed:h,readOnly:g,navigate:I}=Jie(),{rows:C}=Oi(),S=C?.find(D=>D.slug===u)??null,k=$ie(),y=Object.keys(k.fields).some(D=>!D.startsWith("_")&&!Pi.includes(D)),{websiteName:b}=ge(),O=Qie({readOnly:g}),{select:W}=ede(),{selectedItem:T,getItemById:M,getSelectorForId:P,config:F,appState:w}=zie(D=>D),E=Xie(F,T?{type:T.type,props:T.props}:null),A=T?T_(E??F.components[T.type]?.fields,T.props):[],L=D=>F.components[D]?.label??D,U=T?P(T.props.id):void 0,$=fde(e.kind,d),q=Zie(),te={capabilities:d,tokenRef:c,hostPanels:q.chrome?.panels,describeNode:D=>{let Ee=M(D);if(!Ee)return null;let Ce=F.components[Ee.type];return{type:Ee.type,label:Ce?.label??Ee.type,fields:Ce?.fields??{},props:Ee.props??{}}},siteId:p,websiteName:b??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},we=$?.head?.(e,te)??null,ce=eL({kind:S?.kind,pageName:S?.label}),Ae=we?.name??($?i($.name):T?i(L(T.type)):ce.name),Ve=we?.kindLabel??($?i($.kindLabel):T?U&&U.zone!==mH?i("Block"):i("Section"):ce.kindLabel),ye=$?$.icon:T?T.type:"page",Re=Mw(e)&&T?Vi(T.type):null,Be=!!T&&!!U&&U.zone===mH&&T.type!==Ge&&T.type!==ode,Me=Hu(w?.data,T),po=()=>{Me||U&&O.duplicateComponent(U.zone,U.index)},zo=()=>{U&&(O.removeComponent(U.zone,U.index),O.select(null))},xe=T?F.components[T.type]?.defaultProps?.previewHover:void 0,Ye=Mw(e)&&!!T&&!!U&&xe!==void 0,Pe=Ye&&T.props.previewHover===!0,_e=()=>{!T||!U||O.replaceComponent(U.zone,U.index,{...T,props:{...T.props,previewHover:!Pe}})},{shown:ro,setShown:Vt}=nde(),ot=!!($||T||y);return ka("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${ade(ro)}`.trim(),children:[ve(Vie,{icon:ve(hn,{type:ye,size:15}),name:Ae,kind:Ve,actions:!n&&Mw(e)&&T&&T.type!==Ge?ka(fH,{children:[ve(pH,{label:i("Duplicate section"),title:Me??void 0,disabled:Me!==null,onClick:po,children:ve(Yie,{size:15})}),Be&&d.hasSiteSettings&&ve(yF,{node:T,currentSlug:u,siteId:p??void 0,tokenRef:c,runAuthed:h,onNotify:s}),ve(pH,{label:i("Remove section"),danger:!0,onClick:zo,children:ve(qie,{size:15})}),l?ve(uH,{side:"right",onHide:l,divider:!0}):null]}):l?ve(uH,{side:"right",onHide:l}):void 0}),Ye&&ka("div",{className:"sf-preview-pin",children:[ka("div",{className:"sf-preview-pin-text",children:[ve("span",{className:"sf-preview-pin-label",children:i("Preview hover state")}),ve("span",{className:"sf-preview-pin-hint",children:i("not shown live")})]}),ve(rde,{checked:Pe,onChange:_e,ariaLabel:i("Preview hover state")})]}),ka("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[$?$.render(e,te):T?ka(fH,{children:[T.type===Ge&&d.hasSiteSettings&&ve(iH,{}),ve(IE,{children:ve(zt,{entries:ve(SF,{parts:A,heading:!1,onOpen:D=>W(mp(T.props.id,D))}),entryCount:fS(A).length,itemWord:Ae})}),Re&&ve(Ou,{source:Re,slug:Vs(T?.props),menuId:Cu(T?.props)})]}):y?ve(zt,{omit:Pi}):ve(jie,{variant:"none",icon:!1,message:i("Select a section or block to edit it."),children:r&&ve(Kie,{variant:"secondary",onClick:r,children:i("This page")})}),ot&&ve(tde,{shown:ro,onChange:Vt,label:i("Show hints")})]})]})}import{jsx as m,jsxs as R,Fragment as TH}from"react/jsx-runtime";var xo={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)"},Uw="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:xo[t],flex:"none",...a}})}var pde={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"},Y={position:"absolute",inset:0},x={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},Ne=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function zr({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 R("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[m("span",{style:r("8% 26% 30% 6%",x.mark1)}),m("span",{style:r("26% 6% 8% 30%",x.mark2,"multiply")})]})}function Nm({children:e}){return m("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:x.muted},children:e})}function wH({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:l}){return R(TH,{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 Gw({name:e,price:o}){return R("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[m("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...Ne(x.paper,x.paper2,150)},children:m(zr,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o})]})}function Gr({k:e,v:o,ok:t}){return R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${x.rule}`,fontSize:"3.98cqw",color:x.muted},children:[m("span",{children:e}),R("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("b",{style:{color:x.text,fontWeight:700},children:o}),t&&m("span",{style:{color:x.rust,fontWeight:700},children:"\u2713"})]})]})}function Oe({title:e,children:o}){return R("div",{style:{...Y,background:x.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[m(Nm,{children:e}),o]})}function CH({size:e=14}){return m("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${x.mark1},${x.mark2})`}})}function zw({filled:e=5,size:o=6}){return R("span",{style:{fontSize:o,letterSpacing:"0.06em",color:x.rust,lineHeight:1},children:["\u2605".repeat(e),m("span",{style:{color:x.mark1},children:"\u2605".repeat(5-e)})]})}function Od({n:e,label:o,tone:t=x.text}){return R("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 fo({children:e,w:o}){return m("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:x.muted,width:o,display:"block"},children:e})}function Dm({label:e,w:o="100%",filled:t}){return R("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:e}),m("span",{style:{height:9,borderRadius:3,border:`1px solid ${x.rule}`,background:t?x.paper:x.card}})]})}function kH({children:e}){return m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:e})}var ude={wheelslisting:m(Oe,{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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...Ne(x.paper,x.paper2,150)},children:m(zr,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:R("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>R("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:x.text,color:x.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,m("span",{style:{opacity:.6},children:"\u2715"})]},e)),m("span",{style:{fontSize:"3.65cqw",color:x.rust,fontWeight:700},children:"Clear"})]}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"128 results"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted,border:`1px solid ${x.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...Ne(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:x.onInk},children:"Will it fit your rig?"}),R("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>R("span",{style:{flex:1,fontSize:"3.65cqw",color:x.text,background:x.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",m("span",{style:{color:x.muted},children:"\u25BE"})]},e)),m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:x.warm,color:x.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:m(Oe,{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])=>R("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:x.ink},children:m("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${x.mark2}`,boxSizing:"border-box"}})}),m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o})]},e))})}),tyresizes:m(Oe,{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?x.rust:x.rule}`,color:o===0?x.rust:x.text,background:o===0?x.paper:x.card},children:e},e))})}),tyrefitment:R(Oe,{title:"Will it fit your car?",children:[m("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>R("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:x.muted,background:x.paper,border:`1px solid ${x.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",m("span",{style:{color:x.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])=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${x.rule}`,paddingTop:3},children:[m("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?x.warm:x.muted},children:o})]},e))})]}),eutyrelabel:R("div",{style:{...Y,background:x.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)=>R("div",{style:{display:"flex",alignItems:"center",gap:3},children:[m("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?x.rust:x.mark1}}),m("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?x.rust:x.muted},children:e})]},e))}),R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[m("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.text},children:"72"}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:x.muted},children:"dB"})]})]}),bundleoffer:R("div",{style:{...Y,background:x.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(Nm,{children:"Buy it with"}),R("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:x.card},children:m(zr,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.muted},children:"+"}),R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[m("span",{style:{fontSize:"3.65cqw",color:x.muted,textDecoration:"line-through"},children:"$1,024"}),m("b",{style:{fontSize:"6.02cqw",color:x.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...Ne(x.ink,x.ink2)},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:x.warm,fontWeight:700},children:"READY TO ORDER"}),m("b",{style:{fontSize:"6.63cqw",color:x.onInk,lineHeight:1},children:"$1,956"}),m("span",{style:{fontSize:"3.65cqw",color:x.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:x.warm,color:x.ink,flex:"none"},children:"CHECKOUT"})]}),contact:m(Oe,{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])=>R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m("b",{style:{flex:1,fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"4.64cqw",color:x.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:m(Oe,{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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.32cqw",color:x.muted},children:o}),m("span",{style:{fontSize:"3.32cqw",color:x.rust,fontWeight:700},children:t})]},e))})}),citypictures:m(Oe,{title:"Our studios",children:R("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:x.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=>R("div",{style:{position:"relative",minHeight:0},children:[m(z,{r:3,style:{...Y,background:`linear-gradient(transparent 45%,${x.scrim} 45%),${Ne(x.ink,x.inkSoft2).background}`}}),m("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:x.onInk},children:e})]},e))})]})}),citymaps:m(Oe,{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])=>R("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[m(z,{r:4,style:{...Y,background:"none",border:`1px solid ${x.rule}`}}),m("b",{style:{position:"relative",fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{position:"relative",fontSize:"3.32cqw",color:x.muted},children:o}),R("div",{style:{flex:1,minHeight:0,position:"relative"},children:[m(z,{r:3,style:{...Y,...Ne(x.paper,x.paper2,150)}}),m(z,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:x.mark1,opacity:.75}}),m(z,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:x.rust}})]})]},e))})}),form:m(Oe,{title:"Send us a message",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[R("div",{style:{display:"flex",gap:5},children:[m(Dm,{label:"Name"}),m(Dm,{label:"Email"})]}),m(Dm,{label:"Message",filled:!0}),m(kH,{children:"SEND"})]})}),appointmentbooking:m(Oe,{title:"Book a fitting",children:R("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?x.text:x.paper,color:o===2?x.onInk:x.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?x.rust:x.rule}`,color:o===1?x.rust:x.muted,background:o===3?x.paper:x.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:m(Oe,{title:"Leave a review",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[m(zw,{filled:4,size:14}),m(Dm,{label:"Your review",filled:!0}),m(kH,{children:"POST"})]})}),submitbuild:m(Oe,{title:"Show us your build",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${x.mark1}`,borderRadius:5,background:x.paper},children:[m("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:x.rust,fontWeight:300},children:"+"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Drop a photo of your rig"})]})}),masthead:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[m("span",{style:{height:1.5,background:x.text}}),m("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:x.text,lineHeight:1},children:"THE TRACK"}),R("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:x.muted},children:[m("span",{children:"Issue 14"}),m("span",{children:"Spring 2026"})]}),m("span",{style:{height:1,background:x.rule}})]}),featuredcover:R("div",{style:{...Y,overflow:"hidden",...Ne(x.ink,x.inkSoft2)},children:[m(zr,{size:92,style:{right:-18,top:-14}}),m("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${x.scrim},transparent 62%)`}}),R("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:x.warm},children:"FEATURE"}),m("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:x.onInk},children:"Four days on the Madigan Line"})]})]}),longread:R("div",{style:{...Y,background:x.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:x.rust},children:"12 MIN READ"}),m("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:x.text},children:"What breaks first, and why"}),m(fo,{children:"Every failure starts in the same place:"}),m(fo,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:R("div",{style:{...Y,background:x.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:x.text},children:"Why offset beats width"}),m(fo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),m(fo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),m(fo,{w:"80%",children:"Width follows from the space left."})]}),series:m(Oe,{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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6},children:[m("span",{style:{width:3,height:12,borderRadius:2,background:x.rust,flex:"none"}}),m("b",{style:{flex:1,fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},e))})}),events:m(Oe,{title:"Latest posts",children:m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[x.inkSoft,x.inkSoft2,"Madigan Line, four days"],[x.rust,x.warm,"Why offset beats width"]].map(([e,o,t])=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...Ne(e,o,150)}}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:R("div",{style:{...Y,background:x.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:x.muted},children:"POLICY"}),m("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:x.text,lineHeight:1.1},children:"Returns & refunds"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),m("span",{style:{height:2,width:26,background:x.rust,borderRadius:1}})]}),docbody:m("div",{style:{...Y,background:x.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])=>R("div",{style:{display:"flex",gap:5},children:[m("b",{style:{fontSize:"3.98cqw",color:x.rust,flex:"none"},children:e}),m(fo,{children:o})]},e))}),docmetacards:m(Oe,{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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[m("b",{style:{fontSize:"5.31cqw",color:x.text,lineHeight:1},children:e}),m("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:x.muted},children:o})]},o))})}),doctabs:R("div",{style:{...Y,background:x.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?x.text:x.muted,background:o===0?x.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?x.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),m("span",{style:{height:1,background:x.rule}}),R("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[m(fo,{children:"Unfitted wheels come back within 30 days, no questions."}),m(fo,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:R("div",{style:{...Y,background:x.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:x.text},children:"The right wheel is the boring one."}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(fo,{children:"Forged, correctly offset, rated for what you actually"}),m(fo,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:m(Oe,{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=>R("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[m("span",{style:{fontSize:"4.64cqw",color:x.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),m("span",{style:{fontSize:"4.31cqw",color:x.text},children:e})]},e))})}),statsparagraph:R("div",{style:{...Y,background:x.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[R("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[m(Od,{n:"27k",label:"Rigs"}),m(Od,{n:"4.9",label:"Rating"})]}),R("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[m(fo,{children:"Twelve years of fitting the same three questions, and the"}),m(fo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:R(Oe,{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?x.rust:x.mark1}},o))}),m("span",{style:{height:1,background:x.rule,marginTop:-4}})]}),mockup:m("div",{style:{...Y,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...Ne(x.inkSoft,x.ink)},children:R("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:x.card,boxShadow:`0 6px 14px ${x.scrim}`},children:[m("div",{style:{height:9,background:x.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:x.mark1}},e))}),R("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[m("span",{style:{height:4,width:"56%",borderRadius:1,background:x.mark2}}),m("span",{style:{height:14,borderRadius:2,...Ne(x.paper,x.paper2,150)}}),m("span",{style:{height:3,width:"38%",borderRadius:1,background:x.rust}})]})]})}),manifesto:m("div",{style:{...Y,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...Ne(x.ink,x.ink2)},children:R("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:x.onInk},children:["We build for the ",m("span",{style:{color:x.warm},children:"last"})," ten percent of the track."]})}),timeline:m(Oe,{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)=>R("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:x.rule}}),m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:x.rust,zIndex:1}}),R("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m(fo,{children:o})]})]},e))})}),timelinetrack:R("div",{style:{...Y,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...Ne(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"Milestones"}),R("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:x.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>R("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?x.warm:x.mark1}}),m("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?x.warm:x.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:R("div",{style:{...Y,overflow:"hidden",...Ne(x.paper,x.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:x.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:x.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:x.rust}},e)),m("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:x.text},children:"3 fitting bays"})]}),banner:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:x.rust},children:[R("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[m("b",{style:{fontSize:"6.02cqw",color:x.onInk},children:"End of season \xB7 20% off"}),m("span",{style:{fontSize:"3.98cqw",color:x.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:x.onInk,color:x.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:R("div",{style:{...Y,background:x.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:x.text},children:"Not sure what fits?"}),R("div",{style:{display:"flex",gap:5},children:[m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:x.text,color:x.onInk},children:"FIND MY FIT"}),m("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${x.text}`,color:x.text},children:"CALL US"})]})]}),ticker:m("div",{style:{...Y,overflow:"hidden",background:x.ink,display:"flex",alignItems:"center"},children:m("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:x.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...Ne(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:x.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)=>R("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&m("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:x.warm},children:":"}),R("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[m("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:x.onInk,fontVariantNumeric:"tabular-nums"},children:e}),m("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:x.onInk},children:o})]})]},o))})]}),breadcrumb:m("div",{style:{...Y,background:x.card,display:"flex",alignItems:"center",padding:"0 13px"},children:R("span",{style:{fontSize:"4.64cqw",color:x.muted},children:["Home ",m("span",{style:{opacity:.5},children:"/"})," Wheels ",m("span",{style:{opacity:.5},children:"/"})," ",m("span",{style:{color:x.text,fontWeight:700},children:"20 inch"})]})}),categorybar:R("div",{style:{...Y,background:x.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?x.text:x.paper,color:o===0?x.onInk:x.muted},children:e},e))}),m("span",{style:{height:1,background:x.rule}})]}),intro:R("div",{style:{...Y,overflow:"hidden",background:x.card},children:[m("div",{style:{position:"absolute",inset:0,...Ne(x.ink,x.inkSoft2)}}),m(zr,{size:64,style:{right:8,top:6}}),R("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:x.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${x.scrim}`},children:[m("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:x.text},children:"Since 1998"}),m(fo,{children:"One shed, one lathe, one idea."}),m(fo,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:m(Oe,{title:"Photo gallery",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.inkSoft,x.ink],[x.paper2,x.mark2],[x.ink,x.inkSoft2],[x.warm,x.paper2],[x.mark2,x.inkSoft]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...Ne(e,o,140+t*22)}},t))})}),gallery:R(Oe,{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?x.text:x.muted,borderBottom:`1.5px solid ${o===0?x.rust:"transparent"}`,paddingBottom:2},children:e},e))}),m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[x.rust,x.warm],[x.ink,x.inkSoft],[x.paper2,x.mark2]].map(([e,o],t)=>m("div",{style:{borderRadius:3,...Ne(e,o,150+t*20)}},t))})]}),ordersummary:R(Oe,{title:"Order summary",children:[R("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[m("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...Ne(x.paper,x.paper2,150)},children:m(zr,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"3.65cqw",color:x.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),R("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Gr,{k:"Subtotal",v:"$1,956"}),m(Gr,{k:"Fitting",v:"Free"}),R("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[m("b",{style:{color:x.text},children:"Total"}),m("b",{style:{color:x.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:m(Oe,{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])=>R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?x.rust:x.rule}`,background:r?x.paper:x.card},children:[m("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?x.rust:x.mark1}`,background:r?x.rust:"transparent"}}),m("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:o}),m("b",{style:{fontSize:"4.31cqw",color:x.text},children:t})]},e))})}),paymentbadges:R("div",{style:{...Y,background:x.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[m(Nm,{children:"Ways to pay"}),m("div",{style:{display:"flex",gap:5},children:[["VISA",x.ink],["MC",x.rust],["AMEX",x.inkSoft],["PayPal",x.ink2]].map(([e,o])=>m("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:x.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:R("div",{style:{...Y,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...Ne(x.ink,x.ink2)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.warm},children:"By the numbers"}),R("div",{style:{display:"flex",gap:8},children:[m(Od,{n:"27k",label:"Rigs fitted",tone:x.onInk}),m(Od,{n:"12",label:"Years",tone:x.onInk}),m(Od,{n:"4.9",label:"Avg rating",tone:x.warm})]})]}),testimonials:R("div",{style:{...Y,overflow:"hidden",background:x.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:x.rust,opacity:.16},children:"\u201D"}),m(zw,{filled:5,size:7}),m("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:x.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),R("div",{style:{display:"flex",alignItems:"center",gap:5},children:[m(CH,{}),m("span",{style:{fontSize:"3.98cqw",color:x.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:R(Oe,{title:"Reviews",children:[m("div",{style:{display:"flex",gap:4,height:22},children:[[x.inkSoft,x.inkSoft2],[x.rust,x.warm],[x.ink,x.inkSoft],[x.mark2,x.mark1]].map(([e,o],t)=>m("div",{style:{flex:1,borderRadius:3,...Ne(e,o,140+t*15)}},t))}),m("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>R("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[m(CH,{size:12}),R("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[R("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(zw,{filled:o})]}),m(fo,{children:t})]})]},e))})]}),logos:R("div",{style:{...Y,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...Ne(x.ink,x.inkSoft)},children:[m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:x.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:x.onInk,opacity:.82},children:e},e))})]}),prose:R("div",{style:{...Y,background:x.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[m("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:x.text},children:"Why offset matters"}),R("div",{style:{display:"flex",gap:6},children:[m("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:x.rust,marginTop:1},children:"T"}),R("div",{style:{display:"flex",flexDirection:"column"},children:[m(fo,{children:"he number on the back of your wheel decides whether the"}),m(fo,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:m(Oe,{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])=>R("div",{style:{border:`1px solid ${x.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:3,background:x.rust,opacity:.9}}),m("b",{style:{fontSize:"3.98cqw",color:x.text},children:e}),m(fo,{children:o})]},e))})}),faq:m(Oe,{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])=>R("div",{style:{borderBottom:`1px solid ${x.rule}`,padding:"4px 2px"},children:[R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[m("b",{style:{fontSize:"4.31cqw",color:x.text},children:e}),m("span",{style:{fontSize:"4.64cqw",color:x.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&m(fo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:R("div",{style:{...Y,overflow:"hidden",...Ne(x.ink,x.ink2)},children:[m("div",{style:{...Y,background:`linear-gradient(90deg,${x.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(wH,{over:"NEW \xB7 SUMMER",overTone:x.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:x.warm,ctaFg:x.ink,tone:x.onInk})}),m(zr,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:R("div",{style:{...Y,display:"flex",background:x.paper,overflow:"hidden"},children:[m("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:m(wH,{over:"ALL-TERRAIN",overTone:x.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:x.text,ctaFg:x.onInk,tone:x.text})}),m("div",{style:{flex:1,position:"relative",...Ne(x.inkSoft,x.inkSoft2)},children:m(zr,{size:74,style:{right:-14,top:16}})})]}),productgrid:m(Oe,{title:"Best sellers",children:R("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[m(Gw,{name:"Ridge 19",price:"$365"}),m(Gw,{name:"Ridge 29",price:"$410"}),m(Gw,{name:"Ridge 39",price:"$455"})]})}),collections:m(Oe,{title:"Shop by category",children:m("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",x.inkSoft,x.inkSoft2],["Tyres",x.rust,x.warm],["Lift kits",x.ink,x.inkSoft]].map(([e,o,t])=>m("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:x.onInk,...Ne(o,t)},children:m("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:R("div",{style:{...Y,display:"flex",background:x.card,overflow:"hidden"},children:[m("div",{style:{flex:1.1,position:"relative",...Ne(x.paper,x.paper2,150)},children:m(zr,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),R("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:x.rust},children:"NITTO"}),m("b",{style:{fontSize:"6.29cqw",color:x.text},children:"Ridge Grappler"}),m("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:x.text},children:"$489"}),m("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:x.text,color:x.onInk},children:"ADD TO CART"})]})]}),spectable:m(Oe,{title:"Specifications",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Gr,{k:"Diameter",v:'20"'}),m(Gr,{k:"Width",v:"9.0J"}),m(Gr,{k:"Offset",v:"+12"}),m(Gr,{k:"Load",v:"1250 kg"})]})}),fitmenttable:m(Oe,{title:"Will it fit?",children:R("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[m(Gr,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),m(Gr,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),m(Gr,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:R("div",{style:{...Y,background:x.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[m(Nm,{children:"How it works"}),m("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>R("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[m("span",{style:{width:11,height:11,borderRadius:"50%",background:x.text,color:x.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),m("span",{style:{fontSize:"3.98cqw",color:x.text,fontWeight:600},children:e})]},e))})]}),detailrows:m("div",{style:{...Y,background:x.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=m("div",{style:{flex:1,...Ne(t?x.rust:x.inkSoft,t?x.warm:x.inkSoft2)}},"art"),a=R("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[m("b",{style:{fontSize:"4.64cqw",color:x.text},children:e}),m("span",{style:{fontSize:"3.98cqw",color:x.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:{...Y,background:x.ink,color:x.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>R("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:x.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},vH={subscribe:R("div",{style:{...Y,padding:13,display:"flex",flexDirection:"column"},children:[R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[R("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:xo.line,marginBottom:10}}),R("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${xo.line}`,borderRadius:7,padding:10},children:[R("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}}),R("div",{style:{display:"flex",gap:5,marginTop:4},children:[m("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${xo.line}`,background:xo.block}}),m(z,{w:34,h:13,r:5,tone:"accent"})]})]}),R("div",{style:{flex:1,background:xo.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)=>R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${xo.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:R("div",{style:{...Y,display:"flex"},children:[m("div",{style:{width:"44%",background:Uw}}),R("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:R(TH,{children:[m(z,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[R("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:{...Y,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:R("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[m(z,{w:"22%",h:12,r:4,tone:"dark"}),R("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:R("div",{style:{...Y,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[R("div",{style:{display:"flex",gap:14},children:[R("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=>R("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:xo.line}}),R("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:{...Y,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:xo.block}},o))}),blanksection:m("div",{style:{...Y,padding:14,display:"flex"},children:R("div",{style:{flex:1,border:`1px dashed ${xo.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:R("div",{style:{...Y,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:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(z,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:Uw},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:{...Y,padding:14,display:"flex",alignItems:"center"},children:m(z,{w:"64%",h:13,r:4,tone:"dark"})}),text:R("div",{style:{...Y,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:Uw}}),button:m("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center"},children:m(z,{w:"34%",h:16,r:8,tone:"accent"})}),menu:R("div",{style:{...Y,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:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m(z,{w:"56%",h:8,r:3,tone:"dark"}),R("div",{style:{display:"flex",gap:6},children:[m("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${xo.line}`}}),m(z,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:m("div",{style:{...Y,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:R("div",{style:{...Y,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:{...Y,padding:"0 18%",display:"flex",alignItems:"center"},children:R("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${xo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[m("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${xo.dark}`}}),m(z,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:R("div",{style:{...Y,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[m("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${xo.dark}`}}),m("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${xo.dark}`},children:m(z,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:R("div",{style:{...Y,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[R("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${xo.line}`},children:[m(z,{w:22,h:6,r:2,tone:"dark"}),m(z,{w:6,h:4,r:1,tone:"soft"})]}),R("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${xo.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:R("div",{style:{...Y,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[m("div",{style:{height:1,background:xo.line}}),R("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[m(z,{w:"38%",h:5,r:2,tone:"soft"}),R("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:xo.block}})};function PH({type:e}){let o=pde[e]??"",t=ude[o]??vH[o]??vH.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 ih}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as sl,jsxs as EH}from"react/jsx-runtime";import mde from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as hde}from"efficient-easel/rail";import{Tooltip as xde}from"efficient-shell/ui";import{HintsToggle as gde,hintsFoldClass as Ide}from"efficient-easel/panel";import{useHints as bde}from"efficient-easel/screen/lib/hints";function OH({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}){let d=Hs(),{shown:c,setShown:f}=bde();return EH("div",{className:`sf-styles ${Ide(c)}`.trim(),children:[sl(mde,{icon:sl(hde,{}),title:i("Styles"),context:sl(xde,{content:i("{name} \u2014 renamed in the Console: {place}.",{name:d,place:i("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:sl("span",{className:"sf-name-text",children:d})})}),EH("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[sl(Gp,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:l}),sl(gde,{shown:c,onChange:f,label:i("Show hints")})]})]})}import{jsx as Co,jsxs as Nn,Fragment as vde}from"react/jsx-runtime";import{Fragment as zH,useEffect as $H,useRef as qw}from"react";import{useTreeDrag as KH}from"efficient-easel/drag";import{GlobeIcon as Tde,ImageIcon as Pde,LocationIcon as Ede,MapIcon as Ode,TextLinesIcon as _de,TrashIcon as jH}from"efficient-easel/icons";import{Subtree as VH,TreeRow as Ad,TreeRowAction as YH,TreeSeam as qH}from"efficient-easel/tree";import{useEaselStrings as Ade}from"efficient-easel/strings";import{createPreviewSelectionContext as yde}from"efficient-easel/draw/client";var{Provider:fVe,useSelection:_H}=yde("selectedLocationPartId");function AH(e,o,t){return`${e}::${o}::${t}`}function RH(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 Rde}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as Sde}from"react";var wde={level:"groups"},FH=wde,$w=new Set;function jt(e){FH=e;for(let o of $w)o()}function Cde(e){return $w.add(e),()=>{$w.delete(e)}}var LH=()=>FH;function BH(){return Sde(Cde,LH,LH)}var _d=e=>String(e?.group??""),Kw=new WeakMap,kde=0;function Mm(e){let o=Kw.get(e);return o||(o=`loc${++kde}`,Kw.set(e,o)),o}var DH=(e,o)=>o||e||"Ungrouped",NH={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
410
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Dn(e){return Uu(e,_d,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var jw=e=>e.flatMap(o=>o.cards),MH=(e,o,t)=>Math.min(Math.max(e,o),t);function Hm(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(_d(e[a])===o){if(r===t)return a;r++}return-1}function Vw(e,o,t){let r=Dn(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=MH(o<t?t-1:t,0,r.length);return r.splice(n,0,a),jw(r)}function Yw(e,o,t,r,a){let n=Dn(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[d]=s.cards.splice(t,1),c=o===r?d:{...d,group:l.key,groupName:l.name};c!==d&&Kw.set(c,Mm(d));let f=MH(s===l&&t<a?a-1:a,0,l.cards.length);return l.cards.splice(f,0,c),jw(n)}function HH(e,o){let t=Dn(e),r=t.find(n=>n.key===o),a={...NH,group:o,groupName:r?.name??""};return r?(r.cards.push(a),jw(t)):[...e,a]}function WH(e){let o=new Set(Dn(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...NH,group:r,groupName:""}],key:r}}function UH(e,o){return e.filter(t=>_d(t)!==o)}function GH(e,o,t){let r=Hm(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function xVe(e,o,t){let r=e.flatMap((s,l)=>_d(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 gVe(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>_d(n)===r);return a.length?a:t(r)})}var Um="ContactLocations",Wm=e=>({parentId:`locations-${e}`,slot:"groups"}),Xw=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function XH(e,o){let{readOnly:t,selected:r}=o,a=Ade().tree,n=o.data?.content??[],s=Rde(e),l=qw(null);$H(()=>{let y=r?.type===Um?String(r.props.id):null;y&&y!==l.current&&jt({level:"groups"}),l.current=y},[r?.props.id]);let{selectedLocationPartId:d,setSelectedLocationPartId:c,setSelectHandler:f}=_H(),u=BH(),p=(y,b)=>{let O=n[y];O&&o.replace(y,{type:O.type,props:{...O.props,locations:b}})},h=y=>{let b=n[y]?.props?.locations;return Array.isArray(b)?b:[]},g=KH({keyOf:y=>`group:${y.si}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Wm(y.si).parentId&&b.slot==="groups",onDrop:(y,b)=>{p(y.si,Vw(h(y.si),y.index,b.index)),u.level==="city"&&jt({level:"groups"})},onStep:(y,b)=>{p(y.si,Vw(h(y.si),y.index,b<0?y.index-1:y.index+2)),u.level==="city"&&jt({level:"groups"})}}),I=KH({keyOf:y=>`city:${y.si}:${y.group}:${y.index}`,readOnly:!!t,canDrop:(y,b)=>b.parentId===Wm(y.si).parentId&&b.slot.startsWith("cities:"),onDrop:(y,b)=>{let O=b.slot.slice(7);p(y.si,Yw(h(y.si),y.group,y.index,O,b.index)),jt({level:"group",key:O})},onStep:(y,b)=>{p(y.si,Yw(h(y.si),y.group,y.index,y.group,b<0?y.index-1:y.index+2)),u.level==="city"&&jt({level:"group",key:y.group})}}),C=qw(n);C.current=n;let S=qw(()=>{});$H(()=>{f(y=>{let b=RH(y);if(!b)return;let O=C.current.findIndex(W=>W.props?.id===b.nodeId);O<0||S.current(O,{level:b.part,index:b.index})})},[f]);let k=(y,b)=>{l.current=n[y]?.props?.id??null,o.select(y),jt(b),e.reveal();let O=n[y]?.props?.id;typeof O=="string"&&(b.level==="city"||b.level==="image"||b.level==="map")?c(AH(O,b.index,b.level)):c(null),typeof O=="string"&&o.scrollTo(O)};return S.current=k,{renderLocationTree:(y,b,{rowClick:O,isCollapsed:W,toggleCollapse:T})=>{let M=h(b),P=Dn(M),F=String(y.props.id),w=s&&r?.props.id===F,E=L=>Co(qH,{...t?{}:g.seam({place:{...Wm(b),index:L}})},`seam:${F}:groups:${L}`),A=(L,U)=>Co(qH,{...t?{}:I.seam({place:{...Xw(b,L),index:U}})},`seam:${F}:cities:${L}:${U}`);return Nn(vde,{children:[Co(Ad,{icon:Co(_de,{size:13}),name:i("Texts"),words:a,onSelect:()=>k(b,{level:"texts"}),selected:w&&u.level==="texts",rowProps:{onClick:O(()=>k(b,{level:"texts"}))}}),P.map((L,U)=>{let $=`${F}::grp::${L.key}`,q=W($),te=w&&u.level==="group"&&u.key===L.key,we=L.name||L.key?DH(L.key,L.name):i("Ungrouped"),ce={...Xw(b,L.key),index:L.cards.length},Ae=I.row({item:{si:b,group:L.key,index:-1},place:ce,into:ce,canDrag:!1},{onClick:O(()=>k(b,{level:"group",key:L.key}))}),Ve=g.row({item:{si:b,index:U},place:{...Wm(b),index:U}},Ae.rowProps);return Nn(zH,{children:[U===0&&E(0),Co(Ad,{icon:Co(Tde,{size:13}),name:we,words:a,onSelect:()=>k(b,{level:"group",key:L.key}),selected:te,draggable:Ve.draggable,dragging:Ve.dragging,drop:Ve.drop??Ae.drop,fold:{open:!q,label:i("group"),onToggle:()=>T($)},actions:Co(YH,{kind:"delete",label:Mo("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",L.cards.length,{label:we}),onClick:()=>{p(b,UH(M,L.key)),jt({level:"groups"})},children:Co(jH,{size:15})}),rowProps:Ve.rowProps,count:L.cards.length,countLabel:Mo("{n} city","{n} cities",L.cards.length)}),!q&&Nn(VH,{children:[L.cards.map((ye,Re)=>{let Be=Hm(M,L.key,Re),Me=w&&u.level==="city"&&u.index===Be,po=String(ye?.name??"")||i("City"),zo=`${F}::city::${Mm(ye)}`,xe=W(zo),{rowProps:Ye,...Pe}=I.row({item:{si:b,group:L.key,index:Re},place:{...Xw(b,L.key),index:Re}},{onClick:O(()=>k(b,{level:"city",index:Be}))});return Nn(zH,{children:[Re===0&&A(L.key,0),Co(Ad,{icon:Co(Ede,{size:13}),name:po,words:a,onSelect:()=>k(b,{level:"city",index:Be}),selected:Me,...Pe,fold:{open:!xe,label:po,onToggle:()=>T(zo)},actions:Co(YH,{kind:"delete",label:i("Delete {name}",{name:po}),onClick:()=>{p(b,GH(M,L.key,Re)),jt({level:"group",key:L.key})},children:Co(jH,{size:15})}),rowProps:Ye}),!xe&&Nn(VH,{children:[Co(Ad,{icon:Co(Pde,{size:13}),name:i("Image"),words:a,onSelect:()=>k(b,{level:"image",index:Be}),selected:w&&u.level==="image"&&u.index===Be,rowProps:{onClick:O(()=>k(b,{level:"image",index:Be}))}}),Co(Ad,{icon:Co(Ode,{size:13}),name:i("Map"),words:a,onSelect:()=>k(b,{level:"map",index:Be}),selected:w&&u.level==="map"&&u.index===Be,rowProps:{onClick:O(()=>k(b,{level:"map",index:Be}))}})]}),A(L.key,Re+1)]},Mm(ye))}),Nn("button",{type:"button",className:"sf-add-card",onClick:()=>{let ye=HH(M,L.key);p(b,ye);let Re=Dn(ye).find(Be=>Be.key===L.key);jt(Re&&Re.cards.length?{level:"city",index:Hm(ye,L.key,Re.cards.length-1)}:{level:"group",key:L.key})},children:[Co("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add city")]})]}),E(U+1)]},$)}),Nn("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:L,key:U}=WH(M);p(b,L),k(b,{level:"group",key:U})},children:[Co("span",{className:"sf-plus sf-plus--sm",children:"+"}),i("Add group")]})]})},sectionPressed:y=>{y?.type===Um&&jt({level:"groups"})}}}import{useEffect as Gce,useRef as zce}from"react";import{createNode as nC,newId as sC}from"efficient-easel/data";import{useEaselApi as $ce}from"efficient-easel/easel";import{useScreenDocument as Kce}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as jce}from"efficient-easel/screen/lib/session-context";import{useEffect as e4,useRef as Hce}from"react";import{useEasel as Wce}from"efficient-easel/easel";import{ROOT_ZONE as aC}from"efficient-easel/draw";var Rd={};function ZH(e){return Rd={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},Rd}function JH(e){Rd===e&&(Rd={})}function ll(){return Rd}import{jsx as kt,jsxs as j2}from"react/jsx-runtime";import{createContext as Ece,useContext as Oce,useEffect as _ce,useRef as Ace,useState as V2}from"react";import{jsx as il,jsxs as c2}from"react/jsx-runtime";import{useEffect as dl,useRef as jde,useState as Mn}from"react";import{jsx as QH,Fragment as Lde,jsxs as Fde}from"react/jsx-runtime";import{useEffect as Bde,useRef as e2,useState as Dde}from"react";var Nde="#t=0.001",Mde=2;function Hde(e,o){if(e.readyState<Mde||!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 o2({src:e,objectPosition:o="50% 50%",onError:t}){let r=e2(null),a=e2(null),[n,s]=Dde(!1);return Bde(()=>{let l=r.current,d=a.current;if(n||!l||!d)return;let c=()=>{Hde(l,d)&&s(!0)};return c(),l.addEventListener("loadeddata",c),l.addEventListener("seeked",c),()=>{l.removeEventListener("loadeddata",c),l.removeEventListener("seeked",c)}},[n]),Fde(Lde,{children:[QH("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&&QH("video",{ref:r,src:`${e}${Nde}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as a2,imageSrcSet as Wde}from"efficient-shell/image-copies";var t2;function Zw(){return t2===void 0?{}:{host:t2}}var DVe="(max-width: 800px) 100vw, min(100vw, 1600px)",NVe="(max-width: 960px) 100vw, 50vw";function n2(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=Wde(e,{...Zw(),...t===void 0?{}:{maxWidth:t}});return r?{src:a2(e,o,Zw()),srcSet:r}:{src:e}}var Ude=/[\s"'()\\;]/,Gde={"\\":"\\\\",'"':'\\"',"\n":"\\a ","\r":"\\d ","\f":"\\c "};function r2(e){return e.replace(/[\\"\n\r\f]/g,o=>Gde[o]??o)}function MVe(e){let o=a2(e,1920,Zw());return o===e?Ude.test(e)?`url("${r2(e)}")`:`url(${e})`:`url("${r2(o)}")`}import{jsx as s2}from"react/jsx-runtime";import{createContext as zde,useContext as $de,useMemo as GVe}from"react";var l2=zde(null);function i2({children:e}){return s2(l2.Provider,{value:"below",children:e})}function Ld(){return $de(l2)}function Kde(){return Ld()==="below"?{loading:"lazy"}:{}}function d2(e){let o=Kde();return s2("img",{...e,...o})}var zVe="laterSlideIds";var Vde=.5;function Fd({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:r=Vde,objectPosition:a="50% 50%",objectPositionPhone:n,objectPositionTablet:s,quiet:l=!1,slideShown:d,laterSlide:c=!1,laterOfLead:f=!1}){let u=kE(n,s),p=Ld(),[h,g]=Mn(!1),I=p==="below"&&!h,C=p==="first",S=o||"",k=e||"",[y,b]=Mn(!1),[O,W]=Mn(!1),[T,M]=Mn(!1),[P,F]=Mn(!1),w=d??!0,[E,A]=Mn(!1),L=p!=="first"&&!f,[U,$]=Mn(!1),q=jde(null);dl(()=>{if(!L)return;if(document.readyState==="complete"){$(!0);return}let ce=()=>$(!0);return window.addEventListener("load",ce,{once:!0}),()=>window.removeEventListener("load",ce)},[L]),dl(()=>{b(!1),W(!1),M(!1),F(!1)},[e,o]),dl(()=>{w&&A(!0)},[w]),dl(()=>{let ce=q.current;ce&&(w?ce.play()?.catch(()=>{}):ce.pause())},[w,E,U]),dl(()=>{if(!c||L&&!U)return;let ce=()=>g(!0);if(typeof window.requestIdleCallback=="function"){let Ve=window.requestIdleCallback(ce,{timeout:2e3});return()=>window.cancelIdleCallback(Ve)}let Ae=setTimeout(ce,800);return()=>clearTimeout(Ae)},[c,L,U]),dl(()=>{let ce=q.current;if(!ce)return;let Ae=()=>{ce.playbackRate=r};return Ae(),ce.addEventListener("loadedmetadata",Ae),()=>ce.removeEventListener("loadedmetadata",Ae)},[e,r]);let te=Rk(S),we=S&&te&&!O?n2(S):{src:S};return c2("div",{className:"absolute inset-0 z-[1]",children:[il("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),S&&(te?il("img",{src:we.src,...we.srcSet?{srcSet:we.srcSet,sizes:"100vw"}:{},alt:"",...I?{loading:"lazy"}:{},...C?{fetchPriority:"high"}:{},className:`absolute inset-0 z-[2] h-full w-full object-cover ${u.className}`.trim(),style:{display:y?"none":"block",objectPosition:a,...u.style},onError:()=>we.srcSet?W(!0):b(!0)},S):il(UD,{src:S,alt:"",fill:!0,...I?{}:h?{loading:"eager"}:{priority:!0},sizes:"100vw",className:`z-[2] object-cover ${u.className}`.trim(),style:{display:y?"none":"block",objectPosition:a,...u.style},onError:()=>b(!0)},S)),t&&!l&&k&&E&&(!L||U)&&!T&&c2("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:()=>M(!0),children:[Lk(k)&&il("source",{src:k.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),il("source",{src:k,type:"video/mp4"})]},k),t&&l&&k&&E&&(!L||U)&&!P&&(!S||y)&&il(o2,{src:k,objectPosition:a,onError:()=>F(!0)},k)]})}import{jsx as Ro,Fragment as S2,jsxs as tC}from"react/jsx-runtime";import{jsx as cl}from"react/jsx-runtime";import{useRef as Yde}from"react";import{SCROLL_EFFECTS_WITH_ZOOM as qde,scrollAttrs as Xde}from"efficient-shell/format";function f2({views:e,origins:o={},boxClass:t,boxAttrs:r,boxStyle:a,takesViewHide:n=!1,atEdge:s=!1,zoomInside:l="layer",zoomLayerClass:d,children:c}){let f=Yde(null),u=ic(),p=Vr(),h=n?p:es,g=Sd(f,!0,s),{attrs:I,style:C}=Xde(e[g],o[g]),S=qde.includes(e[g].effect),k=Yr(`${Jn}${u.fill}${t?` ${t}`:""}`,h.className);if(S&&l==="picture")return h.scope(cl("div",{ref:f,className:k,...r,...h.attrs,...a?{style:a}:{},children:cl(Ik,{attrs:I,style:C,children:u.inner(c)})}));let y=cl(bk,{children:u.inner(c)});if(S){let O=d??(u.fill?"h-full":void 0);return h.scope(cl("div",{ref:f,className:k,...r,...h.attrs,style:{...a,overflow:"clip"},children:cl("div",{...O?{className:O}:{},...I,style:C,children:y})}))}let b=Object.keys(C).length||a?{style:{...a,...C}}:{};return h.scope(cl("div",{ref:f,className:k,...r,...h.attrs,...I,...b,children:y}))}import{MOTION_TIMING as Zde}from"efficient-shell/format";var x2="grayscale(1) contrast(1.03)",f8e="Black and white";function Jde(e){return e===!0?{filter:x2}:{}}function Qde(e){let{filter:o}=Jde(e);return o?{style:{filter:o}}:{}}var Hn="sf-photo-grayscale",oC="data-sf-photo-host",p2={duration:"--sf-photo-hover-duration",delay:"--sf-photo-hover-delay"},Km=`@media (hover:hover){.${Hn}{filter:${x2};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))}.${Hn}:hover,[data-sf-photo-host]:hover .${Hn}{filter:none}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Hn}{transition:none}}`;function g2(e){let o=Zde.hover,t={...e.duration!==o.duration.default?{[p2.duration]:`${e.duration}s`}:{},...e.delay!==o.delay.default?{[p2.delay]:`${e.delay}s`}:{}};return Object.keys(t).length?t:void 0}function I2(e,o,t){if(e===!0)return Qde(!0);if(t?.kind==="mono"){let r=g2(t);return{className:Hn,sheet:Km,...r?{style:r}:{}}}return e===!1?{}:o===!0?{className:Hn}:{}}var b2="data-sf-repeat",Jw="sf-photo-zoom",ece="--sf-photo-zoom",p8e="sf-photo-wash",Gm="sf-photo-wash-rest",Bd="sf-photo-wash-hover",$m="sf-photo-frame",y2=(e,o)=>`:not([${b2}]:not(${o}) .${e})`,eC=(e,o)=>`[${b2}]${o} .${e}${y2(e,o)}`,Qw=(e,o)=>`${o},${eC(e,":hover")},[${oC}]:hover .${e}${y2(e,":hover")}`,u2=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))`,oce=`.${Bd}{opacity:0}@media (hover:hover){.${Gm},.${Bd}{transition:${u2("opacity")}}${Qw(Bd,`.${$m}:hover .${Bd}`)}{opacity:1}${Qw(Gm,`.${$m}:hover .${Gm}`)}{opacity:0}}@media (hover:hover) and (prefers-reduced-motion:no-preference){.${Jw}{transition:${u2("transform")}}${Qw(Jw,`.${$m}:hover .${Jw}`)}{transform:scale(var(${ece}))}}@media (hover:hover) and (prefers-reduced-motion:reduce){.${Gm},.${Bd}{transition:none}}`,u8e="sf-photo-move";function m8e(e){if(!e||!e.zoom&&!e.darken)return null;let o=g2(e);return{className:$m,sheet:oce,...o?{style:o}:{}}}function h8e(e){return e===!0?{[Hn]:Km}:{}}var zm="sf-box-reveal",x8e="sf-box-reveal",tce=8,m2=.3,h2=`(min-width:${Xt}px)`,g8e=`@media ${h2}{.${zm}{opacity:0;transform:translateY(${tce}px);transition:opacity ${m2}s ease-out,transform ${m2}s ease-out}${eC(zm,":hover")},${eC(zm,":focus-within")}{opacity:1;transform:none}}@media ${h2} and (prefers-reduced-motion:reduce){.${zm}{transition:none;transform:none}}`;import{hidableText as rce}from"efficient-easel/draw";var ace={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"},nce={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 w2(e){let o=e.isVideo&&ET(e.videoSource)==="youtube",t=e.isVideo&&OT(e.videoPlayback)==="click",r=o?_T(rce(e.youtubeUrl)):null,a=Jp(e.mediaLayout);return{fromYouTube:o,onClick:t,youTubeId:r,backgroundFile:e.isVideo&&!o&&!t,desktopLayout:a,phoneLayout:oy(e.mediaLayoutPhone,a),twoPictures:!e.isVideo&&Fi(e)>1}}function Dd(e,o){return ac(Sn({_partMotion:e},o))}function Nd(e,o){return pu(Sn({_partMotion:e},o))}var jm=e=>Dy({desktop:e.objectPosition,tablet:e.objectPositionTablet,phone:e.objectPositionPhone}),C2=Oh.img;function k2({entrance:e,scroll:o,origins:t,editing:r,className:a,attrs:n,style:s,zoomLayerClass:l,children:d}){return e?Ro(ED,{views:e,editing:r,boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},children:d}):o?Ro(f2,{views:o,...t?{origins:t}:{},boxClass:a,boxAttrs:n,...s?{boxStyle:s}:{},...l?{zoomLayerClass:l}:{},children:d}):Ro("div",{className:a,...n,...s?{style:s}:{},children:d})}function fl(e,o){return I2(void 0,void 0,Bv(Sn({_partMotion:e},o)))}function v2(e){return un.some(o=>fl(e,o).className)?{hostAttrs:{[oC]:""},sheet:Km}:{}}function Vm({treatment:e,children:o}){return e.className?Ro("div",{className:`absolute inset-0 ${e.className}`,...e.style?{style:e.style}:{},children:o}):Ro(S2,{children:o})}function Ym({color:e,opacity:o,passClicks:t=!0}){return o>0?Ro("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 qm({part:e,editing:o,marked:t=!0,entrance:r,scroll:a=null,origins:n,className:s,children:l}){let d=o&&t?{[QR]:e}:void 0;return Ro(k2,{entrance:r,scroll:a,origins:n,editing:o,className:s,attrs:d,zoomLayerClass:C2,children:l})}function T2({partMotion:e,editing:o,children:t}){let r=Dd(e,"media"),a=Nd(e,"media"),n=fl(e,"media"),s=Ro(yk,{fill:Oh,children:t}),l=n.className?Ro("div",{className:`absolute inset-0 z-[1] ${n.className}`,...n.style?{style:n.style}:{},children:s}):s;return r||a?Ro(k2,{entrance:r,scroll:a,editing:o,className:"absolute inset-0 z-[1]",zoomLayerClass:C2,children:l}):Ro(S2,{children:l})}function P2({desktopLayout:e,phoneLayout:o,editing:t,marked:r=!0,partMotion:a,first:n,second:s,laterSlide:l=!1}){return tC("div",{className:`absolute inset-0 z-[1] grid ${ace[o]} ${nce[e]}`,"data-hero-layout":e,"data-hero-layout-phone":o,children:[Ro(qm,{part:"image",editing:t,marked:r,entrance:Dd(a,"image"),scroll:Nd(a,"image"),origins:jm(n),className:"relative overflow-hidden",children:tC(Vm,{treatment:fl(a,"image"),children:[Ro(Fd,{posterSrc:qr(n.src),showVideo:!1,laterSlide:l,objectPosition:n.objectPosition,objectPositionPhone:n.objectPositionPhone,objectPositionTablet:n.objectPositionTablet}),Ro(Ym,{color:n.tintColor,opacity:n.tintOpacity})]})}),Ro(qm,{part:"image2",editing:t,marked:r,entrance:Dd(a,"image2"),scroll:Nd(a,"image2"),origins:jm(s),className:`relative overflow-hidden ${df({desktop:e==="one",tablet:e==="one",mobile:o==="one"},{atSectionLine:!0})}`.trimEnd(),children:tC(Vm,{treatment:fl(a,"image2"),children:[Ro(Fd,{posterSrc:qr(s.src),showVideo:!1,laterSlide:l,objectPosition:s.objectPosition,objectPositionPhone:s.objectPositionPhone,objectPositionTablet:s.objectPositionTablet}),Ro(Ym,{color:s.tintColor,opacity:s.tintOpacity})]})})]})}import{jsx as Wn,Fragment as sce,jsxs as lce}from"react/jsx-runtime";import{useEffect as ice,useState as dce}from"react";import{PlaySolidIcon as cce}from"efficient-shell/icons/efficient-looks";function E2({youTubeId:e,ownPoster:o,background:t,editing:r}){let[a,n]=dce("large");return ice(()=>n("large"),[e]),e?lce(sce,{children:[!o&&a!=="none"&&Wn(d2,{src:a==="large"?AT(e):RT(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&&Wn("div",{className:"pointer-events-none absolute inset-0 z-[3] overflow-hidden [container-type:size]","aria-hidden":"true",children:Wn("iframe",{src:Ex(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 O2({youTubeId:e,fileSrc:o,playing:t,onPlay:r,editing:a}){return!e&&!o?null:t&&!a?e?Wn("iframe",{src:Ex(e,"click"),title:Ox,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"}):Wn("video",{src:o,controls:!0,autoPlay:!0,playsInline:!0,className:"absolute inset-0 z-[6] h-full w-full bg-overlay-scrim object-contain"}):Wn("button",{type:"button","aria-label":Ox,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:Wn(cce,{size:28})})}function _2(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 A2=["top","middle","bottom"],R2=["left","center","right"],L2="bottom",F2="left",fce={top:"Top",middle:"Middle",bottom:"Bottom"},pce={left:"Left",center:"Center",right:"Right"},$8e="Up and down",K8e="Sideways",uce={top:"flex-start",middle:"center",bottom:"flex-end"},mce={left:"flex-start",center:"center",right:"flex-end"},hce="--sf-hero-phone-y",xce="--sf-hero-phone-x";function gce(e){return A2.includes(e)?e:L2}function Ice(e){return R2.includes(e)?e:F2}function B2(e,o){let t=gce(e),r=Ice(o),a={};return t!==L2&&(a[hce]=uce[t]),r!==F2&&(a[xce]=mce[r]),a}function j8e(){return A2.map(e=>({label:fce[e],value:e}))}function V8e(){return R2.map(e=>({label:pce[e],value:e}))}import{hexToRgb as bce}from"efficient-shell/format";var yce=!0;var Sce=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function D2(e){let o=bce(e);return o?`${o.r},${o.g},${o.b}`:null}function N2(e){return e==null?yce:e!==!1}function M2(e){let o=(e?D2(e):null)??D2(Dt);return`linear-gradient(180deg, ${Sce.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}import{hexToRgb as H2}from"efficient-shell/format";var W2="bottom";var wce=[{label:"Bottom",value:"bottom",cell:"bottom"},{label:"Top",value:"top",cell:"top"},{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"}],Cce={bottom:180,top:0,left:270,right:90},kce=[[.55,0],[.15,18],[null,35],[null,55],[.85,100]],vce=[[null,33],[.6,67],[.94,100]];function Tce(e,o){let{r:t,g:r,b:a}=H2(e)??H2(Dt);return`rgba(${t},${r},${a},${o})`}function U2(e){return io(wce,W2,e)}function G2(e=Dt,o=W2){let t=U2(o),r=(t==="top"||t==="bottom"?kce:vce).map(([a,n])=>`${a===null?"transparent":Tce(e,a)} ${n}%`);return`linear-gradient(${Cce[t]}deg, ${r.join(", ")})`}function z2(e,o){let t=Z(e.overlayColor),r=Z(e.overlayPosition),a=Z(o)??Dt;return!t&&!r?{own:!1,color:a,position:null}:{own:!0,color:t??a,position:U2(r)}}import{jsx as Pce}from"react/jsx-runtime";var $2="sf-photo-hover";function K2({sheet:e,name:o=$2}){return e?Pce("style",{href:o,precedence:$2,dangerouslySetInnerHTML:{__html:e}}):null}var Rce=Ece({});function yYe({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,objectPosition:s,objectPositionPhone:l,objectPositionTablet:d,tintColor:c=Dt,tintOpacity:f=0,groups:u,editing:p=!1,themeClassName:h,themeStyle:g,overlayColor:I,overlayPosition:C,mediaLayout:S,mediaLayoutPhone:k,mediaImage2:y,objectPosition2:b,objectPosition2Phone:O,objectPosition2Tablet:W,tintColor2:T=Dt,tintOpacity2:M=0,videoSource:P,youtubeUrl:F,videoPlayback:w,partMotion:E,laterSlide:A=!1}){let L=Vr(),{alignment:U="left",textureOpacity:$,textureOn:q,textureColor:te,quietVideo:we,phoneUpDown:ce,phoneSideways:Ae,holdReel:Ve,reelHeld:ye,shownSlide:Re,ratioMin:Be}=Oce(Rce),Me=Ld(),po=A&&Me==="first",zo=Ace(null),[xe,Ye]=V2(Re===void 0?void 0:!1);_ce(()=>{let zn=zo.current;Ye(Re===void 0||!zn?void 0:_2(zn.closest(".hero-track"),"data-slide-name")[Re]===zn)});let Pe=t==="video",_e=Pe?qr(r):void 0,ro=Pe?qr(n):qr(r)??qr(n),Vt=typeof a=="number"?a/100:1,{fromYouTube:ot,onClick:D,youTubeId:Ee,backgroundFile:Ce,desktopLayout:so,phoneLayout:ze,twoPictures:Tt}=w2({isVideo:Pe,videoSource:P,videoPlayback:w,youtubeUrl:F,mediaLayout:S,mediaLayoutPhone:k}),[Yt,lo]=V2(!1);Yt&&ye===!1&&lo(!1);let Pt=!Yt,qt=z2({overlayColor:I,overlayPosition:C},te),Gn=Pe?null:Dd(E,"image"),xl=Pe?null:Nd(E,"image"),yr=v2(E),va=kt(Vm,{treatment:Pe?{}:fl(E,"image"),children:kt(Fd,{videoSrc:Ce?_e:void 0,posterSrc:ro,showVideo:Ce,playbackRate:Vt,objectPosition:s,objectPositionPhone:Pe?void 0:l,objectPositionTablet:Pe?void 0:d,quiet:we,slideShown:xe,laterSlide:A,laterOfLead:po})}),gl=j2("section",{ref:zo,className:Yr(`${Be?"relative min-h-full w-full overflow-clip":"relative h-full w-full overflow-hidden"}${h?` ${h}`:""}`,L.className),...L.attrs,style:g,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":Ce&&_e?"video":"still",...yr.hostAttrs,children:[kt(K2,{sheet:yr.sheet}),kt(T2,{partMotion:E,editing:p,children:Tt?kt(P2,{laterSlide:A,desktopLayout:so,phoneLayout:ze,editing:p,marked:!1,partMotion:E,first:{src:r,objectPosition:s,objectPositionPhone:l,objectPositionTablet:d,tintColor:c,tintOpacity:f},second:{src:y,objectPosition:b,objectPositionPhone:O,objectPositionTablet:W,tintColor:T,tintOpacity:M}}):ot||Gn||xl?j2(qm,{part:Pe?"media":"image",editing:p,marked:!1,entrance:Gn,scroll:xl,origins:jm({objectPosition:s,objectPositionTablet:d,objectPositionPhone:l}),className:"absolute inset-0 z-[1]",children:[va,ot&&kt(E2,{youTubeId:Ee,ownPoster:!!ro,background:!D,editing:p})]}):va}),D&&kt(O2,{youTubeId:Ee,fileSrc:ot?void 0:_e,playing:Yt,onPlay:()=>{lo(!0),Ve?.()},editing:p}),Pt&&!Tt&&kt(Ym,{color:c,opacity:f,passClicks:!1}),Pt&&N2(q)&&kt("div",{className:"absolute inset-0 z-[2]",style:{background:qt.own?G2(qt.color,qt.position??void 0):M2(qt.color),...$!==void 0?{opacity:$/100}:null}}),Pt&&kt("div",{className:[Be?"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:{...lk,...B2(ce,Ae)},children:u&&kt(u,{className:"sf-hero-group-zone",minEmptyHeight:160})})]});return L.scope(po?kt(i2,{children:gl}):gl)}var Y2=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{newNodeId as X2}from"efficient-easel/draw";import{isNodeList as Lce}from"efficient-easel/data";var Z2=(e,o)=>({type:e.type,props:{...o?.(e.type)??{},...Object.fromEntries(Object.entries(e.props).map(([t,r])=>[t,Lce(r)?r.map(a=>Z2(a,o)):r]))}}),Fce=e=>{let[o]=ao([mw()],a=>X2(a)),{id:t,...r}=Z2(o,e).props;return r},Ir={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>Y2.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${kr.toLowerCase()}`,seeds:()=>[],addBlocked:Ph,notice:Eh},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${kr.toLowerCase()}`,seeds:()=>[],addBlocked:Ph,notice:Eh},ProcessSteps:{slot:Pm,childType:K,addLabel:`Add ${kr.toLowerCase()}`,seeds:e=>Array.from({length:uw},()=>Fce(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}},q2=1,Bce={slot:Li,childType:K,addLabel:`Add ${kr.toLowerCase()}`,seeds:()=>[],addBlocked:e=>e.length>=q2?"This Hero has its Scrolling Bar already. Delete it to add another.":null,notice:e=>e.length>q2?`This Hero holds ${e.length} Scrolling Bars. Keep one and delete the others.`:null},J2={Hero:{[Li]:Bce}};function RYe(e){for(let[o,t]of Object.entries(e)){if(He(Ir,o)&&G(Ir,o)!==t)throw new Error(`lib/document/slot-specs: "${o}" already has a slot spec`);Ir[o]=t}}function LYe(e,o){let t=G(Ir,e);return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:X2(t.childType),...r}}))}:null}import{isNodeList as Dce}from"efficient-easel/data";var Nce={"Logos.logosPerRow":"columns","HeroSlide.tintOpacity":"overlay","Split.textBgTint":"overlay"},Mce={"Footprint.source":"typed"};function rC(e){let o=e.props,t=!1;if(e.type&&o)for(let[r,a]of Object.entries(Nce)){let n=r.indexOf("."),s=r.slice(0,n),l=r.slice(n+1);if(s!==e.type||!(l in o))continue;let d=o[l],c={...o};delete c[l],(!(a in c)||c[a]===void 0)&&(c[a]=d),o=c,t=!0}if(e.type&&o)for(let[r,a]of Object.entries(Mce)){let n=r.indexOf("."),s=r.slice(n+1);if(r.slice(0,n)!==e.type||!(s in o))continue;let l=typeof o[s]=="string"?o[s].trim():"",d={...o};delete d[s],Qk(l)&&l!==a&&!oo(d)&&(d[mo]=l),o=d,t=!0}if(e.type&&o){let r=Ix(e.type,o);r!==o&&(o=r,t=!0)}if(o){let r=o;for(let[a,n]of Object.entries(o)){if(!Dce(n))continue;let s=n.map(rC);s.some((l,d)=>l!==n[d])&&(r===o&&(r={...o}),r[a]=s,t=!0)}o=r}return t?{...e,props:o}:e}function MYe(e){let o=e;if(!o||typeof o!="object")return e;let t=!1,r={...e};if(Array.isArray(o.content)){let a=o.content.map(rC);a.some((n,s)=>n!==o.content[s])&&(r.content=a,t=!0)}if(o.zones&&typeof o.zones=="object"){let a=!1,n=Object.fromEntries(Object.entries(o.zones).map(([s,l])=>{if(!Array.isArray(l))return[s,l];let d=l.map(rC);return d.some((c,f)=>c!==l[f])&&(a=!0),[s,d]}));a&&(r.zones=n,t=!0)}return t?r:e}function Q2(e){let o=r=>typeof r=="string"?r:null,t=e.theme_row===void 0?null:e.theme_row==="site";return{schema:String(e.schema),site:String(e.site),headingCase:o(e.heading_case),textStyles:typeof e.text_styles_is_null=="boolean"?!e.text_styles_is_null:null,textStylesList:Array.isArray(e.text_styles)?e.text_styles:null,ownThemeRow:t,deleted:e.site_deleted===!0,...Array.isArray(e.theme_presets)?{themePresets:e.theme_presets}:{},...typeof e.selected_preset=="number"?{selectedPreset:e.selected_preset}:{},...typeof e.site_gutter=="number"?{siteGutter:e.site_gutter}:{},...typeof e.site_gutter_phone=="number"?{siteGutterPhone:e.site_gutter_phone}:{},..."site_gutter_unit"in e?{siteGutterUnit:o(e.site_gutter_unit)}:{},..."site_gutter_phone_unit"in e?{siteGutterPhoneUnit:o(e.site_gutter_phone_unit)}:{}}}function t4(e){let o=Wce(c=>c.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}=ge(),d=Hce(new Set);e4(()=>{let c=o4({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l});c&&Uce(DF(o,void 0,c),e,d.current)},[o,e,t,r,a,n,s,l]),e4(()=>{let c=ZH(o4({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:l}));return()=>JH(c)},[t,r,a,n,s,l])}function o4(e){if(e.themeFromDocument||e.themeRow==="none")return{};if(e.themeRow!=="read")return null;let{siteGutter:o=null,siteGutterPhone:t=null,siteLengthUnits:r={}}=e;if(o===null&&t===null)return{theme:e.theme};let a=Q2({schema:"",site:"",site_gutter:o,site_gutter_phone:t,site_gutter_unit:r.siteGutterUnit??null,site_gutter_phone_unit:r.siteGutterPhoneUnit??null});return{theme:e.theme,site:a}}function Uce(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(aC,r,a[0]),a.slice(1).forEach((s,l)=>{o.insertNode(aC,r+1+l,s),o.replaceComponent(aC,r+1+l,s)}))}}import{ROOT_ZONE as pl,missingPinnedTypes as Vce,pinnedDuplicateIds as lC}from"efficient-easel/draw";function r4(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function a4(e,o){let t=e.some(l=>l?.type===Fe),r=e[e.length-1],a=!t&&r?.type===Ge?r:null,n=e.filter(l=>l?.type===Ge&&l!==a).map(l=>String(l.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(l=>l?.type===Zo),seedFooter:s,seedSiteHeader:s&&!e.some(l=>l?.type===Ue)}}async function n4(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!==Ue||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Ue)?!1:(e.write(Gc(r,t)),!0)}function s4(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:l,siteId:d,tokenRef:c}=Kce(),f=jce(),{hasSiteSettings:u,hasPinnedChrome:p}=r;t4(e);let h=!!r.editsPinnedInPlace&&a!==Nt,g=a===Nt,I=$ce().getState,C=zce(null);Gce(()=>{if(!r4({docId:n,saveStatus:l,seededDocId:C.current})||(C.current=n,!p))return;let S=I().appState.data,k=S.content,y=s?.content??[],b=(M,P)=>M.some(F=>F?.type===P);if(!u){let M=new Set(lC(k)),P=M.size?k.filter(w=>!M.has(w.props.id)):k;if(M.size&&e.setDocument({...S,content:P}),g)return;let F=Vce(P,y);if(F.includes(Ge)){let w=P.length,E=e.insertSection(Ge,w);e.replaceComponent(pl,w,{type:Ge,props:{id:E,blocks:Mu()}})}F.includes(Zo)&&e.insertNode(pl,0,Nu());return}if(g){let M=ss(k);if(M!==k&&e.setDocument({...S,content:[...M]}),!M.find(P=>P.type===Ge)&&!b(y,Ge)&&!b(M,Fe)&&!b(y,Fe)){let P=(w,E)=>nC(o,w,E),F={type:Ge,props:{blocks:Mu()}};e.insertNode(pl,M.length,od(F,P,sC(Fe),Pd))}return}if(h){let M=!!t?.pinnedChrome?.state().docId,P=a4(k,{hasChromeDoc:M}),F=new Set([...P.remove,...lC(k.filter(E=>!P.remove.includes(String(E.props.id))))]),w=F.size?k.filter(E=>!F.has(String(E.props.id))):k;if(w.length!==k.length&&e.setDocument({...S,content:w}),P.seedFooter&&!b(y,Ge)&&!b(y,Fe)){let E=(L,U)=>nC(o,L,U),A={type:Ge,props:{blocks:Mu()}};e.insertNode(pl,w.length,od(A,E,sC(Fe),Pd))}if(P.seedHeader&&!b(y,Zo)){let E=w[0]?.type===Ue?1:0;e.insertNode(pl,E,Nu())}if(P.seedSiteHeader&&!b(y,Ue)&&!b(y,Ge)&&!b(y,Fe)){let E=n;n4({blocks:ff(f),make:(A,L)=>nC(o,A,L),id:sC(Ue),siteId:d??null,token:c.current,latest:()=>I().appState.data.content,stillOpen:()=>C.current===E,write:A=>{let L=I().appState.data;e.setDocument({...L,content:[...A]})}})}return}let O=k.filter(M=>M.type!==Ge),W=new Set(lC(O)),T=W.size?O.filter(M=>!W.has(M.props.id)):O;T.length!==k.length&&e.setDocument({...S,content:T}),!b(T,Zo)&&!b(y,Zo)&&e.insertNode(pl,0,Nu())},[n,l,s,I,e,u,p,g,h,t,f,d,c])}import{useEffect as k4,useMemo as lfe,useRef as v4}from"react";import{useEasel as ife}from"efficient-easel/easel";import{useEaselHost as dfe}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as ofe}from"efficient-easel/screen/lib/host";import{isNode as iC}from"efficient-easel/data";import{SITE_SIDE as d4}from"efficient-easel/screen/lib/content/length-units";var l4=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],S7e={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:_C,separator:AC,scrollDirection:Ui}};var i4=()=>[{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"},{text:i("Spec label"),tone:"normal"},{text:i("Spec value"),tone:"muted"}],k7e={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function Lo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function c4(e,o,t){return Lo(K,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var Xm={Manifesto:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Lo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:d4,sectionPaddingRight:d4,content:[Lo("Text",e,o,Lt()),Lo("Text",e,o,Jr()),Lo("Text",e,o),Lo("Stats",e,o)]}),c4(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:[Lo(K,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Lo("Text",e,o,Lt()),Lo("Text",e,o,Jr()),Lo("Text",e,o),Lo("ButtonBlock",e,o)]}),c4(e,o,{direction:"column",name:"Image",content:[Lo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:K,props:{...e(K),id:o(K),direction:"column",name:"Subscribe",content:[Lo("Text",e,o,Jr()),Lo("Text",e,o),Lo("Form",e,o)]}}),Ticker:(e,o)=>f4("Scrolling Bar",xm,gd,l4.map(t=>({text:t.text,style:gm,muted:!0})),e,o),SpecStrip:(e,o,t)=>f4("Spec Strip",t?.theme?{...bd,sectionAccent:ec(uo(t.theme))}:{...bd,sectionBorder:{top:1}},Id,i4().map(r=>({text:r.text??"",style:yd,muted:r.tone==="muted"})),e,o)};function f4(e,o,t,r,a,n){return Lo(K,a,n,{...Rn,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>Lo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function p4(e){return G(Xm,e)??null}import{isNodeList as Zm}from"efficient-easel/data";var V7e=Object.keys(Bw),Yce={Logos:hD,DocMasthead:FN,DocTabs:$N,Timeline:rN,TimelineTrack:aN},qce={PaymentBadges:xD,PaymentLogosBlock:gD};function Jm(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]=Zm(n)?n.map(s=>Jm(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var u4=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Qm(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:l}=Xs({type:e,props:{...a(e),...r(),id:n(e)}},o,u4(s));return Jm(l[t],a,n)}}var Xce={Stats:Jce,Cards:Zce};function Zce(){let e=ga("Cards");if(!e)return null;let o=Qm("Cards",e,0,zB);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Jce(){let e=ga("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=Xs({type:"StatsParagraph",props:{...o("StatsParagraph"),...oD(),id:t("StatsParagraph")}},e,u4(r)),n=a[0],s=Zm(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],l=h4(HS(tD(),"table")),d=s.map(m4),c=Jm({...n,props:{...n.props,content:[...d,l]}},o,t);return{...c,props:{...c.props,name:"Stats section"}}}:null}function m4(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:Zm(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(m4)}}:e}var h4=e=>ao([e],(o,t)=>`${o}-seed-${t}`)[0];function Qce(e,o){if(!BF(e,o))return null;let t=G(Xce,e);if(t)return t();let r=ga(e);return r?Qm(e,r,0,G(Yce,e)??G(nH,e)??G(qce,e)):null}function efe(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let d=Jm(h4(HS([],"list")),o,t);return{...d,props:{...d.props,name:"Numbers"}}}let s=!1,l={};for(let[d,c]of Object.entries(n.props))if(Zm(c)){let f=c.map(a);s||=f.some((u,p)=>u!==c[p]),l[d]=f}else l[d]=c;return s?{type:n.type,props:l}:n};return a(e(o,t,r))}}function ul(e,o=rd){let t=p4(e);return t?efe(t):Qce(e,o)}function Md(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function tfe(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function dC(e,o,t,r){e.forEach((a,n)=>{if(iC(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(iC)&&dC(l,a,s,r)}})}function rfe(e){let o=[];dC(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&dC(t,null,"",o);return o}function I4(e,o){return rfe(e).find(t=>String(t.node.props.id)===o)}function b4(e,o,t){if(!t)return null;let r=I4(o,t);if(!r)return null;let a=Md(e,r.node.type),n=r.parent?`${Md(e,r.parent.type)} \xB7 ${tfe(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var afe=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 nfe(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[ofe]: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=afe(n));for(let s of["arrayFields","objectFields"]){let l=t?.[s]??o[s];l&&typeof l=="object"&&(r[s]=y4(l))}return r}function y4(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=nfe(r);a&&(o[t]=a)}return o}function S4(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:Md(e,t),fields:y4(r.fields),...w4(t)?{retired:!0}:{}});return o}function w4(e){return He(Nh,e)}function x4(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function sfe(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 cC(e,o){return e.findIndex(t=>iC(t)&&String(t.props.id)===o)}function g4(e,o,t){let r=o||t;if(!r)return e.length;let a=cC(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function C4(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((l,d)=>{let c=f=>{throw new Error(`change ${d+1}: ${f}`)};switch(l.op){case"set_props":{let f=I4(n,l.block_id)??c(`there is no block ${l.block_id}`);"id"in l.props&&c("a block's id is never changed");let u=sfe(f.node.props,l.path)??c(`there is no ${l.path} in that block`);Object.assign(u,structuredClone(l.props));break}case"insert_block":{e.components[l.type]??c(`there is no block type ${l.type}`),w4(l.type)&&c(`${Md(e,l.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=ul(l.type),u=Object.keys(l.props??{}).filter(h=>h!=="id");f&&u.length&&c(`${Md(e,l.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(h=>x4(e,h),r,a):{type:l.type,props:{...x4(e,l.type),...structuredClone(l.props),id:r(l.type)}};s.splice(g4(s,l.after,l.before),0,p);break}case"remove_block":{let f=cC(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`),s.splice(f,1);break}case"move_block":{let f=cC(s,l.block_id);f<0&&c(`there is no top-level block ${l.block_id}`);let[u]=s.splice(f,1);s.splice(g4(s,l.after,l.before),0,u);break}default:c(`"${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 fC=e=>Z(e.requestId)??null;function T4(){let e=dfe(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=ife(p=>p),s=n,l=v4({appState:o,dispatch:r,history:a,blockConfig:s});l.current={appState:o,dispatch:r,history:a,blockConfig:s};let d=v4(new Map),c=t?.props?.id,f=lfe(()=>b4(s,o.data,c),[s,o.data,c]),u=f?JSON.stringify(f):"";k4(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),k4(()=>e.subscribe(p=>{let{appState:h,dispatch:g,history:I,blockConfig:C}=l.current;switch(p.type){case"storefront-editor:request-document":{let S=fC(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:h.data,blocks:S4(C)});return}case"storefront-editor:apply-page-edits":{let S=fC(p);if(!S)return;let k=Array.isArray(p.ops)?p.ops:[],y=k.length?C4(C,h.data,k,b=>`${b}-${crypto.randomUUID()}`,ll()):{ok:!1,reason:"no changes"};y.ok&&(g({type:"setData",data:y.document,recordHistory:!0}),d.current.set(S,JSON.stringify(y.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:S,applied:y.ok,reason:y.ok?null:y.reason});return}case"storefront-editor:undo-page-edits":{let S=fC(p);if(!S)return;let k=d.current.get(S),y=k!==void 0&&k===JSON.stringify(h.data.content??[]);y&&I.hasPast&&(I.back(),d.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,applied:y&&I.hasPast,reason:y?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&g({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as O4,useState as _4}from"react";var eh=new Map;async function cfe(e,o){try{return(await Ze().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function P4(e,o){let t=eh.get(o);return t||(t=cfe(e,o),eh.set(o,t),t.catch(()=>{eh.get(o)===t&&eh.delete(o)})),t}var ffe=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function pC(e){return!!e&&ffe.test(e)}function E4(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===ef?"/":`/${encodeURIComponent(o)}`;if(!pC(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function A4(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=_4(null),[s,l]=_4(null),d=Ak();O4(()=>{try{l(new URL(cc()).hostname)}catch{l(null)}},[d]),O4(()=>{if(!pC(s)||!t||!r){n(null);return}let f=!1;return P4(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let c=E4({pageSlug:o,siteSlug:a,hostname:s});return d?`${d}${c}`:c}import{jsx as Hd}from"react/jsx-runtime";import{useEffect as pfe,useRef as R4,useState as ufe}from"react";import{ExternalIcon as L4}from"efficient-easel/icons";import{EaselIconButton as mfe}from"efficient-easel/chrome";import{Tooltip as hfe,iconButtonClasses as xfe}from"efficient-shell/ui";import{useSettledPress as gfe}from"efficient-easel/easel";import{useScreenDocument as Ife}from"efficient-easel/screen/components/ScreenDocumentContext";async function bfe({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 F4({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=Ife(),a=R4(r);a.current=r;let n=gfe(),[s,l]=ufe(!1),d=R4(null);if(pfe(()=>()=>d.current?.(),[]),t&&o){let c=()=>new Promise((u,p)=>{d.current=()=>u(!1),n.run(()=>{d.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(l(!0),bfe({pageId:o,liveHref:e,draftLink:t,ready:c}).finally(()=>l(!1)))};return Hd(mfe,{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:Hd(L4,{})})}return Hd(hfe,{content:i("Preview the live site (opens in a new tab)"),side:"bottom",children:Hd("a",{className:xfe({className:"es-iconbtn"}),href:e,...cd,"aria-label":i("Preview the live site in a new tab"),children:Hd(L4,{})})})}import{createElement as kfe,useCallback as vfe,useEffect as Z4,useRef as J4,useState as Tfe}from"react";import{ClockIcon as Pfe}from"efficient-shell/icons/efficient";import{useScreenDocument as Efe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as yfe}from"react";import{useScreenDocument as Sfe}from"efficient-easel/screen/components/ScreenDocumentContext";var wfe=()=>()=>{},B4=()=>null;function oh(e){return yfe(e?e.subscribe:wfe,e?e.state:B4,e?e.state:B4)}function th(){let{adapter:e}=Sfe();return e?.pinnedChrome}import{useSyncExternalStore as M4}from"react";var Wd=!1,ml=null,uC=new Set;function Gd(){for(let e of uC)e()}function H4(e){return uC.add(e),()=>{uC.delete(e)}}function W4(){Wd||(Wd=!0,Gd())}function U4(){Wd&&(Wd=!1,Gd())}function D4(){return Wd}function G4(){return M4(H4,D4,D4)}function N4(){return ml}function rh(){ml&&(ml=null,Gd())}function z4(){return M4(H4,N4,N4)}var Ud=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function $4(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Ud;let n=await e.restore(o,t);return wf(n.liveState),a(),n}async function K4({access:e,version:o,page:t,...r}){let a=await $4(e,o.id,t?{page:t.id}:{},r);ml={title:Cfe(o,t??null),undo:a.undo},Gd()}async function j4({access:e,...o}){let t=ml?.undo;t&&(await $4(e,t,{},o),ml=null,Gd())}function V4(e){return e.name?e.name:e.kind==="draft_before_restore"?i("Draft before restore"):i("Version {n}",{n:e.number})}function Cfe(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 Y4(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[Mo("{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(Ah(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function q4(e){return e.change==="take_down"?i("{name} (taken down)",{name:e.name}):e.name}function X4(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Ah(),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 Q4(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Efe(),s=fF(cF(o??null),r),l=oh(th()),d=n.siteLiveState;Z4(()=>{if(d)return Ag(d),_r(0),()=>Ag(null)},[d]);let c=Cf(),[f,u]=Tfe(!1),p=J4(e);p.current=e;let h=J4(!0);Z4(()=>(h.current=!0,()=>{h.current=!1}),[]);let g=vfe(()=>{u(!0),a(p.current).then(()=>{rh()}).finally(()=>{h.current&&u(!1)})},[a]);if(t.canPublish){if(d){let I=c===void 0?void 0:r||c.state==="changed"?"changed":"live",C=sS({live:I,onPress:g,busy:f,goingLive:pF(c?.changes??[])});return n.siteVersions?{...C,menuItems:Ofe()}:C}return sS({live:s,onPress:g,busy:f,pinnedUnpublished:l?.unpublished??!1})}}function Ofe(){return[{key:"version-history",label:i("Version history"),icon:kfe(Pfe),onSelect:W4}]}import{jsx as oe,jsxs as it,Fragment as Kd}from"react/jsx-runtime";import{useCallback as _fe,useEffect as Afe,useId as t5,useRef as Rfe,useState as vt}from"react";import{useSettledAction as Lfe}from"efficient-easel/easel";import{Avatar as Ffe,Banner as zd,Button as Un,ColoredBadge as mC,Dialog as r5,Drawer as Bfe,DropdownMenu as Dfe,FormField as a5,iconButtonClasses as Nfe,Inline as hC,Input as Mfe,ListRow as Hfe,Select as Wfe,SortableList as Ufe,Stack as $d}from"efficient-shell/ui";import{EditIcon as Gfe,EyeIcon as e5,MenuIcon as zfe,MoreIcon as $fe,PageIcon as n5,RevertIcon as o5,StylesIcon as Kfe}from"efficient-shell/icons/efficient";import{useScreenDocument as s5}from"efficient-easel/screen/components/ScreenDocumentContext";var jfe={page:n5,menu:zfe};function Vfe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function Yfe(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 qfe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:l}){let d=t5();if(!e)return null;let c=e.kind==="draft_before_restore",f=e.number,u=Y4(e),p=c?i("Put your drafts back?"):o?i("Restore {page} from version {n}?",{page:o.name,n:f}):i("Restore version {n}?",{n:f}),h=c?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}),g=e.deletedPictures??0;return oe(r5,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:it(Kd,{children:[oe(Un,{variant:"secondary",onClick:n,disabled:r,children:i("Cancel")}),oe(Un,{onClick:s,loading:r,disabled:r,children:i("Restore as draft")})]}),children:it($d,{gap:4,children:[o&&e.pages.length>1?oe(a5,{label:i("Page"),htmlFor:d,children:oe(Wfe,{id:d,value:o.id,options:e.pages.map(I=>({value:I.id,label:I.name})),onChange:l,disabled:r})}):null,oe("p",{children:h}),oe("p",{children:i("Your live website does not change until you press Publish.")}),g>0?oe(zd,{tone:"warning",children:Mo("{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.",g)}):null,t?oe(zd,{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?oe(zd,{tone:"danger",children:a}):null]})})}function Xfe({version:e,onCancel:o,onSave:t}){let r=t5(),[a,n]=vt(null),[s,l]=vt(""),[d,c]=vt(!1),[f,u]=vt(null);if(e!==a&&(n(e),l(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,h=async()=>{if(!(d||p)){c(!0),u(null);try{await t(s.trim())}catch{u(i("The name was not saved. Try again."))}finally{c(!1)}}};return oe(r5,{open:!0,onClose:()=>{d||o()},size:"sm",title:i("Name this version"),footer:it(Kd,{children:[oe(Un,{variant:"secondary",onClick:o,disabled:d,children:i("Cancel")}),oe(Un,{onClick:()=>{h()},loading:d,disabled:d||p,children:i("Save")})]}),children:oe(a5,{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:oe(Mfe,{id:r,value:s,invalid:!!f,onChange:g=>l(g.target.value),onKeyDown:g=>{g.key==="Enter"&&h()}})})})}function Zfe({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let l=e.kind==="draft_before_restore",d=!e.live,c=e.changes.length,f=[...l?[]:[{key:"preview",label:i("Preview"),icon:oe(e5,{}),onSelect:r}],...d?[{key:"restore",label:l?i("Put these drafts back"):i("Restore whole website"),icon:oe(o5,{}),onSelect:a}]:[],...d&&!l&&e.pages.length?[{key:"restore-page",label:i("Restore one page only"),icon:oe(n5,{}),onSelect:n}]:[],...l?[]:[{type:"divider",key:"divider"},{key:"name",label:i("Name this version"),icon:oe(Gfe,{}),onSelect:s}]];return oe(Hfe,{title:it("span",{className:"sf-version-title",children:[oe("span",{children:V4(e)}),e.live?oe(mC,{tone:"success",size:"xs",children:i("Live")}):null,e.name?oe(mC,{tone:"neutral",size:"xs",children:i("Version {n}",{n:e.number})}):null,l?oe(mC,{tone:"warning",size:"xs",children:i("Not published")}):null]}),expanded:o,onToggle:t,actions:oe(Dfe,{align:"end","aria-label":i("More"),items:f,triggerClassName:Nfe({variant:"ghost",size:"sm"}),trigger:oe($fe,{})}),below:it($d,{gap:3,children:[it(hC,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[oe(Ffe,{name:e.createdBy,size:"xs"}),oe("span",{children:e.createdBy}),oe("span",{"aria-hidden":"true",children:"\xB7"}),oe("span",{children:X4(e.createdAt)}),c?it(Kd,{children:[oe("span",{"aria-hidden":"true",children:"\xB7"}),oe("span",{children:Mo("{n} change","{n} changes",c)})]}):null]}),o?it($d,{gap:3,children:[c?oe($d,{gap:2,children:e.changes.map(u=>{let p=jfe[u.kind]??Kfe;return it(hC,{gap:2,align:"center",children:[oe(p,{size:16}),oe("span",{children:q4(u)})]},`${u.kind}:${u.id}`)})}):null,it(hC,{gap:2,children:[l?null:oe(Un,{variant:"secondary",size:"sm",leftIcon:oe(e5,{}),onClick:r,children:i("Preview")}),d?oe(Un,{variant:"secondary",size:"sm",leftIcon:oe(o5,{}),onClick:a,children:i("Restore")}):null]})]}):null]})})}function Jfe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=s5(),[l,d]=vt(null),[c,f]=vt(!1),[u,p]=vt(null),[h,g]=vt(null),[I,C]=vt(!1),[S,k]=vt(null),[y,b]=vt(null),[O,W]=vt(!1),T=Rfe(0),M=_fe(()=>{let E=++T.current;f(!1),t.list().then(A=>{E===T.current&&d(A)},()=>{E===T.current&&f(!0)})},[t]);Afe(()=>{e&&M()},[e,M]);let P=E=>{W(!1),Yfe(t,E.id).catch(()=>W(!0))},F=async()=>{if(!(!h||I)){C(!0),k(null);try{await K4({access:t,version:h.version,page:h.page,flushSave:a,reload:n}),g(null),o()}catch(E){k(E instanceof Ud?i("Your last changes did not save, so nothing was restored. Try again."):i("The version was not restored. Nothing changed. Try again."))}finally{C(!1)}}},w=Lfe({onPress:()=>{F()},busy:I});return it(Kd,{children:[oe(Bfe,{open:e,onClose:o,side:"right",size:"md",title:i("Version history"),description:it(Kd,{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:oe("span",{className:"sf-version-foot",children:i("The newest 30 are kept. Named versions are always kept.")}),children:it($d,{gap:3,children:[O?oe(zd,{tone:"danger",onDismiss:()=>W(!1),children:i("The preview did not open. Try again.")}):null,c?oe(zd,{tone:"danger",action:oe(Un,{variant:"secondary",size:"sm",onClick:M,children:i("Try again")}),children:i("Version history did not load.")}):l===null?oe("p",{className:"sf-version-foot",children:i("Loading versions")}):l.length===0?oe("p",{className:"sf-version-foot",children:i("No versions yet. Every Publish from now on keeps one.")}):oe(Ufe,{"aria-label":i("Versions"),spacing:"comfortable",children:l.map(E=>oe(Zfe,{version:E,expanded:u===E.id,onToggle:()=>p(A=>A===E.id?null:E.id),onPreview:()=>P(E),onRestore:()=>{k(null),g({version:E,page:null})},onRestorePage:()=>{k(null),g({version:E,page:Vfe(E,s)})},onName:()=>b(E)},E.id))})]})}),oe(qfe,{version:h?.version??null,page:h?.page??null,waiting:r,busy:w.busy===!0,error:S,onCancel:()=>g(null),onConfirm:w.onPress,onPage:E=>g(A=>A&&{...A,page:A.version.pages.find(L=>L.id===E)??A.page})}),oe(Xfe,{version:y,onCancel:()=>b(null),onSave:async E=>{await t.name(y.id,E),b(null),M()}})]})}function l5(){let{adapter:e,hasUnsavedEdits:o}=s5(),t=e.siteVersions,r=G4(),a=Cf();return t?oe(Jfe,{open:r,onClose:U4,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as n6}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as e9e,categoryLabel as o9e,paletteWithoutPinned as t9e,pinnedSection as r9e}from"efficient-easel/screen/lib/document/palette-sections";var Qfe={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 i5(e){return G(Qfe,e)?.label}var d5=Hh;import{currentEaselSession as u5}from"efficient-easel/screen/lib/session";import{blockTypesIn as c5}from"efficient-easel/screen/lib/document/block-types-in";var f5=()=>({}),p5=new Map;function epe(e){let o=p5.get(e);if(o)return o;let t=new Set,r=G(Ir,e);if(r)for(let s of r.seeds(f5))for(let l of c5({type:r.childType,props:s}))t.add(l);let a=ul(e);if(a){let s=0;for(let l of c5(a(f5,d=>`${d}-${s+=1}`)))t.add(l)}t.delete(e);let n=[...t].sort();return p5.set(e,n),n}function ope(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=rS(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=d=>{if(r.has(d))return!1;if(a.has(d))return!0;let c=nv(d);return!c||!o[c]?!1:t?t.has(d):!0},s=new Map,l=d=>{let c=s.get(d);if(c!==void 0)return c;s.set(d,!1);let f=n(d)&&epe(d).every(l);return s.set(d,f),f};return{sets:o,offers:l}}var tpe="block-offer";function xC(e=u5()){return e.cache(tpe,()=>ope(ff(e)))}function m5(e,o=u5()){let t=xC(o);return t?t.offers(e):!0}function rpe(e){let o=Xm.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Qb.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Qb.sectionAccent}}}var ape={Hero:{[Li]:{newChild:rpe,childLabel:xc.Ticker}}},h5=Object.fromEntries(Object.entries(J2).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...G(ape,e)?.[t]}]))]));function x5(e,o=0,t,r){let a=spe(lpe(e,o,r),t),n=a?xC():null;return a&&n?npe(a,n):a}function npe(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 spe(e,o){if(!e||e.source!=="container"||!o||!hT())return e;let t=Wl({data:o.data},o.id),r=typeof t?.type=="string"?xT(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 lpe(e,o,t){let r=t?G(h5,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=G(Ir,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=iv(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=kF(e);return s?{source:"footer",slot:CF,choices:s,spec:null}:null}function g5(e,o=bx(e.type)){return IT(e.type)?o.map(t=>{let r=bT(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:i(r),rung:!0}}):null}import{useSyncExternalStore as ipe}from"react";var gC=null,IC=new Set;function I5(e){if(gC!==e){gC=e;for(let o of IC)o()}}function dpe(e){return IC.add(e),()=>{IC.delete(e)}}function D9e(){return ipe(dpe,()=>gC,()=>null)}function b5(e){return Gl(e)?.ownerId??null}function y5(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 S5="sf-editor-left-view";function w5(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(S5);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function C5(e){if(!(typeof window>"u"))try{window.localStorage.setItem(S5,e)}catch{}}function k5(e,o){return e==="styles"&&!o?"sections":e}function v5(e,o){return e?"sections":o}import{copyNode as cpe}from"efficient-easel/data";function T5(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=Ft(),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 P5={usedOn:e=>{let o=Ft(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Kc()?.openPage(e),adopt:(e,o)=>Ft()?.adopt(e.props.id,o),nodeOf:e=>Ft()?.place(e)??null,detach:e=>{let o=Kc()?.config;return o?cpe(e,o):e},removed:()=>Kc()?.reload()};import{sharedSectionsOf as gue}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as Iue,scrollPreviewToTop as J5}from"efficient-easel/screen/lib/document/preview-dom";import{jsx as SC,Fragment as Dpe,jsxs as Npe}from"react/jsx-runtime";import{useContext as Mpe,useEffect as Hpe,useMemo as kC,useRef as M5}from"react";import{EaselCanvas as Wpe,repeatCopyAt as Upe,useEasel as Gpe}from"efficient-easel/easel";import{jsx as A5,Fragment as gpe,jsxs as Ipe}from"react/jsx-runtime";import{useEffect as R5,useLayoutEffect as bpe}from"react";var ah="data-theme",E5="light";function fpe(e){return e.getAttribute(ah)===E5?"light":"dark"}function ppe(e,o){return fpe(e)===o?!1:(o==="light"?e.setAttribute(ah,E5):e.removeAttribute(ah),!0)}function upe(e){return _h(e).getItem(Ih)}function V9e(e,o){_h(e).setItem(Ih,o)}function mpe(e,o,t=new Date().getHours()){return WC({mode:o.mode,override:upe(e),switchShown:o.switchShown,hour:t})}function O5(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>ppe(t,mpe(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[ah]}),()=>n.disconnect()}var hpe="style";function xpe(e,o){let t=XC(o),r=!1;for(let a of qC){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function _5(e,o){let t=e.body;if(!t)return()=>{};let r=()=>xpe(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[hpe]}),()=>n.disconnect()}var ype=`
|
|
411
|
+
[${Ut}][${Ut}] { cursor: text; }
|
|
412
|
+
`;function L5({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ge(),n=uo(t);return R5(()=>{if(o)return O5(o,{mode:r,switchShown:a})},[o,r,a]),R5(()=>{if(o)return _5(o,n)},[o,n]),bpe(()=>{if(o)return NF(o)},[o]),Ipe(gpe,{children:[A5(Kk,{}),A5("style",{children:ype}),e]})}import{jsx as bC}from"react/jsx-runtime";import{useEffect as Spe,useState as wpe}from"react";import{Banner as Cpe}from"efficient-shell/ui";var nh={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."},kpe={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."},vpe=nh.load,Tpe=nh.lock,Ppe=nh.conflict,Epe=nh.save;function Ope(e){if(!e)return null;if(e.loadFailed)return i(vpe);if(e.lockHolder)return i(Tpe,{name:e.lockHolder.name||i("Somebody else")});if(e.conflict)return i(Ppe);if(e.saveFailed)return i(Epe);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(kpe[o.problem],{section:t,name:r})}function _pe({report:e}){let o=Ope(oh(e)),[t,r]=wpe(null);return Spe(()=>{o||r(null)},[o]),!o||t===o?null:bC("aside",{className:"sf-canvas-notice",children:bC(Cpe,{tone:"warning",onDismiss:()=>r(o),children:o})})}function F5(){return bC(_pe,{report:th()})}import{jsx as sh}from"react/jsx-runtime";import{useState as B5}from"react";import{Banner as Ape,Button as Rpe}from"efficient-shell/ui";import{UndoIcon as Lpe}from"efficient-shell/icons/efficient";import{useScreenDocument as Fpe}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSettledAction as Bpe}from"efficient-easel/easel";function D5(){let e=z4(),{adapter:o,flushSave:t,reloadFromServer:r}=Fpe(),a=o.siteVersions,[n,s]=B5(!1),[l,d]=B5(!1),c=async()=>{if(!(!a||n)){s(!0),d(!1);try{await j4({access:a,flushSave:t,reload:r})}catch{d(!0)}finally{s(!1)}}},f=Bpe({onPress:()=>{c()},busy:n});return e?sh("aside",{className:"sf-canvas-notice",children:sh(Ape,{tone:l?"danger":"info",title:e.title,onDismiss:rh,action:a&&e.undo?sh(Rpe,{variant:"secondary",size:"sm",leftIcon:sh(Lpe,{}),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 zpe,REPEAT_ATTRIBUTE as wC,REPEAT_INDEX_ATTRIBUTE as CC}from"efficient-easel/draw";import{usePreviewParts as $pe}from"efficient-easel/draw/client";var N5=null;function yC(e){N5=e}function bXe(){return N5}import{ScreenDocumentContext as Kpe}from"efficient-easel/screen/components/ScreenDocumentContext";function H5(e){let{mirrorHostStyles:o}=Lh(),t=Vk(),{sectionBackgroundWidth:r,themeFromDocument:a}=ge(),n=Bk(),s=Mpe(Kpe),l=jc(s?.docId??null),d=Gpe(S=>S.appState.data),c=eP(l,d),f=JSON.stringify(c),u=kC(()=>c,[f]),p=kC(()=>({...e.metadata??t??{},...m0(a?null:r,n),...u}),[e.metadata,t,r,n,a,u]);Hpe(()=>(yC(n),()=>yC(null)),[n]);let h=M5(null),g=jpe(h),{onDocument:I}=e,C=S=>{h.current=S,I?.(S)};return Npe(Dpe,{children:[SC(D5,{}),SC(F5,{}),SC(Wpe,{...e,onDocument:C,typing:g,metadata:p,height:"fill",mirrorStyles:o,frameWrapper:L5})]})}function jpe(e){let o=mc(),t=$pe(),r=M5({parts:t});return r.current={parts:t},kC(()=>{let a=(n,s)=>{let l=bp(n,o),d,c=null,f=s??(l?null:ab(null,e.current,n)),u=!l&&f?Upe(f):null,p=u?zpe(n):null;if(u&&f&&p?.propKey){l=Sp({...u,nodeId:p.nodeId,key:p.propKey},o),d=p.propKey;let C=f.closest(`[${wC}][${CC}]`),S=`[${wC}="${yp(C?.getAttribute(wC)??"")}"][${CC}="${yp(C?.getAttribute(CC)??"")}"]`;c=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!l)return null;let h=f,g=()=>(h=ab(h,c?c():h?.ownerDocument??e.current,n),h),I=g();return I?{element:g,value:l.value,rules:l.rules,multiline:l.multiline,skip:l.skip,write:l.write,key:d,toolbar:{offered:l.offered,colors:l.offered.length>0?cs(QP(I)):void 0,colorNameOf:at}}:null};return{at:n=>{let s=n.closest(`[${Ut}]`),l=s?.getAttribute(Ut);return s&&l?a(l,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>G_(n,o),copyValue:n=>U_(n,o),onChange:n=>{if(!n.typing){nb(null);return}let s=n.element.closest(`[${Ut}]`)?.getAttribute(Ut)??null;nb(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}var Vpe=Fk.mediaFields,Ype=/video|poster|focal|phone/i;function qpe(e){return(G(Vpe,e)??[]).find(o=>!o.includes("[]")&&!Ype.test(o))??null}function Xpe(e){let o=qpe(e.type);return e.type!==K?o&&Ml(e.type,e.props,o)?{fromData:!0}:o:af(e.props)?{fromData:!0}:o}var W5={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:Xpe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var U5={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 that marks the page you are on.",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 lh}from"react/jsx-runtime";import{useState as Zpe}from"react";import{Button as Jpe,Tooltip as Qpe,toast as G5}from"efficient-shell/ui";import{TemplateIcon as eue}from"efficient-easel/icons";import{useSettledAction as oue}from"efficient-easel/easel";import{useScreenDocument as tue}from"efficient-easel/screen/components/ScreenDocumentContext";function $5({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=tue(),[a,n]=Zpe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():G5.error(i(z5))}catch{G5.error(i(z5))}finally{n(!1)}}},l=oue({onPress:()=>{s()},busy:a});return lh(Qpe,{side:"bottom",content:e?i("Save this website as a platform template"):i(o),children:lh("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:lh(Jpe,{variant:"secondary",disabled:!e||l.busy,loading:l.busy,onClick:l.onPress,rightIcon:lh(eue,{size:15}),children:i("Save as Template")})})})}var z5="Your last changes did not save, so the template was not made. Try again.";var rue="Save your page changes first";function K5(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:rue}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var j5="storefront-editor:save-as-template";var jd="ContactLocations",aue="CityPictures",nue="CityMaps",sue=[{key:aue,label:"City pictures",desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:nue,label:"City maps",desc:"A card per city, grouped by region: address, phone, hours and a map."}];function V5(e=rd){let o=Xr.find(t=>t.sections.some(r=>r.type===jd))?.key;return!e.includes(jd)||!o?[]:sue.map(({key:t,label:r,desc:a},n)=>({key:t,label:r,cat:o,after:jd,desc:a,alias:"locations offices stores branches",insert:s=>{let l=ga(jd);return l?Qm(jd,l,n)(s.nodeDefaults,s.newNodeId,ll()):null}}))}function q5(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=ul(e);if(n)return n(o,t,ll());if(Xv(e)&&a(K)&&a(ts)){let l=G(sr,e);return{type:K,props:{...o(K),id:t(K),direction:"column",name:`${r(e)} section`,content:[{type:ts,props:{...o(ts),id:t(ts),...l?.headStyle?{headStyle:l.headStyle}:{},...l?.headRowGap?{rowGap:l.headRowGap}:{},...l?.headDescriptionSize?{descriptionSize:l.headDescriptionSize}:{},...dd(e)!==dd(ts)?{eyebrowLook:dd(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...Y5(e,t)}}]}}}if(G(Ir,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=Y5(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function Y5(e,o){return e==="Cards"?{template:Oc(t=>o(t))}:e===Al?{template:lx(t=>o(t))}:{}}import{useEffect as lue,useState as iue}from"react";import{useEaselSession as due}from"efficient-easel/screen/lib/session-context";function X5(){let e=due().chrome?.products?.list,[o,t]=iue(null);return lue(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function s6({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=$R(),a=a6().tree,n=e,s=n.kind==="ticker"?n.heroId:null,l=hl(d=>{d&&(o({kind:"ticker",heroId:d}),Iue(d))},[o]);return br(()=>{t(s)},[s,t]),br(()=>{r(l)},[r,l]),{partRows:(d,{rowClick:c})=>{let f=String(d.props.id);return d.type==="Hero"&&ey(d.props)&&ko(t6,{icon:ko(hn,{type:"ticker",size:13}),name:i(Ri),onSelect:()=>l(f),selected:s===f,rowProps:{onClick:c(()=>l(f))},words:a})}}}function l6({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=Zp(),a=a6().tree,{appState:n}=r6(p=>p),s=n.data.content??[],l=cue(s);l.current=s;let d=e,c=un.find(p=>Bi[p]===d.kind),f=c&&"nodeId"in d?Di(String(d.nodeId),c):null,u=hl(p=>{let h=JR(p);if(!h)return;let g=l.current.findIndex(C=>String(C.props.id)===h.nodeId);if(g<0)return;let I={kind:Bi[h.part],nodeId:h.nodeId};o({index:g},I)},[o]);return br(()=>{t(f)},[f,t]),br(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:h})=>{let g=String(p.props.id),I=ZR(p);if(I.length===0)return null;let C=y=>{let b=Di(g,y.part);return ko(t6,{icon:ko(hn,{type:y.part==="media"?"heroMedia":"heroImage",size:13}),name:i(y.label),onSelect:()=>u(b),selected:f===b,rowProps:{onClick:h(()=>u(b))},words:a},b)},[S,...k]=I;return Vd(o6,{children:[C(S),k.length>0&&ko(hue,{children:k.map(C)})]})}}}function i6(e,o){return{partRows:(t,r)=>Vd(o6,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function bue(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:l,notifyParent:d,token:c}=ih(),{hasPreviewLink:f}=t,u=Ze(n6()).preview?.draftLink,p=Q4(e.data),h=K5({hasTrustedConsole:!!c,canCreatePlatformTemplate:l.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),g=hl(()=>{!a||!r||d(j5,{siteId:a,slug:r})},[d,a,r]),I=A4({pageSlug:r,siteId:a,token:c}),C=o.previewHref?.(r)??I;return{barLead:()=>h.visible&&ko($5,{enabled:h.enabled,reason:h.enabled?"":h.disabledReason,onSaved:g}),barView:()=>f&&r&&ko(F4,{liveHref:C,pageId:n??null,draftLink:u}),mainAction:p}}function yue(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=ih(),{hasSiteTheme:l,explainsSiteSettings:d}=t,c=y=>o.setView(y),[f,u]=Z5(Ds[0].id),[p,h]=Z5(!1),{surface:g,setSurface:I}=zR(),C=()=>{if(l){c("styles"),o.reveal(),J5();return}e.show(Ww),e.reveal(),J5()},S={id:"pages",label:i("Pages"),icon:ko(pue,{}),panel:({onHide:y})=>ko(LR,{activeSurface:g,onPreviewSurface:I,onNavigate:b=>{I(null),s(r?{kind:"template",id:r,pageSlug:b}:{kind:"page",slug:b,siteId:a??void 0})},onClose:y})},k=[];return!l&&d&&k.push({id:"appearance",label:i("Appearance"),icon:ko(mue,{}),active:e.kind==="website",onSelect:C}),l&&k.push({id:"styles",label:i("Styles"),icon:ko(uue,{}),panel:({onHide:y,notify:b})=>ko(OH,{tokenRef:n,siteId:a??void 0,onClose:y,onNotify:b,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>h(!1)})}),{railLead:[S],railTrail:k,resolveLeftView:y=>k5(y,l),openSettings:C,openStyles:()=>{u(hR),c("styles")},openPageStyles:l?()=>{u(Ms),h(!0),c("styles"),o.reveal()}:d?()=>{e.show(gH),e.reveal()}:void 0}}function Sue(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=ih(),a=r6(s=>s.config),n=n6();br(()=>(Dx({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>Dx(null)),[e,o,t,a]),br(()=>{let s=Ft();if(!s||!r)return;let l=!1;return gue(n).list().then(d=>{l||s.learn(d)}).catch(()=>{}),()=>{l=!0}},[r,n])}function d6(){let e=mc();return hl(o=>{z_(o,e)},[e])}function wue(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:l}=o;br(()=>{I5(s?.type==="BookingBox"&&s.props.region==="confirm"?b5(l(String(s.props.id))):null)},[s?.props.id]);let d=XH(e,o),{capabilities:{hasSiteSettings:c}}=ih();Sue();let{chat:f,setChat:u,setSelected:p,setSelectHandler:h}=Xp(),g=hl(()=>n(IH),[n]),I=a==="chat";br(()=>{p(I)},[I,p]),br(()=>{h(g)},[h,g]);let{setOpenHandler:C}=Ai(),S=hl(()=>n(bH),[n]);br(()=>{C(S)},[C,S]);let k=i6(s6(e),l6(e)),y=bue(o),b=yue(e,r),O=t.device,W=d6();return{...k,...y,...b,hasOwnRows:T=>T.type===Um,ownRows:d.renderLocationTree,sectionPressed:d.sectionPressed,onCopyItem:W,wrap:T=>ko(Fh.Provider,{value:!0,children:Vd(xue.Provider,{value:O,children:[T,ko(l5,{})]})}),addPanelRow:T=>c?Vd("div",{className:"sf-addside-sitewide",children:[ko("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:ko(hn,{type:"chat",size:16})}),Vd("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{T(),g()},children:[i("Live chat"),ko("span",{className:"sf-addside-sitewide-desc",children:i("A chat bubble on every page")})]}),ko(fue,{checked:f.enabled,onChange:M=>u({enabled:M}),ariaLabel:i("Show the chat bubble on the whole site")})]}):void 0}}var Q5=null,vC=new WeakMap;function Cue(e){let o=zk();if(!e||!o)return e;Q5!==o&&(Q5=o,vC=new WeakMap);let t=vC.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},vC.set(e,t)),t}var kue={isLockedBlock:(e,o)=>hu(e,o)||!!(o&&Ft()?.heldElsewhere(o.props.id)),duplicateBlocked:Hu,nestDepth:(e,o,t)=>o===uk?xk(e,t):0,newSectionNode:q5,canAddTo:(e,o,t,r)=>Cue(x5(e,o,r,t)),blockIsOffered:m5,slotsOf:g5,resolveOnInsert:!0},vue=new Proxy(U5,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?i(t):t}}),Tue={labelAtLevel:(e,o,t)=>i(Wh(e,o,t)),descriptions:vue,categoryLabel:e=>{let o=i5(e);return o===void 0?void 0:i(o)},firstSection:d5,blockRowName:y5,rowName:xu,plainText:vr,Icon:hn,Thumbnail:PH,useProducts:X5,presets:V5()},Pue={desktop:2e3,tablet:800,mobile:390},e6="desktop",Eue={options:HR,initial:e6,fluid:e6,widths:Pue,hidesPerView:!0},Oue={read:w5,write:e=>C5(e),forSelection:(e,o)=>v5(e,o)},_ue={first:Zo,last:Ge,firstGroup:Ue,lastGroup:Fe,isSectionGroup:ns,sectionGroupZone:BT,panelOf:e=>e===Zo?xH:null,get sharedReach(){return yn()?Rue:void 0},get shared(){return Ft()?P5:void 0},get groupTab(){return yn()?vF:void 0},get groupBadge(){return yn()?pS({type:Fe})??void 0:void 0},get changeNotice(){return yn()?TF():void 0},get band(){return yn()?Aue:void 0},get groupAccepts(){return yn()?MT:void 0}},Aue={foldable:!0},Rue=e=>pS(e)??T5(e);function Lue(e){return{...i6(s6(e),l6(e)),onCopyItem:d6(),openSettings:()=>e.show(Ww)}}function Fue(e,o){s4(e,o),T4()}var FJe={useOwnerName:Hs,useDocumentLabel:SR,useBridges:wue,useStandaloneBridges:Lue,useDocumentPass:Fue,blockRules:kue,blockLook:Tue,devices:Eue,leftView:Oue,pinned:_ue,Canvas:H5,canvasDrag:{media:W5},Inspector:SH};export{er as a,Z as b,mo as c,D6 as d,At as e,kl as f,lme as g,Xk as h,ime as i,Bh as j,N6 as k,dme as l,ev as m,hc as n,ov as o,cme as p,oo as q,G6 as r,fme as s,mme as t,hme as u,xme as v,xc as w,kr as x,re as y,K as z,sv as A,kme as B,iv as C,Pme as D,Eme as E,Fa as F,bv as G,vr as H,Gme as I,Cv as J,Kme as K,qe as L,Pr as M,Zme as N,Jme as O,Qme as P,Se as Q,Ev as R,ehe as S,ohe as T,Ma as U,ox as V,Bv as W,Mv as X,H as Y,X as Z,Tc as _,_ as $,We as aa,ar as ba,Pc as ca,N as da,vo as ea,El as fa,Rt as ga,ao as ha,_l as ia,ne as ja,Qr as ka,Ec as la,nx as ma,sx as na,Wv as oa,Gv as pa,Kv as qa,Dhe as ra,ix as sa,dx as ta,KW as ua,Ha as va,ea as wa,Xe as xa,Whe as ya,Rl as za,sr as Aa,Ac as Ba,Khe as Ca,Zv as Da,jhe as Ea,Vhe as Fa,Rc as Ga,Lc as Ha,rs as Ia,Ll as Ja,qW as Ka,cx as La,t3 as Ma,oa as Na,cT as Oa,go as Pa,Ho as Qa,Fo as Ra,nr as Sa,pT as Ta,Dl as Ua,uT as Va,Oxe as Wa,_xe as Xa,Ix as Ya,mT as Za,xT as _a,Axe as $a,Rxe as ab,IT as bb,bx as cb,h3 as db,x3 as eb,I3 as fb,yT as gb,Dc as hb,Lxe as ib,rt as jb,Nl as kb,Sx as lb,Bl as mb,Fxe as nb,Bxe as ob,Hl as pb,S3 as qb,Dxe as rb,Wl as sb,Cx as tb,kx as ub,Nxe as vb,wT as wb,rS as xb,Ze as yb,ff as zb,Uu as Ab,X2e as Bb,mr as Cb,hr as Db,So as Eb,l4e as Fb,mS as Gb,VFe as Hb,ru as Ib,Wi as Jb,Ui as Kb,xL as Lb,YFe as Mb,gL as Nb,qFe as Ob,QJ as Pb,IL as Qb,XFe as Rb,yL as Sb,l4 as Tb,S7e as Ub,Mue as Vb,se as Wb,i as Xb,Mo as Yb,i4 as Zb,k7e as _b,Io as $b,gK as ac,zg as bc,KCe as cc,wO as dc,YCe as ec,st as fc,$g as gc,XCe as hc,ZCe as ic,JCe as jc,_f as kc,QCe as lc,Af as mc,eke as nc,oke as oc,vO as pc,TO as qc,kK as rc,vK as sc,nke as tc,lke as uc,ike as vc,dke as wc,cke as xc,p0 as yc,Ja as zc,Gj as Ac,Ive as Bc,zj as Cc,bve as Dc,to as Ec,yve as Fc,$j as Gc,Sve as Hc,wve as Ic,Cve as Jc,kve as Kc,vve as Lc,Tve as Mc,Ss as Nc,Pve as Oc,g4e as Pc,I4e as Qc,b4e as Rc,y4e as Sc,S4e as Tc,w4e as Uc,cee as Vc,jL as Wc,VL as Xc,YL as Yc,$s as Zc,pu as _c,cDe as $c,Mke as ad,Xa as bd,xj as cd,eI as dd,si as ed,Hke as fd,Wke as gd,tI as hd,jO as id,Uke as jd,bge as kd,Vke as ld,Yke as md,qke as nd,Xke as od,Bf as pd,JK as qd,Ike as rd,Vg as sd,AO as td,bke as ud,yke as vd,VF as wd,QP as xd,Fbe as yd,la as zd,dG as Ad,Bbe as Bd,Dbe as Cd,lg as Dd,Nbe as Ed,Mbe as Fd,Hbe as Gd,oE as Hd,sg as Id,fG as Jd,Wbe as Kd,Ube as Ld,Gbe as Md,zbe as Nd,YF as Od,vn as Pd,T4e as Qd,P4e as Rd,E4e as Sd,qF as Td,O4e as Ud,XF as Vd,Ku as Wd,QF as Xd,U4e as Yd,G4e as Zd,ci as _d,fr as $d,Xl as ae,Vbe as be,Ybe as ce,wo as de,En as ee,J as fe,Js as ge,ae as he,ee as ie,le as je,ie as ke,he as le,b5e as me,pe as ne,Qs as oe,yS as pe,ld as qe,id as re,rB as se,C5e as te,Uae as ue,aB as ve,T5e as we,P5e as xe,nB as ye,Gae as ze,sB as Ae,zae as Be,dd as Ce,lB as De,A5e as Ee,wS as Fe,F5e as Ge,B5e as He,D5e as Ie,N5e as Je,M5e as Ke,H5e as Le,Qc as Me,G5e as Ne,Zu as Oe,cd as Pe,z5e as Qe,$5e as Re,dB as Se,K5e as Te,Yae as Ue,qae as Ve,j5e as We,Xae as Xe,V5e as Ye,cB as Ze,J5e as _e,Q5e as $e,e6e as af,o6e as bf,t6e as cf,r6e as df,Qae as ef,ene as ff,a6e as gf,n6e as hf,s6e as if,l6e as jf,i6e as kf,d6e as lf,c6e as mf,f6e as nf,p6e as of,em as pf,mB as qf,fne as rf,b6e as sf,y6e as tf,tm as uf,kS as vf,gB as wf,rm as xf,v6e as yf,pne as zf,une as Af,mne as Bf,T6e as Cf,et as Df,An as Ef,rl as Ff,dWe as Gf,cWe as Hf,fWe as If,rD as Jf,aD as Kf,Zne as Lf,OWe as Mf,nD as Nf,sD as Of,lD as Pf,RWe as Qf,BWe as Rf,hm as Sf,iD as Tf,tse as Uf,DWe as Vf,X$ as Wf,Nt as Xf,iCe as Yf,dCe as Zf,cCe as _f,fCe as $f,Tf as ag,pCe as bg,Gf as cg,ii as dg,Qke as eg,eve as fg,ove as gg,e0 as hg,o0 as ig,t0 as jg,tve as kg,Ue as lg,Fe as mg,tge as ng,DT as og,Gc as pg,EF as qg,QWe as rg,e3e as sg,ID as tg,o3e as ug,t3e as vg,Ps as wg,Jl as xg,$I as yg,VI as zg,mp as Ag,Ut as Bg,$Ee as Cg,KEe as Dg,jEe as Eg,VEe as Fg,HY as Gg,WY as Hg,YEe as Ig,Es as Jg,qI as Kg,qEe as Lg,XEe as Mg,Rp as Ng,ki as Og,Sb as Pg,Rs as Qg,ln as Rg,R_e as Sg,vi as Tg,_A as Ug,L_e as Vg,_b as Wg,F_e as Xg,B_e as Yg,D_e as Zg,Vq as _g,N_e as $g,Zq as ah,Jq as bh,M_e as ch,H_e as dh,e9 as eh,ED as fh,$S as gh,Ki as hh,H1 as ih,W1 as jh,ji as kh,y1 as lh,qy as mh,BNe as nh,Sn as oh,Zy as ph,C1 as qh,k1 as rh,Jy as sh,Koe as th,v1 as uh,yu as vh,T1 as wh,L3e as xh,LD as yh,F3e as zh,B3e as Ah,D3e as Bh,kd as Ch,bm as Dh,z3e as Eh,j3e as Fh,nUe as Gh,XS as Hh,sUe as Ih,WD as Jh,UD as Kh,Wr as Lh,gUe as Mh,zD as Nh,IUe as Oh,KD as Ph,no as Qh,De as Rh,Sm as Sh,YD as Th,vUe as Uh,wm as Vh,qD as Wh,_Ue as Xh,jUe as Yh,sN as Zh,lw as _h,lN as $h,qUe as ai,XUe as bi,ZUe as ci,iw as di,JUe as ei,QUe as fi,iN as gi,Pm as hi,yle as ii,Em as ji,BGe as ki,hw as li,kle as mi,xw as ni,Rle as oi,XGe as pi,MN as qi,HN as ri,ZGe as si,JGe as ti,ZI as ui,aOe as vi,JI as wi,P_ as xi,cze as yi,ZN as zi,JN as Ai,Oze as Bi,Hze as Ci,Wze as Di,Uze as Ei,_w as Fi,d0 as Gi,uve as Hi,mI as Ii,hI as Ji,xI as Ki,$ze as Li,Yle as Mi,qle as Ni,sM as Oi,Kze as Pi,jze as Qi,x$e as Ri,EM as Si,g$e as Ti,OM as Ui,b$e as Vi,bie as Wi,NM as Xi,P$e as Yi,Rm as Zi,D$e as _i,Td as $i,H$e as aj,zM as bj,U$e as cj,$M as dj,KM as ej,$$e as fj,Rw as gj,kie as hj,V$e as ij,vie as jj,Y$e as kj,q$e as lj,Lm as mj,qM as nj,Q$e as oj,eKe as pj,oKe as qj,tKe as rj,Ur as sj,lKe as tj,sH as uj,DVe as vj,NVe as wj,n2 as xj,MVe as yj,kE as zj,nR as Aj,TAe as Bj,PAe as Cj,E9 as Dj,EAe as Ej,OAe as Fj,_Ae as Gj,AAe as Hj,O9 as Ij,RAe as Jj,LAe as Kj,FAe as Lj,BAe as Mj,L9 as Nj,DAe as Oj,Kde as Pj,d2 as Qj,zVe as Rj,Fd as Sj,f2 as Tj,ra as Uj,Mge as Vj,eU as Wj,$x as Xj,jl as Yj,Hge as Zj,Gge as _j,tU as $j,pP as ak,zge as bk,Ga as ck,lU as dk,qge as ek,Xge as fk,Vl as gk,Zge as hk,Jge as ik,qx as jk,gP as kk,nIe as lk,YR as mk,KLe as nk,oy as ok,mn as pk,qLe as qk,XLe as rk,OZ as sk,ZLe as tk,Di as uk,JR as vk,QR as wk,f8e as xk,oC as yk,I2 as zk,b2 as Ak,Jw as Bk,ece as Ck,p8e as Dk,Gm as Ek,Bd as Fk,$m as Gk,u8e as Hk,m8e as Ik,h8e as Jk,zm as Kk,x8e as Lk,g8e as Mk,P3 as Nk,Kxe as Ok,E3 as Pk,O3 as Qk,Yxe as Rk,_3 as Sk,A3 as Tk,qxe as Uk,Xxe as Vk,Zxe as Wk,Jxe as Xk,w2 as Yk,Dd as Zk,Nd as _k,jm as $k,k2 as al,fl as bl,v2 as cl,Vm as dl,Ym as el,qm as fl,T2 as gl,P2 as hl,E2 as il,O2 as jl,_2 as kl,L2 as ll,F2 as ml,$8e as nl,K8e as ol,j8e as pl,V8e as ql,Dt as rl,yce as sl,W2 as tl,wce as ul,G2 as vl,z2 as wl,K2 as xl,Rce as yl,yYe as zl,jR as Al,WLe as Bl,RYe as Cl,LYe as Dl,ope as El,Sj as Fl,Is as Gl,zke as Hl,aa as Il,OP as Jl,vP as Kl,Qx as Ll,gU as Ml,SIe as Nl,Zc as Ol,AP as Pl,IU as Ql,bU as Rl,yU as Sl,kIe as Tl,vIe as Ul,TIe as Vl,PIe as Wl,kge as Xl,bXe as Yl,PMe as Zl,M1 as _l,Ri as $l,FLe as am,$R as bm,BLe as cm,DLe as dm,NLe as em,fVe as fm,_H as gm,AH as hm,RH as im,h0 as jm,pi as km,Eo as lm,ut as mm,Vf as nm,ws as om,Nve as pm,Mve as qm,Wve as rm,Uve as sm,Gve as tm,zve as um,$ve as vm,jve as wm,qf as xm,ui as ym,g0 as zm,II as Am,aV as Bm,I0 as Cm,b0 as Dm,fIe as Em,wP as Fm,IIe as Gm,Jc as Hm,ef as Im,ql as Jm,DP as Km,NIe as Lm,MIe as Mm,GP as Nm,tg as Om,sG as Pm,kbe as Qm,Zbe as Rm,aye as Sm,nye as Tm,FG as Um,Yo as Vm,Zl as Wm,bg as Xm,yg as Ym,Yye as Zm,yE as _m,qye as $m,Xye as an,Zye as bn,TE as cn,EE as dn,_r as en,DE as fn,b$ as gn,xwe as hn,KE as in,Cwe as jn,VE as kn,ZE as ln,JE as mn,QE as nn,eO as on,oO as pn,tO as qn,Bg as rn,M$ as sn,H$ as tn,ti as un,Dg as vn,aO as wn,Kwe as xn,U$ as yn,jwe as zn,Vwe as An,Ywe as Bn,sO as Cn,Jwe as Dn,$$ as En,Qwe as Fn,eCe as Gn,j$ as Hn,Ng as In,Y$ as Jn,aCe as Kn,q$ as Ln,nCe as Mn,Wg as Nn,yCe as On,fO as Pn,eK as Qn,wCe as Rn,ri as Sn,mK as Tn,GCe as Un,sj as Vn,Oke as Wn,ij as Xn,_ke as Yn,Ake as Zn,Rke as _n,ys as $n,Kf as ao,ive as bo,dve as co,cve as do,ma as eo,dV as fo,ha as go,on as ho,OPe as io,_Pe as jo,APe as ko,RPe as lo,LPe as mo,FPe as no,BPe as oo,HPe as po,WPe as qo,x8 as ro,UPe as so,GPe as to,zPe as uo,$Pe as vo,KPe as wo,jPe as xo,VPe as yo,YPe as zo,y8 as Ao,qPe as Bo,BI as Co,XPe as Do,rp as Eo,ap as Fo,Xo as Go,Dr as Ho,Z0 as Io,ia as Jo,J0 as Ko,Q0 as Lo,np as Mo,ZPe as No,JPe as Oo,j8 as Po,QPe as Qo,eEe as Ro,oEe as So,tEe as To,rEe as Uo,aEe as Vo,To as Wo,nEe as Xo,sEe as Yo,Zf as Zo,sp as _o,lp as $o,MI as ap,dp as bp,lEe as cp,s_ as dp,iEe as ep,hY as fp,dEe as gp,cEe as hp,d_ as ip,fEe as jp,pEe as kp,uEe as lp,mEe as mp,hEe as np,xEe as op,GI as pp,gEe as qp,f_ as rp,IEe as sp,bEe as tp,vs as up,u_ as vp,yEe as wp,SEe as xp,wEe as yp,BDe as zp,DDe as Ap,NDe as Bp,xu as Cp,u1 as Dp,$y as Ep,aNe as Fp,nNe as Gp,I1 as Hp,xt as Ip,su as Jp,WQ as Kp,UQ as Lp,EBe as Mp,OBe as Np,_Be as Op,ABe as Pp,FL as Qp,FBe as Rp,BBe as Sp,DBe as Tp,iq as Up,pA as Vp,uA as Wp,Yp as Xp,FR as Yp,BR as Zp,NR as _p,qp as $p,xLe as aq,gLe as bq,Xp as cq,yZ as dq,PLe as eq,Ai as fq,ALe as gq,zR as hq,as as iq,v3 as jq,Gxe as kq,zxe as lq,c2e as mq,f2e as nq,p2e as oq,MYe as pq,zLe as qq,Zp as rq,que as sq,zY as tq,hOe as uq,xOe as vq,A_ as wq,gOe as xq,IOe as yq,ub as zq,MA as Aq,Q_e as Bq,eAe as Cq,oAe as Dq,tAe as Eq,aR as Fq,VAe as Gq,YAe as Hq,oL as Iq,FFe as Jq,iL as Kq,Yi as Lq,Rte as Mq,GMe as Nq,XMe as Oq,vu as Pq,Ge as Qq,Mu as Rq,jt as Sq,BH as Tq,_d as Uq,DH as Vq,NH as Wq,xVe as Xq,gVe as Yq,P4 as Zq,pC as _q,E4 as $q,x5 as ar,D9e as br,ah as cr,fpe as dr,ppe as er,V9e as fr,Gue as gr,jue as hr,FJe as ir};
|