efficient-storefront-blocks 0.118.4 → 0.119.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 +18 -0
- package/dist/chunks/{SiteEditorProvider-IUUOJHN2.js → SiteEditorProvider-IA4YGOTE.js} +1 -1
- package/dist/chunks/{chunk-YGMNMVG2.js → chunk-DJBGDTYI.js} +1 -1
- package/dist/editor/lib/document/blocks/commerce/AlloyWheelsListing/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/FitmentFinder/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/FitmentPicker/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/TyreFitment/fields.js +1 -1
- package/dist/editor/lib/document/blocks/commerce/fitment-cell-look-field.d.ts +3 -0
- package/dist/editor/lib/document/blocks/commerce/fitment-cell-look-field.js +1 -0
- package/dist/editor/lib/storefront-editor-words.d.ts +2 -0
- package/dist/editor/lib/storefront-editor-words.js +1 -1
- package/dist/index.js +29 -29
- package/dist/render/components/GalleryItem.js +1 -1
- package/dist/render/components/HeaderTools.js +1 -1
- package/dist/render/components/ProductGridSection.js +1 -1
- package/dist/render/components/TyreVehicleFitment.d.ts +2 -1
- package/dist/render/components/TyreVehicleFitment.js +1 -1
- package/dist/render/components/catalog/CatalogVehiclePicker.js +1 -1
- package/dist/render/components/catalog/FilterPill.js +1 -1
- package/dist/render/components/catalog/ShopperScope.d.ts +1 -2
- package/dist/render/components/catalog/ShopperScope.js +2 -2
- package/dist/render/components/fitment/FitmentFinder.d.ts +2 -1
- package/dist/render/components/fitment/FitmentFinder.js +1 -1
- package/dist/render/components/fitment/FitmentPickerGrid.d.ts +2 -1
- package/dist/render/components/fitment/FitmentPickerGrid.js +1 -1
- package/dist/render/components/fitment/FitmentPickerPart.d.ts +2 -1
- package/dist/render/components/fitment/FitmentPickerPart.js +1 -1
- package/dist/render/components/fitment/PickerField.d.ts +2 -1
- package/dist/render/components/fitment/PickerField.js +1 -1
- package/dist/render/components/pdp-dynamic/DynamicTyreFitment.d.ts +1 -0
- package/dist/render/components/pdp-dynamic/DynamicTyreFitment.js +1 -1
- package/dist/render/components/product-hero/VehicleQuestion.js +1 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.d.ts +2 -1
- package/dist/render/components/wheels-plp/AlloyWheelsListing.js +1 -1
- package/dist/render/components/wheels-plp/PlpVehicleBar.d.ts +2 -1
- package/dist/render/components/wheels-plp/PlpVehicleBar.js +1 -1
- package/dist/render/components/wheels-plp/PlpVehicleGate.d.ts +2 -1
- package/dist/render/components/wheels-plp/PlpVehicleGate.js +1 -1
- package/dist/render/lib/document/blocks/commerce/AlloyWheelsListing/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentFinder/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/FitmentPicker/render.js +1 -1
- package/dist/render/lib/document/blocks/commerce/TyreFitment/render.js +1 -1
- package/dist/render/lib/sections/fitment-cell-look.d.ts +11 -0
- package/dist/render/lib/sections/fitment-cell-look.js +1 -0
- package/dist/words.d.ts +2 -0
- package/dist/words.js +1 -1
- package/package.json +1 -1
- /package/dist/chunks/{chunk-YGMNMVG2.js.LEGAL.txt → chunk-DJBGDTYI.js.LEGAL.txt} +0 -0
|
@@ -339,4 +339,4 @@ ${r}`:o.push({type:"p",text:r})});return o}var Zfe=()=>[{label:c("First section"
|
|
|
339
339
|
*Highlight line*`},r$=[{label:uo.text,href:uo.href,variant:"primary"},{label:uo.text,href:uo.href,variant:"outline"}],A9e={label:"Call-to-Action Heading",defaultProps:{title:"",buttons:[],padTop:140,padBottom:140}};var gg="standard",i$=[{label:"Standard",value:"standard"},{label:"Editorial",value:"editorial"},{label:"Simple",value:"simple"},{label:"Statement",value:"statement"},{label:"Natural",value:"natural"},{label:"Essay",value:"essay"}],Gk=["numStyle","logoSrc","logoAlt","linkText","linkHref","_gLogo"],zk=[...Gk,"description"],a$={standard:["eyebrowLook"],editorial:[...Gk,"eyebrowLook"],simple:zk,statement:zk,natural:Gk,essay:zk},n$=["gap-5","gap-3"],s$=["text-[length:var(--size-body,16px)]","text-[15px]"];function B9e(e){return go(n$,n$[0],e)}function N9e(e){return go(s$,s$[0],e)}function D9e(e){return go(i$,gg,e)}function M9e(e){let o=i$.map(r=>r.value),t=[...new Set(Object.values(a$).flat())];return kt(e,t.map(r=>[[r],Sc("headStyle",o,gg,o.filter(a=>!a$[a].includes(r)))]))}var Oa={num:"01 / Section",title:"Section *title*",description:"Short supporting line",linkText:Ye.viewAll},z9e={label:"Section Header",drawsPictures:!0,defaultProps:{headStyle:gg,num:Oa.num,numStyle:Dd,title:Oa.title,description:"",logoSrc:"",logoAlt:"",linkText:"",linkHref:""}};var Ig={eyebrow:"\u2014 Label",title:`Section headline
|
|
340
340
|
*Highlight line*`,body:"A sentence or two of supporting copy."},V9e={label:"Scroll-Over Text",drawsPictures:!0,defaultProps:{eyebrow:"",title:"",body:"",imageSrc:"",imageSrcMobile:"",heightDesktop:100,heightMobile:100,overlay:60,titleSizeDesktop:ts,bodySizeDesktop:ts,titleSizeMobile:ts,bodySizeMobile:ts,ctaText:"",ctaHref:"",buttonColor:"",buttonTextColor:"",stickTop:!0,[Ir]:0,uppercase:!1}};var l$={top:72,bottom:72,topPhone:72,bottomPhone:72},zpe={name:"Editorial Text",boxProps:e=>({...Q,direction:"column",gap:28,gapPhone:28,sectionBorder:{top:1},...ie(e,l$)}),box:[["topBorder","sectionBorder",e=>e===!1?void 0:{top:1}],...re,...ge(l$)],parts:[Zt("Prose"),{kind:"text",key:"body",props:ne,style:{textStyle:"body-1",...z("body",16),lineHeight:1.7,paragraphSpacing:18}}],drop:{...oe,...se,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)"}},c$={buttonPaddingTop:20,buttonPaddingBottom:20,buttonPaddingLeft:28,buttonPaddingRight:28},d$=(e,o)=>o?.variant==="primary",f$=(e,o)=>({kind:"list",key:"buttons",name:"Button",flat:!0,when:e,parts:[{kind:"button",key:"label",href:"href",when:d$,variant:"primary",style:{letterSpacing:.3},props:{...Ro,...c$,...o}},{kind:"button",key:"label",href:"href",when:(t,r)=>!d$(t,r),variant:"ghost",style:{letterSpacing:.3},props:{...Ro,...c$,...o}}]}),yg=e=>no(e.title),Gpe={name:"Call-to-Action Heading",boxProps:e=>({...Q,direction:"row",align:"center",justify:yg(e)?"between":"end",gap:60,gapPhone:60,share:"content",sectionBorder:{bottom:1},...Xt(e,"TitleWithButtons")}),box:[...re,...fn("TitleWithButtons")],parts:[{kind:"group",name:"Title",props:{...N,maxWidth:1e3,widthFitPhone:"fill"},parts:[{kind:"text",key:"title",role:"heading",props:j,style:{textStyle:"heading-1",...wt("headingLarge",48,7,108),case:"upper",lineHeight:.94,letterSpacing:-.035},mark:"accentItalic"}]},{kind:"group",name:"Buttons",props:e=>({...N,gap:14,gapPhone:14,widthFitPhone:"fill",...yg(e)?{minWidth:280,minWidthPhone:0}:{}}),parts:[f$(yg,{widthFit:"fill",iconPosition:"end"}),f$(e=>!yg(e),{})]}],drop:{...oe,buttonsAlign:"moves the buttons only when there is no heading (4 of 128 live nodes), where the Box puts them at the end. 0 of 128 live nodes store it (the live export, 2026-10-24)",buttonsAlignPhone:"the phone's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Phone view's Block alignment row), so nothing moves",buttonsAlignTablet:"the tablet's own side of `buttonsAlign`, read only with no heading; no old node stores it (it is new with the Tablet view's Block alignment row, 0 stored on the US sites 2026-11-05), so nothing moves"}};function jpe(e,o){let t=Fl(o,{to:Pe(e.sectionPaddingUnit)}),r=Fl(o,{view:"phone",to:Pe(e.sectionPaddingUnitPhone),maxPx:20});return{sectionPaddingLeft:t,sectionPaddingRight:t,sectionPaddingLeftPhone:r,sectionPaddingRightPhone:r}}var p$={top:40,bottom:64,topPhone:24,bottomPhone:36},Kpe={name:"Section Header",boxProps:(e,o)=>({...Q,direction:"column",gap:0,...ie(e,p$),...jpe(e,o)}),box:[...re,...ge(p$)],parts:[Zt("SectionHeader")],drop:{...oe,...se,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"}},u$={...N,direction:"row",share:[67],gap:32},m$={...N,sectionPaddingLeft:24,sectionPaddingLeftPhone:0},h$=(e,o,t)=>({kind:"group",name:e,props:o,parts:[t]}),Vpe={name:"Lead Text",boxProps:e=>({...Q,direction:"column",gap:40,gapPhone:40,sectionBorder:{bottom:1},...Xt(e,"ParagraphsA")}),box:[...re,...fn("ParagraphsA")],parts:[{kind:"group",name:"Numbers",props:{...u$,gapPhone:24,sectionBorder:{bottom:1},sectionPaddingBottom:40,sectionPaddingBottomPhone:40},parts:[{kind:"group",name:"Eyebrow",props:{...N,sectionPaddingTop:5,sectionPaddingBottom:1,sectionPaddingTopPhone:5,sectionPaddingBottomPhone:1},parts:[Ie("eyebrow",{color:"labels",...z("label",12),letterSpacing:.24})]},h$("Stats column",N,{kind:"group",name:"Stats",props:{...m$,gap:0,gapPhone:0},parts:[{kind:"list",key:"stats",name:"Stat",flat:!0,parts:[ff("value","label",{...z("label",13),letterSpacing:.18,lineHeight:1.8})]}]})]},{kind:"group",name:"Words",props:{...u$,gapPhone:28},parts:[{kind:"group",name:"Lead",props:N,parts:[{kind:"group",name:"Measure",props:{...N,maxWidth:780},parts:[{kind:"text",key:"lead",props:j,style:{textStyle:"heading-3",...z("headingSmall",22,20),weight:400,case:"none",lineHeight:1.45,letterSpacing:-.005}}]}]},h$("Note column",{...N,justify:"end"},{kind:"group",name:"Founders",props:{...m$,gap:8,gapPhone:8},parts:[{kind:"group",name:"Note",props:{...N,gap:6,gapPhone:6},parts:[{kind:"text",key:"foundersHeading",props:j,style:{textStyle:"body-1",fontRole:"heading",...z("body",18,16),weight:500,letterSpacing:-.01,lineHeight:1.7}},{kind:"text",key:"foundersBody",props:ne,style:{textStyle:"body-5",fontRole:"heading",...z("body",14,12),lineHeight:1.7}}]},Ie("attribution",{...z("label",12,10),letterSpacing:.24,lineHeight:1.7})]})]}],drop:{...oe}},x$={top:24,bottom:24,topPhone:24,bottomPhone:24},Ype={name:"Banner",boxProps:e=>({...Q,direction:"column",gap:0,...ie(e,x$)}),box:[...re,"contained",...ge(x$)],parts:[{kind:"group",name:"Card",keepEmpty:!0,props:{...N,gap:28,gapPhone:28,placement:"top-left",darken:60,darkenStyle:"even",sectionBorder:{width:1},...ia("surface"),...Zo(64,40,40,24)},box:[["imageSrc","bgImage"],["overlay","darken",e=>Math.min(Math.max(q(e)??60,0),100)]],parts:[{kind:"group",name:"Words",props:{...N,gap:20,gapPhone:20},parts:[Ie("eyebrow"),{kind:"text",key:"title",role:"heading",props:{...j,maxWidth:680},style:{weight:500,lineHeight:1.05,letterSpacing:-.03,case:"none",...z("headingMedium",44,32)}},{kind:"text",key:"body",props:{...j,maxWidth:680},style:{textStyle:"body-1",lineHeight:1.6,...z("body",16)}}]},{kind:"button",key:"ctaText",href:"ctaHref",variant:"primary",props:Ro}]}],drop:{...oe,...se}},jk={Prose:zpe,TitleWithButtons:Gpe,SectionHeader:Kpe,ParagraphsA:Vpe,Banner:Ype},g$={Prose:()=>({eyebrow:xg.eyebrow,title:vr(xg.title),body:xg.body}),TitleWithButtons:()=>({title:vr(t$.title),buttons:r$.map(e=>({...e}))}),SectionHeader:()=>({num:Oa.num,title:vr(Oa.title),description:Oa.description,linkText:Oa.linkText,linkHref:uo.href}),ParagraphsA:()=>({eyebrow:Ef.eyebrow,lead:Ye.body,foundersHeading:Ef.foundersHeading,foundersBody:Ef.foundersBody,attribution:Ef.attribution}),Banner:()=>({...o$,ctaText:uo.text,ctaHref:uo.href}),ProcessSteps:()=>({num:Oa.num,title:vr(Oa.title)}),IntroBleed:()=>({eyebrow:Ig.eyebrow,title:vr(Ig.title),body:Ig.body,ctaText:uo.text,ctaHref:uo.href})};function bg(){Po(jk),Po(b5),Po(N5),Po(d5),Po(Q5),Po(u3),Po(E3),Po(A3),Po(G3),Po(eW),Po(pW),Po(kW),Po(_W),Po(FW),Po(e$),Po(zW),Po(VW),Po(JW)}var qpe=[{name:"migrateLegacyPageData",chrome:!1,why:"page-only: it walks the top-level sections (Gallery B's array to its slot, a second pinned Header or Footer); a chrome document's one top-level node is the chrome itself",run:e=>n4(e)},{name:"migrateRenamedProps",chrome:!0,why:"every document built from stored props: a renamed key still reads its stored answer (lib/source-rules/document-surfaces)",run:e=>i4(e)},{name:"convertSectionsInPage",chrome:!1,why:"page-only: it turns an old top-level SECTION into its Box, with the site theme off the page's metadata; chrome is a Box group, never one of those sections",run:(e,{metadata:o})=>(bg(),f4(e,lf,{theme:G_(o)}))},{name:"capHeroGroups",chrome:!1,why:"page-only: it caps a top-level Hero's slide groups, and a Hero is a page section",run:e=>iM(e)},{name:"oneH1",chrome:!1,why:"page-only: it hands the h1 to the first opener in the PAGE's document order; on a chrome document it would count a second document on its own",run:e=>J2(e)},{name:"dropEmptySourcedBoxes",chrome:!0,why:"any document: a nested head over sourced cores served none goes (the Box footer's payment line), at any depth inside a slot",run:e=>Z2(e)},{name:"markHeadCoreBoxes",chrome:!1,why:"page-only: it marks a head Box at the TOP of the page, where the mark element draws (lib/content/empty-hides); a chrome document's top is the chrome group",run:e=>q2(e)},{name:"markListSearchScopes",chrome:!1,why:"page-only for now: it ties a Search to the lists of the page's Box; no chrome holds a Search, and a chrome entry is one flag when one does",run:e=>pM(e)},{name:"withPageContents",chrome:!1,why:"page-only: a Contents block lists the PAGE's anchored sections and numbers their kickers",run:e=>qB(e)},{name:"markWallLabels",chrome:!0,why:"any document: each Marks wall is named by the lead Text drawn before it (aria-labelledby), the Box footer's walls too",run:e=>rH(e)},{name:"markCardPressTitles",chrome:!0,why:"any document: an acting copy's press button is named by its template's title Text (aria-labelledby), a header or footer list too; after the wall labels, so a Text keeps one id",run:e=>lH(e)}];function Xpe(e,o,t){let r=e;for(let a of qpe)(!t||a.chrome)&&(r=a.run(r,o));return r}function I$(e,o){return Xpe(e,{metadata:o},!1)}import{isNode as Zpe,isNodeList as Jpe}from"efficient-easel/data";import{hidableText as Qpe,readHidable as eue}from"efficient-easel/draw";var b$="slotCounts",Kk=e=>!eue(e).hidden&&Qpe(e).trim()!=="",oue=e=>typeof e=="string"&&e.trim()!=="",tue={Flex:()=>!0,PostCard:()=>!0,ImageBlock:e=>oue(e.src),Text:e=>Kk(e.text),Heading:e=>Kk(e.text),Eyebrow:e=>Kk(e.eyebrow)},rue=["widthFit","width","minWidth"],y$=e=>Jpe(e);function aue(e){if(Array.isArray(e.content))return y$(e.content)?e.content:null;let o=Object.values(e).filter(y$);return o.length===1?o[0]:null}function nue(e,o){return[...new Set([D0,...Object.values($(n_,e)??{})])].some(t=>ut(o,t)!=="")}function sue(e){let o=e.props??{},t=$(tue,e.type);if(!t||!t(o)||nue(e.type,o)||Kc(o))return!1;let r=o[kl];if(r!=null&&r!=="")return!1;let a=Ox(o);return!rue.some(n=>a[n]!==void 0)}function iue(e){let o=0;for(let t of e)if(!pa(t.props??{})){if(!sue(t))return;o+=1}return o>0?o:void 0}function lue(e){let o={},t=new Set,r=new Set,a=(n,s)=>{if(Array.isArray(n))for(let i of n){if(!Zpe(i))continue;let l=i.props.id;typeof l=="string"&&(t.has(l)?r:t).add(l);let d=s?null:aue(i.props);if(typeof l=="string"&&d){let f=iue(d);f!==void 0&&(o[l]=f)}for(let f of Fr(i))a(i.props[f],s||Fn(i.type,f))}};a(e,!1);for(let n of r)delete o[n];return o}function S$(e,o){return{...e??{},[b$]:lue(o)}}function Vqe(e){let o=e.editor?.metadata?.[b$],t=e.id,r=typeof t=="string"&&o&&typeof o=="object"?o[t]:void 0;return typeof r=="number"&&Number.isInteger(r)&&r>0?r:void 0}function C$({config:e,data:o,metadata:t}){let r=I$(o,t),a=nM(e,aM(r.content)),n=Hh(r.content),s=n.length>0?{...t,[rM]:n}:t;return w$(Wh,{children:w$(cue,{config:a,metadata:S$(s,r.content),data:r})})}import{jsx as tr,Fragment as fme,jsxs as p6}from"react/jsx-runtime";import{jsx as due,jsxs as fue}from"react/jsx-runtime";import{createContext as pue,useContext as uue}from"react";var v$=pue(!1);function aXe(){return uue(v$)}function k$({grayscale:e,children:o}){let t=e===!0;return fue(v$.Provider,{value:t,children:[Object.entries(kH(e)).map(([r,a])=>due("style",{children:a},r)),o]})}import{jsx as mue}from"react/jsx-runtime";import{createContext as hue,useContext as xue}from"react";var T$=hue(null);function lXe(){return xue(T$)}function P$({ink:e,children:o}){return mue(T$.Provider,{value:e??null,children:o})}var E$="data-lead-ink",pXe="data-header-ink";var gue="auto";function Iue(e){return e.type==="IntroBleed"?pg(e.props?.layout)!=="stacked":!0}function _$(e){let o=Ad(e);return o&&LD(e)&&Iue(o)?"light":null}function uXe(e){return e==="light"||e==="dark"?e:gue}import{useEasel as pme}from"efficient-easel/easel";import{useEffect as Oue}from"react";import{useEaselApi as Aue}from"efficient-easel/easel";import{find as yue,walk as O$}from"efficient-easel/data";var bue=()=>"",Sue=e=>wy(Nr([e],bue));function L$(e,o,t){if(!Array.isArray(e)||e.length!==1)return null;let r=t.keys??=Object.fromEntries(Object.entries(o()).map(([n,s])=>[n,new Set(s.map(Sue))])),a=wy(e);return Object.keys(r).find(n=>r[n].has(a))??null}var wue=()=>({press:[Bl(Rn),Bl(yc)],delivery:[Uv()]}),Cue={},Vk=e=>L$(e,wue,Cue),vue=e=>to(e)===R0?"delivery":"press";function kXe(e,o){if(!o||to(e)===to(o))return e;let t=Vk(e[Ue]),r=vue(e);if(!t||t===r)return e;let a=gy(e,Oo),n=r==="delivery"?Uv():Bl(to(e)?yc:Rn),s=Nr([n],yy(a));return{...e,[Ue]:s}}var kue=()=>({cards:[ui(Rn),ui(yc)],label:[mi(!1),mi(!0)]}),Tue={},Pue=e=>L$(e,kue,Tue);function TXe(e,o){if(!o||e.cardStyle==="label-only"==(o.cardStyle==="label-only"))return e;let t=Pue(e[Ue]),r=e.cardStyle==="label-only"?"label":"cards";if(!t||t===r)return e;let a=gy(e,zE),n=Array.isArray(e.items)&&e.items.some(l=>be(l?.href)!==void 0),s=r==="label"?mi(n):ui(to(e)?yc:Rn),i=Nr([s],yy(a));return{...e,[Ue]:i}}var A$=(e,o)=>$v.every(t=>JSON.stringify(e[t])===JSON.stringify(o[t]));function R$(e,o){let t={...e};for(let r of $v)delete t[r];return{...t,...structuredClone(o)}}function Yk(e){let o=e?.[De];if(!Array.isArray(o)||o.length!==1)return null;let t=o[0];return t?.type===Oo&&t.props?t:null}function Eue(e,o){let t=Yk(e),r=Yk(o);if(!t?.props||!r?.props||r.props.id!==t.props.id||to(t.props)===to(r.props))return e;let a=Vk(t.props[Ue]);if(!a||a===Vk(r.props[Ue]))return e;let n=q(e.columns);return n===void 0?e:a==="delivery"&&A$(e,Ns(n))?R$(e,Nx(n)):a==="press"&&A$(e,Nx(n))?R$(e,Ns(n)):e}function F$(e){let o=Sg.get(e);o?o.count+=1:Sg.set(e,{count:1,stop:_ue(e)});let t=!1;return()=>{let r=Sg.get(e);t||!r||(t=!0,r.count-=1,!(r.count>0)&&(r.stop(),Sg.delete(e)))}}var Sg=new WeakMap;function _ue(e){let o=e.getState().appState.data;return e.subscribe(()=>{let t=e.getState().appState.data;if(t===o)return;let r=o;if(o=t,t===e.loaded)return;let a=new Map;O$(t,e.config,n=>{if(n.type!==Y||!Yk(n.props))return;let s=yue(r,e.config,n.props.id);if(!s||s.node===n)return;let i=Eue(n.props,s.node.props);i!==n.props&&a.set(n.props.id,i)}),a.size&&e.dispatch({type:"setData",recordHistory:!1,data:n=>O$(n,e.config,s=>{let i=a.get(s.props.id);return i?{...s,props:{...i,id:s.props.id}}:void 0})})})}function B$(){let e=Rue();Oue(()=>e?F$(e):void 0,[e])}function Rue(){try{return Aue()}catch{return null}}import{jsx as wg}from"react/jsx-runtime";import{useEffect as Lue}from"react";import{armScrollProgress as Fue}from"efficient-shell/format";function N$({armed:e,children:o}){return Lue(()=>e?Fue():void 0,[e]),o}function qk(){return{style:{"--sf-page-width":Wo}}}function Bue({children:e}){return wg("div",{style:qk().style,children:e})}function HXe({pageBackground:e,inheritBackground:o=!1,chrome:t=!1,children:r}){return wg("div",{style:{...o?{}:Gu(e),background:"var(--bg)",minHeight:"100%",overflowX:"clip"},children:wg(N$,{armed:!t,children:wg(Bue,{children:r})})})}import{jsx as D$,Fragment as Nue}from"react/jsx-runtime";import{createContext as Due,useContext as Mue}from"react";var M$=Due({}),H$=M$.Provider;function zXe(e){let{SectionTextParts:o}=Mue(M$);return o?D$(o,{...e}):D$(Nue,{children:e.children})}import{jsx as rme}from"react/jsx-runtime";import{useEffect as ame,useRef as nme}from"react";var W$="data-easel-overlay-portal";function Cg(e){return e.setAttribute(W$,"true"),()=>{e.removeAttribute(W$)}}import{jsx as que}from"react/jsx-runtime";import{useEffect as Xue,useRef as o6}from"react";import{usePreviewParts as Zue}from"efficient-easel/draw/client";import{jsx as Hue}from"react/jsx-runtime";import{createContext as Wue,useContext as $ue,useMemo as Uue,useState as zue}from"react";var Gue={partStyle:null,setPartStyle:()=>{}},$$=Wue(Gue);function YXe({children:e}){let[o,t]=zue(null),r=Uue(()=>({partStyle:o,setPartStyle:t}),[o]);return Hue($$.Provider,{value:r,children:e})}function zl(){return $ue($$)}import{usePreviewDevice as Jue}from"efficient-easel/draw/client";import{shownTier as Que}from"efficient-easel/screen/lib/document/device-fields";import{decodePartId as t6,encodePartId as eme}from"efficient-easel/draw";import{BLOCK_ATTRIBUTE as ome}from"efficient-easel/canvas";import{createPreviewSelectionContext as jue}from"efficient-easel/draw/client";var $s="Scrolling Bar",{Provider:ZXe,useSelection:U$}=jue("selectedHeroId"),Xk="data-sf-hero-ticker";function z$(e){return`${e}::ticker`}function G$(e){return!e||!e.endsWith("::ticker")?null:e.slice(0,-8)||null}import{BLOCK_ATTRIBUTE as xn}from"efficient-easel/canvas";import{createPreviewSelectionContext as Kue}from"efficient-easel/draw/client";var{Provider:eZe,useSelection:j$}=Kue("selectedLocationPartId");function vg(e,o,t){return`${e}::${o}::${t}`}function kg(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}var Jk="data-sf-part-label";function Qk(e,o){return e.closest(`[${xn}]`)?.getAttribute(xn)===o}function K$(e,o,t){let r=e.querySelectorAll("*"),a=new Map(t.map(y=>[y.key,Sd(y.label)])),n=[],s=new Set;for(let y=0;y<r.length;y+=1){let k=r[y];if(!Qk(k,o))continue;let F=k.getAttribute(NB);if(!F)continue;let T=a.get(F);n.push({element:k,partId:qr(o,F),...T?{label:T}:{}}),s.add(k)}let i=[],l=new Set;for(let y=0;y<r.length;y+=1){let k=r[y];if(!Qk(k,o)||s.has(k))continue;let F=rn(k.textContent??"");if(!F)continue;let T=k.closest(`[${Pw}]`)?.getAttribute(Pw)||null;T&&l.add(T.replace(/\[\d+\]$/u,"")),i.push({element:k,text:F,row:T})}let d=y=>i.filter(k=>k.row===BB(y.key,y.row.index)),f=i.filter(y=>y.row===null),u=y=>y.row&&l.has(y.key)?d(y):l.size?f:i,p=new Map,m=[],h=y=>y.row?`${y.key}.${y.row.rowKey}`:null,I=new Map;for(let y of t){let k=h(y);if(!k||l.has(y.key))continue;let F=I.get(k);F?F.push(y):I.set(k,[y])}let w=new Set;for(let[y,k]of I){if(k.length<2)continue;let F=k.flatMap(P=>P.texts);if(new Set(F).size===F.length)continue;let T=u(k[0]).filter(P=>F.includes(P.text));if(T.length!==k.length)continue;let D=[...k].sort((P,L)=>(P.row?.index??0)-(L.row?.index??0));for(let P=0;P<D.length;P+=1){let L=D[P],C=T[P].element,A={key:L.key,partKey:Yr(L.key,L.row),exact:!0},E=p.get(C);E?E.push(A):(p.set(C,[A]),m.push(C))}w.add(y)}let S=new Map;for(let y of t){if(w.has(h(y)??""))continue;let k=Yr(y.key,y.row);for(let F of y.texts)for(let T of u(y)){if(T.text!==F)continue;let D=S.get(T.element);D?D.add(k):S.set(T.element,new Set([k]))}}let v=(y,k)=>[...S].some(([F,T])=>F!==y&&!T.has(k)&&F.contains(y));for(let y of t){if(w.has(h(y)??""))continue;let k=Yr(y.key,y.row);for(let F of y.texts){let T=[],D=null;for(let C of u(y))C.text===F?v(C.element,k)||T.push(C.element):!T.length&&C.text.includes(F)&&(!D||C.text.length<=D.length)&&(D={element:C.element,length:C.text.length});let P=T.length?T:D?[D.element]:[],L=P.filter(C=>!P.some(A=>A!==C&&C.contains(A)));for(let C of L){let A={key:y.key,partKey:k,exact:T.length>0},E=p.get(C);E?E.push(A):(p.set(C,[A]),m.push(C))}}}let b=[...n];for(let y of m){let k=p.get(y)??[],F=k.some(T=>T.exact)?k.filter(T=>T.exact):k;if(new Set(F.map(T=>T.partKey)).size===1){let T=a.get(F[0].key);b.push({element:y,partId:qr(o,F[0].partKey),...T?{label:T}:{}});continue}new Set(F.map(T=>T.key)).size===1&&b.push({element:y,partId:qr(o,F[0].key)})}return b}function Zk(e,o,t){let r=e.querySelectorAll(`[${po}]`);for(let n=0;n<r.length;n+=1){let s=r[n];Qk(s,o)&&(s.removeAttribute(po),s.removeAttribute(Jk))}let a=[];for(let{element:n,partId:s,label:i}of t)n.setAttribute(po,s),i&&n.setAttribute(Jk,i),a.push(n);return a}function q$(e,o,t,r,a,n=()=>null){let s=null,i=null,l=null,d=()=>{let f=t(),u=f?.getAttribute(xn)??null;if(!f||!u)return!1;s=u;let p=K$(e,u,o);return a(f,u,Zk(e,u,p)),l=n(()=>{let m=K$(e,u,o);Vue(p,m)||(p=m,a(f,u,Zk(e,u,m)))}),!0};return d()||(i=r(()=>{(s||d())&&(i?.(),i=null)})),()=>{i?.(),i=null,l?.(),l=null,s&&Zk(e,s,[])}}function Vue(e,o){return e.length===o.length&&e.every((t,r)=>t.element===o[r].element&&t.partId===o[r].partId)}function lZe(e,o){let t=e?.closest?.(`[${po}],[${an}]`),r=t?.getAttribute(po)??t?.getAttribute(an),a=r?Id(r):null;if(t&&r&&a?.nodeId===o&&a.propKey)return{id:r,element:t,whole:Y$(t,r),label:V$(t,r)};let n=e?.closest?.(Z$.slice(2).map(i=>`[${i}]`).join(","));if(!n)return null;let s=n.closest?.(`[${xn}]`)?.getAttribute(xn)===o?J$(n,o):null;return s?{id:s,element:n,whole:Y$(n,s),label:V$(n,s)}:null}function V$(e,o){let t=kg(o);if(t)return t.part==="map"?"Map":t.part==="city"?"City":"Image";let r=xx(o);return r?_a[r.part]:G$(o)?$s:e.getAttribute(Jk)??void 0}var X$="data-loc-pick",Z$=[po,an,of,Xk,X$];function J$(e,o){let t=e.getAttribute(po)??e.getAttribute(an);if(t)return t;let r=e.getAttribute(of);if(r)return Ps(o,r);if(e.getAttribute(Xk)!==null)return z$(o);let a=e.getAttribute(X$)?.split(":");return a&&(a[1]==="image"||a[1]==="map"||a[1]==="city")&&/^\d+$/.test(a[0])?vg(o,Number(a[0]),a[1]):null}function Y$(e,o){let t=e.closest?.(`[${xn}]`),r=t?.getAttribute(xn);if(!t||!r)return!1;let a=new Set;for(let n of t.querySelectorAll(Z$.map(s=>`[${s}]`).join(","))){if(n.closest?.(`[${xn}]`)!==t)continue;let s=J$(n,r);s&&a.add(s)}return a.size===1&&a.has(o)}import{ENTRANCE_ATTR as Q$,playEntrance as Yue}from"efficient-shell/format";var eT=new WeakMap;function e6(e,o,t,r){let a=typeof t=="boolean"?t?"phone":"desktop":t,n=[],s=new Map;for(let{partKey:d}of e){if(s.has(d))continue;let f=o(d)??{},u=sO(f),p=r.get(d),m=p?yl.next(p,u,a):null;r.set(d,m?m.seen:yl.seed(u)),s.set(d,m?.play??!1)}let i=new Map,l=e.filter(d=>!e.some(f=>f!==d&&f.partKey===d.partKey&&f.element.contains(d.element)));for(let d of l){let f=Qh(d.element);f&&i.set(f,[...i.get(f)??[],d])}for(let[d,f]of i){let u=h=>Ud(o(h.partKey)??{}),p=wl(f.filter(h=>u(h).entrance));if(p){let h=o(p.partKey)??{};n.push(Zh(d,Ec(h,a)));let I=eT.get(d);eT.set(d,p.partKey),(s.get(p.partKey)||I!==void 0&&I!==p.partKey)&&d.hasAttribute(Q$)&&Yue(d)}else eT.delete(d);let m=d.hasAttribute(Q$)?void 0:wl(f.filter(h=>Ta(o(h.partKey)??{},a).effect!=="none"));m&&n.push(Jh(d,Ta(o(m.partKey)??{},a))),f.some(h=>u(h).hover==="lift")&&(ex(d.ownerDocument),d.setAttribute(Cs,""),n.push(()=>d.removeAttribute(Cs)))}return()=>n.forEach(d=>d())}function oT(e){let o=null,t=null;for(let r=e;r&&(o===null||t===null);r=r.parentElement){let a=r.getAttribute("class");o??=K0(a),t??=Ay(a)}return{faceRole:o??"body",sizeGroup:t}}function Tg(e,o={}){let t=e.style,r={};for(let i of Th)r[i]=t[i]??"",t[i]="";o.fontFamily&&(t.fontFamily=o.fontFamily),o.fontSize&&(t.fontSize=o.fontSize);let a=getComputedStyle(e),n=getComputedStyle(e.ownerDocument.documentElement),s=jN({fontSize:a.fontSize,fontWeight:a.fontWeight,lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,textAlign:a.textAlign,textTransform:a.textTransform,paddingTop:a.paddingTop},KN(a.fontFamily,i=>n.getPropertyValue(i)));for(let i of Th)t[i]=r[i];return s}function r6({needles:e,styles:o,motions:t=Xh,type:r,children:a}){let n=o6(null),{selectedPartId:s}=Zue(),{setPartStyle:i}=zl(),l=Que(Jue()),d=JSON.stringify(e),f=JSON.stringify(o),u=JSON.stringify(t),p=o6(new Map);return Xue(()=>{let m=n.current;if(!m)return;let h=[],I=()=>m.parentElement,w=T=>{let D=I();if(!D)return null;let P=new MutationObserver(T);return P.observe(D,{attributes:!0,attributeFilter:[ome]}),()=>P.disconnect()},S=T=>{let D=new MutationObserver(T);return D.observe(m,{childList:!0,subtree:!0,characterData:!0}),()=>D.disconnect()},v=[];h.push(()=>{for(let T of v)T();v=[]});let b=JSON.parse(d),y=JSON.parse(f),k=JSON.parse(u),F=q$(m,b,I,w,(T,D,P)=>{for(let E of v)E();v=[];let L=[];for(let E of P){let R=E,W=Cg(R);W&&v.push(W),R.getAttribute(po)===s&&L.push(R)}let C=VN(D,s,L,E=>V0(E)!==null||Ay(E)!==null);if(C&&s){let E=C,R=t6(s)?.propKey??"",W=bd(E)?{}:GN(hC(y,ka(r,R)),l,{blockDrawsStyle:Ed(r,R)});i({partId:s,...oT(E),base:Tg(E,W),inks:zu(E),...(()=>{let U=bd(E);return U?{styleOwner:U}:{}})()})}xC(P.filter(E=>!bd(E)).map(E=>({element:E,partId:E.getAttribute(po)??""})),y,E=>Tg(E),E=>ka(r,E),void 0,l,E=>Ed(r,E));let A=[...m.querySelectorAll(`[${Ew}="${CSS.escape(D)}"][${yd}]`)];A.length&&xC(A.map(E=>({element:E,partId:eme(D,E.getAttribute(yd)??"")})),y,void 0,E=>E,void 0,l),v.push(e6([...P.filter(E=>!bd(E)).map(E=>{let R=E,W=t6(R.getAttribute(po)??"")?.propKey??"";return{element:R,partKey:ka(r,W)}}),...A.map(E=>({element:E,partKey:E.getAttribute(yd)??""}))],E=>k[E],Ci(l),p.current))},S);return()=>{F();for(let T of h)T()}},[d,f,u,s,i,l,r]),que("div",{ref:n,[av]:"",style:{display:"contents"},children:a})}import{shownTier as sme}from"efficient-easel/screen/lib/document/device-fields";import{usePreviewDevice as ime,usePreviewParts as lme}from"efficient-easel/draw/client";var _f={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)]"},tme={tag:{label:"Tag",follows:"Labels",builtIn:xi(_f.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:xi(_f.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:xi(_f.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:xi(_f.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:xi(_f.link),writable:!0}},a6=tme;var WZe=Ln,n6={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 s6={SpecTable:n6,FAQ:XE,Collections:a6,Contents:fg};function i6(){return ai("efficient.section-text-regions",()=>new Map)}function YZe(e){let o=i6();for(let[t,r]of Object.entries(e)){if(He(s6,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 Gl(e){return e?$(s6,e)??i6().get(e)??null:null}function l6({nodeId:e,sectionType:o,partStyles:t,children:r}){let a=nme(null),{selectedPartId:n}=lme(),{setPartStyle:s}=zl(),i=sme(ime()),l=JSON.stringify(t??null);return ame(()=>{let d=a.current,f=Gl(o);if(!d||!e||!f)return;let u=[],p=Array.from(d.querySelectorAll(`[${Ln}]`));for(let m of p){let h=Sy(f,m.getAttribute(Ln));if(!h)continue;let I=Cg(m);I&&u.push(I);let w=wc(h),S=qr(e,w);m.setAttribute(an,S);let v=t?.[w];if(f[h].sized&&gC(v)){let b=IC(v,i),y={fontFamily:m.style.fontFamily,fontSize:m.style.fontSize},k=m.getAttribute(Cr);b.fontFamily&&(m.style.fontFamily=b.fontFamily),b.fontSize&&(m.style.fontSize=b.fontSize);let F={fontFamily:b.fontFamily?m.style.fontFamily:void 0,fontSize:b.fontSize?m.style.fontSize:void 0},T=v?.textStyle;wa(T)&&m.setAttribute(Cr,T),u.push(()=>{XN(m.style,y,F),k===null?m.removeAttribute(Cr):m.setAttribute(Cr,k)})}if(S===n){let b=Tg(m,qN(v,f[h],i));s({partId:S,...oT(m),base:b})}}return()=>{for(let m of u)m();for(let m of p)m.removeAttribute(an)}},[e,o,n,s,i,l]),rme("div",{ref:a,style:{display:"contents"},children:r})}import{jsx as tT,Fragment as c6}from"react/jsx-runtime";import{createContext as cme,useContext as d6,useMemo as dme}from"react";var rT=cme(null),f6=e=>e==null||e===""?void 0:String(e);function aT({content:e,children:o}){let t=dme(()=>Dw(e),[e]);return tT(rT.Provider,{value:t,children:o})}function fJe({id:e,children:o}){let t=d6(rT),r=f6(e);return tT(c6,{children:o(r?t?.entries.get(r):void 0)})}function pJe({id:e,children:o}){let t=d6(rT),r=f6(e);return tT(c6,{children:o(r?t?.numbers.get(r):void 0)})}var ume={SectionTextParts:l6},mme="color-mix(in oklab, var(--bg) 40%, #ffffff)",hme="12vh";function xme({style:e,children:o}){let{appState:t}=pme(p=>p),r=t.data.content,a=t.data.root;if(FD(r))return tr("div",{className:"sf-themed-content",style:{...e,background:mme,minHeight:"100vh",paddingBottom:hme},children:tr("div",{style:{background:"var(--bg)"},children:tr(aT,{content:r,children:o})})});let n=RC(r)&&FC(a,r),s=RC(r)?ND(a,r):null,i=s?{[BD]:s}:null,l=IL(a?.widthChoice),d=l?{[gL]:l}:null,f=n?null:_$(r),u=f?{[E$]:f}:null;return tr("div",{className:`sf-themed-content${n?` ${OD}`:""}`,style:e,...u,...i,...d,children:tr("div",{style:{background:"var(--bg)",minHeight:"100%"},children:tr(aT,{content:r,children:o})})})}function LJe({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,suppressPreviewNav:l,footer:d,overlay:f,children:u}){return B$(),tr(nT,{propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:p=>p6(fme,{children:[tr(xme,{style:p,children:u}),d,f]})})}function nT({propsTheme:e,propsFonts:o,propsCornerStyle:t,propsCornerRadiusPx:r,propsHeadingCompression:a,propsHeadingTypography:n,pageBackground:s,chromeInheritsSiteBackground:i,onClickCapture:l,body:d}){let{theme:f,fonts:u,sizes:p,cornerRadiusPx:m,cardShadow:h,shadowColor:I,cardGap:w,hoverEffect:S,headingCompression:v,siteWidth:b,siteGutter:y,siteGutterPhone:k,blockGap:F,blockGapPhone:T,siteLengthUnits:D,headingTypography:P,heroBackgroundFollowsWidth:L,photographyGrayscale:C,textStyles:A,wordStyles:E,themeFromDocument:R}=fe(),W=R?e:f,U=R?o:u,Z=R?void 0:p,V=R?r===void 0?Zp[Xp(t)]:Mt(r):m,de=R?{}:D,Ce=R?a:v,ee=R?n:P,_e=[pD(sD(R?void 0:A)),uD(Jp(ee).italicStrong)].filter(Boolean).join(`
|
|
341
341
|
`),Oe=qk(),Ee={...S_(W),...A_(Z),...U_(ee),...Oe.style,...i?{}:Gu(s)};return p6("div",{className:`sf-theme-surfaces sf-theme-accent ${[hL(R?void 0:k),nF(R?void 0:T)].filter(Boolean).join(" ")}`.trim(),style:{...Y0(U),...Z0(R?null:E),...w_(W),...C_(W),...k_(W),...qp(W),...L_(V,de.cornerRadiusUnit),...H_(R?void 0:h,R?void 0:I,R?void 0:S),...lL(R?void 0:b,de.siteWidthUnit),...pL(R?void 0:y,de.siteGutterUnit),...mL(R?void 0:k,de.siteGutterPhoneUnit),...rF(R?void 0:F,de.blockGapUnit),...aF(R?void 0:T,de.blockGapPhoneUnit),...Sm(R?void 0:L)},"data-sf-headings":W_(Ce),"data-sf-card-shadow":R?void 0:N_(h),"data-sf-card-gap":R?void 0:D_(w),"data-sf-card-hover":R?void 0:M_(S),onClickCapture:l,children:[_e?tr("style",{"data-sf-text-styles":"",dangerouslySetInnerHTML:{__html:_e}}):null,tr(k$,{grayscale:R?void 0:C,children:tr(H$,{value:ume,children:tr(P$,{ink:y_(W),children:d(Ee)})})})]})}var u6=e=>{e.target?.closest?.("a")&&e.preventDefault()};var Pg=[{key:"about",label:"About",slugs:["about"]},{key:"contact",label:"Contact",slugs:["contact"]},{key:"faq",label:"FAQ",slugs:["faq"]},{key:"gallery",label:"Gallery",slugs:["gallery"]},{key:"store-locator",label:"Store locator",slugs:["store-locator"]},{key:"policies",label:"Policies",slugs:["warranty","shipping-returns","privacy-policy","terms-and-conditions"]}],jl="all",Eg="template";function m6(e){for(let o=0;o<Pg.length;o++){let t=Pg[o].slugs.indexOf(e);if(t>=0)return o*100+t}return Number.MAX_SAFE_INTEGER}function h6(e){return e.map((o,t)=>({s:o,i:t})).filter(({s:o})=>o.source==="library").sort((o,t)=>m6(o.s.slug)-m6(t.s.slug)||o.i-t.i).map(({s:o})=>o)}function sT(e){return e.filter(o=>o.source==="template")}function x6(e){let o=new Set(h6(e).map(t=>t.slug));return Pg.filter(t=>t.slugs.some(r=>o.has(r)))}function g6(e,o){if(e===Eg)return sT(o);let t=h6(o);if(e===jl)return t;let r=Pg.find(a=>a.key===e);return r?t.filter(a=>r.slugs.includes(a.slug)):[]}function I6(e){let o=e.content;return Array.isArray(o)&&o.length>0?o[0]:null}var wme=1440,Cme=1080;function b6({starter:e,config:o,metadata:t,busy:r,onAdd:a}){let{mirrorHostStyles:n}=Ac(),[s,i]=Ime(null),l=gme(()=>{let d=I6(e.layout),f=e.layout.zones;return{root:{props:{}},content:d?[d]:[],zones:f??{}}},[e.layout]);return y6("div",{className:"sf-starter",children:[y6("div",{className:"sf-starter-picture",children:[Tr("div",{inert:!0,className:"sf-starter-frame",children:Tr(Sme,{width:wme,height:Cme,children:Tr(yme,{id:`page-starter-${e.id}`,title:e.title,mirrorStyles:n,onDocument:i,height:"fill",children:Tr(Mh,{document:s??void 0,children:Tr(nT,{onClickCapture:u6,body:d=>Tr("div",{className:"sf-themed-content",style:d,children:Tr("div",{style:{background:"var(--bg)"},children:Tr(C$,{config:o,data:l,metadata:t})})})})})})})}),Tr("div",{className:"sf-starter-add",children:Tr(bme,{onClick:()=>a(e),loading:r,"aria-label":c("Add \u201C{name}\u201D",{name:e.title}),children:c("Add page")})})]}),Tr("span",{className:"sf-starter-name",children:e.title})]})}import{useMemo as Cye}from"react";import{sessionRegistry as vye}from"efficient-easel/screen/lib/session";import{useEaselSession as kye}from"efficient-easel/screen/lib/session-context";import{currentEaselSession as vme}from"efficient-easel/screen/lib/session";var kme={general:!0,commerce:!0,service:!0};function iT(e){let o=e?.sets;return o?Object.fromEntries(M0.map(t=>[t,o.includes(t)])):kme}function lT(e=vme()){return iT(e.blocks)}import{currentEaselSession as L6}from"efficient-easel/screen/lib/session";import{SITE_SIDE as C6}from"efficient-easel/screen/lib/content/length-units";var S6=[{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"},{text:"Ticker item"}],JJe={label:"Scrolling Bar",defaultProps:{items:[],tone:"scrim",borders:!0,size:_E,separator:OE,scrollDirection:wf}};var w6=()=>[{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"},{text:c("Spec label"),tone:"normal"},{text:c("Spec value"),tone:"muted"}],oQe={label:"Spec Strip",defaultProps:{cells:[{text:"",tone:"normal"},{text:"",tone:"normal"}],fill:"dark"}};function jo(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function v6(e,o,t){return jo(Y,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var _g={Manifesto:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[jo(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:C6,sectionPaddingRight:C6,content:[jo("Text",e,o,la()),jo("Text",e,o,Da()),jo("Text",e,o),jo("Stats",e,o)]}),v6(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[jo(Y,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[jo("Text",e,o,la()),jo("Text",e,o,Da()),jo("Text",e,o),jo("ButtonBlock",e,o)]}),v6(e,o,{direction:"column",name:"Image",content:[jo("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:Y,props:{...e(Y),id:o(Y),direction:"column",name:"Subscribe",content:[jo("Text",e,o,Da()),jo("Text",e,o),jo("Form",e,o)]}}),Ticker:(e,o)=>k6("Scrolling Bar",tg,Cf,S6.map(t=>({text:t.text,style:rg,muted:!0})),e,o),SpecStrip:(e,o,t)=>k6("Spec Strip",t?.theme?{...kf,sectionAccent:Yp(ko(t.theme))}:{...kf,sectionBorder:{top:1}},vf,w6().map(r=>({text:r.text??"",style:Tf,muted:r.tone==="muted"})),e,o)};function k6(e,o,t,r,a,n){return jo(Y,a,n,{...Hs,...o,blockSpacing:"gap",padV2:!0,name:e,sectionPaddingTop:t.top,sectionPaddingBottom:t.bottom,sectionPaddingTopPhone:t.topPhone,sectionPaddingBottomPhone:t.bottomPhone,content:r.map(s=>jo("Text",a,n,{text:s.text,...s.muted?{tone:"dim"}:{},_partStyles:{text:s.style}}))})}function T6(e){return $(_g,e)??null}import{isNodeList as cT}from"efficient-easel/data";var TQe=Object.keys(jk),Tme={Logos:D5,DocMasthead:$3,DocTabs:Z3,Timeline:f3,TimelineTrack:p3},Pme={PaymentBadges:M5,PaymentLogosBlock:H5,Integrations:YW};function Og(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]=cT(n)?n.map(s=>Og(s,o,t)):n;return r.id=t(e.type),{type:e.type,props:r}}var P6=e=>({...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{},press:!0});function Of(e,o,t=0,r=()=>({})){return(a,n,s)=>{let{nodes:i}=As({type:e,props:{...a(e),...r(),id:n(e)}},o,P6(s));return Og(i[t],a,n)}}var Eme={Stats:Ome,Cards:_me};function _me(){let e=cn("Cards");if(!e)return null;let o=Of("Cards",e,0,c5);return(t,r,a)=>{let n=o(t,r,a);return{...n,props:{...n.props,name:"Cards section"}}}}function Ome(){let e=cn("StatsParagraph");return e?(o,t,r)=>{let{nodes:a}=As({type:"StatsParagraph",props:{...o("StatsParagraph"),...S5(),id:t("StatsParagraph")}},e,P6(r)),n=a[0],s=cT(n.props.content)?n.props.content.filter(f=>f.props?.cardStyle===void 0):[],i=_6(ak(w5(),"table")),l=s.map(E6),d=Og({...n,props:{...n.props,content:[...l,i]}},o,t);return{...d,props:{...d.props,name:"Stats section"}}}:null}function E6(e){return e.props?.name==="Words"?{...e,props:{...e.props,widthFitPhone:"fill"}}:cT(e.props?.content)?{...e,props:{...e.props,content:e.props.content.map(E6)}}:e}var _6=e=>Nr([e],(o,t)=>`${o}-seed-${t}`)[0];function Ame(e,o){if(!d4(e,o))return null;let t=$(Eme,e);if(t)return t();let r=cn(e);return r?Of(e,r,0,$(Tme,e)??$(g$,e)??$(Pme,e)):null}function Rme(e){return(o,t,r)=>{let a=n=>{if(n.type==="Stats"){let i=Og(_6(ak([],"list")),o,t);return{...i,props:{...i.props,name:"Numbers"}}}let s=xo(n,i=>lo(i,a));return s===n?n:{type:n.type,props:s.props}};return a(e(o,t,r))}}function Kl(e,o=Os){let t=T6(e);return t?Rme(t):Ame(e,o)}import{blockTypesIn as O6}from"efficient-easel/screen/lib/document/block-types-in";var A6=()=>({}),R6=new Map;function Lme(e){let o=R6.get(e);if(o)return o;let t=new Set,r=$(qt,e);if(r)for(let s of r.seeds(A6))for(let i of O6({type:r.childType,props:s}))t.add(i);let a=Kl(e);if(a){let s=0;for(let i of O6(a(A6,l=>`${l}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return R6.set(e,n),n}function dT(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=iT(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=l=>{if(r.has(l))return!1;if(a.has(l))return!0;let d=U0(l);return!d||!o[d]?!1:t?t.has(l):!0},s=new Map,i=l=>{let d=s.get(l);if(d!==void 0)return d;s.set(l,!1);let f=n(l)&&Lme(l).every(i);return s.set(l,f),f};return{sets:o,offers:i}}var Fme="block-offer";function fT(e=L6()){return e.cache(Fme,()=>dT(Mi(e)))}function F6(e,o=L6()){let t=fT(o);return t?t.offers(e):!0}var B6={name:"catalogueLabel",applies:e=>He(En,e),draw(e,o){e.label=$(En,o)}};import{jsx as xT}from"react/jsx-runtime";import{parseBlockWidthFit as Mme,phoneKey as Pr,tabletKey as rr}from"efficient-easel/draw";import{jsx as Bme}from"react/jsx-runtime";var N6={name:"sectionGroupAllow",applies:e=>Cu.includes(e),panel(e,o,t,r){let a=e.fields?.sections;a&&(a.allow=[...r.sectionGroupAllow])}},pT=new Set(Object.keys(dr)),D6={name:"openSlotDisallow",applies:()=>!0,panel(e,o,t,r){let a=r.contentSectionKeys;if(e?.fields)for(let n of Object.values(e.fields)){let s=n;if(s.type!=="slot"||s.allow)continue;let i=o==="Flex"?a.filter(l=>!pT.has(l)):a;s.disallow=Array.from(new Set([...s.disallow??[],...i]))}}};var M6=Array.from(new Set([...G0.map(e=>e.type),...pT]));function uT(e,o){return M6.includes(e)||o?.sitsInBox===!0}var Nme=Array.from(new Set([...M6,...Sp,"GalleryItem"])),Dme={not:{context:"parentOffersPositions",is:!1}},H6={name:"cellWidth",applies:(e,o,t)=>(Nme.includes(e)||uT(e,t))&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.cellWidthFields;e.fields={...e.fields,...r()},e.fields=pt(e.fields??{},Object.keys(r()),Dme)},draw(e){let o=e.render;e.render=t=>{let r=lA(t.gridSpan),a=dA(t.gridRowSpan),n=o(t);if(r==null&&a==null)return n;let s={};return r!=null&&(s[cA]=String(r)),a!=null&&(s[fA]=String(a)),Bme(me,{className:"sf-grid-cell",...s,children:n})}}};function W6(e,o){let t=e.props?.id,r=o.appState?.data?.content;return!Array.isArray(r)||typeof t!="string"?!0:!r.some(a=>a?.props?.id===t)}var Af={not:{context:"heldByANode",is:!0}};function Ag(e,o){return"parent"in o?o.parent!=null:!!Aa(o.appState,e.props?.id)}function Aa(e,o){let t=e?.data?.content;if(!Array.isArray(t)||typeof o!="string")return;let r=(a,n)=>{for(let s of a){if(s?.props?.id===o)return n;for(let i of si(s??{})){let l=r(i,s);if(l!==void 0)return l}}};return r(t,null)}var Hme=new Set(["Text","Heading"]),Wme=new Set(["h1","h2","h3","h4","h5","h6"]);function $6(e,o){return e==="Heading"?!0:e!=="Text"?!1:typeof o.tag=="string"&&Wme.has(o.tag)?!0:ms(o,"text").textStyle?.startsWith("heading-")===!0}var gn={not:{context:"blockOutsideBox",is:!0}},U6={all:[gn,{not:{context:"boxSharesWidth",is:!0}}]},z6={all:[gn,{not:{context:"boxSharesWidthPhone",is:!0}}]},G6={all:[gn,{not:{context:"boxSharesWidthTablet",is:!0}}]};function Y6(e,o,t){return{any:[{field:rr(e),is:o},{all:[{field:rr(e),set:!1},t??{field:e,is:o}]}]}}function q6(e,o,t){return{any:[{field:Pr(e),is:o},{all:[{field:Pr(e),set:!1},t??{field:e,is:o}]}]}}var X6={any:[{field:"textFit",is:"shrink"},{all:[{field:"textFit",set:!1},{not:{context:"textWrapsByDefault",is:!0}}]}]},$me=[[["_gBlockSize","minWidth",rr("minWidth"),Pr("minWidth"),"maxWidth",rr("maxWidth"),Pr("maxWidth")],gn],[["widthFit"],U6],[[rr("widthFit")],G6],[[Pr("widthFit")],z6],[["width"],{all:[U6,{field:"widthFit",is:"fixed"}]}],[[rr("width")],{all:[G6,Y6("widthFit","fixed")]}],[[Pr("width")],{all:[z6,q6("widthFit","fixed")]}]],j6=Y6("textFit","shrink",X6),K6=[[["_gText","textFit",rr("textFit"),Pr("textFit")],gn],[["minFont"],{all:[gn,X6]}],[[rr("minFont")],{all:[gn,j6]}],[[Pr("minFont")],{all:[gn,q6("textFit","shrink",j6)]}]],Rg=(e,o)=>Aa(o.appState,e.props?.id),Lg=e=>!!e&&typeof e.type=="string"&&wp(e.type)!==null,mT=e=>(e.type==="Flex"||e.type==="HeroGroup")&&Kr(e.type,e.props?.direction)==="row",hT=e=>{let o=Mme(e);return o!==void 0&&o!=="fit"},Ume={blockOutsideBox:(e,o)=>!Lg(Rg(e,o)),boxSharesWidth:(e,o)=>{let t=Rg(e,o);return!Lg(t)||!mT(t)?!1:my({...t.props,direction:"row"})!==""?!0:fy(t.props?.share)!==""&&!hT(e.props?.widthFit)},boxSharesWidthTablet:(e,o)=>{let t=Rg(e,o);if(!Lg(t)||!mT(t))return!1;if(ME(t.props?.[rr("columns")])!==""||my({...t.props,direction:"row"})!=="")return!0;let r=LE(t.props?.[rr("share")])??t.props?.share;return fy(r)!==""&&!hT(e.props?.[rr("widthFit")]??e.props?.widthFit)},boxSharesWidthPhone:(e,o)=>{let t=Rg(e,o);if(!Lg(t)||!mT(t))return!1;let r=t.props?.phoneRow;return(Number(r)===2||Number(r)===3)&&!HE(r,t.props?.[Pr("share")])&&!hT(e.props?.[Pr("widthFit")]??e.props?.widthFit)}},zme=e=>/^_[gds][A-Z]/.test(e);function Gme(e,o,t){let r=Object.entries(e),a=r.findIndex(([s])=>s===o);if(a===-1)return null;let n=a+1;for(;n<r.length&&!zme(r[n][0]);)n++;return Object.fromEntries([...r.slice(0,n),...Object.entries(t),...r.slice(n)])}function V6(e,o,t){let r=Object.entries(e);return Object.fromEntries([...r.slice(0,o),...Object.entries(t),...r.slice(o)])}function jme(e,o,t){let r=Object.keys(o);if(r.includes("_dSize")){let{_gBlockSize:a,...n}=t;return V6(o,r.indexOf("_dSize")+1,n)}return Kme.has(e)&&r.includes("_gSpacing")?V6(o,r.indexOf("_gSpacing"),t):{...o,...t}}var Kme=new Set(["Text","Heading"]);function Vme(e,o){let{_gText:t,...r}=o;return Gme(e,"_gText",r)??{...e,...o}}function Yme(e){let o=new WeakMap;return t=>{if(!t||!("textFit"in t))return t;let r=o.get(t);if(!r){r={...t};for(let a of["textFit",rr("textFit"),Pr("textFit")])a in r&&(r[a]=e[a]);o.set(t,r)}return r}}var Z6={name:"blockSize",applies:(e,o,t)=>uT(e,t)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=Hme.has(o),{text:a}=t.blockSizeFields(r?{tablet:!0,textFit:o==="Heading"?"shrink":"wrap"}:{}),{size:n}=t.blockSizeFields({tablet:!0}),s=jme(o,e.fields??{},kt(n,$me));if(r){let i=kt(a,K6);if(s=Vme(s,i),o==="Text"){let l=kt(t.blockSizeFields({tablet:!0,textFit:"shrink"}).text,K6),d=Yme(l),f=e.resolveFields,u=(p,m)=>{let h=f?f(p,m):m.fields,I=w=>$6(o,p?.props??{})?d(w??m.fields):w;return h instanceof Promise?h.then(I):I(h)};e.resolveFields=u}}e.fields=s,Dr(e,{...Ume,textWrapsByDefault:i=>!$6(o,i.props??{})})},draw(e,o){qme(e,o)}};function qme(e,o){let t=e.render;e.render=r=>{let a=Ox(r),n=Dv(a),s=t(r),i=n&&Dv(a,{atSectionLine:!0});return n===null?s:xT(Xme,{size:n,sectionSize:i??n,atEdge:o===Y,canvasAttrs:r.editor?.isEditing?k4(a):J6,inCell:v4(a),fillsPhone:S4(a),widens:T4(a),children:s})}}var J6={};function Xme({size:e,sectionSize:o,atEdge:t,canvasAttrs:r,inCell:a,fillsPhone:n,widens:s,children:i}){let l=iu(),d=$a(t?"edge":"by-box"),f=d?e:o,u=f.className,p=l?.phoneCells===!0,m=n&&l?.phoneRowFits===!0,h=s?xT(y2,{children:i}):i;return xT(Pi,{className:[u,p?a:"",m?b4:""].filter(Boolean).join(" "),...Object.keys(f.style).length?{style:f.style}:{},attrs:d&&r!==J6?{...f.attrs,...r}:f.attrs,children:h})}import{Fragment as lhe,jsx as Dg}from"react/jsx-runtime";import{jsx as tt,Fragment as bT}from"react/jsx-runtime";import{createContext as Vl,useContext as Er}from"react";var Zme=new Set(["Flex","Grid"]);function In(e){return typeof e=="string"&&Zme.has(e)}var Us="contentWidth",gT="full",IT="content";function Lf(e){let o=e?.[Us];return o===gT?!1:o===IT?!0:void 0}function Q6(e,o){return e&&!o}function Fg(e){return e.loop==="scroll"&&e.direction!=="tabs"&&e.direction!=="accordion"&&!NA(e)&&!z5(e.scrollDirection)}function Rf(e,o){return In(e)&&Fg(jc(o,!1))?as({}):as(o)}function Bg(e,o){return typeof e!="string"||!Nm(e)||Yi[e]==="rawMarkup"?Rf(e,o).background??"full":Rf(e,o).background??Dm(o).background}function Ng(e){return e!=="full"}function eU(e,o,t){if(!Array.isArray(e)||typeof o!="string")return;let r=(a,n,s,i,l)=>{for(let d of a){let f=d?.props??{};if(f.id===o)return n;let u=In(d?.type),p=(i?Rf(d?.type,f).content:null)==="content"?!0:s,m=u&&(n.inBox?Lf(f)??p:p),h={insideGutter:n.insideGutter||m||u&&Fg(jc(f,l)),inBox:n.inBox||u};for(let I of Fr({type:d?.type,props:f})){let w=f[I],S=r(w,h,p,!1,l||Fn(d?.type,I));if(S!==void 0)return S}}};return r(e,{insideGutter:!1,inBox:!1},t,!0,!1)}var Jme=" [--sf-edge-t:max(0px,calc(var(--sf-site-width,1600px)_-_100%_-_2_*_var(--sf-edge-g)))] [--sf-edge-al:min(var(--sf-edge-l),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-r))))] [--sf-edge-ar:min(var(--sf-edge-r),max(calc(var(--sf-edge-t)_/_2),calc(var(--sf-edge-t)_-_var(--sf-edge-l))))]",Qme="[--sf-edge-g:0px] [--sf-edge-al:var(--sf-edge-l)] [--sf-edge-ar:var(--sf-edge-r)]",ehe="[--sf-edge-l:var(--sf-edge-ld,0px)] [--sf-edge-r:var(--sf-edge-rd,0px)] max-view-desktop:[--sf-edge-l:var(--sf-edge-lt,var(--sf-edge-ld,0px))] max-view-desktop:[--sf-edge-r:var(--sf-edge-rt,var(--sf-edge-rd,0px))] max-view-wide:[--sf-edge-l:var(--sf-edge-lp,var(--sf-edge-lt,var(--sf-edge-ld,0px)))] max-view-wide:[--sf-edge-r:var(--sf-edge-rp,var(--sf-edge-rt,var(--sf-edge-rd,0px)))]",oU="max-w-[100vw]",ohe=`ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar))] ${oU}`;function tU(e){let o={},t=e.pad??{},r=od({left:t.left,right:t.right},{left:t.leftPhone,right:t.rightPhone},{left:t.leftTablet,right:t.rightTablet},{left:t.left,right:t.right},{desktop:t.unit,tablet:t.unitTablet,phone:t.unitPhone},0,e.site?"site":"box"),a=r.style;for(let[i,l]of[["l","paddingLeft"],["r","paddingRight"]]){let d=a[l];d!==void 0&&(o[`--sf-edge-${i}d`]=typeof d=="number"?`${d}px`:String(d));let f=a[`--sf-pad-${i}-tablet`],u=a[`--sf-pad-${i}-phone`];f!==void 0&&(o[`--sf-edge-${i}t`]=String(f)),u!==void 0&&(o[`--sf-edge-${i}p`]=String(u))}let n=Xa(e.site?"site":"box"),s=r.classes.includes(n.className.split(" ")[0]);return{className:`${e.gutter?`${n.className} ${n.edge}${Jme}`:`${Qme}${s?` ${n.className}`:""}`} ${ehe}`,style:o}}function Seo(e){let{className:o,style:t}=tU(e);return{className:`${o} ${ohe}`,...Object.keys(t).length?{style:t}:{}}}var the="[--sf-edge-bl:max(0px,min(calc(var(--sf-edge-beyond)_+_(var(--sf-edge-l)_-_var(--sf-edge-r))_/_2),calc(2_*_var(--sf-edge-beyond))))] [--sf-edge-br:max(0px,min(calc(var(--sf-edge-beyond)_+_(var(--sf-edge-r)_-_var(--sf-edge-l))_/_2),calc(2_*_var(--sf-edge-beyond))))]";var rhe="--sf-edge-beyond";function rU(e){return`max(0px,calc((${e===null?Qc:`min(${Qc},${e})`} - ${Wo}) / 2))`}var ahe=`${the} ml-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl)))] mr-[calc(-1_*_(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br)))] w-[calc(100%_+_2_*_var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-ar)_+_var(--sf-edge-bl)_+_var(--sf-edge-br))] pl-[calc(var(--sf-edge-g)_+_var(--sf-edge-al)_+_var(--sf-edge-bl))] pr-[calc(var(--sf-edge-g)_+_var(--sf-edge-ar)_+_var(--sf-edge-br))] ${oU}`;function weo(e){let{className:o,style:t}=tU(e);return{className:`${o} ${ahe}`,style:{...t,[rhe]:e.beyond??"0px"}}}var Ff=Vl(!1);function Reo(){return Er(Ff)}function Leo({children:e}){return tt(Ff.Provider,{value:!0,children:e})}var yT=Vl(!1);function ST({children:e}){return tt(yT.Provider,{value:!0,children:e})}var aU=Vl(null);function wT({ground:e,children:o}){return tt(aU.Provider,{value:e,children:o})}var CT=Vl(!1);function nhe(){return Er(CT)}function nU({atTop:e,nested:o}){return tt(bT,{children:nhe()?o:e})}var Bf=Vl(void 0);function sU({children:e}){return tt(Bf.Provider,{value:null,children:e})}function vT(){return Er(Bf)===void 0&&!Er(CT)&&!Er(Ff)}function Yl({own:e,followed:o}){return tt(bT,{children:vT()?e():o()})}var iU=Vl(null);function lU({value:e,children:o}){return tt(iU.Provider,{value:e,children:o})}function cU({draw:e}){return tt(bT,{children:e(Er(iU))})}function Feo(){return Er(Bf)??null}function dU({contained:e,framedClass:o,fillClass:t,columnClass:r,style:a,tabLabel:n,pad:s,border:i,outerAttrs:l,box:d=!1,edge:f=!1,outerStyle:u,outerClass:p,bleed:m=!1,siteSide:h=!1,children:I}){let w=Er(Ff),S=Er(yT),v=Q6(e,w),b=v&&!S,y=Ht(),k=!!(i&&b),F=k?p:Jo(p??"",y.className)||void 0,T=k||!y.className?l:{...l,...y.attrs},D=s&&!b?PL(s.values,s.frame):null,P=i&&!b?i:null,L=d&&!m?dL:null,C=[b?o:t,b?L:null,D?.className,P?KL:null].filter(Boolean).join(" "),A=she(m&&b,D||P?{...a,...D?.style,...P}:a),E=Er(Bf),R=Er(aU),W=d&&f&&E===void 0?{gutter:v,...s?{pad:s.values}:{},beyond:v&&S?rU(R):"0px",...h&&v?{site:!0}:{}}:null,U=d?tt(CT.Provider,{value:!0,children:tt(Bf.Provider,{value:W,children:I})}):I,Z=v?tt(Ff.Provider,{value:!0,children:U}):U,V=s&&b?TL(s.values):null,de=T&&Object.keys(T).length>0?T:null,Ce=tt("div",{...V?null:de,className:!V&&F?C?`${C} ${F}`:F:C,style:V||!u?A:{...A,...u},"data-tab-label":n,children:S?tt(yT.Provider,{value:!1,children:v&&!m?tt("div",{className:L?`${r} ${L}`:r,children:Z}):Z}):Z}),ee=V?tt("div",{...de,className:F?`${V.className} ${F}`:V.className,style:u?{...V.style,...u}:V.style,children:Ce}):Ce;return y.scope(i&&b?tt("div",{className:Jo(_m,y.className),style:{display:"contents",...i},...y.attrs,children:ee}):ee)}function she(e,o){return e?{...o,paddingLeft:0,paddingRight:0}:o}import{jsx as ihe}from"react/jsx-runtime";function fU({children:e}){return ihe(me,{className:j5,children:e})}function che({side:e,children:o}){return vT()?Dg(fU,{children:Dg(me,{className:K5(e),children:o})}):Dg(lhe,{children:o})}var pU={name:"boxJoin",applies:(e,o,t)=>e===Y&&!!t&&typeof t.render=="function",draw(e){let o=e.render;e.render=t=>{let r=og(t.join);return r?Dg(che,{side:r,children:o(t)}):o(t)}}};var uU=(e,o)=>e.fields?.[o]?.type==="slot",dhe=(e,o)=>uU(o,Ue)||Up(e).some(t=>uU(o,t)),mU={name:"cardTemplateOnInsert",applies:(e,o,t)=>dhe(e,t),panel(e,o){let t=e.resolveData;e.resolveData=(r,a)=>{let n=r.props??{},s=a?.trigger,i=s==="insert"?Mp(o,n):s==="copy"?Dp(o,n):n,l=i===n?r:{...r,props:i};return t?t(l,a):l}}};import{jsx as Wg}from"react/jsx-runtime";import{Fragment as zs,jsx as so,jsxs as kT}from"react/jsx-runtime";import{createContext as TT,useContext as yn,useId as xhe}from"react";import{REPEAT_ATTRIBUTE as ghe,REPEAT_INDEX_ATTRIBUTE as Ihe}from"efficient-easel/draw";import{jsx as Qeo}from"react/jsx-runtime";import{createContext as uhe,useContext as IU,useMemo as mhe}from"react";var hU="title";function xU(e){return`${e}Alt`}function fhe(e){let o=e.find(t=>typeof t?.url=="string");return{url:o?.url??"",alt:typeof o?.alt=="string"?o.alt:""}}function gU(e,o){let t={[hU]:typeof e.title=="string"?e.title:""};for(let{key:r,kind:a}of e.schema??[]){let n=e.fields?.[r];if(a==="text"&&typeof n=="string")t[r]=n;else if(a==="date"&&typeof n=="string")t[r]=n&&o?o(n):n;else if(a==="images"&&Array.isArray(n)){let{url:s,alt:i}=fhe(n);t[r]=s,t[xU(r)]=i}}return t}function phe(e,o){return typeof o!="string"?o.flatMap(t=>phe(e,t)):e===$t||!db(e)?[]:o==="image"?ub(e,["images"]).map(t=>({key:t.key,label:t.label,kind:"image",alt:xU(t.key)})):o!=="text"?[]:[{key:hU,label:c("Title")},...ub(e,["text","date"]).map(t=>({key:t.key,label:t.label}))]}var yU=uhe(null);function hhe(){return IU(yU)?.record??null}function roo(e){let o=hhe();return o!==null&&o.type===e?o:null}function bU(){let e=IU(yU);return mhe(()=>e&&e.record.type!==$t?gU(e.record,e.dateWords):null,[e])}function xoo({props:e,editing:o,children:t}){let r=yn(Nf);return!o&&ky(e,r?.row)?null:so(zs,{children:t})}var Hg=TT(null);function goo({field:e,children:o}){let t=yn(Hg);return so(zs,{children:o(t&&t.field===e?t.id:void 0)})}function yhe(e,o){return e?.find(t=>!!o[t.field]?.trim()&&!t.gates.some(r=>ky({[ni]:r},o)))?.field??""}var Nf=TT(null),Mg=TT(null),bhe={label:"text-[length:var(--size-label,12px)]"},She=`flex min-h-6 items-center border border-dashed border-line px-2 py-1 ${bhe.label} text-fg-dim`;function Ioo({name:e,label:o,editing:t}){let r=yn(Mg)?.(e),a=du()!=="";return r!=null&&r!==!1?a?so(me,{className:"contents",children:r}):so(zs,{children:r}):t?so(me,{className:She,children:c("Shown by the section: {name}",{name:o?.trim()||e})}):null}function yoo(){return yn(Nf)}function PT({type:e,props:o,children:t}){let r=yn(Nf),a=bU(),n=r?.row??a;return so(zs,{children:t(l_(e,o,n,r?.ownerType,r?.fields,r?.slot),r,n)})}function whe({attrs:e,selected:o,hover:t,action:r,titleField:a,children:n}){let s=xhe(),{press:i,disabled:l}=r,d=r.label?.trim(),f=!d&&a?{id:`${s}-title`,field:a}:null;return kT("div",{...e,id:s,className:t&&!l?`${YC} ${O2}`:YC,children:[so("button",{type:"button",[L2]:"",className:l?N2:B2,"aria-pressed":o,...d?{"aria-label":d}:{"aria-labelledby":f?.id??s},...l?{"aria-disabled":!0,tabIndex:-1}:null,onClick:l?void 0:i}),so(Hg.Provider,{value:f,children:n})]})}function boo({ownerId:e,ownerType:o,slot:t=Ue,Template:r,rows:a,items:n,fields:s,states:i,stateLine:l,actions:d,pressTitles:f,previewHover:u,fallback:p,copyAttrs:m,wrapCopy:h,rowKey:I,hostParts:w,children:S}){let v=yn(Nf),b=yn(Hg),y=yn(Mg);if(!r||(r.blockCount??0)<=0)return so(zs,{children:p});let k=v!==null,F=t_(o),T=u??v?.previewHover,D=r.blockCount===1?so(wO,{children:so(r,{className:gO})}):so(r,{}),P=new Set,L=(A,E)=>{if(!I)return E;let R=I(A,E);for(;P.has(R);)R=`${R}#${E}`;return P.add(R),R},C=a.map((A,E)=>{let R=i?.[E],W={row:A,index:E,ownerType:o,slot:t,item:n?.[E],nested:k,...s?{fields:s}:null,...R?{state:R}:null,...F?{linesBetween:F}:null,...T?{previewHover:T}:null},U=yv(R)?kT(zs,{children:[D,l==="under"?so("span",{"aria-hidden":"true",className:T2}):Iv(R)?kT("span",{"aria-hidden":"true",className:P2,children:[so("span",{className:E2}),so("span",{className:_2})]}):so("span",{"aria-hidden":"true",className:k2})]}):D,Z={[ghe]:`${e}:${t}`,[Ihe]:E,...typeof m=="function"?m(W):m},V=d?.[E],de=A2(R,l),Ce=V?so(whe,{attrs:{...Z,...de},selected:R?.selected===!0,hover:l!=="under",action:V,titleField:yhe(f,A),children:U}):b?so("div",{...Z,...de,children:so(Hg.Provider,{value:null,children:U})}):so("div",{...Z,...de,children:U}),ee=h?h(Ce,W):Ce;return so(Nf.Provider,{value:W,children:w?so(Mg.Provider,{value:_e=>w(W,_e),children:ee}):y?so(Mg.Provider,{value:null,children:ee}):ee},L(W,E))});return so(zs,{children:S(C)})}var SU={name:"clickableParts",applies:(e,o,t)=>typeof t?.render=="function"&&e!==Oo&&e!==gi,draw(e,o,t){let r=e,a=()=>r.textParts??r.fields,n=r.render,s=t.inspector?.PartAnchors,i=(l,d)=>DB(a(),d,f=>s_(o,l,f));r.render=l=>{let d=NN(l),f=zM(l);return l.editor?.isEditing&&s?Wg(PT,{type:o,props:l,children:u=>Wg(s,{needles:i(l,u),styles:d,motions:f,type:o,children:n(l)})}):!Object.keys(d).length&&!Object.keys(f).length?n(l):Wg(PT,{type:o,props:l,children:u=>Wg(XM,{needles:i(l,u),styles:d,motions:f,type:o,atEdge:o===Y,children:n(l)})})}}};import{jsx as wU}from"react/jsx-runtime";var CU={name:"sectionCorners",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.sectionShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=P1(t.sectionCorners,t.sectionCornerSides,t.sectionCornersUnit),a=o(t);return r?wU(me,{className:"sf-section-corners",style:{display:"contents",...r},children:a}):a}}},ET=["CollectionCard"],vU={name:"cardCorners",applies:(e,o,t)=>ET.includes(e)&&!!t&&typeof t.render=="function",panel(e,o,t){e.fields={...e.fields,...t.cardShapeFields()}},draw(e){let o=e.render;e.render=t=>{let r=_1(t.cardCorners,t.cardCornerSides,t.cardCornersUnit),a=o(t);return r?wU(me,{className:"sf-card-corners",style:{display:"contents",...r},children:a}):a}}};var kU={name:"emptyHeadings",applies:()=>!0,panel(e,o,t){let r=t.dropEmptyHeadings,a=e.resolveFields;e.resolveFields=a?(n,s)=>{let i=a(n,s);return i instanceof Promise?i.then(l=>r(l??s.fields)):r(i??s.fields)}:(n,s)=>r(s.fields)}};var TU={name:"showWhenRows",applies:()=>!0,panel(e,o,t){let r=t.rowsShownForNode,a=e.showWhenFacts??{},n=e.resolveFields;e.resolveFields=n?(s,i)=>{let l=n(s,i);return l instanceof Promise?l.then(d=>r(d??i.fields,s,i,a)):r(l??i.fields,s,i,a)}:(s,i)=>r(i.fields,s,i,a)}};import{jsx as PU,jsxs as Che}from"react/jsx-runtime";var vhe="Flex",EU=(e,o)=>e[o]!==void 0&&e[o]!==!1&&!e.editor?.isEditing,_U={name:"headCore",applies:(e,o,t)=>typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>EU(t,Xd)?PU(me,{className:sx,children:t[Xd]==="empty"?null:o(t)}):o(t)}},OU={name:"headBox",applies:(e,o,t)=>e===vhe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>EU(t,qd)?Che(me,{className:ix,children:[PU(lx,{}),o(t)]}):o(t)}};import{createElement as khe}from"react";var AU={name:"hiddenNodes",applies:(e,o,t)=>typeof t?.render=="function",draw(e,o,t){let r=o===Y?"edge":t.isSection(o)?"section":"by-box",a=e.render;e.render=n=>{if(pa(n))return null;let s=Kc(n),i=TO(s,zA(n),{sectionClassName:Kc(n,{atSectionLine:!0}),line:r});return khe(CO.Provider,{value:i},a(n))}}};import{jsx as _he}from"react/jsx-runtime";import{createContext as LU,createElement as RU,useContext as The}from"react";var FU=LU(null),Phe=LU(!1),Yoo=FU.Provider;function Ehe(e,o,t){return e===void 0||e===""||o===null||o.length===0||!t.includes(e)?!0:o.includes(e)}function BU({name:e,editing:o,children:t}){let r=The(FU);return o||Ehe(e,r?.selected??null,r?.known??[])?t:RU("div",{hidden:!0,style:{display:"none"}},RU(Phe.Provider,{value:!0},t))}var Ohe="Flex",NU={name:"showFor",applies:(e,o,t)=>e===Ohe&&typeof t?.render=="function",draw(e){let o=e.render;e.render=t=>{let r=eH(t[kl])?.name;if(r===void 0)return o(t);let a=!!t.editor?.isEditing;return _he(BU,{name:r,editing:a,children:o(t)})}}};var DU=xu.mediaFields,Ahe=e=>Vy(e)?e.src:e;function Rhe(e,o){let t=o;for(let r of $(DU,e)??[])t=JO(t,r,Ahe);return t}var MU={name:"mediaValues",applies:(e,o,t)=>typeof t?.render=="function"&&($(DU,e)?.length??0)>0,draw(e,o){let t=e.render;e.render=r=>t(Rhe(o,r))}};import{jsx as Df,Fragment as HU,jsxs as WU}from"react/jsx-runtime";var Lhe="!grow-0 !shrink-0 !basis-0",Fhe=["[.sf-gap-zone>&]:w-0","[.sf-gap-zone>&]:h-0","[.sf-gap-zone>&]:-mb-[var(--sf-gap-len)]","[.sf-gap-zone>&]:-mr-[var(--sf-gap-len)]","[@media(min-width:800px)_and_(max-width:1099.98px)]:[.sf-gap-zone>&]:-mb-[var(--sf-gap-len-tablet,var(--sf-gap-len))]","[@media(min-width:800px)_and_(max-width:1099.98px)]:[.sf-gap-zone>&]:-mr-[var(--sf-gap-len-tablet,var(--sf-gap-len))]","[@media(max-width:799.98px)]:[.sf-gap-zone>&]:-mb-[var(--sf-gap-len-phone,calc(var(--sf-gap-len)/2))]","[@media(max-width:799.98px)]:[.sf-gap-zone>&]:-mr-[var(--sf-gap-len-phone,calc(var(--sf-gap-len)/2))]"].join(" "),Bhe="flex flex-col w-full min-w-0 [&>*]:grow";function $U({anchor:e}){let o=zn(e),t=$a(),r=du();return o?Df("span",{id:o,className:Jo(t?`sf-section-anchor ${Lhe} ${Fhe}`:"sf-section-anchor",r),"aria-hidden":"true"}):null}function Nhe({anchor:e,copiesInBox:o,children:t}){let r=iu()?.columnsRow===!0,a=SO(),n=zn(e)!=="";return o?Df(HU,{children:t}):r&&!a&&n?WU(me,{className:Bhe,children:[Df($U,{anchor:e}),t]}):WU(HU,{children:[Df($U,{anchor:e}),t]})}var UU={name:"sectionAnchor",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.anchorFields;e.fields={...e.fields,...r()}},draw(e,o){e.defaultProps={...e.defaultProps,anchor:""};let t=e.render;e.render=r=>Df(Nhe,{anchor:r.anchor,copiesInBox:Ft(o,r),children:t(r)})}};import{jsx as Dhe}from"react/jsx-runtime";var zU=Object.fromEntries(bE.map(e=>[e,"picture"])),Mhe={[Y]:"box",Ticker:"marquee",...Object.fromEntries(Tp.map(e=>[e,"cards"])),...zU},GU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function jU(e,o,t,r){e.fields={...e.fields,...t.animationTabFields(o,r)}}function KU(e,o){let t=e,r=t.render;t.render=a=>{let n=ki(a);return!n||Ft(o,a)?r(a):Dhe(Vh,{views:n,editing:!!a.editor?.isEditing,takesViewHide:!0,atEdge:o===Y,children:r(a)})}}var VU={name:"sectionAnimation",applies:(e,o,t)=>o.isSection(e)&&GU(e,t),panel:(e,o,t)=>jU(e,$(Mhe,o)??"section",t,o),draw:(e,o)=>KU(e,o)},YU={name:"blockEntrance",applies:(e,o,t)=>!o.isSection(e)&&GU(e,t),panel:(e,o,t)=>jU(e,$(zU,o)??"block",t,o),draw:(e,o)=>KU(e,o)};import{jsx as Hhe}from"react/jsx-runtime";var qU=(e,o)=>!ru.has(e)&&!!o&&typeof o.render=="function";function Whe(e){let o=ev.filter(t=>t.block===e);return o.length===1?o[0].focus:void 0}function XU(e,o){let t=e,r=t.render,a=Whe(o),n=e.drawsPictures===!0;t.render=s=>{let i=Sl(s);return!i||Ft(o,s)?r(s):Hhe(mx,{views:i,...a?{origins:$M(s,a)}:{},takesViewHide:!0,atEdge:o===Y,zoomInside:n?"picture":"layer",children:r(s)})}}var ZU={name:"sectionScroll",applies:(e,o,t)=>o.isSection(e)&&qU(e,t),draw:(e,o)=>XU(e,o)},JU={name:"blockScroll",applies:(e,o,t)=>!o.isSection(e)&&qU(e,t),draw:(e,o)=>XU(e,o)};import{jsx as $he}from"react/jsx-runtime";import{createElement as Uhe}from"react";var _T=["sectionHeightMode","sectionHeightModeTablet","sectionHeightModePhone"];function zhe(e,o){let t=e.props??{};return _T.some(r=>t[r]==="fill")?!0:("parent"in o?o.parent:Aa(o.appState,t.id))?.type===Y}var OT={name:"sectionHeight",applies:(e,o,t)=>o.isSection(e)&&!mO.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.heightFields;e.fields={...e.fields,...r()};let a=r({fill:!0}),n=new WeakMap,s=l=>{if(!l||!_T.some(f=>f in l))return l;let d=n.get(l);if(!d){d={...l};for(let f of _T)f in d&&(d[f]=a[f]);n.set(l,d)}return d},i=e.resolveFields;e.resolveFields=(l,d)=>{let f=i?i(l,d):d.fields,u=p=>zhe(l??{},d)?s(p??d.fields):p;return f instanceof Promise?f.then(u):u(f)}},draw(e,o){let t=e.render;e.render=r=>{if(Ft(o,r))return t(r);let a=bO(r);return a?$he(Pi,{className:a.className,style:a.style,...o===Y?{attrs:PE}:null,children:t(r)}):t(r)}}},QU={name:"sectionHeightFillRoot",applies:OT.applies,draw(e,o){let t=e.render;e.render=r=>{let a=Ft(o,r)?null:kO(yO(r),IO(r).join(" "));return Uhe(vO.Provider,{value:a},t(r))}}};import{jsx as $g}from"react/jsx-runtime";import{PIN_ATTR as ez,PIN_FRAME_ATTR as Ghe}from"efficient-shell/format";var tz=az("sectionSticky",(e,o,t)=>o.isSection(e)&&!UL.has(e)&&!!t&&typeof t.render=="function",!0),rz=az("cardSticky",(e,o,t)=>ET.includes(e)&&!!t&&typeof t.render=="function",!1);function az(e,o,t){return{name:e,applies:o,panel(r,a,n){let s=_S.has(a);r.fields=Khe(r.fields??{},kt(n.stickFields({intro:s,screens:t,above:t}),Vhe(s))),t&&Dr(r,{heldByANode:Ag})},draw(r,a){let n=r.render,s=_S.has(a);r.render=i=>{let l=RS(i,{atScreenTop:s,above:t});if(!l)return n(i);let d=u=>{let p=$g(cu,{children:n(i)});return $g(me,{...u.attrs,style:u.style,children:u.attrs[ez]===""?$g("div",{[Ghe]:"",children:p}):p})},f=t?RS(i,{atScreenTop:s,track:t,above:!0}):l;return!f||f.attrs[ez]!==""?d(l):$g(Yl,{own:()=>d(f),followed:()=>d(l)})}}}}var oz=[lr,Wl],jhe="_gStick";function Khe(e,o){let t=Object.keys(e),r=e[bl];if(!r){let S=t.findIndex(v=>oz.includes(v));return S<0?{...e,...o}:Object.fromEntries([...t.slice(0,S).map(v=>[v,e[v]]),...Object.entries(o),...t.slice(S).map(v=>[v,e[v]])])}let{[jhe]:a,...n}=o,s=S=>S.startsWith(Ir),i=Object.entries(n).filter(([S])=>!s(S)),l=Object.entries(n).filter(([S])=>s(S)),d=[r.dot,a?.dot].filter(S=>!!S),f=t.indexOf(bl),u=t.findIndex((S,v)=>v>f&&oz.includes(S)),p=u<0?t.length:u,m=t.indexOf(Yh),h=m>f&&m<p?m:p,I=S=>[S,S===bl?{...r,dot:{any:d}}:e[S]],w=[...t.slice(0,h).map(I),...i,...t.slice(h,p).map(I),...l,...t.slice(p).map(I)];return Object.fromEntries(w)}function Vhe(e){let o=l=>({field:l,in:[!0,!1]}),t=l=>e&&l==="stickTop"?{any:[{field:l,is:!0},km]}:{field:l,is:!0},r=l=>({field:l,is:!0}),a=l=>({all:[l,Af,{not:{field:Ja,is:!0}}]}),[n,s,i]=TS;return[[["stickTopDistance"],t("stickTop")],[["stickTopDistanceTablet"],Mr(["stickTopTablet","stickTop"],o,t)],[["stickTopDistancePhone"],Mr(["stickTopPhone","stickTopTablet","stickTop"],o,t)],[[n],a(r("stickTop"))],[[s],a(Mr(["stickTopTablet","stickTop"],o,r))],[[i],a(Mr(["stickTopPhone","stickTopTablet","stickTop"],o,r))],[[es],zi],[[Ja],zi]]}import{jsx as Yhe}from"react/jsx-runtime";var nz={name:"sectionBorder",applies:(e,o,t)=>o.isSection(e)&&!!t&&typeof t.render=="function",draw(e,o){if(Uh.has(o))return;let t=e.render;e.render=r=>{let a=qL(r.sectionBorder,r.sectionBorderPhone,r.sectionBorderTablet,YL(r)),n=t(r);return a?Yhe(me,{className:_m,style:{display:"contents",...a},children:n}):n}}};import{jsx as AT}from"react/jsx-runtime";var sz={name:"sectionTheme",applies:(e,o,t)=>o.isSection(e)&&!q_.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let{sectionThemeFields:r,SECTION_THEME_FOLLOW_LABEL:a}=t,n=By.has(o);e.fields={...e.fields,...n?r(Dn,a):r()}},draw(e,o){let t=By.has(o),r=e.render;e.render=a=>{let n=Z_(t?{...a,sectionAccent:Dn(a.sectionAccent)}:a),s=r(a);if(!n)return s;let i=d=>AT(Pi,{className:n.className,style:d,children:s}),l=n.style;return Ft(o,a)?AT("div",{className:n.className,style:{...l,display:"contents"},children:s}):Bg(o,a)!=="content"?i(l):AT(Yl,{own:()=>i({...l,...Ui(Wo)}),followed:()=>i(l)})}}},iz={name:"slideTheme",applies:e=>e==="HeroSlide",panel(e,o,t){let{sectionThemeFields:r,BLOCK_THEME_FOLLOW_LABEL:a}=t;e?.fields&&(e.fields={...e.fields,...r(Dn,a)})}};import{jsx as yo}from"react/jsx-runtime";var lz=null;function RT(e){lz=e}function cz(){return lz}import{jsx as qhe}from"react/jsx-runtime";var Xhe="mx-auto w-full max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)]",dz=Xa("box").frame,Mf=`${Xhe} ${dz}`,Zhe=Xa("site").frame;function pro(e){return e?Zhe:dz}var Jhe="mx-auto w-full max-w-[1280px] px-[60px]",Qhe="max-[960px]:px-6",uro=`${Jhe} ${Qhe}`;function mro({contained:e,className:o="",style:t,pad:r,fillWidth:a="w-full",children:n}){return qhe(dU,{contained:e,framedClass:`${Mf} ${o}`,fillClass:`${a} ${o}`,columnClass:Mf,style:t,pad:r,children:n})}var ql="--sf-sw-site",exe="--sf-sw-content",oxe="--sf-bg-cap",txe="contents [--sf-site-width:var(--sf-sw-content)] max-view-wide:[--sf-site-width:var(--sf-sw-site)]",LT=({own:e,content:o,siteContent:t})=>e===!0&&o==="full"&&t!=="full",pz="contents view-wide:[--sf-site-width:100vw]",FT=({held:e},o,t)=>e?t:yo(me,{className:o,children:t}),rxe=`contents view-wide:[--sf-site-width:100vw] ${uW} view-wide:[--sf-site-gutter:var(--intro-edge)]`,BT=(e,o,t)=>o==="content"?`min(${Me(e,t)},var(${ql}))`:Me(e,t);function Hf({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?r!=="content"?Qc:null:o===null?null:BT(o,r,t)}function Wf(e,o){return o===null?e:yo(me,{className:"contents",style:{[ql]:Wo},children:yo(me,{className:txe,style:{[exe]:o},children:e})})}var axe="--sf-content-cap",nxe="contents max-view-wide:[--sf-content-cap:none]";function sxe({content:e,contentMax:o,contentMaxUnit:t},r){return e==="full"?null:o!==null?BT(o,r,t):r==="content"?null:`var(${ql})`}function ixe(e,o){return o===null?e:yo(me,{className:"contents",style:{[ql]:Wo},children:yo(me,{className:nxe,style:{[axe]:o},children:e})})}var uz=`var(${ql},${Wo})`,bn=(e,o,t="")=>e==="content"?yo(me,{className:t||void 0,style:Ui(Wo),children:yo(wT,{ground:uz,children:o})}):o;function mz(e,o,t,r,a){if(LT(t))return bn(r,FT(t,pz,yo(ST,{children:e({...o,contained:!0})})),a);if(t.content==="full")return bn(r,e({...o,contained:!1}),a);let n=Hf(t,r);return r==="content"&&n===null&&!t.own?e({...o,contained:!0}):bn(r,Wf(yo(ST,{children:e({...o,contained:!0})}),n),a)}function lxe(e,o,t,r,a){if(t==="hero"){let i=Wf(e(o),Hf(r,r.band));return r.band==="full"?yo(me,{style:{[bm]:"none",[hS]:"initial",[xS]:"initial"},children:i}):r.band==="content"?yo(me,{style:Sm(!0),children:i}):i}let n=r.band??"full",s=Wa(o,{atSectionLine:!a});if(t==="rawMarkup"){if(r.content==="full")return bn(n,e(o),s);let i=r.contentMax===null?Wo:BT(r.contentMax,n,r.contentMaxUnit);return yo(me,{className:"contents",style:{[ql]:Wo},children:bn(n,yo(me,{className:s||void 0,style:Ui(i),children:e(o)}),s)})}if(t==="scrollOver"){let i=r.content==="full",l=LT(r)?FT(r,rxe,e({...o,fullWidth:!1})):Wf(e({...o,fullWidth:i}),i?null:Hf(r,n));return n==="content"?yo(me,{className:"contents",style:{[oxe]:Wo},children:l}):l}switch(t){case"both":return bn(n,ixe(e(o),sxe(r,n)),s);case"contained":return mz(e,o,r,n,s);case"contentColumn":case"contentFull":case"productGrid":{let i=LT(r),l=r.content==="full"&&!i?"full":"page",d=i?FT(r,pz,e({...o,widthMode:l})):Wf(e({...o,widthMode:l}),r.content==="full"?null:Hf(r,n));return t==="productGrid"&&!r.own?n==="content"?yo(me,{className:s?`${Mf} ${s}`:Mf,children:d}):d:bn(n,d,s)}default:return bn(n,Wf(e(o),Hf(r,n)),s)}}function fz(e,o,t,r,a){let n=a===Y?"edge":"by-box",s=i=>lxe(e,o,t,r,i);return n==="edge"?s(!0):Wa(o)===Wa(o,{atSectionLine:!0})?s(!1):yo(su,{line:n,draw:s})}function cxe(e,o){let t=$(Yi,o);if(!t)return;let r=e.render;e.render=a=>{let n=Dm(a),s={band:n.background,content:n.content??"content",contentMax:null},i=()=>t==="rawMarkup"?r(a):yo(cU,{draw:h=>h?.background==="content"?yo(wT,{ground:uz,children:l(h)}):l(h)}),l=h=>{let I=h?{...s,band:h.background==="content"?s.band:h.background??s.band,content:h.content??s.content,own:h.background==="full"||h.content!==null,held:!0,siteContent:s.content}:s,w=fz(r,a,t,I,o);if(!In(o))return w;let S=Lf(a),v=S===void 0?I.content:S?"content":"full";return v===I.content?w:yo(nU,{atTop:w,nested:mz(r,a,{...I,content:v,own:!1},I.band??"full",Wa(a))})},d=Rf(o,a);if(!hF(d))return i();let f=t==="rawMarkup",u=Bg(o,a),p=d.content??(f?"full":s.content),m={band:u,content:u==="content"?"content":p,contentMax:d.contentMax,contentMaxUnit:d.contentMaxUnit,own:!f,siteContent:s.content};return yo(Yl,{own:()=>yo(lU,{value:{background:m.band,content:m.content},children:fz(r,a,t,m,o)}),followed:i})}}var dxe={all:[Af,{not:{context:"runsEdgeToEdge",is:!0}}]},hz={name:"sectionWidth",applies:(e,o,t)=>Nm(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.sectionOwnWidthFields({drawsFullOnItsOwn:$(Yi,o)==="rawMarkup"}),a=In(o)?t.boxGutterFields():{},n={...e.fields,...a,...r},s=In(o)?Iz(o,e,n,[Us]):n;Dr(e,{heldByANode:Ag}),In(o)&&Dr(e,{runsEdgeToEdge:(i,l)=>Fg(jc(i.props??{},d_(l.appState,i.props?.id)?.inCopy!==!1))}),e.fields=pt(s,[Be.background,Be.content],In(o)?dxe:Af)},draw(e,o){cxe(e,o)}};function fxe(e,o){if(!e||!("widthMode"in e))return e;let t={...e},r=t.widthMode;return r&&(t.widthMode={...r,currentValue:o.mode,inherited:o.inherited}),t}var pxe=new Set(["Heading","Text","ImageBlock","ButtonBlock"]),xz={name:"containedWidth",applies:(e,o,t)=>pxe.has(e)&&!!t&&typeof t.render=="function",panel(e,o,t){let r=t.widthField;e.fields=Iz(o,e,{...e.fields,...r("page")});let a=e.resolveFields;e.resolveFields=(n,s)=>{let i=a?a(n,s):s.fields,l=Bm(n?.props??{},"page"),d=f=>fxe(f,l);return i&&typeof i.then=="function"?i.then(d):d(i)}},draw(e){let o=e.render;e.render=t=>{let{mode:r}=Bm(t,"page");return o({...t,contained:r!=="full"})}}},uxe={not:{context:"inHeroGroupRow",is:!0}},gz={name:"buttonAlignInRow",applies:e=>e==="ButtonBlock",panel(e){let o=e;o.fields=pt(o.fields??{},["align"],uxe),Dr(o,{inHeroGroupRow:(t,r)=>{let a=Aa(r.appState,t.props?.id);return!!a&&a.type==="HeroGroup"&&Kr("HeroGroup",a.props?.direction)==="row"}})}};function mxe(e){return Object.values(e).some(o=>!!o&&typeof o=="object"&&o.type==="slot")}var hxe={any:[]},xxe={all:[{not:{context:"outsideBox",is:!0}},{not:{context:"insideSiteGutter",is:!0}}]},gxe={not:{context:"widthCappedByParent",is:!0}};function Iz(e,o,t,r=["widthMode"]){if(e==="ButtonBlock")return pt(t,["_gWidth",...r],hxe);if(mxe(t)){let a=(n,s)=>eU(s.appState?.data?.content,n.props?.id,Ng(cz()));return Dr(o,{outsideBox:(n,s)=>a(n,s)?.inBox!==!0,insideSiteGutter:(n,s)=>a(n,s)?.insideGutter}),pt(t,r,xxe)}return Dr(o,{widthCappedByParent:(a,n)=>"parent"in n?YE(n.parent):W6({props:a.props??{}},n)}),pt(t,r,gxe)}var Ixe=new Set(["Reviews","Cards","FAQ","Prose","ProductHero","SpecTable","ProductGrid","ParagraphsA","KeyFeatures","Integrations","Stats","StatsParagraph","Chart","Mockup","Testimonials","Logos","ContactRouting","ContactLocations","SubmitBuild","ReviewForm","Form","AppointmentBooking","OrderSummary","DeliveryOptions","PaymentBadges","CheckoutCTA","Collections","AlloyWheelsListing","CatalogFilterBar","FitmentFinder","GalleryB","DocMasthead","DocBody","DocMetaCards","Masthead","FeaturedCover","LongRead","Series","Events","ArticleBody","SectionHeader","Grid","Flex","Spacer","Divider","CustomHTML","Breadcrumb","CategoryBar","DocTabs","Hero","HeroSingle","IntroBleed","Manifesto","Timeline","TimelineTrack","Footprint","Banner","TitleWithButtons","Ticker","SubscribeBlogs","TyreSizes","TyreFitment","EuTyreLabel","SpecStrip","ProcessSteps","DetailRows","FitmentTable","CompatibleTyres","RelatedProducts","BundleOffer","Split","Gallery","Subscribe","Countdown"]),yz={name:"sectionGroups",applies:(e,o)=>o.isSection(e)&&(Ixe.has(e)||o.isHostBlock(e)),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}},yxe=new Set(["HeroSlide","HeroGroup"]),bz={name:"blockGroups",applies:(e,o,t)=>yxe.has(e)||!o.isSection(e)&&eg in(t?.fields??{}),panel(e,o,t){let r=t.assignSectionGroups;e?.fields&&(e.fields=r(e.fields,o))}};import{jsx as NT}from"react/jsx-runtime";var bxe=new Set(["Flex","Grid"]),Sz=e=>Object.entries(e.fields??{}).filter(([,o])=>o?.type==="slot").map(([o])=>o),Sxe=(e,o)=>e.fields?.[o]?.ownPictures===!0,wxe=["blockCount","blockIds"],Cxe=new WeakMap,vxe=new WeakMap;function kxe(e,o){let t=o?vxe:Cxe,r=t.get(e);if(r)return r;let a=e,n=s=>NT(sU,{children:NT(cu,{ownPictures:o,children:NT(a,{...s})})});Object.assign(n,e);for(let s of wxe)Object.defineProperty(n,s,{get:()=>e[s],configurable:!0,enumerable:!0});return t.set(e,n),n}var wz={name:"slotsStartAfresh",applies:(e,o,t)=>!bxe.has(e)&&typeof t?.render=="function"&&Sz(t).length>0,draw(e){let o=Sz(e),t=e.render;e.render=r=>{let a={...r};for(let n of o){let s=r[n];typeof s=="function"&&(a[n]=kxe(s,Sxe(e,n)))}return t(a)}}};var Txe=new Set(["Form","Stats","Logos"]);function Cz(){return[...Txe]}function DT(e,o,t=[]){let r=new Set(e),a=$0.filter(d=>r.has(d)),n=a.filter(d=>d!=="Header"&&d!=="Footer"&&!Cu.includes(d)),s=new Set([...o,...Sp,...Cz()]),i=a.filter(d=>!s.has(d)),l=new Set([...a,...t]);return{isSection:d=>l.has(d)&&!Wp(d),isHostBlock:()=>!1,sectionGroupAllow:n,contentSectionKeys:i}}var Pxe=[wz,MU,_U,N6,D6,yM,CU,nz,vU,bM,YU,JU,H6,hz,xz,gz,OT,UU,sz,VU,ZU,tz,rz,pU,iz,Z6,yz,bz,TU,kU,SU,OU,NU,QU,AU,B6,mU];function vz(e,o,t){let r=o;for(let a of Pxe)a.applies(e,t,r)&&(t.inspector&&a.panel?.(r,e,t.inspector,t),a.draw?.(r,e,t));return o}import{jsx as MT}from"react/jsx-runtime";import{ClockIcon as Exe,DurationIcon as _xe}from"efficient-easel/icons";import{MOTION_TIMING as kz}from"efficient-shell/format";import{useSelectedHost as Oxe}from"efficient-easel/easel";function Xl(e){let{min:o,max:t,step:r,default:a}=kz[e].duration;return $o("Duration",MT(_xe,{}),o,t,r,a,"s")}function Zl(e){let{min:o,max:t,step:r,default:a}=kz[e].delay;return $o("Delay",MT(Exe,{}),o,t,r,a,"s")}function Jl(e,o){let t=e.render,r=a=>{let n=Oxe();return t({...a,value:o(a.value,n?.values)})};return{...e,render:a=>MT(r,{...a})}}function Ug({readsSpeed:e}){return Jl(Xl("loop"),(o,t)=>Qx({loopDuration:o,speed:e?t?.speed:void 0}))}function zg(){return Jl(Zl("loop"),e=>G5({loopDelay:e}))}import{jsx as Lo}from"react/jsx-runtime";import{DirectionDownIcon as Axe,DirectionIcon as Rxe,DirectionLeftIcon as Lxe,DirectionRightIcon as Fxe,DirectionUpIcon as Bxe,EntranceBounceIcon as Nxe,EntranceFadeIcon as Dxe,EntranceFlipIcon as Mxe,EntranceGlideIcon as Hxe,EntranceRevealIcon as Wxe,EntranceRiseIcon as $xe,EntranceScaleIcon as Uxe,EntranceSpinIcon as zxe,NoSymbolIcon as Gxe}from"efficient-easel/icons";import{NoControlMark as jxe,noControlField as Kxe}from"efficient-easel/screen/lib/document/panel-no-control-mark";import{customize as Vxe,group as Yxe}from"efficient-easel/screen/lib/document/box-fields";import{ENTRANCE_FROM as qxe,ENTRANCE_FROM_DEFAULT as Pz,ENTRANCE_KINDS as Ez,ENTRANCE_KINDS_WITH_FROM as Xxe,entranceAttrs as Zxe,playEntrance as Jxe,readEntrance as Qxe}from"efficient-shell/format";var ege={none:"None",fade:"Fade",rise:"Rise",scale:"Scale",glide:"Glide",bounce:"Bounce",flip:"Flip",reveal:"Reveal",spin:"Spin"},oge={top:"Top",bottom:"Bottom",left:"Left",right:"Right"},tge={top:()=>Lo(Axe,{}),bottom:()=>Lo(Bxe,{}),left:()=>Lo(Fxe,{}),right:()=>Lo(Lxe,{})},_z="Entrance",WT=Ez.filter(e=>e!=="none"),Oz=e=>({any:[{field:Tt.kind,in:e},{all:[{field:Tt.kind,set:!1},{field:Pc,in:e}]}]}),Tz=(e,o)=>Mr(ht.slice(0,ht.indexOf(e)+1).reverse().map(t=>ve(Tt.kind,t)),t=>({field:t,set:!0}),t=>t===Tt.kind?Oz(o):{field:t,in:o}),rge={any:[Oz(WT),...ht.slice(1).map(e=>({field:ve(Tt.kind,e),in:WT}))]},age=ht.flatMap(e=>[[[ve(Tt.from,e)],Tz(e,Xxe)],[[ve(Tt.duration,e),ve(Tt.delay,e)],Tz(e,WT)]]),nge={none:()=>Lo(Gxe,{}),fade:()=>Lo(Dxe,{}),rise:()=>Lo($xe,{}),scale:()=>Lo(Uxe,{}),glide:()=>Lo(Hxe,{}),bounce:()=>Lo(Nxe,{}),flip:()=>Lo(Mxe,{}),reveal:()=>Lo(Wxe,{}),spin:()=>Lo(zxe,{})},Az="data-entrance-tile";function sge({kind:e}){let{attrs:o}=Zxe(Qxe(e,Pz));return Lo("span",{className:"sf-entrance-stage",[Az]:e,children:Lo("i",{...o,children:nge[e]()})})}var ige=(e,o)=>{let t=e.querySelector(`[${Az}="${o}"] > i`);t&&Jxe(t)},lge="Effect",cge=()=>am(Tt.kind,{label:_z,tileWord:lge,values:Ez,fallback:"none",word:e=>ege[e],picture:e=>Lo(sge,{kind:e}),read:(e,o)=>Ec(e,o).kind,preview:ige}),HT=(e,o)=>rm(Tt[e],o,(t,r)=>Ec(t,r)[e]),dge=qxe.map(e=>({label:oge[e],value:e,picture:tge[e]()}));function _r(){let e={[eg]:Yxe(_z,{dot:rge}),...cge(),[Pc]:Kxe({type:"custom",render:()=>Lo(jxe,{})},"always"),_cEntrance:Vxe(),...HT("from",qi("From",Lo(Rxe,{}),dge,Pz)),...HT("duration",Xl("entrance")),...HT("delay",Zl("entrance"))};return kt(e,age)}import{jsx as ar}from"react/jsx-runtime";import{EntranceRevealIcon as fge,NoSymbolIcon as pge,PercentIcon as Rz,ScrollFadeInIcon as uge,ScrollFadeOutIcon as mge,ScrollMoveDownIcon as hge,ScrollMoveUpIcon as xge,ScrollParallaxIcon as gge,ScrollZoomInIcon as Ige,ScrollZoomOutIcon as yge,ZoomInIcon as bge}from"efficient-easel/icons";import{customize as Sge,group as wge}from"efficient-easel/screen/lib/document/box-fields";import{SCROLL_EFFECTS as Fz,SCROLL_EFFECTS_WITH_ZOOM as Cge,SCROLL_END as vge,SCROLL_START as kge,SCROLL_ZOOM as Tge}from"efficient-shell/format";var Bz="Scroll",Pge={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"},Ege={none:()=>ar(pge,{}),"zoom-in":()=>ar(Ige,{}),"zoom-out":()=>ar(yge,{}),"fade-in":()=>ar(uge,{}),"fade-out":()=>ar(mge,{}),"move-up":()=>ar(xge,{}),"move-down":()=>ar(hge,{}),reveal:()=>ar(fge,{}),parallax:()=>ar(gge,{})},_ge="Effect",Nz=Fz.filter(e=>e!=="none"),Lz=(e,o)=>Mr(ht.slice(0,ht.indexOf(e)+1).reverse().map(t=>ve(zo.effect,t)),t=>({field:t,set:!0}),t=>({field:t,in:o})),Oge={any:ht.map(e=>({field:ve(zo.effect,e),in:Nz}))},Age=ht.flatMap(e=>[[[ve(zo.zoom,e)],Lz(e,Cge)],[[ve(zo.start,e),ve(zo.end,e)],Lz(e,Nz)]]),Rge=()=>am(zo.effect,{label:Bz,tileWord:_ge,values:Fz,fallback:"none",word:e=>Pge[e],picture:e=>Ege[e](),read:(e,o)=>Ta(e,o).effect}),$T=(e,o,t,r,a)=>rm(e,$o(t,r,a.min,a.max,a.step,a.default,"%"),(n,s)=>Ta(n,s)[o]);function Gs(){let e={[bl]:wge(Bz,{dot:Oge}),...Rge(),[Yh]:Sge(),...$T(zo.zoom,"zoom","Zoom",ar(bge,{}),Tge),...$T(zo.start,"start","Start",ar(Rz,{}),kge),...$T(zo.end,"end","End",ar(Rz,{}),vge)};return kt(e,Age)}import{jsx as ct}from"react/jsx-runtime";import{AccentIcon as Lge,ContrastIcon as Fge,EyeIcon as Bge,ExpandIcon as Nge,FinishIcon as Dge,ImagesIcon as Mge,NoSymbolIcon as Mz,HoverLiftIcon as Hge,HoverNextImageIcon as Wge,HoverRotateIcon as $ge,HoverZoomIcon as Hz,OpacityIcon as Uge}from"efficient-easel/icons";import{customize as zge,describedAs as Wz,group as Gge}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as $z}from"efficient-easel/screen/lib/document/effect-tiles";import{deviceField as Ko}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as jge,noControlField as Kge}from"efficient-easel/screen/lib/document/panel-no-control-mark";var Gg=e=>Ko("desktop",Gge("Hover",{dot:e})),Uz=()=>Ko("desktop",zge()),Vge="What this does when a shopper points at it, or taps it on a phone.",Yge="What this picture does when a shopper points at it. Black and white shows it in grey until then. A phone shows its colour.",qge="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.",Xge="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.",Zge="When this shows. On card hover shows it while a shopper points at the card. A phone always shows it.",Jge="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.",Qge="Which of the product's pictures the card shows.",eIe="Same finish shows the photos of the finish the card shows, else the first group.",oIe="Whole card hides the words under the photo. Picture keeps the words and swatches in view.",tIe={none:()=>ct(Mz,{}),nextImage:()=>ct(Wge,{}),rotate:()=>ct($ge,{}),zoom:()=>ct(Hz,{}),lift:()=>ct(Hge,{}),mono:()=>ct(Fge,{})};function UT(e,o){let t=$z({label:c("Hover effect"),options:e.map(r=>({value:r,label:c(di[r]),picture:tIe[r]()})),fallback:o});return Wz(t,{type:"select",label:"Hover effect",options:e.map(r=>({value:r,label:di[r]}))})}function zz(){return{[lr]:Gg({field:Dt,in:ey.filter(e=>e!=="none")}),[Dt]:Ko("desktop",{...UT(ey,"none"),description:Vge})}}function Gz(e){let o=IE(e),t=Ep(),r=wF(cE);return{[lr]:Gg({any:[o,t]}),[ho.kind]:Ko("desktop",{...Jl(UT(sE,e),(a,n)=>xE(n??{},e)),description:Jge}),...zT(t),[iE]:Kge({type:"custom",render:()=>ct(jge,{})},"always"),_cHover:Uz(),[ho.angle]:Ko("desktop",co(Jl(r,a=>gE(a)),o)),[ho.duration]:Ko("desktop",co(Xl("hover"),o)),[ho.delay]:Ko("desktop",co(Zl("hover"),o))}}function zT(e){let o=Ot("Type",ct(Mge,{}),dE.map(a=>({value:a,label:fE[a]})),Pp.kind),t=qi("Group",ct(Dge,{}),pE.map(a=>({value:a,label:uE[a]})),Pp.group),r=qi("Covers",ct(Nge,{}),mE.map(a=>({value:a,label:hE[a]})),Pp.cover);return{[ho.mediaKind]:Ko("desktop",co({...o,description:Qge},e)),[ho.mediaGroup]:Ko("desktop",co({...t,description:eIe},e)),[ho.cover]:Ko("desktop",co({...r,description:oIe},e))}}function GT(e,o="",t=ny.includes(o)){let r=sy(e),a=kE(e);return{[lr]:Gg(r),[ho.kind]:jT(yE,e,Yge),...ny.includes(o)?zT(Ep()):{},_cHover:Uz(),...t?jz():{},[ho.duration]:Ko("desktop",co(Xl("hover"),a)),[ho.delay]:Ko("desktop",co(Zl("hover"),a))}}function jz(e=!1){let o=a=>e?a:co(a,vE()),t=$o("Zoom",ct(Hz,{}),fi.min,fi.max,fi.step,fi.min,fi.unit),r=$o("Darken on hover",ct(Uge,{}),Va.min,Va.max,Va.step,Va.fallback,Va.unit);return{[ty.zoom]:Ko("desktop",o(t)),[ty.darken]:Ko("desktop",o(r))}}function jT(e,o,t){let r=Ko("desktop",{...Jl(UT(e,o),a=>wE({[Dt]:a},o,e)),description:t});return Object.assign(r,{[Kz]:o})}var Kz="sfPictureResting",Dz=new WeakMap;function fno(e,o,t){let r=e[ho.kind],a=r?.[Kz];if(!r||!a)return e;let n=o.props?.[Dt]==="nextImage",s=n?null:Gp(t.appState,o.props?.id);if(!n&&!Tp.includes(String(s?.type??"")))return e;let i=Dz.get(e);return i||(i={...e,[ho.kind]:jT(oy,a,qge)},Dz.set(e,i)),i}var rIe="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.",aIe={none:()=>ct(Mz,{}),[ZI]:()=>ct(Lge,{})},pno=Ko("desktop",{...Wz($z({label:c("Hover effect"),options:JI.map(e=>({value:e,label:c(QI[e]),picture:aIe[e]()})),fallback:"none"}),{type:"select",label:"Hover effect",options:JI.map(e=>({value:e,label:QI[e]}))}),description:rIe}),nIe=Ko("desktop",{...qi("Show",ct(Bge,{}),[{value:ay,label:"Always"},{value:ry,label:"On card hover"}],ay),description:Zge});function Vz(){let e={any:[sy("none"),{field:Dt,is:ZI},{field:On,is:ry}]},{[lr]:o,[ho.kind]:t,...r}=GT("none","",!0);return{[lr]:Gg(e),[ho.kind]:t,[On]:nIe,...zT(Ep()),...r,...jz(!0)}}var uno=jT(oy,"none",Xge);import{jsx as $f}from"react/jsx-runtime";import{isNodeList as cIe}from"efficient-easel/data";import{useEasel as dIe}from"efficient-easel/easel";import{hiddenInView as fIe,hiddenKeyOf as VT,hidePatch as pIe,slotChildName as uIe,slotChildRowName as mIe}from"efficient-easel/draw";var jg=null;function KT(e){jg=e}function Yz(){return!!(jg&&jg.state().lockHolder)}function js(){return jg!==null}var sIe=new Set(["BookingBox","SubmitBox"]);function iIe(e){return typeof e=="string"&&sIe.has(e)}var lIe=I1(iIe,Yz);function Kg(e,o){return lIe(e)||dS(o)}var Vg=(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 hIe}from"efficient-easel/screen/lib/document/device-fields";import{NoControlMark as xIe}from"efficient-easel/screen/lib/document/panel-no-control-mark";var qz="notCardOfTemplate",Xz={not:{context:qz,is:!0}},YT={any:[Ap,Xz]},Fno={[qz]:(e,o)=>{let t=Py(o.appState,e.props?.id);return t===void 0?void 0:t===null}};function Yg(e){let o=e.props?.content;return cIe(o)?o:[]}var Xg=(e,o)=>fIe(e.props??{},o),gIe=(e,o)=>e.props?.[VT(o)]!==void 0;function Zz(e,o=()=>!1,t="desktop"){return Yg(e).flatMap(r=>typeof r?.props?.id!="string"?[]:Yg(r).length&&!Xg(r,t)?Zz(r,o,t):o(r)?[]:[r])}function IIe(e,o,t,r="desktop"){let a=Zz(e,t,r).map(i=>({child:i,name:o(i)})),n=new Set(a.map(i=>i.name)),s=new Set;return a.map(({child:i,name:l})=>{let d=l;if(s.has(l)){let f=2;for(;n.has(`${l} ${f}`);)f+=1;d=`${l} ${f}`,n.add(d)}return s.add(l),{id:i.props.id,label:d,shown:!Xg(i,r)}})}function qg(e,o,t){let r=a=>t==="desktop"?Xg(a,t):gIe(a,t);return Yg(e).flatMap(a=>r(a)?o(a)?[]:[a,...qg(a,o,t)]:qg(a,o,t))}function yIe(e,o){let t={...e};for(let[r,a]of Object.entries(o))a===void 0||r===VT("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 qT(e,o,t){let r=Yg(e),a=!1,n=r.map(s=>{if(a)return s;let i=s;if(s?.props?.id===o){let l=yIe(s.props,t(s.props));l!==s.props&&(i={...s,props:l})}else i=qT(s,o,t);return a=i!==s,i});return a?{...e,props:{...e.props,content:n}}:e}function Jz(e,o,t,r="desktop"){return qT(e,o,a=>r==="desktop"&&Xg({props:a},r)===!t?{}:pIe(a,r,!t))}function bIe(e,o,t){return t==="desktop"?Jz(e,o,!0,t):qT(e,o,()=>({[VT(t)]:void 0}))}function SIe(e,o,t,r,a,n){return uIe(e).trim()?t(e):a_({ownerType:o,owner:r,fields:a,slot:n},ut(e.props))?.label??t(e)}var wIe="This page is read-only.";function CIe({card:e,ownerType:o,owner:t,fields:r,slot:a,labelOf:n,write:s,readOnly:i,view:l="desktop"}){let d=p=>mIe(p,n,na,void 0,Vg),f=p=>Kg(p.type,p),u=IIe(e,p=>SIe(p,o,d,t,r,a),f,l);return u.length?$f(nl,{parts:u,changed:qg(e,f,l).length>0,shown:p=>u.find(m=>m.id===p)?.shown??!0,disabledReason:i?wIe:void 0,onPress:(p,m)=>s(h=>Jz(h,p,m,l)),onReset:()=>s(p=>qg(p,f,l).reduce((m,h)=>bIe(m,String(h.props.id),l),p))}):$f(xIe,{})}function vIe(){try{let e=dIe(a=>a),o=e.config.components??{},t=e.selectedItem;if(!t)return null;let r=Py(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:f_(e.appState,r),slot:c_(e.appState,t.props?.id)??void 0}}catch{return null}}function kIe({readOnly:e,view:o}){let t=vIe(),r=pr();return t?$f(CIe,{...t,view:o,readOnly:e,write:a=>{e||r(n=>{let s={...t.card,props:n},i=a(s);return i===s?null:{content:i.props.content}})}}):$f(nl,{parts:[],changed:!1,shown:()=>!0,onPress:()=>{},onReset:()=>{}})}function Bno(e){return co(hIe(e,{type:"custom",render:({readOnly:o})=>$f(kIe,{readOnly:o,view:e})}),Xz)}import{customize as BIe}from"efficient-easel/screen/lib/document/box-fields";import{jsx as XT}from"react/jsx-runtime";import{DirectionIcon as TIe,LoopMarqueeIcon as PIe,NoSymbolIcon as EIe}from"efficient-easel/icons";import{customize as _Ie,describedAs as OIe,group as AIe}from"efficient-easel/screen/lib/document/box-fields";import{effectTiles as RIe}from"efficient-easel/screen/lib/document/effect-tiles";function ZT(){return yB("Direction",dk,wf,"A marquee cannot run diagonally, so the corners are not answers.",XT(TIe,{}),IB)}var JT=e=>AIe("Loop",e?{dot:e}:void 0),LIe={none:()=>XT(EIe,{}),scroll:()=>XT(PIe,{})};function FIe(){let e=RIe({label:c("Loop"),options:Jx.map(({value:o,label:t})=>({value:o,label:c(t),picture:LIe[o]()})),fallback:ck});return OIe(e,{type:"select",label:"Loop",options:Jx.map(({value:o,label:t})=>({value:o,label:t}))})}function Qz(){return{[Wl]:JT(Sf),loop:FIe(),_cLoop:_Ie(),scrollDirection:co(ZT(),Sf),loopDuration:co(Ug({readsSpeed:!1}),Sf),loopDelay:co(zg(),Sf)}}var eG={field:On,set:!0};function NIe(){let e=Vz(),o=[lr,Dt],t=pt(e,Object.keys(e).filter(n=>!o.includes(n)&&n!==On),Ap),r=pt(t,[On],eG),a=pt(r,[Dt],YT);return pt(a,[lr],{any:[YT,eG]})}function Zg(e,o=""){switch(e){case"section":case"block":return{..._r(),...Gs()};case"box":return{..._r(),...Gs(),...Qz(),...NIe()};case"picture":return{..._r(),...Gs(),...GT(SE(o),o)};case"textPart":return{..._r(),...Gs(),...zz()};case"cards":return{..._r(),...Gs(),...Gz(lE(o))};case"marquee":return{..._r(),...Gs(),[Wl]:JT(),_cLoop:BIe(),scrollDirection:ZT(),loopDuration:Ug({readsSpeed:!0}),loopDelay:zg()}}}import{blockSizeFieldSet as Iye}from"efficient-easel/screen/lib/document/block-size-fields";import{VIEW_KEY_ACCESS as yye}from"efficient-easel/screen/lib/document/box-fields";import{group as DIe}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as MIe,deviceMetaOf as rG}from"efficient-easel/screen/lib/document/device-fields";import{DESIGN_GROUPS as eP,SETTINGS_BUCKETS as HIe}from"efficient-easel/panel";import{BUCKET_KEY as Vo,DESIGN_GROUP_KEY as Ql}from"efficient-easel/screen/lib/document/field-buckets";var Uf=HIe;var WIe="Editor only \u2014 not shown live",oP={"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 size":"Size",Behavior:"Layout",Schedule:"Layout",Controls:"Layout",Diagram:"Layout",[WIe]:"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"},aG={"AlloyWheelsListing._gCards":"Design","Flex._gLink":"Link","LongRead._gLink":"Link"},nG={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function oG(e,o,t){let r=`${e}.${o}`;return $(nG,r)??$(aG,r)??$(oP,t)}function $Ie(e){return e==="Animation"?[Vo.Animation]:[Vo.Design,Ql[e]]}function Jg(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=rG(r),n=br(a?a.inner:r),s=n?$(oP,n.label):void 0;if(s)for(let i of $Ie(s))o.includes(i)||o.push(i)}return o}var uso=[...Jg(Xi({tablet:!0,siteSide:!0}),tl("full"),rl(),al(),xd()),...Object.keys(Xi({tablet:!0,siteSide:!0})),...Object.keys(tl("full")),...Object.keys(rl()),...Object.keys(al()),...Object.keys(xd())],mso=[...Jg(Qi()),...Object.keys(Qi())],hso=[...Jg(ol()),...Object.keys(ol())],xso=[...Jg(_r()),...Object.keys(_r())],gso=Object.keys(SB()),Iso=Object.keys(wB()),UIe={"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)","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)","Flex._gLink":"repeated the Link group heading above it (owner 2026-11-17)","LongRead._gLink":"repeated the Link group heading above it (decided 2026-11-17)","Flex._gJump":"repeated the Anchor group heading above it (owner 2026-11-17)","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)"},sG={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Link:["Link"],Anchor:["Anchor"],Animation:["Animation"]},QT={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Xi({tablet:!0,siteSide:!0}),...tl("full"),...rl(),...al(),...Qi(),...ol(),..._r()};for(let o of Object.keys(QT)){let t=br(e[o]),r=t?$(oP,t.label):void 0;if(!t||t.level!==2||!r||!sG[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 zIe=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),GIe=new Map([[Vo.Design,"Content"],[Vo.Animation,"Animation"],...eP.map(e=>[Ql[e],e])]);function jIe(e){let o=`${e}.`;return Object.keys(UIe).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function KIe(e,o){let t=rG(e),r=DIe(o);return t?MIe(t.tier,r):r}function VIe(e,o){let t=br(o);return t?e==="Content"||e==="Animation"?rB(o,t.label):aB(o):o}function tG(e){return e==="Design"?eP:["Animation"]}function Qg(e,o){let t=[],r=new Set(jIe(o)),a=new Set,n=!1,s=null;for(let[p,m]of Object.entries(e)){let h=br(m);if(zIe.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 from efficient-easel's DESIGN_GROUP_KEY (\`[DESIGN_GROUP_KEY.Design]: section("Design")\`).`);let I=GIe.get(p);if(I!==void 0){if(h?.level!==1)throw new Error(`${o}.${p}: that key is reserved for the ${I} heading of the settings panel, but this field is ${h?`a level-${h.level} "${h.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(p===Vo.Design||p===Vo.Animation)&&(n=!0),t.push(s={place:I,entries:[],adopted:!0});continue}if(!h){s||t.push(s={place:"Content",entries:[]}),s.entries.push([p,m]);continue}if(r.has(p)||He(QT,p)){let S=oG(o,p,h.label);if(h.level!==2||!S||!sG[S].includes(h.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-${h.level} "${h.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:[],uniform:He(QT,p)});continue}let w=oG(o,p,h.label);if(!w)throw new Error(`${o}.${p}: the inspector group "${h.label}" is not classified in LABEL_GROUP (lib/document/field-groups.ts), so there is no way to say which of ${[...eP,"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:w,entries:[[p,h.level===2?m:KIe(m,h.label)]]})}let i=new Set(Object.entries(e).filter(([,p])=>br(p)).map(([p])=>p));for(let[p,m]of[["BLOCK_KEY_GROUP",nG],["KEY_GROUP",aG]]){let h=Object.keys(m).filter(I=>I.startsWith(`${o}.`)).filter(I=>!i.has(I.slice(o.length+1))&&!r.has(I.slice(o.length+1)));if(h.length)throw new Error(`${o}: ${p} (lib/document/field-groups.ts) lists ${JSON.stringify(h)}, 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 l=n?[]:[...r].filter(p=>!a.has(p));if(l.length)throw new Error(`${o}: RETIRED (lib/document/field-groups.ts) lists ${JSON.stringify(l)}, but this section has no such fold header${l.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let d=new Set(t.filter(p=>p.entries.length>0).map(p=>p.place)),f=Uf.filter(p=>tG(p).some(m=>d.has(m))),u={};for(let p of f){u[Vo[p]]=Ym(p,p===f[0]?f:null);for(let m of tG(p)){if(!d.has(m))continue;let h=t.filter(S=>S.place===m),I=h.findIndex(S=>S.adopted);I>0&&h.unshift(...h.splice(I,1));let w=h.filter(S=>S.uniform);if(w.length>0){let S=h.filter(b=>!b.uniform),v=h[0]?.adopted?1:0;h.splice(0,h.length,...S.slice(0,v),...w,...S.slice(v))}p==="Design"&&(u[Ql[m]]=hw(m));for(let S of h)for(let[v,b]of S.entries)u[v]=VIe(m,b)}}return u}function iG(e){return Vo.Design in e?e:{[Vo.Design]:Ym("Design",null),[Ql.Content]:hw("Content"),...e}}function lG(e){return Uf.some(o=>Vo[o]in e)}function eI(e){let o=Uf.filter(r=>Vo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Vo[r]]=Ym(r,r===o[0]?o:null);return t}import{jsx as oI}from"react/jsx-runtime";import{WidthIcon as YIe}from"efficient-easel/icons";import{SettingsField as qIe,SettingsSwitch as XIe}from"efficient-easel/panel";import{group as ZIe,iconOf as JIe,sharedStyleKinds as QIe}from"efficient-easel/screen/lib/document/box-fields";var eye="Gutter";function oye({value:e,onChange:o,labelId:t}){let r=Ng(Oc()),a=Lf({[Us]:e})??r,n=s=>o(s?r?void 0:IT:gT);return oI(qIe,{label:c(eye),labelId:t,icon:JIe(oI(YIe,{})),action:oI(XIe,{checked:a,onChange:n,ariaLabelledBy:t})})}function cG(){return QIe({_gWidth:ZIe(en),[Us]:{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>oI(oye,{value:e,onChange:o,labelId:`${t??r??Us}-label`})}})}import{jsx as rP}from"react/jsx-runtime";import{group as tye,sharedStyleKinds as fG}from"efficient-easel/screen/lib/document/box-fields";import{deviceField as rye}from"efficient-easel/screen/lib/document/device-fields";var aye="Content cannot be wider than the background.",tP=e=>c(e==="content"?"Content width":"Full width");function pG(e){let{siteWidth:o,sectionBackgroundWidth:t,sectionContentWidth:r,themeFromDocument:a}=fe(),n=q(o)??je.default;return e.drawsFullOnItsOwn?{px:n,background:"full",content:"full"}:{px:n,background:(a?null:t)??"full",content:(a?null:r)??"content"}}var nye={read:as},sye={read:as,drawsFullOnItsOwn:!0},iye={read:mF,clearOnContent:{fullWidth:void 0}};function lye({source:e}){let o=e.read(bo()),t=pr(),r=pG(e);return rP(hh,{value:o.background??r.background,changed:o.background!==null,detail:tP(r.background),onChange:a=>t(xF(a)),onReset:()=>t(VS("background"))})}function cye({source:e}){let o=e.read(bo()),t=pr(),r=l=>t({...l,...e.clearOnContent}),a=pG(e),n=(o.background??a.background)==="content",s=el({row:KS,label:Jw,grid:{min:je.min,max:n?a.px:je.max,step:je.step},valueKey:Be.contentMax,view:"desktop",numbersIn:()=>o.contentMax!==null}),i=o.content??a.content;return rP(xh,{mode:n&&i==="full"?"content":i,px:o.contentMax??a.px,max:n?a.px:je.max,changed:o.content!==null,detail:a.content==="full"?tP("full"):`${tP("content")} ${a.px}px`,fullClosed:n,hint:n?aye:void 0,onMode:l=>r(gF(l)),onPx:l=>r({...IF(l),...s?.unitPatch(!1)}),...s?{length:s}:{},onReset:()=>r(VS("content"))})}var dG=(e,o)=>rye("desktop",{type:"custom",render:()=>rP(e,{source:o})}),uG=e=>({[Be.background]:dG(lye,e),[Be.content]:dG(cye,e),[Be.contentMax]:hd(),...ns(KS,Be.content)});function mG(e){let o=e?.drawsFullOnItsOwn?sye:nye;return fG({_gWidth:tye(en),...uG(o)})}function Wso(){return fG({...uG(iye),fullWidth:hd()})}import{deviceMetaOf as xG}from"efficient-easel/screen/lib/document/device-fields";import{noControlMetaOf as dye}from"efficient-easel/screen/lib/document/panel-no-control-mark";function fye(e,o){let t=xG(o),r=t?t.inner:o;if(br(r)||r?.customize===!0)return!1;if(r?.type==="slot")return!0;let a=dye(r);return a==="always"?!1:a==="authored-copy"?Vn(e):!0}function hG(e){let o=xG(e),t=o?o.inner:e,r=br(t);return r?tB(t)?0:r.level:null}function pye(e,o,t){return t?o===0&&e===Vo.Design||o===1&&e===Ql.Content:!1}var uye=new WeakMap,mye=new WeakMap;function gG(e,o="section"){let t=o==="page"?mye:uye,r=t.get(e);if(r)return r;let a=Object.entries(e).map(([u,p])=>({key:u,field:p,level:hG(p),draws:fye(u,p)||o==="page"&&hG(p)===null&&Aw(u,p)})),n=o==="section"&&a.some(u=>Aw(u.key,u.field)),s=new Set;for(let u=0;u<a.length;u++){let p=a[u].level;if(p===null)continue;let m=0;for(let h=u+1;h<a.length;h++){let I=a[h].level;if(I!==null&&I<=p)break;a[h].draws&&(m+=1)}m===0&&!pye(a[u].key,p,n)&&s.add(a[u].key)}let i=n&&lG(e),l=i&&!(Vo.Design in e);if(!s.size&&!l)return t.set(e,e),e;let d={};for(let u of a)s.has(u.key)||(d[u.key]=u.field);let f=eI(i?iG(d):d);return t.set(e,f),f}import{isShown as hye,showWhenFactReaders as xye}from"efficient-shell/format";var IG=new WeakMap,gye=new Set(Object.values(Vo));function yG(e,o,t,r={}){if(!e)return e;let a=o?.props??{},n=a.id,s=xye(r,o,t),i=V1(t,{...s,parentOffersPositions:()=>{let h=Aa(t.appState,n);return h===void 0?void 0:pA(h)},heroGroupDepth:()=>eu(t.appState?.data,typeof n=="string"?n:"")}),l=[];for(let[h,I]of Object.entries(e)){let w=bc(I);!w||Lu(w,"device")||hye(w,a,i)||l.push(h)}if(l.length===0)return e;let d=IG.get(e);d||IG.set(e,d=new Map);let f=l.join("\0"),u=d.get(f);if(u)return u;let p=new Set(l),m={};for(let[h,I]of Object.entries(e))p.has(h)||(m[h]=I);return l.some(h=>gye.has(h))&&(m=eI(m)),d.set(f,m),m}var bG={spacingFields:uB,sidesPaddingFields:Xi,sectionShapeFields:ol,cardShapeFields:cB,cellWidthFields:pB,widthField:tl,boxGutterFields:cG,sectionOwnWidthFields:mG,heightFields:rl,anchorFields:al,stickFields:xd,sectionThemeFields:Qi,animationTabFields:Zg,blockSizeFields:({tablet:e,...o}={})=>Iye({...o,shorten:!0,say:Mm,lengthUnits:Ia,...e?{phone:yye}:{}}),assignSectionGroups:Qg,dropEmptyHeadings:gG,rowsShownForNode:yG,SECTION_THEME_FOLLOW_LABEL:nS,BLOCK_THEME_FOLLOW_LABEL:_R,PartAnchors:r6};function tI(e,o,t){if(!e)return e;let r=!1,a={};for(let[n,s]of Object.entries(e)){let i=s;if(s&&typeof s=="object")if(s.type==="slot")if(s.allow){let l=s.allow.filter(o);l.length!==s.allow.length&&(i={...s,allow:l})}else{let l=new Set(s.disallow??[]),d=t.filter(f=>!l.has(f));d.length>0&&(i={...s,disallow:[...s.disallow??[],...d]})}else{let l=tI(s.arrayFields,o,t),d=tI(s.objectFields,o,t);(l!==s.arrayFields||d!==s.objectFields)&&(i={...s,...l?{arrayFields:l}:null,...d?{objectFields:d}:null})}i!==s&&(r=!0),a[n]=i}return r?a:e}function bye(e,o,t){let r={};for(let[i,l]of Object.entries(o.fields??{}))r[i]=l&&typeof l=="object"&&l.type==="slot"?{...l}:l;let a={...o,...o.fields?{fields:r}:null},n=vz(e,a,t),s=Object.keys(r).filter(i=>n.fields?.[i]!==r[i]);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host["${e}"] declares ${s.map(i=>`"${i}"`).join(", ")}, ${s.length===1?"a name":"names"} the editor gives every section a setting under. Give the block's own field another name.`);return n}function Sye(e,o,t){let r=new Set([...Object.keys(e.components??{}),...o.map(([n])=>n)]),a=[...Object.entries(e.categories??{}).map(([n,s])=>({key:n,components:s?.components??[]})),...t];wye(e,o,a);for(let n of a){let s=n.components.filter(Wp);if(s.length>0)throw new Error(`efficient-web-builder: the category "${n.key}" lists ${s.map(i=>`"${i}"`).join(", ")}, a block a card template declares. A card's block is added in its card only; take it out of the category.`)}for(let n of r){if(!$p(n))continue;let s=Hp(n).filter(i=>!r.has(i.type)).map(i=>`"${i.type}"`);if(s.length>0)throw new Error(`efficient-web-builder: the card template of "${n}" declares ${s.join(", ")}, which the editor does not register. Register it in the registry or in blocks.host.`)}}function aP(e,o,t,r=""){let a=[];for(let[n,s]of Object.entries(t??{})){if(!s||typeof s!="object")continue;let i=`${r}${n}`;s.type==="slot"&&s.allow?.includes(e)&&a.push(`${o}.${i}`),a.push(...aP(e,o,s.arrayFields,`${i}.`),...aP(e,o,s.objectFields,`${i}.`))}return a}function wye(e,o,t){let r=n=>{throw new Error(`efficient-web-builder: ${n} names "${gi}". Only a host's seed puts a host part in a card template; a merchant never adds one. Take it out.`)};for(let n of t)n.components.includes(gi)&&r(`the category "${n.key}"`);let a=[...Object.entries(e.components??{}),...o.map(([n,s])=>[n,s])];for(let[n,s]of a){let i=aP(gi,n,s?.fields);i.length>0&&r(`the slot ${i.map(l=>`"${l}"`).join(", ")}, whose allow list`)}}function SG(e,o){let t=Object.entries(o?.host??{}),r=o?.categories??[],a=dT(o);if(Sye(e,t,r),!a&&t.length===0&&r.length===0)return e;let n=e.components,s=t.map(([u])=>u).filter(u=>u in n);if(s.length>0)throw new Error(`efficient-web-builder: blocks.host registers ${s.map(u=>`"${u}"`).join(", ")}, which ${s.length===1?"is already a block":"are already blocks"} of the editor. Give a host's block a type of its own.`);let i=u=>a?a.offers(u):!0,l=Object.keys(n).filter(u=>!i(u)),d={};for(let[u,p]of Object.entries(n)){let m=a?tI(p?.fields,i,l):p?.fields;d[u]=m===p?.fields?p:{...p,fields:m}}if(t.length>0){let u=new Set(t.map(([h])=>h)),p=e.categories?.structure?.components??[],m={...DT(Object.keys(n),p,u),isHostBlock:h=>u.has(h),inspector:bG};for(let[h,I]of t){let w=bye(h,I,m),S=tI(w.fields,i,l);d[h]=S===w.fields?w:{...w,fields:S}}}let f=[];for(let[u,p]of Object.entries(e.categories??{})){let m=p?.components??[],h=m.filter(i);h.length===m.length?f.push([u,p]):h.length>0&&f.push([u,{...p,components:h}])}for(let u of r){let p=u.components.filter(w=>w in d&&i(w));if(p.length===0)continue;let m=f.find(([w])=>w===u.key);if(m){let[,w]=m,S=new Set(w.components??[]);m[1]={...w,components:[...w.components??[],...p.filter(v=>!S.has(v))]};continue}let h=[u.key,{title:u.title,components:p}],I=u.before?f.findIndex(([w])=>w===u.before):-1;I===-1?f.push(h):f.splice(I,0,h)}return{...e,components:d,categories:Object.fromEntries(f)}}function wG(){let e=kye();return Cye(()=>SG(vye(e),Mi(e)),[e])}import{jsx as iP,Fragment as jye,jsxs as Kye}from"react/jsx-runtime";import{useContext as Vye,useEffect as Yye,useMemo as lI,useRef as UG}from"react";import{EaselCanvas as qye,repeatCopyAt as Xye,useEasel as Zye}from"efficient-easel/easel";import{jsx as nP}from"react/jsx-runtime";import{useEffect as _ye,useState as Oye}from"react";import{Banner as Aye}from"efficient-shell/ui";import{useSyncExternalStore as Tye}from"react";import{useScreenDocument as Pye}from"efficient-easel/screen/components/ScreenDocumentContext";var Eye=()=>()=>{},CG=()=>null;function rI(e){return Tye(e?e.subscribe:Eye,e?e.state:CG,e?e.state:CG)}function aI(){let{adapter:e}=Pye();return e?.pinnedChrome}var nI={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."},Rye={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."},Lye=nI.load,Fye=nI.lock,Bye=nI.conflict,Nye=nI.save;function Dye(e){if(!e)return null;if(e.loadFailed)return c(Lye);if(e.lockHolder)return c(Fye,{name:e.lockHolder.name||c("Somebody else")});if(e.conflict)return c(Bye);if(e.saveFailed)return c(Nye);let o=e.sections?.[0];if(!o)return null;let t=o.title||c("A shared section"),r=o.holder?.name||c("Somebody else");return c(Rye[o.problem],{section:t,name:r})}function Mye({report:e}){let o=Dye(rI(e)),[t,r]=Oye(null);return _ye(()=>{o||r(null)},[o]),!o||t===o?null:nP("aside",{className:"sf-canvas-notice",children:nP(Aye,{tone:"warning",onDismiss:()=>r(o),children:o})})}function vG(){return nP(Mye,{report:aI()})}import{jsx as iI}from"react/jsx-runtime";import{useState as WG}from"react";import{Banner as Wye,Button as $ye}from"efficient-shell/ui";import{UndoIcon as Uye}from"efficient-shell/icons/efficient";import{useScreenDocument as zye}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as PG}from"react";var zf=!1,ec=null,sP=new Set;function jf(){for(let e of sP)e()}function EG(e){return sP.add(e),()=>{sP.delete(e)}}function _G(){zf||(zf=!0,jf())}function OG(){zf&&(zf=!1,jf())}function kG(){return zf}function AG(){return PG(EG,kG,kG)}function TG(){return ec}function sI(){ec&&(ec=null,jf())}function RG(){return PG(EG,TG,TG)}var Gf=class extends Error{constructor(){super("The editor's last changes could not be saved, so nothing was restored."),this.name="HeldEditsNotSaved"}};async function LG(e,o,t,{flushSave:r,reload:a}){if(!await r())throw new Gf;let n=await e.restore(o,t);return cm(n.liveState),a(),n}async function FG({access:e,version:o,page:t,...r}){let a=await LG(e,o.id,t?{page:t.id}:{},r);ec={title:Hye(o,t??null),undo:a.undo},jf()}async function BG({access:e,...o}){let t=ec?.undo;t&&(await LG(e,t,{},o),ec=null,jf())}function NG(e){return e.name?e.name:e.kind==="draft_before_restore"?c("Draft before restore"):c("Version {n}",{n:e.number})}function Hye(e,o){return e.kind==="draft_before_restore"?c("Your drafts from before the restore are back"):o?c("{page} from version {n} is now your draft",{page:o.name,n:e.number}):c("Version {n} is now your draft",{n:e.number})}function DG(e){let o=e.changes.filter(r=>r.kind==="page").length,t=[...o?[nt("{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(Wy(),{type:"conjunction"}).format(t)}catch{return t.join(", ")}}function MG(e){return e.change==="take_down"?c("{name} (taken down)",{name:e.name}):e.name}function HG(e,o=new Date){let t=new Date(e);if(Number.isNaN(t.getTime()))return"";let r=Wy(),a=new Intl.DateTimeFormat(r,{hour:"numeric",minute:"2-digit"}).format(t);if(t.toDateString()===o.toDateString())return c("Today, {time}",{time:a});let n=new Intl.DateTimeFormat(r,{day:"numeric",month:"short",...t.getFullYear()===o.getFullYear()?{}:{year:"numeric"}}).format(t);return c("{day}, {time}",{day:n,time:a})}import{useSettledAction as Gye}from"efficient-easel/easel";function $G(){let e=RG(),{adapter:o,flushSave:t,reloadFromServer:r}=zye(),a=o.siteVersions,[n,s]=WG(!1),[i,l]=WG(!1),d=async()=>{if(!(!a||n)){s(!0),l(!1);try{await BG({access:a,flushSave:t,reload:r})}catch{l(!0)}finally{s(!1)}}},f=Gye({onPress:()=>{d()},busy:n});return e?iI("aside",{className:"sf-canvas-notice",children:iI(Wye,{tone:i?"danger":"info",title:e.title,onDismiss:sI,action:a&&e.undo?iI($ye,{variant:"secondary",size:"sm",leftIcon:iI(Uye,{}),loading:f.busy,disabled:f.busy,onClick:f.onPress,children:c("Undo")}):void 0,children:i?c("Undo did not work. Nothing changed. Try again."):c("Check it with Preview. Press Publish to put it live.")})}):null}import{decodePartId as Jye,REPEAT_ATTRIBUTE as lP,REPEAT_INDEX_ATTRIBUTE as cP}from"efficient-easel/draw";import{usePreviewParts as Qye}from"efficient-easel/draw/client";import{ScreenDocumentContext as ebe}from"efficient-easel/screen/components/ScreenDocumentContext";function zG(e){let{mirrorHostStyles:o}=Ac(),t=zO(),r=dP(),a=Oc(),n=Vye(ebe),s=Eu(n?.docId??null),i=Zye(w=>w.appState.data),l=T1(s,i),d=JSON.stringify(l),f=lI(()=>l,[d]),u=lI(()=>({...e.metadata??t??{},...r,...f}),[e.metadata,t,r,f]);Yye(()=>(RT(a),()=>RT(null)),[a]);let p=UG(null),m=obe(p),{onDocument:h}=e,I=w=>{p.current=w,h?.(w)};return Kye(jye,{children:[iP($G,{}),iP(vG,{}),iP(qye,{...e,onDocument:I,typing:m,metadata:u,height:"fill",mirrorStyles:o,frameWrapper:Mh})]})}function dP(){let{sectionBackgroundWidth:e,themeFromDocument:o}=fe(),t=Oc();return lI(()=>bF(o?null:e,t),[e,t,o])}function obe(e){let o=yu(),t=Qye(),r=UG({parts:t});return r.current={parts:t},lI(()=>{let a=(n,s)=>{let i=ah(n,o),l,d=null,f=s??(i?null:$w(null,e.current,n)),u=!i&&f?Xye(f):null,p=u?Jye(n):null;if(u&&f&&p?.propKey){i=sh({...u,nodeId:p.nodeId,key:p.propKey},o),l=p.propKey;let w=f.closest(`[${lP}][${cP}]`),S=`[${lP}="${nh(w?.getAttribute(lP)??"")}"][${cP}="${nh(w?.getAttribute(cP)??"")}"]`;d=()=>(f.ownerDocument??e.current)?.querySelector(S)??null}if(!i)return null;let m=f,h=()=>(m=$w(m,d?d():m?.ownerDocument??e.current,n),m),I=h();return I?{element:h,value:i.value,rules:i.rules,multiline:i.multiline,skip:i.skip,write:i.write,key:l,toolbar:{offered:i.offered,colors:i.offered.length>0?Bi(zu(I)):void 0,colorNameOf:Pt}}:null};return{at:n=>{let s=n.closest(`[${po}]`),i=s?.getAttribute(po);return s&&i?a(i,s):null},atSelection:()=>{let n=r.current.parts.selectedPartId;return n?a(n,null):null},onCopyText:n=>oN(n,o),copyValue:n=>eN(n,o),onChange:n=>{if(!n.typing){Uw(null);return}let s=n.element.closest(`[${po}]`)?.getAttribute(po)??null;Uw(s),s&&r.current.parts.selectedPartId!==s&&r.current.parts.select(s)}}},[o,e])}function KG({open:e,onClose:o,takenSlugs:t,onCreated:r}){let a=sbe(),{adapter:n,siteId:s,templateId:i}=nbe(),l=Ge(a).pages,d=!i&&!!(l.starters&&l.createFromStarter),f=rbe(()=>s?{siteId:s}:{},[s]),u=wG(),p=dP(),[m,h]=pP(null),[I,w]=pP(jl),[S,v]=pP(null),b=abe(null);tbe(()=>{if(!e)return;if(w(jl),!d){h([]);return}let C=!0;return h(null),l.starters(f).then(A=>C&&h(A),()=>{C&&(h([]),jG.error(c("Couldn\u2019t load the pages \u2014 please retry.")))}),()=>{C=!1}},[e,d,l,f]);let y=async(C,A)=>{if(!S){v(C);try{r(await A())}catch{jG.error(c("Couldn\u2019t add the page \u2014 please retry."))}finally{v(null)}}},k=()=>{if(!n.createPage)return;let C=c("New page");y("blank",()=>n.createPage({slug:GG(C,t),title:C,layout:{}}))},F=C=>{y(C.id,()=>l.createFromStarter(C.id,{title:C.title,slug:GG(C.slug,t),...f}))},T=m??[],D=x6(T),P=g6(I,T),L=fP("nav",{"aria-label":c("Pages"),className:"sf-add-page-nav",children:[Bt(uP,{label:c("All pages"),active:I===jl,onClick:()=>w(jl)}),D.map(C=>Bt(uP,{label:c(C.label),active:I===C.key,onClick:()=>w(C.key)},C.key)),sT(T).length>0?Bt("div",{className:"sf-add-page-group",children:Bt(uP,{label:c("From your template"),active:I===Eg,onClick:()=>w(Eg)})}):null]});return Bt(lbe,{open:e,onClose:o,size:"full",title:c("Add page"),initialFocus:b,children:Bt(pbe,{sidebarTop:fP(fbe,{onClick:k,disabled:!n.createPage||S!==null,children:[Bt(ibe,{"aria-hidden":!0}),c("Blank page")]}),sidebar:L,children:fP("div",{className:"sf-add-page",children:[Bt("h3",{ref:b,tabIndex:-1,className:"sf-add-page-title",children:c("Pages for your site")}),Bt("p",{className:"sf-add-page-sub",children:c("Choose a page and change the text, images and more.")}),m===null?Bt("p",{className:"sf-add-page-sub",children:c("Loading\u2026")}):P.length===0?Bt(cbe,{title:c("No pages to start from"),description:c("Start with a blank page, then add sections.")}):Bt(dbe,{cols:1,smCols:2,lgCols:3,gap:8,children:P.map(C=>Bt(b6,{starter:C,config:u,metadata:p,busy:S===C.id,onAdd:F},C.id))})]})})})}import{jsx as ube}from"react/jsx-runtime";import{createContext as mbe,useContext as VG,useEffect as hbe,useRef as YG}from"react";var mP=mbe(null);function Alo({open:e,children:o}){let t=YG(!!e);return ube(mP.Provider,{value:t,children:o})}function qG(){let e=VG(mP);return()=>e?.current?(e.current=!1,!0):!1}function XG(e){let o=VG(mP),t=YG(e);t.current=e,hbe(()=>{o?.current&&(t.current.setView("pages"),t.current.reveal())},[o])}var tj="sf-editor-pages-collapsed-groups";function Lbe(){let e=xP(),{siteId:o,templateId:t}=rj(),r=Ge(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}function aj({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=xP().chrome?.pageRows,n=Obe(),{adapter:s,capabilities:i,ready:l,currentSlug:d}=rj(),f=xl(),{rows:u,reload:p,setRows:m,getRows:h}=Fd(),[I,w]=Ks(""),[S,v]=Ks(!1),[b,y]=Ks(null),[k,F]=Ks(!1),T=!!Ge(xP()).pages.createFromStarter,D=Lbe(),[P,L]=Ks(null),[C,A]=Ks(()=>{if(typeof window>"u")return new Set;try{let G=window.localStorage.getItem(tj);return new Set(G?JSON.parse(G):[])}catch{return new Set}});ZG(()=>{try{window.localStorage.setItem(tj,JSON.stringify([...C]))}catch{}},[C]);let E=G=>A(Ae=>{let le=new Set(Ae);return le.has(G)?le.delete(G):le.add(G),le}),R=JG(()=>z1(u??[]),[u]),W=I.trim().toLowerCase(),U=G=>!W||G.toLowerCase().includes(W),Z=G=>W?!0:!C.has(G),V=JG(()=>new Set((u??[]).map(G=>G.slug)),[u]),de=()=>{if(i.pageCreationInAdminForm&&!T){n.send("storefront-editor:new-page");return}y(null),F(!0)},Ce=qG();ZG(()=>{Ce()&&de()},[]);let ee=i.hasSiteSettings&&!!s.createPage,_e=async()=>{if(!(!l||S||!s.createPage)){v(!0),y(null);try{let G=await s.createPage(JR(c("New popup"),V));await p(),e(G.slug)}catch{y(c("Couldn\u2019t add the popup \u2014 please retry."))}finally{v(!1)}}},Oe=Ibe(null),[Ee,Fe]=Ks(null),No=()=>{if(!ee)return de();if(Ee)return Fe(null);let G=Oe.current?.getBoundingClientRect();G&&Fe({top:G.bottom+6,right:Math.max(8,window.innerWidth-G.right)})},qo=G=>{let Ae=u??[],le=s.deletePage;if(!l||S||!le||Ae.length<=1)return;let io=Ae.findIndex(Mo=>Mo.id===G.id),oo=Ae.filter(Mo=>Mo.id!==G.id),rt=G.slug===d;Nh(G.id,!0),m(oo),y(null),rt&&oo[0]&&e(oo[0].slug);let Xe=()=>{Nh(G.id,!1);let Mo=h()??[];if(Mo.some(dt=>dt.id===G.id))return;let Lr=[...Mo];Lr.splice(Math.max(0,Math.min(io,Lr.length)),0,G),m(Lr)};ej.undoable(c("Deleted \u201C{name}\u201D",{name:G.label}),{actionLabel:c("Undo"),commit:async Mo=>{await le(G.id,Mo),Nh(G.id,!1)},undo:()=>{Xe(),rt&&e(G.slug)},onFail:()=>{Xe(),ej.error(c("Couldn\u2019t delete the page \u2014 please retry."))}})},Xo=G=>n.send("storefront-editor:open-page",{slug:G}),Co=G=>{if(!U(G.label))return null;let Ae=!t&&G.slug===d,le=i.canDeletePagesInline&&(u??[]).length>1,io=Un(G),oo=U1(G),rt=[...io?[{label:c("Dynamic"),tone:"info"}]:[],...oo?[{label:c("Lightbox"),tone:"success"}]:[],...G.draft?[{label:c("draft"),tone:"draft"}]:[]],Xe=rt.length>0?rt:void 0,Mo=!!D&&Abe(G),Lr=Mo||i.pageCreationInAdminForm||le?cI(xbe,{children:[Mo&&$e(dI,{kind:"plain",label:c("Duplicate \u201C{name}\u201D",{name:G.label}),disabled:S,onClick:()=>L(G),children:$e(Tbe,{size:13})}),i.pageCreationInAdminForm&&$e(dI,{kind:"plain",label:c("Page settings for \u201C{name}\u201D",{name:G.label}),onClick:()=>Xo(G.slug),children:$e(Ebe,{size:13})}),le&&$e(dI,{kind:"delete",label:c("Delete \u201C{name}\u201D",{name:G.label}),disabled:S,onClick:()=>qo(G),children:$e(hP,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return $e(oj,{icon:$e(Pbe,{size:14}),name:G.label,selected:Ae,onSelect:()=>e(G.slug),badge:Xe,actions:Lr,rowProps:{"data-page-slug":G.slug}},G.id)},Do=(G,Ae,le)=>{let io=le.filter(Boolean);if(io.length===0)return null;let oo=Z(G);return cI(gbe,{children:[$e(vbe,{count:io.length,countLabel:nt("{n} page","{n} pages",io.length),expanded:oo,onToggle:()=>E(G),children:Ae}),oo&&io]},G)},vo=(a?.rows??[]).filter(G=>U(G.label)).map(G=>{let Ae=t===G.key;return $e(oj,{icon:G.icon,name:G.label,selected:Ae,onSelect:()=>r(G.key),badge:{label:c("Preview"),tone:"warning"},actions:$e(dI,{kind:"plain",label:c("Open the {name} in a new tab",{name:G.label}),onClick:()=>window.open(G.href,"_blank","noopener,noreferrer"),children:$e(hP,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":G.key}},G.key)}),ue=i.hasSiteSettings&&!!a,eo=(()=>{if(u===null)return null;let G=[],Ae=!1;for(let le of R){ue&&!Ae&&le.key.startsWith("system:")&&(G.push(Do("shop",a.title,vo)),Ae=!0);let io=le.key===hb||le.label===mb?c(le.label):le.label;G.push(Do(le.key,io,le.rows.map(Co)))}return ue&&!Ae&&G.push(Do("shop",a.title,vo)),G})();return cI("div",{className:"sf-pages",children:[$e(ybe,{icon:$e(_be,{}),title:c("Pages"),context:f,actions:$e(bbe,{buttonRef:Oe,label:ee?c("Add"):c("New page"),hasPopup:ee?"menu":void 0,expanded:ee?Ee!==null:void 0,onClick:No,children:$e(kbe,{size:15})})}),Ee&&$e(wbe,{portal:!0,style:{top:Ee.top,right:Ee.right},onClose:()=>Fe(null),children:cI("div",{role:"menu","aria-label":c("Add"),children:[$e(QG,{role:"menuitem",onClick:()=>{Fe(null),de()},children:c("Page")}),$e(QG,{role:"menuitem",disabled:S,onClick:()=>{Fe(null),_e()},children:c("Popup")})]})}),$e("div",{className:"sf-pages-find",children:$e(Sbe,{type:"search",leftIcon:$e(hP,{name:"search",size:14,rounded:!0}),placeholder:c("Search all pages\u2026"),value:I,onChange:G=>w(G.target.value),"aria-label":c("Search all pages")})}),b&&!k&&$e("div",{className:"sf-note sf-note--error",role:"alert",children:b}),eo===null?$e("div",{className:"sf-note",children:c("Loading\u2026")}):eo.some(Boolean)?$e(Cbe,{ariaLabel:c("Pages"),className:"sf-scroll",children:eo}):$e("div",{className:"sf-note",children:I.trim()?c("No pages match your search"):c("No pages yet. Add one with + above.")}),D&&P&&$e(Rbe,{source:{title:P.label,slug:P.slug},taken:V,host:pu(),duplicate:G=>D(P,G),onClose:()=>L(null),onDuplicated:G=>{L(null),p(),e(G.slug)}},P.id),k?$e(KG,{open:!0,onClose:()=>F(!1),takenSlugs:V,onCreated:G=>{F(!1),p(),e(G.slug)}}):null]})}import{jsx as ij}from"react/jsx-runtime";import{createContext as Bbe,useCallback as Nbe,useContext as Dbe,useMemo as Mbe,useState as Hbe}from"react";import{CanvasChromeContext as Wbe}from"efficient-easel/easel";import{useSelectHandler as $be}from"efficient-easel/draw/client";import{parseHexColor as Fbe}from"efficient-shell/format";var fI=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],oc=fI[0];var Vs="right";function pI(e){return fI.includes(e??"")?e:oc}function nj(e){return e==="left"?"left":Vs}function sj(e){return e&&Fbe(e)===e.toLowerCase()?e.toLowerCase():""}var lj="chat",uI={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Vs,launcherLabel:"",showOnPhones:!0};function cco(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:sj(e.launcherColor),launcherIcon:e.launcherIcon?pI(e.launcherIcon):"",launcherPosition:nj(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var cj=Bbe({chat:uI,setChat:()=>{},setSelected:()=>{},setSelectHandler:()=>{}});function dco({children:e,chat:o=uI,onChatChange:t}){let[r,a]=Hbe(!1),n=Nbe(d=>t?.(d),[t]),{select:s,setSelectHandler:i}=$be(),l=Mbe(()=>({selected:()=>r?lj:null,select:d=>d===lj&&s()}),[r,s]);return ij(cj.Provider,{value:{chat:o,setChat:n,setSelected:a,setSelectHandler:i},children:ij(Wbe.Provider,{value:l,children:e})})}var mI=()=>Dbe(cj);import{jsx as gP}from"react/jsx-runtime";import{DesktopIcon as Ube,PhoneIcon as zbe,TabletIcon as Gbe}from"efficient-easel/icons";import{VIEW_TIERS as jbe,VIEW_TIER_LABEL as Kbe}from"efficient-easel/draw";var Vbe={desktop:gP(Ube,{}),tablet:gP(Gbe,{}),mobile:gP(zbe,{})},dj=jbe.map(e=>({id:e,get label(){return c(Kbe[e])},icon:Vbe[e]}));import{PreviewDeviceContext as tPe}from"efficient-easel/draw/client";import{jsx as Ybe}from"react/jsx-runtime";import{createContext as qbe,useCallback as fj,useContext as Xbe,useMemo as Zbe,useRef as Jbe}from"react";var Qbe=Object.fromEntries(gu.map(e=>[e,{value:"",error:null}])),pj=qbe({links:FO,rows:Qbe,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function bco({children:e,value:o}){let t=Jbe(()=>{}),r=fj(()=>t.current(),[]),a=fj(s=>{t.current=s},[]),n=Zbe(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return Ybe(pj.Provider,{value:n,children:e})}var Kf=()=>Xbe(pj);import{jsx as eSe}from"react/jsx-runtime";import{createContext as oSe,useContext as tSe,useMemo as rSe,useState as aSe}from"react";var uj=oSe(null);function vco({children:e}){let[o,t]=aSe(null),r=rSe(()=>({surface:o,setSurface:t}),[o]);return eSe(uj.Provider,{value:r,children:e})}function mj(){return tSe(uj)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as nSe}from"efficient-easel/draw/client";var{Provider:Pco,useSelection:hI}=nSe("selectedHeroPart");import{jsx as Le,jsxs as Sn,Fragment as _K}from"react/jsx-runtime";import{useEasel as Ove,useRootFields as Ave}from"efficient-easel/easel";import{Button as Rve,EmptyState as Lve}from"efficient-shell/ui";function hj({kind:e,pageName:o}){return{name:o?.trim()||c("This page"),kindLabel:Un({kind:e})?c("Template"):c("Page")}}import{headWords as LK,InspectorHead as Fve,InspectorIconButton as OK}from"efficient-easel/chrome";import{DuplicateIcon as Bve,TrashIcon as Nve}from"efficient-easel/icons";import{panelFieldsOf as Dve}from"efficient-easel/screen/lib/document/panel-fields";import{jsx as H,Fragment as ye,jsxs as we}from"react/jsx-runtime";import{BlockBannerIcon as lSe,BlockBoxIcon as cSe,BlockButtonIcon as dSe,BlockDividerIcon as gj,BlockFooterIcon as Ij,BlockHeadingIcon as fSe,BlockProductIcon as pSe,BlockSocialIcon as uSe,BlockTextIcon as mSe,CardPaymentIcon as hSe,ChatIcon as xSe,AccountIcon as gSe,GlobeIcon as ISe,GridIcon as ySe,ImageIcon as yP,MapIcon as bSe,MediaIcon as SSe,PageIcon as wSe}from"efficient-easel/icons";import{jsx as IP,Fragment as sSe,jsxs as iSe}from"react/jsx-runtime";var xj=iSe(sSe,{children:[IP("circle",{cx:"9",cy:"20",r:"1.3"}),IP("circle",{cx:"18",cy:"20",r:"1.3"}),IP("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 CSe={header:we(ye,{children:[H("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),H("path",{d:"M3 9.5h18"})]}),social:we(ye,{children:[H("circle",{cx:"6",cy:"12",r:"2.5"}),H("circle",{cx:"18",cy:"6",r:"2.5"}),H("circle",{cx:"18",cy:"18",r:"2.5"}),H("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:we(ye,{children:[H("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),H("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:we(ye,{children:[H("path",{d:"M4 15.5h6M4 18h4"}),H("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:H("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:we(ye,{children:[H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),H("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:H("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:we(ye,{children:[H("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),H("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:we(ye,{children:[H("circle",{cx:"11",cy:"11",r:"6"}),H("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:xj,CountrySwitchBlock:we(ye,{children:[H("circle",{cx:"12",cy:"12",r:"8.5"}),H("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:we(ye,{children:[H("circle",{cx:"12",cy:"12",r:"8.5"}),H("path",{d:"M12 3.5v17M12 5.5l6 6M12 10.5l5.2 5.2M12 15.5l2.8 2.8"})]}),LegalLineBlock:we(ye,{children:[H("path",{d:"M3 9h18"}),H("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:we(ye,{children:[H("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),H("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),H("path",{d:"M7 17h7"})]}),Collections:we(ye,{children:[H("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),H("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),H("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:we(ye,{children:[H("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),H("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:we(ye,{children:[H("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),H("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),H("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:we(ye,{children:[H("path",{d:"M3 7h9M15.5 7H21"}),H("circle",{cx:"13.5",cy:"7",r:"1.7"}),H("path",{d:"M3 12h4M10.5 12H21"}),H("circle",{cx:"8.5",cy:"12",r:"1.7"}),H("path",{d:"M3 17h9M15.5 17H21"}),H("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:we(ye,{children:[H("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),H("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:we(ye,{children:[H("path",{d:"M3 5h10"}),H("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),H("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),H("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:we(ye,{children:[H("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),H("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),H("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:we(ye,{children:[H("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),H("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:we(ye,{children:[H("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),H("circle",{cx:"9",cy:"10",r:"1.6"}),H("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:we(ye,{children:[H("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),H("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:we(ye,{children:[H("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),H("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),H("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:we(ye,{children:[H("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),H("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:we(ye,{children:[H("path",{d:"M3.5 20h17"}),H("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:we(ye,{children:[H("circle",{cx:"6",cy:"12",r:"2.6"}),H("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),H("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:we(ye,{children:[H("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),H("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:we(ye,{children:[H("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),H("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:we(ye,{children:[H("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),H("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:we(ye,{children:[H("path",{d:"M4 8.5h4.5M11 8.5h9"}),H("path",{d:"M4 14.5h16"})]}),HeroGroup:we(ye,{children:[H("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),H("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:we(ye,{children:[H("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),H("path",{d:"M6.5 9h11M6.5 12.5h11"}),H("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:H(ye,{children:H("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:we(ye,{children:[H("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),H("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:we(ye,{children:[H("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),H("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),H("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),H("path",{d:"M4 13.5h11M4 17.5h7"}),H("path",{d:"M17 15l3 2-3 2"})]}),Contents:we(ye,{children:[H("path",{d:"M4 7h2M4 12h2M4 17h2"}),H("path",{d:"M9 7h11M9 12h9M9 17h10"})]}),ListSearch:we(ye,{children:[H("path",{d:"M4 6h9M4 11h5M4 16h5"}),H("circle",{cx:"15",cy:"15",r:"4"}),H("path",{d:"M20.5 20.5l-2.7-2.7"})]}),CustomHTML:H("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},vSe=H("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),kSe={footer:Ij,Footer:Ij,Divider:gj,FooterDivider:gj,Banner:lSe,Flex:cSe,FooterSocial:uSe,FooterPayment:hSe,page:wSe,website:ISe,AccountBlock:gSe,chat:xSe,Heading:fSe,Text:mSe,ImageBlock:yP,ButtonBlock:dSe,LocationMap:bSe,Grid:ySe,ProductRef:pSe,heroMedia:SSe,heroImage:yP,heroImage2:yP},TSe={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",PaymentLogosBlock:"FooterPayment",SiteHeader:"header",SiteFooter:"footer"};function Ys({type:e,size:o=16,className:t}){let r=TSe[e]??e,a=kSe[r];return a?H(a,{size:o,className:t}):H("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:CSe[r]??vSe})}import{PanelHideButton as AK}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as Mve}from"efficient-easel/screen/lib/session-context";import{jsx as Ne,jsxs as Vf,Fragment as PSe}from"react/jsx-runtime";import{useEffect as ESe,useId as yj,useState as _Se}from"react";import{IconPicker as OSe}from"efficient-shell/ui";import{SettingsDefaultReset as ASe,SettingsField as Yf,SettingsSegmented as RSe,SettingsSwitch as bj}from"efficient-easel/panel";import{ButtonIcon as LSe,ButtonIconIcon as FSe,EyeIcon as BSe,PhoneIcon as NSe,PlacementIcon as DSe,TypeIcon as MSe}from"efficient-easel/icons";var HSe="Chat with us",WSe="We usually reply within a few minutes",$Se="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function xI({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,i]=_Se(o);ESe(()=>i(o),[o]);let l=()=>{s!==o&&r(s)};return Ne(Yf,{label:e,icon:Ne(MSe,{}),changed:o!=="",action:Ne(qf,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Ne("textarea",{value:s,placeholder:t,rows:3,onChange:d=>i(d.target.value),onBlur:l,"aria-label":e}):Ne("input",{type:"text",value:s,placeholder:t,onChange:d=>i(d.target.value),onBlur:l,onKeyDown:d=>{d.key==="Enter"&&d.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function qf({label:e,changed:o,onReset:t}){return Ne(ASe,{words:ce()?.panel,label:e,changed:o,onReset:t})}function USe({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=yj();return Ne(Yf,{label:e,labelId:s,icon:o,changed:t!==r,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Ne(bj,{checked:t,onChange:a,ariaLabelledBy:s}),Ne(qf,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}var zSe=fI.map(e=>({value:e,icon:Mu(e)}));function GSe(){let{theme:e}=fe(),o=ko(e).themes[0];return kc(o)??o?.accent??""}function Sj(){let{chat:e,setChat:o}=mI(),t=yj(),r=GSe(),a=e.launcherIcon?pI(e.launcherIcon):oc;return Vf(PSe,{children:[Ne(Yf,{label:c("Show the chat bubble"),labelId:t,icon:Ne(BSe,{}),changed:!e.enabled,action:Vf("span",{className:"inline-flex items-center gap-2",children:[Ne(bj,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Ne(qf,{label:c("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?c("The floating chat bubble shows in the corner of every page."):c("The chat bubble is hidden across the whole site.")}),Vf(xw,{title:c("Look"),children:[Ne(xt,{label:c("Button color"),icon:Ne(LSe,{}),changed:e.launcherColor!=="",value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:c("Site button color"),onChange:n=>o({launcherColor:n}),onReset:()=>o({launcherColor:""})}),Ne(Yf,{label:c("Icon"),icon:Ne(FSe,{}),value:Ne(qS,{value:a}),changed:a!==oc,action:Ne(qf,{label:c("Icon"),changed:a!==oc,onReset:()=>o({launcherIcon:""})}),children:Ne(OSe,{label:c("Icon"),value:a,options:zSe,onChange:n=>o({launcherIcon:n===oc?"":n})})}),Ne(Yf,{label:c("Position"),icon:Ne(DSe,{}),changed:e.launcherPosition!==Vs,action:Ne(qf,{label:c("Position"),changed:e.launcherPosition!==Vs,onReset:()=>o({launcherPosition:Vs})}),children:Ne(RSe,{options:[{label:c("Right"),id:"right"},{label:c("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:c("Position"),onChange:n=>o({launcherPosition:n})})}),Ne(xI,{label:c("Label"),value:e.launcherLabel,placeholder:c("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:c("Shows when a visitor points at the button")}),Ne(USe,{label:c("Show on phones"),icon:Ne(NSe,{}),checked:e.showOnPhones,fallback:uI.showOnPhones,onChange:n=>o({showOnPhones:n})})]}),Vf(xw,{title:c("Wording"),children:[Ne(xI,{label:c("Title"),value:e.title,placeholder:HSe,onCommit:n=>o({title:n})}),Ne(xI,{label:c("Subtitle"),value:e.subtitle,placeholder:WSe,onCommit:n=>o({subtitle:n})}),Ne(xI,{label:c("Greeting message"),value:e.greeting,placeholder:$Se,onCommit:n=>o({greeting:n}),multiline:!0}),Ne("p",{className:"es-field-hint",children:c("Leave a field blank to use the built-in wording.")})]})]})}import{jsx as qs,Fragment as $P,jsxs as Tj}from"react/jsx-runtime";import{useEffect as bwe,useId as vj,useState as kj}from"react";import{SettingsField as Swe}from"efficient-easel/panel";import{jsx as fwe}from"react/jsx-runtime";import{forwardRef as jSe,createElement as bP}from"react";var wj={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 pe=(e,o,t,r)=>{let a=jSe(({color:n="currentColor",size:s=24,stroke:i=2,title:l,className:d,children:f,...u},p)=>bP("svg",{ref:p,...wj[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,d].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:i,stroke:n},...u},[l&&bP("title",{key:"svg-title"},l),...r.map(([m,h])=>bP(m,h)),...Array.isArray(f)?f:[f]]));return a.displayName=`${t}`,a};var KSe=[["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"}]],SP=pe("outline","brand-facebook","BrandFacebook",KSe);var VSe=[["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"}]],wP=pe("outline","brand-instagram","BrandInstagram",VSe);var YSe=[["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"}]],CP=pe("outline","brand-line","BrandLine",YSe);var qSe=[["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"}]],vP=pe("outline","brand-linkedin","BrandLinkedin",qSe);var XSe=[["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"}]],kP=pe("outline","brand-pinterest","BrandPinterest",XSe);var ZSe=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],TP=pe("outline","brand-telegram","BrandTelegram",ZSe);var JSe=[["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"}]],PP=pe("outline","brand-tiktok","BrandTiktok",JSe);var QSe=[["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"}]],EP=pe("outline","brand-wechat","BrandWechat",QSe);var ewe=[["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"}]],_P=pe("outline","brand-whatsapp","BrandWhatsapp",ewe);var owe=[["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"}]],OP=pe("outline","brand-x","BrandX",owe);var twe=[["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"}]],AP=pe("outline","brand-youtube","BrandYoutube",twe);var rwe=[["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"}]],RP=pe("filled","brand-facebook-filled","BrandFacebookFilled",rwe);var awe=[["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"}]],LP=pe("filled","brand-instagram-filled","BrandInstagramFilled",awe);var nwe=[["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"}]],FP=pe("filled","brand-linkedin-filled","BrandLinkedinFilled",nwe);var swe=[["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"}]],BP=pe("filled","brand-pinterest-filled","BrandPinterestFilled",swe);var iwe=[["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"}]],NP=pe("filled","brand-tiktok-filled","BrandTiktokFilled",iwe);var lwe=[["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"}]],DP=pe("filled","brand-whatsapp-filled","BrandWhatsappFilled",lwe);var cwe=[["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"}]],MP=pe("filled","brand-x-filled","BrandXFilled",cwe);var dwe=[["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"}]],HP=pe("filled","brand-youtube-filled","BrandYoutubeFilled",dwe);var dfo="outline",gI={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},pwe={},WP={fillRule:"evenodd"},uwe=[["path",{...gI,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...WP,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],mwe=[["path",{...gI,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",{...pwe,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("")}]],hwe=[["path",{...gI,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",{...gI,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",{...WP,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",{...WP,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("")}]],xwe=pe("filled","brand-telegram-filled","BrandTelegramFilled",uwe),gwe=pe("filled","brand-line-filled","BrandLineFilled",mwe),Iwe=pe("filled","brand-wechat-filled","BrandWechatFilled",hwe),ywe={instagram:{outline:wP,solid:LP},facebook:{outline:SP,solid:RP},tiktok:{outline:PP,solid:NP},youtube:{outline:AP,solid:HP},x:{outline:OP,solid:MP},linkedin:{outline:vP,solid:FP},pinterest:{outline:kP,solid:BP},whatsapp:{outline:_P,solid:DP},telegram:{outline:TP,solid:xwe},line:{outline:CP,solid:gwe},wechat:{outline:EP,solid:Iwe}};function Cj({platform:e,iconStyle:o,size:t}){let r=ywe[e][o];return fwe(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var wwe={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 Cwe({platform:e}){let{rows:o,saveLink:t}=Kf(),{value:r,error:a}=o[e],[n,s]=kj(r),[i,l]=kj(!1),d=vj(),f=vj();bwe(()=>s(r),[r]);let u=async()=>{if(n.trim()===r){n!==r&&s(r);return}l(!0),await t(e,n),l(!1)},p=LO[e];return Tj($P,{children:[qs(Swe,{label:c(p),htmlFor:d,icon:qs(Cj,{platform:e,iconStyle:"outline",size:18}),children:qs("input",{id:d,type:"text",inputMode:"url",value:n,placeholder:wwe[e],onChange:m=>s(m.target.value),onBlur:()=>{u()},onKeyDown:m=>{m.key==="Enter"&&m.currentTarget.blur(),m.key==="Escape"&&(s(r),m.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?f:void 0,"aria-busy":i||void 0,autoComplete:"off",spellCheck:!1})}),a&&qs("p",{id:f,className:"sf-note sf-note--error",role:"alert",children:a})]})}function Pj({unavailable:e}){let{canSave:o}=Kf();return!o&&e?qs($P,{children:e}):Tj($P,{children:[qs("p",{className:"es-field-hint",children:c("Paste a link to each profile. A platform left empty shows nothing on the site.")}),gu.map(t=>qs(Cwe,{platform:t},t))]})}import{jsx as Js,Fragment as qwe,jsxs as Xwe}from"react/jsx-runtime";import{useId as Zwe,useMemo as Jwe}from"react";import{useEasel as Qwe}from"efficient-easel/easel";import{SettingsField as eCe,SettingsSwitch as oCe}from"efficient-easel/panel";import{EyeIcon as tCe}from"efficient-easel/icons";import{fieldShownInView as rCe}from"efficient-easel/fields";import{usePreviewDevice as aCe}from"efficient-easel/draw/client";import{jsx as Zs,Fragment as Twe}from"react/jsx-runtime";import{createContext as Pwe,useContext as Ewe,useLayoutEffect as _we,useMemo as _j,useRef as Owe,useState as Oj}from"react";import{useEasel as Aj,useSelectedFields as Awe}from"efficient-easel/easel";import{fieldShownInView as Rwe,Inspector as Lwe,LEAD_BAND_KEY as Fwe,planFields as Rj}from"efficient-easel/fields";function Ej({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{jsx as vwe}from"react/jsx-runtime";import{EmptyState as kwe}from"efficient-shell/ui";function Xs(){return vwe(kwe,{variant:"none",icon:!1,message:c("These settings apply to every view.")})}import{usePreviewDevice as Bwe}from"efficient-easel/draw/client";import{deviceField as Nwe}from"efficient-easel/screen/lib/document/device-fields";var Dwe="Text",UP=new Map,II=new Set,Mwe=Object.fromEntries(Uf.map(e=>{let o=oB[e];return[e,Zs(o,{},e)]})),Lj=Pwe(null),Hwe={_partBody:Nwe("each",{type:"custom",render:()=>Zs(Wwe,{})})};function Wwe(){return Zs(Twe,{children:Ewe(Lj)})}function Or({entries:e,entryCount:o=0,part:t=null,omit:r,motion:a,body:n,itemWord:s}){let{id:i,fields:l,values:d,readOnly:f,onChange:u}=Awe(),p=_j(()=>a?{...d,...a.values}:d,[d,a?.values]),m=(ee,_e)=>a?.keys.has(ee)?a.onChange(ee,_e):u(ee,_e),h=Bwe(),{appState:I,config:w}=Aj(ee=>ee),S=K1(h,w,I.data.content??[],I.ui.itemSelector),v=n===void 0?hH(l,t):Hwe,b=_j(()=>{let ee=r?.length?Object.fromEntries(Object.entries(v).filter(([_e])=>!r.includes(_e))):v;return a?{...ee,...a.fields}:ee},[v,r,a?.fields]),y=gb(b,p,S),[k,F]=Oj(()=>new Set(II)),T=Rwe({},h),D={key:Fwe,title:Dwe},P=Aj(ee=>ee.selectedItem)!==null,L=a?.part??t??"",C=`${i}:${L}:${String(h)}`,[A,E]=Oj(()=>({tab:UP.get(C)})),R=`${i}:${L}`,W=Owe(null),U={...S,node:p},Z=Rj(y,{values:p,context:U}).buckets,V=Ej({allTabs:P,remembered:UP.get(C),inherited:W.current?.panel===R?W.current.tab:A.tab,buckets:Z,hasText:T&&o>0}),de=!T&&!Z.includes(V)&&(Rj(gb(b,p,{...S,device:"desktop"}),{values:p,context:{...U,device:"desktop"}}).buckets.includes(V)||V==="Design"&&o>0);_we(()=>{W.current={panel:R,tab:V}});let Ce=V==="Design";return Zs(Lj.Provider,{value:n??null,children:Zs(Iw.Provider,{value:a?p:null,children:Zs(Lwe,{fields:y,values:p,onChange:m,readOnly:f,allTabs:P,showWhenContext:U,context:{itemWord:s},tab:V,onTab:ee=>{UP.set(C,ee),E({tab:ee})},tabIcons:Mwe,idPrefix:i,ariaLabel:c("Section settings"),lead:Ce?e:null,leadFold:D,closedFolds:k,onFold:(ee,_e)=>{_e?II.delete(ee):II.add(ee),F(new Set(II))},children:de&&Zs(Xs,{})})})})}import{useMemo as $we}from"react";import{useEasel as Uwe}from"efficient-easel/easel";import{useSectionOps as zwe}from"efficient-easel/screen/lib/document/use-section-ops";var Fj=new Map,Gwe=e=>{let o=Fj.get(e);return o||Fj.set(e,o=Qg(Zg(e),`part:${e}`)),o},jwe=new Set(rv);function tc(e,o,t){let{getItemById:r,getSelectorForId:a}=Uwe(f=>f),n=zwe(),s=r(e)?.props??{},i=ws(s,o),l=JSON.stringify(i),d=$we(()=>Object.fromEntries(rv.map(f=>[f,i[f]])),[l]);return{part:o,fields:Gwe(t),values:d,keys:jwe,onChange:(f,u)=>{let p=a(e),m=r(e);if(!p||!m)return;let h=GM(m.props??{},o,f,u);n.replaceComponent(p.zone,p.index,{...m,props:h})}}}import{Fragment as Kwe,createElement as Vwe}from"react";import{deviceField as zP}from"efficient-easel/screen/lib/document/device-fields";var Yo=()=>({type:"custom",render:()=>Vwe(Kwe)});var GP={words:Yo(),sourceNote:Yo(),style:Yo(),font:Yo(),italic:Yo(),fontSize:zP("each",Yo()),lineHeight:Yo(),letterSpacing:Yo(),paragraphSpacing:Yo(),padding:Yo(),align:zP("each",Yo()),letterCase:Yo(),fixedSizeHint:zP("each",Yo()),regionNote:Yo(),regionStyle:Yo()},Ywe=["fontSize","align"];function Bj(e){return Ywe.includes(e)}var Nj={showTicker:Yo(),items:Yo()};var nCe="root:default-zone";function Dj({heroId:e}){let{appState:o,dispatch:t}=Qwe(m=>m),r=o.data.content??[],a=r.findIndex(m=>m.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,i=Jwe(()=>{let m=n?.props.tickerItems;return Array.isArray(m)?m:QH.map(h=>({text:h}))},[n]),l=Zwe(),d=aCe(),f=m=>rCe(Nj[m],d),u=tc(e,e4,"block");if(!n)return Js("p",{className:"sf-note",children:c("This ticker\u2019s hero is no longer on the page.")});let p=m=>t({type:"replace",destinationZone:nCe,destinationIndex:a,data:{...n,props:{...n.props,...m}}});return Js(Or,{motion:u,body:Xwe(qwe,{children:[!f("showTicker")&&!f("items")&&Js(Xs,{}),f("showTicker")&&Js(eCe,{label:c("Show ticker"),labelId:l,icon:Js(tCe,{}),action:Js(oCe,{checked:s,onChange:m=>p({showTicker:m}),ariaLabelledBy:l})}),f("items")&&Js(Cw,{label:ww.label,icon:ww.icon,items:i,placeholder:"item",onChange:m=>p({tickerItems:m}),markup:!0})]})})}import{jsx as te,Fragment as Jf,jsxs as nr}from"react/jsx-runtime";import{useContext as yCe,useEffect as jP,useRef as bCe,useState as Yj}from"react";import{FieldSelect as SCe,InspectorField as wCe,fieldShownInView as CCe}from"efficient-easel/fields";import{InertHint as rK,SettingsField as vCe}from"efficient-easel/panel";import{InspectorUpLevel as vI}from"efficient-easel/chrome";import{StylesIcon as kCe,TypeIcon as TCe}from"efficient-easel/icons";import{useEasel as PCe}from"efficient-easel/easel";import{TextPartPanel as qj}from"efficient-easel/copy";import{Button as ECe,IconButton as _Ce,Tooltip as OCe}from"efficient-shell/ui";import{jsx as Wj,jsxs as sCe}from"react/jsx-runtime";import{DEFAULT_EASEL_STRINGS as iCe}from"efficient-easel/strings";import{COPY_CELLS as rc,COPY_CELL_LENGTHS as Mj,CopyBox as lCe,lengthCellUnits as cCe}from"efficient-easel/copy";import{PaddingYIcon as dCe}from"efficient-easel/icons";import{onDesktopWords as fCe}from"efficient-easel/screen/lib/document/box-fields";var Hj=iCe.copy.cells,pCe={kind:"spacing"},uCe=["left","center","right","justify"];function yI(e,o,t,r="desktop"){let a=_d(e),n=uC(r),s=e[n]??e.size??o.sizePx,i=UN(e,r),l=(f,u,p,m,h)=>{let I=Kt[p];return cCe({preset:f,row:u,table:Ia,unit:e[I],value:e[p],tier:r,styleValue:m,label:c(h),onPick:(w,S)=>t({[I]:w??null,[p]:S??null}),onChange:(w,S)=>t({...S?{[I]:S.unit??null}:{},[p]:w??null})})},d={key:"padding",name:c("Padding"),icon:Wj(dCe,{}),unit:"px",step:cC,shiftStep:10,min:iC,max:lC};return[{...rc.fontSize,key:"fontSize",value:e[n],styleValue:Math.round(o.sizePx),onChange:f=>t({[n]:f??null}),...l(rc.fontSize,Mj.fontSize,n,Math.round(o.sizePx),Hj.fontSize),...n==="size"?{}:{reset:{detail:i?fCe(f=>c(f),`${i.px}px`,i.view):void 0}}},{...rc.lineHeight,key:"lineHeight",value:a.lineHeight,styleValue:o.lineRatio,onChange:f=>t(f===void 0?{lineHeight:null,line:null}:{lineHeight:f})},{...rc.letterSpacing,key:"letterSpacing",scale:s,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:f=>t(f===void 0?{letterSpacing:null,letter:null}:{letterSpacing:f})},{...rc.paragraphSpacing,key:"paragraphSpacing",value:e.paragraphSpacing,styleValue:0,onChange:f=>t({paragraphSpacing:f??null}),...l(rc.paragraphSpacing,Mj.paragraphSpacing,"paragraphSpacing",0,Hj.paragraphSpacing)},{...d,value:e.padding,styleValue:o.paddingPx,onChange:f=>t({padding:f??null}),...l(d,pCe,"padding",o.paddingPx,"Padding")}]}function $j({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:i,colors:l,placeholder:d,ariaLabel:f,head:u,typedOnCanvas:p=!1}){let m=yI(n,s,i),h=Ww(r,t);return sCe("div",{className:"sf-part-textbox",children:[u,Wj(lCe,{value:e,onChange:o,multiline:t,placeholder:d,ariaLabel:f,rules:Cp,tools:h,barShows:p?"focus":"always",colors:r?l:[],colorNameOf:Pt,align:a?{value:n.align??s.align,allow:uCe,onChange:I=>i({align:I})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:I=>i({case:I||null})}:void 0,cells:a?m:void 0})]})}import{UiIcon as Xj}from"efficient-easel/draw/client";import{jsx as bI,Fragment as mCe,jsxs as hCe}from"react/jsx-runtime";import{Button as Uj,Dialog as xCe}from"efficient-shell/ui";function zj({styleName:e,onCancel:o,onConfirm:t}){return bI(xCe,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:c("Update {style}?",{style:e}),footer:hCe(mCe,{children:[bI(Uj,{variant:"secondary",onClick:o,children:c("Cancel")}),bI(Uj,{variant:"primary",onClick:t,children:c("Update style")})]}),children:bI("p",{children:c("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 ACe}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as RCe}from"efficient-easel/draw/client";import{shownTier as wI}from"efficient-easel/screen/lib/document/device-fields";import{TEXT_FIELD_MARKER as LCe,viewKeyAt as FCe}from"efficient-easel/draw";import{useSectionOps as BCe}from"efficient-easel/screen/lib/document/use-section-ops";import{useEaselHost as NCe}from"efficient-easel/screen/lib/host";function gCe(e){let o=new Set([...Object.keys($(nm,e)??{}),...$(sm,e)??[]]);for(let[t,r]of Object.entries($(Ub,e)??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var ICe={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},Gj={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},jj="Open",Kj={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 ac(e){let o=e?.source?.slug;return be(o)}function Xf(e){return $(ICe,e)??null}function Vj(e,o){let t=Xf(e);return t&&gCe(e).includes(o)?t:null}function SI(e){let o=e?.menu?.id;return be(o)}function KP(e){return e?c(e):null}function Zj(e){return e.kind==="role"?XI[e.role]:e.kind==="custom"?"Custom":null}function DCe(e){let o=aa(e.role);return o?{kind:"role",role:o}:null}function MCe(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 CI(e,o,t,r){return DCe(ms(e,o))??MCe(t,r)}function HCe(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}function Jj(e){return[{value:Zf,label:c("No style"),description:c("Section\u2019s own")},...e.map(o=>({value:o.id,label:o.name,description:o.values.font?li(o.values.font)?.label:void 0}))]}var Zf="";function WCe({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:Zf,a=[{label:c("No style"),value:Zf},...j0.map(n=>({label:c(XI[n]),value:n}))];return te(SCe,{ariaLabel:c("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===Zf?null:n),renderOption:n=>n.value===Zf?nr(Jf,{children:[te("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),te("span",{className:"sf-part-style-aside","aria-hidden":"true",children:c("Section\u2019s own")})]}):te("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>te("span",{style:{fontFamily:o?.fontKey?`var(${li(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:KP(Zj(e))}),valueText:n=>KP(Zj(e))??n?.label??""})}var aK=["regionNote","regionStyle"],$Ce=Object.keys(GP).filter(e=>!aK.includes(e));function nK(e,o){return!e.some(o)}function UCe({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a,tabs:n}){let s=nr(Jf,{children:[t,r,a]});return nr("div",{className:"sf-part-panel",children:[te(vI,{inline:!0,name:c(e),onSelect:o}),n?n(s):s]})}function kI({source:e,slug:o,menuId:t}){let r=NCe(),a=Kj[e],n=!a.needsSlug||!!o;return te("div",{className:"sf-note sf-note--source",children:nr(rK,{children:[c(Gj[e]),n?nr(Jf,{children:[" ",te(ECe,{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:c(jj)})]}):null]})})}var Qj=4,zCe=120;function eK(e){return c("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:c(e.label).toLowerCase()})}function oK({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:i,shows:l,sizedStyle:d,ownLook:f}){let u=e.follows;return nr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c(e.label)})}),l("regionNote")&&!f&&te("p",{children:o?c("Its size follows Styles \u25B8 {follows} \u2014 {px}px right now.",{follows:c(u),px:Math.round(o)}):c("Its size follows Styles \u25B8 {follows}.",{follows:c(u)})}),d?nr(Jf,{children:[d,l("regionStyle")&&te("p",{className:"es-field-hint",children:eK(e)})]}):a?l("regionStyle")?te(Jf,{children:te(vCe,{label:c("Style"),icon:te(kCe,{}),hint:eK(e),children:te(WCe,{face:t,base:r,onPick:a})})}):null:l("regionNote")&&te("p",{className:"es-field-hint",children:c("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n&&l("sourceNote")?te(kI,{source:n,slug:s}):null,nK([...aK,"sourceNote",...d?["fontSize"]:[]],p=>l(p)&&(p!=="sourceNote"||!!n))&&te(Xs,{}),te(vI,{inline:!0,name:c("Page"),onSelect:i})]})}function GCe({onBack:e}){return nr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c("This part is no longer here.")})}),te("p",{children:c("The section it belonged to has been changed or removed.")}),te(vI,{inline:!0,name:c("Page"),onSelect:e})]})}function jCe({onBack:e,partId:o,why:t}){return nr("div",{className:"sf-note",children:[te("p",{children:te("strong",{children:c("This part's settings did not open.")})}),te("p",{children:c("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.")}),te("p",{className:"sf-note-detail",children:nr("code",{children:[o," \u2014 ",t]})}),te(vI,{inline:!0,name:c("Page"),onSelect:e})]})}function sK({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=PCe(X=>X),i=BCe(),l=JB(),{partStyle:d}=zl(),{fonts:f,textStyles:u}=fe(),p=yCe(ACe),m=!p?.capabilities?.hasSiteTheme,{persist:h}=Wi({themeFromDocument:m,tokenRef:p?.tokenRef,siteId:p?.siteId??null}),I=Rh({themeFromDocument:m,persist:h}),[w,S]=Yj(!1),v=RCe(),b=X=>(wI(v)!=="tablet"||Bj(X))&&CCe(GP[X],v),y=bCe(null),k=a(e),F=n(e),T=k?s.components[k.type]:void 0,{key:D,row:P}=wr(o),L=T?.fields?.[D],C=P?il(L,P):L,A=qr(e,o),E=k?.props??{},R=sl(C),W=Vm(C),U=_w(C),Z=k?Xf(k.type):null,V=k?Vj(k.type,D):null,de=P?gd(E[D],P):E[D],Ce=!!P&&!(Array.isArray(E[D])&&P.index<E[D].length);jP(()=>{ZB(document)||y.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[A]);let[ee,_e]=Yj(0);jP(()=>_e(0),[A]);let Oe=!!k&&!Ce&&(!F||!C);jP(()=>{if(!Oe||ee>=Qj)return;let X=setTimeout(()=>_e(mo=>mo+1),zCe);return()=>clearTimeout(X)},[Oe,ee]);let Ee=Oe&&ee<Qj,Fe=tc(e,ka(k?.type,o),"textPart");if(!k||Ce)return te(GCe,{onBack:t});let No=Gl(k.type),qo=No?Cc(No,o):null;if(No&&qo){let X=d?.partId===A?d:null,mo=No[qo],ir=mo.writable===!0&&!!F,Ba=Tn=>{F&&i.replaceComponent(F.zone,F.index,{...k,props:hs(E,o,"role",Tn)})};if(ir&&qE(mo)){let Tn=ms(E,o),O0=Pn=>{if(!F)return;let YI=E;for(let[XV,ZV]of Object.entries(Pn))YI=hs(YI,o,XV,ZV??null);i.replaceComponent(F.zone,F.index,{...k,props:YI})},VV=Ca(I.saved,I.old),YV=sC(Tn)??"",qV=yI(Tn,X?.base??tK,O0,wI(v)).filter(Pn=>Pn.key==="fontSize"&&b(Pn.key));return te(Or,{motion:Fe,body:te(oK,{region:mo,sizePx:X?.base.sizePx??null,face:CI(E,o,X,f),base:X?.base??null,source:Z,slug:ac(E),onBack:t,shows:b,ownLook:YN(Tn),sizedStyle:te(qj,{style:b("style")?{value:YV,options:Jj(VV),onChange:Pn=>O0(Pn?{textStyle:Pn}:{textStyle:null,role:null}),onEditStyles:r}:void 0,cells:qV})})})}return te(Or,{motion:Fe,body:te(oK,{region:mo,sizePx:X?.base.sizePx??null,face:CI(E,o,X,f),base:X?.base??null,onFollowStyle:ir?Ba:void 0,source:Z,slug:ac(E),onBack:t,shows:b})})}if(!F||!C)return Ee?te("div",{className:"sf-note","aria-busy":"true"}):te(jCe,{onBack:t,partId:A,why:F?"no field":"no selector"});let Xo=X=>{i.replaceComponent(F.zone,F.index,{...k,props:X})},Co=X=>{if(tn(X).hidden!==tn(de).hidden||!R){let mo=P?Tw(E,D,P,X):{...E,[D]:X};mo&&Xo(mo);return}th({node:k,propKey:o,kind:R,zone:F.zone,index:F.index},tn(X).text,i.replaceComponent)},Do=de,vo=d?.partId===A?d:null,ue=vo?.styleOwner,eo=ue?a(ue.owner):null,G=ue&&eo?n(ue.owner):null,Ae=!!(ue&&eo&&G),le=Ae?eo.props??{}:E,io=Ae?X=>i.replaceComponent(G.zone,G.index,{...eo,props:X}):Xo,oo=Ae?ue.kind:ka(k?.type,o),rt=ms(le,oo),Xe=[{partKey:oo,face:CI(le,oo,vo,f),sizeGroup:vo?.sizeGroup??null,base:vo?.base??tK,style:rt}],Mo=HCe(Xe,X=>X.sizeGroup),Lr=Bi(vo?.inks),dt=(X,mo)=>{let ir=le;for(let Ba of Xe)ir=hs(ir,Ba.partKey,X,mo);io(ir)},VI=X=>X?dt("textStyle",X):dc({textStyle:null,role:null}),dc=X=>{let mo=le;for(let ir of Xe)for(let[Ba,Tn]of Object.entries(X))mo=hs(mo,ir.partKey,Ba,Tn??null);io(mo)},ti=R==="text"||R==="textarea",{text:ri,hidden:ta}=tn(de),Fa=C?.[LCe]?.label??o,wn=ta?c("Show {label} on the slide",{label:c(Fa)}):c("Hide {label} on the slide",{label:c(Fa)}),fc=nr("div",{className:"sf-field-head",children:[te(TCe,{}),te("span",{className:"sf-field-label sf-field-label--inline",children:c(Fa)}),ti&&te(OCe,{content:wn,children:te(_Ce,{"aria-pressed":ta,"aria-label":wn,onClick:()=>Co({text:ri,hidden:!ta}),children:ta?te(Xj,{name:"eye-off",size:14}):te(Xj,{name:"eye",size:14})})})]}),Cn=!W&&U,hp=!!R&&(QF(C)||W||ta||!U),pc=CI(le,oo,vo,f),xp=pc.kind==="role"?pc.role:null,vn=sC(rt)??mD(xp),_0=Ca(I.saved,I.old),UV=Object.entries(rt).filter(([X,mo])=>X!=="role"&&X!=="textStyle"&&mo!==void 0).length,zV=()=>{let X=le;for(let mo of Xe){let{role:ir,textStyle:Ba}=mo.style;X=WN(X,mo.partKey),ir&&(X=hs(X,mo.partKey,"role",ir)),Ba&&(X=hs(X,mo.partKey,"textStyle",Ba))}io(X)},kn=vn,GV=hD(Xe[0].style),jV=kn?_0.find(X=>X.id===kn)?.name??kn:"",KV=()=>{S(!1),kn&&(I.write(xD({saved:I.saved,old:I.old,styleId:kn,values:EC(Xe[0].style)}),!0),zV())};return nr(UCe,{sectionName:T?.label??k.type,onBack:t,tabs:X=>te(Or,{motion:Fe,body:X}),textEditor:b("words")?te("div",{ref:y,className:"sf-part-text",children:hp?te($j,{text:ri,onTextChange:X=>Co(ti?{text:X,hidden:ta}:X),multiline:Xm(R),markup:R!=="plainText",styled:!1,style:Xe[0].style,base:Xe[0].base,setValue:dc,colors:Lr,placeholder:KP(TB(C))??void 0,ariaLabel:c(Fa),head:fc,typedOnCanvas:l===A}):R?ti?fc:null:te(wCe,{field:C,name:o,value:Do,onChange:Co,id:`sf-part-${e}-${o}`})}):void 0,children:[V&&b("sourceNote")&&te(kI,{source:V,slug:ac(E),menuId:SI(E)}),Cn&&te(qj,{style:b("style")?{value:vn??"",options:Jj(_0),onChange:X=>VI(X||null),changed:UV>0,onEditStyles:r,onUpdateStyle:kn&&GV?()=>S(!0):void 0}:void 0,font:b("font")?{value:rt.font??"",styleValue:li(Xe[0].base.fontKey)?.label,options:Na.map(X=>({label:X.label,value:X.key})),onChange:X=>dt("font",X||null)}:void 0,italic:b("italic")?{value:rt.italic,styleValue:VCe(u,vn),onChange:X=>dt("italic",X??null)}:void 0,cells:yI(Xe[0].style,Xe[0].base,dc,wI(v)).filter(X=>b(X.key)),align:b("align")?KCe(rt,Xe[0].base.align,wI(v),dt):void 0,letterCase:b("letterCase")?{value:rt.case??"",styleValue:Xe[0].base.case,onChange:X=>dt("case",X||null)}:void 0}),w&&kn&&te(zj,{styleName:jV,onCancel:()=>S(!1),onConfirm:KV}),Cn&&Mo===null&&b("fixedSizeHint")&&te(rK,{children:c("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")}),nK($Ce,X=>b(X)&&(X==="words"||(X==="sourceNote"?!!V:X==="fixedSizeHint"?Cn&&Mo===null:Cn)))&&te(Xs,{})]})}function KCe(e,o,t,r){let a=FCe("align",t),n=$N(e,t);return{value:e[a]??"",styleValue:n??o,onChange:s=>r(a,s||null)}}function VCe(e,o){return!o||!Array.isArray(e)?!1:e.find(t=>t?.id===o)?.values?.italic===!0}var tK={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0};import{jsx as Ar,jsxs as JP,Fragment as QCe}from"react/jsx-runtime";import{useCallback as eve,useRef as ove,useState as op}from"react";import{InspectorIconButton as tve}from"efficient-easel/chrome";import{useEasel as rve}from"efficient-easel/easel";import{PopupMenu as ave,PopupMenuItem as nve,PopupMenuLabel as RI}from"efficient-shell/ui";import{CopyToPageIcon as sve}from"efficient-easel/icons";import{useEaselSession as ive}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as lve}from"efficient-easel/screen/lib/document/section-doc";import{FOOTER_TYPE as cve}from"efficient-easel/draw";import{isBackendError as nc}from"efficient-easel/screen/lib/backend-error";import{isEfficientBackend as xK}from"efficient-easel/screen/lib/session";var TI=wu(),VP=TI.set;function PI(e,o){VP(e,o)}function EI(e,o){let t=TI.get(e);VP(e,o??(t==="live"?"changed":t))}function _I(e,o){VP(e,o??"live")}function iK(e){return TI.get(e)}function lK(e){return TI.use(e)}function cK(e,o){return e==="live"&&o?"changed":e}function YP({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?c("Changes not live yet"):e==="never"?c("Never published"):r?c("Header and footer not live yet"):e==="live"?c("Everything is live"):null;return{label:c("Publish"),tooltip:e==="never"?c("Put this page on your site"):c("Put your changes on your site"),status:s,quiet:n?{label:c("Published"),reason:c("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function dK(e){return e.map(o=>o.change==="take_down"?c("{name} (taken down)",{name:o.name}):o.name)}var fK="SharedSection",YCe=/^[0-9a-f]{8}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{12}$/i,Qf=e=>{let o=e?.content;return Array.isArray(o)?o:[]},ep=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0};function pK(e){if(e?.type!==fK)return null;let o=e.props?.section;return typeof o=="string"&&YCe.test(o)?o.toLowerCase():null}function uK(e){let o=[];for(let t of Qf(e)){let r=pK(t),a=ep(t);r&&a&&o.push({refId:a,section:r})}return o}function OI(e){let o=Qf(e)[0];return o&&typeof o=="object"&&ep(o)?o:null}function qCe(e,o){return{type:fK,props:{id:e,section:o}}}function mK(e,o){let t=new Map,r=new Set,a=!1,n=Qf(e).map(s=>{let i=pK(s),l=ep(s);if(!i||!l||r.has(i))return s;let d=OI(o.get(i)),f=ep(d??void 0);return!d||!f||t.has(f)?s:(r.add(i),t.set(f,{section:i,refId:l,reference:s}),a=!0,d)});return{working:a?{...e,content:n}:e,held:t}}function hK(e,o,t){let r=new Map,a=!1,n=Qf(e).map(s=>{let i=ep(s),l=i?o.get(i):void 0,d=l?t.get(l.section):void 0;if(!l||!d||r.has(l.section))return s;let f=Qf(d).slice(1),u=OI(d);return r.set(l.section,u===s?d:{...d,content:[s,...f]}),a=!0,l.reference??qCe(l.refId,l.section)});return{page:a?{...e,content:n}:e,docs:r}}function ZP(e){return!!(e?.publish&&e.liveState)}function XCe(e,o){if(!ZP(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,i)=>r.call(e,s,i,o),restore:(s,i)=>a.call(e,s,i??{},o),preview:s=>n.call(e,s,o)}}function ZCe(e,o){return async(t,r)=>{try{await SR()}catch(a){throw new Error(c("A change waiting to go live could not be saved."),{cause:a})}return(await e.publish(o)).state==="live"?cm({state:"live",changes:[]}):ma(0),{version:r??null}}}function XP(e,o,t){let r=o?{siteId:o}:void 0;return{resolve:a=>e.load({slug:a,...r}).then(n=>(n&&(PI(n.id,n.live),w1(n.id,n.videoFrames)),n)),saveLayout:(a,n,s,i)=>e.save(a,{layout:n},{version:s,clientId:i??""}).then(l=>(EI(a,l.live),C1(a,l.videoFrames),ma(),l)),rereadVersion:e.version?a=>e.version(a):void 0,publish:ZP(t)?ZCe(t,r):e.publish?(a,n)=>e.publish(a,n?{version:n}:void 0).then(s=>(_I(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 JCe(e,o,t,r,a=!1){let n=null,s=new Set,i=!1,l=new Map,d=new Map,f=new Map,u=new Map,p={docId:null,lockHolder:null,conflict:null,saveFailed:!1,unpublished:!1,loadFailed:!1,sections:[]},m=new Set,h=()=>{if(!n)return!1;let P=iK(n.id);return P==="changed"||P==="never"||P===void 0&&i},I=P=>{p={...p,...P,docId:n?.id??null,unpublished:h(),sections:[...f.values()]};for(let L of m)L()},w=(P,L,C)=>{L?f.set(P,{section:P,title:l.get(P)?.title??"",problem:L,holder:C}):f.delete(P)},S=P=>P&&typeof P=="object"&&!Array.isArray(P)?P:{},v=P=>s.has(P),b=()=>new Map([...l].map(([P,L])=>[P,L.layout])),y=()=>`SharedSection-${typeof crypto<"u"&&crypto.randomUUID?crypto.randomUUID():Math.random().toString(36).slice(2)}`,k=(P,L,C,A)=>{let E=S(L);l.set(P,{layout:E,version:C,savedJson:JSON.stringify(E),title:A})},F={state:()=>p,subscribe:P=>(m.add(P),()=>{m.delete(P)})},T={sectionOf:P=>d.get(P)?.section??null,heldElsewhere:P=>{let L=d.get(P)?.section;return!!(L&&f.get(L)?.problem==="lock")},adopt:(P,L)=>{k(L.id,L.layout,L.layout_updated_at,L.title),d.set(P,{section:L.id,refId:y()}),u.set(L.id,L.used_on),I({})},place:P=>{if([...d.values()].some(A=>A.section===P.id))return null;let L=OI(S(P.layout)),C=typeof L?.props?.id=="string"?L.props.id:null;return!L||!C||!L.type?null:(k(P.id,P.layout,P.layout_updated_at,P.title),d.set(C,{section:P.id,refId:y()}),u.set(P.id,P.used_on),L)},usedOn:P=>u.get(P)??null,learn:P=>{for(let L of P){u.set(L.id,L.used_on);let C=l.get(L.id);C&&(C.title=L.title);let A=f.get(L.id);A&&f.set(L.id,{...A,title:L.title})}I({})}},D=async(P,L)=>{for(let[C,A]of P){let E=l.get(C),R=JSON.stringify(A);if(!(!E||R===E.savedJson||f.get(C)?.problem==="lock"))try{let W=await e.save(C,{layout:A},{version:E.version,clientId:L??""});EI(C,W.live),E.layout=A,E.version=W.version,E.savedJson=R,w(C,null)}catch(W){nc(W,"changed-elsewhere")?w(C,"conflict"):nc(W,"lock-taken")?w(C,"lock",W.holder??void 0):w(C,"save")}}P.size&&ma(),I({})};return{resolve:async P=>{if(KT(P===hr?null:F),ob(P===hr?null:T),l=new Map,d=new Map,f=new Map,u=new Map,P===hr)return t.resolve(P);let L=!1,[C,A]=await Promise.all([t.resolve(P),e.load({slug:hr,...o}).catch(()=>(L=!0,null))]);if(A&&!Jc(C?.layout)){PI(A.id,A.live);let V=S(A.layout);n={id:A.id,layout:V,version:A.version,savedJson:""}}else n=null;if(i=!1,!C)return I({conflict:null,saveFailed:!1,loadFailed:L}),C;let E=S(C.layout),R=uK(E),W=await Promise.all(R.map(V=>e.load({id:V.section,...o}).catch(()=>null)));R.forEach((V,de)=>{let Ce=W[de];Ce?(PI(Ce.id,Ce.live),k(V.section,Ce.layout,Ce.version,"")):(l.delete(V.section),f.set(V.section,{section:V.section,title:"",problem:"load"}))});let U=mK(E,b());if(d=U.held,!n)return d.size&&s.add(C.id),I({conflict:null,saveFailed:!1,loadFailed:L}),d.size?{...C,layout:U.working}:C;let Z=g1(U.working,n.layout);return n.savedJson=JSON.stringify(eb(Z,n.layout).chrome),s.add(C.id),I({conflict:null,saveFailed:!1,loadFailed:!1}),{...C,layout:Z}},saveLayout:async(P,L,C,A)=>{if(!v(P))return t.saveLayout(P,L,C,A);let E=n,R=E?eb(L,E.layout):{page:L,chrome:null},W=hK(R.page,d,b()),U=await t.saveLayout(P,W.page,C,A);if(await D(W.docs,A),!E)return U;let Z=JSON.stringify(R.chrome);if(!R.chrome||Z===E.savedJson||p.lockHolder)return U;try{let V=await e.save(E.id,{layout:R.chrome},{version:E.version,clientId:A??""});EI(E.id,V.live),ma(),E.layout=R.chrome,E.version=V.version,E.savedJson=Z,i=!0,I({conflict:null,saveFailed:!1})}catch(V){nc(V,"changed-elsewhere")?I({conflict:V.conflict??{savedBy:"",savedByYou:!1,secondsAgo:0}}):nc(V,"lock-taken")?I({lockHolder:V.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}}):I({saveFailed:!0})}return U},publish:t.publish?async(P,L)=>{let C=await t.publish(P,L),A=n;if(A&&v(P)&&!a&&e.publish&&h()&&!p.lockHolder){let E=await e.publish(A.id,A.version?{version:A.version}:void 0);_I(A.id,E.live),E.version!==null&&(A.version=E.version),i=!1,I({})}if(v(P)&&!a&&e.publish)for(let[E,R]of l){if(f.get(E)?.problem==="lock")continue;let W=await e.publish(E,R.version?{version:R.version}:void 0);_I(E,W.live),W.version!==null&&(R.version=W.version)}return C}:void 0,lock:r?{claim:async(P,L,C)=>{let A=await r.claim(P,L,C);if(!v(P))return A;let E=n;if(E)try{await r.claim(E.id,L,!1),p.lockHolder&&I({lockHolder:null})}catch(R){nc(R,"lock-taken")&&I({lockHolder:R.holder??{name:"",secondsSinceSeen:0,secondsSinceHeld:0}})}for(let R of l.keys())try{await r.claim(R,L,!1),f.get(R)?.problem==="lock"&&w(R,null)}catch(W){nc(W,"lock-taken")&&w(R,"lock",W.holder??void 0)}return l.size&&I({}),A},release:async(P,L)=>{if(await r.release(P,L),!v(P))return;let C=n;C&&!p.lockHolder&&await r.release(C.id,L).catch(()=>{});for(let A of l.keys())f.get(A)?.problem!=="lock"&&await r.release(A,L).catch(()=>{})}}:void 0,pinnedChrome:F}}function AI(e){let o=(t,r,a)=>e.save(t,r.layout?{...r,layout:VO(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 $uo(e,o,t){return e.update(o,YO(t))}function Uuo(e,o=Ge(),t=lT(),r={}){let a=xK(o),n=e?{siteId:e}:void 0,s=a?!!e:!0,i=o.site.update,l=a&&t.commerce&&t.service,d=!!r.editsPinnedInPlace&&l,f=ZP(o.site)?o.site:void 0,u=AI(o.pages),p=XP(u,e,f),m=d?JCe(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:l,editsPinnedInPlace:d,explainsSiteSettings:!1,hasSiteRecord:s,canEditSiteRecord:s&&!!i,hasPreviewLink:a||!!o.preview,hasCatalog:a&&t.commerce,hasForms:a&&t.service,hasBlog:!!o.blog&&t.service,offersCommerce:t.commerce,offersService:t.service},...p,...gK(p.resolve),lock:o.lock,...m,site:s?()=>o.site.get(n):void 0,siteLiveState:f?()=>f.liveState(n):void 0,siteVersions:XCe(f,n),updateSite:s&&i?h=>i(h,n):void 0,previewHref:o.preview?h=>o.preview.href(h):void 0}}function zuo(e,o=Ge(),t=lT()){let r=xK(o),a=o.templates,n=a?AI(a.pages(e)):{list:()=>Promise.reject(new Error(qP)),load:()=>Promise.reject(new Error(qP)),save:()=>Promise.reject(new Error(qP))};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},...XP(n,void 0),...gK(XP(n,void 0).resolve),publish:void 0,templateName:a?()=>a.get(e).then(s=>s.name):void 0}}function gK(e){return{resolve:o=>(KT(null),ob(null),e(o))}}var qP="This editor's backend has no website templates.";function dve(e,o,t){let r=lve(e,void 0,o);return t?.(r)??r}function IK({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=op(!1),[l,d]=op(null),f=ive(),u=rve(T=>T.config.components),[p,m]=op(!1),[h,I]=op(null),w=ove(null),[S,v]=op(null),b=eve(async()=>{if(f.usesBridgedToken&&!r.current){m(!0);return}try{d(await Ge(f).pages.list(t?{siteId:t}:void 0))}catch{m(!0)}},[r,t,f]),y=()=>{if(s){i(!1);return}let T=w.current?.getBoundingClientRect();T&&v({top:T.bottom+6,right:Math.max(8,window.innerWidth-T.right)}),d(null),m(!1),b(),i(!0)},k=(l??[]).filter(T=>T.slug!==o),F=async T=>{if(h)return;I(T.slug);let D=dve(e,u,f.documentHooks?.storedNode),P=await a(()=>fve(Ge(f).pages,T,D));I(null),i(!1),n?.(P?c("Duplicated to \u201C{name}\u201D",{name:T.label}):c("Couldn\u2019t duplicate the section \u2014 please retry"),P?"success":"error")};return JP(QCe,{children:[Ar("span",{"data-menu-toggle":!0,style:{display:"contents"},children:Ar(tve,{buttonRef:w,label:c("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:y,children:Ar(sve,{size:15})})}),s&&S&&Ar(ave,{portal:!0,style:{top:S.top,right:S.right},onClose:()=>i(!1),children:JP("div",{role:"menu","aria-label":c("Duplicate to page"),children:[Ar(RI,{children:c("Duplicate to page")}),p?Ar(RI,{children:c("Couldn\u2019t load pages")}):l===null?Ar(RI,{children:c("Loading\u2026")}):k.length===0?Ar(RI,{children:c("No other pages")}):k.map(T=>JP(nve,{role:"menuitem",disabled:h!==null,onClick:()=>{F(T)},children:[Ar("span",{className:"min-w-0 flex-1 truncate",children:T.label}),h===T.slug?Ar("span",{className:"shrink-0 text-xs",children:c("Copying\u2026")}):T.draft&&Ar("span",{className:"shrink-0 text-xs",children:c("draft")})]},T.id))]})})]})}async function fve(e,o,t){let r=AI(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]:[],i=s.findIndex(l=>l?.type===cve);s.splice(i===-1?s.length:i,0,t),await r.save(o.id,{layout:{root:{},zones:{},...n,content:s}},{version:a.version,clientId:""})}import{useScreenDocument as Hve}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as Wve}from"efficient-easel/screen/lib/document/use-section-ops";import{SELECTION_MODE as mho,isSelectionMode as r0}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as $ve}from"efficient-easel/draw/client";import{jsx as tp,jsxs as pve}from"react/jsx-runtime";import{SettingsDrill as uve}from"efficient-easel/panel";import{UiIcon as mve}from"efficient-easel/draw/client";var hve="Not shown on the page";function xve({part:e,onOpen:o}){return tp(uve,{name:c(e.label),preview:e.offPage?c(hve):e.preview||c("Empty"),offPage:e.offPage,status:e.hidden?tp("span",{className:"sf-entry-eye",role:"img","aria-label":c("Hidden on the page"),children:tp(mve,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function QP(e){return e.filter(o=>!o.identifier)}function yK({parts:e,onOpen:o,heading:t=!0}){let r=QP(e);return r.length?pve("div",{className:"sf-entries",children:[t?tp("h3",{className:"sf-entries-head",children:c("Text")}):null,r.map(a=>tp(xve,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as Uve,ROOT_ZONE as RK}from"efficient-easel/draw";import{HEADER_TYPE as Ct,FOOTER_TYPE as Qe,newNodeId as gve}from"efficient-easel/draw";function LI(){return{type:Ct,props:{id:gve(Ct)}}}var bK=[{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"}],Ive=bK.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),yve="FooterGroup",SK="blocks";function wK(e){return e===Qe?bK:e===yve?Ive:null}function FI(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterEmailSignup",{...VR}),e("FooterPayment",{...mm})]}function e0(e){switch(e?.type){case Je:case ze:return c("On every page");case Ct:case Qe:return c("On every page \xB7 old style");default:return null}}var CK=()=>null,vK=()=>c("Changed on every page");function BI(e,o){let t=oO(e,o);if(t)return t;let r=f1(e,o);if(!r)return null;let a=r.group===Je;return r.why==="type"?a?c("The header cannot take another one of these"):c("The footer cannot take another one of these"):a?c("The header holds at most 3 sections"):c("The footer holds at most 6 sections")}import{jsx as NI,Fragment as Sve,jsxs as wve}from"react/jsx-runtime";import{useState as Cve}from"react";import{createNode as vve,newId as kve}from"efficient-easel/data";import{useEasel as Tve}from"efficient-easel/easel";import{Banner as Pve,Button as o0}from"efficient-shell/ui";import{useScreenDocument as Eve}from"efficient-easel/screen/components/ScreenDocumentContext";var bve=["FooterPayment"];function kK(e,o){let{id:t,...r}=e.props;for(let a of Fr(e))r[a]=r[a].map(n=>kK(n,o));return o(e.type,r)}var rp=(e,o)=>{if(!bve.includes(e.type))return null;bg();let t=cn(e.type);return t?As({type:e.type,props:{...e.props}},t).nodes.map(r=>kK(r,o)):null};function TK(){let{appState:e,dispatch:o,config:t}=Tve(f=>f),{readOnly:r}=Eve(),[a,n]=Cve(!1),s=e.data.content;if(r||s.some(f=>f.type===ze))return null;let i=s.find(f=>f.type===Qe)??null,l=(f,u)=>vve(t,f,u),d=()=>{let f=bf(i,l,kve(ze),rp);o({type:"setData",data:u=>({...u,content:[...vu(u.content,f)]}),recordHistory:!0}),n(!1)};return NI(Pve,{tone:"info",title:c("This footer uses the old layout"),action:a?wve(Sve,{children:[NI(o0,{variant:"primary",size:"sm",onClick:d,children:c("Switch now")}),NI(o0,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:c("Cancel")})]}):NI(o0,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:c("Switch to Box footer")}),children:c("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 t0,jsxs as _ve}from"react/jsx-runtime";import{InspectorUpLevel as PK}from"efficient-easel/chrome";function EK({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=hI(),n=tc(e,o,"picture");return _ve("div",{children:[o!=="media"?t0(PK,{inline:!0,name:c(_a.media),onSelect:()=>a(Ps(e,"media"))}):t0(PK,{inline:!0,name:c(t),onSelect:r}),t0(Or,{part:o,motion:n,itemWord:c(_a[o])})]})}import{HintsToggle as zve,SettingsSwitch as Gve,hintsFoldClass as jve}from"efficient-easel/panel";import{useHints as Kve}from"efficient-easel/screen/lib/hints";var FK={kind:"header"},n0={kind:"website"},BK={kind:"website",tab:hl,revealPageGroup:!0},NK={kind:"chat"},DK={kind:"social"},ap="Part";function Vve(e){return c("Part of {name}",{name:c(e)})}function Yve(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?Vve(r.label):c(ap)}}function qve(e){switch(e){case"Header":return{title:c("Header settings belong to a website."),own:c("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:c("Appearance settings belong to a website."),own:c("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:c("Live chat settings belong to a website."),own:c("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:c("Social link settings belong to a website."),own:c("Each website created from this template sets its own social link afterwards.")};default:return{title:c("{what} settings belong to a website.",{what:e}),own:c("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function MK({what:e}){let o=qve(e);return Sn("div",{className:"sf-note",children:[Le("p",{children:Le("strong",{children:o.title})}),Sn("p",{children:[c("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function a0(e){let o=ef[e];return{name:_a[e],kindLabel:ap,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=LK({name:c(hx(e,a.props)),tier:"part",of:c(a.label)},{partOf:({name:s})=>c("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?Le(EK,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var Xve={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Le(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)=>Le(Lh,{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:()=>Le(Sj,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Le(Pj,{unavailable:Le(MK,{what:"Social link"})})},ticker:{name:$s,kindLabel:ap,icon:"ticker",head:(e,o)=>e.kind==="ticker"?Yve(o,e.heroId,c($s)):null,render:e=>Le(Dj,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:a0("media"),heroImage:a0("image"),heroImage2:a0("image2"),part:{name:ap,kindLabel:ap,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}=wr(e.propKey),n=a?il(t.fields[r],a):t.fields[r],s=Gl(t.type),i=s?Cc(s,e.propKey):null,l=s&&i?s[i].label:MM[e.propKey],d=l?c(l):OB(c(Sd(oh(n??{},r))),a),f=LK({name:d,tier:"part",of:c(t.label)},{partOf:({name:u})=>c("Part of {name}",{name:u})});return{name:f.name,kindLabel:f.kind}},render:(e,o)=>e.kind==="part"?Le(sK,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},Zve=new Set(["header","website","chat"]);function Jve(e,o){if(e==="selection")return null;let t=Xve[e];return Zve.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Le(MK,{what:t.name})}:t}function HK({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onOpenPageStyles:r,onSelectNode:a,hideNodeActions:n=!1,onNotify:s,onHidePanel:i}){let{capabilities:l,tokenRef:d,notifyParent:f,currentSlug:u,siteId:p,runAuthed:m,readOnly:h,navigate:I}=Hve(),{rows:w}=Fd(),S=w?.find(le=>le.slug===u)??null,v=Ave(),b=Object.keys(v.fields).some(le=>!le.startsWith("_")&&!Rd.includes(le)),{websiteName:y}=fe(),k=Wve({readOnly:h}),{select:F}=$ve(),{selectedItem:T,getItemById:D,getSelectorForId:P,config:L,appState:C}=Ove(le=>le),A=Dve(L,T?{type:T.type,props:T.props}:null),E=T?HB(A??L.components[T.type]?.fields,T.props):[],R=le=>L.components[le]?.label??le,W=T?P(T.props.id):void 0,U=Jve(e.kind,l),Z=Mve(),V={capabilities:l,tokenRef:d,hostPanels:Z.chrome?.panels,describeNode:le=>{let io=D(le);if(!io)return null;let oo=L.components[io.type];return{type:io.type,label:oo?.label??io.type,fields:oo?.fields??{},props:io.props??{}}},siteId:p,websiteName:y??null,notifyParent:f,onNotify:s,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:a},de=U?.head?.(e,V)??null,Ce=hj({kind:S?.kind,pageName:S?.label}),ee=de?.name??(U?c(U.name):T?c(R(T.type)):Ce.name),_e=de?.kindLabel??(U?c(U.kindLabel):T?W&&W.zone!==RK?c("Block"):c("Section"):Ce.kindLabel),Oe=U?U.icon:T?T.type:"page",Ee=r0(e)&&T?Xf(T.type):null,Fe=!!T&&!!W&&W.zone===RK&&T.type!==Qe&&T.type!==Uve,No=BI(C?.data,T),qo=()=>{No||W&&k.duplicateComponent(W.zone,W.index)},Xo=()=>{W&&(k.removeComponent(W.zone,W.index),k.select(null))},Co=T?L.components[T.type]?.defaultProps?.previewHover:void 0,Do=r0(e)&&!!T&&!!W&&Co!==void 0,vo=Do&&T.props.previewHover===!0,ue=()=>{!T||!W||k.replaceComponent(W.zone,W.index,{...T,props:{...T.props,previewHover:!vo}})},{shown:eo,setShown:G}=Kve(),Ae=!!(U||T||b);return Sn("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right ${jve(eo)}`.trim(),children:[Le(Fve,{icon:Le(Ys,{type:Oe,size:15}),name:ee,kind:_e,actions:!n&&r0(e)&&T&&T.type!==Qe?Sn(_K,{children:[Le(OK,{label:c("Duplicate section"),title:No??void 0,disabled:No!==null,onClick:qo,children:Le(Bve,{size:15})}),Fe&&l.hasSiteSettings&&Le(IK,{node:T,currentSlug:u,siteId:p??void 0,tokenRef:d,runAuthed:m,onNotify:s}),Le(OK,{label:c("Remove section"),danger:!0,onClick:Xo,children:Le(Nve,{size:15})}),i?Le(AK,{side:"right",onHide:i,divider:!0}):null]}):i?Le(AK,{side:"right",onHide:i}):void 0}),Do&&Sn("div",{className:"sf-preview-pin",children:[Sn("div",{className:"sf-preview-pin-text",children:[Le("span",{className:"sf-preview-pin-label",children:c("Preview hover state")}),Le("span",{className:"sf-preview-pin-hint",children:c("not shown live")})]}),Le(Gve,{checked:vo,onChange:ue,ariaLabel:c("Preview hover state")})]}),Sn("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[U?U.render(e,V):T?Sn(_K,{children:[T.type===Qe&&l.hasSiteSettings&&Le(TK,{}),Le(tR,{children:Le(Or,{entries:Le(yK,{parts:E,heading:!1,onOpen:le=>F(qr(T.props.id,le))}),entryCount:QP(E).length,itemWord:ee})}),Ee&&Le(kI,{source:Ee,slug:ac(T?.props),menuId:SI(T?.props)})]}):b?Le(Or,{omit:Rd}):Le(Lve,{variant:"none",icon:!1,message:c("Select a section or block to edit it."),children:r&&Le(Rve,{variant:"secondary",onClick:r,children:c("This page")})}),Ae&&Le(zve,{shown:eo,onChange:G,label:c("Show hints")})]})]})}import{jsx as x,jsxs as B,Fragment as GK}from"react/jsx-runtime";var Eo={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)"},s0="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 K({w:e,h:o,tone:t="dark",r=2,style:a}){return x("div",{style:{width:e,height:o,borderRadius:r,background:Eo[t],flex:"none",...a}})}var Qve={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"},J={position:"absolute",inset:0},g={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)"},qe=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function La({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 B("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[x("span",{style:r("8% 26% 30% 6%",g.mark1)}),x("span",{style:r("26% 6% 8% 30%",g.mark2,"multiply")})]})}function MI({children:e}){return x("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:g.muted},children:e})}function WK({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return B(GK,{children:[e&&x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),x("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:i},children:t}),a&&x("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 i0({name:e,price:o}){return B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[x("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...qe(g.paper,g.paper2,150)},children:x(La,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),x("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o})]})}function Ra({k:e,v:o,ok:t}){return B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${g.rule}`,fontSize:"3.98cqw",color:g.muted},children:[x("span",{children:e}),B("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("b",{style:{color:g.text,fontWeight:700},children:o}),t&&x("span",{style:{color:g.rust,fontWeight:700},children:"\u2713"})]})]})}function We({title:e,children:o}){return B("div",{style:{...J,background:g.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[x(MI,{children:e}),o]})}function $K({size:e=14}){return x("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${g.mark1},${g.mark2})`}})}function l0({filled:e=5,size:o=6}){return B("span",{style:{fontSize:o,letterSpacing:"0.06em",color:g.rust,lineHeight:1},children:["\u2605".repeat(e),x("span",{style:{color:g.mark1},children:"\u2605".repeat(5-e)})]})}function np({n:e,label:o,tone:t=g.text}){return B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function wo({children:e,w:o}){return x("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:g.muted,width:o,display:"block"},children:e})}function DI({label:e,w:o="100%",filled:t}){return B("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:e}),x("span",{style:{height:9,borderRadius:3,border:`1px solid ${g.rule}`,background:t?g.paper:g.card}})]})}function UK({children:e}){return x("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.text,color:g.onInk},children:e})}var eke={wheelslisting:x(We,{title:"All wheels",children:x("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])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...qe(g.paper,g.paper2,150)},children:x(La,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>B("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:g.text,color:g.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,x("span",{style:{opacity:.6},children:"\u2715"})]},e)),x("span",{style:{fontSize:"3.65cqw",color:g.rust,fontWeight:700},children:"Clear"})]}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"128 results"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted,border:`1px solid ${g.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:g.onInk},children:"Will it fit your rig?"}),B("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>B("span",{style:{flex:1,fontSize:"3.65cqw",color:g.text,background:g.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e)),x("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:g.warm,color:g.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:x(We,{title:"Tyres that suit",children:x("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])=>B("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[x("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:g.ink},children:x("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${g.mark2}`,boxSizing:"border-box"}})}),x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o})]},e))})}),tyresizes:x(We,{title:"Available sizes",children:x("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>x("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?g.rust:g.rule}`,color:o===0?g.rust:g.text,background:o===0?g.paper:g.card},children:e},e))})}),tyrefitment:B(We,{title:"Will it fit your car?",children:[x("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>B("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:g.muted,background:g.paper,border:`1px solid ${g.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",x("span",{style:{color:g.muted},children:"\u25BE"})]},e))}),x("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])=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${g.rule}`,paddingTop:3},children:[x("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?g.warm:g.muted},children:o})]},e))})]}),eutyrelabel:B("div",{style:{...J,background:g.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"center",gap:3},children:[x("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?g.rust:g.mark1}}),x("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?g.rust:g.muted},children:e})]},e))}),B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[x("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.text},children:"72"}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:g.muted},children:"dB"})]})]}),bundleoffer:B("div",{style:{...J,background:g.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(MI,{children:"Buy it with"}),B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>x("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:g.card},children:x(La,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.muted},children:"+"}),B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[x("span",{style:{fontSize:"3.65cqw",color:g.muted,textDecoration:"line-through"},children:"$1,024"}),x("b",{style:{fontSize:"6.02cqw",color:g.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...qe(g.ink,g.ink2)},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:g.warm,fontWeight:700},children:"READY TO ORDER"}),x("b",{style:{fontSize:"6.63cqw",color:g.onInk,lineHeight:1},children:"$1,956"}),x("span",{style:{fontSize:"3.65cqw",color:g.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:g.warm,color:g.ink,flex:"none"},children:"CHECKOUT"})]}),contact:x(We,{title:"Who do you need?",children:x("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])=>B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[x("b",{style:{flex:1,fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"4.64cqw",color:g.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:x(We,{title:"Find us",children:x("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])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.32cqw",color:g.muted},children:o}),x("span",{style:{fontSize:"3.32cqw",color:g.rust,fontWeight:700},children:t})]},e))})}),citypictures:x(We,{title:"Our studios",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:3,minHeight:0},children:[x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.12em",fontWeight:700,color:g.muted},children:"A \xB7 AMERICAS"}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:["Los Angeles","Miami","Toronto"].map(e=>B("div",{style:{position:"relative",minHeight:0},children:[x(K,{r:3,style:{...J,background:`linear-gradient(transparent 45%,${g.scrim} 45%),${qe(g.ink,g.inkSoft2).background}`}}),x("b",{style:{position:"absolute",left:5,bottom:4,fontSize:"3.65cqw",color:g.onInk},children:e})]},e))})]})}),citymaps:x(We,{title:"Find us",children:x("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])=>B("div",{style:{position:"relative",padding:"4px 5px",display:"flex",flexDirection:"column",gap:2,minHeight:0},children:[x(K,{r:4,style:{...J,background:"none",border:`1px solid ${g.rule}`}}),x("b",{style:{position:"relative",fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{position:"relative",fontSize:"3.32cqw",color:g.muted},children:o}),B("div",{style:{flex:1,minHeight:0,position:"relative"},children:[x(K,{r:3,style:{...J,...qe(g.paper,g.paper2,150)}}),x(K,{w:"60%",h:"60%",r:8,style:{position:"absolute",left:"12%",top:"20%",background:g.mark1,opacity:.75}}),x(K,{w:6,h:6,r:3,style:{position:"absolute",left:"44%",top:"34%",background:g.rust}})]})]},e))})}),form:x(We,{title:"Send us a message",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[B("div",{style:{display:"flex",gap:5},children:[x(DI,{label:"Name"}),x(DI,{label:"Email"})]}),x(DI,{label:"Message",filled:!0}),x(UK,{children:"SEND"})]})}),appointmentbooking:x(We,{title:"Book a fitting",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?g.text:g.paper,color:o===2?g.onInk:g.muted},children:e},e))}),x("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?g.rust:g.rule}`,color:o===1?g.rust:g.muted,background:o===3?g.paper:g.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:x(We,{title:"Leave a review",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x(l0,{filled:4,size:14}),x(DI,{label:"Your review",filled:!0}),x(UK,{children:"POST"})]})}),submitbuild:x(We,{title:"Show us your build",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${g.mark1}`,borderRadius:5,background:g.paper},children:[x("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:g.rust,fontWeight:300},children:"+"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Drop a photo of your rig"})]})}),masthead:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[x("span",{style:{height:1.5,background:g.text}}),x("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:g.text,lineHeight:1},children:"THE TRACK"}),B("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:g.muted},children:[x("span",{children:"Issue 14"}),x("span",{children:"Spring 2026"})]}),x("span",{style:{height:1,background:g.rule}})]}),featuredcover:B("div",{style:{...J,overflow:"hidden",...qe(g.ink,g.inkSoft2)},children:[x(La,{size:92,style:{right:-18,top:-14}}),x("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${g.scrim},transparent 62%)`}}),B("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.warm},children:"FEATURE"}),x("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:g.onInk},children:"Four days on the Madigan Line"})]})]}),longread:B("div",{style:{...J,background:g.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:g.rust},children:"12 MIN READ"}),x("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"What breaks first, and why"}),x(wo,{children:"Every failure starts in the same place:"}),x(wo,{w:"80%",children:"the bolt nobody re-torqued."})]}),articlebody:B("div",{style:{...J,background:g.card,padding:"10px 22px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center",alignItems:"center",textAlign:"center"},children:[x("span",{style:{fontSize:"4.97cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"Why offset beats width"}),x(wo,{w:"100%",children:"A wider wheel adds grip only if the offset still"}),x(wo,{w:"88%",children:"clears the arch, so the offset is chosen first."}),x(wo,{w:"80%",children:"Width follows from the space left."})]}),series:x(We,{title:"Recurring columns",children:x("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])=>B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x("span",{style:{width:3,height:12,borderRadius:2,background:g.rust,flex:"none"}}),x("b",{style:{flex:1,fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},e))})}),events:x(We,{title:"Latest posts",children:x("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[g.inkSoft,g.inkSoft2,"Madigan Line, four days"],[g.rust,g.warm,"Why offset beats width"]].map(([e,o,t])=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...qe(e,o,150)}}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:B("div",{style:{...J,background:g.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.muted},children:"POLICY"}),x("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:g.text,lineHeight:1.1},children:"Returns & refunds"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),x("span",{style:{height:2,width:26,background:g.rust,borderRadius:1}})]}),docbody:x("div",{style:{...J,background:g.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])=>B("div",{style:{display:"flex",gap:5},children:[x("b",{style:{fontSize:"3.98cqw",color:g.rust,flex:"none"},children:e}),x(wo,{children:o})]},e))}),docmetacards:x(We,{title:"At a glance",children:x("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])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[x("b",{style:{fontSize:"5.31cqw",color:g.text,lineHeight:1},children:e}),x("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:g.muted},children:o})]},o))})}),doctabs:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[x("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?g.text:g.muted,background:o===0?g.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?g.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),x("span",{style:{height:1,background:g.rule}}),B("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[x(wo,{children:"Unfitted wheels come back within 30 days, no questions."}),x(wo,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:B("div",{style:{...J,background:g.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[x("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:g.text},children:"The right wheel is the boring one."}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(wo,{children:"Forged, correctly offset, rated for what you actually"}),x(wo,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:x(We,{title:"Key features",children:x("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=>B("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[x("span",{style:{fontSize:"4.64cqw",color:g.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),x("span",{style:{fontSize:"4.31cqw",color:g.text},children:e})]},e))})}),statsparagraph:B("div",{style:{...J,background:g.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[B("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[x(np,{n:"27k",label:"Rigs"}),x(np,{n:"4.9",label:"Rating"})]}),B("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[x(wo,{children:"Twelve years of fitting the same three questions, and the"}),x(wo,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:B(We,{title:"Load vs weight",children:[x("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>x("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?g.rust:g.mark1}},o))}),x("span",{style:{height:1,background:g.rule,marginTop:-4}})]}),mockup:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...qe(g.inkSoft,g.ink)},children:B("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:g.card,boxShadow:`0 6px 14px ${g.scrim}`},children:[x("div",{style:{height:9,background:g.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>x("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:g.mark1}},e))}),B("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[x("span",{style:{height:4,width:"56%",borderRadius:1,background:g.mark2}}),x("span",{style:{height:14,borderRadius:2,...qe(g.paper,g.paper2,150)}}),x("span",{style:{height:3,width:"38%",borderRadius:1,background:g.rust}})]})]})}),manifesto:x("div",{style:{...J,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...qe(g.ink,g.ink2)},children:B("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:g.onInk},children:["We build for the ",x("span",{style:{color:g.warm},children:"last"})," ten percent of the track."]})}),timeline:x(We,{title:"Our story",children:x("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)=>B("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&x("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:g.rule}}),x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:g.rust,zIndex:1}}),B("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x(wo,{children:o})]})]},e))})}),timelinetrack:B("div",{style:{...J,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"Milestones"}),B("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[x("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:g.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[x("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?g.warm:g.mark1}}),x("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?g.warm:g.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:B("div",{style:{...J,overflow:"hidden",...qe(g.paper,g.paper2,150)},children:[x("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:g.mark1,opacity:.75}}),x("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:g.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>x("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:g.rust}},e)),x("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:g.text},children:"3 fitting bays"})]}),banner:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:g.rust},children:[B("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[x("b",{style:{fontSize:"6.02cqw",color:g.onInk},children:"End of season \xB7 20% off"}),x("span",{style:{fontSize:"3.98cqw",color:g.onInk,opacity:.8},children:"Fitted free, this month only."})]}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.onInk,color:g.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[x("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:g.text},children:"Not sure what fits?"}),B("div",{style:{display:"flex",gap:5},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:g.text,color:g.onInk},children:"FIND MY FIT"}),x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${g.text}`,color:g.text},children:"CALL US"})]})]}),ticker:x("div",{style:{...J,overflow:"hidden",background:g.ink,display:"flex",alignItems:"center"},children:x("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:g.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...qe(g.ink,g.ink2)},children:[x("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:g.muted},children:"Back online in"}),x("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>B("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&x("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:g.warm},children:":"}),B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[x("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:g.onInk,fontVariantNumeric:"tabular-nums"},children:e}),x("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:g.onInk},children:o})]})]},o))})]}),breadcrumb:x("div",{style:{...J,background:g.card,display:"flex",alignItems:"center",padding:"0 13px"},children:B("span",{style:{fontSize:"4.64cqw",color:g.muted},children:["Home ",x("span",{style:{opacity:.5},children:"/"})," Wheels ",x("span",{style:{opacity:.5},children:"/"})," ",x("span",{style:{color:g.text,fontWeight:700},children:"20 inch"})]})}),categorybar:B("div",{style:{...J,background:g.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[x("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?g.text:g.paper,color:o===0?g.onInk:g.muted},children:e},e))}),x("span",{style:{height:1,background:g.rule}})]}),intro:B("div",{style:{...J,overflow:"hidden",background:g.card},children:[x("div",{style:{position:"absolute",inset:0,...qe(g.ink,g.inkSoft2)}}),x(La,{size:64,style:{right:8,top:6}}),B("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:g.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${g.scrim}`},children:[x("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:g.text},children:"Since 1998"}),x(wo,{children:"One shed, one lathe, one idea."}),x(wo,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:x(We,{title:"Photo gallery",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.inkSoft,g.ink],[g.paper2,g.mark2],[g.ink,g.inkSoft2],[g.warm,g.paper2],[g.mark2,g.inkSoft]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...qe(e,o,140+t*22)}},t))})}),gallery:B(We,{title:"Gallery",children:[x("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>x("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?g.text:g.muted,borderBottom:`1.5px solid ${o===0?g.rust:"transparent"}`,paddingBottom:2},children:e},e))}),x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[g.rust,g.warm],[g.ink,g.inkSoft],[g.paper2,g.mark2]].map(([e,o],t)=>x("div",{style:{borderRadius:3,...qe(e,o,150+t*20)}},t))})]}),ordersummary:B(We,{title:"Order summary",children:[B("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[x("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...qe(g.paper,g.paper2,150)},children:x(La,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"3.65cqw",color:g.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),B("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Subtotal",v:"$1,956"}),x(Ra,{k:"Fitting",v:"Free"}),B("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[x("b",{style:{color:g.text},children:"Total"}),x("b",{style:{color:g.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:x(We,{title:"Delivery",children:x("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])=>B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?g.rust:g.rule}`,background:r?g.paper:g.card},children:[x("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?g.rust:g.mark1}`,background:r?g.rust:"transparent"}}),x("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:o}),x("b",{style:{fontSize:"4.31cqw",color:g.text},children:t})]},e))})}),paymentbadges:B("div",{style:{...J,background:g.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[x(MI,{children:"Ways to pay"}),x("div",{style:{display:"flex",gap:5},children:[["VISA",g.ink],["MC",g.rust],["AMEX",g.inkSoft],["PayPal",g.ink2]].map(([e,o])=>x("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:g.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:B("div",{style:{...J,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...qe(g.ink,g.ink2)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"By the numbers"}),B("div",{style:{display:"flex",gap:8},children:[x(np,{n:"27k",label:"Rigs fitted",tone:g.onInk}),x(np,{n:"12",label:"Years",tone:g.onInk}),x(np,{n:"4.9",label:"Avg rating",tone:g.warm})]})]}),testimonials:B("div",{style:{...J,overflow:"hidden",background:g.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[x("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:g.rust,opacity:.16},children:"\u201D"}),x(l0,{filled:5,size:7}),x("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:g.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),B("div",{style:{display:"flex",alignItems:"center",gap:5},children:[x($K,{}),x("span",{style:{fontSize:"3.98cqw",color:g.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:B(We,{title:"Reviews",children:[x("div",{style:{display:"flex",gap:4,height:22},children:[[g.inkSoft,g.inkSoft2],[g.rust,g.warm],[g.ink,g.inkSoft],[g.mark2,g.mark1]].map(([e,o],t)=>x("div",{style:{flex:1,borderRadius:3,...qe(e,o,140+t*15)}},t))}),x("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])=>B("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[x($K,{size:12}),B("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[B("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[x("b",{style:{fontSize:"3.98cqw",color:g.text},children:e}),x(l0,{filled:o})]}),x(wo,{children:t})]})]},e))})]}),logos:B("div",{style:{...J,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...qe(g.ink,g.inkSoft)},children:[x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:g.warm},children:"As fitted by"}),x("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>x("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:g.onInk,opacity:.82},children:e},e))})]}),prose:B("div",{style:{...J,background:g.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:g.text},children:"Why offset matters"}),B("div",{style:{display:"flex",gap:6},children:[x("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:g.rust,marginTop:1},children:"T"}),B("div",{style:{display:"flex",flexDirection:"column"},children:[x(wo,{children:"he number on the back of your wheel decides whether the"}),x(wo,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:x(We,{title:"What you get",children:x("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])=>B("div",{style:{border:`1px solid ${g.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{width:11,height:11,borderRadius:3,background:g.rust,opacity:.9}}),x("b",{style:{fontSize:"3.98cqw",color:g.text},children:e}),x(wo,{children:o})]},e))})}),faq:x(We,{title:"Questions",children:x("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])=>B("div",{style:{borderBottom:`1px solid ${g.rule}`,padding:"4px 2px"},children:[B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[x("b",{style:{fontSize:"4.31cqw",color:g.text},children:e}),x("span",{style:{fontSize:"4.64cqw",color:g.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&x(wo,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:B("div",{style:{...J,overflow:"hidden",...qe(g.ink,g.ink2)},children:[x("div",{style:{...J,background:`linear-gradient(90deg,${g.scrim},transparent 70%)`}}),x("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:x(WK,{over:"NEW \xB7 SUMMER",overTone:g.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:g.warm,ctaFg:g.ink,tone:g.onInk})}),x(La,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:B("div",{style:{...J,display:"flex",background:g.paper,overflow:"hidden"},children:[x("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:x(WK,{over:"ALL-TERRAIN",overTone:g.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:g.text,ctaFg:g.onInk,tone:g.text})}),x("div",{style:{flex:1,position:"relative",...qe(g.inkSoft,g.inkSoft2)},children:x(La,{size:74,style:{right:-14,top:16}})})]}),productgrid:x(We,{title:"Best sellers",children:B("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[x(i0,{name:"Ridge 19",price:"$365"}),x(i0,{name:"Ridge 29",price:"$410"}),x(i0,{name:"Ridge 39",price:"$455"})]})}),collections:x(We,{title:"Shop by category",children:x("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",g.inkSoft,g.inkSoft2],["Tyres",g.rust,g.warm],["Lift kits",g.ink,g.inkSoft]].map(([e,o,t])=>x("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:g.onInk,...qe(o,t)},children:x("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:B("div",{style:{...J,display:"flex",background:g.card,overflow:"hidden"},children:[x("div",{style:{flex:1.1,position:"relative",...qe(g.paper,g.paper2,150)},children:x(La,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),B("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[x("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:g.rust},children:"NITTO"}),x("b",{style:{fontSize:"6.29cqw",color:g.text},children:"Ridge Grappler"}),x("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:g.text},children:"$489"}),x("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:g.text,color:g.onInk},children:"ADD TO CART"})]})]}),spectable:x(We,{title:"Specifications",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Diameter",v:'20"'}),x(Ra,{k:"Width",v:"9.0J"}),x(Ra,{k:"Offset",v:"+12"}),x(Ra,{k:"Load",v:"1250 kg"})]})}),fitmenttable:x(We,{title:"Will it fit?",children:B("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[x(Ra,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),x(Ra,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),x(Ra,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:B("div",{style:{...J,background:g.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[x(MI,{children:"How it works"}),x("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[x("span",{style:{width:11,height:11,borderRadius:"50%",background:g.text,color:g.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),x("span",{style:{fontSize:"3.98cqw",color:g.text,fontWeight:600},children:e})]},e))})]}),detailrows:x("div",{style:{...J,background:g.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=x("div",{style:{flex:1,...qe(t?g.rust:g.inkSoft,t?g.warm:g.inkSoft2)}},"art"),a=B("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[x("b",{style:{fontSize:"4.64cqw",color:g.text},children:e}),x("span",{style:{fontSize:"3.98cqw",color:g.muted,lineHeight:1.3},children:o})]},"tx");return x("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:x("div",{style:{...J,background:g.ink,color:g.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>B("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[x("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),x("span",{style:{fontSize:"3.65cqw",color:g.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},zK={subscribe:B("div",{style:{...J,padding:13,display:"flex",flexDirection:"column"},children:[B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[B("div",{style:{display:"flex",alignItems:"center",gap:6},children:[x(K,{w:8,h:8,r:2,tone:"accent"}),x(K,{w:38,h:7,r:3,tone:"dark"}),x(K,{w:16,h:7,r:3,tone:"accent"})]}),x(K,{w:38,h:4,r:2,tone:"soft"})]}),x("div",{style:{height:1,background:Eo.line,marginBottom:10}}),B("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${Eo.line}`,borderRadius:7,padding:10},children:[B("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[x(K,{w:"46%",h:3,r:2,tone:"accent"}),x(K,{w:"84%",h:8,r:4,tone:"dark"}),x(K,{w:"56%",h:8,r:4,tone:"accent"}),x(K,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),B("div",{style:{display:"flex",gap:5,marginTop:4},children:[x("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${Eo.line}`,background:Eo.block}}),x(K,{w:34,h:13,r:5,tone:"accent"})]})]}),B("div",{style:{flex:1,background:Eo.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${Eo.line}`:"none",paddingTop:o?4:0},children:[x(K,{w:34,h:4,r:2,tone:"dark"}),x(K,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:B("div",{style:{...J,display:"flex"},children:[x("div",{style:{width:"44%",background:s0}}),B("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"44%",h:5,r:3,tone:"accent"}),x(K,{w:"88%",h:8,r:4,tone:"dark"}),x(K,{w:"70%",h:8,r:4,tone:"dark"}),x(K,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),x(K,{w:"80%",h:5,r:2,tone:"soft"}),x(K,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:B(GK,{children:[x(K,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[B("div",{style:{display:"flex",alignItems:"center",gap:9},children:[x(K,{w:16,h:16,r:4,tone:"accent"}),x(K,{w:"20%",h:9,r:4,tone:"dark"})]}),x(K,{w:"62%",h:10,r:5,tone:"dark"}),x(K,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:x("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:B("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[x(K,{w:"22%",h:12,r:4,tone:"dark"}),B("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:26,h:6,r:3,tone:"soft"}),x(K,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:B("div",{style:{...J,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[B("div",{style:{display:"flex",gap:14},children:[B("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"60%",h:9,r:4,tone:"dark"}),x(K,{w:"90%",h:5,r:2,tone:"soft"}),x(K,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>B("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[x(K,{w:"50%",h:6,r:3,tone:"dark"}),x(K,{w:"80%",h:5,r:2,tone:"soft"}),x(K,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),x("div",{style:{height:1,background:Eo.line}}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x(K,{w:"30%",h:5,r:2,tone:"soft"}),x(K,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:x("div",{style:{...J,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>x("div",{style:{borderRadius:6,background:Eo.block}},o))}),blanksection:x("div",{style:{...J,padding:14,display:"flex"},children:B("div",{style:{flex:1,border:`1px dashed ${Eo.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[x(K,{w:14,h:2,r:1,tone:"tint"}),x(K,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:B("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),x(K,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:x("div",{style:{...J,padding:14,display:"flex",alignItems:"center"},children:x(K,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:s0},children:[x(K,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),x(K,{w:16,h:10,r:3,tone:"accent"}),x(K,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:x("div",{style:{...J,padding:14,display:"flex",alignItems:"center"},children:x(K,{w:"64%",h:13,r:4,tone:"dark"})}),text:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:"96%",h:6,r:3,tone:"soft"}),x(K,{w:"100%",h:6,r:3,tone:"soft"}),x(K,{w:"58%",h:6,r:3,tone:"soft"})]}),image:x("div",{style:{position:"absolute",inset:14,borderRadius:7,background:s0}}),button:x("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center"},children:x(K,{w:"34%",h:16,r:8,tone:"accent"})}),menu:B("div",{style:{...J,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[x(K,{w:"48%",h:7,r:3,tone:"dark"}),x(K,{w:"82%",h:5,r:2,tone:"soft"}),x(K,{w:"66%",h:5,r:2,tone:"soft"}),x(K,{w:"74%",h:5,r:2,tone:"soft"}),x(K,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[x(K,{w:"56%",h:8,r:3,tone:"dark"}),B("div",{style:{display:"flex",gap:6},children:[x("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${Eo.line}`}}),x(K,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:x("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>x(K,{w:16,h:16,r:8,tone:"dark"},e))}),paymentlogos:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[x(K,{w:22,h:6,r:2,tone:"soft"}),[0,1,2,3].map(e=>x(K,{w:20,h:13,r:3,tone:"dark"},e))]}),search:x("div",{style:{...J,padding:"0 18%",display:"flex",alignItems:"center"},children:B("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${Eo.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[x("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${Eo.dark}`}}),x(K,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:B("div",{style:{...J,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[x("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${Eo.dark}`}}),x("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${Eo.dark}`},children:x(K,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:B("div",{style:{...J,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[B("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${Eo.line}`},children:[x(K,{w:22,h:6,r:2,tone:"dark"}),x(K,{w:6,h:4,r:1,tone:"soft"})]}),B("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${Eo.line}`},children:[x(K,{w:"80%",h:4,r:2,tone:"accent"}),x(K,{w:"64%",h:4,r:2,tone:"soft"}),x(K,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:B("div",{style:{...J,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[x("div",{style:{height:1,background:Eo.line}}),B("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[x(K,{w:"38%",h:5,r:2,tone:"soft"}),B("div",{style:{display:"flex",gap:5},children:[x(K,{w:14,h:5,r:2,tone:"soft"}),x(K,{w:14,h:5,r:2,tone:"soft"}),x(K,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:x("div",{style:{position:"absolute",inset:14,borderRadius:8,background:Eo.block}})};function jK({type:e}){let o=Qve[e]??"",t=eke[o]??zK[o]??zK.fallback;return x("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 KI}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as sc,jsxs as KK}from"react/jsx-runtime";import oke from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as tke}from"efficient-easel/rail";import{Tooltip as rke}from"efficient-shell/ui";import{HintsToggle as ake,hintsFoldClass as nke}from"efficient-easel/panel";import{useHints as ske}from"efficient-easel/screen/lib/hints";function VK({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}){let l=xl(),{shown:d,setShown:f}=ske();return KK("div",{className:`sf-styles ${nke(d)}`.trim(),children:[sc(oke,{icon:sc(tke,{}),title:c("Styles"),context:sc(rke,{content:c("{name} \u2014 renamed in the Console: {place}.",{name:l,place:c("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:sc("span",{className:"sf-name-text",children:l})})}),KK("div",{className:"sf-insp-body es-insp-body sf-scroll",children:[sc(Lh,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n,revealPageGroup:s,onPageGroupRevealed:i}),sc(ake,{shown:d,onChange:f,label:c("Show hints")})]})]})}import{jsx as Fo,jsxs as ei,Fragment as fke}from"react/jsx-runtime";import{Fragment as a8,useEffect as n8,useRef as m0}from"react";import{useTreeDrag as s8}from"efficient-easel/drag";import{GlobeIcon as pke,ImageIcon as uke,LocationIcon as mke,MapIcon as hke,TextLinesIcon as xke,TrashIcon as i8}from"efficient-easel/icons";import{Subtree as l8,TreeRow as ip,TreeRowAction as c8,TreeSeam as d8}from"efficient-easel/tree";import{useEaselStrings as gke}from"efficient-easel/strings";import{isSelectionMode as Ike}from"efficient-easel/screen/lib/screen-parts";import{useSyncExternalStore as ike}from"react";var lke={level:"groups"},qK=lke,c0=new Set;function Rr(e){qK=e;for(let o of c0)o()}function cke(e){return c0.add(e),()=>{c0.delete(e)}}var YK=()=>qK;function XK(){return ike(cke,YK,YK)}var sp=e=>String(e?.group??""),d0=new WeakMap,dke=0;function HI(e){let o=d0.get(e);return o||(o=`loc${++dke}`,d0.set(e,o)),o}var ZK=(e,o)=>o||e||"Ungrouped",JK={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
|
|
342
|
-
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Qs(e){return kx(e,sp,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var f0=e=>e.flatMap(o=>o.cards),QK=(e,o,t)=>Math.min(Math.max(e,o),t);function WI(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(sp(e[a])===o){if(r===t)return a;r++}return-1}function p0(e,o,t){let r=Qs(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=QK(o<t?t-1:t,0,r.length);return r.splice(n,0,a),f0(r)}function u0(e,o,t,r,a){let n=Qs(e),s=n.find(u=>u.key===o),i=n.find(u=>u.key===r);if(!s||!i||t<0||t>=s.cards.length)return e;let[l]=s.cards.splice(t,1),d=o===r?l:{...l,group:i.key,groupName:i.name};d!==l&&d0.set(d,HI(l));let f=QK(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),f0(n)}function e8(e,o){let t=Qs(e),r=t.find(n=>n.key===o),a={...JK,group:o,groupName:r?.name??""};return r?(r.cards.push(a),f0(t)):[...e,a]}function o8(e){let o=new Set(Qs(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...JK,group:r,groupName:""}],key:r}}function t8(e,o){return e.filter(t=>sp(t)!==o)}function r8(e,o,t){let r=WI(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Kho(e,o,t){let r=e.flatMap((s,i)=>sp(s)===o?[i]:[]),a=e.slice();r.forEach((s,i)=>{a[s]=t[i]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function Vho(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>sp(n)===r);return a.length?a:t(r)})}var UI="ContactLocations",$I=e=>({parentId:`locations-${e}`,slot:"groups"}),h0=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function f8(e,o){let{readOnly:t,selected:r}=o,a=gke().tree,n=o.data?.content??[],s=Ike(e),i=m0(null);n8(()=>{let b=r?.type===UI?String(r.props.id):null;b&&b!==i.current&&Rr({level:"groups"}),i.current=b},[r?.props.id]);let{selectedLocationPartId:l,setSelectedLocationPartId:d,setSelectHandler:f}=j$(),u=XK(),p=(b,y)=>{let k=n[b];k&&o.replace(b,{type:k.type,props:{...k.props,locations:y}})},m=b=>{let y=n[b]?.props?.locations;return Array.isArray(y)?y:[]},h=s8({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===$I(b.si).parentId&&y.slot==="groups",onDrop:(b,y)=>{p(b.si,p0(m(b.si),b.index,y.index)),u.level==="city"&&Rr({level:"groups"})},onStep:(b,y)=>{p(b.si,p0(m(b.si),b.index,y<0?b.index-1:b.index+2)),u.level==="city"&&Rr({level:"groups"})}}),I=s8({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===$I(b.si).parentId&&y.slot.startsWith("cities:"),onDrop:(b,y)=>{let k=y.slot.slice(7);p(b.si,u0(m(b.si),b.group,b.index,k,y.index)),Rr({level:"group",key:k})},onStep:(b,y)=>{p(b.si,u0(m(b.si),b.group,b.index,b.group,y<0?b.index-1:b.index+2)),u.level==="city"&&Rr({level:"group",key:b.group})}}),w=m0(n);w.current=n;let S=m0(()=>{});n8(()=>{f(b=>{let y=kg(b);if(!y)return;let k=w.current.findIndex(F=>F.props?.id===y.nodeId);k<0||S.current(k,{level:y.part,index:y.index})})},[f]);let v=(b,y)=>{i.current=n[b]?.props?.id??null,o.select(b),Rr(y),e.reveal();let k=n[b]?.props?.id;typeof k=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(vg(k,y.index,y.level)):d(null),typeof k=="string"&&o.scrollTo(k)};return S.current=v,{renderLocationTree:(b,y,{rowClick:k,isCollapsed:F,toggleCollapse:T})=>{let D=m(y),P=Qs(D),L=String(b.props.id),C=s&&r?.props.id===L,A=R=>Fo(d8,{...t?{}:h.seam({place:{...$I(y),index:R}})},`seam:${L}:groups:${R}`),E=(R,W)=>Fo(d8,{...t?{}:I.seam({place:{...h0(y,R),index:W}})},`seam:${L}:cities:${R}:${W}`);return ei(fke,{children:[Fo(ip,{icon:Fo(xke,{size:13}),name:c("Texts"),words:a,onSelect:()=>v(y,{level:"texts"}),selected:C&&u.level==="texts",rowProps:{onClick:k(()=>v(y,{level:"texts"}))}}),P.map((R,W)=>{let U=`${L}::grp::${R.key}`,Z=F(U),V=C&&u.level==="group"&&u.key===R.key,de=R.name||R.key?ZK(R.key,R.name):c("Ungrouped"),Ce={...h0(y,R.key),index:R.cards.length},ee=I.row({item:{si:y,group:R.key,index:-1},place:Ce,into:Ce,canDrag:!1},{onClick:k(()=>v(y,{level:"group",key:R.key}))}),_e=h.row({item:{si:y,index:W},place:{...$I(y),index:W}},ee.rowProps);return ei(a8,{children:[W===0&&A(0),Fo(ip,{icon:Fo(pke,{size:13}),name:de,words:a,onSelect:()=>v(y,{level:"group",key:R.key}),selected:V,draggable:_e.draggable,dragging:_e.dragging,drop:_e.drop??ee.drop,fold:{open:!Z,label:c("group"),onToggle:()=>T(U)},actions:Fo(c8,{kind:"delete",label:nt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",R.cards.length,{label:de}),onClick:()=>{p(y,t8(D,R.key)),Rr({level:"groups"})},children:Fo(i8,{size:15})}),rowProps:_e.rowProps,count:R.cards.length,countLabel:nt("{n} city","{n} cities",R.cards.length)}),!Z&&ei(l8,{children:[R.cards.map((Oe,Ee)=>{let Fe=WI(D,R.key,Ee),No=C&&u.level==="city"&&u.index===Fe,qo=String(Oe?.name??"")||c("City"),Xo=`${L}::city::${HI(Oe)}`,Co=F(Xo),{rowProps:Do,...vo}=I.row({item:{si:y,group:R.key,index:Ee},place:{...h0(y,R.key),index:Ee}},{onClick:k(()=>v(y,{level:"city",index:Fe}))});return ei(a8,{children:[Ee===0&&E(R.key,0),Fo(ip,{icon:Fo(mke,{size:13}),name:qo,words:a,onSelect:()=>v(y,{level:"city",index:Fe}),selected:No,...vo,fold:{open:!Co,label:qo,onToggle:()=>T(Xo)},actions:Fo(c8,{kind:"delete",label:c("Delete {name}",{name:qo}),onClick:()=>{p(y,r8(D,R.key,Ee)),Rr({level:"group",key:R.key})},children:Fo(i8,{size:15})}),rowProps:Do}),!Co&&ei(l8,{children:[Fo(ip,{icon:Fo(uke,{size:13}),name:c("Image"),words:a,onSelect:()=>v(y,{level:"image",index:Fe}),selected:C&&u.level==="image"&&u.index===Fe,rowProps:{onClick:k(()=>v(y,{level:"image",index:Fe}))}}),Fo(ip,{icon:Fo(hke,{size:13}),name:c("Map"),words:a,onSelect:()=>v(y,{level:"map",index:Fe}),selected:C&&u.level==="map"&&u.index===Fe,rowProps:{onClick:k(()=>v(y,{level:"map",index:Fe}))}})]}),E(R.key,Ee+1)]},HI(Oe))}),ei("button",{type:"button",className:"sf-add-card",onClick:()=>{let Oe=e8(D,R.key);p(y,Oe);let Ee=Qs(Oe).find(Fe=>Fe.key===R.key);Rr(Ee&&Ee.cards.length?{level:"city",index:WI(Oe,R.key,Ee.cards.length-1)}:{level:"group",key:R.key})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),A(W+1)]},U)}),ei("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:R,key:W}=o8(D);p(y,R),v(y,{level:"group",key:W})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:b=>{b?.type===UI&&Rr({level:"groups"})}}}import{useEffect as wke,useRef as Cke}from"react";import{createNode as g0,newId as I0}from"efficient-easel/data";import{useEaselApi as vke}from"efficient-easel/easel";import{useScreenDocument as kke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Tke}from"efficient-easel/screen/lib/session-context";import{useEffect as h8,useRef as yke}from"react";import{useEasel as bke}from"efficient-easel/easel";import{ROOT_ZONE as x0}from"efficient-easel/draw";var lp={};function p8(e){return lp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},lp}function u8(e){lp===e&&(lp={})}function ic(){return lp}function m8(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 g8(e){let o=bke(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=fe(),l=yke(new Set);h8(()=>{let d=x8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&Ske(p4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),h8(()=>{let d=p8(x8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>u8(d)},[t,r,a,n,s,i])}function x8(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=m8({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 Ske(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(x0,r,a[0]),a.slice(1).forEach((s,i)=>{o.insertNode(x0,r+1+i,s),o.replaceComponent(x0,r+1+i,s)}))}}import{ROOT_ZONE as lc,missingPinnedTypes as Pke,pinnedDuplicateIds as y0}from"efficient-easel/draw";function I8(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function y8(e,o){let t=e.some(i=>i?.type===ze),r=e[e.length-1],a=!t&&r?.type===Qe?r:null,n=e.filter(i=>i?.type===Qe&&i!==a).map(i=>String(i.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(i=>i?.type===Ct),seedFooter:s,seedSiteHeader:s&&!e.some(i=>i?.type===Je)}}async function b8(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!==Je||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Je)?!1:(e.write(vu(r,t)),!0)}function S8(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=kke(),f=Tke(),{hasSiteSettings:u,hasPinnedChrome:p}=r;g8(e);let m=!!r.editsPinnedInPlace&&a!==hr,h=a===hr,I=vke().getState,w=Cke(null);wke(()=>{if(!I8({docId:n,saveStatus:i,seededDocId:w.current})||(w.current=n,!p))return;let S=I().appState.data,v=S.content,b=s?.content??[],y=(D,P)=>D.some(L=>L?.type===P);if(!u){let D=new Set(y0(v)),P=D.size?v.filter(C=>!D.has(C.props.id)):v;if(D.size&&e.setDocument({...S,content:P}),h)return;let L=Pke(P,b);if(L.includes(Qe)){let C=P.length,A=e.insertSection(Qe,C);e.replaceComponent(lc,C,{type:Qe,props:{id:A,blocks:FI()}})}L.includes(Ct)&&e.insertNode(lc,0,LI());return}if(h){let D=Oi(v);if(D!==v&&e.setDocument({...S,content:[...D]}),!D.find(P=>P.type===Qe)&&!y(b,Qe)&&!y(D,ze)&&!y(b,ze)){let P=(C,A)=>g0(o,C,A),L={type:Qe,props:{blocks:FI()}};e.insertNode(lc,D.length,bf(L,P,I0(ze),rp))}return}if(m){let D=!!t?.pinnedChrome?.state().docId,P=y8(v,{hasChromeDoc:D}),L=new Set([...P.remove,...y0(v.filter(A=>!P.remove.includes(String(A.props.id))))]),C=L.size?v.filter(A=>!L.has(String(A.props.id))):v;if(C.length!==v.length&&e.setDocument({...S,content:C}),P.seedFooter&&!y(b,Qe)&&!y(b,ze)){let A=(R,W)=>g0(o,R,W),E={type:Qe,props:{blocks:FI()}};e.insertNode(lc,C.length,bf(E,A,I0(ze),rp))}if(P.seedHeader&&!y(b,Ct)){let A=C[0]?.type===Je?1:0;e.insertNode(lc,A,LI())}if(P.seedSiteHeader&&!y(b,Je)&&!y(b,Qe)&&!y(b,ze)){let A=n;b8({blocks:Mi(f),make:(E,R)=>g0(o,E,R),id:I0(Je),siteId:l??null,token:d.current,latest:()=>I().appState.data.content,stillOpen:()=>w.current===A,write:E=>{let R=I().appState.data;e.setDocument({...R,content:[...E]})}})}return}let k=v.filter(D=>D.type!==Qe),F=new Set(y0(k)),T=F.size?k.filter(D=>!F.has(D.props.id)):k;T.length!==v.length&&e.setDocument({...S,content:T}),!y(T,Ct)&&!y(b,Ct)&&e.insertNode(lc,0,LI())},[n,i,s,I,e,u,p,h,m,t,f,l,d])}import{useEffect as A8,useMemo as Fke,useRef as R8}from"react";import{useEasel as Bke}from"efficient-easel/easel";import{useEaselHost as Nke}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Eke}from"efficient-easel/screen/lib/host";import{isNode as v8}from"efficient-easel/data";function cp(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function _ke(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function b0(e,o,t,r){e.forEach((a,n)=>{if(v8(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Fr(a))b0(a.props[s],a,s,r)}})}function Oke(e){let o=[];b0(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&b0(t,null,"",o);return o}function k8(e,o){return Oke(e).find(t=>String(t.node.props.id)===o)}function T8(e,o,t){if(!t)return null;let r=k8(o,t);if(!r)return null;let a=cp(e,r.node.type),n=r.parent?`${cp(e,r.parent.type)} \xB7 ${_ke(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Ake=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 Rke(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Eke]: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=Ake(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=P8(i))}return r}function P8(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Rke(r);a&&(o[t]=a)}return o}function E8(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:cp(e,t),fields:P8(r.fields),..._8(t)?{retired:!0}:{}});return o}function _8(e){return He(W0,e)}function w8(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Lke(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 S0(e,o){return e.findIndex(t=>v8(t)&&String(t.props.id)===o)}function C8(e,o,t){let r=o||t;if(!r)return e.length;let a=S0(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function O8(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((i,l)=>{let d=f=>{throw new Error(`change ${l+1}: ${f}`)};switch(i.op){case"set_props":{let f=k8(n,i.block_id)??d(`there is no block ${i.block_id}`);"id"in i.props&&d("a block's id is never changed");let u=Lke(f.node.props,i.path)??d(`there is no ${i.path} in that block`);Object.assign(u,structuredClone(i.props));break}case"insert_block":{e.components[i.type]??d(`there is no block type ${i.type}`),_8(i.type)&&d(`${cp(e,i.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Kl(i.type),u=Object.keys(i.props??{}).filter(m=>m!=="id");f&&u.length&&d(`${cp(e,i.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(m=>w8(e,m),r,a):{type:i.type,props:{...w8(e,i.type),...structuredClone(i.props),id:r(i.type)}};s.splice(C8(s,i.after,i.before),0,p);break}case"remove_block":{let f=S0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`),s.splice(f,1);break}case"move_block":{let f=S0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`);let[u]=s.splice(f,1);s.splice(C8(s,i.after,i.before),0,u);break}default:d(`"${i.op}" is not a change this editor makes`)}})}catch(i){return{ok:!1,reason:i instanceof Error?i.message:String(i)}}return{ok:!0,document:n}}var w0=e=>be(e.requestId)??null;function L8(){let e=Nke(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Bke(p=>p),s=n,i=R8({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=R8(new Map),d=t?.props?.id,f=Fke(()=>T8(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";A8(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),A8(()=>e.subscribe(p=>{let{appState:m,dispatch:h,history:I,blockConfig:w}=i.current;switch(p.type){case"storefront-editor:request-document":{let S=w0(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:m.data,blocks:E8(w)});return}case"storefront-editor:apply-page-edits":{let S=w0(p);if(!S)return;let v=Array.isArray(p.ops)?p.ops:[],b=v.length?O8(w,m.data,v,y=>`${y}-${crypto.randomUUID()}`,ic()):{ok:!1,reason:"no changes"};b.ok&&(h({type:"setData",data:b.document,recordHistory:!0}),l.current.set(S,JSON.stringify(b.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b.ok,reason:b.ok?null:b.reason});return}case"storefront-editor:undo-page-edits":{let S=w0(p);if(!S)return;let v=l.current.get(S),b=v!==void 0&&v===JSON.stringify(m.data.content??[]);b&&I.hasPast&&(I.back(),l.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b&&I.hasPast,reason:b?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&h({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as N8,useState as D8}from"react";var zI=new Map;async function Dke(e,o){try{return(await Ge().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function F8(e,o){let t=zI.get(o);return t||(t=Dke(e,o),zI.set(o,t),t.catch(()=>{zI.get(o)===t&&zI.delete(o)})),t}var Mke=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function C0(e){return!!e&&Mke.test(e)}function B8(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Hu?"/":`/${encodeURIComponent(o)}`;if(!C0(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function M8(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=D8(null),[s,i]=D8(null),l=OO();N8(()=>{try{i(new URL(fu()).hostname)}catch{i(null)}},[l]),N8(()=>{if(!C0(s)||!t||!r){n(null);return}let f=!1;return F8(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=B8({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as dp}from"react/jsx-runtime";import{useEffect as Hke,useRef as H8,useState as Wke}from"react";import{ExternalIcon as W8}from"efficient-easel/icons";import{EaselIconButton as $ke}from"efficient-easel/chrome";import{Tooltip as Uke,iconButtonClasses as zke}from"efficient-shell/ui";import{useSettledPress as Gke}from"efficient-easel/easel";import{useScreenDocument as jke}from"efficient-easel/screen/components/ScreenDocumentContext";async function Kke({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=i=>{n&&!n.closed?n.location.href=i:a.open(i,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(i=>s(i.url??o),()=>s(o))}function $8({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=jke(),a=H8(r);a.current=r;let n=Gke(),[s,i]=Wke(!1),l=H8(null);if(Hke(()=>()=>l.current?.(),[]),t&&o){let d=()=>new Promise((u,p)=>{l.current=()=>u(!1),n.run(()=>{l.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(i(!0),Kke({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return dp($ke,{label:c("Preview your saved draft in a new tab"),tip:c("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:dp(W8,{})})}return dp(Uke,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:dp("a",{className:zke({className:"es-iconbtn"}),href:e,...Nd,"aria-label":c("Preview the live site in a new tab"),children:dp(W8,{})})})}import{createElement as Vke,useCallback as Yke,useEffect as U8,useRef as z8,useState as qke}from"react";import{ClockIcon as Xke}from"efficient-shell/icons/efficient";import{useScreenDocument as Zke}from"efficient-easel/screen/components/ScreenDocumentContext";function G8(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Zke(),s=cK(lK(o??null),r),i=rI(aI()),l=n.siteLiveState;U8(()=>{if(l)return tS(l),ma(0),()=>tS(null)},[l]);let d=dm(),[f,u]=qke(!1),p=z8(e);p.current=e;let m=z8(!0);U8(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=Yke(()=>{u(!0),a(p.current).then(()=>{sI()}).finally(()=>{m.current&&u(!1)})},[a]);if(t.canPublish){if(l){let I=d===void 0?void 0:r||d.state==="changed"?"changed":"live",w=YP({live:I,onPress:h,busy:f,goingLive:dK(d?.changes??[])});return n.siteVersions?{...w,menuItems:Jke()}:w}return YP({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function Jke(){return[{key:"version-history",label:c("Version history"),icon:Vke(Xke),onSelect:_G}]}import{jsx as ae,jsxs as Nt,Fragment as up}from"react/jsx-runtime";import{useCallback as Qke,useEffect as eTe,useId as V8,useRef as oTe,useState as sr}from"react";import{useSettledAction as tTe}from"efficient-easel/easel";import{Avatar as rTe,Banner as fp,Button as oi,ColoredBadge as v0,Dialog as Y8,Drawer as aTe,DropdownMenu as nTe,FormField as q8,iconButtonClasses as sTe,Inline as k0,Input as iTe,ListRow as lTe,Select as cTe,SortableList as dTe,Stack as pp}from"efficient-shell/ui";import{EditIcon as fTe,EyeIcon as j8,MenuIcon as pTe,MoreIcon as uTe,PageIcon as X8,RevertIcon as K8,StylesIcon as mTe}from"efficient-shell/icons/efficient";import{useScreenDocument as Z8}from"efficient-easel/screen/components/ScreenDocumentContext";var hTe={page:X8,menu:pTe};function xTe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function gTe(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 ITe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=V8();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=DG(e),p=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),m=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):u?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:u}):c("The whole website goes back to version {n} as a draft.",{n:f}),h=e.deletedPictures??0;return ae(Y8,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:Nt(up,{children:[ae(oi,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ae(oi,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Nt(pp,{gap:4,children:[o&&e.pages.length>1?ae(q8,{label:c("Page"),htmlFor:l,children:ae(cTe,{id:l,value:o.id,options:e.pages.map(I=>({value:I.id,label:I.name})),onChange:i,disabled:r})}):null,ae("p",{children:m}),ae("p",{children:c("Your live website does not change until you press Publish.")}),h>0?ae(fp,{tone:"warning",children:nt("{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.",h)}):null,t?ae(fp,{tone:"info",title:c("Your unpublished changes are kept"),children:c("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ae(fp,{tone:"danger",children:a}):null]})})}function yTe({version:e,onCancel:o,onSave:t}){let r=V8(),[a,n]=sr(null),[s,i]=sr(""),[l,d]=sr(!1),[f,u]=sr(null);if(e!==a&&(n(e),i(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,m=async()=>{if(!(l||p)){d(!0),u(null);try{await t(s.trim())}catch{u(c("The name was not saved. Try again."))}finally{d(!1)}}};return ae(Y8,{open:!0,onClose:()=>{l||o()},size:"sm",title:c("Name this version"),footer:Nt(up,{children:[ae(oi,{variant:"secondary",onClick:o,disabled:l,children:c("Cancel")}),ae(oi,{onClick:()=>{m()},loading:l,disabled:l||p,children:c("Save")})]}),children:ae(q8,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ae(iTe,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function bTe({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let i=e.kind==="draft_before_restore",l=!e.live,d=e.changes.length,f=[...i?[]:[{key:"preview",label:c("Preview"),icon:ae(j8,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:ae(K8,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ae(X8,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ae(fTe,{}),onSelect:s}]];return ae(lTe,{title:Nt("span",{className:"sf-version-title",children:[ae("span",{children:NG(e)}),e.live?ae(v0,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ae(v0,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?ae(v0,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(nTe,{align:"end","aria-label":c("More"),items:f,triggerClassName:sTe({variant:"ghost",size:"sm"}),trigger:ae(uTe,{})}),below:Nt(pp,{gap:3,children:[Nt(k0,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(rTe,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:HG(e.createdAt)}),d?Nt(up,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:nt("{n} change","{n} changes",d)})]}):null]}),o?Nt(pp,{gap:3,children:[d?ae(pp,{gap:2,children:e.changes.map(u=>{let p=hTe[u.kind]??mTe;return Nt(k0,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:MG(u)})]},`${u.kind}:${u.id}`)})}):null,Nt(k0,{gap:2,children:[i?null:ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(j8,{}),onClick:r,children:c("Preview")}),l?ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(K8,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function STe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Z8(),[i,l]=sr(null),[d,f]=sr(!1),[u,p]=sr(null),[m,h]=sr(null),[I,w]=sr(!1),[S,v]=sr(null),[b,y]=sr(null),[k,F]=sr(!1),T=oTe(0),D=Qke(()=>{let A=++T.current;f(!1),t.list().then(E=>{A===T.current&&l(E)},()=>{A===T.current&&f(!0)})},[t]);eTe(()=>{e&&D()},[e,D]);let P=A=>{F(!1),gTe(t,A.id).catch(()=>F(!0))},L=async()=>{if(!(!m||I)){w(!0),v(null);try{await FG({access:t,version:m.version,page:m.page,flushSave:a,reload:n}),h(null),o()}catch(A){v(A instanceof Gf?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{w(!1)}}},C=tTe({onPress:()=>{L()},busy:I});return Nt(up,{children:[ae(aTe,{open:e,onClose:o,side:"right",size:"md",title:c("Version history"),description:Nt(up,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:ae("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Nt(pp,{gap:3,children:[k?ae(fp,{tone:"danger",onDismiss:()=>F(!1),children:c("The preview did not open. Try again.")}):null,d?ae(fp,{tone:"danger",action:ae(oi,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):i===null?ae("p",{className:"sf-version-foot",children:c("Loading versions")}):i.length===0?ae("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):ae(dTe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(A=>ae(bTe,{version:A,expanded:u===A.id,onToggle:()=>p(E=>E===A.id?null:A.id),onPreview:()=>P(A),onRestore:()=>{v(null),h({version:A,page:null})},onRestorePage:()=>{v(null),h({version:A,page:xTe(A,s)})},onName:()=>y(A)},A.id))})]})}),ae(ITe,{version:m?.version??null,page:m?.page??null,waiting:r,busy:C.busy===!0,error:S,onCancel:()=>h(null),onConfirm:C.onPress,onPage:A=>h(E=>E&&{...E,page:E.version.pages.find(R=>R.id===A)??E.page})}),ae(yTe,{version:b,onCancel:()=>y(null),onSave:async A=>{await t.name(b.id,A),y(null),D()}})]})}function J8(){let{adapter:e,hasUnsavedEdits:o}=Z8(),t=e.siteVersions,r=AG(),a=dm();return t?ae(STe,{open:r,onClose:OG,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as DV}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as Wgo,categoryLabel as $go,paletteWithoutPinned as Ugo,pinnedSection as zgo}from"efficient-easel/screen/lib/document/palette-sections";var wTe={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 Q8(e){return $(wTe,e)?.label}var eV=z0;function CTe(e){let o=_g.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Av.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Av.sectionAccent}}}var vTe={Hero:{[nf]:{newChild:CTe,childLabel:En.Ticker}}},oV=Object.fromEntries(Object.entries(a4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(vTe,e)?.[t]}]))]));function tV(e,o=0,t,r){let a=TTe(PTe(e,o,r),t),n=a?fT():null;return a&&n?kTe(a,n):a}function kTe(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 TTe(e,o){if(!e||e.source!=="container"||!o||!e_())return e;let t=Gp({data:o.data},o.id),r=typeof t?.type=="string"?Hp(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(i=>i.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function PTe(e,o,t){let r=t?$(oV,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(qt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=wp(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=wK(e);return s?{source:"footer",slot:SK,choices:s,spec:null}:null}function rV(e,o=Up(e.type)){return $p(e.type)?o.map(t=>{let r=r_(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as ETe}from"react";var T0=null,P0=new Set;function aV(e){if(T0!==e){T0=e;for(let o of P0)o()}}function _Te(e){return P0.add(e),()=>{P0.delete(e)}}function pIo(){return ETe(_Te,()=>T0,()=>null)}function nV(e){return Bc(e)?.ownerId??null}function sV(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||c("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:c("Text")}return e.type==="FooterEmailSignup"?t.heading||c("Email signup"):o(e.type)}var iV="sf-editor-left-view";function lV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(iV);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function cV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(iV,e)}catch{}}function dV(e,o){return e==="styles"&&!o?"sections":e}function fV(e,o){return e?"sections":o}import{copyNode as OTe}from"efficient-easel/data";function pV(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=fr(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?c("On 1 page"):c("On {count} pages",{count:a.length}):c("On other pages")}var uV={usedOn:e=>{let o=fr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Pu()?.openPage(e),adopt:(e,o)=>fr()?.adopt(e.props.id,o),nodeOf:e=>fr()?.place(e)??null,detach:e=>{let o=Pu()?.config;return o?OTe(e,o):e},removed:()=>Pu()?.reload()};import{sharedSectionsOf as rPe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as aPe,scrollPreviewToTop as OV}from"efficient-easel/screen/lib/document/preview-dom";var ATe=xu.mediaFields,RTe=/video|poster|focal|phone/i;function LTe(e){return($(ATe,e)??[]).find(o=>!o.includes("[]")&&!RTe.test(o))??null}function FTe(e){let o=LTe(e.type);return e.type!==Y?o&&zp(e.type,e.props,o)?{fromData:!0}:o:ju(e.props)?{fromData:!0}:o}var mV={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:FTe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var hV={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 GI}from"react/jsx-runtime";import{useState as BTe}from"react";import{Button as NTe,Tooltip as DTe,toast as xV}from"efficient-shell/ui";import{TemplateIcon as MTe}from"efficient-easel/icons";import{useSettledAction as HTe}from"efficient-easel/easel";import{useScreenDocument as WTe}from"efficient-easel/screen/components/ScreenDocumentContext";function IV({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=WTe(),[a,n]=BTe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():xV.error(c(gV))}catch{xV.error(c(gV))}finally{n(!1)}}},i=HTe({onPress:()=>{s()},busy:a});return GI(DTe,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:GI("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:GI(NTe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:GI(MTe,{size:15}),children:c("Save as Template")})})})}var gV="Your last changes did not save, so the template was not made. Try again.";var $Te="Save your page changes first";function yV(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:$Te}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var bV="storefront-editor:save-as-template";import{phoneKey as UTe,tabletKey as zTe}from"efficient-easel/draw";var GTe=[xa.top,zTe(xa.top),UTe(xa.top)],jI="ContactLocations",SV="ContactRouting",wV="CityPictures",CV="CityMaps",jTe=[{key:wV,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:CV,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function vV(e=Os,o=kk){let t=H0.find(r=>r.sections.some(a=>a.type===SV))?.key;return!e.includes(jI)||!t?[]:jTe.filter(r=>!(o&&r.key===wV)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:SV,desc:n,alias:"locations offices stores branches",insert:i=>{let l=cn(jI);if(!l)return null;let d=ic(),f=Of(jI,l,s)(i.nodeDefaults,i.newNodeId,d);if(!f||!(o&&r===CV))return f;let u=Of(jI,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(GTe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function kV(e=Os,o){return[...vV(e,o)]}function PV(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Kl(e);if(n)return n(o,t,ic());if(VE(e)&&a(Y)&&a(hi)){let i=$(dr,e);return{type:Y,props:{...o(Y),id:t(Y),direction:"column",name:`${r(e)} section`,content:[{type:hi,props:{...o(hi),id:t(hi),...i?.headStyle?{headStyle:i.headStyle}:{},...i?.headRowGap?{rowGap:i.headRowGap}:{},...i?.headDescriptionSize?{descriptionSize:i.headDescriptionSize}:{},...Md(e)!==Md(hi)?{eyebrowLook:Md(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...TV(e,t)}}]}}}if($(qt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=TV(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function TV(e,o){return e==="Cards"?{template:GE(t=>o(t))}:e===jE?{template:KE(t=>o(t))}:{}}import{useEffect as KTe,useState as VTe}from"react";import{useEaselSession as YTe}from"efficient-easel/screen/lib/session-context";function EV(){let e=YTe().chrome?.products?.list,[o,t]=VTe(null);return KTe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function MV({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=U$(),a=NV().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=cc(l=>{l&&(o({kind:"ticker",heroId:l}),aPe(l))},[o]);return oa(()=>{t(s)},[s,t]),oa(()=>{r(i)},[r,i]),{partRows:(l,{rowClick:d})=>{let f=String(l.props.id);return l.type==="Hero"&&Rv(l.props)&&Bo(FV,{icon:Bo(Ys,{type:"ticker",size:13}),name:c($s),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function HV({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=hI(),a=NV().tree,{appState:n,config:s}=BV(p=>p),i=qTe({data:n.data,config:s});i.current={data:n.data,config:s};let l=e,d=Ts.find(p=>ef[p]===l.kind),f=d&&"nodeId"in l?Ps(String(l.nodeId),d):null,u=cc(p=>{let m=xx(p);if(!m)return;let{data:h,config:I}=i.current,w=oPe(h,I,{kind:"node",id:m.nodeId});if(!w)return;let S={kind:ef[m.part],nodeId:m.nodeId};o({index:w.index,zone:w.zone},S)},[o]);return oa(()=>{t(f)},[f,t]),oa(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:m})=>{let h=String(p.props.id),I=xH(p);if(I.length===0)return null;let w=b=>{let y=Ps(h,b.part);return Bo(FV,{icon:Bo(Ys,{type:b.part==="media"?"heroMedia":"heroImage",size:13}),name:c(b.label),onSelect:()=>u(y),selected:f===y,rowProps:{onClick:m(()=>u(y))},words:a},y)},[S,...v]=I;return mp(LV,{children:[w(S),v.length>0&&Bo(ePe,{children:v.map(w)})]})}}}function WV(e,o){return{partRows:(t,r)=>mp(LV,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function nPe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:l,token:d}=KI(),{hasPreviewLink:f}=t,u=Ge(DV()).preview?.draftLink,p=G8(e.data),m=yV({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=cc(()=>{!a||!r||l(bV,{siteId:a,slug:r})},[l,a,r]),I=M8({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&Bo(IV,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&Bo($8,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function sPe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=KI(),{hasSiteTheme:i,explainsSiteSettings:l}=t,d=b=>o.setView(b),[f,u]=_V(ul[0].id),[p,m]=_V(!1),{surface:h,setSurface:I}=mj(),w=()=>{if(i){d("styles"),o.reveal(),OV();return}e.show(n0),e.reveal(),OV()},S={id:"pages",label:c("Pages"),icon:Bo(ZTe,{}),panel:({onHide:b})=>Bo(aj,{activeSurface:h,onPreviewSurface:I,onNavigate:y=>{I(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:b})},v=[];return!i&&l&&v.push({id:"appearance",label:c("Appearance"),icon:Bo(QTe,{}),active:e.kind==="website",onSelect:w}),i&&v.push({id:"styles",label:c("Styles"),icon:Bo(JTe,{}),panel:({onHide:b,notify:y})=>Bo(VK,{tokenRef:n,siteId:a??void 0,onClose:b,onNotify:y,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>m(!1)})}),{railLead:[S],railTrail:v,resolveLeftView:b=>dV(b,i),openSettings:w,openStyles:()=>{u(jD),d("styles")},openPageStyles:i?()=>{u(hl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(BK),e.reveal()}:void 0}}function iPe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=KI(),a=BV(s=>s.config),n=DV();oa(()=>(tb({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>tb(null)),[e,o,t,a]),oa(()=>{let s=fr();if(!s||!r)return;let i=!1;return rPe(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function $V(){let e=yu();return cc(o=>{tN(o,e)},[e])}function lPe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;oa(()=>{aV(s?.type==="BookingBox"&&s.props.region==="confirm"?nV(i(String(s.props.id))):null)},[s?.props.id]);let l=f8(e,o),{capabilities:{hasSiteSettings:d}}=KI();iPe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=mI(),h=cc(()=>n(NK),[n]),I=a==="chat";oa(()=>{p(I)},[I,p]),oa(()=>{m(h)},[m,h]);let{setOpenHandler:w}=Kf(),S=cc(()=>n(DK),[n]);oa(()=>{w(S)},[w,S]);let v=WV(MV(e),HV(e)),b=nPe(o),y=sPe(e,r);XG(r);let k=t.device,F=$V();return{...v,...b,...y,hasOwnRows:T=>T.type===UI,ownRows:l.renderLocationTree,sectionPressed:l.sectionPressed,onCopyItem:F,wrap:T=>Bo(Uy.Provider,{value:!0,children:mp(tPe.Provider,{value:k,children:[T,Bo(J8,{})]})}),addPanelRow:T=>d?mp("div",{className:"sf-addside-sitewide",children:[Bo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:Bo(Ys,{type:"chat",size:16})}),mp("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{T(),h()},children:[c("Live chat"),Bo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),Bo(XTe,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var AV=null,E0=new WeakMap;function cPe(e){let o=HO();if(!e||!o)return e;AV!==o&&(AV=o,E0=new WeakMap);let t=E0.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},E0.set(e,t)),t}var dPe={isLockedBlock:(e,o)=>Kg(e,o)||!!(o&&fr()?.heldElsewhere(o.props.id)),duplicateBlocked:BI,nestDepth:(e,o,t)=>o===Qp?eu(e,t):0,newSectionNode:PV,canAddTo:(e,o,t,r)=>cPe(tV(e,o,r,t)),blockIsOffered:F6,slotsOf:rV,resolveOnInsert:!0},fPe=new Proxy(hV,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),pPe={labelAtLevel:(e,o,t)=>c(qI(e,o,t)),descriptions:fPe,categoryLabel:e=>{let o=Q8(e);return o===void 0?void 0:c(o)},firstSection:eV,blockRowName:sV,rowName:Vg,plainText:na,Icon:Ys,Thumbnail:jK,useProducts:EV,presets:kV()},uPe={desktop:2e3,tablet:800,mobile:390},RV="desktop",mPe={options:dj,initial:RV,fluid:RV,widths:uPe,hidesPerView:!0},hPe={read:lV,write:e=>cV(e),forSelection:(e,o)=>fV(e,o)},xPe={first:Ct,last:Qe,firstGroup:Je,lastGroup:ze,isSectionGroup:_i,sectionGroupZone:i1,panelOf:e=>e===Ct?FK:null,get sharedReach(){return js()?IPe:void 0},get shared(){return fr()?uV:void 0},get groupTab(){return js()?CK:void 0},get groupBadge(){return js()?e0({type:ze})??void 0:void 0},get changeNotice(){return js()?vK():void 0},get band(){return js()?gPe:void 0},get groupAccepts(){return js()?d1:void 0}},gPe={foldable:!0},IPe=e=>e0(e)??pV(e);function yPe(e){return{...WV(MV(e),HV(e)),onCopyItem:$V(),openSettings:()=>e.show(n0)}}function bPe(e,o){S8(e,o),L8()}var Sbo={useOwnerName:xl,useDocumentLabel:XD,useBridges:lPe,useStandaloneBridges:yPe,useDocumentPass:bPe,blockRules:dPe,blockLook:pPe,devices:mPe,leftView:hPe,pinned:xPe,Canvas:zG,canvasDrag:{media:mV},Inspector:HK};export{iT as a,Ge as b,Mi as c,kx as d,kGe as e,Jr as f,Qr as g,Po as h,NGe as i,Fv as j,E8e as k,Sf as l,wf as m,U5 as n,z5 as o,Qx as p,_8e as q,Qde as r,G5 as s,O8e as t,S6 as u,JJe as v,CPe as w,ce as x,c as y,nt as z,w6 as A,oQe as B,Ui as C,Wo as D,iL as E,_t as F,jRe as G,dL as H,fL as I,gm as J,Im as K,xL as L,hS as M,xS as N,XRe as O,ZRe as P,uF as Q,rs as R,Bm as S,KLe as T,Be as U,mF as V,Vi as W,yb as X,Sb as Y,eA as Z,wb as _,iY as $,bEe as aa,Nu as ba,iA as ca,lY as da,cY as ea,dY as fa,CEe as ga,Dv as ha,zGe as ia,Ox as ja,Hn as ka,Rc as la,XO as ma,ZO as na,x7 as oa,VPe as pa,jy as qa,HM as ra,WM as sa,wLe as ta,$r as ua,P1 as va,$n as wa,YL as xa,qL as ya,ed as za,DZ as Aa,SL as Ba,jr as Ca,kL as Da,xa as Ea,yS as Fa,bS as Ga,P4 as Ha,_b as Ia,R_e as Ja,L_e as Ka,Va as La,B_e as Ma,N_e as Na,Ab as Oa,NA as Pa,jc as Qa,D_e as Ra,BA as Sa,DA as Ta,M_e as Ua,Gc as Va,Rb as Wa,H_e as Xa,W_e as Ya,$_e as Za,U_e as _a,uM as $a,Is as ab,X5e as bb,Z5e as cb,J5e as db,mM as eb,Q5e as fb,Ft as gb,Il as hb,id as ib,Vr as jb,Zu as kb,UA as lb,pa as mb,zA as nb,Ro as ob,Fs as pb,Q as qb,Ol as rb,re as sb,oe as tb,se as ub,ie as vb,ge as wb,Sje as xb,Ie as yb,Rl as zb,Ll as Ab,pf as Bb,uf as Cb,A4 as Db,kje as Eb,Hce as Fb,R4 as Gb,Eje as Hb,_je as Ib,L4 as Jb,QC as Kb,RM as Lb,yse as Mb,Md as Nb,LM as Ob,Q3e as Pb,Hv as Qb,Rje as Rb,Lje as Sb,Fje as Tb,Bje as Ub,Nje as Vb,Dje as Wb,S3e as Xb,jh as Yb,Nd as Zb,w3e as _b,C3e as $b,CM as ac,YC as bc,Qne as cc,ese as dc,v3e as ec,ose as fc,k3e as gc,C2 as hc,x6e as ic,R2 as jc,g6e as kc,I6e as lc,y6e as mc,Mx as nc,zv as oc,D4 as pc,Hx as qc,Yje as rc,Xce as sc,Zce as tc,Jce as uc,qje as vc,wt as wc,Ms as xc,Ml as yc,RKe as zc,LKe as Ac,FKe as Bc,W2 as Cc,dx as Dc,Aie as Ec,P6e as Fc,C5 as Gc,v5 as Hc,k5 as Ic,JKe as Jc,DX as Kc,hr as Lc,aRe as Mc,nRe as Nc,sRe as Oc,iRe as Pc,um as Qc,lRe as Rc,Om as Sc,nd as Tc,QL as Uc,eF as Vc,oF as Wc,OLe as Xc,Je as Yc,ze as Zc,Jy as _c,_i as $c,l1 as ad,vu as bd,P5 as cd,F8e as dd,B8e as ed,og as fd,K5 as gd,vw as hd,Id as id,qr as jd,po as kd,Pw as ld,BB as md,NB as nd,Ew as od,yd as pd,yh as qd,Pd as rd,nC as sd,Cr as td,wa as ud,NN as vd,ms as wd,mC as xd,gC as yd,$d as zd,NM as Ad,DM as Bd,tv as Cd,ws as Dd,ZM as Ed,BWe as Fd,NWe as Gd,DWe as Hd,jd as Id,Vt as Jd,GWe as Kd,E3e as Ld,$3e as Md,XC as Nd,U3e as Od,bs as Pd,Kh as Qd,Io as Rd,o$e as Sd,r2 as Td,n2 as Ud,s2 as Vd,uo as Wd,Ye as Xd,ag as Yd,t3 as Zd,oVe as _d,ng as $d,r3 as ae,sVe as be,wVe as ce,m3 as de,yk as ee,h3 as fe,kVe as ge,TVe as he,PVe as ie,bk as je,EVe as ke,_Ve as le,x3 as me,Afe as ne,dg as oe,p7e as pe,ux as qe,zie as re,Sv as se,Ufe as te,T7e as ue,j3 as ve,K3 as we,P7e as xe,E7e as ye,Rw as ze,zDe as Ae,Lw as Be,WB as Ce,W7e as De,aW as Ee,nW as Fe,sYe as Ge,gYe as He,IYe as Ie,yYe as Je,Wk as Ke,$Le as Le,US as Me,zS as Ne,GS as Oe,uW as Pe,ape as Qe,npe as Re,pg as Se,wYe as Te,CYe as Ue,qYe as Ve,BW as We,XYe as Xe,NW as Ye,JYe as Ze,GW as _e,jW as $e,Mpe as af,qW as bf,m9e as cf,xg as df,C9e as ef,Ef as ff,T9e as gf,o$ as hf,E9e as if,t$ as jf,r$ as kf,A9e as lf,Dd as mf,Ise as nf,gg as of,i$ as pf,B9e as qf,N9e as rf,D9e as sf,M9e as tf,Oa as uf,z9e as vf,Ig as wf,V9e as xf,bg as yf,j3e as zf,K3e as Af,Ss as Bf,V3e as Cf,lR as Df,_D as Ef,p4e as Ff,u4e as Gf,Cae as Hf,m4e as If,h4e as Jf,AD as Kf,zC as Lf,$h as Mf,rM as Nf,Qd as Of,$t as Pf,M0e as Qf,fb as Rf,Hc as Sf,$0e as Tf,G7 as Uf,W1 as Vf,U0e as Wf,Un as Xf,q7 as Yf,Y0e as Zf,q0e as _f,Wc as $f,X0e as ag,Z0e as bg,gb as cg,RUe as dg,LUe as eg,FUe as fg,BUe as gg,cle as hg,NUe as ig,xx as jg,of as kg,WUe as lg,Pv as mg,wH as ng,CH as og,vv as pg,xle as qg,$Ue as rg,gx as sg,tf as tg,yx as ug,UUe as vg,zUe as wg,Ix as xg,GUe as yg,jUe as zg,Vy as Ag,st as Bg,JO as Cg,g7 as Dg,I7 as Eg,ZPe as Fg,y7 as Gg,b7 as Hg,JPe as Ig,QPe as Jg,e0e as Kg,o0e as Lg,PH as Mg,rf as Ng,af as Og,Sx as Pg,_H as Qg,El as Rg,OH as Sg,wx as Tg,Cx as Ug,vx as Vg,AH as Wg,RH as Xg,LH as Yg,FH as Zg,BH as _g,MH as $g,HH as ah,bze as bh,Sze as ch,wze as dh,Cze as eh,mr as fh,Dle as gh,jH as hh,Hle as ih,VH as jh,YH as kh,rx as lh,Yle as mh,qze as nh,e4 as oh,tGe as ph,mGe as qh,hGe as rh,_$e as sh,Kd as th,F$e as uh,B$e as vh,y2 as wh,nJ as xh,Kr as yh,vLe as zh,Af as Ah,Aa as Bh,Q6 as Ch,Fg as Dh,Seo as Eh,weo as Fh,Reo as Gh,Leo as Hh,nhe as Ih,vT as Jh,lU as Kh,Feo as Lh,dU as Mh,fU as Nh,xU as Oh,phe as Ph,hhe as Qh,roo as Rh,xoo as Sh,goo as Th,Nf as Uh,Ioo as Vh,yoo as Wh,PT as Xh,boo as Yh,Yd as Zh,hv as _h,lx as $h,Yoo as ai,kl as bi,K6e as ci,V6e as di,eH as ei,Xhe as fi,dz as gi,Mf as hi,pro as ii,mro as ji,DT as ki,vz as li,Cg as mi,YXe as ni,ZXe as oi,U$ as pi,Xk as qi,z$ as ri,G$ as si,eZe as ti,j$ as ui,kg as vi,lZe as wi,V$ as xi,X$ as yi,Y$ as zi,Mm as Ai,Ia as Bi,$o as Ci,Ot as Di,cd as Ei,qi as Fi,tFe as Gi,rFe as Hi,nFe as Ii,sFe as Ji,iFe as Ki,lFe as Li,cFe as Mi,fFe as Ni,Xi as Oi,ns as Pi,wF as Qi,qS as Ri,WJ as Si,CF as Ti,ZS as Ui,X1 as Vi,Z1 as Wi,xEe as Xi,Mu as Yi,Hu as Zi,zc as _i,gA as $i,LEe as aj,FEe as bj,CA as cj,kb as dj,XY as ej,Y_e as fj,oOe as gj,tOe as hj,w9 as ij,xt as jj,Vc as kj,Gb as lj,jb as mj,jOe as nj,aR as oj,KOe as pj,VOe as qj,YOe as rj,dR as sj,pR as tj,ma as uj,bR as vj,nS as wj,OR as xj,yAe as yj,RR as zj,NR as Aj,DR as Bj,MR as Cj,HR as Dj,WR as Ej,$R as Fj,iS as Gj,kX as Hj,TX as Ij,Zc as Jj,lS as Kj,zR as Lj,$Ae as Mj,EX as Nj,UAe as Oj,zAe as Pj,GAe as Qj,jR as Rj,YAe as Sj,AX as Tj,qAe as Uj,XAe as Vj,LX as Wj,cS as Xj,BX as Yj,eRe as Zj,NX as _j,oRe as $j,pS as ak,xRe as bk,XR as ck,$X as dk,IRe as ek,Jc as fk,oZ as gk,MRe as hk,jZ as ik,uLe as jk,VZ as kk,mLe as lk,hLe as mk,xLe as nk,Ki as ok,Lm as pk,NLe as qk,DLe as rk,MLe as sk,$J as tk,UJ as uk,mFe as vk,KJ as wk,VJ as xk,hFe as yk,xFe as zk,gFe as Ak,IFe as Bk,yFe as Ck,TFe as Dk,PFe as Ek,EFe as Fk,_Fe as Gk,OFe as Hk,AFe as Ik,RFe as Jk,LFe as Kk,FFe as Lk,BFe as Mk,NFe as Nk,vF as Ok,DFe as Pk,MFe as Qk,tn as Rk,tQ as Sk,ls as Tk,CNe as Uk,vNe as Vk,kNe as Wk,TNe as Xk,PNe as Yk,ENe as Zk,_Ne as _k,LNe as $k,FNe as al,lee as bl,BNe as cl,NNe as dl,DNe as el,MNe as fl,HNe as gl,WNe as hl,$Ne as il,UNe as jl,pee as kl,xw as ll,zNe as ml,Qi as nl,It as ol,yr as pl,nB as ql,sB as rl,ol as sl,GNe as tl,Mee as ul,jNe as vl,KNe as wl,VNe as xl,YNe as yl,qNe as zl,XNe as Al,ZNe as Bl,xB as Cl,JNe as Dl,ioe as El,QNe as Fl,eDe as Gl,yB as Hl,oDe as Il,tDe as Jl,rDe as Kl,aDe as Ll,nDe as Ml,iDe as Nl,ww as Ol,lDe as Pl,SB as Ql,cDe as Rl,dDe as Sl,nl as Tl,CB as Ul,fDe as Vl,pDe as Wl,uDe as Xl,mDe as Yl,fno as Zl,pno as _l,uno as $l,Vg as am,Xz as bm,YT as cm,Fno as dm,Bno as em,WIe as fm,$Ie as gm,uso as hm,mso as im,hso as jm,xso as km,Qg as lm,eI as mm,Wso as nm,gG as om,bG as pm,SG as qm,wG as rm,Alo as sm,pI as tm,nj as um,sj as vm,lj as wm,uI as xm,cco as ym,dco as zm,mI as Am,Qbe as Bm,bco as Cm,Kf as Dm,vco as Em,mj as Fm,Ei as Gm,m7 as Hm,GPe as Im,jPe as Jm,$uo as Km,Uuo as Lm,zuo as Mm,i4 as Nm,Pco as Om,hI as Pm,FPe as Qm,Foe as Rm,Boe as Sm,Noe as Tm,zB as Um,eMe as Vm,Xw as Wm,eD as Xm,PHe as Ym,ED as Zm,T4e as _m,P4e as $m,Dh as an,Cne as bn,vne as cn,T5e as dn,PPe as en,Gne as fn,SM as gn,m3e as hn,h3e as in,Zne as jn,x3e as kn,g3e as ln,Gh as mn,I3e as nn,Cl as on,c2 as pn,d2 as qn,S2 as rn,f6e as sn,H2 as tn,C6e as un,$2 as vn,wv as wn,Kie as xn,Xie as yn,aUe as zn,Vqe as An,aXe as Bn,lXe as Cn,E$ as Dn,pXe as En,uXe as Fn,kXe as Gn,TXe as Hn,HXe as In,zXe as Jn,_f as Kn,tme as Ln,WZe as Mn,YZe as Nn,fJe as On,pJe as Pn,LJe as Qn,u6 as Rn,APe as Sn,xj as Tn,dfo as Un,Cj as Vn,Qe as Wn,FI as Xn,Rr as Yn,XK as Zn,sp as _n,ZK as $n,JK as ao,Kho as bo,Vho as co,F8 as do,C0 as eo,B8 as fo,tV as go,pIo as ho,Sbo as io};
|
|
342
|
+
Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function Qs(e){return kx(e,sp,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var f0=e=>e.flatMap(o=>o.cards),QK=(e,o,t)=>Math.min(Math.max(e,o),t);function WI(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(sp(e[a])===o){if(r===t)return a;r++}return-1}function p0(e,o,t){let r=Qs(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=QK(o<t?t-1:t,0,r.length);return r.splice(n,0,a),f0(r)}function u0(e,o,t,r,a){let n=Qs(e),s=n.find(u=>u.key===o),i=n.find(u=>u.key===r);if(!s||!i||t<0||t>=s.cards.length)return e;let[l]=s.cards.splice(t,1),d=o===r?l:{...l,group:i.key,groupName:i.name};d!==l&&d0.set(d,HI(l));let f=QK(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(f,0,d),f0(n)}function e8(e,o){let t=Qs(e),r=t.find(n=>n.key===o),a={...JK,group:o,groupName:r?.name??""};return r?(r.cards.push(a),f0(t)):[...e,a]}function o8(e){let o=new Set(Qs(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...JK,group:r,groupName:""}],key:r}}function t8(e,o){return e.filter(t=>sp(t)!==o)}function r8(e,o,t){let r=WI(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function Kho(e,o,t){let r=e.flatMap((s,i)=>sp(s)===o?[i]:[]),a=e.slice();r.forEach((s,i)=>{a[s]=t[i]});let n=t.slice(r.length);return[...a.filter(s=>s!==void 0),...n]}function Vho(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>sp(n)===r);return a.length?a:t(r)})}var UI="ContactLocations",$I=e=>({parentId:`locations-${e}`,slot:"groups"}),h0=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function f8(e,o){let{readOnly:t,selected:r}=o,a=gke().tree,n=o.data?.content??[],s=Ike(e),i=m0(null);n8(()=>{let b=r?.type===UI?String(r.props.id):null;b&&b!==i.current&&Rr({level:"groups"}),i.current=b},[r?.props.id]);let{selectedLocationPartId:l,setSelectedLocationPartId:d,setSelectHandler:f}=j$(),u=XK(),p=(b,y)=>{let k=n[b];k&&o.replace(b,{type:k.type,props:{...k.props,locations:y}})},m=b=>{let y=n[b]?.props?.locations;return Array.isArray(y)?y:[]},h=s8({keyOf:b=>`group:${b.si}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===$I(b.si).parentId&&y.slot==="groups",onDrop:(b,y)=>{p(b.si,p0(m(b.si),b.index,y.index)),u.level==="city"&&Rr({level:"groups"})},onStep:(b,y)=>{p(b.si,p0(m(b.si),b.index,y<0?b.index-1:b.index+2)),u.level==="city"&&Rr({level:"groups"})}}),I=s8({keyOf:b=>`city:${b.si}:${b.group}:${b.index}`,readOnly:!!t,canDrop:(b,y)=>y.parentId===$I(b.si).parentId&&y.slot.startsWith("cities:"),onDrop:(b,y)=>{let k=y.slot.slice(7);p(b.si,u0(m(b.si),b.group,b.index,k,y.index)),Rr({level:"group",key:k})},onStep:(b,y)=>{p(b.si,u0(m(b.si),b.group,b.index,b.group,y<0?b.index-1:b.index+2)),u.level==="city"&&Rr({level:"group",key:b.group})}}),w=m0(n);w.current=n;let S=m0(()=>{});n8(()=>{f(b=>{let y=kg(b);if(!y)return;let k=w.current.findIndex(F=>F.props?.id===y.nodeId);k<0||S.current(k,{level:y.part,index:y.index})})},[f]);let v=(b,y)=>{i.current=n[b]?.props?.id??null,o.select(b),Rr(y),e.reveal();let k=n[b]?.props?.id;typeof k=="string"&&(y.level==="city"||y.level==="image"||y.level==="map")?d(vg(k,y.index,y.level)):d(null),typeof k=="string"&&o.scrollTo(k)};return S.current=v,{renderLocationTree:(b,y,{rowClick:k,isCollapsed:F,toggleCollapse:T})=>{let D=m(y),P=Qs(D),L=String(b.props.id),C=s&&r?.props.id===L,A=R=>Fo(d8,{...t?{}:h.seam({place:{...$I(y),index:R}})},`seam:${L}:groups:${R}`),E=(R,W)=>Fo(d8,{...t?{}:I.seam({place:{...h0(y,R),index:W}})},`seam:${L}:cities:${R}:${W}`);return ei(fke,{children:[Fo(ip,{icon:Fo(xke,{size:13}),name:c("Texts"),words:a,onSelect:()=>v(y,{level:"texts"}),selected:C&&u.level==="texts",rowProps:{onClick:k(()=>v(y,{level:"texts"}))}}),P.map((R,W)=>{let U=`${L}::grp::${R.key}`,Z=F(U),V=C&&u.level==="group"&&u.key===R.key,de=R.name||R.key?ZK(R.key,R.name):c("Ungrouped"),Ce={...h0(y,R.key),index:R.cards.length},ee=I.row({item:{si:y,group:R.key,index:-1},place:Ce,into:Ce,canDrag:!1},{onClick:k(()=>v(y,{level:"group",key:R.key}))}),_e=h.row({item:{si:y,index:W},place:{...$I(y),index:W}},ee.rowProps);return ei(a8,{children:[W===0&&A(0),Fo(ip,{icon:Fo(pke,{size:13}),name:de,words:a,onSelect:()=>v(y,{level:"group",key:R.key}),selected:V,draggable:_e.draggable,dragging:_e.dragging,drop:_e.drop??ee.drop,fold:{open:!Z,label:c("group"),onToggle:()=>T(U)},actions:Fo(c8,{kind:"delete",label:nt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",R.cards.length,{label:de}),onClick:()=>{p(y,t8(D,R.key)),Rr({level:"groups"})},children:Fo(i8,{size:15})}),rowProps:_e.rowProps,count:R.cards.length,countLabel:nt("{n} city","{n} cities",R.cards.length)}),!Z&&ei(l8,{children:[R.cards.map((Oe,Ee)=>{let Fe=WI(D,R.key,Ee),No=C&&u.level==="city"&&u.index===Fe,qo=String(Oe?.name??"")||c("City"),Xo=`${L}::city::${HI(Oe)}`,Co=F(Xo),{rowProps:Do,...vo}=I.row({item:{si:y,group:R.key,index:Ee},place:{...h0(y,R.key),index:Ee}},{onClick:k(()=>v(y,{level:"city",index:Fe}))});return ei(a8,{children:[Ee===0&&E(R.key,0),Fo(ip,{icon:Fo(mke,{size:13}),name:qo,words:a,onSelect:()=>v(y,{level:"city",index:Fe}),selected:No,...vo,fold:{open:!Co,label:qo,onToggle:()=>T(Xo)},actions:Fo(c8,{kind:"delete",label:c("Delete {name}",{name:qo}),onClick:()=>{p(y,r8(D,R.key,Ee)),Rr({level:"group",key:R.key})},children:Fo(i8,{size:15})}),rowProps:Do}),!Co&&ei(l8,{children:[Fo(ip,{icon:Fo(uke,{size:13}),name:c("Image"),words:a,onSelect:()=>v(y,{level:"image",index:Fe}),selected:C&&u.level==="image"&&u.index===Fe,rowProps:{onClick:k(()=>v(y,{level:"image",index:Fe}))}}),Fo(ip,{icon:Fo(hke,{size:13}),name:c("Map"),words:a,onSelect:()=>v(y,{level:"map",index:Fe}),selected:C&&u.level==="map"&&u.index===Fe,rowProps:{onClick:k(()=>v(y,{level:"map",index:Fe}))}})]}),E(R.key,Ee+1)]},HI(Oe))}),ei("button",{type:"button",className:"sf-add-card",onClick:()=>{let Oe=e8(D,R.key);p(y,Oe);let Ee=Qs(Oe).find(Fe=>Fe.key===R.key);Rr(Ee&&Ee.cards.length?{level:"city",index:WI(Oe,R.key,Ee.cards.length-1)}:{level:"group",key:R.key})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add city")]})]}),A(W+1)]},U)}),ei("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:R,key:W}=o8(D);p(y,R),v(y,{level:"group",key:W})},children:[Fo("span",{className:"sf-plus sf-plus--sm",children:"+"}),c("Add group")]})]})},sectionPressed:b=>{b?.type===UI&&Rr({level:"groups"})}}}import{useEffect as wke,useRef as Cke}from"react";import{createNode as g0,newId as I0}from"efficient-easel/data";import{useEaselApi as vke}from"efficient-easel/easel";import{useScreenDocument as kke}from"efficient-easel/screen/components/ScreenDocumentContext";import{useEaselSession as Tke}from"efficient-easel/screen/lib/session-context";import{useEffect as h8,useRef as yke}from"react";import{useEasel as bke}from"efficient-easel/easel";import{ROOT_ZONE as x0}from"efficient-easel/draw";var lp={};function p8(e){return lp={...e?.theme?{theme:e.theme}:{},...e?.site?{site:e.site}:{}},lp}function u8(e){lp===e&&(lp={})}function ic(){return lp}function m8(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 g8(e){let o=bke(d=>d.appState.data.content),{theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}=fe(),l=yke(new Set);h8(()=>{let d=x8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i});d&&Ske(p4(o,void 0,d),e,l.current)},[o,e,t,r,a,n,s,i]),h8(()=>{let d=p8(x8({theme:t,themeRow:r,themeFromDocument:a,siteGutter:n,siteGutterPhone:s,siteLengthUnits:i}));return()=>u8(d)},[t,r,a,n,s,i])}function x8(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=m8({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 Ske(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(x0,r,a[0]),a.slice(1).forEach((s,i)=>{o.insertNode(x0,r+1+i,s),o.replaceComponent(x0,r+1+i,s)}))}}import{ROOT_ZONE as lc,missingPinnedTypes as Pke,pinnedDuplicateIds as y0}from"efficient-easel/draw";function I8(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function y8(e,o){let t=e.some(i=>i?.type===ze),r=e[e.length-1],a=!t&&r?.type===Qe?r:null,n=e.filter(i=>i?.type===Qe&&i!==a).map(i=>String(i.props?.id??"")).filter(Boolean),s=o.hasChromeDoc&&!t&&!a;return{remove:n,seedHeader:!e.some(i=>i?.type===Ct),seedFooter:s,seedSiteHeader:s&&!e.some(i=>i?.type===Je)}}async function b8(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!==Je||!e.stillOpen())return!1;let r=e.latest();return r.some(a=>a?.type===Je)?!1:(e.write(vu(r,t)),!0)}function S8(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i,siteId:l,tokenRef:d}=kke(),f=Tke(),{hasSiteSettings:u,hasPinnedChrome:p}=r;g8(e);let m=!!r.editsPinnedInPlace&&a!==hr,h=a===hr,I=vke().getState,w=Cke(null);wke(()=>{if(!I8({docId:n,saveStatus:i,seededDocId:w.current})||(w.current=n,!p))return;let S=I().appState.data,v=S.content,b=s?.content??[],y=(D,P)=>D.some(L=>L?.type===P);if(!u){let D=new Set(y0(v)),P=D.size?v.filter(C=>!D.has(C.props.id)):v;if(D.size&&e.setDocument({...S,content:P}),h)return;let L=Pke(P,b);if(L.includes(Qe)){let C=P.length,A=e.insertSection(Qe,C);e.replaceComponent(lc,C,{type:Qe,props:{id:A,blocks:FI()}})}L.includes(Ct)&&e.insertNode(lc,0,LI());return}if(h){let D=Oi(v);if(D!==v&&e.setDocument({...S,content:[...D]}),!D.find(P=>P.type===Qe)&&!y(b,Qe)&&!y(D,ze)&&!y(b,ze)){let P=(C,A)=>g0(o,C,A),L={type:Qe,props:{blocks:FI()}};e.insertNode(lc,D.length,bf(L,P,I0(ze),rp))}return}if(m){let D=!!t?.pinnedChrome?.state().docId,P=y8(v,{hasChromeDoc:D}),L=new Set([...P.remove,...y0(v.filter(A=>!P.remove.includes(String(A.props.id))))]),C=L.size?v.filter(A=>!L.has(String(A.props.id))):v;if(C.length!==v.length&&e.setDocument({...S,content:C}),P.seedFooter&&!y(b,Qe)&&!y(b,ze)){let A=(R,W)=>g0(o,R,W),E={type:Qe,props:{blocks:FI()}};e.insertNode(lc,C.length,bf(E,A,I0(ze),rp))}if(P.seedHeader&&!y(b,Ct)){let A=C[0]?.type===Je?1:0;e.insertNode(lc,A,LI())}if(P.seedSiteHeader&&!y(b,Je)&&!y(b,Qe)&&!y(b,ze)){let A=n;b8({blocks:Mi(f),make:(E,R)=>g0(o,E,R),id:I0(Je),siteId:l??null,token:d.current,latest:()=>I().appState.data.content,stillOpen:()=>w.current===A,write:E=>{let R=I().appState.data;e.setDocument({...R,content:[...E]})}})}return}let k=v.filter(D=>D.type!==Qe),F=new Set(y0(k)),T=F.size?k.filter(D=>!F.has(D.props.id)):k;T.length!==v.length&&e.setDocument({...S,content:T}),!y(T,Ct)&&!y(b,Ct)&&e.insertNode(lc,0,LI())},[n,i,s,I,e,u,p,h,m,t,f,l,d])}import{useEffect as A8,useMemo as Fke,useRef as R8}from"react";import{useEasel as Bke}from"efficient-easel/easel";import{useEaselHost as Nke}from"efficient-easel/screen/lib/host";import{FIELD_DESCRIPTION_MARKER as Eke}from"efficient-easel/screen/lib/host";import{isNode as v8}from"efficient-easel/data";function cp(e,o){let t=e.components[o]?.label;return typeof t=="string"&&t.trim()?t.trim():o}function _ke(e){return e.length>3&&e.endsWith("s")?e.slice(0,-1):e}function b0(e,o,t,r){e.forEach((a,n)=>{if(v8(a)){r.push({node:a,list:e,index:n,parent:o,slot:t});for(let s of Fr(a))b0(a.props[s],a,s,r)}})}function Oke(e){let o=[];b0(Array.isArray(e.content)?e.content:[],null,"",o);for(let t of Object.values(e.zones??{}))Array.isArray(t)&&b0(t,null,"",o);return o}function k8(e,o){return Oke(e).find(t=>String(t.node.props.id)===o)}function T8(e,o,t){if(!t)return null;let r=k8(o,t);if(!r)return null;let a=cp(e,r.node.type),n=r.parent?`${cp(e,r.parent.type)} \xB7 ${_ke(r.slot)} ${r.index+1}`:a;return{blockId:t,type:r.node.type,label:n,path:""}}var Ake=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 Rke(e){if(!e||typeof e!="object")return null;let o=e;if(typeof o.type!="string")return null;let t=o.type==="custom"?o[Eke]: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=Ake(n));for(let s of["arrayFields","objectFields"]){let i=t?.[s]??o[s];i&&typeof i=="object"&&(r[s]=P8(i))}return r}function P8(e){let o={};for(let[t,r]of Object.entries(e??{})){let a=Rke(r);a&&(o[t]=a)}return o}function E8(e){let o={};for(let[t,r]of Object.entries(e.components))r&&(o[t]={label:cp(e,t),fields:P8(r.fields),..._8(t)?{retired:!0}:{}});return o}function _8(e){return He(W0,e)}function w8(e,o){let t=e.components[o]?.defaultProps;return t&&typeof t=="object"?structuredClone(t):{}}function Lke(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 S0(e,o){return e.findIndex(t=>v8(t)&&String(t.props.id)===o)}function C8(e,o,t){let r=o||t;if(!r)return e.length;let a=S0(e,r);if(a<0)throw new Error(`there is no top-level block ${r}`);return o?a+1:a}function O8(e,o,t,r,a={}){let n=structuredClone(o),s=Array.isArray(n.content)?n.content:n.content=[];try{t.forEach((i,l)=>{let d=f=>{throw new Error(`change ${l+1}: ${f}`)};switch(i.op){case"set_props":{let f=k8(n,i.block_id)??d(`there is no block ${i.block_id}`);"id"in i.props&&d("a block's id is never changed");let u=Lke(f.node.props,i.path)??d(`there is no ${i.path} in that block`);Object.assign(u,structuredClone(i.props));break}case"insert_block":{e.components[i.type]??d(`there is no block type ${i.type}`),_8(i.type)&&d(`${cp(e,i.type)} is retired: it is no longer added (a page that holds one keeps it)`);let f=Kl(i.type),u=Object.keys(i.props??{}).filter(m=>m!=="id");f&&u.length&&d(`${cp(e,i.type)} is laid down as a Box of blocks: insert it with no props, then change its blocks`);let p=f?f(m=>w8(e,m),r,a):{type:i.type,props:{...w8(e,i.type),...structuredClone(i.props),id:r(i.type)}};s.splice(C8(s,i.after,i.before),0,p);break}case"remove_block":{let f=S0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`),s.splice(f,1);break}case"move_block":{let f=S0(s,i.block_id);f<0&&d(`there is no top-level block ${i.block_id}`);let[u]=s.splice(f,1);s.splice(C8(s,i.after,i.before),0,u);break}default:d(`"${i.op}" is not a change this editor makes`)}})}catch(i){return{ok:!1,reason:i instanceof Error?i.message:String(i)}}return{ok:!0,document:n}}var w0=e=>be(e.requestId)??null;function L8(){let e=Nke(),{appState:o,selectedItem:t,dispatch:r,history:a,config:n}=Bke(p=>p),s=n,i=R8({appState:o,dispatch:r,history:a,blockConfig:s});i.current={appState:o,dispatch:r,history:a,blockConfig:s};let l=R8(new Map),d=t?.props?.id,f=Fke(()=>T8(s,o.data,d),[s,o.data,d]),u=f?JSON.stringify(f):"";A8(()=>{e.connected&&e.send("storefront-editor:selection",{selection:f})},[e,u]),A8(()=>e.subscribe(p=>{let{appState:m,dispatch:h,history:I,blockConfig:w}=i.current;switch(p.type){case"storefront-editor:request-document":{let S=w0(p);if(!S)return;e.send("storefront-editor:document",{requestId:S,document:m.data,blocks:E8(w)});return}case"storefront-editor:apply-page-edits":{let S=w0(p);if(!S)return;let v=Array.isArray(p.ops)?p.ops:[],b=v.length?O8(w,m.data,v,y=>`${y}-${crypto.randomUUID()}`,ic()):{ok:!1,reason:"no changes"};b.ok&&(h({type:"setData",data:b.document,recordHistory:!0}),l.current.set(S,JSON.stringify(b.document.content??[]))),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b.ok,reason:b.ok?null:b.reason});return}case"storefront-editor:undo-page-edits":{let S=w0(p);if(!S)return;let v=l.current.get(S),b=v!==void 0&&v===JSON.stringify(m.data.content??[]);b&&I.hasPast&&(I.back(),l.current.delete(S)),e.send("storefront-editor:page-edits-result",{requestId:S,applied:b&&I.hasPast,reason:b?null:"the page has changed since"});return}case"storefront-editor:set-right-panel":typeof p.shown=="boolean"&&h({type:"setUi",ui:{rightSideBarVisible:p.shown}});return;default:return}}),[e])}import{useEffect as N8,useState as D8}from"react";var zI=new Map;async function Dke(e,o){try{return(await Ge().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function F8(e,o){let t=zI.get(o);return t||(t=Dke(e,o),zI.set(o,t),t.catch(()=>{zI.get(o)===t&&zI.delete(o)})),t}var Mke=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function C0(e){return!!e&&Mke.test(e)}function B8(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===Hu?"/":`/${encodeURIComponent(o)}`;if(!C0(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function M8(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=D8(null),[s,i]=D8(null),l=OO();N8(()=>{try{i(new URL(fu()).hostname)}catch{i(null)}},[l]),N8(()=>{if(!C0(s)||!t||!r){n(null);return}let f=!1;return F8(r,t).then(u=>{f||n(u)}),()=>{f=!0}},[s,t,r]);let d=B8({pageSlug:o,siteSlug:a,hostname:s});return l?`${l}${d}`:d}import{jsx as dp}from"react/jsx-runtime";import{useEffect as Hke,useRef as H8,useState as Wke}from"react";import{ExternalIcon as W8}from"efficient-easel/icons";import{EaselIconButton as $ke}from"efficient-easel/chrome";import{Tooltip as Uke,iconButtonClasses as zke}from"efficient-shell/ui";import{useSettledPress as Gke}from"efficient-easel/easel";import{useScreenDocument as jke}from"efficient-easel/screen/components/ScreenDocumentContext";async function Kke({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=i=>{n&&!n.closed?n.location.href=i:a.open(i,"_blank","noopener,noreferrer")};try{await r()}catch{}return t(e).then(i=>s(i.url??o),()=>s(o))}function $8({liveHref:e,pageId:o,draftLink:t}){let{flushSave:r}=jke(),a=H8(r);a.current=r;let n=Gke(),[s,i]=Wke(!1),l=H8(null);if(Hke(()=>()=>l.current?.(),[]),t&&o){let d=()=>new Promise((u,p)=>{l.current=()=>u(!1),n.run(()=>{l.current=null,a.current().then(u,p)})}),f=()=>{s||n.waiting||(i(!0),Kke({pageId:o,liveHref:e,draftLink:t,ready:d}).finally(()=>i(!1)))};return dp($ke,{label:c("Preview your saved draft in a new tab"),tip:c("Open your saved draft in a new tab. Visitors don't see it."),disabled:s||n.waiting,onClick:f,children:dp(W8,{})})}return dp(Uke,{content:c("Preview the live site (opens in a new tab)"),side:"bottom",children:dp("a",{className:zke({className:"es-iconbtn"}),href:e,...Nd,"aria-label":c("Preview the live site in a new tab"),children:dp(W8,{})})})}import{createElement as Vke,useCallback as Yke,useEffect as U8,useRef as z8,useState as qke}from"react";import{ClockIcon as Xke}from"efficient-shell/icons/efficient";import{useScreenDocument as Zke}from"efficient-easel/screen/components/ScreenDocumentContext";function G8(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=Zke(),s=cK(lK(o??null),r),i=rI(aI()),l=n.siteLiveState;U8(()=>{if(l)return tS(l),ma(0),()=>tS(null)},[l]);let d=dm(),[f,u]=qke(!1),p=z8(e);p.current=e;let m=z8(!0);U8(()=>(m.current=!0,()=>{m.current=!1}),[]);let h=Yke(()=>{u(!0),a(p.current).then(()=>{sI()}).finally(()=>{m.current&&u(!1)})},[a]);if(t.canPublish){if(l){let I=d===void 0?void 0:r||d.state==="changed"?"changed":"live",w=YP({live:I,onPress:h,busy:f,goingLive:dK(d?.changes??[])});return n.siteVersions?{...w,menuItems:Jke()}:w}return YP({live:s,onPress:h,busy:f,pinnedUnpublished:i?.unpublished??!1})}}function Jke(){return[{key:"version-history",label:c("Version history"),icon:Vke(Xke),onSelect:_G}]}import{jsx as ae,jsxs as Nt,Fragment as up}from"react/jsx-runtime";import{useCallback as Qke,useEffect as eTe,useId as V8,useRef as oTe,useState as sr}from"react";import{useSettledAction as tTe}from"efficient-easel/easel";import{Avatar as rTe,Banner as fp,Button as oi,ColoredBadge as v0,Dialog as Y8,Drawer as aTe,DropdownMenu as nTe,FormField as q8,iconButtonClasses as sTe,Inline as k0,Input as iTe,ListRow as lTe,Select as cTe,SortableList as dTe,Stack as pp}from"efficient-shell/ui";import{EditIcon as fTe,EyeIcon as j8,MenuIcon as pTe,MoreIcon as uTe,PageIcon as X8,RevertIcon as K8,StylesIcon as mTe}from"efficient-shell/icons/efficient";import{useScreenDocument as Z8}from"efficient-easel/screen/components/ScreenDocumentContext";var hTe={page:X8,menu:pTe};function xTe(e,o){return e.pages.find(t=>t.id===o)??e.pages[0]??null}function gTe(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 ITe({version:e,page:o,waiting:t,busy:r,error:a,onCancel:n,onConfirm:s,onPage:i}){let l=V8();if(!e)return null;let d=e.kind==="draft_before_restore",f=e.number,u=DG(e),p=d?c("Put your drafts back?"):o?c("Restore {page} from version {n}?",{page:o.name,n:f}):c("Restore version {n}?",{n:f}),m=d?c("Your drafts go back to how they were before the restore."):o?c("{page} goes back to version {n} as a draft. Nothing else on your website changes.",{page:o.name,n:f}):u?c("The whole website goes back to version {n} as a draft: {what}.",{n:f,what:u}):c("The whole website goes back to version {n} as a draft.",{n:f}),h=e.deletedPictures??0;return ae(Y8,{open:!0,onClose:()=>{r||n()},size:"sm",title:p,footer:Nt(up,{children:[ae(oi,{variant:"secondary",onClick:n,disabled:r,children:c("Cancel")}),ae(oi,{onClick:s,loading:r,disabled:r,children:c("Restore as draft")})]}),children:Nt(pp,{gap:4,children:[o&&e.pages.length>1?ae(q8,{label:c("Page"),htmlFor:l,children:ae(cTe,{id:l,value:o.id,options:e.pages.map(I=>({value:I.id,label:I.name})),onChange:i,disabled:r})}):null,ae("p",{children:m}),ae("p",{children:c("Your live website does not change until you press Publish.")}),h>0?ae(fp,{tone:"warning",children:nt("{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.",h)}):null,t?ae(fp,{tone:"info",title:c("Your unpublished changes are kept"),children:c("They are saved in Version history as \u201CDraft before restore\u201D, so you can get them back.")}):null,a?ae(fp,{tone:"danger",children:a}):null]})})}function yTe({version:e,onCancel:o,onSave:t}){let r=V8(),[a,n]=sr(null),[s,i]=sr(""),[l,d]=sr(!1),[f,u]=sr(null);if(e!==a&&(n(e),i(e?.name??""),u(null)),!e)return null;let p=s.trim()===e.name,m=async()=>{if(!(l||p)){d(!0),u(null);try{await t(s.trim())}catch{u(c("The name was not saved. Try again."))}finally{d(!1)}}};return ae(Y8,{open:!0,onClose:()=>{l||o()},size:"sm",title:c("Name this version"),footer:Nt(up,{children:[ae(oi,{variant:"secondary",onClick:o,disabled:l,children:c("Cancel")}),ae(oi,{onClick:()=>{m()},loading:l,disabled:l||p,children:c("Save")})]}),children:ae(q8,{label:c("Name"),htmlFor:r,hint:c("Named versions are always kept. Leave it empty to take the name away."),error:f??void 0,children:ae(iTe,{id:r,value:s,invalid:!!f,onChange:h=>i(h.target.value),onKeyDown:h=>{h.key==="Enter"&&m()}})})})}function bTe({version:e,expanded:o,onToggle:t,onPreview:r,onRestore:a,onRestorePage:n,onName:s}){let i=e.kind==="draft_before_restore",l=!e.live,d=e.changes.length,f=[...i?[]:[{key:"preview",label:c("Preview"),icon:ae(j8,{}),onSelect:r}],...l?[{key:"restore",label:i?c("Put these drafts back"):c("Restore whole website"),icon:ae(K8,{}),onSelect:a}]:[],...l&&!i&&e.pages.length?[{key:"restore-page",label:c("Restore one page only"),icon:ae(X8,{}),onSelect:n}]:[],...i?[]:[{type:"divider",key:"divider"},{key:"name",label:c("Name this version"),icon:ae(fTe,{}),onSelect:s}]];return ae(lTe,{title:Nt("span",{className:"sf-version-title",children:[ae("span",{children:NG(e)}),e.live?ae(v0,{tone:"success",size:"xs",children:c("Live")}):null,e.name?ae(v0,{tone:"neutral",size:"xs",children:c("Version {n}",{n:e.number})}):null,i?ae(v0,{tone:"warning",size:"xs",children:c("Not published")}):null]}),expanded:o,onToggle:t,actions:ae(nTe,{align:"end","aria-label":c("More"),items:f,triggerClassName:sTe({variant:"ghost",size:"sm"}),trigger:ae(uTe,{})}),below:Nt(pp,{gap:3,children:[Nt(k0,{gap:2,align:"center",wrap:!0,className:"sf-version-meta",children:[ae(rTe,{name:e.createdBy,size:"xs"}),ae("span",{children:e.createdBy}),ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:HG(e.createdAt)}),d?Nt(up,{children:[ae("span",{"aria-hidden":"true",children:"\xB7"}),ae("span",{children:nt("{n} change","{n} changes",d)})]}):null]}),o?Nt(pp,{gap:3,children:[d?ae(pp,{gap:2,children:e.changes.map(u=>{let p=hTe[u.kind]??mTe;return Nt(k0,{gap:2,align:"center",children:[ae(p,{size:16}),ae("span",{children:MG(u)})]},`${u.kind}:${u.id}`)})}):null,Nt(k0,{gap:2,children:[i?null:ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(j8,{}),onClick:r,children:c("Preview")}),l?ae(oi,{variant:"secondary",size:"sm",leftIcon:ae(K8,{}),onClick:a,children:c("Restore")}):null]})]}):null]})})}function STe({open:e,onClose:o,access:t,waiting:r}){let{flushSave:a,reloadFromServer:n,docId:s}=Z8(),[i,l]=sr(null),[d,f]=sr(!1),[u,p]=sr(null),[m,h]=sr(null),[I,w]=sr(!1),[S,v]=sr(null),[b,y]=sr(null),[k,F]=sr(!1),T=oTe(0),D=Qke(()=>{let A=++T.current;f(!1),t.list().then(E=>{A===T.current&&l(E)},()=>{A===T.current&&f(!0)})},[t]);eTe(()=>{e&&D()},[e,D]);let P=A=>{F(!1),gTe(t,A.id).catch(()=>F(!0))},L=async()=>{if(!(!m||I)){w(!0),v(null);try{await FG({access:t,version:m.version,page:m.page,flushSave:a,reload:n}),h(null),o()}catch(A){v(A instanceof Gf?c("Your last changes did not save, so nothing was restored. Try again."):c("The version was not restored. Nothing changed. Try again."))}finally{w(!1)}}},C=tTe({onPress:()=>{L()},busy:I});return Nt(up,{children:[ae(aTe,{open:e,onClose:o,side:"right",size:"md",title:c("Version history"),description:Nt(up,{children:[c("Every Publish keeps a copy of the whole website: pages, menus and site styles.")," ",c("Products, prices and forms always show as they are now.")]}),footer:ae("span",{className:"sf-version-foot",children:c("The newest 30 are kept. Named versions are always kept.")}),children:Nt(pp,{gap:3,children:[k?ae(fp,{tone:"danger",onDismiss:()=>F(!1),children:c("The preview did not open. Try again.")}):null,d?ae(fp,{tone:"danger",action:ae(oi,{variant:"secondary",size:"sm",onClick:D,children:c("Try again")}),children:c("Version history did not load.")}):i===null?ae("p",{className:"sf-version-foot",children:c("Loading versions")}):i.length===0?ae("p",{className:"sf-version-foot",children:c("No versions yet. Every Publish from now on keeps one.")}):ae(dTe,{"aria-label":c("Versions"),spacing:"comfortable",children:i.map(A=>ae(bTe,{version:A,expanded:u===A.id,onToggle:()=>p(E=>E===A.id?null:A.id),onPreview:()=>P(A),onRestore:()=>{v(null),h({version:A,page:null})},onRestorePage:()=>{v(null),h({version:A,page:xTe(A,s)})},onName:()=>y(A)},A.id))})]})}),ae(ITe,{version:m?.version??null,page:m?.page??null,waiting:r,busy:C.busy===!0,error:S,onCancel:()=>h(null),onConfirm:C.onPress,onPage:A=>h(E=>E&&{...E,page:E.version.pages.find(R=>R.id===A)??E.page})}),ae(yTe,{version:b,onCancel:()=>y(null),onSave:async A=>{await t.name(b.id,A),y(null),D()}})]})}function J8(){let{adapter:e,hasUnsavedEdits:o}=Z8(),t=e.siteVersions,r=AG(),a=dm();return t?ae(STe,{open:r,onClose:OG,access:t,waiting:o||a?.state==="changed"}):null}import{useEaselSession as DV}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as Wgo,categoryLabel as $go,paletteWithoutPinned as Ugo,pinnedSection as zgo}from"efficient-easel/screen/lib/document/palette-sections";var wTe={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 Q8(e){return $(wTe,e)?.label}var eV=z0;function CTe(e){let o=_g.Ticker(e.nodeDefaults,e.newNodeId),{sectionBorder:t,...r}=o.props,a=Av.line?{sectionBorder:t}:{};return{...o,props:{...r,...a,sectionAccent:Av.sectionAccent}}}var vTe={Hero:{[nf]:{newChild:CTe,childLabel:En.Ticker}}},oV=Object.fromEntries(Object.entries(a4).map(([e,o])=>[e,Object.fromEntries(Object.entries(o).map(([t,r])=>[t,{...r,...$(vTe,e)?.[t]}]))]));function tV(e,o=0,t,r){let a=TTe(PTe(e,o,r),t),n=a?fT():null;return a&&n?kTe(a,n):a}function kTe(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 TTe(e,o){if(!e||e.source!=="container"||!o||!e_())return e;let t=Gp({data:o.data},o.id),r=typeof t?.type=="string"?Hp(t.type):[],a=e.choices??[],n=r.filter(s=>!a.some(i=>i.type===s.type));return n.length?{...e,choices:[...a,...n.map(s=>({type:s.type,label:s.label}))]}:e}function PTe(e,o,t){let r=t?$(oV,e)?.[t]:void 0;if(r)return{source:"section",slot:r.slot,choices:null,spec:r};let a=$(qt,e);if(a)return{source:"section",slot:a.slot,choices:null,spec:a};let n=wp(e,o);if(n)return{source:"container",slot:n.slot,choices:n.choices,spec:null};let s=wK(e);return s?{source:"footer",slot:SK,choices:s,spec:null}:null}function rV(e,o=Up(e.type)){return $p(e.type)?o.map(t=>{let r=r_(e.type,t);return r===null?{slot:t,label:t,rung:!1}:{slot:t,label:c(r),rung:!0}}):null}import{useSyncExternalStore as ETe}from"react";var T0=null,P0=new Set;function aV(e){if(T0!==e){T0=e;for(let o of P0)o()}}function _Te(e){return P0.add(e),()=>{P0.delete(e)}}function pIo(){return ETe(_Te,()=>T0,()=>null)}function nV(e){return Bc(e)?.ownerId??null}function sV(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||c("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:c("Text")}return e.type==="FooterEmailSignup"?t.heading||c("Email signup"):o(e.type)}var iV="sf-editor-left-view";function lV(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(iV);return e==="sections"||e==="styles"?e:"pages"}catch{return"pages"}}function cV(e){if(!(typeof window>"u"))try{window.localStorage.setItem(iV,e)}catch{}}function dV(e,o){return e==="styles"&&!o?"sections":e}function fV(e,o){return e?"sections":o}import{copyNode as OTe}from"efficient-easel/data";function pV(e){let o=typeof e?.props?.id=="string"?e.props.id:null,t=fr(),r=o&&t?t.sectionOf(o):null;if(!t||!r)return null;let a=t.usedOn(r);return a?a.length===1?c("On 1 page"):c("On {count} pages",{count:a.length}):c("On other pages")}var uV={usedOn:e=>{let o=fr(),t=o?.sectionOf(e.props.id)??null;return!o||!t?null:o.usedOn(t)??[]},openPage:e=>Pu()?.openPage(e),adopt:(e,o)=>fr()?.adopt(e.props.id,o),nodeOf:e=>fr()?.place(e)??null,detach:e=>{let o=Pu()?.config;return o?OTe(e,o):e},removed:()=>Pu()?.reload()};import{sharedSectionsOf as rPe}from"efficient-easel/screen/lib/shared-sections";import{scrollPreviewToSection as aPe,scrollPreviewToTop as OV}from"efficient-easel/screen/lib/document/preview-dom";var ATe=xu.mediaFields,RTe=/video|poster|focal|phone/i;function LTe(e){return($(ATe,e)??[]).find(o=>!o.includes("[]")&&!RTe.test(o))??null}function FTe(e){let o=LTe(e.type);return e.type!==Y?o&&zp(e.type,e.props,o)?{fromData:!0}:o:ju(e.props)?{fromData:!0}:o}var mV={adds:{kind:"block",type:"ImageBlock"},kinds:["image"],pictureOf:FTe,create:(e,o)=>({type:"ImageBlock",props:{...o.nodeDefaults("ImageBlock"),id:o.newNodeId("ImageBlock"),src:e.url}})};var hV={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 GI}from"react/jsx-runtime";import{useState as BTe}from"react";import{Button as NTe,Tooltip as DTe,toast as xV}from"efficient-shell/ui";import{TemplateIcon as MTe}from"efficient-easel/icons";import{useSettledAction as HTe}from"efficient-easel/easel";import{useScreenDocument as WTe}from"efficient-easel/screen/components/ScreenDocumentContext";function IV({enabled:e,reason:o,onSaved:t}){let{flushSave:r}=WTe(),[a,n]=BTe(!1),s=async()=>{if(!a){n(!0);try{await r()?t():xV.error(c(gV))}catch{xV.error(c(gV))}finally{n(!1)}}},i=HTe({onPress:()=>{s()},busy:a});return GI(DTe,{side:"bottom",content:e?c("Save this website as a platform template"):c(o),children:GI("span",{className:"sf-tip-disabled",tabIndex:e?void 0:0,children:GI(NTe,{variant:"secondary",disabled:!e||i.busy,loading:i.busy,onClick:i.onPress,rightIcon:GI(MTe,{size:15}),children:c("Save as Template")})})})}var gV="Your last changes did not save, so the template was not made. Try again.";var $Te="Save your page changes first";function yV(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:$Te}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var bV="storefront-editor:save-as-template";import{phoneKey as UTe,tabletKey as zTe}from"efficient-easel/draw";var GTe=[xa.top,zTe(xa.top),UTe(xa.top)],jI="ContactLocations",SV="ContactRouting",wV="CityPictures",CV="CityMaps",jTe=[{key:wV,label:"City pictures",piece:0,desc:"A wall of city photos, grouped by region. Each photo links to its city's card."},{key:CV,label:"City maps",piece:1,desc:"A card per city, grouped by region: address, phone, hours and a map."}];function vV(e=Os,o=kk){let t=H0.find(r=>r.sections.some(a=>a.type===SV))?.key;return!e.includes(jI)||!t?[]:jTe.filter(r=>!(o&&r.key===wV)).map(({key:r,label:a,desc:n,piece:s})=>({key:r,label:a,cat:t,after:SV,desc:n,alias:"locations offices stores branches",insert:i=>{let l=cn(jI);if(!l)return null;let d=ic(),f=Of(jI,l,s)(i.nodeDefaults,i.newNodeId,d);if(!f||!(o&&r===CV))return f;let u=Of(jI,l,0)(i.nodeDefaults,m=>`${m}-above`,d),p=Object.fromEntries(GTe.filter(m=>u?.props[m]!==void 0).map(m=>[m,u.props[m]]));return{...f,props:{...f.props,...p}}}}))}function kV(e=Os,o){return[...vV(e,o)]}function PV(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Kl(e);if(n)return n(o,t,ic());if(VE(e)&&a(Y)&&a(hi)){let i=$(dr,e);return{type:Y,props:{...o(Y),id:t(Y),direction:"column",name:`${r(e)} section`,content:[{type:hi,props:{...o(hi),id:t(hi),...i?.headStyle?{headStyle:i.headStyle}:{},...i?.headRowGap?{rowGap:i.headRowGap}:{},...i?.headDescriptionSize?{descriptionSize:i.headDescriptionSize}:{},...Md(e)!==Md(hi)?{eyebrowLook:Md(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box",...TV(e,t)}}]}}}if($(qt,e)?.fixed===!0)return{type:e,props:{...o(e),id:t(e),layout:"boxes"}};let s=TV(e,t);return Object.keys(s).length?{type:e,props:{...o(e),id:t(e),...s}}:null}function TV(e,o){return e==="Cards"?{template:GE(t=>o(t))}:e===jE?{template:KE(t=>o(t))}:{}}import{useEffect as KTe,useState as VTe}from"react";import{useEaselSession as YTe}from"efficient-easel/screen/lib/session-context";function EV(){let e=YTe().chrome?.products?.list,[o,t]=VTe(null);return KTe(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function MV({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=U$(),a=NV().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=cc(l=>{l&&(o({kind:"ticker",heroId:l}),aPe(l))},[o]);return oa(()=>{t(s)},[s,t]),oa(()=>{r(i)},[r,i]),{partRows:(l,{rowClick:d})=>{let f=String(l.props.id);return l.type==="Hero"&&Rv(l.props)&&Bo(FV,{icon:Bo(Ys,{type:"ticker",size:13}),name:c($s),onSelect:()=>i(f),selected:s===f,rowProps:{onClick:d(()=>i(f))},words:a})}}}function HV({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=hI(),a=NV().tree,{appState:n,config:s}=BV(p=>p),i=qTe({data:n.data,config:s});i.current={data:n.data,config:s};let l=e,d=Ts.find(p=>ef[p]===l.kind),f=d&&"nodeId"in l?Ps(String(l.nodeId),d):null,u=cc(p=>{let m=xx(p);if(!m)return;let{data:h,config:I}=i.current,w=oPe(h,I,{kind:"node",id:m.nodeId});if(!w)return;let S={kind:ef[m.part],nodeId:m.nodeId};o({index:w.index,zone:w.zone},S)},[o]);return oa(()=>{t(f)},[f,t]),oa(()=>{r(u)},[r,u]),{partRows:(p,{rowClick:m})=>{let h=String(p.props.id),I=xH(p);if(I.length===0)return null;let w=b=>{let y=Ps(h,b.part);return Bo(FV,{icon:Bo(Ys,{type:b.part==="media"?"heroMedia":"heroImage",size:13}),name:c(b.label),onSelect:()=>u(y),selected:f===y,rowProps:{onClick:m(()=>u(y))},words:a},y)},[S,...v]=I;return mp(LV,{children:[w(S),v.length>0&&Bo(ePe,{children:v.map(w)})]})}}}function WV(e,o){return{partRows:(t,r)=>mp(LV,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function nPe(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:l,token:d}=KI(),{hasPreviewLink:f}=t,u=Ge(DV()).preview?.draftLink,p=G8(e.data),m=yV({hasTrustedConsole:!!d,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),h=cc(()=>{!a||!r||l(bV,{siteId:a,slug:r})},[l,a,r]),I=M8({pageSlug:r,siteId:a,token:d}),w=o.previewHref?.(r)??I;return{barLead:()=>m.visible&&Bo(IV,{enabled:m.enabled,reason:m.enabled?"":m.disabledReason,onSaved:h}),barView:()=>f&&r&&Bo($8,{liveHref:w,pageId:n??null,draftLink:u}),mainAction:p}}function sPe(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=KI(),{hasSiteTheme:i,explainsSiteSettings:l}=t,d=b=>o.setView(b),[f,u]=_V(ul[0].id),[p,m]=_V(!1),{surface:h,setSurface:I}=mj(),w=()=>{if(i){d("styles"),o.reveal(),OV();return}e.show(n0),e.reveal(),OV()},S={id:"pages",label:c("Pages"),icon:Bo(ZTe,{}),panel:({onHide:b})=>Bo(aj,{activeSurface:h,onPreviewSurface:I,onNavigate:y=>{I(null),s(r?{kind:"template",id:r,pageSlug:y}:{kind:"page",slug:y,siteId:a??void 0})},onClose:b})},v=[];return!i&&l&&v.push({id:"appearance",label:c("Appearance"),icon:Bo(QTe,{}),active:e.kind==="website",onSelect:w}),i&&v.push({id:"styles",label:c("Styles"),icon:Bo(JTe,{}),panel:({onHide:b,notify:y})=>Bo(VK,{tokenRef:n,siteId:a??void 0,onClose:b,onNotify:y,tab:f,onTabChange:u,revealPageGroup:p,onPageGroupRevealed:()=>m(!1)})}),{railLead:[S],railTrail:v,resolveLeftView:b=>dV(b,i),openSettings:w,openStyles:()=>{u(jD),d("styles")},openPageStyles:i?()=>{u(hl),m(!0),d("styles"),o.reveal()}:l?()=>{e.show(BK),e.reveal()}:void 0}}function iPe(){let{navigate:e,siteId:o,reloadFromServer:t,docId:r}=KI(),a=BV(s=>s.config),n=DV();oa(()=>(tb({openPage:s=>e({kind:"page",slug:s.slug,siteId:o??void 0}),reload:()=>{t()},config:a}),()=>tb(null)),[e,o,t,a]),oa(()=>{let s=fr();if(!s||!r)return;let i=!1;return rPe(n).list().then(l=>{i||s.learn(l)}).catch(()=>{}),()=>{i=!0}},[r,n])}function $V(){let e=yu();return cc(o=>{tN(o,e)},[e])}function lPe(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;oa(()=>{aV(s?.type==="BookingBox"&&s.props.region==="confirm"?nV(i(String(s.props.id))):null)},[s?.props.id]);let l=f8(e,o),{capabilities:{hasSiteSettings:d}}=KI();iPe();let{chat:f,setChat:u,setSelected:p,setSelectHandler:m}=mI(),h=cc(()=>n(NK),[n]),I=a==="chat";oa(()=>{p(I)},[I,p]),oa(()=>{m(h)},[m,h]);let{setOpenHandler:w}=Kf(),S=cc(()=>n(DK),[n]);oa(()=>{w(S)},[w,S]);let v=WV(MV(e),HV(e)),b=nPe(o),y=sPe(e,r);XG(r);let k=t.device,F=$V();return{...v,...b,...y,hasOwnRows:T=>T.type===UI,ownRows:l.renderLocationTree,sectionPressed:l.sectionPressed,onCopyItem:F,wrap:T=>Bo(Uy.Provider,{value:!0,children:mp(tPe.Provider,{value:k,children:[T,Bo(J8,{})]})}),addPanelRow:T=>d?mp("div",{className:"sf-addside-sitewide",children:[Bo("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:Bo(Ys,{type:"chat",size:16})}),mp("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{T(),h()},children:[c("Live chat"),Bo("span",{className:"sf-addside-sitewide-desc",children:c("A chat bubble on every page")})]}),Bo(XTe,{checked:f.enabled,onChange:D=>u({enabled:D}),ariaLabel:c("Show the chat bubble on the whole site")})]}):void 0}}var AV=null,E0=new WeakMap;function cPe(e){let o=HO();if(!e||!o)return e;AV!==o&&(AV=o,E0=new WeakMap);let t=E0.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:c(r.label)})):null,spec:e.spec?{...e.spec,addLabel:c(e.spec.addLabel),...e.spec.childLabel?{childLabel:c(e.spec.childLabel)}:{}}:null},E0.set(e,t)),t}var dPe={isLockedBlock:(e,o)=>Kg(e,o)||!!(o&&fr()?.heldElsewhere(o.props.id)),duplicateBlocked:BI,nestDepth:(e,o,t)=>o===Qp?eu(e,t):0,newSectionNode:PV,canAddTo:(e,o,t,r)=>cPe(tV(e,o,r,t)),blockIsOffered:F6,slotsOf:rV,resolveOnInsert:!0},fPe=new Proxy(hV,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?c(t):t}}),pPe={labelAtLevel:(e,o,t)=>c(qI(e,o,t)),descriptions:fPe,categoryLabel:e=>{let o=Q8(e);return o===void 0?void 0:c(o)},firstSection:eV,blockRowName:sV,rowName:Vg,plainText:na,Icon:Ys,Thumbnail:jK,useProducts:EV,presets:kV()},uPe={desktop:2e3,tablet:800,mobile:390},RV="desktop",mPe={options:dj,initial:RV,fluid:RV,widths:uPe,hidesPerView:!0},hPe={read:lV,write:e=>cV(e),forSelection:(e,o)=>fV(e,o)},xPe={first:Ct,last:Qe,firstGroup:Je,lastGroup:ze,isSectionGroup:_i,sectionGroupZone:i1,panelOf:e=>e===Ct?FK:null,get sharedReach(){return js()?IPe:void 0},get shared(){return fr()?uV:void 0},get groupTab(){return js()?CK:void 0},get groupBadge(){return js()?e0({type:ze})??void 0:void 0},get changeNotice(){return js()?vK():void 0},get band(){return js()?gPe:void 0},get groupAccepts(){return js()?d1:void 0}},gPe={foldable:!0},IPe=e=>e0(e)??pV(e);function yPe(e){return{...WV(MV(e),HV(e)),onCopyItem:$V(),openSettings:()=>e.show(n0)}}function bPe(e,o){S8(e,o),L8()}var Sbo={useOwnerName:xl,useDocumentLabel:XD,useBridges:lPe,useStandaloneBridges:yPe,useDocumentPass:bPe,blockRules:dPe,blockLook:pPe,devices:mPe,leftView:hPe,pinned:xPe,Canvas:zG,canvasDrag:{media:mV},Inspector:HK};export{iT as a,Ge as b,Mi as c,kx as d,kGe as e,Jr as f,Qr as g,Po as h,NGe as i,Fv as j,E8e as k,Sf as l,wf as m,U5 as n,z5 as o,Qx as p,_8e as q,Qde as r,G5 as s,O8e as t,S6 as u,JJe as v,CPe as w,ce as x,c as y,nt as z,w6 as A,oQe as B,Ui as C,Wo as D,iL as E,_t as F,jRe as G,dL as H,fL as I,gm as J,Im as K,xL as L,hS as M,xS as N,XRe as O,ZRe as P,uF as Q,rs as R,Bm as S,KLe as T,Be as U,mF as V,Vi as W,yb as X,Sb as Y,eA as Z,wb as _,iY as $,bEe as aa,Nu as ba,iA as ca,lY as da,cY as ea,dY as fa,CEe as ga,Dv as ha,zGe as ia,Ox as ja,Hn as ka,Rc as la,XO as ma,ZO as na,x7 as oa,VPe as pa,jy as qa,HM as ra,WM as sa,wLe as ta,$r as ua,P1 as va,$n as wa,YL as xa,qL as ya,ed as za,DZ as Aa,SL as Ba,jr as Ca,kL as Da,xa as Ea,yS as Fa,bS as Ga,P4 as Ha,_b as Ia,R_e as Ja,L_e as Ka,Va as La,B_e as Ma,N_e as Na,Ab as Oa,NA as Pa,jc as Qa,D_e as Ra,BA as Sa,DA as Ta,M_e as Ua,Gc as Va,Rb as Wa,H_e as Xa,W_e as Ya,$_e as Za,U_e as _a,uM as $a,Is as ab,X5e as bb,Z5e as cb,J5e as db,mM as eb,Q5e as fb,Ft as gb,Il as hb,id as ib,Vr as jb,Zu as kb,UA as lb,pa as mb,zA as nb,Ro as ob,Fs as pb,Q as qb,Ol as rb,re as sb,oe as tb,se as ub,ie as vb,ge as wb,Sje as xb,Ie as yb,Rl as zb,Ll as Ab,pf as Bb,uf as Cb,A4 as Db,kje as Eb,Hce as Fb,R4 as Gb,Eje as Hb,_je as Ib,L4 as Jb,QC as Kb,RM as Lb,yse as Mb,Md as Nb,LM as Ob,Q3e as Pb,Hv as Qb,Rje as Rb,Lje as Sb,Fje as Tb,Bje as Ub,Nje as Vb,Dje as Wb,S3e as Xb,jh as Yb,Nd as Zb,w3e as _b,C3e as $b,CM as ac,YC as bc,Qne as cc,ese as dc,v3e as ec,ose as fc,k3e as gc,C2 as hc,x6e as ic,R2 as jc,g6e as kc,I6e as lc,y6e as mc,Mx as nc,zv as oc,D4 as pc,Hx as qc,Yje as rc,Xce as sc,Zce as tc,Jce as uc,qje as vc,wt as wc,Ms as xc,Ml as yc,RKe as zc,LKe as Ac,FKe as Bc,W2 as Cc,dx as Dc,Aie as Ec,P6e as Fc,C5 as Gc,v5 as Hc,k5 as Ic,JKe as Jc,DX as Kc,hr as Lc,aRe as Mc,nRe as Nc,sRe as Oc,iRe as Pc,um as Qc,lRe as Rc,Om as Sc,nd as Tc,QL as Uc,eF as Vc,oF as Wc,OLe as Xc,Je as Yc,ze as Zc,Jy as _c,_i as $c,l1 as ad,vu as bd,P5 as cd,F8e as dd,B8e as ed,og as fd,K5 as gd,vw as hd,Id as id,qr as jd,po as kd,Pw as ld,BB as md,NB as nd,Ew as od,yd as pd,yh as qd,Pd as rd,nC as sd,Cr as td,wa as ud,NN as vd,ms as wd,mC as xd,gC as yd,$d as zd,NM as Ad,DM as Bd,tv as Cd,ws as Dd,ZM as Ed,BWe as Fd,NWe as Gd,DWe as Hd,jd as Id,Vt as Jd,GWe as Kd,E3e as Ld,$3e as Md,XC as Nd,U3e as Od,bs as Pd,Kh as Qd,Io as Rd,o$e as Sd,r2 as Td,n2 as Ud,s2 as Vd,uo as Wd,Ye as Xd,ag as Yd,t3 as Zd,oVe as _d,ng as $d,r3 as ae,sVe as be,wVe as ce,m3 as de,yk as ee,h3 as fe,kVe as ge,TVe as he,PVe as ie,bk as je,EVe as ke,_Ve as le,x3 as me,Afe as ne,dg as oe,p7e as pe,ux as qe,zie as re,Sv as se,Ufe as te,T7e as ue,j3 as ve,K3 as we,P7e as xe,E7e as ye,Rw as ze,zDe as Ae,Lw as Be,WB as Ce,W7e as De,aW as Ee,nW as Fe,sYe as Ge,gYe as He,IYe as Ie,yYe as Je,Wk as Ke,$Le as Le,US as Me,zS as Ne,GS as Oe,uW as Pe,ape as Qe,npe as Re,pg as Se,wYe as Te,CYe as Ue,qYe as Ve,BW as We,XYe as Xe,NW as Ye,JYe as Ze,GW as _e,jW as $e,Mpe as af,qW as bf,m9e as cf,xg as df,C9e as ef,Ef as ff,T9e as gf,o$ as hf,E9e as if,t$ as jf,r$ as kf,A9e as lf,Dd as mf,Ise as nf,gg as of,i$ as pf,B9e as qf,N9e as rf,D9e as sf,M9e as tf,Oa as uf,z9e as vf,Ig as wf,V9e as xf,bg as yf,j3e as zf,K3e as Af,Ss as Bf,V3e as Cf,lR as Df,_D as Ef,p4e as Ff,u4e as Gf,Cae as Hf,m4e as If,h4e as Jf,AD as Kf,zC as Lf,$h as Mf,rM as Nf,Qd as Of,$t as Pf,M0e as Qf,fb as Rf,Hc as Sf,$0e as Tf,G7 as Uf,W1 as Vf,U0e as Wf,Un as Xf,q7 as Yf,Y0e as Zf,q0e as _f,Wc as $f,X0e as ag,Z0e as bg,gb as cg,RUe as dg,LUe as eg,FUe as fg,BUe as gg,cle as hg,NUe as ig,xx as jg,of as kg,WUe as lg,Pv as mg,wH as ng,CH as og,vv as pg,xle as qg,$Ue as rg,gx as sg,tf as tg,yx as ug,UUe as vg,zUe as wg,Ix as xg,GUe as yg,jUe as zg,Vy as Ag,st as Bg,JO as Cg,g7 as Dg,I7 as Eg,ZPe as Fg,y7 as Gg,b7 as Hg,JPe as Ig,QPe as Jg,e0e as Kg,o0e as Lg,PH as Mg,rf as Ng,af as Og,Sx as Pg,_H as Qg,El as Rg,OH as Sg,wx as Tg,Cx as Ug,vx as Vg,AH as Wg,RH as Xg,LH as Yg,FH as Zg,BH as _g,MH as $g,HH as ah,bze as bh,Sze as ch,wze as dh,Cze as eh,mr as fh,Dle as gh,jH as hh,Hle as ih,VH as jh,YH as kh,rx as lh,Yle as mh,qze as nh,e4 as oh,tGe as ph,mGe as qh,hGe as rh,_$e as sh,Kd as th,F$e as uh,B$e as vh,y2 as wh,nJ as xh,Kr as yh,vLe as zh,Af as Ah,Aa as Bh,Q6 as Ch,Fg as Dh,Seo as Eh,weo as Fh,Reo as Gh,Leo as Hh,nhe as Ih,vT as Jh,lU as Kh,Feo as Lh,dU as Mh,fU as Nh,xU as Oh,phe as Ph,hhe as Qh,roo as Rh,xoo as Sh,goo as Th,Nf as Uh,Ioo as Vh,yoo as Wh,PT as Xh,boo as Yh,Yd as Zh,hv as _h,lx as $h,Yoo as ai,kl as bi,K6e as ci,V6e as di,eH as ei,Xhe as fi,dz as gi,Mf as hi,pro as ii,mro as ji,DT as ki,vz as li,Cg as mi,YXe as ni,ZXe as oi,U$ as pi,Xk as qi,z$ as ri,G$ as si,eZe as ti,j$ as ui,kg as vi,lZe as wi,V$ as xi,X$ as yi,Y$ as zi,Mm as Ai,Ia as Bi,$o as Ci,Ot as Di,cd as Ei,qi as Fi,tFe as Gi,rFe as Hi,nFe as Ii,sFe as Ji,iFe as Ki,lFe as Li,cFe as Mi,fFe as Ni,Xi as Oi,ns as Pi,wF as Qi,qS as Ri,WJ as Si,CF as Ti,ZS as Ui,X1 as Vi,Z1 as Wi,xEe as Xi,Mu as Yi,Hu as Zi,zc as _i,gA as $i,LEe as aj,FEe as bj,CA as cj,kb as dj,XY as ej,Y_e as fj,oOe as gj,tOe as hj,w9 as ij,xt as jj,Vc as kj,Gb as lj,jb as mj,jOe as nj,aR as oj,KOe as pj,VOe as qj,YOe as rj,dR as sj,pR as tj,ma as uj,bR as vj,nS as wj,OR as xj,yAe as yj,RR as zj,NR as Aj,DR as Bj,MR as Cj,HR as Dj,WR as Ej,$R as Fj,iS as Gj,kX as Hj,TX as Ij,Zc as Jj,lS as Kj,zR as Lj,$Ae as Mj,EX as Nj,UAe as Oj,zAe as Pj,GAe as Qj,jR as Rj,YAe as Sj,AX as Tj,qAe as Uj,XAe as Vj,LX as Wj,cS as Xj,BX as Yj,eRe as Zj,NX as _j,oRe as $j,pS as ak,xRe as bk,XR as ck,$X as dk,IRe as ek,Jc as fk,oZ as gk,MRe as hk,jZ as ik,uLe as jk,VZ as kk,mLe as lk,hLe as mk,xLe as nk,Ki as ok,Lm as pk,NLe as qk,DLe as rk,MLe as sk,$J as tk,UJ as uk,mFe as vk,KJ as wk,VJ as xk,hFe as yk,xFe as zk,gFe as Ak,IFe as Bk,yFe as Ck,TFe as Dk,PFe as Ek,EFe as Fk,_Fe as Gk,OFe as Hk,AFe as Ik,RFe as Jk,LFe as Kk,FFe as Lk,BFe as Mk,NFe as Nk,vF as Ok,DFe as Pk,MFe as Qk,tn as Rk,tQ as Sk,ls as Tk,CNe as Uk,vNe as Vk,kNe as Wk,TNe as Xk,PNe as Yk,ENe as Zk,_Ne as _k,LNe as $k,FNe as al,lee as bl,BNe as cl,NNe as dl,DNe as el,MNe as fl,HNe as gl,WNe as hl,$Ne as il,UNe as jl,pee as kl,xw as ll,zNe as ml,Qi as nl,It as ol,yr as pl,nB as ql,sB as rl,ol as sl,GNe as tl,Mee as ul,jNe as vl,KNe as wl,VNe as xl,YNe as yl,qNe as zl,XNe as Al,ZNe as Bl,xB as Cl,JNe as Dl,ioe as El,QNe as Fl,eDe as Gl,yB as Hl,oDe as Il,tDe as Jl,rDe as Kl,aDe as Ll,nDe as Ml,iDe as Nl,ww as Ol,lDe as Pl,SB as Ql,cDe as Rl,dDe as Sl,nl as Tl,CB as Ul,fDe as Vl,pDe as Wl,uDe as Xl,mDe as Yl,fno as Zl,pno as _l,uno as $l,Vg as am,Xz as bm,YT as cm,Fno as dm,Bno as em,WIe as fm,$Ie as gm,uso as hm,mso as im,hso as jm,xso as km,Qg as lm,eI as mm,Wso as nm,gG as om,bG as pm,SG as qm,wG as rm,Alo as sm,pI as tm,nj as um,sj as vm,lj as wm,uI as xm,cco as ym,dco as zm,mI as Am,Qbe as Bm,bco as Cm,Kf as Dm,vco as Em,mj as Fm,Ei as Gm,m7 as Hm,GPe as Im,jPe as Jm,$uo as Km,Uuo as Lm,zuo as Mm,i4 as Nm,Pco as Om,hI as Pm,FPe as Qm,Foe as Rm,Boe as Sm,Noe as Tm,zB as Um,eMe as Vm,Xw as Wm,eD as Xm,PHe as Ym,ED as Zm,T4e as _m,P4e as $m,Dh as an,Cne as bn,vne as cn,T5e as dn,PPe as en,Gne as fn,SM as gn,m3e as hn,h3e as in,Zne as jn,x3e as kn,g3e as ln,Gh as mn,I3e as nn,Cl as on,c2 as pn,d2 as qn,S2 as rn,f6e as sn,H2 as tn,C6e as un,$2 as vn,wv as wn,Kie as xn,Xie as yn,aUe as zn,Vqe as An,aXe as Bn,lXe as Cn,E$ as Dn,pXe as En,uXe as Fn,kXe as Gn,TXe as Hn,HXe as In,zXe as Jn,_f as Kn,tme as Ln,WZe as Mn,YZe as Nn,fJe as On,pJe as Pn,LJe as Qn,u6 as Rn,APe as Sn,dfo as Tn,Cj as Un,Qe as Vn,FI as Wn,Rr as Xn,XK as Yn,sp as Zn,ZK as _n,JK as $n,Kho as ao,Vho as bo,F8 as co,C0 as do,B8 as eo,tV as fo,pIo as go,Sbo as ho};
|