efficient-storefront-blocks 0.55.0 → 0.57.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,255 @@
1
+ import{$ as Ps,A as $o,Aa as hu,B as Mt,C as Ht,Ca as Ga,Da as gu,E as ru,Ea as bu,H as Rr,J as au,Ja as yu,K as Fs,L as nu,N as lu,O as su,Q as iu,R as Es,T as fu,U as ao,V as ft,W as cu,X as Io,Y as za,_ as du,a as Vd,c as Yd,ca as uu,d as lo,da as Ls,e as Dt,f as Po,fa as Os,g as Wa,h as Qd,ja as pu,l as Or,n as ks,pa as ct,ra as mu,s as Jd,t as eu,ta as xu,u as Ts,v as Qe,va as Iu,w as ou,x as tu,y as Nt,z as xo,za as q}from"./chunk-BDITPYS5.js";import{d as Xd,e as Lr,f as Zd,i as Su,m as Rs}from"./chunk-4NM2MDGN.js";var Ua=null,iv="en",vu=null;function wH(e,o,t){Ua=e??null,iv=o||"en",vu=t??null}function Y(){return vu}function wu(){return Ua}function Cu(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=Ua?Ua[e]:void 0;if(typeof t=="function"){try{let r=t(o??{});if(typeof r=="string"&&r)return r}catch{}return Cu(e,o)}return Cu(typeof t=="string"&&t?t:e,o)}function dt(e,o,t,r){return l(t===1?e:o,{...r,n:t})}function Re(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 ku(e,o){return typeof e=="number"&&Number.isFinite(e)?e:o}function Tu(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:Re(r?.text,"")).map(r=>r.trim()).filter(Boolean);return t.length?t:o}var Fu="cart-drawer",EH="cart-drawer";var fv={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 PH(e,o){return o===0?e.subtitleEmpty:o===1?e.subtitleOne:e.subtitleMany.replace("{count}",String(o))}function LH(e){let o=e??{},t=fv;return{kickerBadge:Re(o.kickerBadge,t.kickerBadge),kickerText:Re(o.kickerText,t.kickerText),titleLead:Re(o.titleLead,t.titleLead),titleAccent:Re(o.titleAccent,t.titleAccent),subtitleEmpty:Re(o.subtitleEmpty,t.subtitleEmpty),subtitleOne:Re(o.subtitleOne,t.subtitleOne),subtitleMany:Re(o.subtitleMany,t.subtitleMany),leadTimeValue:Re(o.leadTimeValue,t.leadTimeValue),shipsToFallback:Re(o.shipsToFallback,t.shipsToFallback),promises:$a(o.promises,t.promises),emptyKicker:Re(o.emptyKicker,t.emptyKicker),emptyBody:Re(o.emptyBody,t.emptyBody)}}var Pu="consent-banner",AH="consent-banner";var cv=[{value:"bar",label:"Bar"},{value:"card",label:"Card"}],BH="Layout",Eu={layout:"bar"},dv=e=>cv.some(o=>o.value===e);function _H(e){let o=Re((e??{}).layout,Eu.layout);return{layout:dv(o)?o:Eu.layout}}var uv=["meta","eyebrow","heading","body","statName","statValue","formEyebrow","formHeading","formIntro","fieldLabel","option","finePrint","dismiss","doneHeading","doneBody"],MH={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"},pv={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"},HH={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 mv(e){return typeof e=="string"&&Po.includes(e)?e:null}function Lu(e){let o={};for(let t of uv){let r=mv(e[pv[t]]);r&&(o[t]=r)}return o}var Wt="site-footer";var zH=Wt,GH={desktop:!0,tablet:!0,mobile:!0},UH={desktop:!1,tablet:!1,mobile:!1},As=1,Ou=6,$H=Array.from({length:Ou-As+1},(e,o)=>As+o),qa={desktop:6,tablet:3,mobile:2},xv={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}},ut=e=>Math.min(Math.max(Math.round(e),As),Ou);function qH(e){if(typeof e=="number")return xv[ut(e)]??{desktop:ut(e),tablet:ut(e),mobile:ut(e)};if(e&&typeof e=="object"){let o=e;return{desktop:ut(o.desktop??qa.desktop),tablet:ut(o.tablet??qa.tablet),mobile:ut(o.mobile??qa.mobile)}}return{...qa}}var Iv="subscribe-popup",QH="subscribe-popup";var hv=[Iv,Wt,Fu,Pu];function Bu(e){return hv.includes(e)}var gv=["delay","scroll","exit"],bv=["all","chosen"],yv=["visit","days","never"],Sv=["right","left"],Cv={min:0,max:60},vv={min:10,max:90},wv={min:1,max:90},_s={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=Re,kv=ku,Ru=Tu,_u=$a;function ja(e,o,t){return typeof o=="string"&&e.includes(o)?o:t}function Bs(e,o,t){let r=kv(e,t);return Math.min(o.max,Math.max(o.min,Math.round(r)))}function Tv(e){return typeof e.hideAfter=="string"?ja(yv,e.hideAfter,_s.hideAfter):e.oncePerSession===!0?"visit":e.oncePerSession===!1?"never":_s.hideAfter}function Fv(e){return Array.isArray(e)?e.map(o=>typeof o=="string"?o.trim():"").filter(Boolean).map(o=>o.startsWith("/")?o:`/${o}`):[]}function Au(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 Ev(e,o){return Array.isArray(e)?_u(e,[]):o}function Pv(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 JH(e){let o=e??{},t=_s;return{metaLabel:he(o.metaLabel,t.metaLabel),issueLabel:Au(o.issueLabel,t.issueLabel),issueNumber:Au(o.issueNumber,t.issueNumber),kicker:he(o.kicker,t.kicker),heading:he(o.heading,t.heading),deck:he(o.deck,t.deck),stats:Pv(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:_u(o.interests,t.interests),frequencyLabel:he(o.frequencyLabel,t.frequencyLabel),frequencies:Ev(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:Ru(o.autoOpen,t.autoOpen),autoOpenDelaySec:Bs(o.autoOpenDelaySec,Cv,t.autoOpenDelaySec),trigger:ja(gv,o.trigger,t.trigger),scrollPercent:Bs(o.scrollPercent,vv,t.scrollPercent),showOn:ja(bv,o.showOn,t.showOn),showOnPages:Fv(o.showOnPages),hideAfter:Tv(o),hideDays:Bs(o.hideDays,wv,t.hideDays),formSide:ja(Sv,o.formSide,t.formSide),valuePanelOnPhone:Ru(o.valuePanelOnPhone,t.valuePanelOnPhone),sectionAccent:o.sectionAccent,sectionCorners:o.sectionCorners,sectionCornerSides:o.sectionCornerSides,textStyles:Lu(o)}}import{jsx as Ds,Fragment as Lv,jsxs as Ov}from"react/jsx-runtime";import{createContext as Rv,useContext as Av}from"react";var Bv={mirrorHostStyles:!0,css:null,fontHrefs:[]},Du=Rv(Bv);function r5({value:e,children:o}){return Ds(Du.Provider,{value:e,children:o})}function Ns(){return Av(Du)}function Nu(){let{css:e,fontHrefs:o}=Ns();return Ov(Lv,{children:[o.map(t=>Ds("link",{rel:"stylesheet",href:t},t)),e?Ds("style",{"data-sf-canvas-css":"",children:e}):null]})}import{jsx as _v}from"react/jsx-runtime";import{createContext as Dv,useContext as Nv}from"react";var Mu=Dv(void 0);function s5({metadata:e,children:o}){return _v(Mu.Provider,{value:e,children:o})}var Hu=()=>Nv(Mu);import{jsx as ve,Fragment as ZC,jsxs as Ss}from"react/jsx-runtime";import{useCallback as Na,useEffect as Eo,useRef as Z2,useState as Q2}from"react";import{Button as J2,Tooltip as eH}from"efficient-shell/ui";import{SettingsSwitch as oH}from"efficient-easel/panel";import{PagesIcon as tH,StylesIcon as rH}from"efficient-easel/rail";import{PaletteIcon as aH}from"efficient-shell/icons/efficient";import{TemplateIcon as nH}from"efficient-easel/icons";import{Subtree as lH,TreeRow as QC}from"efficient-easel/tree";import{useEasel as sH}from"efficient-easel/easel";import{useEaselStrings as JC}from"efficient-easel/strings";import{createContext as Mv,useContext as Hv}from"react";var Ms=Mv(!1),c5=()=>Hv(Ms);import{jsx as ie,Fragment as Lh,jsxs as Il}from"react/jsx-runtime";import{Fragment as cO,useEffect as dO,useId as uO,useMemo as Oh,useState as Et}from"react";import{useScreenDocument as pO}from"efficient-easel/screen/components/ScreenDocumentContext";import{UiIcon as hl}from"efficient-easel/draw/client";import mO from"efficient-easel/screen/components/SidePanelHead";import{jsx as oe,jsxs as tt,Fragment as Tt}from"react/jsx-runtime";import{useEasel as xh}from"efficient-easel/easel";import{useState as Uf}from"react";import{jsx as Qt,jsxs as tI,Fragment as tP}from"react/jsx-runtime";import{useState as rI}from"react";import{SettingsDefaultReset as rP,SettingsField as aP}from"efficient-easel/panel";import{useEaselStrings as nP}from"efficient-easel/strings";import{AddIcon as lP}from"efficient-easel/icons";import{jsx as I,jsxs as Xo,Fragment as Do}from"react/jsx-runtime";import{cloneElement as gx,useId as jT,useRef as Yi,useState as En}from"react";import{useEasel as Kr,useSelectedFields as Xi}from"efficient-easel/easel";import{readHidable as Qo,hidableText as KT}from"efficient-easel/draw";import{FOLD_FIELD_MARKER as Zi,LINK_FIELD_MARKER as VT,MEDIA_FIELD_MARKER as YT,SCAFFOLD_FIELD_MARKER as XT,TEXT_FIELD_MARKER as _o,foldMetaOf as No,textFieldIdentifier as Mz}from"efficient-easel/draw";import{jsx as ju}from"react/jsx-runtime";import{useCallback as $v,useEffect as qv,useRef as jv,useState as Kv}from"react";import{useEasel as Vv}from"efficient-easel/easel";import{SettingsAction as Yv}from"efficient-easel/panel";function Hs(e){return typeof e=="number"&&Number.isFinite(e)}function p5(e,o){if(!Hs(e))return;let t=za(Io(e));if(Object.keys(t).length===0)return;let r=t[Ka];if(typeof r!="string")return t;let a=Ar(o)?Br(r,Lo(o)??[]):r;return{...t,[Wv]:a}}var Wv="--sf-section-radius",Ka="--sf-card-radius",pt=["tl","tr","br","bl"];function Lo(e){if(!Array.isArray(e))return null;let o=e.filter(t=>pt.includes(t));return pt.filter(t=>o.includes(t))}function Ar(e){let o=Lo(e);return o!==null&&o.length<pt.length}function Br(e,o){return pt.map(t=>o.includes(t)?e:"0").join(" ")}var Wu=[{value:"tl",label:"Top left"},{value:"tr",label:"Top right"},{value:"bl",label:"Bottom left"},{value:"br",label:"Bottom right"}];var zv="--sf-card-box-radius",Gv="--sf-site-card-radius",h5="sf-section-bleeds";function Ws(e){return typeof e=="number"&&Number.isFinite(e)}function g5(e,o){if(!Ws(e))return;let t=za(Io(e))[Ka];if(typeof t!="string")return;let r=Ar(o)?Br(t,Lo(o)??[]):t;return{[zv]:r}}function b5(e){let o=e[Ka];return typeof o=="string"?{[Gv]:o}:{}}function zu(e,o){let t=e.find(n=>n?.props?.id===o);if(!t)return[...e];let r=t.props?.cardCorners,a=t.props?.cardCornerSides;return e.map(n=>n?.props?.id===o?n:{...n,props:{...n.props,cardCorners:r,cardCornerSides:a}})}import{locateNode as Uv}from"efficient-easel/draw";function _r(e){if(!e)return null;let o=e.lastIndexOf(":");return o>0?{ownerId:e.slice(0,o),slot:e.slice(o+1)}:null}function Va(e,o,t){let r=_r(t?.zone),a=r?Uv(e,o,r.ownerId):null;return a&&r?{...a,slot:r.slot}:null}function Gu(e,o,t){let r=Va(e,o,t),a=r?.slot??"",n=r&&Array.isArray(r.item.props[a])?r.item.props[a]:[],s=t?.index??-1,i=s>=0?n[s]:void 0,f=i?.props?.id?String(i.props.id):"",u=Math.max(n.length-1,0);return!r||!f?{can:!1,reason:"unreachable",others:0}:n.length<=1?{can:!1,reason:"alone",others:u}:Ws(i?.props?.cardCorners)?{can:!0,others:u,zone:r.zone,index:r.index,data:{...r.item,props:{...r.item.props,[a]:zu(n,f)}}}:{can:!1,reason:"unset",others:u}}function Uu(e){return e.can?dt("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 $u(e){return dt("Applied to {n} card","Applied to {n} cards",e)}function qu(e,o){e.can&&o(e.zone,e.index,e.data)}import{useSectionOps as Xv}from"efficient-easel/screen/lib/puck/use-section-ops";var Zv=2200,Qv="apply-corners-to-siblings",Jv="Apply to all cards";function ew({plan:e,doneCount:o,onPress:t}){return ju(Yv,{id:Qv,label:l(Jv),note:Uu(e),disabled:!e.can,done:o!==null,doneLabel:$u(o??0),onPress:t})}function Ku(){let{appState:e,config:o}=Vv(f=>f),t=Xv(),[r,a]=Kv(null),n=jv(null);qv(()=>()=>{n.current&&clearTimeout(n.current)},[]);let s=Gu(o,e.data.content??[],e.ui.itemSelector),i=$v(()=>{qu(s,t.replaceComponent),s.can&&(a(s.others),n.current&&clearTimeout(n.current),n.current=setTimeout(()=>a(null),Zv))},[s,t]);return ju(ew,{plan:s,doneCount:r,onPress:i})}var Vu=1;function ow(e){return Io(e)}function D5(e){let o=ow(e);return o===null?{}:{"--sf-card-image-radius":`${o}px`}}var Yu=1,Xu="Corners";function tw(e){return Io(e)}function W5(e,o){let t=tw(e);if(t===null)return null;let r=`${t}px`;return{borderRadius:Ar(o)?Br(r,Lo(o)??[]):r}}var Oo={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]]}},zs=Object.keys(Oo),Qu=[2,3,4,6];function Ju(e){return typeof e!="string"||e===""?null:Oo[e]??null}function Zu(e,o){return o?6/e.acrossPhone:12/e.across}var rw="sf-wall--";function aw(e){return`${rw}${e}`}function G5(e){let o=Oo[e],t=`.${aw(e)}`,r=[],a=(n,s)=>{let i=[],f=n.length;n.forEach(([u,p],m)=>{i.push(`${t} > :nth-child(${f}n+${m+1}){grid-column:span ${u};grid-row:span ${p}}`)});for(let u=1;u<f;u+=1)i.push(`${t}:has(> :nth-child(${f}n+${u}):last-child) > :nth-last-child(-n+${u}){grid-column:span ${s};grid-row:span 1}`);return i};return r.push(`${t}{grid-template-columns:repeat(12,minmax(0,1fr))}`),r.push(...a(o.desktop,Zu(o,!1))),r.push("@media (max-width:800px){"),r.push(`${t}{grid-template-columns:repeat(6,minmax(0,1fr))}`),r.push(...a(o.phone,Zu(o,!0))),r.push("}"),r.join("")}var Ya=12,ep=1,nw=3;var lw=3;function Gs(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 sw(e){return Gs(e,1,Ya)??lw}function q5(e,o){return Gs(e,ep,nw)??(sw(o)===4?2:ep)}function j5(e){return e==null||e===""?null:Gs(e,1,Ya)}var K5="data-sf-span";function V5(e){if(!e)return!1;if(e.type==="Grid")return!0;if(e.type==="GalleryB"){if(Ju(e.props?.layout))return!1;let o=e.props?.columns;return o!=null&&o!==""}return!1}var ho=["top-left","top-center","top-right","left","center","right","bottom-left","bottom-center","bottom-right"],Xa="bottom-left";var Za={"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 iw(e){let o=ho.indexOf(mt(e));return{band:Math.floor(o/3),column:["start","center","end"][o%3]}}function fw(e){return 1+iw(e).band*6}function X5(e){return fw(e)+1}function mt(e){return ho.includes(e)?e:Xa}function Z5(e){let o=typeof e=="number"&&Number.isFinite(e)?e:0;return Math.max(-40,Math.min(40,Math.round(o)))}function Q5(e,o=60){let t=typeof e=="number"&&Number.isFinite(e)?e:o;return Math.max(30,Math.min(100,Math.round(t)))}function Us(e,o){let t=mt(o);return e.filter(r=>mt(r?.props?.placement)===t).length}function op(e){return`${Za[mt(e)]} already holds 4 boxes. Move one somewhere else first.`}function $s(e,o){let t=e.filter(r=>r?.props?.id!==o);return ho.map(r=>{let a=Us(t,r)>=4,n=Za[r];return a?{value:r,label:n,disabled:!0,title:op(r)}:{value:r,label:n}})}function Qa(e,o){let t=o===void 0?Xa:mt(o?.props?.placement);return Us(e,t)>=4?op(t):null}var Ja="HeroGroup";function cw(e){return ho.map(o=>{let t=Us(e,o);return{anchor:o,total:t,hidden:t-4}}).filter(o=>o.hidden>0)}function qs(e){let o=cw(e);return o.length===0?null:o.map(({anchor:t,total:r,hidden:a})=>{let n=Za[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 tp(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(js(e,r),t):null}function js(e,o){let t=ap(e,o);return t&&t.ownerType===uw?t.siblings:[]}function rp(e,o){let t=ap(e,o);return t?t.ancestorTypes.filter(r=>r===Ja).length:dw}var dw=1,uw="HeroSlide";function ap(e,o){let t=a=>Array.isArray(a)&&a.length>0&&a.every(n=>!!n&&typeof n=="object"&&typeof n.type=="string"),r=(a,n,s)=>{if(n>12||!a||typeof a!="object")return null;if(t(a)){if(a.some(i=>i?.props?.id===o))return{siblings:a,ownerType:s.at(-1)??null,ancestorTypes:s};for(let i of a){let f=i.type,u=r(i,n+1,[...s,String(f)]);if(u)return u}return null}for(let i of Object.values(a)){let f=r(i,n+1,s);if(f)return f}return null};return r(e,0,[])}import{jsx as pw}from"react/jsx-runtime";var mw="sf-hint-keep";function np({children:e}){return pw("span",{className:mw,children:e})}import{AdjustIcon as ZT,AlignLeftIcon as QT,EyeIcon as JT,AlignSeparateIcon as eF,AnimationIcon as bx,BackgroundIcon as oF,BorderAllIcon as tF,BlockSectionIcon as rF,CartIcon as aF,ColumnWidthsIcon as yx,ColumnsIcon as nF,CornerIcon as lF,DirectionDownIcon as sF,DirectionLeftIcon as iF,DirectionRightIcon as fF,DirectionUpIcon as cF,DollarIcon as dF,FinishIcon as uF,GapIcon as Sx,GridIcon as pF,GroundIcon as mF,HashIcon as Cx,HeightIcon as xF,ImageIcon as IF,ListIcon as hF,LocationIcon as Vi,NudgeIcon as gF,PaddingAllIcon as bF,PaddingBottomIcon as vx,PaddingLeftIcon as wx,PaddingRightIcon as kx,PaddingTopIcon as Tx,PageIcon as Fx,PhoneIcon as yF,PlacementIcon as SF,ProductSizeIcon as CF,StickyIcon as vF,RotateIcon as wF,SquareIcon as kF,TypeIcon as TF,WidthIcon as FF,WrapIcon as EF}from"efficient-easel/icons";import{jsx as re,Fragment as go,jsxs as bo}from"react/jsx-runtime";import{TitleIcon as xw,ButtonIcon as Iw,DollarIcon as hw,HashIcon as gw,LinkIcon as bw,NoteIcon as yw,TagIcon as Sw,TextLinesIcon as Cw}from"efficient-easel/icons";var lp={body:Cw,button:Iw,link:bw,label:Sw,number:gw,price:hw,note:yw,title:xw},sp={eyebrow:bo(go,{children:[re("path",{d:"M5 6.5h5"}),re("path",{d:"M5 12.5h14"}),re("path",{d:"M5 18h11"})]}),heading:bo(go,{children:[re("path",{d:"M6.5 5v14"}),re("path",{d:"M17.5 5v14"}),re("path",{d:"M6.5 12h11"})]}),intro:bo(go,{children:[re("path",{d:"M4 5.5v13"}),re("path",{d:"M8 7.5h12"}),re("path",{d:"M8 12h12"}),re("path",{d:"M8 16.5h8"})]}),value:bo(go,{children:[re("rect",{x:"2.5",y:"7",width:"19",height:"10",rx:"2"}),re("path",{d:"M6.5 12h7"})]}),name:bo(go,{children:[re("path",{d:"M6 3.5v17"}),re("path",{d:"M6 5h11.5l-2.6 3.6L17.5 12H6z"})]}),date:bo(go,{children:[re("rect",{x:"4",y:"5.5",width:"16",height:"15",rx:"2"}),re("path",{d:"M4 10.5h16"}),re("path",{d:"M9 3.2v4.4"}),re("path",{d:"M15 3.2v4.4"})]}),caption:bo(go,{children:[re("rect",{x:"3.5",y:"4.5",width:"17",height:"11",rx:"2"}),re("path",{d:"M3.5 12.8l4.2-3.2 3.6 2.8 3.4-2.4 5.8 4"}),re("path",{d:"M6.5 19.5h11"})]}),quote:bo(go,{children:[re("path",{d:"M9.5 5.5C7 7.2 5.5 9.7 5.5 12.8h4v5.7h-5v-5.7"}),re("path",{d:"M19.5 5.5c-2.5 1.7-4 4.2-4 7.3h4v5.7h-5v-5.7"})]}),tag:bo(go,{children:[re("rect",{x:"3",y:"5.5",width:"18",height:"13",rx:"2.5"}),re("path",{d:"M8 9.5h8"}),re("path",{d:"M12 9.5v5"})]}),meta:bo(go,{children:[re("path",{d:"M4 7h16"}),re("path",{d:"M4 14h3.5"}),re("path",{d:"M10.5 14h3"}),re("path",{d:"M17 14h3"})]})};function Ks({noun:e,size:o=14,strokeWidth:t=1.8,className:r,style:a}){let n=lp[e];return n?re("span",{className:r,style:{display:"inline-flex",...a},"aria-hidden":"true",children:re(n,{size:o})}):re("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:sp[e]})}var a3=Object.keys(lp);var n3=Object.keys(sp);var vw="#ffffff",ww=/^#[0-9a-fA-F]{6}$/;function Vs(e){return kw(e)?e:vw}function kw(e){return typeof e=="string"&&ww.test(e)}function s3(e){return{"--bg":Vs(e)}}var Ys=[{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}],Tw=Ys.filter(e=>e.ink);function Fw(e){let o={color:e.fg};for(let{role:t,token:r}of Tw)o[r]=e[t];return o}var Ew={fg:"var(--overlay-fg)",line:"color-mix(in srgb, var(--overlay-fg) 24%, transparent)",muted:"color-mix(in srgb, var(--overlay-fg) 76%, transparent)"},ip=Object.freeze(Fw(Ew));var en=-1,Pw="sf-section-accent",fp="Color",cp=new Set(["CategoryBar","DocTabs"]),d3=new Set(["Flex"]),Lw=0;function Xs(e){return e===en?null:typeof e=="number"&&Number.isInteger(e)&&e>=0?e:Lw}function u3(e){return e??en}function Ow(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 Ys)t[`--sf-sec-${r}`]=`var(${o}-${r}, var(--theme-${r}))`;return t}function p3(e){let o=Xs(e.sectionAccent);return o===null?null:{className:Pw,style:Ow(o)}}var Rw=["fade","rise","scale"],Zs="none",dp=[{label:"None",value:Zs},{label:"Fade",value:"fade"},{label:"Rise",value:"rise"},{label:"Scale",value:"scale"}];function I3(e){return Rw.includes(e)?e:null}var up="data-sf-anim",Dr="data-sf-anim-state";function h3(e){let o=()=>{};if(typeof IntersectionObserver>"u"||!e.getAttribute(up))return o;let t=window.innerHeight||document.documentElement.clientHeight;if(e.getBoundingClientRect().top<t)return o;e.setAttribute(Dr,"armed");let r=new IntersectionObserver(a=>{for(let n of a)if(n.isIntersecting){r.disconnect(),Aw(e);break}},{threshold:0});return r.observe(e),()=>{r.disconnect(),e.removeAttribute(Dr)}}function Aw(e){if(!e.getAttribute(up))return;e.removeAttribute(Dr),e.offsetWidth,e.setAttribute(Dr,"play");let o=t=>{t.target===e&&(e.removeAttribute(Dr),e.removeEventListener("animationend",o))};e.addEventListener("animationend",o)}var g3=cp;function Js(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(Qs(r,o,0))return a??{}}return null}function Qs(e,o,t){if(t>12||!e||typeof e!="object")return!1;if(Array.isArray(e))return e.some(a=>Qs(a,o,t+1));let r=e.props;return r&&typeof r=="object"&&r.id===o?!0:Object.values(e).some(a=>Qs(a,o,t+1))}import{SettingsDefaultReset as ze,SettingsField as se,SettingsGroupHead as PF,SettingsGroupSub as LF,SettingsBorder as OF,SettingsSegmented as RF,SettingsSides as AF,SettingsSidesEach as Ex,sidesStartEach as BF,SettingsSwitch as Px,borderSides as _F,borderStartEach as DF}from"efficient-easel/panel";import{FieldSelect as NF,ListField as MF}from"efficient-easel/fields";import{DisplayChips as HF}from"efficient-shell/ui";function zt(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 on(e,o){return zt(e)[o]!==!1}function ei(e,o,t){let r=zt(o)[t];return typeof r=="boolean"?r:on(e,t)}function pp(e){return Object.values(zt(e)).some(o=>o===!1)}function mp(e){return Object.keys(zt(e)).length>0}function xp(e,o,t){let r={...zt(e)};return t?delete r[o]:r[o]=!1,Object.keys(r).length?r:void 0}function Ip(e,o,t){return{...zt(e),[o]:t}}function S3(e,o,t){let r=on(e,t),a=ei(e,o,t);return r&&a?"":!r&&!a?"hidden":r?"max-[720px]:hidden":"min-[720px]:hidden"}import{AlignmentGrid as WF,Checkbox as rG,CornersInput as zF,DateTimePicker as GF,FOCAL_DEFAULT as aG,PictureTiles as Lx,PositionInput as UF,Slider as $F,Tooltip as Ox}from"efficient-shell/ui";import{jsx as xt,jsxs as _w}from"react/jsx-runtime";import{ColorPicker as Dw,HexInput as Nw}from"efficient-shell/ui";import{SettingsDefaultReset as Mw,SettingsField as Hw}from"efficient-easel/panel";import{typedHex as oi}from"efficient-easel/pick";import{typedHex as Bw}from"efficient-easel/pick";function hp(e){let o=new Set,t=[];return Qe(e).themes.forEach((r,a)=>{let n=[[l("Theme {n} main color",{n:a+1}),r.accent],[l("Theme {n} text color",{n:a+1}),r.text],[l("Theme {n} background",{n:a+1}),r.background]];for(let[s,i]of n){let f=i?Bw(i):null;!f||o.has(f)||(o.add(f),t.push({name:s,value:f}))}}),t}function no({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,after:s,ariaLabel:i}){return xt(zw,{value:e,onChange:o,label:l(i??t),id:r,caption:a,inherited:n,after:s})}function Ww(){let{theme:e}=q();return hp(e).map(o=>({value:o.value,label:o.name}))}function zw({value:e,onChange:o,label:t,id:r,caption:a,inherited:n,after:s}){let i=Ww(),f=e?null:oi(n??""),u=a!==void 0&&(!e||oi(a)!==oi(e))?a:null,p=m=>{m!==e&&o(m)};return _w("div",{className:"sf-colour",children:[xt(Dw,{id:r,value:e,onChange:p,label:t,presets:i,fallback:f??void 0,size:"sm",align:"end"}),u!==null?xt("span",{className:"sf-colour-caption",children:u}):xt("span",{className:"sf-colour-hexwrap",children:xt(Nw,{value:e||f||"",onChange:p,label:l("{label} hex code",{label:t}),placeholder:e||f?void 0:l("Not set"),className:f?"sf-colour-hex is-inherited":"sf-colour-hex",size:"sm"})}),s]})}function tn({label:e,icon:o,value:t,inherited:r,resetTo:a,onChange:n,onReset:s,hint:i}){let f=!!t;return xt(Hw,{label:e,icon:o,changed:f,action:no({value:t,inherited:f?void 0:r,onChange:n,label:e,after:xt(Mw,{words:Y()?.panel,label:e,changed:f,detail:a,onReset:s})}),hint:i})}import{jsx as Nr}from"react/jsx-runtime";import{useEffect as fk,useState as ck}from"react";import{markSelection as dk,useCaretEdit as uk}from"efficient-easel/copy";import{RevertIcon as pk}from"efficient-easel/icons";import{IconButton as mk,TextToolbar as xk,Tooltip as Ik}from"efficient-shell/ui";import{applyMark as W3,markupTools as z3,MARKUP_TOOLS as G3,COPY_FIELD_TOOLS as U3,STOREFRONT_MARKUP as $3,tokenizeInline as q3,stripInline as j3,isSafeLinkHref as K3}from"efficient-shell/markup";import{applyMark as Jw,markedAt as ek,markupTools as ok,MARKUP_TOOLS as tk,parseMarkup as rk,RETIRED_MARKS as ak,STOREFRONT_MARKUP as nk,tokenizeInline as Y3}from"efficient-shell/markup";var It=["highlight","strong","quiet"],ht={highlight:"Highlight",strong:"Bold",quiet:"Quiet"},yo={highlight:{kind:"wordHighlight",delimiter:"@@"},strong:{kind:"wordStrong",delimiter:"++"},quiet:{kind:"wordQuiet",delimiter:"^^"}},Sp=Object.fromEntries(It.map(e=>[yo[e].kind,e])),Cp="data-sf-ws",rn=["accent","text","labels"],vp={accent:"Accent",text:"Text",labels:"Labels"},Ro={accent:"var(--accent)",text:"var(--fg)",labels:"var(--fg-dim)"},Gw=80,Uw=120,$w=100,qw=900,jw=.5,Kw=3,Vw=-.1,Yw=.5,Xw=3,ti={font:null,size:null,weight:null,bold:null,italic:null,lineGap:null,textGap:null,colour:null},Zw={highlight:{...ti},strong:{...ti},quiet:{...ti}};function gp(e,o,t){return typeof e!="number"||!Number.isFinite(e)?null:Math.round(Math.min(Math.max(e,o),t))}function bp(e,o,t){if(typeof e!="number"||!Number.isFinite(e))return null;let r=10**Xw;return Math.round(Math.min(Math.max(e,o),t)*r)/r}function yp(e){return typeof e=="boolean"?e:null}function Qw(e){let o=typeof e?.font=="string"&&lo.some(r=>r.key===e.font)?e.font:null,t=typeof e?.colour=="string"&&rn.includes(e.colour)?e.colour:null;return{font:o,size:gp(e?.size,Gw,Uw),weight:gp(e?.weight,$w,qw),bold:yp(e?.bold),italic:yp(e?.italic),lineGap:bp(e?.lineGap,jw,Kw),textGap:bp(e?.textGap,Vw,Yw),colour:t}}function wp(e){let o={};for(let t of It)o[t]=e&&t in e&&e[t]?Qw(e[t]):{...Zw[t]};return o}function D3(e){let o=wp(e),t={};for(let r of It){let a=o[r],n=`--sf-ws-${r}`;if(a.font){let s=lo.find(i=>i.key===a.font);s&&(t[`${n}-font`]=`var(${s.cssVar})`)}a.size!==null&&(t[`${n}-size`]=`${a.size/100}em`),a.weight!==null&&(t[`${n}-weight`]=String(a.weight)),a.bold!==null&&(t[`${n}-weight-bold`]=a.bold?"700":"400"),a.italic!==null&&(t[`${n}-style`]=a.italic?"italic":"normal"),a.lineGap!==null&&(t[`${n}-line`]=String(a.lineGap)),a.textGap!==null&&(t[`${n}-track`]=`${a.textGap}em`),a.colour!==null&&(t[`${n}-color`]=Ro[a.colour])}return t}function N3(e){let o=e?.word_styles??void 0,t={};for(let r of It)o&&r in o&&(t[r]=o[r]??null);return wp(t)}var lk=new Set(["strong"]),kp=It.map(e=>({open:yo[e].delimiter,close:yo[e].delimiter,kind:yo[e].kind,...lk.has(e)?{wordStart:!0}:{}})),Z3=[{style:yo.highlight.kind,label:ht.highlight,title:`${ht.highlight} word style`},{style:yo.strong.kind,label:ht.strong,title:`${ht.strong} word style`},{style:yo.quiet.kind,label:ht.quiet,title:`${ht.quiet} word style`}],sk=new Set(kp.map(e=>e.open)),Gt=[...nk.filter(e=>!sk.has(e.open)),...kp];function ri(e){return e.bullet?"- ":e.number!=null?`${e.number}. `:""}function ai(e){return rk(typeof e=="string"?e:"",Gt)}var ik=tk.map(e=>e.style).filter(e=>!ak.includes(e)).filter(e=>Gt.some(o=>o.kind===e));function Tp(){return ok(ik)}var Fp=Object.fromEntries(It.map(e=>[yo[e].kind,yo[e].delimiter]));function Ep(e,o,t,r){let a=Fp[r];if(!a)return Jw(e,o,t,r);let n=e.slice(o,t),s=e.slice(Math.max(0,o-a.length),o),i=e.slice(t,t+a.length);if(s===a&&i===a)return{text:e.slice(0,o-a.length)+n+e.slice(t+a.length),selectionStart:o-a.length,selectionEnd:o-a.length+n.length};let f=n||"styled text";return{text:e.slice(0,o)+a+f+a+e.slice(t),selectionStart:o+a.length,selectionEnd:o+a.length+f.length}}function Pp(e,o,t,r){let a=Fp[r];return a?o>=a.length&&e.slice(o-a.length,o)===a&&e.slice(t,t+a.length)===a:ek(e,o,t,r)}function gt(e){return ai(e).map(o=>ri(o)+Lp(o.children)).join(`
3
+ `)}function Lp(e){return e.map(o=>o.kind==="text"?o.text:Lp(o.children)).join("")}var Op="Clear formatting";function hk(e,o,t){return dk(e,o,t,Ep)}function gk(e){let[o,t]=ck(null);return fk(()=>{let r=e.current?.ownerDocument??(typeof document>"u"?null:document);if(!r)return;let a=()=>{let n=e.current;if(!n||r.activeElement!==n)return;let s=n.selectionStart??n.value.length,i=n.selectionEnd??s;t(f=>f&&f.start===s&&f.end===i?f:{start:s,end:i})};return r.addEventListener("selectionchange",a),()=>r.removeEventListener("selectionchange",a)},[e]),[o,t]}function bk({target:e,value:o,onChange:t,disabled:r=!1,label:a="Formatting"}){let n=uk({target:e,onChange:t}),[s,i]=gk(e),f=x=>n(h=>{let b=hk(o,x,h);return i({start:b.selectionStart,end:b.selectionEnd}),b}),u=Tp(),p={};if(s)for(let x of u)p[x.style]=Pp(o,s.start,s.end,x.style);let m=gt(o);return Nr(xk,{offered:new Set(u.map(x=>x.style)),onMark:x=>f(x),pressed:p,disabled:r,"aria-label":l(a),className:"sf-markup-bar",last:Nr("span",{className:"sf-markup-clear",children:Nr(Ik,{content:l(Op),children:Nr(mk,{size:"sm",onMouseDown:x=>x.preventDefault(),onClick:()=>t(m),disabled:r||m===o,"aria-label":l(Op),children:Nr(pk,{size:14})})})})})}var ni=bk;import{deviceField as Ae}from"efficient-easel/screen/lib/puck/device-fields";import{NO_CONTROL_FIELD as qF,NoControlMark as Pn,noControlField as Vr}from"efficient-easel/screen/lib/puck/panel-no-control-mark";var li="__ownBox";function Rp(e){return!!e&&typeof e=="object"&&e[li]===!0}function Ao(e){return`${e}Phone`}function an(e,o,t){return typeof e=="number"?e:typeof o=="number"?o:t}var nn=void 0;import{jsx as ii,Fragment as Ck}from"react/jsx-runtime";import{createContext as vk,useContext as wk}from"react";var ln={ProductGrid:{source:{keep:["slug"]}},GalleryItem:{product:{keep:["code","finish"]}},FeaturedCover:{source:{keep:["slug"]}},LongRead:{source:{keep:["slug"]}}},sn={Events:["posts"],SubscribeBlogs:["posts"]};var yk=["anchor"],Sk=/^href$|Href$|^url$|Url$|^link$|^mailto$|^tel$/;function Mr(e){return yk.includes(e)||Sk.test(e)}var si={Gallery:{source:{verb:"snapshot",keep:[]}},ProductHero:{source:{verb:"snapshot",keep:[]}},SpecTable:{source:{verb:"snapshot",keep:[]},wheel:{verb:"reference"},finish:{verb:"reference"},size:{verb:"reference"}},CollectionCard:{collection:{verb:"snapshot",keep:[]}},FooterMenu:{menu:{verb:"snapshot",keep:[]}},MenuBlock:{menu:{verb:"snapshot",keep:[]}},ProductGrid:{design_codes:{verb:"reference"}},ProductRef:{code:{verb:"reference"},finish:{verb:"reference"}},FitmentTable:{wheel:{verb:"reference"}},GalleryItem:{fromProduct:{verb:"reference"}},Footprint:{"offices[].group":{verb:"groupKey"},"offices[].lat":{verb:"pii"},"offices[].lng":{verb:"pii"},"offices[].geocode":{verb:"pii"}}};si.ContactLocations={"locations[].lat":{verb:"pii"},"locations[].lng":{verb:"pii"},"locations[].mapsUrl":{verb:"pii"},"locations[].geocode":{verb:"pii"}};var d4=Object.fromEntries(Object.entries(ln).map(([e,o])=>[e,Object.keys(o)])),u4=Object.fromEntries(Object.entries(sn).map(([e,o])=>[e,[...o]]));import{NoControlMark as kk}from"efficient-easel/screen/lib/puck/panel-no-control-mark";var Ap=vk(!1);function Bp({children:e}){return ii(Ap.Provider,{value:!0,children:e})}function Tk(){return wk(Ap)}function _p({name:e,children:o}){return!Tk()||!e||Mr(e)?ii(Ck,{children:o}):ii(kk,{})}function Je(e,o,t){return e.some(r=>(typeof r=="object"?r.value:r)===t)?t:o}var fi="off",ci="none",di=[{label:"None",value:"off"},{label:"1, 2, 3",value:"plain"},{label:"01, 02, 03",value:"padded"},{label:"N\xB001, N\xB002",value:"numero"}],ui=[{label:"None",value:"none"},{label:"Hairline",value:"hairline"}];function S4(e){return Je(di,fi,e)}function C4(e){return Je(ui,ci,e)}var Dp="sf-card-index",Hr="sf-card-index",v4="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",Fk={plain:`counter(${Hr})`,padded:`counter(${Hr}, decimal-leading-zero)`,numero:`"N\xB0" counter(${Hr}, decimal-leading-zero)`};function w4(e,o){return o==="off"?"":`.${e}{counter-reset:${Hr}}.${e} .${Dp}{counter-increment:${Hr}}.${e} .${Dp}::before{content:${Fk[o]}}`}function k4(e){return e==="hairline"?"border border-line hover:border-accent":""}var Np=[{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 jF}from"efficient-easel/draw";import{jsx as So}from"react/jsx-runtime";import{SettingsDefaultReset as Pk,SettingsField as Hp}from"efficient-easel/panel";import{useSelectedFields as Lk}from"efficient-easel/easel";import{FOCAL_DEFAULT as Ok}from"efficient-shell/format";import{ImageIcon as Wp,PlayIcon as zp}from"efficient-easel/icons";import{MediaUploadField as Rk}from"efficient-shell/ui";import{useContext as Ak}from"react";import{ScreenDocumentContext as Bk}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as _k}from"efficient-easel/draw/client";import{requestMediaPick as Dk}from"efficient-easel/screen/lib/media-picker";import{useEaselHost as Nk}from"efficient-easel/screen/lib/host";import{backendOf as Ek}from"efficient-easel/screen/lib/session";var Me=Ek,Mp=e=>e.blocks;import{useEaselSession as Mk}from"efficient-easel/screen/lib/session-context";function Hk(e,o){let t=null;try{t=Lk()}catch{t=null}let r=_k()==="mobile";if(!e||!t||o&&!o(t.values??{}))return null;let a=typeof t.values?.[e]=="string"&&t.values[e]?String(t.values[e]):Ok,n=Ao(e),s=typeof t.values?.[n]=="string"&&t.values[n]?String(t.values[n]):void 0,i=t.onChange;return{phone:r,desktop:a,own:s,focus:r?s??a:a,set:f=>i(r?n:e,f),clear:()=>i(n,nn)}}function Gp({value:e,onChange:o,label:t,accept:r,placeholder:a,focusKey:n,focusWhen:s}){let i=Nk(),f=Mk(),u=l(t),p=r.startsWith("video"),m=Hk(p?void 0:n,s),x=Ak(Bk),h=S=>Dk(i,{accept:r,title:u,...S?{file:S}:{}}).then(w=>w?.url??null);if(x&&!x.capabilities.mediaEditing)return So(Hp,{label:u,icon:p?So(zp,{}):So(Wp,{}),children:So("div",{className:"sf-image-slot-inert",children:p?l("Templates don\u2019t store videos \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created."):l("Templates don\u2019t store images \u2014 this slot stays a placeholder. Each website picks its own after it\u2019s created.")})});let b=m?.phone&&e?So(Pk,{words:Y()?.panel,label:l("Image focus"),changed:!!m.own,detail:l("{value} on desktop",{value:m.desktop}),onReset:m.clear}):void 0;return So(Hp,{label:u,icon:p?So(zp,{}):So(Wp,{}),action:b,children:So("div",{style:{flex:"1 1 auto",minWidth:0},children:So(Rk,{value:e,onChange:o,onPick:h,accept:p?"video/*":"image/*",kind:p?"video":"image",placeholder:a===void 0?void 0:l(a),maxSizeBytes:Me(f).media.maxUploadBytes,...m?{focus:m.focus,onFocusChange:m.set}:{}})})})}import{jsx as Up}from"react/jsx-runtime";import{useId as Wk}from"react";import{FieldSelect as zk}from"efficient-easel/fields";import{SettingsField as Gk}from"efficient-easel/panel";function Uk(e){return e.map(({value:o,label:t,note:r})=>({value:o,label:t,...r?{meta:r}:{}}))}function $p({label:e,options:o,value:t,onChange:r,emptyLabel:a,icon:n,hint:s}){let i=Wk(),f=`${i}-label`,u=`${i}-button`,p=Array.isArray(t)?t:[];return Up(Gk,{label:l(e),labelId:f,icon:n,hint:s,children:Up(zk,{id:u,multiple:!0,value:p,options:Uk(o),onChange:r,placeholder:a===void 0?l("None"):l(a),ariaLabelledBy:`${f} ${u}`,inline:!0})})}import{jsx as Fe,jsxs as yt,Fragment as m0}from"react/jsx-runtime";import{useCallback as x0,useContext as I0,useEffect as h0,useId as nm,useRef as rm,useState as am}from"react";import{ThemeIcon as g0}from"efficient-easel/icons";import{SettingsField as b0}from"efficient-easel/panel";import{ScreenDocumentContext as y0}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as j,jsxs as jo,Fragment as Zk}from"react/jsx-runtime";import{SettingsField as xi,SettingsGroupSub as Qk}from"efficient-easel/panel";import{Button as mi}from"efficient-shell/ui";import{jsx as qo,jsxs as qp}from"react/jsx-runtime";import{SettingsField as $k}from"efficient-easel/panel";import{AccentIcon as qk}from"efficient-easel/icons";import{Tooltip as jk}from"efficient-shell/ui";function pi(e){return xo(e).background}function Kk(e){let o=$o(e.accent,pi(e));return o===null?null:{ratio:o,grade:Ht(o)}}function Vk(e){let o=pi(e),t=$o(e.accent,o);return t===null?[]:ru(e.accent).filter(r=>{let a=$o(r,o);return a!==null&&a>t&&Ht(a)==="good"})}var Yk={good:"Easy to read","large-only":Mt["large-only"],hard:Mt.hard};function jp({value:e,onChange:o}){let t=Kk(e),r=t?.grade,a=t&&t.grade!=="good"?Vk(e):[];return qo($k,{label:l("Main color"),icon:qo(qk,{}),hint:t?l(Yk[t.grade]):void 0,action:qo(no,{value:e.accent,onChange:n=>o({...e,accent:n}),label:l("Main color")}),children:a.length>0?qo("div",{className:"w-full min-w-0",children:qp("div",{className:"sf-readability",children:[qo("p",{className:"sf-readability-advice",children:Xk(r,!0)}),qo("div",{className:"sf-readability-suggestions",children:a.map(n=>{let s=$o(n,pi(e));return qo(jk,{content:l("Use {colour}",{colour:n.toUpperCase()}),children:qp("button",{type:"button",className:"sf-readability-suggestion",onClick:()=>o({...e,accent:n}),children:[qo("span",{className:"sf-readability-chip",style:{background:n},"aria-hidden":!0}),s?`${s.toFixed(1)}:1`:n.toUpperCase()]})},n)})})]})}):null})}function Xk(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 Jk,GroundIcon as e0,LayoutIcon as o0,SquareIcon as t0,TextSmallIcon as r0,TypeIcon as Kp}from"efficient-easel/icons";var Wr=e=>l("Theme {n}",{n:e+1});function Vp({colors:e}){let o=xo(e),t=Rr(e)??o.accent;return jo("span",{className:"sf-theme-page",style:{background:o.background,color:o.text},"aria-hidden":!0,children:[j("span",{className:"sf-theme-eyebrow",style:{color:o.muted},children:l("label")}),jo("span",{className:"sf-theme-headline",children:[l("Heading")," ",j("span",{style:{color:o.accent},children:l("accent")})]}),j("span",{className:"sf-theme-body",children:l("body text")}),jo("span",{className:"sf-theme-row",children:[j("span",{className:"sf-theme-btn",style:{background:t,color:Fs(e,o.accent)},children:l("button")}),j("span",{className:"sf-theme-mini",style:{background:o.surface,borderColor:o.line},children:l("card")})]})]})}var Ii={"Text color":j(Kp,{}),"Label color":j(r0,{}),Background:j(e0,{}),"Panels & cards":j(o0,{}),Borders:j(t0,{}),"Button color":j(Jk,{}),"Button text color":j(Kp,{})};function a0({label:e,colorKey:o,value:t,onChange:r,idPrefix:a="sf-theme-ink"}){let n=`${a}-${o}`;return j(xi,{label:l(e),icon:Ii[e],htmlFor:n,action:j(no,{id:n,label:l(e),value:t,onChange:s=>r(o,s)})})}function n0({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 j(xi,{label:l("Button color"),icon:Ii["Button color"],htmlFor:a,action:j(no,{id:a,label:l("Button color"),value:s,caption:n?s:l("Main"),onChange:t})})}function l0({colors:e,accent:o,onChange:t,idPrefix:r="sf-theme-ink"}){let a=`${r}-button-ink`,n=au(e),s=Fs(e,o),i=Rr(e)??o,f=Ht($o(s,i)??0);return j(xi,{label:l("Button text color"),icon:Ii["Button text color"],hint:n&&f!=="good"?l("{grade} on the button",{grade:l(Mt[f])}):void 0,htmlFor:a,action:j(no,{id:a,label:l("Button text color"),value:s,caption:n?s:l("Auto"),onChange:t})})}var s0=[{colour:!0},{label:"Text color",key:"text"},{label:"Label color",key:"muted"},{button:!0},{buttonInk:!0},{group:"Surfaces"},{label:"Background",key:"background"},{label:"Panels & cards",key:"surface"},{label:"Borders",key:"line"}];function hi({colors:e,onChange:o,idPrefix:t}){let r=xo(e);return j(Zk,{children:s0.map(a=>"colour"in a?j(jp,{value:e,onChange:o},"colour"):"group"in a?j(Qk,{title:l(a.group)},a.group):"button"in a?j(n0,{value:e.button,accent:r.accent,onChange:n=>o({...e,button:n}),idPrefix:t},"button"):"buttonInk"in a?j(l0,{colors:e,accent:r.accent,onChange:n=>o({...e,buttonInk:n}),idPrefix:t},"buttonInk"):j(a0,{label:a.label,colorKey:a.key,value:r[a.key],onChange:(n,s)=>o({...e,[n]:s}),idPrefix:t},a.key))})}function fn({index:e,colors:o,selected:t,role:r="radio",open:a,editable:n=!0,onPick:s,onEdit:i,onChangeColors:f}){let u=xo(o),p=Wr(e),m=e<Ts.length&&!o.brandInk?Ts[e]:null,x=Ht($o(u.text,u.background)??0),h=m?JSON.stringify(o)!==JSON.stringify(m):!1,b=a!==void 0;return jo("div",{className:`sf-theme-card${t?" is-selected":""}`,children:[j("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:j(Vp,{colors:o})}),jo("div",{className:"sf-theme-foot",children:[j("span",{className:"sf-theme-name",children:p}),x!=="good"&&j("span",{className:"sf-theme-warn",children:l(Mt[x])}),n&&i&&j(mi,{variant:a?"primary":"secondary",size:"sm",className:"sf-theme-edit","aria-expanded":b?a:void 0,"aria-controls":b?`sf-theme-colours-${e}`:void 0,"aria-label":a?l("Done {name}",{name:p}):l("Edit {name}",{name:p}),onClick:i,children:a?l("Done"):l("Edit")})]}),a&&jo("div",{id:`sf-theme-colours-${e}`,className:"sf-theme-colours",children:[j(hi,{colors:o,onChange:S=>f?.(S)}),m&&j(mi,{variant:"link",size:"sm",className:"sf-theme-reset",disabled:!h,onClick:()=>f?.({...m}),children:h?l("Reset {name} to the preset",{name:p}):l("Not changed")})]})]})}function Yp({colors:e,name:o,nameId:t,open:r,menuId:a,labelId:n,buttonRef:s,onClick:i,onKeyDown:f,onEdit:u}){return jo("div",{className:"sf-secttheme-btn",children:[j("button",{ref:s,type:"button",className:"sf-theme-pick","aria-expanded":r,"aria-controls":a,"aria-labelledby":`${n} ${t}`,onClick:i,onKeyDown:f,children:e?j(Vp,{colors:e}):j("span",{className:"sf-secttheme-nopreview","aria-hidden":"true"})}),jo("div",{className:"sf-theme-foot",children:[j("span",{id:t,className:"sf-theme-name",children:o}),u&&j(mi,{variant:"secondary",size:"sm",className:"sf-theme-edit","aria-label":l("Edit {name}",{name:o}),onClick:u,children:l("Edit")}),j("button",{type:"button",className:"sf-secttheme-caret","aria-hidden":"true",tabIndex:-1,onClick:i,children:j("span",{className:"sf-multi-caret",children:"\u25BE"})})]})]})}import{useCallback as vi,useEffect as em,useRef as un}from"react";import{currentEaselSession as c0}from"efficient-easel/screen/lib/session";import{useEaselSession as d0}from"efficient-easel/screen/lib/session-context";import{useSyncExternalStore as i0}from"react";var Zp,gi=null,bt=null,cn=0,bi=new Set;function yi(e){Zp=e;for(let o of bi)o()}function Si(e){gi=e,cn+=1,bt&&clearTimeout(bt),bt=null,yi(void 0)}function I6(e){cn+=1,yi(e)}function dn(e=250){gi&&(bt&&clearTimeout(bt),bt=setTimeout(()=>{bt=null;let o=gi;if(!o)return;let t=++cn;o().then(r=>{t===cn&&yi(r)}).catch(()=>{})},e))}function Xp(){return Zp}function f0(e){return bi.add(e),()=>{bi.delete(e)}}function Qp(){return i0(f0,Xp,Xp)}var Ci=new Set;function Jp(e){return Ci.add(e),()=>{Ci.delete(e)}}async function g6(){let e=(await Promise.allSettled([...Ci].map(async o=>o()))).find(o=>o.status==="rejected");if(e)throw e.reason}import{WebsiteBackendError as u0}from"efficient-easel/screen/lib/backend-error";function om(e=c0()){return(o,t,r)=>{let a=Me(e).theme;return a?a.update(o,r?{siteId:r}:void 0):Promise.reject(new u0("invalid","This backend stores no site theme."))}}function tm(e){return e.themeFromDocument?{status:"skipped",reason:"template"}:e.token?null:{status:"skipped",reason:"no-token"}}async function p0(e,o=om()){let{themeFromDocument:t,token:r,siteId:a,patch:n}=e,s=tm({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=un(null),n=un({}),s=d0(),i=un(r);i.current=r;let f=un(null),u=vi(x=>{if(x.status==="skipped"){let h=`skipped:${x.reason}`;if(f.current===h)return;f.current=h}else f.current=null;i.current?.(x)},[]),p=vi(async()=>{a.current&&(clearTimeout(a.current),a.current=null);let x=n.current;n.current={};let h=await p0({themeFromDocument:e,token:o?.current,siteId:t,patch:x},om(s));return u(h),h.status==="saved"&&dn(),h.status==="failed"&&(n.current={...x,...n.current}),h},[e,o,t,u,s]),m=vi((x,h=!1)=>{let b=tm({themeFromDocument:e,token:o?.current});if(b){u(b);return}n.current={...n.current,...x},a.current&&clearTimeout(a.current),h?p():a.current=setTimeout(()=>{p()},500)},[e,o,p,u]);return em(()=>()=>{p()},[p]),em(()=>Jp(async()=>{if(!a.current&&Object.keys(n.current).length===0)return;let x=await p();if(x.status==="failed")throw x.error}),[p]),{persist:m,flush:p}}var S0="Follow the page",H6="Follow the slideshow",C0=e=>l("Editing {name} changes it everywhere.",{name:e});function v0({colors:e}){if(!e)return Fe("span",{className:"sf-secttheme-chip sf-secttheme-chip--none","aria-hidden":"true"});let o=xo(e);return yt("span",{className:"sf-secttheme-chip","aria-hidden":"true",children:[Fe("i",{style:{background:o.background}}),Fe("i",{className:"sf-secttheme-chip-accent",style:{background:o.accent}})]})}function w0({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(m0,{children:[yt("button",{type:"button",role:"option","aria-selected":o===null,className:`sf-secttheme-item${o===null?" is-active":""}`,onClick:()=>t(en),children:[Fe(v0,{}),Fe("span",{className:"sf-secttheme-name",children:l(n)})]}),Fe("div",{className:"sf-secttheme-sep",role:"presentation"})]}),o!==null&&e[o]&&Fe("p",{className:"sf-secttheme-oncard",role:"presentation",children:l("{name} is on this section",{name:Wr(o)})}),e.map((s,i)=>i===o?null:Fe(fn,{role:"option",index:i,colors:s,selected:!1,onPick:()=>t(i),onEdit:()=>r(i)},i))]})}function k0({index:e,colors:o,onChange:t,onDone:r}){let a=Wr(e),n=nm();return yt("div",{className:"sf-secttheme-sheet",children:[yt("div",{className:"sf-secttheme-sheet-head",children:[Fe("span",{children:a}),Fe("button",{type:"button",className:"sf-secttheme-done",onClick:r,children:l("Done")})]}),Fe("div",{className:"sf-secttheme-rows",children:Fe(hi,{colors:o,onChange:t,idPrefix:n})}),Fe("p",{className:"sf-secttheme-warn",children:C0(a)})]})}function lm({value:e,onChange:o,followLabel:t,hint:r}){let{theme:a,setTheme:n}=q(),s=Qe(a),i=I0(y0),f=i?.tokenRef,u=i?.siteId??null,p=!i?.capabilities?.hasSiteTheme,{persist:m,flush:x}=Ut({themeFromDocument:p,tokenRef:f,siteId:u}),h=Qe(s),b=h.themes,S=Xs(e),w=S!==null?b[S]:void 0,F=w??(b.length?Nt(h):void 0),[v,g]=am(!1),[y,P]=am(null),k=rm(null),O=rm(null),E=nm(),B=x0(()=>{g(!1),P(null)},[]);h0(()=>{if(!v&&y===null)return;let N=H=>{k.current&&!k.current.contains(H.target)&&(x(),B())};return document.addEventListener("mousedown",N),()=>document.removeEventListener("mousedown",N)},[v,y,B,x]);let $=N=>{o(N),B()},K=N=>{if(y===null)return;let H=b.map((ae,le)=>le===y?N:ae),A={...h,themes:H};n(A),m({selected_preset:A.selected,theme_presets:A.themes})};return yt("div",{className:"sf-secttheme",ref:k,children:[Fe(b0,{label:l("Theme"),icon:Fe(g0,{}),labelId:`${E}-label`,hint:r,children:Fe(Yp,{colors:F,onEdit:S!==null?()=>{P(S),g(!1)}:void 0,name:w?Wr(S):l(t??S0),nameId:`${E}-value`,labelId:`${E}-label`,open:v,menuId:E,buttonRef:O,onClick:()=>{P(null),g(N=>!N)},onKeyDown:N=>{N.key==="Escape"&&(v||y!==null)&&(N.preventDefault(),B())}})}),v&&y===null&&Fe("div",{onKeyDown:N=>{N.key==="Escape"&&(N.preventDefault(),B(),O.current?.focus())},children:Fe(w0,{themes:b,value:S,onPick:$,onEdit:N=>{P(N),g(!1)},menuId:E,followLabel:t})}),y!==null&&b[y]&&Fe(k0,{index:y,colors:b[y],onChange:K,onDone:()=>{x(),B(),O.current?.focus()}})]})}import{jsx as sm}from"react/jsx-runtime";import{useId as T0}from"react";import{FieldSelect as F0}from"efficient-easel/fields";import{SettingsField as E0}from"efficient-easel/panel";function P0(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 j6({label:e,options:o,fallback:t,value:r,onChange:a,placeholder:n,bare:s=!1,icon:i}){let f=T0(),u=`${f}-label`,p=`${f}-button`,m=r??"",x=o.some(w=>w.value===m)?m:t,h=l(e),b=n===void 0?void 0:l(n),S=sm(F0,{id:p,value:x,options:P0(o),onChange:a,placeholder:b,searchPlaceholder:b,...s?{ariaLabel:h}:{ariaLabelledBy:`${u} ${p}`},searchable:!0,groupCount:!0,inline:!0});return s?S:sm(E0,{label:h,labelId:u,icon:i,children:S})}import{jsx as Ct,jsxs as B0}from"react/jsx-runtime";import{SettingsField as Im}from"efficient-easel/panel";import{LinkIcon as _0}from"efficient-easel/icons";import{LinkPicker as D0,TextLinkField as N0}from"efficient-shell/ui";import{useEffect as xm,useMemo as xn,useRef as M0,useState as mn}from"react";import{currentEaselSession as L0}from"efficient-easel/screen/lib/session";function im(){return L0().auth.token}import{currentEaselSession as H0}from"efficient-easel/screen/lib/session";import{useScreenDocument as W0}from"efficient-easel/screen/components/ScreenDocumentContext";var pn="homepage";function St(e){return(e??"").toLowerCase().replace(/[^a-z0-9]+/g,"-").replace(/^-+|-+$/g,"")}var fm=[{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 cm(e){return e.offersCommerce&&e.offersService?fm:fm.filter(o=>!o.needs||(o.needs==="commerce"?e.offersCommerce:e.offersService))}function zr(e){return e===pn?"/":`/${e}`}function dm(e){return`/journal/${e}`}function eW(e){return`/wheels/${e}`}function um(e,o){return`${zr(e)}#${o}`}function O0(e){return St(e)}function R0(e){return typeof e=="string"?e.trim():e&&typeof e=="object"&&typeof e.text=="string"?e.text.trim():""}function pm(...e){let o=new Set,t=[];for(let r of e)for(let a of r?.content??[]){let n=R0(a?.props?.anchor);if(!n)continue;let s=O0(n);!s||o.has(s)||(o.add(s),t.push({slug:s,name:n}))}return t}function oW(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 A0=()=>({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 mm(e,o,t){if(!e)return"page";if(e.startsWith("/journal/"))return"blog";if(e.startsWith("/wheels/"))return"product";if(e.includes("#")){let r=e.slice(0,e.indexOf("#"));if(r===""||r==="/"||o.includes(r))return"anchor"}return e==="/"||o.includes(e)||t&&t.listingPaths.includes(t.targetOf(e))?"page":"custom"}function wi(e,o){let t=A0(),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:pm(...p.docs).map(m=>({value:um(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:dm(m.slug),label:m.title||m.slug})),placeholder:t.choosePost};case"product":return{type:"select",options:e.products.map(m=>({value:m.href,label:m.name||m.href})),placeholder:t.chooseProduct};case"custom":return{type:"text"}}},f=cm(e.offers).map(p=>({value:p.value,label:l(p.label),target:i(p.value),...p.value==="anchor"?{hint:t.sectionHint}:{},...p.value==="blog"||p.value==="product"?{hideWhenEmpty:!0}:{}}));if(!o)return{kinds:f,rules:{kindOf:p=>mm(p,n),targetOf:p=>p,readFilter:()=>null,withFilter:p=>p}};let u=p=>{let m=o.withFilter(p,null);return o.listingPaths.includes(m)?m:p};return{kinds:f,rules:{kindOf:p=>mm(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}}import{useEaselSession as z0}from"efficient-easel/screen/lib/session-context";function hm(e){let o=new Map;return(t="")=>{let r=im(),a=o.get(t);if(!a||a.token===null&&r!==null){let n=r||!H0().usesBridgedToken?e(r??"",t).catch(()=>[]):Promise.resolve([]);return o.set(t,{promise:n,token:r}),n}return a.promise}}var G0=hm(async(e,o)=>{let t=o?{siteId:o}:void 0,{pages:r}=Me();return r.linkTargets?r.linkTargets(t):(await r.list(t)).map(a=>({id:a.id,slug:a.slug,label:a.label,layout:null}))}),U0=hm(async(e,o)=>await Me().blog?.posts(o?{siteId:o}:void 0)??[]);function $0({value:e,onChange:o,label:t="Link",data:r,filters:a}){let n=xn(()=>wi(r,a),[r,a]),s=l(t);return Ct(Im,{label:s,icon:Ct(_0,{}),children:Ct(D0,{value:e,onChange:i=>o(i),kinds:n.kinds,rules:n.rules,filtersFor:n.filtersFor,label:s})})}function gm(){let{siteId:e,capabilities:o}=W0(),{offersCommerce:t,hasBlog:r}=o,[a,n]=mn([]),[s,i]=mn([]),[f,u]=mn([]),[p,m]=mn(null),x=z0().chrome,h=x?.products?.list,b=x?.linkFilters,S=b?void 0:x?.linkRow,w=M0(!0);xm(()=>(w.current=!0,()=>{w.current=!1}),[]),xm(()=>{let g=!0;return G0(e??void 0).then(y=>g&&w.current&&n(y)),r&&U0(e??void 0).then(y=>g&&w.current&&i(y)),t&&h?.().then(y=>g&&w.current&&u(y)),t&&b?b.load(e).catch(()=>null).then(y=>g&&w.current&&m(()=>y)):m(null),()=>{g=!1}},[e,t,r,h,b]);let F=xn(()=>({pages:a.filter(g=>!Bu(g.slug)).map(g=>({slug:g.slug,title:g.label,docs:[g.layout]})),posts:r?s.map(g=>({slug:g.slug,title:g.title})):[],products:t?f.map(g=>({href:g.href,name:g.name})):[],offers:{offersCommerce:t,offersService:r}}),[a,s,f,t,r]),v=xn(()=>p?p(F.pages):null,[p,F]);return{data:F,filters:v,pages:a,offersCommerce:t,HostLinkRow:S}}function yW({label:e,icon:o,text:t,onTextChange:r,link:a,onLinkChange:n}){let{data:s,filters:i}=gm(),f=xn(()=>wi(s,i),[s,i]),u=l(e);return Ct(Im,{label:u,icon:o,children:Ct(N0,{label:u,text:t,onTextChange:r,link:a,onLinkChange:p=>n(p),kinds:f.kinds,rules:f.rules,filtersFor:f.filtersFor})})}function bm({value:e,onChange:o,label:t="Link"}){let r=typeof e=="string"?e:"",{data:a,filters:n,pages:s,offersCommerce:i,HostLinkRow:f}=gm(),u=a.pages.map(m=>zr(m.slug)),p=i&&f&&(r==="/"||u.includes(r))?f:void 0;return B0("div",{children:[Ct($0,{value:r,onChange:o,label:t,data:a,filters:n}),p&&Ct(p,{value:r,onChange:o,pages:s})]})}import{UiIcon as ux}from"efficient-easel/draw/client";var so={min:10,max:200,step:10};function ym(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 q0="sf-pad-top-phone",j0="sf-pad-bottom-phone",K0="--sf-pad-t-phone",V0="--sf-pad-b-phone",Y0="sf-pad-left-phone",X0="sf-pad-right-phone",Z0="--sf-pad-l-phone",Q0="--sf-pad-r-phone";function vm(e,o,t,r,a,n,s,i){let f=ym(e,o)??{},u={},p=["sf-section-pad"];typeof t=="number"&&(p.push(q0),u[K0]=`${t}px`),typeof r=="number"&&(p.push(j0),u[V0]=`${r}px`);let m={};return typeof a=="number"&&(m.paddingLeft=a),typeof n=="number"&&(m.paddingRight=n),typeof s=="number"&&(p.push(Y0),u[Z0]=`${s}px`),typeof i=="number"&&(p.push(X0),u[Q0]=`${i}px`),p.length===1&&ym(e,o)===void 0&&!Object.keys(m).length?null:{className:p.join(" "),style:{...f,...m,...u}}}var Sm=e=>typeof e=="number"?e:void 0;function Cm(e,o,t){let r=Sm(e)??t,a=Sm(o);return r===void 0?a:a===void 0?r:r+a}function CW(e,o={}){return{top:Cm(e.padTop,e.sectionPaddingTop,o.top),bottom:Cm(e.padBottom,e.sectionPaddingBottom,o.bottom)}}function vW(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 wW(e){return vm(e.top,e.bottom,e.topPhone,e.bottomPhone,e.left,e.right,e.leftPhone,e.rightPhone)}function kW(e,o){let t=r=>typeof r=="number"?r+o:void 0;return vm(t(e.top),t(e.bottom),t(e.topPhone),t(e.bottomPhone),e.left,e.right,e.leftPhone,e.rightPhone)}var J0=["auto","fixed","screen"],eT=["px","%"];var oT="var(--sf-header-h, 88px)",ki={min:40,max:2e3,step:10,fallback:600},Ti={min:10,max:200,step:5,fallback:100},tT="sf-section-minh",wm={base:"--sf-section-minh",small:"--sf-section-minh-s"},Tm=e=>typeof e=="string"&&J0.includes(e),rT=e=>typeof e=="string"&&eT.includes(e);function In(e){let o=Tm(e.sectionHeightMode)?e.sectionHeightMode:"auto",t=o==="screen"?"%":rT(e.sectionHeightUnit)?e.sectionHeightUnit:"px",r=o==="screen"?Ti.fallback:ki.fallback,a=typeof e.sectionHeightValue=="number"?e.sectionHeightValue:r;return{mode:o,value:a,unit:t}}function Fm(e){let{mode:o,value:t,unit:r}=In(e);if(o==="auto")return;if(o==="fixed"&&r==="px")return[`${t}px`,null];let a=t/100,n=s=>o==="screen"?`(100${s} - ${oT})`:`100${s}`;return[`calc(${n("vh")} * ${a})`,`calc(${n("svh")} * ${a})`]}function aT(e){let o=Fm(e);if(!o)return;let[t,r]=o;return{display:"grid",[wm.base]:t,...r?{[wm.small]:r}:{}}}var FW=new Set(["Hero","HeroSingle","IntroBleed","CategoryBar","DocTabs"]),$t="Height",nT="sf-section-minh-phone",km={base:"--sf-section-minh-p",small:"--sf-section-minh-ps"};function Fi(e){return Tm(e.sectionHeightModePhone)}function EW(e){return In({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone})}function lT(e){let o=aT(e),t=Fi(e)?Fm({sectionHeightMode:e.sectionHeightModePhone,sectionHeightValue:e.sectionHeightValuePhone,sectionHeightUnit:e.sectionHeightUnitPhone}):void 0;if(!o&&!t)return null;let r=[tT],a={...o??{}};return t&&(r.push(nT),a[km.base]=t[0],t[1]&&(a[km.small]=t[1])),{className:r.join(" "),style:a}}function PW(e){return lT(e)!==null}var hn="Stick to top",Ko={min:0,max:200,step:4,fallback:0},sT="sf-section-stick",iT="sf-section-stick-phone-on",fT="sf-section-stick-phone-off",Em={desktop:"--sf-stick-distance",phone:"--sf-stick-distance-phone"},OW=new Set(["CategoryBar","DocTabs","IntroBleed"]);function Pm(e){let o=typeof e=="number"&&Number.isFinite(e)?e:Ko.fallback;return Math.min(Ko.max,Math.max(Ko.min,Math.round(o)))}function Ei(e){return typeof e.stickTopPhone=="boolean"}function Pi(e){let o=e.stickTop===!0,t=Pm(e.stickTopDistance),r=Ei(e),a=r?e.stickTopPhone===!0:o,n=r?Pm(e.stickTopDistancePhone):t;return{desktop:o,desktopDistance:t,phone:a,phoneDistance:n,ownPhone:r}}function RW(e){let o=Pi(e);if(!o.desktop&&!o.phone)return null;let t=[sT],r={};return o.desktop&&(r[Em.desktop]=`${o.desktopDistance}px`),(o.ownPhone||o.phone!==o.desktop)&&(t.push(o.phone?iT:fT),o.phone&&(r[Em.phone]=`${o.phoneDistance}px`)),o.desktop||t.push("sf-section-stick-desktop-off"),{className:t.join(" "),style:r}}var cT=["column","row","tabs"],Lm="Direction",dT={column:"Stacked",row:"One row",tabs:"Tabs"},Om={Flex:cT,HeroGroup:["column","row"]},uT={Flex:"row",HeroGroup:"column"},pT={column:"flex-col",row:"flex-row",tabs:"flex-col"};function gn(e,o){return Om[e].includes(o)?o:uT[e]}function BW(e,o){return pT[gn(e,o)]}function Rm(e){return Om[e].map(o=>({label:dT[o],value:o}))}var Li=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"Space between",value:"between"},{label:"End",value:"end"}],_m=[{label:"Start",value:"start"},{label:"Center",value:"center"},{label:"End",value:"end"},{label:"Stretch",value:"stretch"}],Dm="Wrap",Oi=[{label:"Wrap",value:"wrap"},{label:"No wrap",value:"nowrap"}],Am={start:"justify-start",center:"justify-center",between:"justify-between",end:"justify-end"},Bm={start:"items-start",center:"items-center",end:"items-end",stretch:"items-stretch"};function DW(e,o){let t=typeof e=="string"&&e in Am?Am[e]:"",r=typeof o=="string"&&o in Bm?Bm[o]:"";return[t,r].filter(Boolean).join(" ")}function NW(e){return e===!0||e==="wrap"?"flex-wrap":""}var Ri="Block widths",bn=[{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]}],Gr="[&>*]:min-w-0 [&>*]:flex-1 [&>*]:basis-0",mT={equal:Gr,bigLeft:`${Gr} [&>*:first-child]:min-[800px]:grow-[2]`,bigRight:`${Gr} [&>*:last-child]:min-[800px]:grow-[2]`,biggerLeft:`${Gr} [&>*:first-child]:min-[800px]:grow-[3]`,biggerRight:`${Gr} [&>*:last-child]:min-[800px]:grow-[3]`};function MW(e){return typeof e=="string"?mT[e]??"":""}var Nm="Columns on phone",Ai=1,Mm=3,xT={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 HW(e){let o=Number(e);return xT[o]??"max-[800px]:flex-col"}var Hm="Block spacing",Bi=[{label:"Each block",value:"each"},{label:"Gap only",value:"gap"}],IT="sf-box-gap-only";function WW(e){return e==="gap"?IT:""}var hT=["solid","dashed","dotted"],gT=["top","right","bottom","left"],GW="sf-section-border",UW="sf-section-border-self",bT=/^#(?:[0-9a-f]{3}|[0-9a-f]{4}|[0-9a-f]{6}|[0-9a-f]{8})$/i,Wm=e=>typeof e=="number"&&Number.isFinite(e)?`${Math.min(20,Math.max(0,Math.round(e)))}px`:void 0;function zm(e,{phone:o=!1}={}){if(!e||typeof e!="object")return;let t=o?"-phone":"",r={};for(let a of gT){let n=Wm(e[a])??Wm(e.width);n!==void 0&&(r[`--sf-border-${a}-width${t}`]=n)}return typeof e.style=="string"&&hT.includes(e.style)&&(r[`--sf-border-style${t}`]=e.style),typeof e.color=="string"&&bT.test(e.color)&&(r[`--sf-border-color${t}`]=e.color.toLowerCase()),Object.keys(r).length?r:void 0}function $W(e,o){let t=zm(e),r=zm(o,{phone:!0});return t||r?{...t,...r}:void 0}var $m="sf.gapContainer",Vo={min:-32,max:64,step:2},qm={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},yT=new Set(["Events","GalleryB"]);function Ur(e,o,t){if(typeof o=="number"&&Number.isFinite(o)&&o>=Vo.min)return o;if(typeof o=="string"){let r=qm[e]?.[o];if(typeof r=="number")return r}return typeof t=="number"&&Number.isFinite(t)?t:qt[e]}var ST="sf-gap-overlap",CT="--sf-gap-overlap",jm="--sf-block-gap",vT="--sf-block-gap-rem",vt={min:0,max:Vo.max,step:Vo.step};function wT(e){if(typeof e!="number"||!Number.isFinite(e))return null;let o=Math.min(Math.max(Math.round(e),vt.min),vt.max);return o-o%vt.step}function jW(e){let o=wT(e);return o===null?{}:{[jm]:`${o}px`,[vT]:`${o/16}rem`}}var Gm="sf-gap-zone",Um="--sf-gap-len";function _i(e,o){return typeof o=="number"&&Number.isFinite(o)&&o>=Vo.min?!0:typeof o=="string"&&typeof qm[e]?.[o]=="number"}var kT={block:"sf-gap-overlap-block",inline:"sf-gap-overlap-inline",both:"sf-gap-overlap-both"};function KW(e,o,t){if(!_i(e,o)){let a=`${qt[e]}px`,n=yT.has(e)?`var(--sf-card-gap, ${a})`:a;return{className:` ${Gm}`,style:{[Um]:`var(${jm}, ${n})`}}}let r=Ur(e,o);return r>=0?{className:` ${Gm}`,style:{[Um]:`${r}px`}}:{className:` ${ST} ${kT[t]}`,style:{gap:"0px",[CT]:`${-r/2}px`}}}var Km=["transparent","var(--section-bg)","var(--surface)","var(--surface-2)"],Vm={transparent:"No fill","var(--section-bg)":"Section band","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},yn="var(--section-bg)",Sn="inherit";function YW(e,o){return e===Sn?yn:e===void 0?o:Cn(e)}var TT=/var\(\s*--(surface-2|surface|line)\s*(?=[,)])/g;function Cn(e){return e.replace(TT,"var(--site-$1")}function Ym(e,o){return e===Sn?!0:e===void 0&&o===yn}var Xm=["transparent","var(--wheel-stage)","var(--surface)","var(--surface-2)"],Zm={transparent:"No fill","var(--wheel-stage)":"Image stage","var(--surface)":"Panels and cards","var(--surface-2)":"Second surface"},jt="var(--wheel-stage)",vn="transparent",$r="inherit";function QW(e,o){return Cn(Di(e,o))}function Di(e,o){return e===$r?jt:e==null?o:e===!0?jt:e===!1?vn:e}function JW(e){return typeof e=="string"&&e!==$r?Cn(e):jt}function ez(e){return e!==vn&&e!=="none"&&e!==""}function Qm(e,o){return e===$r||e===!0?!0:e==null?o===jt:!1}var Jm="inherit",wn="fixed",ex=e=>typeof e!="number"&&e!==wn,FT="var(--sf-heading-max, 9999px)";function tz(e,o,t,r){if(typeof e=="number")return`${e}px`;if(e===wn)return o;let a=r?`var(--size-${r}, ${o})`:o;return t==="heading"?`min(${a}, ${FT})`:a}var Ce={min:1e3,max:2e3,step:50,default:1600};function ET(e){return{maxWidth:e,marginInline:"auto",width:"100%"}}var ox="--sf-site-width",Ni=`var(${ox},${Ce.default}px)`,az=`max-w-[${Ni}]`,nz=`max-w-[${Ce.default}px]`;function PT(e){return typeof e!="number"||!Number.isFinite(e)?Ce.default:Math.round(Math.min(Math.max(e,Ce.min),Ce.max))}function lz(e){let o=PT(e);return o===Ce.default?{}:{[ox]:`${o}px`}}var Co={min:0,max:80,step:4,default:40},tx="--sf-site-gutter",$e=`var(${tx},${Co.default}px)`,LT=`px-[${$e}]`;var Yo={md:`min(24px,${$e})`,sm:`min(20px,${$e})`,frame:`min(24px,${$e})`,tabs:`min(16px,${$e})`},sz=[[`max-[1100px]:px-[${Yo.md}]`,"max-[1100px]:px-6"],[`max-[1100px]:px-[${Yo.tabs}]`,"max-[1100px]:px-4"],[`max-[960px]:px-[${Yo.frame}]`,"max-[960px]:px-6"],[`max-[900px]:px-[${Yo.md}]`,"max-[900px]:px-6"],[`max-[800px]:px-[${Yo.md}]`,"max-[800px]:px-6"],[`max-[720px]:px-[${Yo.sm}]`,"max-[720px]:px-5"],[`max-[800px]:px-[${Yo.sm}]`,"max-[800px]:px-5"],[`max-[640px]:px-[${Yo.sm}]`,"max-[640px]:px-5"],[`min-[800px]:px-[${$e}]`,"min-[800px]:px-10"],[`max-[720px]:px-[min(24px,${$e})]`,"max-[720px]:px-6"],[`max-[800px]:-mx-[min(20px,${$e})]`,"max-[800px]:-mx-5"],[`max-[720px]:-mx-[min(20px,${$e})]`,"max-[720px]:-mx-5"],[`-mx-[${$e}]`,"-mx-10"],[LT,"px-10"]];var iz="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-[800px]:px-[min(20px,var(--sf-site-gutter,40px))]",fz="mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] max-[1100px]:px-[min(24px,var(--sf-site-gutter,40px))]";function OT(e){return typeof e!="number"||!Number.isFinite(e)?Co.default:Math.round(Math.min(Math.max(e,Co.min),Co.max))}function cz(e){let o=OT(e);return o===Co.default?{}:{[tx]:`${o}px`}}var kn=Ni,dz=`max-w-[${kn}]`,uz=`max-w-[min(var(--sf-page-cap,${Ce.default}px),${Ce.default}px)]`,rx="--sf-hero-cap",RT=`var(${rx},none)`,pz=`max-w-[${RT}]`,Mi="--sf-hero-bleed-m",Hi="--sf-hero-bleed-w",mz=`var(${Mi},calc(50% - 50vw))`,xz=`var(${Hi},100vw)`,Iz=`mx-[var(${Mi},calc(50%_-_50vw))]`,hz=`w-[var(${Hi},100vw)]`,Wi="--sf-hero-chrome-x",zi="--sf-hero-chrome-cap";function gz(e){return e===!0?{[rx]:kn,[Mi]:"auto",[Hi]:"100%",[Wi]:"24px",[zi]:"none"}:{}}var Gi=`calc(${Ni} - ${$e}*2)`,bz=`max-w-[${Gi.replace(/ /g,"_")}]`;var AT="--sf-chrome-cap",BT=`var(${AT},${Gi})`,yz="data-page-width";function Sz(e){return e==="full"?"full":null}function Cz(e){return e==="full"?null:ET(e==="content"?Gi:BT)}function vz(e){if(e==="full")return"full";if(e==="content")return"content"}var _T=["contained","page","full"],nx=["full","page"],Kt={full:"Full width",page:"Content width"},$i="inherit",DT=e=>typeof e=="string"&&_T.includes(e),lx=e=>e===$i;function Bo(e,o){let t=typeof e.pageWidth=="number"?e.pageWidth:Ce.default;return lx(e.widthMode)?{mode:"full",pageWidth:t,inherited:!0}:e.widthMode==="contained"?{mode:"page",pageWidth:t,inherited:!1}:DT(e.widthMode)?{mode:e.widthMode,pageWidth:t,inherited:!1}:e.contained===!0?{mode:"page",pageWidth:t,inherited:!1}:typeof e.fullWidth=="boolean"?{mode:e.fullWidth?"full":"page",pageWidth:t,inherited:!1}:e.contained===!1?{mode:"full",pageWidth:t,inherited:!1}:{mode:o,pageWidth:t,inherited:o==="full"}}function qi(e){return Bo(e,"page").mode==="full"}var qr="site",sx={Hero:"hero",HeroSingle:"hero",IntroBleed:"scrollOver",SpecStrip:"background",Timeline:"background",Footprint:"background",Prose:"background",ParagraphsA:"background",Cards:"background",KeyFeatures:"background",Chart:"background",Mockup:"background",Testimonials:"background",TitleWithButtons:"background",Countdown:"background",DocMasthead:"background",DocBody:"background",DocMetaCards:"background",Gallery:"background",GalleryB:"background",Reviews:"background",ReviewForm:"background",Form:"background",AppointmentBooking:"background",FAQ:"background",Events:"background",Split:"both",Breadcrumb:"both",Collections:"both",CatalogFilterBar:"both",AlloyWheelsListing:"both",Banner:"contained",Stats:"contained",Logos:"contained",Divider:"contained",OrderSummary:"contained",DeliveryOptions:"contained",PaymentBadges:"contained",CheckoutCTA:"contained",Flex:"contained",Grid:"contained",Manifesto:"contentColumn",SectionHeader:"contentFull",ProductHero:"contentFull",ProductGrid:"productGrid",TimelineTrack:"capped",DetailRows:"capped",FitmentTable:"capped",TyreSizes:"capped",TyreFitment:"capped",EuTyreLabel:"capped",BundleOffer:"capped",CompatibleTyres:"capped",RelatedProducts:"capped",ProcessSteps:"capped",StatsParagraph:"capped",Masthead:"capped",FeaturedCover:"capped",LongRead:"capped",Series:"capped",ContactLocations:"capped",FitmentFinder:"capped",SpecTable:"capped",Subscribe:"capped",SubscribeBlogs:"capped",ContactRouting:"capped",SubmitBuild:"capped"};function NT(e){return Object.prototype.hasOwnProperty.call(sx,e)}var Ui=e=>e==="full"||e==="content",MT=e=>typeof e=="number"&&Number.isFinite(e)&&e>0,ax=({widthMode:e,fullWidth:o,pageWidth:t})=>({widthMode:e,fullWidth:o,pageWidth:t});function HT(e,o){let t={background:null,content:null,contentMax:null};switch(e){case"hero":return lx(o.widthMode)||o.widthMode!=="full"?t:{...t,background:"full"};case"scrollOver":return o.fullWidth===!1?t:{...t,content:"full"};case"background":return Bo(o,"full").mode==="full"?t:{...t,background:"content"};case"both":return Bo(o,"full").mode==="full"?{...t,content:"full"}:{...t,background:"content"};case"contained":return Bo(o,"page").mode==="full"?{...t,content:"full"}:{...t,background:"content"};case"contentColumn":return Bo(ax(o),"page").mode==="full"?{...t,content:"full"}:t;case"contentFull":return Bo(ax(o),"full").mode==="full"?{...t,content:"full"}:t;case"productGrid":{let r=Bo(o,"full");return r.mode==="full"?{...t,content:"full"}:{background:"content",content:"content",contentMax:r.pageWidth}}case"capped":return{...t,background:"content"}}}function ji(e,o){if(!NT(e))return{background:null,content:null,contentMax:null};let t=sx[e],r=o,a=HT(t,r),n=r.backgroundWidth===qr?null:Ui(r.backgroundWidth)?r.backgroundWidth:a.background;return r.contentWidth===qr?{background:n,content:null,contentMax:null}:Ui(r.contentWidth)?{background:n,content:r.contentWidth,contentMax:r.contentWidth==="content"&&MT(r.contentMax)?r.contentMax:null}:{background:n,content:a.content,contentMax:a.contentMax}}var ix="siteWidths";function Tn(e){return Ui(e)?e:null}function fx(e,o){return{[ix]:{background:Tn(e),content:Tn(o)}}}function Tz(e){let o=e.puck?.metadata?.[ix];return{background:Tn(o?.background),content:Tn(o?.content)}}import{jsx as WT}from"react/jsx-runtime";import{createContext as zT,useContext as GT}from"react";var UT=2,$T=UT+1,cx=zT(2);function dx({tier:e,children:o}){return WT(cx.Provider,{value:e,children:o})}function Ki(e){let o=GT(cx);return $T+Math.max(0,e-o)}import{withStyleKind as KF}from"efficient-easel/style-clipboard";import{TEXT_CONTROL_KINDS as zG,SCALAR_TEXT_CONTROLS as GG}from"efficient-easel/draw";function Jo(e){for(let[o,t]of Object.entries(e))t&&typeof t=="object"&&!No(t)&&KF(t,`section:${o}`);return e}function Rx(){return null}function Qi(e){if(!e.trim())throw new Error("noGlyph() needs a reason naming the ruling that decided it.");return I(Rx,{},e)}function VF(e){return e.type===Rx}function vo(e){return VF(e)?void 0:e}function kt(e,o){return l("{value} from {from}",{value:e,from:o})}function YF(){let{appState:e}=Kr(a=>a),o=e.data.root?.props??{},{mode:t,pageWidth:r}=Bo(o,"full");return t==="page"?kt(`${r}px`,l("the page")):t==="contained"?kt(l("Contained"),l("the page")):kt(l("Full"),l("the page"))}function XF(){let{blockGap:e}=q();return e===null?l("this container's own spacing"):kt(`${e}px`,l("Site styles"))}function ZF({inherited:e,onReset:o,label:t}){return I(ze,{words:Y()?.panel,label:l(t),changed:!e,detail:XF(),onReset:o})}function QF({inherited:e,onReset:o,label:t}){return I(ze,{words:Y()?.panel,label:l(t),changed:!e,detail:YF(),onReset:o})}function Yt({value:e,onChange:o,label:t,placeholder:r,hint:a,multiline:n,hideable:s=!0,markup:i=!0}){let{text:f,hidden:u}=Qo(e),p=Yi(null),m=Yi(null),x=v=>o(s?{text:v,hidden:u}:v),h=()=>o({text:f,hidden:!u}),b=s&&u,S=jT(),w=a?aE(a)?I("span",{className:"sf-hint-keep sf-hint-while-typing",children:l(a)}):I(np,{children:l(a)}):void 0,F=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(TF,{}),htmlFor:S,className:b?"is-hidden":void 0,hint:w,action:s?I(Ox,{content:F,children:I("button",{type:"button",className:"sf-field-eye","aria-pressed":u,"aria-label":F,onClick:h,children:u?I(ux,{name:"eye-off",size:14}):I(ux,{name:"eye",size:14})})}):void 0,children:Xo("div",{className:"sf-copybox",children:[i&&I(ni,{target:n?m:p,value:f,onChange:x}),n?I("textarea",{id:S,ref:m,value:f,placeholder:r===void 0?void 0:l(r),onChange:v=>x(v.target.value)}):I("input",{id:S,ref:p,type:"text",value:f,placeholder:r===void 0?void 0:l(r),onChange:v=>x(v.target.value)})]})})}function DG(e,o){return{...e,[XT]:o}}function NG(e){let o=e[_o];if(!o)throw new Error("withOffPage: the field holds no authored text");return{...e,[_o]:{...o,offPage:!0}}}function Ln(e){return!e||typeof e!="object"?!1:e[_o]?.offPage===!0}var Ax="sfPanelOnly";function MG(e){if(!e[_o])throw new Error("withPanelOnly: the field holds no authored text");return{...e,[Ax]:!0}}function Bx(e){return!!e&&typeof e=="object"&&e[Ax]===!0}function HG(e){let o=e[_o];if(!o)throw new Error("withIdentifier: the field holds no authored text");return{...e,[_o]:{...o,identifier:!0}}}function UG(e,o){if(!e[_o])throw new Error("inOwnBox: the field holds no authored text");let{[qF]:t,...r}=e;return{...r,[li]:!0,render:o}}var JF=new Set(jF),Xt=(e,o)=>{let t={...o,[_o]:e};if(!JF.has(e.control))return t;let r=o.render;return{...Vr(t,"authored-copy"),render:a=>I(_p,{name:a.name,children:r(a)})}},$G="Everything else on this block comes from the linked post. Unlink it to edit by hand.",eE={field:"source.slug",set:!0},qG={not:eE},oE="Select a word, then press the highlighter.",tE="A short name so a link can jump straight to this section, like yoursite.com/page#about.",rE=new Set([oE]),aE=e=>rE.has(e);function jG(e,o,t){return Xt({control:"text",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Yt,{value:r,onChange:a,label:e,placeholder:o,hint:t})})}function KG(e,o,t){return Xt({control:"textarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Yt,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0})})}function nE(e,o,t){return Xt({control:"plainText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Yt,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1,markup:!1})})}function VG(e,o,t){return Xt({control:"copyText",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Yt,{value:r,onChange:a,label:e,placeholder:o,hint:t,hideable:!1})})}function YG(e){return{type:"custom",[VT]:{label:e},render:({value:o,onChange:t})=>I(bm,{value:KT(o),onChange:t,label:e})}}function XG(e,o,t){return Xt({control:"plainTextarea",label:e,placeholder:o,hint:t},{type:"custom",render:({value:r,onChange:a})=>I(Yt,{value:r,onChange:a,label:e,placeholder:o,hint:t,multiline:!0,hideable:!1})})}var _x={Design:ZT,Animation:bx};function Dx(e,o){return e.includes("Design")?o!=="Design":null}function lE({label:e}){return I(PF,{title:l(e),level:Ki(1)})}function sE({level:e,label:o}){return e===1?I(lE,{label:o}):I(Zt,{label:o})}function Nx(e,o){return{type:"custom",[Zi]:{label:e,level:o},render:()=>I(sE,{level:o,label:e})}}function Be(e){return Nx(e,2)}function ZG(e){return{type:"custom",render:()=>I(iE,{text:e})}}function iE({text:e}){return I("p",{className:"sf-note",children:l(e)})}function QG(e){return Nx(e,1)}function JG(e){return No(e)!==null&&e?.tabs!==void 0}var px=new Map;function On(e,o){let t=`${e}\0${o?o.join(""):""}`,r=px.get(t)??{type:"custom",tabs:o,[Zi]:{label:e,level:1},bucket:e,marker:!0,render:()=>I(Do,{})};return px.set(t,r),r}var mx=new Map;function Ji(e){let o=mx.get(e)??{type:"custom",[Zi]:{label:e,level:1},designGroup:e,marker:!0,...e==="Content"?{}:{fold:e},render:()=>I(Do,{})};return mx.set(e,o),o}function fE(e){let o=e;return o?.marker===!0&&typeof o.fold=="string"?o.fold:null}function Mx(e,o){return fE(e)===o?e:{...e,marker:!0,fold:o,render:()=>I(Do,{})}}function Hx(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(Do,{})}}function Zt({label:e}){return I(LF,{title:l(e),level:Ki(2)})}function Wx({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 Xo("div",{className:"sf-swatches",children:[e.map(i=>{let f=r?.[i]?l(r[i]):i;return I(Ox,{content:f,children:I("button",{type:"button","aria-pressed":o.toLowerCase()===i.toLowerCase(),className:`sf-swatch ${o.toLowerCase()===i.toLowerCase()?"is-active":""}`,style:{background:i},onClick:()=>t(i),"aria-label":f})},i)}),I("span",{className:"sf-swatch-hex",children:s})]})}function eU(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=Ym(t,o);return I(se,{label:l(e),icon:I(oF,{}),changed:!a,action:I(ze,{words:Y()?.panel,label:l(e),changed:!a,detail:l("the theme's section background"),onReset:()=>r(Sn)}),children:Wx({swatches:Km,current:a?yn:t??o??"",onPick:r,names:Vm})})}}}function cE(e,o){return{type:"custom",render:({value:t,onChange:r})=>{let a=t,n=Qm(a,o);return I(se,{label:l(e),icon:I(mF,{}),changed:!n,action:I(ze,{words:Y()?.panel,label:l(e),changed:!n,detail:l("the theme's image stage"),onReset:()=>r($r)}),children:Wx({swatches:Xm,current:n?jt:Di(a,o),onPick:r,names:Zm})})}}}function Rn(e=t=>t,o){return Jo({_gSectionTheme:Be(fp),sectionAccent:{type:"custom",render:({value:t,onChange:r})=>I(lm,{value:e(t),onChange:r,followLabel:o})}})}function qe({min:e,max:o,step:t,value:r,onChange:a,suffix:n="",readout:s=!0,notch:i,ariaLabel:f,disabled:u=!1}){let p=i!==void 0&&Number.isFinite(i)&&i>=e&&i<=o;return I("div",{className:p?"sf-slider has-notch":"sf-slider",style:p?{"--sf-notch":(i-e)/(o-e)}:void 0,children:I($F,{min:e,max:o,step:t,value:r,suffix:n||void 0,showInput:s,label:f===void 0?void 0:l(f),disabled:u,size:"sm",className:"sf-slider-track",onChange:m=>{m!==null&&m!==r&&a(m)}})})}function Vt(e,o,t,r,a,n,s="",i){return{type:"custom",render:f=>I(se,{label:l(e),icon:vo(o),action:i?i("storedValue"in f?f.storedValue:f.value,f.onChange):void 0,children:qe({min:t,max:r,step:a,value:typeof f.value=="number"?f.value:n,suffix:s,ariaLabel:e,onChange:f.onChange})})}}function zx(e,o){let{min:t,max:r,step:a=1,unsetLabel:n,hint:s,restTrack:i,unsetMark:f,icon:u}=o;return{type:"custom",render:({value:p,onChange:m})=>{let x=typeof p=="number"?p:null,h=x===null;return I(se,{label:l(e),icon:u?vo(u):void 0,value:h?f||n===void 0?void 0:l(n):`${x}px`,changed:!h,action:f?gx(f,{changed:!h,onReset:()=>m(null)}):I(ze,{words:Y()?.panel,label:l(e),changed:!h,onReset:()=>m(null)}),hint:typeof s=="string"?l(s):s,children:i?i({min:t,max:r,step:a,px:x,label:e,onChange:m}):qe({min:t,max:r,step:a,value:x??t,readout:!1,ariaLabel:e,onChange:m})})}}}function oU(e){let o=Vt("Gap",I(Sx,{}),Vo.min,Vo.max,Vo.step,qt[e],"px",(t,r)=>I(ZF,{inherited:!_i(e,t),onReset:()=>r(void 0),label:"Gap"}));return{type:"custom",[$m]:e,render:t=>o.render({...t,value:Ur(e,t.value,t.field?.siteGap),storedValue:t.value,onChange:r=>t.onChange(r)})}}var An="Corners";function ef(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(An),icon:I(lF,{}),changed:a,action:gx(e.mark,{changed:a,onReset:()=>t(null)}),hint:e.hint,children:I(dE,{tier:e,px:r,onRadius:t})})}}}function Bn(e){let o=null;try{o=Xi()}catch{o=null}return[o?.values?.[e],t=>o?.onChange(e,t)]}function dE({tier:e,px:o,onRadius:t}){let r=e.useFollowed(),a=e.useClosedReason?e.useClosedReason():null,[n,s]=Bn(e.sidesKey),i=Lo(n)??[...pt];return I(zF,{label:l(An),value:i,corners:Wu,onChange:f=>{let u=Lo(f)??[];s(u.length===pt.length?null:u)},radius:o,onRadiusChange:t,radiusMin:ao,radiusMax:ft,radiusStep:e.step??1,radiusPlaceholder:String(r),disabled:a!==null,disabledReason:a??void 0})}function Gx(){return Vr({type:"custom",render:()=>I(Pn,{})},"always")}function uE({label:e,changed:o=!1,onReset:t=()=>{}}){let{cornerRadiusPx:r}=q(),a=typeof r=="number"?`${r}px`:l("not set");return I(ze,{words:Y()?.panel,label:l(e),changed:o,detail:r==null?l("the built-in corners"):kt(a,l("Site styles")),onReset:t})}function pE(){let{cornerRadiusPx:e}=q();return typeof e=="number"?e:ao}function mE(){return ef({sidesKey:"sectionCornerSides",useFollowed:pE,useClosedReason:()=>$x()?l(Ux):null,mark:I(uE,{label:An}),hint:I(xE,{})})}var Ux="This section runs edge to edge, so its corners sit off the page. Set Width to Content width to use them.";function $x(){return qi(wo())}function xE(){return I(Do,{children:$x()?Ux:"Follows Site styles \u25B8 Basics \u25B8 Corners until you set a number here."})}function _n(){return Jo({_gShape:Be("Shape"),sectionCorners:mE(),sectionCornerSides:Gx(),sectionBorder:xx("desktop"),sectionBorderPhone:xx("mobile")})}var IE=()=>({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 hE(e){let o=Object.fromEntries(Object.entries(e).filter(([,t])=>t!=null&&t!==""));return Object.keys(o).length?o:void 0}function gE(){let e;try{let o=Qe(q().theme);e=o.themes[o.selected]?.line}catch{e=void 0}return e||eu.line}function bE({value:e,onChange:o,tier:t}){let[r]=Bn("sectionBorder"),a=gE(),n=e&&typeof e=="object"?e:{},s=t==="mobile"?r&&typeof r=="object"?r:{}:{},[i,f]=En(()=>DF(n,s)),u=IE();return I(se,{label:l("Border"),icon:I(tF,{}),action:I(Ex,{each:i,label:l("Each side"),onChange:f}),children:I(OF,{label:l("Border"),value:n,each:i,onChange:p=>o(hE(p)),placeholder:{sides:_F(s),style:s.style??"solid",color:s.color||a},presets:[a],words:u,max:20})})}function xx(e){return Ae(e,{type:"custom",render:({value:o,onChange:t})=>I(bE,{value:o,onChange:t,tier:e})})}function Dn(){return{_gMotion:Be("Motion"),sectionAnimation:rf("Entrance",I(bx,{}),[...dp],Zs)}}function of(){let e=null;try{let{appState:o,selectedItem:t}=Kr(a=>a),r=t?.props?.id?String(t.props.id):void 0;e=r?Js(o?.data,r):null}catch{e=null}return e!==null&&qi(e)}function qx(e){let{cornerRadiusPx:o}=q(),t=of(),r=typeof o=="number"?o:e,a=null;try{let{appState:s,selectedItem:i}=Kr(u=>u),f=i?.props?.id?String(i.props.id):void 0;a=f?Js(s?.data,f):null}catch{a=null}if(t||!a)return r;let n=a.sectionCorners;return Hs(n)?n:r}function yE({label:e,changed:o=!1,onReset:t=()=>{}}){let r=of(),a=qx(ao),n=r?"Site":"Section";return I(ze,{words:Y()?.panel,label:l(e),changed:o,detail:kt(`${a}px`,r?l("Site styles"):l("the section")),onReset:t})}function SE(){return I(Do,{children:of()?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 CE(){return ef({sidesKey:"cardCornerSides",useFollowed:()=>qx(ao),mark:I(yE,{label:An}),hint:I(SE,{})})}function vE(){return{type:"custom",render:()=>I(Ku,{})}}function tU(){return{_gShape:Be("Shape"),cardCorners:CE(),cardCornerSides:Gx(),cardCornersApplyAll:vE()}}function rU(){return Zo("Justify",I(eF,{}),Li,Li[0].value)}function aU(){return Zo("Item alignment",I(QT,{}),_m,"stretch")}function nU(){return Zo(Dm,I(EF,{}),Oi,Oi[0].value)}function lU(){return{type:"custom",render:({value:e,onChange:o})=>{let t=bn.find(r=>r.value===e)??bn[0];return I(se,{label:l(Ri),icon:I(yx,{}),value:l(t.label),children:I(Lx,{className:"sf-gallery-layouts",label:l(Ri),value:t.value,onChange:o,options:bn.map(r=>({value:r.value,label:l(r.label),picture:I("span",{className:"sf-gallery-pic",children:wE(r.weights).map((a,n)=>I("i",{style:{gridColumn:`span ${a}`}},n))})}))})})}}}function wE(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 sU(){return Zo(Hm,I(Sx,{}),Bi,Bi[0].value)}function iU(){return Vt(Nm,I(yF,{}),Ai,Mm,1,Ai)}function fU(e){let o=rf(Lm,Qi("`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)."),Rm(e),gn(e,void 0));return{type:"custom",render:t=>o.render({...t,value:gn(e,t.value),onChange:r=>t.onChange(r)})}}function cU(e,o,t,r,a,n){return{type:"custom",render:({value:s,onChange:i})=>I(se,{label:l(e),icon:I(Ks,{noun:n}),action:I(ze,{words:Y()?.panel,label:l(e),changed:!ex(s),detail:l("the Text style in Site styles"),onReset:()=>i(Jm),defaultAction:{onPress:()=>i(wn),title:l("Keep this section's own built-in size"),icon:I(rF,{})}}),children:qe({min:o,max:t,step:r,value:typeof s=="number"?s:a,suffix:"px",ariaLabel:e,onChange:i})})}}function dU(){return{_gCellWidth:Be("Cell width"),gridSpan:Zo("Positions",I(yx,{}),[{label:"Auto",value:""},...Array.from({length:Ya},(e,o)=>({label:o===0?"1 position":`${o+1} positions`,value:String(o+1)}))],"")}}function wo(){let e=null;try{e=Kr(o=>o).selectedItem}catch{e=null}return e?.props??{}}function kE({min:e,max:o,step:t,px:r,label:a,onChange:n,desktopKey:s,fallback:i}){let f=wo()[s],u=an(void 0,f,i);return I(Do,{children:qe({min:e,max:o,step:t,value:an(r,f,i),readout:!1,ariaLabel:a,notch:u,onChange:n})})}function TE({label:e,desktopKey:o,fallback:t,changed:r=!1,onReset:a=()=>{}}){let n=wo()[o],s=an(void 0,n,t);return I(ze,{words:Y()?.panel,label:l(e),changed:r,detail:l("{value} on desktop",{value:`${s}px`}),onReset:a})}function FE(e){return zx(e.label,{icon:e.icon,min:e.min,max:e.max,step:e.step,unsetLabel:"Follows Desktop",unsetMark:I(TE,{label:e.label,desktopKey:e.desktopKey,fallback:e.fallback}),restTrack:o=>I(kE,{...o,desktopKey:e.desktopKey,fallback:e.fallback})})}function uU(e){return{type:"custom",render:({value:o,onChange:t})=>I(PE,{...e,value:o,onChange:t})}}function EE({label:e,icon:o,options:t,value:r,resolved:a,restWord:n,onChange:s}){let i=t.some(f=>f.value===r);return I(se,{label:l(e),icon:vo(o),action:I(ze,{words:Y()?.panel,label:l(e),changed:i,detail:l("{value} on desktop",{value:l(n)}),onReset:()=>s(void 0)}),children:zn({options:t,value:i?r:a,onChange:f=>s(f),ariaLabel:e})})}function PE({label:e,icon:o,options:t,desktopKey:r,resolve:a,value:n,onChange:s}){let i=wo()[r],f=a(void 0,i),u=t.find(p=>p.value===f)?.label??"";return I(EE,{label:e,icon:o,options:t,value:n,resolved:f,restWord:u,onChange:s})}var LE={Top:"Padding top",Bottom:"Padding bottom",Left:"Padding left",Right:"Padding right"},OE={Top:Tx,Bottom:vx,Left:wx,Right:kx},RE=e=>{let o=OE[e];return I(o,{})};function pU(e={}){let o=e.keys?.top??"sectionPaddingTop",t=e.keys?.bottom??"sectionPaddingBottom",r=e.group!==!1,a=w=>LE[w],n=w=>Vt(a("Top"),I(Tx,{}),so.min,so.max,so.step,w,"px"),s=(w,F,v,g=so)=>Ae("mobile",FE({label:a(w),icon:RE(w),desktopKey:F,min:g.min,max:g.max,step:g.step,fallback:v})),i=e.top??so.min,f=e.bottom??so.min,u="sectionPaddingLeft",p="sectionPaddingRight",m=e.sideBounds??so,x=e.side??m.min,h=e.sidePhone??x,b=e.phone===!0,S=w=>b?Ae("desktop",w):w;return Jo({...r?{_gSpacing:Be("Padding")}:{},[o]:S(n(i)),...b?{[Ao(o)]:s("Top",o,i)}:{},...e.only==="top"?{}:{[t]:S(Vt(a("Bottom"),I(vx,{}),so.min,so.max,so.step,f,"px")),...b?{[Ao(t)]:s("Bottom",t,f)}:{}},...e.sides?{[u]:S(Vt(a("Left"),I(wx,{}),m.min,m.max,m.step,x,"px")),...b?{[Ao(u)]:s("Left",u,h,m)}:{},[p]:S(Vt(a("Right"),I(kx,{}),m.min,m.max,m.step,x,"px")),...b?{[Ao(p)]:s("Right",p,h,m)}:{}}:{}})}var jr=["top","right","bottom","left"],AE={top:"sectionPaddingTop",right:"sectionPaddingRight",bottom:"sectionPaddingBottom",left:"sectionPaddingLeft"},Ix=e=>typeof e=="number"?e:null;function BE(e,o,t){let r={};for(let a of jr)t[a]!==o[a]&&(r[e[a]]=t[a]??void 0);return r}function _E({tier:e,o}){let t=null;try{t=Xi()}catch{t=null}let r=t?.values??{},a=e==="mobile"?o.phoneKeys:o.keys,n=Object.fromEntries(jr.map(u=>[u,Ix(r[a[u]])])),s=Object.fromEntries(jr.map(u=>[u,String(e==="mobile"?Ix(r[o.keys[u]])??o.fallback[u]:o.fallback[u])])),[i,f]=En(()=>BF(n,s));return I(se,{label:l("Padding"),icon:I(bF,{}),action:I(Ex,{each:i,label:l("Each side"),onChange:f}),children:I(AF,{label:l("Padding"),each:i,value:n,placeholder:s,min:o.min,max:o.max,step:o.step,onChange:u=>{let p=BE(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 Nn(e={}){let o={...AE,...e.keys},t={keys:o,phoneKeys:Object.fromEntries(jr.map(i=>[i,Ao(o[i])])),fallback:{top:0,right:0,bottom:0,left:0,...e.fallback},min:e.min??0,max:e.max??200,step:e.step??4},r=e.phone!==!1,a=i=>{let f={type:"custom",render:()=>I(_E,{tier:i,o:t})};return r?Ae(i,f):f},n=()=>Vr({type:"custom",render:()=>I(Pn,{})},"always"),s=jr.filter(i=>i!=="top");return Jo({...e.group===!1?{}:{_gSpacing:Be("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],Ae("mobile",n())])):{}})}var hx=e=>typeof e=="number"?e:null;function DE(e,o,t){let r={};for(let a of["x","y"])t[a]!==o[a]&&(r[e[a]]=t[a]??void 0);return r}function NE({o:e}){let o=null;try{o=Xi()}catch{o=null}let t=o?.values??{},r={x:hx(t[e.keys.x]),y:hx(t[e.keys.y])},a=l(e.label??"Position"),n=!!(r.x||r.y),s=u=>{let p=DE(e.keys,r,u);Object.keys(p).length&&o?.onChangeMany(p)},i=I(UF,{label:a,value:r,onChange:s,words:{x:l("Left and right"),y:l("Up and down"),unit:"px"},placeholder:{x:"0",y:"0"},min:e.min,max:e.max,step:e.step??1}),f=I(ze,{words:Y()?.panel,label:a,changed:n,detail:"0 px, 0 px",onReset:()=>s({x:null,y:null})});return e.label===null?Xo("div",{className:"sf-position-line",children:[i,f]}):I(se,{label:a,icon:I(gF,{}),changed:n,action:f,children:i})}function mU(e){return{[e.keys.x]:{type:"custom",render:()=>I(NE,{o:e})},[e.keys.y]:{...Vr({type:"custom",render:()=>I(Pn,{})},"always"),reachedBy:e.keys.x}}}var ME={contained:"Contained",page:"Page",full:"Full"},Fn="Width";function Mn(e,o=nx,t=!0){let r=o.map(a=>({label:Kt[a]??ME[a],value:a}));return Jo({...t?{_gWidth:Be(Fn)}:{},widthMode:{type:"custom",render:({onChange:a,field:n})=>I(se,{label:l(Fn),icon:I(FF,{}),action:t?I(QF,{inherited:n?.inherited??!1,onReset:()=>a($i),label:Fn}):void 0,children:zn({options:r,value:n?.currentValue||e,onChange:a,ariaLabel:Fn})})}})}function Hn(){let e=r=>({type:"custom",render:({value:a,onChange:n})=>I(se,{label:$t,icon:vo(I(xF,{})),action:r?r(n):void 0,children:zn({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==="%"?Ti:ki;return I("div",{className:"sf-field",children:qe({min:i.min,max:i.max,step:i.step,value:typeof r=="number"?r:i.fallback,suffix:s,ariaLabel:$t,onChange:a})})}}),t=()=>rf("Unit",I(Cx,{}),[{label:"px",value:"px"},{label:"%",value:"%"}],"px");return Jo({_gHeight:Be($t),sectionHeightMode:Ae("desktop",e()),sectionHeightValue:Ae("desktop",o()),sectionHeightUnit:Ae("desktop",t()),sectionHeightModePhone:Ae("mobile",e(r=>I(HE,{onClear:()=>r(void 0)}))),sectionHeightValuePhone:Ae("mobile",o()),sectionHeightUnitPhone:Ae("mobile",t())})}function HE({onClear:e}){let o=wo(),t=Fi(o),r=In(o),a=l("{value} on desktop",{value:r.mode==="auto"?l("Auto"):`${r.value}${r.unit}`});return I(ze,{words:Y()?.panel,label:l($t),changed:t,detail:a,onReset:e})}function tf(){let e=t=>({type:"custom",render:({value:r,onChange:a,id:n,name:s})=>I(WE,{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:qe({min:Ko.min,max:Ko.max,step:Ko.step,value:typeof t=="number"?t:Ko.fallback,suffix:"px",ariaLabel:l("Distance from top"),onChange:r})})});return{_gStick:Be(hn),stickTop:Ae("desktop",e(!1)),stickTopDistance:Ae("desktop",o()),stickTopPhone:Ae("mobile",e(!0)),stickTopDistancePhone:Ae("mobile",o())}}function WE({value:e,onChange:o,labelId:t,phone:r}){let a=wo(),n=Pi(a),s=r?n.phone:e===!0;return I(se,{label:l(hn),labelId:t,icon:vo(I(vF,{})),action:Xo(Do,{children:[r?I(ze,{words:Y()?.panel,label:l(hn),changed:Ei(a),detail:l("{value} on desktop",{value:n.desktop?`${n.desktopDistance}px`:l("Off")}),onReset:()=>o(void 0)}):null,I(Px,{checked:s,onChange:o,ariaLabelledBy:t})]})})}function Wn(){return{_gAnchor:Be("Anchor"),anchor:nE("Anchor name","e.g. about",tE)}}function xU(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=`${n??s??e}-datetime`,f=Date.parse(typeof r=="string"?r:"");return I(se,{label:l(e),icon:o,htmlFor:i,hint:t===void 0?void 0:l(t),children:I(GF,{id:i,value:Number.isFinite(f)?new Date(f):null,onChange:u=>a(u?u.toISOString():"")})})}}}function wt(e,o,t){return{type:"custom",render:({value:r,onChange:a,id:n,name:s})=>{let i=typeof r=="boolean"?r:o,f=`${n??s??e}-label`;return I(se,{label:l(e),labelId:f,icon:t,action:I(Px,{checked:i,onChange:a,ariaLabelledBy:f})})}}}function IU(){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(Fx,{}),htmlFor:a,action:I(no,{id:a,label:"Background",value:Vs(e),onChange:o})})}}}var hU={follows:"fill"},gU={follows:"ink"};function bU(e,o,t){if(typeof o!="string"){let r=o.follows;return{type:"custom",render:({value:a,onChange:n})=>I(zE,{label:e,part:r,icon:t,value:a,onChange:n})}}return{type:"custom",render:({value:r,onChange:a})=>I(se,{label:l(e),icon:t,action:no({value:r||o,onChange:a,label:e})})}}function zE({label:e,part:o,icon:t,value:r,onChange:a}){let n=nu(q().theme),s=o==="fill"?n.fill:n.ink;return I(tn,{label:l(e),icon:t,value:r||"",inherited:s,resetTo:kt(s.toUpperCase(),l("Site styles")),onChange:a,onReset:()=>a("")})}var GE=[{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 jx({label:e,value:o,onChange:t,points:r=GE}){let a=r.map(n=>({...n,label:l(n.label),...n.title?{title:l(n.title)}:null}));return I(WF,{label:l(e),value:o,points:a,onChange:t})}function yU(){return Vr({type:"custom",render:()=>I(Pn,{})},"always")}var UE=$s([]);function SU(e,{stacking:o,fallback:t=Xa}){return{type:"custom",render:({value:r,onChange:a})=>{let n=ho.includes(r)?r:t;return o?I($E,{label:e,value:n,onChange:a}):Kx({label:e,value:n,onChange:a,points:UE})}}}function $E({label:e,value:o,onChange:t}){let{appState:r,selectedItem:a}=Kr(i=>i),n=a?.props?.id?String(a.props.id):void 0,s=n?js(r?.data,n):[];return Kx({label:e,value:o,onChange:t,points:$s(s,n)})}function Kx({label:e,value:o,onChange:t,points:r}){let a=r.find(n=>n.disabled);return I(se,{label:l(e),icon:I(SF,{}),hint:a?.title?l(a.title):void 0,children:jx({label:e,value:mt(o),onChange:t,points:r})})}var CU={top:I(cF,{}),right:I(fF,{}),bottom:I(sF,{}),left:I(iF,{})};function vU(e,o,t,r,a,n){let s=p=>o.find(m=>m.value===p),i=p=>({value:p,label:"",disabled:!0,title:r}),f=p=>{let m=o.find(h=>h.cell===p);if(!m)return i(`missing-${p}`);let x=n?.[p];return x?{value:m.value,label:m.label,icon:x}:{value:m.value,label:m.label}},u=[i("corner-top-left"),f("top"),i("corner-top-right"),f("left"),i("centre"),f("right"),i("corner-bottom-left"),f("bottom"),i("corner-bottom-right")];return{type:"custom",render:({value:p,onChange:m})=>{let x=o.some(h=>h.value===p)?p:t;return I(se,{label:l(e),icon:a,value:s(x)?.label?l(s(x).label):"",children:jx({label:e,value:x,onChange:m,points:u})})}}}var qE="\0note";function Zo(e,o,t,r,a){return{type:"custom",options:t,fallback:r,...a?{note:a}:{},render:({value:n,onChange:s,field:i})=>{let f=i.options??t,u=i.fallback??r,p=f.some(m=>m.value===n)?n:u;return I(se,{label:l(e),icon:vo(o),children:I(NF,{value:p,ariaLabel:l(e),onChange:s,options:[...a?[{label:l(a),value:qE,disabled:!0}]:[],...f.map(m=>({label:l(m.label),value:m.value}))]})})}}}function wU(e,o,t){return{type:"custom",options:o,render:({value:r,onChange:a,field:n})=>I($p,{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 kU(e,o={}){return{type:"custom",render:({value:t,onChange:r})=>{let a={value:t,onChange:r,...o};return I(e,{...a})}}}function zn({options:e,value:o,onChange:t,ariaLabel:r,disabled:a=!1}){return I(RF,{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 TU=[{label:"Image",value:"image"},{label:"Video",value:"video"}];function rf(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:vo(o),children:zn({options:a,value:a.some(f=>f.value===n)?n:n||i?.currentValue||r,onChange:s,ariaLabel:e})})}}function FU(e,o,t,r={}){return{type:"custom",[YT]:!0,render:({value:a,onChange:n})=>I(Gp,{value:a||"",onChange:n,label:e,accept:o,placeholder:t,focusKey:r.focus,focusWhen:r.focusWhen})}}function EU({value:e,onChange:o,label:t}){let r=e||{},a=!!r.pending,n=a?"var(--fg-dim, #888)":r.ok?"#1d9e75":"#d85a30",s=(i,f)=>o({...r,[i]:f===""?void 0:Number(f)});return Xo(se,{label:l(t),icon:I(Vi,{}),children:[I("button",{type:"button",disabled:a,onClick:()=>o({...r,pending:!0,ok:!1,status:"Finding\u2026"}),style:{width:"100%",display:"flex",alignItems:"center",justifyContent:"center",gap:6,padding:"8px 10px",fontSize:13,cursor:a?"default":"pointer",opacity:a?.6:1,border:"1px solid var(--border-strong, #ccc)",borderRadius:6,background:"transparent",color:"inherit"},children:a?l("Finding\u2026"):l("Find coordinates")}),r.status&&I("div",{style:{marginTop:6,fontSize:12,lineHeight:1.4,color:n},children:l(r.status)}),I("div",{style:{marginTop:6,fontSize:11,color:"var(--fg-dim, #999)"},children:l("Coordinates from OpenStreetMap")}),I("button",{type:"button",onClick:()=>o({...r,manual:!r.manual}),style:{marginTop:8,padding:0,border:"none",background:"none",font:"inherit",fontSize:12,color:"var(--sf-accent, #2563eb)",cursor:"pointer",textDecoration:"underline"},children:r.manual?l("Hide manual coordinates"):l("Enter coordinates manually")}),r.manual&&Xo("div",{style:{marginTop:8,display:"grid",gap:8},children:[I(se,{label:l("Latitude"),icon:I(Vi,{}),children:I("input",{type:"number",step:"any",placeholder:l("e.g. {example}",{example:"34.0990198"}),value:typeof r.lat=="number"?r.lat:"",onChange:i=>s("lat",i.target.value)})}),I(se,{label:l("Longitude"),icon:I(Vi,{}),children:I("input",{type:"number",step:"any",placeholder:l("e.g. {example}",{example:"-117.9842833"}),value:typeof r.lng=="number"?r.lng:"",onChange:i=>s("lng",i.target.value)})})]})]})}function jE(e,o){return o===null||o<0||o>=e.length?"":e[o]?.text??""}function KE(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 VE(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 af={label:"Ticker items",icon:I(hF,{})};function PU(e,o,t,r){return{type:"custom",[_o]:{control:"textList",label:e,placeholder:t,itemKey:"text",rendering:r},render:({value:a,onChange:n})=>I(nf,{label:e,icon:vo(o),items:Array.isArray(a)?a:[],placeholder:t,onChange:n,markup:r==="markup"})}}function nf({label:e,icon:o,items:t,placeholder:r,onChange:a,markup:n=!1}){let s=Yi(null),[i,f]=En(null),u=m=>m.map(x=>({text:x?.text??""})),p=m=>{let x=VE(t,m,i);x===null&&(s.current=null),f(x),a(u(m))};return I(MF,{label:l(e),icon:o,noun:l("item"),items:t,onChange:p,newItem:()=>({text:""}),open:null,onOpen:()=>{},renderItem:()=>null,above:n?I(ni,{target:s,value:jE(t,i),onChange:m=>a(KE(t,i??-1,m)),disabled:i===null,label:i===null?l("Formatting \u2014 click a row first"):l("Formatting \u2014 row {n}",{n:i+1})}):void 0,renderRow:(m,x,h)=>I("input",{type:"text",className:n&&i===x?"sf-list-marking":void 0,value:m?.text??"",placeholder:l(r),"aria-label":l("{label} {n}",{label:l(e),n:x+1}),onChange:b=>h({text:b.target.value}),onFocus:b=>{s.current=b.currentTarget,f(x)}})})}function Vx(e,o){let t=`${e.label} \u2014 row ${o+1}`;return Xt({control:"plainText",label:t,placeholder:e.placeholder,offPage:e.offPage},{type:"custom",render:({value:r,onChange:a})=>I(Yt,{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 Yx(e){return{_gCards:Be("Cards"),coverIndex:Zo("Cover image",I(IF,{}),Np,String(1),e?.coverHint??"A card's opening picture \u2014 a card pinned to a finish keeps its own."),imageBackground:cE("Image background",vn),cardImage:XE(),spinOnHover:wt("Rotate on hover",e?.spinDefault??!0,I(wF,{}))}}function Xx(){return{outline:Zo("Card outline",I(kF,{}),ui,ci),indexBadge:Zo("Card number",I(Cx,{}),di,fi),showBadge:wt("Product badge",!0,I(Ks,{noun:"tag"}))}}function Zx(e){let o=e&&"bottomDefault"in e?e.bottomDefault:!0,t=e&&"defaults"in e?e.defaults:{showCardSizes:o,showCardBuy:o,showCardPage:o};return{_gShowOnCard:Be("Show on a card"),showCardPrice:wt("Price",!0,I(dF,{})),showCardFinishes:wt("Finish swatches",!0,I(uF,{})),showCardSizes:wt("Sizes",t.showCardSizes,I(CF,{})),showCardBuy:wt("Buy button",t.showCardBuy,I(aF,{})),showCardPage:wt("Page button",t.showCardPage,I(Fx,{}))}}function LU(e,o="display"){let t=Ao(o);return{[o]:Ae("desktop",{type:"custom",render:({value:r,onChange:a})=>I(Qx,{parts:e,changed:pp(r),shown:n=>on(r,n),onPress:(n,s)=>a(xp(r,n,s)),onReset:()=>a(void 0)})}),[t]:Ae("mobile",{type:"custom",render:({value:r,onChange:a})=>I(YE,{parts:e,desktopKey:o,value:r,onChange:a})})}}function Qx({parts:e,changed:o,shown:t,onPress:r,onReset:a,detail:n}){let s=l("Display");return I(se,{label:s,icon:I(JT,{}),changed:o,action:I(ze,{words:Y()?.panel,label:s,changed:o,detail:n,onReset:a}),children:I(HF,{label:s,items:e.map(i=>({id:i.id,label:l(i.label),shown:t(i.id)})),onChange:r})})}function YE({parts:e,desktopKey:o,value:t,onChange:r}){let a=wo()[o];return I(Qx,{parts:e,changed:mp(t),shown:n=>ei(a,t,n),onPress:(n,s)=>r(Ip(t,n,s)),onReset:()=>r(nn),detail:l("the same as Desktop")})}function XE(){return zx("Card image",{min:ao,max:ft,step:Vu,hint:"Rounds the picture. The card's own corner is in Site styles."})}function OU(){return ef({sidesKey:"cornerSides",step:Yu,useFollowed:()=>ao,mark:I(ZE,{label:Xu}),hint:l("Rounds the picture. Left alone it stays square.")})}function ZE({label:e,changed:o=!1,onReset:t=()=>{}}){return I(ze,{words:Y()?.panel,label:l(e),changed:o,onReset:t})}function RU(){return{type:"custom",render:({value:e,onChange:o})=>I(QE,{value:typeof e=="string"?e:"",onChange:o})}}function QE({value:e,onChange:o}){let[t,r]=En(null),a=zs.filter(s=>t===null||Oo[s].across===t),n=e&&e in Oo?Oo[e]:null;return Xo(Do,{children:[I(se,{label:l("Photos in a row"),icon:I(nF,{}),children:Xo("div",{className:"sf-gallery-filter",children:[I("button",{type:"button","aria-pressed":t===null,onClick:()=>r(null),children:l("All")}),Qu.map(s=>I("button",{type:"button","aria-pressed":t===s,onClick:()=>r(s),children:s},s))]})}),I(se,{label:l("Layout"),icon:I(pF,{}),value:n?l(n.label):l("Not chosen"),hint:l("{n} of {total} layouts",{n:a.length,total:zs.length}),children:I(Lx,{className:"sf-gallery-layouts",label:l("Layout"),value:e,onChange:o,onClear:()=>o(""),options:a.map(s=>({value:s,label:l(Oo[s].label),picture:I("span",{className:"sf-gallery-pic",children:Oo[s].desktop.map(([i,f],u)=>I("i",{style:{gridColumn:`span ${i}`,gridRow:`span ${f}`}},u))})}))})})]})}import{jsx as Gn,Fragment as JE,jsxs as Jx}from"react/jsx-runtime";import{Button as eI,Dialog as eP}from"efficient-shell/ui";function oP(e){return dt("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 oI({count:e,onCancel:o,onConfirm:t}){return Jx(eP,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:l("Clear this site\u2019s colors?"),footer:Jx(JE,{children:[Gn(eI,{variant:"secondary",onClick:o,children:l("Cancel")}),Gn(eI,{variant:"danger",onClick:t,children:l("Clear colors")})]}),children:[Gn("p",{children:oP(e)}),Gn("p",{className:"mt-2 font-medium",children:l("This cannot be undone.")})]})}var sP=Qi("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"),iP="Reset color",fP={selected:0,themes:[]};function cP(e){e(fP)}function aI({value:e,onChange:o}){let t=e?.themes??[],r=t.length===0,a=Qe(e),[n,s]=rI(!1),i=nP(),[f,u]=rI(null),p=(F,v)=>{o({...a,themes:a.themes.map((g,y)=>y===F?v:g)})},m=Nt(a).accent,x=new Set(a.themes.map(F=>F.brandInk).filter(Boolean)),h=ou.filter(F=>!x.has(F)).map(F=>tu(m,F)),b=[...a.themes,...h],S=F=>{if(F<a.themes.length)return o({...a,selected:F});let v=[...a.themes,b[F]];o({...a,themes:v,selected:v.length-1})},w=()=>{let F=[...a.themes,{...xo(a.themes[a.selected])}];o({...a,themes:F,selected:F.length-1}),u(F.length-1)};return tI(tP,{children:[r?null:Qt(aP,{label:l(iP),icon:vo(sP),labelId:"sf-theme-reset",action:Qt(rP,{label:l("all theme colors"),words:i.panel,changed:!0,onReset:()=>s(!0)})}),n&&Qt(oI,{count:t.length,onCancel:()=>s(!1),onConfirm:()=>{s(!1),cP(o)}}),Qt("div",{className:"sf-theme-list",role:"radiogroup","aria-label":l("Theme"),children:b.map((F,v)=>Qt(fn,{index:v,colors:F,selected:v===a.selected,open:f===v&&v<a.themes.length,editable:v<a.themes.length,onPick:()=>S(v),onEdit:()=>u(g=>g===v?null:v),onChangeColors:g=>p(v,g)},v))}),tI("button",{type:"button",onClick:w,className:"sf-theme-add",children:[Qt(lP,{size:12}),l("Add new theme")]})]})}import{jsx as Un}from"react/jsx-runtime";import{SettingsDefaultReset as dP,SettingsField as uP}from"efficient-easel/panel";import{SquareIcon as pP}from"efficient-easel/icons";var mP="Applies to panels, cards, inputs and buttons. Round things \u2014 color swatches, switches, status dots \u2014 stay round.",lf="Corners";function nI({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Un(uP,{label:l(lf),icon:Un(pP,{}),value:r?l("Default"):`${e}px`,changed:!r,action:Un(dP,{words:Y()?.panel,label:l(lf),changed:!r,detail:l("the built-in corners"),onReset:()=>o(null)}),hint:t?l(mP):void 0,children:Un(qe,{min:ao,max:ft,step:1,value:e??ao,readout:!1,ariaLabel:l(lf),onChange:o})})}import{jsx as Yr}from"react/jsx-runtime";import{SettingsDefaultReset as xP,SettingsField as IP,SettingsSegmented as hP}from"efficient-easel/panel";import{ShadowIcon as gP}from"efficient-easel/icons";var sf={none:"None",soft:"Soft",lifted:"Lifted"},bP="Applies to cards \u2014 products, brands, journal entries and filter cells. Round things like swatches and status dots are never shadowed.",yP={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)"},SP={labelsPx:90.25,widestLabelPx:34.6};function lI({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??Ps;return Yr(IP,{label:l("Card shadow"),icon:Yr(gP,{}),value:l(sf[a]),changed:!r,action:Yr(xP,{words:Y()?.panel,label:l("Card shadow"),changed:!r,detail:l(sf[Ps]),onReset:()=>o(null)}),hint:t?l(bP):void 0,children:Yr(hP,{options:du.map(n=>({id:n,label:l(sf[n]),icon:Yr("span",{className:"sf-shadow-chip",style:{boxShadow:yP[n]}})})),value:a,ariaLabel:l("Card shadow"),fit:SP,onChange:o})})}import{jsx as sI}from"react/jsx-runtime";import{ShadowIcon as CP}from"efficient-easel/icons";var vP="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 iI({value:e,onChange:o,showHint:t=!0}){let r=e===null;return sI(tn,{label:l("Shadow color"),icon:sI(CP,{}),value:e??"",inherited:Os,resetTo:Os,onChange:o,onReset:()=>o(null),hint:t?l(vP):void 0})}import{jsx as $n}from"react/jsx-runtime";import{SettingsDefaultReset as wP,SettingsField as kP}from"efficient-easel/panel";import{AlignSeparateIcon as TP}from"efficient-easel/icons";var FP="The space between the blocks inside a row, a grid or a box. Default means each one keeps the spacing it already has.",ff="Block gap",EP=qt.Grid;function fI({value:e,onChange:o,showHint:t=!0}){let r=e===null;return $n(kP,{label:l(ff),labelId:"sf-block-gap",icon:$n(TP,{}),value:r?l("Default"):`${e}px`,changed:!r,action:$n(wP,{words:Y()?.panel,label:l(ff),changed:!r,detail:l("each block's own spacing"),onReset:()=>o(null)}),hint:t?l(FP):void 0,children:$n(qe,{min:vt.min,max:vt.max,step:vt.step,value:r?EP:e,readout:!1,ariaLabel:l(ff),onChange:o})})}import{jsx as qn}from"react/jsx-runtime";import{SettingsDefaultReset as PP,SettingsField as LP,SettingsSegmented as OP}from"efficient-easel/panel";import{HoverIcon as RP}from"efficient-easel/icons";var cf={none:"None",lift:"Lift",highlight:"Highlight"},AP="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 cI({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??Ls;return qn(LP,{label:l("Hover effect"),icon:qn(RP,{}),value:l(cf[a]),changed:!r,action:qn(PP,{words:Y()?.panel,label:l("Hover effect"),changed:!r,detail:l(cf[Ls]),onReset:()=>o(null)}),hint:t?l(AP):void 0,children:qn(OP,{options:uu.map(n=>({id:n,label:l(cf[n])})),value:a,ariaLabel:l("Hover effect"),onChange:o})})}import{jsx as jn}from"react/jsx-runtime";import{SettingsDefaultReset as BP,SettingsField as _P,SettingsSegmented as DP}from"efficient-easel/panel";import{DropIcon as NP}from"efficient-easel/icons";var df="Photography",dI={shot:"As shot",mono:"Black and white"},uf=[{grayscale:!1,label:dI.shot},{grayscale:!0,label:dI.mono}],MP="Black and white photographs return to color on hover. Wheels and tyres keep their real finish either way.";function uI({value:e,onChange:o,showHint:t=!0}){let r=e===null,a=e??!1;return jn(_P,{label:l(df),icon:jn(NP,{}),value:l(uf.find(n=>n.grayscale===a).label),changed:!r,action:jn(BP,{words:Y()?.panel,label:l(df),changed:!r,detail:l(uf.find(n=>!n.grayscale).label),onReset:()=>o(null)}),hint:t?l(MP):void 0,children:jn(DP,{options:uf.map(n=>({id:n.grayscale,label:l(n.label)})),value:a,ariaLabel:l(df),onChange:o})})}import{jsx as pf}from"react/jsx-runtime";import{useId as HP}from"react";import{SettingsField as WP,SettingsSwitch as zP}from"efficient-easel/panel";import{ShareIcon as GP}from"efficient-easel/icons";var UP="Share button",$P="On every blog post.";function pI({value:e,onChange:o,showHint:t=!0}){let r=HP();return pf(WP,{label:l(UP),labelId:r,icon:pf(GP,{}),action:pf(zP,{checked:e===!0,onChange:o,ariaLabelledBy:r}),hint:t?l($P):void 0})}import{jsx as Kn}from"react/jsx-runtime";import{SettingsDefaultReset as qP,SettingsField as jP}from"efficient-easel/panel";import{PaddingXIcon as KP}from"efficient-easel/icons";var mf="Side space",xf=Co.default,VP="The room left at the left and right edge of every page.";function mI({value:e,onChange:o,showHint:t=!0}){let r=e===null;return Kn(jP,{label:l(mf),labelId:"sf-side-space",icon:Kn(KP,{}),value:`${e??xf}px`,changed:!r,action:Kn(qP,{words:Y()?.panel,label:l(mf),changed:!r,detail:`${xf}px`,onReset:()=>o(null)}),hint:t?l(VP):void 0,children:Kn(qe,{min:Co.min,max:Co.max,step:Co.step,value:e??xf,readout:!1,ariaLabel:l(mf),onChange:o})})}import{jsx as Mo,jsxs as YP}from"react/jsx-runtime";import{SettingsDefaultReset as xI,SettingsField as II,SettingsSegmented as hI}from"efficient-easel/panel";import{BackgroundIcon as XP,WidthIcon as ZP}from"efficient-easel/icons";var Vn="Width",QP="Background",JP="Content",gI=["full","content"],bI=e=>l(Kt[e==="content"?"page":"full"]),e1=400,yI="Content cannot be wider than the background.",SI="The width of every section's background, until the section sets its own.",CI="The width of every section's content, until the section sets its own.",vI="On phones, content always fills the screen.";function Yn({value:e,changed:o,detail:t,onChange:r,onReset:a,disabled:n=!1,hint:s,labelId:i}){let f=l(QP);return Mo(II,{label:f,labelId:i,icon:Mo(XP,{}),changed:o,hint:s?l(s):void 0,action:Mo(xI,{words:Y()?.panel,label:f,changed:o,detail:t,onReset:a}),children:Mo(hI,{options:gI.map(u=>({id:u,label:bI(u)})),value:e,onChange:r,ariaLabel:f,disabled:n})})}function Xn({mode:e,px:o,max:t=Ce.max,min:r=e1,changed:a,detail:n,onMode:s,onPx:i,onReset:f,fullClosed:u=!1,disabled:p=!1,hint:m,labelId:x}){let h=l(JP),b=e!=="full"?Mo(qe,{min:r,max:t,step:Ce.step,value:Math.min(Math.max(o,r),t),onChange:i,suffix:"px",ariaLabel:h,disabled:p}):null;return Mo(II,{label:h,labelId:x,icon:Mo(ZP,{}),changed:a,hint:m?l(m):void 0,action:Mo(xI,{words:Y()?.panel,label:h,changed:a,detail:n,onReset:f}),children:e===void 0||!s?b:YP("div",{className:"flex w-full min-w-0 flex-col gap-2",children:[Mo(hI,{options:gI.map(S=>({id:S,label:bI(S),disabled:S==="full"&&u})),value:e,onChange:s,ariaLabel:h,disabled:p}),b]})})}import{jsx as dh}from"react/jsx-runtime";import{TextStyleItem as cL,TextStylesGroup as dL}from"efficient-easel/text-styles";import{jsx as aL}from"react/jsx-runtime";import{useState as nL}from"react";import{TextStylesList as lL}from"efficient-easel/text-styles";import{usePreviewDevice as sL}from"efficient-easel/draw/client";import{textStyleCaseCss as Q1}from"efficient-easel/draw";import{textStyleCaseCss as d1,textStyleCaseOfCss as u1}from"efficient-easel/draw";function If(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 el,encodePartId as ol}from"efficient-easel/draw";import{LINK_FIELD_MARKER as AI,SCAFFOLD_FIELD_MARKER as OI,TEXT_FIELD_MARKER as tl}from"efficient-easel/draw";import{readHidable as BI}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as s1}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as l1}from"efficient-easel/draw";import{TEXT_FIELD_MARKER as wI}from"efficient-easel/draw";import{readHidable as kI}from"efficient-easel/draw";import{SCALAR_TEXT_CONTROLS as o1}from"efficient-easel/draw";var t1=o1,r1=["text","textarea"],a1=["textarea","plainTextarea"];function n1(e){return!e||typeof e!="object"?null:e[wI]?.control??null}function Jt(e){let o=n1(e);return o&&t1.includes(o)?o:null}function Zn(e){return a1.includes(e)}function TI(e){return!e||typeof e!="object"?void 0:e[wI]?.placeholder}function Qn(e){return kI(e).text}function hf(e,o,t){return r1.includes(e)?{text:t,hidden:kI(o).hidden}:t}function FI(e,o,t,r){return Qn(e[o])===r?null:{...e,[o]:hf(t,e[o],r)}}function gf(e){if(!(!e||typeof e!="object"))return e[l1]}function bf(e){if(!e||typeof e!="object")return null;let o=e.arrayFields;return o&&typeof o=="object"?o:null}function EI(e,o){if(!Array.isArray(o))return[];let t=gf(e),r=[];if(t?.control==="textList"){let n=t.itemKey??"text";return o.forEach((s,i)=>{let f=s?.[n];typeof f=="string"&&f&&r.push({row:{index:i,rowKey:n},text:f})}),r}let a=bf(e);return a?(o.forEach((n,s)=>{for(let[i,f]of Object.entries(a)){if(!Jt(f))continue;let u=Qn(n?.[i]);u&&r.push({row:{index:s,rowKey:i},text:u})}}),r):[]}function Xr(e,o){if(Array.isArray(e))return e[o.index]?.[o.rowKey]}function yf(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 PI(e,o,t,r,a){let n=Xr(e[o],t);return Qn(n)===a?null:yf(e,o,t,hf(r,n,a))}function LI(e,o){return o?`${e} \xB7 row ${o.index+1}`:e}var fo="data-sf-part",je="data-sf-part-selected",I7="data-sf-part-kind",i1="data-sf-part-style-owner",f1="data-sf-part-style-kind";function h7(e){for(let o=e;o;o=o.parentElement){let t=o.getAttribute(i1),r=o.getAttribute(f1);if(t&&r)return{owner:t,kind:r};if(o.getAttribute("data-puck-component"))return null}return null}var RI=2;function _I(e,o){if(!e)return!1;let t=el(e);return!!t?.propKey&&t.nodeId===o}function er(e){return gt(e).replace(/\s+/gu,"")}function Jn(e,o,t){let r=e[tl];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}=BI(o);a?t.push(a):r.placeholder&&t.push(r.placeholder);return}if(!e[AI]){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))Jn(s,a?.[n],t);return}if(e.objectFields&&o&&typeof o=="object")for(let[a,n]of Object.entries(e.objectFields))Jn(n,o[a],t)}}function DI(e){if(!e||typeof e!="object")return!1;let o=e;return o[AI]?!1:!!o[tl]||o.type==="text"||o.type==="textarea"}function rl(e,o){let t=e[tl];return t?.label?t.label:typeof e.label=="string"?e.label:o}function Sf(e){let o=e.indexOf(" (");return(o>0?e.slice(0,o):e).trim()}function g7(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){if(!a||typeof a!="object"||Mr(r))continue;let n=a,s=[];Jn(n,o?.[r],s),!s.length&&n[OI]!==void 0&&Jn(n,n[OI],s);let i=rl(n,r),f=new Set;for(let{row:m,text:x}of EI(n,o?.[r])){let h=er(x);h.length<RI||(f.add(h),t.push({key:r,label:i,texts:[h],row:m}))}let u=new Set(f),p=[];for(let m of s){let x=er(m);x.length<RI||u.has(x)||(u.add(x),p.push(x))}p.length&&t.push({key:r,label:i,texts:p})}return t}var c1=s1;function NI(e,o){if(!o||typeof o!="object"||Mr(e)||Rp(o))return null;let t=o[tl];return!t||!c1.includes(t.control)?null:t}function b7(e,o){let t=NI(e,o);return t!==null&&t.identifier!==!0}function MI(e,o){if(!e)return[];let t=[];for(let[r,a]of Object.entries(e)){let n=NI(r,a);if(!n)continue;let{text:s,hidden:i}=BI(o?.[r]),f=s||n.placeholder||"",u=gt(f).replace(/\s+/gu," ").trim();t.push({key:r,label:Sf(rl(a,r)),preview:u,offPage:n.offPage===!0,identifier:n.identifier===!0,hidden:!!i})}return t}var wf="_partStyles",Tf="data-sf-part-styled",p1=[400,500,600,700],jI=["left","center","right","justify"],HI=5,WI=1e3,m1=-5,x1=10,Ff=0,Ef=64,Pf=2,Lf=120,et=1280,Of=10,zI={size:{min:HI,max:WI,step:1},sizePhone:{min:HI,max:WI,step:1},padding:{min:Ff,max:Ef,step:Pf},width:{min:Lf,max:et,step:Of}},I1=.05,h1=.01,g1=["line","letter"],b1=.5,y1=2.5,S1=-1,C1=1,v1=0,w1=400;function Qr(e){return!e||typeof e!="object"||Array.isArray(e)?null:e}function KI(e){return Qr(e?.[wf])??{}}function nl(e,o){let t=KI(e);return Object.hasOwn(t,o)?Qr(t[o])??{}:{}}function VI(e,o,t){let r={...KI(e)};if(k1(t).length?r[o]=t:delete r[o],!Object.keys(r).length){let{[wf]:a,...n}=e;return n}return{...e,[wf]:r}}function k1(e){return Object.entries(e).filter(([,o])=>o!==void 0)}function T1(e){return g1.includes(e)}var Zr=(e,o,t)=>Math.min(t,Math.max(o,e));function F1(e,o){if(T1(e)){let t=Math.round(Number(o));return!Number.isFinite(t)||t===0?null:Zr(t,m1,x1)}if(e==="lineHeight"){let t=Number(o);return Number.isFinite(t)?or(Zr(t,b1,y1),3):null}if(e==="letterSpacing"){let t=Number(o);return Number.isFinite(t)?or(Zr(t,S1,C1),4):null}if(e==="paragraphSpacing"){let t=Math.round(Number(o));return!Number.isFinite(t)||t<=0?null:Zr(t,v1,w1)}if(Object.hasOwn(zI,e)){let{min:t,max:r}=zI[e],a=Math.round(Number(o));return Number.isFinite(a)?Zr(a,t,r):null}return e==="italic"?typeof o=="boolean"?o:null:e==="role"?Po.includes(String(o))?o:null:o}var E1=["weight","size","sizePhone","line","letter","lineHeight","letterSpacing","paragraphSpacing","padding","width"];function YI(e){let o=null,t=r=>{o??={...e},delete o[r]};for(let r of E1){let a=e[r];a!==void 0&&!(typeof a=="number"&&Number.isFinite(a))&&t(r)}return e.align!==void 0&&!jI.includes(e.align)&&t("align"),o??e}var P1=[["font","role"],["line","lineHeight"],["letter","letterSpacing"]];function L1(e){let o=[];for(let[t,r]of P1)t===e?o.push(r):r===e&&o.push(t);return o}function ea(e,o,t,r){let a={...nl(e,o)},n=r==null?null:F1(t,r);if(n===null)delete a[t];else{a[t]=n;for(let s of L1(t))delete a[s]}return VI(e,o,a)}function XI(e,o){return VI(e,o,{})}function O1(e){return u1(e)??"none"}function R1(e){return d1(e)??""}var A1={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 B1(e){let o=e.role;return o&&Po.includes(o)?o:null}var _1={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 D1(e){let o=Qd[e],t=_1[o];return t?`var(--size-${o}, ${t})`:`var(--size-${o})`}function oa(e){let o={};return typeof e.lineHeight=="number"?o.lineHeight=e.lineHeight:e.line&&(o.lineHeight=or(N1+e.line*I1,3)),typeof e.letterSpacing=="number"?o.letterSpacingEm=e.letterSpacing:e.letter&&(o.letterSpacingEm=or(e.letter*h1,4)),o}var N1=1,ta="--sf-part-para",Rf="(max-width: 719.98px)";function GI(e){return e=YI(e),typeof e.sizePhone=="number"&&e.sizePhone>0?{fontSize:`${e.sizePhone}px`}:{}}function M1(e,o){return o&&typeof e.sizePhone=="number"&&e.sizePhone>0?{...e,size:e.sizePhone}:e}function al(e,o){e=YI(e);let t=B1(e),r=oa(e),a=e.size?`${e.size}px`:t?D1(t):"";return{fontFamily:e.font?G1(e.font):t?`var(${A1[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`:"",[ta]:e.paragraphSpacing?`${e.paragraphSpacing}px`:"",textTransform:R1(e.case),textAlign:e.align??"",paddingTop:Cf(e.padding),paddingBottom:Cf(e.padding),maxWidth:Cf(e.width),color:H1(e.color),fontStyle:e.italic===!0?"italic":e.italic===!1?"normal":""}}var H1=e=>e===void 0||e===""?"":Object.hasOwn(Ro,e)?Ro[e]:ZI.test(e)?e:"",ZI=/^#[0-9a-fA-F]{6}$/;function QI(e){return ZI.test(e)}var Cf=e=>e===void 0?"":`${e}px`,or=(e,o)=>Number(e.toFixed(o));function T7(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:W1(Number.parseInt(e.fontWeight,10)),lineRatio:Number.isFinite(r)?or(r/t,3):1.2,letterEm:Number.isFinite(a)?or(a/t,4):0,align:z1(e.textAlign),case:O1(e.textTransform),paddingPx:Number.isFinite(n)?Math.round(n):0,widthPx:Number.isFinite(s)&&s<et?Math.round(s):et}}function W1(e){return Number.isFinite(e)?p1.reduce((o,t)=>Math.abs(t-e)<Math.abs(o-e)?t:o):400}function z1(e){for(let o of jI)if(o===e)return o;return e==="end"?"right":"left"}function F7(e,o){let t=UI(e);if(!t)return"";for(let r of lo)if(UI(o(r.cssVar))===t)return r.key;return""}var UI=e=>(e.split(",")[0]??"").replace(/["']/g,"").replace(/\s+/g," ").trim().toLowerCase();function G1(e){let o=Dt(e);return o?`var(${o.cssVar})`:""}function E7(e,o,t,r){return!o||el(o)?.nodeId!==e?null:t.find(a=>r(a.getAttribute("class")))??t[0]??null}function P7(e,o,t=()=>Jr,r=s=>s,a=q1,n=!1){let s=0;for(let{element:i,partId:f}of e){let u=el(f)?.propKey;if(!u)continue;let p=r(u),m=Object.hasOwn(o,p)?Qr(o[p])??{}:{},x=al(M1(m,n),Jr),h=vf.some(S=>i.style[S]),b=!1;for(let[S,w]of Object.entries(x))j1(i,S,w),w&&(b=!0);if(h||vf.some(S=>x[S]))for(let S of U1(i,a))for(let w of vf)S.style[w]=x[w]??"";b&&(s+=1)}return s}function U1(e,o){let t=er(e.textContent??""),r=[],a=e;for(let n=0;n<$1&&o(a);n+=1){let s=a.parentElement;if(!s||er(s.textContent??"")!==t)break;r.push(s),a=s}return r}var $1=8;function q1(e){let o=e;return typeof window>"u"||!o?.ownerDocument?!1:window.getComputedStyle(o).display==="inline"}var Jr={fontKey:"",sizePx:16,weight:400,lineRatio:1,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:et};function j1(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===ta&&(t?a.setAttribute?.($I,""):a.removeAttribute?.($I))}var $I="data-sf-part-para",K1=Object.keys(al({},Jr)),kf=new Set(["color","overflowWrap",ta,"fontStyle"]),vf=K1.filter(e=>!kf.has(e));function JI(e,o,t,r=a=>a){let a=new Map;for(let i of e){let f=If(i.key,i.row);for(let u of i.texts){let p=a.get(u);p?(p.keys.add(i.key),p.partKeys.add(f)):a.set(u,{keys:new Set([i.key]),partKeys:new Set([f])})}}let n=new Map;for(let i of Object.keys(o)){if(!V1(i))continue;let f=Qr(o[i])??{},u=al(f,Jr),p=GI(f);!Object.values(u).some(Boolean)&&!Object.keys(p).length||n.set(i,{stamp:qI(t,i),declarations:u,...Object.keys(p).length?{phone:p}:{}})}let s=new Map;for(let[i,{keys:f,partKeys:u}]of a){let p=u.size===1?[...u][0]:f.size===1?[...f][0]:null;if(!p)continue;let m=r(p);if(!Object.hasOwn(o,m))continue;let x=Qr(o[m])??{},h=al(x,Jr),b=GI(x);!Object.values(h).some(Boolean)&&!Object.keys(b).length||s.set(i,{stamp:qI(t,p),declarations:h,...Object.keys(b).length?{phone:b}:{}})}return s.size||n.size?{rules:s,kindRules:n,drawn:new Set(a.keys())}:null}function V1(e){return e.startsWith("@")}function Af(e,o){return e?.kindRules.get(o)??null}function qI(e,o){let t=r=>r.replace(/[^A-Za-z0-9_-]+/g,"-");return`${t(e)}~${t(o)}`}function eh(e){let o=[],t=new Set,r=a=>{let{stamp:n,declarations:s}=a;if(t.has(n))return;t.add(n);let i=Object.entries(s).filter(([,h])=>h!==""),f=h=>h.map(([b,S])=>`${X1(b)}: ${S}`).join("; "),u=`[${Tf}="${n}"]`,p=i.filter(([h])=>!kf.has(h)),m=i.filter(([h])=>kf.has(h));p.length&&o.push(`${u}, *:has(> ${u}) { ${f(p)} }`),m.length&&o.push(`${u} { ${f(m)} }`),s[ta]&&o.push(...Y1(u));let x=Object.entries(a.phone??{}).filter(([,h])=>h!=="");x.length&&o.push(`@media ${Rf} { ${u}, *:has(> ${u}) { ${f(x)} } }`)};for(let a of e.rules.values())r(a);for(let a of e.kindRules.values())r(a);return o.join(`
4
+ `)}function Y1(e){let o=`var(${ta})`,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 X1=e=>e.replace(/[A-Z]/g,o=>`-${o.toLowerCase()}`);function oh(e,o){if(!e)return null;let t=er(o),r=e.rules.get(t);if(r)return r;if(t.length<Z1||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 Z1=8;var Bf=e=>e==="sentence"?"none":void 0,Ho=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0,ra=e=>typeof e=="string"&&e?e:void 0,rh=["font","color","size","sizePhone","weight","italic","lineHeight","letterSpacing","paragraphSpacing","letterCase","largestSize"];function co(e){let o={};for(let t of rh)e[t]!==void 0&&(o[t]=e[t]);return o}function Df(e,o){let{auto:t,...r}=e,a=new Set(o??[]),n=rh.filter(s=>a.has(s)&&e.values[s]===void 0);return n.length?{...r,auto:n}:r}function Nf(e){let o=e.fonts,t=e.sizes,r=e.typography,a=mu(e.compression),n=(i,f)=>({id:`heading-${i}`,kind:"heading",name:`Heading ${i}`,values:co(f)}),s=(i,f={})=>({id:`body-${i}`,kind:"body",name:`Body ${i}`,values:co(f)});return[n(1,{font:ra(o.heading),size:Ho(t.headingLarge),weight:Ho(r.weight),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Bf(r.case),largestSize:Ho(r.maxPx)}),n(2,{font:ra(o.heading2),size:Ho(t.headingMedium),weight:Ho(r.weight2),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Bf(r.case2)}),n(3,{font:ra(o.heading3),size:Ho(t.headingSmall),weight:Ho(r.weight3),lineHeight:a.lineHeight,letterSpacing:a.letterSpacing,letterCase:Bf(r.case3)}),s(1,{font:ra(o.body),size:Ho(t.body)}),s(2),s(3),s(4),s(5,{font:ra(o.label),size:Ho(t.label)})]}function ll(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=>Df({...o,values:co(o.values??{})},Array.isArray(o.auto)?o.auto:void 0)):null}function _7(e){return ll(e)??[]}function ot(e,o){let t=Nf(o),r=ll(e);return r?r.map(a=>{let n={..._f(t,a.id)};for(let s of a.auto??[])delete n[s];return{...a,values:co({...n,...a.values})}}):t}var _f=(e,o)=>e.find(t=>t.id===o)?.values??{},th=["heading-1","heading-2","heading-3"];function ah({saved:e,old:o,cur:t,next:r,sizeOf:a}){let n=Nf(o),s=ll(e)??n.map(m=>({...m,values:{}})),i=ot(s,o),f=[],u=r.map(m=>{let x=t.find(g=>g.id===m.id),h=s.find(g=>g.id===m.id);if(!x||!h)return J1([m],a)[0];let b={...h.values},S=new Set(h.auto??[]),w=m.values,F=x.values,v=[...new Set([...Object.keys(w),...Object.keys(F)])].filter(g=>JSON.stringify(w[g])!==JSON.stringify(F[g]));v.sort((g,y)=>+(g==="letterSpacing")-+(y==="letterSpacing"));for(let g of v){let y=g==="lineSpacing"?"lineHeight":g,P=w[g];if(P===void 0){delete b[y],_f(n,m.id)[y]!==void 0&&(f.push([m.id,y]),S.add(y));continue}if(S.delete(y),g==="lineSpacing")b.lineHeight=tr(P/100,3);else if(g==="letterSpacing"){let k=i.find(E=>E.id===m.id),O=a({...m,values:co({...k?.values??{},...b})});b.letterSpacing=O?tr(P/O,4):0}else b[y]=P}return Df({id:m.id,kind:m.kind,name:m.name,values:co(b)},S)}),p=o.compression;if(f.some(([m,x])=>(x==="lineHeight"||x==="letterSpacing")&&th.includes(m))&&ct(p)!=="normal"){for(let m of th){let x=u.find(b=>b.id===m);if(!x)continue;let h={...x.values};for(let b of["lineHeight","letterSpacing"])f.some(([S,w])=>S===m&&w===b)||h[b]===void 0&&!(x.auto??[]).includes(b)&&(h[b]=_f(n,m)[b]);x.values=co(h)}p="normal"}return{saved:u,old:{...o,compression:p}}}function nh(e,o){let t={text_styles:e.saved};return e.old.compression!==o.compression&&(t.heading_compression=ct(e.old.compression)),t}var tr=(e,o)=>Number(e.toFixed(o));function lh(e,o){return e.map(t=>{let{lineHeight:r,letterSpacing:a,...n}=t.values,s={...n};return r!==void 0&&(s.lineSpacing=tr(r*100,1)),a!==void 0&&(s.letterSpacing=tr(a*o(t),2)),{id:t.id,kind:t.kind,name:t.name,values:s}})}function J1(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:co({...n})},i={...s.values};if(r!==void 0&&(i.lineHeight=tr(r/100,3)),a!==void 0){let f=o({...s,values:{...s.values}});i.letterSpacing=f?tr(a/f,4):0}return{...s,values:co(i)}})}function D7(e){let o={fonts:Or({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:Es({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:ct(e.heading_compression),typography:Iu(e)},t=e.text_styles??null,r=Array.isArray(t)?Mf(ot(t,o),o):o;return{fonts:Or(r.fonts),sizes:Es(r.sizes),compression:ct(r.compression),typography:r.typography,textStyles:t}}function Mf(e,o){let t=x=>e.find(h=>h.id===x)?.values??{},r=t("heading-1"),a=t("heading-2"),n=t("heading-3"),s=t("body-1"),i=t("body-5"),f=o.fonts,u=o.sizes,p=o.typography,m=x=>x==="none"?"sentence":"authored";return{fonts:{...f,heading:r.font??f.heading,heading2:a.font??r.font??f.heading2,heading3:n.font??r.font??f.heading3,body:s.font??f.body,label:i.font??f.label},sizes:{...u,headingLarge:r.size??null,headingMedium:a.size??null,headingSmall:n.size??null,body:s.size??null,label:i.size??null},compression:o.compression,typography:{...p,case:m(r.letterCase),weight:r.weight??null,maxPx:r.largestSize??null,weight2:a.weight??null,weight3:n.weight??null,case2:m(a.letterCase),case3:m(n.letterCase)}}}function eL(e){switch(e.id){case"heading-1":return"font-display";case"heading-2":return"font-heading2";case"heading-3":return"font-heading3";case"body-1":return"font-body";case"body-5":return"font-mono";default:return`font-${e.id}`}}function oL(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 tL(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 N7(e){let o=[];for(let t of e){let r=t.values,a=`.${eL(t)}`,n=[],s=r.font!==void 0?lo.find(p=>p.key===r.font)?.cssVar:void 0;if(s&&n.push(`font-family: var(${s})`),r.size!==void 0){let p=r.largestSize!==void 0?Math.min(r.size,r.largestSize):r.size;n.push(`font-size: ${p}px`)}let i=r.color!==void 0?oL(r.color):null;i&&n.push(`color: ${i}`),r.italic===!0&&n.push("font-style: italic"),r.weight!==void 0&&n.push(`font-weight: ${r.weight}`);let f=[];r.lineHeight!==void 0&&f.push(`line-height: ${r.lineHeight}`),r.letterSpacing!==void 0&&f.push(`letter-spacing: ${r.letterSpacing}em`),t.kind==="body"&&n.push(...f);let u=Q1(r.letterCase);if(u&&n.push(`text-transform: ${u}`),r.paragraphSpacing&&n.push(`--sf-part-para: ${r.paragraphSpacing}px`),n.length&&o.push(`${a} { ${n.join("; ")} }`),t.kind==="heading"&&f.length&&o.push(`${a}, ${a}:is(h1, h2, h3, h4) { ${f.join("; ")} }`),r.paragraphSpacing&&o.push(...tL(a)),r.sizePhone!==void 0){let p=rL[t.id],m=[`${a} { font-size: ${r.sizePhone}px }`];p&&m.push(`.sf-themed-content { --size-${p}: ${r.sizePhone}px !important }`),o.push(`@media ${Rf} { ${m.join(" ")} }`)}}return o.join(`
5
+ `)}var rL={"heading-1":"headingLarge","heading-2":"headingMedium","heading-3":"headingSmall","body-1":"body","body-5":"label"};function M7(e){return e!==!0&&e!==!1?"":`em.text-accent { font-style: ${e?"italic":"normal"} }`}function Hf(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 Wf(e){let o=oa(e);return co({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 sh(e){return Object.keys(Wf(e)).length>0}function ih({saved:e,old:o,styleId:t,values:r}){return{saved:(ll(e)??Nf(o).map(a=>({...a,values:{}}))).map(a=>a.id===t?Df({...a,values:co({...a.values,...r})},a.auto):a),old:o}}var fh=["font","color","size","weight","emphasis","lineSpacing","letterSpacing","paragraphSpacing","letterCase","largestSize"],iL=["size","lineSpacing","letterSpacing","letterCase"],fL=500,zf=lo.map(e=>({value:e.key,label:e.label,family:`var(${e.cssVar})`,italic:e.italicLoaded}));function ch({saved:e,old:o,colours:t,sizeOf:r,onChange:a,openId:n,onOpenChange:s,readOnly:i=!1,withoutSize:f=!1}){let[u,p]=nL(null),m=sL()==="mobile",x=ot(e,o),h=lh(x,r);return aL(lL,{styles:h,onChange:b=>a(ah({saved:e,old:o,cur:h,next:b,sizeOf:r})),fonts:zf,colours:t,settings:f?fh.filter(b=>b!=="size"):fh,auto:iL,openId:n===void 0?u:n,onOpenChange:s??p,readOnly:i,device:m?"phone":"desktop",fallback:b=>{let S=x.find(F=>F.id===(b.kind==="heading"?"heading-1":"body-1")),w={};return S?.values.font&&b.id!==S.id&&(w.font=S.values.font),b.kind==="heading"&&(w.weight=fL),w}})}var uh=["font","size","weight","emphasis"],uL=500;function pL({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 mL(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 ph(e){let{headingWeight:o,open:t,onOpenChange:r,onChange:a,withoutSize:n=!1}=e,s=pL(e);return dh(dL,{label:l("Accent"),children:dh(cL,{style:s,fonts:zf,settings:n?uh.filter(i=>i!=="size"):uh,auto:["size"],fallback:()=>({weight:o??uL}),open:t,onOpenChange:r,onChange:i=>mL(s,i).forEach(a)})})}import{Tabs as IL,Tooltip as v8,tabButtonId as hL,tabPanelId as gL}from"efficient-shell/ui";import{ContrastIcon as bL,NoteIcon as yL,SettingsIcon as SL,TypeIcon as CL}from"efficient-easel/icons";function mh(e){switch(e.status){case"saved":return null;case"failed":return{msg:l("Not saved. Try again."),tone:"error"};case"skipped":switch(e.reason){case"empty":return null;case"no-token":return{msg:l("Not saved. Reload the page."),tone:"error"};case"template":return{msg:l("Templates keep their look. Press Done."),tone:"success"}}}}import{SettingsGroupSub as vL}from"efficient-easel/panel";import{previewFrame as wL}from"efficient-easel/screen/lib/puck/preview-dom";import{useEasel as xL}from"efficient-easel/easel";function sl({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=xL(O=>O),{fonts:a,setFonts:n,sizes:s,setSizes:i,headingCompression:f,setHeadingCompression:u,headingTypography:p,setHeadingTypography:m,textStyles:x,setTextStyles:h}=q(),b=t.data,S=b.root?.props??{},w=e?Or(S.fonts):a,F=e?iu:s,v=e?ct(S.headingCompression):f,g=e?xu(S.headingTypography):p,y={fonts:w,sizes:F,compression:v,typography:g},P=e?S.textStyles:x,k=O=>r({type:"replaceRoot",root:{...b.root,props:{...S,...O}},recordHistory:!0});return{fonts:w,sizes:F,compression:v,typography:g,old:y,saved:P,write:(O,E)=>{let B=Mf(ot(O.saved,O.old),O.old);e?k({textStyles:O.saved,fonts:B.fonts,headingCompression:B.compression,headingTypography:B.typography}):(h(O.saved),n(B.fonts),i(B.sizes),u(B.compression),m(B.typography)),o(nh(O,y),E)},writeRoot:k}}var $f="sf-site-styles",kL="sf-site-styles-tabpanel",qf=!1,TL="Show hints";function jf({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(yL,{size:13}),l(TL)]})})}var Ih="text",rr=[{id:"basics",label:"Basics",icon:oe(SL,{})},{id:"theme",label:"Theme",icon:oe(bL,{})},{id:"text",label:"Text",icon:oe(CL,{})}];function FL({themeFromDocument:e,persist:o}){let{appState:t,dispatch:r}=xh(u=>u),{theme:a,setTheme:n}=q(),s=t.data,i=s.root?.props??{},f=u=>{if(e){let p={...i,theme:u};r({type:"replaceRoot",root:{...s.root,props:p},recordHistory:!0})}else n(u);o({selected_preset:u.selected,theme_presets:u.themes})};return oe(aI,{value:e?i.theme:a,onChange:f})}function EL({themeFromDocument:e,persist:o}){let[t,r]=Uf(null),{theme:a,setFonts:n,setSizes:s,setHeadingTypography:i}=q(),f=sl({themeFromDocument:e,persist:o}),{old:u,saved:p,writeRoot:m}=f,x=f.fonts,h=f.sizes,b=f.typography,S=k=>k.values.size??AL(LL[k.id]??"body")??OL[k.kind],w=k=>f.write(k),F=PL(a),v=k=>{let O={...x,accent:k};e?m({fonts:O}):n(O),o({accent_font:k})},g=k=>{s({...h,accent:k}),o({accent_size_px:k})},y=k=>{let O={...b,weightStrong:k};e?m({headingTypography:O}):i(O),o({heading_weight_strong:k})},P=k=>{let O={...b,italicStrong:k};e?m({headingTypography:O}):i(O),o({accent_italic:k})};return tt(Tt,{children:[oe(ch,{saved:p,old:u,colours:F,sizeOf:S,onChange:w,openId:t===Gf?null:t,onOpenChange:r,withoutSize:e}),oe(ph,{font:x.accent,size:h.accent,weight:b.weightStrong,italic:b.italicStrong,headingWeight:b.weight,open:t===Gf,onOpenChange:k=>r(k?Gf:null),onChange:k=>{k.key==="font"?v(k.value):k.key==="size"?g(k.value):k.key==="weight"?y(k.value):P(k.value)},withoutSize:e})]})}var Gf="accent";function PL(e){let o=Nt(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 LL={"heading-1":"heading","heading-2":"heading2","heading-3":"heading3","body-1":"body","body-5":"label"},OL={heading:32,body:14},RL={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 AL(e){if(typeof document>"u")return null;let o=(wL()?.contentDocument??document).querySelector(RL[e]);if(!o)return null;let t=parseFloat(getComputedStyle(o).fontSize);return Number.isFinite(t)?t:null}function BL({themeFromDocument:e,persist:o,showHint:t}){let{appState:r,dispatch:a}=xh(x=>x),{cornerRadiusPx:n,setCornerRadiusPx:s}=q(),i=r.data,f=i.root?.props??{},u=f.cornerRadiusPx===void 0?cu[fu(f.cornerStyle)]:Io(f.cornerRadiusPx),p=e?u:n,m=x=>a({type:"replaceRoot",root:{...i.root,props:{...f,...x}},recordHistory:!0});return oe(nI,{value:p,onChange:x=>{e?m({cornerRadiusPx:x}):s(x),o({corner_radius_px:x})},showHint:t})}function _L(e){return{site_width:e}}function DL({persist:e,showHint:o}){let{siteWidth:t,setSiteWidth:r,sectionBackgroundWidth:a,setSectionBackgroundWidth:n,sectionContentWidth:s,setSectionContentWidth:i}=q(),f=typeof t=="number"?t:Ce.default,u=x=>{r(x),e(_L(x),x===null)},p=x=>{n(x),e({section_background_width:x},!0)},m=x=>{i(x),e({section_content_width:x},!0)};return tt(Tt,{children:[oe(vL,{title:l(Vn),level:4}),oe(Yn,{value:a??"full",changed:a!==null,detail:l("Full width"),onChange:p,onReset:()=>p(null),hint:o?SI:void 0}),oe(Xn,{mode:s??"content",px:f,min:Ce.min,max:Ce.max,changed:typeof t=="number"||s!==null,detail:`${l("Content width")} ${Ce.default}px`,onMode:m,onPx:x=>u(x),onReset:()=>{m(null),u(null)},hint:o?CI:void 0})]})}function NL(e){return{block_gap:e}}function ML(e){return{site_gutter:e}}function HL({persist:e,showHint:o}){let{siteGutter:t,setSiteGutter:r}=q();return oe(mI,{value:t,onChange:a=>{r(a),e(ML(a),a===null)},showHint:o})}function WL({persist:e,showHint:o}){let{blockGap:t,setBlockGap:r}=q();return oe(fI,{value:t,onChange:a=>{r(a),e(NL(a),a===null)},showHint:o})}function zL({persist:e,showHint:o=!0}){return tt(Tt,{children:[oe(DL,{persist:e,showHint:o}),oe(HL,{persist:e,showHint:o}),oe(WL,{persist:e,showHint:o})]})}function GL(e){return{card_shadow:e}}function UL(e){return e===null?{shadow_color:null}:{shadow_color:pu(e)}}function $L(e){return{hover_effect:e}}function qL({persist:e,showHint:o=!0}){let{cardShadow:t,setCardShadow:r,shadowColor:a,setShadowColor:n,hoverEffect:s,setHoverEffect:i}=q();return tt(Tt,{children:[oe(lI,{value:t,onChange:f=>{r(f),e(GL(f),!0)},showHint:o}),oe(iI,{value:a,onChange:f=>{n(f),e(UL(f),f===null)},showHint:o}),oe(cI,{value:s,onChange:f=>{i(f),e($L(f),!0)},showHint:o})]})}function jL(e){return{photography_grayscale:e}}function KL({persist:e,showHint:o}){let{photographyGrayscale:t,setPhotographyGrayscale:r}=q();return oe(uI,{value:t,onChange:a=>{r(a),e(jL(a),!0)},showHint:o})}function VL({persist:e,showHint:o=!0}){return oe(Tt,{children:oe(KL,{persist:e,showHint:o})})}function YL(e){return{share_button_on_posts:e}}function XL({persist:e,showHint:o=!0}){let{shareButtonOnPosts:t,setShareButtonOnPosts:r}=q();return oe(pI,{value:t,onChange:a=>{r(a),e(YL(a),!0)},showHint:o})}function ar(){let{websiteName:e}=q();return e?.trim()||hu}function il({themeFromDocument:e=!1,tokenRef:o,siteId:t,onNotify:r,tab:a,onTabChange:n}){let{persist:s}=Ut({themeFromDocument:e,tokenRef:o,siteId:t,onResult:S=>{let w=mh(S);w&&r?.(w.msg,w.tone)}}),[i,f]=Uf(rr[0].id),u=a!==void 0,p=u?a:i,m=u?n??(()=>{}):f,x=rr.find(S=>S.id===p)??rr[0],[h,b]=Uf(qf);return tt(Tt,{children:[oe(ZL,{activeId:x.id,onSelect:m}),tt("div",{id:gL($f,x.id),className:kL,role:"tabpanel","aria-labelledby":hL($f,x.id),children:[p==="basics"&&tt(Tt,{children:[oe(BL,{themeFromDocument:e,persist:s,showHint:h}),!e&&oe(qL,{persist:s,showHint:h}),!e&&oe(zL,{persist:s,showHint:h}),!e&&oe(VL,{persist:s,showHint:h}),!e&&oe(XL,{persist:s,showHint:h}),oe(jf,{shown:h,onChange:b})]}),p==="theme"&&oe(FL,{themeFromDocument:e,persist:s}),p==="text"&&oe(EL,{themeFromDocument:e,persist:s})]})]})}function ZL({activeId:e,onSelect:o}){return oe("div",{className:"es-insp-tabs",children:oe(IL,{variant:"underline",block:!0,labelsFit:!0,"aria-label":l("Site styles"),idPrefix:$f,value:e,onChange:o,items:rr.map(t=>{let r=l(t.label);return{id:t.id,icon:t.icon,label:r}})})})}import{InspectorIconButton as xO}from"efficient-easel/chrome";import{Button as Rh,Dialog as IO,FormField as hO,Input as Ah,toast as Bh}from"efficient-shell/ui";import{LayersTree as gO,TreeGroupLabel as bO,TreeRow as _h,TreeRowAction as gl}from"efficient-easel/tree";import{AddIcon as yO,DuplicateIcon as SO,PageIcon as CO}from"efficient-easel/icons";import{PagesIcon as vO}from"efficient-easel/rail";import{useEaselHost as wO}from"efficient-easel/screen/lib/host";var Kf="Main Pages",QL="Dynamic Pages",Vf="dynamic",JL="dynamic";function Yf(e){return e.kind===JL}function hh(e){let o=[],t=[];for(let r of e){if(Yf(r)){t.push(r);continue}let a=r.groupKey??(r.group?`folder:${r.group}`:"top"),n=o[o.length-1];n&&n.key===a?n.rows.push(r):o.push({key:a,label:r.group??Kf,rows:[r]})}if(t.length){let r=o.findIndex(a=>a.key.startsWith("system:"));o.splice(r===-1?o.length:r,0,{key:Vf,label:QL,rows:t})}return o}import{useEaselSession as kO}from"efficient-easel/screen/lib/session-context";import{useCallback as fl,useEffect as eO,useSyncExternalStore as oO}from"react";import{useScreenDocument as Sh}from"efficient-easel/screen/components/ScreenDocumentContext";var gh=new WeakMap;function aa(e){let o=gh.get(e);return o||(o={rows:null,loading:null,listeners:new Set},gh.set(e,o)),o}function Xf(e,o){e.rows=o;for(let t of e.listeners)t()}var cl=new Set;function dl(e,o){o?cl.add(e):cl.delete(e)}function bh(e){let o=aa(e),t=e.listPages().then(r=>Xf(o,cl.size?r.filter(a=>!cl.has(a.id)):r),()=>Xf(o,[])).finally(()=>{o.loading===t&&(o.loading=null)});return o.loading=t,t}var yh=()=>null,tO=()=>()=>{};function na(){let{adapter:e,ready:o}=Sh(),t=fl(i=>{let{listeners:f}=aa(e);return f.add(i),()=>f.delete(i)},[e]),r=fl(()=>aa(e).rows,[e]),a=oO(o?t:tO,o?r:yh,yh);eO(()=>{if(!o)return;let i=aa(e);i.rows===null&&!i.loading&&bh(e)},[e,o]);let n=fl(()=>o?bh(e):Promise.resolve(),[e,o]),s=fl(i=>Xf(aa(e),i),[e]);return{rows:a,reload:n,setRows:s,getRows:r}}function rO(e,o){return e?.find(t=>t.slug===o)?.label?.trim()||`/${o}`}function Ch(){let{currentSlug:e}=Sh(),{rows:o}=na();return rO(o,e)}import{useEaselSession as aO}from"efficient-easel/screen/lib/session-context";import{useScreenDocument as nO}from"efficient-easel/screen/components/ScreenDocumentContext";var lO=new Set(["normal","dynamic"]);function ul(e){return!e.kind||lO.has(e.kind)}function pl(e,o){let t=St(e)||"page";if(!o.has(t))return t;let r=2;for(;o.has(`${t}-${r}`);)r+=1;return`${t}-${r}`}function vh(e,o){return o.has(e)}function wh(e,o){return{title:`${e.label||e.slug} copy`,slug:pl(`${e.slug}-copy`,o)}}function ml(){let e=aO(),{siteId:o,templateId:t}=nO(),r=Me(e).pages;if(!(!r.duplicate||t))return(a,n)=>r.duplicate(a.id,{...n,...o?{siteId:o}:{}})}import{jsx as Ft,jsxs as kh,Fragment as sO}from"react/jsx-runtime";import{useId as Th,useState as nr}from"react";import{Button as Fh,Dialog as iO,FormField as Eh,Input as Ph,Stack as fO}from"efficient-shell/ui";function xl({source:e,taken:o,duplicate:t,onClose:r,onDuplicated:a}){let n=Th(),s=Th(),[i,f]=nr(null),[u,p]=nr(""),[m,x]=nr(""),[h,b]=nr(!1),[S,w]=nr(!1),[F,v]=nr(null);if(e!==i&&(f(e),e)){let k=wh(e,o);p(k.title),x(k.slug),b(!1),v(null)}let g=vh(m,o),y=!!(e&&u.trim()&&m&&!g&&!S),P=async()=>{if(!(!e||!y)){w(!0),v(null);try{let k=await t(e,{title:u.trim(),slug:m});a(k)}catch{v(l("Couldn\u2019t duplicate the page \u2014 please retry."))}finally{w(!1)}}};return Ft(iO,{open:e!==null,onClose:()=>{S||r()},size:"sm",title:l("Duplicate \u201C{name}\u201D",{name:e?.label??""}),description:l("The copy is a draft and stays hidden until you publish it. It opens in the editor."),footer:kh(sO,{children:[Ft(Fh,{variant:"secondary",onClick:r,disabled:S,children:l("Cancel")}),Ft(Fh,{onClick:()=>{P()},disabled:!y,loading:S,children:l("Duplicate page")})]}),children:kh(fO,{gap:4,children:[Ft(Eh,{label:l("Title"),htmlFor:n,error:F??void 0,children:Ft(Ph,{id:n,value:u,invalid:!!F,onChange:k=>{p(k.target.value),h||x(St(k.target.value))},onKeyDown:k=>{k.key==="Enter"&&P()}})}),Ft(Eh,{label:l("URL handle"),htmlFor:s,hint:g?void 0:l("URL: /{slug}",{slug:m}),error:g?l("Another page uses this URL handle."):void 0,children:Ft(Ph,{id:s,value:m,invalid:g,onChange:k=>{b(!0),x(St(k.target.value))},onKeyDown:k=>{k.key==="Enter"&&P()}})})]})})}var Dh="sf-editor-pages-collapsed-groups";function Nh({onNavigate:e,onClose:o,activeSurface:t,onPreviewSurface:r}){let a=kO().chrome?.pageRows,n=wO(),{adapter:s,capabilities:i,ready:f,currentSlug:u}=pO(),p=ar(),{rows:m,reload:x,setRows:h,getRows:b}=na(),[S,w]=Et(""),[F,v]=Et(!1),[g,y]=Et(null),[P,k]=Et(!1),[O,E]=Et(""),B=uO(),$=ml(),[K,N]=Et(null),[H,A]=Et(()=>{if(typeof window>"u")return new Set;try{let L=window.localStorage.getItem(Dh);return new Set(L?JSON.parse(L):[])}catch{return new Set}});dO(()=>{try{window.localStorage.setItem(Dh,JSON.stringify([...H]))}catch{}},[H]);let ae=L=>A(J=>{let U=new Set(J);return U.has(L)?U.delete(L):U.add(L),U}),le=Oh(()=>hh(m??[]),[m]),pe=S.trim().toLowerCase(),oo=L=>!pe||L.toLowerCase().includes(pe),Ve=L=>pe?!0:!H.has(L),ke=Oh(()=>new Set((m??[]).map(L=>L.slug)),[m]),to=()=>{if(i.pageCreationInAdminForm){n.send("storefront-editor:new-page");return}E(""),y(null),k(!0)},De=async()=>{let L=O.trim();if(!(!L||!f||F||!s.createPage)){v(!0),y(null);try{let J=await s.createPage({slug:pl(L,ke),title:L,layout:{}});await x(),k(!1),E(""),e(J.slug)}catch{y(l("Couldn\u2019t add the page \u2014 please retry."))}finally{v(!1)}}},Le=L=>{let J=m??[],U=s.deletePage;if(!f||F||!U||J.length<=1)return;let Ie=J.findIndex(ee=>ee.id===L.id),Se=J.filter(ee=>ee.id!==L.id),We=L.slug===u;dl(L.id,!0),h(Se),y(null),We&&Se[0]&&e(Se[0].slug);let Ue=()=>{dl(L.id,!1);let ee=b()??[];if(ee.some(Ze=>Ze.id===L.id))return;let ne=[...ee];ne.splice(Math.max(0,Math.min(Ie,ne.length)),0,L),h(ne)};Bh.undoable(l("Deleted \u201C{name}\u201D",{name:L.label}),{actionLabel:l("Undo"),commit:async ee=>{await U(L.id,ee),dl(L.id,!1)},undo:()=>{Ue(),We&&e(L.slug)},onFail:()=>{Ue(),Bh.error(l("Couldn\u2019t delete the page \u2014 please retry."))}})},ge=L=>n.send("storefront-editor:open-page",{slug:L}),ye=L=>{if(!oo(L.label))return null;let J=!t&&L.slug===u,U=i.canDeletePagesInline&&(m??[]).length>1,Ie=Yf(L),Se=L.kind==="lightbox",We=[...Ie?[{label:l("Dynamic"),tone:"info"}]:[],...Se?[{label:l("Lightbox"),tone:"success"}]:[],...L.draft?[{label:l("draft"),tone:"draft"}]:[]],Ue=We.length>0?We:void 0,ee=!!$&&ul(L),ne=ee||i.pageCreationInAdminForm||U?Il(Lh,{children:[ee&&ie(gl,{kind:"plain",label:l("Duplicate \u201C{name}\u201D",{name:L.label}),disabled:F,onClick:()=>N(L),children:ie(SO,{size:13})}),i.pageCreationInAdminForm&&ie(gl,{kind:"plain",label:l("Edit \u201C{name}\u201D in {place}",{name:L.label,place:l("the admin")}),onClick:()=>ge(L.slug),children:ie(hl,{name:"pencil",size:13,strokeWidth:1.7,rounded:!0})}),U&&ie(gl,{kind:"delete",label:l("Delete \u201C{name}\u201D",{name:L.label}),disabled:F,onClick:()=>Le(L),children:ie(hl,{name:"trash",size:13,strokeWidth:1.7,rounded:!0})})]}):void 0;return ie(_h,{icon:ie(CO,{size:14}),name:L.label,selected:J,onSelect:()=>e(L.slug),badge:Ue,actions:ne,rowProps:{"data-page-slug":L.slug}},L.id)},Ye=(L,J,U)=>{let Ie=U.filter(Boolean);if(Ie.length===0)return null;let Se=Ve(L);return Il(cO,{children:[ie(bO,{count:Ie.length,expanded:Se,onToggle:()=>ae(L),children:J}),Se&&Ie]},L)},Ne=(a?.rows??[]).filter(L=>oo(L.label)).map(L=>{let J=t===L.key;return ie(_h,{icon:L.icon,name:L.label,selected:J,onSelect:()=>r(L.key),badge:{label:l("Preview"),tone:"warning"},actions:ie(gl,{kind:"plain",label:l("Open the {name} in a new tab",{name:L.label}),onClick:()=>window.open(L.href,"_blank","noopener,noreferrer"),children:ie(hl,{name:"external-link",size:13,strokeWidth:1.7,rounded:!0})}),rowProps:{"data-shop-surface":L.key}},L.key)}),Xe=i.hasSiteSettings&&!!a,Oe=(()=>{if(m===null)return null;let L=[],J=!1;for(let U of le){Xe&&!J&&U.key.startsWith("system:")&&(L.push(Ye("shop",a.title,Ne)),J=!0);let Ie=U.key===Vf||U.label===Kf?l(U.label):U.label;L.push(Ye(U.key,Ie,U.rows.map(ye)))}return Xe&&!J&&L.push(Ye("shop",a.title,Ne)),L})();return Il("div",{className:"sf-pages",children:[ie(mO,{icon:ie(vO,{}),title:l("Pages"),context:p,actions:ie(xO,{label:l("New page"),onClick:to,children:ie(yO,{size:15})}),onHide:o}),ie("div",{className:"sf-pages-find",children:ie(Ah,{type:"search",leftIcon:ie(hl,{name:"search",size:14,rounded:!0}),placeholder:l("Search all pages\u2026"),value:S,onChange:L=>w(L.target.value),"aria-label":l("Search all pages")})}),g&&!P&&ie("div",{className:"sf-note sf-note--error",role:"alert",children:g}),Oe===null?ie("div",{className:"sf-note",children:l("Loading\u2026")}):Oe.some(Boolean)?ie(gO,{ariaLabel:l("Pages"),className:"sf-scroll",children:Oe}):ie("div",{className:"sf-note",children:S.trim()?l("No pages match your search"):l("No pages yet. Add one with + above.")}),$&&ie(xl,{source:K,taken:ke,duplicate:$,onClose:()=>N(null),onDuplicated:L=>{N(null),x(),e(L.slug)}}),ie(IO,{open:P,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:Il(Lh,{children:[ie(Rh,{variant:"secondary",onClick:()=>k(!1),children:l("Cancel")}),ie(Rh,{onClick:()=>{De()},disabled:F||!O.trim(),loading:F,children:l("Add page")})]}),children:ie(hO,{label:l("Page name"),htmlFor:B,hint:O.trim()?l("URL: /{slug}",{slug:pl(O,ke)}):void 0,error:g??void 0,children:ie(Ah,{id:B,value:O,invalid:!!g,onChange:L=>E(L.target.value),onKeyDown:L=>{L.key==="Enter"&&De()},placeholder:l("e.g. About")})})})]})}import{jsx as TO}from"react/jsx-runtime";import{createContext as FO,useCallback as EO,useContext as PO,useState as LO}from"react";import{useSelectHandler as OO}from"efficient-easel/draw/client";var bl=["chat-bubble-left-right","chat-bubble-oval-left-ellipsis","chat","megaphone","phone","sparkles"],lr=bl[0];var Pt="right";function yl(e){return bl.includes(e??"")?e:lr}function Mh(e){return e==="left"?"left":Pt}function Hh(e){return/^#[0-9a-fA-F]{6}$/.test(e??"")?e.toLowerCase():""}var Sl={enabled:!0,title:"",subtitle:"",greeting:"",launcherColor:"",launcherIcon:"",launcherPosition:Pt,launcherLabel:"",showOnPhones:!0};function Sq(e){return{enabled:e.enabled,title:e.title,subtitle:e.subtitle,greeting:e.greeting,launcherColor:Hh(e.launcherColor),launcherIcon:e.launcherIcon?yl(e.launcherIcon):"",launcherPosition:Mh(e.launcherPosition),launcherLabel:e.launcherLabel??"",showOnPhones:e.showOnPhones!==!1}}var Wh=FO({chat:Sl,setChat:()=>{},selected:!1,setSelected:()=>{},select:()=>{},setSelectHandler:()=>{}});function Cq({children:e,chat:o=Sl,onChatChange:t}){let[r,a]=LO(!1),n=EO(f=>t?.(f),[t]),{select:s,setSelectHandler:i}=OO();return TO(Wh.Provider,{value:{chat:o,setChat:n,selected:r,setSelected:a,select:s,setSelectHandler:i},children:e})}var Cl=()=>PO(Wh);import{jsx as Zf}from"react/jsx-runtime";import{DesktopIcon as RO,PhoneIcon as AO,TabletIcon as BO}from"efficient-easel/icons";import{VIEW_TIERS as _O,VIEW_TIER_LABEL as DO}from"efficient-easel/draw";var NO={desktop:Zf(RO,{}),tablet:Zf(BO,{}),mobile:Zf(AO,{})},zh=_O.map(e=>({id:e,get label(){return l(DO[e])},icon:NO[e]}));import{PreviewDeviceContext as iH}from"efficient-easel/draw/client";import{jsx as MO}from"react/jsx-runtime";import{createContext as HO,useCallback as Gh,useContext as WO,useMemo as zO,useRef as GO}from"react";var UO=Object.fromEntries(Ga.map(e=>[e,{value:"",error:null}])),Uh=HO({links:bu,rows:UO,canSave:!1,saveLink:async()=>({ok:!1,error:"There is no website to save to."}),openPanel:()=>{},setOpenHandler:()=>{}});function Rq({children:e,value:o}){let t=GO(()=>{}),r=Gh(()=>t.current(),[]),a=Gh(s=>{t.current=s},[]),n=zO(()=>({...o,openPanel:r,setOpenHandler:a}),[o,r,a]);return MO(Uh.Provider,{value:n,children:e})}var la=()=>WO(Uh);import{jsx as $O}from"react/jsx-runtime";import{createContext as qO,useContext as jO,useMemo as KO,useState as VO}from"react";var $h=qO(null);function Dq({children:e}){let[o,t]=VO(null),r=KO(()=>({surface:o,setSurface:t}),[o]);return $O($h.Provider,{value:r,children:e})}function qh(){return jO($h)??{surface:null,setSurface:()=>{}}}import{createPreviewSelectionContext as YO}from"efficient-easel/draw/client";var sa="Scrolling Bar",{Provider:Hq,useSelection:vl}=YO("selectedHeroId");import{createPreviewSelectionContext as XO}from"efficient-easel/draw/client";var{Provider:Gq,useSelection:wl}=XO("selectedHeroPart");import{isShown as uR,lazyShowWhenContext as pR}from"efficient-shell/format";var kl="product",ZO="recordType",QO={key:kl,label:"Product",fields:[]};var JO=new Map,eR=0;function $q(){return[QO,...JO.values()]}function qq(){return eR}function oR(e){let o=e?.[ZO];return typeof o!="string"?kl:o.trim()||kl}function Qf(e){return oR(e)===kl}var Jf="product",tR="tyre";var rR="productType",aR={[Jf]:"alloy-wheel",[tR]:"tyre"},nR=["alloy-wheel","tyre"];function jh(e,o){return Qf(o)?lR(o)??aR[e]??null:null}function lR(e){if(!Qf(e))return null;let o=e?.[rR];return typeof o=="string"&&nR.includes(o)?o:null}var Tl=null,Kh=null;function sR(e,o){Tl=e,Kh=o}function Xq(e){sR(e,null)}function Zq(){return Tl}function Vh(){return Kh==="dynamic"||Tl===Jf}function Qq(e){return jh(Tl??"",e)??"alloy-wheel"}import{addShowWhenFacts as iR}from"efficient-shell/format";import{showWhenOf as ec,shownForOption as fR,truthy as cR,withRowRules as dR,withRowsShownWhen as Fl,withShowWhen as El}from"efficient-shell/format";var t9=iR;function Xh(e,o,t){let r=!1,a={};for(let[n,s]of Object.entries(e))uR(ec(s),o??{},t)?a[n]=s:r=!0;return r?a:e}function Zh(e,o,t,r){let a=Va(o,t,r);return{device:e,parentType:a?.item.type,parent:a?.item.props}}function Yh(e,o){if(!e||typeof e!="object")return!1;let t=e;if(typeof t.context=="string"&&(t.context===o||t.context.startsWith(`${o}.`)))return!0;if("not"in t)return Yh(t.not,o);for(let r of[t.all,t.any])if(Array.isArray(r)&&r.some(a=>Yh(a,o)))return!0;return!1}function f9(e,o={}){return pR({parentType:()=>e.parent?.type??void 0,parent:()=>e.parent?.props??void 0,dynamicPage:()=>Vh(),root:()=>e.appState?.data?.root?.props,...o})}var Jh=["one","side","stacked"];var d9={one:"One",side:"Side by side",stacked:"Stacked"};function eg(e){return Jh.includes(e)?e:"one"}function Qh(e){return e==="one"?1:2}function mR(e,o){if(Jh.includes(e))return e;let t=eg(o);return t==="side"?"stacked":t}function oc(e){let o=eg(e.mediaLayout);return Math.max(Qh(o),Qh(mR(e.mediaLayoutPhone,o)))}var ia=["media","image","image2"],sr={media:"Media",image:"Image",image2:"Image 2"},fa={media:"heroMedia",image:"heroImage",image2:"heroImage2"};function Pl(e,o){return e==="image"&&oc(o)>1?"Image 1":sr[e]}var x9="Video file",I9="Upload a video file";function xR(e,o){return{field:"mediaType",is:e,default:o}}var IR=new Set(["HeroSingle"]),og="heroPart";function hR(e,o){return{...o,[og]:e}}function h9(e,{parts:o={},onlyFor:t,fallback:r,rules:a}){let n={...e};for(let s of["image","video"])for(let i of t[s])n[i]=El(n[i],xR(s,r));for(let[s,i]of Object.entries(a??{}))i&&(n[s]=El(n[s],i));for(let s of ia)for(let i of o[s]??[])n[i]=hR(s,n[i]);return n}function gR(e){let o=e?.[og];return ia.includes(o)?o:null}function tg(e,o){let t={};for(let[r,a]of Object.entries(e))gR(a)===o&&(t[r]=a);return t}function rg(e){if(!IR.has(e.type))return[];let o=[{part:"media",label:sr.media,depth:0}];return(e.props.mediaType??"image")!=="video"&&(o.push({part:"image",label:Pl("image",e.props),depth:1}),oc(e.props)>1&&o.push({part:"image2",label:Pl("image2",e.props),depth:1})),o}function ca(e,o){return`${e}::${o}`}function ag(e){if(!e)return null;let o=e.lastIndexOf("::");if(o<=0)return null;let t=e.slice(o+2);return ia.includes(t)?{nodeId:e.slice(0,o),part:t}:null}var g9="data-sf-hero-part";import{jsx as Z,jsxs as rt,Fragment as as}from"react/jsx-runtime";import{useState as Xy}from"react";import{useEasel as MN}from"efficient-easel/easel";import{headWords as Jy,InspectorHead as HN,InspectorIconButton as md}from"efficient-easel/chrome";import{DuplicateIcon as Zy,TrashIcon as WN}from"efficient-easel/icons";import{panelFieldsOf as zN}from"efficient-easel/screen/lib/puck/panel-fields";import{jsx as T,Fragment as X,jsxs as Q}from"react/jsx-runtime";import{BlockBannerIcon as SR,BlockBoxIcon as CR,BlockButtonIcon as vR,BlockDividerIcon as lg,BlockFooterIcon as sg,BlockHeadingIcon as wR,BlockProductIcon as kR,BlockSocialIcon as TR,BlockTextIcon as FR,ChatIcon as ER,GridIcon as PR,ImageIcon as rc,MediaIcon as LR,PageIcon as OR}from"efficient-easel/icons";import{jsx as tc,Fragment as bR,jsxs as yR}from"react/jsx-runtime";var ng=yR(bR,{children:[tc("circle",{cx:"9",cy:"20",r:"1.3"}),tc("circle",{cx:"18",cy:"20",r:"1.3"}),tc("path",{d:"M2.5 3.5h3l2.3 11.3a1.6 1.6 0 0 0 1.6 1.3h8.1a1.6 1.6 0 0 0 1.6-1.2L21 7H6"})]});var RR={header:Q(X,{children:[T("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),T("path",{d:"M3 9.5h18"})]}),website:Q(X,{children:[T("circle",{cx:"12",cy:"12",r:"9"}),T("path",{d:"M3 12h18M12 3c2.6 2.7 2.6 15.3 0 18M12 3c-2.6 2.7-2.6 15.3 0 18"})]}),social:Q(X,{children:[T("circle",{cx:"6",cy:"12",r:"2.5"}),T("circle",{cx:"18",cy:"6",r:"2.5"}),T("circle",{cx:"18",cy:"18",r:"2.5"}),T("path",{d:"M8.2 10.8l7.6-3.6M8.2 13.2l7.6 3.6"})]}),ticker:Q(X,{children:[T("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),T("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),FooterLogo:Q(X,{children:[T("path",{d:"M4 15.5h6M4 18h4"}),T("path",{d:"M14 8.5l3 7 3-7"})]}),FooterMenu:T("path",{d:"M6 7h12M6 11h12M6 15h8M6 19h8"}),FooterGroup:Q(X,{children:[T("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2",strokeDasharray:"3 2.5"}),T("path",{d:"M8 9h8M8 13h8M8 16h5"})]}),FooterText:T("path",{d:"M5 7h14M5 12h14M5 17h9"}),FooterEmailSignup:Q(X,{children:[T("rect",{x:"3",y:"6",width:"18",height:"12",rx:"2"}),T("path",{d:"M3.5 7l8.5 6 8.5-6"})]}),SearchBlock:Q(X,{children:[T("circle",{cx:"11",cy:"11",r:"6"}),T("path",{d:"M20 20l-4.2-4.2"})]}),CartBlock:ng,CountrySwitchBlock:Q(X,{children:[T("circle",{cx:"12",cy:"12",r:"8.5"}),T("path",{d:"M3.5 12h17M12 3.5c2.6 2.4 3.6 5.2 3.6 8.5s-1 6.1-3.6 8.5M12 3.5c-2.6 2.4-3.6 5.2-3.6 8.5s1 6.1 3.6 8.5"})]}),LegalLineBlock:Q(X,{children:[T("path",{d:"M3 9h18"}),T("path",{d:"M3 14h8M14 14h2M18 14h3"})]}),Hero:Q(X,{children:[T("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T("path",{d:"M7 13.5h7M7 16.5h10"})]}),HeroSlide:Q(X,{children:[T("rect",{x:"3",y:"5",width:"18",height:"14",rx:"2"}),T("path",{d:"M7 15h6M16 9.5h.01M9.5 12l-2.5 3"})]}),HeroSingle:Q(X,{children:[T("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T("path",{d:"M10.5 8.5l4 2.5-4 2.5z"}),T("path",{d:"M7 17h7"})]}),Collections:Q(X,{children:[T("rect",{x:"3",y:"5",width:"4.6",height:"14",rx:"1.3"}),T("rect",{x:"9.7",y:"5",width:"4.6",height:"14",rx:"1.3"}),T("rect",{x:"16.4",y:"5",width:"4.6",height:"14",rx:"1.3"})]}),CollectionCard:Q(X,{children:[T("rect",{x:"6",y:"4",width:"12",height:"16",rx:"2"}),T("path",{d:"M9 15h6M9 17.5h4"})]}),AlloyWheelsListing:Q(X,{children:[T("path",{d:"M3 5h5M3 9h5M3 13h5M3 17h5"}),T("rect",{x:"11.5",y:"5",width:"4.2",height:"5",rx:"1"}),T("rect",{x:"17.3",y:"5",width:"4.2",height:"5",rx:"1"}),T("rect",{x:"11.5",y:"12",width:"4.2",height:"5",rx:"1"}),T("rect",{x:"17.3",y:"12",width:"4.2",height:"5",rx:"1"})]}),CatalogFilterBar:Q(X,{children:[T("path",{d:"M3 7h9M15.5 7H21"}),T("circle",{cx:"13.5",cy:"7",r:"1.7"}),T("path",{d:"M3 12h4M10.5 12H21"}),T("circle",{cx:"8.5",cy:"12",r:"1.7"}),T("path",{d:"M3 17h9M15.5 17H21"}),T("circle",{cx:"13.5",cy:"17",r:"1.7"})]}),ProductGrid:Q(X,{children:[T("rect",{x:"3",y:"5",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"9.6",y:"5",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"16.2",y:"5",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"3",y:"13",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"9.6",y:"13",width:"4.8",height:"6",rx:"1"}),T("rect",{x:"16.2",y:"13",width:"4.8",height:"6",rx:"1"})]}),RelatedProducts:Q(X,{children:[T("path",{d:"M3 5h10"}),T("rect",{x:"3",y:"9.5",width:"5",height:"9",rx:"1"}),T("rect",{x:"9.5",y:"9.5",width:"5",height:"9",rx:"1"}),T("rect",{x:"16",y:"9.5",width:"5",height:"9",rx:"1"})]}),Gallery:Q(X,{children:[T("rect",{x:"3",y:"4",width:"11",height:"16",rx:"2"}),T("rect",{x:"15.5",y:"4",width:"5.5",height:"7.5",rx:"1.5"}),T("rect",{x:"15.5",y:"12.5",width:"5.5",height:"7.5",rx:"1.5"})]}),GalleryB:Q(X,{children:[T("rect",{x:"3.5",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),T("rect",{x:"13",y:"4",width:"7.5",height:"7.5",rx:"1.5"}),T("rect",{x:"3.5",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"}),T("rect",{x:"13",y:"12.5",width:"7.5",height:"7.5",rx:"1.5"})]}),GalleryItem:Q(X,{children:[T("rect",{x:"4",y:"5",width:"16",height:"14",rx:"2"}),T("circle",{cx:"9",cy:"10",r:"1.6"}),T("path",{d:"M20 15.5l-4.5-4L7 19"})]}),Events:Q(X,{children:[T("rect",{x:"4",y:"5",width:"16",height:"15",rx:"2"}),T("path",{d:"M4 9.5h16M8.5 3v4M15.5 3v4M8 14h2M14 14h2"})]}),PostCard:Q(X,{children:[T("rect",{x:"4",y:"3.5",width:"16",height:"17",rx:"2"}),T("rect",{x:"6.5",y:"6",width:"11",height:"6",rx:"1"}),T("path",{d:"M6.5 14.5h11M6.5 17.5h7"})]}),Manifesto:Q(X,{children:[T("path",{d:"M7 8h3.2v4c0 1.6-1 2.6-3 3.2"}),T("path",{d:"M14 8h3.2v4c0 1.6-1 2.6-3 3.2"})]}),Stats:Q(X,{children:[T("path",{d:"M3.5 20h17"}),T("path",{d:"M6 20v-7M11 20V7M16 20v-5M20.5 20v-9"})]}),Logos:Q(X,{children:[T("circle",{cx:"6",cy:"12",r:"2.6"}),T("rect",{x:"10",y:"9.4",width:"5.2",height:"5.2",rx:"1.2"}),T("path",{d:"M19 9.2l2.4 5h-4.8z"})]}),Ticker:Q(X,{children:[T("rect",{x:"3",y:"8.5",width:"18",height:"7",rx:"2"}),T("path",{d:"M6 12h3.5M11.5 12h2M15.5 12h2.5"})]}),SectionHeader:Q(X,{children:[T("rect",{x:"3.5",y:"6",width:"5",height:"5",rx:"1.2"}),T("path",{d:"M11 8.5h9M3.5 15.5h17"})]}),IntroBleed:Q(X,{children:[T("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T("path",{d:"M3 13.5h18M7 16.8h6"})]}),Split:Q(X,{children:[T("rect",{x:"3",y:"5",width:"8",height:"14",rx:"1.5"}),T("path",{d:"M14 8.5h6M14 12h6M14 15.5h4"})]}),Eyebrow:Q(X,{children:[T("path",{d:"M4 8.5h4.5M11 8.5h9"}),T("path",{d:"M4 14.5h16"})]}),HeroGroup:Q(X,{children:[T("rect",{x:"3.5",y:"4.5",width:"17",height:"15",rx:"2"}),T("path",{d:"M7 9h8M7 12.5h10M7 16h6"})]}),Form:Q(X,{children:[T("rect",{x:"3",y:"4",width:"18",height:"16",rx:"2"}),T("path",{d:"M6.5 9h11M6.5 12.5h11"}),T("rect",{x:"6.5",y:"15",width:"6.5",height:"2.6",rx:"1.3"})]}),LogoBlock:T(X,{children:T("path",{d:"M12 3.5l7.5 3.2v5.1c0 4.2-3.2 7.1-7.5 8.7-4.3-1.6-7.5-4.5-7.5-8.7V6.7z"})}),Spacer:Q(X,{children:[T("path",{d:"M12 4v6M9.5 6.5L12 4l2.5 2.5M12 20v-6M9.5 17.5L12 20l2.5-2.5"}),T("path",{d:"M5 13h14",strokeDasharray:"2 2.5"})]}),ContactRouting:Q(X,{children:[T("rect",{x:"3",y:"4",width:"5",height:"5",rx:"1"}),T("rect",{x:"9.5",y:"4",width:"5",height:"5",rx:"1"}),T("rect",{x:"16",y:"4",width:"5",height:"5",rx:"1"}),T("path",{d:"M4 13.5h11M4 17.5h7"}),T("path",{d:"M17 15l3 2-3 2"})]}),CustomHTML:T("path",{d:"M9 8l-4 4 4 4M15 8l4 4-4 4"})},AR=T("rect",{x:"4",y:"4",width:"16",height:"16",rx:"2.5"}),BR={footer:sg,Footer:sg,Divider:lg,FooterDivider:lg,Banner:SR,Flex:CR,FooterSocial:TR,page:OR,chat:ER,Heading:wR,Text:FR,ImageBlock:rc,ButtonBlock:vR,Grid:PR,ProductRef:kR,heroMedia:LR,heroImage:rc,heroImage2:rc},_R={MenuBlock:"FooterMenu",EmailFormBlock:"FooterEmailSignup",SocialLogosBlock:"FooterSocial",SiteHeader:"header",SiteFooter:"footer"};function Lt({type:e,size:o=16,className:t}){let r=_R[e]??e,a=BR[r];return a?T(a,{size:o,className:t}):T("svg",{width:o,height:o,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:1.7,strokeLinecap:"round",strokeLinejoin:"round",className:t,"aria-hidden":"true",children:RR[r]??AR})}import{PanelHideButton as xd}from"efficient-easel/screen/components/SidePanelHead";import{useEaselSession as GN}from"efficient-easel/screen/lib/session-context";import{jsx as te,jsxs as ac,Fragment as DR}from"react/jsx-runtime";import{useEffect as NR,useId as ig,useState as MR}from"react";import{IconPicker as HR}from"efficient-shell/ui";import{SettingsDefaultReset as WR,SettingsField as ir,SettingsSegmented as zR,SettingsSwitch as fg}from"efficient-easel/panel";import*as GR from"efficient-easel/icons";import{ButtonIcon as UR,ButtonIconIcon as $R,EyeIcon as qR,PhoneIcon as jR,PlacementIcon as KR,TypeIcon as VR}from"efficient-easel/icons";var YR="Chat with us",XR="We usually reply within a few minutes",ZR="Hi! Ask us anything \u2014 about a wheel, an order, or fitment. Leave your details and we\u2019ll reply.";function Ll({label:e,value:o,placeholder:t,onCommit:r,multiline:a=!1,hint:n}){let[s,i]=MR(o);NR(()=>i(o),[o]);let f=()=>{s!==o&&r(s)};return te(ir,{label:e,icon:te(VR,{}),changed:o!=="",action:te(fr,{label:e,changed:o!=="",onReset:()=>r("")}),hint:n,children:a?te("textarea",{value:s,placeholder:t,rows:3,onChange:u=>i(u.target.value),onBlur:f,"aria-label":e}):te("input",{type:"text",value:s,placeholder:t,onChange:u=>i(u.target.value),onBlur:f,onKeyDown:u=>{u.key==="Enter"&&u.currentTarget.blur()},"aria-label":e,autoComplete:"off"})})}function fr({label:e,changed:o,onReset:t}){return te(WR,{words:Y()?.panel,label:e,changed:o,onReset:t})}function QR({label:e,icon:o,checked:t,fallback:r,onChange:a,hint:n}){let s=ig();return te(ir,{label:e,labelId:s,icon:o,changed:t!==r,action:ac("span",{className:"inline-flex items-center gap-2",children:[te(fg,{checked:t,onChange:a,ariaLabelledBy:s}),te(fr,{label:e,changed:t!==r,onReset:()=>a(r)})]}),hint:n})}function JR(e){let o=e.replace(/(^|-)([a-z])/g,(r,a,n)=>n.toUpperCase()),t=GR[`${o}Icon`];return t?te(t,{size:16}):null}var eA=bl.map(e=>({value:e,icon:JR(e)}));function oA(){let{theme:e}=q(),o=Qe(e).themes[0];return Rr(o)??o?.accent??""}function cg(){let{chat:e,setChat:o}=Cl(),t=ig(),r=oA(),a=e.launcherIcon?yl(e.launcherIcon):lr;return ac(DR,{children:[te(ir,{label:l("Show the chat bubble"),labelId:t,icon:te(qR,{}),changed:!e.enabled,action:ac("span",{className:"inline-flex items-center gap-2",children:[te(fg,{checked:e.enabled,onChange:n=>o({enabled:n}),ariaLabelledBy:t}),te(fr,{label:l("Show the chat bubble"),changed:!e.enabled,onReset:()=>o({enabled:!0})})]}),hint:e.enabled?l("The floating chat bubble shows in the corner of every page."):l("The chat bubble is hidden across the whole site.")}),te(Zt,{label:"Look"}),te(ir,{label:l("Button color"),icon:te(UR,{}),changed:e.launcherColor!=="",action:te(no,{label:l("Button color"),value:e.launcherColor,inherited:r,caption:e.launcherColor?void 0:l("Site button color"),onChange:n=>o({launcherColor:n}),after:te(fr,{label:l("Button color"),changed:e.launcherColor!=="",onReset:()=>o({launcherColor:""})})})}),te(ir,{label:l("Icon"),icon:te($R,{}),changed:a!==lr,action:te(fr,{label:l("Icon"),changed:a!==lr,onReset:()=>o({launcherIcon:""})}),children:te(HR,{label:l("Icon"),value:a,options:eA,onChange:n=>o({launcherIcon:n===lr?"":n})})}),te(ir,{label:l("Position"),icon:te(KR,{}),changed:e.launcherPosition!==Pt,action:te(fr,{label:l("Position"),changed:e.launcherPosition!==Pt,onReset:()=>o({launcherPosition:Pt})}),children:te(zR,{options:[{label:l("Right"),id:"right"},{label:l("Left"),id:"left"}],value:e.launcherPosition,ariaLabel:l("Position"),onChange:n=>o({launcherPosition:n})})}),te(Ll,{label:l("Label"),value:e.launcherLabel,placeholder:l("Icon only"),onCommit:n=>o({launcherLabel:n}),hint:l("Shows when a visitor points at the button")}),te(QR,{label:l("Show on phones"),icon:te(jR,{}),checked:e.showOnPhones,fallback:Sl.showOnPhones,onChange:n=>o({showOnPhones:n})}),te(Zt,{label:"Wording"}),te(Ll,{label:l("Title"),value:e.title,placeholder:YR,onCommit:n=>o({title:n})}),te(Ll,{label:l("Subtitle"),value:e.subtitle,placeholder:XR,onCommit:n=>o({subtitle:n})}),te(Ll,{label:l("Greeting message"),value:e.greeting,placeholder:ZR,onCommit:n=>o({greeting:n}),multiline:!0}),te("p",{className:"es-field-hint sf-hint-keep",children:l("Leave a field blank to use the built-in wording.")})]})}import{jsx as Ot,Fragment as Tc,jsxs as xg}from"react/jsx-runtime";import{useEffect as OA,useId as pg,useState as mg}from"react";import{SettingsField as RA}from"efficient-easel/panel";import{jsx as CA}from"react/jsx-runtime";import{forwardRef as tA,createElement as nc}from"react";var dg={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 z=(e,o,t,r)=>{let a=tA(({color:n="currentColor",size:s=24,stroke:i=2,title:f,className:u,children:p,...m},x)=>nc("svg",{ref:x,...dg[e],width:s,height:s,className:["tabler-icon",`tabler-icon-${o}`,u].filter(Boolean).join(" "),...e==="filled"?{fill:n}:{strokeWidth:i,stroke:n},...m},[f&&nc("title",{key:"svg-title"},f),...r.map(([h,b])=>nc(h,b)),...Array.isArray(p)?p:[p]]));return a.displayName=`${t}`,a};var rA=[["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"}]],lc=z("outline","brand-facebook","BrandFacebook",rA);var aA=[["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"}]],sc=z("outline","brand-instagram","BrandInstagram",aA);var nA=[["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"}]],ic=z("outline","brand-line","BrandLine",nA);var lA=[["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"}]],fc=z("outline","brand-linkedin","BrandLinkedin",lA);var sA=[["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"}]],cc=z("outline","brand-pinterest","BrandPinterest",sA);var iA=[["path",{d:"M15 10l-4 4l6 6l4 -16l-18 7l4 2l2 6l3 -4",key:"svg-0"}]],dc=z("outline","brand-telegram","BrandTelegram",iA);var fA=[["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"}]],uc=z("outline","brand-tiktok","BrandTiktok",fA);var cA=[["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"}]],pc=z("outline","brand-wechat","BrandWechat",cA);var dA=[["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"}]],mc=z("outline","brand-whatsapp","BrandWhatsapp",dA);var uA=[["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"}]],xc=z("outline","brand-x","BrandX",uA);var pA=[["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"}]],Ic=z("outline","brand-youtube","BrandYoutube",pA);var mA=[["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"}]],hc=z("filled","brand-facebook-filled","BrandFacebookFilled",mA);var xA=[["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"}]],gc=z("filled","brand-instagram-filled","BrandInstagramFilled",xA);var IA=[["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"}]],bc=z("filled","brand-linkedin-filled","BrandLinkedinFilled",IA);var hA=[["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"}]],yc=z("filled","brand-pinterest-filled","BrandPinterestFilled",hA);var gA=[["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"}]],Sc=z("filled","brand-tiktok-filled","BrandTiktokFilled",gA);var bA=[["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"}]],Cc=z("filled","brand-whatsapp-filled","BrandWhatsappFilled",bA);var yA=[["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"}]],vc=z("filled","brand-x-filled","BrandXFilled",yA);var SA=[["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"}]],wc=z("filled","brand-youtube-filled","BrandYoutubeFilled",SA);var Xj="outline",Ol={fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},vA={},kc={fillRule:"evenodd"},wA=[["path",{...Ol,d:"M21 4L3 11L7 13L9 19L12 15L17 20z"}],["path",{...kc,d:"M21 4L3 11L7 13L9 19L12 15L17 20zM15.212 8.939 10.576 13.576 11.424 14.424 16.061 9.788z"}]],kA=[["path",{...Ol,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",{...vA,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("")}]],TA=[["path",{...Ol,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",{...Ol,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",{...kc,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",{...kc,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("")}]],FA=z("filled","brand-telegram-filled","BrandTelegramFilled",wA),EA=z("filled","brand-line-filled","BrandLineFilled",kA),PA=z("filled","brand-wechat-filled","BrandWechatFilled",TA),LA={instagram:{outline:sc,solid:gc},facebook:{outline:lc,solid:hc},tiktok:{outline:uc,solid:Sc},youtube:{outline:Ic,solid:wc},x:{outline:xc,solid:vc},linkedin:{outline:fc,solid:bc},pinterest:{outline:cc,solid:yc},whatsapp:{outline:mc,solid:Cc},telegram:{outline:dc,solid:FA},line:{outline:ic,solid:EA},wechat:{outline:pc,solid:PA}};function ug({platform:e,iconStyle:o,size:t}){let r=LA[e][o];return CA(r,{size:t,stroke:1.75,"aria-hidden":"true",focusable:"false"})}var AA={instagram:"instagram.com/yourshop",facebook:"facebook.com/yourshop",tiktok:"tiktok.com/@yourshop",youtube:"youtube.com/@yourshop",x:"x.com/yourshop",linkedin:"linkedin.com/company/yourshop",pinterest:"pinterest.com/yourshop",whatsapp:"wa.me/61400000000",telegram:"t.me/yourshop",line:"line.me/ti/p/~yourshop",wechat:"u.wechat.com/your-qr-code-link"};function BA({platform:e}){let{rows:o,saveLink:t}=la(),{value:r,error:a}=o[e],[n,s]=mg(r),[i,f]=mg(!1),u=pg(),p=pg();OA(()=>s(r),[r]);let m=async()=>{if(n.trim()===r){n!==r&&s(r);return}f(!0),await t(e,n),f(!1)},x=gu[e];return xg(Tc,{children:[Ot(RA,{label:l(x),htmlFor:u,icon:Ot(ug,{platform:e,iconStyle:"outline",size:18}),children:Ot("input",{id:u,type:"text",inputMode:"url",value:n,placeholder:AA[e],onChange:h=>s(h.target.value),onBlur:()=>{m()},onKeyDown:h=>{h.key==="Enter"&&h.currentTarget.blur(),h.key==="Escape"&&(s(r),h.currentTarget.blur())},"aria-invalid":a?!0:void 0,"aria-describedby":a?p:void 0,"aria-busy":i||void 0,autoComplete:"off",spellCheck:!1})}),a&&Ot("p",{id:p,className:"sf-note sf-note--error",role:"alert",children:a})]})}function Ig({unavailable:e}){let{canSave:o}=la();return!o&&e?Ot(Tc,{children:e}):xg(Tc,{children:[Ot("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.")}),Ga.map(t=>Ot(BA,{platform:t},t))]})}import{jsx as mr,jsxs as w_}from"react/jsx-runtime";import{useId as k_,useMemo as T_}from"react";import{useEasel as F_}from"efficient-easel/easel";import{SettingsField as E_,SettingsSwitch as P_}from"efficient-easel/panel";import{EyeIcon as L_}from"efficient-easel/icons";import{jsx as ko,jsxs as Wl}from"react/jsx-runtime";import{useCallback as ur,useEffect as pr,useId as h_,useRef as Wo,useState as ba}from"react";var hg="data-puck-overlay-portal";function Rl(e){return e.setAttribute(hg,"true"),()=>e.removeAttribute(hg)}import{jsx as xa,jsxs as Ng}from"react/jsx-runtime";var Fc="small",Ec="dot",_A=[{label:"Small",value:"small"},{label:"Display",value:"display"}],DA=[{label:"Dot \u25CF",value:"dot"},{label:"Cross \u2715",value:"cross"},{label:"Slash /",value:"slash"},{label:"Triangle \u25BC",value:"triangle"},{label:"None",value:"none"}],gg={dot:"\u25CF",cross:"\u2715",slash:"/",triangle:"\u25BC",none:""},NA={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)]"},MA={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 bg(e){return Je(_A,Fc,e)}function yg(e){return Je(DA,Ec,e)}function Sg(e){return NA[e]}function Cg(e,o){return MA[e][o]}var Pc="left",HA=[{label:"Left",value:"left",cell:"left"},{label:"Right",value:"right",cell:"right"},{label:"Up",value:"up",cell:"top"},{label:"Down",value:"down",cell:"bottom"}],WA={left:"storefront-ticker",right:"storefront-ticker-right",up:"storefront-ticker-up",down:"storefront-ticker-down"};function vg(e){return Je(HA,Pc,e)}function wg(e){return e==="up"||e==="down"}function kg(e,o){return`${WA[e]} ${o}s linear infinite`}import{jsx as de,jsxs as Ac}from"react/jsx-runtime";import{Fragment as _g}from"react";import{Fragment as jA,jsx as Oc}from"react/jsx-runtime";import{Fragment as Eg,jsx as ua,jsxs as UA}from"react/jsx-runtime";import{createContext as Lc,useContext as pa,useId as $A,useMemo as qA}from"react";var da="@name",Tg="@body",Fg="@value",uK={[da]:"Name",[Tg]:"Body",[Fg]:"Value"},zA={TimelineTrack:{"entries.date":da,"entries.title":da,"entries.blurb":Tg},Footprint:{"offices.city":da},Stats:{"items.label":da,"items.value":Fg}};function GA(e){let{key:o,row:t}=io(e);return t?`${o}.${t.rowKey}`:null}function Al(e,o){if(!e)return o;let t=GA(o);return t?zA[e]?.[t]??o:o}var Bl=Lc(null),Pg=Lc(null),Lg=Lc(null);function gK({needles:e,styles:o,type:t,children:r}){let a=$A(),n=JSON.stringify([a,e,o,t]),s=qA(()=>JI(e,o,a,i=>Al(t,i)),[n]);return s?UA(Eg,{children:[ua("style",{"data-sf-part-styles":"",dangerouslySetInnerHTML:{__html:eh(s).replace(/</g,"\\3c ")}}),ua(Bl.Provider,{value:s,children:r})]}):ua(Eg,{children:r})}function Og(e){let o=pa(Bl),t=pa(Pg),r=oh(o,e);return r&&r.stamp!==t?r:null}function bK(e){return Af(pa(Bl),e)}function Rg({stamp:e,children:o}){return ua(Pg.Provider,{value:e,children:o})}function yK({children:e}){let o=pa(Bl);return ua(Lg.Provider,{value:o,children:e})}function SK(e){return Af(pa(Lg),e)}function ma({value:e,children:o}){let t=Og(e);return t?Oc(Rg,{stamp:t.stamp,children:Oc("span",{[Tf]:t.stamp,children:o})}):Oc(jA,{children:o})}import{jsx as Rc,Fragment as KA}from"react/jsx-runtime";function Ag({className:e=""}){return Rc("sup",{className:`text-accent tracking-normal text-[length:min(1em,max(0.75em,11px))] ${e}`,children:"\xAE"})}function _l(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(Rc(Ag,{},`r${a}`))}),Rc(KA,{children:t})}var EK=Ag;function Bc(e,o=!1){let t=oB(o),r=ai(e);if(r.length===1){let[n]=r,s=ri(n),i=s?JA(s,n.children):n.children;return de(ma,{value:e,children:Dl(i,t)})}let a=[];return r.forEach((n,s)=>{if(n.bullet){a.push(de("span",{"data-sf-bullet":"",className:VA,children:Dl(n.children,t)},s));return}if(n.number!=null){a.push(Ac("span",{"data-sf-number":n.number,className:YA,children:[Ac("span",{className:XA,children:[n.number,"."]}),Dl(n.children,t)]},s));return}s>0&&!ZA(r[s-1])&&a.push(de("br",{},`br${s}`)),a.push(de(_g,{children:Dl(n.children,t)},s))}),de(ma,{value:e,children:a})}var VA="relative block pl-6 before:absolute before:left-1.5 before:font-bold before:text-accent before:content-['\xB7']",YA="relative block pl-[2em]",XA="absolute left-0 w-[1.6em] text-right tabular-nums";function ZA(e){return e.bullet||e.number!=null}var QA="text-accent underline underline-offset-[0.18em]";function JA(e,o){let[t,...r]=o;return t?.kind==="text"?[{kind:"text",text:`${e}${t.text}`},...r]:[{kind:"text",text:e},...o]}function eB(e){if(e)return QI(e)?e:Object.hasOwn(Ro,e)?Ro[e]:void 0}function Dl(e,o){let t=[],r=!1;return e.forEach((a,n)=>{if(a.kind==="text"){t.push(de("span",{children:_l(a.text)},n)),r=!0;return}r||t.push(de("span",{},`e${n}`)),t.push(Dg(a,n,o)),r=!1}),r||t.push(de("span",{},"end")),t}function Bg(e,o){return e.length===1&&e[0].kind==="text"?_l(e[0].text):e.map((t,r)=>t.kind==="text"?de(_g,{children:_l(t.text)},r):Dg(t,r,o))}function oB(e){return e?"font-normal italic text-accent":"not-italic text-accent"}function NK(e){return de(ma,{value:e,children:de("span",{children:e})})}function Dg(e,o,t){if(e.kind==="link")return de("a",{href:e.href,className:QA,children:Bg(e.children,t)},o);let r=Bg(e.children,t),a=Sp[e.kind];if(a)return de("span",{[Cp]:a,children:r},o);switch(e.kind){case"underline":return de("u",{children:r},o);case"sup":return de("sup",{children:r},o);case"sub":return de("sub",{children:r},o);case"color":{let n=eB(e.color);return n?de("span",{style:{color:n},children:r},o):de("span",{children:r},o)}case"accent":case"highlight":return de("em",{className:t,children:r},o);case"bold":return de("strong",{className:"font-semibold",children:r},o);case"italic":return de("em",{className:"italic",children:r},o);case"strike":return de("s",{className:"line-through",children:r},o);default:return de("span",{children:r},o)}}function MK(e,o=!0){let t=e.split(`
6
+ `);return de(ma,{value:e,children:t.map((r,a)=>Ac("span",{children:[Bc(r,o),a<t.length-1?de("br",{}):null]},a))})}function HK(e){return e.split(/\n\s*\n/).map(o=>o.trim()).filter(Boolean)}var tB={"themed-band":"text-fg/70","themed-section":"text-fg-dim","dark-media":"text-overlay-fg/70"};function Mg({items:e,separator:o=Ec,size:t=Fc,durationSec:r=50,scroll:a=Pc,backdrop:n="themed-band",className:s}){let i=bg(t),f=vg(a),u=yg(o),p=`text-accent ${Cg(i,u)}`.trim(),m=gg[u],x=m===""?xa("span",{}):xa("span",{className:p,children:m}),h=wg(f),b=h?"inline-flex flex-col items-center gap-[60px] pb-[60px] max-[800px]:gap-8 max-[800px]:pb-8":"inline-flex items-center gap-[60px] pr-[60px] max-[800px]:gap-8 max-[800px]:pr-8",S=h?"inline-flex flex-col items-center gap-[60px] max-[800px]:gap-8":"inline-flex items-center gap-[60px] max-[800px]:gap-8",w=F=>xa("span",{className:b,children:e.map((v,g)=>{let y=typeof v=="string"?v:v.text,P=typeof v=="object"&&v.gold;return Ng("span",{className:S,children:[xa("span",{className:P?"text-accent":void 0,children:Bc(y)}),x]},g)})},F);return xa("div",{className:`overflow-hidden ${s??""}`,children:Ng("div",{className:`flex ${h?"flex-col ":""}whitespace-nowrap ${Sg(i)} ${tB[n]}`,style:{animation:kg(f,r)},children:[w("a"),w("b")]})})}import{jsx as ha,jsxs as OB}from"react/jsx-runtime";import{createContext as RB,useContext as AB}from"react";import{jsx as cr,jsxs as Yg}from"react/jsx-runtime";import{useEffect as Dc,useRef as bB,useState as Ia}from"react";import{jsx as Hg}from"react/jsx-runtime";import{createContext as rB,lazy as XK,Suspense as ZK,useContext as aB}from"react";var nB={Link:Yd,Image:Vd},lB=rB(nB);function Wg(){return aB(lB)}function QK(e){let{Link:o}=Wg();return Hg(o,{...e})}function zg(e){let{Image:o}=Wg();return Hg(o,{...e})}import{jsx as Gg,Fragment as sB,jsxs as iB}from"react/jsx-runtime";import{useEffect as fB,useRef as Ug,useState as cB}from"react";var dB="#t=0.001",uB=2;function pB(e,o){if(e.readyState<uB||!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 $g({src:e,objectPosition:o="50% 50%",onError:t}){let r=Ug(null),a=Ug(null),[n,s]=cB(!1);return fB(()=>{let i=r.current,f=a.current;if(n||!i||!f)return;let u=()=>{pB(i,f)&&s(!0)};return u(),i.addEventListener("loadeddata",u),i.addEventListener("seeked",u),()=>{i.removeEventListener("loadeddata",u),i.removeEventListener("seeked",u)}},[n]),iB(sB,{children:[Gg("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&&Gg("video",{ref:r,src:`${e}${dB}`,muted:!0,playsInline:!0,preload:"auto",className:"hidden",onError:t})]})}import{imageCopyUrl as jg,imageSrcSet as mB}from"efficient-shell/image-copies";var qg;function _c(){return qg===void 0?{}:{host:qg}}var aV="(max-width: 800px) 100vw, min(100vw, 1600px)";function Kg(e,{fallbackWidth:o=1280,maxWidth:t}={}){let r=mB(e,{..._c(),...t===void 0?{}:{maxWidth:t}});return r?{src:jg(e,o,_c()),srcSet:r}:{src:e}}function nV(e){let o=jg(e,1920,_c());return o===e?`url(${e})`:`url("${o}")`}import{formatFocal as xB,parseFocal as IB}from"efficient-shell/format";var hB="sf-focus-phone",gB="--sf-focus-phone";function Vg(e){if(typeof e!="string"||!/^\s*-?\d+(\.\d+)?%\s+-?\d+(\.\d+)?%\s*$/.test(e))return{className:"",style:{}};let{x:o,y:t}=IB(e);return{className:hB,style:{[gB]:xB(o,t)}}}var yB=.5;function Xg({videoSrc:e,posterSrc:o,showVideo:t=!0,playbackRate:r=yB,objectPosition:a="50% 50%",objectPositionPhone:n,quiet:s=!1}){let i=Vg(n),f=o||"",u=e||"",[p,m]=Ia(!1),[x,h]=Ia(!1),[b,S]=Ia(!1),[w,F]=Ia(!1),[v,g]=Ia(!1),y=bB(null);Dc(()=>{m(!1),h(!1),S(!1),F(!1)},[e,o]),Dc(()=>{if(typeof window>"u")return;let O=()=>{let E=window;E.requestIdleCallback?E.requestIdleCallback(()=>g(!0),{timeout:2e3}):setTimeout(()=>g(!0),800)};if(document.readyState==="complete"){O();return}return window.addEventListener("load",O,{once:!0}),()=>window.removeEventListener("load",O)},[]),Dc(()=>{let O=y.current;if(!O)return;let E=()=>{O.playbackRate=r};return E(),O.addEventListener("loadedmetadata",E),()=>O.removeEventListener("loadedmetadata",E)},[e,r]);let P=Xd(f),k=f&&P&&!x?Kg(f):{src:f};return Yg("div",{className:"absolute inset-0 z-[1]",children:[cr("div",{className:"absolute inset-0",style:{background:"var(--site-surface)"}}),f&&(P?cr("img",{src:k.src,...k.srcSet?{srcSet:k.srcSet,sizes:"100vw"}:{},alt:"",className:`absolute inset-0 z-[2] h-full w-full object-cover ${i.className}`.trim(),style:{display:p?"none":"block",objectPosition:a,...i.style},onError:()=>k.srcSet?h(!0):m(!0)},f):cr(zg,{src:f,alt:"",fill:!0,priority:!0,sizes:"100vw",className:`z-[2] object-cover ${i.className}`.trim(),style:{display:p?"none":"block",objectPosition:a,...i.style},onError:()=>m(!0)},f)),t&&!s&&u&&v&&!b&&Yg("video",{ref:y,autoPlay:!0,loop:!0,muted:!0,playsInline:!0,preload:"metadata",className:"absolute inset-0 z-[3] h-full w-full object-cover",style:{objectPosition:a},onError:()=>S(!0),children:[Zd(u)&&cr("source",{src:u.replace(/\.mp4$/,".av1.mp4"),type:'video/mp4; codecs="av01.0.08M.10"'}),cr("source",{src:u,type:"video/mp4"})]},u),t&&s&&u&&v&&!w&&(!f||p)&&cr($g,{src:u,objectPosition:a,onError:()=>F(!0)},u)]})}var Zg=["top","middle","bottom"],Qg=["left","center","right"],Jg="bottom",eb="left",SB={top:"Top",middle:"Middle",bottom:"Bottom"},CB={left:"Left",center:"Center",right:"Right"};var hV="Up and down",gV="Sideways",vB={top:"flex-start",middle:"center",bottom:"flex-end"},wB={left:"flex-start",center:"center",right:"flex-end"},kB="--sf-hero-phone-y",TB="--sf-hero-phone-x";function FB(e){return Zg.includes(e)?e:Jg}function EB(e){return Qg.includes(e)?e:eb}function ob(e,o){let t=FB(e),r=EB(o),a={};return t!==Jg&&(a[kB]=vB[t]),r!==eb&&(a[TB]=wB[r]),a}function bV(){return Zg.map(e=>({label:SB[e],value:e}))}function yV(){return Qg.map(e=>({label:CB[e],value:e}))}var PB="#0A0A0A",LB=[[0,".5"],[30,".1"],[60,".1"],[100,".85"]];function tb(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 rb(e){return e==null?!0:e!==!1}function ab(e){let o=(e?tb(e):null)??tb(PB);return`linear-gradient(180deg, ${LB.map(([t,r])=>`rgba(${o},${r}) ${t}%`).join(", ")})`}var Nc=RB({});function LV({name:e,process:o,mediaType:t="video",mediaSrc:r,videoSpeed:a,poster:n,objectPosition:s,objectPositionPhone:i,tintColor:f="#000000",tintOpacity:u=0,groups:p,editing:m=!1,themeClassName:x,themeStyle:h}){let{alignment:b="left",textureOpacity:S,textureOn:w,textureColor:F,quietVideo:v,phoneUpDown:g,phoneSideways:y}=AB(Nc),P=t==="video",k=P?Lr(r):void 0,O=P?Lr(n):Lr(r)??Lr(n),E=typeof a=="number"?a/100:1;return OB("section",{className:x?`relative h-full w-full overflow-hidden ${x}`:"relative h-full w-full overflow-hidden",style:h,"data-slide-name":e??"","data-slide-process":o??"","data-slide-media":k?"video":"still",children:[ha(Xg,{videoSrc:k,posterSrc:O,showVideo:P,playbackRate:E,objectPosition:s,objectPositionPhone:P?void 0:i,quiet:v}),u>0&&ha("div",{className:"absolute inset-0 z-[2]",style:{background:f,opacity:Math.min(Math.max(u,0),100)/100}}),rb(w)&&ha("div",{className:"absolute inset-0 z-[2]",style:{background:ab(F),...S!==void 0?{opacity:S/100}:null}}),ha("div",{className:["sf-hero-group-layer absolute inset-0 z-[3] mx-auto max-w-[var(--sf-site-width,1600px)] px-[var(--sf-site-gutter,40px)] pt-[140px] pb-14",m?"sf-hero-group-layer-edit":""].filter(Boolean).join(" "),style:{...ip,...ob(g,y)},children:p&&ha(p,{className:"sf-hero-group-zone",minEmptyHeight:160})})]})}var nb=Array.from({length:3},(e,o)=>({name:`Slide ${o+1}`,process:"Category",mediaType:"image",mediaVideo:"",poster:""}));import{jsx as Mc}from"react/jsx-runtime";import{UiIcon as UB}from"efficient-easel/draw/client";var BB={"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]"},_B=`calc(${kn} - ${$e}*2)`,lb=`var(${Wi},${$e})`,BV=`pointer-events-none absolute inset-y-0 left-[${lb}] right-[${lb}] z-[6] mx-auto max-w-[var(${zi},${_B.replace(/ /g,"_")})]`;function Nl(e,o){return`pointer-events-auto absolute ${BB[e]} z-[6] sf-hero-overlay-rail flex ${o}`}function sb(e){return ho.includes(e)?e:null}var DB="bottom-right",NB=["outline","solid","square","bare"],MB="outline",NV={outline:"Outline",solid:"Solid",square:"Square",bare:"Bare"},MV=!1,ib=["prev","next"],fb={prev:"Previous slide",next:"Next slide"};function HB(e){return NB.includes(e)?e:MB}function WB(e){return sb(e)??DB}var zB="flex-row items-center gap-2";function cb(e){return Nl(WB(e),zB)}var GB={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 db(e){return GB[HB(e)]}function ub(e){return e.shown===!0&&(e.count??0)>1}function Ml(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 pb({shape:e,placement:o,ref:t}){let r=db(e);return Mc("div",{ref:t,className:cb(o),style:{color:"var(--overlay-fg)"},children:ib.map(a=>Mc("button",{type:"button","data-hero-nav":a,"aria-label":fb[a],className:r,children:Mc(UB,{name:"chevron-right",size:18,rounded:!0,style:a==="prev"?{rotate:"180deg"}:void 0})},a))})}import{jsx as we,jsxs as Hc,Fragment as dr}from"react/jsx-runtime";var $B=ho;var qB="top-right",jB=["cards","dots","numbers","bar","squares","tabs"],KB=["cards","dots","numbers","bar","squares"],mb="cards",jV={cards:"Cards",dots:"Dots",numbers:"Numbers",bar:"Bar",squares:"Squares",tabs:"Tabs"},KV=!0;function Hl(e){return jB.includes(e)?e:mb}function xb(e){return KB.includes(e)?e:mb}function VB(e){return $B.includes(e)?e:qB}var Ib={cards:"flex-col gap-2.5",dots:"flex-row items-center gap-2",numbers:"flex-col gap-2",bar:"h-0.5 w-[34%] max-w-[420px] gap-px overflow-hidden rounded-full",squares:"flex-col gap-0",tabs:"flex-row items-stretch w-full overflow-x-auto"};function hb(e,o){return Nl(VB(o),Ib[Hl(e)])}function gb(e){return`flex ${Ib[Hl(e)]}`}function bb(e){return e.shown!==!1&&(e.count??0)>1}function YB(e){return{name:e.dataset.slideName||"",process:e.dataset.slideProcess||"",video:e.dataset.slideMedia==="video"}}function XB(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 yb(e,o){let t=Array.from(o,YB);return XB(e,t)?e:t}function Sb({slides:e,active:o,shape:t,placement:r,ref:a,tone:n="media",label:s}){let i=Hl(t),f=n==="surface"?{"--overlay-fg":"var(--fg)","--overlay-chrome":"var(--fg)","--overlay-scrim":"var(--site-surface-2)"}:void 0;return Hc("aside",{ref:a,"aria-label":s??"Featured slides",className:n==="surface"?gb(i):hb(i,r),style:{color:"var(--overlay-fg)",...f},children:[i==="cards"&&we(ZB,{slides:e,active:o}),i==="dots"&&we(QB,{count:e.length,active:o}),i==="numbers"&&we(JB,{count:e.length,active:o}),i==="bar"&&we(o_,{count:e.length,active:o}),i==="squares"&&we(e_,{count:e.length,active:o}),i==="tabs"&&we(t_,{slides:e,active:o})]})}function ZB({slides:e,active:o}){return Hc(dr,{children:[we("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 Hc("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:[we("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}`}),we("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 QB({count:e,active:o}){return we(dr,{children:Array.from({length:e},(t,r)=>we("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 JB({count:e,active:o}){return we(dr,{children:Array.from({length:e},(t,r)=>we("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 e_({count:e,active:o}){return we(dr,{children:Array.from({length:e},(t,r)=>we("button",{type:"button","data-idx":r,"aria-pressed":r===o,"aria-label":`Go to slide ${r+1}`,className:`grid h-8 w-8 cursor-pointer place-items-center border border-overlay-chrome/25 text-[length:var(--size-label,14px)] font-bold leading-none transition-colors motion-reduce:transition-none ${r===o?"bg-accent text-[color:var(--accent-ink)]":"bg-overlay-scrim/45 text-overlay-chrome/75 hover:text-overlay-chrome"}`,children:r+1},r))})}function o_({count:e,active:o}){return we(dr,{children:Array.from({length:e},(t,r)=>we("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 t_({slides:e,active:o}){return we(dr,{children:e.map((t,r)=>{let a=r===o;return we("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:we("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 r_,useState as a_}from"react";var Cb="(prefers-reduced-motion: reduce)";function n_(){return globalThis.window?.matchMedia?.(Cb)?.matches??!1}function JV(){return n_()?"auto":"smooth"}function vb(){let[e,o]=a_(!1);return r_(()=>{let t=globalThis.window?.matchMedia?.(Cb);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 ga={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 wb={min:40,max:100,step:5,fallback:100,unit:"vh"};function Wc(e){return`${typeof e=="number"?e:wb.fallback}${wb.unit}`}function kb(...e){return e.some(o=>typeof o=="number")}import{HEADER_TYPE as zc,FOOTER_TYPE as l_}from"efficient-easel/draw";var s_=new Set(["Hero","HeroSingle","IntroBleed"]),Tb={min:56,max:140,default:88},aY={min:0,max:120,step:2,default:32},Fb=`var(--sf-header-h, ${Tb.default}px)`,i_="--sf-header-set-h",nY="--sf-header-h",lY=`var(${i_}, ${Tb.default}px)`,sY="sf-header-clearance",iY="sf-sticky-underheader";function f_(e){return e?.find(o=>o?.type&&o.type!==zc)??null}function Eb(e){let o=f_(e)?.type;return!o||!s_.has(o)}function fY(e){return!Eb(e)}function cY(e){return!!e?.some(o=>o?.type===zc)}function dY(e){return!e||e.length===0?!1:!e.some(o=>o?.type===zc||o?.type===l_)}var c_=["auto","shared","own"],d_="auto",u_="topSpace",uY="data-top-space";function p_(e){return c_.includes(e)?e:d_}function m_(e,o){let t=p_(e?.props?.[u_]);return t==="own"?!0:t==="shared"?!1:Eb(o)}function pY(e,o){return m_(e,o)?"own":null}var x_=40;function I_(e,o){return Math.abs(e)<=x_||Math.abs(e)<=Math.abs(o)?null:e<0?"next":"prev"}function Pb(e,o,t,r){let a=I_(e,o);return a?Ml(a,t,r):t}function Lb(e){return(e.count??0)>1&&e.editing!==!0}function Ob(e){return e.editing!==!0?!1:(e.slides??[])[e.shown??0]?.video===!0}function Rb(e){return e.editing!==!0?!1:!(e.playing===!0&&e.controlShown===!0)}import{HERO_SLIDER_GOTO_EVENT as Ab}from"efficient-easel/draw";var g_=`
7
+ .hero-ticker-pick { cursor: pointer; }
8
+ .hero-ticker-pick:hover {
9
+ outline: 2px solid color-mix(in srgb, ${ga.accent} 45%, transparent);
10
+ outline-offset: -2px;
11
+ }
12
+ .hero-ticker-pick[data-selected] {
13
+ outline: 2px solid ${ga.accent};
14
+ outline-offset: -2px;
15
+ }
16
+ `,b_="Play video",y_="Hold video",S_="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",C_=()=>l("item"),Gc=["","","","","",""],Bb=new Map;function v_(e,o){let t=e?.ownerDocument?.defaultView;if(t)return t.addEventListener(Ab,o),()=>t.removeEventListener(Ab,o)}function DY({slides:e,alignment:o,textureOpacity:t,showTexture:r,textureColor:a,phoneUpDown:n,phoneSideways:s,autoplay:i,autoplayInterval:f,showTicker:u,tickerItems:p,heightDesktop:m,heightMobile:x,showPicker:h,pickerShape:b,pickerPlacement:S,showArrows:w,arrowsShape:F,arrowsPlacement:v,editing:g}){let y=kb(m,x),P=y?"h-[var(--sf-hero-h-m)] min-[720px]:h-[var(--sf-hero-h-d)]":"h-screen min-h-[680px]",k=y?{"--sf-hero-h-d":Wc(m),"--sf-hero-h-m":Wc(x)}:void 0,O=(p??Gc.map(M=>({text:M}))).map(M=>M?.text?.trim()?M.text:g?C_():"").filter(Boolean),E=u!==!1,B=Wo(null),$=Wo(null),K=Wo(null),N=Wo(null),H=Wo(null),A=h_(),ae=Wo(A),[le,pe]=ba([]),[oo,Ve]=ba(0),ke=Wo(0),[to,De]=ba(!1),[Le,ge]=ba(!1),[ye,Ye]=ba(null),Ne=vb(),{selectedHeroId:Xe,select:Oe}=vl(),L=ur(()=>B.current?.querySelector(".hero-track")??null,[]),J=ur((M,G=!1)=>{Ve(M),ke.current=M,Bb.set(ae.current,M);let V=B.current?.querySelector(".hero-track");if(V)if(G){let fe=V.style.transition;V.style.transition="none",V.style.transform=`translateX(-${Math.max(0,M)*100}%)`,V.offsetHeight,V.style.transition=fe}else V.style.transform=`translateX(-${Math.max(0,M)*100}%)`},[]);pr(()=>{let M=B.current,G=M?.getAttribute("data-puck-component")||M?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||A;ae.current=G,Ye(G);let V=Bb.get(G);typeof V=="number"&&(Ve(V),ke.current=V)},[]),pr(()=>{let M=L();if(!M)return;let G=()=>{pe(fe=>yb(fe,M.querySelectorAll("[data-slide-name]")))};G();let V=new MutationObserver(G);return V.observe(M,{childList:!0,subtree:!0,attributes:!0,attributeFilter:["data-slide-name","data-slide-process","data-slide-media"]}),()=>{V.disconnect()}},[L]),pr(()=>{if(!g)return;let M=G=>{let V=G.detail;if(!V||typeof V.index!="number")return;let fe=B.current,ro=fe?.getAttribute("data-puck-component")||fe?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||ae.current;V.id&&V.id!==ro||J(V.index,!0)};return v_(B.current,M)},[g,J]);let U=le.length,Ie=Math.min(Math.max(oo,0),Math.max(0,U-1)),Se=bb({shown:h,count:U}),We=ub({shown:w,count:U}),Ue=Ob({editing:g,shown:Ie,slides:le}),ee=Rb({editing:g,playing:Le,controlShown:Ue}),ne=Lb({count:U,editing:g}),Ze=Wo(null),lt=Wo(null),st=ur(M=>{if(Ze.current=null,lt.current=null,!ne||M.touches.length!==1)return;let G=M.touches[0];Ze.current={x:G.clientX,y:G.clientY},lt.current={x:G.clientX,y:G.clientY}},[ne]),Cs=ur(M=>{if(!Ze.current)return;if(M.touches.length!==1){Ze.current=null;return}let G=M.touches[0];lt.current={x:G.clientX,y:G.clientY}},[]),Ma=ur(()=>{let M=Ze.current,G=lt.current;if(Ze.current=null,lt.current=null,!ne||!M||!G)return;let V=Pb(G.x-M.x,G.y-M.y,ke.current,U);V!==ke.current&&J(V)},[ne,U,J]);pr(()=>{if(g||!i||to||Ne||U<=1)return;let M=Math.max(1,typeof f=="number"?f:6)*1e3,G=window.setTimeout(()=>J((Ie+1)%U),M);return()=>window.clearTimeout(G)},[g,i,f,to,Ne,U,Ie,J]),pr(()=>{let M=[$.current,K.current,N.current].filter(Boolean),G=M.map(fe=>Rl(fe)),V=fe=>{let ro=fe.target,Uo=ro.closest("[data-hero-nav]"),Ha=Uo??ro.closest("[data-idx]");if(!Ha)return;fe.stopPropagation(),fe.preventDefault();let _t=Uo?Ml(Uo.dataset.heroNav,ke.current,U):Number(Ha.dataset.idx);Number.isNaN(_t)||(J(_t,g),L()?.querySelectorAll("[data-slide-name]")[_t]?.click())};return M.forEach(fe=>fe.addEventListener("click",V,{capture:!0})),()=>{G.forEach(fe=>fe?.()),M.forEach(fe=>fe.removeEventListener("click",V,{capture:!0}))}},[U,J,L,g]),pr(()=>{if(!g)return;let M=H.current;if(!M)return;let G=Rl(M),V=fe=>{fe.stopPropagation(),fe.preventDefault();let ro=B.current,Uo=ro?.getAttribute("data-puck-component")||ro?.closest("[data-puck-component]")?.getAttribute("data-puck-component")||ae.current;Oe(Uo)};return M.addEventListener("click",V,{capture:!0}),()=>{G?.(),M.removeEventListener("click",V,{capture:!0})}},[g,Oe,E,O.length]);let Er=ur(M=>{if(!M)return;let G=Rl(M),V=fe=>{fe.stopPropagation(),fe.preventDefault(),ge(ro=>!ro)};return M.addEventListener("click",V,{capture:!0}),()=>{G?.(),M.removeEventListener("click",V,{capture:!0})}},[]);return ko(Nc.Provider,{value:{alignment:o,textureOpacity:t,textureOn:r,textureColor:a,quietVideo:ee,phoneUpDown:n,phoneSideways:s},children:Wl("div",{ref:B,className:`relative mx-[var(--sf-hero-bleed-m,calc(50%_-_50vw))] w-[var(--sf-hero-bleed-w,100vw)] ${P} max-w-[var(--sf-hero-cap,none)] overflow-hidden`,style:k,onMouseEnter:()=>De(!0),onMouseLeave:()=>De(!1),onTouchStart:st,onTouchMove:Cs,onTouchEnd:Ma,children:[ko(e,{className:"hero-track flex h-full [&>*]:h-full [&>*]:min-w-full [&>*]:shrink-0 [&>*]:basis-full",style:{transform:`translateX(-${Ie*100}%)`,transition:Ne?"none":"transform 600ms cubic-bezier(.22,.61,.36,1)"},minEmptyHeight:400}),Ue&&ko("div",{ref:Er,"data-hero-video-control":Le?"playing":"held",className:"sf-hero-video-control absolute left-6 z-[7]",style:{top:`calc(${Fb} + 16px)`},children:Wl("button",{type:"button",className:S_,children:[ko("span",{"aria-hidden":"true",children:Le?"\u275A\u275A":"\u25B6"}),l(Le?y_:b_)]})}),(Se||We)&&Wl("div",{className:"pointer-events-none absolute inset-y-0 left-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] right-[var(--sf-hero-chrome-x,var(--sf-site-gutter,40px))] z-[6] mx-auto max-w-[var(--sf-hero-chrome-cap,calc(var(--sf-site-width,1600px)_-_var(--sf-site-gutter,40px)*2))]",children:[Se&&ko(Sb,{ref:$,slides:le,active:Ie,shape:xb(b),placement:S}),We&&ko(pb,{ref:N,shape:F,placement:v})]}),Se&&ko("div",{ref:K,className:"sf-hero-phone-dots absolute bottom-[80px] left-1/2 z-[6] hidden -translate-x-1/2 items-center gap-2",children:le.map((M,G)=>ko("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===Ie?"w-5 bg-accent":"w-2 bg-white/45 hover:bg-white/70"}`},G))}),E&&O.length>0&&Wl("div",{ref:H,className:`sf-hero-ticker absolute inset-x-0 bottom-0 z-[5] border-t border-overlay-chrome/10 py-3.5${g?" hero-ticker-pick":""}`,"data-selected":g&&ye!=null&&Xe===ye?"":void 0,style:{background:"rgba(10,10,10,.55)"},children:[g&&ko("style",{children:g_}),ko(Mg,{items:O,backdrop:"dark-media"})]})]})})}var O_="root:default-zone";function _b({heroId:e}){let{appState:o,dispatch:t}=F_(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=T_(()=>{let p=n?.props.tickerItems;return Array.isArray(p)?p:Gc.map(m=>({text:m}))},[n]),f=k_();if(!n)return mr("p",{className:"sf-note",children:l("This ticker\u2019s hero is no longer on the page.")});let u=p=>t({type:"replace",destinationZone:O_,destinationIndex:a,data:{...n,props:{...n.props,...p}}});return w_("div",{children:[mr(Zt,{label:"Ticker"}),mr(E_,{label:l("Show ticker"),labelId:f,icon:mr(L_,{}),action:mr(P_,{checked:s,onChange:p=>u({showTicker:p}),ariaLabelledBy:f})}),mr(nf,{label:af.label,icon:af.icon,items:i,placeholder:"item",onChange:p=>u({tickerItems:p}),markup:!0})]})}import{jsx as W,Fragment as Jc,jsxs as To}from"react/jsx-runtime";import{useContext as sD,useEffect as Xc,useRef as iD,useState as ay}from"react";import{FieldSelect as fD,InspectorField as cD}from"efficient-easel/fields";import{SettingsField as dD}from"efficient-easel/panel";import{InspectorUpLevel as Kl}from"efficient-easel/chrome";import{StylesIcon as uD,TypeIcon as pD}from"efficient-easel/icons";import{useEasel as mD}from"efficient-easel/easel";import{TextPartPanel as xD}from"efficient-easel/copy";import{Tooltip as ID}from"efficient-shell/ui";import{jsx as Kc,jsxs as H_}from"react/jsx-runtime";import{COPY_CELLS as ya,CopyBox as W_}from"efficient-easel/copy";import{PaddingYIcon as z_,WidthIcon as G_}from"efficient-easel/icons";import{useSyncExternalStore as R_}from"react";import{decodePartId as A_}from"efficient-easel/draw";function xr(e,o){let t=gf(e);return t?.control==="textList"?o.rowKey===(t.itemKey??"text")?Vx(t,o.index):null:bf(e)?.[o.rowKey]??null}function zl(e,o,t){let r=e.node.props,{key:a,row:n}=io(e.propKey),s=n?PI(r,a,n,e.kind,o):FI(r,a,e.kind,o);return s?(t(e.zone,e.index,{...e.node,props:s}),!0):!1}var B_=["bold","italic","underline","strike","link","sup","sub"],__=["bullet","number"];function qc(e,o){return e?[...B_,...o?__:[]]:[]}function Db(e,o){let t=A_(e);if(!t?.propKey)return null;let{nodeId:r,propKey:a}=t,n=o.getItemById(r),s=o.getSelectorForId(r);if(!n||!s)return null;let{key:i,row:f}=io(a),u=o.components[n.type]?.fields?.[i],p=f?xr(u,f):u,m=Jt(p);if(!m)return null;let x=n.props??{};if(f&&!(Array.isArray(x[i])&&f.index<x[i].length))return null;let h=f?Xr(x[i],f):x[i];return{node:n,selector:s,propKey:a,kind:m,stored:h,offPage:Ln(p)}}function Nb(e,o){let t=Db(e,o);if(!t||t.offPage)return null;let{text:r,hidden:a}=Qo(t.stored);if(a)return null;let n=Zn(t.kind);return{partId:e,value:r,rules:Gt,multiline:n,offered:qc(t.kind!=="plainText",n),write:s=>{let i=Db(e,o);i&&zl({node:i.node,propKey:i.propKey,kind:i.kind,zone:i.selector.zone,index:i.selector.index},s,o.replace)}}}function Mb(e,o,t){return e?.isConnected&&e.getAttribute(fo)===t?e:o?.querySelector(`[${fo}="${D_(t)}"]`)??null}function D_(e){return e.replace(/["\\]/g,"\\$&")}function Hb(e){let o=e.activeElement;return o?o.tagName==="IFRAME"||!!o.closest(".es-canvas"):!1}var Uc=null,$c=new Set;function N_(){return Uc}function jc(e){if(e!==Uc){Uc=e;for(let o of $c)o()}}function M_(e){return $c.add(e),()=>{$c.delete(e)}}function Wb(){return R_(M_,N_,()=>null)}var U_=["left","center","right","justify"];function Vc(e,o,t,r={}){let a=oa(e),n=(r.phone?e.sizePhone:void 0)??e.size??o.sizePx;return[r.phone?{...ya.fontSize,value:e.sizePhone,styleValue:Math.round(o.sizePx),onChange:s=>t({sizePhone:s??null})}:{...ya.fontSize,value:e.size,styleValue:Math.round(o.sizePx),onChange:s=>t({size:s??null})},{...ya.lineHeight,value:a.lineHeight,styleValue:o.lineRatio,onChange:s=>t(s===void 0?{lineHeight:null,line:null}:{lineHeight:s})},{...ya.letterSpacing,scale:n,value:a.letterSpacingEm,styleValue:o.letterEm,onChange:s=>t(s===void 0?{letterSpacing:null,letter:null}:{letterSpacing:s})},{...ya.paragraphSpacing,value:e.paragraphSpacing,styleValue:0,onChange:s=>t({paragraphSpacing:s??null})},{key:"padding",name:l("Padding"),icon:Kc(z_,{}),unit:"px",step:Pf,shiftStep:10,min:Ff,max:Ef,value:e.padding,styleValue:o.paddingPx,onChange:s=>t({padding:s??null})},{key:"width",name:l("Width"),icon:Kc(G_,{}),unit:"px",step:Of,shiftStep:100,min:Lf,max:et,value:e.width,styleValue:o.widthPx,onChange:s=>t({width:s??null})}]}function zb({text:e,onTextChange:o,multiline:t,markup:r=!0,styled:a=!0,style:n,base:s,setValue:i,colors:f,placeholder:u,ariaLabel:p,head:m,typedOnCanvas:x=!1}){let h=Vc(n,s,i),b=qc(r,t);return H_("div",{className:"sf-part-textbox",children:[m,Kc(W_,{value:e,onChange:o,multiline:t,placeholder:u,ariaLabel:p,rules:Gt,tools:b,barShows:x?"focus":"always",colors:r?f:[],align:a?{value:n.align??s.align,allow:U_,onChange:S=>i({align:S})}:void 0,letterCase:a?{value:n.case==="capitalize"?"":n.case??"",onChange:S=>i({case:S||null})}:void 0,cells:a?h:void 0})]})}import{UiIcon as ny}from"efficient-easel/draw/client";import{jsx as Gl,Fragment as $_,jsxs as q_}from"react/jsx-runtime";import{Button as Gb,Dialog as j_}from"efficient-shell/ui";function Ub({styleName:e,onCancel:o,onConfirm:t}){return Gl(j_,{open:!0,onClose:o,role:"alertdialog",size:"sm",title:l("Update {style}?",{style:e}),footer:q_($_,{children:[Gl(Gb,{variant:"secondary",onClick:o,children:l("Cancel")}),Gl(Gb,{variant:"primary",onClick:t,children:l("Update style")})]}),children:Gl("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{ScreenDocumentContext as hD}from"efficient-easel/screen/components/ScreenDocumentContext";import{usePreviewDevice as gD}from"efficient-easel/draw/client";import{jsx as K_}from"react/jsx-runtime";import{createContext as V_,useContext as Y_,useMemo as X_,useState as Z_}from"react";var Q_={partStyle:null,setPartStyle:()=>{}},$b=V_(Q_);function vX({children:e}){let[o,t]=Z_(null),r=X_(()=>({partStyle:o,setPartStyle:t}),[o]);return K_($b.Provider,{value:r,children:e})}function qb(){return Y_($b)}import{TEXT_FIELD_MARKER as bD}from"efficient-easel/draw";import{useSectionOps as yD}from"efficient-easel/screen/lib/puck/use-section-ops";var J_="#9ca3af";function eD(e){return rn.map(o=>({key:o,name:vp[o],value:e?.[o]||J_}))}function Ul(e){return eD(e).map(o=>({name:o.key,label:l(o.name),value:o.value}))}function Kb(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 rn){let i=Ro[s].replace(/^var\((--[\w-]+)\)$/,"$1"),f=a.getPropertyValue(i).trim();if(!f)continue;let u=jb(f);!u&&n&&(n.fillStyle="#000000",n.fillStyle=f,u=jb(String(n.fillStyle))),u&&(o[s]=u)}return o}function jb(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}import{useEaselHost as SD}from"efficient-easel/screen/lib/host";function oD(e){let o=new Set([...Object.keys(ln[e]??{}),...sn[e]??[]]);for(let[t,r]of Object.entries(si[e]??{}))r.verb==="snapshot"&&o.add(t);return[...o].sort()}var tD={CollectionCard:"product",FooterMenu:"menu",Gallery:"product",GalleryItem:"product",ProductGrid:"product",ProductHero:"product",SpecTable:"product",Events:"blog",FeaturedCover:"blog",LongRead:"blog",SubscribeBlogs:"blog"},Vb={product:"Synced from the product.",blog:"Synced from the blog post.",menu:"Synced from the site menu."},Yb="Open",Xb={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 Sa(e){let o=e?.source?.slug;return typeof o=="string"&&o.length>0?o:void 0}function Ca(e){return tD[e]??null}function Zb(e,o){let t=Ca(e);return t&&oD(e).includes(o)?t:null}function $l(e){let o=e?.menu?.id;return typeof o=="string"&&o.length>0?o:void 0}var ql="data-sf-spec-region";function OX(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 Ir(e){let o=/var\(--size-[A-Za-z]+, ?([0-9.]+px)\)/.exec(e);if(!o)throw new Error(`builtInOf: no --size-* fallback in ${e}`);return o[1]}function rD(e){return`@${e}`}function Yc(e,o){if(!o.startsWith("@"))return null;let t=o.slice(1);return t in e?t:null}function Qb(e,o){return o&&o in e?o:null}function aD(e,o){let t=o?.closest(`[${ql}]`)?.getAttribute(ql);return Qb(e,t??null)}var va={tag:"text-[length:var(--size-label,13px)]",name:"text-[length:min(var(--size-headingMedium,48px),var(--sf-heading-max,9999px))]",namePhone:"max-[800px]:text-[length:min(var(--size-headingMedium,36px),var(--sf-heading-max,9999px))]",body:"text-[length:var(--size-body,14px)]",price:"text-[length:var(--size-label,15px)]",link:"text-[length:var(--size-label,14px)]"},nD={tag:{label:"Tag",follows:"Labels",builtIn:Ir(va.tag),writable:!0},name:{label:"Name",follows:"Heading 2",builtIn:Ir(va.name),writable:!0},body:{label:"Body",follows:"Body",builtIn:Ir(va.body),writable:!0},price:{label:"Price",follows:"Labels",builtIn:Ir(va.price),writable:!0},link:{label:"Link",follows:"Labels",builtIn:Ir(va.link),writable:!0}},Jb=nD;var lD={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}},ey=lD;var MX=ql;var oy={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 ty={SpecTable:oy,FAQ:ey,Collections:Jb};function ry(e){return e&&Object.hasOwn(ty,e)?ty[e]:null}function Qc(e){return e?l(e):null}function ly(e){return e.kind==="role"?Wa[e.role]:e.kind==="custom"?"Custom":null}function CD(e){let o=e.role;return o&&Po.includes(o)?{kind:"role",role:o}:null}function vD(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 Zc(e,o,t,r){return CD(nl(e,o))??vD(t,r)}function wD(e,o){if(!e.length)return null;let t=o(e[0]);return e.every(r=>o(r)===t)?t:null}var jl="";function kD({face:e,base:o,onPick:t}){let r=e.kind==="role"?e.role:jl,a=[{label:l("No style"),value:jl},...Po.map(n=>({label:l(Wa[n]),value:n}))];return W(fD,{ariaLabel:l("Style"),value:r,options:a,inline:!0,onChange:n=>t(n===jl?null:n),renderOption:n=>n.value===jl?To(Jc,{children:[W("span",{className:"es-fsel-label sf-part-style-keep",children:n.label}),W("span",{className:"sf-part-style-aside","aria-hidden":"true",children:l("Section\u2019s own")})]}):W("span",{className:"es-fsel-label",style:{fontFamily:`var(--font-role-${n.value})`},children:n.label}),renderValue:()=>W("span",{style:{fontFamily:o?.fontKey?`var(${Dt(o.fontKey)?.cssVar})`:void 0,fontWeight:o?.weight},children:Qc(ly(e))}),valueText:n=>Qc(ly(e))??n?.label??""})}function TD({sectionName:e,onBack:o,textEditor:t,styleRow:r,children:a}){return To("div",{className:"sf-part-panel",children:[W(Kl,{inline:!0,name:l(e),onSelect:o}),t,r,a]})}function Vl({source:e,slug:o,menuId:t}){let r=SD(),a=Xb[e],n=!a.needsSlug||!!o;return W("div",{className:"sf-note sf-note--source",children:To("p",{className:"es-field-hint sf-hint-keep",children:[l(Vb[e]),n?To(Jc,{children:[" ",W("button",{type:"button",className:"sf-source-open",onClick:()=>{a.type==="storefront-editor:open-menus"?r.send(a.type,{menuId:t??null}):o&&r.send(a.type,{slug:o})},children:l(Yb)})]}):null]})})}var sy=4,FD=120;function ED({region:e,sizePx:o,face:t,base:r,onFollowStyle:a,source:n,slug:s,onBack:i}){let f=e.follows;return To("div",{className:"sf-note",children:[W("p",{children:W("strong",{children:l(e.label)})}),W("p",{children:o?l("Its size follows Site styles \u25B8 {follows} \u2014 {px}px right now.",{follows:l(f),px:Math.round(o)}):l("Its size follows Site styles \u25B8 {follows}.",{follows:l(f)})}),a?W(Jc,{children:W(dD,{label:l("Style"),icon:W(uD,{}),hint:l("Every {part} in this section follows it. The face and the size change; the letter case is the section\u2019s own and stays as it is.",{part:l(e.label).toLowerCase()}),children:W(kD,{face:t,base:r,onPick:a})})}):W("p",{className:"es-field-hint sf-hint-keep",children:l("Only the size follows a site style. This section sets its own font, weight and letter case.")}),n?W(Vl,{source:n,slug:s}):null,W(Kl,{inline:!0,name:l("Page"),onSelect:i})]})}function PD({onBack:e}){return To("div",{className:"sf-note",children:[W("p",{children:W("strong",{children:l("This part is no longer here.")})}),W("p",{children:l("The section it belonged to has been changed or removed.")}),W(Kl,{inline:!0,name:l("Page"),onSelect:e})]})}function LD({onBack:e,partId:o,why:t}){return To("div",{className:"sf-note",children:[W("p",{children:W("strong",{children:l("This part's settings did not open.")})}),W("p",{children:l("The words are still on your page and nothing has been lost. The editor could not work out which control belongs to them, which is a fault on our side. Go back and click the section to open its settings instead.")}),W("p",{className:"sf-note-detail",children:To("code",{children:[o," \u2014 ",t]})}),W(Kl,{inline:!0,name:l("Page"),onSelect:e})]})}function iy({nodeId:e,propKey:o,onBack:t,onEditStyle:r}){let{getItemById:a,getSelectorForId:n,config:s}=mD(D=>D),i=yD(),f=Wb(),{partStyle:u}=qb(),{fonts:p,textStyles:m}=q(),x=sD(hD),h=!x?.capabilities?.hasSiteTheme,{persist:b}=Ut({themeFromDocument:h,tokenRef:x?.tokenRef,siteId:x?.siteId??null}),S=sl({themeFromDocument:h,persist:b}),[w,F]=ay(!1),v=gD()==="mobile",g=iD(null),y=a(e),P=n(e),k=y?s.components[y.type]:void 0,{key:O,row:E}=io(o),B=k?.fields?.[O],$=E?xr(B,E):B,K=ol(e,o),N=y?.props??{},H=Jt($),A=Ln($),ae=DI($),le=y?Ca(y.type):null,pe=y?Zb(y.type,O):null,oo=E?Xr(N[O],E):N[O],Ve=!!E&&!(Array.isArray(N[O])&&E.index<N[O].length);Xc(()=>{Hb(document)||g.current?.querySelector(".es-copy [contenteditable='true'], .es-copy textarea, .sf-copybox textarea, .sf-copybox input")?.focus()},[K]);let[ke,to]=ay(0);Xc(()=>to(0),[K]);let De=!!y&&!Ve&&(!P||!$);Xc(()=>{if(!De||ke>=sy)return;let D=setTimeout(()=>to(Te=>Te+1),FD);return()=>clearTimeout(D)},[De,ke]);let Le=De&&ke<sy;if(!y||Ve)return W(PD,{onBack:t});let ge=ry(y.type),ye=ge?Yc(ge,o):null;if(ge&&ye){let D=u?.partId===K?u:null,Te=ge[ye],mo=Te.writable===!0&&!!P,Pr=ws=>{P&&i.replaceComponent(P.zone,P.index,{...y,props:ea(N,o,"role",ws)})};return W(ED,{region:Te,sizePx:D?.base.sizePx??null,face:Zc(N,o,D,p),base:D?.base??null,onFollowStyle:mo?Pr:void 0,source:le,slug:Sa(N),onBack:t})}if(!P||!$)return Le?W("div",{className:"sf-note","aria-busy":"true"}):W(LD,{onBack:t,partId:K,why:P?"no field":"no selector"});let Ye=D=>{i.replaceComponent(P.zone,P.index,{...y,props:D})},Ne=D=>{if(Qo(D).hidden!==Qo(oo).hidden||!H){let Te=E?yf(N,O,E,D):{...N,[O]:D};Te&&Ye(Te);return}zl({node:y,propKey:o,kind:H,zone:P.zone,index:P.index},Qo(D).text,i.replaceComponent)},Xe=oo,Oe=u?.partId===K?u:null,L=Oe?.styleOwner,J=L?a(L.owner):null,U=L&&J?n(L.owner):null,Ie=!!(L&&J&&U),Se=Ie?J.props??{}:N,We=Ie?D=>i.replaceComponent(U.zone,U.index,{...J,props:D}):Ye,Ue=Ie?L.kind:Al(y?.type,o),ee=nl(Se,Ue),ne=[{partKey:Ue,face:Zc(Se,Ue,Oe,p),sizeGroup:Oe?.sizeGroup??null,base:Oe?.base??RD,style:ee}],Ze=wD(ne,D=>D.sizeGroup),lt=Ul(Oe?.inks),st=(D,Te)=>{let mo=Se;for(let Pr of ne)mo=ea(mo,Pr.partKey,D,Te);We(mo)},Cs=D=>st("role",D),Ma=D=>{let Te=Se;for(let mo of ne)for(let[Pr,ws]of Object.entries(D))Te=ea(Te,mo.partKey,Pr,ws??null);We(Te)},Er=H==="text"||H==="textarea",{text:M,hidden:G}=Qo(oo),V=$?.[bD]?.label??o,fe=G?l("Show {label} on the slide",{label:l(V)}):l("Hide {label} on the slide",{label:l(V)}),ro=To("div",{className:"sf-field-head",children:[W(pD,{}),W("span",{className:"sf-field-label sf-field-label--inline",children:l(V)}),Er&&W(ID,{content:fe,children:W("button",{type:"button",className:"sf-field-eye","aria-pressed":G,"aria-label":fe,onClick:()=>Ne({text:M,hidden:!G}),children:G?W(ny,{name:"eye-off",size:14}):W(ny,{name:"eye",size:14})})})]}),Uo=!A&&ae,Ha=!!H&&(Bx($)||A||G||!ae),_t=Zc(Se,Ue,Oe,p),vs=_t.kind==="role"?_t.role:null,rv=Object.entries(ee).filter(([D,Te])=>D!=="role"&&Te!==void 0).length,av=()=>{let D=Se;for(let Te of ne){let mo=Te.style.role;D=XI(D,Te.partKey),mo&&(D=ea(D,Te.partKey,"role",mo))}We(D)},it=Hf(vs),nv=sh(ne[0].style),lv=it?ot(S.saved,S.old).find(D=>D.id===it)?.name??it:"",sv=()=>{F(!1),it&&(S.write(ih({saved:S.saved,old:S.old,styleId:it,values:Wf(ne[0].style)}),!0),av())};return To(TD,{sectionName:k?.label??y.type,onBack:t,textEditor:W("div",{ref:g,className:"sf-part-text",children:Ha?W(zb,{text:M,onTextChange:D=>Ne(Er?{text:D,hidden:G}:D),multiline:Zn(H),markup:H!=="plainText",styled:!1,style:ne[0].style,base:ne[0].base,setValue:Ma,colors:lt,placeholder:Qc(TI($))??void 0,ariaLabel:l(V),head:ro,typedOnCanvas:f===K}):H?Er?ro:null:W(cD,{field:$,name:o,value:Xe,onChange:Ne,id:`sf-part-${e}-${o}`})}),children:[pe&&W(Vl,{source:pe,slug:Sa(N),menuId:$l(N)}),Uo&&W(xD,{style:{value:vs??"",options:[{value:"",label:l("No style"),description:l("Section\u2019s own")},...Po.map(D=>({value:D,label:l(Wa[D]),description:Dt(p[D])?.label}))],onChange:D=>Cs(D||null),changed:rv>0,onEditStyles:r,onUpdateStyle:it&&nv?()=>F(!0):void 0},font:{value:ee.font??"",styleValue:Dt(ne[0].base.fontKey)?.label,options:lo.map(D=>({label:D.label,value:D.key})),onChange:D=>st("font",D||null)},italic:{value:ee.italic,styleValue:OD(m,vs),onChange:D=>st("italic",D??null)},cells:Vc(ne[0].style,ne[0].base,Ma,{phone:v}),align:{value:ee.align??"",styleValue:ne[0].base.align,onChange:D=>st("align",D||null)},letterCase:{value:ee.case??"",styleValue:ne[0].base.case,onChange:D=>st("case",D||null)}}),w&&it&&W(Ub,{styleName:lv,onCancel:()=>F(!1),onConfirm:sv}),Uo&&Ze===null&&W("p",{className:"es-field-hint sf-hint-keep",children:l("Fixed size \u2014 the site\u2019s Text setting doesn\u2019t resize this.")})]})}function OD(e,o){let t=Hf(o);return!t||!Array.isArray(e)?!1:e.find(r=>r?.id===t)?.values?.italic===!0}var RD={fontKey:"",sizePx:16,weight:400,lineRatio:1.4,letterEm:0,align:"left",case:"none",paddingPx:0,widthPx:et};import{jsx as uo,jsxs as ed,Fragment as AD}from"react/jsx-runtime";import{useCallback as BD,useRef as _D,useState as wa}from"react";import{InspectorIconButton as DD}from"efficient-easel/chrome";import{PopupMenu as ND,PopupMenuItem as MD,PopupMenuLabel as Yl}from"efficient-shell/ui";import{CopyToPageIcon as HD}from"efficient-easel/icons";import{useEaselSession as WD}from"efficient-easel/screen/lib/session-context";import{cloneNodeWithFreshIds as zD}from"efficient-easel/screen/lib/puck/section-doc";import{FOOTER_TYPE as GD}from"efficient-easel/draw";function fy({node:e,currentSlug:o,siteId:t,tokenRef:r,runAuthed:a,onNotify:n}){let[s,i]=wa(!1),[f,u]=wa(null),p=WD(),[m,x]=wa(!1),[h,b]=wa(null),S=_D(null),[w,F]=wa(null),v=BD(async()=>{if(p.usesBridgedToken&&!r.current){x(!0);return}try{u(await Me(p).pages.list(t?{siteId:t}:void 0))}catch{x(!0)}},[r,t,p]),g=()=>{if(s){i(!1);return}let k=S.current?.getBoundingClientRect();k&&F({top:k.bottom+6,right:Math.max(8,window.innerWidth-k.right)}),u(null),x(!1),v(),i(!0)},y=(f??[]).filter(k=>k.slug!==o),P=async k=>{if(h)return;b(k.slug);let O=zD(e),E=p.documentHooks?.storedNode?.(O)??O,B=Me(p).pages,$=await a(async()=>{let K=await B.load({id:k.id});if(!K)throw new Error(`Page "${k.slug}" no longer exists.`);let N=K.layout??{},H=Array.isArray(N.content)?[...N.content]:[],A=H.findIndex(ae=>ae?.type===GD);H.splice(A===-1?H.length:A,0,E),await B.save(k.id,{layout:{root:{},zones:{},...N,content:H}},{version:K.version,clientId:""})});b(null),i(!1),n?.($?l("Duplicated to \u201C{name}\u201D",{name:k.label}):l("Couldn\u2019t duplicate the section \u2014 please retry"),$?"success":"error")};return ed(AD,{children:[uo("span",{"data-menu-toggle":!0,style:{display:"contents"},children:uo(DD,{buttonRef:S,label:l("Duplicate to another page"),hasPopup:"menu",expanded:s,onClick:g,children:uo(HD,{size:15})})}),s&&w&&uo(ND,{portal:!0,style:{top:w.top,right:w.right},onClose:()=>i(!1),children:ed("div",{role:"menu","aria-label":l("Duplicate to page"),children:[uo(Yl,{children:l("Duplicate to page")}),m?uo(Yl,{children:l("Couldn\u2019t load pages")}):f===null?uo(Yl,{children:l("Loading\u2026")}):y.length===0?uo(Yl,{children:l("No other pages")}):y.map(k=>ed(MD,{role:"menuitem",disabled:h!==null,onClick:()=>{P(k)},children:[uo("span",{className:"min-w-0 flex-1 truncate",children:k.label}),h===k.slug?uo("span",{className:"shrink-0 text-xs",children:l("Copying\u2026")}):k.draft&&uo("span",{className:"shrink-0 text-xs",children:l("draft")})]},k.id))]})})]})}import{useScreenDocument as UN}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSectionOps as $N}from"efficient-easel/screen/lib/puck/use-section-ops";import{SELECTION_MODE as qN}from"efficient-easel/screen/lib/screen-parts";import{usePreviewParts as jN}from"efficient-easel/draw/client";import{jsx as ka,jsxs as UD}from"react/jsx-runtime";import{SettingsDrill as $D}from"efficient-easel/panel";import{UiIcon as qD}from"efficient-easel/draw/client";var jD="Not shown on the page";function KD({part:e,onOpen:o}){return ka($D,{name:l(e.label),preview:e.offPage?l(jD):e.preview||l("Empty"),offPage:e.offPage,status:e.hidden?ka("span",{className:"sf-entry-eye",role:"img","aria-label":l("Hidden on the page"),children:ka(qD,{name:"eye-off",size:14})}):void 0,onOpen:()=>o(e.key)})}function od(e){return e.filter(o=>!o.identifier)}function cy({parts:e,onOpen:o,heading:t=!0}){let r=od(e);return r.length?UD("div",{className:"sf-entries",children:[t?ka("h3",{className:"sf-entries-head",children:l("Text")}):null,r.map(a=>ka(KD,{part:a,onOpen:o},a.key))]}):null}import{HEADER_TYPE as KN,ROOT_ZONE as Qy}from"efficient-easel/draw";import{HEADER_TYPE as Ke,FOOTER_TYPE as me,newNodeId as VD}from"efficient-easel/draw";function Xl(){return{type:Ke,props:{id:VD(Ke)}}}var dy=[{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"}],YD=dy.filter(e=>e.type!=="FooterLogo"&&e.type!=="FooterGroup"),XD="FooterGroup",uy="blocks";function py(e){return e===me?dy:e===XD?YD:null}function Zl(){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 He="SiteHeader",ue="SiteFooter",td="sections",jZ=[He,ue],hr=e=>e===He||e===ue,my=e=>`${e}:${td}`;function xy(e,o,t=[]){return{type:e,props:{id:o,[td]:t}}}var ZD=new Set(["Footer",He,ue]);function gr(e){let o=new Set,t=!1,r=e.filter(a=>{let n=a?.type??"";return n==="Header"?(t=!0,!1):ZD.has(n)?o.has(n)?(t=!0,!1):(o.add(n),!0):!0});return t?r:e}function Iy(e,o){return e.some(t=>t?.type===o.type)?e:o.type===He?[o,...e]:[...e,o]}var hy={[He]:{max:3,takes:["Flex","Ticker"]},[ue]:{max:6,takes:["Flex","Prose","Logos","Divider"]}};function gy(e,o,t){if(!hr(e))return!0;let r=hy[e];return t<r.max&&r.takes.includes(o)}function by(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(!hr(n?.type))continue;let s=n.props?.[td];if(!Array.isArray(s)||!s.some(f=>f?.props?.id===r))continue;let i=hy[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 yy(e){switch(e?.type){case He:return l("Header \xB7 on every page");case ue:return l("Footer \xB7 on every page");case Ke:return l("Header \xB7 on every page \xB7 old style");case me:return l("Footer \xB7 on every page \xB7 old style");default:return null}}var Sy=()=>l("Every page"),Cy=()=>l("Changed on every page");function Ql(e,o){let t=tp(e,o);if(t)return t;let r=by(e,o);if(!r)return null;let a=r.group===He;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 os,Fragment as lN,jsxs as sN}from"react/jsx-runtime";import{useState as iN}from"react";import{createNode as fN,newId as cN}from"efficient-easel/data";import{useEasel as dN}from"efficient-easel/easel";import{Banner as uN,Button as rd}from"efficient-shell/ui";import{useScreenDocument as pN}from"efficient-easel/screen/components/ScreenDocumentContext";var Jl="Flex",QD={FooterMenu:"MenuBlock",FooterEmailSignup:"EmailFormBlock",FooterSocial:"SocialLogosBlock"},JD=e=>{let{id:o,...t}=e;return t},vy=e=>typeof e=="string"?e:"",es=e=>typeof e=="number"&&Number.isFinite(e)?e:void 0,wy={sm:12,md:13,lg:15},eN="md",ky=1.5,oN={size:13,lineHeight:ky,width:280},tN=14,rN=40,aN=e=>e==="center"||e==="right"?e:"left";function nN(e){let o={},t=[["padTop","sectionPaddingTop"],["padRight","sectionPaddingRight"],["padBottom","sectionPaddingBottom"],["padLeft","sectionPaddingLeft"]];for(let[r,a]of t){let n=es(e[r]);n&&(o[a]=n)}return o}function Ty(e,o){let t=e.props??{},r=QD[e.type];if(r)return[o(r,JD(t))];switch(e.type){case"FooterLogo":{let a=aN(t.align),n=o("LogoBlock",{...t.reverse?{reverse:t.reverse}:{},...typeof t.customColor=="string"&&t.customColor?{customColor:t.customColor}:{},heightPx:Math.round(yu*((es(t.widthPct)??100)/100)),href:"/",align:a,...nN(t)}),s=vy(t.tagline).trim();return s?[n,o("Text",{text:s,tone:"dim",align:a,_partStyles:{text:{...oN}}})]:[n]}case"FooterText":{let a=typeof t.size=="string"&&t.size in wy?t.size:eN;return[o("Text",{text:vy(t.text),tone:typeof t.tone=="string"?t.tone:"default",_partStyles:{text:{size:wy[a],lineHeight:ky}}})]}case"FooterDivider":{let a=es(t.thickness),n=es(t.lengthPct);return[o("Divider",{...a!==void 0?{thickness:a}:{},...n!==void 0?{lengthPct:n}:{},...t.hideOnMobile===!0?{hideOnMobile:!0}:{}})]}case"FooterGroup":{let a=Array.isArray(t.blocks)?t.blocks:[];return[o(Jl,{direction:t.direction==="horizontal"?"row":"column",gap:Ur("FooterGroup",t.gap),align:t.align==="center"||t.align==="end"?t.align:"start",content:a.flatMap(n=>Ty(n,o))})]}default:return[]}}function Ta(e,o,t){let r=e&&Array.isArray(e.props?.blocks)?e.props.blocks:[],a=u=>o(Jl,{direction:"row",wrap:!0,share:"equal",gap:rN,content:u}),n=[],s=[];for(let u of r){let p=Ty(u,o);if(u.type==="FooterDivider"){s.length&&n.push(a(s)),s=[],n.push(...p);continue}p.length<=1?s.push(...p):s.push(o(Jl,{direction:"column",gap:tN,align:"stretch",content:p}))}(s.length||!n.length)&&n.push(a(s));let i=o(Jl,{direction:"column",content:[o("LegalLineBlock")]}),f=xy(ue,t,[...n,i]);return{...f,props:{...f.props,...e?.props?.width==="full"?{fullWidth:!0}:{}}}}function Fy(){let{appState:e,dispatch:o,config:t}=dN(p=>p),{readOnly:r}=pN(),[a,n]=iN(!1),s=e.data.content;if(r||s.some(p=>p.type===ue))return null;let i=s.find(p=>p.type===me)??null,f=(p,m)=>fN(t,p,m),u=()=>{let p=Ta(i,f,cN(ue));o({type:"setData",data:m=>({...m,content:[...Iy(m.content,p)]}),recordHistory:!0}),n(!1)};return os(uN,{tone:"info",title:l("This footer uses the old layout"),action:a?sN(lN,{children:[os(rd,{variant:"primary",size:"sm",onClick:u,children:l("Switch now")}),os(rd,{variant:"secondary",size:"sm",onClick:()=>n(!1),children:l("Cancel")})]}):os(rd,{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 ud}from"react/jsx-runtime";import{useLayoutEffect as PN,useMemo as jy,useRef as LN,useState as cd}from"react";import{useEasel as ON,useSelectedFields as RN}from"efficient-easel/easel";import{Inspector as AN,planFields as Ky}from"efficient-easel/fields";import{jsx as br}from"react/jsx-runtime";import{usePreviewDevice as mN}from"efficient-easel/draw/client";import{NoControlMark as Ey,noControlField as Py}from"efficient-easel/screen/lib/puck/panel-no-control-mark";var ad=e=>l(Kt[e==="content"?"page":"full"]),Ly=e=>`${e} ${l("from Site styles")}`;function Oy(){let{siteWidth:e,sectionBackgroundWidth:o,sectionContentWidth:t}=q();return{px:typeof e=="number"?e:Ce.default,background:o??"full",content:t??"content"}}function Ry(){try{return mN()==="mobile"}catch{return!1}}function xN({type:e,onChange:o}){let t=wo(),r=Oy(),a=Ry(),n=ji(e,t).background;return br(Yn,{value:n??r.background,changed:n!==null,detail:Ly(ad(r.background)),onChange:s=>o(s),onReset:()=>o(qr),disabled:a})}function IN({type:e,onChange:o}){let t=wo(),[,r]=Bn("contentMax"),a=Oy(),n=Ry(),s=ji(e,t),i=(s.background??a.background)==="content",f=s.content??a.content;return br(Xn,{mode:i&&f==="full"?"content":f,px:s.contentMax??a.px,max:i?a.px:Ce.max,changed:s.content!==null,detail:Ly(a.content==="full"?ad("full"):`${ad("content")} ${a.px}px`),fullClosed:i,disabled:n,hint:n?vI:i?yI:void 0,onMode:u=>{o(u),u==="full"&&r(null)},onPx:u=>{o("content"),r(u===a.px?null:u)},onReset:()=>{o(qr),r(null)}})}function hN(e){return Jo({_gWidth:Be(Vn),backgroundWidth:{type:"custom",render:({onChange:o})=>br(xN,{type:e,onChange:o})},contentWidth:{type:"custom",render:({onChange:o})=>br(IN,{type:e,onChange:o})},contentMax:{...Py({type:"custom",render:()=>br(Ey,{})},"always"),reachedBy:"contentWidth"},widthMode:{...Py({type:"custom",render:()=>br(Ey,{})},"always"),reachedBy:"backgroundWidth"}})}var Ay=Object.keys(hN(""));import{deviceField as gN,deviceMetaOf as _y}from"efficient-easel/screen/lib/puck/device-fields";import{DESIGN_GROUPS as ld,SETTINGS_BUCKETS as bN}from"efficient-easel/panel";import{BUCKET_KEY as eo,DESIGN_GROUP_KEY as Fa}from"efficient-easel/screen/lib/puck/field-buckets";var Ea=bN;var yN="Editor only \u2014 not shown live",sd={"Archive link":"Content",Article:"Content",Blocks:"Content","Blog posts":"Content","Browser mock":"Content",Button:"Content","Call to action":"Content","Car prompt":"Content","Card link":"Content",Cards:"Content","Claims bars":"Content","Contact info":"Content",Content:"Content","Content source":"Content",Contents:"Content",Filters:"Content","Show on a card":"Content",Footnote:"Content",Form:"Content",Founders:"Content","Gallery A":"Content","Gallery B":"Content","Gallery link":"Content",Header:"Content","Header link":"Content","Image caption":"Content","In this issue":"Content",Items:"Content","Kanban columns":"Content",Lead:"Content","Left panel":"Content",Link:"Content",Links:"Content",List:"Content","Message form":"Content",Metadata:"Content",Milestones:"Content","Mockup card":"Content","Newsletter panel":"Content",Offices:"Content",Options:"Content","Others gallery":"Content","Overlay button":"Content",Product:"Content","Product page":"Content",Products:"Content","Pull quote":"Content",Questions:"Content","Recent issues":"Content","Recent posts":"Content",Reviews:"Content","Right panel \xB7 actions":"Content","Right panel \xB7 choices":"Content","Right panel \xB7 form":"Content","Routing groups":"Content",Rows:"Content",Search:"Content",Section:"Content","Section header":"Content",Sections:"Content","Signup form":"Content","Source product":"Content","Stat & note":"Content",Stats:"Content","Submit button":"Content","Success state":"Content",Wheel:"Content",Terminal:"Content",Text:"Content","Text column":"Content","Timeline entries":"Content","Top row":"Content",Total:"Content","Trailing note":"Content","\u201COther\u201D reason":"Content","Background images":"Design",Gallery:"Content",Image:"Content","Image column":"Content",Images:"Content",Logo:"Content",Media:"Content","Background image":"Design",Color:"Design","Image tint":"Design",Style:"Design",Shape:"Design",Texture:"Design","Text style":"Design",Motion:"Animation",Anchor:"Anchor",Arrangement:"Layout","Auto-slide":"Layout",Bar:"Layout","Cell width":"Size",Behavior:"Layout",Controls:"Layout",Diagram:"Layout",[yN]:"Layout","Filters shown":"Layout","Slide picker":"Layout",Arrows:"Layout","On a phone":"Layout",Nudge:"Position","Stick to top":"Position","Image gallery":"Layout",Grid:"Layout",Layout:"Layout",Padding:"Layout",Price:"Layout",Preview:"Layout",Setup:"Layout","Show / hide elements":"Layout","Show in the buy box":"Layout",Visibility:"Layout",Width:"Size",Height:"Size"},Dy={"AlloyWheelsListing._gCards":"Design","ProductGrid._gCards":"Design"},Ny={"Text._gSpacing":"Size","Heading._gSpacing":"Size"};function nd(e,o,t){let r=`${e}.${o}`;return Ny[r]??Dy[r]??sd[t]}function My(e){return e==="Animation"?[eo.Animation]:[eo.Design,Fa[e]]}function ts(...e){let o=[];for(let t of e)for(let r of Object.values(t)){let a=_y(r),n=No(a?a.inner:r),s=n?sd[n.label]:void 0;if(s)for(let i of My(s))o.includes(i)||o.push(i)}return o}var PQ=[...ts(Nn(),Mn("full"),Hn(),Wn(),tf()),...Object.keys(Nn()),...Object.keys(Mn("full")),...Object.keys(Hn()),...Object.keys(Wn()),...Object.keys(tf()),...Ay],LQ=[...ts(Rn()),...Object.keys(Rn())],OQ=[...ts(_n()),...Object.keys(_n())],RQ=[...ts(Dn()),...Object.keys(Dn())],SN=Object.keys(Yx()),CN=new Set(["cardImage","imageBackground"]),AQ=[...My(nd("ProductGrid","_gCards","Cards")??"Design"),...SN.filter(e=>e.startsWith("_g")||CN.has(e))],BQ=Object.keys(Xx()),_Q=Object.keys(Zx({bottomDefault:!0})),vN={"ImageBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","ButtonBlock._gStyle":"duplicated the Style bucket header above it (2026-09-04)","HeroGroup._gContent":"duplicated the Content bucket header above it (2026-09-04)","HeroGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","Footer._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterLogo._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterLogo._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterMenu._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterMenu._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterGroup._gLayout":"duplicated the Layout bucket header above it (2026-09-04)","FooterText._gContent":"duplicated the Content bucket header above it (2026-09-04)","FooterText._gStyle":"duplicated the Style bucket header above it (2026-09-04)","FooterSocial._gStyle":"duplicated the Style bucket header above it (born tabbed, 2026-09-17)","FooterSocial._gLayout":"duplicated the Layout bucket header above it (born tabbed, 2026-09-17)","MenuBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","MenuBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","EmailFormBlock._gContent":"duplicated the Content bucket header above it (born tabbed, H.1)","SocialLogosBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.1)","SocialLogosBlock._gLayout":"duplicated the Layout bucket header above it (born tabbed, H.1)","SearchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CartBlock._gStyle":"duplicated the Style bucket header above it (born tabbed, H.2)","CountrySwitchBlock._gStyle":"duplicated the Style bucket header above it (born tabbed with its Show as, 2026-10-17)","Split._gContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gVehicleContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gWheelContent":"duplicated the Content bucket header above it (2026-09-04)","Gallery._gOthersContent":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gHeadCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gLeftCopy":"duplicated the Content bucket header above it (2026-09-04)","Subscribe._gRightCopy":"duplicated the Content bucket header above it (2026-09-04)","CollectionCard._gContent":"duplicated the Content bucket header above it (A Card Sets Its Own Corners)","HeroSlide._gContent":"duplicated the Content bucket header above it (Hero Slide Tabs And Theme)","KeyFeatures._gContent":"duplicated the Content bucket header above it (66049)","KeyFeatures._gStyle":"duplicated the Style bucket header above it (66049)","ParagraphsA._gContent":"duplicated the Content bucket header above it (66049)","ParagraphsA._gStyle":"duplicated the Style bucket header above it (66049)","Chart._gContent":"duplicated the Content bucket header above it (66049)","Chart._gStyle":"duplicated the Style bucket header above it (66049)","Logos._gContent":"duplicated the Content bucket header above it (66049)","Logos._gStyle":"duplicated the Style bucket header above it (66049)","Mockup._gContent":"duplicated the Content bucket header above it (66049)","Mockup._gStyle":"duplicated the Style bucket header above it (66049)","Stats._gContent":"duplicated the Content bucket header above it (66049)","Stats._gStyle":"duplicated the Style bucket header above it (66049)","StatsParagraph._gContent":"duplicated the Content bucket header above it (66049)","StatsParagraph._gStyle":"duplicated the Style bucket header above it (66049)","Testimonials._gContent":"duplicated the Content bucket header above it (66049)","Testimonials._gStyle":"duplicated the Style bucket header above it (66049)","AppointmentBooking._gContent":"duplicated the Content bucket header above it (66050)","BookingBox._gContent":"duplicated the Content bucket header above it ([SPLIT] Booking Form Into Three Boxes) \u2014 the same fault its own section retired in 66050, one level down","FAQ._gContent":"duplicated the Content bucket header above it (66050, family sweep)","FAQ._gLayout":"duplicated the Layout bucket header above it (66050, family sweep)","Form._gContent":"duplicated the Content bucket header above it (66050)","ReviewForm._gContent":"duplicated the Content bucket header above it (66050)","SubmitBuild._gContent":"duplicated the Content bucket header above it (66050)","SubmitBox._gContent":"duplicated the Content bucket header above it ([SPLIT] SubmitBuild Keeps Its Two Columns) \u2014 the same fault its own section retired in 66050, one level down","CheckoutCTA._gContent":"duplicated the Content bucket header above it (66051)","CheckoutCTA._gLayout":"duplicated the Layout bucket header above it (66051)","DeliveryOptions._gContent":"duplicated the Content bucket header above it (66051)","DeliveryOptions._gLayout":"duplicated the Layout bucket header above it (66051)","OrderSummary._gContent":"duplicated the Content bucket header above it (66051)","OrderSummary._gLayout":"duplicated the Layout bucket header above it (66051)","PaymentBadges._gContent":"duplicated the Content bucket header above it (66051)","PaymentBadges._gLayout":"duplicated the Layout bucket header above it (66051)","Collections._gContent":"duplicated the Content bucket header above it (66052)","Collections._gLayout":"duplicated the Layout bucket header above it (66052)","DocMasthead._gContent":"duplicated the Content bucket header above it (66053)","Events._gContent":"duplicated the Content bucket header above it (66054)","Events._gLayout":"duplicated the Layout bucket header above it (66054)","FeaturedCover._gContent":"duplicated the Content bucket header above it (66054)","Series._gStyle":"duplicated the Style bucket header above it (66054)","Flex._gContent":"duplicated the Content bucket header above it (66055)","Flex._gLayout":"duplicated the Layout bucket header above it (66055)","SectionHeader._gContent":"duplicated the Content bucket header above it (66055)","Breadcrumb._gContent":"duplicated the Content bucket header above it (66056)","CategoryBar._gStyle":"duplicated the Style bucket header above it (66056)","Hero._gContent":"duplicated the Content bucket header above it (66056)","Hero._gStyle":"duplicated the Style bucket header above it (66056)","HeroSingle._gStyle":"duplicated the Style bucket header above it (66056)","IntroBleed._gContent":"duplicated the Content bucket header above it (66056)","IntroBleed._gLayout":"duplicated the Layout bucket header above it (66056)","BundleOffer._gLayout":"duplicated the Layout bucket header above it (66059)","ProcessSteps._gContent":"duplicated the Content bucket header above it (66059)","Banner._gContent":"duplicated the Content bucket header above it (66060.1)","Banner._gLayout":"duplicated the Layout bucket header above it, and governed no controls (66060.1)","Manifesto._gContent":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gHeadCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gLeftCopy":"duplicated the Content bucket header above it (66060.1)","SubscribeBlogs._gRightCopy":"duplicated the Content bucket header above it (66060.1)","Ticker._gContent":"duplicated the Content bucket header above it (66060.1)","Ticker._gStyle":"duplicated the Style bucket header above it (66060.1)","Timeline._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gContent":"duplicated the Content bucket header above it (66060.1)","TitleWithButtons._gStyle":"duplicated the Style bucket header above it (66060.1)","Cards._gContent":"duplicated the Content bucket header above it (66218)","Cards._gStyle":"duplicated the Style bucket header above it (66218)","Prose._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gContent":"duplicated the Content bucket header above it (66218)","Reviews._gStyle":"duplicated the Style bucket header above it (66218)"},Hy={Content:["Content"],Size:["Size"],Design:["Design","Style"],Layout:["Layout"],Position:["Position"],Anchor:["Anchor"],Animation:["Animation"]},Wy={_gAnchor:"repeated the Anchor group heading above it (two tabs, 11.0.0)"};{let e={...Nn(),...Mn("full"),...Hn(),...Wn(),...Rn(),..._n(),...Dn()};for(let o of Object.keys(Wy)){let t=No(e[o]),r=t?sd[t.label]:void 0;if(!t||t.level!==2||!r||!Hy[r].includes(t.label))throw new Error(`INJECTED_RETIRED (lib/puck/field-groups.ts) lists "${o}", but no uniform builder makes a level-2 heading by that key whose label repeats its place's word. The heading was renamed, moved or removed and the row is stale \u2014 a list that quietly matches nothing is worse than no list.`)}}var wN=new Set(["_sContent","_sStyle","_sLayout","_sMedia"]),kN=new Map([[eo.Design,"Content"],[eo.Animation,"Animation"],...ld.map(e=>[Fa[e],e])]);function zy(e){let o=new Set([...Object.values(eo),Fa.Content]);for(let[t,r]of Object.entries(e))if(!o.has(t)&&No(r)?.level===1)return 1;return 2}function TN(e){let o=`${e}.`;return Object.keys(vN).filter(t=>t.startsWith(o)).map(t=>t.slice(o.length))}function FN(e,o){let t=_y(e),r=Be(o);return t?gN(t.tier,r):r}function EN(e,o){let t=No(o);return t?e==="Content"||e==="Animation"?Mx(o,t.label):Hx(o):o}function By(e){return e==="Design"?ld:["Animation"]}function DQ(e,o){let t=[],r=new Set(TN(o)),a=new Set,n=!1,s=null;for(let[x,h]of Object.entries(e)){let b=No(h);if(wN.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 S=kN.get(x);if(S!==void 0){if(b?.level!==1)throw new Error(`${o}.${x}: that key is reserved for the ${S} heading of the settings panel, but this field is ${b?`a level-${b.level} "${b.label}" header`:"not a header"}, so it cannot serve as one. Rename the section's own field.`);(x===eo.Design||x===eo.Animation)&&(n=!0),t.push(s={place:S,entries:[],adopted:!0});continue}if(!b){s||t.push(s={place:"Content",entries:[]}),s.entries.push([x,h]);continue}if(r.has(x)||x in Wy){let F=nd(o,x,b.label);if(b.level!==2||!F||!Hy[F].includes(b.label))throw new Error(`${o}.${x}: ${r.has(x)?"RETIRED":"INJECTED_RETIRED"} (lib/puck/field-groups.ts) lists this sub-heading as one whose name repeats the place it sits in, but it is a level-${b.level} "${b.label}" header in the ${F??"(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:F,entries:[]});continue}let w=nd(o,x,b.label);if(!w)throw new Error(`${o}.${x}: the inspector group "${b.label}" is not classified in LABEL_GROUP (lib/puck/field-groups.ts), so there is no way to say which of ${[...ld,"Animation"].join(" / ")} its controls belong under. Classify it \u2014 an unclassified group silently lands wherever it was declared, which is the whole bug.`);t.push(s={place:w,entries:[[x,b.level===2?h:FN(h,b.label)]]})}let i=new Set(Object.entries(e).filter(([,x])=>No(x)).map(([x])=>x));for(let[x,h]of[["BLOCK_KEY_GROUP",Ny],["KEY_GROUP",Dy]]){let b=Object.keys(h).filter(S=>S.startsWith(`${o}.`)).filter(S=>!i.has(S.slice(o.length+1)));if(b.length)throw new Error(`${o}: ${x} (lib/puck/field-groups.ts) lists ${JSON.stringify(b)}, but no fold header by that key is in this section's panel. Either the heading was renamed or removed and the row is stale, or the row names the wrong key \u2014 an override that quietly matches nothing is worse than no override.`)}let f=n?[]:[...r].filter(x=>!a.has(x));if(f.length)throw new Error(`${o}: RETIRED (lib/puck/field-groups.ts) lists ${JSON.stringify(f)}, but this section has no such fold header${f.length>1?"s":""}. Either the heading was renamed or removed and the row is stale, or the row names the wrong section \u2014 a list that quietly matches nothing is worse than no list.`);let u=new Set(t.filter(x=>x.entries.length>0).map(x=>x.place)),p=Ea.filter(x=>By(x).some(h=>u.has(h))),m={};for(let x of p){m[eo[x]]=On(x,x===p[0]?p:null);for(let h of By(x)){if(!u.has(h))continue;let b=t.filter(w=>w.place===h),S=b.findIndex(w=>w.adopted);S>0&&b.unshift(...b.splice(S,1)),x==="Design"&&(m[Fa[h]]=Ji(h));for(let w of b)for(let[F,v]of w.entries)m[F]=EN(h,v)}}return m}function NQ(e){return eo.Design in e?e:{[eo.Design]:On("Design",null),[Fa.Content]:Ji("Content"),...e}}function MQ(e){return Ea.some(o=>eo[o]in e)}function HQ(e){let o=Ea.filter(r=>eo[r]in e);if(o.length===0)return e;let t={...e};for(let r of o)t[eo[r]]=On(r,r===o[0]?o:null);return t}import{usePreviewDevice as BN}from"efficient-easel/draw/client";var id=" text",Gy="Text";function fd(e){let o=e.rows.filter(t=>t.shown);return o.length===0||o.length===1&&o[0].labelled}function Uy(e){return e.filter(fd).map(o=>o.key)}function $y(e,o){let t=null;for(let r of o){let a=e[r];!a||a.marker!==!0||typeof a.fold!="string"||(t??={...e},t[r]={...a,fold:!1})}return t??e}function qy(e,o){if(e.size!==o.size)return!1;for(let t of e)if(!o.has(t))return!1;return!0}var dd=new Map,rs=new Set;function _N(e,o){let t=new Map;for(let a of e.querySelectorAll(".es-insp-row[data-field]"))t.set(a.getAttribute("data-field")??"",a);let r=[];for(let[a,n]of o)r.push({key:a,rows:n.map(s=>{let i=t.get(s),f=!!i&&[...i.children].some(p=>!p.hidden),u=i?.querySelector(".es-field-label, .es-list-label")?.textContent?.trim();return{shown:f,labelled:f&&!!u}})});return r}var DN=Object.fromEntries(Ea.map(e=>{let o=_x[e];return[e,ud(o,{},e)]}));function Pa({entries:e,entryCount:o=0,part:t=null}){let{id:r,fields:a,values:n,readOnly:s,onChange:i}=RN(),f=BN(),{appState:u,config:p}=ON(H=>H),m=Zh(f,p,u.data.content??[],u.ui.itemSelector),x=tg(a,t),h=Xh(x,n,m),[b,S]=cd(()=>new Set(rs)),[w,F]=cd(()=>new Set),v=LN(null),g=jy(()=>{let H=new Map;for(let A of Ky(h).rows){if(!A.fold)continue;let ae=H.get(A.fold.key)??[];ae.push(A.name),H.set(A.fold.key,ae)}return H},[h]);PN(()=>{let H=v.current?.parentElement;if(!H)return;let A=new Set(Uy(_N(H,g)));F(ae=>qy(ae,A)?ae:A)});let y=jy(()=>$y(h,w),[h,w]),P={key:id,rows:Array.from({length:o},()=>({shown:!0,labelled:!0}))},k=fd(P)?void 0:{key:id,title:Gy},[O,E]=cd(()=>dd.get(r)),B=dd.get(r),$=Ky(h).buckets,K=B&&$.includes(B)?B:O&&$.includes(O)?O:$[0],N=K===void 0||Dx($,K)!==!0;return ud(AN,{fields:y,values:n,onChange:i,readOnly:s,showWhenContext:{...m,node:n},tab:K,onTab:H=>{dd.set(r,H),E(H)},tabIcons:DN,idPrefix:r,ariaLabel:l("Section settings"),lead:N?e:null,leadFold:k,closedFolds:b,onFold:(H,A)=>{A?rs.delete(H):rs.add(H),S(new Set(rs))},children:ud("span",{ref:v,hidden:!0})})}import{jsx as pd,jsxs as NN}from"react/jsx-runtime";import{InspectorUpLevel as Vy}from"efficient-easel/chrome";function Yy({nodeId:e,part:o,sectionName:t,onUpToSection:r}){let{select:a}=wl();return NN("div",{children:[o!=="media"?pd(Vy,{inline:!0,name:l(sr.media),onSelect:()=>a(ca(e,"media"))}):pd(Vy,{inline:!0,name:l(t),onSelect:r}),pd(Pa,{part:o})]})}import{SettingsSwitch as VN}from"efficient-easel/panel";var eS=qN,hd={kind:"header"},gd={kind:"website"},oS={kind:"chat"},tS={kind:"social"},La="Part";function YN(e){return l("Part of {name}",{name:l(e)})}function XN(e,o,t){let r=e.describeNode(o);return{name:t,kindLabel:r?YN(r.label):l(La)}}function ZN(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 rS({what:e}){let o=ZN(e);return rt("div",{className:"sf-note",children:[Z("p",{children:Z("strong",{children:o.title})}),rt("p",{children:[l("A template is a blueprint \u2014 it has no website of its own, so there is nothing here to change.")," ",o.own]})]})}function Id(e){let o=fa[e];return{name:sr[e],kindLabel:La,icon:o,head:(t,r)=>{if(t.kind!==o)return null;let a=r.describeNode(t.nodeId);if(!a)return null;let n=Jy({name:l(Pl(e,a.props)),tier:"part",of:l(a.label)},{partOf:({name:s})=>l("Part of {name}",{name:s})});return{name:n.name,kindLabel:n.kind}},render:(t,r)=>t.kind===o?Z(Yy,{nodeId:t.nodeId,part:e,sectionName:r.describeNode(t.nodeId)?.label??"Hero",onUpToSection:()=>r.onSelectNode(t.nodeId)}):null}}var QN={header:{name:"Header",kindLabel:"Site settings",icon:"header",render:(e,o)=>{let t=o.hostPanels?.header;return t?Z(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)=>Z(il,{themeFromDocument:!o.capabilities.hasSiteTheme,tokenRef:o.tokenRef,siteId:o.siteId,onNotify:o.onNotify})},chat:{name:"Live chat",kindLabel:"Site settings",icon:"chat",render:()=>Z(cg,{})},social:{name:"Social links",kindLabel:"Site settings",icon:"social",render:()=>Z(Ig,{unavailable:Z(rS,{what:"Social link"})})},ticker:{name:sa,kindLabel:La,icon:"ticker",head:(e,o)=>e.kind==="ticker"?XN(o,e.heroId,l(sa)):null,render:e=>Z(_b,{heroId:e.kind==="ticker"?e.heroId:""})},heroMedia:Id("media"),heroImage:Id("image"),heroImage2:Id("image2"),part:{name:La,kindLabel:La,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?xr(t.fields[r],a):t.fields[r],s=LI(l(Sf(rl(n??{},r))),a),i=Jy({name:s,tier:"part",of:l(t.label)},{partOf:({name:f})=>l("Part of {name}",{name:f})});return{name:i.name,kindLabel:i.kind}},render:(e,o)=>e.kind==="part"?Z(iy,{nodeId:e.nodeId,propKey:e.propKey,onBack:()=>o.onSelectNode(e.nodeId),onEditStyle:o.onOpenSiteStyles}):null}},JN=new Set(["header","website","chat"]);function eM(e,o){if(e==="puck")return null;let t=QN[e];return JN.has(e)&&!o.hasSiteSettings?{...t,kindLabel:"Not part of a template",render:()=>Z(rS,{what:t.name})}:t}function aS({mode:e,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r,hideNodeActions:a=!1,onNotify:n,onHidePanel:s}){let{capabilities:i,tokenRef:f,notifyParent:u,currentSlug:p,siteId:m,runAuthed:x,readOnly:h,navigate:b}=UN(),S=ml(),{rows:w,reload:F}=na(),v=w?.find(ee=>ee.slug===p)??null,[g,y]=Xy(null),{websiteName:P}=q(),k=$N({readOnly:h}),{select:O}=jN(),{selectedItem:E,getItemById:B,getSelectorForId:$,config:K,appState:N}=MN(ee=>ee),H=zN(K,E?{type:E.type,props:E.props}:null),A=E?MI(H??K.components[E.type]?.fields,E.props):[],ae=ee=>K.components[ee]?.label??ee,le=E?$(E.props.id):void 0,pe=eM(e.kind,i),oo=GN(),Ve={capabilities:i,tokenRef:f,hostPanels:oo.chrome?.panels,describeNode:ee=>{let ne=B(ee);if(!ne)return null;let Ze=K.components[ne.type];return{type:ne.type,label:Ze?.label??ne.type,fields:Ze?.fields??{},props:ne.props??{}}},siteId:m,websiteName:P??null,notifyParent:u,onNotify:n,onOpenWebsiteSettings:o,onOpenSiteStyles:t,onSelectNode:r},ke=pe?.head?.(e,Ve)??null,to=ke?.name??(pe?l(pe.name):E?l(ae(E.type)):l("Page settings")),De=ke?.kindLabel??(pe?l(pe.kindLabel):E?le&&le.zone!==Qy?l("Block"):l("Section"):l("Page")),Le=pe?pe.icon:E?E.type:"page",ge=pe?null:E?K.components[E.type]?.fields??null:K.root?.fields??null,ye=ge?zy(ge):2,Ye=e.kind==="puck"&&E?Ca(E.type):null,Ne=!!E&&!!le&&le.zone===Qy&&E.type!==me&&E.type!==KN,Xe=Ql(N?.data,E),Oe=()=>{Xe||le&&k.duplicateComponent(le.zone,le.index)},L=()=>{le&&(k.removeComponent(le.zone,le.index),k.select(null))},J=E?K.components[E.type]?.defaultProps?.previewHover:void 0,U=e.kind==="puck"&&!!E&&!!le&&J!==void 0,Ie=U&&E.props.previewHover===!0,Se=()=>{!E||!le||k.replaceComponent(le.zone,le.index,{...E,props:{...E.props,previewHover:!Ie}})},[We,Ue]=Xy(qf);return rt("div",{className:`es-sidepanel es-sidepanel--right sf-panel sf-panel--right${We||!(!pe&&E)?"":" sf-hints-folded"}`,children:[Z(HN,{icon:Z(Lt,{type:Le,size:15}),name:to,kind:De,actions:!a&&e.kind==="puck"&&E&&E.type!==me?rt(as,{children:[Z(md,{label:l("Duplicate section"),title:Xe??void 0,disabled:Xe!==null,onClick:Oe,children:Z(Zy,{size:15})}),Ne&&i.hasSiteSettings&&Z(fy,{node:E,currentSlug:p,siteId:m??void 0,tokenRef:f,runAuthed:x,onNotify:n}),Z(md,{label:l("Remove section"),danger:!0,onClick:L,children:Z(WN,{size:15})}),s?Z(xd,{side:"right",onHide:s,divider:!0}):null]}):!pe&&!E&&e.kind==="puck"&&S&&v&&ul(v)?rt(as,{children:[Z(md,{label:l("Duplicate page"),onClick:()=>y(v),children:Z(Zy,{size:15})}),s?Z(xd,{side:"right",onHide:s,divider:!0}):null]}):s?Z(xd,{side:"right",onHide:s}):void 0}),S&&Z(xl,{source:g,taken:new Set((w??[]).map(ee=>ee.slug)),duplicate:S,onClose:()=>y(null),onDuplicated:ee=>{y(null),F(),b({kind:"page",slug:ee.slug,siteId:m??void 0})}}),U&&rt("div",{className:"sf-preview-pin",children:[rt("div",{className:"sf-preview-pin-text",children:[Z("span",{className:"sf-preview-pin-label",children:l("Preview hover state")}),Z("span",{className:"sf-preview-pin-hint",children:l("not shown live")})]}),Z(VN,{checked:Ie,onChange:Se,ariaLabel:l("Preview hover state")})]}),Z(dx,{tier:ye,children:Z("div",{className:"sf-insp-body es-insp-body sf-scroll",children:pe?pe.render(e,Ve):E?rt(as,{children:[E.type===me&&i.hasSiteSettings&&Z(Fy,{}),Z(Bp,{children:Z(Pa,{entries:Z(cy,{parts:A,heading:!1,onOpen:ee=>O(ol(E.props.id,ee))}),entryCount:od(A).length})}),Ye&&Z(Vl,{source:Ye,slug:Sa(E?.props),menuId:$l(E?.props)}),Z(jf,{shown:We,onChange:Ue})]}):Z(as,{children:Z(Pa,{})})})})]})}import{jsx as c,jsxs as C,Fragment as fS}from"react/jsx-runtime";var Ee={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)"},bd="repeating-linear-gradient(135deg,var(--sf-thumb-hatch1) 0,var(--sf-thumb-hatch1) 5px,var(--sf-thumb-hatch2) 5px,var(--sf-thumb-hatch2) 10px)";function R({w:e,h:o,tone:t="dark",r=2,style:a}){return c("div",{style:{width:e,height:o,borderRadius:r,background:Ee[t],flex:"none",...a}})}var oM={Hero:"hero",HeroSingle:"herosingle",IntroBleed:"intro",Collections:"collections",AlloyWheelsListing:"wheelslisting",CatalogFilterBar:"catalogfilterbar",ProductGrid:"productgrid",FitmentFinder:"fitmentfinder",Gallery:"gallery",GalleryB:"gallerygrid",SpecStrip:"specstrip",ProductHero:"producthero",SpecTable:"spectable",ProcessSteps:"processsteps",DetailRows:"detailrows",FitmentTable:"fitmenttable",CompatibleTyres:"compatibletyres",TyreSizes:"tyresizes",TyreFitment:"tyrefitment",EuTyreLabel:"eutyrelabel",RelatedProducts:"productgrid",BundleOffer:"bundleoffer",OrderSummary:"ordersummary",DeliveryOptions:"deliveryoptions",PaymentBadges:"paymentbadges",CheckoutCTA:"checkoutcta",Manifesto:"manifesto",ParagraphsA:"paragraphs",Prose:"prose",StatsParagraph:"statsparagraph",Chart:"chart",Mockup:"mockup",Footprint:"footprint",Timeline:"timeline",TimelineTrack:"timelinetrack",TitleWithButtons:"titlewithbuttons",Split:"split",Cards:"cards",FAQ:"faq",Testimonials:"testimonials",Masthead:"masthead",Breadcrumb:"breadcrumb",CategoryBar:"categorybar",FeaturedCover:"featuredcover",LongRead:"longread",Series:"series",Subscribe:"subscribe",SubscribeBlogs:"subscribe",Events:"events",DocMasthead:"docmasthead",DocTabs:"doctabs",DocBody:"docbody",DocMetaCards:"docmetacards",Banner:"banner",Stats:"stats",KeyFeatures:"keyfeatures",Logos:"logos",Ticker:"ticker",Countdown:"countdown",Reviews:"reviews",SubmitBuild:"submitbuild",ReviewForm:"reviewform",Form:"form",AppointmentBooking:"appointmentbooking",ContactRouting:"contact",ContactLocations:"contactlocations",Header:"header",Footer:"footer",SectionHeader:"sectionheader",Grid:"grid",Flex:"blanksection",Spacer:"spacer",Divider:"divider",CustomHTML:"customhtml",Heading:"heading",Text:"text",ImageBlock:"image",ButtonBlock:"button",MenuBlock:"menu",EmailFormBlock:"emailform",SocialLogosBlock:"sociallogos",LegalLineBlock:"legalline",SearchBlock:"search",CartBlock:"cart",CountrySwitchBlock:"countryswitch"},_={position:"absolute",inset:0},d={ink:"var(--sf-thumb-ink)",ink2:"var(--sf-thumb-ink-2)",inkSoft:"var(--sf-thumb-ink-soft)",inkSoft2:"var(--sf-thumb-ink-soft-2)",paper:"var(--sf-thumb-paper)",paper2:"var(--sf-thumb-paper-2)",warm:"var(--sf-thumb-warm)",rust:"var(--sf-thumb-rust)",onInk:"var(--sf-thumb-on-ink)",text:"var(--sf-thumb-scene-text)",muted:"var(--sf-thumb-scene-muted)",rule:"var(--sf-thumb-scene-rule)",mark1:"var(--sf-thumb-mark-1)",mark2:"var(--sf-thumb-mark-2)",card:"var(--sf-thumb-card)",scrim:"var(--sf-thumb-scrim)"},xe=(e,o,t=160)=>({background:`linear-gradient(${t}deg,${e},${o})`});function Go({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 C("span",{style:{position:"absolute",display:"block",width:e,height:e,...o},children:[c("span",{style:r("8% 26% 30% 6%",d.mark1)}),c("span",{style:r("26% 6% 8% 30%",d.mark2,"multiply")})]})}function ls({children:e}){return c("span",{style:{fontSize:"4.64cqw",fontWeight:700,letterSpacing:"0.06em",textTransform:"uppercase",color:d.muted},children:e})}function nS({over:e,overTone:o,head:t,headSize:r=11.5,cta:a,ctaBg:n,ctaFg:s,tone:i}){return C(fS,{children:[e&&c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:o},children:e}),c("span",{style:{fontSize:r,lineHeight:1.15,fontWeight:700,maxWidth:"78%",color:i},children:t}),a&&c("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,marginTop:2,background:n,color:s},children:a})]})}function yd({name:e,price:o}){return C("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[c("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",...xe(d.paper,d.paper2,150)},children:c(Go,{size:34,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),c("span",{style:{fontSize:"3.65cqw",fontWeight:600,color:d.text},children:e}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:o})]})}function zo({k:e,v:o,ok:t}){return C("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,padding:"3.5px 2px",borderBottom:`1px solid ${d.rule}`,fontSize:"3.98cqw",color:d.muted},children:[c("span",{children:e}),C("span",{style:{display:"flex",gap:6,alignItems:"center"},children:[c("b",{style:{color:d.text,fontWeight:700},children:o}),t&&c("span",{style:{color:d.rust,fontWeight:700},children:"\u2713"})]})]})}function ce({title:e,children:o}){return C("div",{style:{..._,background:d.card,padding:"9px 10px",display:"flex",flexDirection:"column",gap:6},children:[c(ls,{children:e}),o]})}function lS({size:e=14}){return c("span",{style:{width:e,height:e,borderRadius:"50%",flex:"none",display:"block",background:`linear-gradient(150deg,${d.mark1},${d.mark2})`}})}function Sd({filled:e=5,size:o=6}){return C("span",{style:{fontSize:o,letterSpacing:"0.06em",color:d.rust,lineHeight:1},children:["\u2605".repeat(e),c("span",{style:{color:d.mark1},children:"\u2605".repeat(5-e)})]})}function Oa({n:e,label:o,tone:t=d.text}){return C("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[c("b",{style:{fontSize:"8.16cqw",lineHeight:1,color:t},children:e}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",opacity:.62,color:t},children:o})]})}function _e({children:e,w:o}){return c("span",{style:{fontSize:"3.98cqw",lineHeight:1.45,color:d.muted,width:o,display:"block"},children:e})}function ns({label:e,w:o="100%",filled:t}){return C("div",{style:{width:o,display:"flex",flexDirection:"column",gap:2},children:[c("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:e}),c("span",{style:{height:9,borderRadius:3,border:`1px solid ${d.rule}`,background:t?d.paper:d.card}})]})}function sS({children:e}){return c("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:d.text,color:d.onInk},children:e})}var tM={wheelslisting:c(ce,{title:"All wheels",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Ridge 19","20\xD79 +12","$365"],["Ridge 29","18\xD79 +20","$410"],["Ridge 39","17\xD78 \u221210","$455"]].map(([e,o,t])=>C("div",{style:{display:"flex",alignItems:"center",gap:6},children:[c("span",{style:{width:20,height:15,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",...xe(d.paper,d.paper2,150)},children:c(Go,{size:12,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),c("b",{style:{flex:1,fontSize:"4.31cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:o}),c("b",{style:{fontSize:"4.31cqw",color:d.text,width:26,textAlign:"right"},children:t})]},e))})}),catalogfilterbar:C("div",{style:{..._,background:d.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[C("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[["20 inch","6\xD7139.7","Black"].map(e=>C("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"4px 7px",borderRadius:99,background:d.text,color:d.onInk,display:"flex",gap:4,alignItems:"center"},children:[e,c("span",{style:{opacity:.6},children:"\u2715"})]},e)),c("span",{style:{fontSize:"3.65cqw",color:d.rust,fontWeight:700},children:"Clear"})]}),C("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"128 results"}),c("span",{style:{fontSize:"3.65cqw",color:d.muted,border:`1px solid ${d.rule}`,borderRadius:3,padding:"3px 6px"},children:"Sort: Price \u25BE"})]})]}),fitmentfinder:C("div",{style:{..._,padding:"10px 12px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center",...xe(d.ink,d.inkSoft)},children:[c("span",{style:{fontSize:"5.31cqw",fontWeight:700,color:d.onInk},children:"Will it fit your rig?"}),C("div",{style:{display:"flex",gap:4},children:[["2021","Toyota","Hilux"].map(e=>C("span",{style:{flex:1,fontSize:"3.65cqw",color:d.text,background:d.card,borderRadius:3,padding:"5px 6px",display:"flex",justifyContent:"space-between"},children:[e," ",c("span",{style:{color:d.muted},children:"\u25BE"})]},e)),c("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.08em",background:d.warm,color:d.ink,borderRadius:3,padding:"5px 7px"},children:"GO"})]})]}),compatibletyres:c(ce,{title:"Tyres that suit",children:c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Ridge Grappler","$489"],["Trail Grappler","$525"],["Terra Grappler","$438"]].map(([e,o])=>C("div",{style:{display:"flex",flexDirection:"column",gap:2,minWidth:0},children:[c("div",{style:{flex:1,minHeight:0,borderRadius:3,position:"relative",overflow:"hidden",background:d.ink},children:c("span",{style:{position:"absolute",left:"50%",top:"50%",transform:"translate(-50%,-50%)",width:26,height:26,borderRadius:"50%",border:`5px solid ${d.mark2}`,boxSizing:"border-box"}})}),c("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:d.text,overflow:"hidden",whiteSpace:"nowrap",textOverflow:"ellipsis"},children:e}),c("span",{style:{fontSize:"3.32cqw",color:d.muted},children:o})]},e))})}),tyresizes:c(ce,{title:"Available sizes",children:c("div",{style:{flex:1,display:"flex",flexWrap:"wrap",gap:4,alignContent:"center"},children:["265/65R17","285/70R17","265/60R18","275/55R20"].map((e,o)=>c("span",{style:{fontSize:"3.65cqw",fontWeight:600,padding:"5px 7px",borderRadius:3,border:`1px solid ${o===0?d.rust:d.rule}`,color:o===0?d.rust:d.text,background:o===0?d.paper:d.card},children:e},e))})}),tyrefitment:C(ce,{title:"Will it fit your car?",children:[c("div",{style:{display:"flex",gap:3},children:["Make","Model","Year","Trim"].map(e=>C("span",{style:{flex:1,minWidth:0,fontSize:"3.32cqw",color:d.muted,background:d.paper,border:`1px solid ${d.rule}`,borderRadius:3,padding:"4px 5px",display:"flex",justifyContent:"space-between",gap:2,overflow:"hidden",whiteSpace:"nowrap"},children:[e," ",c("span",{style:{color:d.muted},children:"\u25BE"})]},e))}),c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2,justifyContent:"center",minHeight:0},children:[["265/65R17","Fits",!0],["285/70R17","Not your size",!1]].map(([e,o,t])=>C("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"baseline",gap:6,borderTop:`1px solid ${d.rule}`,paddingTop:3},children:[c("span",{style:{fontSize:"3.32cqw",fontWeight:600,color:d.text},children:e}),c("span",{style:{fontSize:"3.32cqw",fontWeight:t?700:400,letterSpacing:"0.06em",color:t?d.warm:d.muted},children:o})]},e))})]}),eutyrelabel:C("div",{style:{..._,background:d.card,padding:"9px 11px",display:"flex",gap:8,alignItems:"center"},children:[c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1.5},children:[["A","42%"],["B","56%"],["C","70%"],["D","84%"]].map(([e,o],t)=>C("div",{style:{display:"flex",alignItems:"center",gap:3},children:[c("span",{style:{width:o,height:6,borderRadius:"0 2px 2px 0",background:t===1?d.rust:d.mark1}}),c("span",{style:{fontSize:"3.32cqw",fontWeight:700,color:t===1?d.rust:d.muted},children:e})]},e))}),C("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:3,alignItems:"center"},children:[c("b",{style:{fontSize:"6.63cqw",lineHeight:1,color:d.text},children:"72"}),c("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",color:d.muted},children:"dB"})]})]}),bundleoffer:C("div",{style:{..._,background:d.paper,padding:"9px 11px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[c(ls,{children:"Buy it with"}),C("div",{style:{display:"flex",alignItems:"center",gap:5},children:[[0,1].map(e=>c("span",{style:{width:26,height:22,borderRadius:3,flex:"none",position:"relative",overflow:"hidden",background:d.card},children:c(Go,{size:17,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})},e)),c("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:d.muted},children:"+"}),C("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:1},children:[c("span",{style:{fontSize:"3.65cqw",color:d.muted,textDecoration:"line-through"},children:"$1,024"}),c("b",{style:{fontSize:"6.02cqw",color:d.rust,lineHeight:1},children:"$899"})]})]})]}),checkoutcta:C("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,...xe(d.ink,d.ink2)},children:[C("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",color:d.warm,fontWeight:700},children:"READY TO ORDER"}),c("b",{style:{fontSize:"6.63cqw",color:d.onInk,lineHeight:1},children:"$1,956"}),c("span",{style:{fontSize:"3.65cqw",color:d.onInk,opacity:.65},children:"4 items \xB7 fitted free"})]}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"6px 10px",borderRadius:2,background:d.warm,color:d.ink,flex:"none"},children:"CHECKOUT"})]}),contact:c(ce,{title:"Who do you need?",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Fitment help","the workshop"],["Order status","the front desk"],["Trade accounts","sales"]].map(([e,o])=>C("div",{style:{display:"flex",alignItems:"center",gap:5},children:[c("b",{style:{flex:1,fontSize:"4.31cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:o}),c("span",{style:{fontSize:"4.64cqw",color:d.rust,lineHeight:1},children:"\u203A"})]},e))})}),contactlocations:c(ce,{title:"Find us",children:c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["Brisbane","7 Kerry Rd","Mon\u2013Sat"],["Townsville","12 Enterprise","Mon\u2013Fri"]].map(([e,o,t])=>C("div",{style:{border:`1px solid ${d.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[c("b",{style:{fontSize:"4.31cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.32cqw",color:d.muted},children:o}),c("span",{style:{fontSize:"3.32cqw",color:d.rust,fontWeight:700},children:t})]},e))})}),form:c(ce,{title:"Send us a message",children:C("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[C("div",{style:{display:"flex",gap:5},children:[c(ns,{label:"Name"}),c(ns,{label:"Email"})]}),c(ns,{label:"Message",filled:!0}),c(sS,{children:"SEND"})]})}),appointmentbooking:c(ce,{title:"Book a fitting",children:C("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[c("div",{style:{display:"flex",gap:3},children:["Mon","Tue","Wed","Thu"].map((e,o)=>c("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",fontWeight:o===2?700:500,padding:"4px 0",borderRadius:3,background:o===2?d.text:d.paper,color:o===2?d.onInk:d.muted},children:e},e))}),c("div",{style:{display:"flex",gap:3},children:["8:00","10:30","13:00","15:30"].map((e,o)=>c("span",{style:{flex:1,textAlign:"center",fontSize:"3.32cqw",padding:"4px 0",borderRadius:3,border:`1px solid ${o===1?d.rust:d.rule}`,color:o===1?d.rust:d.muted,background:o===3?d.paper:d.card,textDecoration:o===3?"line-through":"none"},children:e},e))})]})}),reviewform:c(ce,{title:"Leave a review",children:C("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[c(Sd,{filled:4,size:14}),c(ns,{label:"Your review",filled:!0}),c(sS,{children:"POST"})]})}),submitbuild:c(ce,{title:"Show us your build",children:C("div",{style:{flex:1,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:3,border:`1px dashed ${d.mark1}`,borderRadius:5,background:d.paper},children:[c("span",{style:{fontSize:"6.63cqw",lineHeight:1,color:d.rust,fontWeight:300},children:"+"}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"Drop a photo of your rig"})]})}),masthead:C("div",{style:{..._,background:d.paper,display:"flex",flexDirection:"column",justifyContent:"center",padding:"0 13px",gap:5},children:[c("span",{style:{height:1.5,background:d.text}}),c("span",{style:{fontSize:"7.65cqw",fontWeight:800,letterSpacing:"0.02em",color:d.text,lineHeight:1},children:"THE TRACK"}),C("div",{style:{display:"flex",justifyContent:"space-between",fontSize:"3.65cqw",letterSpacing:"0.1em",textTransform:"uppercase",color:d.muted},children:[c("span",{children:"Issue 14"}),c("span",{children:"Spring 2026"})]}),c("span",{style:{height:1,background:d.rule}})]}),featuredcover:C("div",{style:{..._,overflow:"hidden",...xe(d.ink,d.inkSoft2)},children:[c(Go,{size:92,style:{right:-18,top:-14}}),c("div",{style:{position:"absolute",inset:0,background:`linear-gradient(0deg,${d.scrim},transparent 62%)`}}),C("div",{style:{position:"absolute",left:12,right:12,bottom:11,display:"flex",flexDirection:"column",gap:3},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.warm},children:"FEATURE"}),c("span",{style:{fontSize:"6.16cqw",lineHeight:1.15,fontWeight:700,color:d.onInk},children:"Four days on the Madigan Line"})]})]}),longread:C("div",{style:{..._,background:d.card,padding:"10px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.14em",fontWeight:700,color:d.rust},children:"12 MIN READ"}),c("span",{style:{fontSize:"6.02cqw",lineHeight:1.15,fontWeight:700,color:d.text},children:"What breaks first, and why"}),c(_e,{children:"Every failure starts in the same place \u2014 not the rim, not"}),c(_e,{w:"62%",children:"the tyre, but the bolt nobody re-torqued."})]}),series:c(ce,{title:"Recurring columns",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Shed Notes","Monthly"],["Track Tested","Fortnightly"],["Reader Rigs","Weekly"]].map(([e,o])=>C("div",{style:{display:"flex",alignItems:"center",gap:6},children:[c("span",{style:{width:3,height:12,borderRadius:2,background:d.rust,flex:"none"}}),c("b",{style:{flex:1,fontSize:"4.64cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:o})]},e))})}),events:c(ce,{title:"Latest posts",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[[d.inkSoft,d.inkSoft2,"Madigan Line, four days"],[d.rust,d.warm,"Why offset beats width"]].map(([e,o,t])=>C("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[c("span",{style:{width:24,height:18,borderRadius:3,flex:"none",...xe(e,o,150)}}),C("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[c("b",{style:{fontSize:"4.31cqw",color:d.text},children:t}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"4 Sep \xB7 Shed Notes"})]})]},t))})}),docmasthead:C("div",{style:{..._,background:d.card,padding:"12px 14px",display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.muted},children:"POLICY"}),c("span",{style:{fontSize:"6.49cqw",fontWeight:700,color:d.text,lineHeight:1.1},children:"Returns & refunds"}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"Version 3 \xB7 Updated 4 Sep 2026"}),c("span",{style:{height:2,width:26,background:d.rust,borderRadius:1}})]}),docbody:c("div",{style:{..._,background:d.card,padding:"9px 13px",display:"flex",flexDirection:"column",gap:3,justifyContent:"center"},children:[["1.","You may return an unfitted wheel within 30 days."],["2.","Fitted wheels are covered by the structural warranty."],["3.","Freight on a change of mind is yours."]].map(([e,o])=>C("div",{style:{display:"flex",gap:5},children:[c("b",{style:{fontSize:"3.98cqw",color:d.rust,flex:"none"},children:e}),c(_e,{children:o})]},e))}),docmetacards:c(ce,{title:"At a glance",children:c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(2,1fr)",gap:5,minHeight:0},children:[["30 days","To return"],["5 years","Structural"],["Free","Fitting"],["48 hrs","Dispatch"]].map(([e,o])=>C("div",{style:{border:`1px solid ${d.rule}`,borderRadius:4,padding:"5px 6px",display:"flex",flexDirection:"column",gap:1},children:[c("b",{style:{fontSize:"5.31cqw",color:d.text,lineHeight:1},children:e}),c("span",{style:{fontSize:"3.32cqw",letterSpacing:"0.08em",textTransform:"uppercase",color:d.muted},children:o})]},o))})}),doctabs:C("div",{style:{..._,background:d.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:0,padding:"0 11px"},children:[c("div",{style:{display:"flex",gap:0},children:["Returns","Warranty","Shipping"].map((e,o)=>c("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"5px 8px",color:o===0?d.text:d.muted,background:o===0?d.paper:"transparent",borderRadius:"4px 4px 0 0",border:`1px solid ${o===0?d.rule:"transparent"}`,borderBottom:"none"},children:e},e))}),c("span",{style:{height:1,background:d.rule}}),C("div",{style:{paddingTop:6,display:"flex",flexDirection:"column",gap:2},children:[c(_e,{children:"Unfitted wheels come back within 30 days, no questions."}),c(_e,{w:"58%",children:"Freight on a change of mind is yours."})]})]}),paragraphs:C("div",{style:{..._,background:d.card,padding:"11px 14px",display:"flex",gap:10,alignItems:"center"},children:[c("span",{style:{flex:1,fontSize:"5.86cqw",lineHeight:1.2,fontWeight:700,color:d.text},children:"The right wheel is the boring one."}),C("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[c(_e,{children:"Forged, correctly offset, rated for what you actually"}),c(_e,{children:"carry. Everything else is a photograph."})]})]}),keyfeatures:c(ce,{title:"Key features",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:["Flow-formed barrel","1250 kg per corner","Hub-centric fit"].map(e=>C("div",{style:{display:"flex",gap:6,alignItems:"center"},children:[c("span",{style:{fontSize:"4.64cqw",color:d.rust,fontWeight:700,lineHeight:1},children:"\u2713"}),c("span",{style:{fontSize:"4.31cqw",color:d.text},children:e})]},e))})}),statsparagraph:C("div",{style:{..._,background:d.paper,padding:"10px 12px",display:"flex",gap:10,alignItems:"center"},children:[C("div",{style:{flex:"none",display:"flex",flexDirection:"column",gap:5},children:[c(Oa,{n:"27k",label:"Rigs"}),c(Oa,{n:"4.9",label:"Rating"})]}),C("div",{style:{flex:1,display:"flex",flexDirection:"column"},children:[c(_e,{children:"Twelve years of fitting the same three questions, and the"}),c(_e,{children:"answer has not moved: load rating, offset, then looks."})]})]}),chart:C(ce,{title:"Load vs weight",children:[c("div",{style:{flex:1,display:"flex",alignItems:"flex-end",gap:5,paddingBottom:2},children:[38,62,84,71,96].map((e,o)=>c("span",{style:{flex:1,height:`${e}%`,borderRadius:"2px 2px 0 0",background:o===4?d.rust:d.mark1}},o))}),c("span",{style:{height:1,background:d.rule,marginTop:-4}})]}),mockup:c("div",{style:{..._,overflow:"hidden",display:"flex",alignItems:"center",justifyContent:"center",...xe(d.inkSoft,d.ink)},children:C("div",{style:{width:"72%",height:"74%",borderRadius:4,overflow:"hidden",background:d.card,boxShadow:`0 6px 14px ${d.scrim}`},children:[c("div",{style:{height:9,background:d.paper,display:"flex",alignItems:"center",gap:2,padding:"0 4px"},children:[0,1,2].map(e=>c("span",{style:{width:2.5,height:2.5,borderRadius:"50%",background:d.mark1}},e))}),C("div",{style:{padding:5,display:"flex",flexDirection:"column",gap:3},children:[c("span",{style:{height:4,width:"56%",borderRadius:1,background:d.mark2}}),c("span",{style:{height:14,borderRadius:2,...xe(d.paper,d.paper2,150)}}),c("span",{style:{height:3,width:"38%",borderRadius:1,background:d.rust}})]})]})}),manifesto:c("div",{style:{..._,overflow:"hidden",display:"flex",alignItems:"center",padding:"0 16px",...xe(d.ink,d.ink2)},children:C("span",{style:{fontSize:"6.63cqw",lineHeight:1.2,fontWeight:700,color:d.onInk},children:["We build for the ",c("span",{style:{color:d.warm},children:"last"})," ten percent of the track."]})}),timeline:c(ce,{title:"Our story",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center",gap:6,paddingLeft:4},children:[["1998","One shed, one lathe."],["2009","First forged rim."],["2024","27,000 rigs on."]].map(([e,o],t)=>C("div",{style:{display:"flex",gap:7,alignItems:"flex-start",position:"relative"},children:[t<2&&c("span",{style:{position:"absolute",left:3,top:8,bottom:-8,width:1,background:d.rule}}),c("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",marginTop:1,background:d.rust,zIndex:1}}),C("div",{style:{display:"flex",flexDirection:"column",gap:0,minWidth:0},children:[c("b",{style:{fontSize:"4.64cqw",color:d.text},children:e}),c(_e,{children:o})]})]},e))})}),timelinetrack:C("div",{style:{..._,padding:"0 12px",display:"flex",flexDirection:"column",gap:10,justifyContent:"center",...xe(d.ink,d.inkSoft)},children:[c("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:d.warm},children:"Milestones"}),C("div",{style:{position:"relative",display:"flex",justifyContent:"space-between",paddingTop:7},children:[c("span",{style:{position:"absolute",left:0,right:0,top:3,height:1,background:d.mark2,opacity:.55}}),["1998","2009","2016","2024"].map((e,o)=>C("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:3,position:"relative"},children:[c("span",{style:{position:"absolute",top:-7,width:6,height:6,borderRadius:"50%",background:o===3?d.warm:d.mark1}}),c("span",{style:{fontSize:"4.31cqw",fontWeight:700,color:o===3?d.warm:d.onInk,opacity:o===3?1:.75},children:e})]},e))]})]}),footprint:C("div",{style:{..._,overflow:"hidden",...xe(d.paper,d.paper2,150)},children:[c("span",{style:{position:"absolute",left:"8%",top:"18%",width:"62%",height:"64%",borderRadius:"48% 52% 40% 60% / 55% 45% 55% 45%",background:d.mark1,opacity:.75}}),c("span",{style:{position:"absolute",left:"52%",top:"52%",width:"34%",height:"34%",borderRadius:"58% 42% 55% 45% / 45% 58% 42% 55%",background:d.mark2,opacity:.55}}),[["26%","38%"],["44%","58%"],["62%","34%"]].map(([e,o])=>c("span",{style:{position:"absolute",left:e,top:o,width:7,height:7,borderRadius:"50% 50% 50% 0",transform:"rotate(-45deg)",background:d.rust}},e)),c("span",{style:{position:"absolute",left:11,bottom:9,fontSize:"4.64cqw",fontWeight:700,color:d.text},children:"3 fitting bays"})]}),banner:C("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"space-between",padding:"0 13px",gap:8,background:d.rust},children:[C("div",{style:{display:"flex",flexDirection:"column",gap:2},children:[c("b",{style:{fontSize:"6.02cqw",color:d.onInk},children:"End of season \xB7 20% off"}),c("span",{style:{fontSize:"3.98cqw",color:d.onInk,opacity:.8},children:"Fitted free, this month only."})]}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:d.onInk,color:d.text,flex:"none"},children:"SHOP"})]}),titlewithbuttons:C("div",{style:{..._,background:d.paper,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:7,padding:"0 14px",textAlign:"center"},children:[c("span",{style:{fontSize:"6.49cqw",lineHeight:1.15,fontWeight:700,color:d.text},children:"Not sure what fits?"}),C("div",{style:{display:"flex",gap:5},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,background:d.text,color:d.onInk},children:"FIND MY FIT"}),c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"5px 9px",borderRadius:2,border:`1px solid ${d.text}`,color:d.text},children:"CALL US"})]})]}),ticker:c("div",{style:{..._,overflow:"hidden",background:d.ink,display:"flex",alignItems:"center"},children:c("span",{style:{whiteSpace:"nowrap",fontSize:"6.29cqw",fontWeight:800,letterSpacing:"0.06em",color:d.warm,marginLeft:-14},children:"FREE FITTING \xB7 48HR DISPATCH \xB7 FREE FITTING \xB7 48HR DISPATCH"})}),countdown:C("div",{style:{..._,padding:"10px 12px",display:"flex",flexDirection:"column",alignItems:"center",gap:6,justifyContent:"center",...xe(d.ink,d.ink2)},children:[c("span",{style:{fontSize:"3.65cqw",fontWeight:700,letterSpacing:"0.16em",textTransform:"uppercase",color:d.muted},children:"Back online in"}),c("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[["23","Hours"],["59","Minutes"],["48","Seconds"]].map(([e,o],t)=>C("div",{style:{display:"flex",alignItems:"flex-start",gap:5},children:[t>0&&c("b",{style:{fontSize:"9.5cqw",lineHeight:1,color:d.warm},children:":"}),C("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:2},children:[c("b",{style:{fontSize:"11.5cqw",lineHeight:1,color:d.onInk,fontVariantNumeric:"tabular-nums"},children:e}),c("span",{style:{fontSize:"3.2cqw",letterSpacing:"0.1em",textTransform:"uppercase",opacity:.62,color:d.onInk},children:o})]})]},o))})]}),breadcrumb:c("div",{style:{..._,background:d.card,display:"flex",alignItems:"center",padding:"0 13px"},children:C("span",{style:{fontSize:"4.64cqw",color:d.muted},children:["Home ",c("span",{style:{opacity:.5},children:"/"})," Wheels ",c("span",{style:{opacity:.5},children:"/"})," ",c("span",{style:{color:d.text,fontWeight:700},children:"20 inch"})]})}),categorybar:C("div",{style:{..._,background:d.card,display:"flex",flexDirection:"column",justifyContent:"center",gap:7,padding:"0 11px"},children:[c("div",{style:{display:"flex",gap:5},children:["All","Wheels","Tyres","Lift"].map((e,o)=>c("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,padding:"4px 7px",borderRadius:99,background:o===0?d.text:d.paper,color:o===0?d.onInk:d.muted},children:e},e))}),c("span",{style:{height:1,background:d.rule}})]}),intro:C("div",{style:{..._,overflow:"hidden",background:d.card},children:[c("div",{style:{position:"absolute",inset:0,...xe(d.ink,d.inkSoft2)}}),c(Go,{size:64,style:{right:8,top:6}}),C("div",{style:{position:"absolute",left:16,right:16,bottom:8,top:"46%",background:d.paper,borderRadius:6,padding:"8px 11px",display:"flex",flexDirection:"column",gap:2,boxShadow:`0 -4px 10px ${d.scrim}`},children:[c("span",{style:{fontSize:"5.69cqw",fontWeight:700,color:d.text},children:"Since 1998"}),c(_e,{children:"One shed, one lathe, one idea."}),c(_e,{w:"66%",children:"It turned out to be right."})]})]}),gallerygrid:c(ce,{title:"From our customers",children:c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gridTemplateRows:"repeat(2,1fr)",gap:4,minHeight:0},children:[[d.rust,d.warm],[d.inkSoft,d.ink],[d.paper2,d.mark2],[d.ink,d.inkSoft2],[d.warm,d.paper2],[d.mark2,d.inkSoft]].map(([e,o],t)=>c("div",{style:{borderRadius:3,...xe(e,o,140+t*22)}},t))})}),gallery:C(ce,{title:"Gallery",children:[c("div",{style:{display:"flex",gap:8,alignItems:"center",marginTop:-2},children:["On the truck","Studio","Close-ups"].map((e,o)=>c("span",{style:{fontSize:"3.98cqw",fontWeight:o===0?700:500,color:o===0?d.text:d.muted,borderBottom:`1.5px solid ${o===0?d.rust:"transparent"}`,paddingBottom:2},children:e},e))}),c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:4,minHeight:0},children:[[d.rust,d.warm],[d.ink,d.inkSoft],[d.paper2,d.mark2]].map(([e,o],t)=>c("div",{style:{borderRadius:3,...xe(e,o,150+t*20)}},t))})]}),ordersummary:C(ce,{title:"Order summary",children:[C("div",{style:{display:"flex",gap:6,alignItems:"center",paddingBottom:4},children:[c("span",{style:{width:26,height:26,borderRadius:4,position:"relative",overflow:"hidden",flex:"none",...xe(d.paper,d.paper2,150)},children:c(Go,{size:18,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),C("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[c("b",{style:{fontSize:"4.31cqw",color:d.text},children:"Ridge Grappler"}),c("span",{style:{fontSize:"3.65cqw",color:d.muted},children:"20\xD79 +12 \xB7 qty 4"})]})]}),C("div",{style:{flex:1,minHeight:0,display:"flex",flexDirection:"column",justifyContent:"center"},children:[c(zo,{k:"Subtotal",v:"$1,956"}),c(zo,{k:"Fitting",v:"Free"}),C("div",{style:{display:"flex",justifyContent:"space-between",paddingTop:5,fontSize:"4.64cqw"},children:[c("b",{style:{color:d.text},children:"Total"}),c("b",{style:{color:d.text,fontSize:"6.02cqw"},children:"$1,956"})]})]})]}),deliveryoptions:c(ce,{title:"Delivery",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[["Standard","3\u20135 days","Free",!0],["Express","Next day","$19",!1]].map(([e,o,t,r])=>C("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"5px 6px",borderRadius:4,border:`1px solid ${r?d.rust:d.rule}`,background:r?d.paper:d.card},children:[c("span",{style:{width:7,height:7,borderRadius:"50%",flex:"none",border:`1.5px solid ${r?d.rust:d.mark1}`,background:r?d.rust:"transparent"}}),c("span",{style:{flex:1,fontSize:"4.31cqw",fontWeight:600,color:d.text},children:e}),c("span",{style:{fontSize:"3.98cqw",color:d.muted},children:o}),c("b",{style:{fontSize:"4.31cqw",color:d.text},children:t})]},e))})}),paymentbadges:C("div",{style:{..._,background:d.paper,display:"flex",flexDirection:"column",gap:8,justifyContent:"center",padding:"0 12px"},children:[c(ls,{children:"Ways to pay"}),c("div",{style:{display:"flex",gap:5},children:[["VISA",d.ink],["MC",d.rust],["AMEX",d.inkSoft],["PayPal",d.ink2]].map(([e,o])=>c("span",{style:{flex:1,textAlign:"center",fontSize:"3.65cqw",fontWeight:800,letterSpacing:"0.06em",color:d.onInk,borderRadius:3,padding:"6px 0",background:o},children:e},e))})]}),stats:C("div",{style:{..._,padding:"10px 12px",display:"flex",flexDirection:"column",gap:9,justifyContent:"center",...xe(d.ink,d.ink2)},children:[c("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:d.warm},children:"By the numbers"}),C("div",{style:{display:"flex",gap:8},children:[c(Oa,{n:"27k",label:"Rigs fitted",tone:d.onInk}),c(Oa,{n:"12",label:"Years",tone:d.onInk}),c(Oa,{n:"4.9",label:"Avg rating",tone:d.warm})]})]}),testimonials:C("div",{style:{..._,overflow:"hidden",background:d.paper,padding:"10px 11px",display:"flex",flexDirection:"column",gap:6,justifyContent:"center"},children:[c("span",{style:{position:"absolute",right:10,top:2,fontSize:"22.4cqw",lineHeight:1,fontWeight:800,color:d.rust,opacity:.16},children:"\u201D"}),c(Sd,{filled:5,size:7}),c("span",{style:{position:"relative",fontSize:"5.31cqw",lineHeight:1.35,color:d.text,fontWeight:600},children:"\u201CTook them out to the Simpson and back. Not one chip.\u201D"}),C("div",{style:{display:"flex",alignItems:"center",gap:5},children:[c(lS,{}),c("span",{style:{fontSize:"3.98cqw",color:d.muted},children:"Dave M. \xB7 Hilux N80"})]})]}),reviews:C(ce,{title:"Reviews",children:[c("div",{style:{display:"flex",gap:4,height:22},children:[[d.inkSoft,d.inkSoft2],[d.rust,d.warm],[d.ink,d.inkSoft],[d.mark2,d.mark1]].map(([e,o],t)=>c("div",{style:{flex:1,borderRadius:3,...xe(e,o,140+t*15)}},t))}),c("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:[["Dave M.",5,"Not one chip after the Simpson."],["Sara K.",4,"Fitted in an hour, no fuss."]].map(([e,o,t])=>C("div",{style:{display:"flex",gap:5,alignItems:"flex-start"},children:[c(lS,{size:12}),C("div",{style:{display:"flex",flexDirection:"column",gap:1,minWidth:0},children:[C("div",{style:{display:"flex",gap:4,alignItems:"center"},children:[c("b",{style:{fontSize:"3.98cqw",color:d.text},children:e}),c(Sd,{filled:o})]}),c(_e,{children:t})]})]},e))})]}),logos:C("div",{style:{..._,display:"flex",flexDirection:"column",gap:9,justifyContent:"center",padding:"0 12px",...xe(d.ink,d.inkSoft)},children:[c("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.14em",textTransform:"uppercase",color:d.warm},children:"As fitted by"}),c("div",{style:{display:"grid",gridTemplateColumns:"repeat(4,1fr)",gap:8},children:["ARB","TJM","IRONMAN","OPPOSITE"].map(e=>c("span",{style:{textAlign:"center",fontSize:"4.31cqw",fontWeight:800,letterSpacing:"0.08em",color:d.onInk,opacity:.82},children:e},e))})]}),prose:C("div",{style:{..._,background:d.paper,padding:"11px 14px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[c("span",{style:{fontSize:"5.86cqw",fontWeight:700,color:d.text},children:"Why offset matters"}),C("div",{style:{display:"flex",gap:6},children:[c("span",{style:{fontSize:"15.3cqw",lineHeight:.78,fontWeight:800,color:d.rust,marginTop:1},children:"T"}),C("div",{style:{display:"flex",flexDirection:"column"},children:[c(_e,{children:"he number on the back of your wheel decides whether the"}),c(_e,{w:"76%",children:"tyre sits under the guard or an inch outside it."})]})]})]}),cards:c(ce,{title:"What you get",children:c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Fitted free","In store, same day."],["5 yr cover","Structural, no fine print."],["Swap it","30 days, any reason."]].map(([e,o])=>C("div",{style:{border:`1px solid ${d.rule}`,borderRadius:4,padding:6,display:"flex",flexDirection:"column",gap:2},children:[c("span",{style:{width:11,height:11,borderRadius:3,background:d.rust,opacity:.9}}),c("b",{style:{fontSize:"3.98cqw",color:d.text},children:e}),c(_e,{children:o})]},e))})}),faq:c(ce,{title:"Questions",children:c("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[["Will these fit my Hilux?",!0],["Do you fit them for me?",!1],["What if I pick wrong?",!1]].map(([e,o])=>C("div",{style:{borderBottom:`1px solid ${d.rule}`,padding:"4px 2px"},children:[C("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6},children:[c("b",{style:{fontSize:"4.31cqw",color:d.text},children:e}),c("span",{style:{fontSize:"4.64cqw",color:d.muted,lineHeight:1},children:o?"\u2212":"+"})]}),o&&c(_e,{w:"90%",children:"Use the fitment finder \u2014 it reads your build, not just the model."})]},e))})}),hero:C("div",{style:{..._,overflow:"hidden",...xe(d.ink,d.ink2)},children:[c("div",{style:{..._,background:`linear-gradient(90deg,${d.scrim},transparent 70%)`}}),c("div",{style:{position:"relative",height:"100%",display:"flex",flexDirection:"column",justifyContent:"center",alignItems:"flex-start",padding:"12px 14px",gap:5},children:c(nS,{over:"NEW \xB7 SUMMER",overTone:d.warm,head:"Built for the worst road you own",cta:"SHOP ALL",ctaBg:d.warm,ctaFg:d.ink,tone:d.onInk})}),c(Go,{size:104,style:{right:-24,bottom:-30}})]}),herosingle:C("div",{style:{..._,display:"flex",background:d.paper,overflow:"hidden"},children:[c("div",{style:{flex:1,padding:12,display:"flex",flexDirection:"column",gap:5,justifyContent:"center"},children:c(nS,{over:"ALL-TERRAIN",overTone:d.rust,head:"Grip that does not ask",headSize:12,cta:"EXPLORE",ctaBg:d.text,ctaFg:d.onInk,tone:d.text})}),c("div",{style:{flex:1,position:"relative",...xe(d.inkSoft,d.inkSoft2)},children:c(Go,{size:74,style:{right:-14,top:16}})})]}),productgrid:c(ce,{title:"Best sellers",children:C("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[c(yd,{name:"Ridge 19",price:"$365"}),c(yd,{name:"Ridge 29",price:"$410"}),c(yd,{name:"Ridge 39",price:"$455"})]})}),collections:c(ce,{title:"Shop by category",children:c("div",{style:{flex:1,display:"grid",gridTemplateColumns:"repeat(3,1fr)",gap:5,minHeight:0},children:[["Wheels",d.inkSoft,d.inkSoft2],["Tyres",d.rust,d.warm],["Lift kits",d.ink,d.inkSoft]].map(([e,o,t])=>c("div",{style:{borderRadius:4,display:"flex",alignItems:"flex-end",padding:5,color:d.onInk,...xe(o,t)},children:c("span",{style:{fontSize:"3.98cqw",fontWeight:700,letterSpacing:"0.04em"},children:e})},e))})}),producthero:C("div",{style:{..._,display:"flex",background:d.card,overflow:"hidden"},children:[c("div",{style:{flex:1.1,position:"relative",...xe(d.paper,d.paper2,150)},children:c(Go,{size:78,style:{left:"50%",top:"50%",transform:"translate(-50%,-50%)"}})}),C("div",{style:{flex:1,padding:"10px 10px 10px 8px",display:"flex",flexDirection:"column",gap:4,justifyContent:"center"},children:[c("span",{style:{fontSize:"3.65cqw",letterSpacing:"0.16em",fontWeight:700,color:d.rust},children:"NITTO"}),c("b",{style:{fontSize:"6.29cqw",color:d.text},children:"Ridge Grappler"}),c("span",{style:{fontSize:"6.63cqw",fontWeight:700,color:d.text},children:"$489"}),c("span",{style:{alignSelf:"flex-start",fontSize:"3.65cqw",letterSpacing:"0.12em",fontWeight:700,padding:"4px 8px",borderRadius:2,background:d.text,color:d.onInk},children:"ADD TO CART"})]})]}),spectable:c(ce,{title:"Specifications",children:C("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[c(zo,{k:"Diameter",v:'20"'}),c(zo,{k:"Width",v:"9.0J"}),c(zo,{k:"Offset",v:"+12"}),c(zo,{k:"Load",v:"1250 kg"})]})}),fitmenttable:c(ce,{title:"Will it fit?",children:C("div",{style:{flex:1,display:"flex",flexDirection:"column",justifyContent:"center"},children:[c(zo,{k:"Hilux N80",v:"20\xD79 +12",ok:!0}),c(zo,{k:"Ranger PX3",v:"20\xD79 +12",ok:!0}),c(zo,{k:"LC79",v:"17\xD78 \u221210",ok:!0})]})}),processsteps:C("div",{style:{..._,background:d.paper,padding:10,display:"flex",flexDirection:"column",gap:7,justifyContent:"center"},children:[c(ls,{children:"How it works"}),c("div",{style:{display:"flex",gap:6},children:["Pick your rig","Match the fit","We fit it"].map((e,o)=>C("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:2},children:[c("span",{style:{width:11,height:11,borderRadius:"50%",background:d.text,color:d.onInk,fontSize:"3.98cqw",display:"flex",alignItems:"center",justifyContent:"center",fontWeight:700},children:o+1}),c("span",{style:{fontSize:"3.98cqw",color:d.text,fontWeight:600},children:e})]},e))})]}),detailrows:c("div",{style:{..._,background:d.card,display:"flex",flexDirection:"column",overflow:"hidden"},children:[["Forged, not cast","Half the weight, twice the road.",!1],["Fits your load","Rated to 1250 kg a corner.",!0]].map(([e,o,t])=>{let r=c("div",{style:{flex:1,...xe(t?d.rust:d.inkSoft,t?d.warm:d.inkSoft2)}},"art"),a=C("div",{style:{flex:1.1,padding:8,display:"flex",flexDirection:"column",gap:2,justifyContent:"center"},children:[c("b",{style:{fontSize:"4.64cqw",color:d.text},children:e}),c("span",{style:{fontSize:"3.98cqw",color:d.muted,lineHeight:1.3},children:o})]},"tx");return c("div",{style:{flex:1,display:"flex",minHeight:0},children:t?[a,r]:[r,a]},e)})}),specstrip:c("div",{style:{..._,background:d.ink,color:d.onInk,display:"flex",alignItems:"center",justifyContent:"space-around",padding:"0 8px"},children:[["5 yr","Warranty"],["Free","Fitting"],["48 hr","Dispatch"]].map(([e,o])=>C("div",{style:{display:"flex",flexDirection:"column",alignItems:"center",gap:1},children:[c("b",{style:{fontSize:"5.69cqw",letterSpacing:"0.02em"},children:e}),c("span",{style:{fontSize:"3.65cqw",color:d.mark2,letterSpacing:"0.1em",textTransform:"uppercase"},children:o})]},o))})},iS={subscribe:C("div",{style:{..._,padding:13,display:"flex",flexDirection:"column"},children:[C("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between",marginBottom:8},children:[C("div",{style:{display:"flex",alignItems:"center",gap:6},children:[c(R,{w:8,h:8,r:2,tone:"accent"}),c(R,{w:38,h:7,r:3,tone:"dark"}),c(R,{w:16,h:7,r:3,tone:"accent"})]}),c(R,{w:38,h:4,r:2,tone:"soft"})]}),c("div",{style:{height:1,background:Ee.line,marginBottom:10}}),C("div",{style:{flex:1,display:"flex",gap:10,border:`1px solid ${Ee.line}`,borderRadius:7,padding:10},children:[C("div",{style:{flex:1.1,display:"flex",flexDirection:"column",justifyContent:"center",gap:5},children:[c(R,{w:"46%",h:3,r:2,tone:"accent"}),c(R,{w:"84%",h:8,r:4,tone:"dark"}),c(R,{w:"56%",h:8,r:4,tone:"accent"}),c(R,{w:"96%",h:3,r:2,tone:"soft",style:{marginTop:2}}),C("div",{style:{display:"flex",gap:5,marginTop:4},children:[c("div",{style:{flex:1,height:13,borderRadius:5,border:`1px solid ${Ee.line}`,background:Ee.block}}),c(R,{w:34,h:13,r:5,tone:"accent"})]})]}),C("div",{style:{flex:1,background:Ee.block,borderRadius:6,padding:8,display:"flex",flexDirection:"column",gap:6},children:[c(R,{w:"52%",h:4,r:2,tone:"accent"}),Array.from({length:3}).map((e,o)=>C("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center",gap:6,borderTop:o?`1px solid ${Ee.line}`:"none",paddingTop:o?4:0},children:[c(R,{w:34,h:4,r:2,tone:"dark"}),c(R,{w:16,h:3,r:2,tone:"soft"})]},o))]})]})]}),split:C("div",{style:{..._,display:"flex"},children:[c("div",{style:{width:"44%",background:bd}}),C("div",{style:{flex:1,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[c(R,{w:"44%",h:5,r:3,tone:"accent"}),c(R,{w:"88%",h:8,r:4,tone:"dark"}),c(R,{w:"70%",h:8,r:4,tone:"dark"}),c(R,{w:"94%",h:5,r:2,tone:"soft",style:{marginTop:2}}),c(R,{w:"80%",h:5,r:2,tone:"soft"}),c(R,{w:"40%",h:13,r:6,tone:"accent",style:{marginTop:5}})]})]}),sectionheader:C(fS,{children:[c(R,{w:"18%",h:6,r:3,tone:"accent",style:{position:"absolute",top:15,right:16}}),C("div",{style:{..._,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:10},children:[C("div",{style:{display:"flex",alignItems:"center",gap:9},children:[c(R,{w:16,h:16,r:4,tone:"accent"}),c(R,{w:"20%",h:9,r:4,tone:"dark"})]}),c(R,{w:"62%",h:10,r:5,tone:"dark"}),c(R,{w:"42%",h:6,r:3,tone:"soft"})]})]}),header:c("div",{style:{..._,padding:14,display:"flex",flexDirection:"column",justifyContent:"center"},children:C("div",{style:{display:"flex",alignItems:"center",justifyContent:"space-between"},children:[c(R,{w:"22%",h:12,r:4,tone:"dark"}),C("div",{style:{display:"flex",gap:9,alignItems:"center"},children:[c(R,{w:26,h:6,r:3,tone:"soft"}),c(R,{w:26,h:6,r:3,tone:"soft"}),c(R,{w:26,h:6,r:3,tone:"soft"}),c(R,{w:18,h:14,r:5,tone:"accent"})]})]})}),footer:C("div",{style:{..._,padding:15,display:"flex",flexDirection:"column",justifyContent:"center",gap:12},children:[C("div",{style:{display:"flex",gap:14},children:[C("div",{style:{flex:1.4,display:"flex",flexDirection:"column",gap:6},children:[c(R,{w:"60%",h:9,r:4,tone:"dark"}),c(R,{w:"90%",h:5,r:2,tone:"soft"}),c(R,{w:"70%",h:5,r:2,tone:"soft"})]}),[0,1].map(e=>C("div",{style:{flex:1,display:"flex",flexDirection:"column",gap:6},children:[c(R,{w:"50%",h:6,r:3,tone:"dark"}),c(R,{w:"80%",h:5,r:2,tone:"soft"}),c(R,{w:"66%",h:5,r:2,tone:"soft"})]},e))]}),c("div",{style:{height:1,background:Ee.line}}),C("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c(R,{w:"30%",h:5,r:2,tone:"soft"}),c(R,{w:"16%",h:5,r:2,tone:"soft"})]})]}),grid:c("div",{style:{..._,padding:14,display:"grid",gridTemplateColumns:"1fr 1fr",gridTemplateRows:"1fr 1fr",gap:9},children:Array.from({length:4}).map((e,o)=>c("div",{style:{borderRadius:6,background:Ee.block}},o))}),blanksection:c("div",{style:{..._,padding:14,display:"flex"},children:C("div",{style:{flex:1,border:`1px dashed ${Ee.line}`,borderRadius:7,display:"flex",alignItems:"center",justifyContent:"center",position:"relative"},children:[c(R,{w:14,h:2,r:1,tone:"tint"}),c(R,{w:2,h:14,r:1,tone:"tint",style:{position:"absolute"}})]})}),spacer:C("div",{style:{..._,padding:14,display:"flex",flexDirection:"column",justifyContent:"space-between"},children:[c(R,{w:"100%",h:6,r:3,tone:"soft"}),c(R,{w:16,h:22,r:3,tone:"block",style:{alignSelf:"center"}}),c(R,{w:"100%",h:6,r:3,tone:"soft"})]}),divider:c("div",{style:{..._,padding:14,display:"flex",alignItems:"center"},children:c(R,{w:"100%",h:3,r:2,tone:"dark"})}),customhtml:C("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"center",gap:8,background:bd},children:[c(R,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(-14deg)"}}),c(R,{w:16,h:10,r:3,tone:"accent"}),c(R,{w:5,h:16,r:2,tone:"dark",style:{transform:"skewX(14deg)"}})]}),heading:c("div",{style:{..._,padding:14,display:"flex",alignItems:"center"},children:c(R,{w:"64%",h:13,r:4,tone:"dark"})}),text:C("div",{style:{..._,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[c(R,{w:"100%",h:6,r:3,tone:"soft"}),c(R,{w:"96%",h:6,r:3,tone:"soft"}),c(R,{w:"100%",h:6,r:3,tone:"soft"}),c(R,{w:"58%",h:6,r:3,tone:"soft"})]}),image:c("div",{style:{position:"absolute",inset:14,borderRadius:7,background:bd}}),button:c("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"center"},children:c(R,{w:"34%",h:16,r:8,tone:"accent"})}),menu:C("div",{style:{..._,padding:"14px 22%",display:"flex",flexDirection:"column",justifyContent:"center",gap:7},children:[c(R,{w:"48%",h:7,r:3,tone:"dark"}),c(R,{w:"82%",h:5,r:2,tone:"soft"}),c(R,{w:"66%",h:5,r:2,tone:"soft"}),c(R,{w:"74%",h:5,r:2,tone:"soft"}),c(R,{w:"58%",h:5,r:2,tone:"soft"})]}),emailform:C("div",{style:{..._,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[c(R,{w:"56%",h:8,r:3,tone:"dark"}),C("div",{style:{display:"flex",gap:6},children:[c("div",{style:{flex:1,height:16,borderRadius:5,border:`1px solid ${Ee.line}`}}),c(R,{w:"30%",h:16,r:5,tone:"accent"})]})]}),sociallogos:c("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"center",gap:9},children:[0,1,2,3].map(e=>c(R,{w:16,h:16,r:8,tone:"dark"},e))}),search:c("div",{style:{..._,padding:"0 18%",display:"flex",alignItems:"center"},children:C("div",{style:{flex:1,height:22,borderRadius:11,border:`1px solid ${Ee.line}`,display:"flex",alignItems:"center",gap:7,padding:"0 9px"},children:[c("div",{style:{width:9,height:9,borderRadius:5,border:`2px solid ${Ee.dark}`}}),c(R,{w:"46%",h:5,r:2,tone:"soft"})]})}),cart:C("div",{style:{..._,display:"flex",alignItems:"center",justifyContent:"center",gap:7},children:[c("div",{style:{width:22,height:18,borderRadius:"3px 3px 6px 6px",border:`2px solid ${Ee.dark}`}}),c("div",{style:{padding:"2px 6px",borderRadius:6,border:`1.5px solid ${Ee.dark}`},children:c(R,{w:7,h:7,r:2,tone:"dark"})})]}),countryswitch:C("div",{style:{..._,padding:14,display:"flex",flexDirection:"column",alignItems:"center",justifyContent:"center",gap:5},children:[C("div",{style:{display:"flex",alignItems:"center",gap:6,padding:"4px 8px",border:`1px solid ${Ee.line}`},children:[c(R,{w:22,h:6,r:2,tone:"dark"}),c(R,{w:6,h:4,r:1,tone:"soft"})]}),C("div",{style:{width:"46%",display:"flex",flexDirection:"column",gap:4,padding:6,border:`1px solid ${Ee.line}`},children:[c(R,{w:"80%",h:4,r:2,tone:"accent"}),c(R,{w:"64%",h:4,r:2,tone:"soft"}),c(R,{w:"72%",h:4,r:2,tone:"soft"})]})]}),legalline:C("div",{style:{..._,padding:16,display:"flex",flexDirection:"column",justifyContent:"center",gap:9},children:[c("div",{style:{height:1,background:Ee.line}}),C("div",{style:{display:"flex",justifyContent:"space-between",alignItems:"center"},children:[c(R,{w:"38%",h:5,r:2,tone:"soft"}),C("div",{style:{display:"flex",gap:5},children:[c(R,{w:14,h:5,r:2,tone:"soft"}),c(R,{w:14,h:5,r:2,tone:"soft"}),c(R,{w:14,h:5,r:2,tone:"soft"})]})]})]}),fallback:c("div",{style:{position:"absolute",inset:14,borderRadius:8,background:Ee.block}})};function cS({type:e}){let o=oM[e]??"",t=tM[o]??iS[o]??iS.fallback;return c("div",{className:"sf-thumb","aria-hidden":"true",style:{position:"absolute",inset:0,background:"var(--sf-thumb-thumb-bg)",pointerEvents:"none",containerType:"inline-size"},children:t})}import{useScreenDocument as Kd}from"efficient-easel/screen/components/ScreenDocumentContext";import{jsx as yr,jsxs as rM}from"react/jsx-runtime";import aM from"efficient-easel/screen/components/SidePanelHead";import{StylesIcon as nM}from"efficient-easel/rail";import{Tooltip as lM}from"efficient-shell/ui";function dS({tokenRef:e,siteId:o,onClose:t,onNotify:r,tab:a,onTabChange:n}){let s=ar();return rM("div",{className:"sf-styles",children:[yr(aM,{icon:yr(nM,{}),title:l("Site styles"),context:yr(lM,{content:l("{name} \u2014 renamed in the Console: {place}.",{name:s,place:l("Storefront \u25B8 Sites \u25B8 Settings")}),className:"sf-name-tip",children:yr("span",{className:"sf-name-text",children:s})}),onHide:t}),yr("div",{className:"sf-insp-body es-insp-body sf-scroll",children:yr(il,{tokenRef:e,siteId:o,onNotify:r,tab:a,onTabChange:n})})]})}import{jsx as Pe,jsxs as At,Fragment as uM}from"react/jsx-runtime";import{Fragment as TS,useEffect as FS,useRef as Fd}from"react";import{useTreeDrag as ES}from"efficient-easel/drag";import{GlobeIcon as pM,ImageIcon as mM,LocationIcon as xM,MapIcon as IM,TextLinesIcon as hM,TrashIcon as PS}from"efficient-easel/icons";import{Subtree as LS,TreeRow as Aa,TreeRowAction as OS,TreeSeam as RS}from"efficient-easel/tree";import{useEaselStrings as gM}from"efficient-easel/strings";import{createPreviewSelectionContext as sM}from"efficient-easel/draw/client";var{Provider:nee,useSelection:uS}=sM("selectedLocationPartId");function pS(e,o,t){return`${e}::${o}::${t}`}function mS(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 iM}from"react";var fM={level:"groups"},IS=fM,Cd=new Set;function po(e){IS=e;for(let o of Cd)o()}function cM(e){return Cd.add(e),()=>{Cd.delete(e)}}var xS=()=>IS;function hS(){return iM(cM,xS,xS)}function gS(e,o,t){let r=[];return e.forEach((a,n)=>{let s=o(a),i=r.find(f=>f.key===s);i||(i={key:s,name:t(a),items:[]},r.push(i)),i.items.push({item:a,index:n})}),r}function fee(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 Ra=e=>String(e?.group??""),vd=new WeakMap,dM=0;function ss(e){let o=vd.get(e);return o||(o=`loc${++dM}`,vd.set(e,o)),o}var bS=(e,o)=>o||e||"Ungrouped",yS={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 Rt(e){return gS(e,Ra,o=>String(o?.groupName??"")).map(o=>({key:o.key,name:o.name,cards:o.items.map(t=>t.item)}))}var wd=e=>e.flatMap(o=>o.cards),SS=(e,o,t)=>Math.min(Math.max(e,o),t);function is(e,o,t){let r=0;for(let a=0;a<e.length;a++)if(Ra(e[a])===o){if(r===t)return a;r++}return-1}function kd(e,o,t){let r=Rt(e);if(o<0||o>=r.length)return e;let[a]=r.splice(o,1),n=SS(o<t?t-1:t,0,r.length);return r.splice(n,0,a),wd(r)}function Td(e,o,t,r,a){let n=Rt(e),s=n.find(m=>m.key===o),i=n.find(m=>m.key===r);if(!s||!i||t<0||t>=s.cards.length)return e;let[f]=s.cards.splice(t,1),u=o===r?f:{...f,group:i.key,groupName:i.name};u!==f&&vd.set(u,ss(f));let p=SS(s===i&&t<a?a-1:a,0,i.cards.length);return i.cards.splice(p,0,u),wd(n)}function CS(e,o){let t=Rt(e),r=t.find(n=>n.key===o),a={...yS,group:o,groupName:r?.name??""};return r?(r.cards.push(a),wd(t)):[...e,a]}function vS(e){let o=new Set(Rt(e).map(a=>a.key)),t=o.size+1,r=`Group ${t}`;for(;o.has(r);)r=`Group ${++t}`;return{cards:[...e,{...yS,group:r,groupName:""}],key:r}}function wS(e,o){return e.filter(t=>Ra(t)!==o)}function kS(e,o,t){let r=is(e,o,t);return r<0?e:e.filter((a,n)=>n!==r)}function uee(e,o,t){let r=e.flatMap((s,i)=>Ra(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 pee(e,o,t){return o.flatMap(r=>{let a=e.filter(n=>Ra(n)===r);return a.length?a:t(r)})}var cs="ContactLocations",fs=e=>({parentId:`locations-${e}`,slot:"groups"}),Ed=(e,o)=>({parentId:`locations-${e}`,slot:`cities:${o}`});function AS(e,o){let{readOnly:t,selected:r}=o,a=gM().tree,n=o.data?.content??[],s=e.kind===eS.kind,i=Fd(null);FS(()=>{let g=r?.type===cs?String(r.props.id):null;g&&g!==i.current&&po({level:"groups"}),i.current=g},[r?.props.id]);let{selectedLocationPartId:f,setSelectedLocationPartId:u,setSelectHandler:p}=uS(),m=hS(),x=(g,y)=>{let P=n[g];P&&o.replace(g,{type:P.type,props:{...P.props,locations:y}})},h=g=>{let y=n[g]?.props?.locations;return Array.isArray(y)?y:[]},b=ES({keyOf:g=>`group:${g.si}:${g.index}`,readOnly:!!t,canDrop:(g,y)=>y.parentId===fs(g.si).parentId&&y.slot==="groups",onDrop:(g,y)=>{x(g.si,kd(h(g.si),g.index,y.index)),m.level==="city"&&po({level:"groups"})},onStep:(g,y)=>{x(g.si,kd(h(g.si),g.index,y<0?g.index-1:g.index+2)),m.level==="city"&&po({level:"groups"})}}),S=ES({keyOf:g=>`city:${g.si}:${g.group}:${g.index}`,readOnly:!!t,canDrop:(g,y)=>y.parentId===fs(g.si).parentId&&y.slot.startsWith("cities:"),onDrop:(g,y)=>{let P=y.slot.slice(7);x(g.si,Td(h(g.si),g.group,g.index,P,y.index)),po({level:"group",key:P})},onStep:(g,y)=>{x(g.si,Td(h(g.si),g.group,g.index,g.group,y<0?g.index-1:g.index+2)),m.level==="city"&&po({level:"group",key:g.group})}}),w=Fd(n);w.current=n;let F=Fd(()=>{});FS(()=>{p(g=>{let y=mS(g);if(!y)return;let P=w.current.findIndex(k=>k.props?.id===y.nodeId);P<0||F.current(P,{level:y.part,index:y.index})})},[p]);let v=(g,y)=>{i.current=n[g]?.props?.id??null,o.select(g),po(y),e.reveal();let P=n[g]?.props?.id;typeof P=="string"&&(y.level==="image"||y.level==="map")?u(pS(P,y.index,y.level)):u(null),typeof P=="string"&&o.scrollTo(P)};return F.current=v,{renderLocationTree:(g,y,{rowClick:P,isCollapsed:k,toggleCollapse:O})=>{let E=h(y),B=Rt(E),$=String(g.props.id),K=s&&r?.props.id===$,N=A=>Pe(RS,{...t?{}:b.seam({place:{...fs(y),index:A}})},`seam:${$}:groups:${A}`),H=(A,ae)=>Pe(RS,{...t?{}:S.seam({place:{...Ed(y,A),index:ae}})},`seam:${$}:cities:${A}:${ae}`);return At(uM,{children:[Pe(Aa,{icon:Pe(hM,{size:13}),name:l("Texts"),words:a,onSelect:()=>v(y,{level:"texts"}),selected:K&&m.level==="texts",rowProps:{onClick:P(()=>v(y,{level:"texts"}))}}),B.map((A,ae)=>{let le=`${$}::grp::${A.key}`,pe=k(le),oo=K&&m.level==="group"&&m.key===A.key,Ve=A.name||A.key?bS(A.key,A.name):l("Ungrouped"),ke={...Ed(y,A.key),index:A.cards.length},to=S.row({item:{si:y,group:A.key,index:-1},place:ke,into:ke,canDrag:!1},{onClick:P(()=>v(y,{level:"group",key:A.key}))}),De=b.row({item:{si:y,index:ae},place:{...fs(y),index:ae}},to.rowProps);return At(TS,{children:[ae===0&&N(0),Pe(Aa,{icon:Pe(pM,{size:13}),name:Ve,words:a,onSelect:()=>v(y,{level:"group",key:A.key}),selected:oo,draggable:De.draggable,dragging:De.dragging,drop:De.drop??to.drop,fold:{open:!pe,label:l("group"),onToggle:()=>O(le)},actions:Pe(OS,{kind:"delete",label:dt("Delete {label} group ({n} city)","Delete {label} group ({n} cities)",A.cards.length,{label:Ve}),onClick:()=>{x(y,wS(E,A.key)),po({level:"groups"})},children:Pe(PS,{size:15})}),rowProps:De.rowProps,children:Pe("span",{className:"es-group-count",children:A.cards.length})}),!pe&&At(LS,{children:[A.cards.map((Le,ge)=>{let ye=is(E,A.key,ge),Ye=K&&m.level==="city"&&m.index===ye,Ne=String(Le?.name??"")||l("City"),Xe=`${$}::city::${ss(Le)}`,Oe=k(Xe),{rowProps:L,...J}=S.row({item:{si:y,group:A.key,index:ge},place:{...Ed(y,A.key),index:ge}},{onClick:P(()=>v(y,{level:"city",index:ye}))});return At(TS,{children:[ge===0&&H(A.key,0),Pe(Aa,{icon:Pe(xM,{size:13}),name:Ne,words:a,onSelect:()=>v(y,{level:"city",index:ye}),selected:Ye,...J,fold:{open:!Oe,label:Ne,onToggle:()=>O(Xe)},actions:Pe(OS,{kind:"delete",label:l("Delete {name}",{name:Ne}),onClick:()=>{x(y,kS(E,A.key,ge)),po({level:"group",key:A.key})},children:Pe(PS,{size:15})}),rowProps:L}),!Oe&&At(LS,{children:[Pe(Aa,{icon:Pe(mM,{size:13}),name:l("Image"),words:a,onSelect:()=>v(y,{level:"image",index:ye}),selected:K&&m.level==="image"&&m.index===ye,rowProps:{onClick:P(()=>v(y,{level:"image",index:ye}))}}),Pe(Aa,{icon:Pe(IM,{size:13}),name:l("Map"),words:a,onSelect:()=>v(y,{level:"map",index:ye}),selected:K&&m.level==="map"&&m.index===ye,rowProps:{onClick:P(()=>v(y,{level:"map",index:ye}))}})]}),H(A.key,ge+1)]},ss(Le))}),At("button",{type:"button",className:"sf-add-card",onClick:()=>{let Le=CS(E,A.key);x(y,Le);let ge=Rt(Le).find(ye=>ye.key===A.key);po(ge&&ge.cards.length?{level:"city",index:is(Le,A.key,ge.cards.length-1)}:{level:"group",key:A.key})},children:[Pe("span",{className:"sf-plus sf-plus--sm",children:"+"}),l("Add city")]})]}),N(ae+1)]},le)}),At("button",{type:"button",className:"sf-add-card",onClick:()=>{let{cards:A,key:ae}=vS(E);x(y,A),v(y,{level:"group",key:ae})},children:[Pe("span",{className:"sf-plus sf-plus--sm",children:"+"}),l("Add group")]})]})},sectionPressed:g=>{g?.type===cs&&po({level:"groups"})}}}import{useEffect as bM,useRef as yM}from"react";import{createNode as DS,newId as NS}from"efficient-easel/data";import{useEaselApi as SM}from"efficient-easel/easel";import{useScreenDocument as CM}from"efficient-easel/screen/components/ScreenDocumentContext";import{ROOT_ZONE as Sr,missingPinnedTypes as vM,pinnedDuplicateIds as Pd}from"efficient-easel/draw";function BS(e){return!e.docId||e.saveStatus==="saving"?!1:e.seededDocId!==e.docId}function _S(e,o){let t=e.some(n=>n?.type===ue),r=e[e.length-1],a=!t&&r?.type===me?r:null;return{remove:e.filter(n=>n?.type===me&&n!==a).map(n=>String(n.props?.id??"")).filter(Boolean),seedHeader:!e.some(n=>n?.type===Ke),seedFooter:o.hasChromeDoc&&!t&&!a}}function MS(e,o){let{adapter:t,capabilities:r,currentSlug:a,docId:n,data:s,saveStatus:i}=CM(),{hasSiteSettings:f,hasPinnedChrome:u}=r,p=!!r.editsPinnedInPlace&&a!==Wt,m=a===Wt,x=SM().getState,h=yM(null);bM(()=>{if(!BS({docId:n,saveStatus:i,seededDocId:h.current})||(h.current=n,!u))return;let b=x().appState.data,S=b.content,w=s?.content??[],F=(P,k)=>P.some(O=>O?.type===k);if(!f){let P=new Set(Pd(S)),k=P.size?S.filter(E=>!P.has(E.props.id)):S;P.size&&e.setDocument({...b,content:k});let O=vM(k,w);if(O.includes(me)){let E=k.length,B=e.insertSection(me,E);e.replaceComponent(Sr,E,{type:me,props:{id:B,blocks:Zl()}})}O.includes(Ke)&&e.insertNode(Sr,0,Xl());return}if(m){let P=gr(S);if(P!==S&&e.setDocument({...b,content:[...P]}),!P.find(k=>k.type===me)&&!F(w,me)&&!F(P,ue)&&!F(w,ue)){let k=(E,B)=>DS(o,E,B),O={type:me,props:{blocks:Zl()}};e.insertNode(Sr,P.length,Ta(O,k,NS(ue)))}return}if(p){let P=!!t?.pinnedChrome?.state().docId,k=_S(S,{hasChromeDoc:P}),O=new Set([...k.remove,...Pd(S.filter(B=>!k.remove.includes(String(B.props.id))))]),E=O.size?S.filter(B=>!O.has(String(B.props.id))):S;if(E.length!==S.length&&e.setDocument({...b,content:E}),k.seedFooter&&!F(w,me)&&!F(w,ue)){let B=(K,N)=>DS(o,K,N),$={type:me,props:{blocks:Zl()}};e.insertNode(Sr,E.length,Ta($,B,NS(ue)))}if(k.seedHeader&&!F(w,Ke)){let B=E[0]?.type==="SiteHeader"?1:0;e.insertNode(Sr,B,Xl())}return}let v=S.filter(P=>P.type!==me),g=new Set(Pd(v)),y=g.size?v.filter(P=>!g.has(P.props.id)):v;y.length!==S.length&&e.setDocument({...b,content:y}),!F(y,Ke)&&!F(w,Ke)&&e.insertNode(Sr,0,Xl())},[n,i,s,x,e,f,u,m,p,t])}import{useEffect as zS,useState as GS}from"react";var ds=new Map;async function wM(e,o){try{return(await Me().site.get({siteId:o})).slug?.trim()||null}catch(t){return console.warn("[editor-site-slug] could not resolve the site slug",t),null}}function HS(e,o){let t=ds.get(o);return t||(t=wM(e,o),ds.set(o,t),t.catch(()=>{ds.get(o)===t&&ds.delete(o)})),t}var kM=/^(localhost|(?:[a-z0-9-]+\.)+localhost|127(?:\.\d{1,3}){3}|0\.0\.0\.0|\[::1\]|::1)$/i;function Ld(e){return!!e&&kM.test(e)}function WS(e){let{pageSlug:o,siteSlug:t,hostname:r}=e,a=o===pn?"/":`/${encodeURIComponent(o)}`;if(!Ld(r))return a;let n=t?.trim();return n?`${a}?site=${encodeURIComponent(n)}`:a}function US(e){let{pageSlug:o,siteId:t,token:r}=e,[a,n]=GS(null),[s,i]=GS(null),f=Su();zS(()=>i(f?new URL(f).hostname:window.location.hostname),[f]),zS(()=>{if(!Ld(s)||!t||!r){n(null);return}let p=!1;return HS(r,t).then(m=>{p||n(m)}),()=>{p=!0}},[s,t,r]);let u=WS({pageSlug:o,siteSlug:a,hostname:s});return f?`${f}${u}`:u}import{jsx as Ba,jsxs as TM}from"react/jsx-runtime";import{ExternalIcon as $S}from"efficient-easel/icons";import{Button as FM,Tooltip as qS,buttonClasses as EM}from"efficient-shell/ui";function PM({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 jS({liveHref:e,pageId:o,draftLink:t}){return t&&o?Ba(qS,{content:l("Open your saved draft in a new tab. Visitors don't see it."),children:Ba(FM,{variant:"secondary",onClick:()=>{PM({pageId:o,liveHref:e,draftLink:t})},rightIcon:Ba($S,{size:15}),"aria-label":l("Preview your saved draft in a new tab"),children:l("Preview")})}):Ba(qS,{content:l("Preview the live site (opens in a new tab)"),children:TM("a",{className:EM({variant:"secondary"}),href:e,target:"_blank",rel:"noopener noreferrer","aria-label":l("Preview the live site in a new tab"),children:[l("Preview"),Ba($S,{size:15})]})})}import{useCallback as _M,useEffect as ZS,useRef as QS,useState as DM}from"react";import{useScreenDocument as NM}from"efficient-easel/screen/components/ScreenDocumentContext";import{useSyncExternalStore as LM}from"react";import{useScreenDocument as OM}from"efficient-easel/screen/components/ScreenDocumentContext";var RM=()=>()=>{},KS=()=>null;function us(e){return LM(e?e.subscribe:RM,e?e.state:KS,e?e.state:KS)}function ps(){let{adapter:e}=OM();return e?.pinnedChrome}import{useSyncExternalStore as AM}from"react";var Cr=new Map,Od=new Set;function Rd(e,o){if(!(Cr.has(e)&&Cr.get(e)===o)){Cr.set(e,o);for(let t of Od)t()}}function ioe(e,o){Rd(e,o)}function foe(e,o){let t=Cr.get(e);Rd(e,o??(t==="live"?"changed":t))}function coe(e,o){Rd(e,o??"live")}function doe(e){return Cr.get(e)}function BM(e){return Od.add(e),()=>{Od.delete(e)}}function VS(e){let o=()=>e?Cr.get(e):void 0;return AM(BM,o,o)}function YS(e,o){return e==="live"&&o?"changed":e}function Ad({live:e,onPress:o,busy:t=!1,pinnedUnpublished:r=!1,goingLive:a}){let n=e==="live"&&!r,s=e==="changed"?l("Changes not live yet"):e==="never"?l("Never published"):r?l("Header and footer not live yet"):e==="live"?l("Everything is live"):null;return{label:l("Publish"),tooltip:e==="never"?l("Put this page on your site"):l("Put your changes on your site"),status:s,quiet:n?{label:l("Published"),reason:l("Everything is live")}:null,...a&&a.length?{goingLive:a}:{},onPress:o,busy:t}}function XS(e){return e.map(o=>o.change==="take_down"?l("{name} (taken down)",{name:o.name}):o.name)}function JS(e){let{docId:o,capabilities:t,hasUnsavedEdits:r,onPublish:a,adapter:n}=NM(),s=YS(VS(o??null),r),i=us(ps()),f=n.siteLiveState;ZS(()=>{if(f)return Si(f),dn(0),()=>Si(null)},[f]);let u=Qp(),[p,m]=DM(!1),x=QS(e);x.current=e;let h=QS(!0);ZS(()=>(h.current=!0,()=>{h.current=!1}),[]);let b=_M(()=>{m(!0),a(x.current).finally(()=>{h.current&&m(!1)})},[a]);if(t.canPublish){if(f){let S=u===void 0?void 0:r||u.state==="changed"?"changed":"live";return Ad({live:S,onPress:b,busy:p,goingLive:XS(u?.changes??[])})}return Ad({live:s,onPress:b,busy:p,pinnedUnpublished:i?.unpublished??!1})}}import{useEaselSession as fH}from"efficient-easel/screen/lib/session-context";import{buildPaletteSections as Poe,categoryLabel as Loe,paletteWithoutPinned as Ooe,pinnedSection as Roe}from"efficient-easel/screen/lib/puck/palette-sections";var eC=["general","commerce","service"],vr=[{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:"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 boe(){return Object.fromEntries(vr.map(e=>[e.key,{title:e.title,components:e.sections.map(o=>o.type),...e.defaultExpanded?{defaultExpanded:!0}:{}}]))}var MM={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."},yoe=["Grid"],Soe=Array.from(new Set([...vr.flatMap(e=>e.sections.map(o=>o.type)),...Object.keys(MM)])),Coe=Object.fromEntries(vr.flatMap(e=>e.sections.map(o=>[o.type,o.label]))),HM={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"},ms={...HM,...Object.fromEntries(vr.flatMap(e=>e.sections.map(o=>[o.type,o.set])))};function oC(e){return Object.prototype.hasOwnProperty.call(ms,e)?ms[e]:void 0}function Bd(e){return Object.keys(ms).filter(o=>ms[o]===e).sort()}var voe=Bd("general"),woe=Bd("commerce"),koe=Bd("service"),_d="Flex",at="Box",Toe=`${at}es`;function WM(e){return e==="section"?"Blank section":at}function Dd(e,o,t){return e===_d?WM(o):t}var zM={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 tC(e){return zM[e]?.label}var rC=_d;import{currentEaselSession as GM}from"efficient-easel/screen/lib/session";var UM={general:!0,commerce:!0,service:!0};function Nd(e){let o=e?.sets;return o?Object.fromEntries(eC.map(t=>[t,o.includes(t)])):UM}function Noe(e=GM()){return Nd(e.blocks)}import{currentEaselSession as dC}from"efficient-easel/screen/lib/session";var wr="content",be="Flex",$M="Text & media",qM="Layout & structure",jM=[{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:$M})),KM=(vr.find(e=>e.key==="structure")?.sections??[]).map(e=>({type:e.type,label:e.label,group:qM})),aC=[...jM,...KM],Md=[{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:at}],Woe=Md.map(e=>e.type),VM=1,YM=Md.filter(e=>e.type!=="HeroGroup");function XM(e){return e<VM?Md:YM}var ZM={Flex:{slot:wr,choices:()=>aC},Grid:{slot:wr,choices:()=>aC},HeroGroup:{slot:wr,choices:XM}};function nC(e,o=0){let t=ZM[e];return t?{slot:t.slot,choices:t.choices(o)}:null}function Ge(e,o,t,r={}){return{type:e,props:{...o(e),id:t(e),...r}}}function lC(e,o,t){return Ge(be,e,o,{...t,sectionPaddingTop:void 0,sectionPaddingBottom:void 0})}var QM={Manifesto:(e,o)=>({type:be,props:{...e(be),id:o(be),direction:"row",share:"equal",sectionHeightMode:"screen",name:"Brand Text",content:[Ge(be,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:40,sectionPaddingRight:40,content:[Ge("Eyebrow",e,o,{eyebrowLook:"plain"}),Ge("Heading",e,o),Ge("Text",e,o),Ge("Stats",e,o)]}),lC(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:[Ge(be,e,o,{direction:"column",justify:"center",blockSpacing:"gap",name:"Text",sectionPaddingTop:100,sectionPaddingBottom:100,sectionPaddingLeft:60,sectionPaddingRight:60,content:[Ge("Eyebrow",e,o,{eyebrowLook:"plain"}),Ge("Heading",e,o),Ge("Text",e,o),Ge("ButtonBlock",e,o)]}),lC(e,o,{direction:"column",name:"Image",content:[Ge("ImageBlock",e,o)]})]}}),Subscribe:(e,o)=>({type:be,props:{...e(be),id:o(be),direction:"column",name:"Subscribe",content:[Ge("Heading",e,o),Ge("Text",e,o),Ge("Form",e,o)]}})};function xs(e){return QM[e]??null}import{blockTypesIn as iC}from"efficient-easel/screen/lib/puck/block-types-in";import{newNodeId as sC}from"efficient-easel/draw";var JM="ImageBlock",e2=3,Is=(e,o,t={})=>({type:e,props:{...o?.(e)??{},id:sC(e),...t}}),o2=e=>({...e?.(be)??{},direction:"column",[wr]:[Is(JM,e),Is(be,e,{direction:"column",[wr]:[Is("Heading",e),Is("Text",e)]})]}),Fo={Hero:{slot:"slides",childType:"HeroSlide",addLabel:"Add slide",slider:!0,seeds:()=>nb.map(e=>({...e}))},HeroSlide:{slot:"groups",childType:"HeroGroup",addLabel:`Add ${at.toLowerCase()}`,seeds:()=>[],addBlocked:Qa,notice:qs},HeroSingle:{slot:"boxes",childType:"HeroGroup",addLabel:`Add ${at.toLowerCase()}`,seeds:()=>[],addBlocked:Qa,notice:qs},ProcessSteps:{slot:"boxes",childType:be,addLabel:`Add ${at.toLowerCase()}`,seeds:e=>Array.from({length:e2},()=>o2(e)),skipSeed:e=>Array.isArray(e.steps)&&e.steps.length>0}};function Yoe(e){for(let[o,t]of Object.entries(e)){if(o in Fo&&Fo[o]!==t)throw new Error(`lib/puck/slot-specs: "${o}" already has a slot spec`);Fo[o]=t}}function Xoe(e,o){let t=Fo[e];return t?{slot:t.slot,children:t.seeds(o).map(r=>({type:t.childType,props:{id:sC(t.childType),...r}}))}:null}var fC=()=>({}),cC=new Map;function t2(e){let o=cC.get(e);if(o)return o;let t=new Set,r=Fo[e];if(r)for(let s of r.seeds(fC))for(let i of iC({type:r.childType,props:s}))t.add(i);let a=xs(e);if(a){let s=0;for(let i of iC(a(fC,f=>`${f}-${s+=1}`)))t.add(i)}t.delete(e);let n=[...t].sort();return cC.set(e,n),n}function r2(e){if(!e||!e.sets&&!e.allow&&!e.deny?.length)return null;let o=Nd(e),t=e.allow?new Set(e.allow):null,r=new Set(e.deny??[]),a=new Set(Object.keys(e.host??{})),n=f=>{if(r.has(f))return!1;if(a.has(f))return!0;let u=oC(f);return!u||!o[u]?!1:t?t.has(f):!0},s=new Map,i=f=>{let u=s.get(f);if(u!==void 0)return u;s.set(f,!1);let p=n(f)&&t2(f).every(i);return s.set(f,p),p};return{sets:o,offers:i}}var a2="block-offer";function Hd(e=dC()){return e.cache(a2,()=>r2(Mp(e)))}function uC(e,o=dC()){let t=Hd(o);return t?t.offers(e):!0}function pC(e,o=0){let t=l2(e,o),r=t?Hd():null;return t&&r?n2(t,r):t}function n2(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 l2(e,o){let t=Fo[e];if(t)return{source:"section",slot:t.slot,choices:null,spec:t};let r=nC(e,o);if(r)return{source:"container",slot:r.slot,choices:r.choices,spec:null};let a=py(e);return a?{source:"footer",slot:uy,choices:a,spec:null}:null}import{useSyncExternalStore as s2}from"react";var Wd=null,zd=new Set;function mC(e){if(Wd!==e){Wd=e;for(let o of zd)o()}}function i2(e){return zd.add(e),()=>{zd.delete(e)}}function pte(){return s2(i2,()=>Wd,()=>null)}function xC(e){return _r(e)?.ownerId??null}function IC(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 hC="sf-editor-left-view";function gC(){if(typeof window>"u")return"pages";try{let e=window.localStorage.getItem(hC);return e==="sections"||e==="styles"||e==="media"?e:"pages"}catch{return"pages"}}function bC(e){if(!(typeof window>"u"))try{window.localStorage.setItem(hC,e)}catch{}}function yC(e,o,t=!1){return e==="styles"&&!o||e==="media"&&!t?"sections":e}function SC(e,o){return e?"sections":o}var CC="Footer",f2=[He,CC,ue],kr=e=>{let o=e?.content;return Array.isArray(o)?o:[]},Bt=e=>{let o=e?.zones;return o&&typeof o=="object"&&!Array.isArray(o)?o:null},_a=e=>{let o=e?.props?.id;return typeof o=="string"?o:void 0},vC=e=>_r(e)?.ownerId??"";function wC(e){let o=gr(kr(e)),t=o.some(r=>r?.type===ue);return o.filter(r=>r?.type===He||r?.type===ue||r?.type===CC&&!t)}function Gd(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=_a(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(vC(s))||(n.add(s),r(i),a=!0)}}return t}function Ud(e,o){let t={},r={};for(let[a,n]of Object.entries(e??{}))(o.has(vC(a))?t:r)[a]=n;return{owned:t,rest:r}}function yte(e,o){if(!o)return e;let t=wC(o);if(!t.length)return e;let r=t.filter(i=>i.type===He),a=t.filter(i=>i.type!==He),n={...e,content:[...r,...kr(e),...a]},{owned:s}=Ud(Bt(o),Gd(t,Bt(o)));return Object.keys(s).length&&(n.zones={...Bt(e)??{},...s}),n}function Ste(e,o){if(!o)return{page:e,chrome:null};let t=wC(o),r=new Set(t.map(_a).filter(v=>!!v)),a=[],n=[];for(let v of kr(e)){let g=_a(v);g&&r.has(g)||hr(v?.type)?n.push(v):a.push(v)}let s=new Map(n.map(v=>[_a(v),v])),i=new Set,f=gr(kr(o)).flatMap(v=>{let g=_a(v);if(!g||!r.has(g))return[v];let y=s.get(g);return y?(i.add(y),[y]):[]});for(let v of n)i.has(v)||f.some(g=>g?.type===v.type)||(f=v.type===He?[v,...f]:[...f,v]);f=gr(f);let u=f.length===kr(o).length&&f.every((v,g)=>v===kr(o)[g]),p=Bt(e),m=Gd(f,p),{owned:x,rest:h}=Ud(p,m),b=Ud(Bt(o),Gd(t,Bt(o))).owned,S={...o,content:u?o.content:[...f]},w=Bt(o);if(w||Object.keys(x).length){let v={};for(let[g,y]of Object.entries(w??{}))g in b?g in x&&(v[g]=x[g]):v[g]=y;for(let[g,y]of Object.entries(x))g in v||(v[g]=y);S.zones=v,w&&c2(S.zones,w)&&(S.zones=w)}let F={...e,content:a};return p&&(Object.keys(h).length||!Object.keys(b).length?F.zones=h:delete F.zones),{page:F,chrome:S}}function c2(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 kC(e,o){return t=>e(t)||t!==void 0&&f2.includes(t)&&o()}var hs=null;function vte(e){hs=e}function TC(){return!!(hs&&hs.state().lockHolder)}function Tr(){return hs!==null}var d2=new Set(["BookingBox","SubmitBox"]);function u2(e){return typeof e=="string"&&d2.has(e)}var FC=kC(u2,TC);import{scrollPreviewToSection as cH,scrollPreviewToTop as VC}from"efficient-easel/screen/lib/puck/preview-dom";import{Fragment as qd,jsx as ys,jsxs as B2}from"react/jsx-runtime";import{useMemo as DC,useRef as NC}from"react";import{EaselCanvas as _2,useEaselApi as D2}from"efficient-easel/easel";import{jsx as RC,Fragment as S2,jsxs as C2}from"react/jsx-runtime";import{useEffect as AC,useLayoutEffect as v2}from"react";var gs="data-theme",EC="light";function p2(e){return e.getAttribute(gs)===EC?"light":"dark"}function m2(e,o){return p2(e)===o?!1:(o==="light"?e.setAttribute(gs,EC):e.removeAttribute(gs),!0)}function x2(e){return Rs(e).getItem(ks)}function Lte(e,o){Rs(e).setItem(ks,o)}function I2(e,o,t=new Date().getHours()){return Jd({mode:o.mode,override:x2(e),switchShown:o.switchShown,hour:t})}function PC(e,o){let t=e.documentElement;if(!t)return()=>{};let r=()=>m2(t,I2(e,o));r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[gs]}),()=>n.disconnect()}var h2="style";function g2(e,o){let t=su(o),r=!1;for(let a of lu){let n=t[a]??"";e.style.getPropertyValue(a)!==n&&(n?e.style.setProperty(a,n):e.style.removeProperty(a),r=!0)}return r}function LC(e,o){let t=e.body;if(!t)return()=>{};let r=()=>g2(t,o);r();let a=e.defaultView?.MutationObserver;if(!a)return()=>{};let n=new a(r);return n.observe(t,{attributes:!0,attributeFilter:[h2]}),()=>n.disconnect()}var b2=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);`,y2="storefront-fit-words";function OC(e){let o=e.createElement("script");return o.id=y2,o.textContent=b2,(e.head??e.documentElement).appendChild(o),()=>{e.__sfFitWords?.(),o.remove()}}var w2=`
242
+ [${fo}][${fo}] { cursor: text; }
243
+ [${je}][${je}][${je}] {
244
+ outline: 1px solid ${ga.accent};
245
+ outline-offset: 2px;
246
+ }
247
+ [${je}][${je}]:has([${je}]),
248
+ [data-puck-overlay-portal][data-puck-overlay-portal]:has([${je}]) {
249
+ outline: none;
250
+ }
251
+ [${je}][${je}][${je}][data-es-typing],
252
+ [data-es-typing] [${je}][${je}][${je}] {
253
+ outline: none;
254
+ }
255
+ `;function BC({children:e,document:o}){let{theme:t,themeMode:r,themeSwitchShown:a}=q(),n=Qe(t);return AC(()=>{if(o)return PC(o,{mode:r,switchShown:a})},[o,r,a]),AC(()=>{if(o)return LC(o,n)},[o,n]),v2(()=>{if(o)return OC(o)},[o]),C2(S2,{children:[RC(Nu,{}),RC("style",{children:w2}),e]})}import{jsx as $d}from"react/jsx-runtime";import{useEffect as k2,useState as T2}from"react";import{Banner as F2}from"efficient-shell/ui";var bs={load:"The header and footer could not load. They are hidden for now and nothing in them is saved. Reload to try again.",lock:"{name} is editing the header and footer. Nothing you change in them here is saved.",conflict:"The header and footer were changed somewhere else. Nothing you change in them here is saved. Reload to get the latest.",save:"The header and footer did not save. They are sent again with your next change."},E2=bs.load,P2=bs.lock,L2=bs.conflict,O2=bs.save;function R2(e){return e?e.loadFailed?l(E2):e.lockHolder?l(P2,{name:e.lockHolder.name||l("Somebody else")}):e.conflict?l(L2):e.saveFailed?l(O2):null:null}function A2({report:e}){let o=R2(us(e)),[t,r]=T2(null);return k2(()=>{o||r(null)},[o]),!o||t===o?null:$d("aside",{className:"sf-canvas-notice",children:$d(F2,{tone:"warning",onDismiss:()=>r(o),children:o})})}function _C(){return $d(A2,{report:ps()})}import{usePreviewParts as MC}from"efficient-easel/draw/client";import{useSectionOps as N2}from"efficient-easel/screen/lib/puck/use-section-ops";function M2({children:e,componentId:o}){let{selectedPartId:t}=MC();return _I(t,o)?ys(qd,{}):ys(qd,{children:e})}function HC(e){let{mirrorHostStyles:o}=Ns(),t=Hu(),{sectionBackgroundWidth:r,sectionContentWidth:a,themeFromDocument:n}=q(),s=DC(()=>({...e.metadata??t??{},...fx(n?null:r,n?null:a)}),[e.metadata,t,r,a,n]),i=NC(null),f=H2(i),{onDocument:u}=e,p=m=>{i.current=m,u?.(m)};return B2(qd,{children:[ys(_C,{}),ys(_2,{...e,onDocument:p,typing:f,metadata:s,height:"fill",mirrorStyles:o,frameWrapper:BC,overlay:M2})]})}function H2(e){let o=D2(),t=N2(),r=MC(),a=NC({ops:t,parts:r});return a.current={ops:t,parts:r},DC(()=>{let n={getItemById:i=>o.getState().getItemById(i),getSelectorForId:i=>o.getState().getSelectorForId(i),get components(){return o.getState().config.components},replace:(i,f,u)=>a.current.ops.replaceComponent(i,f,u)},s=(i,f)=>{let u=Nb(i,n);if(!u)return null;let p=f,m=()=>(p=Mb(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?Ul(Kb(x)):void 0}}:null};return{at:i=>{let f=i.closest(`[${fo}]`),u=f?.getAttribute(fo);return f&&u?s(u,f):null},atSelection:()=>{let i=a.current.parts.selectedPartId;return i?s(i,null):null},onChange:i=>{if(!i.typing){jc(null);return}let f=i.element.closest(`[${fo}]`)?.getAttribute(fo)??null;jc(f),f&&a.current.parts.selectedPartId!==f&&a.current.parts.select(f)}}},[o,e])}var WC={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 W2="Save your page changes first";function zC(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:W2}:{visible:!0,enabled:!0}:{visible:!1,hiddenReason:"no-site"}:{visible:!1,hiddenReason:"not-operator"}:{visible:!1,hiddenReason:"no-console"}}var GC="storefront-editor:save-as-template";var z2="plain",UC=[{label:"Plain",value:"plain"},{label:"Filled",value:"filled"},{label:"Line",value:"line"}],G2="line",U2={KeyFeatures:"filled"};function Da(e){return U2[e]??z2}function pre(e,o){return Je(UC,Da(o),e)}function mre(e){return Je(UC,G2,e)}var $2="inline",q2=[{label:"In this section",value:"inline"},{label:"In its own box",value:"own-box"}];var nt={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"}},Fr="SectionHeader";function $C(e){return e in nt}function gre(e){return Je(q2,$2,e)}var qC=new Set(["Flex"]);function bre(e){return!!e?.type&&qC.has(e.type)}var j2={not:{context:"parentType",in:[...qC]}};function yre(e,o,t){return Fl(e,t,j2)}var K2={not:{field:"headPlacement",is:"own-box"}};function Sre(e,o,t){return Fl(e,t,K2)}function jC(e,{nodeDefaults:o,newNodeId:t,sectionLabel:r,blockIsOffered:a}){let n=xs(e);return n?n(o,t):$C(e)&&a(be)&&a(Fr)?{type:be,props:{...o(be),id:t(be),direction:"column",name:`${r(e)} section`,content:[{type:Fr,props:{...o(Fr),id:t(Fr),...nt[e]?.headStyle?{headStyle:nt[e].headStyle}:{},...nt[e]?.headRowGap?{rowGap:nt[e].headRowGap}:{},...nt[e]?.headDescriptionSize?{descriptionSize:nt[e].headDescriptionSize}:{},...Da(e)!==Da(Fr)?{eyebrowLook:Da(e)}:{}}},{type:e,props:{...o(e),id:t(e),headPlacement:"own-box"}}]}}:Fo[e]?.fixed===!0?{type:e,props:{...o(e),id:t(e),layout:"boxes"}}:null}import{useEffect as V2,useState as Y2}from"react";import{useEaselSession as X2}from"efficient-easel/screen/lib/session-context";function KC(){let e=X2().chrome?.products?.list,[o,t]=Y2(null);return V2(()=>{if(!e)return;let r=!1;return e().then(a=>{r||t(a)}),()=>{r=!0}},[e]),o}function ev({mode:e,open:o}){let{setSelectedHeroId:t,setSelectHandler:r}=vl(),a=JC().tree,n=e,s=n.kind==="ticker"?n.heroId:null,i=Na(f=>{f&&(o({kind:"ticker",heroId:f}),cH(f))},[o]);return Eo(()=>{t(s)},[s,t]),Eo(()=>{r(i)},[r,i]),{partRows:(f,{rowClick:u})=>{let p=String(f.props.id);return f.type==="Hero"&&ve(QC,{icon:ve(Lt,{type:"ticker",size:13}),name:l(sa),onSelect:()=>i(p),selected:s===p,rowProps:{onClick:u(()=>i(p))},words:a})}}}function ov({mode:e,select:o}){let{setSelectedHeroPart:t,setSelectHandler:r}=wl(),a=JC().tree,{appState:n}=sH(x=>x),s=n.data.content??[],i=Z2(s);i.current=s;let f=e,u=ia.find(x=>fa[x]===f.kind),p=u&&"nodeId"in f?ca(String(f.nodeId),u):null,m=Na(x=>{let h=ag(x);if(!h)return;let b=i.current.findIndex(w=>String(w.props.id)===h.nodeId);if(b<0)return;let S={kind:fa[h.part],nodeId:h.nodeId};o({index:b},S)},[o]);return Eo(()=>{t(p)},[p,t]),Eo(()=>{r(m)},[r,m]),{partRows:(x,{rowClick:h})=>{let b=String(x.props.id),S=rg(x);if(S.length===0)return null;let w=g=>{let y=ca(b,g.part);return ve(QC,{icon:ve(Lt,{type:g.part==="media"?"heroMedia":"heroImage",size:13}),name:l(g.label),onSelect:()=>m(y),selected:p===y,rowProps:{onClick:h(()=>m(y))},words:a},y)},[F,...v]=S;return Ss(ZC,{children:[w(F),v.length>0&&ve(lH,{children:v.map(w)})]})}}}function tv(e,o){return{partRows:(t,r)=>Ss(ZC,{children:[e.partRows?.(t,r),o.partRows?.(t,r)]})}}function dH(e){let{adapter:o,capabilities:t,currentSlug:r,siteId:a,docId:n,hasUnsavedEdits:s,bridgeCapabilities:i,notifyParent:f,token:u}=Kd(),{hasPreviewLink:p}=t,m=Me(fH()).preview?.draftLink,x=JS(e.data),h=zC({hasTrustedConsole:!!u,canCreatePlatformTemplate:i.canCreatePlatformTemplate,capabilities:t,siteId:a,hasUnsavedEdits:s}),b=Na(()=>{!a||!r||f(GC,{siteId:a,slug:r})},[f,a,r]),S=US({pageSlug:r,siteId:a,token:u}),w=o.previewHref?.(r)??S;return{barLead:()=>h.visible&&ve(eH,{side:"bottom",content:h.enabled?l("Save this website as a platform template"):l(h.disabledReason),children:ve("span",{className:"sf-tip-disabled",tabIndex:h.enabled?void 0:0,children:ve(J2,{variant:"secondary",disabled:!h.enabled,onClick:b,rightIcon:ve(nH,{size:15}),children:l("Save as Template")})})}),barTrail:()=>p&&r&&ve(jS,{liveHref:w,pageId:n??null,draftLink:m}),mainAction:x}}function uH(e,o){let{capabilities:t,templateId:r,siteId:a,tokenRef:n,navigate:s}=Kd(),{hasSiteTheme:i,explainsSiteSettings:f}=t,u=F=>o.setView(F),[p,m]=Q2(rr[0].id),{surface:x,setSurface:h}=qh(),b=()=>{if(i){u("styles"),o.reveal(),VC();return}e.show(gd),e.reveal(),VC()},S={id:"pages",label:l("Pages"),icon:ve(tH,{}),panel:({onHide:F})=>ve(Nh,{activeSurface:x,onPreviewSurface:h,onNavigate:v=>{h(null),s(r?{kind:"template",id:r,pageSlug:v}:{kind:"page",slug:v,siteId:a??void 0})},onClose:F})},w=[];return!i&&f&&w.push({id:"appearance",label:l("Appearance"),icon:ve(aH,{}),active:e.kind==="website",onSelect:b}),i&&w.push({id:"styles",label:l("Site styles"),icon:ve(rH,{}),panel:({onHide:F,notify:v})=>ve(dS,{tokenRef:n,siteId:a??void 0,onClose:F,onNotify:v,tab:p,onTabChange:m})}),{railLead:[S],railTrail:w,resolveLeftView:(F,v)=>yC(F,i,v),openSettings:b,openStyles:()=>{m(Ih),u("styles")}}}function pH(e,o,t,r){let{kind:a,open:n}=e,{selected:s,zoneOf:i}=o;Eo(()=>{mC(s?.type==="BookingBox"&&s.props.region==="confirm"?xC(i(String(s.props.id))):null)},[s?.props.id]);let f=AS(e,o),{capabilities:{hasSiteSettings:u}}=Kd(),{setSelected:p,setSelectHandler:m}=q(),{chat:x,setChat:h,setSelected:b,setSelectHandler:S}=Cl(),w=a==="header";Eo(()=>{p(w)},[w,p]),Eo(()=>{m(()=>n(hd))},[m,n]);let F=Na(()=>n(oS),[n]),v=a==="chat";Eo(()=>{b(v)},[v,b]),Eo(()=>{S(F)},[S,F]);let{setOpenHandler:g}=la(),y=Na(()=>n(tS),[n]);Eo(()=>{g(y)},[g,y]);let P=tv(ev(e),ov(e)),k=dH(o),O=uH(e,r),E=t.device;return{...P,...k,...O,hasOwnRows:B=>B.type===cs,ownRows:f.renderLocationTree,sectionPressed:f.sectionPressed,wrap:B=>ve(Ms.Provider,{value:!0,children:ve(iH.Provider,{value:E,children:B})}),addPanelRow:B=>u?Ss("div",{className:"sf-addside-sitewide",children:[ve("span",{className:"sf-addside-sitewide-glyph","aria-hidden":"true",children:ve(Lt,{type:"chat",size:16})}),Ss("button",{type:"button",className:"sf-addside-sitewide-name",onClick:()=>{B(),F()},children:[l("Live chat"),ve("span",{className:"sf-addside-sitewide-desc",children:l("A chat bubble on every page")})]}),ve(oH,{checked:x.enabled,onChange:$=>h({enabled:$}),ariaLabel:l("Show the chat bubble on the whole site")})]}):void 0}}var YC=null,jd=new WeakMap;function mH(e){let o=wu();if(!e||!o)return e;YC!==o&&(YC=o,jd=new WeakMap);let t=jd.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},jd.set(e,t)),t}var xH={isLockedBlock:FC,duplicateBlocked:Ql,nestDepth:(e,o,t)=>o===Ja?rp(e,t):0,newSectionNode:jC,canAddTo:(e,o)=>mH(pC(e,o)),blockIsOffered:uC},IH=new Proxy(WC,{get:(e,o)=>{let t=Reflect.get(e,o);return typeof t=="string"?l(t):t}}),hH={labelAtLevel:(e,o,t)=>l(Dd(e,o,t)),descriptions:IH,categoryLabel:e=>{let o=tC(e);return o===void 0?void 0:l(o)},firstSection:rC,blockRowName:IC,plainText:gt,Icon:Lt,Thumbnail:cS,useProducts:KC},gH={desktop:2e3,tablet:800,mobile:390},XC="desktop",bH={options:zh,initial:XC,fluid:XC,widths:gH},yH={read:gC,write:e=>bC(e),forSelection:(e,o)=>SC(e,o)},SH={first:Ke,last:me,firstGroup:He,lastGroup:ue,isSectionGroup:hr,sectionGroupZone:my,panelOf:e=>e===Ke?hd:null,get groupTab(){return Tr()?yy:void 0},get groupBadge(){return Tr()?Sy():void 0},get changeNotice(){return Tr()?Cy():void 0},get band(){return Tr()?CH:void 0},get groupAccepts(){return Tr()?gy:void 0}},CH={foldable:!0};function vH(e){return{...tv(ev(e),ov(e)),openSettings:()=>e.show(gd)}}var Bae={useOwnerName:ar,useDocumentLabel:Ch,useBridges:pH,useStandaloneBridges:vH,useDocumentPass:MS,blockRules:xH,blockLook:hH,devices:bH,leftView:yH,pinned:SH,Canvas:HC,Inspector:aS};export{boe as a,yoe as b,Soe as c,Coe as d,at as e,Nd as f,Noe as g,Me as h,Mp as i,aC as j,Woe as k,QK as l,zg as m,aV as n,Kg as o,nV as p,Vg as q,Xg as r,Jg as s,eb as t,hV as u,gV as v,bV as w,yV as x,PB as y,ip as z,LV as A,Xa as B,iw as C,X5 as D,mt as E,Z5 as F,Q5 as G,Ja as H,rp as I,Yoe as J,Xoe as K,r2 as L,Ju as M,aw as N,G5 as O,Ya as P,ep as Q,nw as R,lw as S,sw as T,q5 as U,j5 as V,K5 as W,V5 as X,ec as Y,fR as Z,cR as _,dR as $,Fl as aa,El as ba,t9 as ca,He as da,ue as ea,jZ as fa,xy as ga,Iy as ha,Je as ia,nt as ja,gre as ka,bre as la,yre as ma,Sre as na,If as oa,D3 as pa,N3 as qa,ai as ra,gt as sa,Mr as ta,ol as ua,fo as va,je as wa,I7 as xa,i1 as ya,f1 as za,h7 as Aa,er as Ba,g7 as Ca,b7 as Da,Tf as Ea,KI as Fa,al as Ga,T7 as Ha,F7 as Ia,E7 as Ja,P7 as Ka,K1 as La,da as Ma,Tg as Na,Fg as Oa,Al as Pa,gK as Qa,bK as Ra,yK as Sa,SK as Ta,p5 as Ua,h5 as Va,g5 as Wa,b5 as Xa,Ce as Ya,ET as Za,Ni as _a,PT as $a,lz as ab,iz as bb,fz as cb,OT as db,cz as eb,rx as fb,Wi as gb,zi as hb,gz as ib,yz as jb,Sz as kb,Cz as lb,vz as mb,Kt as nb,Bo as ob,qi as pb,sx as qb,NT as rb,ji as sb,Tn as tb,Tz as ub,pn as vb,St as wb,zr as xb,dm as yb,eW as zb,O0 as Ab,oW as Bb,en as Cb,cp as Db,d3 as Eb,u3 as Fb,Ow as Gb,p3 as Hb,I3 as Ib,up as Jb,h3 as Kb,Aw as Lb,g3 as Mb,J0 as Nb,In as Ob,FW as Pb,Fi as Qb,EW as Rb,lT as Sb,PW as Tb,OW as Ub,RW as Vb,GW as Wb,UW as Xb,$W as Yb,vm as Zb,CW as _b,vW as $b,wW as ac,kW as bc,dT as cc,gn as dc,BW as ec,Rm as fc,wH as gc,Y as hc,l as ic,dt as jc,Kb as kc,Rl as lc,vX as mc,qb as nc,I6 as oc,dn as pc,Jp as qc,g6 as rc,S0 as sc,H6 as tc,lm as uc,D5 as vc,W5 as wc,Ks as xc,kw as yc,s3 as zc,S3 as Ac,fi as Bc,ci as Cc,S4 as Dc,C4 as Ec,Dp as Fc,v4 as Gc,w4 as Hc,k4 as Ic,Gp as Jc,$p as Kc,j6 as Lc,im as Mc,Re as Nc,Fu as Oc,EH as Pc,fv as Qc,PH as Rc,LH as Sc,Pu as Tc,AH as Uc,cv as Vc,BH as Wc,_H as Xc,uv as Yc,MH as Zc,pv as _c,HH as $c,Wt as ad,zH as bd,GH as cd,UH as dd,$H as ed,qa as fd,qH as gd,Iv as hd,QH as id,Bu as jd,gv as kd,bv as ld,yv as md,Cv as nd,vv as od,wv as pd,_s as qd,JH as rd,G0 as sd,yW as td,DW as ud,NW as vd,MW as wd,HW as xd,WW as yd,$m as zd,wT as Ad,jW as Bd,Gm as Cd,Um as Dd,KW as Ed,yn as Fd,Sn as Gd,YW as Hd,jt as Id,vn as Jd,QW as Kd,JW as Ld,ez as Md,Jm as Nd,tz as Od,Qo as Pd,No as Qd,Qi as Rd,vo as Sd,DG as Td,NG as Ud,MG as Vd,HG as Wd,UG as Xd,$G as Yd,eE as Zd,qG as _d,jG as $d,KG as ae,nE as be,VG as ce,YG as de,XG as ee,Be as fe,ZG as ge,iE as he,QG as ie,JG as je,Zt as ke,eU as le,Rn as me,Vt as ne,oU as oe,Gx as pe,_n as qe,Dn as re,tU as se,rU as te,aU as ue,nU as ve,lU as we,sU as xe,iU as ye,fU as ze,cU as Ae,dU as Be,uU as Ce,pU as De,Nn as Ee,mU as Fe,Mn as Ge,Hn as He,tf as Ie,Wn as Je,xU as Ke,wt as Le,IU as Me,hU as Ne,gU as Oe,bU as Pe,yU as Qe,SU as Re,CU as Se,vU as Te,Zo as Ue,wU as Ve,kU as We,zn as Xe,TU as Ye,rf as Ze,FU as _e,EU as $e,af,PU as bf,Yx as cf,Xx as df,Zx as ef,LU as ff,XE as gf,OU as hf,RU as if,hN as jf,Ay as kf,eo as lf,Fa as mf,yN as nf,My as of,PQ as pf,LQ as qf,OQ as rf,RQ as sf,AQ as tf,BQ as uf,_Q as vf,DQ as wf,NQ as xf,MQ as yf,HQ as zf,kl as Af,ZO as Bf,$q as Cf,qq as Df,oR as Ef,rR as Ff,jh as Gf,sR as Hf,Xq as If,Zq as Jf,Vh as Kf,Qq as Lf,Xh as Mf,Yh as Nf,f9 as Of,Sl as Pf,Sq as Qf,Cq as Rf,Cl as Sf,UO as Tf,Rq as Uf,la as Vf,Dq as Wf,qh as Xf,ioe as Yf,foe as Zf,coe as _f,doe as $f,yte as ag,Ste as bg,vte as cg,Hq as dg,Gq as eg,wl as fg,nee as gg,uS as hg,pS as ig,c5 as jg,_7 as kg,D7 as lg,N7 as mg,M7 as ng,qf as og,jf as pg,Jh as qg,d9 as rg,eg as sg,mR as tg,oc as ug,x9 as vg,I9 as wg,xR as xg,h9 as yg,ca as zg,ag as Ag,g9 as Bg,ng as Cg,Xj as Dg,ug as Eg,Fc as Fg,Ec as Gg,_A as Hg,DA as Ig,Pc as Jg,HA as Kg,ma as Lg,_l as Mg,EK as Ng,Bc as Og,NK as Pg,MK as Qg,HK as Rg,Mg as Sg,DB as Tg,NB as Ug,MB as Vg,NV as Wg,MV as Xg,qB as Yg,KB as Zg,mb as _g,jV as $g,KV as ah,Sb as bh,JV as ch,ga as dh,wb as eh,Wc as fh,kb as gh,Tb as hh,aY as ih,Fb as jh,i_ as kh,nY as lh,lY as mh,sY as nh,iY as oh,f_ as ph,fY as qh,cY as rh,dY as sh,d_ as th,uY as uh,m_ as vh,pY as wh,Gc as xh,DY as yh,ql as zh,OX as Ah,rD as Bh,Qb as Ch,aD as Dh,va as Eh,nD as Fh,lD as Gh,MX as Hh,ry as Ih,me as Jh,Zl as Kh,po as Lh,hS as Mh,gS as Nh,fee as Oh,Ra as Ph,bS as Qh,yS as Rh,uee as Sh,pee as Th,HS as Uh,Ld as Vh,WS as Wh,pC as Xh,pte as Yh,gs as Zh,p2 as _h,m2 as $h,Lte as ai,r5 as bi,s5 as ci,z2 as di,UC as ei,G2 as fi,Da as gi,pre as hi,mre as ii,Bae as ji};