PageSourceSearch

https://fourevamedia.com/_next/static/chunks/19377-916ee18dfe1fada3.js?dpl=dpl_DtPCZbPoZGXvTayFeF2JHvMH65Zh

js fourevamedia.com collected 2026-10-02 05:06:56 UTC 24,516 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunk_N_E=self.webpackChunk_N_E||[]).push([[19377],{119377:(e,t,a)=>{a.d(t,{Q:()=>B});var r=a(695155),s=a(664219),n=a(212115),l=a(745399),i=a(980642),o=a(450910),c=a(897233),d=a(576648),u=a(966088),b=a(86901),x=a(833210),f=a(168459),m=a(442763),h=a(929991),p=a(397019),g=a(931554),v=a(190679),k=a(140980),j=a(154107),y=a(415377),w=a(720772);let N=["arrow-right","chevron-right","arrow-up-right","external-link","zap","sparkles","rocket","send","play","check","star","heart","phone","mail","calendar","download","shield","lock","eye","target","trending-up","award","gift","crown"],C={small:"Small",medium:"Medium",large:"Large"},S={small:{gap:"0.5rem",padding:"0.625rem 1.25rem",fontSize:"0.875rem",lineHeight:"1.15",minHeight:"2.5rem"},medium:{gap:"0.625rem",padding:"0.875rem 1.75rem",fontSize:"1rem",lineHeight:"1.15",minHeight:"3.25rem"},large:{gap:"0.75rem",padding:"1.125rem 2.25rem",fontSize:"1.125rem",lineHeight:"1.15",minHeight:"3.75rem"}},A={small:"3.5rem",medium:"4.25rem",large:"4.75rem"},I="h-8 w-28 rounded-full border-transparent bg-[#f3f1ef]/80 px-3.5 text-xs font-semibold capitalize text-[#1a1a1a] shadow-none transition-colors hover:bg-[#ece9e5] data-[state=open]:bg-white data-[state=open]:shadow-sm dark:bg-white/[0.06] dark:text-[#f5f5f8] dark:hover:bg-white/[0.1] dark:data-[state=open]:bg-white/[0.08]",P="min-w-[7rem] rounded-2xl border-[#e1ddd8]/80 bg-white shadow-2xl shadow-black/10 dark:border-white/[0.08] dark:bg-[#171b22] dark:shadow-black/30",T="text-xs capitalize rounded-xl",F={left:"Left",center:"Center",right:"Right"};function $(e,t){return t.some(t=>t.value===e)||e.startsWith("#")||e.startsWith("/")&&!e.startsWith("//")&&e.includes("#")}let L=/^#[0-9A-Fa-f]{6}$/,R=/^#([0-9A-Fa-f])([0-9A-Fa-f])([0-9A-Fa-f])$/,z={black:"#000000",white:"#ffffff",transparent:"#ffffff"};function _(e,t){if(!e)return t;let a=e.trim();if(L.test(a))return a;let r=a.match(R);if(r)return`#${r[1]}${r[1]}${r[2]}${r[2]}${r[3]}${r[3]}`;let s=z[a.toLowerCase()];if(s)return s;let n=a.match(/^rgba?\(\s*(\d{1,3})\s*,\s*(\d{1,3})\s*,\s*(\d{1,3})/i);if(n){let e=e=>Math.max(0,Math.min(255,Number(e))).toString(16).padStart(2,"0");return`#${e(n[1])}${e(n[2])}${e(n[3])}`}return t}function E({value:e,onChange:t,anchors:a}){let s=(0,o.c)("website"),n=a.find(t=>t.value===e),l=e=>e.labelKey?s(e.labelKey):e.label,i=new Map;for(let e of a){let t=e.pagePath||e.value.split("#")[0],a=i.get(t)||[];a.push(e),i.set(t,a)}let c=n?`${n.pageTitle?`${n.pageTitle} \xb7 `:""}${l(n)}`:e||s("noSectionAnchor");return(0,r.jsxs)(h.l6,{value:e||"",onValueChange:t,children:[(0,r.jsx)(h.bq,{className:"h-10 text-sm rounded-xl bg-white dark:bg-white/5 dark:border-[#262b35] dark:text-white",children:(0,r.jsx)(h.yv,{placeholder:s("noSectionAnchor"),children:c})}),(0,r.jsx)(h.gC,{className:P,children:Array.from(i,([e,t])=>(0,r.jsxs)(h.s3,{children:[i.size>1&&(0,r.jsx)(h.TR,{children:t[0].pageTitle||e||s("sections")}),t.map(e=>(0,r.jsx)(h.eb,{value:e.value,children:l(e)},e.value))]},e))})]})}function B({open:e,onOpenChange:t,value:L,onSave:R,title:z="Edit Link",description:M="Set the destination for this button",funnels:H=[],accentColor:q="#4a9bbe",buttonText:D,badge:U,showStyleControls:K=!1,showAlignmentControls:Q=!1,showSizeControl:O=!0,onRemove:V,initialStyles:W,customSections:G,sectionAnchors:J,hideFunnels:X=!1,zIndex:Y,overlayStyle:Z,contentStyle:ee,primaryAction:et}){let ea=(0,o.c)("website.linkEditor"),er=(0,v.E)(),[es,en]=(0,n.useState)(L),[el,ei]=(0,n.useState)(D||""),[eo,ec]=(0,n.useState)(X?"custom":"funnel"),[ed,eu]=(0,n.use
1State)("full_page"),eb=(0,n.useRef)(null),ex=(0,n.useRef)(null),[ef,em]=(0,n.useState)(null),eh=(0,n.useId)(),ep=(0,n.useRef)(!1),[eg,ev]=(0,n.useState)(W?.bgColor||""),[ek,ej]=(0,n.useState)(W?.textColor||""),[ey,ew]=(0,n.useState)(W?.iconName??null),[eN,eC]=(0,n.useState)((0,y.ED)(W?.size)),[eS,eA]=(0,n.useState)((0,y.Sr)(W?.align)),[eI,eP]=(0,n.useState)(!1),[eT,eF]=(0,n.useState)(!1),[e$,eL]=(0,n.useState)({}),eR=(0,n.useMemo)(()=>{let e=J??er.sectionAnchors??(0,j.n)({includeTop:!0,customSections:G,isSectionAvailable:e=>!!G?.[e]});return e.filter((t,a)=>t.value&&e.findIndex(e=>e.value===t.value)===a)},[er.sectionAnchors,G,J]),ez=(0,n.useMemo)(()=>(0,w.FD)(es,H),[H,es]),e_=(0,n.useRef)(H);e_.current=H;let eE=(0,n.useRef)({value:L,buttonText:D,initialStyles:W,hideFunnels:X,sectionAnchors:eR});eE.current={value:L,buttonText:D,initialStyles:W,hideFunnels:X,sectionAnchors:eR};let eB=(0,n.useRef)(!1);(0,n.useEffect)(()=>{if(e&&!eB.current){let{value:e,buttonText:t,initialStyles:a,hideFunnels:r,sectionAnchors:s}=eE.current;ep.current=!1,en(e),ei(t||"");let n=(0,w.FD)(e,e_.current);eu(n&&(0,w.lq)(e,n)?"popup":"full_page"),ec($(e,s)?"section":r||!n&&e?"custom":"funnel"),ev(a?.bgColor||""),ej(a?.textColor||""),ew(a?.iconName??null),eC((0,y.ED)(a?.size)),eA((0,y.Sr)(a?.align)),eP(!1)}eB.current=e,e||(ep.current=!1)},[e]),(0,n.useEffect)(()=>{K&&eI&&a.e(45418).then(a.t.bind(a,732156,19)).then(e=>{let t={};for(let a of N){let r=a.split("-").map(e=>e.charAt(0).toUpperCase()+e.slice(1)).join(""),s=e.icons[r];if(s&&Array.isArray(s))try{let r=e.createElement(s);r.setAttribute("width","14"),r.setAttribute("height","14"),r.setAttribute("stroke","currentColor");let n=document.createElement("div");n.appendChild(r),t[a]=n.innerHTML}catch{}}eL(t)})},[K,eI]),(0,n.useEffect)(()=>{e&&"custom"===eo&&setTimeout(()=>eb.current?.focus(),100)},[e,eo]);let eM=()=>{R(es,el||void 0,K?{bgColor:eg,textColor:ek,iconName:ey,...O?{size:eN}:{},...Q?{align:eS}:{},funnelId:ez?.id??null}:void 0),t(!1)},eH=e=>{"Enter"===e.key&&(e.preventDefault(),eM())},eq=(0,n.useCallback)(e=>{ex.current=e,em(e)},[]);return(0,r.jsx)(m.lG,{open:e,onOpenChange:t,children:(0,r.jsxs)(m.Cf,{ref:eq,zIndex:Y,overlayStyle:Z,style:ee,className:"sm:max-w-md font-[family-name:var(--font-albert-sans)]",hideCloseButton:!0,children:[(0,r.jsx)(m.c7,{children:(0,r.jsxs)("div",{className:"flex items-center gap-2.5",children:[(0,r.jsx)("div",{className:"w-9 h-9 rounded-xl flex items-center justify-center",style:{backgroundColor:`${q}18`},children:(0,r.jsx)(c.A,{className:"w-4.5 h-4.5",style:{color:q}})}),(0,r.jsxs)("div",{className:"flex-1",children:[(0,r.jsxs)("div",{className:"flex items-center gap-2",children:[(0,r.jsx)(m.L3,{className:"text-lg font-semibold",children:z}),U&&(0,r.jsx)("span",{className:"text-[10px] font-semibold uppercase tracking-wider px-2 py-0.5 rounded-full text-white",style:{backgroundColor:q},children:U})]}),(0,r.jsx)(m.rr,{className:"text-[13px] text-[#5f5a55] dark:text-[#b2b6c2]",children:M})]})]})}),(0,r.jsxs)("div",{className:"space-y-4 pt-2",children:[et?.enabled&&(0,r.jsx)("div",{className:(0,k.cn)("rounded-2xl border p-3 transition-colors",et.isPrimary?"border-brand-accent/35 bg-brand-accent/10":"border-[#e1ddd8] bg-[#f8f6f4] dark:border-[#262b35] dark:bg-[#1e222a]"),children:(0,r.jsxs)("div",{className:"flex items-center gap-3",children:[(0,r.jsx)("div",{className:"flex h-9 w-9 shrink-0 items-center justify-center rounded-xl",style:{backgroundColor:`${q}18`,color:q},children:(0,r.jsx)(d.A,{className:"h-4 w-4"})}),(0,r.jsxs)("div",{className:"min-w-0 flex-1",children:[(0,r.jsx)("p",{className:"text-sm font-semibold text-[#1a1a1a] dark:text-[#f5f5f8]",children:et.isPrimary?"Primary action":et.label||"Set as primary action"}),(0,r.jsx)("p",{className:"mt-0.5 text-xs leading-snug text-[#6f6762] dark:text-[#b2b6c2]",children:et.description||"This button becomes the main action for this funnel step."})]}),et.isPrimary?(0,r.jsx)("span",{className:"shrink-0 rounded-full bg-brand-accent px-2.5 py-1 text-[11px] font-semibold text-white",children:"Main"}):(0,r.jsx)("button",{type:"button",onClick:et.onSetPrimary,disabled:!et.onSetPrimary,className:"shrink-0 rounded-full border border-[#d8d2cc] bg-white px-3 py-1.5 text-xs font-semibold text-[#1a1a1a] transition-colors hover:border-brand-accent hover:text-brand-accent disabled:cursor-not-allowed disabled:opacity-50 dark:border-[#333947] dark:bg-[#171b22] dark:text-white",children:"Set primary"})]})}),K&&(eg||ek||ey)&&(0,r.jsx)("div",{className:"flex items-center overflow-visible px-4 py-3 bg-[#f8f6f4] dark:bg-[#1e222a] rounded-xl",style:{justifyContent:Q?(0,y.A5)(eS):"center",minHeight:A[eN]},children:(0,r.jsxs)("span",{className:(0,k.cn)("inline-flex max-w-full shrink-0 items-center justify-center rounded-lg font-medium text-center",(0,y.SA)(eN)),style:{...S[eN],backgroundColor:eg||"#3b82f6",boxSizing:"border-box",color:ek||"#ffffff",whiteSpace:"normal"},children:[ey&&e$[ey]&&(0,r.jsx)("span",{style:{color:ek||"#ffffff"},dangerouslySetInnerHTML:{__html:e$[ey]}}),el||"Button"]})}),void 0!==D&&(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("label",{className:"text-xs font-medium text-[#5f5a55] dark:text-[#b2b6c2] uppercase tracking-wider",children:"Text"}),(0,r.jsx)("input",{type:"text",value:el,onChange:e=>{ep.current=!0,ei(e.target.value)},onKeyDown:eH,placeholder:"Button text",className:"w-full px-4 py-2.5 text-sm border border-[#e1ddd8] dark:border-[#262b35] rounded-xl focus:outline-none focus:border-brand-accent transition-colors bg-white dark:bg-[#1d222b] text-[#1a1a1a] dark:text-[#f5f5f8]"})]}),(0,r.jsxs)("div",{className:"space-y-1.5",children:[(0,r.jsx)("label",{className:"text-xs font-medium text-[#5f5a55] dark:text-[#b2b6c2] uppercase tracking-wider",children:"URL"}),(0,r.jsxs)("div",{className:"rounded-2xl border border-[#e1ddd8] dark:border-[#262b35] bg-white/60 dark:bg-[#171b22]/50 overflow-hidden",children:[(0,r.jsxs)("div",{className:"flex gap-1 p-1.5 border-b border-[#e8e5e1] dark:border-[#262b35]",children:[!X&&(0,r.jsxs)("button",{type:"button",onClick:()=>{ep.current=!0,ec("funnel")},className:(0,k.cn)("relative flex-1 overflow-hidden px-3 py-1.5 text-xs font-medium rounded-lg transition-colors","funnel"===eo?"text-[#1a1a1a] dark:text-[#f5f5f8]":"text-[#5f5a55] dark:text-[#b2b6c2] hover:text-[#1a1a1a] dark:hover:text-[#f5f5f8]"),children:["funnel"===eo?(0,r.jsx)(l.P.span,{layoutId:eh,className:"absolute inset-0 rounded-lg bg-[#f3f1ef] dar
1k:bg-[#262b35]",transition:{type:"spring",stiffness:420,damping:34}}):null,(0,r.jsx)("span",{className:"relative z-10",children:"Funnel"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{ep.current=!0,ec("section"),$(es,eR)||en(eR[0]?.value||"#")},className:(0,k.cn)("relative flex-1 overflow-hidden px-3 py-1.5 text-xs font-medium rounded-lg transition-colors","section"===eo?"text-[#1a1a1a] dark:text-[#f5f5f8]":"text-[#5f5a55] dark:text-[#b2b6c2] hover:text-[#1a1a1a] dark:hover:text-[#f5f5f8]"),children:["section"===eo?(0,r.jsx)(l.P.span,{layoutId:eh,className:"absolute inset-0 rounded-lg bg-[#f3f1ef] dark:bg-[#262b35]",transition:{type:"spring",stiffness:420,damping:34}}):null,(0,r.jsx)("span",{className:"relative z-10",children:"Section"})]}),(0,r.jsxs)("button",{type:"button",onClick:()=>{ep.current=!0,ec("custom"),setTimeout(()=>eb.current?.focus(),100)},className:(0,k.cn)("relative flex-1 overflow-hidden px-3 py-1.5 text-xs font-medium rounded-lg transition-colors","custom"===eo?"text-[#1a1a1a] dark:text-[#f5f5f8]":"text-[#5f5a55] dark:text-[#b2b6c2] hover:text-[#1a1a1a] dark:hover:text-[#f5f5f8]"),children:["custom"===eo?(0,r.jsx)(l.P.span,{layoutId:eh,className:"absolute inset-0 rounded-lg bg-[#f3f1ef] dark:bg-[#262b35]",transition:{type:"spring",stiffness:420,damping:34}}):null,(0,r.jsx)("span",{className:"relative z-10",children:"Custom"})]})]}),(0,r.jsx)("div",{className:"p-3",children:(0,r.jsxs)(i.N,{mode:"wait",initial:!1,children:["funnel"===eo?(0,r.jsx)(l.P.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.18,ease:[.4,0,.2,1]},children:H.length>0?(0,r.jsxs)("div",{className:"space-y-2.5",children:[(0,r.jsxs)(h.l6,{value:ez?.id||"",onValueChange:e=>{let t=H.find(t=>t.id===e);if(!t)return;ep.current=!0;let a=ez?.id===t.id?ed:"full_page";eu(a),en((0,w.QB)(t,a))},children:[(0,r.jsx)(h.bq,{className:"h-10 text-sm rounded-xl bg-white dark:bg-white/5 dark:border-[#262b35] dark:text-white",children:(0,r.jsx)(h.yv,{placeholder:"Select a funnel..."})}),(0,r.jsx)(h.gC,{className:P,children:H.map(e=>(0,r.jsx)(h.eb,{value:e.id,children:e.name},e.id))})]}),(0,r.jsx)(g.FunnelPresentationSelect,{show:!!ez,value:ed,description:"",className:"border-transparent bg-transparent p-0 shadow-none backdrop-blur-none dark:border-transparent dark:bg-transparent",onChange:e=>{let t=(0,w.TP)(e);eu(t),ez&&(ep.current=!0,en((0,w.QB)(ez,t)))}})]}):(0,r.jsx)("div",{className:"text-center py-3 text-[#5f5a55] dark:text-[#b2b6c2] text-sm",children:"No funnels available. Create a funnel first."})},"funnel"):null,"section"===eo?(0,r.jsx)(l.P.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.18,ease:[.4,0,.2,1]},children:(0,r.jsx)(E,{value:es,onChange:e=>{ep.current=!0,en(e)},anchors:eR})},"section"):null,"custom"===eo?(0,r.jsxs)(l.P.div,{initial:{opacity:0,y:8},animate:{opacity:1,y:0},exit:{opacity:0,y:-8},transition:{duration:.18,ease:[.4,0,.2,1]},children:[(0,r.jsx)("input",{ref:eb,type:"text",value:es,onChange:e=>{ep.current=!0,en(e.target.value)},onKeyDown:eH,placeholder:"/page-url or https://example.com",className:"w-full px-4 py-2.5 text-sm border border-[#e1ddd8] dark:border-[#262b35] rounded-xl focus:outline-none focus:border-brand-accent transition-colors bg-white dark:bg-[#1d222b] text-[#1a1a1a] dark:text-[#f5f5f8]",style:{borderColor:es?q:void 0}}),(0,r.jsx)("div",{className:"mt-4",children:(0,r.jsx)(s.O,{enabled:e,onSelect:e=>{ep.current=!0,en(e.url)}})})]},"custom"):null]})})]})]}),K&&(0,r.jsxs)("div",{className:"border border-[#e1ddd8] dark:border-[#262b35] rounded-xl overflow-hidden",children:[(0,r.jsxs)("button",{onClick:()=>eP(!eI),className:"w-full flex items-center justify-between px-4 py-2.5 text-xs font-medium text-[#5f5a55] dark:text-[#b2b6c2] uppercase tracking-wider hover:bg-[#f8f6f4] dark:hover:bg-[#1e222a] transition-colors",children:[(0,r.jsx)("span",{children:"Style"}),(0,r.jsx)(u.A,{className:(0,k.cn)("w-3.5 h-3.5 transition-transform duration-200",eI&&"rotate-180")})]}),(0,r.jsx)("div",{className:"grid transition-all duration-200 ease-in-out",style:{gridTemplateRows:eI?"1fr":"0fr"}
1,children:(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsxs)("div",{className:"px-4 pb-4 pt-4 border-t border-[#e8e5e1] dark:border-[#262b35]",children:[(O||Q)&&(0,r.jsxs)("div",{className:"mb-4 space-y-2.5",children:[O?(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("label",{className:"font-albert text-[13px] font-medium text-[#5f5a55] dark:text-[#b2b6c2]",children:"Size"}),(0,r.jsxs)(h.l6,{value:eN,onValueChange:e=>{ep.current=!0,eC((0,y.ED)(e))},children:[(0,r.jsx)(h.bq,{className:I,children:(0,r.jsx)(h.yv,{})}),(0,r.jsx)(h.gC,{className:P,children:y.oU.map(e=>(0,r.jsx)(h.eb,{value:e,className:T,children:C[e]},e))})]})]}):null,Q?(0,r.jsxs)("div",{className:"flex items-center justify-between gap-3",children:[(0,r.jsx)("label",{className:"font-albert text-[13px] font-medium text-[#5f5a55] dark:text-[#b2b6c2]",children:"Alignment"}),(0,r.jsxs)(h.l6,{value:eS,onValueChange:e=>{ep.current=!0,eA((0,y.Sr)(e))},children:[(0,r.jsx)(h.bq,{className:I,children:(0,r.jsx)(h.yv,{})}),(0,r.jsx)(h.gC,{className:P,children:y.MG.map(e=>(0,r.jsx)(h.eb,{value:e,className:T,children:F[e]},e))})]})]}):null]}),(0,r.jsxs)("div",{className:"grid grid-cols-3 gap-3 place-items-center",children:[(0,r.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,r.jsx)("label",{className:"font-albert text-[10px] font-medium uppercase tracking-wider text-[#9c9791] dark:text-[#6b6f7b]",children:"Fill"}),(0,r.jsx)(p.ColorPicker,{value:_(eg,"#3b82f6"),onChange:e=>{ep.current=!0,ev(e)},portalContainer:ef})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,r.jsx)("label",{className:"font-albert text-[10px] font-medium uppercase tracking-wider text-[#9c9791] dark:text-[#6b6f7b]",children:"Text"}),(0,r.jsx)(p.ColorPicker,{value:_(ek,"#ffffff"),onChange:e=>{ep.current=!0,ej(e)},portalContainer:ef})]}),(0,r.jsxs)("div",{className:"flex flex-col items-center gap-1.5",children:[(0,r.jsx)("label",{className:"font-albert text-[10px] font-medium uppercase tracking-wider text-[#9c9791] dark:text-[#6b6f7b]",children:"Icon"}),(0,r.jsxs)("div",{className:"relative",children:[(0,r.jsx)("button",{type:"button",onClick:()=>{ep.current=!0,eF(!eT)},title:ey||"Choose icon",style:ey&&eg?{backgroundColor:eg}:void 0,className:(0,k.cn)("group flex h-14 w-14 items-center justify-center rounded-2xl border-2 bg-white text-[#5f5a55] shadow-sm transition-all duration-200","hover:scale-[1.02] hover:shadow-md active:scale-[0.98]","dark:bg-[#11141b] dark:text-[#b2b6c2]",ey?"border-brand-accent/40 hover:border-brand-accent/60":"border-[#e1ddd8]/60 hover:border-[#c9c3bc] dark:border-[#313746]/60 dark:hover:border-[#4a5066]"),children:ey&&e$[ey]?(0,r.jsx)("span",{className:"[&_svg]:h-5 [&_svg]:w-5",style:{color:ek||q},dangerouslySetInnerHTML:{__html:e$[ey]}}):(0,r.jsx)(b.A,{className:"h-5 w-5"})}),ey&&(0,r.jsx)("button",{type:"button",onClick:e=>{e.stopPropagation(),ep.current=!0,ew(null)},"aria-label":"Remove icon",title:"Remove icon",className:"absolute -right-1.5 -top-1.5 flex h-5 w-5 items-center justify-center rounded-full border border-[#e1ddd8] bg-white text-[#5f5a55] shadow-sm transition-all hover:scale-110 hover:bg-red-50 hover:text-red-500 hover:border-red-200 active:scale-95 dark:border-[#3a4150] dark:bg-[#1e222a] dark:text-[#b2b6c2] dark:hover:bg-red-500/15 dark:hover:text-red-400 dark:hover:border-red-500/30",children:(0,r.jsx)(x.A,{className:"h-3 w-3"})})]})]})]}),(0,r.jsx)("div",{className:"grid transition-all duration-200 ease-in-out",style:{gridTemplateRows:eT?"1fr":"0fr"},children:(0,r.jsx)("div",{className:"overflow-hidden",children:(0,r.jsx)("div",{className:"mt-3 rounded-xl border border-[#e1ddd8] bg-[#f8f6f4] p-2 dark:border-[#262b35] dark:bg-[#1e222a]",children:(0,r.jsx)("div",{className:"grid grid-cols-8 gap-1",children:N.map(e=>(0,r.jsx)("button",{type:"button",onClick:()=>{ep.current=!0,ew(e),eF(!1)},title:e,className:(0,k.cn)("flex h-9 w-9 items-center justify-center rounded-lg transition-all active:scale-[0.92]",e===ey?"bg-brand-accent/10 text-brand-accent ring-1 ring-brand-accent/30":"text-[#5f5a55] hover:bg-white dark:text-[#b2b6c2] dark:hover:bg-white/5"),dangerouslySetInnerHTML:{__html:e$[e]||""}},e))})})})})]})})})]}),(0,r.jsxs)("div",{className:"flex items-center gap-3 justify-end pt-1",children:[V&&(0,r.jsxs)("button",{type:"button",onClick:()=>{V(),t(!1)},className:"mr-auto inline-flex items-center gap-2 rounded-xl px-3 py-2 font-albert text-sm font-medium text-red-600 transition-colors hover:bg-red-50 dark:text-red-400 dark:hover:bg-red-950/20",children:[(0,r.jsx)(f.A,{className:"h-4 w-4"}),ea(K?"removeButton":"removeLink")]}),(0,r.jsx)("button",{onClick:()=>t(!1),className:"px-4 py-2 text-sm font-medium text-[#5f5a55] dark:text-[#b2b6c2] hover:text-[#1a1a1a] dark:hover:text-[#f5f5f8] hover:bg-[#f3f1ef] dar
1k:hover:bg-[#262b35] rounded-xl transition-colors",children:"Cancel"}),(0,r.jsx)("button",{onClick:eM,className:"px-5 py-2 text-sm font-medium text-white rounded-xl transition-colors hover:opacity-90",style:{backgroundColor:q},children:"Save"})]})]})]})})}},154107:(e,t,a)=>{a.d(t,{n:()=>c});var r=a(773085);let s=[{sectionId:"problems",label:"Problems",value:"#problems"},{sectionId:"painPoints",label:"Pain Points",value:"#pain-points"},{sectionId:"solutions",label:"Solutions",value:"#solutions"},{sectionId:"method",label:"Method",value:"#method"},{sectionId:"caseStudies",label:"Case Studies",value:"#case-studies"},{sectionId:"coach",label:"About",value:"#coach"},{sectionId:"services",label:"Services",value:"#services"},{sectionId:"programs",label:"Programs",value:"#programs"},{sectionId:"resources",label:"Resources",value:"#resources"},{sectionId:"testimonials",label:"Testimonials",value:"#testimonials"},{sectionId:"trustpilot",label:"Reviews",value:"#trustpilot"},{sectionId:"pricing",label:"Pricing",value:"#pricing"},{sectionId:"booking",label:"Booking",value:"#booking"},{sectionId:"newsletter",label:"Newsletter",value:"#newsletter"},{sectionId:"substackFeed",label:"Substack Feed",value:"#substackFeed"},{sectionId:"substackSignup",label:"Substack Signup",value:"#substackSignup"},{sectionId:"faqs",label:"FAQ",value:"#faqs"},{sectionId:"blog",label:"Blog",value:"#blog"},{sectionId:"contact",label:"Contact",value:"#contact"},{sectionId:"location",label:"Location",value:"#location"},{sectionId:"cta",label:"CTA Banner",value:"#cta"}],n={hero:"sectionHero",trustLogos:"sectionTrustLogos",problems:"sectionProblems",painPoints:"sectionPainPoints",solutions:"sectionSolutions",method:"sectionCurriculum",caseStudies:"sectionCaseStudies",coach:"sectionAboutCoach",services:"sectionServices",programs:"sectionPrograms",resources:"sectionResources",testimonials:"sectionTestimonials",trustpilot:"sectionTrustpilot",pricing:"sectionPricing",booking:"sectionBooking",newsletter:"sectionNewsletter",substackFeed:"sectionSubstackFeed",substackSignup:"sectionSubstackSignup",faqs:"sectionFAQs",blog:"sectionBlog",contact:"sectionContact",location:"sectionLocation",cta:"sectionFinalCTA",custom:"customSection"},l={method:["Curriculum"],coach:["About Coach","Coach Bio"],faqs:["FAQ","FAQs"],cta:["Call to Action","Final CTA"],trustpilot:["Trustpilot Reviews"]};function i(e){return"string"!=typeof e?"":e.replace(/<[^>]*>/g," ").replace(/&nbsp;/gi," ").replace(/&amp;/gi,"&").replace(/&lt;/gi,"<").replace(/&gt;/gi,">").replace(/&quot;/gi,'"').replace(/&#(?:39|x27);/gi,"'").replace(/\s+/g," ").trim()}function o(e,t,a){!a.value||t.has(a.value)||(t.add(a.value),e.push(a))}function c({sections:e,sectionOrder:t,sectionVisibility:a,sectionLabels:d,customSections:u,includeTop:b=!1,includeCustom:x=!0,isSectionAvailable:f}){let m=[],h=new Set;if(b&&o(m,h,{label:"Top of Page",labelKey:"topOfPage",value:"#"}),Array.isArray(e)){let t=new Set;for(let c of e){let e=c.sectionType,b=t.has(e);if(t.add(e),"navigation"===e||"footer"===e||"hero"===e&&!b||"custom"===e&&!x||!1===c.visible||a?.[c.id]===!1||a?.[e]===!1||f&&!f(c.id)||!f&&!(0,r.$0)(c))continue;let p=s.find(t=>t.sectionId===e),g=u?.[c.id],v=i(c.content._label)||i(d?.[c.id])||i(g?.label),k=[e,p?.label,...l[e]||[]],j="custom"!==e&&k.some(e=>e?.toLowerCase()===v.toLowerCase()),y=i(c.content.headline)||i(c.content.heading)||i(c.content.title),w=(j?y:v)||y,N="custom"===e||b?c.id:p?.value.slice(1)||e;o(m,h,{label:w||p?.label||e,...!w?{labelKey:n[e]}:{},value:`#${N}`})}return m}for(let r of s){if(!(f?f(r.sectionId):function(e,{sections:t,sectionOrder:a,sectionVisibility:r}){if(Array.isArray(t)){let a=t.find(t=>t.id===e||t.sectionType===e);return!!a&&!1!==a.visible&&r?.[a.id]!==!1&&r?.[a.sectionType]!==!1}return r?.[e]!==!1&&(!Array.isArray(a)||!(a.length>0)||a.includes(e)||r?.[e]===!0)}(r.sectionId,{sections:e,sectionOrder:t,sectionVisibility:a})))continue;let s=i(d?.[r.sectionId]);o(m,h,{label:s||r.label,value:r.value,...!s?{labelKey:n[r.sectionId]}:{}})}if(!x||!u)return m;for(let[e,r]of Object.entries(u)){if(!(f?f(e):a?.[e]!==!1&&(!t?.length||t.includes(e))))continue;let s=r.label?.trim();if(!s)continue;let n=r.slug||e;n&&o(m,h,{label:s,value:`#${n}`})}return m}},190679:(e,t,a)=>{a.d(t,{E:()=>i,u:()=>l});
1var r=a(695155),s=a(212115);let n=s.createContext({funnels:[],accentColor:"#a07855",defaultBgColor:"#a07855",defaultTextColor:"#ffffff"});function l({value:e,children:t}){return(0,r.jsx)(n.Provider,{value:e,children:t})}function i(){return s.useContext(n)}},664219:(e,t,a)=>{a.d(t,{O:()=>i});var r=a(695155),s=a(450910),n=a(826230),l=a(929991);function i({enabled:e=!0,onSelect:t}){let a=(0,s.c)("commerce"),{data:o}=(0,n.f)(e?"/api/coach/physical-products":null),c=o?.products.filter(e=>"active"===e.status)||[];return o?.shopUrl&&c.length?(0,r.jsxs)("div",{className:"space-y-2 font-albert",children:[(0,r.jsxs)("p",{className:"text-sm font-medium",children:[a("shop")," · ",a("products")]}),(0,r.jsxs)(l.l6,{value:"",onValueChange:e=>{let r=c.find(t=>t.id===e);t(r?{url:`${o.shopUrl}/products/${r.id}`,title:r.name,imageUrl:r.imageUrl}:{url:o.shopUrl,title:a("shop")})},children:[(0,r.jsx)(l.bq,{"aria-label":a("chooseShopLink"),children:(0,r.jsx)(l.yv,{placeholder:a("chooseShopLink")})}),(0,r.jsxs)(l.gC,{children:[(0,r.jsx)(l.eb,{value:"shop",children:a("shop")}),c.map(e=>(0,r.jsx)(l.eb,{value:e.id,children:e.name},e.id))]})]})]}):null}}}]);

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.