efficient-storefront-blocks 0.42.1 → 0.43.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.
@@ -1,255 +0,0 @@
1
- import{A as jo,Aa as ee,B as Bt,Ba as _d,C as Dt,Da as Ba,E as Cd,Ea as Nd,Fa as Md,H as zl,J as vd,K as Wl,M as wd,N as kd,P as Td,Q as Gl,S as Fd,T as ro,U as dt,V as Ed,W as wo,X as Oa,Z as Pd,_ as Ul,a as pd,ba as Ld,c as md,ca as $l,d as No,e as Ot,ea as ql,f as Mo,g as Ra,h as hd,ia as Rd,l as Pr,n as Ml,oa as ut,qa as Od,s as gd,sa as Ad,t as bd,u as Hl,ua as Bd,v as uo,w as yd,x as Sd,xa as Aa,y as At,ya as Dd,z as vo}from"./chunk-M72Y46OD.js";import{a as ud,c as co,l as xd,m as Er,n as Id,q as Hd,u as jl}from"./chunk-ZC4KGN3D.js";var Da=null,pS="en",Wd=null;function s_(e,o,t){Da=e??null,pS=o||"en",Wd=t??null}function X(){return Wd}function Gd(){return Da}function zd(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=Da?Da[e]:void 0;if(typeof t=="function"){try{let r=t(o??{});if(typeof r=="string"&&r)return r}catch{}return zd(e,o)}return zd(typeof t=="string"&&t?t:e,o)}function pt(e,o,t,r){return l(t===1?e:o,{...r,n:t})}import{EaselSessionProvider as c_,useEaselSession as Ae}from"efficient-easel/screen/lib/session-context";import{hostLoadRefusalOf as mS,hostUnreachableMessage as xS,isBackendError as IS,provideHostFailures as hS,readHostFailure as gS,STATUS_UNREACHABLE as bS,WebsiteBackendError as Kl}from"efficient-easel/screen/lib/backend-error";import{createEaselHost as h_,DETACHED_EASEL_HOST as g_,EaselHostContext as b_,EaselHostProvider as y_,useEaselHost as _t}from"efficient-easel/screen/lib/host";function We(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 Ud(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function $d(e,o){return typeof e=="boolean"?e:o}function _a(e,o){if(!Array.isArray(e))return o;let t=e.map(r=>typeof r=="string"?r:We(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var qd="cart-drawer",w_="cart-drawer";var yS={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 k_(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function T_(e){let o=e??{},t=yS;return{kickerBadge:We(o.kickerBadge,t.kickerBadge),kickerText:We(o.kickerText,t.kickerText),titleLead:We(o.titleLead,t.titleLead),titleAccent:We(o.titleAccent,t.titleAccent),subtitleEmpty:We(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:We(o.subtitleOne,t.subtitleOne),subtitleMany:We(o.subtitleMany,t.subtitleMany),leadTimeValue:We(o.leadTimeValue,t.leadTimeValue),shipsToFallback:We(o.shipsToFallback,t.shipsToFallback),promises:_a(o.promises,t.promises),emptyKicker:We(o.emptyKicker,t.emptyKicker),emptyBody:We(o.emptyBody,t.emptyBody)}}var SS=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],P_={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"},CS={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"},L_={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 vS(e){return typeof e=="string"&&Mo.includes(e)?e:null}function jd(e){let o={};for(let t of SS){let r=vS(e[CS[t]]);r&&(o[t]=r)}return o}var Nt="site-footer";var O_=Nt,A_={desktop:!0,tablet:!0,mobile:!0},B_={desktop:!1,tablet:!1,mobile:!1},Vl=1,Kd=6,D_=Array.from({length:Kd-Vl+1},(e,o)=>Vl+o),Na={desktop:6,tablet:3,mobile:2},wS={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}},mt=e=>Math.min(Math.max(Math.round(e),Vl),Kd);function __(e){if(typeof e=="number")return wS[mt(e)]??{desktop:mt(e),tablet:mt(e),mobile:mt(e)};if(e&&typeof e=="object"){let o=e;return{desktop:mt(o.desktop??Na.desktop),tablet:mt(o.tablet??Na.tablet),mobile:mt(o.mobile??Na.mobile)}}return{...Na}}var kS="subscribe-popup",G_="subscribe-popup";var TS=[kS,Nt,qd];function Xd(e){return TS.includes(e)}var FS=["delay","scroll","exit"],ES=["all","chosen"],PS=["visit","days","never"],LS=["right","left"],RS={min:0,max:60},OS={min:10,max:90},AS={min:1,max:90},Xl={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:{}},he=We,BS=Ud,Vd=$d,Zd=_a;function Ma(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Yl(e,o,t){let r=BS(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function DS(e){return typeof e.hideAfter=="string"?Ma(PS,e.hideAfter,Xl.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":Xl.hideAfter}function _S(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function Yd(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 NS(e,o){return Array.isArray(e)?Zd(e,[]):o}function MS(e,o){return Array.isArray(e)?e.map(t=>{let r=t??{};return{label:he(r.label,""),value:he(r.value,"")}}).filter(t=>t.label||t.value):o}function U_(e){let o=e??{},t=Xl;return{metaLabel:he(o.metaLabel,t.metaLabel),issueLabel:Yd(o.issueLabel,t.issueLabel),issueNumber:Yd(o.issueNumber,t.issueNumber),kicker:he(o.kicker,t.kicker),heading:he(o.heading,t.heading),deck:he(o.deck,t.deck),stats:MS(o.stats,t.stats),formLabel:he(o.formLabel,t.formLabel),formHeading:he(o.formHeading,t.formHeading),formIntro:he(o.formIntro,t.formIntro),firstNameLabel:he(o.firstNameLabel,t.firstNameLabel),firstNamePlaceholder:he(o.firstNamePlaceholder,t.firstNamePlaceholder),emailLabel:he(o.emailLabel,t.emailLabel),emailPlaceholder:he(o.emailPlaceholder,t.emailPlaceholder),interestsLabel:he(o.interestsLabel,t.interestsLabel),interests:Zd(o.interests,t.interests),frequencyLabel:he(o.frequencyLabel,t.frequencyLabel),frequencies:NS(o.frequencies,t.frequencies),submitText:he(o.submitText,t.submitText),finePrint:he(o.finePrint,t.finePrint),dismissText:he(o.dismissText,t.dismissText),emailInvalidText:he(o.emailInvalidText,t.emailInvalidText),submitErrorText:he(o.submitErrorText,t.submitErrorText),successHeading:he(o.successHeading,t.successHeading),successBody:he(o.successBody,t.successBody),keepBrowsingText:he(o.keepBrowsingText,t.keepBrowsingText),formSlug:typeof o.formSlug=="string"?o.formSlug.trim():t.formSlug,autoOpen:Vd(o.autoOpen,t.autoOpen),autoOpenDelaySec:Yl(o.autoOpenDelaySec,RS,t.autoOpenDelaySec),trigger:Ma(FS,o.trigger,t.trigger),scrollPercent:Yl(o.scrollPercent,OS,t.scrollPercent),showOn:Ma(ES,o.showOn,t.showOn),showOnPages:_S(o.showOnPages),hideAfter:DS(o),hideDays:Yl(o.hideDays,AS,t.hideDays),formSide:Ma(LS,o.formSide,t.formSide),valuePanelOnPhone:Vd(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:jd(o)}}import{jsx as Zl,Fragment as HS,jsxs as zS}from"react/jsx-runtime";import{createContext as WS,useContext as GS}from"react";var US={mirrorHostStyles:!0,css:null,fontHrefs:[]},Qd=WS(US);function K_({value:e,children:o}){return Zl(Qd.Provider,{value:e,children:o})}function Ql(){return GS(Qd)}function Jd(){let{css:e,fontHrefs:o}=Ql();return zS(HS,{children:[o.map(t=>Zl("link",{rel:"stylesheet",href:t},t)),e?Zl("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as $S}from"react/jsx-runtime";import{createContext as qS,useContext as jS}from"react";var eu=qS(void 0);function Z_({metadata:e,children:o}){return $S(eu.Provider,{value:e,children:o})}var ou=()=>jS(eu);import{jsx as ye,jsxs as fd}from"react/jsx-runtime";import{useCallback as Dl,useEffect as st,useState as HD}from"react";import{Button as zD,Tooltip as WD}from"efficient-shell/ui";import{SettingsSwitch as GD}from"efficient-easel/panel";import{PagesIcon as UD,StylesIcon as $D}from"efficient-easel/rail";import{TreeRow as qD}from"efficient-easel/tree";import{useEaselStrings as jD}from"efficient-easel/strings";import{createContext as KS,useContext as VS}from"react";var Jl=KS(!1),eN=()=>VS(Jl);import{jsx as Z,Fragment as yf,jsxs as ir}from"react/jsx-runtime";import{Fragment as vE,useEffect as wE,useId as kE,useMemo as yI,useState as sr}from"react";import{ScreenDocumentContext as Mt,ScreenDocumentProvider as rN,useScreenDocument as Se}from"efficient-easel/screen/components/ScreenDocumentContext";import{default as Ge}from"efficient-easel/screen/components/UiIcon";import{default as Ha,PanelHideButton as es,PanelModeExit as iN,PanelShowStrip as fN}from"efficient-easel/screen/components/SidePanelHead";import{jsx as oe,jsxs as Tt,Fragment as nr}from"react/jsx-runtime";import{useEasel as pI}from"efficient-easel/easel";import{useState as uf}from"react";import{jsx as tt,jsxs as mx,Fragment as RT}from"react/jsx-runtime";import{useState as xx}from"react";import{SettingsDefaultReset as OT,SettingsField as AT}from"efficient-easel/panel";import{useEaselStrings as BT}from"efficient-easel/strings";import{jsx as I,jsxs as wt,Fragment as Ho}from"react/jsx-runtime";import{cloneElement as Lm,useId as Ak,useRef as pi,useState as In}from"react";import{useEasel as Yt,useSelectedFields as Rm}from"efficient-easel/easel";import{hidableText as tu,readHidable as Ue}from"efficient-easel/screen/lib/puck/hidable";import{ANCHOR_FIELD_KEYS as mN,FOLD_FIELD_MARKER as za,foldMetaOf as ko,LINK_FIELD_MARKER as Lr,MEDIA_FIELD_MARKER as ru,SCAFFOLD_FIELD_MARKER as Rr,TEXT_FIELD_MARKER as ge,textFieldIdentifier as YS}from"efficient-easel/screen/lib/puck/field-markers";import{jsx as du}from"react/jsx-runtime";import{useCallback as JS,useEffect as eC,useRef as oC,useState as tC}from"react";import{useEasel as rC}from"efficient-easel/easel";import{SettingsAction as aC}from"efficient-easel/panel";function os(e){return typeof e=="number"&&Number.isFinite(e)}function hN(e,o){if(!os(e))return;let t=Oa(wo(e));if(Object.keys(t).length===0)return;let r=t[Wa];if(typeof r!="string")return t;let a=Ht(o)?zt(r,To(o)??[]):r;return{...t,[XS]:a}}var XS="--sf-section-radius",Wa="--sf-card-radius",Ko=["tl","tr","br","bl"];function To(e){if(!Array.isArray(e))return null;let o=e.filter(t=>Ko.includes(t));return Ko.filter(t=>o.includes(t))}function Ht(e){let o=To(e);return o!==null&&o.length<Ko.length}function zt(e,o){return Ko.map(t=>o.includes(t)?e:"0").join(" ")}var ts=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var ZS="--sf-card-box-radius",QS="--sf-site-card-radius",CN="sf-section-bleeds";function rs(e){return typeof e=="number"&&Number.isFinite(e)}function vN(e,o){if(!rs(e))return;let t=Oa(wo(e))[Wa];if(typeof t!="string")return;let r=Ht(o)?zt(t,To(o)??[]):t;return{[ZS]:r}}function wN(e){let o=e[Wa];return typeof o=="string"?{[QS]:o}:{}}function au(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{childSlotsOf as FN,FOOTER_TYPE as re,HEADER_TYPE as Ce,locateNode as nu,missingPinnedTypes as lu,nestsInTree as EN,newNodeId as Or,pinnedDuplicateIds as Ga,pinnedDuplicateIndices as PN,ROOT_ZONE as Fo,slotFieldsOf as LN,TREE_MAX_DEPTH as RN}from"efficient-easel/screen/lib/puck/content-tree";function su(e,o,t){let r=t?.zone??"",a=r.lastIndexOf(":"),n=a>0?r.slice(0,a):"",s=a>0?r.slice(a+1):"",i=n?nu(e,o,n):null,c=i&&Array.isArray(i.item.props[s])?i.item.props[s]:[],u=t?.index??-1,p=u>=0?c[u]:void 0,m=p?.props?.id?String(p.props.id):"",x=Math.max(c.length-1,0);return!i||!m?{can:!1,reason:"unreachable",others:0}:c.length<=1?{can:!1,reason:"alone",others:x}:rs(p?.props?.cardCorners)?{can:!0,others:x,zone:i.zone,index:i.index,data:{...i.item,props:{...i.item.props,[s]:au(c,m)}}}:{can:!1,reason:"unset",others:x}}function iu(e){return e.can?pt("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 fu(e){return pt("Applied to {n} card","Applied to {n} cards",e)}function cu(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as Vo}from"efficient-easel/screen/lib/puck/use-section-ops";var nC=2200,lC="apply-corners-to-siblings",sC="Apply to all cards";function iC({plan:e,doneCount:o,onPress:t}){return du(aC,{id:lC,label:l(sC),note:iu(e),disabled:!e.can,done:o!==null,doneLabel:fu(o??0),onPress:t})}function uu(){let{appState:e,config:o}=rC(c=>c),t=Vo(),[r,a]=tC(null),n=oC(null);eC(()=>()=>{n.current&&clearTimeout(n.current)},[]);let s=su(o,e.data.content??[],e.ui.itemSelector),i=JS(()=>{cu(s,t.replaceComponent),s.can&&(a(s.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>a(null),nC))},[s,t]);return du(iC,{plan:s,doneCount:r,onPress:i})}var pu=1;function fC(e){return wo(e)}function VN(e){let o=fC(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var mu=1,xu="Corners";function cC(e){return wo(e)}function QN(e,o){let t=cC(e);if(t===null)return null;let r=`${t}px`;return{borderRadius:Ht(o)?zt(r,To(o)??[]):r}}var Eo={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]]}},as=Object.keys(Eo),hu=[2,3,4,6];function gu(e){return typeof e!="string"||e===""?null:Eo[e]??null}function Iu(e,o){return o?6/e.acrossPhone:12/e.across}var dC="sf-wall--";function uC(e){return`${dC}${e}`}function e2(e){let o=Eo[e],t=`.${uC(e)}`,r=[],a=(n,s)=>{let i=[],c=n.length;n.forEach(([u,p],m)=>{i.push(`${t} > :nth-child(${c}n+${m+1}){grid-column:span ${u};grid-row:span ${p}}`)});for(let u=1;u<c;u+=1)i.push(`${t}:has(> :nth-child(${c}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,Iu(o,!1))),r.push("@media (max-width:800px){"),r.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),r.push(...a(o.phone,Iu(o,!0))),r.push("}"),r.join("")}var Ua=12,bu=1,pC=3;var mC=3;function ns(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 xC(e){return ns(e,1,Ua)??mC}function r2(e,o){return ns(e,bu,pC)??(xC(o)===4?2:bu)}function a2(e){return e==null||e===""?null:ns(e,1,Ua)}var n2="data-sf-span";function l2(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(gu(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}var po=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],$a="bottom-left";var Ar={"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 IC(e){let o=po.indexOf(xt(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function hC(e){return 1+IC(e).band*6}function i2(e){return hC(e)+1}function xt(e){return po.includes(e)?e:$a}function f2(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function c2(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function ls(e,o){let t=xt(o);return e.filter(r=>xt(r?.props?.placement)===t).length}function yu(e){return`${Ar[xt(e)]} already holds 4 boxes. Move one somewhere else first.`}function ss(e,o){let t=e.filter(r=>r?.props?.id!==o);return po.map(r=>{let a=ls(t,r)>=4,n=Ar[r];return a?{value:r,label:n,disabled:!0,title:yu(r)}:{value:r,label:n}})}function qa(e,o){let t=o===void 0?$a:xt(o?.props?.placement);return ls(e,t)>=4?yu(t):null}var ja="HeroGroup";function gC(e){return po.map(o=>{let t=ls(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function is(e){let o=gC(e);return o.length===0?null:o.map(({anchor:t,total:r,hidden:a})=>{let n=Ar[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 Su(e,o){let t=o;if(t?.type!==ja)return null;let r=t.props?.id===void 0?"":String(t.props.id);return r?qa(fs(e,r),t):null}function fs(e,o){let t=vu(e,o);return t&&t.ownerType===yC?t.siblings:[]}function Cu(e,o){let t=vu(e,o);return t?t.ancestorTypes.filter(r=>r===ja).length:bC}var bC=1,yC="HeroSlide";function vu(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 c=i.type,u=r(i,n+1,[...s,String(c)]);if(u)return u}return null}for(let i of Object.values(a)){let c=r(i,n+1,s);if(c)return c}return null};return r(e,0,[])}import{jsx as SC}from"react/jsx-runtime";var CC="sf-hint-keep";function wu({children:e}){return SC("span",{className:CC,children:e})}import{AdjustIcon as Bk,AlignLeftIcon as Dk,EyeIcon as _k,AlignSeparateIcon as Nk,AnimationIcon as Om,BackgroundIcon as Mk,BorderAllIcon as Hk,BlockSectionIcon as zk,CartIcon as Wk,ColumnWidthsIcon as Am,ColumnsIcon as Gk,CornerIcon as Uk,DirectionDownIcon as $k,DirectionLeftIcon as qk,DirectionRightIcon as jk,DirectionUpIcon as Kk,DollarIcon as Vk,FinishIcon as Yk,GapIcon as Bm,GridIcon as Xk,GroundIcon as Zk,HashIcon as Dm,HeightIcon as Qk,ImageIcon as Jk,ListIcon as e0,LocationIcon as ui,PaddingAllIcon as o0,PaddingBottomIcon as _m,PaddingLeftIcon as Nm,PaddingRightIcon as Mm,PaddingTopIcon as Hm,PageIcon as zm,PhoneIcon as t0,PlacementIcon as r0,ProductSizeIcon as a0,StickyIcon as n0,RotateIcon as l0,SquareIcon as s0,TypeIcon as i0,WidthIcon as f0,WrapIcon as c0}from"efficient-easel/icons";import{jsx as V,Fragment as Po,jsxs as Lo}from"react/jsx-runtime";import{TitleIcon as vC,ButtonIcon as wC,DollarIcon as kC,HashIcon as TC,LinkIcon as FC,NoteIcon as EC,TagIcon as PC,TextLinesIcon as LC}from"efficient-easel/icons";var ku={body:LC,button:wC,link:FC,label:PC,number:TC,price:kC,note:EC,title:vC},Tu={eyebrow:Lo(Po,{children:[V("path",{d:"M5 6.5h5"}),V("path",{d:"M5 12.5h14"}),V("path",{d:"M5 18h11"})]}),heading:Lo(Po,{children:[V("path",{d:"M6.5 5v14"}),V("path",{d:"M17.5 5v14"}),V("path",{d:"M6.5 12h11"})]}),intro:Lo(Po,{children:[V("path",{d:"M4 5.5v13"}),V("path",{d:"M8 7.5h12"}),V("path",{d:"M8 12h12"}),V("path",{d:"M8 16.5h8"})]}),value:Lo(Po,{children:[V("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),V("path",{d:"M6.5 12h7"})]}),name:Lo(Po,{children:[V("path",{d:"M6 3.5v17"}),V("path",{d:"M6 5h11.5l-2.6 3.6L17.5 12H6z"})]}),date:Lo(Po,{children:[V("rect",{x:"4",y:"5.5",width:"16",height:"15",rx:"2"}),V("path",{d:"M4 10.5h16"}),V("path",{d:"M9 3.2v4.4"}),V("path",{d:"M15 3.2v4.4"})]}),caption:Lo(Po,{children:[V("rect",{x:"3.5",y:"4.5",width:"17",height:"11",rx:"2"}),V("path",{d:"M3.5 12.8l4.2-3.2 3.6 2.8 3.4-2.4 5.8 4"}),V("path",{d:"M6.5 19.5h11"})]}),quote:Lo(Po,{children:[V("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),V("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:Lo(Po,{children:[V("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),V("path",{d:"M8 9.5h8"}),V("path",{d:"M12 9.5v5"})]}),meta:Lo(Po,{children:[V("path",{d:"M4 7h16"}),V("path",{d:"M4 14h3.5"}),V("path",{d:"M10.5 14h3"}),V("path",{d:"M17 14h3"})]})};function cs({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=ku[e];return n?V("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:V(n,{size:o})}):V("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:Tu[e]})}var I2=Object.keys(ku);var h2=Object.keys(Tu);var RC="#ffffff",OC=/^#[0-9a-fA-F]{6}$/;function ds(e){return AC(e)?e:RC}function AC(e){return typeof e=="string"&&OC.test(e)}function b2(e){return{"--bg":ds(e)}}var us=[{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}],BC=us.filter(e=>e.ink);function DC(e){let o={color:e.fg};for(let{role:t,token:r}of BC)o[r]=e[t];return o}var _C={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},Fu=Object.freeze(DC(_C));var Ka=-1,NC="sf-section-accent",Eu="Color",Pu=new Set(["CategoryBar","DocTabs"]),v2=new Set(["Flex"]),MC=0;function ps(e){return e===Ka?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:MC}function w2(e){return e??Ka}function HC(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 us)t[`--sf-sec-${r}`]=`var(${o}-${r}, var(--theme-${r}))`;return t}function k2(e){let o=ps(e.sectionAccent);return o===null?null:{className:NC,style:HC(o)}}var zC=["fade","rise","scale"],ms="none",Lu=[{label:"None",value:ms},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function E2(e){return zC.includes(e)?e:null}var Ru="data-sf-anim",Br="data-sf-anim-state";function P2(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(Ru))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(Br,"armed");let r=new IntersectionObserver(a=>{for(let n of a)if(n.isIntersecting){r.disconnect(),WC(e);break}},{threshold:0});return r.observe(e),()=>{r.disconnect(),e.removeAttribute(Br)}}function WC(e){if(!e.getAttribute(Ru))return;e.removeAttribute(Br),e.offsetWidth,e.setAttribute(Br,"play");let o=t=>{t.target===e&&(e.removeAttribute(Br),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var L2=Pu;function Is(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(xs(r,o,0))return a??{}}return null}function xs(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>xs(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>xs(a,o,t+1))}import{SettingsDefaultReset as oo,SettingsField as se,SettingsGroupHead as d0,SettingsGroupSub as u0,SettingsBorder as p0,SettingsSegmented as m0,SettingsSides as x0,SettingsSidesEach as Wm,sidesStartEach as I0,SettingsSwitch as Gm,borderSides as h0,borderStartEach as g0}from"efficient-easel/panel";import{FieldSelect as b0,ListField as y0}from"efficient-easel/fields";import{DisplayChips as S0}from"efficient-shell/ui";function Wt(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 Va(e,o){return Wt(e)[o]!==!1}function hs(e,o,t){let r=Wt(o)[t];return typeof r=="boolean"?r:Va(e,t)}function Ou(e){return Object.values(Wt(e)).some(o=>o===!1)}function Au(e){return Object.keys(Wt(e)).length>0}function Bu(e,o,t){let r={...Wt(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function Du(e,o,t){return{...Wt(e),[o]:t}}function A2(e,o,t){let r=Va(e,t),a=hs(e,o,t);return r&&a?"":!r&&!a?"hidden":r?"max-[720px]:hidden":"min-[720px]:hidden"}import{AlignmentGrid as C0,Checkbox as F4,CornersInput as v0,DateTimePicker as w0,FOCAL_DEFAULT as k0,Slider as T0,Tooltip as hn}from"efficient-shell/ui";import{jsx as Dr,jsxs as UC}from"react/jsx-runtime";import{ColorPicker as $C,HexInput as qC}from"efficient-shell/ui";import{typedHex as gs}from"efficient-easel/pick";import{typedHex as GC}from"efficient-easel/pick";function _u(e){let o=new Set,t=[];return uo(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 c=i?GC(i):null;!c||o.has(c)||(o.add(c),t.push({name:s,value:c}))}}),t}function mo({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,after:s,ariaLabel:i}){return Dr(KC,{value:e,onChange:o,label:l(i??t),id:r,caption:a,inherited:n,after:s})}function jC(){let{theme:e}=ee();return _u(e).map(o=>({value:o.value,label:o.name}))}function KC({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,after:s}){let i=jC(),c=e?null:gs(n??""),u=a!==void 0&&(!e||gs(a)!==gs(e))?a:null,p=m=>{m!==e&&o(m)};return UC("div",{className:"sf-colour",children:[Dr($C,{id:r,value:e,onChange:p,label:t,presets:i,fallback:c??void 0,size:"sm",align:"end"}),u!==null?Dr("span",{className:"sf-colour-caption",children:u}):Dr("span",{className:"sf-colour-hexwrap",children:Dr(qC,{value:e||c||"",onChange:p,label:l("{label} hex code",{label:t}),placeholder:e||c?void 0:l("Not set"),className:c?"sf-colour-hex is-inherited":"sf-colour-hex",size:"sm"})}),s]})}import{jsx as Be,Fragment as vs,jsxs as ws}from"react/jsx-runtime";import{useEffect as rv,useState as av}from"react";import{MarkBar as nv,markSelection as lv,useCaretEdit as sv}from"efficient-easel/copy";import{RevertIcon as iv}from"efficient-easel/icons";import{IconButton as fv,Tooltip as cv}from"efficient-shell/ui";import{applyMark as X2,markupTools as Z2,MARKUP_TOOLS as Q2,COPY_FIELD_TOOLS as J2,STOREFRONT_MARKUP as eM,tokenizeInline as oM,stripInline as tM,isSafeLinkHref as rM}from"efficient-easel/markup";import{applyMark as VC,markedAt as YC,markupTools as XC,MARKUP_TOOLS as ZC,parseMarkup as QC,RETIRED_MARKS as JC,STOREFRONT_MARKUP as ev,tokenizeInline as nM}from"efficient-easel/markup";var Ya=["highlight","strong","quiet"],It={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},Ro={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},Nu=Object.fromEntries(Ya.map(e=>[Ro[e].kind,e])),Mu="data-sf-ws",ys=["accent","text","labels"],Hu={accent:"Accent",text:"Text",labels:"Labels"},Yo={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"};var bs={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},K2={highlight:{...bs},strong:{...bs},quiet:{...bs}};var zu=Ya.map(e=>({open:Ro[e].delimiter,close:Ro[e].delimiter,kind:Ro[e].kind})),sM=[{style:Ro.highlight.kind,label:It.highlight,title:`${It.highlight} word style`},{style:Ro.strong.kind,label:It.strong,title:`${It.strong} word style`},{style:Ro.quiet.kind,label:It.quiet,title:`${It.quiet} word style`}],ov=new Set(zu.map(e=>e.open)),Gt=[...ev.filter(e=>!ov.has(e.open)),...zu];function Ss(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function Cs(e){return QC(typeof e=="string"?e:"",Gt)}var tv=ZC.map(e=>e.style).filter(e=>!JC.includes(e)).filter(e=>Gt.some(o=>o.kind===e));function Wu(){return XC(tv)}var Gu=Object.fromEntries(Ya.map(e=>[Ro[e].kind,Ro[e].delimiter]));function Uu(e,o,t,r){let a=Gu[r];if(!a)return VC(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 c=n||"styled text";return{text:e.slice(0,o)+a+c+a+e.slice(t),selectionStart:o+a.length,selectionEnd:o+a.length+c.length}}function $u(e,o,t,r){let a=Gu[r];return a?o>=a.length&&e.slice(o-a.length,o)===a&&e.slice(t,t+a.length)===a:YC(e,o,t,r)}function ht(e){return Cs(e).map(o=>Ss(o)+qu(o.children)).join(`
3
- `)}function qu(e){return e.map(o=>o.kind==="text"?o.text:qu(o.children)).join("")}function dv({style:e}){let o=t=>Be("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.9,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:t});switch(e){case"bold":return o(Be("path",{d:"M7 5h6.5a3.5 3.5 0 0 1 0 7H7zm0 7h7.5a3.5 3.5 0 0 1 0 7H7z"}));case"italic":return o(ws(vs,{children:[Be("line",{x1:"10",y1:"5",x2:"19",y2:"5"}),Be("line",{x1:"5",y1:"19",x2:"14",y2:"19"}),Be("line",{x1:"14",y1:"5",x2:"10",y2:"19"})]}));case"strike":return o(ws(vs,{children:[Be("path",{d:"M16.5 6.5A4.2 4.2 0 0 0 12.7 4.7C10 4.7 8.4 6 8.4 7.9c0 1.6 1.2 2.5 3.4 3.1"}),Be("path",{d:"M7.6 17.4A4.4 4.4 0 0 0 11.7 19.3c2.8 0 4.5-1.4 4.5-3.4 0-1-.4-1.8-1.2-2.4"}),Be("line",{x1:"4",y1:"12",x2:"20",y2:"12"})]}));case"highlight":return o(ws(vs,{children:[Be("path",{d:"M14.5 4.5l5 5-8 8H6.5v-5z"}),Be("line",{x1:"4",y1:"21",x2:"20",y2:"21"})]}));default:return null}}var uv=["bold","italic","strike","highlight"],pv=Object.fromEntries(uv.map(e=>[e,Be(dv,{style:e},e)])),ju="Clear formatting";function mv(e,o,t){return lv(e,o,t,Uu)}function xv(e){let[o,t]=av(null);return rv(()=>{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(c=>c&&c.start===s&&c.end===i?c:{start:s,end:i})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function Iv({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=sv({target:e,onChange:t}),[s,i]=xv(e),c=x=>n(g=>{let y=mv(o,x,g);return i({start:y.selectionStart,end:y.selectionEnd}),y}),u=Wu(),p={};if(s)for(let x of u)p[x.style]=$u(o,s.start,s.end,x.style);let m=ht(o);return Be(nv,{tools:u,onApply:c,pressed:p,disabled:r,glyphs:pv,ariaLabel:l(a),actions:Be("span",{className:"sf-markup-clear",children:Be(cv,{content:l(ju),children:Be(fv,{size:"sm",onMouseDown:x=>x.preventDefault(),onClick:()=>t(m),disabled:r||m===o,"aria-label":l(ju),children:Be(iv,{size:14})})})})})}var ks=Iv;import{DEVICE_FIELD_MARKER as gM,DEVICE_HIDDEN_ATTR as bM,DEVICE_NOTE as yM,deviceField as we,deviceMetaOf as Ts,deviceNote as SM,shownTier as CM,withoutDeviceGate as vM}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_ATTR as TM,NO_CONTROL_FIELD as Ku,noControlField as Xa,NoControlMark as _r,noControlMetaOf as FM}from"efficient-easel/screen/lib/puck/panel-no-control-mark";var Fs="__ownBox";function Vu(e){return!!e&&typeof e=="object"&&e[Fs]===!0}function gt(e){return`${e}Phone`}function Za(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var Yu=void 0;import{jsx as Ls,Fragment as bv}from"react/jsx-runtime";import{createContext as yv,useContext as Sv}from"react";var Es={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},Ps={Events:["posts"],SubscribeBlogs:["posts"]};var hv=["anchor"],gv=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Nr(e){return hv.includes(e)||gv.test(e)}var Xu={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"}}};Xu.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var AM=Object.fromEntries(Object.entries(Es).map(([e,o])=>[e,Object.keys(o)])),BM=Object.fromEntries(Object.entries(Ps).map(([e,o])=>[e,[...o]]));var Zu=yv(!1);function Qu({children:e}){return Ls(Zu.Provider,{value:!0,children:e})}function Cv(){return Sv(Zu)}function Ju({name:e,children:o}){return!Cv()||!e||Nr(e)?Ls(bv,{children:o}):Ls(_r,{})}function eo(e,o,t){return e.some(r=>(typeof r=="object"?r.value:r)===t)?t:o}var Rs="off",Os="none",As=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],Bs=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function UM(e){return eo(As,Rs,e)}function $M(e){return eo(Bs,Os,e)}var ep="sf-card-index",Mr="sf-card-index",qM="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",vv={plain:`counter(${Mr})`,padded:`counter(${Mr}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Mr}, decimal-leading-zero)`};function jM(e,o){return o==="off"?"":`.${e}{counter-reset:${Mr}}.${e} .${ep}{counter-increment:${Mr}}.${e} .${ep}::before{content:${vv[o]}}`}function KM(e){return e==="hairline"?"border border-line hover:border-accent":""}var op=[{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 bt,TEXT_CONTROL_KINDS as wv}from"efficient-easel/screen/lib/puck/text-control-kinds";import{jsx as Ds}from"react/jsx-runtime";import{useState as Ev}from"react";import{Button as Pv,ImageFocusPoint as Lv}from"efficient-shell/ui";import{jsx as ao,jsxs as tp}from"react/jsx-runtime";import{ChevronIcon as kv}from"efficient-easel/icons";import{Tooltip as Tv}from"efficient-shell/ui";function rp({styleKey:e,label:o,icon:t,value:r,sampleStyle:a,open:n,onToggle:s,saved:i=!1,children:c}){return tp("div",{"data-sf-style-row":e,className:`sf-style-row${n?" is-open":""}`,children:[tp("button",{type:"button",className:"sf-style-head","aria-expanded":n,onClick:s,children:[ao("span",{className:"sf-style-caret","aria-hidden":"true",children:ao(kv,{size:13})}),t?ao("span",{className:"es-field-icon",children:t}):null,ao("span",{className:"sf-style-name",children:l(o)}),r!=null?typeof r=="string"?ao(Tv,{content:r,className:"sf-style-sample-tip",children:ao("span",{className:"sf-style-sample",style:a,children:r})}):ao("span",{className:"sf-style-sample",style:a,children:r}):null,ao("span",{className:`sf-style-slot${i?" is-saved":""}`,children:ao(Fv,{})})]}),n&&ao("div",{className:"sf-style-body",children:c})]})}function Fv(){return ao("svg",{viewBox:"0 0 24 24",width:"14",height:"14",fill:"none",stroke:"currentColor",strokeWidth:3,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:ao("polyline",{points:"20 6 9 17 4 12"})})}function ap({label:e,value:o,onChange:t,image:r}){let[a,n]=Ev(!1);return Ds(rp,{styleKey:"imageFocal",label:e,value:o,sampleStyle:{fontSize:11,fontVariantNumeric:"tabular-nums"},open:a,onToggle:()=>n(s=>!s),children:a?Ds(Lv,{label:l(e),value:o,onChange:t,image:r,emptyText:l("Choose a background image first \u2014 there\u2019s nothing to focus yet."),actions:Ds(Pv,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:l("Done")})}):null})}import{jsx as no,jsxs as Rv}from"react/jsx-runtime";import{SettingsField as lp}from"efficient-easel/panel";import{ImageIcon as sp,PlayIcon as ip}from"efficient-easel/icons";import{ImageBox as Ov}from"efficient-easel/pick";import{useEaselStrings as Av}from"efficient-easel/strings";import{useContext as Bv,useState as fp}from"react";import{FileIntakeAlert as Dv,useFileIntake as _v}from"efficient-shell/file-intake";import{requestMediaPick as _s,resolveMediaPick as cH}from"efficient-easel/screen/lib/media-picker";var Ve=ud,np=e=>e.blocks;function cp({value:e,onChange:o,label:t,accept:r,placeholder:a}){let n=_t(),s=Ae(),i=Av(),c=l(t),[u,p]=fp(!1),[m,x]=fp(null),g=r.startsWith("video"),y=Bv(Mt),C=_v({accept:r,maxSizeBytes:Ve(s).media.maxUploadBytes,acceptHint:g?l("videos only"):l("images only"),multiple:!1,disabled:u,onAccept:([v])=>{x(null),p(!0),_s(n,{accept:r,title:c,file:v}).then(w=>{w&&o(w.url)}).catch(()=>x(l("Couldn\u2019t open the media picker \u2014 please try again."))).finally(()=>p(!1))}}),T=()=>(C.clearRejections(),x(null),_s(n,{accept:r,title:c}).then(v=>v?.url??null));return y&&!y.capabilities.mediaEditing?no(lp,{label:c,icon:g?no(ip,{}):no(sp,{}),children:no("div",{className:"sf-image-slot-inert",children:g?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.")})}):Rv("div",{children:[no(lp,{label:c,icon:g?no(ip,{}):no(sp,{}),children:no("div",{className:`sf-image-drop${C.dragOver?" is-dragover":""}`,...C.zoneProps,children:no(Ov,{value:e,onChange:o,label:c,kind:g?"video":"image",placeholder:a===void 0?void 0:l(a),openLibrary:u?void 0:T,words:i.pick.image})})}),u&&no("div",{className:"sf-image-status",role:"status",children:l("Opening the picker\u2026")}),m&&no("div",{className:"sf-image-status sf-image-status--error",role:"alert",children:m}),no(Dv,{rejections:C.rejections,className:"sf-image-status sf-image-status--error"})]})}import{jsx as dp}from"react/jsx-runtime";import{useId as Nv}from"react";import{FieldSelect as Mv}from"efficient-easel/fields";import{SettingsField as Hv}from"efficient-easel/panel";function zv(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function up({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let i=Nv(),c=`${i}-label`,u=`${i}-button`,p=Array.isArray(t)?t:[];return dp(Hv,{label:l(e),labelId:c,icon:n,hint:s,children:dp(Mv,{id:u,multiple:!0,value:p,options:zv(o),onChange:r,placeholder:a===void 0?l("None"):l(a),ariaLabelledBy:`${c} ${u}`,inline:!0})})}import{jsx as Te,jsxs as yt,Fragment as sw}from"react/jsx-runtime";import{useCallback as iw,useContext as fw,useEffect as cw,useId as Cp,useRef as yp,useState as Sp}from"react";import{ThemeIcon as dw}from"efficient-easel/icons";import{SettingsField as uw}from"efficient-easel/panel";import{jsx as U,jsxs as Zo,Fragment as Vv}from"react/jsx-runtime";import{SettingsField as Hs,SettingsGroupSub as Yv}from"efficient-easel/panel";import{Button as Ms}from"efficient-shell/ui";import{jsx as Xo,jsxs as pp}from"react/jsx-runtime";import{SettingsField as Wv}from"efficient-easel/panel";import{AccentIcon as Gv}from"efficient-easel/icons";import{Tooltip as Uv}from"efficient-shell/ui";function Ns(e){return vo(e).background}function $v(e){let o=jo(e.accent,Ns(e));return o===null?null:{ratio:o,grade:Dt(o)}}function qv(e){let o=Ns(e),t=jo(e.accent,o);return t===null?[]:Cd(e.accent).filter(r=>{let a=jo(r,o);return a!==null&&a>t&&Dt(a)==="good"})}var jv={good:"Easy to read","large-only":Bt["large-only"],hard:Bt.hard};function mp({value:e,onChange:o}){let t=$v(e),r=t?.grade,a=t&&t.grade!=="good"?qv(e):[];return Xo(Wv,{label:l("Main color"),icon:Xo(Gv,{}),hint:t?l(jv[t.grade]):void 0,action:Xo(mo,{value:e.accent,onChange:n=>o({...e,accent:n}),label:l("Main color")}),children:a.length>0?Xo("div",{className:"w-full min-w-0",children:pp("div",{className:"sf-readability",children:[Xo("p",{className:"sf-readability-advice",children:Kv(r,!0)}),Xo("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=jo(n,Ns(e));return Xo(Uv,{content:l("Use {colour}",{colour:n.toUpperCase()}),children:pp("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[Xo("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),s?`${s.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function Kv(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 Xv,GroundIcon as Zv,LayoutIcon as Qv,SquareIcon as Jv,TextSmallIcon as ew,TypeIcon as xp}from"efficient-easel/icons";var Hr=e=>l("Theme {n}",{n:e+1});function Ip({colors:e}){let o=vo(e),t=zl(e)??o.accent;return Zo("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[U("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:l("label")}),Zo("span",{className:"sf-theme-headline",children:[l("Heading")," ",U("span",{style:{color:o.accent},children:l("accent")})]}),U("span",{className:"sf-theme-body",children:l("body text")}),Zo("span",{className:"sf-theme-row",children:[U("span",{className:"sf-theme-btn",style:{background:t,color:Wl(e,o.accent)},children:l("button")}),U("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:l("card")})]})]})}var zs={"Text color":U(xp,{}),"Label color":U(ew,{}),Background:U(Zv,{}),"Panels & cards":U(Qv,{}),Borders:U(Jv,{}),"Button color":U(Xv,{}),"Button text color":U(xp,{})};function ow({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return U(Hs,{label:l(e),icon:zs[e],htmlFor:n,action:U(mo,{id:n,label:l(e),value:t,onChange:s=>r(o,s)})})}function tw({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 U(Hs,{label:l("Button color"),icon:zs["Button color"],htmlFor:a,action:U(mo,{id:a,label:l("Button color"),value:s,caption:n?s:l("Main"),onChange:t})})}function rw({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=vd(e),s=Wl(e,o),i=zl(e)??o,c=Dt(jo(s,i)??0);return U(Hs,{label:l("Button text color"),icon:zs["Button text color"],hint:n&&c!=="good"?l("{grade} on the button",{grade:l(Bt[c])}):void 0,htmlFor:a,action:U(mo,{id:a,label:l("Button text color"),value:s,caption:n?s:l("Auto"),onChange:t})})}var aw=[{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 Ws({colors:e,onChange:o,idPrefix:t}){let r=vo(e);return U(Vv,{children:aw.map(a=>"colour"in a?U(mp,{value:e,onChange:o},"colour"):"group"in a?U(Yv,{title:l(a.group)},a.group):"button"in a?U(tw,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?U(rw,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):U(ow,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function Qa({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:i,onChangeColors:c}){let u=vo(o),p=Hr(e),m=e<Hl.length&&!o.brandInk?Hl[e]:null,x=Dt(jo(u.text,u.background)??0),g=m?JSON.stringify(o)!==JSON.stringify(m):!1,y=a!==void 0;return Zo("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[U("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:U(Ip,{colors:o})}),Zo("div",{className:"sf-theme-foot",children:[U("span",{className:"sf-theme-name",children:p}),x!=="good"&&U("span",{className:"sf-theme-warn",children:l(Bt[x])}),n&&i&&U(Ms,{variant:a?"primary":"secondary",size:"sm",className:"sf-theme-edit","aria-expanded":y?a:void 0,"aria-controls":y?`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&&Zo("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[U(Ws,{colors:o,onChange:C=>c?.(C)}),m&&U(Ms,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!g,onClick:()=>c?.({...m}),children:g?l("Reset {name} to the preset",{name:p}):l("Not changed")})]})]})}function hp({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:i,onKeyDown:c,onEdit:u}){return Zo("div",{className:"sf-secttheme-btn",children:[U("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:i,onKeyDown:c,children:e?U(Ip,{colors:e}):U("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),Zo("div",{className:"sf-theme-foot",children:[U("span",{id:t,className:"sf-theme-name",children:o}),u&&U(Ms,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":l("Edit {name}",{name:o}),onClick:u,children:l("Edit")}),U("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:U("span",{className:"sf-multi-caret",children:"\u25BE"})})]})]})}import{useCallback as Gs,useEffect as nw,useRef as Ja}from"react";function gp(e=co()){return(o,t,r)=>{let a=Ve(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new Kl("invalid","This backend stores no site theme."))}}function bp(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function lw(e,o=gp()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=bp({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 Ut({themeFromDocument:e,tokenRef:o,siteId:t,onResult:r}){let a=Ja(null),n=Ja({}),s=Ae(),i=Ja(r);i.current=r;let c=Ja(null),u=Gs(x=>{if(x.status==="skipped"){let g=`skipped:${x.reason}`;if(c.current===g)return;c.current=g}else c.current=null;i.current?.(x)},[]),p=Gs(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let x=n.current;n.current={};let g=await lw({themeFromDocument:e,token:o?.current,siteId:t,patch:x},gp(s));return u(g),g},[e,o,t,u,s]),m=Gs((x,g=!1)=>{let y=bp({themeFromDocument:e,token:o?.current});if(y){u(y);return}n.current={...n.current,...x},a.current&&clearTimeout(a.current),g?p():a.current=setTimeout(()=>{p()},500)},[e,o,p,u]);return nw(()=>()=>{p()},[p]),{persist:m,flush:p}}var pw="Follow the page",m5="Follow the slideshow",mw=e=>l("Editing {name} changes it everywhere.",{name:e});function xw({colors:e}){if(!e)return Te("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=vo(e);return yt("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Te("i",{style:{background:o.background}}),Te("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function Iw({themes:e,value:o,onPick:t,onEdit:r,menuId:a,followLabel:n}){return yt("div",{className:"sf-multi-menu sf-secttheme-menu",id:a,role:"listbox",children:[n!==void 0&&yt(sw,{children:[yt("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(Ka),children:[Te(xw,{}),Te("span",{className:"sf-secttheme-name",children:l(n)})]}),Te("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&Te("p",{className:"sf-secttheme-oncard",role:"presentation",children:l("{name} is on this section",{name:Hr(o)})}),e.map((s,i)=>i===o?null:Te(Qa,{role:"option",index:i,colors:s,selected:!1,onPick:()=>t(i),onEdit:()=>r(i)},i))]})}function hw({index:e,colors:o,onChange:t,onDone:r}){let a=Hr(e),n=Cp();return yt("div",{className:"sf-secttheme-sheet",children:[yt("div",{className:"sf-secttheme-sheet-head",children:[Te("span",{children:a}),Te("button",{type:"button",className:"sf-secttheme-done",onClick:r,children:l("Done")})]}),Te("div",{className:"sf-secttheme-rows",children:Te(Ws,{colors:o,onChange:t,idPrefix:n})}),Te("p",{className:"sf-secttheme-warn",children:mw(a)})]})}function vp({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=ee(),s=uo(a),i=fw(Mt),c=i?.tokenRef,u=i?.siteId??null,p=!i?.capabilities?.hasSiteTheme,{persist:m,flush:x}=Ut({themeFromDocument:p,tokenRef:c,siteId:u}),g=uo(s),y=g.themes,C=ps(e),T=C!==null?y[C]:void 0,v=T??(y.length?At(g):void 0),[w,h]=Sp(!1),[b,E]=Sp(null),k=yp(null),L=yp(null),B=Cp(),O=iw(()=>{h(!1),E(null)},[]);cw(()=>{if(!w&&b===null)return;let M=ae=>{k.current&&!k.current.contains(ae.target)&&(x(),O())};return document.addEventListener("mousedown",M),()=>document.removeEventListener("mousedown",M)},[w,b,O,x]);let z=M=>{o(M),O()},ne=M=>{if(b===null)return;let ae=y.map((fe,Ee)=>Ee===b?M:fe),_={...g,themes:ae};n(_),m({selected_preset:_.selected,theme_presets:_.themes})};return yt("div",{className:"sf-secttheme",ref:k,children:[Te(uw,{label:l("Theme"),icon:Te(dw,{}),labelId:`${B}-label`,hint:r,children:Te(hp,{colors:v,onEdit:C!==null?()=>{E(C),h(!1)}:void 0,name:T?Hr(C):l(t??pw),nameId:`${B}-value`,labelId:`${B}-label`,open:w,menuId:B,buttonRef:L,onClick:()=>{E(null),h(M=>!M)},onKeyDown:M=>{M.key==="Escape"&&(w||b!==null)&&(M.preventDefault(),O())}})}),w&&b===null&&Te("div",{onKeyDown:M=>{M.key==="Escape"&&(M.preventDefault(),O(),L.current?.focus())},children:Te(Iw,{themes:y,value:C,onPick:z,onEdit:M=>{E(M),h(!1)},menuId:B,followLabel:t})}),b!==null&&y[b]&&Te(hw,{index:b,colors:y[b],onChange:ne,onDone:()=>{x(),O(),L.current?.focus()}})]})}import{jsx as wp}from"react/jsx-runtime";import{useId as gw}from"react";import{FieldSelect as bw}from"efficient-easel/fields";import{SettingsField as yw}from"efficient-easel/panel";function Sw(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 Cw({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let c=gw(),u=`${c}-label`,p=`${c}-button`,m=r??"",x=o.some(T=>T.value===m)?m:t,g=l(e),y=n===void 0?void 0:l(n),C=wp(bw,{id:p,value:x,options:Sw(o),onChange:a,placeholder:y,searchPlaceholder:y,...s?{ariaLabel:g}:{ariaLabelledBy:`${u} ${p}`},searchable:!0,groupCount:!0,inline:!0});return s?C:wp(yw,{label:g,labelId:u,icon:i,children:C})}import{jsx as St,jsxs as Tw}from"react/jsx-runtime";import{SettingsField as Bp}from"efficient-easel/panel";import{LinkIcon as Fw}from"efficient-easel/icons";import{LinkPicker as Ew,TextLinkField as Pw}from"efficient-shell/ui";import{useEffect as Ap,useMemo as tn,useRef as Lw,useState as on}from"react";function kp(){return co().auth.token}var en="homepage";function Tp(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var Fp=[{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 Ep(e){return e.offersCommerce&&e.offersService?Fp:Fp.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function zr(e){return e===en?"/":`/${e}`}function Pp(e){return`/journal/${e}`}function E5(e){return`/wheels/${e}`}function Lp(e,o){return`${zr(e)}#${o}`}function vw(e){return Tp(e)}function ww(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function Rp(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=ww(a?.props?.anchor);if(!n)continue;let s=vw(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function P5(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 kw=()=>({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 Op(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 Us(e,o){let t=kw(),r=e.pages.map(p=>({value:zr(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:Rp(...p.docs).map(m=>({value:Lp(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:Pp(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"}}},c=Ep(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:c,rules:{kindOf:p=>Op(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:c,rules:{kindOf:p=>Op(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 Dp(e){let o=new Map;return(t="")=>{let r=kp(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!co().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var Rw=Dp(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Ve();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),Ow=Dp(async(e,o)=>await Ve().blog?.posts(o?{siteId:o}:void 0)??[]);function Aw({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=tn(()=>Us(r,a),[r,a]),s=l(t);return St(Bp,{label:s,icon:St(Fw,{}),children:St(Ew,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function _p(){let{siteId:e,capabilities:o}=Se(),{offersCommerce:t,hasBlog:r}=o,[a,n]=on([]),[s,i]=on([]),[c,u]=on([]),[p,m]=on(null),x=Ae().chrome,g=x?.products?.list,y=x?.linkFilters,C=y?void 0:x?.linkRow,T=Lw(!0);Ap(()=>(T.current=!0,()=>{T.current=!1}),[]),Ap(()=>{let h=!0;return Rw(e??void 0).then(b=>h&&T.current&&n(b)),r&&Ow(e??void 0).then(b=>h&&T.current&&i(b)),t&&g?.().then(b=>h&&T.current&&u(b)),t&&y?y.load(e).catch(()=>null).then(b=>h&&T.current&&m(()=>b)):m(null),()=>{h=!1}},[e,t,r,g,y]);let v=tn(()=>({pages:a.filter(h=>!Xd(h.slug)).map(h=>({slug:h.slug,title:h.label,docs:[h.layout]})),posts:r?s.map(h=>({slug:h.slug,title:h.title})):[],products:t?c.map(h=>({href:h.href,name:h.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,c,t,r]),w=tn(()=>p?p(v.pages):null,[p,v]);return{data:v,filters:w,pages:a,offersCommerce:t,HostLinkRow:C}}function V5({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=_p(),c=tn(()=>Us(s,i),[s,i]),u=l(e);return St(Bp,{label:u,icon:o,children:St(Pw,{label:u,text:t,onTextChange:r,link:a,onLinkChange:p=>n(p),kinds:c.kinds,rules:c.rules,filtersFor:c.filtersFor})})}function Np({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:c}=_p(),u=a.pages.map(m=>zr(m.slug)),p=i&&c&&(r==="/"||u.includes(r))?c:void 0;return Tw("div",{children:[St(Aw,{value:r,onChange:o,label:t,data:a,filters:n}),p&&St(p,{value:r,onChange:o,pages:s})]})}var xo={min:10,max:200,step:10};function Mp(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 Bw="sf-pad-top-phone",Dw="sf-pad-bottom-phone",_w="--sf-pad-t-phone",Nw="--sf-pad-b-phone",Mw="sf-pad-left-phone",Hw="sf-pad-right-phone",zw="--sf-pad-l-phone",Ww="--sf-pad-r-phone";function Wp(e,o,t,r,a,n,s,i){let c=Mp(e,o)??{},u={},p=["sf-section-pad"];typeof t=="number"&&(p.push(Bw),u[_w]=`${t}px`),typeof r=="number"&&(p.push(Dw),u[Nw]=`${r}px`);let m={};return typeof a=="number"&&(m.paddingLeft=a),typeof n=="number"&&(m.paddingRight=n),typeof s=="number"&&(p.push(Mw),u[zw]=`${s}px`),typeof i=="number"&&(p.push(Hw),u[Ww]=`${i}px`),p.length===1&&Mp(e,o)===void 0&&!Object.keys(m).length?null:{className:p.join(" "),style:{...c,...m,...u}}}var Hp=e=>typeof e=="number"?e:void 0;function zp(e,o,t){let r=Hp(e)??t,a=Hp(o);return r===void 0?a:a===void 0?r:r+a}function X5(e,o={}){return{top:zp(e.padTop,e.sectionPaddingTop,o.top),bottom:zp(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function Z5(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 Q5(e){return Wp(e.top,e.bottom,e.topPhone,e.bottomPhone,e.left,e.right,e.leftPhone,e.rightPhone)}function J5(e,o){let t=r=>typeof r=="number"?r+o:void 0;return Wp(t(e.top),t(e.bottom),t(e.topPhone),t(e.bottomPhone),e.left,e.right,e.leftPhone,e.rightPhone)}var Gw=["auto","fixed","screen"],Uw=["px","%"];var $w="var(--sf-header-h, 88px)",$s={min:40,max:2e3,step:10,fallback:600},qs={min:10,max:200,step:5,fallback:100},qw="sf-section-minh",Gp={base:"--sf-section-minh",small:"--sf-section-minh-s"},$p=e=>typeof e=="string"&&Gw.includes(e),jw=e=>typeof e=="string"&&Uw.includes(e);function rn(e){let o=$p(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":jw(e.sectionHeightUnit)?e.sectionHeightUnit:"px",r=o==="screen"?qs.fallback:$s.fallback,a=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:r;return{mode:o,value:a,unit:t}}function qp(e){let{mode:o,value:t,unit:r}=rn(e);if(o==="auto")return;if(o==="fixed"&&r==="px")return[`${t}px`,null];let a=t/100,n=s=>o==="screen"?`(100${s} - ${$w})`:`100${s}`;return[`calc(${n("vh")} * ${a})`,`calc(${n("svh")} * ${a})`]}function Kw(e){let o=qp(e);if(!o)return;let[t,r]=o;return{display:"grid",[Gp.base]:t,...r?{[Gp.small]:r}:{}}}var o3=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),$t="Height",Vw="sf-section-minh-phone",Up={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function js(e){return $p(e.sectionHeightModePhone)}function t3(e){return rn({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function Yw(e){let o=Kw(e),t=js(e)?qp({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let r=[qw],a={...o??{}};return t&&(r.push(Vw),a[Up.base]=t[0],t[1]&&(a[Up.small]=t[1])),{className:r.join(" "),style:a}}function r3(e){return Yw(e)!==null}var an="Stick to top",Qo={min:0,max:200,step:4,fallback:0},Xw="sf-section-stick",Zw="sf-section-stick-phone-on",Qw="sf-section-stick-phone-off",jp={desktop:"--sf-stick-distance",phone:"--sf-stick-distance-phone"},n3=new Set(["CategoryBar","DocTabs","IntroBleed"]);function Kp(e){let o=typeof e=="number"&&Number.isFinite(e)?e:Qo.fallback;return Math.min(Qo.max,Math.max(Qo.min,Math.round(o)))}function Ks(e){return typeof e.stickTopPhone=="boolean"}function Vs(e){let o=e.stickTop===!0,t=Kp(e.stickTopDistance),r=Ks(e),a=r?e.stickTopPhone===!0:o,n=r?Kp(e.stickTopDistancePhone):t;return{desktop:o,desktopDistance:t,phone:a,phoneDistance:n,ownPhone:r}}function l3(e){let o=Vs(e);if(!o.desktop&&!o.phone)return null;let t=[Xw],r={};return o.desktop&&(r[jp.desktop]=`${o.desktopDistance}px`),(o.ownPhone||o.phone!==o.desktop)&&(t.push(o.phone?Zw:Qw),o.phone&&(r[jp.phone]=`${o.phoneDistance}px`)),o.desktop||t.push("sf-section-stick-desktop-off"),{className:t.join(" "),style:r}}var Jw=["column","row","tabs"],Vp="Direction",ek={column:"Stacked",row:"One row",tabs:"Tabs"},Yp={Flex:Jw,HeroGroup:["column","row"]},ok={Flex:"row",HeroGroup:"column"},tk={column:"flex-col",row:"flex-row",tabs:"flex-col"};function nn(e,o){return Yp[e].includes(o)?o:ok[e]}function i3(e,o){return tk[nn(e,o)]}function Xp(e){return Yp[e].map(o=>({label:ek[o],value:o}))}var Ys=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],Jp=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Stretch",value:"stretch"}],em="Wrap",Xs=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],Zp={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},Qp={start:"items-start",center:"items-center",stretch:"items-stretch"};function c3(e,o){let t=typeof e=="string"&&e in Zp?Zp[e]:"",r=typeof o=="string"&&o in Qp?Qp[o]:"";return[t,r].filter(Boolean).join(" ")}function d3(e){return e===!0||e==="wrap"?"flex-wrap":""}var Zs="Block widths",ln=[{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]}],Wr="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",rk={equal:Wr,bigLeft:`${Wr} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${Wr} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${Wr} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${Wr} [&>*:last-child]:min-[800px]:grow-[3]`};function u3(e){return typeof e=="string"?rk[e]??"":""}var om="Columns on phone",Qs=1,tm=3,ak={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 p3(e){let o=Number(e);return ak[o]??"max-[800px]:flex-col"}var rm="Block spacing",Js=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],nk="sf-box-gap-only";function m3(e){return e==="gap"?nk:""}var lk=["solid","dashed","dotted"],sk=["top","right","bottom","left"],I3="sf-section-border",h3="sf-section-border-self",ik=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,am=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(20,Math.max(0,Math.round(e)))}px`:void 0;function nm(e,{phone:o=!1}={}){if(!e||typeof e!="object")return;let t=o?"-phone":"",r={};for(let a of sk){let n=am(e[a])??am(e.width);n!==void 0&&(r[`--sf-border-${a}-width${t}`]=n)}return typeof e.style=="string"&&lk.includes(e.style)&&(r[`--sf-border-style${t}`]=e.style),typeof e.color=="string"&&ik.test(e.color)&&(r[`--sf-border-color${t}`]=e.color.toLowerCase()),Object.keys(r).length?r:void 0}function g3(e,o){let t=nm(e),r=nm(o,{phone:!0});return t||r?{...t,...r}:void 0}var im="sf.gapContainer",Jo={min:-32,max:64,step:2},fm={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},qt={Grid:24,Flex:24,FooterGroup:16,HeroGroup:0,Events:24,GalleryB:8,ProductGrid:2},fk=new Set(["Events","GalleryB"]);function ei(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Jo.min)return o;if(typeof o=="string"){let r=fm[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:qt[e]}var ck="sf-gap-overlap",dk="--sf-gap-overlap",cm="--sf-block-gap",uk="--sf-block-gap-rem",Ct={min:0,max:Jo.max,step:Jo.step};function pk(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),Ct.min),Ct.max);return o-o%Ct.step}function y3(e){let o=pk(e);return o===null?{}:{[cm]:`${o}px`,[uk]:`${o/16}rem`}}var lm="sf-gap-zone",sm="--sf-gap-len";function oi(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Jo.min?!0:typeof o=="string"&&typeof fm[e]?.[o]=="number"}var mk={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function S3(e,o,t){if(!oi(e,o)){let a=`${qt[e]}px`,n=fk.has(e)?`var(--sf-card-gap, ${a})`:a;return{className:` ${lm}`,style:{[sm]:`var(${cm}, ${n})`}}}let r=ei(e,o);return r>=0?{className:` ${lm}`,style:{[sm]:`${r}px`}}:{className:` ${ck} ${mk[t]}`,style:{gap:"0px",[dk]:`${-r/2}px`}}}var dm=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],um={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},sn="var(--section-bg)",fn="inherit";function v3(e,o){return e===fn?sn:e===void 0?o:cn(e)}var xk=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function cn(e){return e.replace(xk,"var(--site-$1")}function pm(e,o){return e===fn?!0:e===void 0&&o===sn}var mm=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],xm={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},jt="var(--wheel-stage)",dn="transparent",Gr="inherit";function T3(e,o){return cn(ti(e,o))}function ti(e,o){return e===Gr?jt:e==null?o:e===!0?jt:e===!1?dn:e}function F3(e){return typeof e=="string"&&e!==Gr?cn(e):jt}function E3(e){return e!==dn&&e!=="none"&&e!==""}function Im(e,o){return e===Gr||e===!0?!0:e==null?o===jt:!1}var hm="inherit",un="fixed",gm=e=>typeof e!="number"&&e!==un,Ik="var(--sf-heading-max, 9999px)";function L3(e,o,t,r){if(typeof e=="number")return`${e}px`;if(e===un)return o;let a=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${a}, ${Ik})`:a}var De={min:1e3,max:2e3,step:50,default:1600};function bm(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}function O3(e,o){if(e!==!1)return null;let t=typeof o=="number"?o:De.default;return bm(t)}var ym="--sf-site-width",pn=`var(${ym},${De.default}px)`,A3=`max-w-[${pn}]`,B3=`max-w-[${De.default}px]`;function hk(e){return typeof e!="number"||!Number.isFinite(e)?De.default:Math.round(Math.min(Math.max(e,De.min),De.max))}function D3(e){let o=hk(e);return o===De.default?{}:{[ym]:`${o}px`}}var Oo={min:0,max:80,step:4,default:40},Sm="--sf-site-gutter",Ye=`var(${Sm},${Oo.default}px)`,gk=`px-[${Ye}]`;var et={md:`min(24px,${Ye})`,sm:`min(20px,${Ye})`,frame:`min(24px,${Ye})`,tabs:`min(16px,${Ye})`},_3=[[`max-[1100px]:px-[${et.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${et.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${et.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${et.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${et.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${et.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${et.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${et.sm}]`,"max-[640px]:px-5"],[`min-[800px]:px-[${Ye}]`,"min-[800px]:px-10"],[`max-[720px]:px-[min(24px,${Ye})]`,"max-[720px]:px-6"],[`max-[800px]:-mx-[min(20px,${Ye})]`,"max-[800px]:-mx-5"],[`max-[720px]:-mx-[min(20px,${Ye})]`,"max-[720px]:-mx-5"],[`-mx-[${Ye}]`,"-mx-10"],[gk,"px-10"]];function bk(e){return typeof e!="number"||!Number.isFinite(e)?Oo.default:Math.round(Math.min(Math.max(e,Oo.min),Oo.max))}function N3(e){let o=bk(e);return o===Oo.default?{}:{[Sm]:`${o}px`}}var mn=`min(var(--sf-page-cap,${pn}),${pn})`,M3=`max-w-[${mn}]`,H3=`max-w-[min(var(--sf-page-cap,${De.default}px),${De.default}px)]`,Cm="--sf-hero-cap",yk=`var(${Cm},none)`,z3=`max-w-[${yk}]`,ri="--sf-hero-bleed-m",ai="--sf-hero-bleed-w",W3=`var(${ri},calc(50% - 50vw))`,G3=`var(${ai},100vw)`,U3=`mx-[var(${ri},calc(50%_-_50vw))]`,$3=`w-[var(${ai},100vw)]`,ni="--sf-hero-chrome-x",li="--sf-hero-chrome-cap";function q3(e){return e===!0?{[Cm]:mn,[ri]:"auto",[ai]:"100%",[ni]:"24px",[li]:"none"}:{}}var si=`calc(${pn} - ${Ye}*2)`,j3=`max-w-[${si.replace(/ /g,"_")}]`;var Sk="--sf-chrome-cap",Ck=`var(${Sk},${si})`,K3="data-page-width";function V3(e){return e==="full"?"full":null}function Y3(e){return e==="full"?null:bm(e==="content"?si:Ck)}function X3(e){if(e==="full")return"full";if(e==="content")return"content"}var vk=["contained","page","full"],vm=["full","page"],Ur={full:"Full width",page:"Content width"},ii="inherit",wk=e=>typeof e=="string"&&vk.includes(e),kk=e=>e===ii;function fi(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:De.default;return kk(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:wk(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 ci(e){return fi(e,"page").mode==="full"}import{jsx as Tk}from"react/jsx-runtime";import{createContext as Fk,useContext as Ek}from"react";var Pk=2,Lk=Pk+1,wm=Fk(2);function km({tier:e,children:o}){return Tk(wm.Provider,{value:e,children:o})}function di(e){let o=Ek(wm);return Lk+Math.max(0,e-o)}import{withStyleKind as F0}from"efficient-easel/style-clipboard";function Xt(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!ko(t)&&F0(t,`section:${o}`);return e}function Um(){return null}function mi(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return I(Um,{},e)}function E0(e){return e.type===Um}function zo(e){return E0(e)?void 0:e}function Vt(e,o){return l("{value} from {from}",{value:e,from:o})}function P0(){let{appState:e}=Yt(a=>a),o=e.data.root?.props??{},{mode:t,pageWidth:r}=fi(o,"full");return t==="page"?Vt(`${r}px`,l("the page")):t==="contained"?Vt(l("Contained"),l("the page")):Vt(l("Full"),l("the page"))}function L0(){let{blockGap:e}=ee();return e===null?l("this container's own spacing"):Vt(`${e}px`,l("Site styles"))}function R0({inherited:e,onReset:o,label:t}){return I(oo,{words:X()?.panel,label:l(t),changed:!e,detail:L0(),onReset:o})}function O0({inherited:e,onReset:o,label:t}){return I(oo,{words:X()?.panel,label:l(t),changed:!e,detail:P0(),onReset:o})}function Zt({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:c,hidden:u}=Ue(e),p=pi(null),m=pi(null),x=w=>o(s?{text:w,hidden:u}:w),g=()=>o({text:c,hidden:!u}),y=s&&u,C=Ak(),T=a?N0(a)?I("span",{className:"sf-hint-keep sf-hint-while-typing",children:l(a)}):I(wu,{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(se,{label:l(t),icon:I(i0,{}),htmlFor:C,className:y?"is-hidden":void 0,hint:T,action:s?I(hn,{content:v,children:I("button",{type:"button",className:"sf-field-eye","aria-pressed":u,"aria-label":v,onClick:g,children:u?I(Ge,{name:"eye-off",size:14}):I(Ge,{name:"eye",size:14})})}):void 0,children:wt("div",{className:"sf-copybox",children:[i&&I(ks,{target:n?m:p,value:c,onChange:x}),n?I("textarea",{id:C,ref:m,value:c,placeholder:r===void 0?void 0:l(r),onChange:w=>x(w.target.value)}):I("input",{id:C,ref:p,type:"text",value:c,placeholder:r===void 0?void 0:l(r),onChange:w=>x(w.target.value)})]})})}function i6(e,o){return{...e,[Rr]:o}}function f6(e){let o=e[ge];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[ge]:{...o,offPage:!0}}}function gn(e){return!e||typeof e!="object"?!1:e[ge]?.offPage===!0}var $m="sfPanelOnly";function c6(e){if(!e[ge])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[$m]:!0}}function qm(e){return!!e&&typeof e=="object"&&e[$m]===!0}function d6(e){let o=e[ge];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[ge]:{...o,identifier:!0}}}function p6(e,o){if(!e[ge])throw new Error("inOwnBox: the field holds no authored text");let{[Ku]:t,...r}=e;return{...r,[Fs]:!0,render:o}}var A0=new Set(bt),Qt=(e,o)=>{let t={...o,[ge]:e};if(!A0.has(e.control))return t;let r=o.render;return{...Xa(t,"authored-copy"),render:a=>I(Ju,{name:a.name,children:r(a)})}},m6="Everything else on this block comes from the linked post. Unlink it to edit by hand.",B0="Select a word, then press the highlighter.",D0="A short name so a link can jump straight to this section, like yoursite.com/page#about.",_0=new Set([B0]),N0=e=>_0.has(e);function x6(e,o,t){return Qt({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Zt,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function I6(e,o,t){return Qt({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Zt,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function M0(e,o,t){return Qt({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Zt,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function h6(e,o,t){return Qt({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Zt,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function g6(e){return{type:"custom",[Lr]:{label:e},render:({value:o,onChange:t})=>I(Np,{value:tu(o),onChange:t,label:e})}}function b6(e,o,t){return Qt({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Zt,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var jm={Design:Bk,Animation:Om};function Km(e,o){return e.includes("Design")?o!=="Design":null}function H0({label:e}){return I(d0,{title:l(e),level:di(1)})}function z0({level:e,label:o}){return e===1?I(H0,{label:o}):I(qr,{label:o})}function Vm(e,o){return{type:"custom",[za]:{label:e,level:o},render:()=>I(z0,{level:o,label:e})}}function $e(e){return Vm(e,2)}function y6(e){return{type:"custom",render:()=>I(W0,{text:e})}}function W0({text:e}){return I("p",{className:"sf-note",children:l(e)})}function S6(e){return Vm(e,1)}function C6(e){return ko(e)!==null&&e?.tabs!==void 0}var Tm=new Map;function bn(e,o){let t=`${e}\0${o?o.join(""):""}`,r=Tm.get(t)??{type:"custom",tabs:o,[za]:{label:e,level:1},bucket:e,marker:!0,render:()=>I(Ho,{})};return Tm.set(t,r),r}var Fm=new Map;function xi(e){let o=Fm.get(e)??{type:"custom",[za]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>I(Ho,{})};return Fm.set(e,o),o}function G0(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function Ym(e,o){return G0(e)===o?e:{...e,marker:!0,fold:o,render:()=>I(Ho,{})}}function Xm(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(Ho,{})}}function qr({label:e}){return I(u0,{title:l(e),level:di(2)})}function Zm({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 wt("div",{className:"sf-swatches",children:[e.map(i=>{let c=r?.[i]?l(r[i]):i;return I(hn,{content:c,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":c})},i)}),I("span",{className:"sf-swatch-hex",children:s})]})}function v6(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=pm(t,o);return I(se,{label:l(e),icon:I(Mk,{}),changed:!a,action:I(oo,{words:X()?.panel,label:l(e),changed:!a,detail:l("the theme's section background"),onReset:()=>r(fn)}),children:Zm({swatches:dm,current:a?sn:t??o??"",onPick:r,names:um})})}}}function U0(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=Im(a,o);return I(se,{label:l(e),icon:I(Zk,{}),changed:!n,action:I(oo,{words:X()?.panel,label:l(e),changed:!n,detail:l("the theme's image stage"),onReset:()=>r(Gr)}),children:Zm({swatches:mm,current:n?jt:ti(a,o),onPick:r,names:xm})})}}}function yn(e=t=>t,o){return Xt({_gSectionTheme:$e(Eu),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>I(vp,{value:e(t),onChange:r,followLabel:o})}})}function Xe({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:i,ariaLabel:c,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(T0,{min:e,max:o,step:t,value:r,suffix:n||void 0,showInput:s,label:c===void 0?void 0:l(c),disabled:u,size:"sm",className:"sf-slider-track",onChange:m=>{m!==null&&m!==r&&a(m)}})})}function Kt(e,o,t,r,a,n,s="",i){return{type:"custom",render:c=>I(se,{label:l(e),icon:zo(o),action:i?i("storedValue"in c?c.storedValue:c.value,c.onChange):void 0,children:Xe({min:t,max:r,step:a,value:typeof c.value=="number"?c.value:n,suffix:s,ariaLabel:e,onChange:c.onChange})})}}function Qm(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:i,unsetMark:c,icon:u}=o;return{type:"custom",render:({value:p,onChange:m})=>{let x=typeof p=="number"?p:null,g=x===null;return I(se,{label:l(e),icon:u?zo(u):void 0,value:g?c||n===void 0?void 0:l(n):`${x}px`,changed:!g,action:c?Lm(c,{changed:!g,onReset:()=>m(null)}):I(oo,{words:X()?.panel,label:l(e),changed:!g,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}):Xe({min:t,max:r,step:a,value:x??t,readout:!1,ariaLabel:e,onChange:m})})}}}function w6(e){let o=Kt("Gap",I(Bm,{}),Jo.min,Jo.max,Jo.step,qt[e],"px",(t,r)=>I(R0,{inherited:!oi(e,t),onReset:()=>r(void 0),label:"Gap"}));return{type:"custom",[im]:e,render:t=>o.render({...t,value:ei(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:r=>t.onChange(r)})}}var Sn="Corners";function Ii(e){return{type:"custom",render:({value:o,onChange:t})=>{let r=typeof o=="number"&&Number.isFinite(o)?o:null,a=r!==null;return I(se,{label:l(Sn),icon:I(Uk,{}),changed:a,action:Lm(e.mark,{changed:a,onReset:()=>t(null)}),hint:e.hint,children:I($0,{tier:e,px:r,onRadius:t})})}}}function Jm(e){let o=null;try{o=Rm()}catch{o=null}return[o?.values?.[e],t=>o?.onChange(e,t)]}function $0({tier:e,px:o,onRadius:t}){let r=e.useFollowed(),a=e.useClosedReason?e.useClosedReason():null,[n,s]=Jm(e.sidesKey),i=To(n)??[...Ko];return I(v0,{label:l(Sn),value:i,corners:ts,onChange:c=>{let u=To(c)??[];s(u.length===Ko.length?null:u)},radius:o,onRadiusChange:t,radiusMin:ro,radiusMax:dt,radiusStep:e.step??1,radiusPlaceholder:String(r),disabled:a!==null,disabledReason:a??void 0})}function ex(){return Xa({type:"custom",render:()=>I(_r,{})},"always")}function q0({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=ee(),a=typeof r=="number"?`${r}px`:l("not set");return I(oo,{words:X()?.panel,label:l(e),changed:o,detail:r==null?l("the built-in corners"):Vt(a,l("Site styles")),onReset:t})}function j0(){let{cornerRadiusPx:e}=ee();return typeof e=="number"?e:ro}function K0(){return Ii({sidesKey:"sectionCornerSides",useFollowed:j0,useClosedReason:()=>tx()?l(ox):null,mark:I(q0,{label:Sn}),hint:I(V0,{})})}var ox="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function tx(){return ci(Jt())}function V0(){return I(Ho,{children:tx()?ox:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function Cn(){return Xt({_gShape:$e("Shape"),sectionCorners:K0(),sectionCornerSides:ex(),sectionBorder:Em("desktop"),sectionBorderPhone:Em("mobile")})}var Y0=()=>({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 X0(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function Z0(){let e;try{let o=uo(ee().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||bd.line}function Q0({value:e,onChange:o,tier:t}){let[r]=Jm("sectionBorder"),a=Z0(),n=e&&typeof e=="object"?e:{},s=t==="mobile"?r&&typeof r=="object"?r:{}:{},[i,c]=In(()=>g0(n,s)),u=Y0();return I(se,{label:l("Border"),icon:I(Hk,{}),action:I(Wm,{each:i,label:l("Each side"),onChange:c}),children:I(p0,{label:l("Border"),value:n,each:i,onChange:p=>o(X0(p)),placeholder:{sides:h0(s),style:s.style??"solid",color:s.color||a},presets:[a],words:u,max:20})})}function Em(e){return we(e,{type:"custom",render:({value:o,onChange:t})=>I(Q0,{value:o,onChange:t,tier:e})})}function vn(){return{_gMotion:$e("Motion"),sectionAnimation:yi("Entrance",I(Om,{}),[...Lu],ms)}}function hi(){let e=null;try{let{appState:o,selectedItem:t}=Yt(a=>a),r=t?.props?.id?String(t.props.id):void 0;e=r?Is(o?.data,r):null}catch{e=null}return e!==null&&ci(e)}function rx(e){let{cornerRadiusPx:o}=ee(),t=hi(),r=typeof o=="number"?o:e,a=null;try{let{appState:s,selectedItem:i}=Yt(u=>u),c=i?.props?.id?String(i.props.id):void 0;a=c?Is(s?.data,c):null}catch{a=null}if(t||!a)return r;let n=a.sectionCorners;return os(n)?n:r}function J0({label:e,changed:o=!1,onReset:t=()=>{}}){let r=hi(),a=rx(ro),n=r?"Site":"Section";return I(oo,{words:X()?.panel,label:l(e),changed:o,detail:Vt(`${a}px`,r?l("Site styles"):l("the section")),onReset:t})}function eT(){return I(Ho,{children:hi()?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 oT(){return Ii({sidesKey:"cardCornerSides",useFollowed:()=>rx(ro),mark:I(J0,{label:Sn}),hint:I(eT,{})})}function tT(){return{type:"custom",render:()=>I(uu,{})}}function k6(){return{_gShape:$e("Shape"),cardCorners:oT(),cardCornerSides:ex(),cardCornersApplyAll:tT()}}function T6(){return ot("Justify",I(Nk,{}),Ys,Ys[0].value)}function F6(){return ot("Item alignment",I(Dk,{}),Jp,"stretch")}function E6(){return ot(em,I(c0,{}),Xs,Xs[0].value)}function P6(){return{type:"custom",render:({value:e,onChange:o})=>{let t=ln.find(r=>r.value===e)??ln[0];return I(se,{label:l(Zs),icon:I(Am,{}),value:l(t.label),children:I("div",{className:"sf-gallery-layouts",role:"group","aria-label":l(Zs),children:ln.map(r=>I(hn,{content:l(r.label),className:"sf-tile-tip",children:I("button",{type:"button","aria-pressed":t.value===r.value,"aria-label":l(r.label),onClick:()=>o(r.value),children:I("span",{className:"sf-gallery-pic",children:rT(r.weights).map((a,n)=>I("i",{style:{gridColumn:`span ${a}`}},n))})})},r.value))})})}}}function rT(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 L6(){return ot(rm,I(Bm,{}),Js,Js[0].value)}function R6(){return Kt(om,I(t0,{}),Qs,tm,1,Qs)}function O6(e){let o=yi(Vp,mi("`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)."),Xp(e),nn(e,void 0));return{type:"custom",render:t=>o.render({...t,value:nn(e,t.value),onChange:r=>t.onChange(r)})}}function A6(e,o,t,r,a,n){return{type:"custom",render:({value:s,onChange:i})=>I(se,{label:l(e),icon:I(cs,{noun:n}),action:I(oo,{words:X()?.panel,label:l(e),changed:!gm(s),detail:l("the Text style in Site styles"),onReset:()=>i(hm),defaultAction:{onPress:()=>i(un),title:l("Keep this section's own built-in size"),icon:I(zk,{})}}),children:Xe({min:o,max:t,step:r,value:typeof s=="number"?s:a,suffix:"px",ariaLabel:e,onChange:i})})}}function B6(){return{_gCellWidth:$e("Cell width"),gridSpan:ot("Positions",I(Am,{}),[{label:"Auto",value:""},...Array.from({length:Ua},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function Jt(){let e=null;try{e=Yt(o=>o).selectedItem}catch{e=null}return e?.props??{}}function aT({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let c=Jt()[s],u=Za(void 0,c,i);return I(Ho,{children:Xe({min:e,max:o,step:t,value:Za(r,c,i),readout:!1,ariaLabel:a,notch:u,onChange:n})})}function nT({label:e,desktopKey:o,fallback:t,changed:r=!1,onReset:a=()=>{}}){let n=Jt()[o],s=Za(void 0,n,t);return I(oo,{words:X()?.panel,label:l(e),changed:r,detail:l("{value} on desktop",{value:`${s}px`}),onReset:a})}function lT(e){return Qm(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unsetLabel:"Follows Desktop",unsetMark:I(nT,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>I(aT,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}var sT={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},iT={Top:Hm,Bottom:_m,Left:Nm,Right:Mm},fT=e=>{let o=iT[e];return I(o,{})};function D6(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=T=>sT[T],n=T=>Kt(a("Top"),I(Hm,{}),xo.min,xo.max,xo.step,T,"px"),s=(T,v,w,h=xo)=>we("mobile",lT({label:a(T),icon:fT(T),desktopKey:v,min:h.min,max:h.max,step:h.step,fallback:w})),i=e.top??xo.min,c=e.bottom??xo.min,u="sectionPaddingLeft",p="sectionPaddingRight",m=e.sideBounds??xo,x=e.side??m.min,g=e.sidePhone??x,y=e.phone===!0,C=T=>y?we("desktop",T):T;return Xt({...r?{_gSpacing:$e("Padding")}:{},[o]:C(n(i)),...y?{[gt(o)]:s("Top",o,i)}:{},...e.only==="top"?{}:{[t]:C(Kt(a("Bottom"),I(_m,{}),xo.min,xo.max,xo.step,c,"px")),...y?{[gt(t)]:s("Bottom",t,c)}:{}},...e.sides?{[u]:C(Kt(a("Left"),I(Nm,{}),m.min,m.max,m.step,x,"px")),...y?{[gt(u)]:s("Left",u,g,m)}:{},[p]:C(Kt(a("Right"),I(Mm,{}),m.min,m.max,m.step,x,"px")),...y?{[gt(p)]:s("Right",p,g,m)}:{}}:{}})}var $r=["top","right","bottom","left"],cT={top:"sectionPaddingTop",right:"sectionPaddingRight",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft"},Pm=e=>typeof e=="number"?e:null;function dT(e,o,t){let r={};for(let a of $r)t[a]!==o[a]&&(r[e[a]]=t[a]??void 0);return r}function uT({tier:e,o}){let t=null;try{t=Rm()}catch{t=null}let r=t?.values??{},a=e==="mobile"?o.phoneKeys:o.keys,n=Object.fromEntries($r.map(u=>[u,Pm(r[a[u]])])),s=Object.fromEntries($r.map(u=>[u,String(e==="mobile"?Pm(r[o.keys[u]])??o.fallback[u]:o.fallback[u])])),[i,c]=In(()=>I0(n,s));return I(se,{label:l("Padding"),icon:I(o0,{}),action:I(Wm,{each:i,label:l("Each side"),onChange:c}),children:I(x0,{label:l("Padding"),each:i,value:n,placeholder:s,min:o.min,max:o.max,step:o.step,onChange:u=>{let p=dT(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 wn(e={}){let o={...cT,...e.keys},t={keys:o,phoneKeys:Object.fromEntries($r.map(i=>[i,gt(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 c={type:"custom",render:()=>I(uT,{tier:i,o:t})};return r?we(i,c):c},n=()=>Xa({type:"custom",render:()=>I(_r,{})},"always"),s=$r.filter(i=>i!=="top");return Xt({...e.group===!1?{}:{_gSpacing:$e("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 pT={contained:"Contained",page:"Page",full:"Full"},xn="Width";function kn(e,o=vm,t=!0){let r=o.map(a=>({label:Ur[a]??pT[a],value:a}));return Xt({...t?{_gWidth:$e(xn)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>I(se,{label:l(xn),icon:I(f0,{}),action:t?I(O0,{inherited:n?.inherited??!1,onReset:()=>a(ii),label:xn}):void 0,children:bi({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:xn})})}})}function Tn(){let e=r=>({type:"custom",render:({value:a,onChange:n})=>I(se,{label:$t,icon:zo(I(Qk,{})),action:r?r(n):void 0,children:bi({options:[{label:"Auto",value:"auto"},{label:"Fixed",value:"fixed"},{label:"Screen",value:"screen"}],value:["auto","fixed","screen"].includes(a)?a:"auto",onChange:n,ariaLabel:$t})})}),o=()=>({type:"custom",render:({value:r,onChange:a,field:n})=>{let s=n?.unit==="%"?"%":"px",i=s==="%"?qs:$s;return I("div",{className:"sf-field",children:Xe({min:i.min,max:i.max,step:i.step,value:typeof r=="number"?r:i.fallback,suffix:s,ariaLabel:$t,onChange:a})})}}),t=()=>yi("Unit",I(Dm,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return Xt({_gHeight:$e($t),sectionHeightMode:we("desktop",e()),sectionHeightValue:we("desktop",o()),sectionHeightUnit:we("desktop",t()),sectionHeightModePhone:we("mobile",e(r=>I(mT,{onClear:()=>r(void 0)}))),sectionHeightValuePhone:we("mobile",o()),sectionHeightUnitPhone:we("mobile",t())})}function mT({onClear:e}){let o=Jt(),t=js(o),r=rn(o),a=l("{value} on desktop",{value:r.mode==="auto"?l("Auto"):`${r.value}${r.unit}`});return I(oo,{words:X()?.panel,label:l($t),changed:t,detail:a,onReset:e})}function gi(){let e=t=>({type:"custom",render:({value:r,onChange:a,id:n,name:s})=>I(xT,{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:Xe({min:Qo.min,max:Qo.max,step:Qo.step,value:typeof t=="number"?t:Qo.fallback,suffix:"px",ariaLabel:l("Distance from top"),onChange:r})})});return{_gStick:$e(an),stickTop:we("desktop",e(!1)),stickTopDistance:we("desktop",o()),stickTopPhone:we("mobile",e(!0)),stickTopDistancePhone:we("mobile",o())}}function xT({value:e,onChange:o,labelId:t,phone:r}){let a=Jt(),n=Vs(a),s=r?n.phone:e===!0;return I(se,{label:l(an),labelId:t,icon:zo(I(n0,{})),action:wt(Ho,{children:[r?I(oo,{words:X()?.panel,label:l(an),changed:Ks(a),detail:l("{value} on desktop",{value:n.desktop?`${n.desktopDistance}px`:l("Off")}),onReset:()=>o(void 0)}):null,I(Gm,{checked:s,onChange:o,ariaLabelledBy:t})]})})}function Fn(){return{_gAnchor:$e("Anchor"),anchor:M0("Anchor name","e.g. about",D0)}}function _6(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=`${n??s??e}-datetime`,c=Date.parse(typeof r=="string"?r:"");return I(se,{label:l(e),icon:o,htmlFor:i,hint:t===void 0?void 0:l(t),children:I(w0,{id:i,value:Number.isFinite(c)?new Date(c):null,onChange:u=>a(u?u.toISOString():"")})})}}}function vt(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=typeof r=="boolean"?r:o,c=`${n??s??e}-label`;return I(se,{label:l(e),labelId:c,icon:t,action:I(Gm,{checked:i,onChange:a,ariaLabelledBy:c})})}}}function N6(){return{type:"custom",render:({value:e,onChange:o,id:t,name:r})=>{let a=`${String(t??r??"pageBackground")}-colour`;return I(se,{label:l("Background"),icon:I(zm,{}),htmlFor:a,action:I(mo,{id:a,label:"Background",value:ds(e),onChange:o})})}}}function M6(e,o){return{type:"custom",render:({value:t,onChange:r})=>I(se,{label:l(e),action:mo({value:t||o,onChange:r,label:e})})}}var IT=[{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 ax({label:e,value:o,onChange:t,points:r=IT}){let a=r.map(n=>({...n,label:l(n.label),...n.title?{title:l(n.title)}:null}));return I(C0,{label:l(e),value:o,points:a,onChange:t})}function H6(e,o=k0,t="mediaImage"){return{type:"custom",render:({value:r,onChange:a})=>I("div",{className:"sf-focal-row",children:I(hT,{label:e,value:r||o,onChange:a,imageProp:t})})}}function hT({label:e,value:o,onChange:t,imageProp:r}){let{selectedItem:a}=Yt(s=>s),n=a?.props?.[r];return I(ap,{label:e,value:o,onChange:t,image:typeof n=="string"?n:void 0})}var gT=ss([]);function z6(e,{stacking:o,fallback:t=$a}){return{type:"custom",render:({value:r,onChange:a})=>{let n=po.includes(r)?r:t;return o?I(bT,{label:e,value:n,onChange:a}):nx({label:e,value:n,onChange:a,points:gT})}}}function bT({label:e,value:o,onChange:t}){let{appState:r,selectedItem:a}=Yt(i=>i),n=a?.props?.id?String(a.props.id):void 0,s=n?fs(r?.data,n):[];return nx({label:e,value:o,onChange:t,points:ss(s,n)})}function nx({label:e,value:o,onChange:t,points:r}){let a=r.find(n=>n.disabled);return I(se,{label:l(e),icon:I(r0,{}),hint:a?.title?l(a.title):void 0,children:ax({label:e,value:xt(o),onChange:t,points:r})})}var W6={top:I(Kk,{}),right:I(jk,{}),bottom:I($k,{}),left:I(qk,{})};function G6(e,o,t,r,a,n){let s=p=>o.find(m=>m.value===p),i=p=>({value:p,label:"",disabled:!0,title:r}),c=p=>{let m=o.find(g=>g.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"),c("top"),i("corner-top-right"),c("left"),i("centre"),c("right"),i("corner-bottom-left"),c("bottom"),i("corner-bottom-right")];return{type:"custom",render:({value:p,onChange:m})=>{let x=o.some(g=>g.value===p)?p:t;return I(se,{label:l(e),icon:a,value:s(x)?.label?l(s(x).label):"",children:ax({label:e,value:x,onChange:m,points:u})})}}}var yT="\0note";function ot(e,o,t,r,a){return{type:"custom",options:t,fallback:r,...a?{note:a}:{},render:({value:n,onChange:s,field:i})=>{let c=i.options??t,u=i.fallback??r,p=c.some(m=>m.value===n)?n:u;return I(se,{label:l(e),icon:zo(o),children:I(b0,{value:p,ariaLabel:l(e),onChange:s,options:[...a?[{label:l(a),value:yT,disabled:!0}]:[],...c.map(m=>({label:l(m.label),value:m.value}))]})})}}}function U6(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>I(up,{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 $6(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return I(e,{...a})}}}function bi({options:e,value:o,onChange:t,ariaLabel:r,disabled:a=!1}){return I(m0,{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 q6=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function yi(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(se,{label:l(e),icon:zo(o),children:bi({options:a,value:a.some(c=>c.value===n)?n:n||i?.currentValue||r,onChange:s,ariaLabel:e})})}}function j6(e,o,t){return{type:"custom",[ru]:!0,render:({value:r,onChange:a})=>I(cp,{value:r||"",onChange:a,label:e,accept:o,placeholder:t})}}function K6({value:e,onChange:o,label:t}){let r=e||{},a=!!r.pending,n=a?"var(--fg-dim, #888)":r.ok?"#1d9e75":"#d85a30",s=(i,c)=>o({...r,[i]:c===""?void 0:Number(c)});return wt(se,{label:l(t),icon:I(ui,{}),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&&wt("div",{style:{marginTop:8,display:"grid",gap:8},children:[I(se,{label:l("Latitude"),icon:I(ui,{}),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(se,{label:l("Longitude"),icon:I(ui,{}),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 ST(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function CT(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 vT(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 Si={label:"Ticker items",icon:I(e0,{})};function V6(e,o,t,r){return{type:"custom",[ge]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},render:({value:a,onChange:n})=>I(Ci,{label:e,icon:zo(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function Ci({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=pi(null),[i,c]=In(null),u=m=>m.map(x=>({text:x?.text??""})),p=m=>{let x=vT(t,m,i);x===null&&(s.current=null),c(x),a(u(m))};return I(y0,{label:l(e),icon:o,noun:l("item"),items:t,onChange:p,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?I(ks,{target:s,value:ST(t,i),onChange:m=>a(CT(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,g)=>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:y=>g({text:y.target.value}),onFocus:y=>{s.current=y.currentTarget,c(x)}})})}function lx(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Qt({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>I(Zt,{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 sx(e){return{_gCards:$e("Cards"),coverIndex:ot("Cover image",I(Jk,{}),op,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:U0("Image background",dn),cardImage:kT(),spinOnHover:vt("Rotate on hover",e?.spinDefault??!0,I(l0,{}))}}function ix(){return{outline:ot("Card outline",I(s0,{}),Bs,Os),indexBadge:ot("Card number",I(Dm,{}),As,Rs),showBadge:vt("Product badge",!0,I(cs,{noun:"tag"}))}}function fx(e){let o=e?.bottomDefault??!0;return{_gShowOnCard:$e("Show on a card"),showCardPrice:vt("Price",!0,I(Vk,{})),showCardFinishes:vt("Finish swatches",!0,I(Yk,{})),showCardSizes:vt("Sizes",o,I(a0,{})),showCardBuy:vt("Buy button",o,I(Wk,{})),showCardPage:vt("Page button",o,I(zm,{}))}}function Y6(e,o="display"){let t=gt(o);return{[o]:we("desktop",{type:"custom",render:({value:r,onChange:a})=>I(cx,{parts:e,changed:Ou(r),shown:n=>Va(r,n),onPress:(n,s)=>a(Bu(r,n,s)),onReset:()=>a(void 0)})}),[t]:we("mobile",{type:"custom",render:({value:r,onChange:a})=>I(wT,{parts:e,desktopKey:o,value:r,onChange:a})})}}function cx({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n}){let s=l("Display");return I(se,{label:s,icon:I(_k,{}),changed:o,action:I(oo,{words:X()?.panel,label:s,changed:o,detail:n,onReset:a}),children:I(S0,{label:s,items:e.map(i=>({id:i.id,label:l(i.label),shown:t(i.id)})),onChange:r})})}function wT({parts:e,desktopKey:o,value:t,onChange:r}){let a=Jt()[o];return I(cx,{parts:e,changed:Au(t),shown:n=>hs(a,t,n),onPress:(n,s)=>r(Du(t,n,s)),onReset:()=>r(Yu),detail:l("the same as Desktop")})}function kT(){return Qm("Card image",{min:ro,max:dt,step:pu,hint:"Rounds the picture. The card's own corner is in Site styles."})}function X6(){return Ii({sidesKey:"cornerSides",step:mu,useFollowed:()=>ro,mark:I(TT,{label:xu}),hint:l("Rounds the picture. Left alone it stays square.")})}function TT({label:e,changed:o=!1,onReset:t=()=>{}}){return I(oo,{words:X()?.panel,label:l(e),changed:o,onReset:t})}function Z6(){return{type:"custom",render:({value:e,onChange:o})=>I(FT,{value:typeof e=="string"?e:"",onChange:o})}}function FT({value:e,onChange:o}){let[t,r]=In(null),a=as.filter(s=>t===null||Eo[s].across===t),n=e&&e in Eo?Eo[e]:null;return wt(Ho,{children:[I(se,{label:l("Photos in a row"),icon:I(Gk,{}),children:wt("div",{className:"sf-gallery-filter",children:[I("button",{type:"button","aria-pressed":t===null,onClick:()=>r(null),children:l("All")}),hu.map(s=>I("button",{type:"button","aria-pressed":t===s,onClick:()=>r(s),children:s},s))]})}),I(se,{label:l("Layout"),icon:I(Xk,{}),value:n?l(n.label):l("Not chosen"),hint:l("{n} of {total} layouts",{n:a.length,total:as.length}),children:I("div",{className:"sf-gallery-layouts",children:a.map(s=>I(hn,{content:l(Eo[s].label),className:"sf-tile-tip",children:I("button",{type:"button","aria-pressed":e===s,"aria-label":l(Eo[s].label),onClick:()=>o(e===s?"":s),children:I("span",{className:"sf-gallery-pic",children:Eo[s].desktop.map(([i,c],u)=>I("i",{style:{gridColumn:`span ${i}`,gridRow:`span ${c}`}},u))})})},s))})})]})}import{jsx as En,Fragment as ET,jsxs as dx}from"react/jsx-runtime";import{Button as ux,Dialog as PT}from"efficient-shell/ui";function LT(e){return pt("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 px({count:e,onCancel:o,onConfirm:t}){return dx(PT,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:l("Clear this site\u2019s colors?"),footer:dx(ET,{children:[En(ux,{variant:"secondary",onClick:o,children:l("Cancel")}),En(ux,{variant:"danger",onClick:t,children:l("Clear colors")})]}),children:[En("p",{children:LT(e)}),En("p",{className:"mt-2 font-medium",children:l("This cannot be undone.")})]})}var DT=mi("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");function _T(){return tt("svg",{width:"12",height:"12",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",children:tt("path",{d:"M12 5v14M5 12h14"})})}var NT="Reset color",MT={selected:0,themes:[]};function HT(e){e(MT)}function Ix({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=uo(e),[n,s]=xx(!1),i=BT(),[c,u]=xx(null),p=(v,w)=>{o({...a,themes:a.themes.map((h,b)=>b===v?w:h)})},m=At(a).accent,x=new Set(a.themes.map(v=>v.brandInk).filter(Boolean)),g=yd.filter(v=>!x.has(v)).map(v=>Sd(m,v)),y=[...a.themes,...g],C=v=>{if(v<a.themes.length)return o({...a,selected:v});let w=[...a.themes,y[v]];o({...a,themes:w,selected:w.length-1})},T=()=>{let v=[...a.themes,{...vo(a.themes[a.selected])}];o({...a,themes:v,selected:v.length-1}),u(v.length-1)};return mx(RT,{children:[r?null:tt(AT,{label:l(NT),icon:zo(DT),labelId:"sf-theme-reset",action:tt(OT,{label:l("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&tt(px,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),HT(o)}}),tt("div",{className:"sf-theme-list",role:"radiogroup","aria-label":l("Theme"),children:y.map((v,w)=>tt(Qa,{index:w,colors:v,selected:w===a.selected,open:c===w&&w<a.themes.length,editable:w<a.themes.length,onPick:()=>C(w),onEdit:()=>u(h=>h===w?null:w),onChangeColors:h=>p(w,h)},w))}),mx("button",{type:"button",onClick:T,className:"sf-theme-add",children:[tt(_T,{}),l("Add new theme")]})]})}import{jsx as Pn}from"react/jsx-runtime";import{SettingsDefaultReset as zT,SettingsField as WT}from"efficient-easel/panel";import{SquareIcon as GT}from"efficient-easel/icons";var UT="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",vi="Corners";function hx({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Pn(WT,{label:l(vi),icon:Pn(GT,{}),value:r?void 0:`${e}px`,changed:!r,action:Pn(zT,{words:X()?.panel,label:l(vi),changed:!r,detail:l("the built-in corners"),onReset:()=>o(null)}),hint:t?l(UT):void 0,children:Pn(Xe,{min:ro,max:dt,step:1,value:e??ro,readout:!1,ariaLabel:l(vi),onChange:o})})}import{jsx as jr}from"react/jsx-runtime";import{SettingsDefaultReset as $T,SettingsField as qT,SettingsSegmented as jT}from"efficient-easel/panel";import{ShadowIcon as KT}from"efficient-easel/icons";var wi={none:"None",soft:"Soft",lifted:"Lifted"},VT="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.",YT={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)"},XT={labelsPx:90.25,widestLabelPx:34.6};function gx({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??Ul;return jr(qT,{label:l("Card shadow"),icon:jr(KT,{}),value:l(wi[a]),changed:!r,action:jr($T,{words:X()?.panel,label:l("Card shadow"),changed:!r,detail:l(wi[Ul]),onReset:()=>o(null)}),hint:t?l(VT):void 0,children:jr(jT,{options:Pd.map(n=>({id:n,label:l(wi[n]),icon:jr("span",{className:"sf-shadow-chip",style:{boxShadow:YT[n]}})})),value:a,ariaLabel:l("Card shadow"),fit:XT,onChange:o})})}import{jsx as ki}from"react/jsx-runtime";import{SettingsDefaultReset as ZT,SettingsField as QT}from"efficient-easel/panel";import{ShadowIcon as JT}from"efficient-easel/icons";var e1="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 bx({value:e,onChange:o,showHint:t=!0}){let r=e===null;return ki(QT,{label:l("Shadow color"),icon:ki(JT,{}),changed:!r,action:mo({value:e??"",inherited:r?ql:void 0,onChange:o,label:"Shadow color",after:ki(ZT,{words:X()?.panel,label:l("Shadow color"),changed:!r,detail:ql,onReset:()=>o(null)})}),hint:t?l(e1):void 0})}import{jsx as Ln}from"react/jsx-runtime";import{SettingsDefaultReset as o1,SettingsField as t1}from"efficient-easel/panel";import{AlignSeparateIcon as r1}from"efficient-easel/icons";var a1="The space between the blocks inside a row, a grid or a box. Default means each one keeps the spacing it already has.",Ti="Block gap",n1=qt.Grid;function yx({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Ln(t1,{label:l(Ti),labelId:"sf-block-gap",icon:Ln(r1,{}),value:r?void 0:`${e}px`,changed:!r,action:Ln(o1,{words:X()?.panel,label:l(Ti),changed:!r,detail:l("each block's own spacing"),onReset:()=>o(null)}),hint:t?l(a1):void 0,children:Ln(Xe,{min:Ct.min,max:Ct.max,step:Ct.step,value:r?n1:e,readout:!1,ariaLabel:l(Ti),onChange:o})})}import{jsx as Rn}from"react/jsx-runtime";import{SettingsDefaultReset as l1,SettingsField as s1,SettingsSegmented as i1}from"efficient-easel/panel";import{HoverIcon as f1}from"efficient-easel/icons";var Fi={none:"None",lift:"Lift",highlight:"Highlight"},c1="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 Sx({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??$l;return Rn(s1,{label:l("Hover effect"),icon:Rn(f1,{}),value:l(Fi[a]),changed:!r,action:Rn(l1,{words:X()?.panel,label:l("Hover effect"),changed:!r,detail:l(Fi[$l]),onReset:()=>o(null)}),hint:t?l(c1):void 0,children:Rn(i1,{options:Ld.map(n=>({id:n,label:l(Fi[n])})),value:a,ariaLabel:l("Hover effect"),onChange:o})})}import{jsx as On}from"react/jsx-runtime";import{SettingsDefaultReset as d1,SettingsField as u1,SettingsSegmented as p1}from"efficient-easel/panel";import{ImageIcon as m1}from"efficient-easel/icons";var Ei="Hero image",Pi=[{followsWidth:!1,label:Ur.full},{followsWidth:!0,label:Ur.page}],x1="Whether the big picture at the top of a page runs edge to edge, or sits inside the page width. The words follow the page width either way.";function Cx({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??!1;return On(u1,{label:l(Ei),icon:On(m1,{}),value:l(Pi.find(n=>n.followsWidth===a).label),changed:!r,action:On(d1,{words:X()?.panel,label:l(Ei),changed:!r,detail:l(Pi.find(n=>!n.followsWidth).label),onReset:()=>o(null)}),hint:t?l(x1):void 0,children:On(p1,{options:Pi.map(n=>({id:n.followsWidth,label:l(n.label)})),value:a,ariaLabel:l(Ei),onChange:o})})}import{jsx as An}from"react/jsx-runtime";import{SettingsDefaultReset as I1,SettingsField as h1,SettingsSegmented as g1}from"efficient-easel/panel";import{DropIcon as b1}from"efficient-easel/icons";var Li="Photography",vx={shot:"As shot",mono:"Black and white"},Ri=[{grayscale:!1,label:vx.shot},{grayscale:!0,label:vx.mono}],y1="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function wx({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??!1;return An(h1,{label:l(Li),icon:An(b1,{}),value:l(Ri.find(n=>n.grayscale===a).label),changed:!r,action:An(I1,{words:X()?.panel,label:l(Li),changed:!r,detail:l(Ri.find(n=>!n.grayscale).label),onReset:()=>o(null)}),hint:t?l(y1):void 0,children:An(g1,{options:Ri.map(n=>({id:n.grayscale,label:l(n.label)})),value:a,ariaLabel:l(Li),onChange:o})})}import{jsx as Bn}from"react/jsx-runtime";import{SettingsDefaultReset as S1,SettingsField as C1}from"efficient-easel/panel";import{PaddingXIcon as v1}from"efficient-easel/icons";var Oi="Side space",Ai=Oo.default,w1="The room left at the left and right edge of every page.";function kx({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Bn(C1,{label:l(Oi),labelId:"sf-side-space",icon:Bn(v1,{}),value:`${e??Ai}px`,changed:!r,action:Bn(S1,{words:X()?.panel,label:l(Oi),changed:!r,detail:`${Ai}px`,onReset:()=>o(null)}),hint:t?l(w1):void 0,children:Bn(Xe,{min:Oo.min,max:Oo.max,step:Oo.step,value:e??Ai,readout:!1,ariaLabel:l(Oi),onChange:o})})}import{jsx as Dn}from"react/jsx-runtime";import{SettingsDefaultReset as k1,SettingsField as T1}from"efficient-easel/panel";import{WidthIcon as F1}from"efficient-easel/icons";var Bi="Content width",Di=De.default,E1="The standard width every page on this site renders at.";function Tx({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Dn(T1,{label:l(Bi),labelId:"sf-site-width",icon:Dn(F1,{}),value:`${e??Di}px`,changed:!r,action:Dn(k1,{words:X()?.panel,label:l(Bi),changed:!r,detail:`${Di}px`,onReset:()=>o(null)}),hint:t?l(E1):void 0,children:Dn(Xe,{min:De.min,max:De.max,step:De.step,value:e??Di,readout:!1,ariaLabel:l(Bi),onChange:o})})}import{jsx as sI}from"react/jsx-runtime";import{TextStyleItem as AF,TextStylesGroup as BF}from"efficient-easel/text-styles";import{jsx as EF}from"react/jsx-runtime";import{useState as PF}from"react";import{TextStylesList as LF}from"efficient-easel/text-styles";function _i(e,o){return o?`${e}[${o.index}].${o.rowKey}`:e}function Io(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 kt,encodePartId as Kr,PART_SEP as bW}from"efficient-easel/screen/lib/puck/part-id";var P1=bt,L1=["text","textarea"],R1=["textarea","plainTextarea"];function O1(e){return!e||typeof e!="object"?null:e[ge]?.control??null}function er(e){let o=O1(e);return o&&P1.includes(o)?o:null}function _n(e){return R1.includes(e)}function Fx(e){return!e||typeof e!="object"?void 0:e[ge]?.placeholder}function Nn(e){return Ue(e).text}function Ni(e,o,t){return L1.includes(e)?{text:t,hidden:Ue(o).hidden}:t}function Ex(e,o,t,r){return Nn(e[o])===r?null:{...e,[o]:Ni(t,e[o],r)}}function Mi(e){if(!(!e||typeof e!="object"))return e[ge]}function Hi(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function Px(e,o){if(!Array.isArray(o))return[];let t=Mi(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,i)=>{let c=s?.[n];typeof c=="string"&&c&&r.push({row:{index:i,rowKey:n},text:c})}),r}let a=Hi(e);return a?(o.forEach((n,s)=>{for(let[i,c]of Object.entries(a)){if(!er(c))continue;let u=Nn(n?.[i]);u&&r.push({row:{index:s,rowKey:i},text:u})}}),r):[]}function Vr(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function zi(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 Lx(e,o,t,r,a){let n=Vr(e[o],t);return Nn(n)===a?null:zi(e,o,t,Ni(r,n,a))}function Rx(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var ho="data-sf-part",Ze="data-sf-part-selected",NW="data-sf-part-kind",A1="data-sf-part-style-owner",B1="data-sf-part-style-kind";function MW(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(A1),r=o.getAttribute(B1);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-puck-component"))return null}return null}var Ox=2;function Ax(e,o){if(!e)return!1;let t=kt(e);return!!t?.propKey&&t.nodeId===o}function or(e){return ht(e).replace(/\s+/gu,"")}function Mn(e,o,t){let r=e[ge];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}=Ue(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[Lr]){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))Mn(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))Mn(n,o[a],t)}}function Bx(e){if(!e||typeof e!="object")return!1;let o=e;return o[Lr]?!1:!!o[ge]||o.type==="text"||o.type==="textarea"}function Hn(e,o){let t=e[ge];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Wi(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function HW(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){if(!a||typeof a!="object"||Nr(r))continue;let n=a,s=[];Mn(n,o?.[r],s),!s.length&&n[Rr]!==void 0&&Mn(n,n[Rr],s);let i=Hn(n,r),c=new Set;for(let{row:m,text:x}of Px(n,o?.[r])){let g=or(x);g.length<Ox||(c.add(g),t.push({key:r,label:i,texts:[g],row:m}))}let u=new Set(c),p=[];for(let m of s){let x=or(m);x.length<Ox||u.has(x)||(u.add(x),p.push(x))}p.length&&t.push({key:r,label:i,texts:p})}return t}var D1=bt;function Dx(e,o){if(!o||typeof o!="object"||Nr(e)||Vu(o))return null;let t=o[ge];return!t||!D1.includes(t.control)?null:t}function zW(e,o){let t=Dx(e,o);return t!==null&&t.identifier!==!0}function _x(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=Dx(r,a);if(!n)continue;let{text:s,hidden:i}=Ue(o?.[r]),c=s||n.placeholder||"",u=ht(c).replace(/\s+/gu," ").trim();t.push({key:r,label:Wi(Hn(a,r)),preview:u,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!i})}return t}var $i="_partStyles",Ki="data-sf-part-styled",_1=["none","upper","capitalize","lower"],N1=[400,500,600,700],M1=["left","center","right","justify"],Nx=5,Mx=1e3,H1=-5,z1=10,Vi=0,Yi=64,Xi=2,Zi=120,rt=1280,Qi=10,Hx={size:{min:Nx,max:Mx,step:1},sizePhone:{min:Nx,max:Mx,step:1},padding:{min:Vi,max:Yi,step:Xi},width:{min:Zi,max:rt,step:Qi}},W1=.05,G1=.01,U1=["line","letter"],$1=.5,q1=2.5,j1=-1,K1=1,V1=0,Y1=400,qi={none:"none",upper:"uppercase",capitalize:"capitalize",lower:"lowercase"};function Xr(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function $x(e){return Xr(e?.[$i])??{}}function Wn(e,o){let t=$x(e);return Object.hasOwn(t,o)?Xr(t[o])??{}:{}}function qx(e,o,t){let r={...$x(e)};if(X1(t).length?r[o]=t:delete r[o],!Object.keys(r).length){let{[$i]:a,...n}=e;return n}return{...e,[$i]:r}}function X1(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function Z1(e){return U1.includes(e)}var Yr=(e,o,t)=>Math.min(t,Math.max(o,e));function Q1(e,o){if(Z1(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:Yr(t,H1,z1)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?tr(Yr(t,$1,q1),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?tr(Yr(t,j1,K1),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:Yr(t,V1,Y1)}if(Object.hasOwn(Hx,e)){let{min:t,max:r}=Hx[e],a=Math.round(Number(o));return Number.isFinite(a)?Yr(a,t,r):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"?Mo.includes(String(o))?o:null:o}var J1=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function eF(e){let o=[];for(let[t,r]of J1)t===e?o.push(r):r===e&&o.push(t);return o}function Qr(e,o,t,r){let a={...Wn(e,o)},n=r==null?null:Q1(t,r);if(n===null)delete a[t];else{a[t]=n;for(let s of eF(t))delete a[s]}return qx(e,o,a)}function jx(e,o){return qx(e,o,{})}function oF(e){for(let o of _1)if(qi[o]===e)return o;return"none"}function tF(e){return!e||!Object.hasOwn(qi,e)?"":qi[e]}var rF={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 aF(e){let o=e.role;return o&&Mo.includes(o)?o:null}var nF={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 lF(e){let o=hd[e],t=nF[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function Jr(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=tr(sF+e.line*W1,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=tr(e.letter*G1,4)),o}var sF=1,ea="--sf-part-para",iF="(max-width: 719.98px)";function zx(e){return typeof e.sizePhone=="number"&&e.sizePhone>0?{fontSize:`${e.sizePhone}px`}:{}}function fF(e,o){return o&&typeof e.sizePhone=="number"&&e.sizePhone>0?{...e,size:e.sizePhone}:e}function zn(e,o){let t=aF(e),r=Jr(e),a=e.size?`${e.size}px`:t?lF(t):"";return{fontFamily:e.font?pF(e.font):t?`var(${rF[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`:"",[ea]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:tF(e.case),textAlign:e.align??"",paddingTop:Gi(e.padding),paddingBottom:Gi(e.padding),maxWidth:Gi(e.width),color:cF(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var cF=e=>e===void 0||e===""?"":Object.hasOwn(Yo,e)?Yo[e]:Kx.test(e)?e:"",Kx=/^#[0-9a-fA-F]{6}$/;function Vx(e){return Kx.test(e)}var Gi=e=>e===void 0?"":`${e}px`,tr=(e,o)=>Number(e.toFixed(o));function jW(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:dF(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?tr(r/t,3):1.2,letterEm:Number.isFinite(a)?tr(a/t,4):0,align:uF(e.textAlign),case:oF(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(s)&&s<rt?Math.round(s):rt}}function dF(e){return Number.isFinite(e)?N1.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function uF(e){for(let o of M1)if(o===e)return o;return e==="end"?"right":"left"}function KW(e,o){let t=Wx(e);if(!t)return"";for(let r of No)if(Wx(o(r.cssVar))===t)return r.key;return""}var Wx=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function pF(e){let o=Ot(e);return o?`var(${o.cssVar})`:""}function VW(e,o,t,r){return!o||kt(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function YW(e,o,t=()=>Zr,r=s=>s,a=IF,n=!1){let s=0;for(let{element:i,partId:c}of e){let u=kt(c)?.propKey;if(!u)continue;let p=r(u),m=Object.hasOwn(o,p)?Xr(o[p])??{}:{},x=zn(fF(m,n),Zr),g=Ui.some(C=>i.style[C]),y=!1;for(let[C,T]of Object.entries(x))hF(i,C,T),T&&(y=!0);if(g||Ui.some(C=>x[C]))for(let C of mF(i,a))for(let T of Ui)C.style[T]=x[T]??"";y&&(s+=1)}return s}function mF(e,o){let t=or(e.textContent??""),r=[],a=e;for(let n=0;n<xF&&o(a);n+=1){let s=a.parentElement;if(!s||or(s.textContent??"")!==t)break;r.push(s),a=s}return r}var xF=8;function IF(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Zr={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:rt};function hF(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===ea&&(t?a.setAttribute?.(Gx,""):a.removeAttribute?.(Gx))}var Gx="data-sf-part-para",gF=Object.keys(zn({},Zr)),ji=new Set(["color","overflowWrap",ea,"fontStyle"]),Ui=gF.filter(e=>!ji.has(e));function Yx(e,o,t,r=a=>a){let a=new Map;for(let i of e){let c=_i(i.key,i.row);for(let u of i.texts){let p=a.get(u);p?(p.keys.add(i.key),p.partKeys.add(c)):a.set(u,{keys:new Set([i.key]),partKeys:new Set([c])})}}let n=new Map;for(let i of Object.keys(o)){if(!bF(i))continue;let c=Xr(o[i])??{},u=zn(c,Zr),p=zx(c);!Object.values(u).some(Boolean)&&!Object.keys(p).length||n.set(i,{stamp:Ux(t,i),declarations:u,...Object.keys(p).length?{phone:p}:{}})}let s=new Map;for(let[i,{keys:c,partKeys:u}]of a){let p=u.size===1?[...u][0]:c.size===1?[...c][0]:null;if(!p)continue;let m=r(p);if(!Object.hasOwn(o,m))continue;let x=Xr(o[m])??{},g=zn(x,Zr),y=zx(x);!Object.values(g).some(Boolean)&&!Object.keys(y).length||s.set(i,{stamp:Ux(t,p),declarations:g,...Object.keys(y).length?{phone:y}:{}})}return s.size||n.size?{rules:s,kindRules:n,drawn:new Set(a.keys())}:null}function bF(e){return e.startsWith("@")}function Ji(e,o){return e?.kindRules.get(o)??null}function Ux(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function Xx(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(([,g])=>g!==""),c=g=>g.map(([y,C])=>`${SF(y)}: ${C}`).join("; "),u=`[${Ki}="${n}"]`,p=i.filter(([g])=>!ji.has(g)),m=i.filter(([g])=>ji.has(g));p.length&&o.push(`${u}, *:has(> ${u}) { ${c(p)} }`),m.length&&o.push(`${u} { ${c(m)} }`),s[ea]&&o.push(...yF(u));let x=Object.entries(a.phone??{}).filter(([,g])=>g!=="");x.length&&o.push(`@media ${iF} { ${u}, *:has(> ${u}) { ${c(x)} } }`)};for(let a of e.rules.values())r(a);for(let a of e.kindRules.values())r(a);return o.join(`
4
- `)}function yF(e){let o=`var(${ea})`,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 SF=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function Zx(e,o){if(!e)return null;let t=or(o),r=e.rules.get(t);if(r)return r;if(t.length<CF||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 CF=8;var ef=e=>e==="sentence"?"none":void 0,Wo=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0,oa=e=>typeof e=="string"&&e?e:void 0,Jx=["font","color","size","weight","italic","lineHeight","letterSpacing","paragraphSpacing","letterCase","largestSize"];function go(e){let o={};for(let t of Jx)e[t]!==void 0&&(o[t]=e[t]);return o}function tf(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=Jx.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function rf(e){let o=e.fonts,t=e.sizes,r=e.typography,a=Od(e.compression),n=(i,c)=>({id:`heading-${i}`,kind:"heading",name:`Heading ${i}`,values:go(c)}),s=(i,c={})=>({id:`body-${i}`,kind:"body",name:`Body ${i}`,values:go(c)});return[n(1,{font:oa(o.heading),size:Wo(t.headingLarge),weight:Wo(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:ef(r.case),largestSize:Wo(r.maxPx)}),n(2,{font:oa(o.heading2),size:Wo(t.headingMedium),weight:Wo(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:ef(r.case2)}),n(3,{font:oa(o.heading3),size:Wo(t.headingSmall),weight:Wo(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:ef(r.case3)}),s(1,{font:oa(o.body),size:Wo(t.body)}),s(2),s(3),s(4),s(5,{font:oa(o.label),size:Wo(t.label)})]}function Gn(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=>tf({...o,values:go(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function eG(e){return Gn(e)??[]}function at(e,o){let t=rf(o),r=Gn(e);return r?r.map(a=>{let n={...of(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:go({...n,...a.values})}}):t}var of=(e,o)=>e.find(t=>t.id===o)?.values??{},Qx=["heading-1","heading-2","heading-3"];function eI({saved:e,old:o,cur:t,next:r,sizeOf:a}){let n=rf(o),s=Gn(e)??n.map(m=>({...m,values:{}})),i=at(s,o),c=[],u=r.map(m=>{let x=t.find(h=>h.id===m.id),g=s.find(h=>h.id===m.id);if(!x||!g)return vF([m],a)[0];let y={...g.values},C=new Set(g.auto??[]),T=m.values,v=x.values,w=[...new Set([...Object.keys(T),...Object.keys(v)])].filter(h=>JSON.stringify(T[h])!==JSON.stringify(v[h]));w.sort((h,b)=>+(h==="letterSpacing")-+(b==="letterSpacing"));for(let h of w){let b=h==="lineSpacing"?"lineHeight":h,E=T[h];if(E===void 0){delete y[b],of(n,m.id)[b]!==void 0&&(c.push([m.id,b]),C.add(b));continue}if(C.delete(b),h==="lineSpacing")y.lineHeight=rr(E/100,3);else if(h==="letterSpacing"){let k=i.find(B=>B.id===m.id),L=a({...m,values:go({...k?.values??{},...y})});y.letterSpacing=L?rr(E/L,4):0}else y[b]=E}return tf({id:m.id,kind:m.kind,name:m.name,values:go(y)},C)}),p=o.compression;if(c.some(([m,x])=>(x==="lineHeight"||x==="letterSpacing")&&Qx.includes(m))&&ut(p)!=="normal"){for(let m of Qx){let x=u.find(y=>y.id===m);if(!x)continue;let g={...x.values};for(let y of["lineHeight","letterSpacing"])c.some(([C,T])=>C===m&&T===y)||g[y]===void 0&&!(x.auto??[]).includes(y)&&(g[y]=of(n,m)[y]);x.values=go(g)}p="normal"}return{saved:u,old:{...o,compression:p}}}function oI(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=ut(e.old.compression)),t}var rr=(e,o)=>Number(e.toFixed(o));function tI(e,o){return e.map(t=>{let{lineHeight:r,letterSpacing:a,...n}=t.values,s={...n};return r!==void 0&&(s.lineSpacing=rr(r*100,1)),a!==void 0&&(s.letterSpacing=rr(a*o(t),2)),{id:t.id,kind:t.kind,name:t.name,values:s}})}function vF(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:go({...n})},i={...s.values};if(r!==void 0&&(i.lineHeight=rr(r/100,3)),a!==void 0){let c=o({...s,values:{...s.values}});i.letterSpacing=c?rr(a/c,4):0}return{...s,values:go(i)}})}function oG(e){let o={fonts:Pr({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:Gl({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:ut(e.heading_compression),typography:Bd(e)},t=e.text_styles??null,r=Array.isArray(t)?af(at(t,o),o):o;return{fonts:Pr(r.fonts),sizes:Gl(r.sizes),compression:ut(r.compression),typography:r.typography,textStyles:t}}function af(e,o){let t=x=>e.find(g=>g.id===x)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),i=t("body-5"),c=o.fonts,u=o.sizes,p=o.typography,m=x=>x==="none"?"sentence":"authored";return{fonts:{...c,heading:r.font??c.heading,heading2:a.font??r.font??c.heading2,heading3:n.font??r.font??c.heading3,body:s.font??c.body,label:i.font??c.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 wF(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}var kF={none:"none",upper:"uppercase",capitalize:"capitalize",lower:"lowercase"};function TF(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 FF(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 tG(e){let o=[];for(let t of e){let r=t.values,a=`.${wF(t)}`,n=[],s=r.font!==void 0?No.find(u=>u.key===r.font)?.cssVar:void 0;if(s&&n.push(`font-family: var(${s})`),r.size!==void 0){let u=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;n.push(`font-size: ${u}px`)}let i=r.color!==void 0?TF(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 c=[];r.lineHeight!==void 0&&c.push(`line-height: ${r.lineHeight}`),r.letterSpacing!==void 0&&c.push(`letter-spacing: ${r.letterSpacing}em`),t.kind==="body"&&n.push(...c),r.letterCase!==void 0&&n.push(`text-transform: ${kF[r.letterCase]}`),r.paragraphSpacing&&n.push(`--sf-part-para: ${r.paragraphSpacing}px`),n.length&&o.push(`${a} { ${n.join("; ")} }`),t.kind==="heading"&&c.length&&o.push(`${a}, ${a}:is(h1, h2, h3, h4) { ${c.join("; ")} }`),r.paragraphSpacing&&o.push(...FF(a))}return o.join(`
5
- `)}function rG(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function nf(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 lf(e){let o=Jr(e);return go({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 rI(e){return Object.keys(lf(e)).length>0}function aI({saved:e,old:o,styleId:t,values:r}){return{saved:(Gn(e)??rf(o).map(a=>({...a,values:{}}))).map(a=>a.id===t?tf({...a,values:go({...a.values,...r})},a.auto):a),old:o}}var nI=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],RF=["size","lineSpacing","letterSpacing","letterCase"],OF=500,sf=No.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function lI({saved:e,old:o,colours:t,sizeOf:r,onChange:a,openId:n,onOpenChange:s,readOnly:i=!1,withoutSize:c=!1}){let[u,p]=PF(null),m=at(e,o),x=tI(m,r);return EF(LF,{styles:x,onChange:g=>a(eI({saved:e,old:o,cur:x,next:g,sizeOf:r})),fonts:sf,colours:t,settings:c?nI.filter(g=>g!=="size"):nI,auto:RF,openId:n===void 0?u:n,onOpenChange:s??p,readOnly:i,fallback:g=>{let y=m.find(T=>T.id===(g.kind==="heading"?"heading-1":"body-1")),C={};return y?.values.font&&g.id!==y.id&&(C.font=y.values.font),g.kind==="heading"&&(C.weight=OF),C}})}var iI=["font","size","weight","emphasis"],DF=500;function _F({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 NF(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 fI(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=_F(e);return sI(BF,{label:l("Accent"),children:sI(AF,{style:s,fonts:sf,settings:n?iI.filter(i=>i!=="size"):iI,auto:["size"],fallback:()=>({weight:o??DF}),open:t,onOpenChange:r,onChange:i=>NF(s,i).forEach(a)})})}import{SettingsTabs as HF}from"efficient-easel/panel";import{Tooltip as KG,tabButtonId as zF,tabPanelId as WF}from"efficient-shell/ui";import{ContrastIcon as GF,NoteIcon as UF,SettingsIcon as $F,TypeIcon as qF}from"efficient-easel/icons";function cI(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{gotoPreviewSlide as bG,pinPreviewToBottom as yG,pinPreviewToSection as SG,previewFrame as dI,scrollPreviewToSection as uI,scrollPreviewToTop as ff}from"efficient-easel/screen/lib/puck/preview-dom";import{useEasel as MF}from"efficient-easel/easel";function Un({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=MF(L=>L),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:c,setHeadingCompression:u,headingTypography:p,setHeadingTypography:m,textStyles:x,setTextStyles:g}=ee(),y=t.data,C=y.root?.props??{},T=e?Pr(C.fonts):a,v=e?Td:s,w=e?ut(C.headingCompression):c,h=e?Ad(C.headingTypography):p,b={fonts:T,sizes:v,compression:w,typography:h},E=e?C.textStyles:x,k=L=>r({type:"replaceRoot",root:{...y.root,props:{...C,...L}},recordHistory:!0});return{fonts:T,sizes:v,compression:w,typography:h,old:b,saved:E,write:(L,B)=>{let O=af(at(L.saved,L.old),L.old);e?k({textStyles:L.saved,fonts:O.fonts,headingCompression:O.compression,headingTypography:O.typography}):(g(L.saved),n(O.fonts),i(O.sizes),u(O.compression),m(O.typography)),o(oI(L,b),B)},writeRoot:k}}var cf="sf-site-styles",jF="sf-site-styles-tabpanel",pf=!1,KF="Show hints";function mf({shown:e,onChange:o}){return oe("div",{className:"sf-hints",children:Tt("button",{type:"button","aria-pressed":e,onClick:()=>o(!e),className:`sf-rung sf-hints-toggle${e?" is-active":""}`,children:[oe(UF,{size:13}),l(KF)]})})}var mI="text",ar=[{id:"basics",label:"Basics",icon:oe($F,{})},{id:"theme",label:"Theme",icon:oe(GF,{})},{id:"text",label:"Text",icon:oe(qF,{})}];function VF({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=pI(u=>u),{theme:a,setTheme:n}=ee(),s=t.data,i=s.root?.props??{},c=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 oe(Ix,{value:e?i.theme:a,onChange:c})}function YF({themeFromDocument:e,persist:o}){let[t,r]=uf(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=ee(),c=Un({themeFromDocument:e,persist:o}),{old:u,saved:p,writeRoot:m}=c,x=c.fonts,g=c.sizes,y=c.typography,C=k=>k.values.size??eE(ZF[k.id]??"body")??QF[k.kind],T=k=>c.write(k),v=XF(a),w=k=>{let L={...x,accent:k};e?m({fonts:L}):n(L),o({accent_font:k})},h=k=>{s({...g,accent:k}),o({accent_size_px:k})},b=k=>{let L={...y,weightStrong:k};e?m({headingTypography:L}):i(L),o({heading_weight_strong:k})},E=k=>{let L={...y,italicStrong:k};e?m({headingTypography:L}):i(L),o({accent_italic:k})};return Tt(nr,{children:[oe(lI,{saved:p,old:u,colours:v,sizeOf:C,onChange:T,openId:t===df?null:t,onOpenChange:r,withoutSize:e}),oe(fI,{font:x.accent,size:g.accent,weight:y.weightStrong,italic:y.italicStrong,headingWeight:y.weight,open:t===df,onOpenChange:k=>r(k?df:null),onChange:k=>{k.key==="font"?w(k.value):k.key==="size"?h(k.value):k.key==="weight"?b(k.value):E(k.value)},withoutSize:e})]})}var df="accent";function XF(e){let o=At(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 ZF={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},QF={heading:32,body:14},JF={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 eE(e){if(typeof document>"u")return null;let o=(dI()?.contentDocument??document).querySelector(JF[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function oE({themeFromDocument:e,persist:o,showHint:t}){let{appState:r,dispatch:a}=pI(x=>x),{cornerRadiusPx:n,setCornerRadiusPx:s}=ee(),i=r.data,c=i.root?.props??{},u=c.cornerRadiusPx===void 0?Ed[Fd(c.cornerStyle)]:wo(c.cornerRadiusPx),p=e?u:n,m=x=>a({type:"replaceRoot",root:{...i.root,props:{...c,...x}},recordHistory:!0});return oe(hx,{value:p,onChange:x=>{e?m({cornerRadiusPx:x}):s(x),o({corner_radius_px:x})},showHint:t})}function tE(e){return{site_width:e}}function rE({persist:e,showHint:o}){let{siteWidth:t,setSiteWidth:r}=ee();return oe(Tx,{value:t,onChange:a=>{r(a),e(tE(a),a===null)},showHint:o})}function aE(e){return{block_gap:e}}function nE(e){return{site_gutter:e}}function lE({persist:e,showHint:o}){let{siteGutter:t,setSiteGutter:r}=ee();return oe(kx,{value:t,onChange:a=>{r(a),e(nE(a),a===null)},showHint:o})}function sE({persist:e,showHint:o}){let{blockGap:t,setBlockGap:r}=ee();return oe(yx,{value:t,onChange:a=>{r(a),e(aE(a),a===null)},showHint:o})}function iE({persist:e,showHint:o}){let{heroBackgroundFollowsWidth:t,setHeroBackgroundFollowsWidth:r}=ee();return oe(Cx,{value:t,onChange:a=>{r(a),e({hero_background_follows_width:a},!0)},showHint:o})}function fE({persist:e,showHint:o=!0}){return Tt(nr,{children:[oe(rE,{persist:e,showHint:o}),oe(lE,{persist:e,showHint:o}),oe(sE,{persist:e,showHint:o}),oe(iE,{persist:e,showHint:o})]})}function cE(e){return{card_shadow:e}}function dE(e){return e===null?{shadow_color:null}:{shadow_color:Rd(e)}}function uE(e){return{hover_effect:e}}function pE({persist:e,showHint:o=!0}){let{cardShadow:t,setCardShadow:r,shadowColor:a,setShadowColor:n,hoverEffect:s,setHoverEffect:i}=ee();return Tt(nr,{children:[oe(gx,{value:t,onChange:c=>{r(c),e(cE(c),!0)},showHint:o}),oe(bx,{value:a,onChange:c=>{n(c),e(dE(c),c===null)},showHint:o}),oe(Sx,{value:s,onChange:c=>{i(c),e(uE(c),!0)},showHint:o})]})}function mE(e){return{photography_grayscale:e}}function xE({persist:e,showHint:o}){let{photographyGrayscale:t,setPhotographyGrayscale:r}=ee();return oe(wx,{value:t,onChange:a=>{r(a),e(mE(a),!0)},showHint:o})}function IE({persist:e,showHint:o=!0}){return oe(nr,{children:oe(xE,{persist:e,showHint:o})})}function lr(){let{websiteName:e}=ee();return e?.trim()||_d}function $n({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n}){let{persist:s}=Ut({themeFromDocument:e,tokenRef:o,siteId:t,onResult:C=>{let T=cI(C);T&&r?.(T.msg,T.tone)}}),[i,c]=uf(ar[0].id),u=a!==void 0,p=u?a:i,m=u?n??(()=>{}):c,x=ar.find(C=>C.id===p)??ar[0],[g,y]=uf(pf);return Tt(nr,{children:[oe(HF,{items:ar.map(C=>({...C,label:l(C.label)})),activeId:x.id,onSelect:m,ariaLabel:l("Site styles"),idPrefix:cf}),Tt("div",{id:WF(cf,x.id),className:jF,role:"tabpanel","aria-labelledby":zF(cf,x.id),children:[p==="basics"&&Tt(nr,{children:[oe(oE,{themeFromDocument:e,persist:s,showHint:g}),!e&&oe(pE,{persist:s,showHint:g}),!e&&oe(fE,{persist:s,showHint:g}),!e&&oe(IE,{persist:s,showHint:g}),oe(mf,{shown:g,onChange:y})]}),p==="theme"&&oe(VF,{themeFromDocument:e,persist:s}),p==="text"&&oe(YF,{themeFromDocument:e,persist:s})]})]})}import{InspectorIconButton as TE}from"efficient-easel/chrome";import{Button as SI,Dialog as FE,FormField as EE,Input as CI,toast as vI}from"efficient-shell/ui";import{LayersTree as PE,TreeGroupLabel as LE,TreeRow as wI,TreeRowAction as Sf}from"efficient-easel/tree";import{AddIcon as RE}from"efficient-easel/icons";import{PagesIcon as OE}from"efficient-easel/rail";var xf="Main Pages",hE="Dynamic Pages",If="dynamic",gE="dynamic";function hf(e){return e.kind===gE}function xI(e){let o=[],t=[];for(let r of e){if(hf(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??xf,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:If,label:hE,rows:t})}return o}import{useCallback as qn,useEffect as bE,useSyncExternalStore as yE}from"react";var II=new WeakMap;function ta(e){let o=II.get(e);return o||(o={rows:null,loading:null,listeners:new Set},II.set(e,o)),o}function gf(e,o){e.rows=o;for(let t of e.listeners)t()}var jn=new Set;function Kn(e,o){o?jn.add(e):jn.delete(e)}function hI(e){let o=ta(e),t=e.listPages().then(r=>gf(o,jn.size?r.filter(a=>!jn.has(a.id)):r),()=>gf(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var gI=()=>null,SE=()=>()=>{};function bf(){let{adapter:e,ready:o}=Se(),t=qn(i=>{let{listeners:c}=ta(e);return c.add(i),()=>c.delete(i)},[e]),r=qn(()=>ta(e).rows,[e]),a=yE(o?t:SE,o?r:gI,gI);bE(()=>{if(!o)return;let i=ta(e);i.rows===null&&!i.loading&&hI(e)},[e,o]);let n=qn(()=>o?hI(e):Promise.resolve(),[e,o]),s=qn(i=>gf(ta(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function CE(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function bI(){let{currentSlug:e}=Se(),{rows:o}=bf();return CE(o,e)}var kI="sf-editor-pages-collapsed-groups",AE=e=>e.toLowerCase().trim().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,""),TI=(e,o)=>{let t=AE(e)||"page";if(!o.has(t))return t;let r=2;for(;o.has(`${t}-${r}`);)r+=1;return`${t}-${r}`};function FI({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=Ae().chrome?.pageRows,n=_t(),{adapter:s,capabilities:i,ready:c,currentSlug:u}=Se(),p=lr(),{rows:m,reload:x,setRows:g,getRows:y}=bf(),[C,T]=sr(""),[v,w]=sr(!1),[h,b]=sr(null),[E,k]=sr(!1),[L,B]=sr(""),O=kE(),[z,ne]=sr(()=>{if(typeof window>"u")return new Set;try{let P=window.localStorage.getItem(kI);return new Set(P?JSON.parse(P):[])}catch{return new Set}});wE(()=>{try{window.localStorage.setItem(kI,JSON.stringify([...z]))}catch{}},[z]);let M=P=>ne(Y=>{let j=new Set(Y);return j.has(P)?j.delete(P):j.add(P),j}),ae=yI(()=>xI(m??[]),[m]),_=C.trim().toLowerCase(),fe=P=>!_||P.toLowerCase().includes(_),Ee=P=>_?!0:!z.has(P),je=yI(()=>new Set((m??[]).map(P=>P.slug)),[m]),So=()=>{if(i.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}B(""),b(null),k(!0)},Ne=async()=>{let P=L.trim();if(!(!P||!c||v||!s.createPage)){w(!0),b(null);try{let Y=await s.createPage({slug:TI(P,je),title:P,layout:{}});await x(),k(!1),B(""),e(Y.slug)}catch{b(l("Couldn\u2019t add the page \u2014 please retry."))}finally{w(!1)}}},Me=P=>{let Y=m??[],j=s.deletePage;if(!c||v||!j||Y.length<=1)return;let J=Y.findIndex(Oe=>Oe.id===P.id),te=Y.filter(Oe=>Oe.id!==P.id),Ie=P.slug===u;Kn(P.id,!0),g(te),b(null),Ie&&te[0]&&e(te[0].slug);let Pe=()=>{Kn(P.id,!1);let Oe=y()??[];if(Oe.some(io=>io.id===P.id))return;let so=[...Oe];so.splice(Math.max(0,Math.min(J,so.length)),0,P),g(so)};vI.undoable(l("Deleted \u201C{name}\u201D",{name:P.label}),{actionLabel:l("Undo"),commit:async Oe=>{await j(P.id,Oe),Kn(P.id,!1)},undo:()=>{Pe(),Ie&&e(P.slug)},onFail:()=>{Pe(),vI.error(l("Couldn\u2019t delete the page \u2014 please retry."))}})},He=P=>n.send("storefront-editor:open-page",{slug:P}),Je=P=>{if(!fe(P.label))return null;let Y=!t&&P.slug===u,j=i.canDeletePagesInline&&(m??[]).length>1,J=hf(P),te=P.kind==="lightbox",Ie=J||te||P.draft?ir(yf,{children:[J&&Z("span",{className:"sf-badge-dynamic",children:l("Dynamic")}),te&&Z("span",{className:"sf-badge-lightbox",children:l("Lightbox")}),P.draft&&Z("span",{className:"sf-page-draft",children:l("draft")})]}):void 0,Pe=i.pageCreationInAdminForm||j?ir(yf,{children:[i.pageCreationInAdminForm&&Z(Sf,{kind:"plain",label:l("Edit \u201C{name}\u201D in {place}",{name:P.label,place:l("the admin")}),onClick:()=>He(P.slug),children:Z(Ge,{name:"pencil",size:13,strokeWidth:1.7,rounded:!0})}),j&&Z(Sf,{kind:"delete",label:l("Delete \u201C{name}\u201D",{name:P.label}),disabled:v,onClick:()=>Me(P),children:Z(Ge,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return Z(wI,{icon:Z(BE,{}),name:P.label,selected:Y,onSelect:()=>e(P.slug),preview:Ie,actions:Pe,rowProps:{"data-page-slug":P.slug}},P.id)},me=(P,Y,j)=>{let J=j.filter(Boolean);if(J.length===0)return null;let te=Ee(P);return ir(vE,{children:[Z(LE,{count:J.length,expanded:te,onToggle:()=>M(P),children:Y}),te&&J]},P)},ve=(a?.rows??[]).filter(P=>fe(P.label)).map(P=>{let Y=t===P.key;return Z(wI,{icon:P.icon,name:P.label,selected:Y,onSelect:()=>r(P.key),preview:Z("span",{className:"sf-badge-preview",children:l("Preview")}),actions:Z(Sf,{kind:"plain",label:l("Open the {name} in a new tab",{name:P.label}),onClick:()=>window.open(P.href,"_blank","noopener,noreferrer"),children:Z(Ge,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":P.key}},P.key)}),xe=i.hasSiteSettings&&!!a,Ke=(()=>{if(m===null)return null;let P=[],Y=!1;for(let j of ae){xe&&!Y&&j.key.startsWith("system:")&&(P.push(me("shop",a.title,ve)),Y=!0);let J=j.key===If||j.label===xf?l(j.label):j.label;P.push(me(j.key,J,j.rows.map(Je)))}return xe&&!Y&&P.push(me("shop",a.title,ve)),P})();return ir("div",{className:"sf-pages",children:[Z(Ha,{icon:Z(OE,{}),title:l("Pages"),context:p,actions:Z(TE,{label:l("New page"),onClick:So,children:Z(RE,{size:15})}),onHide:o}),Z("div",{className:"sf-pages-find",children:Z(CI,{type:"search",leftIcon:Z(Ge,{name:"search",size:14,rounded:!0}),placeholder:l("Search all pages\u2026"),value:C,onChange:P=>T(P.target.value),"aria-label":l("Search all pages")})}),h&&!E&&Z("div",{className:"sf-note sf-note--error",role:"alert",children:h}),Ke===null?Z("div",{className:"sf-note",children:l("Loading\u2026")}):Ke.some(Boolean)?Z(PE,{ariaLabel:l("Pages"),className:"sf-scroll",children:Ke}):Z("div",{className:"sf-note",children:C.trim()?l("No pages match your search"):l("No pages yet. Add one with + above.")}),Z(FE,{open:E,onClose:()=>k(!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:ir(yf,{children:[Z(SI,{variant:"secondary",onClick:()=>k(!1),children:l("Cancel")}),Z(SI,{onClick:()=>{Ne()},disabled:v||!L.trim(),loading:v,children:l("Add page")})]}),children:Z(EE,{label:l("Page name"),htmlFor:O,hint:L.trim()?l("URL: /{slug}",{slug:TI(L,je)}):void 0,error:h??void 0,children:Z(CI,{id:O,value:L,invalid:!!h,onChange:P=>B(P.target.value),onKeyDown:P=>{P.key==="Enter"&&Ne()},placeholder:l("e.g. About")})})})]})}function BE(){return ir("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[Z("path",{d:"M14 3H7a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h10a2 2 0 0 0 2-2V8z"}),Z("path",{d:"M14 3v5h5"})]})}import{jsx as DE}from"react/jsx-runtime";import{createContext as _E,useCallback as NE,useContext as ME,useState as HE}from"react";var EI={enabled:!0,title:"",subtitle:"",greeting:""},PI=_E({chat:EI,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function FU({children:e,chat:o=EI,onChatChange:t}){let[r,a]=HE(!1),n=NE(c=>t?.(c),[t]),{select:s,setSelectHandler:i}=Dd();return DE(PI.Provider,{value:{chat:o,setChat:n,selected:r,setSelected:a,select:s,setSelectHandler:i},children:e})}var Vn=()=>ME(PI);import{jsx as Cf}from"react/jsx-runtime";import{DesktopIcon as zE,PhoneIcon as WE,TabletIcon as GE}from"efficient-easel/icons";import{VIEW_DESKTOP_MIN as LU,VIEW_TABLET_MIN as RU,VIEW_TIER_LABEL as LI,VIEW_TIERS as RI,viewTierForWidth as OU}from"efficient-easel/screen/lib/content/view-tiers";var UE={desktop:Cf(zE,{}),tablet:Cf(GE,{}),mobile:Cf(WE,{})},OI=RI.map(e=>({id:e,get label(){return l(LI[e])},icon:UE[e]}));import{PreviewDeviceContext as AI,usePreviewDevice as BI}from"efficient-easel/screen/components/PreviewDeviceContext";import{jsx as $E}from"react/jsx-runtime";import{createContext as qE,useCallback as DI,useContext as jE,useMemo as KE,useRef as VE}from"react";var YE=Object.fromEntries(Ba.map(e=>[e,{value:"",error:null}])),_I=qE({links:Md,rows:YE,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function $U({children:e,value:o}){let t=VE(()=>{}),r=DI(()=>t.current(),[]),a=DI(s=>{t.current=s},[]),n=KE(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return $E(_I.Provider,{value:n,children:e})}var ra=()=>jE(_I);import{jsx as XE}from"react/jsx-runtime";import{createContext as ZE,useContext as QE,useMemo as JE,useState as eP}from"react";var NI=ZE(null);function VU({children:e}){let[o,t]=eP(null),r=JE(()=>({surface:o,setSurface:t}),[o]);return XE(NI.Provider,{value:r,children:e})}function MI(){return QE(NI)??{surface:null,setSurface:()=>{}}}var aa="Scrolling Bar",{Provider:ZU,useSelection:Yn}=Aa("selectedHeroId");import{jsx as Q,jsxs as Et,Fragment as Ac}from"react/jsx-runtime";import{useState as OA}from"react";import{useEasel as AA}from"efficient-easel/easel";import{headWords as BA,InspectorHead as DA,InspectorIconButton as hb}from"efficient-easel/chrome";import{DuplicateIcon as _A,TrashIcon as NA}from"efficient-easel/icons";import{panelFieldsOf as HI}from"efficient-easel/screen/lib/puck/panel-fields";import{jsx as F,Fragment as $,jsxs as q}from"react/jsx-runtime";import{BlockBannerIcon as rP,BlockBoxIcon as aP,BlockButtonIcon as nP,BlockDividerIcon as WI,BlockFooterIcon as GI,BlockHeadingIcon as lP,BlockProductIcon as sP,BlockSocialIcon as iP,BlockTextIcon as fP,ChatIcon as cP,GridIcon as dP,ImageIcon as uP,PageIcon as pP}from"efficient-easel/icons";import{jsx as vf,Fragment as oP,jsxs as tP}from"react/jsx-runtime";var zI=tP(oP,{children:[vf("circle",{cx:"9",cy:"20",r:"1.3"}),vf("circle",{cx:"18",cy:"20",r:"1.3"}),vf("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 mP={header:q($,{children:[F("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),F("path",{d:"M3 9.5h18"})]}),website:q($,{children:[F("circle",{cx:"12",cy:"12",r:"9"}),F("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:q($,{children:[F("circle",{cx:"6",cy:"12",r:"2.5"}),F("circle",{cx:"18",cy:"6",r:"2.5"}),F("circle",{cx:"18",cy:"18",r:"2.5"}),F("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:q($,{children:[F("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),F("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:q($,{children:[F("path",{d:"M4 15.5h6M4 18h4"}),F("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:F("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:q($,{children:[F("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),F("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:F("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:q($,{children:[F("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),F("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:q($,{children:[F("circle",{cx:"11",cy:"11",r:"6"}),F("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:zI,CountrySwitchBlock:q($,{children:[F("circle",{cx:"12",cy:"12",r:"8.5"}),F("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:q($,{children:[F("path",{d:"M3 9h18"}),F("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:q($,{children:[F("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),F("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:q($,{children:[F("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),F("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:q($,{children:[F("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),F("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),F("path",{d:"M7 17h7"})]}),Collections:q($,{children:[F("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),F("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),F("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:q($,{children:[F("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),F("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:q($,{children:[F("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),F("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),F("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),F("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),F("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:q($,{children:[F("path",{d:"M3 7h9M15.5 7H21"}),F("circle",{cx:"13.5",cy:"7",r:"1.7"}),F("path",{d:"M3 12h4M10.5 12H21"}),F("circle",{cx:"8.5",cy:"12",r:"1.7"}),F("path",{d:"M3 17h9M15.5 17H21"}),F("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:q($,{children:[F("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),F("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),F("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),F("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),F("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),F("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:q($,{children:[F("path",{d:"M3 5h10"}),F("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),F("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),F("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:q($,{children:[F("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),F("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),F("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:q($,{children:[F("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),F("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),F("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),F("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:q($,{children:[F("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),F("circle",{cx:"9",cy:"10",r:"1.6"}),F("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:q($,{children:[F("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),F("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:q($,{children:[F("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),F("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),F("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:q($,{children:[F("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),F("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:q($,{children:[F("path",{d:"M3.5 20h17"}),F("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:q($,{children:[F("circle",{cx:"6",cy:"12",r:"2.6"}),F("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),F("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:q($,{children:[F("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),F("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:q($,{children:[F("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),F("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:q($,{children:[F("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),F("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:q($,{children:[F("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),F("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:q($,{children:[F("path",{d:"M4 8.5h4.5M11 8.5h9"}),F("path",{d:"M4 14.5h16"})]}),HeroGroup:q($,{children:[F("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),F("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:q($,{children:[F("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),F("path",{d:"M6.5 9h11M6.5 12.5h11"}),F("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:F($,{children:F("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:q($,{children:[F("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),F("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:q($,{children:[F("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),F("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),F("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),F("path",{d:"M4 13.5h11M4 17.5h7"}),F("path",{d:"M17 15l3 2-3 2"})]}),CustomHTML:F("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},xP=F("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),IP={footer:GI,Footer:GI,Divider:WI,FooterDivider:WI,Banner:rP,Flex:aP,FooterSocial:iP,page:pP,chat:cP,Heading:lP,Text:fP,ImageBlock:uP,ButtonBlock:nP,Grid:dP,ProductRef:sP},hP={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",SiteHeader:"header",SiteFooter:"footer"};function fr({type:e,size:o=16,className:t}){let r=hP[e]??e,a=IP[r];return a?F(a,{size:o,className:t}):F("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:mP[r]??xP})}import{jsx as lo,Fragment as gP,jsxs as bP}from"react/jsx-runtime";import{useEffect as yP,useId as SP,useState as CP}from"react";import{SettingsField as UI,SettingsSwitch as vP}from"efficient-easel/panel";import{EyeIcon as wP,TypeIcon as kP}from"efficient-easel/icons";var TP="Chat with us",FP="We usually reply within a few minutes",EP="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function wf({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1}){let[n,s]=CP(o);yP(()=>s(o),[o]);let i=()=>{n!==o&&r(n)};return lo(UI,{label:e,icon:lo(kP,{}),children:a?lo("textarea",{value:n,placeholder:t,rows:3,onChange:c=>s(c.target.value),onBlur:i,"aria-label":e}):lo("input",{type:"text",value:n,placeholder:t,onChange:c=>s(c.target.value),onBlur:i,onKeyDown:c=>{c.key==="Enter"&&c.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function $I(){let{chat:e,setChat:o}=Vn(),t=SP();return bP(gP,{children:[lo(UI,{label:l("Show the chat bubble"),labelId:t,icon:lo(wP,{}),action:lo(vP,{checked:e.enabled,onChange:r=>o({enabled:r}),ariaLabelledBy:t}),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.")}),lo(qr,{label:"Wording"}),lo(wf,{label:l("Title"),value:e.title,placeholder:TP,onCommit:r=>o({title:r})}),lo(wf,{label:l("Subtitle"),value:e.subtitle,placeholder:FP,onCommit:r=>o({subtitle:r})}),lo(wf,{label:l("Greeting message"),value:e.greeting,placeholder:EP,onCommit:r=>o({greeting:r}),multiline:!0}),lo("p",{className:"es-field-hint sf-hint-keep",children:l("Leave a field blank to use the built-in wording.")})]})}import{jsx as Ft,Fragment as jf,jsxs as YI}from"react/jsx-runtime";import{useEffect as aL,useId as KI,useState as VI}from"react";import{SettingsField as nL}from"efficient-easel/panel";import{jsx as YP}from"react/jsx-runtime";import{forwardRef as PP,createElement as kf}from"react";var qI={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 W=(e,o,t,r)=>{let a=PP(({color:n="currentColor",size:s=24,stroke:i=2,title:c,className:u,children:p,...m},x)=>kf("svg",{ref:x,...qI[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,u].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:i,stroke:n},...m},[c&&kf("title",{key:"svg-title"},c),...r.map(([g,y])=>kf(g,y)),...Array.isArray(p)?p:[p]]));return a.displayName=`${t}`,a};var LP=[["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"}]],Tf=W("outline","brand-facebook","BrandFacebook",LP);var RP=[["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"}]],Ff=W("outline","brand-instagram","BrandInstagram",RP);var OP=[["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"}]],Ef=W("outline","brand-line","BrandLine",OP);var AP=[["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"}]],Pf=W("outline","brand-linkedin","BrandLinkedin",AP);var BP=[["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"}]],Lf=W("outline","brand-pinterest","BrandPinterest",BP);var DP=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],Rf=W("outline","brand-telegram","BrandTelegram",DP);var _P=[["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"}]],Of=W("outline","brand-tiktok","BrandTiktok",_P);var NP=[["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"}]],Af=W("outline","brand-wechat","BrandWechat",NP);var MP=[["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"}]],Bf=W("outline","brand-whatsapp","BrandWhatsapp",MP);var HP=[["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"}]],Df=W("outline","brand-x","BrandX",HP);var zP=[["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"}]],_f=W("outline","brand-youtube","BrandYoutube",zP);var WP=[["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"}]],Nf=W("filled","brand-facebook-filled","BrandFacebookFilled",WP);var GP=[["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"}]],Mf=W("filled","brand-instagram-filled","BrandInstagramFilled",GP);var UP=[["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"}]],Hf=W("filled","brand-linkedin-filled","BrandLinkedinFilled",UP);var $P=[["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"}]],zf=W("filled","brand-pinterest-filled","BrandPinterestFilled",$P);var qP=[["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"}]],Wf=W("filled","brand-tiktok-filled","BrandTiktokFilled",qP);var jP=[["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"}]],Gf=W("filled","brand-whatsapp-filled","BrandWhatsappFilled",jP);var KP=[["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"}]],Uf=W("filled","brand-x-filled","BrandXFilled",KP);var VP=[["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"}]],$f=W("filled","brand-youtube-filled","BrandYoutubeFilled",VP);var T8="outline",Xn={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},XP={},qf={fillRule:"evenodd"},ZP=[["path",{...Xn,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...qf,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],QP=[["path",{...Xn,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",{...XP,d:["M21 10.663c0 -4.224 -4.041 -7.663 -9 -7.663s-9 3.439 -9 7.663","c0 3.783 3.201 6.958 7.527 7.56c1.053 .239 .932 .644 .696 2.133","c-.039 .238 -.184 .932 .777 .512c.96 -.42 5.18 -3.201 7.073 -5.48","c1.304 -1.504 1.927 -3.029 1.927 -4.715v-.01z"].join("")}]],JP=[["path",{...Xn,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",{...Xn,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",{...qf,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",{...qf,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("")}]],eL=W("filled","brand-telegram-filled","BrandTelegramFilled",ZP),oL=W("filled","brand-line-filled","BrandLineFilled",QP),tL=W("filled","brand-wechat-filled","BrandWechatFilled",JP),rL={instagram:{outline:Ff,solid:Mf},facebook:{outline:Tf,solid:Nf},tiktok:{outline:Of,solid:Wf},youtube:{outline:_f,solid:$f},x:{outline:Df,solid:Uf},linkedin:{outline:Pf,solid:Hf},pinterest:{outline:Lf,solid:zf},whatsapp:{outline:Bf,solid:Gf},telegram:{outline:Rf,solid:eL},line:{outline:Ef,solid:oL},wechat:{outline:Af,solid:tL}};function jI({platform:e,iconStyle:o,size:t}){let r=rL[e][o];return YP(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var lL={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 sL({platform:e}){let{rows:o,saveLink:t}=ra(),{value:r,error:a}=o[e],[n,s]=VI(r),[i,c]=VI(!1),u=KI(),p=KI();aL(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}c(!0),await t(e,n),c(!1)},x=Nd[e];return YI(jf,{children:[Ft(nL,{label:l(x),htmlFor:u,icon:Ft(jI,{platform:e,iconStyle:"outline",size:18}),children:Ft("input",{id:u,type:"text",inputMode:"url",value:n,placeholder:lL[e],onChange:g=>s(g.target.value),onBlur:()=>{m()},onKeyDown:g=>{g.key==="Enter"&&g.currentTarget.blur(),g.key==="Escape"&&(s(r),g.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?p:void 0,"aria-busy":i||void 0,autoComplete:"off",spellCheck:!1})}),a&&Ft("p",{id:p,className:"sf-note sf-note--error",role:"alert",children:a})]})}function XI({unavailable:e}){let{canSave:o}=ra();return!o&&e?Ft(jf,{children:e}):YI(jf,{children:[Ft("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.")}),Ba.map(t=>Ft(sL,{platform:t},t))]})}import{jsx as pr,jsxs as $R}from"react/jsx-runtime";import{useId as qR,useMemo as jR}from"react";import{useEasel as KR}from"efficient-easel/easel";import{SettingsField as VR,SettingsSwitch as YR}from"efficient-easel/panel";import{EyeIcon as XR}from"efficient-easel/icons";import{jsx as Ao,jsxs as nl}from"react/jsx-runtime";import{useCallback as dr,useEffect as ur,useId as NR,useRef as Go,useState as ma}from"react";var ZI="data-puck-overlay-portal";function Zn(e){return e.setAttribute(ZI,"true"),()=>e.removeAttribute(ZI)}import{jsx as fa,jsxs as hh}from"react/jsx-runtime";var Kf="small",Vf="dot",iL=[{label:"Small",value:"small"},{label:"Display",value:"display"}],fL=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],QI={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},cL={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)]"},dL={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 JI(e){return eo(iL,Kf,e)}function eh(e){return eo(fL,Vf,e)}function oh(e){return cL[e]}function th(e,o){return dL[e][o]}var Yf="left",uL=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],pL={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function rh(e){return eo(uL,Yf,e)}function ah(e){return e==="up"||e==="down"}function nh(e,o){return`${pL[e]} ${o}s linear infinite`}import{jsx as ce,jsxs as Jf}from"react/jsx-runtime";import{Fragment as xh}from"react";import{Fragment as bL,jsx as Zf}from"react/jsx-runtime";import{Fragment as ih,jsx as la,jsxs as IL}from"react/jsx-runtime";import{createContext as Xf,useContext as sa,useId as hL,useMemo as gL}from"react";var na="@name",lh="@body",sh="@value",G8={[na]:"Name",[lh]:"Body",[sh]:"Value"},mL={TimelineTrack:{"entries.date":na,"entries.title":na,"entries.blurb":lh},Footprint:{"offices.city":na},Stats:{"items.label":na,"items.value":sh}};function xL(e){let{key:o,row:t}=Io(e);return t?`${o}.${t.rowKey}`:null}function Qn(e,o){if(!e)return o;let t=xL(o);return t?mL[e]?.[t]??o:o}var Jn=Xf(null),fh=Xf(null),ch=Xf(null);function V8({needles:e,styles:o,type:t,children:r}){let a=hL(),n=JSON.stringify([a,e,o,t]),s=gL(()=>Yx(e,o,a,i=>Qn(t,i)),[n]);return s?IL(ih,{children:[la("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:Xx(s)}}),la(Jn.Provider,{value:s,children:r})]}):la(ih,{children:r})}function dh(e){let o=sa(Jn),t=sa(fh),r=Zx(o,e);return r&&r.stamp!==t?r:null}function Y8(e){return Ji(sa(Jn),e)}function uh({stamp:e,children:o}){return la(fh.Provider,{value:e,children:o})}function X8({children:e}){let o=sa(Jn);return la(ch.Provider,{value:o,children:e})}function Z8(e){return Ji(sa(ch),e)}function ia({value:e,children:o}){let t=dh(e);return t?Zf(uh,{stamp:t.stamp,children:Zf("span",{[Ki]:t.stamp,children:o})}):Zf(bL,{children:o})}import{jsx as Qf,Fragment as yL}from"react/jsx-runtime";function ph({className:e=""}){return Qf("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function el(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(Qf(ph,{},`r${a}`))}),Qf(yL,{children:t})}var a$=ph;function ec(e,o=!1){let t=EL(o),r=Cs(e);if(r.length===1){let[n]=r,s=Ss(n),i=s?TL(s,n.children):n.children;return ce(ia,{value:e,children:ol(i,t)})}let a=[];return r.forEach((n,s)=>{if(n.bullet){a.push(ce("span",{"data-sf-bullet":"",className:SL,children:ol(n.children,t)},s));return}if(n.number!=null){a.push(Jf("span",{"data-sf-number":n.number,className:CL,children:[Jf("span",{className:vL,children:[n.number,"."]}),ol(n.children,t)]},s));return}s>0&&!wL(r[s-1])&&a.push(ce("br",{},`br${s}`)),a.push(ce(xh,{children:ol(n.children,t)},s))}),ce(ia,{value:e,children:a})}var SL="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",CL="relative block pl-[2em]",vL="absolute left-0 w-[1.6em] text-right tabular-nums";function wL(e){return e.bullet||e.number!=null}var kL="text-accent underline underline-offset-[0.18em]";function TL(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function FL(e){if(e)return Vx(e)?e:Object.hasOwn(Yo,e)?Yo[e]:void 0}function ol(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(ce("span",{children:el(a.text)},n)),r=!0;return}r||t.push(ce("span",{},`e${n}`)),t.push(Ih(a,n,o)),r=!1}),r||t.push(ce("span",{},"end")),t}function mh(e,o){return e.length===1&&e[0].kind==="text"?el(e[0].text):e.map((t,r)=>t.kind==="text"?ce(xh,{children:el(t.text)},r):Ih(t,r,o))}function EL(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function p$(e){return ce(ia,{value:e,children:ce("span",{children:e})})}function Ih(e,o,t){if(e.kind==="link")return ce("a",{href:e.href,className:kL,children:mh(e.children,t)},o);let r=mh(e.children,t),a=Nu[e.kind];if(a)return ce("span",{[Mu]: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=FL(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 m$(e,o=!0){let t=e.split(`
6
- `);return ce(ia,{value:e,children:t.map((r,a)=>Jf("span",{children:[ec(r,o),a<t.length-1?ce("br",{}):null]},a))})}function x$(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var PL={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function gh({items:e,separator:o=Vf,size:t=Kf,durationSec:r=50,scroll:a=Yf,backdrop:n="themed-band",className:s}){let i=JI(t),c=rh(a),u=eh(o),p=`text-accent ${th(i,u)}`.trim(),m=QI[u],x=m===""?fa("span",{}):fa("span",{className:p,children:m}),g=ah(c),y=g?"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=g?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",T=v=>fa("span",{className:y,children:e.map((w,h)=>{let b=typeof w=="string"?w:w.text,E=typeof w=="object"&&w.gold;return hh("span",{className:C,children:[fa("span",{className:E?"text-accent":void 0,children:ec(b)}),x]},h)})},v);return fa("div",{className:`overflow-hidden ${s??""}`,children:hh("div",{className:`flex ${g?"flex-col ":""}whitespace-nowrap ${oh(i)} ${PL[n]}`,style:{animation:nh(c,r)},children:[T("a"),T("b")]})})}import{jsx as da,jsxs as eR}from"react/jsx-runtime";import{createContext as oR,useContext as tR}from"react";import{jsx as cr,jsxs as Eh}from"react/jsx-runtime";import{useEffect as tc,useRef as GL,useState as ca}from"react";import{jsx as bh}from"react/jsx-runtime";import{createContext as LL,lazy as T$,Suspense as F$,useContext as RL}from"react";var OL={Link:md,Image:pd},AL=LL(OL);function yh(){return RL(AL)}function E$(e){let{Link:o}=yh();return bh(o,{...e})}function Sh(e){let{Image:o}=yh();return bh(o,{...e})}import{jsx as Ch,Fragment as BL,jsxs as DL}from"react/jsx-runtime";import{useEffect as _L,useRef as vh,useState as NL}from"react";var ML="#t=0.001",HL=2;function zL(e,o){if(e.readyState<HL||!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 wh({src:e,objectPosition:o="50% 50%",onError:t}){let r=vh(null),a=vh(null),[n,s]=NL(!1);return _L(()=>{let i=r.current,c=a.current;if(n||!i||!c)return;let u=()=>{zL(i,c)&&s(!0)};return u(),i.addEventListener("loadeddata",u),i.addEventListener("seeked",u),()=>{i.removeEventListener("loadeddata",u),i.removeEventListener("seeked",u)}},[n]),DL(BL,{children:[Ch("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&&Ch("video",{ref:r,src:`${e}${ML}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as Th,imageSrcSet as WL}from"efficient-shell/image-copies";var kh;function oc(){return kh===void 0?{}:{host:kh}}var B$="(max-width: 800px) 100vw, min(100vw, 1600px)";function Fh(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=WL(e,{...oc(),...t===void 0?{}:{maxWidth:t}});return r?{src:Th(e,o,oc()),srcSet:r}:{src:e}}function D$(e){let o=Th(e,1920,oc());return o===e?`url(${e})`:`url("${o}")`}var UL=.5;function Ph({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:r=UL,objectPosition:a="50% 50%",quiet:n=!1}){let s=o||"",i=e||"",[c,u]=ca(!1),[p,m]=ca(!1),[x,g]=ca(!1),[y,C]=ca(!1),[T,v]=ca(!1),w=GL(null);tc(()=>{u(!1),m(!1),g(!1),C(!1)},[e,o]),tc(()=>{if(typeof window>"u")return;let E=()=>{let k=window;k.requestIdleCallback?k.requestIdleCallback(()=>v(!0),{timeout:2e3}):setTimeout(()=>v(!0),800)};if(document.readyState==="complete"){E();return}return window.addEventListener("load",E,{once:!0}),()=>window.removeEventListener("load",E)},[]),tc(()=>{let E=w.current;if(!E)return;let k=()=>{E.playbackRate=r};return k(),E.addEventListener("loadedmetadata",k),()=>E.removeEventListener("loadedmetadata",k)},[e,r]);let h=xd(s),b=s&&h&&!p?Fh(s):{src:s};return Eh("div",{className:"absolute inset-0 z-[1]",children:[cr("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),s&&(h?cr("img",{src:b.src,...b.srcSet?{srcSet:b.srcSet,sizes:"100vw"}:{},alt:"",className:"absolute inset-0 z-[2] h-full w-full object-cover",style:{display:c?"none":"block",objectPosition:a},onError:()=>b.srcSet?m(!0):u(!0)},s):cr(Sh,{src:s,alt:"",fill:!0,priority:!0,sizes:"100vw",className:"z-[2] object-cover",style:{display:c?"none":"block",objectPosition:a},onError:()=>u(!0)},s)),t&&!n&&i&&T&&!x&&Eh("video",{ref:w,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:()=>g(!0),children:[Id(i)&&cr("source",{src:i.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),cr("source",{src:i,type:"video/mp4"})]},i),t&&n&&i&&T&&!y&&(!s||c)&&cr(wh,{src:i,objectPosition:a,onError:()=>C(!0)},i)]})}var Lh=["top","middle","bottom"],Rh=["left","center","right"],Oh="bottom",Ah="left",$L={top:"Top",middle:"Middle",bottom:"Bottom"},qL={left:"Left",center:"Center",right:"Right"};var $$="Up and down",q$="Sideways",jL={top:"flex-start",middle:"center",bottom:"flex-end"},KL={left:"flex-start",center:"center",right:"flex-end"},VL="--sf-hero-phone-y",YL="--sf-hero-phone-x";function XL(e){return Lh.includes(e)?e:Oh}function ZL(e){return Rh.includes(e)?e:Ah}function Bh(e,o){let t=XL(e),r=ZL(o),a={};return t!==Oh&&(a[VL]=jL[t]),r!==Ah&&(a[YL]=KL[r]),a}function j$(){return Lh.map(e=>({label:$L[e],value:e}))}function K$(){return Rh.map(e=>({label:qL[e],value:e}))}var QL="#0A0A0A",JL=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function Dh(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 _h(e){return e==null?!0:e!==!1}function Nh(e){let o=(e?Dh(e):null)??Dh(QL);return`linear-gradient(180deg, ${JL.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}var rc=oR({});function rq({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,objectPosition:s,tintColor:i="#000000",tintOpacity:c=0,groups:u,editing:p=!1,themeClassName:m,themeStyle:x}){let{alignment:g="left",textureOpacity:y,textureOn:C,textureColor:T,quietVideo:v,phoneUpDown:w,phoneSideways:h}=tR(rc),b=t==="video",E=b?Er(r):void 0,k=b?Er(n):Er(r)??Er(n),L=typeof a=="number"?a/100:1;return eR("section",{className:m?`relative h-full w-full overflow-hidden ${m}`:"relative h-full w-full overflow-hidden",style:x,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":E?"video":"still",children:[da(Ph,{videoSrc:E,posterSrc:k,showVideo:b,playbackRate:L,objectPosition:s,quiet:v}),c>0&&da("div",{className:"absolute inset-0 z-[2]",style:{background:i,opacity:Math.min(Math.max(c,0),100)/100}}),_h(C)&&da("div",{className:"absolute inset-0 z-[2]",style:{background:Nh(T),...y!==void 0?{opacity:y/100}:null}}),da("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",p?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...Fu,...Bh(w,h)},children:u&&da(u,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var Mh=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{jsx as ac}from"react/jsx-runtime";var rR={"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]"},aR=`calc(${mn} - ${Ye}*2)`,Hh=`var(${ni},${Ye})`,sq=`pointer-events-none absolute inset-y-0 left-[${Hh}] right-[${Hh}] z-[6] mx-auto max-w-[var(${li},${aR.replace(/ /g,"_")})]`;function tl(e,o){return`pointer-events-auto absolute ${rR[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function zh(e){return po.includes(e)?e:null}var nR="bottom-right",lR=["outline","solid","square","bare"],sR="outline",dq={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},uq=!1,Wh=["prev","next"],Gh={prev:"Previous slide",next:"Next slide"};function iR(e){return lR.includes(e)?e:sR}function fR(e){return zh(e)??nR}var cR="flex-row items-center gap-2";function Uh(e){return tl(fR(e),cR)}var dR={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 $h(e){return dR[iR(e)]}function qh(e){return e.shown===!0&&(e.count??0)>1}function rl(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 jh({shape:e,placement:o,ref:t}){let r=$h(e);return ac("div",{ref:t,className:Uh(o),style:{color:"var(--overlay-fg)"},children:Wh.map(a=>ac("button",{type:"button","data-hero-nav":a,"aria-label":Gh[a],className:r,children:ac(Ge,{name:"chevron-right",size:18,rounded:!0,style:a==="prev"?{rotate:"180deg"}:void 0})},a))})}import{jsx as Le,jsxs as nc,Fragment as ua}from"react/jsx-runtime";var uR=po;var pR="top-right",mR=["cards","dots","numbers","bar","tabs"],xR=["cards","dots","numbers","bar"],Kh="cards",yq={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",tabs:"Tabs"},Sq=!0;function al(e){return mR.includes(e)?e:Kh}function Vh(e){return xR.includes(e)?e:Kh}function IR(e){return uR.includes(e)?e:pR}var Yh={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",tabs:"flex-row items-stretch w-full overflow-x-auto"};function Xh(e,o){return tl(IR(o),Yh[al(e)])}function Zh(e){return`flex ${Yh[al(e)]}`}function Qh(e){return e.shown!==!1&&(e.count??0)>1}function hR(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function gR(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 Jh(e,o){let t=Array.from(o,hR);return gR(e,t)?e:t}function eg({slides:e,active:o,shape:t,placement:r,ref:a,tone:n="media",label:s}){let i=al(t),c=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--site-surface-2)"}:void 0;return nc("aside",{ref:a,"aria-label":s??"Featured slides",className:n==="surface"?Zh(i):Xh(i,r),style:{color:"var(--overlay-fg)",...c},children:[i==="cards"&&Le(bR,{slides:e,active:o}),i==="dots"&&Le(yR,{count:e.length,active:o}),i==="numbers"&&Le(SR,{count:e.length,active:o}),i==="bar"&&Le(CR,{count:e.length,active:o}),i==="tabs"&&Le(vR,{slides:e,active:o})]})}function bR({slides:e,active:o}){return nc(ua,{children:[Le("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 nc("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:[Le("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}`}),Le("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 yR({count:e,active:o}){return Le(ua,{children:Array.from({length:e},(t,r)=>Le("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 SR({count:e,active:o}){return Le(ua,{children:Array.from({length:e},(t,r)=>Le("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 CR({count:e,active:o}){return Le(ua,{children:Array.from({length:e},(t,r)=>Le("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 vR({slides:e,active:o}){return Le(ua,{children:e.map((t,r)=>{let a=r===o;return Le("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:Le("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 wR,useState as kR}from"react";var og="(prefers-reduced-motion: reduce)";function TR(){return globalThis.window?.matchMedia?.(og)?.matches??!1}function Fq(){return TR()?"auto":"smooth"}function tg(){let[e,o]=kR(!1);return wR(()=>{let t=globalThis.window?.matchMedia?.(og);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 pa={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 rg={min:40,max:100,step:5,fallback:100,unit:"vh"};function lc(e){return`${typeof e=="number"?e:rg.fallback}${rg.unit}`}function ag(...e){return e.some(o=>typeof o=="number")}var FR=new Set(["Hero","HeroSingle","IntroBleed"]),ng={min:56,max:140,default:88},Oq={min:0,max:120,step:2,default:28},lg=`var(--sf-header-h, ${ng.default}px)`,ER="--sf-header-set-h",Aq="--sf-header-h",Bq=`var(${ER}, ${ng.default}px)`,Dq="sf-header-clearance",_q="sf-sticky-underheader";function PR(e){return e?.find(o=>o?.type&&o.type!==Ce)??null}function sg(e){let o=PR(e)?.type;return!o||!FR.has(o)}function Nq(e){return!sg(e)}function Mq(e){return!!e?.some(o=>o?.type===Ce)}function Hq(e){return!e||e.length===0?!1:!e.some(o=>o?.type===Ce||o?.type===re)}var LR=["auto","shared","own"],RR="auto",OR="topSpace",zq="data-top-space";function AR(e){return LR.includes(e)?e:RR}function BR(e,o){let t=AR(e?.props?.[OR]);return t==="own"?!0:t==="shared"?!1:sg(o)}function Wq(e,o){return BR(e,o)?"own":null}var DR=40;function _R(e,o){return Math.abs(e)<=DR||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function ig(e,o,t,r){let a=_R(e,o);return a?rl(a,t,r):t}function fg(e){return(e.count??0)>1&&e.editing!==!0}function cg(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function dg(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as sc}from"efficient-easel/screen/lib/puck/preview-events";var MR=`
7
- .hero-ticker-pick { cursor: pointer; }
8
- .hero-ticker-pick:hover {
9
- outline: 2px solid color-mix(in srgb, ${pa.accent} 45%, transparent);
10
- outline-offset: -2px;
11
- }
12
- .hero-ticker-pick[data-selected] {
13
- outline: 2px solid ${pa.accent};
14
- outline-offset: -2px;
15
- }
16
- `,HR="Play video",zR="Hold video",WR="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",GR=()=>l("item"),ic=["","","","","",""],ug=new Map;function UR(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(sc,o),()=>t.removeEventListener(sc,o)}function u9({slides:e,alignment:o,textureOpacity:t,showTexture:r,textureColor:a,phoneUpDown:n,phoneSideways:s,autoplay:i,autoplayInterval:c,showTicker:u,tickerItems:p,heightDesktop:m,heightMobile:x,showPicker:g,pickerShape:y,pickerPlacement:C,showArrows:T,arrowsShape:v,arrowsPlacement:w,editing:h}){let b=ag(m,x),E=b?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",k=b?{"--sf-hero-h-d":lc(m),"--sf-hero-h-m":lc(x)}:void 0,L=(p??ic.map(N=>({text:N}))).map(N=>N?.text?.trim()?N.text:h?GR():"").filter(Boolean),B=u!==!1,O=Go(null),z=Go(null),ne=Go(null),M=Go(null),ae=Go(null),_=NR(),fe=Go(_),[Ee,je]=ma([]),[So,Ne]=ma(0),Me=Go(0),[He,Je]=ma(!1),[me,ve]=ma(!1),[xe,Ke]=ma(null),P=tg(),{selectedHeroId:Y,select:j}=Yn(),J=dr(()=>O.current?.querySelector(".hero-track")??null,[]),te=dr((N,G=!1)=>{Ne(N),Me.current=N,ug.set(fe.current,N);let K=O.current?.querySelector(".hero-track");if(K)if(G){let le=K.style.transition;K.style.transition="none",K.style.transform=`translateX(-${Math.max(0,N)*100}%)`,K.offsetHeight,K.style.transition=le}else K.style.transform=`translateX(-${Math.max(0,N)*100}%)`},[]);ur(()=>{let N=O.current,G=N?.getAttribute("data-puck-component")||N?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||_;fe.current=G,Ke(G);let K=ug.get(G);typeof K=="number"&&(Ne(K),Me.current=K)},[]),ur(()=>{let N=J();if(!N)return;let G=()=>{je(le=>Jh(le,N.querySelectorAll("[data-slide-name]")))};G();let K=new MutationObserver(G);return K.observe(N,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{K.disconnect()}},[J]),ur(()=>{if(!h)return;let N=G=>{let K=G.detail;if(!K||typeof K.index!="number")return;let le=O.current,to=le?.getAttribute("data-puck-component")||le?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||fe.current;K.id&&K.id!==to||te(K.index,!0)};return UR(O.current,N)},[h,te]);let Ie=Ee.length,Pe=Math.min(Math.max(So,0),Math.max(0,Ie-1)),Oe=Qh({shown:g,count:Ie}),so=qh({shown:T,count:Ie}),io=cg({editing:h,shown:Pe,slides:Ee}),ze=dg({editing:h,playing:me,controlShown:io}),Rt=fg({count:Ie,editing:h}),qo=Go(null),fo=Go(null),_l=dr(N=>{if(qo.current=null,fo.current=null,!Rt||N.touches.length!==1)return;let G=N.touches[0];qo.current={x:G.clientX,y:G.clientY},fo.current={x:G.clientX,y:G.clientY}},[Rt]),Pa=dr(N=>{if(!qo.current)return;if(N.touches.length!==1){qo.current=null;return}let G=N.touches[0];fo.current={x:G.clientX,y:G.clientY}},[]),kr=dr(()=>{let N=qo.current,G=fo.current;if(qo.current=null,fo.current=null,!Rt||!N||!G)return;let K=ig(G.x-N.x,G.y-N.y,Me.current,Ie);K!==Me.current&&te(K)},[Rt,Ie,te]);ur(()=>{if(h||!i||He||P||Ie<=1)return;let N=Math.max(1,typeof c=="number"?c:6)*1e3,G=window.setTimeout(()=>te((Pe+1)%Ie),N);return()=>window.clearTimeout(G)},[h,i,c,He,P,Ie,Pe,te]),ur(()=>{let N=[z.current,ne.current,M.current].filter(Boolean),G=N.map(le=>Zn(le)),K=le=>{let to=le.target,it=to.closest("[data-hero-nav]"),Tr=it??to.closest("[data-idx]");if(!Tr)return;le.stopPropagation(),le.preventDefault();let ft=it?rl(it.dataset.heroNav,Me.current,Ie):Number(Tr.dataset.idx);Number.isNaN(ft)||(te(ft,h),J()?.querySelectorAll("[data-slide-name]")[ft]?.click())};return N.forEach(le=>le.addEventListener("click",K,{capture:!0})),()=>{G.forEach(le=>le?.()),N.forEach(le=>le.removeEventListener("click",K,{capture:!0}))}},[Ie,te,J,h]),ur(()=>{if(!h)return;let N=ae.current;if(!N)return;let G=Zn(N),K=le=>{le.stopPropagation(),le.preventDefault();let to=O.current,it=to?.getAttribute("data-puck-component")||to?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||fe.current;j(it)};return N.addEventListener("click",K,{capture:!0}),()=>{G?.(),N.removeEventListener("click",K,{capture:!0})}},[h,j,B,L.length]);let La=dr(N=>{if(!N)return;let G=Zn(N),K=le=>{le.stopPropagation(),le.preventDefault(),ve(to=>!to)};return N.addEventListener("click",K,{capture:!0}),()=>{G?.(),N.removeEventListener("click",K,{capture:!0})}},[]);return Ao(rc.Provider,{value:{alignment:o,textureOpacity:t,textureOn:r,textureColor:a,quietVideo:ze,phoneUpDown:n,phoneSideways:s},children:nl("div",{ref:O,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${E} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:k,onMouseEnter:()=>Je(!0),onMouseLeave:()=>Je(!1),onTouchStart:_l,onTouchMove:Pa,onTouchEnd:kr,children:[Ao(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${Pe*100}%)`,transition:P?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),io&&Ao("div",{ref:La,"data-hero-video-control":me?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${lg} + 16px)`},children:nl("button",{type:"button",className:WR,children:[Ao("span",{"aria-hidden":"true",children:me?"\u275A\u275A":"\u25B6"}),l(me?zR:HR)]})}),(Oe||so)&&nl("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(min(var(--sf-page-cap,var(--sf-site-width,1600px)),var(--sf-site-width,1600px))_-_var(--sf-site-gutter,40px)*2))]",children:[Oe&&Ao(eg,{ref:z,slides:Ee,active:Pe,shape:Vh(y),placement:C}),so&&Ao(jh,{ref:M,shape:v,placement:w})]}),Oe&&Ao("div",{ref:ne,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:Ee.map((N,G)=>Ao("button",{type:"button","data-idx":G,"aria-label":`Go to slide ${G+1}`,className:`h-2 rounded-full transition-all motion-reduce:transition-none ${G===Pe?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},G))}),B&&L.length>0&&nl("div",{ref:ae,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${h?" hero-ticker-pick":""}`,"data-selected":h&&xe!=null&&Y===xe?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[h&&Ao("style",{children:MR}),Ao(gh,{items:L,backdrop:"dark-media"})]})]})})}var ZR="root:default-zone";function pg({heroId:e}){let{appState:o,dispatch:t}=KR(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=jR(()=>{let p=n?.props.tickerItems;return Array.isArray(p)?p:ic.map(m=>({text:m}))},[n]),c=qR();if(!n)return pr("p",{className:"sf-note",children:l("This ticker\u2019s hero is no longer on the page.")});let u=p=>t({type:"replace",destinationZone:ZR,destinationIndex:a,data:{...n,props:{...n.props,...p}}});return $R("div",{children:[pr(qr,{label:"Ticker"}),pr(VR,{label:l("Show ticker"),labelId:c,icon:pr(XR,{}),action:pr(YR,{checked:s,onChange:p=>u({showTicker:p}),ariaLabelledBy:c})}),pr(Ci,{label:Si.label,icon:Si.icon,items:i,placeholder:"item",onChange:p=>u({tickerItems:p}),markup:!0})]})}import{jsx as H,Fragment as bc,jsxs as Bo}from"react/jsx-runtime";import{useContext as kO,useEffect as Ic,useRef as TO,useState as Dg}from"react";import{jsx as w9,jsxs as k9}from"react/jsx-runtime";import{Tooltip as F9}from"efficient-shell/ui";import{FieldSelect as FO,InspectorField as EO}from"efficient-easel/fields";import{SettingsField as PO}from"efficient-easel/panel";import{InspectorUpLevel as ul}from"efficient-easel/chrome";import{StylesIcon as LO,TypeIcon as RO}from"efficient-easel/icons";import{useEasel as OO}from"efficient-easel/easel";import{TextPartPanel as AO}from"efficient-easel/copy";import{Tooltip as BO}from"efficient-shell/ui";import{jsx as pc,jsxs as aO}from"react/jsx-runtime";import{COPY_CELLS as xa,CopyBox as nO}from"efficient-easel/copy";import{PaddingYIcon as lO,WidthIcon as sO}from"efficient-easel/icons";import{useSyncExternalStore as QR}from"react";function mr(e,o){let t=Mi(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?lx(t,o.index):null:Hi(e)?.[o.rowKey]??null}function ll(e,o,t){let r=e.node.props,{key:a,row:n}=Io(e.propKey),s=n?Lx(r,a,n,e.kind,o):Ex(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}var JR=["bold","italic","underline","strike","link","sup","sub"],eO=["bullet","number"];function dc(e,o){return e?[...JR,...o?eO:[]]:[]}function mg(e,o){let t=kt(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:c}=Io(a),u=o.components[n.type]?.fields?.[i],p=c?mr(u,c):u,m=er(p);if(!m)return null;let x=n.props??{};if(c&&!(Array.isArray(x[i])&&c.index<x[i].length))return null;let g=c?Vr(x[i],c):x[i];return{node:n,selector:s,propKey:a,kind:m,stored:g,offPage:gn(p)}}function xg(e,o){let t=mg(e,o);if(!t||t.offPage)return null;let{text:r,hidden:a}=Ue(t.stored);if(a)return null;let n=_n(t.kind);return{partId:e,value:r,rules:Gt,multiline:n,offered:dc(t.kind!=="plainText",n),write:s=>{let i=mg(e,o);i&&ll({node:i.node,propKey:i.propKey,kind:i.kind,zone:i.selector.zone,index:i.selector.index},s,o.replace)}}}function Ig(e,o,t){return e?.isConnected&&e.getAttribute(ho)===t?e:o?.querySelector(`[${ho}="${oO(t)}"]`)??null}function oO(e){return e.replace(/["\\]/g,"\\$&")}function hg(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var fc=null,cc=new Set;function tO(){return fc}function uc(e){if(e!==fc){fc=e;for(let o of cc)o()}}function rO(e){return cc.add(e),()=>{cc.delete(e)}}function gg(){return QR(rO,tO,()=>null)}var iO=["left","center","right","justify"];function mc(e,o,t,r={}){let a=Jr(e),n=(r.phone?e.sizePhone:void 0)??e.size??o.sizePx;return[r.phone?{...xa.fontSize,value:e.sizePhone,styleValue:Math.round(o.sizePx),onChange:s=>t({sizePhone:s??null})}:{...xa.fontSize,value:e.size,styleValue:Math.round(o.sizePx),onChange:s=>t({size:s??null})},{...xa.lineHeight,value:a.lineHeight,styleValue:o.lineRatio,onChange:s=>t(s===void 0?{lineHeight:null,line:null}:{lineHeight:s})},{...xa.letterSpacing,scale:n,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:s=>t(s===void 0?{letterSpacing:null,letter:null}:{letterSpacing:s})},{...xa.paragraphSpacing,value:e.paragraphSpacing,styleValue:0,onChange:s=>t({paragraphSpacing:s??null})},{key:"padding",name:l("Padding"),icon:pc(lO,{}),unit:"px",step:Xi,shiftStep:10,min:Vi,max:Yi,value:e.padding,styleValue:o.paddingPx,onChange:s=>t({padding:s??null})},{key:"width",name:l("Width"),icon:pc(sO,{}),unit:"px",step:Qi,shiftStep:100,min:Zi,max:rt,value:e.width,styleValue:o.widthPx,onChange:s=>t({width:s??null})}]}function bg({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:i,colors:c,placeholder:u,ariaLabel:p,head:m,typedOnCanvas:x=!1}){let g=mc(n,s,i),y=dc(r,t);return aO("div",{className:"sf-part-textbox",children:[m,pc(nO,{value:e,onChange:o,multiline:t,placeholder:u,ariaLabel:p,rules:Gt,tools:y,barShows:x?"focus":"always",colors:r?c:[],align:a?{value:n.align??s.align,allow:iO,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?g:void 0})]})}import{jsx as sl,Fragment as fO,jsxs as cO}from"react/jsx-runtime";import{Button as yg,Dialog as dO}from"efficient-shell/ui";function Sg({styleName:e,onCancel:o,onConfirm:t}){return sl(dO,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:l("Update {style}?",{style:e}),footer:cO(fO,{children:[sl(yg,{variant:"secondary",onClick:o,children:l("Cancel")}),sl(yg,{variant:"primary",onClick:t,children:l("Update style")})]}),children:sl("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{jsx as uO}from"react/jsx-runtime";import{createContext as pO,useContext as mO,useMemo as xO,useState as IO}from"react";var hO={partStyle:null,setPartStyle:()=>{}},Cg=pO(hO);function lj({children:e}){let[o,t]=IO(null),r=xO(()=>({partStyle:o,setPartStyle:t}),[o]);return uO(Cg.Provider,{value:r,children:e})}function vg(){return mO(Cg)}var gO="#9ca3af";function bO(e){return ys.map(o=>({key:o,name:Hu[o],value:e?.[o]||gO}))}function il(e){return bO(e).map(o=>({name:o.key,label:l(o.name),value:o.value}))}function kg(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 ys){let i=Yo[s].replace(/^var\((--[\w-]+)\)$/,"$1"),c=a.getPropertyValue(i).trim();if(!c)continue;let u=wg(c);!u&&n&&(n.fillStyle="#000000",n.fillStyle=c,u=wg(String(n.fillStyle))),u&&(o[s]=u)}return o}function wg(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}var yO={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},Tg={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},Fg="Open",Eg={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 Ia(e){let o=e?.source?.slug;return typeof o=="string"&&o.length>0?o:void 0}function fl(e){return yO[e]??null}var SO={tag:{label:"Tag",follows:"Labels",builtIn:"13px",writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:"48px",writable:!0},body:{label:"Body",follows:"Body",builtIn:"14px",writable:!0},price:{label:"Price",follows:"Labels",builtIn:"15px",writable:!0},link:{label:"Link",follows:"Labels",builtIn:"14px",writable:!0}},Pg=SO;var CO={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}},Lg=CO;var cl="data-sf-spec-region";function Ij(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 vO(e){return`@${e}`}function xc(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function Rg(e,o){return o&&o in e?o:null}function wO(e,o){let t=o?.closest(`[${cl}]`)?.getAttribute(cl);return Rg(e,t??null)}var yj=cl;var Og={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 Ag={SpecTable:Og,FAQ:Lg,Collections:Pg};function Bg(e){return e&&Object.hasOwn(Ag,e)?Ag[e]:null}function gc(e){return e?l(e):null}function _g(e){return e.kind==="role"?Ra[e.role]:e.kind==="custom"?"Custom":null}function DO(e){let o=e.role;return o&&Mo.includes(o)?{kind:"role",role:o}:null}function _O(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 hc(e,o,t,r){return DO(Wn(e,o))??_O(t,r)}function NO(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}var dl="";function MO({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:dl,a=[{label:l("No style"),value:dl},...Mo.map(n=>({label:l(Ra[n]),value:n}))];return H(FO,{ariaLabel:l("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===dl?null:n),renderOption:n=>n.value===dl?Bo(bc,{children:[H("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),H("span",{className:"sf-part-style-aside","aria-hidden":"true",children:l("Section\u2019s own")})]}):H("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>H("span",{style:{fontFamily:o?.fontKey?`var(${Ot(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:gc(_g(e))}),valueText:n=>gc(_g(e))??n?.label??""})}function HO({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a}){return Bo("div",{className:"sf-part-panel",children:[H(ul,{inline:!0,name:l(e),onSelect:o}),t,r,a]})}function pl({source:e,slug:o}){let t=_t(),r=Eg[e],a=!r.needsSlug||!!o;return H("div",{className:"sf-note sf-note--source",children:Bo("p",{className:"es-field-hint sf-hint-keep",children:[l(Tg[e]),a?Bo(bc,{children:[" ",H("button",{type:"button",className:"sf-source-open",onClick:()=>{r.type==="storefront-editor:open-menus"?t.send(r.type):o&&t.send(r.type,{slug:o})},children:l(Fg)})]}):null]})})}var Ng=4,zO=120;function WO({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:i}){let c=e.follows;return Bo("div",{className:"sf-note",children:[H("p",{children:H("strong",{children:l(e.label)})}),H("p",{children:o?l("Its size follows Site styles \u25B8 {follows} \u2014 {px}px right now.",{follows:l(c),px:Math.round(o)}):l("Its size follows Site styles \u25B8 {follows}.",{follows:l(c)})}),a?H(bc,{children:H(PO,{label:l("Style"),icon:H(LO,{}),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:H(MO,{face:t,base:r,onPick:a})})}):H("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?H(pl,{source:n,slug:s}):null,H(ul,{inline:!0,name:l("Page"),onSelect:i})]})}function GO({onBack:e}){return Bo("div",{className:"sf-note",children:[H("p",{children:H("strong",{children:l("This part is no longer here.")})}),H("p",{children:l("The section it belonged to has been changed or removed.")}),H(ul,{inline:!0,name:l("Page"),onSelect:e})]})}function UO({onBack:e,partId:o,why:t}){return Bo("div",{className:"sf-note",children:[H("p",{children:H("strong",{children:l("This part's settings did not open.")})}),H("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.")}),H("p",{className:"sf-note-detail",children:Bo("code",{children:[o," \u2014 ",t]})}),H(ul,{inline:!0,name:l("Page"),onSelect:e})]})}function Mg({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=OO(D=>D),i=Vo(),c=gg(),{partStyle:u}=vg(),{fonts:p,textStyles:m}=ee(),x=kO(Mt),g=!x?.capabilities?.hasSiteTheme,{persist:y}=Ut({themeFromDocument:g,tokenRef:x?.tokenRef,siteId:x?.siteId??null}),C=Un({themeFromDocument:g,persist:y}),[T,v]=Dg(!1),w=BI()==="mobile",h=TO(null),b=a(e),E=n(e),k=b?s.components[b.type]:void 0,{key:L,row:B}=Io(o),O=k?.fields?.[L],z=B?mr(O,B):O,ne=Kr(e,o),M=b?.props??{},ae=er(z),_=gn(z),fe=Bx(z),Ee=b?fl(b.type):null,je=B?Vr(M[L],B):M[L],So=!!B&&!(Array.isArray(M[L])&&B.index<M[L].length);Ic(()=>{hg(document)||h.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[ne]);let[Ne,Me]=Dg(0);Ic(()=>Me(0),[ne]);let He=!!b&&!So&&(!E||!z);Ic(()=>{if(!He||Ne>=Ng)return;let D=setTimeout(()=>Me(ke=>ke+1),zO);return()=>clearTimeout(D)},[He,Ne]);let Je=He&&Ne<Ng;if(!b||So)return H(GO,{onBack:t});let me=Bg(b.type),ve=me?xc(me,o):null;if(me&&ve){let D=u?.partId===ne?u:null,ke=me[ve],Co=ke.writable===!0&&!!E,Fr=Nl=>{E&&i.replaceComponent(E.zone,E.index,{...b,props:Qr(M,o,"role",Nl)})};return H(WO,{region:ke,sizePx:D?.base.sizePx??null,face:hc(M,o,D,p),base:D?.base??null,onFollowStyle:Co?Fr:void 0,source:Ee,slug:Ia(M),onBack:t})}if(!E||!z)return Je?H("div",{className:"sf-note","aria-busy":"true"}):H(UO,{onBack:t,partId:ne,why:E?"no field":"no selector"});let xe=D=>{i.replaceComponent(E.zone,E.index,{...b,props:D})},Ke=D=>{if(Ue(D).hidden!==Ue(je).hidden||!ae){let ke=B?zi(M,L,B,D):{...M,[L]:D};ke&&xe(ke);return}ll({node:b,propKey:o,kind:ae,zone:E.zone,index:E.index},Ue(D).text,i.replaceComponent)},P=je,Y=u?.partId===ne?u:null,j=Y?.styleOwner,J=j?a(j.owner):null,te=j&&J?n(j.owner):null,Ie=!!(j&&J&&te),Pe=Ie?J.props??{}:M,Oe=Ie?D=>i.replaceComponent(te.zone,te.index,{...J,props:D}):xe,so=Ie?j.kind:Qn(b?.type,o),io=Wn(Pe,so),ze=[{partKey:so,face:hc(Pe,so,Y,p),sizeGroup:Y?.sizeGroup??null,base:Y?.base??qO,style:io}],Rt=NO(ze,D=>D.sizeGroup),qo=il(Y?.inks),fo=(D,ke)=>{let Co=Pe;for(let Fr of ze)Co=Qr(Co,Fr.partKey,D,ke);Oe(Co)},_l=D=>fo("role",D),Pa=D=>{let ke=Pe;for(let Co of ze)for(let[Fr,Nl]of Object.entries(D))ke=Qr(ke,Co.partKey,Fr,Nl??null);Oe(ke)},kr=ae==="text"||ae==="textarea",{text:La,hidden:N}=Ue(je),G=z?.[ge]?.label??o,K=N?l("Show {label} on the slide",{label:l(G)}):l("Hide {label} on the slide",{label:l(G)}),le=Bo("div",{className:"sf-field-head",children:[H(RO,{}),H("span",{className:"sf-field-label sf-field-label--inline",children:l(G)}),kr&&H(BO,{content:K,children:H("button",{type:"button",className:"sf-field-eye","aria-pressed":N,"aria-label":K,onClick:()=>Ke({text:La,hidden:!N}),children:N?H(Ge,{name:"eye-off",size:14}):H(Ge,{name:"eye",size:14})})})]}),to=!_&&fe,it=!!ae&&(qm(z)||_||N||!fe),Tr=hc(Pe,so,Y,p),ft=Tr.kind==="role"?Tr.role:null,cd=Object.entries(io).filter(([D,ke])=>D!=="role"&&ke!==void 0).length,dd=()=>{let D=Pe;for(let ke of ze){let Co=ke.style.role;D=jx(D,ke.partKey),Co&&(D=Qr(D,ke.partKey,"role",Co))}Oe(D)},ct=nf(ft),cS=rI(ze[0].style),dS=ct?at(C.saved,C.old).find(D=>D.id===ct)?.name??ct:"",uS=()=>{v(!1),ct&&(C.write(aI({saved:C.saved,old:C.old,styleId:ct,values:lf(ze[0].style)}),!0),dd())};return Bo(HO,{sectionName:k?.label??b.type,onBack:t,textEditor:H("div",{ref:h,className:"sf-part-text",children:it?H(bg,{text:La,onTextChange:D=>Ke(kr?{text:D,hidden:N}:D),multiline:_n(ae),markup:ae!=="plainText",styled:!1,style:ze[0].style,base:ze[0].base,setValue:Pa,colors:qo,placeholder:gc(Fx(z))??void 0,ariaLabel:l(G),head:le,typedOnCanvas:c===ne}):ae?kr?le:null:H(EO,{field:z,name:o,value:P,onChange:Ke,id:`sf-part-${e}-${o}`})}),children:[Ee&&H(pl,{source:Ee,slug:Ia(M)}),to&&H(AO,{style:{value:ft??"",options:[{value:"",label:l("No style"),description:l("Section\u2019s own")},...Mo.map(D=>({value:D,label:l(Ra[D]),description:Ot(p[D])?.label}))],onChange:D=>_l(D||null),changed:cd>0,onClearChanges:cd>0?dd:void 0,onEditStyles:r,onUpdateStyle:ct&&cS?()=>v(!0):void 0},font:{value:io.font??"",styleValue:Ot(ze[0].base.fontKey)?.label,options:No.map(D=>({label:D.label,value:D.key})),onChange:D=>fo("font",D||null)},italic:{value:io.italic,styleValue:$O(m,ft),onChange:D=>fo("italic",D??null)},cells:mc(ze[0].style,ze[0].base,Pa,{phone:w}),align:{value:io.align??"",styleValue:ze[0].base.align,onChange:D=>fo("align",D||null)},letterCase:{value:io.case??"",styleValue:ze[0].base.case,onChange:D=>fo("case",D||null)}}),T&&ct&&H(Sg,{styleName:dS,onCancel:()=>v(!1),onConfirm:uS}),to&&Rt===null&&H("p",{className:"es-field-hint sf-hint-keep",children:l("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")})]})}function $O(e,o){let t=nf(o);return!t||!Array.isArray(e)?!1:e.find(r=>r?.id===t)?.values?.italic===!0}var qO={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:rt};import{jsx as bo,jsxs as yc,Fragment as jO}from"react/jsx-runtime";import{useCallback as KO,useRef as VO,useState as ha}from"react";import{InspectorIconButton as YO}from"efficient-easel/chrome";import{PopupMenu as XO,PopupMenuItem as ZO,PopupMenuLabel as ml}from"efficient-shell/ui";import{CopyToPageIcon as QO}from"efficient-easel/icons";import{cloneNodeWithFreshIds as Hg,docToNode as pK,nodeToDoc as mK}from"efficient-easel/screen/lib/puck/section-doc";function zg({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=ha(!1),[c,u]=ha(null),p=Ae(),[m,x]=ha(!1),[g,y]=ha(null),C=VO(null),[T,v]=ha(null),w=KO(async()=>{if(p.usesBridgedToken&&!r.current){x(!0);return}try{u(await Ve(p).pages.list(t?{siteId:t}:void 0))}catch{x(!0)}},[r,t,p]),h=()=>{if(s){i(!1);return}let k=C.current?.getBoundingClientRect();k&&v({top:k.bottom+6,right:Math.max(8,window.innerWidth-k.right)}),u(null),x(!1),w(),i(!0)},b=(c??[]).filter(k=>k.slug!==o),E=async k=>{if(g)return;y(k.slug);let L=Hg(e),B=p.documentHooks?.storedNode?.(L)??L,O=Ve(p).pages,z=await a(async()=>{let ne=await O.load({id:k.id});if(!ne)throw new Error(`Page "${k.slug}" no longer exists.`);let M=ne.layout??{},ae=Array.isArray(M.content)?[...M.content]:[],_=ae.findIndex(fe=>fe?.type===re);ae.splice(_===-1?ae.length:_,0,B),await O.save(k.id,{layout:{root:{},zones:{},...M,content:ae}},{version:ne.version,clientId:""})});y(null),i(!1),n?.(z?l("Duplicated to \u201C{name}\u201D",{name:k.label}):l("Couldn\u2019t duplicate the section \u2014 please retry"),z?"success":"error")};return yc(jO,{children:[bo("span",{"data-menu-toggle":!0,style:{display:"contents"},children:bo(YO,{buttonRef:C,label:l("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:h,children:bo(QO,{size:15})})}),s&&T&&bo(XO,{portal:!0,style:{top:T.top,right:T.right},onClose:()=>i(!1),children:yc("div",{role:"menu","aria-label":l("Duplicate to page"),children:[bo(ml,{children:l("Duplicate to page")}),m?bo(ml,{children:l("Couldn\u2019t load pages")}):c===null?bo(ml,{children:l("Loading\u2026")}):b.length===0?bo(ml,{children:l("No other pages")}):b.map(k=>yc(ZO,{role:"menuitem",disabled:g!==null,onClick:()=>{E(k)},children:[bo("span",{className:"min-w-0 flex-1 truncate",children:k.label}),g===k.slug?bo("span",{className:"shrink-0 text-xs",children:l("Copying\u2026")}):k.draft&&bo("span",{className:"shrink-0 text-xs",children:l("draft")})]},k.id))]})})]})}import{ScreenPartsProvider as EK,sameInspectorMode as PK,SELECTION_MODE as Wg,useScreenParts as LK,useScreenBlockLook as RK,useScreenBlockRules as OK,useScreenBridges as AK,useScreenCanvasFrame as BK,useScreenDevices as DK,useScreenDocumentPass as _K,useScreenInspectorPanel as NK,useScreenLeftView as MK,useScreenOwnerName as HK,useScreenPinned as zK,useStandaloneScreenBridges as WK}from"efficient-easel/screen/lib/screen-parts";import{PreviewPartsProvider as $K,usePreviewParts as ga}from"efficient-easel/screen/components/PreviewPartsContext";import{jsx as ba,jsxs as JO}from"react/jsx-runtime";import{SettingsDrill as eA}from"efficient-easel/panel";var oA="Not shown on the page";function tA({part:e,onOpen:o}){return ba(eA,{name:l(e.label),preview:e.offPage?l(oA):e.preview||l("Empty"),offPage:e.offPage,status:e.hidden?ba("span",{className:"sf-entry-eye",role:"img","aria-label":l("Hidden on the page"),children:ba(Ge,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function Sc(e){return e.filter(o=>!o.identifier)}function Gg({parts:e,onOpen:o,heading:t=!0}){let r=Sc(e);return r.length?JO("div",{className:"sf-entries",children:[t?ba("h3",{className:"sf-entries-head",children:l("Text")}):null,r.map(a=>ba(tA,{part:a,onOpen:o},a.key))]}):null}import{blockRuns as rA}from"efficient-easel/screen/lib/puck/block-choice";function xl(){return{type:Ce,props:{id:Or(Ce)}}}var Ug=[{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"}],aA=Ug.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),nA="FooterGroup",$g="blocks";function qg(e){return e===re?Ug:e===nA?aA:null}function Il(){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 _e="SiteHeader",de="SiteFooter",Cc="sections",tV=[_e,de],xr=e=>e===_e||e===de,jg=e=>`${e}:${Cc}`;function Kg(e,o,t=[]){return{type:e,props:{id:o,[Cc]:t}}}var lA=new Set(["Footer",_e,de]);function Ir(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):lA.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Vg(e,o){return e.some(t=>t?.type===o.type)?e:o.type===_e?[o,...e]:[...e,o]}var Yg={[_e]:{max:3,takes:["Flex","Ticker"]},[de]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function Xg(e,o,t){if(!xr(e))return!0;let r=Yg[e];return t<r.max&&r.takes.includes(o)}function Zg(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(!xr(n?.type))continue;let s=n.props?.[Cc];if(!Array.isArray(s)||!s.some(c=>c?.props?.id===r))continue;let i=Yg[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 Qg(e){switch(e?.type){case _e:return l("Header \xB7 on every page");case de:return l("Footer \xB7 on every page");case Ce:return l("Header \xB7 on every page \xB7 old style");case re:return l("Footer \xB7 on every page \xB7 old style");default:return null}}var Jg=()=>l("Every page"),eb=()=>l("Changed on every page");function hl(e,o){let t=Su(e,o);if(t)return t;let r=Zg(e,o);if(!r)return null;let a=r.group===_e;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 bl,Fragment as fA,jsxs as cA}from"react/jsx-runtime";import{useState as dA}from"react";import{createNode as uA,newId as pA}from"efficient-easel/data";import{useEasel as mA}from"efficient-easel/easel";import{Banner as xA,Button as vc}from"efficient-shell/ui";var gl="Flex",sA={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},iA=e=>{let{id:o,...t}=e;return t},ob=e=>typeof e=="string"?e:"";function tb(e,o){let t=e.props??{},r=sA[e.type];if(r)return[o(r,iA(t))];switch(e.type){case"FooterLogo":{let a=o("LogoBlock",t.reverse?{reverse:t.reverse}:{}),n=ob(t.tagline).trim();return n?[a,o("Text",{text:n,tone:"dim",align:t.align==="center"?"center":"left"})]:[a]}case"FooterText":return[o("Text",{text:ob(t.text),tone:typeof t.tone=="string"?t.tone:"default"})];case"FooterDivider":return[o("Divider")];case"FooterGroup":{let a=Array.isArray(t.blocks)?t.blocks:[];return[o(gl,{direction:t.direction==="horizontal"?"row":"column",content:a.flatMap(n=>tb(n,o))})]}default:return[]}}function ya(e,o,t){let r=(e&&Array.isArray(e.props?.blocks)?e.props.blocks:[]).flatMap(s=>{let i=tb(s,o);return i.length<=1?i:[o(gl,{direction:"column",content:i})]}),a=o(gl,{direction:"row",wrap:!0,share:"equal",content:r}),n=o(gl,{direction:"column",content:[o("LegalLineBlock")]});return Kg(de,t,[a,n])}function rb(){let{appState:e,dispatch:o,config:t}=mA(p=>p),{readOnly:r}=Se(),[a,n]=dA(!1),s=e.data.content;if(r||s.some(p=>p.type===de))return null;let i=s.find(p=>p.type===re)??null,c=(p,m)=>uA(t,p,m),u=()=>{let p=ya(i,c,pA(de));o({type:"setData",data:m=>({...m,content:[...Vg(m.content,p)]}),recordHistory:!0}),n(!1)};return bl(xA,{tone:"info",title:l("This footer uses the old layout"),action:a?cA(fA,{children:[bl(vc,{variant:"primary",size:"sm",onClick:u,children:l("Switch now")}),bl(vc,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:l("Cancel")})]}):bl(vc,{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 Rc}from"react/jsx-runtime";import{useLayoutEffect as TA,useMemo as xb,useRef as FA,useState as Pc}from"react";import{useSelectedFields as EA}from"efficient-easel/easel";import{Inspector as PA,planFields as Ib}from"efficient-easel/fields";import{DESIGN_GROUPS as kc,SETTINGS_BUCKETS as IA}from"efficient-easel/panel";import{BUCKET_KEY as Qe,DESIGN_GROUP_KEY as hr}from"efficient-easel/screen/lib/puck/field-buckets";var Sa=IA;var hA="Editor only \u2014 not shown live",Tc={"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","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content","Source 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",[hA]:"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"},nb={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},lb={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function wc(e,o,t){let r=`${e}.${o}`;return lb[r]??nb[r]??Tc[t]}function sb(e){return e==="Animation"?[Qe.Animation]:[Qe.Design,hr[e]]}function yl(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=Ts(r),n=ko(a?a.inner:r),s=n?Tc[n.label]:void 0;if(s)for(let i of sb(s))o.includes(i)||o.push(i)}return o}var EV=[...yl(wn(),kn("full"),Tn(),Fn(),gi()),...Object.keys(wn()),...Object.keys(kn("full")),...Object.keys(Tn()),...Object.keys(Fn()),...Object.keys(gi())],PV=[...yl(yn()),...Object.keys(yn())],LV=[...yl(Cn()),...Object.keys(Cn())],RV=[...yl(vn()),...Object.keys(vn())],gA=Object.keys(sx()),bA=new Set(["cardImage","imageBackground"]),OV=[...sb(wc("ProductGrid","_gCards","Cards")??"Design"),...gA.filter(e=>e.startsWith("_g")||bA.has(e))],AV=Object.keys(ix()),BV=Object.keys(fx({bottomDefault:!0})),yA={"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)","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)"},ib={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},fb={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...wn(),...kn("full"),...Tn(),...Fn(),...yn(),...Cn(),...vn()};for(let o of Object.keys(fb)){let t=ko(e[o]),r=t?Tc[t.label]:void 0;if(!t||t.level!==2||!r||!ib[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 SA=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),CA=new Map([[Qe.Design,"Content"],[Qe.Animation,"Animation"],...kc.map(e=>[hr[e],e])]);function cb(e){let o=new Set([...Object.values(Qe),hr.Content]);for(let[t,r]of Object.entries(e))if(!o.has(t)&&ko(r)?.level===1)return 1;return 2}function vA(e){let o=`${e}.`;return Object.keys(yA).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function wA(e,o){let t=Ts(e),r=$e(o);return t?we(t.tier,r):r}function kA(e,o){let t=ko(o);return t?e==="Content"||e==="Animation"?Ym(o,t.label):Xm(o):o}function ab(e){return e==="Design"?kc:["Animation"]}function DV(e,o){let t=[],r=new Set(vA(o)),a=new Set,n=!1,s=null;for(let[x,g]of Object.entries(e)){let y=ko(g);if(SA.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=CA.get(x);if(C!==void 0){if(y?.level!==1)throw new Error(`${o}.${x}: that key is reserved for the ${C} heading of the settings panel, but this field is ${y?`a level-${y.level} "${y.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(x===Qe.Design||x===Qe.Animation)&&(n=!0),t.push(s={place:C,entries:[],adopted:!0});continue}if(!y){s||t.push(s={place:"Content",entries:[]}),s.entries.push([x,g]);continue}if(r.has(x)||x in fb){let v=wc(o,x,y.label);if(y.level!==2||!v||!ib[v].includes(y.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-${y.level} "${y.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 T=wc(o,x,y.label);if(!T)throw new Error(`${o}.${x}: the inspector group "${y.label}" is not classified in LABEL_GROUP (lib/puck/field-groups.ts), so there is no way to say which of ${[...kc,"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:T,entries:[[x,y.level===2?g:wA(g,y.label)]]})}let i=new Set(Object.entries(e).filter(([,x])=>ko(x)).map(([x])=>x));for(let[x,g]of[["BLOCK_KEY_GROUP",lb],["KEY_GROUP",nb]]){let y=Object.keys(g).filter(C=>C.startsWith(`${o}.`)).filter(C=>!i.has(C.slice(o.length+1)));if(y.length)throw new Error(`${o}: ${x} (lib/puck/field-groups.ts) lists ${JSON.stringify(y)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let c=n?[]:[...r].filter(x=>!a.has(x));if(c.length)throw new Error(`${o}: RETIRED (lib/puck/field-groups.ts) lists ${JSON.stringify(c)}, but this section has no such fold header${c.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let u=new Set(t.filter(x=>x.entries.length>0).map(x=>x.place)),p=Sa.filter(x=>ab(x).some(g=>u.has(g))),m={};for(let x of p){m[Qe[x]]=bn(x,x===p[0]?p:null);for(let g of ab(x)){if(!u.has(g))continue;let y=t.filter(T=>T.place===g),C=y.findIndex(T=>T.adopted);C>0&&y.unshift(...y.splice(C,1)),x==="Design"&&(m[hr[g]]=xi(g));for(let T of y)for(let[v,w]of T.entries)m[v]=kA(g,w)}}return m}function _V(e){return Qe.Design in e?e:{[Qe.Design]:bn("Design",null),[hr.Content]:xi("Content"),...e}}function NV(e){return Sa.some(o=>Qe[o]in e)}function MV(e){let o=Sa.filter(r=>Qe[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[Qe[r]]=bn(r,r===o[0]?o:null);return t}var Fc=" text",db="Text";function Ec(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function ub(e){return e.filter(Ec).map(o=>o.key)}function pb(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 mb(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var Lc=new Map,Sl=new Set;function LA(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),c=!!i&&[...i.children].some(p=>!p.hidden),u=i?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:c,labelled:c&&!!u}})});return r}var RA=Object.fromEntries(Sa.map(e=>{let o=jm[e];return[e,Rc(o,{},e)]}));function Oc({entries:e,entryCount:o=0}){let{id:t,fields:r,values:a,readOnly:n,onChange:s}=EA(),[i,c]=Pc(()=>new Set(Sl)),[u,p]=Pc(()=>new Set),m=FA(null),x=xb(()=>{let k=new Map;for(let L of Ib(r).rows){if(!L.fold)continue;let B=k.get(L.fold.key)??[];B.push(L.name),k.set(L.fold.key,B)}return k},[r]);TA(()=>{let k=m.current?.parentElement;if(!k)return;let L=new Set(ub(LA(k,x)));p(B=>mb(B,L)?B:L)});let g=xb(()=>pb(r,u),[r,u]),y={key:Fc,rows:Array.from({length:o},()=>({shown:!0,labelled:!0}))},C=Ec(y)?void 0:{key:Fc,title:db},[T,v]=Pc(()=>Lc.get(t)),w=Lc.get(t),h=Ib(r).buckets,b=w&&h.includes(w)?w:T&&h.includes(T)?T:h[0],E=b===void 0||Km(h,b)!==!0;return Rc(PA,{fields:g,values:a,onChange:s,readOnly:n,tab:b,onTab:k=>{Lc.set(t,k),v(k)},tabIcons:RA,idPrefix:t,ariaLabel:l("Section settings"),lead:E?e:null,leadFold:C,closedFolds:i,onFold:(k,L)=>{L?Sl.delete(k):Sl.add(k),c(new Set(Sl))},children:Rc("span",{ref:m,hidden:!0})})}import{SettingsSwitch as MA}from"efficient-easel/panel";var gb=Wg,Bc={kind:"header"},Dc={kind:"website"},bb={kind:"chat"},yb={kind:"social"},Cl="Part";function HA(e){return l("Part of {name}",{name:l(e)})}function zA(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?HA(r.label):l(Cl)}}function WA(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 Sb({what:e}){let o=WA(e);return Et("div",{className:"sf-note",children:[Q("p",{children:Q("strong",{children:o.title})}),Et("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]})]})}var GA={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Q(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)=>Q($n,{themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify})},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>Q($I,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Q(XI,{unavailable:Q(Sb,{what:"Social link"})})},ticker:{name:aa,kindLabel:Cl,icon:"ticker",head:(e,o)=>e.kind==="ticker"?zA(o,e.heroId,l(aa)):null,render:e=>Q(pg,{heroId:e.kind==="ticker"?e.heroId:""})},part:{name:Cl,kindLabel:Cl,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}=Io(e.propKey),n=a?mr(t.fields[r],a):t.fields[r],s=Rx(l(Wi(Hn(n??{},r))),a),i=BA({name:s,tier:"part",of:l(t.label)},{partOf:({name:c})=>l("Part of {name}",{name:c})});return{name:i.name,kindLabel:i.kind}},render:(e,o)=>e.kind==="part"?Q(Mg,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},UA=new Set(["header","website","chat"]);function $A(e,o){if(e==="puck")return null;let t=GA[e];return UA.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Q(Sb,{what:t.name})}:t}function Cb({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:i,tokenRef:c,notifyParent:u,currentSlug:p,siteId:m,runAuthed:x,readOnly:g}=Se(),{websiteName:y}=ee(),C=Vo({readOnly:g}),{select:T}=ga(),{selectedItem:v,getItemById:w,getSelectorForId:h,config:b,appState:E}=AA(J=>J),k=HI(b,v?{type:v.type,props:v.props}:null),L=v?_x(k??b.components[v.type]?.fields,v.props):[],B=J=>b.components[J]?.label??J,O=v?h(v.props.id):void 0,z=$A(e.kind,i),ne=Ae(),M={capabilities:i,tokenRef:c,hostPanels:ne.chrome?.panels,describeNode:J=>{let te=w(J);if(!te)return null;let Ie=b.components[te.type];return{type:te.type,label:Ie?.label??te.type,fields:Ie?.fields??{}}},siteId:m,websiteName:y??null,notifyParent:u,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},ae=z?.head?.(e,M)??null,_=ae?.name??(z?l(z.name):v?l(B(v.type)):l("Page settings")),fe=ae?.kindLabel??(z?l(z.kindLabel):v?O&&O.zone!==Fo?l("Block"):l("Section"):l("Page")),Ee=z?z.icon:v?v.type:"page",je=z?null:v?b.components[v.type]?.fields??null:b.root?.fields??null,So=je?cb(je):2,Ne=e.kind==="puck"&&v?fl(v.type):null,Me=!!v&&!!O&&O.zone===Fo&&v.type!==re&&v.type!==Ce,He=hl(E?.data,v),Je=()=>{He||O&&C.duplicateComponent(O.zone,O.index)},me=()=>{O&&(C.removeComponent(O.zone,O.index),C.select(null))},ve=v?b.components[v.type]?.defaultProps?.previewHover:void 0,xe=e.kind==="puck"&&!!v&&!!O&&ve!==void 0,Ke=xe&&v.props.previewHover===!0,P=()=>{!v||!O||C.replaceComponent(O.zone,O.index,{...v,props:{...v.props,previewHover:!Ke}})},[Y,j]=OA(pf);return Et("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right${Y||!(!z&&v)?"":" sf-hints-folded"}`,children:[Q(DA,{icon:Q(fr,{type:Ee,size:15}),name:_,kind:fe,actions:!a&&e.kind==="puck"&&v&&v.type!==re?Et(Ac,{children:[Q(hb,{label:l("Duplicate section"),title:He??void 0,disabled:He!==null,onClick:Je,children:Q(_A,{size:15})}),Me&&i.hasSiteSettings&&Q(zg,{node:v,currentSlug:p,siteId:m??void 0,tokenRef:c,runAuthed:x,onNotify:n}),Q(hb,{label:l("Remove section"),danger:!0,onClick:me,children:Q(NA,{size:15})}),s?Q(es,{side:"right",onHide:s,divider:!0}):null]}):s?Q(es,{side:"right",onHide:s}):void 0}),xe&&Et("div",{className:"sf-preview-pin",children:[Et("div",{className:"sf-preview-pin-text",children:[Q("span",{className:"sf-preview-pin-label",children:l("Preview hover state")}),Q("span",{className:"sf-preview-pin-hint",children:l("not shown live")})]}),Q(MA,{checked:Ke,onChange:P,ariaLabel:l("Preview hover state")})]}),Q(km,{tier:So,children:Q("div",{className:"sf-insp-body es-insp-body sf-scroll",children:z?z.render(e,M):v?Et(Ac,{children:[v.type===re&&i.hasSiteSettings&&Q(rb,{}),Q(Qu,{children:Q(Oc,{entries:Q(Gg,{parts:L,heading:!1,onOpen:J=>T(Kr(v.props.id,J))}),entryCount:Sc(L).length})}),Ne&&Q(pl,{source:Ne,slug:Ia(v?.props)}),Q(mf,{shown:Y,onChange:j})]}):Q(Ac,{children:Q(Oc,{})})})})]})}import{jsx as f,jsxs as S,Fragment as Fb}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)"},_c="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 f("div",{style:{width:e,height:o,borderRadius:r,background:Fe[t],flex:"none",...a}})}var qA={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"},A={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)"},pe=(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:[f("span",{style:r("8% 26% 30% 6%",d.mark1)}),f("span",{style:r("26% 6% 8% 30%",d.mark2,"multiply")})]})}function va({children:e}){return f("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:d.muted},children:e})}function vb({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return S(Fb,{children:[e&&f("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),f("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:i},children:t}),a&&f("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 Nc({name:e,price:o}){return S("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[f("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...pe(d.paper,d.paper2,150)},children:f($o,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),f("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:d.text},children:e}),f("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:[f("span",{children:e}),S("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[f("b",{style:{color:d.text,fontWeight:700},children:o}),t&&f("span",{style:{color:d.rust,fontWeight:700},children:"\u2713"})]})]})}function ie({title:e,children:o}){return S("div",{style:{...A,background:d.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[f(va,{children:e}),o]})}function wb({size:e=14}){return f("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${d.mark1},${d.mark2})`}})}function Mc({filled:e=5,size:o=6}){return S("span",{style:{fontSize:o,letterSpacing:"0.06em",color:d.rust,lineHeight:1},children:["\u2605".repeat(e),f("span",{style:{color:d.mark1},children:"\u2605".repeat(5-e)})]})}function Ca({n:e,label:o,tone:t=d.text}){return S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[f("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),f("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function Re({children:e,w:o}){return f("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:d.muted,width:o,display:"block"},children:e})}function vl({label:e,w:o="100%",filled:t}){return S("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[f("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:e}),f("span",{style:{height:9,borderRadius:3,border:`1px solid ${d.rule}`,background:t?d.paper:d.card}})]})}function kb({children:e}){return f("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 jA={wheelslisting:f(ie,{title:"All wheels",children:f("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:[f("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...pe(d.paper,d.paper2,150)},children:f($o,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),f("b",{style:{flex:1,fontSize:"4.31cqw",color:d.text},children:e}),f("span",{style:{fontSize:"3.65cqw",color:d.muted},children:o}),f("b",{style:{fontSize:"4.31cqw",color:d.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:S("div",{style:{...A,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,f("span",{style:{opacity:.6},children:"\u2715"})]},e)),f("span",{style:{fontSize:"3.65cqw",color:d.rust,fontWeight:700},children:"Clear"})]}),S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"128 results"}),f("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:{...A,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...pe(d.ink,d.inkSoft)},children:[f("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," ",f("span",{style:{color:d.muted},children:"\u25BE"})]},e)),f("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:d.warm,color:d.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:f(ie,{title:"Tyres that suit",children:f("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:[f("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:d.ink},children:f("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"}})}),f("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:d.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),f("span",{style:{fontSize:"3.32cqw",color:d.muted},children:o})]},e))})}),tyresizes:f(ie,{title:"Available sizes",children:f("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>f("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:[f("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," ",f("span",{style:{color:d.muted},children:"\u25BE"})]},e))}),f("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:[f("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:d.text},children:e}),f("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:{...A,background:d.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[f("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:[f("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?d.rust:d.mark1}}),f("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:[f("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:d.text},children:"72"}),f("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:d.muted},children:"dB"})]})]}),bundleoffer:S("div",{style:{...A,background:d.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[f(va,{children:"Buy it with"}),S("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>f("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:d.card},children:f($o,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),f("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:d.muted},children:"+"}),S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[f("span",{style:{fontSize:"3.65cqw",color:d.muted,textDecoration:"line-through"},children:"$1,024"}),f("b",{style:{fontSize:"6.02cqw",color:d.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:S("div",{style:{...A,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...pe(d.ink,d.ink2)},children:[S("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[f("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:d.warm,fontWeight:700},children:"READY TO ORDER"}),f("b",{style:{fontSize:"6.63cqw",color:d.onInk,lineHeight:1},children:"$1,956"}),f("span",{style:{fontSize:"3.65cqw",color:d.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),f("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:f(ie,{title:"Who do you need?",children:f("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:[f("b",{style:{flex:1,fontSize:"4.31cqw",color:d.text},children:e}),f("span",{style:{fontSize:"3.65cqw",color:d.muted},children:o}),f("span",{style:{fontSize:"4.64cqw",color:d.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:f(ie,{title:"Find us",children:f("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:[f("b",{style:{fontSize:"4.31cqw",color:d.text},children:e}),f("span",{style:{fontSize:"3.32cqw",color:d.muted},children:o}),f("span",{style:{fontSize:"3.32cqw",color:d.rust,fontWeight:700},children:t})]},e))})}),form:f(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:[f(vl,{label:"Name"}),f(vl,{label:"Email"})]}),f(vl,{label:"Message",filled:!0}),f(kb,{children:"SEND"})]})}),appointmentbooking:f(ie,{title:"Book a fitting",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[f("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>f("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))}),f("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>f("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:f(ie,{title:"Leave a review",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[f(Mc,{filled:4,size:14}),f(vl,{label:"Your review",filled:!0}),f(kb,{children:"POST"})]})}),submitbuild:f(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:[f("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:d.rust,fontWeight:300},children:"+"}),f("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"Drop a photo of your rig"})]})}),masthead:S("div",{style:{...A,background:d.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[f("span",{style:{height:1.5,background:d.text}}),f("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:[f("span",{children:"Issue 14"}),f("span",{children:"Spring 2026"})]}),f("span",{style:{height:1,background:d.rule}})]}),featuredcover:S("div",{style:{...A,overflow:"hidden",...pe(d.ink,d.inkSoft2)},children:[f($o,{size:92,style:{right:-18,top:-14}}),f("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:[f("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.warm},children:"FEATURE"}),f("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:d.onInk},children:"Four days on the Madigan Line"})]})]}),longread:S("div",{style:{...A,background:d.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[f("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:d.rust},children:"12 MIN READ"}),f("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:d.text},children:"What breaks first, and why"}),f(Re,{children:"Every failure starts in the same place \u2014 not the rim, not"}),f(Re,{w:"62%",children:"the tyre, but the bolt nobody re-torqued."})]}),series:f(ie,{title:"Recurring columns",children:f("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:[f("span",{style:{width:3,height:12,borderRadius:2,background:d.rust,flex:"none"}}),f("b",{style:{flex:1,fontSize:"4.64cqw",color:d.text},children:e}),f("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:o})]},e))})}),events:f(ie,{title:"Latest posts",children:f("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:[f("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...pe(e,o,150)}}),S("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[f("b",{style:{fontSize:"4.31cqw",color:d.text},children:t}),f("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:S("div",{style:{...A,background:d.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[f("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.muted},children:"POLICY"}),f("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:d.text,lineHeight:1.1},children:"Returns & refunds"}),f("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),f("span",{style:{height:2,width:26,background:d.rust,borderRadius:1}})]}),docbody:f("div",{style:{...A,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:[f("b",{style:{fontSize:"3.98cqw",color:d.rust,flex:"none"},children:e}),f(Re,{children:o})]},e))}),docmetacards:f(ie,{title:"At a glance",children:f("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:[f("b",{style:{fontSize:"5.31cqw",color:d.text,lineHeight:1},children:e}),f("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:o})]},o))})}),doctabs:S("div",{style:{...A,background:d.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[f("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>f("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))}),f("span",{style:{height:1,background:d.rule}}),S("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[f(Re,{children:"Unfitted wheels come back within 30 days, no questions."}),f(Re,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:S("div",{style:{...A,background:d.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[f("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:[f(Re,{children:"Forged, correctly offset, rated for what you actually"}),f(Re,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:f(ie,{title:"Key features",children:f("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:[f("span",{style:{fontSize:"4.64cqw",color:d.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),f("span",{style:{fontSize:"4.31cqw",color:d.text},children:e})]},e))})}),statsparagraph:S("div",{style:{...A,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:[f(Ca,{n:"27k",label:"Rigs"}),f(Ca,{n:"4.9",label:"Rating"})]}),S("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[f(Re,{children:"Twelve years of fitting the same three questions, and the"}),f(Re,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:S(ie,{title:"Load vs weight",children:[f("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>f("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?d.rust:d.mark1}},o))}),f("span",{style:{height:1,background:d.rule,marginTop:-4}})]}),mockup:f("div",{style:{...A,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...pe(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:[f("div",{style:{height:9,background:d.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>f("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:[f("span",{style:{height:4,width:"56%",borderRadius:1,background:d.mark2}}),f("span",{style:{height:14,borderRadius:2,...pe(d.paper,d.paper2,150)}}),f("span",{style:{height:3,width:"38%",borderRadius:1,background:d.rust}})]})]})}),manifesto:f("div",{style:{...A,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...pe(d.ink,d.ink2)},children:S("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:d.onInk},children:["We build for the ",f("span",{style:{color:d.warm},children:"last"})," ten percent of the track."]})}),timeline:f(ie,{title:"Our story",children:f("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&&f("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:d.rule}}),f("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:[f("b",{style:{fontSize:"4.64cqw",color:d.text},children:e}),f(Re,{children:o})]})]},e))})}),timelinetrack:S("div",{style:{...A,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...pe(d.ink,d.inkSoft)},children:[f("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:[f("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:[f("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?d.warm:d.mark1}}),f("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:{...A,overflow:"hidden",...pe(d.paper,d.paper2,150)},children:[f("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}}),f("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])=>f("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:d.rust}},e)),f("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:d.text},children:"3 fitting bays"})]}),banner:S("div",{style:{...A,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:[f("b",{style:{fontSize:"6.02cqw",color:d.onInk},children:"End of season \xB7 20% off"}),f("span",{style:{fontSize:"3.98cqw",color:d.onInk,opacity:.8},children:"Fitted free, this month only."})]}),f("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:{...A,background:d.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[f("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:[f("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"}),f("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:f("div",{style:{...A,overflow:"hidden",background:d.ink,display:"flex",alignItems:"center"},children:f("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:{...A,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...pe(d.ink,d.ink2)},children:[f("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:d.muted},children:"Back online in"}),f("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&&f("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:d.warm},children:":"}),S("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[f("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:d.onInk,fontVariantNumeric:"tabular-nums"},children:e}),f("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:d.onInk},children:o})]})]},o))})]}),breadcrumb:f("div",{style:{...A,background:d.card,display:"flex",alignItems:"center",padding:"0 13px"},children:S("span",{style:{fontSize:"4.64cqw",color:d.muted},children:["Home ",f("span",{style:{opacity:.5},children:"/"})," Wheels ",f("span",{style:{opacity:.5},children:"/"})," ",f("span",{style:{color:d.text,fontWeight:700},children:"20 inch"})]})}),categorybar:S("div",{style:{...A,background:d.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[f("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>f("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))}),f("span",{style:{height:1,background:d.rule}})]}),intro:S("div",{style:{...A,overflow:"hidden",background:d.card},children:[f("div",{style:{position:"absolute",inset:0,...pe(d.ink,d.inkSoft2)}}),f($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:[f("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:d.text},children:"Since 1998"}),f(Re,{children:"One shed, one lathe, one idea."}),f(Re,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:f(ie,{title:"From our customers",children:f("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)=>f("div",{style:{borderRadius:3,...pe(e,o,140+t*22)}},t))})}),gallery:S(ie,{title:"Gallery",children:[f("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>f("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))}),f("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)=>f("div",{style:{borderRadius:3,...pe(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:[f("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...pe(d.paper,d.paper2,150)},children:f($o,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),S("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[f("b",{style:{fontSize:"4.31cqw",color:d.text},children:"Ridge Grappler"}),f("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:[f(Uo,{k:"Subtotal",v:"$1,956"}),f(Uo,{k:"Fitting",v:"Free"}),S("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[f("b",{style:{color:d.text},children:"Total"}),f("b",{style:{color:d.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:f(ie,{title:"Delivery",children:f("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:[f("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?d.rust:d.mark1}`,background:r?d.rust:"transparent"}}),f("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:d.text},children:e}),f("span",{style:{fontSize:"3.98cqw",color:d.muted},children:o}),f("b",{style:{fontSize:"4.31cqw",color:d.text},children:t})]},e))})}),paymentbadges:S("div",{style:{...A,background:d.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[f(va,{children:"Ways to pay"}),f("div",{style:{display:"flex",gap:5},children:[["VISA",d.ink],["MC",d.rust],["AMEX",d.inkSoft],["PayPal",d.ink2]].map(([e,o])=>f("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:{...A,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...pe(d.ink,d.ink2)},children:[f("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:[f(Ca,{n:"27k",label:"Rigs fitted",tone:d.onInk}),f(Ca,{n:"12",label:"Years",tone:d.onInk}),f(Ca,{n:"4.9",label:"Avg rating",tone:d.warm})]})]}),testimonials:S("div",{style:{...A,overflow:"hidden",background:d.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[f("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:d.rust,opacity:.16},children:"\u201D"}),f(Mc,{filled:5,size:7}),f("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:[f(wb,{}),f("span",{style:{fontSize:"3.98cqw",color:d.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:S(ie,{title:"Reviews",children:[f("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)=>f("div",{style:{flex:1,borderRadius:3,...pe(e,o,140+t*15)}},t))}),f("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:[f(wb,{size:12}),S("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[S("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[f("b",{style:{fontSize:"3.98cqw",color:d.text},children:e}),f(Mc,{filled:o})]}),f(Re,{children:t})]})]},e))})]}),logos:S("div",{style:{...A,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...pe(d.ink,d.inkSoft)},children:[f("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:d.warm},children:"As fitted by"}),f("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>f("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:d.onInk,opacity:.82},children:e},e))})]}),prose:S("div",{style:{...A,background:d.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[f("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:d.text},children:"Why offset matters"}),S("div",{style:{display:"flex",gap:6},children:[f("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:d.rust,marginTop:1},children:"T"}),S("div",{style:{display:"flex",flexDirection:"column"},children:[f(Re,{children:"he number on the back of your wheel decides whether the"}),f(Re,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:f(ie,{title:"What you get",children:f("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:[f("span",{style:{width:11,height:11,borderRadius:3,background:d.rust,opacity:.9}}),f("b",{style:{fontSize:"3.98cqw",color:d.text},children:e}),f(Re,{children:o})]},e))})}),faq:f(ie,{title:"Questions",children:f("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:[f("b",{style:{fontSize:"4.31cqw",color:d.text},children:e}),f("span",{style:{fontSize:"4.64cqw",color:d.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&f(Re,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:S("div",{style:{...A,overflow:"hidden",...pe(d.ink,d.ink2)},children:[f("div",{style:{...A,background:`linear-gradient(90deg,${d.scrim},transparent 70%)`}}),f("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:f(vb,{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})}),f($o,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:S("div",{style:{...A,display:"flex",background:d.paper,overflow:"hidden"},children:[f("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:f(vb,{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})}),f("div",{style:{flex:1,position:"relative",...pe(d.inkSoft,d.inkSoft2)},children:f($o,{size:74,style:{right:-14,top:16}})})]}),productgrid:f(ie,{title:"Best sellers",children:S("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[f(Nc,{name:"Ridge 19",price:"$365"}),f(Nc,{name:"Ridge 29",price:"$410"}),f(Nc,{name:"Ridge 39",price:"$455"})]})}),collections:f(ie,{title:"Shop by category",children:f("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])=>f("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:d.onInk,...pe(o,t)},children:f("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:S("div",{style:{...A,display:"flex",background:d.card,overflow:"hidden"},children:[f("div",{style:{flex:1.1,position:"relative",...pe(d.paper,d.paper2,150)},children:f($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:[f("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.rust},children:"NITTO"}),f("b",{style:{fontSize:"6.29cqw",color:d.text},children:"Ridge Grappler"}),f("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:d.text},children:"$489"}),f("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:f(ie,{title:"Specifications",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[f(Uo,{k:"Diameter",v:'20"'}),f(Uo,{k:"Width",v:"9.0J"}),f(Uo,{k:"Offset",v:"+12"}),f(Uo,{k:"Load",v:"1250 kg"})]})}),fitmenttable:f(ie,{title:"Will it fit?",children:S("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[f(Uo,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),f(Uo,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),f(Uo,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),brandstrip:S("div",{style:{...A,background:d.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[f(va,{children:"Brands we carry"}),f("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:["NITTO","BFG","FUEL","TOYO"].map(e=>f("span",{style:{fontSize:"4.64cqw",fontWeight:800,letterSpacing:"0.1em",color:d.mark2},children:e},e))})]}),processsteps:S("div",{style:{...A,background:d.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[f(va,{children:"How it works"}),f("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:[f("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}),f("span",{style:{fontSize:"3.98cqw",color:d.text,fontWeight:600},children:e})]},e))})]}),detailrows:f("div",{style:{...A,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=f("div",{style:{flex:1,...pe(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:[f("b",{style:{fontSize:"4.64cqw",color:d.text},children:e}),f("span",{style:{fontSize:"3.98cqw",color:d.muted,lineHeight:1.3},children:o})]},"tx");return f("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:f("div",{style:{...A,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:[f("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),f("span",{style:{fontSize:"3.65cqw",color:d.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},Tb={subscribe:S("div",{style:{...A,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:[f(R,{w:8,h:8,r:2,tone:"accent"}),f(R,{w:38,h:7,r:3,tone:"dark"}),f(R,{w:16,h:7,r:3,tone:"accent"})]}),f(R,{w:38,h:4,r:2,tone:"soft"})]}),f("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:[f(R,{w:"46%",h:3,r:2,tone:"accent"}),f(R,{w:"84%",h:8,r:4,tone:"dark"}),f(R,{w:"56%",h:8,r:4,tone:"accent"}),f(R,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),S("div",{style:{display:"flex",gap:5,marginTop:4},children:[f("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${Fe.line}`,background:Fe.block}}),f(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:[f(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:[f(R,{w:34,h:4,r:2,tone:"dark"}),f(R,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:S("div",{style:{...A,display:"flex"},children:[f("div",{style:{width:"44%",background:_c}}),S("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[f(R,{w:"44%",h:5,r:3,tone:"accent"}),f(R,{w:"88%",h:8,r:4,tone:"dark"}),f(R,{w:"70%",h:8,r:4,tone:"dark"}),f(R,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),f(R,{w:"80%",h:5,r:2,tone:"soft"}),f(R,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:S(Fb,{children:[f(R,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),S("div",{style:{...A,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[S("div",{style:{display:"flex",alignItems:"center",gap:9},children:[f(R,{w:16,h:16,r:4,tone:"accent"}),f(R,{w:"20%",h:9,r:4,tone:"dark"})]}),f(R,{w:"62%",h:10,r:5,tone:"dark"}),f(R,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:f("div",{style:{...A,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:S("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[f(R,{w:"22%",h:12,r:4,tone:"dark"}),S("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[f(R,{w:26,h:6,r:3,tone:"soft"}),f(R,{w:26,h:6,r:3,tone:"soft"}),f(R,{w:26,h:6,r:3,tone:"soft"}),f(R,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:S("div",{style:{...A,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:[f(R,{w:"60%",h:9,r:4,tone:"dark"}),f(R,{w:"90%",h:5,r:2,tone:"soft"}),f(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:[f(R,{w:"50%",h:6,r:3,tone:"dark"}),f(R,{w:"80%",h:5,r:2,tone:"soft"}),f(R,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),f("div",{style:{height:1,background:Fe.line}}),S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f(R,{w:"30%",h:5,r:2,tone:"soft"}),f(R,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:f("div",{style:{...A,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>f("div",{style:{borderRadius:6,background:Fe.block}},o))}),blanksection:f("div",{style:{...A,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:[f(R,{w:14,h:2,r:1,tone:"tint"}),f(R,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:S("div",{style:{...A,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[f(R,{w:"100%",h:6,r:3,tone:"soft"}),f(R,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),f(R,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:f("div",{style:{...A,padding:14,display:"flex",alignItems:"center"},children:f(R,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:S("div",{style:{...A,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:_c},children:[f(R,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),f(R,{w:16,h:10,r:3,tone:"accent"}),f(R,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:f("div",{style:{...A,padding:14,display:"flex",alignItems:"center"},children:f(R,{w:"64%",h:13,r:4,tone:"dark"})}),text:S("div",{style:{...A,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[f(R,{w:"100%",h:6,r:3,tone:"soft"}),f(R,{w:"96%",h:6,r:3,tone:"soft"}),f(R,{w:"100%",h:6,r:3,tone:"soft"}),f(R,{w:"58%",h:6,r:3,tone:"soft"})]}),image:f("div",{style:{position:"absolute",inset:14,borderRadius:7,background:_c}}),button:f("div",{style:{...A,display:"flex",alignItems:"center",justifyContent:"center"},children:f(R,{w:"34%",h:16,r:8,tone:"accent"})}),menu:S("div",{style:{...A,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[f(R,{w:"48%",h:7,r:3,tone:"dark"}),f(R,{w:"82%",h:5,r:2,tone:"soft"}),f(R,{w:"66%",h:5,r:2,tone:"soft"}),f(R,{w:"74%",h:5,r:2,tone:"soft"}),f(R,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:S("div",{style:{...A,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[f(R,{w:"56%",h:8,r:3,tone:"dark"}),S("div",{style:{display:"flex",gap:6},children:[f("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${Fe.line}`}}),f(R,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:f("div",{style:{...A,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>f(R,{w:16,h:16,r:8,tone:"dark"},e))}),search:f("div",{style:{...A,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:[f("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${Fe.dark}`}}),f(R,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:S("div",{style:{...A,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[f("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${Fe.dark}`}}),f("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${Fe.dark}`},children:f(R,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:S("div",{style:{...A,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:[f(R,{w:22,h:6,r:2,tone:"dark"}),f(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:[f(R,{w:"80%",h:4,r:2,tone:"accent"}),f(R,{w:"64%",h:4,r:2,tone:"soft"}),f(R,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:S("div",{style:{...A,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[f("div",{style:{height:1,background:Fe.line}}),S("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[f(R,{w:"38%",h:5,r:2,tone:"soft"}),S("div",{style:{display:"flex",gap:5},children:[f(R,{w:14,h:5,r:2,tone:"soft"}),f(R,{w:14,h:5,r:2,tone:"soft"}),f(R,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:f("div",{style:{position:"absolute",inset:14,borderRadius:8,background:Fe.block}})};function Eb({type:e}){let o=qA[e]??"",t=jA[o]??Tb[o]??Tb.fallback;return f("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 gr,jsxs as KA}from"react/jsx-runtime";import{StylesIcon as VA}from"efficient-easel/rail";import{Tooltip as YA}from"efficient-shell/ui";function Pb({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n}){let s=lr();return KA("div",{className:"sf-styles",children:[gr(Ha,{icon:gr(VA,{}),title:l("Site styles"),context:gr(YA,{content:l("{name} \u2014 renamed in the Console: {place}.",{name:s,place:l("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:gr("span",{className:"sf-name-text",children:s})}),onHide:t}),gr("div",{className:"sf-insp-body sf-scroll",children:gr($n,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n})})]})}import{jsx as Lb}from"react/jsx-runtime";var XA="M6 3h12a1 1 0 0 1 1 1v17l-7-4-7 4V4a1 1 0 0 1 1-1z";function Rb({size:e=15,className:o,strokeWidth:t=1.7}){return Lb("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:t,strokeLinecap:"round",strokeLinejoin:"round",className:o,"aria-hidden":"true",focusable:"false",children:Lb("path",{d:XA})})}import{jsx as ue,jsxs as Do,Fragment as oB}from"react/jsx-runtime";import{Fragment as jb,useEffect as Kb,useRef as $c}from"react";import{useTreeDrag as Vb}from"efficient-easel/drag";import{ImageIcon as tB,TextLinesIcon as rB,TrashIcon as Yb}from"efficient-easel/icons";import{Subtree as Xb,TreeRow as ka,TreeRowAction as Zb,TreeSeam as Qb}from"efficient-easel/tree";import{useEaselStrings as aB}from"efficient-easel/strings";var{Provider:qY,useSelection:Ob}=Aa("selectedLocationPartId");function Ab(e,o,t){return`${e}::${o}::${t}`}function Bb(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 ZA}from"react";var QA={level:"groups"},_b=QA,Hc=new Set;function yo(e){_b=e;for(let o of Hc)o()}function JA(e){return Hc.add(e),()=>{Hc.delete(e)}}var Db=()=>_b;function Nb(){return ZA(JA,Db,Db)}function Mb(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),i=r.find(c=>c.key===s);i||(i={key:s,name:t(a),items:[]},r.push(i)),i.items.push({item:a,index:n})}),r}function YY(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 wa=e=>String(e?.group??""),zc=new WeakMap,eB=0;function wl(e){let o=zc.get(e);return o||(o=`loc${++eB}`,zc.set(e,o)),o}var Hb=(e,o)=>o||e||"Ungrouped",zb={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 Pt(e){return Mb(e,wa,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var Wc=e=>e.flatMap(o=>o.cards),Wb=(e,o,t)=>Math.min(Math.max(e,o),t);function kl(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(wa(e[a])===o){if(r===t)return a;r++}return-1}function Gc(e,o,t){let r=Pt(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=Wb(o<t?t-1:t,0,r.length);return r.splice(n,0,a),Wc(r)}function Uc(e,o,t,r,a){let n=Pt(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[c]=s.cards.splice(t,1),u=o===r?c:{...c,group:i.key,groupName:i.name};u!==c&&zc.set(u,wl(c));let p=Wb(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(p,0,u),Wc(n)}function Gb(e,o){let t=Pt(e),r=t.find(n=>n.key===o),a={...zb,group:o,groupName:r?.name??""};return r?(r.cards.push(a),Wc(t)):[...e,a]}function Ub(e){let o=new Set(Pt(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...zb,group:r,groupName:""}],key:r}}function $b(e,o){return e.filter(t=>wa(t)!==o)}function qb(e,o,t){let r=kl(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function QY(e,o,t){let r=e.flatMap((s,i)=>wa(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 JY(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>wa(n)===r);return a.length?a:t(r)})}var Fl="ContactLocations";function nB({size:e=13}){return Do("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[ue("circle",{cx:"12",cy:"12",r:"9"}),ue("path",{d:"M3 12h18M12 3c2.6 2.6 2.6 15.4 0 18M12 3c-2.6 2.6-2.6 15.4 0 18"})]})}function lB({size:e=13}){return Do("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[ue("path",{d:"M12 21s6-5 6-10a6 6 0 10-12 0c0 5 6 10 6 10z"}),ue("circle",{cx:"12",cy:"11",r:"2"})]})}function sB({size:e=13}){return Do("svg",{width:e,height:e,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round","aria-hidden":"true",children:[ue("path",{d:"M9 4 3 6.5v13L9 17l6 3 6-2.5v-13L15 7z"}),ue("path",{d:"M9 4v13M15 7v13"})]})}var Tl=e=>({parentId:`locations-${e}`,slot:"groups"}),qc=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function Jb(e,o){let{readOnly:t,selected:r}=o,a=aB().tree,n=o.data?.content??[],s=e.kind===gb.kind,i=$c(null);Kb(()=>{let h=r?.type===Fl?String(r.props.id):null;h&&h!==i.current&&yo({level:"groups"}),i.current=h},[r?.props.id]);let{selectedLocationPartId:c,setSelectedLocationPartId:u,setSelectHandler:p}=Ob(),m=Nb(),x=(h,b)=>{let E=n[h];E&&o.replace(h,{type:E.type,props:{...E.props,locations:b}})},g=h=>{let b=n[h]?.props?.locations;return Array.isArray(b)?b:[]},y=Vb({keyOf:h=>`group:${h.si}:${h.index}`,readOnly:!!t,canDrop:(h,b)=>b.parentId===Tl(h.si).parentId&&b.slot==="groups",onDrop:(h,b)=>{x(h.si,Gc(g(h.si),h.index,b.index)),m.level==="city"&&yo({level:"groups"})},onStep:(h,b)=>{x(h.si,Gc(g(h.si),h.index,b<0?h.index-1:h.index+2)),m.level==="city"&&yo({level:"groups"})}}),C=Vb({keyOf:h=>`city:${h.si}:${h.group}:${h.index}`,readOnly:!!t,canDrop:(h,b)=>b.parentId===Tl(h.si).parentId&&b.slot.startsWith("cities:"),onDrop:(h,b)=>{let E=b.slot.slice(7);x(h.si,Uc(g(h.si),h.group,h.index,E,b.index)),yo({level:"group",key:E})},onStep:(h,b)=>{x(h.si,Uc(g(h.si),h.group,h.index,h.group,b<0?h.index-1:h.index+2)),m.level==="city"&&yo({level:"group",key:h.group})}}),T=$c(n);T.current=n;let v=$c(()=>{});Kb(()=>{p(h=>{let b=Bb(h);if(!b)return;let E=T.current.findIndex(k=>k.props?.id===b.nodeId);E<0||v.current(E,{level:b.part,index:b.index})})},[p]);let w=(h,b)=>{i.current=n[h]?.props?.id??null,o.select(h),yo(b),e.reveal();let E=n[h]?.props?.id;typeof E=="string"&&(b.level==="image"||b.level==="map")?u(Ab(E,b.index,b.level)):u(null),typeof E=="string"&&o.scrollTo(E)};return v.current=w,{renderLocationTree:(h,b,{rowClick:E,isCollapsed:k,toggleCollapse:L})=>{let B=g(b),O=Pt(B),z=String(h.props.id),ne=s&&r?.props.id===z,M=_=>ue(Qb,{...t?{}:y.seam({place:{...Tl(b),index:_}})},`seam:${z}:groups:${_}`),ae=(_,fe)=>ue(Qb,{...t?{}:C.seam({place:{...qc(b,_),index:fe}})},`seam:${z}:cities:${_}:${fe}`);return Do(oB,{children:[ue(ka,{icon:ue(rB,{size:13}),name:l("Texts"),words:a,onSelect:()=>w(b,{level:"texts"}),selected:ne&&m.level==="texts",rowProps:{onClick:E(()=>w(b,{level:"texts"}))}}),O.map((_,fe)=>{let Ee=`${z}::grp::${_.key}`,je=k(Ee),So=ne&&m.level==="group"&&m.key===_.key,Ne=_.name||_.key?Hb(_.key,_.name):l("Ungrouped"),Me={...qc(b,_.key),index:_.cards.length},He=C.row({item:{si:b,group:_.key,index:-1},place:Me,into:Me,canDrag:!1},{onClick:E(()=>w(b,{level:"group",key:_.key}))}),Je=y.row({item:{si:b,index:fe},place:{...Tl(b),index:fe}},He.rowProps);return Do(jb,{children:[fe===0&&M(0),ue(ka,{icon:ue(nB,{size:13}),name:Ne,words:a,onSelect:()=>w(b,{level:"group",key:_.key}),selected:So,draggable:Je.draggable,dragging:Je.dragging,drop:Je.drop??He.drop,fold:{open:!je,label:l("group"),onToggle:()=>L(Ee)},actions:ue(Zb,{kind:"delete",label:pt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",_.cards.length,{label:Ne}),onClick:()=>{x(b,$b(B,_.key)),yo({level:"groups"})},children:ue(Yb,{size:15})}),rowProps:Je.rowProps,children:ue("span",{className:"es-group-count",children:_.cards.length})}),!je&&Do(Xb,{children:[_.cards.map((me,ve)=>{let xe=kl(B,_.key,ve),Ke=ne&&m.level==="city"&&m.index===xe,P=String(me?.name??"")||l("City"),Y=`${z}::city::${wl(me)}`,j=k(Y),{rowProps:J,...te}=C.row({item:{si:b,group:_.key,index:ve},place:{...qc(b,_.key),index:ve}},{onClick:E(()=>w(b,{level:"city",index:xe}))});return Do(jb,{children:[ve===0&&ae(_.key,0),ue(ka,{icon:ue(lB,{size:13}),name:P,words:a,onSelect:()=>w(b,{level:"city",index:xe}),selected:Ke,...te,fold:{open:!j,label:P,onToggle:()=>L(Y)},actions:ue(Zb,{kind:"delete",label:l("Delete {name}",{name:P}),onClick:()=>{x(b,qb(B,_.key,ve)),yo({level:"group",key:_.key})},children:ue(Yb,{size:15})}),rowProps:J}),!j&&Do(Xb,{children:[ue(ka,{icon:ue(tB,{size:13}),name:l("Image"),words:a,onSelect:()=>w(b,{level:"image",index:xe}),selected:ne&&m.level==="image"&&m.index===xe,rowProps:{onClick:E(()=>w(b,{level:"image",index:xe}))}}),ue(ka,{icon:ue(sB,{size:13}),name:l("Map"),words:a,onSelect:()=>w(b,{level:"map",index:xe}),selected:ne&&m.level==="map"&&m.index===xe,rowProps:{onClick:E(()=>w(b,{level:"map",index:xe}))}})]}),ae(_.key,ve+1)]},wl(me))}),Do("button",{type:"button",className:"sf-add-card",onClick:()=>{let me=Gb(B,_.key);x(b,me);let ve=Pt(me).find(xe=>xe.key===_.key);yo(ve&&ve.cards.length?{level:"city",index:kl(me,_.key,ve.cards.length-1)}:{level:"group",key:_.key})},children:[ue("span",{className:"sf-plus sf-plus--sm",children:"+"}),l("Add city")]})]}),M(fe+1)]},Ee)}),Do("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:_,key:fe}=Ub(B);x(b,_),w(b,{level:"group",key:fe})},children:[ue("span",{className:"sf-plus sf-plus--sm",children:"+"}),l("Add group")]})]})},sectionPressed:h=>{h?.type===Fl&&yo({level:"groups"})}}}import{useEffect as dB,useRef as uB}from"react";import{createNode as ty,newId as ry}from"efficient-easel/data";import{useEaselApi as pB}from"efficient-easel/easel";import{resetForDocumentSwitch as iB,saveStatusForNewDocument as fB,saveStatusOf as cB}from"efficient-easel/screen/lib/document-switch";function ey(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function oy(e,o){let t=e.some(n=>n?.type===de),r=e[e.length-1],a=!t&&r?.type===re?r:null;return{remove:e.filter(n=>n?.type===re&&n!==a).map(n=>String(n.props?.id??"")).filter(Boolean),seedHeader:!e.some(n=>n?.type===Ce),seedFooter:o.hasChromeDoc&&!t&&!a}}function ay(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i}=Se(),{hasSiteSettings:c,hasPinnedChrome:u}=r,p=!!r.editsPinnedInPlace&&a!==Nt,m=a===Nt,x=pB().getState,g=uB(null);dB(()=>{if(!ey({docId:n,saveStatus:i,seededDocId:g.current})||(g.current=n,!u))return;let y=x().appState.data,C=y.content,T=s?.content??[],v=(E,k)=>E.some(L=>L?.type===k);if(!c){let E=new Set(Ga(C)),k=E.size?C.filter(B=>!E.has(B.props.id)):C;E.size&&e.setDocument({...y,content:k});let L=lu(k,T);if(L.includes(re)){let B=k.length,O=e.insertSection(re,B);e.replaceComponent(Fo,B,{type:re,props:{id:O,blocks:Il()}})}L.includes(Ce)&&e.insertNode(Fo,0,xl());return}if(m){let E=Ir(C);if(E!==C&&e.setDocument({...y,content:[...E]}),!E.find(k=>k.type===re)&&!v(T,re)&&!v(E,de)&&!v(T,de)){let k=(B,O)=>ty(o,B,O),L={type:re,props:{blocks:Il()}};e.insertNode(Fo,E.length,ya(L,k,ry(de)))}return}if(p){let E=!!t?.pinnedChrome?.state().docId,k=oy(C,{hasChromeDoc:E}),L=new Set([...k.remove,...Ga(C.filter(O=>!k.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({...y,content:B}),k.seedFooter&&!v(T,re)&&!v(T,de)){let O=(ne,M)=>ty(o,ne,M),z={type:re,props:{blocks:Il()}};e.insertNode(Fo,B.length,ya(z,O,ry(de)))}if(k.seedHeader&&!v(T,Ce)){let O=B[0]?.type==="SiteHeader"?1:0;e.insertNode(Fo,O,xl())}return}let w=C.filter(E=>E.type!==re),h=new Set(Ga(w)),b=h.size?w.filter(E=>!h.has(E.props.id)):w;b.length!==C.length&&e.setDocument({...y,content:b}),!v(b,Ce)&&!v(T,Ce)&&e.insertNode(Fo,0,xl())},[n,i,s,x,e,c,u,m,p,t])}import{useEffect as sy,useState as iy}from"react";var El=new Map;async function mB(e,o){try{return(await Ve().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function ny(e,o){let t=El.get(o);return t||(t=mB(e,o),El.set(o,t),t.catch(()=>{El.get(o)===t&&El.delete(o)})),t}var xB=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function jc(e){return!!e&&xB.test(e)}function ly(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===en?"/":`/${encodeURIComponent(o)}`;if(!jc(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function fy(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=iy(null),[s,i]=iy(null),c=Hd();sy(()=>i(c?new URL(c).hostname:window.location.hostname),[c]),sy(()=>{if(!jc(s)||!t||!r){n(null);return}let p=!1;return ny(r,t).then(m=>{p||n(m)}),()=>{p=!0}},[s,t,r]);let u=ly({pageSlug:o,siteSlug:a,hostname:s});return c?`${c}${u}`:u}import{jsx as Ta,jsxs as IB}from"react/jsx-runtime";import{ExternalIcon as cy}from"efficient-easel/icons";import{Button as hB,Tooltip as dy,buttonClasses as gB}from"efficient-shell/ui";function bB({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 uy({liveHref:e,pageId:o,draftLink:t}){return t&&o?Ta(dy,{content:l("Open your saved draft in a new tab. Visitors don't see it."),children:Ta(hB,{variant:"secondary",onClick:()=>{bB({pageId:o,liveHref:e,draftLink:t})},rightIcon:Ta(cy,{size:15}),"aria-label":l("Preview your saved draft in a new tab"),children:l("Preview")})}):Ta(dy,{content:l("Preview the live site (opens in a new tab)"),children:IB("a",{className:gB({variant:"secondary"}),href:e,target:"_blank",rel:"noopener noreferrer","aria-label":l("Preview the live site in a new tab"),children:[l("Preview"),Ta(cy,{size:15})]})})}import{useCallback as CB,useEffect as vB,useRef as Iy,useState as wB}from"react";import{useSyncExternalStore as yB}from"react";var br=new Map,Kc=new Set;function Vc(e,o){if(!(br.has(e)&&br.get(e)===o)){br.set(e,o);for(let t of Kc)t()}}function VX(e,o){Vc(e,o)}function YX(e,o){let t=br.get(e);Vc(e,o??(t==="live"?"changed":t))}function XX(e,o){Vc(e,o??"live")}function ZX(e){return br.get(e)}function SB(e){return Kc.add(e),()=>{Kc.delete(e)}}function py(e){let o=()=>e?br.get(e):void 0;return yB(SB,o,o)}function my(e,o){return e==="live"&&o?"changed":e}function xy({live:e,onPress:o,busy:t=!1}){let r=e==="live"?l("Everything is live"):e==="changed"?l("Changes not live yet"):e==="never"?l("Never published"):null;return{label:l("Publish"),tooltip:e==="never"?l("Put this page on your site"):l("Put your changes on your site"),status:r,quiet:e==="live"?{label:l("Published"),reason:l("Everything is live")}:null,onPress:o,busy:t}}function hy(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a}=Se(),n=my(py(o??null),r),[s,i]=wB(!1),c=Iy(e);c.current=e;let u=Iy(!0);vB(()=>(u.current=!0,()=>{u.current=!1}),[]);let p=CB(()=>{i(!0),a(c.current).finally(()=>{u.current&&i(!1)})},[a]);if(t.canPublish)return xy({live:n,onPress:p,busy:s})}import{buildPaletteSections as kB,categoryLabel as TB,matchesQuery as FB,paletteWithoutPinned as EB,pinnedSection as PB}from"efficient-easel/screen/lib/puck/palette-sections";var gy=["general","commerce","service"],yr=[{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 nZ(){return Object.fromEntries(yr.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var LB={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."},lZ=["Grid"],sZ=Array.from(new Set([...yr.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(LB)])),iZ=Object.fromEntries(yr.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),RB={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"},Pl={...RB,...Object.fromEntries(yr.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function by(e){return Object.prototype.hasOwnProperty.call(Pl,e)?Pl[e]:void 0}function Yc(e){return Object.keys(Pl).filter(o=>Pl[o]===e).sort()}var fZ=Yc("general"),cZ=Yc("commerce"),dZ=Yc("service"),Xc="Flex",nt="Box",uZ=`${nt}es`;function OB(e){return e==="section"?"Blank section":nt}function Zc(e,o,t){return e===Xc?OB(o):t}var AB={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 yy(e){return AB[e]?.label}var Sy=Xc;var BB={general:!0,commerce:!0,service:!0};function Qc(e){let o=e?.sets;return o?Object.fromEntries(gy.map(t=>[t,o.includes(t)])):BB}function yZ(e=co()){return Qc(e.blocks)}var Sr="content",be="Flex",DB="Text & media",_B="Layout & structure",NB=[{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:DB})),MB=(yr.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:_B})),Cy=[...NB,...MB],Jc=[{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:nt}],vZ=Jc.map(e=>e.type),HB=1,zB=Jc.filter(e=>e.type!=="HeroGroup");function WB(e){return e<HB?Jc:zB}var GB={Flex:{slot:Sr,choices:()=>Cy},Grid:{slot:Sr,choices:()=>Cy},HeroGroup:{slot:Sr,choices:WB}};function vy(e,o=0){let t=GB[e];return t?{slot:t.slot,choices:t.choices(o)}:null}function qe(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function wy(e,o,t){return qe(be,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var UB={Manifesto:(e,o)=>({type:be,props:{...e(be),id:o(be),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[qe(be,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[qe("Eyebrow",e,o,{eyebrowLook:"plain"}),qe("Heading",e,o),qe("Text",e,o),qe("Stats",e,o)]}),wy(e,o,{direction:"column",name:"Picture",content:[]})]}}),Split:(e,o)=>({type:be,props:{...e(be),id:o(be),direction:"row",share:"equal",sectionHeightMode:"screen",sectionHeightValue:70,name:"Image & Text Split",content:[qe(be,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[qe("Eyebrow",e,o,{eyebrowLook:"plain"}),qe("Heading",e,o),qe("Text",e,o),qe("ButtonBlock",e,o)]}),wy(e,o,{direction:"column",name:"Image",content:[qe("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:be,props:{...e(be),id:o(be),direction:"column",name:"Subscribe",content:[qe("Heading",e,o),qe("Text",e,o),qe("Form",e,o)]}})};function Ll(e){return UB[e]??null}import{blockTypesIn as ed}from"efficient-easel/screen/lib/puck/block-types-in";var $B="ImageBlock",qB=3,Rl=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:Or(e),...t}}),jB=e=>({...e?.(be)??{},direction:"column",[Sr]:[Rl($B,e),Rl(be,e,{direction:"column",[Sr]:[Rl("Heading",e),Rl("Text",e)]})]}),_o={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>Mh.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${nt.toLowerCase()}`,seeds:()=>[],addBlocked:qa,notice:is},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${nt.toLowerCase()}`,seeds:()=>[],addBlocked:qa,notice:is},ProcessSteps:{slot:"boxes",childType:be,addLabel:`Add ${nt.toLowerCase()}`,seeds:e=>Array.from({length:qB},()=>jB(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function BZ(e){for(let[o,t]of Object.entries(e)){if(o in _o&&_o[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);_o[o]=t}}function DZ(e,o){let t=_o[e];return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:Or(t.childType),...r}}))}:null}var ky=()=>({}),Ty=new Map;function KB(e){let o=Ty.get(e);if(o)return o;let t=new Set,r=_o[e];if(r)for(let s of r.seeds(ky))for(let i of ed({type:r.childType,props:s}))t.add(i);let a=Ll(e);if(a){let s=0;for(let i of ed(a(ky,c=>`${c}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return Ty.set(e,n),n}function VB(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Qc(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=c=>{if(r.has(c))return!1;if(a.has(c))return!0;let u=by(c);return!u||!o[u]?!1:t?t.has(c):!0},s=new Map,i=c=>{let u=s.get(c);if(u!==void 0)return u;s.set(c,!1);let p=n(c)&&KB(c).every(i);return s.set(c,p),p};return{sets:o,offers:i}}var YB="block-offer";function od(e=co()){return e.cache(YB,()=>VB(np(e)))}function Fy(e,o=co()){let t=od(o);return t?t.offers(e):!0}function Ey(e,o=0){let t=ZB(e,o),r=t?od():null;return t&&r?XB(t,r):t}function XB(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 ZB(e,o){let t=_o[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let r=vy(e,o);if(r)return{source:"container",slot:r.slot,choices:r.choices,spec:null};let a=qg(e);return a?{source:"footer",slot:$g,choices:a,spec:null}:null}import{useSyncExternalStore as QB}from"react";var td=null,rd=new Set;function Py(e){if(td!==e){td=e;for(let o of rd)o()}}function JB(e){return rd.add(e),()=>{rd.delete(e)}}function ZZ(){return QB(JB,()=>td,()=>null)}function Ly(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?e.slice(0,o):null}function Ry(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 Oy="sf-editor-left-view";function Ay(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(Oy);return e==="sections"||e==="styles"||e==="media"?e:"pages"}catch{return"pages"}}function By(e){if(!(typeof window>"u"))try{window.localStorage.setItem(Oy,e)}catch{}}function Dy(e,o,t=!1){return e==="styles"&&!o||e==="media"&&!t?"sections":e}function _y(e,o){return e?"sections":o}var Ny="Footer",eD=[_e,Ny,de],Cr=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Lt=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},Fa=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},My=e=>e.slice(0,Math.max(0,e.lastIndexOf(":")));function Hy(e){let o=Ir(Cr(e)),t=o.some(r=>r?.type===de);return o.filter(r=>r?.type===_e||r?.type===de||r?.type===Ny&&!t)}function ad(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=Fa(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(My(s))||(n.add(s),r(i),a=!0)}}return t}function nd(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(My(a))?t:r)[a]=n;return{owned:t,rest:r}}function rQ(e,o){if(!o)return e;let t=Hy(o);if(!t.length)return e;let r=t.filter(i=>i.type===_e),a=t.filter(i=>i.type!==_e),n={...e,content:[...r,...Cr(e),...a]},{owned:s}=nd(Lt(o),ad(t,Lt(o)));return Object.keys(s).length&&(n.zones={...Lt(e)??{},...s}),n}function aQ(e,o){if(!o)return{page:e,chrome:null};let t=Hy(o),r=new Set(t.map(Fa).filter(w=>!!w)),a=[],n=[];for(let w of Cr(e)){let h=Fa(w);h&&r.has(h)||xr(w?.type)?n.push(w):a.push(w)}let s=new Map(n.map(w=>[Fa(w),w])),i=new Set,c=Ir(Cr(o)).flatMap(w=>{let h=Fa(w);if(!h||!r.has(h))return[w];let b=s.get(h);return b?(i.add(b),[b]):[]});for(let w of n)i.has(w)||c.some(h=>h?.type===w.type)||(c=w.type===_e?[w,...c]:[...c,w]);c=Ir(c);let u=c.length===Cr(o).length&&c.every((w,h)=>w===Cr(o)[h]),p=Lt(e),m=ad(c,p),{owned:x,rest:g}=nd(p,m),y=nd(Lt(o),ad(t,Lt(o))).owned,C={...o,content:u?o.content:[...c]},T=Lt(o);if(T||Object.keys(x).length){let w={};for(let[h,b]of Object.entries(T??{}))h in y?h in x&&(w[h]=x[h]):w[h]=b;for(let[h,b]of Object.entries(x))h in w||(w[h]=b);C.zones=w,T&&oD(C.zones,T)&&(C.zones=T)}let v={...e,content:a};return p&&(Object.keys(g).length||!Object.keys(y).length?v.zones=g:delete v.zones),{page:v,chrome:C}}function oD(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 zy(e,o){return t=>e(t)||t!==void 0&&eD.includes(t)&&o()}var Ol=null;function lQ(e){Ol=e}function Wy(){return!!(Ol&&Ol.state().lockHolder)}function vr(){return Ol!==null}var tD=new Set(["BookingBox","SubmitBox"]);function rD(e){return typeof e=="string"&&tD.has(e)}var Gy=zy(rD,Wy);import{Fragment as sd,jsx as Bl,jsxs as CD}from"react/jsx-runtime";import{useMemo as vD,useRef as Qy}from"react";import{EaselCanvas as wD,useEaselApi as kD}from"efficient-easel/easel";import{jsx as Ky,Fragment as uD,jsxs as pD}from"react/jsx-runtime";import{useEffect as Vy,useLayoutEffect as mD}from"react";var Al="data-theme",Uy="light";function aD(e){return e.getAttribute(Al)===Uy?"light":"dark"}function nD(e,o){return aD(e)===o?!1:(o==="light"?e.setAttribute(Al,Uy):e.removeAttribute(Al),!0)}function lD(e){return jl(e).getItem(Ml)}function pQ(e,o){jl(e).setItem(Ml,o)}function sD(e,o,t=new Date().getHours()){return gd({mode:o.mode,override:lD(e),switchShown:o.switchShown,hour:t})}function $y(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>nD(t,sD(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[Al]}),()=>n.disconnect()}var iD="style";function fD(e,o){let t=kd(o),r=!1;for(let a of wd){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function qy(e,o){let t=e.body;if(!t)return()=>{};let r=()=>fD(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[iD]}),()=>n.disconnect()}var cD=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);`,dD="storefront-fit-words";function jy(e){let o=e.createElement("script");return o.id=dD,o.textContent=cD,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var xD=`
242
- [${ho}][${ho}] { cursor: text; }
243
- [${Ze}][${Ze}][${Ze}] {
244
- outline: 1px solid ${pa.accent};
245
- outline-offset: 2px;
246
- }
247
- [${Ze}][${Ze}]:has([${Ze}]),
248
- [data-puck-overlay-portal][data-puck-overlay-portal]:has([${Ze}]) {
249
- outline: none;
250
- }
251
- [${Ze}][${Ze}][${Ze}][data-es-typing],
252
- [data-es-typing] [${Ze}][${Ze}][${Ze}] {
253
- outline: none;
254
- }
255
- `;function Yy({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=ee(),n=uo(t);return Vy(()=>{if(o)return $y(o,{mode:r,switchShown:a})},[o,r,a]),Vy(()=>{if(o)return qy(o,n)},[o,n]),mD(()=>{if(o)return jy(o)},[o]),pD(uD,{children:[Ky(Jd,{}),Ky("style",{children:xD}),e]})}import{jsx as ld}from"react/jsx-runtime";import{useEffect as ID,useState as hD,useSyncExternalStore as gD}from"react";import{Banner as bD}from"efficient-shell/ui";var yD=()=>()=>{},Xy=()=>!1;function SD({report:e}){let o=gD(e?e.subscribe:yD,e?()=>e.state().loadFailed:Xy,e?()=>e.state().loadFailed:Xy),[t,r]=hD(!1);return ID(()=>{o||r(!1)},[o]),!o||t?null:ld("aside",{className:"sf-canvas-notice",children:ld(bD,{tone:"warning",onDismiss:()=>r(!0),children:l("The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.")})})}function Zy(){let{adapter:e}=Se();return ld(SD,{report:e?.pinnedChrome})}function TD({children:e,componentId:o}){let{selectedPartId:t}=ga();return Ax(t,o)?Bl(sd,{}):Bl(sd,{children:e})}function Jy(e){let{mirrorHostStyles:o}=Ql(),t=ou(),r=Qy(null),a=FD(r),{onDocument:n}=e,s=i=>{r.current=i,n?.(i)};return CD(sd,{children:[Bl(Zy,{}),Bl(wD,{...e,onDocument:s,typing:a,metadata:e.metadata??t,height:"fill",mirrorStyles:o,frameWrapper:Yy,overlay:TD})]})}function FD(e){let o=kD(),t=Vo(),r=ga(),a=Qy({ops:t,parts:r});return a.current={ops:t,parts:r},vD(()=>{let n={getItemById:i=>o.getState().getItemById(i),getSelectorForId:i=>o.getState().getSelectorForId(i),get components(){return o.getState().config.components},replace:(i,c,u)=>a.current.ops.replaceComponent(i,c,u)},s=(i,c)=>{let u=xg(i,n);if(!u)return null;let p=c,m=()=>(p=Ig(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?il(kg(x)):void 0}}:null};return{at:i=>{let c=i.closest(`[${ho}]`),u=c?.getAttribute(ho);return c&&u?s(u,c):null},atSelection:()=>{let i=a.current.parts.selectedPartId;return i?s(i,null):null},onChange:i=>{if(!i.typing){uc(null);return}let c=i.element.closest(`[${ho}]`)?.getAttribute(ho)??null;uc(c),c&&a.current.parts.selectedPartId!==c&&a.current.parts.select(c)}}},[o,e])}var eS={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 ED="Save your page changes first";function oS(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:ED}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var tS="storefront-editor:save-as-template";var PD="plain",rS=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],LD="line",RD={KeyFeatures:"filled"};function Ea(e){return RD[e]??PD}function VQ(e,o){return eo(rS,Ea(o),e)}function YQ(e){return eo(rS,LD,e)}var OD="inline",AD=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var lt={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"}},wr="SectionHeader";function aS(e){return e in lt}function BD(e){return eo(AD,OD,e)}var DD=new Set(["Flex"]);function _D(e){return!!e?.type&&DD.has(e.type)}function QQ(e,o,t){if(!_D(o))return e;let r={};for(let[a,n]of Object.entries(e))t.includes(a)||(r[a]=n);return r}function JQ(e,o,t){if(BD(o)!=="own-box")return e;let r={};for(let[a,n]of Object.entries(e))t.includes(a)||(r[a]=n);return r}function nS(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=Ll(e);return n?n(o,t):aS(e)&&a(be)&&a(wr)?{type:be,props:{...o(be),id:t(be),direction:"column",name:`${r(e)} section`,content:[{type:wr,props:{...o(wr),id:t(wr),...lt[e]?.headStyle?{headStyle:lt[e].headStyle}:{},...lt[e]?.headRowGap?{rowGap:lt[e].headRowGap}:{},...lt[e]?.headDescriptionSize?{descriptionSize:lt[e].headDescriptionSize}:{},...Ea(e)!==Ea(wr)?{eyebrowLook:Ea(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box"}}]}}:_o[e]?.fixed===!0?{type:e,props:{...o(e),id:t(e),layout:"boxes"}}:null}import{useEffect as ND,useState as MD}from"react";function lS(){let e=Ae().chrome?.products?.list,[o,t]=MD(null);return ND(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function fS({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=Yn(),a=jD().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=Dl(c=>{c&&(o({kind:"ticker",heroId:c}),uI(c))},[o]);return st(()=>{t(s)},[s,t]),st(()=>{r(i)},[r,i]),{partRows:(c,{rowClick:u})=>{let p=String(c.props.id);return c.type==="Hero"&&ye(qD,{icon:ye(fr,{type:"ticker",size:13}),name:l(aa),onSelect:()=>i(p),selected:s===p,rowProps:{onClick:u(()=>i(p))},words:a})}}}function KD(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:c,token:u}=Se(),{hasPreviewLink:p}=t,m=Ve(Ae()).preview?.draftLink,x=hy(e.data),g=oS({hasTrustedConsole:!!u,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),y=Dl(()=>{!a||!r||c(tS,{siteId:a,slug:r})},[c,a,r]),C=fy({pageSlug:r,siteId:a,token:u}),T=o.previewHref?.(r)??C;return{barLead:()=>g.visible&&ye(WD,{side:"bottom",content:g.enabled?l("Save this website as a platform template"):l(g.disabledReason),children:ye("span",{className:"sf-tip-disabled",tabIndex:g.enabled?void 0:0,children:ye(zD,{variant:"secondary",disabled:!g.enabled,onClick:y,rightIcon:ye(Rb,{}),children:l("Save as Template")})})}),barTrail:()=>p&&r&&ye(uy,{liveHref:T,pageId:n??null,draftLink:m}),mainAction:x}}function VD(){return fd("svg",{width:"17",height:"17",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",children:[ye("path",{d:"M12 3a9 9 0 0 0 0 18 2.3 2.3 0 0 0 2.3-2.3c0-.55-.22-1.05-.57-1.42-.34-.37-.56-.87-.56-1.43A2.35 2.35 0 0 1 15.6 13.5H18a3 3 0 0 0 3-3c0-4.14-4-7.5-9-7.5z"}),ye("circle",{cx:"7.7",cy:"11.3",r:"1.05",fill:"currentColor",stroke:"none"}),ye("circle",{cx:"12",cy:"8",r:"1.05",fill:"currentColor",stroke:"none"}),ye("circle",{cx:"16",cy:"11",r:"1.05",fill:"currentColor",stroke:"none"})]})}function YD(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=Se(),{hasSiteTheme:i,explainsSiteSettings:c}=t,u=v=>o.setView(v),[p,m]=HD(ar[0].id),{surface:x,setSurface:g}=MI(),y=()=>{if(i){u("styles"),o.reveal(),ff();return}e.show(Dc),e.reveal(),ff()},C={id:"pages",label:l("Pages"),icon:ye(UD,{}),panel:({onHide:v})=>ye(FI,{activeSurface:x,onPreviewSurface:g,onNavigate:w=>{g(null),s(r?{kind:"template",id:r,pageSlug:w}:{kind:"page",slug:w,siteId:a??void 0})},onClose:v})},T=[];return!i&&c&&T.push({id:"appearance",label:l("Appearance"),icon:ye(VD,{}),active:e.kind==="website",onSelect:y}),i&&T.push({id:"styles",label:l("Site styles"),icon:ye($D,{}),panel:({onHide:v,notify:w})=>ye(Pb,{tokenRef:n,siteId:a??void 0,onClose:v,onNotify:w,tab:p,onTabChange:m})}),{railLead:[C],railTrail:T,resolveLeftView:(v,w)=>Dy(v,i,w),openSettings:y,openStyles:()=>{m(mI),u("styles")}}}function XD(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;st(()=>{Py(s?.type==="BookingBox"&&s.props.region==="confirm"?Ly(i(String(s.props.id))):null)},[s?.props.id]);let c=Jb(e,o),{capabilities:{hasSiteSettings:u}}=Se(),{setSelected:p,setSelectHandler:m}=ee(),{chat:x,setChat:g,setSelected:y,setSelectHandler:C}=Vn(),T=a==="header";st(()=>{p(T)},[T,p]),st(()=>{m(()=>n(Bc))},[m,n]);let v=Dl(()=>n(bb),[n]),w=a==="chat";st(()=>{y(w)},[w,y]),st(()=>{C(v)},[C,v]);let{setOpenHandler:h}=ra(),b=Dl(()=>n(yb),[n]);st(()=>{h(b)},[h,b]);let E=fS(e),k=KD(o),L=YD(e,r),B=t.device;return{...E,...k,...L,hasOwnRows:O=>O.type===Fl,ownRows:c.renderLocationTree,sectionPressed:c.sectionPressed,wrap:O=>ye(Jl.Provider,{value:!0,children:ye(AI.Provider,{value:B,children:O})}),addPanelRow:O=>u?fd("div",{className:"sf-addside-sitewide",children:[ye("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:ye(fr,{type:"chat",size:16})}),fd("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{O(),v()},children:[l("Live chat"),ye("span",{className:"sf-addside-sitewide-desc",children:l("A chat bubble on every page")})]}),ye(GD,{checked:x.enabled,onChange:z=>g({enabled:z}),ariaLabel:l("Show the chat bubble on the whole site")})]}):void 0}}var sS=null,id=new WeakMap;function ZD(e){let o=Gd();if(!e||!o)return e;sS!==o&&(sS=o,id=new WeakMap);let t=id.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},id.set(e,t)),t}var QD={isLockedBlock:Gy,duplicateBlocked:hl,nestDepth:(e,o,t)=>o===ja?Cu(e,t):0,newSectionNode:nS,canAddTo:(e,o)=>ZD(Ey(e,o)),blockIsOffered:Fy},JD=new Proxy(eS,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?l(t):t}}),e_={labelAtLevel:(e,o,t)=>l(Zc(e,o,t)),descriptions:JD,categoryLabel:e=>{let o=yy(e);return o===void 0?void 0:l(o)},firstSection:Sy,blockRowName:Ry,plainText:ht,Icon:fr,Thumbnail:Eb,useProducts:lS},o_={desktop:2e3,tablet:800,mobile:390},iS="desktop",t_={options:OI,initial:iS,fluid:iS,widths:o_},r_={read:Ay,write:e=>By(e),forSelection:(e,o)=>_y(e,o)},a_={first:Ce,last:re,firstGroup:_e,lastGroup:de,isSectionGroup:xr,sectionGroupZone:jg,panelOf:e=>e===Ce?Bc:null,get groupTab(){return vr()?Qg:void 0},get groupBadge(){return vr()?Jg():void 0},get changeNotice(){return vr()?eb():void 0},get band(){return vr()?n_:void 0},get groupAccepts(){return vr()?Xg:void 0}},n_={foldable:!0};function l_(e){return{...fS(e),openSettings:()=>e.show(Dc)}}var iee={useOwnerName:lr,useDocumentLabel:bI,useBridges:XD,useStandaloneBridges:l_,useDocumentPass:ay,blockRules:QD,blockLook:e_,devices:t_,leftView:r_,pinned:a_,Canvas:Jy,Inspector:Cb};export{nZ as a,lZ as b,sZ as c,iZ as d,nt as e,Qc as f,yZ as g,Ve as h,np as i,Cy as j,vZ as k,E$ as l,Sh as m,B$ as n,Fh as o,D$ as p,Ph as q,Oh as r,Ah as s,$$ as t,q$ as u,j$ as v,K$ as w,QL as x,Fu as y,rq as z,$a as A,IC as B,i2 as C,xt as D,f2 as E,c2 as F,ja as G,Cu as H,re as I,Or as J,Fo as K,BZ as L,DZ as M,VB as N,gu as O,uC as P,e2 as Q,Ua as R,bu as S,pC as T,mC as U,xC as V,r2 as W,a2 as X,n2 as Y,l2 as Z,_e as _,de as $,tV as aa,Kg as ba,Vg as ca,eo as da,lt as ea,BD as fa,_D as ga,QQ as ha,JQ as ia,s_ as ja,X as ka,l as la,pt as ma,kg as na,Zn as oa,$K as pa,ga as qa,lj as ra,vg as sa,BI as ta,Kr as ua,_i as va,Cs as wa,ht as xa,ko as ya,tu as za,Ue as Aa,Nr as Ba,ho as Ca,Ze as Da,NW as Ea,A1 as Fa,B1 as Ga,MW as Ha,or as Ia,HW as Ja,zW as Ka,Ki as La,$x as Ma,zn as Na,jW as Oa,KW as Pa,VW as Qa,YW as Ra,gF as Sa,na as Ta,lh as Ua,sh as Va,Qn as Wa,V8 as Xa,Y8 as Ya,X8 as Za,Z8 as _a,hN as $a,CN as ab,vN as bb,wN as cb,De as db,bm as eb,O3 as fb,pn as gb,hk as hb,D3 as ib,bk as jb,N3 as kb,Cm as lb,ni as mb,li as nb,q3 as ob,K3 as pb,V3 as qb,Y3 as rb,X3 as sb,Ur as tb,fi as ub,ci as vb,en as wb,Tp as xb,zr as yb,Pp as zb,E5 as Ab,vw as Bb,P5 as Cb,Ka as Db,Pu as Eb,v2 as Fb,w2 as Gb,HC as Hb,k2 as Ib,E2 as Jb,Ru as Kb,P2 as Lb,WC as Mb,L2 as Nb,rn as Ob,o3 as Pb,js as Qb,t3 as Rb,Yw as Sb,r3 as Tb,n3 as Ub,Ks as Vb,Vs as Wb,l3 as Xb,I3 as Yb,h3 as Zb,g3 as _b,Wp as $b,X5 as ac,Z5 as bc,Q5 as cc,J5 as dc,ek as ec,nn as fc,i3 as gc,Xp as hc,Mt as ic,Se as jc,c_ as kc,Ae as lc,IS as mc,hS as nc,Kl as oc,pw as pc,m5 as qc,vp as rc,Vo as sc,VN as tc,QN as uc,cs as vc,AC as wc,b2 as xc,A2 as yc,we as zc,Ts as Ac,SM as Bc,Xa as Cc,_r as Dc,FM as Ec,Rs as Fc,Os as Gc,UM as Hc,$M as Ic,ep as Jc,qM as Kc,jM as Lc,KM as Mc,_s as Nc,h_ as Oc,y_ as Pc,_t as Qc,cp as Rc,up as Sc,Cw as Tc,kp as Uc,We as Vc,qd as Wc,w_ as Xc,yS as Yc,k_ as Zc,T_ as _c,SS as $c,P_ as ad,CS as bd,L_ as cd,Nt as dd,O_ as ed,A_ as fd,B_ as gd,D_ as hd,Na as id,__ as jd,kS as kd,G_ as ld,Xd as md,RS as nd,OS as od,AS as pd,Xl as qd,U_ as rd,Rw as sd,V5 as td,Ge as ud,c3 as vd,d3 as wd,u3 as xd,p3 as yd,m3 as zd,im as Ad,pk as Bd,y3 as Cd,S3 as Dd,sn as Ed,fn as Fd,v3 as Gd,jt as Hd,dn as Id,T3 as Jd,F3 as Kd,E3 as Ld,hm as Md,L3 as Nd,k0 as Od,mi as Pd,zo as Qd,i6 as Rd,f6 as Sd,c6 as Td,d6 as Ud,p6 as Vd,m6 as Wd,x6 as Xd,I6 as Yd,M0 as Zd,h6 as _d,g6 as $d,b6 as ae,$e as be,y6 as ce,W0 as de,S6 as ee,C6 as fe,qr as ge,v6 as he,yn as ie,Kt as je,w6 as ke,ex as le,Cn as me,vn as ne,k6 as oe,T6 as pe,F6 as qe,E6 as re,P6 as se,L6 as te,R6 as ue,O6 as ve,A6 as we,B6 as xe,D6 as ye,wn as ze,kn as Ae,Tn as Be,gi as Ce,Fn as De,_6 as Ee,vt as Fe,N6 as Ge,M6 as He,H6 as Ie,z6 as Je,W6 as Ke,G6 as Le,ot as Me,U6 as Ne,$6 as Oe,bi as Pe,q6 as Qe,yi as Re,j6 as Se,K6 as Te,Si as Ue,V6 as Ve,sx as We,ix as Xe,fx as Ye,Y6 as Ze,kT as _e,X6 as $e,Z6 as af,Qe as bf,hr as cf,hA as df,sb as ef,EV as ff,PV as gf,LV as hf,RV as if,OV as jf,AV as kf,BV as lf,DV as mf,_V as nf,NV as of,MV as pf,EI as qf,FU as rf,Vn as sf,YE as tf,$U as uf,ra as vf,VU as wf,MI as xf,VX as yf,YX as zf,XX as Af,ZX as Bf,rQ as Cf,aQ as Df,lQ as Ef,ZU as Ff,qY as Gf,Ob as Hf,Ab as If,eN as Jf,eG as Kf,oG as Lf,tG as Mf,rG as Nf,pf as Of,mf as Pf,LI as Qf,RI as Rf,OU as Sf,zI as Tf,T8 as Uf,jI as Vf,Kf as Wf,Vf as Xf,iL as Yf,fL as Zf,Yf as _f,uL as $f,ia as ag,el as bg,a$ as cg,ec as dg,p$ as eg,m$ as fg,x$ as gg,gh as hg,nR as ig,lR as jg,sR as kg,dq as lg,uq as mg,pR as ng,xR as og,Kh as pg,yq as qg,Sq as rg,eg as sg,Fq as tg,pa as ug,rg as vg,lc as wg,ag as xg,ng as yg,Oq as zg,lg as Ag,ER as Bg,Aq as Cg,Bq as Dg,Dq as Eg,_q as Fg,PR as Gg,Nq as Hg,Mq as Ig,Hq as Jg,RR as Kg,zq as Lg,BR as Mg,Wq as Ng,ic as Og,u9 as Pg,SO as Qg,CO as Rg,cl as Sg,Ij as Tg,vO as Ug,Rg as Vg,wO as Wg,yj as Xg,Bg as Yg,pK as Zg,mK as _g,Il as $g,yo as ah,Nb as bh,Mb as ch,YY as dh,wa as eh,Hb as fh,zb as gh,QY as hh,JY as ih,cB as jh,ny as kh,jc as lh,ly as mh,Ey as nh,ZZ as oh,Al as ph,aD as qh,nD as rh,pQ as sh,K_ as th,Z_ as uh,PD as vh,rS as wh,LD as xh,Ea as yh,VQ as zh,YQ as Ah,iee as Bh};