import{i as e,n as t}from"./rolldown-runtime-ConPGZeh.js";import{Dr as n,Lr as r,Nn as i,Qn as a,Rr as o,Sr as s,Xn as c,Zn as l,li as u,or as d,rr as f}from"./vendor-primevue-D1-E3-0M.js";import{at as p,cn as m,fn as h,it as g,on as _}from"./vendor-other-CT05lTmi.js";import{hn as v,mn as y}from"./api-DvJuMrZn.js";import{n as b,t as x}from"./Button-DXEyozJJ.js";import{an as S,ho as C,mo as w,on as T}from"./dialogService-DIdX_hbW.js";var E,D=t((()=>{i(),m(),g(),b(),w(),y(),S(),E=d({__name:`SubscribeToRun`,setup(e){let{t}=p(),i=h(_).greaterOrEqual(`md`),d=c(()=>i.value?t(`subscription.subscribeToRunFull`):t(`subscription.subscribeToRun`)),{showSubscriptionDialog:m}=C(),handleSubscribeToRun=()=>{v&&T()?.trackRunButton({subscribe_to_run:!0}),m()};return(e,t)=>{let i=n(`tooltip`);return o((s(),a(x,{class:`subscribe-to-run-button whitespace-nowrap`,variant:`primary`,size:`sm`,style:{background:`var(--color-subscription-button-gradient)`,color:`var(--color-white)`,borderColor:`transparent`},"data-testid":`subscribe-to-run-button`,onClick:handleSubscribeToRun},{default:r(()=>[t[0]||=l(`i`,{class:`pi pi-lock`},null,-1),f(` `+u(d.value),1)]),_:1})),[[i,{value:e.$t(`subscription.subscribeToRunFull`),showDelay:600},void 0,{bottom:!0}]])}}})})),O,k=t((()=>{D(),D(),O=E}));export{k as n,O as t};
//# sourceMappingURL=SubscribeToRun-6Gm2ERds.js.map