PageSourceSearch

https://desk.bigvu.tv/chunk-ILB5B4RS.js

js bigvu.tv collected 2026-10-01 10:23:51 UTC 3,330 bytes, 6 lines download raw bytes

1
2!function(){try{var e="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof globalThis?globalThis:"undefined"!=typeof self?self:{},n=(new e.Error).stack;n&&(e._sentryDebugIds=e._sentryDebugIds||{},e._sentryDebugIds[n]="f722b7e3-cc7a-5c5a-b10b-0464a96f0801")}catch(e){}}();
3import{a as R}from"./chunk-W7VYE7BD.js";import{Hd as B,Id as M,be as L,ce as V,fa as S,ga as w,ia as O}from"./chunk-EHJF6UKK.js";import{D as x,l as v,y as T}from"./chunk-W7MJW6UT.js";import{Ja as u,Jb as a,Lc as _,Nc as r,Ua as m,Va as o,Wa as n,Yc as b,Zd as N,ec as C,f as p,gd as y,hc as d,ma as c,ra as H,sa as I,tc as h,uc as g,zc as f}from"./chunk-7RQO36LL.js";import{m as l}from"./chunk-7Q6MBNO6.js";x();H();I();O();N();M();V();x();function $(s,j){if(s&1){let t=f();h(0,"app-credits-button",2,0),_("click",function(){o(t);let e=b(1),k=r();return n(k.onHostClick(e))})("buyCredits",function(){o(t);let e=r();return n(e.onBuyCredits())}),g()}if(s&2){let t=r();d("remainingCredits",t.remainingCredits)("totalCredits",t.totalCredits)("loading",t.isLoading)("tooltipText",t.tooltipText)}}var J=(()=>{class s{constructor(t,i){this.creditsService=t,this.eventsService=i,this.remainingCredits=0,this.totalCredits=null,this.isLoading=!1,this.tooltipText="",this.latestResponse=null,this.unsubscribe$=new p,this.loadCredits=()=>l(this,null,function*(){try{this.isLoading=!this.hasCredits;let e=yield this.creditsService.getCreditsUsage();e&&this.applyResponse(e)}catch(e){console.error("[header-credits] failed to load credits",e)}finally{this.isLoading=!1}})}ngOnInit(){this.creditsService.creditsResponse$.pipe(c(this.unsubscribe$)).subscribe(t=>{t&&this.applyResponse(t)}),this.loadCredits()}ngOnChanges(){this.updateTooltip()}get hasCredits(){return this.totalCredits!=null}onBuyCredits(){this.creditsService.openCreditsOtpDialog({paywallTrigger:S.navBar,triggerType:w.topup})}onHostClick(t){t.isOpen&&this.eventsService.log(this.eventsService.events.homepage.projectsScreenClick,{area:"top-bar",button:"credits"})}applyResponse(t){this.latestResponse=t,this.remainingCredits=this.creditsService.getRemainingCredits(t),this.totalCredits=t?.credits?.total??null,this.updateTooltip()}updateTooltip(){if(!this.latestResponse||!this.featureName||!this.model){this.tooltipText="";return}this.tooltipText=this.creditsService.formatModelCostTooltip({response:this.latestResponse,featureName:this.featureName,model:this.model,modelLabel:this.modelLabel})}ngOnDestroy(){this.unsubscribe$.next(),this.unsubscribe$.complete()}static{this.\u0275fac=function(i){return new(i||s)(a(B),a(L))}}static{this.\u0275cmp=u({type:s,selectors:[["app-header-credits-button"]],inputs:{featureName:"featureName",model:"model",modelLabel:"modelLabel"},standalone:!0,features:[m,y],decls:1,vars:1,consts:[["creditsBtn",""],[3,"remainingCredits","totalCredits","loading","tooltipText","click","buyCredits",4,"ngIf"],[3,"click","buyCredits","remainingCredits","totalCredits","loading","tooltipText"]],template:function(i,e){i&1&&C(0,$,2,4,"app-credits-button",1),i&2&&d("ngIf",e.hasCredits||e.isLoading)},dependencies:[T,v,R],styles:["[_nghost-%COMP%]{display:inline-flex;align-items:center}"]})}}return s})();export{J as a};
4/**i18n:a22416d48d5d315853b2ff30dd429c3cf66bb88014970864ad6c2ff7ea890e29*/
5
6//# debugId=f722b7e3-cc7a-5c5a-b10b-0464a96f0801

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.