efficient-storefront-blocks 0.50.0 → 0.52.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.
@@ -0,0 +1,255 @@
1
+ import{$ as Ts,A as Vo,Aa as bu,B as zt,C as Gt,Ca as ja,Da as yu,E as nu,Ea as Su,H as Mr,J as lu,Ja as Cu,K as ws,L as su,N as iu,O as fu,Q as cu,R as ks,T as du,U as oo,V as pt,W as uu,X as Io,Y as qa,_ as pu,a as Xd,c as Zd,ca as mu,d as no,da as Es,e as Ht,f as Lo,fa as Fs,g as $a,h as eu,ja as xu,l as Nr,n as Cs,pa as mt,ra as Iu,s as ou,t as tu,ta as hu,u as vs,v as Qe,va as gu,w as ru,x as au,y as Wt,z as xo,za as $}from"./chunk-HQ2Q5HZE.js";import{a as Yd,b as ao,i as Qd,j as Dr,k as Jd,n as vu,r as Ps}from"./chunk-VHOOQYWZ.js";var Ka=null,av="en",ku=null;function A2(e,o,t){Ka=e??null,av=o||"en",ku=t??null}function V(){return ku}function Tu(){return Ka}function wu(e,o){return o?e.replace(/\{([A-Za-z][A-Za-z0-9_]*)\}/g,(t,r)=>Object.prototype.hasOwnProperty.call(o,r)?String(o[r]):t):e}function l(e,o){let t=Ka?Ka[e]:void 0;if(typeof t=="function"){try{let r=t(o??{});if(typeof r=="string"&&r)return r}catch{}return wu(e,o)}return wu(typeof t=="string"&&t?t:e,o)}function xt(e,o,t,r){return l(t===1?e:o,{...r,n:t})}import{hostLoadRefusalOf as nv,hostUnreachableMessage as lv,isBackendError as sv,provideHostFailures as iv,readHostFailure as fv,STATUS_UNREACHABLE as cv,WebsiteBackendError as Ls}from"efficient-easel/screen/lib/backend-error";function Oe(e,o){if(typeof e=="string")return e||o;if(e&&typeof e=="object"&&"text"in e){let t=e.text;return typeof t=="string"&&t?t:o}return o}function Eu(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function Fu(e,o){return typeof e=="boolean"?e:o}function Va(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:Oe(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var Pu="cart-drawer",z2="cart-drawer";var dv={kickerBadge:"",kickerText:"Your order",titleLead:"Your",titleAccent:"cart.",subtitleEmpty:"Empty for now.",subtitleOne:"One set in your cart.",subtitleMany:"{count} sets in your cart.",leadTimeValue:"",shipsToFallback:"",promises:[],emptyKicker:"No wheels yet",emptyBody:"Your cart is empty. Pick a wheel to get started."};function G2(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function U2(e){let o=e??{},t=dv;return{kickerBadge:Oe(o.kickerBadge,t.kickerBadge),kickerText:Oe(o.kickerText,t.kickerText),titleLead:Oe(o.titleLead,t.titleLead),titleAccent:Oe(o.titleAccent,t.titleAccent),subtitleEmpty:Oe(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Oe(o.subtitleOne,t.subtitleOne),subtitleMany:Oe(o.subtitleMany,t.subtitleMany),leadTimeValue:Oe(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Oe(o.shipsToFallback,t.shipsToFallback),promises:Va(o.promises,t.promises),emptyKicker:Oe(o.emptyKicker,t.emptyKicker),emptyBody:Oe(o.emptyBody,t.emptyBody)}}var Ou="consent-banner",j2="consent-banner";var uv=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],K2="Layout",Lu={layout:"bar"},pv=e=>uv.some(o=>o.value===e);function V2(e){let o=Oe((e??{}).layout,Lu.layout);return{layout:pv(o)?o:Lu.layout}}var mv=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],Z2={meta:"Meta line",eyebrow:"Eyebrow",heading:"Heading",body:"Body",statName:"Stat name",statValue:"Stat value",formEyebrow:"Form eyebrow",formHeading:"Form heading",formIntro:"Form intro",fieldLabel:"Field label",option:"Option",finePrint:"Fine print",dismiss:"Dismiss link",doneHeading:"Success heading",doneBody:"Success message"},xv={meta:"styleMeta",eyebrow:"styleEyebrow",heading:"styleHeading",body:"styleBody",statName:"styleStatName",statValue:"styleStatValue",formEyebrow:"styleFormEyebrow",formHeading:"styleFormHeading",formIntro:"styleFormIntro",fieldLabel:"styleFieldLabel",option:"styleOption",finePrint:"styleFinePrint",dismiss:"styleDismiss",doneHeading:"styleDoneHeading",doneBody:"styleDoneBody"},Q2={meta:{font:"--pp-meta-font",size:"--pp-meta-size"},eyebrow:{font:"--pp-eyebrow-font",size:"--pp-eyebrow-size"},heading:{font:"--pp-heading-font",size:"--pp-heading-size"},body:{font:"--pp-body-font",size:"--pp-body-size"},statName:{font:"--pp-statname-font",size:"--pp-statname-size"},statValue:{font:"--pp-statvalue-font",size:"--pp-statvalue-size"},formEyebrow:{font:"--pp-formeyebrow-font",size:"--pp-formeyebrow-size"},formHeading:{font:"--pp-formheading-font",size:"--pp-formheading-size"},formIntro:{font:"--pp-formintro-font",size:"--pp-formintro-size"},fieldLabel:{font:"--pp-fieldlabel-font",size:"--pp-fieldlabel-size"},option:{font:"--pp-option-font",size:"--pp-option-size"},finePrint:{font:"--pp-fineprint-font",size:"--pp-fineprint-size"},dismiss:{font:"--pp-dismiss-font",size:"--pp-dismiss-size"},doneHeading:{font:"--pp-doneheading-font",size:"--pp-doneheading-size"},doneBody:{font:"--pp-donebody-font",size:"--pp-donebody-size"}};function Iv(e){return typeof e=="string"&&Lo.includes(e)?e:null}function Ru(e){let o={};for(let t of mv){let r=Iv(e[xv[t]]);r&&(o[t]=r)}return o}var Ut="site-footer";var eH=Ut,oH={desktop:!0,tablet:!0,mobile:!0},tH={desktop:!1,tablet:!1,mobile:!1},Os=1,Au=6,rH=Array.from({length:Au-Os+1},(e,o)=>Os+o),Ya={desktop:6,tablet:3,mobile:2},hv={2:{desktop:2,tablet:2,mobile:1},3:{desktop:3,tablet:3,mobile:1},4:{desktop:4,tablet:2,mobile:2},5:{desktop:5,tablet:3,mobile:2},6:{desktop:6,tablet:3,mobile:2}},It=e=>Math.min(Math.max(Math.round(e),Os),Au);function aH(e){if(typeof e=="number")return hv[It(e)]??{desktop:It(e),tablet:It(e),mobile:It(e)};if(e&&typeof e=="object"){let o=e;return{desktop:It(o.desktop??Ya.desktop),tablet:It(o.tablet??Ya.tablet),mobile:It(o.mobile??Ya.mobile)}}return{...Ya}}var gv="subscribe-popup",dH="subscribe-popup";var bv=[gv,Ut,Pu,Ou];function Du(e){return bv.includes(e)}var yv=["delay","scroll","exit"],Sv=["all","chosen"],Cv=["visit","days","never"],vv=["right","left"],wv={min:0,max:60},kv={min:10,max:90},Tv={min:1,max:90},As={metaLabel:"Meta label",issueLabel:"Label",issueNumber:"00",kicker:"Kicker",heading:`Main heading
2
+ *Highlight line*`,deck:"Add a sentence or two of supporting copy.",stats:[{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"},{label:"Label",value:"Value"}],formLabel:"Section label",formHeading:"Main heading *highlight*",formIntro:"Add a sentence or two of supporting copy.",firstNameLabel:"Field label",firstNamePlaceholder:"Placeholder",emailLabel:"Field label",emailPlaceholder:"Placeholder",interestsLabel:"Field label",interests:["Option one","Option two","Option three"],frequencyLabel:"Field label",frequencies:["Option one","Option two","Option three"],submitText:"Button label",finePrint:"Fine print",dismissText:"Dismiss link",emailInvalidText:"Enter a valid email address.",submitErrorText:"Could not subscribe right now. Please try again.",successHeading:"Main heading *highlight*",successBody:"Add a sentence or two of supporting copy \u2014 the {email} and {issue} tokens are substituted here.",keepBrowsingText:"Button label",autoOpen:!1,autoOpenDelaySec:15,formSlug:"",trigger:"delay",scrollPercent:50,showOn:"all",showOnPages:[],hideAfter:"days",hideDays:7,formSide:"right",valuePanelOnPhone:!1,sectionAccent:void 0,sectionCorners:void 0,sectionCornerSides:void 0,textStyles:{}},Ie=Oe,Ev=Eu,Bu=Fu,Nu=Va;function Xa(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Rs(e,o,t){let r=Ev(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Fv(e){return typeof e.hideAfter=="string"?Xa(Cv,e.hideAfter,As.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":As.hideAfter}function Pv(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function _u(e,o){if(e==null)return o;let t=r=>r.trim()?r:"";if(typeof e=="string")return t(e);if(typeof e=="object"&&"text"in e){let r=e.text;return typeof r=="string"?t(r):""}return o}function Lv(e,o){return Array.isArray(e)?Nu(e,[]):o}function Ov(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:Ie(r.label,""),value:Ie(r.value,"")}}).filter(t=>t.label||t.value):o}function uH(e){let o=e??{},t=As;return{metaLabel:Ie(o.metaLabel,t.metaLabel),issueLabel:_u(o.issueLabel,t.issueLabel),issueNumber:_u(o.issueNumber,t.issueNumber),kicker:Ie(o.kicker,t.kicker),heading:Ie(o.heading,t.heading),deck:Ie(o.deck,t.deck),stats:Ov(o.stats,t.stats),formLabel:Ie(o.formLabel,t.formLabel),formHeading:Ie(o.formHeading,t.formHeading),formIntro:Ie(o.formIntro,t.formIntro),firstNameLabel:Ie(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:Ie(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:Ie(o.emailLabel,t.emailLabel),emailPlaceholder:Ie(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:Ie(o.interestsLabel,t.interestsLabel),interests:Nu(o.interests,t.interests),frequencyLabel:Ie(o.frequencyLabel,t.frequencyLabel),frequencies:Lv(o.frequencies,t.frequencies),submitText:Ie(o.submitText,t.submitText),finePrint:Ie(o.finePrint,t.finePrint),dismissText:Ie(o.dismissText,t.dismissText),emailInvalidText:Ie(o.emailInvalidText,t.emailInvalidText),submitErrorText:Ie(o.submitErrorText,t.submitErrorText),successHeading:Ie(o.successHeading,t.successHeading),successBody:Ie(o.successBody,t.successBody),keepBrowsingText:Ie(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:Bu(o.autoOpen,t.autoOpen),autoOpenDelaySec:Rs(o.autoOpenDelaySec,wv,t.autoOpenDelaySec),trigger:Xa(yv,o.trigger,t.trigger),scrollPercent:Rs(o.scrollPercent,kv,t.scrollPercent),showOn:Xa(Sv,o.showOn,t.showOn),showOnPages:Pv(o.showOnPages),hideAfter:Fv(o),hideDays:Rs(o.hideDays,Tv,t.hideDays),formSide:Xa(vv,o.formSide,t.formSide),valuePanelOnPhone:Bu(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:Ru(o)}}import{jsx as Bs,Fragment as Rv,jsxs as Av}from"react/jsx-runtime";import{createContext as Bv,useContext as _v}from"react";var Dv={mirrorHostStyles:!0,css:null,fontHrefs:[]},Mu=Bv(Dv);function IH({value:e,children:o}){return Bs(Mu.Provider,{value:e,children:o})}function _s(){return _v(Mu)}function Hu(){let{css:e,fontHrefs:o}=_s();return Av(Rv,{children:[o.map(t=>Bs("link",{rel:"stylesheet",href:t},t)),e?Bs("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as Nv}from"react/jsx-runtime";import{createContext as Mv,useContext as Hv}from"react";var Wu=Mv(void 0);function yH({metadata:e,children:o}){return Nv(Wu.Provider,{value:e,children:o})}var zu=()=>Hv(Wu);import{jsx as Ce,Fragment as KC,jsxs as gs}from"react/jsx-runtime";import{useCallback as za,useEffect as Fo,useRef as i2,useState as f2}from"react";import{Button as c2,Tooltip as d2}from"efficient-shell/ui";import{SettingsSwitch as u2}from"efficient-easel/panel";import{PagesIcon as p2,StylesIcon as m2}from"efficient-easel/rail";import{PaletteIcon as x2}from"efficient-shell/icons/efficient";import{TemplateIcon as I2}from"efficient-easel/icons";import{Subtree as h2,TreeRow as VC}from"efficient-easel/tree";import{useEasel as g2}from"efficient-easel/easel";import{useEaselStrings as YC}from"efficient-easel/strings";import{createContext as Wv,useContext as zv}from"react";var Ds=Wv(!1),vH=()=>zv(Ds);import{jsx as fe,Fragment as Ph,jsxs as Il}from"react/jsx-runtime";import{Fragment as HL,useEffect as WL,useId as zL,useMemo as Lh,useState as cr}from"react";import{ScreenDocumentContext as $t,ScreenDocumentProvider as TH,useScreenDocument as ye}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as hl}from"efficient-easel/draw/client";import{default as Za,PanelHideButton as Ns,PanelModeExit as PH,PanelShowStrip as LH}from"efficient-easel/screen/components/SidePanelHead";import{jsx as Z,jsxs as st,Fragment as Lt}from"react/jsx-runtime";import{useEasel as Ch}from"efficient-easel/easel";import{useState as Uf}from"react";import{jsx as rr,jsxs as sI,Fragment as MF}from"react/jsx-runtime";import{useState as iI}from"react";import{SettingsDefaultReset as HF,SettingsField as WF}from"efficient-easel/panel";import{useEaselStrings as zF}from"efficient-easel/strings";import{AddIcon as GF}from"efficient-easel/icons";import{jsx as I,jsxs as Pt,Fragment as Mo}from"react/jsx-runtime";import{cloneElement as Cx,useId as A0,useRef as Yi,useState as An}from"react";import{useEasel as Jr,useSelectedFields as vx}from"efficient-easel/easel";import{readHidable as rt,hidableText as B0}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as Xi,LINK_FIELD_MARKER as _0,MEDIA_FIELD_MARKER as D0,SCAFFOLD_FIELD_MARKER as N0,TEXT_FIELD_MARKER as No,foldMetaOf as Ho,textFieldIdentifier as Lz}from"efficient-easel/draw";import{jsx as Vu}from"react/jsx-runtime";import{useCallback as jv,useEffect as Kv,useRef as Vv,useState as Yv}from"react";import{useEasel as Xv}from"efficient-easel/easel";import{SettingsAction as Zv}from"efficient-easel/panel";function Ms(e){return typeof e=="number"&&Number.isFinite(e)}function AH(e,o){if(!Ms(e))return;let t=qa(Io(e));if(Object.keys(t).length===0)return;let r=t[Qa];if(typeof r!="string")return t;let a=Hr(o)?Wr(r,Oo(o)??[]):r;return{...t,[Gv]:a}}var Gv="--sf-section-radius",Qa="--sf-card-radius",ht=["tl","tr","br","bl"];function Oo(e){if(!Array.isArray(e))return null;let o=e.filter(t=>ht.includes(t));return ht.filter(t=>o.includes(t))}function Hr(e){let o=Oo(e);return o!==null&&o.length<ht.length}function Wr(e,o){return ht.map(t=>o.includes(t)?e:"0").join(" ")}var Gu=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var Uv="--sf-card-box-radius",$v="--sf-site-card-radius",NH="sf-section-bleeds";function Hs(e){return typeof e=="number"&&Number.isFinite(e)}function MH(e,o){if(!Hs(e))return;let t=qa(Io(e))[Qa];if(typeof t!="string")return;let r=Hr(o)?Wr(t,Oo(o)??[]):t;return{[Uv]:r}}function HH(e){let o=e[Qa];return typeof o=="string"?{[$v]:o}:{}}function Uu(e,o){let t=e.find(n=>n?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides;return e.map(n=>n?.props?.id===o?n:{...n,props:{...n.props,cardCorners:r,cardCornerSides:a}})}import{locateNode as qv}from"efficient-easel/draw";function zr(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Ja(e,o,t){let r=zr(t?.zone),a=r?qv(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}function $u(e,o,t){let r=Ja(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,i=s>=0?n[s]:void 0,f=i?.props?.id?String(i.props.id):"",u=Math.max(n.length-1,0);return!r||!f?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:u}:Hs(i?.props?.cardCorners)?{can:!0,others:u,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:Uu(n,f)}}}:{can:!1,reason:"unset",others:u}}function qu(e){return e.can?xt("Gives the other card this card's Corners.","Gives the other {n} cards this card's Corners.",e.others):e.reason==="alone"?l("This is the only card in the section."):e.reason==="unset"?l("Set this card's corners first."):l("This card is not in a section that can share corners.")}function ju(e){return xt("Applied to {n} card","Applied to {n} cards",e)}function Ku(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as Yo}from"efficient-easel/screen/lib/puck/use-section-ops";var Qv=2200,Jv="apply-corners-to-siblings",ew="Apply to all cards";function ow({plan:e,doneCount:o,onPress:t}){return Vu(Zv,{id:Jv,label:l(ew),note:qu(e),disabled:!e.can,done:o!==null,doneLabel:ju(o??0),onPress:t})}function Yu(){let{appState:e,config:o}=Xv(f=>f),t=Yo(),[r,a]=Yv(null),n=Vv(null);Kv(()=>()=>{n.current&&clearTimeout(n.current)},[]);let s=$u(o,e.data.content??[],e.ui.itemSelector),i=jv(()=>{Ku(s,t.replaceComponent),s.can&&(a(s.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>a(null),Qv))},[s,t]);return Vu(ow,{plan:s,doneCount:r,onPress:i})}var Xu=1;function tw(e){return Io(e)}function a5(e){let o=tw(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var Zu=1,Qu="Corners";function rw(e){return Io(e)}function i5(e,o){let t=rw(e);if(t===null)return null;let r=`${t}px`;return{borderRadius:Hr(o)?Wr(r,Oo(o)??[]):r}}var Ro={twoAcross:{label:"Two across",across:2,acrossPhone:2,desktop:[[6,1],[6,1]],phone:[[3,1],[3,1]]},zigzag:{label:"Zigzag",across:2,acrossPhone:2,desktop:[[8,1],[4,1],[4,1],[8,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},brick:{label:"Brick",across:2,acrossPhone:2,desktop:[[5,1],[7,1],[7,1],[5,1]],phone:[[2,1],[4,1],[4,1],[2,1]]},twoTall:{label:"Two tall",across:2,acrossPhone:2,desktop:[[6,2],[6,2]],phone:[[3,2],[3,2]]},offsetTall:{label:"Offset tall",across:2,acrossPhone:2,desktop:[[5,2],[7,1],[3,1],[4,1]],phone:[[3,2],[3,1],[3,1]]},ladder:{label:"Ladder",across:2,acrossPhone:2,desktop:[[3,2],[9,1],[5,1],[4,1]],phone:[[2,2],[4,1],[2,1],[2,1]]},threeAcross:{label:"Three across",across:3,acrossPhone:3,desktop:[[4,1],[4,1],[4,1]],phone:[[2,1],[2,1],[2,1]]},bigLeft:{label:"Big left",across:3,acrossPhone:3,desktop:[[6,1],[3,1],[3,1]],phone:[[4,1],[1,1],[1,1]]},bigRight:{label:"Big right",across:3,acrossPhone:3,desktop:[[3,1],[3,1],[6,1]],phone:[[1,1],[1,1],[4,1]]},threeStagger:{label:"Three stagger",across:3,acrossPhone:3,desktop:[[5,1],[4,1],[3,1],[3,1],[4,1],[5,1]],phone:[[3,1],[2,1],[1,1],[1,1],[2,1],[3,1]]},threeLadder:{label:"Three ladder",across:3,acrossPhone:3,desktop:[[3,1],[4,1],[5,1],[5,1],[4,1],[3,1]],phone:[[1,1],[2,1],[3,1],[3,1],[2,1],[1,1]]},tallMiddle:{label:"Tall middle",across:3,acrossPhone:3,desktop:[[4,1],[4,2],[4,1],[4,1],[4,1]],phone:[[2,1],[2,2],[2,1],[2,1],[2,1]]},fourAcross:{label:"Four across",across:4,acrossPhone:2,desktop:[[3,1],[3,1],[3,1],[3,1]],phone:[[3,1],[3,1]]},bigFirst:{label:"Big first",across:4,acrossPhone:2,desktop:[[6,1],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},fourStagger:{label:"Four stagger",across:4,acrossPhone:2,desktop:[[4,1],[3,1],[2,1],[3,1],[2,1],[3,1],[4,1],[3,1]],phone:[[4,1],[2,1],[2,1],[4,1]]},tallFirst:{label:"Tall first",across:4,acrossPhone:2,desktop:[[3,2],[3,1],[3,1],[3,1],[3,1],[3,1],[3,1]],phone:[[3,2],[3,1],[3,1]]},oneThenFour:{label:"One then four",across:4,acrossPhone:2,desktop:[[12,1],[3,1],[3,1],[3,1],[3,1]],phone:[[6,1],[3,1],[3,1]]},sixAcross:{label:"Six across",across:6,acrossPhone:3,desktop:[[2,1],[2,1],[2,1],[2,1],[2,1],[2,1]],phone:[[2,1],[2,1],[2,1]]},sixStagger:{label:"Six stagger",across:6,acrossPhone:6,desktop:[[3,1],[2,1],[1,1],[2,1],[1,1],[3,1],[1,1],[3,1],[2,1],[2,1],[1,1],[3,1]],phone:[[1,1],[1,1],[1,1],[1,1],[1,1],[1,1]]}},Ws=Object.keys(Ro),ep=[2,3,4,6];function op(e){return typeof e!="string"||e===""?null:Ro[e]??null}function Ju(e,o){return o?6/e.acrossPhone:12/e.across}var aw="sf-wall--";function nw(e){return`${aw}${e}`}function c5(e){let o=Ro[e],t=`.${nw(e)}`,r=[],a=(n,s)=>{let i=[],f=n.length;n.forEach(([u,p],m)=>{i.push(`${t} > :nth-child(${f}n+${m+1}){grid-column:span ${u};grid-row:span ${p}}`)});for(let u=1;u<f;u+=1)i.push(`${t}:has(> :nth-child(${f}n+${u}):last-child) > :nth-last-child(-n+${u}){grid-column:span ${s};grid-row:span 1}`);return i};return r.push(`${t}{grid-template-columns:repeat(12,minmax(0,1fr))}`),r.push(...a(o.desktop,Ju(o,!1))),r.push("@media (max-width:800px){"),r.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),r.push(...a(o.phone,Ju(o,!0))),r.push("}"),r.join("")}var en=12,tp=1,lw=3;var sw=3;function zs(e,o,t){let r=typeof e=="number"?e:Number.parseInt(String(e??""),10);return Number.isFinite(r)?Math.min(t,Math.max(o,Math.trunc(r))):null}function iw(e){return zs(e,1,en)??sw}function p5(e,o){return zs(e,tp,lw)??(iw(o)===4?2:tp)}function m5(e){return e==null||e===""?null:zs(e,1,en)}var x5="data-sf-span";function I5(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(op(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}var ho=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],on="bottom-left";var tn={"top-left":"Top left","top-center":"Top center","top-right":"Top right",left:"Left",center:"Center",right:"Right","bottom-left":"Bottom left","bottom-center":"Bottom center","bottom-right":"Bottom right"};function fw(e){let o=ho.indexOf(gt(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function cw(e){return 1+fw(e).band*6}function g5(e){return cw(e)+1}function gt(e){return ho.includes(e)?e:on}function b5(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function y5(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function Gs(e,o){let t=gt(o);return e.filter(r=>gt(r?.props?.placement)===t).length}function rp(e){return`${tn[gt(e)]} already holds 4 boxes. Move one somewhere else first.`}function Us(e,o){let t=e.filter(r=>r?.props?.id!==o);return ho.map(r=>{let a=Gs(t,r)>=4,n=tn[r];return a?{value:r,label:n,disabled:!0,title:rp(r)}:{value:r,label:n}})}function rn(e,o){let t=o===void 0?on:gt(o?.props?.placement);return Gs(e,t)>=4?rp(t):null}var an="HeroGroup";function dw(e){return ho.map(o=>{let t=Gs(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function $s(e){let o=dw(e);return o.length===0?null:o.map(({anchor:t,total:r,hidden:a})=>{let n=tn[t],s=a===1?"1 is not shown":`${a} are not shown`;return`${n} holds ${r} boxes. The published page draws the first 4, so ${s}. ${a===1?"Move it":"Move them"} somewhere else.`}).join(" ")}function ap(e,o){let t=o;if(t?.type!==an)return null;let r=t.props?.id===void 0?"":String(t.props.id);return r?rn(qs(e,r),t):null}function qs(e,o){let t=lp(e,o);return t&&t.ownerType===pw?t.siblings:[]}function np(e,o){let t=lp(e,o);return t?t.ancestorTypes.filter(r=>r===an).length:uw}var uw=1,pw="HeroSlide";function lp(e,o){let t=a=>Array.isArray(a)&&a.length>0&&a.every(n=>!!n&&typeof n=="object"&&typeof n.type=="string"),r=(a,n,s)=>{if(n>12||!a||typeof a!="object")return null;if(t(a)){if(a.some(i=>i?.props?.id===o))return{siblings:a,ownerType:s.at(-1)??null,ancestorTypes:s};for(let i of a){let f=i.type,u=r(i,n+1,[...s,String(f)]);if(u)return u}return null}for(let i of Object.values(a)){let f=r(i,n+1,s);if(f)return f}return null};return r(e,0,[])}import{jsx as mw}from"react/jsx-runtime";var xw="sf-hint-keep";function sp({children:e}){return mw("span",{className:xw,children:e})}import{AdjustIcon as M0,AlignLeftIcon as H0,EyeIcon as W0,AlignSeparateIcon as z0,AnimationIcon as wx,BackgroundIcon as G0,BorderAllIcon as U0,BlockSectionIcon as $0,CartIcon as q0,ColumnWidthsIcon as kx,ColumnsIcon as j0,CornerIcon as K0,DirectionDownIcon as V0,DirectionLeftIcon as Y0,DirectionRightIcon as X0,DirectionUpIcon as Z0,DollarIcon as Q0,FinishIcon as J0,GapIcon as Tx,GridIcon as eE,GroundIcon as oE,HashIcon as Ex,HeightIcon as tE,ImageIcon as rE,ListIcon as aE,LocationIcon as Vi,PaddingAllIcon as nE,PaddingBottomIcon as Fx,PaddingLeftIcon as Px,PaddingRightIcon as Lx,PaddingTopIcon as Ox,PageIcon as Rx,PhoneIcon as lE,PlacementIcon as sE,ProductSizeIcon as iE,StickyIcon as fE,RotateIcon as cE,SquareIcon as dE,TypeIcon as uE,WidthIcon as pE,WrapIcon as mE}from"efficient-easel/icons";import{jsx as J,Fragment as go,jsxs as bo}from"react/jsx-runtime";import{TitleIcon as Iw,ButtonIcon as hw,DollarIcon as gw,HashIcon as bw,LinkIcon as yw,NoteIcon as Sw,TagIcon as Cw,TextLinesIcon as vw}from"efficient-easel/icons";var ip={body:vw,button:hw,link:yw,label:Cw,number:bw,price:gw,note:Sw,title:Iw},fp={eyebrow:bo(go,{children:[J("path",{d:"M5 6.5h5"}),J("path",{d:"M5 12.5h14"}),J("path",{d:"M5 18h11"})]}),heading:bo(go,{children:[J("path",{d:"M6.5 5v14"}),J("path",{d:"M17.5 5v14"}),J("path",{d:"M6.5 12h11"})]}),intro:bo(go,{children:[J("path",{d:"M4 5.5v13"}),J("path",{d:"M8 7.5h12"}),J("path",{d:"M8 12h12"}),J("path",{d:"M8 16.5h8"})]}),value:bo(go,{children:[J("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),J("path",{d:"M6.5 12h7"})]}),name:bo(go,{children:[J("path",{d:"M6 3.5v17"}),J("path",{d:"M6 5h11.5l-2.6 3.6L17.5 12H6z"})]}),date:bo(go,{children:[J("rect",{x:"4",y:"5.5",width:"16",height:"15",rx:"2"}),J("path",{d:"M4 10.5h16"}),J("path",{d:"M9 3.2v4.4"}),J("path",{d:"M15 3.2v4.4"})]}),caption:bo(go,{children:[J("rect",{x:"3.5",y:"4.5",width:"17",height:"11",rx:"2"}),J("path",{d:"M3.5 12.8l4.2-3.2 3.6 2.8 3.4-2.4 5.8 4"}),J("path",{d:"M6.5 19.5h11"})]}),quote:bo(go,{children:[J("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),J("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:bo(go,{children:[J("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),J("path",{d:"M8 9.5h8"}),J("path",{d:"M12 9.5v5"})]}),meta:bo(go,{children:[J("path",{d:"M4 7h16"}),J("path",{d:"M4 14h3.5"}),J("path",{d:"M10.5 14h3"}),J("path",{d:"M17 14h3"})]})};function js({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=ip[e];return n?J("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:J(n,{size:o})}):J("svg",{className:r,style:a,width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:fp[e]})}var T5=Object.keys(ip);var E5=Object.keys(fp);var ww="#ffffff",kw=/^#[0-9a-fA-F]{6}$/;function Ks(e){return Tw(e)?e:ww}function Tw(e){return typeof e=="string"&&kw.test(e)}function P5(e){return{"--bg":Ks(e)}}var Vs=[{role:"bg",token:"--bg",ink:!1},{role:"fg",token:"--fg",ink:!0},{role:"surface",token:"--site-surface",ink:!1},{role:"surface-2",token:"--site-surface-2",ink:!1},{role:"line",token:"--site-line",ink:!0},{role:"muted",token:"--fg-dim",ink:!0}],Ew=Vs.filter(e=>e.ink);function Fw(e){let o={color:e.fg};for(let{role:t,token:r}of Ew)o[r]=e[t];return o}var Pw={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},cp=Object.freeze(Fw(Pw));var nn=-1,Lw="sf-section-accent",dp="Color",up=new Set(["CategoryBar","DocTabs"]),A5=new Set(["Flex"]),Ow=0;function Ys(e){return e===nn?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Ow}function B5(e){return e??nn}function Rw(e){let o=`--theme-preset-${e}`,t={"--sf-sec-accent":`var(${o}-accent)`,"--sf-sec-accent-2":`var(${o}-accent-2)`,"--sf-sec-accent-ink":`var(${o}-accent-ink)`};for(let{role:r}of Vs)t[`--sf-sec-${r}`]=`var(${o}-${r}, var(--theme-${r}))`;return t}function _5(e){let o=Ys(e.sectionAccent);return o===null?null:{className:Lw,style:Rw(o)}}var Aw=["fade","rise","scale"],Xs="none",pp=[{label:"None",value:Xs},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function M5(e){return Aw.includes(e)?e:null}var mp="data-sf-anim",Gr="data-sf-anim-state";function H5(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(mp))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(Gr,"armed");let r=new IntersectionObserver(a=>{for(let n of a)if(n.isIntersecting){r.disconnect(),Bw(e);break}},{threshold:0});return r.observe(e),()=>{r.disconnect(),e.removeAttribute(Gr)}}function Bw(e){if(!e.getAttribute(mp))return;e.removeAttribute(Gr),e.offsetWidth,e.setAttribute(Gr,"play");let o=t=>{t.target===e&&(e.removeAttribute(Gr),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var W5=up;function Qs(e,o){let t=e?.content;if(!Array.isArray(t))return null;for(let r of t){if(!r||typeof r!="object")continue;let a=r.props;if(a?.id===o)return null;if(Zs(r,o,0))return a??{}}return null}function Zs(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Zs(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Zs(a,o,t+1))}import{SettingsDefaultReset as qe,SettingsField as ne,SettingsGroupHead as xE,SettingsGroupSub as IE,SettingsBorder as hE,SettingsSegmented as gE,SettingsSides as bE,SettingsSidesEach as Ax,sidesStartEach as yE,SettingsSwitch as Bx,borderSides as SE,borderStartEach as CE}from"efficient-easel/panel";import{FieldSelect as vE,ListField as wE}from"efficient-easel/fields";import{DisplayChips as kE}from"efficient-shell/ui";function qt(e){if(!e||typeof e!="object"||Array.isArray(e))return{};let o={};for(let[t,r]of Object.entries(e))typeof r=="boolean"&&(o[t]=r);return o}function ln(e,o){return qt(e)[o]!==!1}function Js(e,o,t){let r=qt(o)[t];return typeof r=="boolean"?r:ln(e,t)}function xp(e){return Object.values(qt(e)).some(o=>o===!1)}function Ip(e){return Object.keys(qt(e)).length>0}function hp(e,o,t){let r={...qt(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function gp(e,o,t){return{...qt(e),[o]:t}}function U5(e,o,t){let r=ln(e,t),a=Js(e,o,t);return r&&a?"":!r&&!a?"hidden":r?"max-[720px]:hidden":"min-[720px]:hidden"}import{AlignmentGrid as TE,Checkbox as Yz,CornersInput as EE,DateTimePicker as FE,FOCAL_DEFAULT as Xz,PictureTiles as _x,Slider as PE,Tooltip as Dx}from"efficient-shell/ui";import{jsx as bt,jsxs as Dw}from"react/jsx-runtime";import{ColorPicker as Nw,HexInput as Mw}from"efficient-shell/ui";import{SettingsDefaultReset as Hw,SettingsField as Ww}from"efficient-easel/panel";import{typedHex as ei}from"efficient-easel/pick";import{typedHex as _w}from"efficient-easel/pick";function bp(e){let o=new Set,t=[];return Qe(e).themes.forEach((r,a)=>{let n=[[l("Theme {n} main color",{n:a+1}),r.accent],[l("Theme {n} text color",{n:a+1}),r.text],[l("Theme {n} background",{n:a+1}),r.background]];for(let[s,i]of n){let f=i?_w(i):null;!f||o.has(f)||(o.add(f),t.push({name:s,value:f}))}}),t}function to({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,after:s,ariaLabel:i}){return bt(Gw,{value:e,onChange:o,label:l(i??t),id:r,caption:a,inherited:n,after:s})}function zw(){let{theme:e}=$();return bp(e).map(o=>({value:o.value,label:o.name}))}function Gw({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,after:s}){let i=zw(),f=e?null:ei(n??""),u=a!==void 0&&(!e||ei(a)!==ei(e))?a:null,p=m=>{m!==e&&o(m)};return Dw("div",{className:"sf-colour",children:[bt(Nw,{id:r,value:e,onChange:p,label:t,presets:i,fallback:f??void 0,size:"sm",align:"end"}),u!==null?bt("span",{className:"sf-colour-caption",children:u}):bt("span",{className:"sf-colour-hexwrap",children:bt(Mw,{value:e||f||"",onChange:p,label:l("{label} hex code",{label:t}),placeholder:e||f?void 0:l("Not set"),className:f?"sf-colour-hex is-inherited":"sf-colour-hex",size:"sm"})}),s]})}function sn({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:i}){let f=!!t;return bt(Ww,{label:e,icon:o,changed:f,action:to({value:t,inherited:f?void 0:r,onChange:n,label:e,after:bt(Hw,{words:V()?.panel,label:e,changed:f,detail:a,onReset:s})}),hint:i})}import{jsx as Ur}from"react/jsx-runtime";import{useEffect as ck,useState as dk}from"react";import{markSelection as uk,useCaretEdit as pk}from"efficient-easel/copy";import{RevertIcon as mk}from"efficient-easel/icons";import{IconButton as xk,TextToolbar as Ik,Tooltip as hk}from"efficient-shell/ui";import{applyMark as i3,markupTools as f3,MARKUP_TOOLS as c3,COPY_FIELD_TOOLS as d3,STOREFRONT_MARKUP as u3,tokenizeInline as p3,stripInline as m3,isSafeLinkHref as x3}from"efficient-shell/markup";import{applyMark as ek,markedAt as ok,markupTools as tk,MARKUP_TOOLS as rk,parseMarkup as ak,RETIRED_MARKS as nk,STOREFRONT_MARKUP as lk,tokenizeInline as h3}from"efficient-shell/markup";var yt=["highlight","strong","quiet"],St={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},yo={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},vp=Object.fromEntries(yt.map(e=>[yo[e].kind,e])),wp="data-sf-ws",fn=["accent","text","labels"],kp={accent:"Accent",text:"Text",labels:"Labels"},Ao={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},Uw=80,$w=120,qw=100,jw=900,Kw=.5,Vw=3,Yw=-.1,Xw=.5,Zw=3,oi={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},Qw={highlight:{...oi},strong:{...oi},quiet:{...oi}};function yp(e,o,t){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,o),t))}function Sp(e,o,t){if(typeof e!="number"||!Number.isFinite(e))return null;let r=10**Zw;return Math.round(Math.min(Math.max(e,o),t)*r)/r}function Cp(e){return typeof e=="boolean"?e:null}function Jw(e){let o=typeof e?.font=="string"&&no.some(r=>r.key===e.font)?e.font:null,t=typeof e?.colour=="string"&&fn.includes(e.colour)?e.colour:null;return{font:o,size:yp(e?.size,Uw,$w),weight:yp(e?.weight,qw,jw),bold:Cp(e?.bold),italic:Cp(e?.italic),lineGap:Sp(e?.lineGap,Kw,Vw),textGap:Sp(e?.textGap,Yw,Xw),colour:t}}function Tp(e){let o={};for(let t of yt)o[t]=e&&t in e&&e[t]?Jw(e[t]):{...Qw[t]};return o}function a3(e){let o=Tp(e),t={};for(let r of yt){let a=o[r],n=`--sf-ws-${r}`;if(a.font){let s=no.find(i=>i.key===a.font);s&&(t[`${n}-font`]=`var(${s.cssVar})`)}a.size!==null&&(t[`${n}-size`]=`${a.size/100}em`),a.weight!==null&&(t[`${n}-weight`]=String(a.weight)),a.bold!==null&&(t[`${n}-weight-bold`]=a.bold?"700":"400"),a.italic!==null&&(t[`${n}-style`]=a.italic?"italic":"normal"),a.lineGap!==null&&(t[`${n}-line`]=String(a.lineGap)),a.textGap!==null&&(t[`${n}-track`]=`${a.textGap}em`),a.colour!==null&&(t[`${n}-color`]=Ao[a.colour])}return t}function n3(e){let o=e?.word_styles??void 0,t={};for(let r of yt)o&&r in o&&(t[r]=o[r]??null);return Tp(t)}var sk=new Set(["strong"]),Ep=yt.map(e=>({open:yo[e].delimiter,close:yo[e].delimiter,kind:yo[e].kind,...sk.has(e)?{wordStart:!0}:{}})),b3=[{style:yo.highlight.kind,label:St.highlight,title:`${St.highlight} word style`},{style:yo.strong.kind,label:St.strong,title:`${St.strong} word style`},{style:yo.quiet.kind,label:St.quiet,title:`${St.quiet} word style`}],ik=new Set(Ep.map(e=>e.open)),jt=[...lk.filter(e=>!ik.has(e.open)),...Ep];function ti(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function ri(e){return ak(typeof e=="string"?e:"",jt)}var fk=rk.map(e=>e.style).filter(e=>!nk.includes(e)).filter(e=>jt.some(o=>o.kind===e));function Fp(){return tk(fk)}var Pp=Object.fromEntries(yt.map(e=>[yo[e].kind,yo[e].delimiter]));function Lp(e,o,t,r){let a=Pp[r];if(!a)return ek(e,o,t,r);let n=e.slice(o,t),s=e.slice(Math.max(0,o-a.length),o),i=e.slice(t,t+a.length);if(s===a&&i===a)return{text:e.slice(0,o-a.length)+n+e.slice(t+a.length),selectionStart:o-a.length,selectionEnd:o-a.length+n.length};let f=n||"styled text";return{text:e.slice(0,o)+a+f+a+e.slice(t),selectionStart:o+a.length,selectionEnd:o+a.length+f.length}}function Op(e,o,t,r){let a=Pp[r];return a?o>=a.length&&e.slice(o-a.length,o)===a&&e.slice(t,t+a.length)===a:ok(e,o,t,r)}function Ct(e){return ri(e).map(o=>ti(o)+Rp(o.children)).join(`
3
+ `)}function Rp(e){return e.map(o=>o.kind==="text"?o.text:Rp(o.children)).join("")}var Ap="Clear formatting";function gk(e,o,t){return uk(e,o,t,Lp)}function bk(e){let[o,t]=dk(null);return ck(()=>{let r=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!r)return;let a=()=>{let n=e.current;if(!n||r.activeElement!==n)return;let s=n.selectionStart??n.value.length,i=n.selectionEnd??s;t(f=>f&&f.start===s&&f.end===i?f:{start:s,end:i})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function yk({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=pk({target:e,onChange:t}),[s,i]=bk(e),f=x=>n(h=>{let b=gk(o,x,h);return i({start:b.selectionStart,end:b.selectionEnd}),b}),u=Fp(),p={};if(s)for(let x of u)p[x.style]=Op(o,s.start,s.end,x.style);let m=Ct(o);return Ur(Ik,{offered:new Set(u.map(x=>x.style)),onMark:x=>f(x),pressed:p,disabled:r,"aria-label":l(a),className:"sf-markup-bar",last:Ur("span",{className:"sf-markup-clear",children:Ur(hk,{content:l(Ap),children:Ur(xk,{size:"sm",onMouseDown:x=>x.preventDefault(),onClick:()=>t(m),disabled:r||m===o,"aria-label":l(Ap),children:Ur(mk,{size:14})})})})})}var ai=yk;import{DEVICE_FIELD_MARKER as L3,DEVICE_HIDDEN_ATTR as O3,DEVICE_NOTE as R3,deviceField as we,deviceMetaOf as ni,deviceNote as A3,shownTier as B3,withoutDeviceGate as _3}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as M3,NO_CONTROL_FIELD as Bp,noControlField as Xo,NoControlMark as Bo,noControlMetaOf as H3}from"efficient-easel/screen/lib/puck/panel-no-control-mark";var li="__ownBox";function _p(e){return!!e&&typeof e=="object"&&e[li]===!0}function _o(e){return`${e}Phone`}function cn(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var dn=void 0;import{jsx as ii,Fragment as vk}from"react/jsx-runtime";import{createContext as wk,useContext as kk}from"react";var un={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},pn={Events:["posts"],SubscribeBlogs:["posts"]};var Sk=["anchor"],Ck=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function $r(e){return Sk.includes(e)||Ck.test(e)}var si={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},BrandStrip:{picks:{verb:"reference"}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};si.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var q3=Object.fromEntries(Object.entries(un).map(([e,o])=>[e,Object.keys(o)])),j3=Object.fromEntries(Object.entries(pn).map(([e,o])=>[e,[...o]]));var Dp=wk(!1);function Np({children:e}){return ii(Dp.Provider,{value:!0,children:e})}function Tk(){return kk(Dp)}function Mp({name:e,children:o}){return!Tk()||!e||$r(e)?ii(vk,{children:o}):ii(Bo,{})}function Je(e,o,t){return e.some(r=>(typeof r=="object"?r.value:r)===t)?t:o}var fi="off",ci="none",di=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],ui=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function o4(e){return Je(di,fi,e)}function t4(e){return Je(ui,ci,e)}var Hp="sf-card-index",qr="sf-card-index",r4="pointer-events-none absolute left-[18px] top-[18px] z-10 border border-line bg-bg/70 px-2 py-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.16em] text-fg-dim",Ek={plain:`counter(${qr})`,padded:`counter(${qr}, decimal-leading-zero)`,numero:`"N\xB0" counter(${qr}, decimal-leading-zero)`};function a4(e,o){return o==="off"?"":`.${e}{counter-reset:${qr}}.${e} .${Hp}{counter-increment:${qr}}.${e} .${Hp}::before{content:${Ek[o]}}`}function n4(e){return e==="hairline"?"border border-line hover:border-accent":""}var Wp=[{value:"1",label:"1st rendering"},{value:"2",label:"2nd rendering"},{value:"3",label:"3rd rendering"},{value:"4",label:"4th rendering"},{value:"5",label:"5th rendering"}];import{SCALAR_TEXT_CONTROLS as LE}from"efficient-easel/draw";import{jsx as So}from"react/jsx-runtime";import{SettingsDefaultReset as Fk,SettingsField as Up}from"efficient-easel/panel";import{useSelectedFields as Pk}from"efficient-easel/easel";import{FOCAL_DEFAULT as Lk}from"efficient-shell/format";import{ImageIcon as $p,PlayIcon as qp}from"efficient-easel/icons";import{MediaUploadField as Ok}from"efficient-shell/ui";import{useContext as Rk}from"react";import{usePreviewDevice as Ak}from"efficient-easel/draw/client";import{requestMediaPick as zp,resolveMediaPick as f4}from"efficient-easel/screen/lib/media-picker";import{createEaselHost as u4,DETACHED_EASEL_HOST as p4,EaselHostContext as m4,EaselHostProvider as x4,useEaselHost as Kt}from"efficient-easel/screen/lib/host";var Ue=Yd,Gp=e=>e.blocks;import{EaselSessionProvider as y4,useEaselSession as De}from"efficient-easel/screen/lib/session-context";function Bk(e,o){let t=null;try{t=Pk()}catch{t=null}let r=Ak()==="mobile";if(!e||!t||o&&!o(t.values??{}))return null;let a=typeof t.values?.[e]=="string"&&t.values[e]?String(t.values[e]):Lk,n=_o(e),s=typeof t.values?.[n]=="string"&&t.values[n]?String(t.values[n]):void 0,i=t.onChange;return{phone:r,desktop:a,own:s,focus:r?s??a:a,set:f=>i(r?n:e,f),clear:()=>i(n,dn)}}function jp({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s}){let i=Kt(),f=De(),u=l(t),p=r.startsWith("video"),m=Bk(p?void 0:n,s),x=Rk($t),h=C=>zp(i,{accept:r,title:u,...C?{file:C}:{}}).then(k=>k?.url??null);if(x&&!x.capabilities.mediaEditing)return So(Up,{label:u,icon:p?So(qp,{}):So($p,{}),children:So("div",{className:"sf-image-slot-inert",children:p?l("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):l("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let b=m?.phone&&e?So(Fk,{words:V()?.panel,label:l("Image focus"),changed:!!m.own,detail:l("{value} on desktop",{value:m.desktop}),onReset:m.clear}):void 0;return So(Up,{label:u,icon:p?So(qp,{}):So($p,{}),action:b,children:So("div",{style:{flex:"1 1 auto",minWidth:0},children:So(Ok,{value:e,onChange:o,onPick:h,accept:p?"video/*":"image/*",kind:p?"video":"image",placeholder:a===void 0?void 0:l(a),maxSizeBytes:Ue(f).media.maxUploadBytes,...m?{focus:m.focus,onFocusChange:m.set}:{}})})})}import{jsx as Kp}from"react/jsx-runtime";import{useId as _k}from"react";import{FieldSelect as Dk}from"efficient-easel/fields";import{SettingsField as Nk}from"efficient-easel/panel";function Mk(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function Vp({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let i=_k(),f=`${i}-label`,u=`${i}-button`,p=Array.isArray(t)?t:[];return Kp(Nk,{label:l(e),labelId:f,icon:n,hint:s,children:Kp(Dk,{id:u,multiple:!0,value:p,options:Mk(o),onChange:r,placeholder:a===void 0?l("None"):l(a),ariaLabelledBy:`${f} ${u}`,inline:!0})})}import{jsx as Ee,jsxs as wt,Fragment as lT}from"react/jsx-runtime";import{useCallback as sT,useContext as iT,useEffect as fT,useId as fm,useRef as sm,useState as im}from"react";import{ThemeIcon as cT}from"efficient-easel/icons";import{SettingsField as dT}from"efficient-easel/panel";import{jsx as q,jsxs as Qo,Fragment as jk}from"react/jsx-runtime";import{SettingsField as xi,SettingsGroupSub as Kk}from"efficient-easel/panel";import{Button as mi}from"efficient-shell/ui";import{jsx as Zo,jsxs as Yp}from"react/jsx-runtime";import{SettingsField as Hk}from"efficient-easel/panel";import{AccentIcon as Wk}from"efficient-easel/icons";import{Tooltip as zk}from"efficient-shell/ui";function pi(e){return xo(e).background}function Gk(e){let o=Vo(e.accent,pi(e));return o===null?null:{ratio:o,grade:Gt(o)}}function Uk(e){let o=pi(e),t=Vo(e.accent,o);return t===null?[]:nu(e.accent).filter(r=>{let a=Vo(r,o);return a!==null&&a>t&&Gt(a)==="good"})}var $k={good:"Easy to read","large-only":zt["large-only"],hard:zt.hard};function Xp({value:e,onChange:o}){let t=Gk(e),r=t?.grade,a=t&&t.grade!=="good"?Uk(e):[];return Zo(Hk,{label:l("Main color"),icon:Zo(Wk,{}),hint:t?l($k[t.grade]):void 0,action:Zo(to,{value:e.accent,onChange:n=>o({...e,accent:n}),label:l("Main color")}),children:a.length>0?Zo("div",{className:"w-full min-w-0",children:Yp("div",{className:"sf-readability",children:[Zo("p",{className:"sf-readability-advice",children:qk(r,!0)}),Zo("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=Vo(n,pi(e));return Zo(zk,{content:l("Use {colour}",{colour:n.toUpperCase()}),children:Yp("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[Zo("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),s?`${s.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function qk(e,o){return e?e==="good"?l("This color reads clearly on your pages."):o?l("This color is hard to read on this theme's page. The buttons below are the same hue, darkened."):l("This color is hard to read on your page background. Pick one further from it \u2014 lighter if your pages are dark, deeper if they are light."):l("Pick a color to see how it reads.")}import{ButtonIcon as Vk,GroundIcon as Yk,LayoutIcon as Xk,SquareIcon as Zk,TextSmallIcon as Qk,TypeIcon as Zp}from"efficient-easel/icons";var jr=e=>l("Theme {n}",{n:e+1});function Qp({colors:e}){let o=xo(e),t=Mr(e)??o.accent;return Qo("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[q("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:l("label")}),Qo("span",{className:"sf-theme-headline",children:[l("Heading")," ",q("span",{style:{color:o.accent},children:l("accent")})]}),q("span",{className:"sf-theme-body",children:l("body text")}),Qo("span",{className:"sf-theme-row",children:[q("span",{className:"sf-theme-btn",style:{background:t,color:ws(e,o.accent)},children:l("button")}),q("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:l("card")})]})]})}var Ii={"Text color":q(Zp,{}),"Label color":q(Qk,{}),Background:q(Yk,{}),"Panels & cards":q(Xk,{}),Borders:q(Zk,{}),"Button color":q(Vk,{}),"Button text color":q(Zp,{})};function Jk({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return q(xi,{label:l(e),icon:Ii[e],htmlFor:n,action:q(to,{id:n,label:l(e),value:t,onChange:s=>r(o,s)})})}function eT({value:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button`,n=/^#[0-9a-fA-F]{6}$/.test(e??""),s=n?e:o;return q(xi,{label:l("Button color"),icon:Ii["Button color"],htmlFor:a,action:q(to,{id:a,label:l("Button color"),value:s,caption:n?s:l("Main"),onChange:t})})}function oT({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=lu(e),s=ws(e,o),i=Mr(e)??o,f=Gt(Vo(s,i)??0);return q(xi,{label:l("Button text color"),icon:Ii["Button text color"],hint:n&&f!=="good"?l("{grade} on the button",{grade:l(zt[f])}):void 0,htmlFor:a,action:q(to,{id:a,label:l("Button text color"),value:s,caption:n?s:l("Auto"),onChange:t})})}var tT=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{group:"Surfaces"},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function hi({colors:e,onChange:o,idPrefix:t}){let r=xo(e);return q(jk,{children:tT.map(a=>"colour"in a?q(Xp,{value:e,onChange:o},"colour"):"group"in a?q(Kk,{title:l(a.group)},a.group):"button"in a?q(eT,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?q(oT,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):q(Jk,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function mn({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:i,onChangeColors:f}){let u=xo(o),p=jr(e),m=e<vs.length&&!o.brandInk?vs[e]:null,x=Gt(Vo(u.text,u.background)??0),h=m?JSON.stringify(o)!==JSON.stringify(m):!1,b=a!==void 0;return Qo("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[q("button",{type:"button",role:r,"aria-checked":r==="radio"?t:void 0,"aria-selected":r==="option"?t:void 0,"aria-label":p,className:"sf-theme-pick",onClick:s,children:q(Qp,{colors:o})}),Qo("div",{className:"sf-theme-foot",children:[q("span",{className:"sf-theme-name",children:p}),x!=="good"&&q("span",{className:"sf-theme-warn",children:l(zt[x])}),n&&i&&q(mi,{variant:a?"primary":"secondary",size:"sm",className:"sf-theme-edit","aria-expanded":b?a:void 0,"aria-controls":b?`sf-theme-colours-${e}`:void 0,"aria-label":a?l("Done {name}",{name:p}):l("Edit {name}",{name:p}),onClick:i,children:a?l("Done"):l("Edit")})]}),a&&Qo("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[q(hi,{colors:o,onChange:C=>f?.(C)}),m&&q(mi,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!h,onClick:()=>f?.({...m}),children:h?l("Reset {name} to the preset",{name:p}):l("Not changed")})]})]})}function Jp({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:i,onKeyDown:f,onEdit:u}){return Qo("div",{className:"sf-secttheme-btn",children:[q("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:i,onKeyDown:f,children:e?q(Qp,{colors:e}):q("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Qo("div",{className:"sf-theme-foot",children:[q("span",{id:t,className:"sf-theme-name",children:o}),u&&q(mi,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":l("Edit {name}",{name:o}),onClick:u,children:l("Edit")}),q("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:q("span",{className:"sf-multi-caret",children:"\u25BE"})})]})]})}import{useCallback as vi,useEffect as am,useRef as hn}from"react";import{useSyncExternalStore as rT}from"react";var om,gi=null,vt=null,xn=0,bi=new Set;function yi(e){om=e;for(let o of bi)o()}function Si(e){gi=e,xn+=1,vt&&clearTimeout(vt),vt=null,yi(void 0)}function i6(e){xn+=1,yi(e)}function In(e=250){gi&&(vt&&clearTimeout(vt),vt=setTimeout(()=>{vt=null;let o=gi;if(!o)return;let t=++xn;o().then(r=>{t===xn&&yi(r)}).catch(()=>{})},e))}function em(){return om}function aT(e){return bi.add(e),()=>{bi.delete(e)}}function tm(){return rT(aT,em,em)}var Ci=new Set;function rm(e){return Ci.add(e),()=>{Ci.delete(e)}}async function c6(){let e=(await Promise.allSettled([...Ci].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}function nm(e=ao()){return(o,t,r)=>{let a=Ue(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new Ls("invalid","This backend stores no site theme."))}}function lm(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function nT(e,o=nm()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=lm({themeFromDocument:t,token:r});if(s)return s;if(Object.keys(n).length===0)return{status:"skipped",reason:"empty"};try{return await o(n,r,a??void 0),{status:"saved"}}catch(i){return{status:"failed",error:i}}}function Vt({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=hn(null),n=hn({}),s=De(),i=hn(r);i.current=r;let f=hn(null),u=vi(x=>{if(x.status==="skipped"){let h=`skipped:${x.reason}`;if(f.current===h)return;f.current=h}else f.current=null;i.current?.(x)},[]),p=vi(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let x=n.current;n.current={};let h=await nT({themeFromDocument:e,token:o?.current,siteId:t,patch:x},nm(s));return u(h),h.status==="saved"&&In(),h.status==="failed"&&(n.current={...x,...n.current}),h},[e,o,t,u,s]),m=vi((x,h=!1)=>{let b=lm({themeFromDocument:e,token:o?.current});if(b){u(b);return}n.current={...n.current,...x},a.current&&clearTimeout(a.current),h?p():a.current=setTimeout(()=>{p()},500)},[e,o,p,u]);return am(()=>()=>{p()},[p]),am(()=>rm(async()=>{if(!a.current&&Object.keys(n.current).length===0)return;let x=await p();if(x.status==="failed")throw x.error}),[p]),{persist:m,flush:p}}var uT="Follow the page",O6="Follow the slideshow",pT=e=>l("Editing {name} changes it everywhere.",{name:e});function mT({colors:e}){if(!e)return Ee("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=xo(e);return wt("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Ee("i",{style:{background:o.background}}),Ee("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function xT({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return wt("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&wt(lT,{children:[wt("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(nn),children:[Ee(mT,{}),Ee("span",{className:"sf-secttheme-name",children:l(n)})]}),Ee("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&Ee("p",{className:"sf-secttheme-oncard",role:"presentation",children:l("{name} is on this section",{name:jr(o)})}),e.map((s,i)=>i===o?null:Ee(mn,{role:"option",index:i,colors:s,selected:!1,onPick:()=>t(i),onEdit:()=>r(i)},i))]})}function IT({index:e,colors:o,onChange:t,onDone:r}){let a=jr(e),n=fm();return wt("div",{className:"sf-secttheme-sheet",children:[wt("div",{className:"sf-secttheme-sheet-head",children:[Ee("span",{children:a}),Ee("button",{type:"button",className:"sf-secttheme-done",onClick:r,children:l("Done")})]}),Ee("div",{className:"sf-secttheme-rows",children:Ee(hi,{colors:o,onChange:t,idPrefix:n})}),Ee("p",{className:"sf-secttheme-warn",children:pT(a)})]})}function cm({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=$(),s=Qe(a),i=iT($t),f=i?.tokenRef,u=i?.siteId??null,p=!i?.capabilities?.hasSiteTheme,{persist:m,flush:x}=Vt({themeFromDocument:p,tokenRef:f,siteId:u}),h=Qe(s),b=h.themes,C=Ys(e),k=C!==null?b[C]:void 0,v=k??(b.length?Wt(h):void 0),[w,g]=im(!1),[y,F]=im(null),E=sm(null),L=sm(null),B=fm(),O=sT(()=>{g(!1),F(null)},[]);fT(()=>{if(!w&&y===null)return;let H=z=>{E.current&&!E.current.contains(z.target)&&(x(),O())};return document.addEventListener("mousedown",H),()=>document.removeEventListener("mousedown",H)},[w,y,O,x]);let M=H=>{o(H),O()},re=H=>{if(y===null)return;let z=b.map((oe,Be)=>Be===y?H:oe),A={...h,themes:z};n(A),m({selected_preset:A.selected,theme_presets:A.themes})};return wt("div",{className:"sf-secttheme",ref:E,children:[Ee(dT,{label:l("Theme"),icon:Ee(cT,{}),labelId:`${B}-label`,hint:r,children:Ee(Jp,{colors:v,onEdit:C!==null?()=>{F(C),g(!1)}:void 0,name:k?jr(C):l(t??uT),nameId:`${B}-value`,labelId:`${B}-label`,open:w,menuId:B,buttonRef:L,onClick:()=>{F(null),g(H=>!H)},onKeyDown:H=>{H.key==="Escape"&&(w||y!==null)&&(H.preventDefault(),O())}})}),w&&y===null&&Ee("div",{onKeyDown:H=>{H.key==="Escape"&&(H.preventDefault(),O(),L.current?.focus())},children:Ee(xT,{themes:b,value:C,onPick:M,onEdit:H=>{F(H),g(!1)},menuId:B,followLabel:t})}),y!==null&&b[y]&&Ee(IT,{index:y,colors:b[y],onChange:re,onDone:()=>{x(),O(),L.current?.focus()}})]})}import{jsx as dm}from"react/jsx-runtime";import{useId as hT}from"react";import{FieldSelect as gT}from"efficient-easel/fields";import{SettingsField as bT}from"efficient-easel/panel";function yT(e){return e.map(({value:o,label:t,group:r,thumb:a,meta:n})=>({value:o,label:t,...r!==void 0?{group:r}:{},...a!==void 0?{thumb:a}:{},...n!==void 0?{meta:n}:{}}))}function M6({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let f=hT(),u=`${f}-label`,p=`${f}-button`,m=r??"",x=o.some(k=>k.value===m)?m:t,h=l(e),b=n===void 0?void 0:l(n),C=dm(gT,{id:p,value:x,options:yT(o),onChange:a,placeholder:b,searchPlaceholder:b,...s?{ariaLabel:h}:{ariaLabelledBy:`${u} ${p}`},searchable:!0,groupCount:!0,inline:!0});return s?C:dm(bT,{label:h,labelId:u,icon:i,children:C})}import{jsx as kt,jsxs as wT}from"react/jsx-runtime";import{SettingsField as Sm}from"efficient-easel/panel";import{LinkIcon as kT}from"efficient-easel/icons";import{LinkPicker as TT,TextLinkField as ET}from"efficient-shell/ui";import{useEffect as ym,useMemo as yn,useRef as FT,useState as bn}from"react";function um(){return ao().auth.token}var gn="homepage";function pm(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var mm=[{value:"page",label:"Page"},{value:"anchor",label:"Anchor"},{value:"blog",label:"Blog post",needs:"service"},{value:"product",label:"Product",needs:"commerce"},{value:"custom",label:"Custom URL"}];function xm(e){return e.offersCommerce&&e.offersService?mm:mm.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function Kr(e){return e===gn?"/":`/${e}`}function Im(e){return`/journal/${e}`}function j6(e){return`/wheels/${e}`}function hm(e,o){return`${Kr(e)}#${o}`}function ST(e){return pm(e)}function CT(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function gm(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=CT(a?.props?.anchor);if(!n)continue;let s=ST(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function K6(e){let o=e.indexOf("#"),t=o===-1?e:e.slice(0,o),r=t.indexOf("?");return r===-1?t:t.slice(0,r)}var vT=()=>({choosePage:l("Choose a page"),chooseSection:l("Choose a section"),noSections:l("No section anchors yet"),sectionHint:l("Jumps to a section on that page."),choosePost:l("Choose a post"),chooseProduct:l("Choose a product")});function bm(e,o,t){if(!e)return"page";if(e.startsWith("/journal/"))return"blog";if(e.startsWith("/wheels/"))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||o.includes(r))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function wi(e,o){let t=vT(),r=e.pages.map(p=>({value:Kr(p.slug),label:p.title})),a=o?.pageOptions?o.pageOptions(r):r,n=a.map(p=>p.value),s=e.pages.map(p=>({label:p.title,options:gm(...p.docs).map(m=>({value:hm(p.slug,m.slug),label:m.name}))})).filter(p=>p.options.length>0),i=p=>{switch(p){case"page":return{type:"select",options:a,placeholder:t.choosePage};case"anchor":return{type:"groups",groups:s,placeholder:s.length?t.chooseSection:t.noSections};case"blog":return{type:"select",options:e.posts.map(m=>({value:Im(m.slug),label:m.title||m.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(m=>({value:m.href,label:m.name||m.href})),placeholder:t.chooseProduct};case"custom":return{type:"text"}}},f=xm(e.offers).map(p=>({value:p.value,label:l(p.label),target:i(p.value),...p.value==="anchor"?{hint:t.sectionHint}:{},...p.value==="blog"||p.value==="product"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:f,rules:{kindOf:p=>bm(p,n),targetOf:p=>p,readFilter:()=>null,withFilter:p=>p}};let u=p=>{let m=o.withFilter(p,null);return o.listingPaths.includes(m)?m:p};return{kinds:f,rules:{kindOf:p=>bm(p,n,{listingPaths:o.listingPaths,targetOf:u}),targetOf:u,readFilter:o.readFilter,withFilter:o.withFilter},filtersFor:p=>o.listingPaths.includes(p)?o.filtersFor(p):null}}function Cm(e){let o=new Map;return(t="")=>{let r=um(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!ao().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var PT=Cm(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ue();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),LT=Cm(async(e,o)=>await Ue().blog?.posts(o?{siteId:o}:void 0)??[]);function OT({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=yn(()=>wi(r,a),[r,a]),s=l(t);return kt(Sm,{label:s,icon:kt(kT,{}),children:kt(TT,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function vm(){let{siteId:e,capabilities:o}=ye(),{offersCommerce:t,hasBlog:r}=o,[a,n]=bn([]),[s,i]=bn([]),[f,u]=bn([]),[p,m]=bn(null),x=De().chrome,h=x?.products?.list,b=x?.linkFilters,C=b?void 0:x?.linkRow,k=FT(!0);ym(()=>(k.current=!0,()=>{k.current=!1}),[]),ym(()=>{let g=!0;return PT(e??void 0).then(y=>g&&k.current&&n(y)),r&&LT(e??void 0).then(y=>g&&k.current&&i(y)),t&&h?.().then(y=>g&&k.current&&u(y)),t&&b?b.load(e).catch(()=>null).then(y=>g&&k.current&&m(()=>y)):m(null),()=>{g=!1}},[e,t,r,h,b]);let v=yn(()=>({pages:a.filter(g=>!Du(g.slug)).map(g=>({slug:g.slug,title:g.label,docs:[g.layout]})),posts:r?s.map(g=>({slug:g.slug,title:g.title})):[],products:t?f.map(g=>({href:g.href,name:g.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,f,t,r]),w=yn(()=>p?p(v.pages):null,[p,v]);return{data:v,filters:w,pages:a,offersCommerce:t,HostLinkRow:C}}function uW({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=vm(),f=yn(()=>wi(s,i),[s,i]),u=l(e);return kt(Sm,{label:u,icon:o,children:kt(ET,{label:u,text:t,onTextChange:r,link:a,onLinkChange:p=>n(p),kinds:f.kinds,rules:f.rules,filtersFor:f.filtersFor})})}function wm({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:f}=vm(),u=a.pages.map(m=>Kr(m.slug)),p=i&&f&&(r==="/"||u.includes(r))?f:void 0;return wT("div",{children:[kt(OT,{value:r,onChange:o,label:t,data:a,filters:n}),p&&kt(p,{value:r,onChange:o,pages:s})]})}import{UiIcon as hx}from"efficient-easel/draw/client";var lo={min:10,max:200,step:10};function km(e,o){let t=typeof e=="number"?e:void 0,r=typeof o=="number"?o:void 0;if(!(t===void 0&&r===void 0))return{paddingTop:t,paddingBottom:r}}var RT="sf-pad-top-phone",AT="sf-pad-bottom-phone",BT="--sf-pad-t-phone",_T="--sf-pad-b-phone",DT="sf-pad-left-phone",NT="sf-pad-right-phone",MT="--sf-pad-l-phone",HT="--sf-pad-r-phone";function Fm(e,o,t,r,a,n,s,i){let f=km(e,o)??{},u={},p=["sf-section-pad"];typeof t=="number"&&(p.push(RT),u[BT]=`${t}px`),typeof r=="number"&&(p.push(AT),u[_T]=`${r}px`);let m={};return typeof a=="number"&&(m.paddingLeft=a),typeof n=="number"&&(m.paddingRight=n),typeof s=="number"&&(p.push(DT),u[MT]=`${s}px`),typeof i=="number"&&(p.push(NT),u[HT]=`${i}px`),p.length===1&&km(e,o)===void 0&&!Object.keys(m).length?null:{className:p.join(" "),style:{...f,...m,...u}}}var Tm=e=>typeof e=="number"?e:void 0;function Em(e,o,t){let r=Tm(e)??t,a=Tm(o);return r===void 0?a:a===void 0?r:r+a}function mW(e,o={}){return{top:Em(e.padTop,e.sectionPaddingTop,o.top),bottom:Em(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function xW(e){return{top:e.sectionPaddingTop,bottom:e.sectionPaddingBottom,topPhone:e.sectionPaddingTopPhone,bottomPhone:e.sectionPaddingBottomPhone,left:e.sectionPaddingLeft,right:e.sectionPaddingRight,leftPhone:e.sectionPaddingLeftPhone,rightPhone:e.sectionPaddingRightPhone}}function IW(e){return Fm(e.top,e.bottom,e.topPhone,e.bottomPhone,e.left,e.right,e.leftPhone,e.rightPhone)}function hW(e,o){let t=r=>typeof r=="number"?r+o:void 0;return Fm(t(e.top),t(e.bottom),t(e.topPhone),t(e.bottomPhone),e.left,e.right,e.leftPhone,e.rightPhone)}var WT=["auto","fixed","screen"],zT=["px","%"];var GT="var(--sf-header-h, 88px)",ki={min:40,max:2e3,step:10,fallback:600},Ti={min:10,max:200,step:5,fallback:100},UT="sf-section-minh",Pm={base:"--sf-section-minh",small:"--sf-section-minh-s"},Om=e=>typeof e=="string"&&WT.includes(e),$T=e=>typeof e=="string"&&zT.includes(e);function Sn(e){let o=Om(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":$T(e.sectionHeightUnit)?e.sectionHeightUnit:"px",r=o==="screen"?Ti.fallback:ki.fallback,a=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:r;return{mode:o,value:a,unit:t}}function Rm(e){let{mode:o,value:t,unit:r}=Sn(e);if(o==="auto")return;if(o==="fixed"&&r==="px")return[`${t}px`,null];let a=t/100,n=s=>o==="screen"?`(100${s} - ${GT})`:`100${s}`;return[`calc(${n("vh")} * ${a})`,`calc(${n("svh")} * ${a})`]}function qT(e){let o=Rm(e);if(!o)return;let[t,r]=o;return{display:"grid",[Pm.base]:t,...r?{[Pm.small]:r}:{}}}var bW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),Yt="Height",jT="sf-section-minh-phone",Lm={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Ei(e){return Om(e.sectionHeightModePhone)}function yW(e){return Sn({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function KT(e){let o=qT(e),t=Ei(e)?Rm({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let r=[UT],a={...o??{}};return t&&(r.push(jT),a[Lm.base]=t[0],t[1]&&(a[Lm.small]=t[1])),{className:r.join(" "),style:a}}function SW(e){return KT(e)!==null}var Cn="Stick to top",Jo={min:0,max:200,step:4,fallback:0},VT="sf-section-stick",YT="sf-section-stick-phone-on",XT="sf-section-stick-phone-off",Am={desktop:"--sf-stick-distance",phone:"--sf-stick-distance-phone"},vW=new Set(["CategoryBar","DocTabs","IntroBleed"]);function Bm(e){let o=typeof e=="number"&&Number.isFinite(e)?e:Jo.fallback;return Math.min(Jo.max,Math.max(Jo.min,Math.round(o)))}function Fi(e){return typeof e.stickTopPhone=="boolean"}function Pi(e){let o=e.stickTop===!0,t=Bm(e.stickTopDistance),r=Fi(e),a=r?e.stickTopPhone===!0:o,n=r?Bm(e.stickTopDistancePhone):t;return{desktop:o,desktopDistance:t,phone:a,phoneDistance:n,ownPhone:r}}function wW(e){let o=Pi(e);if(!o.desktop&&!o.phone)return null;let t=[VT],r={};return o.desktop&&(r[Am.desktop]=`${o.desktopDistance}px`),(o.ownPhone||o.phone!==o.desktop)&&(t.push(o.phone?YT:XT),o.phone&&(r[Am.phone]=`${o.phoneDistance}px`)),o.desktop||t.push("sf-section-stick-desktop-off"),{className:t.join(" "),style:r}}var ZT=["column","row","tabs"],_m="Direction",QT={column:"Stacked",row:"One row",tabs:"Tabs"},Dm={Flex:ZT,HeroGroup:["column","row"]},JT={Flex:"row",HeroGroup:"column"},e0={column:"flex-col",row:"flex-row",tabs:"flex-col"};function vn(e,o){return Dm[e].includes(o)?o:JT[e]}function TW(e,o){return e0[vn(e,o)]}function Nm(e){return Dm[e].map(o=>({label:QT[o],value:o}))}var Li=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],Wm=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"End",value:"end"},{label:"Stretch",value:"stretch"}],zm="Wrap",Oi=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],Mm={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},Hm={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function FW(e,o){let t=typeof e=="string"&&e in Mm?Mm[e]:"",r=typeof o=="string"&&o in Hm?Hm[o]:"";return[t,r].filter(Boolean).join(" ")}function PW(e){return e===!0||e==="wrap"?"flex-wrap":""}var Ri="Block widths",wn=[{label:"Fit content",value:"content",weights:null},{label:"Equal",value:"equal",weights:[1,1]},{label:"Big left",value:"bigLeft",weights:[2,1]},{label:"Big right",value:"bigRight",weights:[1,2]},{label:"Bigger left",value:"biggerLeft",weights:[3,1]},{label:"Bigger right",value:"biggerRight",weights:[1,3]}],Vr="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",o0={equal:Vr,bigLeft:`${Vr} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${Vr} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${Vr} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${Vr} [&>*:last-child]:min-[800px]:grow-[3]`};function LW(e){return typeof e=="string"?o0[e]??"":""}var Gm="Columns on phone",Ai=1,Um=3,t0={2:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px))/2)]",3:"max-[800px]:flex-wrap [&>*]:max-[800px]:min-w-0 [&>*]:max-[800px]:basis-[calc((100%_-_var(--sf-gap-len,0px)_*_2)/3)]"};function OW(e){let o=Number(e);return t0[o]??"max-[800px]:flex-col"}var $m="Block spacing",Bi=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],r0="sf-box-gap-only";function RW(e){return e==="gap"?r0:""}var a0=["solid","dashed","dotted"],n0=["top","right","bottom","left"],BW="sf-section-border",_W="sf-section-border-self",l0=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,qm=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(20,Math.max(0,Math.round(e)))}px`:void 0;function jm(e,{phone:o=!1}={}){if(!e||typeof e!="object")return;let t=o?"-phone":"",r={};for(let a of n0){let n=qm(e[a])??qm(e.width);n!==void 0&&(r[`--sf-border-${a}-width${t}`]=n)}return typeof e.style=="string"&&a0.includes(e.style)&&(r[`--sf-border-style${t}`]=e.style),typeof e.color=="string"&&l0.test(e.color)&&(r[`--sf-border-color${t}`]=e.color.toLowerCase()),Object.keys(r).length?r:void 0}function DW(e,o){let t=jm(e),r=jm(o,{phone:!0});return t||r?{...t,...r}:void 0}var Ym="sf.gapContainer",et={min:-32,max:64,step:2},Xm={Grid:{sm:12,md:24,lg:40},Flex:{sm:12,md:24,lg:40},FooterGroup:{sm:8,md:16,lg:32},HeroGroup:null,Events:null,GalleryB:null,ProductGrid:null},Xt={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},s0=new Set(["Events","GalleryB"]);function Yr(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=et.min)return o;if(typeof o=="string"){let r=Xm[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:Xt[e]}var i0="sf-gap-overlap",f0="--sf-gap-overlap",Zm="--sf-block-gap",c0="--sf-block-gap-rem",Tt={min:0,max:et.max,step:et.step};function d0(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Tt.min),Tt.max);return o-o%Tt.step}function MW(e){let o=d0(e);return o===null?{}:{[Zm]:`${o}px`,[c0]:`${o/16}rem`}}var Km="sf-gap-zone",Vm="--sf-gap-len";function _i(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=et.min?!0:typeof o=="string"&&typeof Xm[e]?.[o]=="number"}var u0={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function HW(e,o,t){if(!_i(e,o)){let a=`${Xt[e]}px`,n=s0.has(e)?`var(--sf-card-gap, ${a})`:a;return{className:` ${Km}`,style:{[Vm]:`var(${Zm}, ${n})`}}}let r=Yr(e,o);return r>=0?{className:` ${Km}`,style:{[Vm]:`${r}px`}}:{className:` ${i0} ${u0[t]}`,style:{gap:"0px",[f0]:`${-r/2}px`}}}var Qm=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],Jm={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},kn="var(--section-bg)",Tn="inherit";function zW(e,o){return e===Tn?kn:e===void 0?o:En(e)}var p0=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function En(e){return e.replace(p0,"var(--site-$1")}function ex(e,o){return e===Tn?!0:e===void 0&&o===kn}var ox=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],tx={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},Zt="var(--wheel-stage)",Fn="transparent",Xr="inherit";function $W(e,o){return En(Di(e,o))}function Di(e,o){return e===Xr?Zt:e==null?o:e===!0?Zt:e===!1?Fn:e}function qW(e){return typeof e=="string"&&e!==Xr?En(e):Zt}function jW(e){return e!==Fn&&e!=="none"&&e!==""}function rx(e,o){return e===Xr||e===!0?!0:e==null?o===Zt:!1}var ax="inherit",Pn="fixed",nx=e=>typeof e!="number"&&e!==Pn,m0="var(--sf-heading-max, 9999px)";function VW(e,o,t,r){if(typeof e=="number")return`${e}px`;if(e===Pn)return o;let a=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${a}, ${m0})`:a}var Se={min:1e3,max:2e3,step:50,default:1600};function x0(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var lx="--sf-site-width",Ni=`var(${lx},${Se.default}px)`,XW=`max-w-[${Ni}]`,ZW=`max-w-[${Se.default}px]`;function I0(e){return typeof e!="number"||!Number.isFinite(e)?Se.default:Math.round(Math.min(Math.max(e,Se.min),Se.max))}function QW(e){let o=I0(e);return o===Se.default?{}:{[lx]:`${o}px`}}var Co={min:0,max:80,step:4,default:40},sx="--sf-site-gutter",$e=`var(${sx},${Co.default}px)`,h0=`px-[${$e}]`;var ot={md:`min(24px,${$e})`,sm:`min(20px,${$e})`,frame:`min(24px,${$e})`,tabs:`min(16px,${$e})`},JW=[[`max-[1100px]:px-[${ot.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${ot.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${ot.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${ot.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${ot.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${ot.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${ot.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${ot.sm}]`,"max-[640px]:px-5"],[`min-[800px]:px-[${$e}]`,"min-[800px]:px-10"],[`max-[720px]:px-[min(24px,${$e})]`,"max-[720px]:px-6"],[`max-[800px]:-mx-[min(20px,${$e})]`,"max-[800px]:-mx-5"],[`max-[720px]:-mx-[min(20px,${$e})]`,"max-[720px]:-mx-5"],[`-mx-[${$e}]`,"-mx-10"],[h0,"px-10"]];var ez="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]",oz="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]";function g0(e){return typeof e!="number"||!Number.isFinite(e)?Co.default:Math.round(Math.min(Math.max(e,Co.min),Co.max))}function tz(e){let o=g0(e);return o===Co.default?{}:{[sx]:`${o}px`}}var Ln=Ni,rz=`max-w-[${Ln}]`,az=`max-w-[min(var(--sf-page-cap,${Se.default}px),${Se.default}px)]`,ix="--sf-hero-cap",b0=`var(${ix},none)`,nz=`max-w-[${b0}]`,Mi="--sf-hero-bleed-m",Hi="--sf-hero-bleed-w",lz=`var(${Mi},calc(50% - 50vw))`,sz=`var(${Hi},100vw)`,iz=`mx-[var(${Mi},calc(50%_-_50vw))]`,fz=`w-[var(${Hi},100vw)]`,Wi="--sf-hero-chrome-x",zi="--sf-hero-chrome-cap";function cz(e){return e===!0?{[ix]:Ln,[Mi]:"auto",[Hi]:"100%",[Wi]:"24px",[zi]:"none"}:{}}var Gi=`calc(${Ni} - ${$e}*2)`,dz=`max-w-[${Gi.replace(/ /g,"_")}]`;var y0="--sf-chrome-cap",S0=`var(${y0},${Gi})`,uz="data-page-width";function pz(e){return e==="full"?"full":null}function mz(e){return e==="full"?null:x0(e==="content"?Gi:S0)}function xz(e){if(e==="full")return"full";if(e==="content")return"content"}var C0=["contained","page","full"],cx=["full","page"],Qt={full:"Full width",page:"Content width"},$i="inherit",v0=e=>typeof e=="string"&&C0.includes(e),dx=e=>e===$i;function Do(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:Se.default;return dx(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:v0(e.widthMode)?{mode:e.widthMode,pageWidth:t,inherited:!1}:e.contained===!0?{mode:"page",pageWidth:t,inherited:!1}:typeof e.fullWidth=="boolean"?{mode:e.fullWidth?"full":"page",pageWidth:t,inherited:!1}:e.contained===!1?{mode:"full",pageWidth:t,inherited:!1}:{mode:o,pageWidth:t,inherited:o==="full"}}function qi(e){return Do(e,"page").mode==="full"}var Zr="site",ux={Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Split:"both",Breadcrumb:"both",Collections:"both",Events:"both",BrandStrip:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function w0(e){return Object.prototype.hasOwnProperty.call(ux,e)}var Ui=e=>e==="full"||e==="content",k0=e=>typeof e=="number"&&Number.isFinite(e)&&e>0,fx=({widthMode:e,fullWidth:o,pageWidth:t})=>({widthMode:e,fullWidth:o,pageWidth:t});function T0(e,o){let t={background:null,content:null,contentMax:null};switch(e){case"hero":return dx(o.widthMode)||o.widthMode!=="full"?t:{...t,background:"full"};case"scrollOver":return o.fullWidth===!1?t:{...t,content:"full"};case"background":return Do(o,"full").mode==="full"?t:{...t,background:"content"};case"both":return Do(o,"full").mode==="full"?{...t,content:"full"}:{...t,background:"content"};case"contained":return Do(o,"page").mode==="full"?{...t,content:"full"}:{...t,background:"content"};case"contentColumn":return Do(fx(o),"page").mode==="full"?{...t,content:"full"}:t;case"contentFull":return Do(fx(o),"full").mode==="full"?{...t,content:"full"}:t;case"productGrid":{let r=Do(o,"full");return r.mode==="full"?{...t,content:"full"}:{background:"content",content:"content",contentMax:r.pageWidth}}case"capped":return{...t,background:"content"}}}function ji(e,o){if(!w0(e))return{background:null,content:null,contentMax:null};let t=ux[e],r=o,a=T0(t,r),n=r.backgroundWidth===Zr?null:Ui(r.backgroundWidth)?r.backgroundWidth:a.background;return r.contentWidth===Zr?{background:n,content:null,contentMax:null}:Ui(r.contentWidth)?{background:n,content:r.contentWidth,contentMax:r.contentWidth==="content"&&k0(r.contentMax)?r.contentMax:null}:{background:n,content:a.content,contentMax:a.contentMax}}var px="siteWidths";function On(e){return Ui(e)?e:null}function mx(e,o){return{[px]:{background:On(e),content:On(o)}}}function gz(e){let o=e.puck?.metadata?.[px];return{background:On(o?.background),content:On(o?.content)}}import{jsx as E0}from"react/jsx-runtime";import{createContext as F0,useContext as P0}from"react";var L0=2,O0=L0+1,xx=F0(2);function Ix({tier:e,children:o}){return E0(xx.Provider,{value:e,children:o})}function Ki(e){let o=P0(xx);return O0+Math.max(0,e-o)}import{withStyleKind as OE}from"efficient-easel/style-clipboard";import{TEXT_CONTROL_KINDS as AG,SCALAR_TEXT_CONTROLS as BG}from"efficient-easel/draw";function at(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!Ho(t)&&OE(t,`section:${o}`);return e}function Nx(){return null}function Zi(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return I(Nx,{},e)}function RE(e){return e.type===Nx}function vo(e){return RE(e)?void 0:e}function Ft(e,o){return l("{value} from {from}",{value:e,from:o})}function AE(){let{appState:e}=Jr(a=>a),o=e.data.root?.props??{},{mode:t,pageWidth:r}=Do(o,"full");return t==="page"?Ft(`${r}px`,l("the page")):t==="contained"?Ft(l("Contained"),l("the page")):Ft(l("Full"),l("the page"))}function BE(){let{blockGap:e}=$();return e===null?l("this container's own spacing"):Ft(`${e}px`,l("Site styles"))}function _E({inherited:e,onReset:o,label:t}){return I(qe,{words:V()?.panel,label:l(t),changed:!e,detail:BE(),onReset:o})}function DE({inherited:e,onReset:o,label:t}){return I(qe,{words:V()?.panel,label:l(t),changed:!e,detail:AE(),onReset:o})}function er({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:f,hidden:u}=rt(e),p=Yi(null),m=Yi(null),x=w=>o(s?{text:w,hidden:u}:w),h=()=>o({text:f,hidden:!u}),b=s&&u,C=A0(),k=a?GE(a)?I("span",{className:"sf-hint-keep sf-hint-while-typing",children:l(a)}):I(sp,{children:l(a)}):void 0,v=u?l("Show {label} on the slide",{label:l(t)}):l("Hide {label} on the slide",{label:l(t)});return I(ne,{label:l(t),icon:I(uE,{}),htmlFor:C,className:b?"is-hidden":void 0,hint:k,action:s?I(Dx,{content:v,children:I("button",{type:"button",className:"sf-field-eye","aria-pressed":u,"aria-label":v,onClick:h,children:u?I(hx,{name:"eye-off",size:14}):I(hx,{name:"eye",size:14})})}):void 0,children:Pt("div",{className:"sf-copybox",children:[i&&I(ai,{target:n?m:p,value:f,onChange:x}),n?I("textarea",{id:C,ref:m,value:f,placeholder:r===void 0?void 0:l(r),onChange:w=>x(w.target.value)}):I("input",{id:C,ref:p,type:"text",value:f,placeholder:r===void 0?void 0:l(r),onChange:w=>x(w.target.value)})]})})}function FG(e,o){return{...e,[N0]:o}}function PG(e){let o=e[No];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[No]:{...o,offPage:!0}}}function Bn(e){return!e||typeof e!="object"?!1:e[No]?.offPage===!0}var Mx="sfPanelOnly";function LG(e){if(!e[No])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Mx]:!0}}function Hx(e){return!!e&&typeof e=="object"&&e[Mx]===!0}function OG(e){let o=e[No];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[No]:{...o,identifier:!0}}}function _G(e,o){if(!e[No])throw new Error("inOwnBox: the field holds no authored text");let{[Bp]:t,...r}=e;return{...r,[li]:!0,render:o}}var NE=new Set(LE),or=(e,o)=>{let t={...o,[No]:e};if(!NE.has(e.control))return t;let r=o.render;return{...Xo(t,"authored-copy"),render:a=>I(Mp,{name:a.name,children:r(a)})}},DG="Everything else on this block comes from the linked post. Unlink it to edit by hand.",ME={field:"source.slug",set:!0},NG={not:ME},HE="Select a word, then press the highlighter.",WE="A short name so a link can jump straight to this section, like yoursite.com/page#about.",zE=new Set([HE]),GE=e=>zE.has(e);function MG(e,o,t){return or({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(er,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function HG(e,o,t){return or({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(er,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function UE(e,o,t){return or({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(er,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function WG(e,o,t){return or({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(er,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function zG(e){return{type:"custom",[_0]:{label:e},render:({value:o,onChange:t})=>I(wm,{value:B0(o),onChange:t,label:e})}}function GG(e,o,t){return or({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(er,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var Wx={Design:M0,Animation:wx};function zx(e,o){return e.includes("Design")?o!=="Design":null}function $E({label:e}){return I(xE,{title:l(e),level:Ki(1)})}function qE({level:e,label:o}){return e===1?I($E,{label:o}):I(tr,{label:o})}function Gx(e,o){return{type:"custom",[Xi]:{label:e,level:o},render:()=>I(qE,{level:o,label:e})}}function Re(e){return Gx(e,2)}function UG(e){return{type:"custom",render:()=>I(jE,{text:e})}}function jE({text:e}){return I("p",{className:"sf-note",children:l(e)})}function $G(e){return Gx(e,1)}function qG(e){return Ho(e)!==null&&e?.tabs!==void 0}var gx=new Map;function _n(e,o){let t=`${e}\0${o?o.join(""):""}`,r=gx.get(t)??{type:"custom",tabs:o,[Xi]:{label:e,level:1},bucket:e,marker:!0,render:()=>I(Mo,{})};return gx.set(t,r),r}var bx=new Map;function Qi(e){let o=bx.get(e)??{type:"custom",[Xi]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>I(Mo,{})};return bx.set(e,o),o}function KE(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function Ux(e,o){return KE(e)===o?e:{...e,marker:!0,fold:o,render:()=>I(Mo,{})}}function $x(e){let o=e;if(o.marker===!0&&o.fold===void 0)return e;let{fold:t,...r}=e;return{...r,marker:!0,render:()=>I(Mo,{})}}function tr({label:e}){return I(IE,{title:l(e),level:Ki(2)})}function qx({swatches:e,current:o,onPick:t,names:r}){let a=e.find(i=>i.toLowerCase()===o.toLowerCase()),n=a?r?.[a]:void 0,s=n?l(n):o;return Pt("div",{className:"sf-swatches",children:[e.map(i=>{let f=r?.[i]?l(r[i]):i;return I(Dx,{content:f,children:I("button",{type:"button","aria-pressed":o.toLowerCase()===i.toLowerCase(),className:`sf-swatch ${o.toLowerCase()===i.toLowerCase()?"is-active":""}`,style:{background:i},onClick:()=>t(i),"aria-label":f})},i)}),I("span",{className:"sf-swatch-hex",children:s})]})}function jG(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=ex(t,o);return I(ne,{label:l(e),icon:I(G0,{}),changed:!a,action:I(qe,{words:V()?.panel,label:l(e),changed:!a,detail:l("the theme's section background"),onReset:()=>r(Tn)}),children:qx({swatches:Qm,current:a?kn:t??o??"",onPick:r,names:Jm})})}}}function VE(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=rx(a,o);return I(ne,{label:l(e),icon:I(oE,{}),changed:!n,action:I(qe,{words:V()?.panel,label:l(e),changed:!n,detail:l("the theme's image stage"),onReset:()=>r(Xr)}),children:qx({swatches:ox,current:n?Zt:Di(a,o),onPick:r,names:tx})})}}}function Dn(e=t=>t,o){return at({_gSectionTheme:Re(dp),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>I(cm,{value:e(t),onChange:r,followLabel:o})}})}function je({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:i,ariaLabel:f,disabled:u=!1}){let p=i!==void 0&&Number.isFinite(i)&&i>=e&&i<=o;return I("div",{className:p?"sf-slider has-notch":"sf-slider",style:p?{"--sf-notch":(i-e)/(o-e)}:void 0,children:I(PE,{min:e,max:o,step:t,value:r,suffix:n||void 0,showInput:s,label:f===void 0?void 0:l(f),disabled:u,size:"sm",className:"sf-slider-track",onChange:m=>{m!==null&&m!==r&&a(m)}})})}function Jt(e,o,t,r,a,n,s="",i){return{type:"custom",render:f=>I(ne,{label:l(e),icon:vo(o),action:i?i("storedValue"in f?f.storedValue:f.value,f.onChange):void 0,children:je({min:t,max:r,step:a,value:typeof f.value=="number"?f.value:n,suffix:s,ariaLabel:e,onChange:f.onChange})})}}function jx(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:i,unsetMark:f,icon:u}=o;return{type:"custom",render:({value:p,onChange:m})=>{let x=typeof p=="number"?p:null,h=x===null;return I(ne,{label:l(e),icon:u?vo(u):void 0,value:h?f||n===void 0?void 0:l(n):`${x}px`,changed:!h,action:f?Cx(f,{changed:!h,onReset:()=>m(null)}):I(qe,{words:V()?.panel,label:l(e),changed:!h,onReset:()=>m(null)}),hint:typeof s=="string"?l(s):s,children:i?i({min:t,max:r,step:a,px:x,label:e,onChange:m}):je({min:t,max:r,step:a,value:x??t,readout:!1,ariaLabel:e,onChange:m})})}}}function KG(e){let o=Jt("Gap",I(Tx,{}),et.min,et.max,et.step,Xt[e],"px",(t,r)=>I(_E,{inherited:!_i(e,t),onReset:()=>r(void 0),label:"Gap"}));return{type:"custom",[Ym]:e,render:t=>o.render({...t,value:Yr(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:r=>t.onChange(r)})}}var Nn="Corners";function Ji(e){return{type:"custom",render:({value:o,onChange:t})=>{let r=typeof o=="number"&&Number.isFinite(o)?o:null,a=r!==null;return I(ne,{label:l(Nn),icon:I(K0,{}),changed:a,action:Cx(e.mark,{changed:a,onReset:()=>t(null)}),hint:e.hint,children:I(YE,{tier:e,px:r,onRadius:t})})}}}function Mn(e){let o=null;try{o=vx()}catch{o=null}return[o?.values?.[e],t=>o?.onChange(e,t)]}function YE({tier:e,px:o,onRadius:t}){let r=e.useFollowed(),a=e.useClosedReason?e.useClosedReason():null,[n,s]=Mn(e.sidesKey),i=Oo(n)??[...ht];return I(EE,{label:l(Nn),value:i,corners:Gu,onChange:f=>{let u=Oo(f)??[];s(u.length===ht.length?null:u)},radius:o,onRadiusChange:t,radiusMin:oo,radiusMax:pt,radiusStep:e.step??1,radiusPlaceholder:String(r),disabled:a!==null,disabledReason:a??void 0})}function Kx(){return Xo({type:"custom",render:()=>I(Bo,{})},"always")}function XE({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=$(),a=typeof r=="number"?`${r}px`:l("not set");return I(qe,{words:V()?.panel,label:l(e),changed:o,detail:r==null?l("the built-in corners"):Ft(a,l("Site styles")),onReset:t})}function ZE(){let{cornerRadiusPx:e}=$();return typeof e=="number"?e:oo}function QE(){return Ji({sidesKey:"sectionCornerSides",useFollowed:ZE,useClosedReason:()=>Yx()?l(Vx):null,mark:I(XE,{label:Nn}),hint:I(JE,{})})}var Vx="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function Yx(){return qi(wo())}function JE(){return I(Mo,{children:Yx()?Vx:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function Hn(){return at({_gShape:Re("Shape"),sectionCorners:QE(),sectionCornerSides:Kx(),sectionBorder:yx("desktop"),sectionBorderPhone:yx("mobile")})}var eF=()=>({width:l("Border width"),sides:{top:l("Border top"),right:l("Border right"),bottom:l("Border bottom"),left:l("Border left")},style:l("Border style"),styles:{solid:l("Solid"),dashed:l("Dashed"),dotted:l("Dotted")},color:l("Border color"),unit:"px"});function oF(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function tF(){let e;try{let o=Qe($().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||tu.line}function rF({value:e,onChange:o,tier:t}){let[r]=Mn("sectionBorder"),a=tF(),n=e&&typeof e=="object"?e:{},s=t==="mobile"?r&&typeof r=="object"?r:{}:{},[i,f]=An(()=>CE(n,s)),u=eF();return I(ne,{label:l("Border"),icon:I(U0,{}),action:I(Ax,{each:i,label:l("Each side"),onChange:f}),children:I(hE,{label:l("Border"),value:n,each:i,onChange:p=>o(oF(p)),placeholder:{sides:SE(s),style:s.style??"solid",color:s.color||a},presets:[a],words:u,max:20})})}function yx(e){return we(e,{type:"custom",render:({value:o,onChange:t})=>I(rF,{value:o,onChange:t,tier:e})})}function Wn(){return{_gMotion:Re("Motion"),sectionAnimation:tf("Entrance",I(wx,{}),[...pp],Xs)}}function ef(){let e=null;try{let{appState:o,selectedItem:t}=Jr(a=>a),r=t?.props?.id?String(t.props.id):void 0;e=r?Qs(o?.data,r):null}catch{e=null}return e!==null&&qi(e)}function Xx(e){let{cornerRadiusPx:o}=$(),t=ef(),r=typeof o=="number"?o:e,a=null;try{let{appState:s,selectedItem:i}=Jr(u=>u),f=i?.props?.id?String(i.props.id):void 0;a=f?Qs(s?.data,f):null}catch{a=null}if(t||!a)return r;let n=a.sectionCorners;return Ms(n)?n:r}function aF({label:e,changed:o=!1,onReset:t=()=>{}}){let r=ef(),a=Xx(oo),n=r?"Site":"Section";return I(qe,{words:V()?.panel,label:l(e),changed:o,detail:Ft(`${a}px`,r?l("Site styles"):l("the section")),onReset:t})}function nF(){return I(Mo,{children:ef()?l("The section is full width, so this card follows Site styles \u25B8 Basics \u25B8 Corners."):l("Follows the section's Corners until you set a number here.")})}function lF(){return Ji({sidesKey:"cardCornerSides",useFollowed:()=>Xx(oo),mark:I(aF,{label:Nn}),hint:I(nF,{})})}function sF(){return{type:"custom",render:()=>I(Yu,{})}}function VG(){return{_gShape:Re("Shape"),cardCorners:lF(),cardCornerSides:Kx(),cardCornersApplyAll:sF()}}function YG(){return tt("Justify",I(z0,{}),Li,Li[0].value)}function XG(){return tt("Item alignment",I(H0,{}),Wm,"stretch")}function ZG(){return tt(zm,I(mE,{}),Oi,Oi[0].value)}function QG(){return{type:"custom",render:({value:e,onChange:o})=>{let t=wn.find(r=>r.value===e)??wn[0];return I(ne,{label:l(Ri),icon:I(kx,{}),value:l(t.label),children:I(_x,{className:"sf-gallery-layouts",label:l(Ri),value:t.value,onChange:o,options:wn.map(r=>({value:r.value,label:l(r.label),picture:I("span",{className:"sf-gallery-pic",children:iF(r.weights).map((a,n)=>I("i",{style:{gridColumn:`span ${a}`}},n))})}))})})}}}function iF(e){if(!e)return[3,4];let o=e.reduce((t,r)=>t+r,0);return e.map(t=>Math.round(t/o*12))}function JG(){return tt($m,I(Tx,{}),Bi,Bi[0].value)}function eU(){return Jt(Gm,I(lE,{}),Ai,Um,1,Ai)}function oU(e){let o=tf(_m,Zi("`Direction` names how a container's children run \u2014 a MODIFIER, not a thing. doc/naming.md N10.1 gives the idea a dash in its Glyph column; editor-shell's own `direction` meaning says the bare row is CORRECT and not an omission (SS seat, 2026-09-11)."),Nm(e),vn(e,void 0));return{type:"custom",render:t=>o.render({...t,value:vn(e,t.value),onChange:r=>t.onChange(r)})}}function tU(e,o,t,r,a,n){return{type:"custom",render:({value:s,onChange:i})=>I(ne,{label:l(e),icon:I(js,{noun:n}),action:I(qe,{words:V()?.panel,label:l(e),changed:!nx(s),detail:l("the Text style in Site styles"),onReset:()=>i(ax),defaultAction:{onPress:()=>i(Pn),title:l("Keep this section's own built-in size"),icon:I($0,{})}}),children:je({min:o,max:t,step:r,value:typeof s=="number"?s:a,suffix:"px",ariaLabel:e,onChange:i})})}}function rU(){return{_gCellWidth:Re("Cell width"),gridSpan:tt("Positions",I(kx,{}),[{label:"Auto",value:""},...Array.from({length:en},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function wo(){let e=null;try{e=Jr(o=>o).selectedItem}catch{e=null}return e?.props??{}}function fF({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let f=wo()[s],u=cn(void 0,f,i);return I(Mo,{children:je({min:e,max:o,step:t,value:cn(r,f,i),readout:!1,ariaLabel:a,notch:u,onChange:n})})}function cF({label:e,desktopKey:o,fallback:t,changed:r=!1,onReset:a=()=>{}}){let n=wo()[o],s=cn(void 0,n,t);return I(qe,{words:V()?.panel,label:l(e),changed:r,detail:l("{value} on desktop",{value:`${s}px`}),onReset:a})}function dF(e){return jx(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unsetLabel:"Follows Desktop",unsetMark:I(cF,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>I(fF,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}function aU(e){return{type:"custom",render:({value:o,onChange:t})=>I(pF,{...e,value:o,onChange:t})}}function uF({label:e,icon:o,options:t,value:r,resolved:a,restWord:n,onChange:s}){let i=t.some(f=>f.value===r);return I(ne,{label:l(e),icon:vo(o),action:I(qe,{words:V()?.panel,label:l(e),changed:i,detail:l("{value} on desktop",{value:l(n)}),onReset:()=>s(void 0)}),children:qn({options:t,value:i?r:a,onChange:f=>s(f),ariaLabel:e})})}function pF({label:e,icon:o,options:t,desktopKey:r,resolve:a,value:n,onChange:s}){let i=wo()[r],f=a(void 0,i),u=t.find(p=>p.value===f)?.label??"";return I(uF,{label:e,icon:o,options:t,value:n,resolved:f,restWord:u,onChange:s})}var mF={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},xF={Top:Ox,Bottom:Fx,Left:Px,Right:Lx},IF=e=>{let o=xF[e];return I(o,{})};function nU(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=k=>mF[k],n=k=>Jt(a("Top"),I(Ox,{}),lo.min,lo.max,lo.step,k,"px"),s=(k,v,w,g=lo)=>we("mobile",dF({label:a(k),icon:IF(k),desktopKey:v,min:g.min,max:g.max,step:g.step,fallback:w})),i=e.top??lo.min,f=e.bottom??lo.min,u="sectionPaddingLeft",p="sectionPaddingRight",m=e.sideBounds??lo,x=e.side??m.min,h=e.sidePhone??x,b=e.phone===!0,C=k=>b?we("desktop",k):k;return at({...r?{_gSpacing:Re("Padding")}:{},[o]:C(n(i)),...b?{[_o(o)]:s("Top",o,i)}:{},...e.only==="top"?{}:{[t]:C(Jt(a("Bottom"),I(Fx,{}),lo.min,lo.max,lo.step,f,"px")),...b?{[_o(t)]:s("Bottom",t,f)}:{}},...e.sides?{[u]:C(Jt(a("Left"),I(Px,{}),m.min,m.max,m.step,x,"px")),...b?{[_o(u)]:s("Left",u,h,m)}:{},[p]:C(Jt(a("Right"),I(Lx,{}),m.min,m.max,m.step,x,"px")),...b?{[_o(p)]:s("Right",p,h,m)}:{}}:{}})}var Qr=["top","right","bottom","left"],hF={top:"sectionPaddingTop",right:"sectionPaddingRight",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft"},Sx=e=>typeof e=="number"?e:null;function gF(e,o,t){let r={};for(let a of Qr)t[a]!==o[a]&&(r[e[a]]=t[a]??void 0);return r}function bF({tier:e,o}){let t=null;try{t=vx()}catch{t=null}let r=t?.values??{},a=e==="mobile"?o.phoneKeys:o.keys,n=Object.fromEntries(Qr.map(u=>[u,Sx(r[a[u]])])),s=Object.fromEntries(Qr.map(u=>[u,String(e==="mobile"?Sx(r[o.keys[u]])??o.fallback[u]:o.fallback[u])])),[i,f]=An(()=>yE(n,s));return I(ne,{label:l("Padding"),icon:I(nE,{}),action:I(Ax,{each:i,label:l("Each side"),onChange:f}),children:I(bE,{label:l("Padding"),each:i,value:n,placeholder:s,min:o.min,max:o.max,step:o.step,onChange:u=>{let p=gF(a,n,u);Object.keys(p).length&&t?.onChangeMany(p)},words:{sides:{top:l("Padding top"),right:l("Padding right"),bottom:l("Padding bottom"),left:l("Padding left")},vertical:l("Top and bottom"),horizontal:l("Left and right"),unit:"px"}})})}function zn(e={}){let o={...hF,...e.keys},t={keys:o,phoneKeys:Object.fromEntries(Qr.map(i=>[i,_o(o[i])])),fallback:{top:0,right:0,bottom:0,left:0,...e.fallback},min:e.min??0,max:e.max??200,step:e.step??4},r=e.phone!==!1,a=i=>{let f={type:"custom",render:()=>I(bF,{tier:i,o:t})};return r?we(i,f):f},n=()=>Xo({type:"custom",render:()=>I(Bo,{})},"always"),s=Qr.filter(i=>i!=="top");return at({...e.group===!1?{}:{_gSpacing:Re("Padding")},[t.keys.top]:a("desktop"),...r?{[t.phoneKeys.top]:a("mobile")}:{},...Object.fromEntries(s.map(i=>[t.keys[i],{...n(),reachedBy:t.keys.top}])),...r?Object.fromEntries(s.map(i=>[t.phoneKeys[i],we("mobile",n())])):{}})}var yF={contained:"Contained",page:"Page",full:"Full"},Rn="Width";function Gn(e,o=cx,t=!0){let r=o.map(a=>({label:Qt[a]??yF[a],value:a}));return at({...t?{_gWidth:Re(Rn)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>I(ne,{label:l(Rn),icon:I(pE,{}),action:t?I(DE,{inherited:n?.inherited??!1,onReset:()=>a($i),label:Rn}):void 0,children:qn({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:Rn})})}})}function Un(){let e=r=>({type:"custom",render:({value:a,onChange:n})=>I(ne,{label:Yt,icon:vo(I(tE,{})),action:r?r(n):void 0,children:qn({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(a)?a:"auto",onChange:n,ariaLabel:Yt})})}),o=()=>({type:"custom",render:({value:r,onChange:a,field:n})=>{let s=n?.unit==="%"?"%":"px",i=s==="%"?Ti:ki;return I("div",{className:"sf-field",children:je({min:i.min,max:i.max,step:i.step,value:typeof r=="number"?r:i.fallback,suffix:s,ariaLabel:Yt,onChange:a})})}}),t=()=>tf("Unit",I(Ex,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return at({_gHeight:Re(Yt),sectionHeightMode:we("desktop",e()),sectionHeightValue:we("desktop",o()),sectionHeightUnit:we("desktop",t()),sectionHeightModePhone:we("mobile",e(r=>I(SF,{onClear:()=>r(void 0)}))),sectionHeightValuePhone:we("mobile",o()),sectionHeightUnitPhone:we("mobile",t())})}function SF({onClear:e}){let o=wo(),t=Ei(o),r=Sn(o),a=l("{value} on desktop",{value:r.mode==="auto"?l("Auto"):`${r.value}${r.unit}`});return I(qe,{words:V()?.panel,label:l(Yt),changed:t,detail:a,onReset:e})}function of(){let e=t=>({type:"custom",render:({value:r,onChange:a,id:n,name:s})=>I(CF,{value:r,onChange:a,labelId:`${n??s??"stickTop"}-label`,phone:t})}),o=()=>({type:"custom",render:({value:t,onChange:r})=>I("div",{className:"sf-field",children:je({min:Jo.min,max:Jo.max,step:Jo.step,value:typeof t=="number"?t:Jo.fallback,suffix:"px",ariaLabel:l("Distance from top"),onChange:r})})});return{_gStick:Re(Cn),stickTop:we("desktop",e(!1)),stickTopDistance:we("desktop",o()),stickTopPhone:we("mobile",e(!0)),stickTopDistancePhone:we("mobile",o())}}function CF({value:e,onChange:o,labelId:t,phone:r}){let a=wo(),n=Pi(a),s=r?n.phone:e===!0;return I(ne,{label:l(Cn),labelId:t,icon:vo(I(fE,{})),action:Pt(Mo,{children:[r?I(qe,{words:V()?.panel,label:l(Cn),changed:Fi(a),detail:l("{value} on desktop",{value:n.desktop?`${n.desktopDistance}px`:l("Off")}),onReset:()=>o(void 0)}):null,I(Bx,{checked:s,onChange:o,ariaLabelledBy:t})]})})}function $n(){return{_gAnchor:Re("Anchor"),anchor:UE("Anchor name","e.g. about",WE)}}function lU(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=`${n??s??e}-datetime`,f=Date.parse(typeof r=="string"?r:"");return I(ne,{label:l(e),icon:o,htmlFor:i,hint:t===void 0?void 0:l(t),children:I(FE,{id:i,value:Number.isFinite(f)?new Date(f):null,onChange:u=>a(u?u.toISOString():"")})})}}}function Et(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=typeof r=="boolean"?r:o,f=`${n??s??e}-label`;return I(ne,{label:l(e),labelId:f,icon:t,action:I(Bx,{checked:i,onChange:a,ariaLabelledBy:f})})}}}function sU(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return I(ne,{label:l("Background"),icon:I(Rx,{}),htmlFor:a,action:I(to,{id:a,label:"Background",value:Ks(e),onChange:o})})}}}var iU={follows:"fill"},fU={follows:"ink"};function cU(e,o,t){if(typeof o!="string"){let r=o.follows;return{type:"custom",render:({value:a,onChange:n})=>I(vF,{label:e,part:r,icon:t,value:a,onChange:n})}}return{type:"custom",render:({value:r,onChange:a})=>I(ne,{label:l(e),icon:t,action:to({value:r||o,onChange:a,label:e})})}}function vF({label:e,part:o,icon:t,value:r,onChange:a}){let n=su($().theme),s=o==="fill"?n.fill:n.ink;return I(sn,{label:l(e),icon:t,value:r||"",inherited:s,resetTo:Ft(s.toUpperCase(),l("Site styles")),onChange:a,onReset:()=>a("")})}var wF=[{value:"0% 0%",label:"Top left"},{value:"50% 0%",label:"Top"},{value:"100% 0%",label:"Top right"},{value:"0% 50%",label:"Left"},{value:"50% 50%",label:"Center"},{value:"100% 50%",label:"Right"},{value:"0% 100%",label:"Bottom left"},{value:"50% 100%",label:"Bottom"},{value:"100% 100%",label:"Bottom right"}];function Zx({label:e,value:o,onChange:t,points:r=wF}){let a=r.map(n=>({...n,label:l(n.label),...n.title?{title:l(n.title)}:null}));return I(TE,{label:l(e),value:o,points:a,onChange:t})}function dU(){return Xo({type:"custom",render:()=>I(Bo,{})},"always")}var kF=Us([]);function uU(e,{stacking:o,fallback:t=on}){return{type:"custom",render:({value:r,onChange:a})=>{let n=ho.includes(r)?r:t;return o?I(TF,{label:e,value:n,onChange:a}):Qx({label:e,value:n,onChange:a,points:kF})}}}function TF({label:e,value:o,onChange:t}){let{appState:r,selectedItem:a}=Jr(i=>i),n=a?.props?.id?String(a.props.id):void 0,s=n?qs(r?.data,n):[];return Qx({label:e,value:o,onChange:t,points:Us(s,n)})}function Qx({label:e,value:o,onChange:t,points:r}){let a=r.find(n=>n.disabled);return I(ne,{label:l(e),icon:I(sE,{}),hint:a?.title?l(a.title):void 0,children:Zx({label:e,value:gt(o),onChange:t,points:r})})}var pU={top:I(Z0,{}),right:I(X0,{}),bottom:I(V0,{}),left:I(Y0,{})};function mU(e,o,t,r,a,n){let s=p=>o.find(m=>m.value===p),i=p=>({value:p,label:"",disabled:!0,title:r}),f=p=>{let m=o.find(h=>h.cell===p);if(!m)return i(`missing-${p}`);let x=n?.[p];return x?{value:m.value,label:m.label,icon:x}:{value:m.value,label:m.label}},u=[i("corner-top-left"),f("top"),i("corner-top-right"),f("left"),i("centre"),f("right"),i("corner-bottom-left"),f("bottom"),i("corner-bottom-right")];return{type:"custom",render:({value:p,onChange:m})=>{let x=o.some(h=>h.value===p)?p:t;return I(ne,{label:l(e),icon:a,value:s(x)?.label?l(s(x).label):"",children:Zx({label:e,value:x,onChange:m,points:u})})}}}var EF="\0note";function tt(e,o,t,r,a){return{type:"custom",options:t,fallback:r,...a?{note:a}:{},render:({value:n,onChange:s,field:i})=>{let f=i.options??t,u=i.fallback??r,p=f.some(m=>m.value===n)?n:u;return I(ne,{label:l(e),icon:vo(o),children:I(vE,{value:p,ariaLabel:l(e),onChange:s,options:[...a?[{label:l(a),value:EF,disabled:!0}]:[],...f.map(m=>({label:l(m.label),value:m.value}))]})})}}}function xU(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>I(Vp,{label:e,options:(n.options??o).map(s=>({...s,label:l(s.label)})),value:Array.isArray(r)?r:[],onChange:a,...t?{emptyLabel:l(t)}:{}})}}function IU(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return I(e,{...a})}}}function qn({options:e,value:o,onChange:t,ariaLabel:r,disabled:a=!1}){return I(gE,{options:e.map(n=>n.picture?{id:n.value,label:n.picture,title:l(n.title??n.label)}:{id:n.value,label:l(n.label),title:n.title===void 0?void 0:l(n.title)}),value:o,onChange:t,ariaLabel:l(r),disabled:a})}var hU=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function tf(e,o,t,r){let a=t.map(n=>typeof n=="string"?{label:n,value:n}:n);return{type:"custom",render:({value:n,onChange:s,field:i})=>I(ne,{label:l(e),icon:vo(o),children:qn({options:a,value:a.some(f=>f.value===n)?n:n||i?.currentValue||r,onChange:s,ariaLabel:e})})}}function gU(e,o,t,r={}){return{type:"custom",[D0]:!0,render:({value:a,onChange:n})=>I(jp,{value:a||"",onChange:n,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen})}}function bU({value:e,onChange:o,label:t}){let r=e||{},a=!!r.pending,n=a?"var(--fg-dim, #888)":r.ok?"#1d9e75":"#d85a30",s=(i,f)=>o({...r,[i]:f===""?void 0:Number(f)});return Pt(ne,{label:l(t),icon:I(Vi,{}),children:[I("button",{type:"button",disabled:a,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"8px 10px",fontSize:13,cursor:a?"default":"pointer",opacity:a?.6:1,border:"1px solid var(--border-strong, #ccc)",borderRadius:6,background:"transparent",color:"inherit"},children:a?l("Finding\u2026"):l("Find coordinates")}),r.status&&I("div",{style:{marginTop:6,fontSize:12,lineHeight:1.4,color:n},children:l(r.status)}),I("div",{style:{marginTop:6,fontSize:11,color:"var(--fg-dim, #999)"},children:l("Coordinates from OpenStreetMap")}),I("button",{type:"button",onClick:()=>o({...r,manual:!r.manual}),style:{marginTop:8,padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent, #2563eb)",cursor:"pointer",textDecoration:"underline"},children:r.manual?l("Hide manual coordinates"):l("Enter coordinates manually")}),r.manual&&Pt("div",{style:{marginTop:8,display:"grid",gap:8},children:[I(ne,{label:l("Latitude"),icon:I(Vi,{}),children:I("input",{type:"number",step:"any",placeholder:l("e.g. {example}",{example:"34.0990198"}),value:typeof r.lat=="number"?r.lat:"",onChange:i=>s("lat",i.target.value)})}),I(ne,{label:l("Longitude"),icon:I(Vi,{}),children:I("input",{type:"number",step:"any",placeholder:l("e.g. {example}",{example:"-117.9842833"}),value:typeof r.lng=="number"?r.lng:"",onChange:i=>s("lng",i.target.value)})})]})]})}function FF(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function PF(e,o,t){let r=e.map(a=>({text:a?.text??""}));return o===null||o<0||o>=e.length?r:r.map((a,n)=>n===o?{text:t}:a)}function LF(e,o,t){if(t===null||t>=o.length)return null;for(let r=0;r<t;r+=1)if(e[r]!==o[r])return null;return e[t]!==o[t]&&o.includes(e[t])||e[t]!==o[t]&&o.length!==e.length?null:t}var rf={label:"Ticker items",icon:I(aE,{})};function yU(e,o,t,r){return{type:"custom",[No]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},render:({value:a,onChange:n})=>I(af,{label:e,icon:vo(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function af({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=Yi(null),[i,f]=An(null),u=m=>m.map(x=>({text:x?.text??""})),p=m=>{let x=LF(t,m,i);x===null&&(s.current=null),f(x),a(u(m))};return I(wE,{label:l(e),icon:o,noun:l("item"),items:t,onChange:p,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?I(ai,{target:s,value:FF(t,i),onChange:m=>a(PF(t,i??-1,m)),disabled:i===null,label:i===null?l("Formatting \u2014 click a row first"):l("Formatting \u2014 row {n}",{n:i+1})}):void 0,renderRow:(m,x,h)=>I("input",{type:"text",className:n&&i===x?"sf-list-marking":void 0,value:m?.text??"",placeholder:l(r),"aria-label":l("{label} {n}",{label:l(e),n:x+1}),onChange:b=>h({text:b.target.value}),onFocus:b=>{s.current=b.currentTarget,f(x)}})})}function Jx(e,o){let t=`${e.label} \u2014 row ${o+1}`;return or({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>I(er,{value:r,onChange:a,label:l("{label} \u2014 row {n}",{label:l(e.label),n:o+1}),placeholder:e.placeholder,hideable:!1,markup:e.rendering==="markup"})})}function eI(e){return{_gCards:Re("Cards"),coverIndex:tt("Cover image",I(rE,{}),Wp,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:VE("Image background",Fn),cardImage:RF(),spinOnHover:Et("Rotate on hover",e?.spinDefault??!0,I(cE,{}))}}function oI(){return{outline:tt("Card outline",I(dE,{}),ui,ci),indexBadge:tt("Card number",I(Ex,{}),di,fi),showBadge:Et("Product badge",!0,I(js,{noun:"tag"}))}}function tI(e){let o=e&&"bottomDefault"in e?e.bottomDefault:!0,t=e&&"defaults"in e?e.defaults:{showCardSizes:o,showCardBuy:o,showCardPage:o};return{_gShowOnCard:Re("Show on a card"),showCardPrice:Et("Price",!0,I(Q0,{})),showCardFinishes:Et("Finish swatches",!0,I(J0,{})),showCardSizes:Et("Sizes",t.showCardSizes,I(iE,{})),showCardBuy:Et("Buy button",t.showCardBuy,I(q0,{})),showCardPage:Et("Page button",t.showCardPage,I(Rx,{}))}}function SU(e,o="display"){let t=_o(o);return{[o]:we("desktop",{type:"custom",render:({value:r,onChange:a})=>I(rI,{parts:e,changed:xp(r),shown:n=>ln(r,n),onPress:(n,s)=>a(hp(r,n,s)),onReset:()=>a(void 0)})}),[t]:we("mobile",{type:"custom",render:({value:r,onChange:a})=>I(OF,{parts:e,desktopKey:o,value:r,onChange:a})})}}function rI({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n}){let s=l("Display");return I(ne,{label:s,icon:I(W0,{}),changed:o,action:I(qe,{words:V()?.panel,label:s,changed:o,detail:n,onReset:a}),children:I(kE,{label:s,items:e.map(i=>({id:i.id,label:l(i.label),shown:t(i.id)})),onChange:r})})}function OF({parts:e,desktopKey:o,value:t,onChange:r}){let a=wo()[o];return I(rI,{parts:e,changed:Ip(t),shown:n=>Js(a,t,n),onPress:(n,s)=>r(gp(t,n,s)),onReset:()=>r(dn),detail:l("the same as Desktop")})}function RF(){return jx("Card image",{min:oo,max:pt,step:Xu,hint:"Rounds the picture. The card's own corner is in Site styles."})}function CU(){return Ji({sidesKey:"cornerSides",step:Zu,useFollowed:()=>oo,mark:I(AF,{label:Qu}),hint:l("Rounds the picture. Left alone it stays square.")})}function AF({label:e,changed:o=!1,onReset:t=()=>{}}){return I(qe,{words:V()?.panel,label:l(e),changed:o,onReset:t})}function vU(){return{type:"custom",render:({value:e,onChange:o})=>I(BF,{value:typeof e=="string"?e:"",onChange:o})}}function BF({value:e,onChange:o}){let[t,r]=An(null),a=Ws.filter(s=>t===null||Ro[s].across===t),n=e&&e in Ro?Ro[e]:null;return Pt(Mo,{children:[I(ne,{label:l("Photos in a row"),icon:I(j0,{}),children:Pt("div",{className:"sf-gallery-filter",children:[I("button",{type:"button","aria-pressed":t===null,onClick:()=>r(null),children:l("All")}),ep.map(s=>I("button",{type:"button","aria-pressed":t===s,onClick:()=>r(s),children:s},s))]})}),I(ne,{label:l("Layout"),icon:I(eE,{}),value:n?l(n.label):l("Not chosen"),hint:l("{n} of {total} layouts",{n:a.length,total:Ws.length}),children:I(_x,{className:"sf-gallery-layouts",label:l("Layout"),value:e,onChange:o,onClear:()=>o(""),options:a.map(s=>({value:s,label:l(Ro[s].label),picture:I("span",{className:"sf-gallery-pic",children:Ro[s].desktop.map(([i,f],u)=>I("i",{style:{gridColumn:`span ${i}`,gridRow:`span ${f}`}},u))})}))})})]})}import{jsx as jn,Fragment as _F,jsxs as aI}from"react/jsx-runtime";import{Button as nI,Dialog as DF}from"efficient-shell/ui";function NF(e){return xt("This site has {n} color theme of its own. Clearing takes them away and puts back the four the shop supplies.","This site has {n} color themes of its own. Clearing takes them away and puts back the four the shop supplies.",e)}function lI({count:e,onCancel:o,onConfirm:t}){return aI(DF,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:l("Clear this site\u2019s colors?"),footer:aI(_F,{children:[jn(nI,{variant:"secondary",onClick:o,children:l("Cancel")}),jn(nI,{variant:"danger",onClick:t,children:l("Clear colors")})]}),children:[jn("p",{children:NF(e)}),jn("p",{className:"mt-2 font-medium",children:l("This cannot be undone.")})]})}var UF=Zi("the row's whole content is an action; the gutter names a subject and this row has none \u2014 the button's label is the name GG, 2026-09-23"),$F="Reset color",qF={selected:0,themes:[]};function jF(e){e(qF)}function fI({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=Qe(e),[n,s]=iI(!1),i=zF(),[f,u]=iI(null),p=(v,w)=>{o({...a,themes:a.themes.map((g,y)=>y===v?w:g)})},m=Wt(a).accent,x=new Set(a.themes.map(v=>v.brandInk).filter(Boolean)),h=ru.filter(v=>!x.has(v)).map(v=>au(m,v)),b=[...a.themes,...h],C=v=>{if(v<a.themes.length)return o({...a,selected:v});let w=[...a.themes,b[v]];o({...a,themes:w,selected:w.length-1})},k=()=>{let v=[...a.themes,{...xo(a.themes[a.selected])}];o({...a,themes:v,selected:v.length-1}),u(v.length-1)};return sI(MF,{children:[r?null:rr(WF,{label:l($F),icon:vo(UF),labelId:"sf-theme-reset",action:rr(HF,{label:l("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&rr(lI,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),jF(o)}}),rr("div",{className:"sf-theme-list",role:"radiogroup","aria-label":l("Theme"),children:b.map((v,w)=>rr(mn,{index:w,colors:v,selected:w===a.selected,open:f===w&&w<a.themes.length,editable:w<a.themes.length,onPick:()=>C(w),onEdit:()=>u(g=>g===w?null:w),onChangeColors:g=>p(w,g)},w))}),sI("button",{type:"button",onClick:k,className:"sf-theme-add",children:[rr(GF,{size:12}),l("Add new theme")]})]})}import{jsx as Kn}from"react/jsx-runtime";import{SettingsDefaultReset as KF,SettingsField as VF}from"efficient-easel/panel";import{SquareIcon as YF}from"efficient-easel/icons";var XF="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",nf="Corners";function cI({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Kn(VF,{label:l(nf),icon:Kn(YF,{}),value:r?l("Default"):`${e}px`,changed:!r,action:Kn(KF,{words:V()?.panel,label:l(nf),changed:!r,detail:l("the built-in corners"),onReset:()=>o(null)}),hint:t?l(XF):void 0,children:Kn(je,{min:oo,max:pt,step:1,value:e??oo,readout:!1,ariaLabel:l(nf),onChange:o})})}import{jsx as ea}from"react/jsx-runtime";import{SettingsDefaultReset as ZF,SettingsField as QF,SettingsSegmented as JF}from"efficient-easel/panel";import{ShadowIcon as eP}from"efficient-easel/icons";var lf={none:"None",soft:"Soft",lifted:"Lifted"},oP="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.",tP={none:"none",soft:"0 1px 1px rgba(20, 20, 22, 0.10), 0 2px 4px -1px rgba(20, 20, 22, 0.14)",lifted:"0 1px 2px rgba(20, 20, 22, 0.10), 0 4px 7px -2px rgba(20, 20, 22, 0.30)"},rP={labelsPx:90.25,widestLabelPx:34.6};function dI({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??Ts;return ea(QF,{label:l("Card shadow"),icon:ea(eP,{}),value:l(lf[a]),changed:!r,action:ea(ZF,{words:V()?.panel,label:l("Card shadow"),changed:!r,detail:l(lf[Ts]),onReset:()=>o(null)}),hint:t?l(oP):void 0,children:ea(JF,{options:pu.map(n=>({id:n,label:l(lf[n]),icon:ea("span",{className:"sf-shadow-chip",style:{boxShadow:tP[n]}})})),value:a,ariaLabel:l("Card shadow"),fit:rP,onChange:o})})}import{jsx as uI}from"react/jsx-runtime";import{ShadowIcon as aP}from"efficient-easel/icons";var nP="Most useful on a dark theme, where a black shadow cannot be seen. Also used by the Lift hover, even with the card shadow off.";function pI({value:e,onChange:o,showHint:t=!0}){let r=e===null;return uI(sn,{label:l("Shadow color"),icon:uI(aP,{}),value:e??"",inherited:Fs,resetTo:Fs,onChange:o,onReset:()=>o(null),hint:t?l(nP):void 0})}import{jsx as Vn}from"react/jsx-runtime";import{SettingsDefaultReset as lP,SettingsField as sP}from"efficient-easel/panel";import{AlignSeparateIcon as iP}from"efficient-easel/icons";var fP="The space between the blocks inside a row, a grid or a box. Default means each one keeps the spacing it already has.",sf="Block gap",cP=Xt.Grid;function mI({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Vn(sP,{label:l(sf),labelId:"sf-block-gap",icon:Vn(iP,{}),value:r?l("Default"):`${e}px`,changed:!r,action:Vn(lP,{words:V()?.panel,label:l(sf),changed:!r,detail:l("each block's own spacing"),onReset:()=>o(null)}),hint:t?l(fP):void 0,children:Vn(je,{min:Tt.min,max:Tt.max,step:Tt.step,value:r?cP:e,readout:!1,ariaLabel:l(sf),onChange:o})})}import{jsx as Yn}from"react/jsx-runtime";import{SettingsDefaultReset as dP,SettingsField as uP,SettingsSegmented as pP}from"efficient-easel/panel";import{HoverIcon as mP}from"efficient-easel/icons";var ff={none:"None",lift:"Lift",highlight:"Highlight"},xP="What a card does when a shopper points at it \u2014 or taps it, on a phone. Highlight is the effect your cards already use.";function xI({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??Es;return Yn(uP,{label:l("Hover effect"),icon:Yn(mP,{}),value:l(ff[a]),changed:!r,action:Yn(dP,{words:V()?.panel,label:l("Hover effect"),changed:!r,detail:l(ff[Es]),onReset:()=>o(null)}),hint:t?l(xP):void 0,children:Yn(pP,{options:mu.map(n=>({id:n,label:l(ff[n])})),value:a,ariaLabel:l("Hover effect"),onChange:o})})}import{jsx as Xn}from"react/jsx-runtime";import{SettingsDefaultReset as IP,SettingsField as hP,SettingsSegmented as gP}from"efficient-easel/panel";import{DropIcon as bP}from"efficient-easel/icons";var cf="Photography",II={shot:"As shot",mono:"Black and white"},df=[{grayscale:!1,label:II.shot},{grayscale:!0,label:II.mono}],yP="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function hI({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??!1;return Xn(hP,{label:l(cf),icon:Xn(bP,{}),value:l(df.find(n=>n.grayscale===a).label),changed:!r,action:Xn(IP,{words:V()?.panel,label:l(cf),changed:!r,detail:l(df.find(n=>!n.grayscale).label),onReset:()=>o(null)}),hint:t?l(yP):void 0,children:Xn(gP,{options:df.map(n=>({id:n.grayscale,label:l(n.label)})),value:a,ariaLabel:l(cf),onChange:o})})}import{jsx as uf}from"react/jsx-runtime";import{useId as SP}from"react";import{SettingsField as CP,SettingsSwitch as vP}from"efficient-easel/panel";import{ShareIcon as wP}from"efficient-easel/icons";var kP="Share button",TP="On every blog post.";function gI({value:e,onChange:o,showHint:t=!0}){let r=SP();return uf(CP,{label:l(kP),labelId:r,icon:uf(wP,{}),action:uf(vP,{checked:e===!0,onChange:o,ariaLabelledBy:r}),hint:t?l(TP):void 0})}import{jsx as Zn}from"react/jsx-runtime";import{SettingsDefaultReset as EP,SettingsField as FP}from"efficient-easel/panel";import{PaddingXIcon as PP}from"efficient-easel/icons";var pf="Side space",mf=Co.default,LP="The room left at the left and right edge of every page.";function bI({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Zn(FP,{label:l(pf),labelId:"sf-side-space",icon:Zn(PP,{}),value:`${e??mf}px`,changed:!r,action:Zn(EP,{words:V()?.panel,label:l(pf),changed:!r,detail:`${mf}px`,onReset:()=>o(null)}),hint:t?l(LP):void 0,children:Zn(je,{min:Co.min,max:Co.max,step:Co.step,value:e??mf,readout:!1,ariaLabel:l(pf),onChange:o})})}import{jsx as Wo,jsxs as OP}from"react/jsx-runtime";import{SettingsDefaultReset as yI,SettingsField as SI,SettingsSegmented as CI}from"efficient-easel/panel";import{BackgroundIcon as RP,WidthIcon as AP}from"efficient-easel/icons";var Qn="Width",BP="Background",_P="Content",vI=["full","content"],wI=e=>l(Qt[e==="content"?"page":"full"]),DP=400,kI="Content cannot be wider than the background.",TI="The width of every section's background, until the section sets its own.",EI="The width of every section's content, until the section sets its own.",FI="On phones, content always fills the screen.";function Jn({value:e,changed:o,detail:t,onChange:r,onReset:a,disabled:n=!1,hint:s,labelId:i}){let f=l(BP);return Wo(SI,{label:f,labelId:i,icon:Wo(RP,{}),changed:o,hint:s?l(s):void 0,action:Wo(yI,{words:V()?.panel,label:f,changed:o,detail:t,onReset:a}),children:Wo(CI,{options:vI.map(u=>({id:u,label:wI(u)})),value:e,onChange:r,ariaLabel:f,disabled:n})})}function el({mode:e,px:o,max:t=Se.max,min:r=DP,changed:a,detail:n,onMode:s,onPx:i,onReset:f,fullClosed:u=!1,disabled:p=!1,hint:m,labelId:x}){let h=l(_P),b=e!=="full"?Wo(je,{min:r,max:t,step:Se.step,value:Math.min(Math.max(o,r),t),onChange:i,suffix:"px",ariaLabel:h,disabled:p}):null;return Wo(SI,{label:h,labelId:x,icon:Wo(AP,{}),changed:a,hint:m?l(m):void 0,action:Wo(yI,{words:V()?.panel,label:h,changed:a,detail:n,onReset:f}),children:e===void 0||!s?b:OP("div",{className:"flex w-full min-w-0 flex-col gap-2",children:[Wo(CI,{options:vI.map(C=>({id:C,label:wI(C),disabled:C==="full"&&u})),value:e,onChange:s,ariaLabel:h,disabled:p}),b]})})}import{jsx as Ih}from"react/jsx-runtime";import{TextStyleItem as j1,TextStylesGroup as K1}from"efficient-easel/text-styles";import{jsx as W1}from"react/jsx-runtime";import{useState as z1}from"react";import{TextStylesList as G1}from"efficient-easel/text-styles";import{usePreviewDevice as U1}from"efficient-easel/draw/client";import{textStyleCaseCss as B1}from"efficient-easel/draw";import{textStyleCaseCss as KP,textStyleCaseOfCss as VP}from"efficient-easel/draw";function xf(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function so(e){let o=/^([A-Za-z0-9_$]+)\[(\d+)\]\.([A-Za-z0-9_$]+)$/u.exec(e);return o?{key:o[1],row:{index:Number(o[2]),rowKey:o[3]}}:{key:e,row:null}}import{decodePartId as al,encodePartId as nl}from"efficient-easel/draw";import{LINK_FIELD_MARKER as MI,SCAFFOLD_FIELD_MARKER as DI,TEXT_FIELD_MARKER as ll}from"efficient-easel/draw";import{readHidable as HI}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as UP}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as GP}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as PI}from"efficient-easel/draw";import{readHidable as LI}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as NP}from"efficient-easel/draw";var MP=NP,HP=["text","textarea"],WP=["textarea","plainTextarea"];function zP(e){return!e||typeof e!="object"?null:e[PI]?.control??null}function ar(e){let o=zP(e);return o&&MP.includes(o)?o:null}function ol(e){return WP.includes(e)}function OI(e){return!e||typeof e!="object"?void 0:e[PI]?.placeholder}function tl(e){return LI(e).text}function If(e,o,t){return HP.includes(e)?{text:t,hidden:LI(o).hidden}:t}function RI(e,o,t,r){return tl(e[o])===r?null:{...e,[o]:If(t,e[o],r)}}function hf(e){if(!(!e||typeof e!="object"))return e[GP]}function gf(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function AI(e,o){if(!Array.isArray(o))return[];let t=hf(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,i)=>{let f=s?.[n];typeof f=="string"&&f&&r.push({row:{index:i,rowKey:n},text:f})}),r}let a=gf(e);return a?(o.forEach((n,s)=>{for(let[i,f]of Object.entries(a)){if(!ar(f))continue;let u=tl(n?.[i]);u&&r.push({row:{index:s,rowKey:i},text:u})}}),r):[]}function oa(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function bf(e,o,t,r){let a=e[o];return!Array.isArray(a)||t.index<0||t.index>=a.length?null:{...e,[o]:a.map((n,s)=>s===t.index?{...n,[t.rowKey]:r}:n)}}function BI(e,o,t,r,a){let n=oa(e[o],t);return tl(n)===a?null:bf(e,o,t,If(r,n,a))}function _I(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var io="data-sf-part",Ke="data-sf-part-selected",s8="data-sf-part-kind",$P="data-sf-part-style-owner",qP="data-sf-part-style-kind";function i8(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute($P),r=o.getAttribute(qP);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-puck-component"))return null}return null}var NI=2;function WI(e,o){if(!e)return!1;let t=al(e);return!!t?.propKey&&t.nodeId===o}function nr(e){return Ct(e).replace(/\s+/gu,"")}function rl(e,o,t){let r=e[ll];if(r){if(r.control==="textList"){let n=r.itemKey??"text";if(!Array.isArray(o))return;for(let s of o){let i=s?.[n];typeof i=="string"&&t.push(i)}return}let{text:a}=HI(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[MI]){if(e.type==="text"||e.type==="textarea"){typeof o=="string"&&o&&t.push(o);return}if(e.arrayFields&&Array.isArray(o)){for(let a of o)for(let[n,s]of Object.entries(e.arrayFields))rl(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))rl(n,o[a],t)}}function zI(e){if(!e||typeof e!="object")return!1;let o=e;return o[MI]?!1:!!o[ll]||o.type==="text"||o.type==="textarea"}function sl(e,o){let t=e[ll];return t?.label?t.label:typeof e.label=="string"?e.label:o}function yf(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function f8(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){if(!a||typeof a!="object"||$r(r))continue;let n=a,s=[];rl(n,o?.[r],s),!s.length&&n[DI]!==void 0&&rl(n,n[DI],s);let i=sl(n,r),f=new Set;for(let{row:m,text:x}of AI(n,o?.[r])){let h=nr(x);h.length<NI||(f.add(h),t.push({key:r,label:i,texts:[h],row:m}))}let u=new Set(f),p=[];for(let m of s){let x=nr(m);x.length<NI||u.has(x)||(u.add(x),p.push(x))}p.length&&t.push({key:r,label:i,texts:p})}return t}var jP=UP;function GI(e,o){if(!o||typeof o!="object"||$r(e)||_p(o))return null;let t=o[ll];return!t||!jP.includes(t.control)?null:t}function c8(e,o){let t=GI(e,o);return t!==null&&t.identifier!==!0}function UI(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=GI(r,a);if(!n)continue;let{text:s,hidden:i}=HI(o?.[r]),f=s||n.placeholder||"",u=Ct(f).replace(/\s+/gu," ").trim();t.push({key:r,label:yf(sl(a,r)),preview:u,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!i})}return t}var vf="_partStyles",kf="data-sf-part-styled",YP=[400,500,600,700],ZI=["left","center","right","justify"],$I=5,qI=1e3,XP=-5,ZP=10,Tf=0,Ef=64,Ff=2,Pf=120,nt=1280,Lf=10,jI={size:{min:$I,max:qI,step:1},sizePhone:{min:$I,max:qI,step:1},padding:{min:Tf,max:Ef,step:Ff},width:{min:Pf,max:nt,step:Lf}},QP=.05,JP=.01,e1=["line","letter"],o1=.5,t1=2.5,r1=-1,a1=1,n1=0,l1=400;function ra(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function QI(e){return ra(e?.[vf])??{}}function fl(e,o){let t=QI(e);return Object.hasOwn(t,o)?ra(t[o])??{}:{}}function JI(e,o,t){let r={...QI(e)};if(s1(t).length?r[o]=t:delete r[o],!Object.keys(r).length){let{[vf]:a,...n}=e;return n}return{...e,[vf]:r}}function s1(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function i1(e){return e1.includes(e)}var ta=(e,o,t)=>Math.min(t,Math.max(o,e));function f1(e,o){if(i1(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:ta(t,XP,ZP)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?lr(ta(t,o1,t1),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?lr(ta(t,r1,a1),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:ta(t,n1,l1)}if(Object.hasOwn(jI,e)){let{min:t,max:r}=jI[e],a=Math.round(Number(o));return Number.isFinite(a)?ta(a,t,r):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"?Lo.includes(String(o))?o:null:o}var c1=["weight","size","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding","width"];function eh(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of c1){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}return e.align!==void 0&&!ZI.includes(e.align)&&t("align"),o??e}var d1=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function u1(e){let o=[];for(let[t,r]of d1)t===e?o.push(r):r===e&&o.push(t);return o}function na(e,o,t,r){let a={...fl(e,o)},n=r==null?null:f1(t,r);if(n===null)delete a[t];else{a[t]=n;for(let s of u1(t))delete a[s]}return JI(e,o,a)}function oh(e,o){return JI(e,o,{})}function p1(e){return VP(e)??"none"}function m1(e){return KP(e)??""}var x1={heading:"--font-role-heading",heading2:"--font-role-heading2",heading3:"--font-role-heading3",body:"--font-role-body",accent:"--font-role-accent",label:"--font-role-label"};function I1(e){let o=e.role;return o&&Lo.includes(o)?o:null}var h1={headingLarge:"min(clamp(64px,9vw,144px), var(--sf-heading-max,9999px))",headingMedium:"min(32px, var(--sf-heading-max,9999px))",headingSmall:"min(24px, var(--sf-heading-max,9999px))",accent:"32px",body:"14px",label:"12px"};function g1(e){let o=eu[e],t=h1[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function la(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=lr(b1+e.line*QP,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=lr(e.letter*JP,4)),o}var b1=1,sa="--sf-part-para",Of="(max-width: 719.98px)";function KI(e){return e=eh(e),typeof e.sizePhone=="number"&&e.sizePhone>0?{fontSize:`${e.sizePhone}px`}:{}}function y1(e,o){return o&&typeof e.sizePhone=="number"&&e.sizePhone>0?{...e,size:e.sizePhone}:e}function il(e,o){e=eh(e);let t=I1(e),r=la(e),a=e.size?`${e.size}px`:t?g1(t):"";return{fontFamily:e.font?w1(e.font):t?`var(${x1[t]})`:"",fontWeight:e.weight?String(e.weight):"",fontSize:a,minWidth:a?"0":"",overflowWrap:a?"break-word":"",lineHeight:r.lineHeight!==void 0?String(r.lineHeight):"",letterSpacing:r.letterSpacingEm!==void 0?`${r.letterSpacingEm}em`:"",[sa]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:m1(e.case),textAlign:e.align??"",paddingTop:Sf(e.padding),paddingBottom:Sf(e.padding),maxWidth:Sf(e.width),color:S1(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var S1=e=>e===void 0||e===""?"":Object.hasOwn(Ao,e)?Ao[e]:th.test(e)?e:"",th=/^#[0-9a-fA-F]{6}$/;function rh(e){return th.test(e)}var Sf=e=>e===void 0?"":`${e}px`,lr=(e,o)=>Number(e.toFixed(o));function h8(e,o){let t=Number.parseFloat(e.fontSize)||16,r=Number.parseFloat(e.lineHeight),a=Number.parseFloat(e.letterSpacing),n=Number.parseFloat(e.paddingTop),s=Number.parseFloat(e.maxWidth);return{fontKey:o,sizePx:t,weight:C1(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?lr(r/t,3):1.2,letterEm:Number.isFinite(a)?lr(a/t,4):0,align:v1(e.textAlign),case:p1(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(s)&&s<nt?Math.round(s):nt}}function C1(e){return Number.isFinite(e)?YP.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function v1(e){for(let o of ZI)if(o===e)return o;return e==="end"?"right":"left"}function g8(e,o){let t=VI(e);if(!t)return"";for(let r of no)if(VI(o(r.cssVar))===t)return r.key;return""}var VI=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function w1(e){let o=Ht(e);return o?`var(${o.cssVar})`:""}function b8(e,o,t,r){return!o||al(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function y8(e,o,t=()=>aa,r=s=>s,a=E1,n=!1){let s=0;for(let{element:i,partId:f}of e){let u=al(f)?.propKey;if(!u)continue;let p=r(u),m=Object.hasOwn(o,p)?ra(o[p])??{}:{},x=il(y1(m,n),aa),h=Cf.some(C=>i.style[C]),b=!1;for(let[C,k]of Object.entries(x))F1(i,C,k),k&&(b=!0);if(h||Cf.some(C=>x[C]))for(let C of k1(i,a))for(let k of Cf)C.style[k]=x[k]??"";b&&(s+=1)}return s}function k1(e,o){let t=nr(e.textContent??""),r=[],a=e;for(let n=0;n<T1&&o(a);n+=1){let s=a.parentElement;if(!s||nr(s.textContent??"")!==t)break;r.push(s),a=s}return r}var T1=8;function E1(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var aa={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:nt};function F1(e,o,t){if(!o.startsWith("--")){e.style[o]=t;return}let r=e.style;typeof r.setProperty=="function"?t?r.setProperty(o,t):r.removeProperty?.(o):r[o]=t;let a=e;o===sa&&(t?a.setAttribute?.(YI,""):a.removeAttribute?.(YI))}var YI="data-sf-part-para",P1=Object.keys(il({},aa)),wf=new Set(["color","overflowWrap",sa,"fontStyle"]),Cf=P1.filter(e=>!wf.has(e));function ah(e,o,t,r=a=>a){let a=new Map;for(let i of e){let f=xf(i.key,i.row);for(let u of i.texts){let p=a.get(u);p?(p.keys.add(i.key),p.partKeys.add(f)):a.set(u,{keys:new Set([i.key]),partKeys:new Set([f])})}}let n=new Map;for(let i of Object.keys(o)){if(!L1(i))continue;let f=ra(o[i])??{},u=il(f,aa),p=KI(f);!Object.values(u).some(Boolean)&&!Object.keys(p).length||n.set(i,{stamp:XI(t,i),declarations:u,...Object.keys(p).length?{phone:p}:{}})}let s=new Map;for(let[i,{keys:f,partKeys:u}]of a){let p=u.size===1?[...u][0]:f.size===1?[...f][0]:null;if(!p)continue;let m=r(p);if(!Object.hasOwn(o,m))continue;let x=ra(o[m])??{},h=il(x,aa),b=KI(x);!Object.values(h).some(Boolean)&&!Object.keys(b).length||s.set(i,{stamp:XI(t,p),declarations:h,...Object.keys(b).length?{phone:b}:{}})}return s.size||n.size?{rules:s,kindRules:n,drawn:new Set(a.keys())}:null}function L1(e){return e.startsWith("@")}function Rf(e,o){return e?.kindRules.get(o)??null}function XI(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function nh(e){let o=[],t=new Set,r=a=>{let{stamp:n,declarations:s}=a;if(t.has(n))return;t.add(n);let i=Object.entries(s).filter(([,h])=>h!==""),f=h=>h.map(([b,C])=>`${R1(b)}: ${C}`).join("; "),u=`[${kf}="${n}"]`,p=i.filter(([h])=>!wf.has(h)),m=i.filter(([h])=>wf.has(h));p.length&&o.push(`${u}, *:has(> ${u}) { ${f(p)} }`),m.length&&o.push(`${u} { ${f(m)} }`),s[sa]&&o.push(...O1(u));let x=Object.entries(a.phone??{}).filter(([,h])=>h!=="");x.length&&o.push(`@media ${Of} { ${u}, *:has(> ${u}) { ${f(x)} } }`)};for(let a of e.rules.values())r(a);for(let a of e.kindRules.values())r(a);return o.join(`
4
+ `)}function O1(e){let o=`var(${sa})`,t=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: ${o} }`,`${e} ${t}:not(:first-child) { margin-top: ${o} }`,`${e} ${t}:not(:last-child) { margin-bottom: ${o} }`]}var R1=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function lh(e,o){if(!e)return null;let t=nr(o),r=e.rules.get(t);if(r)return r;if(t.length<A1||e.drawn.has(t))return null;let a=null;for(let[n,s]of e.rules)if(n.includes(t)){if(a&&a.stamp!==s.stamp)return null;a=s}return a}var A1=8;var Af=e=>e==="sentence"?"none":void 0,zo=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0,ia=e=>typeof e=="string"&&e?e:void 0,ih=["font","color","size","sizePhone","weight","italic","lineHeight","letterSpacing","paragraphSpacing","letterCase","largestSize"];function fo(e){let o={};for(let t of ih)e[t]!==void 0&&(o[t]=e[t]);return o}function _f(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=ih.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function Df(e){let o=e.fonts,t=e.sizes,r=e.typography,a=Iu(e.compression),n=(i,f)=>({id:`heading-${i}`,kind:"heading",name:`Heading ${i}`,values:fo(f)}),s=(i,f={})=>({id:`body-${i}`,kind:"body",name:`Body ${i}`,values:fo(f)});return[n(1,{font:ia(o.heading),size:zo(t.headingLarge),weight:zo(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Af(r.case),largestSize:zo(r.maxPx)}),n(2,{font:ia(o.heading2),size:zo(t.headingMedium),weight:zo(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Af(r.case2)}),n(3,{font:ia(o.heading3),size:zo(t.headingSmall),weight:zo(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Af(r.case3)}),s(1,{font:ia(o.body),size:zo(t.body)}),s(2),s(3),s(4),s(5,{font:ia(o.label),size:zo(t.label)})]}function cl(e){return Array.isArray(e)&&e.every(o=>o&&typeof o=="object"&&typeof o.id=="string"&&(o.kind==="heading"||o.kind==="body")&&typeof o.name=="string")?e.map(o=>_f({...o,values:fo(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function T8(e){return cl(e)??[]}function lt(e,o){let t=Df(o),r=cl(e);return r?r.map(a=>{let n={...Bf(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:fo({...n,...a.values})}}):t}var Bf=(e,o)=>e.find(t=>t.id===o)?.values??{},sh=["heading-1","heading-2","heading-3"];function fh({saved:e,old:o,cur:t,next:r,sizeOf:a}){let n=Df(o),s=cl(e)??n.map(m=>({...m,values:{}})),i=lt(s,o),f=[],u=r.map(m=>{let x=t.find(g=>g.id===m.id),h=s.find(g=>g.id===m.id);if(!x||!h)return _1([m],a)[0];let b={...h.values},C=new Set(h.auto??[]),k=m.values,v=x.values,w=[...new Set([...Object.keys(k),...Object.keys(v)])].filter(g=>JSON.stringify(k[g])!==JSON.stringify(v[g]));w.sort((g,y)=>+(g==="letterSpacing")-+(y==="letterSpacing"));for(let g of w){let y=g==="lineSpacing"?"lineHeight":g,F=k[g];if(F===void 0){delete b[y],Bf(n,m.id)[y]!==void 0&&(f.push([m.id,y]),C.add(y));continue}if(C.delete(y),g==="lineSpacing")b.lineHeight=sr(F/100,3);else if(g==="letterSpacing"){let E=i.find(B=>B.id===m.id),L=a({...m,values:fo({...E?.values??{},...b})});b.letterSpacing=L?sr(F/L,4):0}else b[y]=F}return _f({id:m.id,kind:m.kind,name:m.name,values:fo(b)},C)}),p=o.compression;if(f.some(([m,x])=>(x==="lineHeight"||x==="letterSpacing")&&sh.includes(m))&&mt(p)!=="normal"){for(let m of sh){let x=u.find(b=>b.id===m);if(!x)continue;let h={...x.values};for(let b of["lineHeight","letterSpacing"])f.some(([C,k])=>C===m&&k===b)||h[b]===void 0&&!(x.auto??[]).includes(b)&&(h[b]=Bf(n,m)[b]);x.values=fo(h)}p="normal"}return{saved:u,old:{...o,compression:p}}}function ch(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=mt(e.old.compression)),t}var sr=(e,o)=>Number(e.toFixed(o));function dh(e,o){return e.map(t=>{let{lineHeight:r,letterSpacing:a,...n}=t.values,s={...n};return r!==void 0&&(s.lineSpacing=sr(r*100,1)),a!==void 0&&(s.letterSpacing=sr(a*o(t),2)),{id:t.id,kind:t.kind,name:t.name,values:s}})}function _1(e,o){return e.map(t=>{let{lineSpacing:r,letterSpacing:a,...n}=t.values,s={id:t.id,kind:t.kind,name:t.name,values:fo({...n})},i={...s.values};if(r!==void 0&&(i.lineHeight=sr(r/100,3)),a!==void 0){let f=o({...s,values:{...s.values}});i.letterSpacing=f?sr(a/f,4):0}return{...s,values:fo(i)}})}function E8(e){let o={fonts:Nr({heading:e.heading_font??void 0,heading2:e.heading_2_font??void 0,heading3:e.heading_3_font??void 0,body:e.body_font??void 0,accent:e.accent_font??void 0,label:e.label_font??void 0}),sizes:ks({headingLarge:e.heading_size_large_px,headingMedium:e.heading_size_medium_px,headingSmall:e.heading_size_small_px,accent:e.accent_size_px,body:e.body_size_px,label:e.label_size_px}),compression:mt(e.heading_compression),typography:gu(e)},t=e.text_styles??null,r=Array.isArray(t)?Nf(lt(t,o),o):o;return{fonts:Nr(r.fonts),sizes:ks(r.sizes),compression:mt(r.compression),typography:r.typography,textStyles:t}}function Nf(e,o){let t=x=>e.find(h=>h.id===x)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),i=t("body-5"),f=o.fonts,u=o.sizes,p=o.typography,m=x=>x==="none"?"sentence":"authored";return{fonts:{...f,heading:r.font??f.heading,heading2:a.font??r.font??f.heading2,heading3:n.font??r.font??f.heading3,body:s.font??f.body,label:i.font??f.label},sizes:{...u,headingLarge:r.size??null,headingMedium:a.size??null,headingSmall:n.size??null,body:s.size??null,label:i.size??null},compression:o.compression,typography:{...p,case:m(r.letterCase),weight:r.weight??null,maxPx:r.largestSize??null,weight2:a.weight??null,weight3:n.weight??null,case2:m(a.letterCase),case3:m(n.letterCase)}}}function D1(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}function N1(e){return e==="accent"?"var(--accent)":e==="text"?"var(--fg)":e==="labels"?"var(--fg-dim)":/^#[0-9a-f]{6}$/i.test(e)?e:null}function M1(e){let o=":is([data-sf-bullet], [data-sf-number])";return[`${e} br:not(br + br) { display: block; content: ""; margin-top: var(--sf-part-para) }`,`${e} ${o}:not(:first-child) { margin-top: var(--sf-part-para) }`,`${e} ${o}:not(:last-child) { margin-bottom: var(--sf-part-para) }`]}function F8(e){let o=[];for(let t of e){let r=t.values,a=`.${D1(t)}`,n=[],s=r.font!==void 0?no.find(p=>p.key===r.font)?.cssVar:void 0;if(s&&n.push(`font-family: var(${s})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;n.push(`font-size: ${p}px`)}let i=r.color!==void 0?N1(r.color):null;i&&n.push(`color: ${i}`),r.italic===!0&&n.push("font-style: italic"),r.weight!==void 0&&n.push(`font-weight: ${r.weight}`);let f=[];r.lineHeight!==void 0&&f.push(`line-height: ${r.lineHeight}`),r.letterSpacing!==void 0&&f.push(`letter-spacing: ${r.letterSpacing}em`),t.kind==="body"&&n.push(...f);let u=B1(r.letterCase);if(u&&n.push(`text-transform: ${u}`),r.paragraphSpacing&&n.push(`--sf-part-para: ${r.paragraphSpacing}px`),n.length&&o.push(`${a} { ${n.join("; ")} }`),t.kind==="heading"&&f.length&&o.push(`${a}, ${a}:is(h1, h2, h3, h4) { ${f.join("; ")} }`),r.paragraphSpacing&&o.push(...M1(a)),r.sizePhone!==void 0){let p=H1[t.id],m=[`${a} { font-size: ${r.sizePhone}px }`];p&&m.push(`.sf-themed-content { --size-${p}: ${r.sizePhone}px !important }`),o.push(`@media ${Of} { ${m.join(" ")} }`)}}return o.join(`
5
+ `)}var H1={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function P8(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function Mf(e){switch(e){case"heading":return"heading-1";case"heading2":return"heading-2";case"heading3":return"heading-3";case"body":return"body-1";case"label":return"body-5";default:return}}function Hf(e){let o=la(e);return fo({font:e.font,color:e.color,size:e.size,weight:e.weight,italic:e.italic,lineHeight:o.lineHeight,letterSpacing:o.letterSpacingEm,paragraphSpacing:e.paragraphSpacing,letterCase:e.case})}function uh(e){return Object.keys(Hf(e)).length>0}function ph({saved:e,old:o,styleId:t,values:r}){return{saved:(cl(e)??Df(o).map(a=>({...a,values:{}}))).map(a=>a.id===t?_f({...a,values:fo({...a.values,...r})},a.auto):a),old:o}}var mh=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],$1=["size","lineSpacing","letterSpacing","letterCase"],q1=500,Wf=no.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function xh({saved:e,old:o,colours:t,sizeOf:r,onChange:a,openId:n,onOpenChange:s,readOnly:i=!1,withoutSize:f=!1}){let[u,p]=z1(null),m=U1()==="mobile",x=lt(e,o),h=dh(x,r);return W1(G1,{styles:h,onChange:b=>a(fh({saved:e,old:o,cur:h,next:b,sizeOf:r})),fonts:Wf,colours:t,settings:f?mh.filter(b=>b!=="size"):mh,auto:$1,openId:n===void 0?u:n,onOpenChange:s??p,readOnly:i,device:m?"phone":"desktop",fallback:b=>{let C=x.find(v=>v.id===(b.kind==="heading"?"heading-1":"body-1")),k={};return C?.values.font&&b.id!==C.id&&(k.font=C.values.font),b.kind==="heading"&&(k.weight=q1),k}})}var hh=["font","size","weight","emphasis"],V1=500;function Y1({font:e,size:o,weight:t,italic:r}){let a={font:e};return o!==null&&(a.size=o),t!==null&&(a.weight=t),r!==null&&(a.italic=r),{id:"accent",kind:"heading",name:l("Accent"),values:a}}function X1(e,o){let t=[],r=e.values,a=o.values;return a.font!==r.font&&a.font!==void 0&&t.push({key:"font",value:a.font}),a.size!==r.size&&t.push({key:"size",value:a.size??null}),a.weight!==r.weight&&t.push({key:"weight",value:a.weight??null}),a.italic!==r.italic&&t.push({key:"italic",value:a.italic??null}),t}function gh(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=Y1(e);return Ih(K1,{label:l("Accent"),children:Ih(j1,{style:s,fonts:Wf,settings:n?hh.filter(i=>i!=="size"):hh,auto:["size"],fallback:()=>({weight:o??V1}),open:t,onOpenChange:r,onChange:i=>X1(s,i).forEach(a)})})}import{Tabs as Q1,Tooltip as b7,tabButtonId as J1,tabPanelId as eL}from"efficient-shell/ui";import{ContrastIcon as oL,NoteIcon as tL,SettingsIcon as rL,TypeIcon as aL}from"efficient-easel/icons";function bh(e){switch(e.status){case"saved":return null;case"failed":return{msg:l("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:l("Not saved. Reload the page."),tone:"error"};case"template":return{msg:l("Templates keep their look. Press Done."),tone:"success"}}}}import{SettingsGroupSub as nL}from"efficient-easel/panel";import{gotoPreviewSlide as j8,pinPreviewToBottom as K8,pinPreviewToSection as V8,previewFrame as yh,scrollPreviewToSection as Sh,scrollPreviewToTop as zf}from"efficient-easel/screen/lib/puck/preview-dom";import{useEasel as Z1}from"efficient-easel/easel";function dl({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Z1(L=>L),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:f,setHeadingCompression:u,headingTypography:p,setHeadingTypography:m,textStyles:x,setTextStyles:h}=$(),b=t.data,C=b.root?.props??{},k=e?Nr(C.fonts):a,v=e?cu:s,w=e?mt(C.headingCompression):f,g=e?hu(C.headingTypography):p,y={fonts:k,sizes:v,compression:w,typography:g},F=e?C.textStyles:x,E=L=>r({type:"replaceRoot",root:{...b.root,props:{...C,...L}},recordHistory:!0});return{fonts:k,sizes:v,compression:w,typography:g,old:y,saved:F,write:(L,B)=>{let O=Nf(lt(L.saved,L.old),L.old);e?E({textStyles:L.saved,fonts:O.fonts,headingCompression:O.compression,headingTypography:O.typography}):(h(L.saved),n(O.fonts),i(O.sizes),u(O.compression),m(O.typography)),o(ch(L,y),B)},writeRoot:E}}var $f="sf-site-styles",lL="sf-site-styles-tabpanel",qf=!1,sL="Show hints";function jf({shown:e,onChange:o}){return Z("div",{className:"sf-hints",children:st("button",{type:"button","aria-pressed":e,onClick:()=>o(!e),className:`sf-rung sf-hints-toggle${e?" is-active":""}`,children:[Z(tL,{size:13}),l(sL)]})})}var vh="text",ir=[{id:"basics",label:"Basics",icon:Z(rL,{})},{id:"theme",label:"Theme",icon:Z(oL,{})},{id:"text",label:"Text",icon:Z(aL,{})}];function iL({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=Ch(u=>u),{theme:a,setTheme:n}=$(),s=t.data,i=s.root?.props??{},f=u=>{if(e){let p={...i,theme:u};r({type:"replaceRoot",root:{...s.root,props:p},recordHistory:!0})}else n(u);o({selected_preset:u.selected,theme_presets:u.themes})};return Z(fI,{value:e?i.theme:a,onChange:f})}function fL({themeFromDocument:e,persist:o}){let[t,r]=Uf(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=$(),f=dl({themeFromDocument:e,persist:o}),{old:u,saved:p,writeRoot:m}=f,x=f.fonts,h=f.sizes,b=f.typography,C=E=>E.values.size??mL(dL[E.id]??"body")??uL[E.kind],k=E=>f.write(E),v=cL(a),w=E=>{let L={...x,accent:E};e?m({fonts:L}):n(L),o({accent_font:E})},g=E=>{s({...h,accent:E}),o({accent_size_px:E})},y=E=>{let L={...b,weightStrong:E};e?m({headingTypography:L}):i(L),o({heading_weight_strong:E})},F=E=>{let L={...b,italicStrong:E};e?m({headingTypography:L}):i(L),o({accent_italic:E})};return st(Lt,{children:[Z(xh,{saved:p,old:u,colours:v,sizeOf:C,onChange:k,openId:t===Gf?null:t,onOpenChange:r,withoutSize:e}),Z(gh,{font:x.accent,size:h.accent,weight:b.weightStrong,italic:b.italicStrong,headingWeight:b.weight,open:t===Gf,onOpenChange:E=>r(E?Gf:null),onChange:E=>{E.key==="font"?w(E.value):E.key==="size"?g(E.value):E.key==="weight"?y(E.value):F(E.value)},withoutSize:e})]})}var Gf="accent";function cL(e){let o=Wt(e);return[{key:"accent",name:l("Accent"),value:o.accent},{key:"text",name:l("Text"),value:o.text},{key:"labels",name:l("Labels"),value:o.muted??o.text}]}var dL={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},uL={heading:32,body:14},pL={heading:"main h1, main h2",heading2:"main h1, main h2",heading3:"main h1, main h2",accent:"main h1 em, main h2 em",body:"main p",label:"main .mono-eyebrow"};function mL(e){if(typeof document>"u")return null;let o=(yh()?.contentDocument??document).querySelector(pL[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function xL({themeFromDocument:e,persist:o,showHint:t}){let{appState:r,dispatch:a}=Ch(x=>x),{cornerRadiusPx:n,setCornerRadiusPx:s}=$(),i=r.data,f=i.root?.props??{},u=f.cornerRadiusPx===void 0?uu[du(f.cornerStyle)]:Io(f.cornerRadiusPx),p=e?u:n,m=x=>a({type:"replaceRoot",root:{...i.root,props:{...f,...x}},recordHistory:!0});return Z(cI,{value:p,onChange:x=>{e?m({cornerRadiusPx:x}):s(x),o({corner_radius_px:x})},showHint:t})}function IL(e){return{site_width:e}}function hL({persist:e,showHint:o}){let{siteWidth:t,setSiteWidth:r,sectionBackgroundWidth:a,setSectionBackgroundWidth:n,sectionContentWidth:s,setSectionContentWidth:i}=$(),f=typeof t=="number"?t:Se.default,u=x=>{r(x),e(IL(x),x===null)},p=x=>{n(x),e({section_background_width:x},!0)},m=x=>{i(x),e({section_content_width:x},!0)};return st(Lt,{children:[Z(nL,{title:l(Qn),level:4}),Z(Jn,{value:a??"full",changed:a!==null,detail:l("Full width"),onChange:p,onReset:()=>p(null),hint:o?TI:void 0}),Z(el,{mode:s??"content",px:f,min:Se.min,max:Se.max,changed:typeof t=="number"||s!==null,detail:`${l("Content width")} ${Se.default}px`,onMode:m,onPx:x=>u(x),onReset:()=>{m(null),u(null)},hint:o?EI:void 0})]})}function gL(e){return{block_gap:e}}function bL(e){return{site_gutter:e}}function yL({persist:e,showHint:o}){let{siteGutter:t,setSiteGutter:r}=$();return Z(bI,{value:t,onChange:a=>{r(a),e(bL(a),a===null)},showHint:o})}function SL({persist:e,showHint:o}){let{blockGap:t,setBlockGap:r}=$();return Z(mI,{value:t,onChange:a=>{r(a),e(gL(a),a===null)},showHint:o})}function CL({persist:e,showHint:o=!0}){return st(Lt,{children:[Z(hL,{persist:e,showHint:o}),Z(yL,{persist:e,showHint:o}),Z(SL,{persist:e,showHint:o})]})}function vL(e){return{card_shadow:e}}function wL(e){return e===null?{shadow_color:null}:{shadow_color:xu(e)}}function kL(e){return{hover_effect:e}}function TL({persist:e,showHint:o=!0}){let{cardShadow:t,setCardShadow:r,shadowColor:a,setShadowColor:n,hoverEffect:s,setHoverEffect:i}=$();return st(Lt,{children:[Z(dI,{value:t,onChange:f=>{r(f),e(vL(f),!0)},showHint:o}),Z(pI,{value:a,onChange:f=>{n(f),e(wL(f),f===null)},showHint:o}),Z(xI,{value:s,onChange:f=>{i(f),e(kL(f),!0)},showHint:o})]})}function EL(e){return{photography_grayscale:e}}function FL({persist:e,showHint:o}){let{photographyGrayscale:t,setPhotographyGrayscale:r}=$();return Z(hI,{value:t,onChange:a=>{r(a),e(EL(a),!0)},showHint:o})}function PL({persist:e,showHint:o=!0}){return Z(Lt,{children:Z(FL,{persist:e,showHint:o})})}function LL(e){return{share_button_on_posts:e}}function OL({persist:e,showHint:o=!0}){let{shareButtonOnPosts:t,setShareButtonOnPosts:r}=$();return Z(gI,{value:t,onChange:a=>{r(a),e(LL(a),!0)},showHint:o})}function fr(){let{websiteName:e}=$();return e?.trim()||bu}function ul({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n}){let{persist:s}=Vt({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let k=bh(C);k&&r?.(k.msg,k.tone)}}),[i,f]=Uf(ir[0].id),u=a!==void 0,p=u?a:i,m=u?n??(()=>{}):f,x=ir.find(C=>C.id===p)??ir[0],[h,b]=Uf(qf);return st(Lt,{children:[Z(RL,{activeId:x.id,onSelect:m}),st("div",{id:eL($f,x.id),className:lL,role:"tabpanel","aria-labelledby":J1($f,x.id),children:[p==="basics"&&st(Lt,{children:[Z(xL,{themeFromDocument:e,persist:s,showHint:h}),!e&&Z(TL,{persist:s,showHint:h}),!e&&Z(CL,{persist:s,showHint:h}),!e&&Z(PL,{persist:s,showHint:h}),!e&&Z(OL,{persist:s,showHint:h}),Z(jf,{shown:h,onChange:b})]}),p==="theme"&&Z(iL,{themeFromDocument:e,persist:s}),p==="text"&&Z(fL,{themeFromDocument:e,persist:s})]})]})}function RL({activeId:e,onSelect:o}){return Z("div",{className:"es-insp-tabs",children:Z(Q1,{variant:"underline",block:!0,labelsFit:!0,"aria-label":l("Site styles"),idPrefix:$f,value:e,onChange:o,items:ir.map(t=>{let r=l(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as GL}from"efficient-easel/chrome";import{Button as Oh,Dialog as UL,FormField as $L,Input as Rh,toast as Ah}from"efficient-shell/ui";import{LayersTree as qL,TreeGroupLabel as jL,TreeRow as Bh,TreeRowAction as Qf}from"efficient-easel/tree";import{AddIcon as KL,PageIcon as VL}from"efficient-easel/icons";import{PagesIcon as YL}from"efficient-easel/rail";var Kf="Main Pages",AL="Dynamic Pages",Vf="dynamic",BL="dynamic";function Yf(e){return e.kind===BL}function wh(e){let o=[],t=[];for(let r of e){if(Yf(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??Kf,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:Vf,label:AL,rows:t})}return o}import{useCallback as pl,useEffect as _L,useSyncExternalStore as DL}from"react";var kh=new WeakMap;function fa(e){let o=kh.get(e);return o||(o={rows:null,loading:null,listeners:new Set},kh.set(e,o)),o}function Xf(e,o){e.rows=o;for(let t of e.listeners)t()}var ml=new Set;function xl(e,o){o?ml.add(e):ml.delete(e)}function Th(e){let o=fa(e),t=e.listPages().then(r=>Xf(o,ml.size?r.filter(a=>!ml.has(a.id)):r),()=>Xf(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var Eh=()=>null,NL=()=>()=>{};function Zf(){let{adapter:e,ready:o}=ye(),t=pl(i=>{let{listeners:f}=fa(e);return f.add(i),()=>f.delete(i)},[e]),r=pl(()=>fa(e).rows,[e]),a=DL(o?t:NL,o?r:Eh,Eh);_L(()=>{if(!o)return;let i=fa(e);i.rows===null&&!i.loading&&Th(e)},[e,o]);let n=pl(()=>o?Th(e):Promise.resolve(),[e,o]),s=pl(i=>Xf(fa(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function ML(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function Fh(){let{currentSlug:e}=ye(),{rows:o}=Zf();return ML(o,e)}var _h="sf-editor-pages-collapsed-groups",XL=e=>e.toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),Dh=(e,o)=>{let t=XL(e)||"page";if(!o.has(t))return t;let r=2;for(;o.has(`${t}-${r}`);)r+=1;return`${t}-${r}`};function Nh({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=De().chrome?.pageRows,n=Kt(),{adapter:s,capabilities:i,ready:f,currentSlug:u}=ye(),p=fr(),{rows:m,reload:x,setRows:h,getRows:b}=Zf(),[C,k]=cr(""),[v,w]=cr(!1),[g,y]=cr(null),[F,E]=cr(!1),[L,B]=cr(""),O=zL(),[M,re]=cr(()=>{if(typeof window>"u")return new Set;try{let P=window.localStorage.getItem(_h);return new Set(P?JSON.parse(P):[])}catch{return new Set}});WL(()=>{try{window.localStorage.setItem(_h,JSON.stringify([...M]))}catch{}},[M]);let H=P=>re(le=>{let X=new Set(le);return X.has(P)?X.delete(P):X.add(P),X}),z=Lh(()=>wh(m??[]),[m]),A=C.trim().toLowerCase(),oe=P=>!A||P.toLowerCase().includes(A),Be=P=>A?!0:!M.has(P),Xe=Lh(()=>new Set((m??[]).map(P=>P.slug)),[m]),ro=()=>{if(i.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}B(""),y(null),E(!0)},ze=async()=>{let P=L.trim();if(!(!P||!f||v||!s.createPage)){w(!0),y(null);try{let le=await s.createPage({slug:Dh(P,Xe),title:P,layout:{}});await x(),E(!1),B(""),e(le.slug)}catch{y(l("Couldn\u2019t add the page \u2014 please retry."))}finally{w(!1)}}},_e=P=>{let le=m??[],X=s.deletePage;if(!f||v||!X||le.length<=1)return;let te=le.findIndex(be=>be.id===P.id),ae=le.filter(be=>be.id!==P.id),ue=P.slug===u;xl(P.id,!0),h(ae),y(null),ue&&ae[0]&&e(ae[0].slug);let He=()=>{xl(P.id,!1);let be=b()??[];if(be.some(Po=>Po.id===P.id))return;let po=[...be];po.splice(Math.max(0,Math.min(te,po.length)),0,P),h(po)};Ah.undoable(l("Deleted \u201C{name}\u201D",{name:P.label}),{actionLabel:l("Undo"),commit:async be=>{await X(P.id,be),xl(P.id,!1)},undo:()=>{He(),ue&&e(P.slug)},onFail:()=>{He(),Ah.error(l("Couldn\u2019t delete the page \u2014 please retry."))}})},Ge=P=>n.send("storefront-editor:open-page",{slug:P}),Me=P=>{if(!oe(P.label))return null;let le=!t&&P.slug===u,X=i.canDeletePagesInline&&(m??[]).length>1,te=Yf(P),ae=P.kind==="lightbox",ue=[...te?[{label:l("Dynamic"),tone:"info"}]:[],...ae?[{label:l("Lightbox"),tone:"success"}]:[],...P.draft?[{label:l("draft"),tone:"draft"}]:[]],He=ue.length>0?ue:void 0,be=i.pageCreationInAdminForm||X?Il(Ph,{children:[i.pageCreationInAdminForm&&fe(Qf,{kind:"plain",label:l("Edit \u201C{name}\u201D in {place}",{name:P.label,place:l("the admin")}),onClick:()=>Ge(P.slug),children:fe(hl,{name:"pencil",size:13,strokeWidth:1.7,rounded:!0})}),X&&fe(Qf,{kind:"delete",label:l("Delete \u201C{name}\u201D",{name:P.label}),disabled:v,onClick:()=>_e(P),children:fe(hl,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return fe(Bh,{icon:fe(VL,{size:14}),name:P.label,selected:le,onSelect:()=>e(P.slug),badge:He,actions:be,rowProps:{"data-page-slug":P.slug}},P.id)},ve=(P,le,X)=>{let te=X.filter(Boolean);if(te.length===0)return null;let ae=Be(P);return Il(HL,{children:[fe(jL,{count:te.length,expanded:ae,onToggle:()=>H(P),children:le}),ae&&te]},P)},he=(a?.rows??[]).filter(P=>oe(P.label)).map(P=>{let le=t===P.key;return fe(Bh,{icon:P.icon,name:P.label,selected:le,onSelect:()=>r(P.key),badge:{label:l("Preview"),tone:"warning"},actions:fe(Qf,{kind:"plain",label:l("Open the {name} in a new tab",{name:P.label}),onClick:()=>window.open(P.href,"_blank","noopener,noreferrer"),children:fe(hl,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":P.key}},P.key)}),xe=i.hasSiteSettings&&!!a,Ze=(()=>{if(m===null)return null;let P=[],le=!1;for(let X of z){xe&&!le&&X.key.startsWith("system:")&&(P.push(ve("shop",a.title,he)),le=!0);let te=X.key===Vf||X.label===Kf?l(X.label):X.label;P.push(ve(X.key,te,X.rows.map(Me)))}return xe&&!le&&P.push(ve("shop",a.title,he)),P})();return Il("div",{className:"sf-pages",children:[fe(Za,{icon:fe(YL,{}),title:l("Pages"),context:p,actions:fe(GL,{label:l("New page"),onClick:ro,children:fe(KL,{size:15})}),onHide:o}),fe("div",{className:"sf-pages-find",children:fe(Rh,{type:"search",leftIcon:fe(hl,{name:"search",size:14,rounded:!0}),placeholder:l("Search all pages\u2026"),value:C,onChange:P=>k(P.target.value),"aria-label":l("Search all pages")})}),g&&!F&&fe("div",{className:"sf-note sf-note--error",role:"alert",children:g}),Ze===null?fe("div",{className:"sf-note",children:l("Loading\u2026")}):Ze.some(Boolean)?fe(qL,{ariaLabel:l("Pages"),className:"sf-scroll",children:Ze}):fe("div",{className:"sf-note",children:C.trim()?l("No pages match your search"):l("No pages yet. Add one with + above.")}),fe(UL,{open:F,onClose:()=>E(!1),size:"sm",title:l("Add a page"),description:l("Give the new template page a name. It starts blank \u2014 add sections once it opens."),footer:Il(Ph,{children:[fe(Oh,{variant:"secondary",onClick:()=>E(!1),children:l("Cancel")}),fe(Oh,{onClick:()=>{ze()},disabled:v||!L.trim(),loading:v,children:l("Add page")})]}),children:fe($L,{label:l("Page name"),htmlFor:O,hint:L.trim()?l("URL: /{slug}",{slug:Dh(L,Xe)}):void 0,error:g??void 0,children:fe(Rh,{id:O,value:L,invalid:!!g,onChange:P=>B(P.target.value),onKeyDown:P=>{P.key==="Enter"&&ze()},placeholder:l("e.g. About")})})})]})}import{jsx as ZL}from"react/jsx-runtime";import{createContext as QL,useCallback as JL,useContext as eO,useState as oO}from"react";import{useSelectHandler as tO}from"efficient-easel/draw/client";var gl=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],dr=gl[0];var Ot="right";function bl(e){return gl.includes(e??"")?e:dr}function Mh(e){return e==="left"?"left":Ot}function Hh(e){return/^#[0-9a-fA-F]{6}$/.test(e??"")?e.toLowerCase():""}var yl={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Ot,launcherLabel:"",showOnPhones:!0};function rq(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:Hh(e.launcherColor),launcherIcon:e.launcherIcon?bl(e.launcherIcon):"",launcherPosition:Mh(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var Wh=QL({chat:yl,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function aq({children:e,chat:o=yl,onChatChange:t}){let[r,a]=oO(!1),n=JL(f=>t?.(f),[t]),{select:s,setSelectHandler:i}=tO();return ZL(Wh.Provider,{value:{chat:o,setChat:n,selected:r,setSelected:a,select:s,setSelectHandler:i},children:e})}var Sl=()=>eO(Wh);import{jsx as Jf}from"react/jsx-runtime";import{DesktopIcon as rO,PhoneIcon as aO,TabletIcon as nO}from"efficient-easel/icons";import{VIEW_TIERS as lO,VIEW_TIER_LABEL as sO}from"efficient-easel/draw";var iO={desktop:Jf(rO,{}),tablet:Jf(nO,{}),mobile:Jf(aO,{})},zh=lO.map(e=>({id:e,get label(){return l(sO[e])},icon:iO[e]}));import{PreviewDeviceContext as b2}from"efficient-easel/draw/client";import{jsx as fO}from"react/jsx-runtime";import{createContext as cO,useCallback as Gh,useContext as dO,useMemo as uO,useRef as pO}from"react";var mO=Object.fromEntries(ja.map(e=>[e,{value:"",error:null}])),Uh=cO({links:Su,rows:mO,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function mq({children:e,value:o}){let t=pO(()=>{}),r=Gh(()=>t.current(),[]),a=Gh(s=>{t.current=s},[]),n=uO(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return fO(Uh.Provider,{value:n,children:e})}var ca=()=>dO(Uh);import{jsx as xO}from"react/jsx-runtime";import{createContext as IO,useContext as hO,useMemo as gO,useState as bO}from"react";var $h=IO(null);function gq({children:e}){let[o,t]=bO(null),r=gO(()=>({surface:o,setSurface:t}),[o]);return xO($h.Provider,{value:r,children:e})}function qh(){return hO($h)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as yO}from"efficient-easel/draw/client";var da="Scrolling Bar",{Provider:Sq,useSelection:Cl}=yO("selectedHeroId");import{createPreviewSelectionContext as SO}from"efficient-easel/draw/client";var{Provider:wq,useSelection:vl}=SO("selectedHeroPart");import{isShown as NO,lazyShowWhenContext as MO}from"efficient-shell/format";var wl="product",CO="recordType",vO={key:wl,label:"Product",fields:[]};var wO=new Map,kO=0;function Tq(){return[vO,...wO.values()]}function Eq(){return kO}function TO(e){let o=e?.[CO];return typeof o!="string"?wl:o.trim()||wl}function ec(e){return TO(e)===wl}var oc="product",EO="tyre";var FO="productType",PO={[oc]:"alloy-wheel",[EO]:"tyre"},LO=["alloy-wheel","tyre"];function jh(e,o){return ec(o)?OO(o)??PO[e]??null:null}function OO(e){if(!ec(e))return null;let o=e?.[FO];return typeof o=="string"&&LO.includes(o)?o:null}var kl=null,Kh=null;function RO(e,o){kl=e,Kh=o}function Rq(e){RO(e,null)}function Aq(){return kl}function Vh(){return Kh==="dynamic"||kl===oc}function Bq(e){return jh(kl??"",e)??"alloy-wheel"}import{addShowWhenFacts as AO}from"efficient-shell/format";import{showWhenOf as tc,shownForOption as BO,truthy as _O,withRowRules as DO,withRowsShownWhen as Tl,withShowWhen as El}from"efficient-shell/format";var Mq=AO;function Xh(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e))NO(tc(s),o??{},t)?a[n]=s:r=!0;return r?a:e}function Zh(e,o,t,r){let a=Ja(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Yh(e,o){if(!e||typeof e!="object")return!1;let t=e;if(typeof t.context=="string"&&(t.context===o||t.context.startsWith(`${o}.`)))return!0;if("not"in t)return Yh(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>Yh(a,o)))return!0;return!1}function qq(e,o={}){return MO({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Vh(),root:()=>e.appState?.data?.root?.props,...o})}var Jh=["one","side","stacked"];var Kq={one:"One",side:"Side by side",stacked:"Stacked"};function eg(e){return Jh.includes(e)?e:"one"}function Qh(e){return e==="one"?1:2}function HO(e,o){if(Jh.includes(e))return e;let t=eg(o);return t==="side"?"stacked":t}function rc(e){let o=eg(e.mediaLayout);return Math.max(Qh(o),Qh(HO(e.mediaLayoutPhone,o)))}var ua=["media","image","image2"],ur={media:"Media",image:"Image",image2:"Image 2"},pa={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Fl(e,o){return e==="image"&&rc(o)>1?"Image 1":ur[e]}var Zq="Video file",Qq="Upload a video file";function WO(e,o){return{field:"mediaType",is:e,default:o}}var zO=new Set(["HeroSingle"]),og="heroPart";function GO(e,o){return{...o,[og]:e}}function Jq(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e};for(let s of["image","video"])for(let i of t[s])n[i]=El(n[i],WO(s,r));for(let[s,i]of Object.entries(a??{}))i&&(n[s]=El(n[s],i));for(let s of ua)for(let i of o[s]??[])n[i]=GO(s,n[i]);return n}function UO(e){let o=e?.[og];return ua.includes(o)?o:null}function tg(e,o){let t={};for(let[r,a]of Object.entries(e))UO(a)===o&&(t[r]=a);return t}function rg(e){if(!zO.has(e.type))return[];let o=[{part:"media",label:ur.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Fl("image",e.props),depth:1}),rc(e.props)>1&&o.push({part:"image2",label:Fl("image2",e.props),depth:1})),o}function ma(e,o){return`${e}::${o}`}function ag(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ua.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var e9="data-sf-hero-part";import{jsx as ee,jsxs as Bt,Fragment as Id}from"react/jsx-runtime";import{useState as tN}from"react";import{useEasel as rN}from"efficient-easel/easel";import{headWords as Qy,InspectorHead as aN,InspectorIconButton as Xy}from"efficient-easel/chrome";import{DuplicateIcon as nN,TrashIcon as lN}from"efficient-easel/icons";import{panelFieldsOf as ng}from"efficient-easel/screen/lib/puck/panel-fields";import{jsx as T,Fragment as K,jsxs as Y}from"react/jsx-runtime";import{BlockBannerIcon as jO,BlockBoxIcon as KO,BlockButtonIcon as VO,BlockDividerIcon as sg,BlockFooterIcon as ig,BlockHeadingIcon as YO,BlockProductIcon as XO,BlockSocialIcon as ZO,BlockTextIcon as QO,ChatIcon as JO,GridIcon as eR,ImageIcon as nc,MediaIcon as oR,PageIcon as tR}from"efficient-easel/icons";import{jsx as ac,Fragment as $O,jsxs as qO}from"react/jsx-runtime";var lg=qO($O,{children:[ac("circle",{cx:"9",cy:"20",r:"1.3"}),ac("circle",{cx:"18",cy:"20",r:"1.3"}),ac("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 rR={header:Y(K,{children:[T("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),T("path",{d:"M3 9.5h18"})]}),website:Y(K,{children:[T("circle",{cx:"12",cy:"12",r:"9"}),T("path",{d:"M3 12h18M12 3c2.6 2.7 2.6 15.3 0 18M12 3c-2.6 2.7-2.6 15.3 0 18"})]}),social:Y(K,{children:[T("circle",{cx:"6",cy:"12",r:"2.5"}),T("circle",{cx:"18",cy:"6",r:"2.5"}),T("circle",{cx:"18",cy:"18",r:"2.5"}),T("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:Y(K,{children:[T("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),T("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:Y(K,{children:[T("path",{d:"M4 15.5h6M4 18h4"}),T("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:T("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:Y(K,{children:[T("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),T("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:T("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:Y(K,{children:[T("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),T("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:Y(K,{children:[T("circle",{cx:"11",cy:"11",r:"6"}),T("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:lg,CountrySwitchBlock:Y(K,{children:[T("circle",{cx:"12",cy:"12",r:"8.5"}),T("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),LegalLineBlock:Y(K,{children:[T("path",{d:"M3 9h18"}),T("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:Y(K,{children:[T("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:Y(K,{children:[T("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),T("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:Y(K,{children:[T("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),T("path",{d:"M7 17h7"})]}),Collections:Y(K,{children:[T("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),T("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),T("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:Y(K,{children:[T("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),T("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:Y(K,{children:[T("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),T("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),T("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),T("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),T("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:Y(K,{children:[T("path",{d:"M3 7h9M15.5 7H21"}),T("circle",{cx:"13.5",cy:"7",r:"1.7"}),T("path",{d:"M3 12h4M10.5 12H21"}),T("circle",{cx:"8.5",cy:"12",r:"1.7"}),T("path",{d:"M3 17h9M15.5 17H21"}),T("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:Y(K,{children:[T("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:Y(K,{children:[T("path",{d:"M3 5h10"}),T("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),T("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),T("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:Y(K,{children:[T("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),T("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),T("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:Y(K,{children:[T("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),T("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),T("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),T("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:Y(K,{children:[T("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),T("circle",{cx:"9",cy:"10",r:"1.6"}),T("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:Y(K,{children:[T("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),T("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:Y(K,{children:[T("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),T("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),T("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:Y(K,{children:[T("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),T("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:Y(K,{children:[T("path",{d:"M3.5 20h17"}),T("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:Y(K,{children:[T("circle",{cx:"6",cy:"12",r:"2.6"}),T("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),T("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:Y(K,{children:[T("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),T("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:Y(K,{children:[T("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),T("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:Y(K,{children:[T("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:Y(K,{children:[T("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),T("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:Y(K,{children:[T("path",{d:"M4 8.5h4.5M11 8.5h9"}),T("path",{d:"M4 14.5h16"})]}),HeroGroup:Y(K,{children:[T("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),T("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:Y(K,{children:[T("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T("path",{d:"M6.5 9h11M6.5 12.5h11"}),T("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:T(K,{children:T("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:Y(K,{children:[T("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),T("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:Y(K,{children:[T("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),T("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),T("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),T("path",{d:"M4 13.5h11M4 17.5h7"}),T("path",{d:"M17 15l3 2-3 2"})]}),CustomHTML:T("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},aR=T("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),nR={footer:ig,Footer:ig,Divider:sg,FooterDivider:sg,Banner:jO,Flex:KO,FooterSocial:ZO,page:tR,chat:JO,Heading:YO,Text:QO,ImageBlock:nc,ButtonBlock:VO,Grid:eR,ProductRef:XO,heroMedia:oR,heroImage:nc,heroImage2:nc},lR={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",SiteHeader:"header",SiteFooter:"footer"};function Rt({type:e,size:o=16,className:t}){let r=lR[e]??e,a=nR[r];return a?T(a,{size:o,className:t}):T("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:rR[r]??aR})}import{jsx as Q,jsxs as lc,Fragment as sR}from"react/jsx-runtime";import{useEffect as iR,useId as fg,useState as fR}from"react";import{IconPicker as cR}from"efficient-shell/ui";import{SettingsDefaultReset as dR,SettingsField as pr,SettingsSegmented as uR,SettingsSwitch as cg}from"efficient-easel/panel";import*as pR from"efficient-easel/icons";import{ButtonIcon as mR,ButtonIconIcon as xR,EyeIcon as IR,PhoneIcon as hR,PlacementIcon as gR,TypeIcon as bR}from"efficient-easel/icons";var yR="Chat with us",SR="We usually reply within a few minutes",CR="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Pl({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,i]=fR(o);iR(()=>i(o),[o]);let f=()=>{s!==o&&r(s)};return Q(pr,{label:e,icon:Q(bR,{}),changed:o!=="",action:Q(mr,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?Q("textarea",{value:s,placeholder:t,rows:3,onChange:u=>i(u.target.value),onBlur:f,"aria-label":e}):Q("input",{type:"text",value:s,placeholder:t,onChange:u=>i(u.target.value),onBlur:f,onKeyDown:u=>{u.key==="Enter"&&u.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function mr({label:e,changed:o,onReset:t}){return Q(dR,{words:V()?.panel,label:e,changed:o,onReset:t})}function vR({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=fg();return Q(pr,{label:e,labelId:s,icon:o,changed:t!==r,action:lc("span",{className:"inline-flex items-center gap-2",children:[Q(cg,{checked:t,onChange:a,ariaLabelledBy:s}),Q(mr,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}function wR(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=pR[`${o}Icon`];return t?Q(t,{size:16}):null}var kR=gl.map(e=>({value:e,icon:wR(e)}));function TR(){let{theme:e}=$(),o=Qe(e).themes[0];return Mr(o)??o?.accent??""}function dg(){let{chat:e,setChat:o}=Sl(),t=fg(),r=TR(),a=e.launcherIcon?bl(e.launcherIcon):dr;return lc(sR,{children:[Q(pr,{label:l("Show the chat bubble"),labelId:t,icon:Q(IR,{}),changed:!e.enabled,action:lc("span",{className:"inline-flex items-center gap-2",children:[Q(cg,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),Q(mr,{label:l("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?l("The floating chat bubble shows in the corner of every page."):l("The chat bubble is hidden across the whole site.")}),Q(tr,{label:"Look"}),Q(pr,{label:l("Button color"),icon:Q(mR,{}),changed:e.launcherColor!=="",action:Q(to,{label:l("Button color"),value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:l("Site button color"),onChange:n=>o({launcherColor:n}),after:Q(mr,{label:l("Button color"),changed:e.launcherColor!=="",onReset:()=>o({launcherColor:""})})})}),Q(pr,{label:l("Icon"),icon:Q(xR,{}),changed:a!==dr,action:Q(mr,{label:l("Icon"),changed:a!==dr,onReset:()=>o({launcherIcon:""})}),children:Q(cR,{label:l("Icon"),value:a,options:kR,onChange:n=>o({launcherIcon:n===dr?"":n})})}),Q(pr,{label:l("Position"),icon:Q(gR,{}),changed:e.launcherPosition!==Ot,action:Q(mr,{label:l("Position"),changed:e.launcherPosition!==Ot,onReset:()=>o({launcherPosition:Ot})}),children:Q(uR,{options:[{label:l("Right"),id:"right"},{label:l("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:l("Position"),onChange:n=>o({launcherPosition:n})})}),Q(Pl,{label:l("Label"),value:e.launcherLabel,placeholder:l("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:l("Shows when a visitor points at the button")}),Q(vR,{label:l("Show on phones"),icon:Q(hR,{}),checked:e.showOnPhones,fallback:yl.showOnPhones,onChange:n=>o({showOnPhones:n})}),Q(tr,{label:"Wording"}),Q(Pl,{label:l("Title"),value:e.title,placeholder:yR,onCommit:n=>o({title:n})}),Q(Pl,{label:l("Subtitle"),value:e.subtitle,placeholder:SR,onCommit:n=>o({subtitle:n})}),Q(Pl,{label:l("Greeting message"),value:e.greeting,placeholder:CR,onCommit:n=>o({greeting:n}),multiline:!0}),Q("p",{className:"es-field-hint sf-hint-keep",children:l("Leave a field blank to use the built-in wording.")})]})}import{jsx as At,Fragment as Fc,jsxs as Ig}from"react/jsx-runtime";import{useEffect as tA,useId as mg,useState as xg}from"react";import{SettingsField as rA}from"efficient-easel/panel";import{jsx as KR}from"react/jsx-runtime";import{forwardRef as ER,createElement as sc}from"react";var ug={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 G=(e,o,t,r)=>{let a=ER(({color:n="currentColor",size:s=24,stroke:i=2,title:f,className:u,children:p,...m},x)=>sc("svg",{ref:x,...ug[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,u].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:i,stroke:n},...m},[f&&sc("title",{key:"svg-title"},f),...r.map(([h,b])=>sc(h,b)),...Array.isArray(p)?p:[p]]));return a.displayName=`${t}`,a};var FR=[["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"}]],ic=G("outline","brand-facebook","BrandFacebook",FR);var PR=[["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"}]],fc=G("outline","brand-instagram","BrandInstagram",PR);var LR=[["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"}]],cc=G("outline","brand-line","BrandLine",LR);var OR=[["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"}]],dc=G("outline","brand-linkedin","BrandLinkedin",OR);var RR=[["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"}]],uc=G("outline","brand-pinterest","BrandPinterest",RR);var AR=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],pc=G("outline","brand-telegram","BrandTelegram",AR);var BR=[["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"}]],mc=G("outline","brand-tiktok","BrandTiktok",BR);var _R=[["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"}]],xc=G("outline","brand-wechat","BrandWechat",_R);var DR=[["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"}]],Ic=G("outline","brand-whatsapp","BrandWhatsapp",DR);var NR=[["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"}]],hc=G("outline","brand-x","BrandX",NR);var MR=[["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"}]],gc=G("outline","brand-youtube","BrandYoutube",MR);var HR=[["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"}]],bc=G("filled","brand-facebook-filled","BrandFacebookFilled",HR);var WR=[["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"}]],yc=G("filled","brand-instagram-filled","BrandInstagramFilled",WR);var zR=[["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"}]],Sc=G("filled","brand-linkedin-filled","BrandLinkedinFilled",zR);var GR=[["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"}]],Cc=G("filled","brand-pinterest-filled","BrandPinterestFilled",GR);var UR=[["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"}]],vc=G("filled","brand-tiktok-filled","BrandTiktokFilled",UR);var $R=[["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"}]],wc=G("filled","brand-whatsapp-filled","BrandWhatsappFilled",$R);var qR=[["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"}]],kc=G("filled","brand-x-filled","BrandXFilled",qR);var jR=[["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"}]],Tc=G("filled","brand-youtube-filled","BrandYoutubeFilled",jR);var Bj="outline",Ll={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},VR={},Ec={fillRule:"evenodd"},YR=[["path",{...Ll,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...Ec,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],XR=[["path",{...Ll,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",{...VR,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("")}]],ZR=[["path",{...Ll,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",{...Ll,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",{...Ec,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",{...Ec,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("")}]],QR=G("filled","brand-telegram-filled","BrandTelegramFilled",YR),JR=G("filled","brand-line-filled","BrandLineFilled",XR),eA=G("filled","brand-wechat-filled","BrandWechatFilled",ZR),oA={instagram:{outline:fc,solid:yc},facebook:{outline:ic,solid:bc},tiktok:{outline:mc,solid:vc},youtube:{outline:gc,solid:Tc},x:{outline:hc,solid:kc},linkedin:{outline:dc,solid:Sc},pinterest:{outline:uc,solid:Cc},whatsapp:{outline:Ic,solid:wc},telegram:{outline:pc,solid:QR},line:{outline:cc,solid:JR},wechat:{outline:xc,solid:eA}};function pg({platform:e,iconStyle:o,size:t}){let r=oA[e][o];return KR(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var aA={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 nA({platform:e}){let{rows:o,saveLink:t}=ca(),{value:r,error:a}=o[e],[n,s]=xg(r),[i,f]=xg(!1),u=mg(),p=mg();tA(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}f(!0),await t(e,n),f(!1)},x=yu[e];return Ig(Fc,{children:[At(rA,{label:l(x),htmlFor:u,icon:At(pg,{platform:e,iconStyle:"outline",size:18}),children:At("input",{id:u,type:"text",inputMode:"url",value:n,placeholder:aA[e],onChange:h=>s(h.target.value),onBlur:()=>{m()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?p:void 0,"aria-busy":i||void 0,autoComplete:"off",spellCheck:!1})}),a&&At("p",{id:p,className:"sf-note sf-note--error",role:"alert",children:a})]})}function hg({unavailable:e}){let{canSave:o}=ca();return!o&&e?At(Fc,{children:e}):Ig(Fc,{children:[At("p",{className:"es-field-hint sf-hint-keep",children:l("Paste a link to each profile. A platform left empty shows nothing on the site.")}),ja.map(t=>At(nA,{platform:t},t))]})}import{jsx as br,jsxs as YB}from"react/jsx-runtime";import{useId as XB,useMemo as ZB}from"react";import{useEasel as QB}from"efficient-easel/easel";import{SettingsField as JB,SettingsSwitch as e_}from"efficient-easel/panel";import{EyeIcon as o_}from"efficient-easel/icons";import{jsx as ko,jsxs as Hl}from"react/jsx-runtime";import{useCallback as hr,useEffect as gr,useId as GB,useRef as Go,useState as va}from"react";var gg="data-puck-overlay-portal";function Ol(e){return e.setAttribute(gg,"true"),()=>e.removeAttribute(gg)}import{jsx as ba,jsxs as Mg}from"react/jsx-runtime";var Pc="small",Lc="dot",lA=[{label:"Small",value:"small"},{label:"Display",value:"display"}],sA=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],bg={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},iA={small:"font-mono text-[length:var(--size-label,14px)] uppercase tracking-[0.25em] max-[800px]:text-[length:var(--size-label,12px)]",display:"font-display font-medium text-[length:var(--size-headingMedium,44px)] uppercase leading-none tracking-[0.005em] max-[800px]:text-[length:var(--size-headingMedium,28px)]"},fA={small:{dot:"",cross:"text-[0.77em]",slash:"text-[0.77em]",triangle:"",none:""},display:{dot:"text-[0.3em]",cross:"text-[0.64em]",slash:"text-[0.64em]",triangle:"text-[0.3em]",none:""}};function yg(e){return Je(lA,Pc,e)}function Sg(e){return Je(sA,Lc,e)}function Cg(e){return iA[e]}function vg(e,o){return fA[e][o]}var Oc="left",cA=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],dA={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function wg(e){return Je(cA,Oc,e)}function kg(e){return e==="up"||e==="down"}function Tg(e,o){return`${dA[e]} ${o}s linear infinite`}import{jsx as ce,jsxs as _c}from"react/jsx-runtime";import{Fragment as Dg}from"react";import{Fragment as hA,jsx as Ac}from"react/jsx-runtime";import{Fragment as Pg,jsx as Ia,jsxs as mA}from"react/jsx-runtime";import{createContext as Rc,useContext as ha,useId as xA,useMemo as IA}from"react";var xa="@name",Eg="@body",Fg="@value",Xj={[xa]:"Name",[Eg]:"Body",[Fg]:"Value"},uA={TimelineTrack:{"entries.date":xa,"entries.title":xa,"entries.blurb":Eg},Footprint:{"offices.city":xa},Stats:{"items.label":xa,"items.value":Fg}};function pA(e){let{key:o,row:t}=so(e);return t?`${o}.${t.rowKey}`:null}function Rl(e,o){if(!e)return o;let t=pA(o);return t?uA[e]?.[t]??o:o}var Al=Rc(null),Lg=Rc(null),Og=Rc(null);function tK({needles:e,styles:o,type:t,children:r}){let a=xA(),n=JSON.stringify([a,e,o,t]),s=IA(()=>ah(e,o,a,i=>Rl(t,i)),[n]);return s?mA(Pg,{children:[Ia("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:nh(s).replace(/</g,"\\3c ")}}),Ia(Al.Provider,{value:s,children:r})]}):Ia(Pg,{children:r})}function Rg(e){let o=ha(Al),t=ha(Lg),r=lh(o,e);return r&&r.stamp!==t?r:null}function rK(e){return Rf(ha(Al),e)}function Ag({stamp:e,children:o}){return Ia(Lg.Provider,{value:e,children:o})}function aK({children:e}){let o=ha(Al);return Ia(Og.Provider,{value:o,children:e})}function nK(e){return Rf(ha(Og),e)}function ga({value:e,children:o}){let t=Rg(e);return t?Ac(Ag,{stamp:t.stamp,children:Ac("span",{[kf]:t.stamp,children:o})}):Ac(hA,{children:o})}import{jsx as Bc,Fragment as gA}from"react/jsx-runtime";function Bg({className:e=""}){return Bc("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function Bl(e){if(!e.includes("\xAE"))return e;let o=e.split("\xAE"),t=[];return o.forEach((r,a)=>{r&&t.push(r),a<o.length-1&&t.push(Bc(Bg,{},`r${a}`))}),Bc(gA,{children:t})}var uK=Bg;function Dc(e,o=!1){let t=TA(o),r=ri(e);if(r.length===1){let[n]=r,s=ti(n),i=s?wA(s,n.children):n.children;return ce(ga,{value:e,children:_l(i,t)})}let a=[];return r.forEach((n,s)=>{if(n.bullet){a.push(ce("span",{"data-sf-bullet":"",className:bA,children:_l(n.children,t)},s));return}if(n.number!=null){a.push(_c("span",{"data-sf-number":n.number,className:yA,children:[_c("span",{className:SA,children:[n.number,"."]}),_l(n.children,t)]},s));return}s>0&&!CA(r[s-1])&&a.push(ce("br",{},`br${s}`)),a.push(ce(Dg,{children:_l(n.children,t)},s))}),ce(ga,{value:e,children:a})}var bA="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",yA="relative block pl-[2em]",SA="absolute left-0 w-[1.6em] text-right tabular-nums";function CA(e){return e.bullet||e.number!=null}var vA="text-accent underline underline-offset-[0.18em]";function wA(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function kA(e){if(e)return rh(e)?e:Object.hasOwn(Ao,e)?Ao[e]:void 0}function _l(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(ce("span",{children:Bl(a.text)},n)),r=!0;return}r||t.push(ce("span",{},`e${n}`)),t.push(Ng(a,n,o)),r=!1}),r||t.push(ce("span",{},"end")),t}function _g(e,o){return e.length===1&&e[0].kind==="text"?Bl(e[0].text):e.map((t,r)=>t.kind==="text"?ce(Dg,{children:Bl(t.text)},r):Ng(t,r,o))}function TA(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function SK(e){return ce(ga,{value:e,children:ce("span",{children:e})})}function Ng(e,o,t){if(e.kind==="link")return ce("a",{href:e.href,className:vA,children:_g(e.children,t)},o);let r=_g(e.children,t),a=vp[e.kind];if(a)return ce("span",{[wp]:a,children:r},o);switch(e.kind){case"underline":return ce("u",{children:r},o);case"sup":return ce("sup",{children:r},o);case"sub":return ce("sub",{children:r},o);case"color":{let n=kA(e.color);return n?ce("span",{style:{color:n},children:r},o):ce("span",{children:r},o)}case"accent":case"highlight":return ce("em",{className:t,children:r},o);case"bold":return ce("strong",{className:"font-semibold",children:r},o);case"italic":return ce("em",{className:"italic",children:r},o);case"strike":return ce("s",{className:"line-through",children:r},o);default:return ce("span",{children:r},o)}}function CK(e,o=!0){let t=e.split(`
6
+ `);return ce(ga,{value:e,children:t.map((r,a)=>_c("span",{children:[Dc(r,o),a<t.length-1?ce("br",{}):null]},a))})}function vK(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var EA={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function Hg({items:e,separator:o=Lc,size:t=Pc,durationSec:r=50,scroll:a=Oc,backdrop:n="themed-band",className:s}){let i=yg(t),f=wg(a),u=Sg(o),p=`text-accent ${vg(i,u)}`.trim(),m=bg[u],x=m===""?ba("span",{}):ba("span",{className:p,children:m}),h=kg(f),b=h?"inline-flex flex-col items-center gap-[60px] pb-[60px] max-[800px]:gap-8 max-[800px]:pb-8":"inline-flex items-center gap-[60px] pr-[60px] max-[800px]:gap-8 max-[800px]:pr-8",C=h?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",k=v=>ba("span",{className:b,children:e.map((w,g)=>{let y=typeof w=="string"?w:w.text,F=typeof w=="object"&&w.gold;return Mg("span",{className:C,children:[ba("span",{className:F?"text-accent":void 0,children:Dc(y)}),x]},g)})},v);return ba("div",{className:`overflow-hidden ${s??""}`,children:Mg("div",{className:`flex ${h?"flex-col ":""}whitespace-nowrap ${Cg(i)} ${EA[n]}`,style:{animation:Tg(f,r)},children:[k("a"),k("b")]})})}import{jsx as Sa,jsxs as tB}from"react/jsx-runtime";import{createContext as rB,useContext as aB}from"react";import{jsx as xr,jsxs as Xg}from"react/jsx-runtime";import{useEffect as Mc,useRef as $A,useState as ya}from"react";import{jsx as Wg}from"react/jsx-runtime";import{createContext as FA,lazy as BK,Suspense as _K,useContext as PA}from"react";var LA={Link:Zd,Image:Xd},OA=FA(LA);function zg(){return PA(OA)}function DK(e){let{Link:o}=zg();return Wg(o,{...e})}function Gg(e){let{Image:o}=zg();return Wg(o,{...e})}import{jsx as Ug,Fragment as RA,jsxs as AA}from"react/jsx-runtime";import{useEffect as BA,useRef as $g,useState as _A}from"react";var DA="#t=0.001",NA=2;function MA(e,o){if(e.readyState<NA||!e.videoWidth||!e.videoHeight)return!1;let t=o.getContext("2d");return t?(o.width=e.videoWidth,o.height=e.videoHeight,t.drawImage(e,0,0,o.width,o.height),!0):!1}function qg({src:e,objectPosition:o="50% 50%",onError:t}){let r=$g(null),a=$g(null),[n,s]=_A(!1);return BA(()=>{let i=r.current,f=a.current;if(n||!i||!f)return;let u=()=>{MA(i,f)&&s(!0)};return u(),i.addEventListener("loadeddata",u),i.addEventListener("seeked",u),()=>{i.removeEventListener("loadeddata",u),i.removeEventListener("seeked",u)}},[n]),AA(RA,{children:[Ug("canvas",{ref:a,"aria-hidden":!0,className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:o,visibility:n?"visible":"hidden"}}),!n&&Ug("video",{ref:r,src:`${e}${DA}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as Kg,imageSrcSet as HA}from"efficient-shell/image-copies";var jg;function Nc(){return jg===void 0?{}:{host:jg}}var GK="(max-width: 800px) 100vw, min(100vw, 1600px)";function Vg(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=HA(e,{...Nc(),...t===void 0?{}:{maxWidth:t}});return r?{src:Kg(e,o,Nc()),srcSet:r}:{src:e}}function UK(e){let o=Kg(e,1920,Nc());return o===e?`url(${e})`:`url("${o}")`}import{formatFocal as WA,parseFocal as zA}from"efficient-shell/format";var GA="sf-focus-phone",UA="--sf-focus-phone";function Yg(e){if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return{className:"",style:{}};let{x:o,y:t}=zA(e);return{className:GA,style:{[UA]:WA(o,t)}}}var qA=.5;function Zg({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:r=qA,objectPosition:a="50% 50%",objectPositionPhone:n,quiet:s=!1}){let i=Yg(n),f=o||"",u=e||"",[p,m]=ya(!1),[x,h]=ya(!1),[b,C]=ya(!1),[k,v]=ya(!1),[w,g]=ya(!1),y=$A(null);Mc(()=>{m(!1),h(!1),C(!1),v(!1)},[e,o]),Mc(()=>{if(typeof window>"u")return;let L=()=>{let B=window;B.requestIdleCallback?B.requestIdleCallback(()=>g(!0),{timeout:2e3}):setTimeout(()=>g(!0),800)};if(document.readyState==="complete"){L();return}return window.addEventListener("load",L,{once:!0}),()=>window.removeEventListener("load",L)},[]),Mc(()=>{let L=y.current;if(!L)return;let B=()=>{L.playbackRate=r};return B(),L.addEventListener("loadedmetadata",B),()=>L.removeEventListener("loadedmetadata",B)},[e,r]);let F=Qd(f),E=f&&F&&!x?Vg(f):{src:f};return Xg("div",{className:"absolute inset-0 z-[1]",children:[xr("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),f&&(F?xr("img",{src:E.src,...E.srcSet?{srcSet:E.srcSet,sizes:"100vw"}:{},alt:"",className:`absolute inset-0 z-[2] h-full w-full object-cover ${i.className}`.trim(),style:{display:p?"none":"block",objectPosition:a,...i.style},onError:()=>E.srcSet?h(!0):m(!0)},f):xr(Gg,{src:f,alt:"",fill:!0,priority:!0,sizes:"100vw",className:`z-[2] object-cover ${i.className}`.trim(),style:{display:p?"none":"block",objectPosition:a,...i.style},onError:()=>m(!0)},f)),t&&!s&&u&&w&&!b&&Xg("video",{ref:y,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:a},onError:()=>C(!0),children:[Jd(u)&&xr("source",{src:u.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),xr("source",{src:u,type:"video/mp4"})]},u),t&&s&&u&&w&&!k&&(!f||p)&&xr(qg,{src:u,objectPosition:a,onError:()=>v(!0)},u)]})}var Qg=["top","middle","bottom"],Jg=["left","center","right"],eb="bottom",ob="left",jA={top:"Top",middle:"Middle",bottom:"Bottom"},KA={left:"Left",center:"Center",right:"Right"};var oV="Up and down",tV="Sideways",VA={top:"flex-start",middle:"center",bottom:"flex-end"},YA={left:"flex-start",center:"center",right:"flex-end"},XA="--sf-hero-phone-y",ZA="--sf-hero-phone-x";function QA(e){return Qg.includes(e)?e:eb}function JA(e){return Jg.includes(e)?e:ob}function tb(e,o){let t=QA(e),r=JA(o),a={};return t!==eb&&(a[XA]=VA[t]),r!==ob&&(a[ZA]=YA[r]),a}function rV(){return Qg.map(e=>({label:jA[e],value:e}))}function aV(){return Jg.map(e=>({label:KA[e],value:e}))}var eB="#0A0A0A",oB=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function rb(e){let o=e.trim().replace(/^#/,""),t=o.length===3?o.split("").map(a=>a+a).join(""):o;if(!/^[0-9a-fA-F]{6}$/.test(t))return null;let r=Number.parseInt(t,16);return`${r>>16&255},${r>>8&255},${r&255}`}function ab(e){return e==null?!0:e!==!1}function nb(e){let o=(e?rb(e):null)??rb(eB);return`linear-gradient(180deg, ${oB.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}var Hc=rB({});function mV({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,objectPosition:s,objectPositionPhone:i,tintColor:f="#000000",tintOpacity:u=0,groups:p,editing:m=!1,themeClassName:x,themeStyle:h}){let{alignment:b="left",textureOpacity:C,textureOn:k,textureColor:v,quietVideo:w,phoneUpDown:g,phoneSideways:y}=aB(Hc),F=t==="video",E=F?Dr(r):void 0,L=F?Dr(n):Dr(r)??Dr(n),B=typeof a=="number"?a/100:1;return tB("section",{className:x?`relative h-full w-full overflow-hidden ${x}`:"relative h-full w-full overflow-hidden",style:h,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":E?"video":"still",children:[Sa(Zg,{videoSrc:E,posterSrc:L,showVideo:F,playbackRate:B,objectPosition:s,objectPositionPhone:F?void 0:i,quiet:w}),u>0&&Sa("div",{className:"absolute inset-0 z-[2]",style:{background:f,opacity:Math.min(Math.max(u,0),100)/100}}),ab(k)&&Sa("div",{className:"absolute inset-0 z-[2]",style:{background:nb(v),...C!==void 0?{opacity:C/100}:null}}),Sa("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",m?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...cp,...tb(g,y)},children:p&&Sa(p,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var lb=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{jsx as Wc}from"react/jsx-runtime";import{UiIcon as mB}from"efficient-easel/draw/client";var nB={"top-left":"left-0 top-[120px]","top-center":"left-1/2 top-[120px] -translate-x-1/2","top-right":"right-0 top-[120px]",left:"left-0 top-1/2 -translate-y-1/2",center:"left-1/2 top-1/2 -translate-x-1/2 -translate-y-1/2",right:"right-0 top-1/2 -translate-y-1/2","bottom-left":"left-0 bottom-[120px]","bottom-center":"left-1/2 bottom-[120px] -translate-x-1/2","bottom-right":"right-0 bottom-[120px]"},lB=`calc(${Ln} - ${$e}*2)`,sb=`var(${Wi},${$e})`,gV=`pointer-events-none absolute inset-y-0 left-[${sb}] right-[${sb}] z-[6] mx-auto max-w-[var(${zi},${lB.replace(/ /g,"_")})]`;function Dl(e,o){return`pointer-events-auto absolute ${nB[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function ib(e){return ho.includes(e)?e:null}var sB="bottom-right",iB=["outline","solid","square","bare"],fB="outline",SV={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},CV=!1,fb=["prev","next"],cb={prev:"Previous slide",next:"Next slide"};function cB(e){return iB.includes(e)?e:fB}function dB(e){return ib(e)??sB}var uB="flex-row items-center gap-2";function db(e){return Dl(dB(e),uB)}var pB={outline:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",solid:"grid h-10 w-10 cursor-pointer place-items-center rounded-full border border-overlay-chrome bg-overlay-chrome text-overlay-scrim transition-colors hover:bg-overlay-chrome/85",square:"grid h-10 w-10 cursor-pointer place-items-center rounded-md border border-overlay-chrome/60 text-overlay-fg transition-colors hover:border-overlay-chrome hover:bg-overlay-scrim/30",bare:"grid h-10 w-10 cursor-pointer place-items-center text-overlay-fg transition-colors hover:text-overlay-chrome"};function ub(e){return pB[cB(e)]}function pb(e){return e.shown===!0&&(e.count??0)>1}function Nl(e,o,t){if(t<=1)return o;let r=Math.min(Math.max(o,0),t-1);return e==="prev"?(r-1+t)%t:(r+1)%t}function mb({shape:e,placement:o,ref:t}){let r=ub(e);return Wc("div",{ref:t,className:db(o),style:{color:"var(--overlay-fg)"},children:fb.map(a=>Wc("button",{type:"button","data-hero-nav":a,"aria-label":cb[a],className:r,children:Wc(mB,{name:"chevron-right",size:18,rounded:!0,style:a==="prev"?{rotate:"180deg"}:void 0})},a))})}import{jsx as ke,jsxs as zc,Fragment as Ir}from"react/jsx-runtime";var xB=ho;var IB="top-right",hB=["cards","dots","numbers","bar","squares","tabs"],gB=["cards","dots","numbers","bar","squares"],xb="cards",LV={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs"},OV=!0;function Ml(e){return hB.includes(e)?e:xb}function Ib(e){return gB.includes(e)?e:xb}function bB(e){return xB.includes(e)?e:IB}var hb={cards:"flex-col gap-2.5",dots:"flex-row items-center gap-2",numbers:"flex-col gap-2",bar:"h-0.5 w-[34%] max-w-[420px] gap-px overflow-hidden rounded-full",squares:"flex-col gap-0",tabs:"flex-row items-stretch w-full overflow-x-auto"};function gb(e,o){return Dl(bB(o),hb[Ml(e)])}function bb(e){return`flex ${hb[Ml(e)]}`}function yb(e){return e.shown!==!1&&(e.count??0)>1}function yB(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function SB(e,o){return e===o?!0:e.length!==o.length?!1:e.every((t,r)=>t.name===o[r].name&&t.process===o[r].process&&t.video===o[r].video)}function Sb(e,o){let t=Array.from(o,yB);return SB(e,t)?e:t}function Cb({slides:e,active:o,shape:t,placement:r,ref:a,tone:n="media",label:s}){let i=Ml(t),f=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--site-surface-2)"}:void 0;return zc("aside",{ref:a,"aria-label":s??"Featured slides",className:n==="surface"?bb(i):gb(i,r),style:{color:"var(--overlay-fg)",...f},children:[i==="cards"&&ke(CB,{slides:e,active:o}),i==="dots"&&ke(vB,{count:e.length,active:o}),i==="numbers"&&ke(wB,{count:e.length,active:o}),i==="bar"&&ke(TB,{count:e.length,active:o}),i==="squares"&&ke(kB,{count:e.length,active:o}),i==="tabs"&&ke(EB,{slides:e,active:o})]})}function CB({slides:e,active:o}){return zc(Ir,{children:[ke("span",{className:"mb-1 font-mono text-[length:var(--size-label,10px)] uppercase tracking-[0.28em] text-overlay-chrome/55",children:"Reel \xB7 pick a slide"}),e.map((t,r)=>{let a=r===o;return zc("button",{type:"button","data-idx":r,"aria-pressed":a,"aria-label":`Go to ${t.name||`slide ${r+1}`}`,className:["group flex w-[170px] cursor-pointer flex-col items-start gap-0.5 border bg-overlay-scrim/55 px-3 py-2.5 text-left transition-all motion-reduce:transition-none max-[1100px]:w-[140px]",a?"border-accent bg-overlay-scrim/70":"border-overlay-chrome/15 hover:border-overlay-chrome/45 hover:bg-overlay-scrim/70"].join(" "),children:[ke("span",{className:["font-display text-[length:var(--size-body,13px)] font-medium uppercase leading-tight tracking-[-0.01em]",a?"text-accent":"text-overlay-fg"].join(" "),children:t.name||`Slide ${r+1}`}),ke("span",{className:"font-mono text-[length:var(--size-label,9px)] uppercase tracking-[0.2em] text-overlay-chrome/55",children:a?"\u25B6 Now playing":t.process||" "})]},r)})]})}function vB({count:e,active:o}){return ke(Ir,{children:Array.from({length:e},(t,r)=>ke("button",{type:"button","data-idx":r,"aria-pressed":r===o,"aria-label":`Go to slide ${r+1}`,className:`h-2 cursor-pointer rounded-full transition-all motion-reduce:transition-none ${r===o?"w-5 bg-accent":"w-2 bg-overlay-chrome/45 hover:bg-overlay-chrome/70"}`},r))})}function wB({count:e,active:o}){return ke(Ir,{children:Array.from({length:e},(t,r)=>ke("button",{type:"button","data-idx":r,"aria-pressed":r===o,"aria-label":`Go to slide ${r+1}`,className:`cursor-pointer font-mono text-[length:var(--size-label,11px)] leading-none tracking-[0.06em] transition-colors ${r===o?"text-overlay-fg":"text-overlay-chrome/45 hover:text-overlay-chrome/80"}`,children:String(r+1).padStart(2,"0")},r))})}function kB({count:e,active:o}){return ke(Ir,{children:Array.from({length:e},(t,r)=>ke("button",{type:"button","data-idx":r,"aria-pressed":r===o,"aria-label":`Go to slide ${r+1}`,className:`grid h-8 w-8 cursor-pointer place-items-center border border-overlay-chrome/25 text-[length:var(--size-label,14px)] font-bold leading-none transition-colors motion-reduce:transition-none ${r===o?"bg-accent text-[color:var(--accent-ink)]":"bg-overlay-scrim/45 text-overlay-chrome/75 hover:text-overlay-chrome"}`,children:r+1},r))})}function TB({count:e,active:o}){return ke(Ir,{children:Array.from({length:e},(t,r)=>ke("button",{type:"button","data-idx":r,"aria-pressed":r===o,"aria-label":`Go to slide ${r+1}`,className:`h-full flex-1 cursor-pointer transition-colors ${r<=o?"bg-overlay-fg":"bg-overlay-chrome/25"}`},r))})}function EB({slides:e,active:o}){return ke(Ir,{children:e.map((t,r)=>{let a=r===o;return ke("button",{type:"button","data-idx":r,"aria-pressed":a,className:["flex min-w-[140px] flex-1 cursor-pointer items-end px-6 py-7 text-left transition-colors",r>0?"border-l border-overlay-chrome/15":"",a?"bg-overlay-scrim/70":"hover:bg-overlay-scrim/40"].join(" "),children:ke("span",{className:["font-heading3 text-[length:var(--size-headingSmall,24px)] font-medium uppercase leading-tight tracking-[-0.02em]",a?"text-overlay-fg":"text-overlay-chrome/55"].join(" "),children:t.name})},r)})})}import{useEffect as FB,useState as PB}from"react";var vb="(prefers-reduced-motion: reduce)";function LB(){return globalThis.window?.matchMedia?.(vb)?.matches??!1}function NV(){return LB()?"auto":"smooth"}function wb(){let[e,o]=PB(!1);return FB(()=>{let t=globalThis.window?.matchMedia?.(vb);if(!t||(o(t.matches),typeof t.addEventListener!="function"))return;let r=a=>o(a.matches);return t.addEventListener("change",r),()=>t.removeEventListener("change",r)},[]),e}var Ca={accent:"#2563eb",accentTint:"#eff6ff",accentText:"#1d4ed8",appBg:"#f9fafb",previewBg:"#f3f4f6",panel:"#ffffff",fieldBg:"#ffffff",inputBorder:"#d1d5db",text:"#111827",text2:"#374151",muted:"#6b7280",line:"#e5e7eb",chipBg:"#f3f4f6",chipFg:"#6b7280",panelRadius:12,rowRadius:8,panelShadow:"0 1px 2px rgba(0,0,0,.05), 0 10px 30px rgba(0,0,0,.06)",topbarShadow:"0 1px 3px rgba(0,0,0,.06)",panelGap:10,leftWidth:288,rightWidth:308,topbarHeight:52,labelFont:"-apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif"};var kb={min:40,max:100,step:5,fallback:100,unit:"vh"};function Gc(e){return`${typeof e=="number"?e:kb.fallback}${kb.unit}`}function Tb(...e){return e.some(o=>typeof o=="number")}import{HEADER_TYPE as Uc,FOOTER_TYPE as OB}from"efficient-easel/draw";var RB=new Set(["Hero","HeroSingle","IntroBleed"]),Eb={min:56,max:140,default:88},GV={min:0,max:120,step:2,default:32},Fb=`var(--sf-header-h, ${Eb.default}px)`,AB="--sf-header-set-h",UV="--sf-header-h",$V=`var(${AB}, ${Eb.default}px)`,qV="sf-header-clearance",jV="sf-sticky-underheader";function BB(e){return e?.find(o=>o?.type&&o.type!==Uc)??null}function Pb(e){let o=BB(e)?.type;return!o||!RB.has(o)}function KV(e){return!Pb(e)}function VV(e){return!!e?.some(o=>o?.type===Uc)}function YV(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Uc||o?.type===OB)}var _B=["auto","shared","own"],DB="auto",NB="topSpace",XV="data-top-space";function MB(e){return _B.includes(e)?e:DB}function HB(e,o){let t=MB(e?.props?.[NB]);return t==="own"?!0:t==="shared"?!1:Pb(o)}function ZV(e,o){return HB(e,o)?"own":null}var WB=40;function zB(e,o){return Math.abs(e)<=WB||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function Lb(e,o,t,r){let a=zB(e,o);return a?Nl(a,t,r):t}function Ob(e){return(e.count??0)>1&&e.editing!==!0}function Rb(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function Ab(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as Bb}from"efficient-easel/draw";var UB=`
7
+ .hero-ticker-pick { cursor: pointer; }
8
+ .hero-ticker-pick:hover {
9
+ outline: 2px solid color-mix(in srgb, ${Ca.accent} 45%, transparent);
10
+ outline-offset: -2px;
11
+ }
12
+ .hero-ticker-pick[data-selected] {
13
+ outline: 2px solid ${Ca.accent};
14
+ outline-offset: -2px;
15
+ }
16
+ `,$B="Play video",qB="Hold video",jB="flex h-7 cursor-pointer items-center gap-1.5 rounded-full border border-overlay-chrome/25 bg-overlay-scrim/80 px-[11px] font-mono text-[11px] leading-none tracking-[0.05em] text-overlay-fg",KB=()=>l("item"),$c=["","","","","",""],_b=new Map;function VB(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(Bb,o),()=>t.removeEventListener(Bb,o)}function yY({slides:e,alignment:o,textureOpacity:t,showTexture:r,textureColor:a,phoneUpDown:n,phoneSideways:s,autoplay:i,autoplayInterval:f,showTicker:u,tickerItems:p,heightDesktop:m,heightMobile:x,showPicker:h,pickerShape:b,pickerPlacement:C,showArrows:k,arrowsShape:v,arrowsPlacement:w,editing:g}){let y=Tb(m,x),F=y?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",E=y?{"--sf-hero-h-d":Gc(m),"--sf-hero-h-m":Gc(x)}:void 0,L=(p??$c.map(N=>({text:N}))).map(N=>N?.text?.trim()?N.text:g?KB():"").filter(Boolean),B=u!==!1,O=Go(null),M=Go(null),re=Go(null),H=Go(null),z=Go(null),A=GB(),oe=Go(A),[Be,Xe]=va([]),[ro,ze]=va(0),_e=Go(0),[Ge,Me]=va(!1),[ve,he]=va(!1),[xe,Ze]=va(null),P=wb(),{selectedHeroId:le,select:X}=Cl(),te=hr(()=>O.current?.querySelector(".hero-track")??null,[]),ae=hr((N,U=!1)=>{ze(N),_e.current=N,_b.set(oe.current,N);let j=O.current?.querySelector(".hero-track");if(j)if(U){let se=j.style.transition;j.style.transition="none",j.style.transform=`translateX(-${Math.max(0,N)*100}%)`,j.offsetHeight,j.style.transition=se}else j.style.transform=`translateX(-${Math.max(0,N)*100}%)`},[]);gr(()=>{let N=O.current,U=N?.getAttribute("data-puck-component")||N?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||A;oe.current=U,Ze(U);let j=_b.get(U);typeof j=="number"&&(ze(j),_e.current=j)},[]),gr(()=>{let N=te();if(!N)return;let U=()=>{Xe(se=>Sb(se,N.querySelectorAll("[data-slide-name]")))};U();let j=new MutationObserver(U);return j.observe(N,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{j.disconnect()}},[te]),gr(()=>{if(!g)return;let N=U=>{let j=U.detail;if(!j||typeof j.index!="number")return;let se=O.current,eo=se?.getAttribute("data-puck-component")||se?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||oe.current;j.id&&j.id!==eo||ae(j.index,!0)};return VB(O.current,N)},[g,ae]);let ue=Be.length,He=Math.min(Math.max(ro,0),Math.max(0,ue-1)),be=yb({shown:h,count:ue}),po=pb({shown:k,count:ue}),Po=Rb({editing:g,shown:He,slides:Be}),qo=Ab({editing:g,playing:ve,controlShown:Po}),Le=Ob({count:ue,editing:g}),jo=Go(null),ct=Go(null),dt=hr(N=>{if(jo.current=null,ct.current=null,!Le||N.touches.length!==1)return;let U=N.touches[0];jo.current={x:U.clientX,y:U.clientY},ct.current={x:U.clientX,y:U.clientY}},[Le]),bs=hr(N=>{if(!jo.current)return;if(N.touches.length!==1){jo.current=null;return}let U=N.touches[0];ct.current={x:U.clientX,y:U.clientY}},[]),Ga=hr(()=>{let N=jo.current,U=ct.current;if(jo.current=null,ct.current=null,!Le||!N||!U)return;let j=Lb(U.x-N.x,U.y-N.y,_e.current,ue);j!==_e.current&&ae(j)},[Le,ue,ae]);gr(()=>{if(g||!i||Ge||P||ue<=1)return;let N=Math.max(1,typeof f=="number"?f:6)*1e3,U=window.setTimeout(()=>ae((He+1)%ue),N);return()=>window.clearTimeout(U)},[g,i,f,Ge,P,ue,He,ae]),gr(()=>{let N=[M.current,re.current,H.current].filter(Boolean),U=N.map(se=>Ol(se)),j=se=>{let eo=se.target,Ko=eo.closest("[data-hero-nav]"),Ua=Ko??eo.closest("[data-idx]");if(!Ua)return;se.stopPropagation(),se.preventDefault();let Mt=Ko?Nl(Ko.dataset.heroNav,_e.current,ue):Number(Ua.dataset.idx);Number.isNaN(Mt)||(ae(Mt,g),te()?.querySelectorAll("[data-slide-name]")[Mt]?.click())};return N.forEach(se=>se.addEventListener("click",j,{capture:!0})),()=>{U.forEach(se=>se?.()),N.forEach(se=>se.removeEventListener("click",j,{capture:!0}))}},[ue,ae,te,g]),gr(()=>{if(!g)return;let N=z.current;if(!N)return;let U=Ol(N),j=se=>{se.stopPropagation(),se.preventDefault();let eo=O.current,Ko=eo?.getAttribute("data-puck-component")||eo?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||oe.current;X(Ko)};return N.addEventListener("click",j,{capture:!0}),()=>{U?.(),N.removeEventListener("click",j,{capture:!0})}},[g,X,B,L.length]);let Br=hr(N=>{if(!N)return;let U=Ol(N),j=se=>{se.stopPropagation(),se.preventDefault(),he(eo=>!eo)};return N.addEventListener("click",j,{capture:!0}),()=>{U?.(),N.removeEventListener("click",j,{capture:!0})}},[]);return ko(Hc.Provider,{value:{alignment:o,textureOpacity:t,textureOn:r,textureColor:a,quietVideo:qo,phoneUpDown:n,phoneSideways:s},children:Hl("div",{ref:O,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${F} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:E,onMouseEnter:()=>Me(!0),onMouseLeave:()=>Me(!1),onTouchStart:dt,onTouchMove:bs,onTouchEnd:Ga,children:[ko(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${He*100}%)`,transition:P?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),Po&&ko("div",{ref:Br,"data-hero-video-control":ve?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Fb} + 16px)`},children:Hl("button",{type:"button",className:jB,children:[ko("span",{"aria-hidden":"true",children:ve?"\u275A\u275A":"\u25B6"}),l(ve?qB:$B)]})}),(be||po)&&Hl("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[be&&ko(Cb,{ref:M,slides:Be,active:He,shape:Ib(b),placement:C}),po&&ko(mb,{ref:H,shape:v,placement:w})]}),be&&ko("div",{ref:re,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:Be.map((N,U)=>ko("button",{type:"button","data-idx":U,"aria-label":`Go to slide ${U+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${U===He?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},U))}),B&&L.length>0&&Hl("div",{ref:z,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${g?" hero-ticker-pick":""}`,"data-selected":g&&xe!=null&&le===xe?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[g&&ko("style",{children:UB}),ko(Hg,{items:L,backdrop:"dark-media"})]})]})})}var t_="root:default-zone";function Db({heroId:e}){let{appState:o,dispatch:t}=QB(p=>p),r=o.data.content??[],a=r.findIndex(p=>p.props.id===e),n=a>=0?r[a]:null,s=n?n.props.showTicker??!0:!0,i=ZB(()=>{let p=n?.props.tickerItems;return Array.isArray(p)?p:$c.map(m=>({text:m}))},[n]),f=XB();if(!n)return br("p",{className:"sf-note",children:l("This ticker\u2019s hero is no longer on the page.")});let u=p=>t({type:"replace",destinationZone:t_,destinationIndex:a,data:{...n,props:{...n.props,...p}}});return YB("div",{children:[br(tr,{label:"Ticker"}),br(JB,{label:l("Show ticker"),labelId:f,icon:br(o_,{}),action:br(e_,{checked:s,onChange:p=>u({showTicker:p}),ariaLabelledBy:f})}),br(af,{label:rf.label,icon:rf.icon,items:i,placeholder:"item",onChange:p=>u({tickerItems:p}),markup:!0})]})}import{jsx as W,Fragment as od,jsxs as To}from"react/jsx-runtime";import{useContext as R_,useEffect as Qc,useRef as A_,useState as ny}from"react";import{FieldSelect as B_,InspectorField as __}from"efficient-easel/fields";import{SettingsField as D_}from"efficient-easel/panel";import{InspectorUpLevel as jl}from"efficient-easel/chrome";import{StylesIcon as N_,TypeIcon as M_}from"efficient-easel/icons";import{useEasel as H_}from"efficient-easel/easel";import{TextPartPanel as W_}from"efficient-easel/copy";import{Tooltip as z_}from"efficient-shell/ui";import{jsx as Yc,jsxs as c_}from"react/jsx-runtime";import{COPY_CELLS as wa,CopyBox as d_}from"efficient-easel/copy";import{PaddingYIcon as u_,WidthIcon as p_}from"efficient-easel/icons";import{useSyncExternalStore as r_}from"react";import{decodePartId as a_}from"efficient-easel/draw";function yr(e,o){let t=hf(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?Jx(t,o.index):null:gf(e)?.[o.rowKey]??null}function Wl(e,o,t){let r=e.node.props,{key:a,row:n}=so(e.propKey),s=n?BI(r,a,n,e.kind,o):RI(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}var n_=["bold","italic","underline","strike","link","sup","sub"],l_=["bullet","number"];function Kc(e,o){return e?[...n_,...o?l_:[]]:[]}function Nb(e,o){let t=a_(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:i,row:f}=so(a),u=o.components[n.type]?.fields?.[i],p=f?yr(u,f):u,m=ar(p);if(!m)return null;let x=n.props??{};if(f&&!(Array.isArray(x[i])&&f.index<x[i].length))return null;let h=f?oa(x[i],f):x[i];return{node:n,selector:s,propKey:a,kind:m,stored:h,offPage:Bn(p)}}function Mb(e,o){let t=Nb(e,o);if(!t||t.offPage)return null;let{text:r,hidden:a}=rt(t.stored);if(a)return null;let n=ol(t.kind);return{partId:e,value:r,rules:jt,multiline:n,offered:Kc(t.kind!=="plainText",n),write:s=>{let i=Nb(e,o);i&&Wl({node:i.node,propKey:i.propKey,kind:i.kind,zone:i.selector.zone,index:i.selector.index},s,o.replace)}}}function Hb(e,o,t){return e?.isConnected&&e.getAttribute(io)===t?e:o?.querySelector(`[${io}="${s_(t)}"]`)??null}function s_(e){return e.replace(/["\\]/g,"\\$&")}function Wb(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var qc=null,jc=new Set;function i_(){return qc}function Vc(e){if(e!==qc){qc=e;for(let o of jc)o()}}function f_(e){return jc.add(e),()=>{jc.delete(e)}}function zb(){return r_(f_,i_,()=>null)}var m_=["left","center","right","justify"];function Xc(e,o,t,r={}){let a=la(e),n=(r.phone?e.sizePhone:void 0)??e.size??o.sizePx;return[r.phone?{...wa.fontSize,value:e.sizePhone,styleValue:Math.round(o.sizePx),onChange:s=>t({sizePhone:s??null})}:{...wa.fontSize,value:e.size,styleValue:Math.round(o.sizePx),onChange:s=>t({size:s??null})},{...wa.lineHeight,value:a.lineHeight,styleValue:o.lineRatio,onChange:s=>t(s===void 0?{lineHeight:null,line:null}:{lineHeight:s})},{...wa.letterSpacing,scale:n,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:s=>t(s===void 0?{letterSpacing:null,letter:null}:{letterSpacing:s})},{...wa.paragraphSpacing,value:e.paragraphSpacing,styleValue:0,onChange:s=>t({paragraphSpacing:s??null})},{key:"padding",name:l("Padding"),icon:Yc(u_,{}),unit:"px",step:Ff,shiftStep:10,min:Tf,max:Ef,value:e.padding,styleValue:o.paddingPx,onChange:s=>t({padding:s??null})},{key:"width",name:l("Width"),icon:Yc(p_,{}),unit:"px",step:Lf,shiftStep:100,min:Pf,max:nt,value:e.width,styleValue:o.widthPx,onChange:s=>t({width:s??null})}]}function Gb({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:i,colors:f,placeholder:u,ariaLabel:p,head:m,typedOnCanvas:x=!1}){let h=Xc(n,s,i),b=Kc(r,t);return c_("div",{className:"sf-part-textbox",children:[m,Yc(d_,{value:e,onChange:o,multiline:t,placeholder:u,ariaLabel:p,rules:jt,tools:b,barShows:x?"focus":"always",colors:r?f:[],align:a?{value:n.align??s.align,allow:m_,onChange:C=>i({align:C})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:C=>i({case:C||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as ly}from"efficient-easel/draw/client";import{jsx as zl,Fragment as x_,jsxs as I_}from"react/jsx-runtime";import{Button as Ub,Dialog as h_}from"efficient-shell/ui";function $b({styleName:e,onCancel:o,onConfirm:t}){return zl(h_,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:l("Update {style}?",{style:e}),footer:I_(x_,{children:[zl(Ub,{variant:"secondary",onClick:o,children:l("Cancel")}),zl(Ub,{variant:"primary",onClick:t,children:l("Update style")})]}),children:zl("p",{children:l("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{usePreviewDevice as G_}from"efficient-easel/draw/client";import{jsx as g_}from"react/jsx-runtime";import{createContext as b_,useContext as y_,useMemo as S_,useState as C_}from"react";var v_={partStyle:null,setPartStyle:()=>{}},qb=b_(v_);function sX({children:e}){let[o,t]=C_(null),r=S_(()=>({partStyle:o,setPartStyle:t}),[o]);return g_(qb.Provider,{value:r,children:e})}function jb(){return y_(qb)}import{TEXT_FIELD_MARKER as U_}from"efficient-easel/draw";var w_="#9ca3af";function k_(e){return fn.map(o=>({key:o,name:kp[o],value:e?.[o]||w_}))}function Gl(e){return k_(e).map(o=>({name:o.key,label:l(o.name),value:o.value}))}function Vb(e){let o={},t=e.ownerDocument,r=t?.defaultView;if(!t||!r)return o;let a=r.getComputedStyle(e),n=t.createElement("canvas").getContext("2d");for(let s of fn){let i=Ao[s].replace(/^var\((--[\w-]+)\)$/,"$1"),f=a.getPropertyValue(i).trim();if(!f)continue;let u=Kb(f);!u&&n&&(n.fillStyle="#000000",n.fillStyle=f,u=Kb(String(n.fillStyle))),u&&(o[s]=u)}return o}function Kb(e){let o=e.trim().toLowerCase();if(/^#[0-9a-f]{6}$/.test(o))return o;if(/^#[0-9a-f]{3}$/.test(o))return`#${[...o.slice(1)].map(r=>r+r).join("")}`;let t=o.match(/^rgba?\(\s*(\d+)[\s,]+(\d+)[\s,]+(\d+)/);return t?`#${t.slice(1,4).map(r=>Math.min(255,Number(r)).toString(16).padStart(2,"0")).join("")}`:null}function T_(e){let o=new Set([...Object.keys(un[e]??{}),...pn[e]??[]]);for(let[t,r]of Object.entries(si[e]??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var E_={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},Yb={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},Xb="Open",Zb={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 ka(e){let o=e?.source?.slug;return typeof o=="string"&&o.length>0?o:void 0}function Ta(e){return E_[e]??null}function Qb(e,o){let t=Ta(e);return t&&T_(e).includes(o)?t:null}function Ul(e){let o=e?.menu?.id;return typeof o=="string"&&o.length>0?o:void 0}var $l="data-sf-spec-region";function xX(e,o,t){if(!e)return;let r=t[e];if(r)return{fontFamily:`var(--font-role-${e})`,fontSize:`var(--size-${r}, ${o.builtIn})`}}function Sr(e){let o=/var\(--size-[A-Za-z]+, ?([0-9.]+px)\)/.exec(e);if(!o)throw new Error(`builtInOf: no --size-* fallback in ${e}`);return o[1]}function F_(e){return`@${e}`}function Zc(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function Jb(e,o){return o&&o in e?o:null}function P_(e,o){let t=o?.closest(`[${$l}]`)?.getAttribute($l);return Jb(e,t??null)}var Ea={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-[800px]: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)]"},L_={tag:{label:"Tag",follows:"Labels",builtIn:Sr(Ea.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Sr(Ea.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Sr(Ea.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Sr(Ea.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Sr(Ea.link),writable:!0}},ey=L_;var O_={number:{label:"Number",follows:"Labels",builtIn:"14px",writable:!0},question:{label:"Question",follows:"Body",builtIn:"18px",writable:!0},answer:{label:"Answer",follows:"Body",builtIn:"15px",writable:!0}},oy=O_;var CX=$l;var ty={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 ry={SpecTable:ty,FAQ:oy,Collections:ey};function ay(e){return e&&Object.hasOwn(ry,e)?ry[e]:null}function ed(e){return e?l(e):null}function sy(e){return e.kind==="role"?$a[e.role]:e.kind==="custom"?"Custom":null}function $_(e){let o=e.role;return o&&Lo.includes(o)?{kind:"role",role:o}:null}function q_(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 Jc(e,o,t,r){return $_(fl(e,o))??q_(t,r)}function j_(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}var ql="";function K_({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:ql,a=[{label:l("No style"),value:ql},...Lo.map(n=>({label:l($a[n]),value:n}))];return W(B_,{ariaLabel:l("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===ql?null:n),renderOption:n=>n.value===ql?To(od,{children:[W("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),W("span",{className:"sf-part-style-aside","aria-hidden":"true",children:l("Section\u2019s own")})]}):W("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>W("span",{style:{fontFamily:o?.fontKey?`var(${Ht(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:ed(sy(e))}),valueText:n=>ed(sy(e))??n?.label??""})}function V_({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a}){return To("div",{className:"sf-part-panel",children:[W(jl,{inline:!0,name:l(e),onSelect:o}),t,r,a]})}function Kl({source:e,slug:o,menuId:t}){let r=Kt(),a=Zb[e],n=!a.needsSlug||!!o;return W("div",{className:"sf-note sf-note--source",children:To("p",{className:"es-field-hint sf-hint-keep",children:[l(Yb[e]),n?To(od,{children:[" ",W("button",{type:"button",className:"sf-source-open",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:l(Xb)})]}):null]})})}var iy=4,Y_=120;function X_({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:i}){let f=e.follows;return To("div",{className:"sf-note",children:[W("p",{children:W("strong",{children:l(e.label)})}),W("p",{children:o?l("Its size follows Site styles \u25B8 {follows} \u2014 {px}px right now.",{follows:l(f),px:Math.round(o)}):l("Its size follows Site styles \u25B8 {follows}.",{follows:l(f)})}),a?W(od,{children:W(D_,{label:l("Style"),icon:W(N_,{}),hint:l("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:l(e.label).toLowerCase()}),children:W(K_,{face:t,base:r,onPick:a})})}):W("p",{className:"es-field-hint sf-hint-keep",children:l("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n?W(Kl,{source:n,slug:s}):null,W(jl,{inline:!0,name:l("Page"),onSelect:i})]})}function Z_({onBack:e}){return To("div",{className:"sf-note",children:[W("p",{children:W("strong",{children:l("This part is no longer here.")})}),W("p",{children:l("The section it belonged to has been changed or removed.")}),W(jl,{inline:!0,name:l("Page"),onSelect:e})]})}function Q_({onBack:e,partId:o,why:t}){return To("div",{className:"sf-note",children:[W("p",{children:W("strong",{children:l("This part's settings did not open.")})}),W("p",{children:l("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.")}),W("p",{className:"sf-note-detail",children:To("code",{children:[o," \u2014 ",t]})}),W(jl,{inline:!0,name:l("Page"),onSelect:e})]})}function fy({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=H_(D=>D),i=Yo(),f=zb(),{partStyle:u}=jb(),{fonts:p,textStyles:m}=$(),x=R_($t),h=!x?.capabilities?.hasSiteTheme,{persist:b}=Vt({themeFromDocument:h,tokenRef:x?.tokenRef,siteId:x?.siteId??null}),C=dl({themeFromDocument:h,persist:b}),[k,v]=ny(!1),w=G_()==="mobile",g=A_(null),y=a(e),F=n(e),E=y?s.components[y.type]:void 0,{key:L,row:B}=so(o),O=E?.fields?.[L],M=B?yr(O,B):O,re=nl(e,o),H=y?.props??{},z=ar(M),A=Bn(M),oe=zI(M),Be=y?Ta(y.type):null,Xe=y?Qb(y.type,L):null,ro=B?oa(H[L],B):H[L],ze=!!B&&!(Array.isArray(H[L])&&B.index<H[L].length);Qc(()=>{Wb(document)||g.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[re]);let[_e,Ge]=ny(0);Qc(()=>Ge(0),[re]);let Me=!!y&&!ze&&(!F||!M);Qc(()=>{if(!Me||_e>=iy)return;let D=setTimeout(()=>Ge(Te=>Te+1),Y_);return()=>clearTimeout(D)},[Me,_e]);let ve=Me&&_e<iy;if(!y||ze)return W(Z_,{onBack:t});let he=ay(y.type),xe=he?Zc(he,o):null;if(he&&xe){let D=u?.partId===re?u:null,Te=he[xe],mo=Te.writable===!0&&!!F,_r=Ss=>{F&&i.replaceComponent(F.zone,F.index,{...y,props:na(H,o,"role",Ss)})};return W(X_,{region:Te,sizePx:D?.base.sizePx??null,face:Jc(H,o,D,p),base:D?.base??null,onFollowStyle:mo?_r:void 0,source:Be,slug:ka(H),onBack:t})}if(!F||!M)return ve?W("div",{className:"sf-note","aria-busy":"true"}):W(Q_,{onBack:t,partId:re,why:F?"no field":"no selector"});let Ze=D=>{i.replaceComponent(F.zone,F.index,{...y,props:D})},P=D=>{if(rt(D).hidden!==rt(ro).hidden||!z){let Te=B?bf(H,L,B,D):{...H,[L]:D};Te&&Ze(Te);return}Wl({node:y,propKey:o,kind:z,zone:F.zone,index:F.index},rt(D).text,i.replaceComponent)},le=ro,X=u?.partId===re?u:null,te=X?.styleOwner,ae=te?a(te.owner):null,ue=te&&ae?n(te.owner):null,He=!!(te&&ae&&ue),be=He?ae.props??{}:H,po=He?D=>i.replaceComponent(ue.zone,ue.index,{...ae,props:D}):Ze,Po=He?te.kind:Rl(y?.type,o),qo=fl(be,Po),Le=[{partKey:Po,face:Jc(be,Po,X,p),sizeGroup:X?.sizeGroup??null,base:X?.base??eD,style:qo}],jo=j_(Le,D=>D.sizeGroup),ct=Gl(X?.inks),dt=(D,Te)=>{let mo=be;for(let _r of Le)mo=na(mo,_r.partKey,D,Te);po(mo)},bs=D=>dt("role",D),Ga=D=>{let Te=be;for(let mo of Le)for(let[_r,Ss]of Object.entries(D))Te=na(Te,mo.partKey,_r,Ss??null);po(Te)},Br=z==="text"||z==="textarea",{text:N,hidden:U}=rt(ro),j=M?.[U_]?.label??o,se=U?l("Show {label} on the slide",{label:l(j)}):l("Hide {label} on the slide",{label:l(j)}),eo=To("div",{className:"sf-field-head",children:[W(M_,{}),W("span",{className:"sf-field-label sf-field-label--inline",children:l(j)}),Br&&W(z_,{content:se,children:W("button",{type:"button",className:"sf-field-eye","aria-pressed":U,"aria-label":se,onClick:()=>P({text:N,hidden:!U}),children:U?W(ly,{name:"eye-off",size:14}):W(ly,{name:"eye",size:14})})})]}),Ko=!A&&oe,Ua=!!z&&(Hx(M)||A||U||!oe),Mt=Jc(be,Po,X,p),ys=Mt.kind==="role"?Mt.role:null,JC=Object.entries(qo).filter(([D,Te])=>D!=="role"&&Te!==void 0).length,ev=()=>{let D=be;for(let Te of Le){let mo=Te.style.role;D=oh(D,Te.partKey),mo&&(D=na(D,Te.partKey,"role",mo))}po(D)},ut=Mf(ys),ov=uh(Le[0].style),tv=ut?lt(C.saved,C.old).find(D=>D.id===ut)?.name??ut:"",rv=()=>{v(!1),ut&&(C.write(ph({saved:C.saved,old:C.old,styleId:ut,values:Hf(Le[0].style)}),!0),ev())};return To(V_,{sectionName:E?.label??y.type,onBack:t,textEditor:W("div",{ref:g,className:"sf-part-text",children:Ua?W(Gb,{text:N,onTextChange:D=>P(Br?{text:D,hidden:U}:D),multiline:ol(z),markup:z!=="plainText",styled:!1,style:Le[0].style,base:Le[0].base,setValue:Ga,colors:ct,placeholder:ed(OI(M))??void 0,ariaLabel:l(j),head:eo,typedOnCanvas:f===re}):z?Br?eo:null:W(__,{field:M,name:o,value:le,onChange:P,id:`sf-part-${e}-${o}`})}),children:[Xe&&W(Kl,{source:Xe,slug:ka(H),menuId:Ul(H)}),Ko&&W(W_,{style:{value:ys??"",options:[{value:"",label:l("No style"),description:l("Section\u2019s own")},...Lo.map(D=>({value:D,label:l($a[D]),description:Ht(p[D])?.label}))],onChange:D=>bs(D||null),changed:JC>0,onEditStyles:r,onUpdateStyle:ut&&ov?()=>v(!0):void 0},font:{value:qo.font??"",styleValue:Ht(Le[0].base.fontKey)?.label,options:no.map(D=>({label:D.label,value:D.key})),onChange:D=>dt("font",D||null)},italic:{value:qo.italic,styleValue:J_(m,ys),onChange:D=>dt("italic",D??null)},cells:Xc(Le[0].style,Le[0].base,Ga,{phone:w}),align:{value:qo.align??"",styleValue:Le[0].base.align,onChange:D=>dt("align",D||null)},letterCase:{value:qo.case??"",styleValue:Le[0].base.case,onChange:D=>dt("case",D||null)}}),k&&ut&&W($b,{styleName:tv,onCancel:()=>v(!1),onConfirm:rv}),Ko&&jo===null&&W("p",{className:"es-field-hint sf-hint-keep",children:l("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")})]})}function J_(e,o){let t=Mf(o);return!t||!Array.isArray(e)?!1:e.find(r=>r?.id===t)?.values?.italic===!0}var eD={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:nt};import{jsx as co,jsxs as td,Fragment as oD}from"react/jsx-runtime";import{useCallback as tD,useRef as rD,useState as Fa}from"react";import{InspectorIconButton as aD}from"efficient-easel/chrome";import{PopupMenu as nD,PopupMenuItem as lD,PopupMenuLabel as Vl}from"efficient-shell/ui";import{CopyToPageIcon as sD}from"efficient-easel/icons";import{cloneNodeWithFreshIds as cy,docToNode as pZ,nodeToDoc as mZ}from"efficient-easel/screen/lib/puck/section-doc";import{FOOTER_TYPE as iD}from"efficient-easel/draw";function dy({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=Fa(!1),[f,u]=Fa(null),p=De(),[m,x]=Fa(!1),[h,b]=Fa(null),C=rD(null),[k,v]=Fa(null),w=tD(async()=>{if(p.usesBridgedToken&&!r.current){x(!0);return}try{u(await Ue(p).pages.list(t?{siteId:t}:void 0))}catch{x(!0)}},[r,t,p]),g=()=>{if(s){i(!1);return}let E=C.current?.getBoundingClientRect();E&&v({top:E.bottom+6,right:Math.max(8,window.innerWidth-E.right)}),u(null),x(!1),w(),i(!0)},y=(f??[]).filter(E=>E.slug!==o),F=async E=>{if(h)return;b(E.slug);let L=cy(e),B=p.documentHooks?.storedNode?.(L)??L,O=Ue(p).pages,M=await a(async()=>{let re=await O.load({id:E.id});if(!re)throw new Error(`Page "${E.slug}" no longer exists.`);let H=re.layout??{},z=Array.isArray(H.content)?[...H.content]:[],A=z.findIndex(oe=>oe?.type===iD);z.splice(A===-1?z.length:A,0,B),await O.save(E.id,{layout:{root:{},zones:{},...H,content:z}},{version:re.version,clientId:""})});b(null),i(!1),n?.(M?l("Duplicated to \u201C{name}\u201D",{name:E.label}):l("Couldn\u2019t duplicate the section \u2014 please retry"),M?"success":"error")};return td(oD,{children:[co("span",{"data-menu-toggle":!0,style:{display:"contents"},children:co(aD,{buttonRef:C,label:l("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:co(sD,{size:15})})}),s&&k&&co(nD,{portal:!0,style:{top:k.top,right:k.right},onClose:()=>i(!1),children:td("div",{role:"menu","aria-label":l("Duplicate to page"),children:[co(Vl,{children:l("Duplicate to page")}),m?co(Vl,{children:l("Couldn\u2019t load pages")}):f===null?co(Vl,{children:l("Loading\u2026")}):y.length===0?co(Vl,{children:l("No other pages")}):y.map(E=>td(lD,{role:"menuitem",disabled:h!==null,onClick:()=>{F(E)},children:[co("span",{className:"min-w-0 flex-1 truncate",children:E.label}),h===E.slug?co("span",{className:"shrink-0 text-xs",children:l("Copying\u2026")}):E.draft&&co("span",{className:"shrink-0 text-xs",children:l("draft")})]},E.id))]})})]})}import{ScreenPartsProvider as FZ,sameInspectorMode as PZ,SELECTION_MODE as uy,useScreenParts as LZ,useScreenBlockLook as OZ,useScreenBlockRules as RZ,useScreenBridges as AZ,useScreenCanvasFrame as BZ,useScreenDevices as _Z,useScreenDocumentPass as DZ,useScreenInspectorPanel as NZ,useScreenLeftView as MZ,useScreenOwnerName as HZ,useScreenPinned as WZ,useStandaloneScreenBridges as zZ}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as sN}from"efficient-easel/draw/client";import{jsx as Pa,jsxs as fD}from"react/jsx-runtime";import{SettingsDrill as cD}from"efficient-easel/panel";import{UiIcon as dD}from"efficient-easel/draw/client";var uD="Not shown on the page";function pD({part:e,onOpen:o}){return Pa(cD,{name:l(e.label),preview:e.offPage?l(uD):e.preview||l("Empty"),offPage:e.offPage,status:e.hidden?Pa("span",{className:"sf-entry-eye",role:"img","aria-label":l("Hidden on the page"),children:Pa(dD,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function rd(e){return e.filter(o=>!o.identifier)}function py({parts:e,onOpen:o,heading:t=!0}){let r=rd(e);return r.length?fD("div",{className:"sf-entries",children:[t?Pa("h3",{className:"sf-entries-head",children:l("Text")}):null,r.map(a=>Pa(pD,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as iN,ROOT_ZONE as Zy}from"efficient-easel/draw";import{HEADER_TYPE as Ve,FOOTER_TYPE as pe,newNodeId as mD}from"efficient-easel/draw";function Yl(){return{type:Ve,props:{id:mD(Ve)}}}var my=[{type:"FooterLogo",label:"Logo"},{type:"FooterMenu",label:"Menu"},{type:"FooterText",label:"Text"},{type:"FooterEmailSignup",label:"Email Form"},{type:"FooterSocial",label:"Social Logos"},{type:"FooterGroup",label:"Footer Box"},{type:"FooterDivider",label:"Divider"}],xD=my.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),ID="FooterGroup",xy="blocks";function Iy(e){return e===pe?my:e===ID?xD:null}function Xl(){let e=(o,t)=>({type:o,props:{id:`${o}-${crypto.randomUUID()}`,...t}});return[e("FooterLogo",{widthPct:100,align:"left",tagline:""}),e("FooterGroup",{direction:"vertical",align:"start",blocks:[e("FooterText",{text:"Join our email list",size:"md",tone:"default"}),e("FooterEmailSignup",{heading:"",placeholder:"Email address",buttonLabel:"Subscribe"})]})]}var Ne="SiteHeader",de="SiteFooter",ad="sections",XZ=[Ne,de],Cr=e=>e===Ne||e===de,hy=e=>`${e}:${ad}`;function gy(e,o,t=[]){return{type:e,props:{id:o,[ad]:t}}}var hD=new Set(["Footer",Ne,de]);function vr(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):hD.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function by(e,o){return e.some(t=>t?.type===o.type)?e:o.type===Ne?[o,...e]:[...e,o]}var yy={[Ne]:{max:3,takes:["Flex","Ticker"]},[de]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function Sy(e,o,t){if(!Cr(e))return!0;let r=yy[e];return t<r.max&&r.takes.includes(o)}function Cy(e,o){let t=o,r=t?.props?.id;if(r==null)return null;let a=e?.content;if(!Array.isArray(a))return null;for(let n of a){if(!Cr(n?.type))continue;let s=n.props?.[ad];if(!Array.isArray(s)||!s.some(f=>f?.props?.id===r))continue;let i=yy[n.type];return i.takes.includes(t?.type??"")?s.length>=i.max?{group:n.type,why:"full"}:null:{group:n.type,why:"type"}}return null}function vy(e){switch(e?.type){case Ne:return l("Header \xB7 on every page");case de:return l("Footer \xB7 on every page");case Ve:return l("Header \xB7 on every page \xB7 old style");case pe:return l("Footer \xB7 on every page \xB7 old style");default:return null}}var wy=()=>l("Every page"),ky=()=>l("Changed on every page");function Zl(e,o){let t=ap(e,o);if(t)return t;let r=Cy(e,o);if(!r)return null;let a=r.group===Ne;return r.why==="type"?a?l("The header cannot take another one of these"):l("The footer cannot take another one of these"):a?l("The header holds at most 3 sections"):l("The footer holds at most 6 sections")}import{jsx as es,Fragment as TD,jsxs as ED}from"react/jsx-runtime";import{useState as FD}from"react";import{createNode as PD,newId as LD}from"efficient-easel/data";import{useEasel as OD}from"efficient-easel/easel";import{Banner as RD,Button as nd}from"efficient-shell/ui";var Ql="Flex",gD={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},bD=e=>{let{id:o,...t}=e;return t},Ty=e=>typeof e=="string"?e:"",Jl=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0,Ey={sm:12,md:13,lg:15},yD="md",Fy=1.5,SD={size:13,lineHeight:Fy,width:280},CD=14,vD=40,wD=e=>e==="center"||e==="right"?e:"left";function kD(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=Jl(e[r]);n&&(o[a]=n)}return o}function Py(e,o){let t=e.props??{},r=gD[e.type];if(r)return[o(r,bD(t))];switch(e.type){case"FooterLogo":{let a=wD(t.align),n=o("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(Cu*((Jl(t.widthPct)??100)/100)),href:"/",align:a,...kD(t)}),s=Ty(t.tagline).trim();return s?[n,o("Text",{text:s,tone:"dim",align:a,_partStyles:{text:{...SD}}})]:[n]}case"FooterText":{let a=typeof t.size=="string"&&t.size in Ey?t.size:yD;return[o("Text",{text:Ty(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:Ey[a],lineHeight:Fy}}})]}case"FooterDivider":{let a=Jl(t.thickness),n=Jl(t.lengthPct);return[o("Divider",{...a!==void 0?{thickness:a}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{hideOnMobile:!0}:{}})]}case"FooterGroup":{let a=Array.isArray(t.blocks)?t.blocks:[];return[o(Ql,{direction:t.direction==="horizontal"?"row":"column",gap:Yr("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"?t.align:"start",content:a.flatMap(n=>Py(n,o))})]}default:return[]}}function La(e,o,t){let r=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],a=u=>o(Ql,{direction:"row",wrap:!0,share:"equal",gap:vD,content:u}),n=[],s=[];for(let u of r){let p=Py(u,o);if(u.type==="FooterDivider"){s.length&&n.push(a(s)),s=[],n.push(...p);continue}p.length<=1?s.push(...p):s.push(o(Ql,{direction:"column",gap:CD,align:"stretch",content:p}))}(s.length||!n.length)&&n.push(a(s));let i=o(Ql,{direction:"column",content:[o("LegalLineBlock")]}),f=gy(de,t,[...n,i]);return{...f,props:{...f.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}function Ly(){let{appState:e,dispatch:o,config:t}=OD(p=>p),{readOnly:r}=ye(),[a,n]=FD(!1),s=e.data.content;if(r||s.some(p=>p.type===de))return null;let i=s.find(p=>p.type===pe)??null,f=(p,m)=>PD(t,p,m),u=()=>{let p=La(i,f,LD(de));o({type:"setData",data:m=>({...m,content:[...by(m.content,p)]}),recordHistory:!0}),n(!1)};return es(RD,{tone:"info",title:l("This footer uses the old layout"),action:a?ED(TD,{children:[es(nd,{variant:"primary",size:"sm",onClick:u,children:l("Switch now")}),es(nd,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:l("Cancel")})]}):es(nd,{variant:"secondary",size:"sm",onClick:()=>n(!0),children:l("Switch to Box footer")}),children:l("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 md}from"react/jsx-runtime";import{useLayoutEffect as KD,useMemo as jy,useRef as VD,useState as ud}from"react";import{useEasel as YD,useSelectedFields as XD}from"efficient-easel/easel";import{Inspector as ZD,planFields as Ky}from"efficient-easel/fields";import{jsx as wr}from"react/jsx-runtime";import{usePreviewDevice as AD}from"efficient-easel/draw/client";var ld=e=>l(Qt[e==="content"?"page":"full"]),Oy=e=>`${e} ${l("from Site styles")}`;function Ry(){let{siteWidth:e,sectionBackgroundWidth:o,sectionContentWidth:t}=$();return{px:typeof e=="number"?e:Se.default,background:o??"full",content:t??"content"}}function Ay(){try{return AD()==="mobile"}catch{return!1}}function BD({type:e,onChange:o}){let t=wo(),r=Ry(),a=Ay(),n=ji(e,t).background;return wr(Jn,{value:n??r.background,changed:n!==null,detail:Oy(ld(r.background)),onChange:s=>o(s),onReset:()=>o(Zr),disabled:a})}function _D({type:e,onChange:o}){let t=wo(),[,r]=Mn("contentMax"),a=Ry(),n=Ay(),s=ji(e,t),i=(s.background??a.background)==="content",f=s.content??a.content;return wr(el,{mode:i&&f==="full"?"content":f,px:s.contentMax??a.px,max:i?a.px:Se.max,changed:s.content!==null,detail:Oy(a.content==="full"?ld("full"):`${ld("content")} ${a.px}px`),fullClosed:i,disabled:n,hint:n?FI:i?kI:void 0,onMode:u=>{o(u),u==="full"&&r(null)},onPx:u=>{o("content"),r(u===a.px?null:u)},onReset:()=>{o(Zr),r(null)}})}function DD(e){return at({_gWidth:Re(Qn),backgroundWidth:{type:"custom",render:({onChange:o})=>wr(BD,{type:e,onChange:o})},contentWidth:{type:"custom",render:({onChange:o})=>wr(_D,{type:e,onChange:o})},contentMax:{...Xo({type:"custom",render:()=>wr(Bo,{})},"always"),reachedBy:"contentWidth"},widthMode:{...Xo({type:"custom",render:()=>wr(Bo,{})},"always"),reachedBy:"backgroundWidth"}})}var By=Object.keys(DD(""));import{DESIGN_GROUPS as id,SETTINGS_BUCKETS as ND}from"efficient-easel/panel";import{BUCKET_KEY as Ye,DESIGN_GROUP_KEY as kr}from"efficient-easel/screen/lib/puck/field-buckets";var Oa=ND;var MD="Editor only \u2014 not shown live",fd={"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",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"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",Search:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Texture:"Design","Text style":"Design",Motion:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Controls:"Layout",Diagram:"Layout",[MD]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",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",Height:"Size"},Dy={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},Ny={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function sd(e,o,t){let r=`${e}.${o}`;return Ny[r]??Dy[r]??fd[t]}function My(e){return e==="Animation"?[Ye.Animation]:[Ye.Design,kr[e]]}function os(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=ni(r),n=Ho(a?a.inner:r),s=n?fd[n.label]:void 0;if(s)for(let i of My(s))o.includes(i)||o.push(i)}return o}var _Q=[...os(zn(),Gn("full"),Un(),$n(),of()),...Object.keys(zn()),...Object.keys(Gn("full")),...Object.keys(Un()),...Object.keys($n()),...Object.keys(of()),...By],DQ=[...os(Dn()),...Object.keys(Dn())],NQ=[...os(Hn()),...Object.keys(Hn())],MQ=[...os(Wn()),...Object.keys(Wn())],HD=Object.keys(eI()),WD=new Set(["cardImage","imageBackground"]),HQ=[...My(sd("ProductGrid","_gCards","Cards")??"Design"),...HD.filter(e=>e.startsWith("_g")||WD.has(e))],WQ=Object.keys(oI()),zQ=Object.keys(tI({bottomDefault:!0})),zD={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","EmailFormBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","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)","BrandStrip._gContent":"duplicated the Content bucket header above it (66338)","BrandStrip._gStyle":"duplicated the Style bucket header above it (66338)","BrandStrip._gLayout":"duplicated the Layout bucket header above it (66338)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","ParagraphsA._gStyle":"duplicated the Style bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},Hy={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},Wy={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...zn(),...Gn("full"),...Un(),...$n(),...Dn(),...Hn(),...Wn()};for(let o of Object.keys(Wy)){let t=Ho(e[o]),r=t?fd[t.label]:void 0;if(!t||t.level!==2||!r||!Hy[r].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/puck/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 GD=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),UD=new Map([[Ye.Design,"Content"],[Ye.Animation,"Animation"],...id.map(e=>[kr[e],e])]);function zy(e){let o=new Set([...Object.values(Ye),kr.Content]);for(let[t,r]of Object.entries(e))if(!o.has(t)&&Ho(r)?.level===1)return 1;return 2}function $D(e){let o=`${e}.`;return Object.keys(zD).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function qD(e,o){let t=ni(e),r=Re(o);return t?we(t.tier,r):r}function jD(e,o){let t=Ho(o);return t?e==="Content"||e==="Animation"?Ux(o,t.label):$x(o):o}function _y(e){return e==="Design"?id:["Animation"]}function GQ(e,o){let t=[],r=new Set($D(o)),a=new Set,n=!1,s=null;for(let[x,h]of Object.entries(e)){let b=Ho(h);if(GD.has(x))throw new Error(`${o}.${x}: that key was a tab header until efficient-web-builder 11.0.0, when the panel moved to two tabs (Design \xB7 Animation). Its tab is gone, so the key may not come back. Give the heading a key of the section's own (\`_g\u2026\`), or open a Design group with its own key (\`_dDesign: section("Design")\`, \`_dLayout: section("Layout")\`).`);let C=UD.get(x);if(C!==void 0){if(b?.level!==1)throw new Error(`${o}.${x}: that key is reserved for the ${C} heading of the settings panel, but this field is ${b?`a level-${b.level} "${b.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(x===Ye.Design||x===Ye.Animation)&&(n=!0),t.push(s={place:C,entries:[],adopted:!0});continue}if(!b){s||t.push(s={place:"Content",entries:[]}),s.entries.push([x,h]);continue}if(r.has(x)||x in Wy){let v=sd(o,x,b.label);if(b.level!==2||!v||!Hy[v].includes(b.label))throw new Error(`${o}.${x}: ${r.has(x)?"RETIRED":"INJECTED_RETIRED"} (lib/puck/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${b.level} "${b.label}" header in the ${v??"(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(x)&&a.add(x),t.push(s={place:v,entries:[]});continue}let k=sd(o,x,b.label);if(!k)throw new Error(`${o}.${x}: the inspector group "${b.label}" is not classified in LABEL_GROUP (lib/puck/field-groups.ts), so there is no way to say which of ${[...id,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:k,entries:[[x,b.level===2?h:qD(h,b.label)]]})}let i=new Set(Object.entries(e).filter(([,x])=>Ho(x)).map(([x])=>x));for(let[x,h]of[["BLOCK_KEY_GROUP",Ny],["KEY_GROUP",Dy]]){let b=Object.keys(h).filter(C=>C.startsWith(`${o}.`)).filter(C=>!i.has(C.slice(o.length+1)));if(b.length)throw new Error(`${o}: ${x} (lib/puck/field-groups.ts) lists ${JSON.stringify(b)}, 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 f=n?[]:[...r].filter(x=>!a.has(x));if(f.length)throw new Error(`${o}: RETIRED (lib/puck/field-groups.ts) lists ${JSON.stringify(f)}, but this section has no such fold header${f.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 u=new Set(t.filter(x=>x.entries.length>0).map(x=>x.place)),p=Oa.filter(x=>_y(x).some(h=>u.has(h))),m={};for(let x of p){m[Ye[x]]=_n(x,x===p[0]?p:null);for(let h of _y(x)){if(!u.has(h))continue;let b=t.filter(k=>k.place===h),C=b.findIndex(k=>k.adopted);C>0&&b.unshift(...b.splice(C,1)),x==="Design"&&(m[kr[h]]=Qi(h));for(let k of b)for(let[v,w]of k.entries)m[v]=jD(h,w)}}return m}function UQ(e){return Ye.Design in e?e:{[Ye.Design]:_n("Design",null),[kr.Content]:Qi("Content"),...e}}function $Q(e){return Oa.some(o=>Ye[o]in e)}function qQ(e){let o=Oa.filter(r=>Ye[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Ye[r]]=_n(r,r===o[0]?o:null);return t}import{usePreviewDevice as QD}from"efficient-easel/draw/client";var cd=" text",Gy="Text";function dd(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function Uy(e){return e.filter(dd).map(o=>o.key)}function $y(e,o){let t=null;for(let r of o){let a=e[r];!a||a.marker!==!0||typeof a.fold!="string"||(t??={...e},t[r]={...a,fold:!1})}return t??e}function qy(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var pd=new Map,ts=new Set;function JD(e,o){let t=new Map;for(let a of e.querySelectorAll(".es-insp-row[data-field]"))t.set(a.getAttribute("data-field")??"",a);let r=[];for(let[a,n]of o)r.push({key:a,rows:n.map(s=>{let i=t.get(s),f=!!i&&[...i.children].some(p=>!p.hidden),u=i?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:f,labelled:f&&!!u}})});return r}var eN=Object.fromEntries(Oa.map(e=>{let o=Wx[e];return[e,md(o,{},e)]}));function Ra({entries:e,entryCount:o=0,part:t=null}){let{id:r,fields:a,values:n,readOnly:s,onChange:i}=XD(),f=QD(),{appState:u,config:p}=YD(z=>z),m=Zh(f,p,u.data.content??[],u.ui.itemSelector),x=tg(a,t),h=Xh(x,n,m),[b,C]=ud(()=>new Set(ts)),[k,v]=ud(()=>new Set),w=VD(null),g=jy(()=>{let z=new Map;for(let A of Ky(h).rows){if(!A.fold)continue;let oe=z.get(A.fold.key)??[];oe.push(A.name),z.set(A.fold.key,oe)}return z},[h]);KD(()=>{let z=w.current?.parentElement;if(!z)return;let A=new Set(Uy(JD(z,g)));v(oe=>qy(oe,A)?oe:A)});let y=jy(()=>$y(h,k),[h,k]),F={key:cd,rows:Array.from({length:o},()=>({shown:!0,labelled:!0}))},E=dd(F)?void 0:{key:cd,title:Gy},[L,B]=ud(()=>pd.get(r)),O=pd.get(r),M=Ky(h).buckets,re=O&&M.includes(O)?O:L&&M.includes(L)?L:M[0],H=re===void 0||zx(M,re)!==!0;return md(ZD,{fields:y,values:n,onChange:i,readOnly:s,showWhenContext:{...m,node:n},tab:re,onTab:z=>{pd.set(r,z),B(z)},tabIcons:eN,idPrefix:r,ariaLabel:l("Section settings"),lead:H?e:null,leadFold:E,closedFolds:b,onFold:(z,A)=>{A?ts.delete(z):ts.add(z),C(new Set(ts))},children:md("span",{ref:w,hidden:!0})})}import{jsx as xd,jsxs as oN}from"react/jsx-runtime";import{InspectorUpLevel as Vy}from"efficient-easel/chrome";function Yy({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=vl();return oN("div",{children:[o!=="media"?xd(Vy,{inline:!0,name:l(ur.media),onSelect:()=>a(ma(e,"media"))}):xd(Vy,{inline:!0,name:l(t),onSelect:r}),xd(Ra,{part:o})]})}import{SettingsSwitch as fN}from"efficient-easel/panel";var Jy=uy,gd={kind:"header"},bd={kind:"website"},eS={kind:"chat"},oS={kind:"social"},Aa="Part";function cN(e){return l("Part of {name}",{name:l(e)})}function dN(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?cN(r.label):l(Aa)}}function uN(e){switch(e){case"Header":return{title:l("Header settings belong to a website."),own:l("Each website created from this template sets its own header afterwards.")};case"Appearance":return{title:l("Appearance settings belong to a website."),own:l("Each website created from this template sets its own appearance afterwards.")};case"Live chat":return{title:l("Live chat settings belong to a website."),own:l("Each website created from this template sets its own live chat afterwards.")};case"Social link":return{title:l("Social link settings belong to a website."),own:l("Each website created from this template sets its own social link afterwards.")};default:return{title:l("{what} settings belong to a website.",{what:e}),own:l("Each website created from this template sets its own {what} afterwards.",{what:e.toLowerCase()})}}}function tS({what:e}){let o=uN(e);return Bt("div",{className:"sf-note",children:[ee("p",{children:ee("strong",{children:o.title})}),Bt("p",{children:[l("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function hd(e){let o=pa[e];return{name:ur[e],kindLabel:Aa,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=Qy({name:l(Fl(e,a.props)),tier:"part",of:l(a.label)},{partOf:({name:s})=>l("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?ee(Yy,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var pN={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?ee(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)=>ee(ul,{themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify})},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>ee(dg,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>ee(hg,{unavailable:ee(tS,{what:"Social link"})})},ticker:{name:da,kindLabel:Aa,icon:"ticker",head:(e,o)=>e.kind==="ticker"?dN(o,e.heroId,l(da)):null,render:e=>ee(Db,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:hd("media"),heroImage:hd("image"),heroImage2:hd("image2"),part:{name:Aa,kindLabel:Aa,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}=so(e.propKey),n=a?yr(t.fields[r],a):t.fields[r],s=_I(l(yf(sl(n??{},r))),a),i=Qy({name:s,tier:"part",of:l(t.label)},{partOf:({name:f})=>l("Part of {name}",{name:f})});return{name:i.name,kindLabel:i.kind}},render:(e,o)=>e.kind==="part"?ee(fy,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},mN=new Set(["header","website","chat"]);function xN(e,o){if(e==="puck")return null;let t=pN[e];return mN.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>ee(tS,{what:t.name})}:t}function rS({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:i,tokenRef:f,notifyParent:u,currentSlug:p,siteId:m,runAuthed:x,readOnly:h}=ye(),{websiteName:b}=$(),C=Yo({readOnly:h}),{select:k}=sN(),{selectedItem:v,getItemById:w,getSelectorForId:g,config:y,appState:F}=rN(te=>te),E=ng(y,v?{type:v.type,props:v.props}:null),L=v?UI(E??y.components[v.type]?.fields,v.props):[],B=te=>y.components[te]?.label??te,O=v?g(v.props.id):void 0,M=xN(e.kind,i),re=De(),H={capabilities:i,tokenRef:f,hostPanels:re.chrome?.panels,describeNode:te=>{let ae=w(te);if(!ae)return null;let ue=y.components[ae.type];return{type:ae.type,label:ue?.label??ae.type,fields:ue?.fields??{},props:ae.props??{}}},siteId:m,websiteName:b??null,notifyParent:u,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},z=M?.head?.(e,H)??null,A=z?.name??(M?l(M.name):v?l(B(v.type)):l("Page settings")),oe=z?.kindLabel??(M?l(M.kindLabel):v?O&&O.zone!==Zy?l("Block"):l("Section"):l("Page")),Be=M?M.icon:v?v.type:"page",Xe=M?null:v?y.components[v.type]?.fields??null:y.root?.fields??null,ro=Xe?zy(Xe):2,ze=e.kind==="puck"&&v?Ta(v.type):null,_e=!!v&&!!O&&O.zone===Zy&&v.type!==pe&&v.type!==iN,Ge=Zl(F?.data,v),Me=()=>{Ge||O&&C.duplicateComponent(O.zone,O.index)},ve=()=>{O&&(C.removeComponent(O.zone,O.index),C.select(null))},he=v?y.components[v.type]?.defaultProps?.previewHover:void 0,xe=e.kind==="puck"&&!!v&&!!O&&he!==void 0,Ze=xe&&v.props.previewHover===!0,P=()=>{!v||!O||C.replaceComponent(O.zone,O.index,{...v,props:{...v.props,previewHover:!Ze}})},[le,X]=tN(qf);return Bt("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right${le||!(!M&&v)?"":" sf-hints-folded"}`,children:[ee(aN,{icon:ee(Rt,{type:Be,size:15}),name:A,kind:oe,actions:!a&&e.kind==="puck"&&v&&v.type!==pe?Bt(Id,{children:[ee(Xy,{label:l("Duplicate section"),title:Ge??void 0,disabled:Ge!==null,onClick:Me,children:ee(nN,{size:15})}),_e&&i.hasSiteSettings&&ee(dy,{node:v,currentSlug:p,siteId:m??void 0,tokenRef:f,runAuthed:x,onNotify:n}),ee(Xy,{label:l("Remove section"),danger:!0,onClick:ve,children:ee(lN,{size:15})}),s?ee(Ns,{side:"right",onHide:s,divider:!0}):null]}):s?ee(Ns,{side:"right",onHide:s}):void 0}),xe&&Bt("div",{className:"sf-preview-pin",children:[Bt("div",{className:"sf-preview-pin-text",children:[ee("span",{className:"sf-preview-pin-label",children:l("Preview hover state")}),ee("span",{className:"sf-preview-pin-hint",children:l("not shown live")})]}),ee(fN,{checked:Ze,onChange:P,ariaLabel:l("Preview hover state")})]}),ee(Ix,{tier:ro,children:ee("div",{className:"sf-insp-body es-insp-body sf-scroll",children:M?M.render(e,H):v?Bt(Id,{children:[v.type===pe&&i.hasSiteSettings&&ee(Ly,{}),ee(Np,{children:ee(Ra,{entries:ee(py,{parts:L,heading:!1,onOpen:te=>k(nl(v.props.id,te))}),entryCount:rd(L).length})}),ze&&ee(Kl,{source:ze,slug:ka(v?.props),menuId:Ul(v?.props)}),ee(jf,{shown:le,onChange:X})]}):ee(Id,{children:ee(Ra,{})})})})]})}import{jsx as c,jsxs as S,Fragment as iS}from"react/jsx-runtime";var Fe={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)"},yd="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 R({w:e,h:o,tone:t="dark",r=2,style:a}){return c("div",{style:{width:e,height:o,borderRadius:r,background:Fe[t],flex:"none",...a}})}var IN={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",BrandStrip:"brandstrip",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",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",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",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},_={position:"absolute",inset:0},d={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)"},me=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function $o({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 S("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[c("span",{style:r("8% 26% 30% 6%",d.mark1)}),c("span",{style:r("26% 6% 8% 30%",d.mark2,"multiply")})]})}function _a({children:e}){return c("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:d.muted},children:e})}function aS({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return S(iS,{children:[e&&c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),c("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:i},children:t}),a&&c("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 Sd({name:e,price:o}){return S("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[c("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...me(d.paper,d.paper2,150)},children:c($o,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),c("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:d.text},children:e}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:o})]})}function Uo({k:e,v:o,ok:t}){return S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${d.rule}`,fontSize:"3.98cqw",color:d.muted},children:[c("span",{children:e}),S("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[c("b",{style:{color:d.text,fontWeight:700},children:o}),t&&c("span",{style:{color:d.rust,fontWeight:700},children:"\u2713"})]})]})}function ie({title:e,children:o}){return S("div",{style:{..._,background:d.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[c(_a,{children:e}),o]})}function nS({size:e=14}){return c("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${d.mark1},${d.mark2})`}})}function Cd({filled:e=5,size:o=6}){return S("span",{style:{fontSize:o,letterSpacing:"0.06em",color:d.rust,lineHeight:1},children:["\u2605".repeat(e),c("span",{style:{color:d.mark1},children:"\u2605".repeat(5-e)})]})}function Ba({n:e,label:o,tone:t=d.text}){return S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[c("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Ae({children:e,w:o}){return c("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:d.muted,width:o,display:"block"},children:e})}function rs({label:e,w:o="100%",filled:t}){return S("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[c("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:e}),c("span",{style:{height:9,borderRadius:3,border:`1px solid ${d.rule}`,background:t?d.paper:d.card}})]})}function lS({children:e}){return c("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:d.text,color:d.onInk},children:e})}var hN={wheelslisting:c(ie,{title:"All wheels",children:c("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])=>S("div",{style:{display:"flex",alignItems:"center",gap:6},children:[c("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...me(d.paper,d.paper2,150)},children:c($o,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),c("b",{style:{flex:1,fontSize:"4.31cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:o}),c("b",{style:{fontSize:"4.31cqw",color:d.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:S("div",{style:{..._,background:d.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[S("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>S("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:d.text,color:d.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,c("span",{style:{opacity:.6},children:"\u2715"})]},e)),c("span",{style:{fontSize:"3.65cqw",color:d.rust,fontWeight:700},children:"Clear"})]}),S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"128 results"}),c("span",{style:{fontSize:"3.65cqw",color:d.muted,border:`1px solid ${d.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:S("div",{style:{..._,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...me(d.ink,d.inkSoft)},children:[c("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:d.onInk},children:"Will it fit your rig?"}),S("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>S("span",{style:{flex:1,fontSize:"3.65cqw",color:d.text,background:d.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",c("span",{style:{color:d.muted},children:"\u25BE"})]},e)),c("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:d.warm,color:d.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:c(ie,{title:"Tyres that suit",children:c("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])=>S("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[c("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:d.ink},children:c("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${d.mark2}`,boxSizing:"border-box"}})}),c("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:d.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),c("span",{style:{fontSize:"3.32cqw",color:d.muted},children:o})]},e))})}),tyresizes:c(ie,{title:"Available sizes",children:c("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>c("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?d.rust:d.rule}`,color:o===0?d.rust:d.text,background:o===0?d.paper:d.card},children:e},e))})}),tyrefitment:S(ie,{title:"Will it fit your car?",children:[c("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>S("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:d.muted,background:d.paper,border:`1px solid ${d.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",c("span",{style:{color:d.muted},children:"\u25BE"})]},e))}),c("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])=>S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${d.rule}`,paddingTop:3},children:[c("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:d.text},children:e}),c("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?d.warm:d.muted},children:o})]},e))})]}),eutyrelabel:S("div",{style:{..._,background:d.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>S("div",{style:{display:"flex",alignItems:"center",gap:3},children:[c("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?d.rust:d.mark1}}),c("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?d.rust:d.muted},children:e})]},e))}),S("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[c("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:d.text},children:"72"}),c("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:d.muted},children:"dB"})]})]}),bundleoffer:S("div",{style:{..._,background:d.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[c(_a,{children:"Buy it with"}),S("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>c("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:d.card},children:c($o,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),c("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:d.muted},children:"+"}),S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[c("span",{style:{fontSize:"3.65cqw",color:d.muted,textDecoration:"line-through"},children:"$1,024"}),c("b",{style:{fontSize:"6.02cqw",color:d.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:S("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...me(d.ink,d.ink2)},children:[S("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:d.warm,fontWeight:700},children:"READY TO ORDER"}),c("b",{style:{fontSize:"6.63cqw",color:d.onInk,lineHeight:1},children:"$1,956"}),c("span",{style:{fontSize:"3.65cqw",color:d.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:d.warm,color:d.ink,flex:"none"},children:"CHECKOUT"})]}),contact:c(ie,{title:"Who do you need?",children:c("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])=>S("div",{style:{display:"flex",alignItems:"center",gap:5},children:[c("b",{style:{flex:1,fontSize:"4.31cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:o}),c("span",{style:{fontSize:"4.64cqw",color:d.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:c(ie,{title:"Find us",children:c("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])=>S("div",{style:{border:`1px solid ${d.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[c("b",{style:{fontSize:"4.31cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.32cqw",color:d.muted},children:o}),c("span",{style:{fontSize:"3.32cqw",color:d.rust,fontWeight:700},children:t})]},e))})}),form:c(ie,{title:"Send us a message",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[S("div",{style:{display:"flex",gap:5},children:[c(rs,{label:"Name"}),c(rs,{label:"Email"})]}),c(rs,{label:"Message",filled:!0}),c(lS,{children:"SEND"})]})}),appointmentbooking:c(ie,{title:"Book a fitting",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[c("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>c("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?d.text:d.paper,color:o===2?d.onInk:d.muted},children:e},e))}),c("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>c("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?d.rust:d.rule}`,color:o===1?d.rust:d.muted,background:o===3?d.paper:d.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:c(ie,{title:"Leave a review",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[c(Cd,{filled:4,size:14}),c(rs,{label:"Your review",filled:!0}),c(lS,{children:"POST"})]})}),submitbuild:c(ie,{title:"Show us your build",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${d.mark1}`,borderRadius:5,background:d.paper},children:[c("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:d.rust,fontWeight:300},children:"+"}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"Drop a photo of your rig"})]})}),masthead:S("div",{style:{..._,background:d.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[c("span",{style:{height:1.5,background:d.text}}),c("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:d.text,lineHeight:1},children:"THE TRACK"}),S("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:d.muted},children:[c("span",{children:"Issue 14"}),c("span",{children:"Spring 2026"})]}),c("span",{style:{height:1,background:d.rule}})]}),featuredcover:S("div",{style:{..._,overflow:"hidden",...me(d.ink,d.inkSoft2)},children:[c($o,{size:92,style:{right:-18,top:-14}}),c("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${d.scrim},transparent 62%)`}}),S("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.warm},children:"FEATURE"}),c("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:d.onInk},children:"Four days on the Madigan Line"})]})]}),longread:S("div",{style:{..._,background:d.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:d.rust},children:"12 MIN READ"}),c("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:d.text},children:"What breaks first, and why"}),c(Ae,{children:"Every failure starts in the same place \u2014 not the rim, not"}),c(Ae,{w:"62%",children:"the tyre, but the bolt nobody re-torqued."})]}),series:c(ie,{title:"Recurring columns",children:c("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])=>S("div",{style:{display:"flex",alignItems:"center",gap:6},children:[c("span",{style:{width:3,height:12,borderRadius:2,background:d.rust,flex:"none"}}),c("b",{style:{flex:1,fontSize:"4.64cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:o})]},e))})}),events:c(ie,{title:"Latest posts",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[d.inkSoft,d.inkSoft2,"Madigan Line, four days"],[d.rust,d.warm,"Why offset beats width"]].map(([e,o,t])=>S("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[c("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...me(e,o,150)}}),S("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[c("b",{style:{fontSize:"4.31cqw",color:d.text},children:t}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:S("div",{style:{..._,background:d.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.muted},children:"POLICY"}),c("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:d.text,lineHeight:1.1},children:"Returns & refunds"}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),c("span",{style:{height:2,width:26,background:d.rust,borderRadius:1}})]}),docbody:c("div",{style:{..._,background:d.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])=>S("div",{style:{display:"flex",gap:5},children:[c("b",{style:{fontSize:"3.98cqw",color:d.rust,flex:"none"},children:e}),c(Ae,{children:o})]},e))}),docmetacards:c(ie,{title:"At a glance",children:c("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])=>S("div",{style:{border:`1px solid ${d.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[c("b",{style:{fontSize:"5.31cqw",color:d.text,lineHeight:1},children:e}),c("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:o})]},o))})}),doctabs:S("div",{style:{..._,background:d.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[c("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>c("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?d.text:d.muted,background:o===0?d.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?d.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),c("span",{style:{height:1,background:d.rule}}),S("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[c(Ae,{children:"Unfitted wheels come back within 30 days, no questions."}),c(Ae,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:S("div",{style:{..._,background:d.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[c("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:d.text},children:"The right wheel is the boring one."}),S("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[c(Ae,{children:"Forged, correctly offset, rated for what you actually"}),c(Ae,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:c(ie,{title:"Key features",children:c("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=>S("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[c("span",{style:{fontSize:"4.64cqw",color:d.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),c("span",{style:{fontSize:"4.31cqw",color:d.text},children:e})]},e))})}),statsparagraph:S("div",{style:{..._,background:d.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[S("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[c(Ba,{n:"27k",label:"Rigs"}),c(Ba,{n:"4.9",label:"Rating"})]}),S("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[c(Ae,{children:"Twelve years of fitting the same three questions, and the"}),c(Ae,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:S(ie,{title:"Load vs weight",children:[c("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>c("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?d.rust:d.mark1}},o))}),c("span",{style:{height:1,background:d.rule,marginTop:-4}})]}),mockup:c("div",{style:{..._,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...me(d.inkSoft,d.ink)},children:S("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:d.card,boxShadow:`0 6px 14px ${d.scrim}`},children:[c("div",{style:{height:9,background:d.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>c("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:d.mark1}},e))}),S("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[c("span",{style:{height:4,width:"56%",borderRadius:1,background:d.mark2}}),c("span",{style:{height:14,borderRadius:2,...me(d.paper,d.paper2,150)}}),c("span",{style:{height:3,width:"38%",borderRadius:1,background:d.rust}})]})]})}),manifesto:c("div",{style:{..._,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...me(d.ink,d.ink2)},children:S("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:d.onInk},children:["We build for the ",c("span",{style:{color:d.warm},children:"last"})," ten percent of the track."]})}),timeline:c(ie,{title:"Our story",children:c("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)=>S("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&c("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:d.rule}}),c("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:d.rust,zIndex:1}}),S("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[c("b",{style:{fontSize:"4.64cqw",color:d.text},children:e}),c(Ae,{children:o})]})]},e))})}),timelinetrack:S("div",{style:{..._,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...me(d.ink,d.inkSoft)},children:[c("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:d.warm},children:"Milestones"}),S("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[c("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:d.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>S("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[c("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?d.warm:d.mark1}}),c("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?d.warm:d.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:S("div",{style:{..._,overflow:"hidden",...me(d.paper,d.paper2,150)},children:[c("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:d.mark1,opacity:.75}}),c("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:d.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>c("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:d.rust}},e)),c("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:d.text},children:"3 fitting bays"})]}),banner:S("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:d.rust},children:[S("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[c("b",{style:{fontSize:"6.02cqw",color:d.onInk},children:"End of season \xB7 20% off"}),c("span",{style:{fontSize:"3.98cqw",color:d.onInk,opacity:.8},children:"Fitted free, this month only."})]}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:d.onInk,color:d.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:S("div",{style:{..._,background:d.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[c("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:d.text},children:"Not sure what fits?"}),S("div",{style:{display:"flex",gap:5},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:d.text,color:d.onInk},children:"FIND MY FIT"}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${d.text}`,color:d.text},children:"CALL US"})]})]}),ticker:c("div",{style:{..._,overflow:"hidden",background:d.ink,display:"flex",alignItems:"center"},children:c("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:d.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:S("div",{style:{..._,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...me(d.ink,d.ink2)},children:[c("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:d.muted},children:"Back online in"}),c("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>S("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&c("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:d.warm},children:":"}),S("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[c("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:d.onInk,fontVariantNumeric:"tabular-nums"},children:e}),c("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:d.onInk},children:o})]})]},o))})]}),breadcrumb:c("div",{style:{..._,background:d.card,display:"flex",alignItems:"center",padding:"0 13px"},children:S("span",{style:{fontSize:"4.64cqw",color:d.muted},children:["Home ",c("span",{style:{opacity:.5},children:"/"})," Wheels ",c("span",{style:{opacity:.5},children:"/"})," ",c("span",{style:{color:d.text,fontWeight:700},children:"20 inch"})]})}),categorybar:S("div",{style:{..._,background:d.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[c("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>c("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?d.text:d.paper,color:o===0?d.onInk:d.muted},children:e},e))}),c("span",{style:{height:1,background:d.rule}})]}),intro:S("div",{style:{..._,overflow:"hidden",background:d.card},children:[c("div",{style:{position:"absolute",inset:0,...me(d.ink,d.inkSoft2)}}),c($o,{size:64,style:{right:8,top:6}}),S("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:d.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${d.scrim}`},children:[c("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:d.text},children:"Since 1998"}),c(Ae,{children:"One shed, one lathe, one idea."}),c(Ae,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:c(ie,{title:"From our customers",children:c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[d.rust,d.warm],[d.inkSoft,d.ink],[d.paper2,d.mark2],[d.ink,d.inkSoft2],[d.warm,d.paper2],[d.mark2,d.inkSoft]].map(([e,o],t)=>c("div",{style:{borderRadius:3,...me(e,o,140+t*22)}},t))})}),gallery:S(ie,{title:"Gallery",children:[c("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>c("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?d.text:d.muted,borderBottom:`1.5px solid ${o===0?d.rust:"transparent"}`,paddingBottom:2},children:e},e))}),c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[d.rust,d.warm],[d.ink,d.inkSoft],[d.paper2,d.mark2]].map(([e,o],t)=>c("div",{style:{borderRadius:3,...me(e,o,150+t*20)}},t))})]}),ordersummary:S(ie,{title:"Order summary",children:[S("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[c("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...me(d.paper,d.paper2,150)},children:c($o,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),S("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[c("b",{style:{fontSize:"4.31cqw",color:d.text},children:"Ridge Grappler"}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),S("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[c(Uo,{k:"Subtotal",v:"$1,956"}),c(Uo,{k:"Fitting",v:"Free"}),S("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[c("b",{style:{color:d.text},children:"Total"}),c("b",{style:{color:d.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:c(ie,{title:"Delivery",children:c("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])=>S("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?d.rust:d.rule}`,background:r?d.paper:d.card},children:[c("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?d.rust:d.mark1}`,background:r?d.rust:"transparent"}}),c("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:d.text},children:e}),c("span",{style:{fontSize:"3.98cqw",color:d.muted},children:o}),c("b",{style:{fontSize:"4.31cqw",color:d.text},children:t})]},e))})}),paymentbadges:S("div",{style:{..._,background:d.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[c(_a,{children:"Ways to pay"}),c("div",{style:{display:"flex",gap:5},children:[["VISA",d.ink],["MC",d.rust],["AMEX",d.inkSoft],["PayPal",d.ink2]].map(([e,o])=>c("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:d.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:S("div",{style:{..._,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...me(d.ink,d.ink2)},children:[c("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:d.warm},children:"By the numbers"}),S("div",{style:{display:"flex",gap:8},children:[c(Ba,{n:"27k",label:"Rigs fitted",tone:d.onInk}),c(Ba,{n:"12",label:"Years",tone:d.onInk}),c(Ba,{n:"4.9",label:"Avg rating",tone:d.warm})]})]}),testimonials:S("div",{style:{..._,overflow:"hidden",background:d.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[c("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:d.rust,opacity:.16},children:"\u201D"}),c(Cd,{filled:5,size:7}),c("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:d.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),S("div",{style:{display:"flex",alignItems:"center",gap:5},children:[c(nS,{}),c("span",{style:{fontSize:"3.98cqw",color:d.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:S(ie,{title:"Reviews",children:[c("div",{style:{display:"flex",gap:4,height:22},children:[[d.inkSoft,d.inkSoft2],[d.rust,d.warm],[d.ink,d.inkSoft],[d.mark2,d.mark1]].map(([e,o],t)=>c("div",{style:{flex:1,borderRadius:3,...me(e,o,140+t*15)}},t))}),c("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])=>S("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[c(nS,{size:12}),S("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[S("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[c("b",{style:{fontSize:"3.98cqw",color:d.text},children:e}),c(Cd,{filled:o})]}),c(Ae,{children:t})]})]},e))})]}),logos:S("div",{style:{..._,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...me(d.ink,d.inkSoft)},children:[c("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:d.warm},children:"As fitted by"}),c("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>c("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:d.onInk,opacity:.82},children:e},e))})]}),prose:S("div",{style:{..._,background:d.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[c("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:d.text},children:"Why offset matters"}),S("div",{style:{display:"flex",gap:6},children:[c("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:d.rust,marginTop:1},children:"T"}),S("div",{style:{display:"flex",flexDirection:"column"},children:[c(Ae,{children:"he number on the back of your wheel decides whether the"}),c(Ae,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:c(ie,{title:"What you get",children:c("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])=>S("div",{style:{border:`1px solid ${d.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[c("span",{style:{width:11,height:11,borderRadius:3,background:d.rust,opacity:.9}}),c("b",{style:{fontSize:"3.98cqw",color:d.text},children:e}),c(Ae,{children:o})]},e))})}),faq:c(ie,{title:"Questions",children:c("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])=>S("div",{style:{borderBottom:`1px solid ${d.rule}`,padding:"4px 2px"},children:[S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[c("b",{style:{fontSize:"4.31cqw",color:d.text},children:e}),c("span",{style:{fontSize:"4.64cqw",color:d.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&c(Ae,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:S("div",{style:{..._,overflow:"hidden",...me(d.ink,d.ink2)},children:[c("div",{style:{..._,background:`linear-gradient(90deg,${d.scrim},transparent 70%)`}}),c("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:c(aS,{over:"NEW \xB7 SUMMER",overTone:d.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:d.warm,ctaFg:d.ink,tone:d.onInk})}),c($o,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:S("div",{style:{..._,display:"flex",background:d.paper,overflow:"hidden"},children:[c("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:c(aS,{over:"ALL-TERRAIN",overTone:d.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:d.text,ctaFg:d.onInk,tone:d.text})}),c("div",{style:{flex:1,position:"relative",...me(d.inkSoft,d.inkSoft2)},children:c($o,{size:74,style:{right:-14,top:16}})})]}),productgrid:c(ie,{title:"Best sellers",children:S("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[c(Sd,{name:"Ridge 19",price:"$365"}),c(Sd,{name:"Ridge 29",price:"$410"}),c(Sd,{name:"Ridge 39",price:"$455"})]})}),collections:c(ie,{title:"Shop by category",children:c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",d.inkSoft,d.inkSoft2],["Tyres",d.rust,d.warm],["Lift kits",d.ink,d.inkSoft]].map(([e,o,t])=>c("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:d.onInk,...me(o,t)},children:c("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:S("div",{style:{..._,display:"flex",background:d.card,overflow:"hidden"},children:[c("div",{style:{flex:1.1,position:"relative",...me(d.paper,d.paper2,150)},children:c($o,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),S("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.rust},children:"NITTO"}),c("b",{style:{fontSize:"6.29cqw",color:d.text},children:"Ridge Grappler"}),c("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:d.text},children:"$489"}),c("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:d.text,color:d.onInk},children:"ADD TO CART"})]})]}),spectable:c(ie,{title:"Specifications",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[c(Uo,{k:"Diameter",v:'20"'}),c(Uo,{k:"Width",v:"9.0J"}),c(Uo,{k:"Offset",v:"+12"}),c(Uo,{k:"Load",v:"1250 kg"})]})}),fitmenttable:c(ie,{title:"Will it fit?",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[c(Uo,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),c(Uo,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),c(Uo,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),brandstrip:S("div",{style:{..._,background:d.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[c(_a,{children:"Brands we carry"}),c("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["NITTO","BFG","FUEL","TOYO"].map(e=>c("span",{style:{fontSize:"4.64cqw",fontWeight:800,letterSpacing:"0.1em",color:d.mark2},children:e},e))})]}),processsteps:S("div",{style:{..._,background:d.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[c(_a,{children:"How it works"}),c("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[c("span",{style:{width:11,height:11,borderRadius:"50%",background:d.text,color:d.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),c("span",{style:{fontSize:"3.98cqw",color:d.text,fontWeight:600},children:e})]},e))})]}),detailrows:c("div",{style:{..._,background:d.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=c("div",{style:{flex:1,...me(t?d.rust:d.inkSoft,t?d.warm:d.inkSoft2)}},"art"),a=S("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[c("b",{style:{fontSize:"4.64cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.98cqw",color:d.muted,lineHeight:1.3},children:o})]},"tx");return c("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:c("div",{style:{..._,background:d.ink,color:d.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>S("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[c("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),c("span",{style:{fontSize:"3.65cqw",color:d.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},sS={subscribe:S("div",{style:{..._,padding:13,display:"flex",flexDirection:"column"},children:[S("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[S("div",{style:{display:"flex",alignItems:"center",gap:6},children:[c(R,{w:8,h:8,r:2,tone:"accent"}),c(R,{w:38,h:7,r:3,tone:"dark"}),c(R,{w:16,h:7,r:3,tone:"accent"})]}),c(R,{w:38,h:4,r:2,tone:"soft"})]}),c("div",{style:{height:1,background:Fe.line,marginBottom:10}}),S("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${Fe.line}`,borderRadius:7,padding:10},children:[S("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[c(R,{w:"46%",h:3,r:2,tone:"accent"}),c(R,{w:"84%",h:8,r:4,tone:"dark"}),c(R,{w:"56%",h:8,r:4,tone:"accent"}),c(R,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),S("div",{style:{display:"flex",gap:5,marginTop:4},children:[c("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${Fe.line}`,background:Fe.block}}),c(R,{w:34,h:13,r:5,tone:"accent"})]})]}),S("div",{style:{flex:1,background:Fe.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[c(R,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${Fe.line}`:"none",paddingTop:o?4:0},children:[c(R,{w:34,h:4,r:2,tone:"dark"}),c(R,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:S("div",{style:{..._,display:"flex"},children:[c("div",{style:{width:"44%",background:yd}}),S("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[c(R,{w:"44%",h:5,r:3,tone:"accent"}),c(R,{w:"88%",h:8,r:4,tone:"dark"}),c(R,{w:"70%",h:8,r:4,tone:"dark"}),c(R,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),c(R,{w:"80%",h:5,r:2,tone:"soft"}),c(R,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:S(iS,{children:[c(R,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),S("div",{style:{..._,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[S("div",{style:{display:"flex",alignItems:"center",gap:9},children:[c(R,{w:16,h:16,r:4,tone:"accent"}),c(R,{w:"20%",h:9,r:4,tone:"dark"})]}),c(R,{w:"62%",h:10,r:5,tone:"dark"}),c(R,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:c("div",{style:{..._,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:S("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c(R,{w:"22%",h:12,r:4,tone:"dark"}),S("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[c(R,{w:26,h:6,r:3,tone:"soft"}),c(R,{w:26,h:6,r:3,tone:"soft"}),c(R,{w:26,h:6,r:3,tone:"soft"}),c(R,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:S("div",{style:{..._,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[S("div",{style:{display:"flex",gap:14},children:[S("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[c(R,{w:"60%",h:9,r:4,tone:"dark"}),c(R,{w:"90%",h:5,r:2,tone:"soft"}),c(R,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[c(R,{w:"50%",h:6,r:3,tone:"dark"}),c(R,{w:"80%",h:5,r:2,tone:"soft"}),c(R,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),c("div",{style:{height:1,background:Fe.line}}),S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c(R,{w:"30%",h:5,r:2,tone:"soft"}),c(R,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:c("div",{style:{..._,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>c("div",{style:{borderRadius:6,background:Fe.block}},o))}),blanksection:c("div",{style:{..._,padding:14,display:"flex"},children:S("div",{style:{flex:1,border:`1px dashed ${Fe.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[c(R,{w:14,h:2,r:1,tone:"tint"}),c(R,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:S("div",{style:{..._,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c(R,{w:"100%",h:6,r:3,tone:"soft"}),c(R,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),c(R,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:c("div",{style:{..._,padding:14,display:"flex",alignItems:"center"},children:c(R,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:S("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:yd},children:[c(R,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),c(R,{w:16,h:10,r:3,tone:"accent"}),c(R,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:c("div",{style:{..._,padding:14,display:"flex",alignItems:"center"},children:c(R,{w:"64%",h:13,r:4,tone:"dark"})}),text:S("div",{style:{..._,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[c(R,{w:"100%",h:6,r:3,tone:"soft"}),c(R,{w:"96%",h:6,r:3,tone:"soft"}),c(R,{w:"100%",h:6,r:3,tone:"soft"}),c(R,{w:"58%",h:6,r:3,tone:"soft"})]}),image:c("div",{style:{position:"absolute",inset:14,borderRadius:7,background:yd}}),button:c("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"center"},children:c(R,{w:"34%",h:16,r:8,tone:"accent"})}),menu:S("div",{style:{..._,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[c(R,{w:"48%",h:7,r:3,tone:"dark"}),c(R,{w:"82%",h:5,r:2,tone:"soft"}),c(R,{w:"66%",h:5,r:2,tone:"soft"}),c(R,{w:"74%",h:5,r:2,tone:"soft"}),c(R,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:S("div",{style:{..._,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[c(R,{w:"56%",h:8,r:3,tone:"dark"}),S("div",{style:{display:"flex",gap:6},children:[c("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${Fe.line}`}}),c(R,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:c("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>c(R,{w:16,h:16,r:8,tone:"dark"},e))}),search:c("div",{style:{..._,padding:"0 18%",display:"flex",alignItems:"center"},children:S("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${Fe.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[c("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${Fe.dark}`}}),c(R,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:S("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[c("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${Fe.dark}`}}),c("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${Fe.dark}`},children:c(R,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:S("div",{style:{..._,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[S("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${Fe.line}`},children:[c(R,{w:22,h:6,r:2,tone:"dark"}),c(R,{w:6,h:4,r:1,tone:"soft"})]}),S("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${Fe.line}`},children:[c(R,{w:"80%",h:4,r:2,tone:"accent"}),c(R,{w:"64%",h:4,r:2,tone:"soft"}),c(R,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:S("div",{style:{..._,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[c("div",{style:{height:1,background:Fe.line}}),S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c(R,{w:"38%",h:5,r:2,tone:"soft"}),S("div",{style:{display:"flex",gap:5},children:[c(R,{w:14,h:5,r:2,tone:"soft"}),c(R,{w:14,h:5,r:2,tone:"soft"}),c(R,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:c("div",{style:{position:"absolute",inset:14,borderRadius:8,background:Fe.block}})};function fS({type:e}){let o=IN[e]??"",t=hN[o]??sS[o]??sS.fallback;return c("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{jsx as Tr,jsxs as gN}from"react/jsx-runtime";import{StylesIcon as bN}from"efficient-easel/rail";import{Tooltip as yN}from"efficient-shell/ui";function cS({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n}){let s=fr();return gN("div",{className:"sf-styles",children:[Tr(Za,{icon:Tr(bN,{}),title:l("Site styles"),context:Tr(yN,{content:l("{name} \u2014 renamed in the Console: {place}.",{name:s,place:l("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:Tr("span",{className:"sf-name-text",children:s})}),onHide:t}),Tr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:Tr(ul,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n})})]})}import{jsx as Pe,jsxs as Dt,Fragment as TN}from"react/jsx-runtime";import{Fragment as kS,useEffect as TS,useRef as Fd}from"react";import{useTreeDrag as ES}from"efficient-easel/drag";import{GlobeIcon as EN,ImageIcon as FN,LocationIcon as PN,MapIcon as LN,TextLinesIcon as ON,TrashIcon as FS}from"efficient-easel/icons";import{Subtree as PS,TreeRow as Na,TreeRowAction as LS,TreeSeam as OS}from"efficient-easel/tree";import{useEaselStrings as RN}from"efficient-easel/strings";import{createPreviewSelectionContext as SN}from"efficient-easel/draw/client";var{Provider:iee,useSelection:dS}=SN("selectedLocationPartId");function uS(e,o,t){return`${e}::${o}::${t}`}function pS(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")return null;let r=Number(o[o.length-2]);if(!Number.isInteger(r)||r<0)return null;let a=o.slice(0,-2).join("::");return a?{nodeId:a,index:r,part:t}:null}import{useSyncExternalStore as CN}from"react";var vN={level:"groups"},xS=vN,vd=new Set;function uo(e){xS=e;for(let o of vd)o()}function wN(e){return vd.add(e),()=>{vd.delete(e)}}var mS=()=>xS;function IS(){return CN(wN,mS,mS)}function hS(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),i=r.find(f=>f.key===s);i||(i={key:s,name:t(a),items:[]},r.push(i)),i.items.push({item:a,index:n})}),r}function uee(e){if(e<=1)return"grid-cols-1";if(e===2)return"grid-cols-2";if(e===3)return"grid-cols-3";if(e===4)return"grid-cols-4";let o=t=>e%t||t;return o(4)>=o(3)?"grid-cols-4":"grid-cols-3"}var Da=e=>String(e?.group??""),wd=new WeakMap,kN=0;function as(e){let o=wd.get(e);return o||(o=`loc${++kN}`,wd.set(e,o)),o}var gS=(e,o)=>o||e||"Ungrouped",bS={photo:"",group:"",groupName:"",name:"City name",state:"State",country:"Country",timezone:"GMT \xB7 UTC +0",address:`Address line one
17
+ Address line two`,phone:"+00 000 0000",hours:"Mon\u2013Fri 9:00\u201318:00",lat:0,lng:0,mapsUrl:""};function _t(e){return hS(e,Da,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var kd=e=>e.flatMap(o=>o.cards),yS=(e,o,t)=>Math.min(Math.max(e,o),t);function ns(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Da(e[a])===o){if(r===t)return a;r++}return-1}function Td(e,o,t){let r=_t(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=yS(o<t?t-1:t,0,r.length);return r.splice(n,0,a),kd(r)}function Ed(e,o,t,r,a){let n=_t(e),s=n.find(m=>m.key===o),i=n.find(m=>m.key===r);if(!s||!i||t<0||t>=s.cards.length)return e;let[f]=s.cards.splice(t,1),u=o===r?f:{...f,group:i.key,groupName:i.name};u!==f&&wd.set(u,as(f));let p=yS(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(p,0,u),kd(n)}function SS(e,o){let t=_t(e),r=t.find(n=>n.key===o),a={...bS,group:o,groupName:r?.name??""};return r?(r.cards.push(a),kd(t)):[...e,a]}function CS(e){let o=new Set(_t(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...bS,group:r,groupName:""}],key:r}}function vS(e,o){return e.filter(t=>Da(t)!==o)}function wS(e,o,t){let r=ns(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function xee(e,o,t){let r=e.flatMap((s,i)=>Da(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 Iee(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Da(n)===r);return a.length?a:t(r)})}var ss="ContactLocations",ls=e=>({parentId:`locations-${e}`,slot:"groups"}),Pd=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function RS(e,o){let{readOnly:t,selected:r}=o,a=RN().tree,n=o.data?.content??[],s=e.kind===Jy.kind,i=Fd(null);TS(()=>{let g=r?.type===ss?String(r.props.id):null;g&&g!==i.current&&uo({level:"groups"}),i.current=g},[r?.props.id]);let{selectedLocationPartId:f,setSelectedLocationPartId:u,setSelectHandler:p}=dS(),m=IS(),x=(g,y)=>{let F=n[g];F&&o.replace(g,{type:F.type,props:{...F.props,locations:y}})},h=g=>{let y=n[g]?.props?.locations;return Array.isArray(y)?y:[]},b=ES({keyOf:g=>`group:${g.si}:${g.index}`,readOnly:!!t,canDrop:(g,y)=>y.parentId===ls(g.si).parentId&&y.slot==="groups",onDrop:(g,y)=>{x(g.si,Td(h(g.si),g.index,y.index)),m.level==="city"&&uo({level:"groups"})},onStep:(g,y)=>{x(g.si,Td(h(g.si),g.index,y<0?g.index-1:g.index+2)),m.level==="city"&&uo({level:"groups"})}}),C=ES({keyOf:g=>`city:${g.si}:${g.group}:${g.index}`,readOnly:!!t,canDrop:(g,y)=>y.parentId===ls(g.si).parentId&&y.slot.startsWith("cities:"),onDrop:(g,y)=>{let F=y.slot.slice(7);x(g.si,Ed(h(g.si),g.group,g.index,F,y.index)),uo({level:"group",key:F})},onStep:(g,y)=>{x(g.si,Ed(h(g.si),g.group,g.index,g.group,y<0?g.index-1:g.index+2)),m.level==="city"&&uo({level:"group",key:g.group})}}),k=Fd(n);k.current=n;let v=Fd(()=>{});TS(()=>{p(g=>{let y=pS(g);if(!y)return;let F=k.current.findIndex(E=>E.props?.id===y.nodeId);F<0||v.current(F,{level:y.part,index:y.index})})},[p]);let w=(g,y)=>{i.current=n[g]?.props?.id??null,o.select(g),uo(y),e.reveal();let F=n[g]?.props?.id;typeof F=="string"&&(y.level==="image"||y.level==="map")?u(uS(F,y.index,y.level)):u(null),typeof F=="string"&&o.scrollTo(F)};return v.current=w,{renderLocationTree:(g,y,{rowClick:F,isCollapsed:E,toggleCollapse:L})=>{let B=h(y),O=_t(B),M=String(g.props.id),re=s&&r?.props.id===M,H=A=>Pe(OS,{...t?{}:b.seam({place:{...ls(y),index:A}})},`seam:${M}:groups:${A}`),z=(A,oe)=>Pe(OS,{...t?{}:C.seam({place:{...Pd(y,A),index:oe}})},`seam:${M}:cities:${A}:${oe}`);return Dt(TN,{children:[Pe(Na,{icon:Pe(ON,{size:13}),name:l("Texts"),words:a,onSelect:()=>w(y,{level:"texts"}),selected:re&&m.level==="texts",rowProps:{onClick:F(()=>w(y,{level:"texts"}))}}),O.map((A,oe)=>{let Be=`${M}::grp::${A.key}`,Xe=E(Be),ro=re&&m.level==="group"&&m.key===A.key,ze=A.name||A.key?gS(A.key,A.name):l("Ungrouped"),_e={...Pd(y,A.key),index:A.cards.length},Ge=C.row({item:{si:y,group:A.key,index:-1},place:_e,into:_e,canDrag:!1},{onClick:F(()=>w(y,{level:"group",key:A.key}))}),Me=b.row({item:{si:y,index:oe},place:{...ls(y),index:oe}},Ge.rowProps);return Dt(kS,{children:[oe===0&&H(0),Pe(Na,{icon:Pe(EN,{size:13}),name:ze,words:a,onSelect:()=>w(y,{level:"group",key:A.key}),selected:ro,draggable:Me.draggable,dragging:Me.dragging,drop:Me.drop??Ge.drop,fold:{open:!Xe,label:l("group"),onToggle:()=>L(Be)},actions:Pe(LS,{kind:"delete",label:xt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",A.cards.length,{label:ze}),onClick:()=>{x(y,vS(B,A.key)),uo({level:"groups"})},children:Pe(FS,{size:15})}),rowProps:Me.rowProps,children:Pe("span",{className:"es-group-count",children:A.cards.length})}),!Xe&&Dt(PS,{children:[A.cards.map((ve,he)=>{let xe=ns(B,A.key,he),Ze=re&&m.level==="city"&&m.index===xe,P=String(ve?.name??"")||l("City"),le=`${M}::city::${as(ve)}`,X=E(le),{rowProps:te,...ae}=C.row({item:{si:y,group:A.key,index:he},place:{...Pd(y,A.key),index:he}},{onClick:F(()=>w(y,{level:"city",index:xe}))});return Dt(kS,{children:[he===0&&z(A.key,0),Pe(Na,{icon:Pe(PN,{size:13}),name:P,words:a,onSelect:()=>w(y,{level:"city",index:xe}),selected:Ze,...ae,fold:{open:!X,label:P,onToggle:()=>L(le)},actions:Pe(LS,{kind:"delete",label:l("Delete {name}",{name:P}),onClick:()=>{x(y,wS(B,A.key,he)),uo({level:"group",key:A.key})},children:Pe(FS,{size:15})}),rowProps:te}),!X&&Dt(PS,{children:[Pe(Na,{icon:Pe(FN,{size:13}),name:l("Image"),words:a,onSelect:()=>w(y,{level:"image",index:xe}),selected:re&&m.level==="image"&&m.index===xe,rowProps:{onClick:F(()=>w(y,{level:"image",index:xe}))}}),Pe(Na,{icon:Pe(LN,{size:13}),name:l("Map"),words:a,onSelect:()=>w(y,{level:"map",index:xe}),selected:re&&m.level==="map"&&m.index===xe,rowProps:{onClick:F(()=>w(y,{level:"map",index:xe}))}})]}),z(A.key,he+1)]},as(ve))}),Dt("button",{type:"button",className:"sf-add-card",onClick:()=>{let ve=SS(B,A.key);x(y,ve);let he=_t(ve).find(xe=>xe.key===A.key);uo(he&&he.cards.length?{level:"city",index:ns(ve,A.key,he.cards.length-1)}:{level:"group",key:A.key})},children:[Pe("span",{className:"sf-plus sf-plus--sm",children:"+"}),l("Add city")]})]}),H(oe+1)]},Be)}),Dt("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:A,key:oe}=CS(B);x(y,A),w(y,{level:"group",key:oe})},children:[Pe("span",{className:"sf-plus sf-plus--sm",children:"+"}),l("Add group")]})]})},sectionPressed:g=>{g?.type===ss&&uo({level:"groups"})}}}import{useEffect as DN,useRef as NN}from"react";import{createNode as _S,newId as DS}from"efficient-easel/data";import{useEaselApi as MN}from"efficient-easel/easel";import{ROOT_ZONE as Er,missingPinnedTypes as HN,pinnedDuplicateIds as Ld}from"efficient-easel/draw";import{resetForDocumentSwitch as AN,saveStatusForNewDocument as BN,saveStatusOf as _N}from"efficient-easel/screen/lib/document-switch";function AS(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function BS(e,o){let t=e.some(n=>n?.type===de),r=e[e.length-1],a=!t&&r?.type===pe?r:null;return{remove:e.filter(n=>n?.type===pe&&n!==a).map(n=>String(n.props?.id??"")).filter(Boolean),seedHeader:!e.some(n=>n?.type===Ve),seedFooter:o.hasChromeDoc&&!t&&!a}}function NS(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i}=ye(),{hasSiteSettings:f,hasPinnedChrome:u}=r,p=!!r.editsPinnedInPlace&&a!==Ut,m=a===Ut,x=MN().getState,h=NN(null);DN(()=>{if(!AS({docId:n,saveStatus:i,seededDocId:h.current})||(h.current=n,!u))return;let b=x().appState.data,C=b.content,k=s?.content??[],v=(F,E)=>F.some(L=>L?.type===E);if(!f){let F=new Set(Ld(C)),E=F.size?C.filter(B=>!F.has(B.props.id)):C;F.size&&e.setDocument({...b,content:E});let L=HN(E,k);if(L.includes(pe)){let B=E.length,O=e.insertSection(pe,B);e.replaceComponent(Er,B,{type:pe,props:{id:O,blocks:Xl()}})}L.includes(Ve)&&e.insertNode(Er,0,Yl());return}if(m){let F=vr(C);if(F!==C&&e.setDocument({...b,content:[...F]}),!F.find(E=>E.type===pe)&&!v(k,pe)&&!v(F,de)&&!v(k,de)){let E=(B,O)=>_S(o,B,O),L={type:pe,props:{blocks:Xl()}};e.insertNode(Er,F.length,La(L,E,DS(de)))}return}if(p){let F=!!t?.pinnedChrome?.state().docId,E=BS(C,{hasChromeDoc:F}),L=new Set([...E.remove,...Ld(C.filter(O=>!E.remove.includes(String(O.props.id))))]),B=L.size?C.filter(O=>!L.has(String(O.props.id))):C;if(B.length!==C.length&&e.setDocument({...b,content:B}),E.seedFooter&&!v(k,pe)&&!v(k,de)){let O=(re,H)=>_S(o,re,H),M={type:pe,props:{blocks:Xl()}};e.insertNode(Er,B.length,La(M,O,DS(de)))}if(E.seedHeader&&!v(k,Ve)){let O=B[0]?.type==="SiteHeader"?1:0;e.insertNode(Er,O,Yl())}return}let w=C.filter(F=>F.type!==pe),g=new Set(Ld(w)),y=g.size?w.filter(F=>!g.has(F.props.id)):w;y.length!==C.length&&e.setDocument({...b,content:y}),!v(y,Ve)&&!v(k,Ve)&&e.insertNode(Er,0,Yl())},[n,i,s,x,e,f,u,m,p,t])}import{useEffect as WS,useState as zS}from"react";var is=new Map;async function WN(e,o){try{return(await Ue().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function MS(e,o){let t=is.get(o);return t||(t=WN(e,o),is.set(o,t),t.catch(()=>{is.get(o)===t&&is.delete(o)})),t}var zN=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function Od(e){return!!e&&zN.test(e)}function HS(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===gn?"/":`/${encodeURIComponent(o)}`;if(!Od(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function GS(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=zS(null),[s,i]=zS(null),f=vu();WS(()=>i(f?new URL(f).hostname:window.location.hostname),[f]),WS(()=>{if(!Od(s)||!t||!r){n(null);return}let p=!1;return MS(r,t).then(m=>{p||n(m)}),()=>{p=!0}},[s,t,r]);let u=HS({pageSlug:o,siteSlug:a,hostname:s});return f?`${f}${u}`:u}import{jsx as Ma,jsxs as GN}from"react/jsx-runtime";import{ExternalIcon as US}from"efficient-easel/icons";import{Button as UN,Tooltip as $S,buttonClasses as $N}from"efficient-shell/ui";function qN({pageId:e,liveHref:o,draftLink:t,win:r=window}){let a=r.open("","_blank");if(a)try{a.opener=null}catch{}let n=s=>{a&&!a.closed?a.location.href=s:r.open(s,"_blank","noopener,noreferrer")};return t(e).then(s=>n(s.url??o),()=>n(o))}function qS({liveHref:e,pageId:o,draftLink:t}){return t&&o?Ma($S,{content:l("Open your saved draft in a new tab. Visitors don't see it."),children:Ma(UN,{variant:"secondary",onClick:()=>{qN({pageId:o,liveHref:e,draftLink:t})},rightIcon:Ma(US,{size:15}),"aria-label":l("Preview your saved draft in a new tab"),children:l("Preview")})}):Ma($S,{content:l("Preview the live site (opens in a new tab)"),children:GN("a",{className:$N({variant:"secondary"}),href:e,target:"_blank",rel:"noopener noreferrer","aria-label":l("Preview the live site in a new tab"),children:[l("Preview"),Ma(US,{size:15})]})})}import{useCallback as XN,useEffect as XS,useRef as ZS,useState as ZN}from"react";import{useSyncExternalStore as jN}from"react";var KN=()=>()=>{},jS=()=>null;function fs(e){return jN(e?e.subscribe:KN,e?e.state:jS,e?e.state:jS)}function cs(){let{adapter:e}=ye();return e?.pinnedChrome}import{useSyncExternalStore as VN}from"react";var Fr=new Map,Rd=new Set;function Ad(e,o){if(!(Fr.has(e)&&Fr.get(e)===o)){Fr.set(e,o);for(let t of Rd)t()}}function moe(e,o){Ad(e,o)}function xoe(e,o){let t=Fr.get(e);Ad(e,o??(t==="live"?"changed":t))}function Ioe(e,o){Ad(e,o??"live")}function hoe(e){return Fr.get(e)}function YN(e){return Rd.add(e),()=>{Rd.delete(e)}}function KS(e){let o=()=>e?Fr.get(e):void 0;return VN(YN,o,o)}function VS(e,o){return e==="live"&&o?"changed":e}function Bd({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?l("Changes not live yet"):e==="never"?l("Never published"):r?l("Header and footer not live yet"):e==="live"?l("Everything is live"):null;return{label:l("Publish"),tooltip:e==="never"?l("Put this page on your site"):l("Put your changes on your site"),status:s,quiet:n?{label:l("Published"),reason:l("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function YS(e){return e.map(o=>o.change==="take_down"?l("{name} (taken down)",{name:o.name}):o.name)}function QS(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=ye(),s=VS(KS(o??null),r),i=fs(cs()),f=n.siteLiveState;XS(()=>{if(f)return Si(f),In(0),()=>Si(null)},[f]);let u=tm(),[p,m]=ZN(!1),x=ZS(e);x.current=e;let h=ZS(!0);XS(()=>(h.current=!0,()=>{h.current=!1}),[]);let b=XN(()=>{m(!0),a(x.current).finally(()=>{h.current&&m(!1)})},[a]);if(t.canPublish){if(f){let C=u===void 0?void 0:r||u.state==="changed"?"changed":"live";return Bd({live:C,onPress:b,busy:p,goingLive:YS(u?.changes??[])})}return Bd({live:s,onPress:b,busy:p,pinnedUnpublished:i?.unpublished??!1})}}var JS=["general","commerce","service"],Pr=[{key:"openers",title:"Hero & intros",defaultExpanded:!0,templateable:!0,sections:[{type:"Hero",label:"Hero Slideshow",set:"general"},{type:"HeroSingle",label:"Hero",set:"general"},{type:"IntroBleed",label:"Scroll-Over Text",set:"general"}]},{key:"shop",title:"Shop & galleries",templateable:!0,sections:[{type:"Collections",label:"Collections",set:"commerce"},{type:"BrandStrip",label:"Brand Strip",set:"commerce"},{type:"AlloyWheelsListing",label:"List",set:"commerce"},{type:"CatalogFilterBar",label:"Catalog Filter Bar",set:"commerce"},{type:"ProductGrid",label:"Product Grid",set:"commerce"},{type:"FitmentFinder",label:"Fitment Form",set:"commerce"},{type:"Gallery",label:"Tabbed Gallery",set:"commerce"},{type:"GalleryB",label:"Customer Photo Grid",set:"commerce"},{type:"SpecStrip",label:"Spec Strip",set:"general"}]},{key:"product",title:"Product page",templateable:!0,sections:[{type:"ProductHero",label:"Product Hero",set:"commerce"},{type:"SpecTable",label:"Spec Table",set:"commerce"},{type:"ProcessSteps",label:"Image & Text Columns",set:"general"},{type:"DetailRows",label:"Feature Rows",set:"commerce"},{type:"FitmentTable",label:"Fitment Table",set:"commerce"},{type:"TyreSizes",label:"Tyre Sizes",set:"commerce"},{type:"TyreFitment",label:"Tyre Fitment Form",set:"commerce"},{type:"EuTyreLabel",label:"EU Tyre Label",set:"commerce"},{type:"RelatedProducts",label:"Related Products",set:"commerce"},{type:"BundleOffer",label:"Bundle Products",set:"commerce"}]},{key:"checkout",title:"Checkout & ordering",templateable:!0,sections:[{type:"OrderSummary",label:"Order Table",set:"general"},{type:"DeliveryOptions",label:"Delivery Options",set:"commerce"},{type:"PaymentBadges",label:"Payment Methods",set:"general"},{type:"CheckoutCTA",label:"Ready-to-Order Banner",set:"commerce"}]},{key:"about",title:"About & brand story",templateable:!0,sections:[{type:"Manifesto",label:"Brand Text",set:"general"},{type:"Timeline",label:"Story Timeline",set:"general"},{type:"TimelineTrack",label:"Milestone Timeline",set:"general"},{type:"Footprint",label:"Locations Map",set:"general"}]},{key:"content",title:"Text & content",templateable:!0,sections:[{type:"Prose",label:"Editorial Text",set:"general"},{type:"ParagraphsA",label:"Lead Text",set:"general"},{type:"Split",label:"Image & Text Split",set:"general"},{type:"Cards",label:"Cards",set:"general"},{type:"KeyFeatures",label:"Key Features",set:"general"}]},{key:"proof",title:"Stats & social proof",templateable:!0,sections:[{type:"Stats",label:"Stats",set:"general"},{type:"StatsParagraph",label:"Stats with Text",set:"general"},{type:"Chart",label:"Chart",set:"general"},{type:"Mockup",label:"Mockup Card",set:"general"},{type:"Testimonials",label:"Testimonials",set:"general"},{type:"Reviews",label:"Reviews",set:"service"},{type:"Logos",label:"Logos",set:"general"}]},{key:"promo",title:"Promotions & sign-ups",templateable:!0,sections:[{type:"Banner",label:"Banner",set:"general"},{type:"TitleWithButtons",label:"Call-to-Action Heading",set:"general"},{type:"Ticker",label:"Scrolling Bar",set:"general"},{type:"Countdown",label:"Countdown",set:"general"},{type:"Subscribe",label:"Signup Form",set:"service"}]},{key:"blog",title:"Blog & journal",templateable:!0,sections:[{type:"Masthead",label:"Issue Header",set:"general"},{type:"FeaturedCover",label:"Feature Banner",set:"general"},{type:"LongRead",label:"Article Text",set:"general"},{type:"Series",label:"Recurring Columns",set:"general"},{type:"Events",label:"Latest Posts",set:"service"}]},{key:"navigation",title:"Navigation & wayfinding",templateable:!0,sections:[{type:"Breadcrumb",label:"Breadcrumb",set:"general"},{type:"CategoryBar",label:"Category Bar",set:"general"},{type:"DocTabs",label:"Document Tabs",set:"general"}]},{key:"legal",title:"Legal & documents",templateable:!0,sections:[{type:"DocMasthead",label:"Document Header",set:"general"},{type:"DocBody",label:"Document Text",set:"general"},{type:"DocMetaCards",label:"Document Detail Cards",set:"general"}]},{key:"contact",title:"Contact, FAQ & forms",templateable:!0,sections:[{type:"FAQ",label:"Q&A",set:"general"},{type:"ContactRouting",label:"Contact Form",set:"service"},{type:"ContactLocations",label:"Contact / Locations",set:"general"},{type:"SubmitBuild",label:"Photo Submission Form",set:"service"},{type:"ReviewForm",label:"Review Form",set:"service"},{type:"Form",label:"Form",set:"service"},{type:"AppointmentBooking",label:"Booking Form",set:"service"}]},{key:"structure",title:"Layout, structure & embeds",templateable:!1,sections:[{type:"SectionHeader",label:"Section Header",set:"general"},{type:"Flex",label:"Box",set:"general"},{type:"Spacer",label:"Spacer",set:"general"},{type:"Divider",label:"Divider",set:"general"},{type:"CustomHTML",label:"Custom HTML",set:"general"}]}];function koe(){return Object.fromEntries(Pr.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var QN={Grid:'Lewis, 2026-09-14: Box and Grid duplicate each other and it feels confusing. 2026-09-15 he chose the order: give Box uneven widths FIRST, then merge Grid into Box. Shown three ways to pick the widths (mockup "Uneven Box Widths"), he chose A \u2014 shape pictures on the Box\'s `Block widths` row, the same "a row is a shape, pick a picture of it" rule he set for the photo wall on 2026-09-07.\n\nWHAT REPLACES IT: a Box set to One row, with `Block widths` at Equal or a shape (Big left, Big right, Bigger left, Bigger right) and its own `Columns on phone`. Measured on PRODUCTION 2026-09-16 ~09:28 AEST (database `efficient-system`, all 10 tenant schemas, 128 storefront pages, both `layout` and `published_layout` \u2014 256 documents): 2 Grid nodes, and they are ONE Grid counted twice \u2014 the 9DIEM homepage on 9diem.com (`xtreme_mudder` schema), once as draft and once as published. It is top-level, holds three `ImageBlock`s at `columns` 3 \u2014 equal thirds \u2014 and NO block sets `Positions`. A Box draws that with `Block widths` at Equal.\n\n\u26A0\uFE0F THE COUNT MOVES; THE RULE MUST NOT DEPEND ON IT. This entry has already carried three different readings. A local-clone snapshot said no Grid used `Positions`. A PRODUCTION reading on 2026-09-15 ~13:15 AEST found 6 nodes on two sites, 4 of them spanned \u2014 hartesmetal.com.au homepage and about, 4 columns, spans 1 + 3. That one was TRUE when it was taken and stopped being true the same day: those two pages were rebuilt on Box (`Block widths: Bigger right`), and on 2026-09-16 they hold zero Grid nodes and are built from `Flex`. \u26D4 So the rule is NOT "there are still N spanned Grids". NEVER delete the Grid component or its `gridSpan` handling, whatever a census says \u2014 Grid still renders, still edits, still drags, and a merchant may rebuild a page either way on any day. Re-run the census on production before anyone PROPOSES deleting either, and read any number written here as the reading of its own day, not as the state of the world.\n\nWHAT A MERCHANT LOSES: a new Grid, and with it a fixed "N per row" that wraps by itself past three across, and the per-block `Positions` number. Box wraps with `Wrap`, but by content width, not by a fixed count.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT. Every page holding a Grid still renders through it and can still be edited, dragged and added to; no document is rewritten and NO MIGRATION RUNS \u2014 the owner redoes live sections himself.\n\n\u26A0\uFE0F AND IT STAYS DROPPABLE WHERE IT LIVES. The drop rule in lib/puck/config.tsx read the nestable containers off the catalogue\'s `structure` row, so leaving the catalogue would have made every open slot \u2014 a Box included \u2014 refuse a Grid already stored inside one. `scripts/test-retired-grid-stays-editable.tsx` \xA73 pins it.',CompatibleTyres:'Lewis, 2026-09-09: "Do not bother counting. Delete Compatible Tyres and use the new one. The new one needs complete settings \u2014 it must have every setting our cards have." Shown three ways to finish it, he chose C: retire from the menu now, and take styling the card text as its own card.\n\nWHAT REPLACES IT: `RelatedProducts` with its `Show` dropdown set to "Tyres that fit this product". That block is the GENERIC relationship section from card 1128 \u2014 it knows nothing about wheels or tyres, it asks the registry for a relationship by name. The two have rendered through the SAME renderer (`DynamicRelatedProducts`) since that card; this one is the pre-registry one-off that was never removed.\n\n\u26A0\uFE0F THE SWAP WAS NOT SAFE UNTIL #1305, AND SAYING SO IS THE POINT. The first old-versus-new table put in front of the owner was WRONG. `DynamicRelatedProducts` returns EARLY on a tyre answer and draws this component, so the seven card settings, the head split and the Width control all stopped at that call \u2014 nine settings, measured NO EFFECT, on precisely the relationship that replaces this block. #1283 gave the new block the card settings, #1299 the head split and its own Width, #1305 carried all of it onto the tyre branch. Only then was the claim true.\n\nWHAT WAS MEASURED BEFORE RETIRING, four ways, because the premise decides the card:\n \u2022 settable text kinds (SECTION_TEXT_KINDS): both blocks ABSENT \u2014 the map holds only TimelineTrack and Footprint, both AUTHORED lists\n \u2022 read-only text regions: neither `components/CompatibleTyres` nor `components/TyreCard` stamps one\n \u2022 panel rows through resolveFields: this block 31, `RelatedProducts` 42. This block\'s only style-ish key is `_sStyle`, the bucket HEADER, not a control\n \u2022 head text (num/title/description) is authored on both, so `_partStyles` reaches it identically\nSo on the CARD runs the two are zero against zero \u2014 neither can style them \u2014 and everywhere else the new block is ahead. Styling those runs needs a section-level prop family and a paint path for DERIVED text, which no section has yet: a part is anchored by matching an AUTHORED prop\'s string against the DOM, and `lib/puck/source-bound-parts` keeps hydrated copy unreachable on purpose so a merchant cannot type into a copy of a product name and lose it at the next sync. That is its own card, and `lib/sections/text-regions` is the read-only half that already ships.\n\nTHE TYPE KEY STAYS AND SO DOES THE COMPONENT, the same contract Subscribe, Split and SubscribeBlogs have. Every page holding a `CompatibleTyres` still renders through it, no published document is rewritten, and NO MIGRATION RUNS \u2014 the owner\'s standing ruling of 2026-09-05: he redoes live sections himself and deletes the old ones when he does. He also said explicitly not to count them first.\n\n\u26A0\uFE0F AND THIS COMPONENT IS LOAD-BEARING FOR ITS OWN REPLACEMENT: `DynamicRelatedProducts` draws it for EVERY tyre answer. Deleting it would blank the block that replaces it, not just the pages still holding this one.',SubscribeBlogs:"card 66396 \u2014 folded into `Subscribe`, which now chooses its rail's content with a `Type` control (the newsletter's own issues, or live blog posts). The two shared 21 of their fields and rendered THE SAME BYTES from equivalent rows, so offering both asked a merchant to choose between two names for one section. The type key stays because it is stored on published pages, and the component stays because those pages still render through it."},Toe=["Grid"],Eoe=Array.from(new Set([...Pr.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(QN)])),Foe=Object.fromEntries(Pr.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),JN={Heading:"general",Text:"general",Eyebrow:"general",ImageBlock:"general",LogoBlock:"general",ButtonBlock:"general",PostCard:"general",HeroSlide:"general",HeroGroup:"general",Integrations:"general",Grid:"general",CollectionCard:"commerce",GalleryItem:"commerce",ProductRef:"commerce",CompatibleTyres:"commerce",Header:"commerce",SearchBlock:"commerce",CartBlock:"commerce",CountrySwitchBlock:"commerce",AccountBlock:"commerce",ThemeSwitchBlock:"commerce",SubmitBox:"service",BookingBox:"service",SubscribeBlogs:"service",Footer:"service",FooterLogo:"service",FooterMenu:"service",FooterDivider:"service",FooterGroup:"service",FooterText:"service",FooterEmailSignup:"service",FooterSocial:"service",MenuBlock:"service",EmailFormBlock:"service",SocialLogosBlock:"service",LegalLineBlock:"service",SiteHeader:"service",SiteFooter:"service"},ds={...JN,...Object.fromEntries(Pr.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function eC(e){return Object.prototype.hasOwnProperty.call(ds,e)?ds[e]:void 0}function _d(e){return Object.keys(ds).filter(o=>ds[o]===e).sort()}var Poe=_d("general"),Loe=_d("commerce"),Ooe=_d("service"),Dd="Flex",it="Box",Roe=`${it}es`;function eM(e){return e==="section"?"Blank section":it}function Nd(e,o,t){return e===Dd?eM(o):t}var oM={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"}};function oC(e){return oM[e]?.label}var tC=Dd;var tM={general:!0,commerce:!0,service:!0};function Md(e){let o=e?.sets;return o?Object.fromEntries(JS.map(t=>[t,o.includes(t)])):tM}function Moe(e=ao()){return Md(e.blocks)}var Lr="content",ge="Flex",rM="Text & media",aM="Layout & structure",nM=[{type:"Eyebrow",label:"Eyebrow"},{type:"Heading",label:"Heading"},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"ButtonBlock",label:"Button"},{type:"Form",label:"Form"},{type:"PostCard",label:"Post Card"},{type:"Stats",label:"Stats"},{type:"MenuBlock",label:"Menu"},{type:"EmailFormBlock",label:"Email Form"},{type:"SocialLogosBlock",label:"Social Logos"},{type:"LegalLineBlock",label:"Legal Line"},{type:"SearchBlock",label:"Search"},{type:"CartBlock",label:"Cart"},{type:"CountrySwitchBlock",label:"Country Switch"}].map(e=>({...e,group:rM})),lM=(Pr.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:aM})),rC=[...nM,...lM],Hd=[{type:"Eyebrow",label:"Eyebrow"},{type:"Heading",label:"Heading"},{type:"Text",label:"Text"},{type:"ImageBlock",label:"Image"},{type:"LogoBlock",label:"Logo"},{type:"ButtonBlock",label:"Button"},{type:"HeroGroup",label:it}],zoe=Hd.map(e=>e.type),sM=1,iM=Hd.filter(e=>e.type!=="HeroGroup");function fM(e){return e<sM?Hd:iM}var cM={Flex:{slot:Lr,choices:()=>rC},Grid:{slot:Lr,choices:()=>rC},HeroGroup:{slot:Lr,choices:fM}};function aC(e,o=0){let t=cM[e];return t?{slot:t.slot,choices:t.choices(o)}:null}function We(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function nC(e,o,t){return We(ge,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var dM={Manifesto:(e,o)=>({type:ge,props:{...e(ge),id:o(ge),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[We(ge,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[We("Eyebrow",e,o,{eyebrowLook:"plain"}),We("Heading",e,o),We("Text",e,o),We("Stats",e,o)]}),nC(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:ge,props:{...e(ge),id:o(ge),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[We(ge,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[We("Eyebrow",e,o,{eyebrowLook:"plain"}),We("Heading",e,o),We("Text",e,o),We("ButtonBlock",e,o)]}),nC(e,o,{direction:"column",name:"Image",content:[We("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:ge,props:{...e(ge),id:o(ge),direction:"column",name:"Subscribe",content:[We("Heading",e,o),We("Text",e,o),We("Form",e,o)]}})};function us(e){return dM[e]??null}import{blockTypesIn as Wd}from"efficient-easel/screen/lib/puck/block-types-in";import{newNodeId as lC}from"efficient-easel/draw";var uM="ImageBlock",pM=3,ps=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:lC(e),...t}}),mM=e=>({...e?.(ge)??{},direction:"column",[Lr]:[ps(uM,e),ps(ge,e,{direction:"column",[Lr]:[ps("Heading",e),ps("Text",e)]})]}),Eo={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>lb.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${it.toLowerCase()}`,seeds:()=>[],addBlocked:rn,notice:$s},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${it.toLowerCase()}`,seeds:()=>[],addBlocked:rn,notice:$s},ProcessSteps:{slot:"boxes",childType:ge,addLabel:`Add ${it.toLowerCase()}`,seeds:e=>Array.from({length:pM},()=>mM(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function Qoe(e){for(let[o,t]of Object.entries(e)){if(o in Eo&&Eo[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);Eo[o]=t}}function Joe(e,o){let t=Eo[e];return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:lC(t.childType),...r}}))}:null}var sC=()=>({}),iC=new Map;function xM(e){let o=iC.get(e);if(o)return o;let t=new Set,r=Eo[e];if(r)for(let s of r.seeds(sC))for(let i of Wd({type:r.childType,props:s}))t.add(i);let a=us(e);if(a){let s=0;for(let i of Wd(a(sC,f=>`${f}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return iC.set(e,n),n}function IM(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Md(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=f=>{if(r.has(f))return!1;if(a.has(f))return!0;let u=eC(f);return!u||!o[u]?!1:t?t.has(f):!0},s=new Map,i=f=>{let u=s.get(f);if(u!==void 0)return u;s.set(f,!1);let p=n(f)&&xM(f).every(i);return s.set(f,p),p};return{sets:o,offers:i}}var hM="block-offer";function zd(e=ao()){return e.cache(hM,()=>IM(Gp(e)))}function fC(e,o=ao()){let t=zd(o);return t?t.offers(e):!0}function cC(e,o=0){let t=bM(e,o),r=t?zd():null;return t&&r?gM(t,r):t}function gM(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 bM(e,o){let t=Eo[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let r=aC(e,o);if(r)return{source:"container",slot:r.slot,choices:r.choices,spec:null};let a=Iy(e);return a?{source:"footer",slot:xy,choices:a,spec:null}:null}import{useSyncExternalStore as yM}from"react";var Gd=null,Ud=new Set;function dC(e){if(Gd!==e){Gd=e;for(let o of Ud)o()}}function SM(e){return Ud.add(e),()=>{Ud.delete(e)}}function Ite(){return yM(SM,()=>Gd,()=>null)}function uC(e){return zr(e)?.ownerId??null}function pC(e,o){let t=e.props;if(e.type==="FooterMenu"){let r=t.menu;return t.heading||r?.name||l("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:l("Text")}return e.type==="FooterEmailSignup"?t.heading||l("Email signup"):o(e.type)}var mC="sf-editor-left-view";function xC(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(mC);return e==="sections"||e==="styles"||e==="media"?e:"pages"}catch{return"pages"}}function IC(e){if(!(typeof window>"u"))try{window.localStorage.setItem(mC,e)}catch{}}function hC(e,o,t=!1){return e==="styles"&&!o||e==="media"&&!t?"sections":e}function gC(e,o){return e?"sections":o}var bC="Footer",CM=[Ne,bC,de],Or=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Nt=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Ha=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},yC=e=>zr(e)?.ownerId??"";function SC(e){let o=vr(Or(e)),t=o.some(r=>r?.type===de);return o.filter(r=>r?.type===Ne||r?.type===de||r?.type===bC&&!t)}function $d(e,o){let t=new Set,r=a=>{if(Array.isArray(a)){for(let s of a)r(s);return}if(!a||typeof a!="object")return;let n=a;if(typeof n.type=="string"&&n.props&&typeof n.props=="object"){let s=Ha(n);s&&t.add(s)}for(let s of Object.values(a))r(s)};if(r(e),o){let a=!0,n=new Set;for(;a;){a=!1;for(let[s,i]of Object.entries(o))n.has(s)||!t.has(yC(s))||(n.add(s),r(i),a=!0)}}return t}function qd(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(yC(a))?t:r)[a]=n;return{owned:t,rest:r}}function vte(e,o){if(!o)return e;let t=SC(o);if(!t.length)return e;let r=t.filter(i=>i.type===Ne),a=t.filter(i=>i.type!==Ne),n={...e,content:[...r,...Or(e),...a]},{owned:s}=qd(Nt(o),$d(t,Nt(o)));return Object.keys(s).length&&(n.zones={...Nt(e)??{},...s}),n}function wte(e,o){if(!o)return{page:e,chrome:null};let t=SC(o),r=new Set(t.map(Ha).filter(w=>!!w)),a=[],n=[];for(let w of Or(e)){let g=Ha(w);g&&r.has(g)||Cr(w?.type)?n.push(w):a.push(w)}let s=new Map(n.map(w=>[Ha(w),w])),i=new Set,f=vr(Or(o)).flatMap(w=>{let g=Ha(w);if(!g||!r.has(g))return[w];let y=s.get(g);return y?(i.add(y),[y]):[]});for(let w of n)i.has(w)||f.some(g=>g?.type===w.type)||(f=w.type===Ne?[w,...f]:[...f,w]);f=vr(f);let u=f.length===Or(o).length&&f.every((w,g)=>w===Or(o)[g]),p=Nt(e),m=$d(f,p),{owned:x,rest:h}=qd(p,m),b=qd(Nt(o),$d(t,Nt(o))).owned,C={...o,content:u?o.content:[...f]},k=Nt(o);if(k||Object.keys(x).length){let w={};for(let[g,y]of Object.entries(k??{}))g in b?g in x&&(w[g]=x[g]):w[g]=y;for(let[g,y]of Object.entries(x))g in w||(w[g]=y);C.zones=w,k&&vM(C.zones,k)&&(C.zones=k)}let v={...e,content:a};return p&&(Object.keys(h).length||!Object.keys(b).length?v.zones=h:delete v.zones),{page:v,chrome:C}}function vM(e,o){let t=Object.keys(e),r=Object.keys(o);return t.length===r.length&&t.every((a,n)=>a===r[n]&&e[a]===o[a])}function CC(e,o){return t=>e(t)||t!==void 0&&CM.includes(t)&&o()}var ms=null;function Tte(e){ms=e}function vC(){return!!(ms&&ms.state().lockHolder)}function Rr(){return ms!==null}var wM=new Set(["BookingBox","SubmitBox"]);function kM(e){return typeof e=="string"&&wM.has(e)}var wC=CC(kM,vC);import{Fragment as Kd,jsx as hs,jsxs as KM}from"react/jsx-runtime";import{useMemo as AC,useRef as BC}from"react";import{EaselCanvas as VM,useEaselApi as YM}from"efficient-easel/easel";import{jsx as PC,Fragment as BM,jsxs as _M}from"react/jsx-runtime";import{useEffect as LC,useLayoutEffect as DM}from"react";var xs="data-theme",kC="light";function TM(e){return e.getAttribute(xs)===kC?"light":"dark"}function EM(e,o){return TM(e)===o?!1:(o==="light"?e.setAttribute(xs,kC):e.removeAttribute(xs),!0)}function FM(e){return Ps(e).getItem(Cs)}function Ate(e,o){Ps(e).setItem(Cs,o)}function PM(e,o,t=new Date().getHours()){return ou({mode:o.mode,override:FM(e),switchShown:o.switchShown,hour:t})}function TC(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>EM(t,PM(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[xs]}),()=>n.disconnect()}var LM="style";function OM(e,o){let t=fu(o),r=!1;for(let a of iu){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function EC(e,o){let t=e.body;if(!t)return()=>{};let r=()=>OM(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[LM]}),()=>n.disconnect()}var RM=String.raw`(function (doc) {
18
+ if (doc.__sfFitWords) return;
19
+ var win = doc.defaultView;
20
+ var SELECTOR = "h1,h2,h3,h4,h5,h6,[class*='font-heading'],[class*='font-display']";
21
+ var MIN_SCALE = 0.3, MIN_PX = 16, SLACK = 1;
22
+
23
+ function measure(el) {
24
+ var widest = 0, current = 0, last = null, split = false, lastBlock = null;
25
+ function blockOf(n) {
26
+ for (var p = n.parentElement; p && p !== el; p = p.parentElement) {
27
+ var d = win.getComputedStyle(p).display;
28
+ if (d.indexOf("inline") !== 0 && d !== "contents") return p;
29
+ }
30
+ return el;
31
+ }
32
+ function close() { if (current > widest) widest = current; current = 0; last = null; }
33
+ var walker = doc.createTreeWalker(el, 5), range = doc.createRange(), node;
34
+ while ((node = walker.nextNode())) {
35
+ if (node.nodeType === 1) {
36
+ if (node.tagName === "BR" || node.tagName === "WBR") close();
37
+ continue;
38
+ }
39
+ var block = blockOf(node);
40
+ if (block !== lastBlock) close();
41
+ lastBlock = block;
42
+ var re = /(\S+)|(\s+)/g, m;
43
+ while ((m = re.exec(node.data))) {
44
+ if (m[2]) { close(); continue; }
45
+ range.setStart(node, m.index);
46
+ range.setEnd(node, m.index + m[0].length);
47
+ var rects = range.getClientRects();
48
+ for (var i = 0; i < rects.length; i++) {
49
+ var r = rects[i];
50
+ if (r.width <= 0) continue;
51
+ current += r.width;
52
+ if (last && r.top > last.top + last.height / 2) split = true;
53
+ last = r;
54
+ }
55
+ }
56
+ }
57
+ close();
58
+ return { widest: widest, split: split };
59
+ }
60
+
61
+ function lineWidth(el) {
62
+ var cs = win.getComputedStyle(el);
63
+ return el.getBoundingClientRect().width - parseFloat(cs.paddingLeft) - parseFloat(cs.paddingRight)
64
+ - parseFloat(cs.borderLeftWidth) - parseFloat(cs.borderRightWidth);
65
+ }
66
+
67
+ // ⚠️ THE HEADING ELEMENT IS NEVER TOUCHED — no style="", no data-*. This
68
+ // runs before React hydrates, and React 19 in development reports ANY
69
+ // attribute that differs from what it rendered ("a tree hydrated but some
70
+ // attributes didn't match"): first our inline font-size on the hero (which
71
+ // React owns via --heading-size), then, when that moved to a data-sf-fit
72
+ // attribute, the attribute itself. So the fitted size lives only in this
73
+ // script's own stylesheet, in <head>, addressed to each heading by its
74
+ // POSITION (":root>*:nth-child(2)>…"). A position goes stale when the page's
75
+ // structure changes, so the rules are rewritten in the MutationObserver
76
+ // callback, which runs before the next paint. !important so the size also
77
+ // beats a part's own inline size.
78
+ var head = doc.head || doc.documentElement;
79
+ var fitEl = doc.createElement("style");
80
+ fitEl.id = "storefront-fit-words-sizes";
81
+ head.appendChild(fitEl);
82
+ var fitted = new Map(); // heading -> fitted size, e.g. "43.8px"
83
+
84
+ function pathOf(el) {
85
+ var parts = [];
86
+ for (var e = el; e && e.parentElement; e = e.parentElement) {
87
+ var i = 1, s = e;
88
+ while ((s = s.previousElementSibling)) i++;
89
+ parts.unshift("*:nth-child(" + i + ")");
90
+ }
91
+ return ":root>" + parts.join(">");
92
+ }
93
+ function writeRules() {
94
+ var css = "";
95
+ fitted.forEach(function (size, el) {
96
+ if (!el.isConnected) { fitted.delete(el); return; }
97
+ css += pathOf(el) + "{font-size:" + size + " !important}";
98
+ });
99
+ if (fitEl.textContent !== css) fitEl.textContent = css;
100
+ }
101
+
102
+ function unfit(el) {
103
+ if (fitted.delete(el)) writeRules();
104
+ }
105
+
106
+ function fits(el) {
107
+ var m = measure(el);
108
+ return !m.split && m.widest <= lineWidth(el) + SLACK;
109
+ }
110
+
111
+ function fit(el) {
112
+ unfit(el);
113
+ if (lineWidth(el) <= 0) return; // hidden, or not laid out yet
114
+ if (fits(el)) return;
115
+ var set = parseFloat(win.getComputedStyle(el).fontSize);
116
+ if (!set) return;
117
+ var floor = Math.max(set * MIN_SCALE, MIN_PX);
118
+ if (floor >= set) return;
119
+ function size(px) { return Math.floor(px * 10) / 10 + "px"; }
120
+ // The SEARCH tries sizes on the element's own style and then puts that
121
+ // attribute back byte for byte (or removes it, if it had none), so nothing
122
+ // is left for React to see. A trial in a stylesheet instead restyles the
123
+ // whole page per step: a full pass on the Hartes home took 75–160ms at 4x
124
+ // CPU that way.
125
+ var hadStyle = el.hasAttribute("style"), origStyle = el.getAttribute("style");
126
+ function attempt(px) { el.style.setProperty("font-size", size(px), "important"); }
127
+ function done() { if (hadStyle) el.setAttribute("style", origStyle); else el.removeAttribute("style"); }
128
+ attempt(floor);
129
+ if (!fits(el)) { done(); return; } // even the floor does not fit: leave it as set
130
+ var lo = floor, hi = set;
131
+ for (var i = 0; i < 8; i++) {
132
+ var mid = (lo + hi) / 2;
133
+ attempt(mid);
134
+ if (fits(el)) lo = mid; else hi = mid;
135
+ }
136
+ done();
137
+ fitted.set(el, size(lo));
138
+ writeRules();
139
+ }
140
+
141
+ // What each heading measured right after we last fitted it, so the
142
+ // ResizeObserver below can tell a real change (a font swap, a rotate, a
143
+ // container that moved) from the size change our own write just caused.
144
+ var seen = new WeakMap();
145
+ function remember(el) {
146
+ var b = el.getBoundingClientRect();
147
+ seen.set(el, b.width + "x" + b.height);
148
+ }
149
+ function fitAndRemember(el) { fit(el); remember(el); }
150
+
151
+ // ⚠️ A ResizeObserver, NOT fonts.ready or a resize event, and the reason is
152
+ // WHEN it runs: after layout, BEFORE paint. The web font arriving re-wraps a
153
+ // fitted heading, and fonts.ready resolves only after that frame is painted —
154
+ // measured on the Hartes hero: a 42px jump in 2 of 3 loads. A size change
155
+ // reported here is fitted in the same frame, so the broken state is never
156
+ // drawn. It also covers a container that resizes.
157
+ var ro = new win.ResizeObserver(function (entries) {
158
+ for (var i = 0; i < entries.length; i++) {
159
+ var el = entries[i].target;
160
+ var b = el.getBoundingClientRect();
161
+ if (seen.get(el) === b.width + "x" + b.height) continue; // our own write
162
+ fitAndRemember(el);
163
+ }
164
+ });
165
+ // Its own set, not seen: fitAndRemember has written seen by the
166
+ // time watch runs, so a seen test observed no heading at all, and a
167
+ // heading fitted in the fallback face was never fitted again when the web
168
+ // font arrived (hartesmetal.com.au, "FusionForge." with its "." alone).
169
+ var watched = new WeakSet();
170
+ function watch(el) { if (!watched.has(el)) { watched.add(el); ro.observe(el); } }
171
+
172
+ function fitAll() {
173
+ var els = doc.querySelectorAll(SELECTOR);
174
+ for (var i = 0; i < els.length; i++) { fitAndRemember(els[i]); watch(els[i]); }
175
+ }
176
+
177
+ var queued = 0, all = false, touched = new Set();
178
+ function run() {
179
+ queued = 0;
180
+ if (all) { all = false; touched.clear(); fitAll(); return; }
181
+ var els = Array.from(touched);
182
+ touched.clear();
183
+ for (var i = 0; i < els.length; i++) if (els[i].isConnected) { fitAndRemember(els[i]); watch(els[i]); }
184
+ }
185
+ function schedule() { if (!queued) queued = win.requestAnimationFrame(run); }
186
+ function scheduleAll() { all = true; schedule(); }
187
+
188
+ fitAll();
189
+ // A backstop only: a font that changes widths without changing any
190
+ // heading's box is not seen by the ResizeObserver.
191
+ if (doc.fonts && doc.fonts.ready) doc.fonts.ready.then(scheduleAll, function () {});
192
+
193
+ // …and the viewport WIDTH, which the ResizeObserver cannot stand in for: a
194
+ // heading sized to its own text (fit-content, a flex item) keeps the SAME box
195
+ // when the phone turns to 844, so nothing reports a change and it would stay
196
+ // shrunk. The probe's rotate check caught exactly that.
197
+ var lastWidth = win.innerWidth;
198
+ function onResize() {
199
+ if (win.innerWidth === lastWidth) return; // a phone's toolbar changing HEIGHT is not our business
200
+ lastWidth = win.innerWidth;
201
+ scheduleAll();
202
+ }
203
+ win.addEventListener("resize", onResize);
204
+
205
+ var mo = new win.MutationObserver(function (records) {
206
+ // Positions first: a node added or removed anywhere can shift the
207
+ // nth-child path of a fitted heading, and this callback runs before paint.
208
+ if (fitted.size) {
209
+ for (var q = 0; q < records.length; q++) if (records[q].type === "childList") { writeRules(); break; }
210
+ }
211
+ for (var i = 0; i < records.length; i++) {
212
+ var r = records[i];
213
+ var target = r.target.nodeType === 1 ? r.target : r.target.parentElement;
214
+ var own = target && target.closest(SELECTOR);
215
+ if (own) touched.add(own);
216
+ for (var j = 0; j < r.addedNodes.length; j++) {
217
+ var n = r.addedNodes[j];
218
+ if (n.nodeType !== 1) continue;
219
+ if (n.matches(SELECTOR)) touched.add(n);
220
+ var inner = n.querySelectorAll(SELECTOR);
221
+ for (var k = 0; k < inner.length; k++) touched.add(inner[k]);
222
+ }
223
+ }
224
+ if (touched.size) schedule();
225
+ });
226
+ mo.observe(doc.body, { childList: true, subtree: true, characterData: true });
227
+
228
+ doc.__sfFitWords = function stop() {
229
+ win.removeEventListener("resize", onResize);
230
+ ro.disconnect();
231
+ mo.disconnect();
232
+ if (queued) win.cancelAnimationFrame(queued);
233
+ fitted.clear();
234
+ fitEl.remove();
235
+ delete doc.__sfFitWords;
236
+ };
237
+ // For the probe and for debugging: which headings are fitted, at what size,
238
+ // and the sheet that holds it (disable it to read a heading's set size).
239
+ doc.__sfFitWords.fitted = fitted;
240
+ doc.__sfFitWords.sheet = fitEl;
241
+ })(document);`,AM="storefront-fit-words";function FC(e){let o=e.createElement("script");return o.id=AM,o.textContent=RM,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var NM=`
242
+ [${io}][${io}] { cursor: text; }
243
+ [${Ke}][${Ke}][${Ke}] {
244
+ outline: 1px solid ${Ca.accent};
245
+ outline-offset: 2px;
246
+ }
247
+ [${Ke}][${Ke}]:has([${Ke}]),
248
+ [data-puck-overlay-portal][data-puck-overlay-portal]:has([${Ke}]) {
249
+ outline: none;
250
+ }
251
+ [${Ke}][${Ke}][${Ke}][data-es-typing],
252
+ [data-es-typing] [${Ke}][${Ke}][${Ke}] {
253
+ outline: none;
254
+ }
255
+ `;function OC({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=$(),n=Qe(t);return LC(()=>{if(o)return TC(o,{mode:r,switchShown:a})},[o,r,a]),LC(()=>{if(o)return EC(o,n)},[o,n]),DM(()=>{if(o)return FC(o)},[o]),_M(BM,{children:[PC(Hu,{}),PC("style",{children:NM}),e]})}import{jsx as jd}from"react/jsx-runtime";import{useEffect as MM,useState as HM}from"react";import{Banner as WM}from"efficient-shell/ui";var Is={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."},zM=Is.load,GM=Is.lock,UM=Is.conflict,$M=Is.save;function qM(e){return e?e.loadFailed?l(zM):e.lockHolder?l(GM,{name:e.lockHolder.name||l("Somebody else")}):e.conflict?l(UM):e.saveFailed?l($M):null:null}function jM({report:e}){let o=qM(fs(e)),[t,r]=HM(null);return MM(()=>{o||r(null)},[o]),!o||t===o?null:jd("aside",{className:"sf-canvas-notice",children:jd(WM,{tone:"warning",onDismiss:()=>r(o),children:o})})}function RC(){return jd(jM,{report:cs()})}import{usePreviewParts as _C}from"efficient-easel/draw/client";function XM({children:e,componentId:o}){let{selectedPartId:t}=_C();return WI(t,o)?hs(Kd,{}):hs(Kd,{children:e})}function DC(e){let{mirrorHostStyles:o}=_s(),t=zu(),{sectionBackgroundWidth:r,sectionContentWidth:a,themeFromDocument:n}=$(),s=AC(()=>({...e.metadata??t??{},...mx(n?null:r,n?null:a)}),[e.metadata,t,r,a,n]),i=BC(null),f=ZM(i),{onDocument:u}=e,p=m=>{i.current=m,u?.(m)};return KM(Kd,{children:[hs(RC,{}),hs(VM,{...e,onDocument:p,typing:f,metadata:s,height:"fill",mirrorStyles:o,frameWrapper:OC,overlay:XM})]})}function ZM(e){let o=YM(),t=Yo(),r=_C(),a=BC({ops:t,parts:r});return a.current={ops:t,parts:r},AC(()=>{let n={getItemById:i=>o.getState().getItemById(i),getSelectorForId:i=>o.getState().getSelectorForId(i),get components(){return o.getState().config.components},replace:(i,f,u)=>a.current.ops.replaceComponent(i,f,u)},s=(i,f)=>{let u=Mb(i,n);if(!u)return null;let p=f,m=()=>(p=Hb(p,p?.ownerDocument??e.current,i),p),x=m();return x?{element:m,value:u.value,rules:u.rules,multiline:u.multiline,write:u.write,toolbar:{offered:u.offered,colors:u.offered.length>0?Gl(Vb(x)):void 0}}:null};return{at:i=>{let f=i.closest(`[${io}]`),u=f?.getAttribute(io);return f&&u?s(u,f):null},atSelection:()=>{let i=a.current.parts.selectedPartId;return i?s(i,null):null},onChange:i=>{if(!i.typing){Vc(null);return}let f=i.element.closest(`[${io}]`)?.getAttribute(io)??null;Vc(f),f&&a.current.parts.selectedPartId!==f&&a.current.parts.select(f)}}},[o,e])}var NC={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:"Customer photos in a card grid 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 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 theme-color-accented stat cards.",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 document header \u2014 headline, metadata and standfirst.",DocTabs:"A sticky tab bar to switch between documents.",DocBody:"Long-form document body with an 'On this page' contents list.",DocMetaCards:"A three-up meta strip for the foot of a document.",Banner:"Wide promo strip with background image.",Stats:"Highlight key numbers \u2014 years, designs.",Countdown:"Hours, minutes and seconds to a set date and time, then one line.",KeyFeatures:"A theme-color chip and heading over a grid of short feature labels.",Logos:"A row of partner or brand logos.",Ticker:"A scrolling marquee of short phrases, full width.",Reviews:"Approved customer reviews in a star-rated card grid, pulled live.",SubmitBuild:"A 'Show us yours.' headline with a photo-submission form.",ReviewForm:"A write-a-review form \u2014 submissions wait for your approval before they show.",ContactRouting:"Pick who to reach, then a form that routes the message.",ContactLocations:"Your locations as a city gallery plus address and map cards.",SectionHeader:"A numbered section title with optional link.",Grid:"Multi-column container for blocks.",Flex:"An empty section. Add whatever you want inside.",Spacer:"Vertical breathing room between sections.",Divider:"A thin horizontal rule between sections.",CustomHTML:"Drop in your own sanitized HTML.",Heading:"A single heading line.",Text:"A paragraph of body copy.",ImageBlock:"A standalone image, at the width you set.",ButtonBlock:"A call-to-action button."};var QM="Save your page changes first";function MC(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:QM}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var HC="storefront-editor:save-as-template";var JM="plain",WC=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],e2="line",o2={KeyFeatures:"filled"};function Wa(e){return o2[e]??JM}function Ire(e,o){return Je(WC,Wa(o),e)}function hre(e){return Je(WC,e2,e)}var t2="inline",r2=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var ft={ProductGrid:{num:"num",title:"title",description:"description",headRows:["num","title","titleSize","description","linkText","linkHref"],renderer:"ProductGridSection",padKey:"padTop",linkProp:"link"},TyreSizes:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreSizes"},FitmentFinder:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentFinder"},TyreFitment:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicTyreFitment"},BundleOffer:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicBundleOffer"},CompatibleTyres:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},RelatedProducts:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"DynamicRelatedProducts"},SpecTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"SpecTable"},FAQ:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"FAQ"},GalleryB:{num:"num",title:"title",headRows:["num","title","linkText","linkHref"],renderer:"GalleryGrid"},FitmentTable:{num:"num",title:"title",description:"description",headRows:["num","title","description"],renderer:"FitmentTable"},Events:{num:"num",title:"title",linkProp:"link",headRows:["num","title","linkText","linkHref"],renderer:"Events"},ProcessSteps:{num:"num",title:"title",description:"description",headRows:["num","title","description"],headStyle:"editorial",renderer:"ProcessSteps",padKey:"padTop"},LongRead:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"LongRead"},Series:{num:"headNum",title:"headTitle",description:"headDesc",headRows:["headNum","headTitle","headDesc"],headStyle:"editorial",renderer:"Series"},TimelineTrack:{num:"eyebrow",title:"title",description:"intro",headRows:["eyebrow","title","intro"],headStyle:"editorial",renderer:"TimelineTrack",padKey:"padTop"},StatsParagraph:{num:"eyebrow",title:"title",description:"desc",headRows:["eyebrow","title","desc"],headStyle:"editorial",renderer:"StatsParagraph"},Footprint:{num:"sectionNumber",title:"heading",description:"tagline",headRows:["sectionNumber","heading","tagline"],headStyle:"editorial",renderer:"Footprint",padKey:"padTop"},Collections:{num:"eyebrow",title:"heading",headRows:["eyebrow","heading"],renderer:"Collections"},Cards:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Cards"},Testimonials:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Testimonials"},Reviews:{num:"eyebrow",title:"title",headRows:["eyebrow","eyebrowLook","title"],headStyle:"simple",renderer:"Reviews"},Prose:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"essay",renderer:"Prose"},ReviewForm:{num:"eyebrow",title:"title",headRows:["eyebrow","title"],headStyle:"simple",renderer:"ReviewForm"},DeliveryOptions:{num:"eyebrow",title:"title",description:"body",headRows:["eyebrow","title","body"],headStyle:"natural",headRowGap:"gap-3",headDescriptionSize:"text-[15px]",renderer:"DeliveryOptions"}},Ar="SectionHeader";function zC(e){return e in ft}function Sre(e){return Je(r2,t2,e)}var GC=new Set(["Flex"]);function Cre(e){return!!e?.type&&GC.has(e.type)}var a2={not:{context:"parentType",in:[...GC]}};function vre(e,o,t){return Tl(e,t,a2)}var n2={not:{field:"headPlacement",is:"own-box"}};function wre(e,o,t){return Tl(e,t,n2)}function UC(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=us(e);return n?n(o,t):zC(e)&&a(ge)&&a(Ar)?{type:ge,props:{...o(ge),id:t(ge),direction:"column",name:`${r(e)} section`,content:[{type:Ar,props:{...o(Ar),id:t(Ar),...ft[e]?.headStyle?{headStyle:ft[e].headStyle}:{},...ft[e]?.headRowGap?{rowGap:ft[e].headRowGap}:{},...ft[e]?.headDescriptionSize?{descriptionSize:ft[e].headDescriptionSize}:{},...Wa(e)!==Wa(Ar)?{eyebrowLook:Wa(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box"}}]}}:Eo[e]?.fixed===!0?{type:e,props:{...o(e),id:t(e),layout:"boxes"}}:null}import{useEffect as l2,useState as s2}from"react";function $C(){let e=De().chrome?.products?.list,[o,t]=s2(null);return l2(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function XC({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=Cl(),a=YC().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=za(f=>{f&&(o({kind:"ticker",heroId:f}),Sh(f))},[o]);return Fo(()=>{t(s)},[s,t]),Fo(()=>{r(i)},[r,i]),{partRows:(f,{rowClick:u})=>{let p=String(f.props.id);return f.type==="Hero"&&Ce(VC,{icon:Ce(Rt,{type:"ticker",size:13}),name:l(da),onSelect:()=>i(p),selected:s===p,rowProps:{onClick:u(()=>i(p))},words:a})}}}function ZC({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=vl(),a=YC().tree,{appState:n}=g2(x=>x),s=n.data.content??[],i=i2(s);i.current=s;let f=e,u=ua.find(x=>pa[x]===f.kind),p=u&&"nodeId"in f?ma(String(f.nodeId),u):null,m=za(x=>{let h=ag(x);if(!h)return;let b=i.current.findIndex(k=>String(k.props.id)===h.nodeId);if(b<0)return;let C={kind:pa[h.part],nodeId:h.nodeId};o({index:b},C)},[o]);return Fo(()=>{t(p)},[p,t]),Fo(()=>{r(m)},[r,m]),{partRows:(x,{rowClick:h})=>{let b=String(x.props.id),C=rg(x);if(C.length===0)return null;let k=g=>{let y=ma(b,g.part);return Ce(VC,{icon:Ce(Rt,{type:g.part==="media"?"heroMedia":"heroImage",size:13}),name:l(g.label),onSelect:()=>m(y),selected:p===y,rowProps:{onClick:h(()=>m(y))},words:a},y)},[v,...w]=C;return gs(KC,{children:[k(v),w.length>0&&Ce(h2,{children:w.map(k)})]})}}}function QC(e,o){return{partRows:(t,r)=>gs(KC,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function y2(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:f,token:u}=ye(),{hasPreviewLink:p}=t,m=Ue(De()).preview?.draftLink,x=QS(e.data),h=MC({hasTrustedConsole:!!u,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),b=za(()=>{!a||!r||f(HC,{siteId:a,slug:r})},[f,a,r]),C=GS({pageSlug:r,siteId:a,token:u}),k=o.previewHref?.(r)??C;return{barLead:()=>h.visible&&Ce(d2,{side:"bottom",content:h.enabled?l("Save this website as a platform template"):l(h.disabledReason),children:Ce("span",{className:"sf-tip-disabled",tabIndex:h.enabled?void 0:0,children:Ce(c2,{variant:"secondary",disabled:!h.enabled,onClick:b,rightIcon:Ce(I2,{size:15}),children:l("Save as Template")})})}),barTrail:()=>p&&r&&Ce(qS,{liveHref:k,pageId:n??null,draftLink:m}),mainAction:x}}function S2(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=ye(),{hasSiteTheme:i,explainsSiteSettings:f}=t,u=v=>o.setView(v),[p,m]=f2(ir[0].id),{surface:x,setSurface:h}=qh(),b=()=>{if(i){u("styles"),o.reveal(),zf();return}e.show(bd),e.reveal(),zf()},C={id:"pages",label:l("Pages"),icon:Ce(p2,{}),panel:({onHide:v})=>Ce(Nh,{activeSurface:x,onPreviewSurface:h,onNavigate:w=>{h(null),s(r?{kind:"template",id:r,pageSlug:w}:{kind:"page",slug:w,siteId:a??void 0})},onClose:v})},k=[];return!i&&f&&k.push({id:"appearance",label:l("Appearance"),icon:Ce(x2,{}),active:e.kind==="website",onSelect:b}),i&&k.push({id:"styles",label:l("Site styles"),icon:Ce(m2,{}),panel:({onHide:v,notify:w})=>Ce(cS,{tokenRef:n,siteId:a??void 0,onClose:v,onNotify:w,tab:p,onTabChange:m})}),{railLead:[C],railTrail:k,resolveLeftView:(v,w)=>hC(v,i,w),openSettings:b,openStyles:()=>{m(vh),u("styles")}}}function C2(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;Fo(()=>{dC(s?.type==="BookingBox"&&s.props.region==="confirm"?uC(i(String(s.props.id))):null)},[s?.props.id]);let f=RS(e,o),{capabilities:{hasSiteSettings:u}}=ye(),{setSelected:p,setSelectHandler:m}=$(),{chat:x,setChat:h,setSelected:b,setSelectHandler:C}=Sl(),k=a==="header";Fo(()=>{p(k)},[k,p]),Fo(()=>{m(()=>n(gd))},[m,n]);let v=za(()=>n(eS),[n]),w=a==="chat";Fo(()=>{b(w)},[w,b]),Fo(()=>{C(v)},[C,v]);let{setOpenHandler:g}=ca(),y=za(()=>n(oS),[n]);Fo(()=>{g(y)},[g,y]);let F=QC(XC(e),ZC(e)),E=y2(o),L=S2(e,r),B=t.device;return{...F,...E,...L,hasOwnRows:O=>O.type===ss,ownRows:f.renderLocationTree,sectionPressed:f.sectionPressed,wrap:O=>Ce(Ds.Provider,{value:!0,children:Ce(b2.Provider,{value:B,children:O})}),addPanelRow:O=>u?gs("div",{className:"sf-addside-sitewide",children:[Ce("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:Ce(Rt,{type:"chat",size:16})}),gs("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{O(),v()},children:[l("Live chat"),Ce("span",{className:"sf-addside-sitewide-desc",children:l("A chat bubble on every page")})]}),Ce(u2,{checked:x.enabled,onChange:M=>h({enabled:M}),ariaLabel:l("Show the chat bubble on the whole site")})]}):void 0}}var qC=null,Vd=new WeakMap;function v2(e){let o=Tu();if(!e||!o)return e;qC!==o&&(qC=o,Vd=new WeakMap);let t=Vd.get(e);return t||(t={...e,choices:e.choices?e.choices.map(r=>({...r,label:l(r.label)})):null,spec:e.spec?{...e.spec,addLabel:l(e.spec.addLabel)}:null},Vd.set(e,t)),t}var w2={isLockedBlock:wC,duplicateBlocked:Zl,nestDepth:(e,o,t)=>o===an?np(e,t):0,newSectionNode:UC,canAddTo:(e,o)=>v2(cC(e,o)),blockIsOffered:fC},k2=new Proxy(NC,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?l(t):t}}),T2={labelAtLevel:(e,o,t)=>l(Nd(e,o,t)),descriptions:k2,categoryLabel:e=>{let o=oC(e);return o===void 0?void 0:l(o)},firstSection:tC,blockRowName:pC,plainText:Ct,Icon:Rt,Thumbnail:fS,useProducts:$C},E2={desktop:2e3,tablet:800,mobile:390},jC="desktop",F2={options:zh,initial:jC,fluid:jC,widths:E2},P2={read:xC,write:e=>IC(e),forSelection:(e,o)=>gC(e,o)},L2={first:Ve,last:pe,firstGroup:Ne,lastGroup:de,isSectionGroup:Cr,sectionGroupZone:hy,panelOf:e=>e===Ve?gd:null,get groupTab(){return Rr()?vy:void 0},get groupBadge(){return Rr()?wy():void 0},get changeNotice(){return Rr()?ky():void 0},get band(){return Rr()?O2:void 0},get groupAccepts(){return Rr()?Sy:void 0}},O2={foldable:!0};function R2(e){return{...QC(XC(e),ZC(e)),openSettings:()=>e.show(bd)}}var Nae={useOwnerName:fr,useDocumentLabel:Fh,useBridges:C2,useStandaloneBridges:R2,useDocumentPass:NS,blockRules:w2,blockLook:T2,devices:F2,leftView:P2,pinned:L2,Canvas:DC,Inspector:rS};export{koe as a,Toe as b,Eoe as c,Foe as d,it as e,Md as f,Moe as g,Ue as h,Gp as i,rC as j,zoe as k,DK as l,Gg as m,GK as n,Vg as o,UK as p,Yg as q,Zg as r,eb as s,ob as t,oV as u,tV as v,rV as w,aV as x,eB as y,cp as z,mV as A,on as B,fw as C,g5 as D,gt as E,b5 as F,y5 as G,an as H,np as I,Qoe as J,Joe as K,IM as L,op as M,nw as N,c5 as O,en as P,tp as Q,lw as R,sw as S,iw as T,p5 as U,m5 as V,x5 as W,I5 as X,tc as Y,BO as Z,_O as _,DO as $,Tl as aa,El as ba,Mq as ca,Ne as da,de as ea,XZ as fa,gy as ga,by as ha,Je as ia,ft as ja,Sre as ka,Cre as la,vre as ma,wre as na,xf as oa,a3 as pa,n3 as qa,ri as ra,Ct as sa,$r as ta,nl as ua,io as va,Ke as wa,s8 as xa,$P as ya,qP as za,i8 as Aa,nr as Ba,f8 as Ca,c8 as Da,kf as Ea,QI as Fa,il as Ga,h8 as Ha,g8 as Ia,b8 as Ja,y8 as Ka,P1 as La,xa as Ma,Eg as Na,Fg as Oa,Rl as Pa,tK as Qa,rK as Ra,aK as Sa,nK as Ta,AH as Ua,NH as Va,MH as Wa,HH as Xa,Se as Ya,x0 as Za,Ni as _a,I0 as $a,QW as ab,ez as bb,oz as cb,g0 as db,tz as eb,ix as fb,Wi as gb,zi as hb,cz as ib,uz as jb,pz as kb,mz as lb,xz as mb,Qt as nb,Do as ob,qi as pb,ux as qb,w0 as rb,ji as sb,On as tb,gz as ub,gn as vb,pm as wb,Kr as xb,Im as yb,j6 as zb,ST as Ab,K6 as Bb,nn as Cb,up as Db,A5 as Eb,B5 as Fb,Rw as Gb,_5 as Hb,M5 as Ib,mp as Jb,H5 as Kb,Bw as Lb,W5 as Mb,WT as Nb,Sn as Ob,bW as Pb,Ei as Qb,yW as Rb,KT as Sb,SW as Tb,vW as Ub,wW as Vb,BW as Wb,_W as Xb,DW as Yb,Fm as Zb,mW as _b,xW as $b,IW as ac,hW as bc,QT as cc,vn as dc,TW as ec,Nm as fc,A2 as gc,V as hc,l as ic,xt as jc,Vb as kc,Ol as lc,sX as mc,jb as nc,$t as oc,ye as pc,De as qc,i6 as rc,In as sc,rm as tc,c6 as uc,sv as vc,iv as wc,Ls as xc,uT as yc,O6 as zc,cm as Ac,Yo as Bc,a5 as Cc,i5 as Dc,js as Ec,Tw as Fc,P5 as Gc,U5 as Hc,we as Ic,ni as Jc,A3 as Kc,Xo as Lc,Bo as Mc,H3 as Nc,fi as Oc,ci as Pc,o4 as Qc,t4 as Rc,Hp as Sc,r4 as Tc,a4 as Uc,n4 as Vc,Kt as Wc,jp as Xc,Vp as Yc,M6 as Zc,um as _c,Oe as $c,Pu as ad,z2 as bd,dv as cd,G2 as dd,U2 as ed,Ou as fd,j2 as gd,uv as hd,K2 as id,V2 as jd,mv as kd,Z2 as ld,xv as md,Q2 as nd,Ut as od,eH as pd,oH as qd,tH as rd,rH as sd,Ya as td,aH as ud,gv as vd,dH as wd,Du as xd,yv as yd,Sv as zd,Cv as Ad,wv as Bd,kv as Cd,Tv as Dd,As as Ed,uH as Fd,PT as Gd,uW as Hd,FW as Id,PW as Jd,LW as Kd,OW as Ld,RW as Md,Ym as Nd,d0 as Od,MW as Pd,Km as Qd,Vm as Rd,HW as Sd,kn as Td,Tn as Ud,zW as Vd,Zt as Wd,Fn as Xd,$W as Yd,qW as Zd,jW as _d,ax as $d,VW as ae,rt as be,Ho as ce,Zi as de,vo as ee,FG as fe,PG as ge,LG as he,OG as ie,_G as je,DG as ke,ME as le,NG as me,MG as ne,HG as oe,UE as pe,WG as qe,zG as re,GG as se,Re as te,UG as ue,jE as ve,$G as we,qG as xe,tr as ye,jG as ze,Dn as Ae,Jt as Be,KG as Ce,Kx as De,Hn as Ee,Wn as Fe,VG as Ge,YG as He,XG as Ie,ZG as Je,QG as Ke,JG as Le,eU as Me,oU as Ne,tU as Oe,rU as Pe,aU as Qe,nU as Re,zn as Se,Gn as Te,Un as Ue,of as Ve,$n as We,lU as Xe,Et as Ye,sU as Ze,iU as _e,fU as $e,cU as af,dU as bf,uU as cf,pU as df,mU as ef,tt as ff,xU as gf,IU as hf,qn as if,hU as jf,tf as kf,gU as lf,bU as mf,rf as nf,yU as of,eI as pf,oI as qf,tI as rf,SU as sf,RF as tf,CU as uf,vU as vf,DD as wf,By as xf,Ye as yf,kr as zf,MD as Af,My as Bf,_Q as Cf,DQ as Df,NQ as Ef,MQ as Ff,HQ as Gf,WQ as Hf,zQ as If,GQ as Jf,UQ as Kf,$Q as Lf,qQ as Mf,wl as Nf,CO as Of,Tq as Pf,Eq as Qf,TO as Rf,FO as Sf,jh as Tf,RO as Uf,Rq as Vf,Aq as Wf,Vh as Xf,Bq as Yf,Xh as Zf,Yh as _f,qq as $f,yl as ag,rq as bg,aq as cg,Sl as dg,mO as eg,mq as fg,ca as gg,gq as hg,qh as ig,moe as jg,xoe as kg,Ioe as lg,hoe as mg,vte as ng,wte as og,Tte as pg,Sq as qg,wq as rg,vl as sg,iee as tg,dS as ug,uS as vg,vH as wg,T8 as xg,E8 as yg,F8 as zg,P8 as Ag,qf as Bg,jf as Cg,Jh as Dg,Kq as Eg,eg as Fg,HO as Gg,rc as Hg,Zq as Ig,Qq as Jg,WO as Kg,Jq as Lg,ma as Mg,ag as Ng,e9 as Og,lg as Pg,Bj as Qg,pg as Rg,Pc as Sg,Lc as Tg,lA as Ug,sA as Vg,Oc as Wg,cA as Xg,ga as Yg,Bl as Zg,uK as _g,Dc as $g,SK as ah,CK as bh,vK as ch,Hg as dh,sB as eh,iB as fh,fB as gh,SV as hh,CV as ih,IB as jh,gB as kh,xb as lh,LV as mh,OV as nh,Cb as oh,NV as ph,Ca as qh,kb as rh,Gc as sh,Tb as th,Eb as uh,GV as vh,Fb as wh,AB as xh,UV as yh,$V as zh,qV as Ah,jV as Bh,BB as Ch,KV as Dh,VV as Eh,YV as Fh,DB as Gh,XV as Hh,HB as Ih,ZV as Jh,$c as Kh,yY as Lh,$l as Mh,xX as Nh,F_ as Oh,Jb as Ph,P_ as Qh,Ea as Rh,L_ as Sh,O_ as Th,CX as Uh,ay as Vh,pZ as Wh,mZ as Xh,pe as Yh,Xl as Zh,uo as _h,IS as $h,hS as ai,uee as bi,Da as ci,gS as di,bS as ei,xee as fi,Iee as gi,_N as hi,MS as ii,Od as ji,HS as ki,cC as li,Ite as mi,xs as ni,TM as oi,EM as pi,Ate as qi,IH as ri,yH as si,JM as ti,WC as ui,e2 as vi,Wa as wi,Ire as xi,hre as yi,Nae as zi};