PageSourceSearch

https://featherless.ai/_nuxt/DBYhDhhO.js

js featherless.ai collected 2026-09-24 18:28:13 UTC 6,858 bytes, 1 lines download raw bytes

1import{_ as M}from"./CKuPrOTA.js";import{I as N}from"./D9N4QPNq.js";import{P as I,aN as d,x as _,y as a,M as i,bm as s,bd as y,bK as p,L as f,v as C,eI as k,r as u,u as S,hH as W,eP as X,aw as U,eT as Y,w as D,eH as G,aF as J,hI as Q,fz as Z,F as A,an as ee,fB as te,aW as L}from"./uKV8ELha.js";import{u as ne}from"./DDJ1CAhg.js";import{_ as se}from"./DJXZLyGp.js";import{_ as ae,a as oe,b as ie,c as re}from"./DVd7eX9v.js";import{_ as le}from"./B483Al3u.js";import{_ as ue}from"./BO5fhVK3.js";import{X as de}from"./CUtc0oBR.js";try{let e=typeof window<"u"?window:typeof global<"u"?global:typeof globalThis<"u"?globalThis:typeof self<"u"?self:{},o=new e.Error().stack;o&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[o]="07ff98a4-18d5-400f-9f10-6f259bbe51dc",e._sentryDebugIdIdentifier="sentry-dbid-07ff98a4-18d5-400f-9f10-6f259bbe51dc")}catch{}const ce={key:0,class:"bg-amber-500 text-white py-3 px-4"},me={class:"container mx-auto flex items-center justify-between"},pe={class:"flex items-center gap-4"},fe={class:"flex flex-col gap-0.5"},_e={class:"font-semibold text-sm"},ye={class:"flex items-center gap-3 text-xs opacity-90"},ve=I({__name:"impersonation-banner",props:{active:{type:Boolean,default:!1},email:{default:null},userId:{default:null},planName:{default:null}},emits:["stop"],setup(e){return(o,t)=>{const l=M;return e.active?(d(),_("div",ce,[a("div",me,[a("div",pe,[i(s(N),{icon:"lucide:user-cog",class:"h-5 w-5"}),a("div",fe,[a("span",_e," Impersonating: "+y(e.email),1),a("div",ye,[a("span",null,"ID: "+y(e.userId),1),a("span",null,"Plan: "+y(e.planName??"No subscription"),1)])])]),i(l,{variant:"ghost",size:"sm",class:"text-white hover:bg-amber-600 hover:text-white",onClick:t[0]||(t[0]=v=>o.$emit("stop"))},{default:p(()=>[i(s(N),{icon:"lucide:x",class:"h-4 w-4 mr-1"}),t[1]||(t[1]=f(" Stop Impersonating ",-1))]),_:1})])])):C("",!0)}}}),Te=I({__name:"site-impersonation-banner",setup(e){const o=k(),{user:t,isImpersonated:l,impersonateAsUserId:v,getUser:g}=o,c=u(()=>t.value?.active_organization?.current_subscription?.plan?.name??null);async function b(){try{v.value=null,await g(!0),W()}catch{X({title:"Error",description:"Failed to stop impersonating",variant:"destructive"})}}return(x,m)=>{const $=ve;return d(),S($,{active:s(l),email:s(t)?.email,"user-id":s(t)?.id,"plan-name":s(c),onStop:b},null,8,["active","email","user-id","plan-name"])}}}),ge={class:"mx-auto flex min-h-10 max-w-7xl flex-wrap items-center justify-center gap-x-2.5 gap-y-1 px-4 py-2 text-center text-[13px] leading-5 sm:text-sm"},be=["disabled"],xe={key:0},he={key:1},we="Verify your email to finish setting up your account.",$e=I({__name:"email-verification-banner",props:{active:{type:Boolean,default:!1},isLast:{type:Boolean,default:!0},isResending:{type:Boolean,default:!1},resendCooldown:{default:0}},emits:["resend"],setup(e){return(o,t)=>e.active?(d(),_("div",{key:0,class:U(["bg-primary text-primary-foreground",{"rounded-b-2xl lg:rounded-b-lg":e.isLast}])},[a("div",ge,[a("span",null,y(we)),a("button",{type:"button",class:"font-medium underline underline-offset-4 hover:opacity-70 disabled:pointer-events-none disabled:opacity-60",disabled:e.isResending||e.resendCooldown>0,onClick:t[0]||(t[0]=l=>o.$emit("resend"))},[e.resendCooldown>0?(d(),_("span",xe,"Resend in "+y(e.resendCooldown)+"s",1)):(d(),_("span",he,"Resend email"))],8,be)])],2)):C("",!0)}}),Ve=I({__name:"site-email-verification-banner",props:{isLast:{type:Boolean,default:!0}},emits:["visibilityChange"],setup(e,{emit:o}){const t=k(),l=Y(),v=o,{isResendingEmail:g,resendCooldown:c,resendVerificationEmail:b}=ne({cooldownSeconds:30}),x=u(()=>l.fullPath||"/account"),m=u(()=>t.isAuthenticated.value&&t.user.value?.email_verified!==!0&&l.path!=="/account/verify-email");D(m,h=>v("visibilityChange",h),{immediate:!0});async function $(){await b({returnTo:x.value})}return(h,B)=>{const w=$e;return d(),S(w,{active:s(m),"is-last":e.isLast,"is-resending":s(g),"resend-cooldown":s(c),onResend:$},null,8,["active","is-last","is-resending","resend-cooldown"])}}}),Ce={class:"flex min-h-10 items-center justify-center px-12 py-2"},Ie={class:"flex flex-wrap items-center justify-center gap-x-2.5 gap-y-1 text-center text-[13px] leading-5 sm:text-sm"},De={class:"inline-flex items-center gap-2.5"},Ee=I({__name:"payment-overdue-banner",props:{isLast:{type:Boolean,default:!0}},emits:["visibilityChange"],setup(e,{emit:o}){const t=k(),l=G(),v=o,g=u(()=>t.user.value?.active_organization?.current_subscription),c=u(()=>g.value?.status==="past_due"),b=L({amount_due:null,currency:null});async function x(){if(c.value&&t.isAuthenticated.value)try{b.value=await l.subscription.overdue()}catch(r){console.error("Failed to fetch overdue amount:",r)}}J(()=>{c.value&&x()}),D(c,r=>{r&&x()});const m=u(()=>{const r=b.value?.amount_due;return r==null?null:(r/100).toFixed(2)}),$=u(()=>t.user.value?`payment-overdue-dismissed-${t.user.value.id}`:"payment-overdue-dismissed"),h=Q($.value,!1);D(()=>g.value?.status,(r,n)=>{r==="past_due"&&n!=="past_due"&&(h.value=!1)});const B=u(()=>t.isAuthenticated.value&&c.value&&!h.value);D(B,r=>v("visibilityChange",r),{immediate:!0});const w=L(!1),R=Z(),P=u(()=>`${R.origin}/account/payment-method-added?redirect=${encodeURIComponent(R.pathname)}`);async function T(){w.value=!1,await t.getUser(!0)}function V(){h.value=!0}return(r,n)=>{const E=se,z=re,F=le,j=ie,O=te,H=oe,q=ae;return s(B)?(d(),_("div",{key:0,class:U(["relative bg-primary text-primary-foreground",{"rounded-b-2xl lg:rou
1nded-b-lg":e.isLast}])},[a("div",Ce,[a("div",Ie,[a("span",null,[n[1]||(n[1]=f(" Your subscription payment is overdue",-1)),s(m)?(d(),_(A,{key:0},[f(" ($"+y(s(m))+")",1)],64)):C("",!0),n[2]||(n[2]=f(". Update your payment method to restore access. ",-1))]),a("div",De,[i(q,{open:s(w),"onUpdate:open":n[0]||(n[0]=K=>ee(w)?w.value=K:null)},{default:p(()=>[i(E,{"as-child":""},{default:p(()=>[...n[3]||(n[3]=[a("button",{type:"button",class:"font-medium underline underline-offset-4 hover:opacity-70"}," Resolve payment ",-1)])]),_:1}),i(H,{scrollable:"",class:"my-8"},{default:p(()=>[i(j,null,{default:p(()=>[i(z,null,{default:p(()=>[...n[4]||(n[4]=[f("Resolve Overdue Payment",-1)])]),_:1}),i(F,null,{default:p(()=>[n[6]||(n[6]=f(" Choose a payment method or add a new one to settle your overdue balance",-1)),s(m)?(d(),_(A,{key:0},[n[5]||(n[5]=f(" of ",-1)),a("strong",null,"$"+y(s(m)),1)],64)):C("",!0),n[7]||(n[7]=f(". ",-1))]),_:1})]),_:1}),i(O,null,{default:p(()=>[i(ue,{"return-url":s(P),onSuccess:T},null,8,["return-url"])]),_:1})]),_:1})]),_:1},8,["open"])])])]),a("button",{class:"absolute right-4 top-1/2 flex size-7 -translate-y-1/2 items-center justify-center rounded-full text-primary-foreground transition hover:bg-primary-foreground/10","aria-label":"Dismiss banner",onClick:V},[i(s(de),{class:"h-4 w-4"})])],2)):C("",!0)}}});export{Te as _,Ve as a,Ee as b};

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.