1import{a as _t}from"./chunk-2QSAI6KA.js";import"./chunk-HVLO3SGC.js";import"./chunk-TKJJQVX7.js";import{a as dt,b as pt}from"./chunk-IXD6ECVB.js";import"./chunk-EONF3GVN.js";import"./chunk-KYVCMV2E.js";import"./chunk-HWZZ5RQT.js";import"./chunk-ZNR7QNVV.js";import"./chunk-QI7CEGT6.js";import"./chunk-6ND7557V.js";import{D as st,b as J,c as Q,g as Z,l as tt,n as et,t as it,u as nt,v as at,w as ot,x as rt,z as lt}from"./chunk-FOJCKIWO.js";import{a as ct}from"./chunk-NBMUSEX4.js";import"./chunk-3AIY57KH.js";import"./chunk-K5O3OQFW.js";import"./chunk-2DRXLVRR.js";import"./chunk-G3G5OK6Q.js";import"./chunk-AERMLNF3.js";import"./chunk-QHMYZ6SM.js";import"./chunk-PJPLTBJX.js";import"./chunk-DLIVM562.js";import"./chunk-CV2ZWZQE.js";import"./chunk-H4HD3LNW.js";import"./chunk-AQEWHUN5.js";import{d as H,e as X}from"./chunk-YQZAETCE.js";import{x as K}from"./chunk-EO42E46J.js";import{h as G}from"./chunk-3QVSKJ3X.js";import{I as j,c as Y,p as q}from"./chunk-ERUCNOOT.js";import{$b as w,Cc as E,Dc as I,Ec as P,F as h,Fa as N,Ib as V,Jb as S,Lb as M,Qb as m,Qc as d,Rc as p,Tb as A,Ub as B,V as T,Vb as a,Wb as o,Xb as g,Z as k,_a as L,da as O,db as n,f as R,fc as v,gc as c,l as b,la as f,ma as x,sb as z,tc as r,uc as C,vc as _,wc as F,xc as $,y as U,yb as y}from"./chunk-DBE7WQEG.js";import"./chunk-W7GRJBO5.js";var W=class i{http=O(G);starsBase="/api/stars";coinsBase="/api/coins";getStarBalance(){return this.http.get(`${this.starsBase}/balance`)}getStarPayoutEligibility(){return this.http.get(`${this.starsBase}/payout-eligibility`)}requestStarPayout(e){return this.http.post(`${this.starsBase}/payout`,{starAmount:e})}getStarPayouts(e=1,t=20){return this.http.get(`${this.starsBase}/payouts`,{params:{page:String(e),limit:String(t)}})}getFiscalInfo(){return this.http.get(`${this.starsBase}/fiscal-info`)}updateFiscalInfo(e){return this.http.put(`${this.starsBase}/fiscal-info`,e)}getStripeConnectStatus(){return this.http.get(`${this.starsBase}/creator-connect/status`)}createStripeConnectLink(){return this.http.post(`${this.starsBase}/creator-connect/onboard`,{source:"web"})}createStripeDashboardLink(){return this.http.post(`${this.starsBase}/creator-connect/dashboard-link`,{})}getCoinBalance(){return this.http.get(`${this.coinsBase}/balance`)}getCoinTransactions(e=1,t=20,s){let l={page:String(e),limit:String(t)};return s&&(l.kind=s),this.http.get(`${this.coinsBase}/transactions`,{params:l})}getGiftSeries(e,t){return this.http.get(`${this.coinsBase}/gift-series`,{params:{direction:e,days:String(t)}})}getCoinPacks(){return this.http.get(`${this.coinsBase}/packs`)}createCoinCheckoutSession(e,t){return this.http.post(`${this.coinsBase}/create-checkout-session`,{productId:e,returnUrl:t})}static \u0275fac=function(t){return new(t||i)};static \u0275prov=k({token:i,factory:i.\u0275fac,providedIn:"root"})};var D=(i,e)=>e.id,gt=(i,e)=>e.value;function Ct(i,e){i&1&&g(0,"app-widget-loading")}function ft(i,e){if(i&1){let t=w();a(0,"button",40),v("click",function(){f(t);let l=c(4);return x(l.connectStripe())}),g(1,"i",32),r(2),d(3,"translate"),o()}if(i&2){let t=c(4);S("disabled",t.connectingStripe),n(),S("ngClass",t.connectingStripe?"pi-spin pi-spinner":"pi-link"),n(),_(" ",p(3,3,"STUDIO.WALLET.CONNECT_STRIPE")," ")}}function xt(i,e){if(i&1){let t=w();a(0,"button",41),v("click",function(){f(t);let l=c(4);return x(l.showFiscalForm=!0)}),g(1,"i",42),r(2),d(3,"translate"),o()}i&2&&(n(2),_(" ",p(3,1,"STUDIO.WALLET.FILL_FISCAL")," "))}function St(i,e){if(i&1&&(a(0,"div",35),g(1,"i",36),a(2,"span"),r(3),d(4,"translate"),o()(),a(5,"div",37),y(6,ft,4,5,"button",38)(7,xt,4,3,"button",39),o()),i&2){let t=c(3);n(3),C(p(4,3,t.eligibilityMessageKey)),n(3),m(t.needsStripeConnect?6:-1),n(),m(t.needsFiscalInfo?7:-1)}}function yt(i,e){if(i&1){let t=w();a(0,"button",43),v("click",function(){f(t);let l=c(3);return x(l.openPayoutForm())}),g(1,"i",44),r(2),d(3,"translate"),o()}i&2&&(n(2),_(" ",p(3,1,"STUDIO.WALLET.REQUEST_PAYOUT")," "))}function bt(i,e){i&1&&(a(0,"div",23),g(1,"i",45),a(2,"span"),r(3),d(4,"translate"),o()()),i&2&&(n(3),C(p(4,1,"STUDIO.WALLET.PAYOUT_SUCCESS")))}function ht(i,e){if(i&1&&(a(0,"div",50),g(1,"i",51),a(2,"span"),r(3),d(4,"translate"),o()()),i&2){let t=c(4);n(3),C(p(4,1,t.payoutError))}}function vt(i,e){if(i&1){let t=w();a(0,"div",24)(1,"label",46)(2,"span",47),r(3),d(4,"translate"),o(),a(5,"input",48),P("ngModelChange",function(l){f(t);let u=c(3);return I(u.payoutStars,l)||(u.payoutStars=l),x(l)}),o(),a(6,"span",49),r(7),d(8,"translate"),o()(),y(9,ht,5,3,"div",50),a(10,"div",37)(11,"button",40),v("click",function(){f(t);let l=c(3);return x(l.submitPayout())}),g(12,"i",32),r(13),d(14,"translate"),o(),a(15,"button",41),v("click",function(){f(t);let l=c(3);return x(l.closePayoutForm())}),r(16),d(17,"translate"),o()()()}if(i&2){let t=c(3);n(3),C(p(4,13,"STUDIO.WALLET.PAYOUT_AMOUNT")),n(2),S("min",t.minStars)("max",t.maxStars)("step",100),E("ngModel",t.payoutStars),n(2),$(" ",p(8,15,"STUDIO.WALLET.PAYOUT_MIN")," ",t.formatNumber(t.minStars)," \u2B50 \xB7 \u2248 ",t.formatEur(t.payoutEurPreview(t.payoutStars))," "),n(2),m(t.payoutError?9:-1),n(2),S("disabled",t.submittingPayout),n(),S("ngClass",t.submittingPayout?"pi-spin pi-spinner":"pi-check"),n(),_(" ",p(14,17,"STUDIO.WALLET.CONFIRM")," "),n(3),_(" ",p(17,19,"STUDIO.WALLET.CANCEL")," ")}}function Tt(i,e){i&1&&(a(0,"div",26),g(1,"i",52),o())}function wt(i,e){i&1&&(a(0,"div",27),r(1),d(2,"translate"),o()),i&2&&(n(),_(" ",p(2,1,"STUDIO.WALLET.NO_DATA")," "))}function Et(i,e){if(i&1&&(a(0,"li",54)(1,"div",56)(2,"span",57),r(3),o(),a(4,"span",58),r(5),o()(),a(6,"span",59),r(7),d(8,"translate"),o()()),i&2){let t=e.$implicit,s=c(4);n(3),C(s.formatCurrency(t.eurAmountCents)),n(2),F(" ",s.formatNumber(t.starAmount)," \u2B50 \xB7 ",s.formatDate(t.requestedAt)," "),n(),S("ngClass","badge--"+t.status),n(),C(p(8,5,s.payoutStatusKey(t.status)))}}function It(i,e){if(i&1){let t=w();a(0,"p-paginator",60),v("onPageChange",function(l){f(t);let u=c(4);return x(u.onPayoutsPageChange(l))}),o()}if(i&2){let t=c(4);S("first",t.payoutsFirst)("rows",t.pageSize)("totalRecords",t.payoutsTotal)}}function Pt(i,e){if(i&1&&(a(0,"ul",53),A(1,Et,9,7,"li",54,D),o(),y(3,It,1,3,"p-paginator",55)),i&2){let t=c(3);n(),B(t.payouts),n(2),m(t.payoutsTotal>t.pageSize?3:-1)}}function Ot(i,e){i&1&&(a(0,"div",23),g(1,"i",45),a(2,"span"),r(3),d(4,"translate"),o()()),i&2&&(n(3),C(p(4,1,"
1STUDIO.WALLET.FISCAL.COMPLETE")))}function Lt(i,e){if(i&1&&(a(0,"option",64),r(1),d(2,"translate"),o()),i&2){let t=e.$implicit;S("value",t.value),n(),_(" ",p(2,2,t.label)," ")}}function At(i,e){if(i&1&&(a(0,"div",50),g(1,"i",51),a(2,"span"),r(3),d(4,"translate"),o()()),i&2){let t=c(4);n(3),C(p(4,1,t.fiscalError))}}function Bt(i,e){i&1&&(a(0,"div",23),g(1,"i",45),a(2,"span"),r(3),d(4,"translate"),o()()),i&2&&(n(3),C(p(4,1,"STUDIO.WALLET.FISCAL.SAVED")))}function Ft(i,e){if(i&1){let t=w();a(0,"div",33)(1,"p",61),r(2),d(3,"translate"),o(),a(4,"div",62)(5,"label",46)(6,"span",47),r(7),d(8,"translate"),o(),a(9,"select",63),P("ngModelChange",function(l){f(t);let u=c(3);return I(u.fiscalForm.type,l)||(u.fiscalForm.type=l),x(l)}),A(10,Lt,3,4,"option",64,gt),o()(),a(12,"label",46)(13,"span",47),r(14),d(15,"translate"),o(),a(16,"input",65),P("ngModelChange",function(l){f(t);let u=c(3);return I(u.fiscalForm.country,l)||(u.fiscalForm.country=l),x(l)}),o()(),a(17,"label",66)(18,"span",47),r(19),d(20,"translate"),o(),a(21,"input",67),P("ngModelChange",function(l){f(t);let u=c(3);return I(u.fiscalForm.legalName,l)||(u.fiscalForm.legalName=l),x(l)}),o()(),a(22,"label",46)(23,"span",47),r(24),d(25,"translate"),o(),a(26,"input",67),P("ngModelChange",function(l){f(t);let u=c(3);return I(u.fiscalForm.identifier,l)||(u.fiscalForm.identifier=l),x(l)}),o()(),a(27,"label",46)(28,"span",47),r(29),d(30,"translate"),o(),a(31,"input",68),P("ngModelChange",function(l){f(t);let u=c(3);return I(u.fiscalForm.dateOfBirth,l)||(u.fiscalForm.dateOfBirth=l),x(l)}),o()(),a(32,"label",66)(33,"span",47),r(34),d(35,"translate"),o(),a(36,"input",67),P("ngModelChange",function(l){f(t);let u=c(3);return I(u.fiscalForm.address,l)||(u.fiscalForm.address=l),x(l)}),o()()(),a(37,"label",69)(38,"input",70),P("ngModelChange",function(l){f(t);let u=c(3);return I(u.fiscalCertified,l)||(u.fiscalCertified=l),x(l)}),o(),a(39,"span"),r(40),d(41,"translate"),o()(),y(42,At,5,3,"div",50)(43,Bt,5,3,"div",23),a(44,"button",40),v("click",function(){f(t);let l=c(3);return x(l.saveFiscal())}),g(45,"i",32),r(46),d(47,"translate"),o()()}if(i&2){let t=c(3);n(2),_(" ",p(3,20,"STUDIO.WALLET.FISCAL.INTRO")," "),n(5),C(p(8,22,"STUDIO.WALLET.FISCAL.ENTITY_TYPE")),n(2),E("ngModel",t.fiscalForm.type),n(),B(t.entityTypes),n(4),C(p(15,24,"STUDIO.WALLET.FISCAL.COUNTRY")),n(2),E("ngModel",t.fiscalForm.country),n(3),C(p(20,26,"STUDIO.WALLET.FISCAL.LEGAL_NAME")),n(2),E("ngModel",t.fiscalForm.legalName),n(3),C(p(25,28,"STUDIO.WALLET.FISCAL.TAX_ID")),n(2),E("ngModel",t.fiscalForm.identifier),n(3),C(p(30,30,"STUDIO.WALLET.FISCAL.BIRTH_DATE")),n(2),E("ngModel",t.fiscalForm.dateOfBirth),n(3),C(p(35,32,"STUDIO.WALLET.FISCAL.ADDRESS")),n(2),E("ngModel",t.fiscalForm.address),n(2),E("ngModel",t.fiscalCertified),n(2),C(p(41,34,"STUDIO.WALLET.FISCAL.CERTIFY")),n(2),m(t.fiscalError?42:-1),n(),m(t.fiscalSuccess?43:-1),n(),S("disabled",t.savingFiscal),n(),S("ngClass",t.savingFiscal?"pi-spin pi-spinner":"pi-save"),n(),_(" ",p(47,36,"STUDIO.WALLET.FISCAL.SAVE")," ")}}function Wt(i,e){i&1&&(a(0,"div",26),g(1,"i",52),o())}function Vt(i,e){i&1&&(a(0,"div",27),r(1),d(2,"translate"),o()),i&2&&(n(),_(" ",p(2,1,"STUDIO.WALLET.NO_DATA")," "))}function Mt(i,e){if(i&1&&g(0,"img",72),i&2){let t=c().$implicit;S("src",t.counterpart.avatarUrl,L)}}function Dt(i,e){if(i&1&&(a(0,"span",73),r(1),o()),i&2){let t=c().$implicit;n(),C(((t.counterpart==null?null:t.counterpart.displayName)||"?").charAt(0))}}function Rt(i,e){if(i&1&&g(0,"img",74),i&2){let t=c().$implicit;S("src",t.gift.thumbnailUrl,L)}}function Ut(i,e){if(i&1&&r(0),i&2){let t=c(2).$implicit;_(" \u{1F3A5} ",t.counterpart.displayName," \xB7 ")}}function kt(i,e){if(i&1&&(a(0,"span",57),r(1),d(2,"translate"),o(),a(3,"span",58),y(4,Ut,1,1),r(5),o()),i&2){let t=c().$implicit,s=c(4);n(),C(t.description||p(2,3,s.txTypeKey(t.type))),n(3),m(t.counterpart!=null&&t.counterpart.displayName?4:-1),n(),_(" ",s.formatDate(t.createdAt)," ")}}function Nt(i,e){if(i&1&&r(0),i&2){let t=c(3).$implicit;_(" \xD7 ",t.gift.quantity," ")}}function zt(i,e){if(i&1&&(r(0),y(1,Nt,1,1),r(2," \xB7 ")),i&2){let t=c(2).$implicit;_(" ",t.gift.name," "),n(),m(t.gift!=null&&t.gift.quantity&&t.gift.quantity>1?1:-1)}}function $t(i,e){if(i&1&&(a(0,"span",57),r(1),d(2,"translate"),o(),a(3,"span",58),y(4,zt,3,2),r(5),o()),i&2){let t=c().$implicit,s=c(4);n(),C((t.counterpart==null?null:t.counterpart.displayName)||p(2,3,s.txTypeKey(t.type))),n(3),m(t.gift!=null&&t.gift.name?4:-1),n(),_(" ",s.formatDate(t.createdAt)," ")}}function Yt(i,e){if(i&1&&(a(0,"li",54)(1,"div",71),y(2,Mt,1,1,"img",72)(3,Dt,2,1,"span",73)(4,Rt,1,1,"img",74),o(),a(5,"div",56),y(6,kt,6,5)(7,$t,6,5),o(),a(8,"span",75),r(9),o()()),i&2){let t=e.$implicit,s=c(4);n(2),m(t.counterpart!=null&&t.counterpart.avatarUrl?2:3),n(2),m(t.gift!=null&&t.gift.thumbnailUrl?4:-1),n(2),m(t.type==="bundle_creator_fee"?6:7),n(2),S("ngClass",s.txAmountClass(t)),n(),F(" ",s.txValue(t,"stars")>0?"+":"","",s.formatNumber(s.txValue(t,"stars"))," \u2B50 ")}}function Gt(i,e){if(i&1){let t=w();a(0,"p-paginator",60),v("onPageChange",function(l){f(t);let u=c(4);return x(u.onStarTransactionsPageChange(l))}),o()}if(i&2){let t=c(4);S("first",t.starTransactionsFirst)("rows",t.pageSize)("totalRecords",t.starTransactionsTotal)}}function qt(i,e){if(i&1&&(a(0,"ul",53),A(1,Yt,10,6,"li",54,D),o(),y(3,Gt,1,3,"p-paginator",55)),i&2){let t=c(3);n(),B(t.starTransactions),n(2),m(t.starTransactionsTotal>t.pageSize?3:-1)}}function jt(i,e){if(i&1){let t=w();a(0,"section",7)(1,"div",8)(2,"div",9)(3,"span",10),r(4,"\u2B50"),o(),a(5,"span",11),r(6),d(7,"translate"),o()(),a(8,"div",12),r(9),o(),a(10,"div",13),r(11),o()()(),a(12,"div",14)(13,"div",15)(14,"h2",16),g(15,"i",17),r(16),d(17,"translate"),o(),a(18,"div",18)(19,"div",19)(20,"span",20),r(21),d(22,"translate"),o(),a(23,"span",21),r(24),o()(),a(25,"div",19)(26,"span",20),r(27),d(28,"translate"),o(),a(29,"span",21),r(30),o()()(),y(31,St,8,5)(32,yt,4,3,"button",22)(33,bt,5,3,"div",23)(34,vt,18,21,"div",24),o()(),a(35,"div",14)(36,"div",15)(37,"h2",16),g(38,"i",25),r(39),d(40,"translate"),o(),y(41,Tt,2,0,"div",26)(42,wt,3,3,"div",27)(43,Pt,4,1),o()(),a(44,"div",14)(45,"div",15)(46,"div",28)(47,"h2",29),g(48,"i",30),r(49),d(50,"translate"),o(),a(51,"button",31),v("click",function(){f(t);let l=c(2);return x(l.toggleFiscalForm())}),g(52,"i",32),r(53),d(54,"translate"),o()(),y(55,Ot,5,3,"div",23)(56,Ft,48,38,"div",33),o()(),a(57,"div",14)(58,"div",15)(59,"app-widget-period-chart",34),v("peri
1odChange",function(l){f(t);let u=c(2);return x(u.onReceivedPeriod(l))}),o()()(),a(60,"div",14)(61,"div",15)(62,"h2",16),g(63,"i",17),r(64," \xC9toiles re\xE7ues "),o(),y(65,Wt,2,0,"div",26)(66,Vt,3,3,"div",27)(67,qt,4,1),o()()}if(i&2){let t=c(2);n(6),C(p(7,23,"STUDIO.WALLET.STARS")),n(3),_(" ",t.formatNumber(t.starBalance==null?null:t.starBalance.starBalance)," "),n(2),_(" \u2248 ",t.formatCurrency(t.starBalance==null?null:t.starBalance.starBalanceEurCents)," "),n(5),_(" ",p(17,25,"STUDIO.WALLET.STARS_SECTION")," "),n(5),C(p(22,27,"STUDIO.WALLET.TOTAL_EARNED")),n(3),C(t.formatNumber(t.starBalance==null?null:t.starBalance.totalStarsEarned)),n(3),C(p(28,29,"STUDIO.WALLET.TOTAL_PAID")),n(3),C(t.formatCurrency(t.starBalance==null?null:t.starBalance.totalEurPaidOutCents)),n(),m(!t.canRequestPayout&&t.eligibilityMessageKey?31:t.canRequestPayout?32:-1),n(2),m(t.payoutSuccess?33:-1),n(),m(t.showPayoutForm?34:-1),n(5),_(" ",p(40,31,"STUDIO.WALLET.PAYOUT_HISTORY")," "),n(2),m(t.loadingPayouts?41:t.payouts.length===0?42:43),n(8),_(" ",p(50,33,"STUDIO.WALLET.FISCAL.TITLE")," "),n(3),S("ngClass",t.showFiscalForm?"pi-chevron-up":"pi-chevron-down"),n(),_(" ",p(54,35,t.showFiscalForm?"STUDIO.WALLET.FISCAL.HIDE":"STUDIO.WALLET.FISCAL.SHOW")," "),n(2),m(t.fiscal!=null&&t.fiscal.completedAt?55:-1),n(),m(t.showFiscalForm?56:-1),n(3),S("series",t.receivedSeries)("definitions",t.receivedChartDefs)("period",t.receivedPeriod)("loading",t.loadingReceivedSeries),n(6),m(t.loadingStarTransactions?65:t.starTransactions.length===0?66:67)}}function Kt(i,e){i&1&&(a(0,"div",26),g(1,"i",52),o())}function Ht(i,e){i&1&&(a(0,"div",27),r(1),d(2,"translate"),o()),i&2&&(n(),_(" ",p(2,1,"STUDIO.WALLET.NO_DATA")," "))}function Xt(i,e){if(i&1&&g(0,"img",72),i&2){let t=c(2).$implicit;S("src",t.counterpart.avatarUrl,L)}}function Jt(i,e){if(i&1&&g(0,"img",74),i&2){let t=c(2).$implicit;S("src",t.gift.thumbnailUrl,L)}}function Qt(i,e){if(i&1&&(a(0,"div",71),y(1,Xt,1,1,"img",72)(2,Jt,1,1,"img",74),o()),i&2){let t=c().$implicit;n(),m(t.counterpart!=null&&t.counterpart.avatarUrl?1:-1),n(),m(t.gift!=null&&t.gift.thumbnailUrl?2:-1)}}function Zt(i,e){if(i&1&&r(0),i&2){let t=c(2).$implicit;_(" \xD7 ",t.gift.quantity," ")}}function te(i,e){if(i&1&&(r(0),y(1,Zt,1,1),r(2," \xB7 ")),i&2){let t=c().$implicit;_(" ",t.gift.name," "),n(),m(t.gift!=null&&t.gift.quantity&&t.gift.quantity>1?1:-1)}}function ee(i,e){if(i&1&&r(0),i&2){let t=c().$implicit;_(" ",t.description," \xB7 ")}}function ie(i,e){if(i&1&&(a(0,"li",54),y(1,Qt,3,2,"div",71),a(2,"div",56)(3,"span",57),r(4),d(5,"translate"),o(),a(6,"span",58),y(7,te,3,2)(8,ee,1,1),r(9),o()(),a(10,"span",75),r(11),o()()),i&2){let t=e.$implicit,s=c(4);n(),m(t.counterpart||t.gift?1:-1),n(3),C((t.counterpart==null?null:t.counterpart.displayName)||p(5,7,s.txTypeKey(t.type))),n(3),m(t.gift!=null&&t.gift.name?7:t.description?8:-1),n(2),_(" ",s.formatDate(t.createdAt)," "),n(),S("ngClass",s.txAmountClass(t)),n(),F(" ",s.txValue(t,"coins")>0?"+":"","",s.formatNumber(s.txValue(t,"coins"))," \u{1FA99} ")}}function ne(i,e){if(i&1){let t=w();a(0,"p-paginator",60),v("onPageChange",function(l){f(t);let u=c(4);return x(u.onTransactionsPageChange(l))}),o()}if(i&2){let t=c(4);S("first",t.transactionsFirst)("rows",t.pageSize)("totalRecords",t.transactionsTotal)}}function ae(i,e){if(i&1&&(a(0,"ul",53),A(1,ie,12,9,"li",54,D),o(),y(3,ne,1,3,"p-paginator",55)),i&2){let t=c(3);n(),B(t.transactions),n(2),m(t.transactionsTotal>t.pageSize?3:-1)}}function oe(i,e){if(i&1){let t=w();a(0,"section",7)(1,"div",76)(2,"div",9)(3,"span",10),r(4,"\u{1FA99}"),o(),a(5,"span",11),r(6),d(7,"translate"),o()(),a(8,"div",12),r(9),o(),a(10,"div",13),r(11),d(12,"translate"),o()()(),a(13,"div",14)(14,"div",15)(15,"h2",16),g(16,"i",77),r(17),d(18,"translate"),o(),a(19,"div",78)(20,"div",79)(21,"span",80),r(22),o(),a(23,"span",81),r(24),d(25,"translate"),o()(),a(26,"button",40),v("click",function(){f(t);let l=c(2);return x(l.buyCoins())}),g(27,"i",32),r(28),d(29,"translate"),o()()()(),a(30,"div",14)(31,"div",15)(32,"app-widget-period-chart",82),v("periodChange",function(l){f(t);let u=c(2);return x(u.onSentPeriod(l))}),o()()(),a(33,"div",14)(34,"div",15)(35,"h2",16),g(36,"i",83),r(37),d(38,"translate"),o(),y(39,Kt,2,0,"div",26)(40,Ht,3,3,"div",27)(41,ae,4,1),o()()}if(i&2){let t=c(2);n(6),C(p(7,15,"STUDIO.WALLET.COINS")),n(3),_(" ",t.formatNumber(t.coinBalance==null?null:t.coinBalance.coinBalance)," "),n(2),_(" ",p(12,17,"STUDIO.WALLET.BALANCE")," "),n(6),_(" ",p(18,19,"STUDIO.WALLET.COINS_SECTION")," "),n(5),_("\u{1FA99} ",t.formatNumber(t.coinBalance==null?null:t.coinBalance.coinBalance),""),n(2),C(p(25,21,"STUDIO.WALLET.BALANCE")),n(2),S("disabled",t.buyingCoins),n(),S("ngClass",t.buyingCoins?"pi-spin pi-spinner":"pi-shopping-cart"),n(),_(" ",p(29,23,"STUDIO.WALLET.BUY_COINS")," "),n(4),S("series",t.sentSeries)("definitions",t.sentChartDefs)("period",t.sentPeriod)("loading",t.loadingSentSeries),n(5),_(" ",p(38,25,"STUDIO.WALLET.TRANSACTIONS")," "),n(2),m(t.loadingTransactions?39:t.transactions.length===0?40:41)}}function re(i,e){if(i&1){let t=w();a(0,"div",4)(1,"button",5),v("click",function(){f(t);let l=c();return x(l.setTab("stars"))}),a(2,"span",6),r(3,"\u2B50"),o(),r(4),d(5,"translate"),o(),a(6,"button",5),v("click",function(){f(t);let l=c();return x(l.setTab("coins"))}),a(7,"span",6),r(8,"\u{1FA99}"),o(),r(9),d(10,"translate"),o()(),y(11,jt,68,37)(12,oe,42,27)}if(i&2){let t=c();n(),M("is-active",t.activeTab==="stars"),V("aria-selected",t.activeTab==="stars"),n(3),_(" ",p(5,10,"STUDIO.WALLET.TAB_STARS")," "),n(2),M("is-active",t.activeTab==="coins"),V("aria-selected",t.activeTab==="coins"),n(3),_(" ",p(10,12,"STUDIO.WALLET.TAB_COINS")," "),n(2),m(t.activeTab==="stars"?11:-1),n(),m(t.activeTab==="coins"?12:-1)}}var ut=class i{wallet=O(W);isBrowser=Y(O(N));destroy$=new R;loading=!0;activeTab="stars";setTab(e){this.activeTab=e}starBalance=null;coinBalance=null;eligibility=null;payouts=[];payoutsTotal=0;payoutsFirst=0;loadingPayouts=!1;transactions=[];transactionsTotal=0;transactionsFirst=0;loadingTransactions=!1;starTransactions=[];starTransactionsTotal=0;starTransactionsFirst=0;loadingStarTransactions=!1;receivedSeries=[];sentSeries=[];receivedPeriod="30d";sentPeriod="30d";loadingReceivedSeries=!1;loadingSentSeries=!1;receivedChartDefs=[{key:"value",label:"\xC9toiles re\xE7ues",color:"#2f8eef"}];sentChartDefs=[{key:"value",label:"Coins d\xE9pens\xE9s",color:"#f0a020"}];pageSize=10;showPayoutForm=!1;payoutStars=null;submittingPayout=!1;payoutError=null;payoutSuccess=!1;connectingStripe=!1;showFiscalForm=!1;fiscal=null;fiscalForm={type:"individual",country:"FR",identifier:"",legalName:"",address:"",dateOfBirth:""};fiscalCertified=!1;savingFiscal=!1;fiscalError=null;fiscalSuccess=!1;entityTypes=[{value:"individual",label:"STUDIO.WALLET.FISCAL.TYPE_INDIVIDUAL"},{value:"auto_entrepreneur",label:"STUDIO.WALLET.FISCAL.TYPE_AUTO"},{value:"company",label:"STUDIO.WALLET.FISCAL.TYPE_COMPANY"},{value:"association",label:"STUDIO.WALLET.FISCAL.TYPE_ASSOCIATION"}];ngOnInit(){this.isBrowser&&this.loadAll()}ngOnDestroy(){this.destroy$.next(),this.destroy$.complete()}loadAll(){this.loading=!0,U({star:this.wallet.getStarBalance().pipe(h(()=>b(null))),coin:this.wallet.getCoinBalance().pipe(h(()=>b(null))),eligibility:this.wallet.getStarPayoutEligibility().pipe(h(()=>b(null))),fiscal:this.wallet.getFiscalInfo().pipe(h(()=>b(null)))}).pipe(T(this.destroy$)).subscribe(e=>{this.starBalance=e.star,this.coinBalance=e.coin,this.eligibility=e.eligibility,this.applyFiscal(e.fiscal),this.loading=!1}),this.loadPayouts(1),this.loadTransactions(1),this.loadStarTransactions(1),this.loadGift
1Series("received",30),this.loadGiftSeries("sent",30)}applyFiscal(e){this.fiscal=e,e&&(this.fiscalForm={type:this.normalizeType(e.type),country:(e.country||"FR").toUpperCase().slice(0,2),identifier:e.identifier??"",legalName:e.legalName??"",address:e.address??"",dateOfBirth:e.dateOfBirth?String(e.dateOfBirth).slice(0,10):""},this.fiscalCertified=!!e.completedAt)}normalizeType(e){switch(e){case"company":case"auto_entrepreneur":case"association":case"individual":return e;default:return"individual"}}loadPayouts(e){this.loadingPayouts=!0,this.wallet.getStarPayouts(e,this.pageSize).pipe(h(()=>b({items:[],total:0,page:e,limit:this.pageSize})),T(this.destroy$)).subscribe(t=>{this.payouts=t?.items??[],this.payoutsTotal=t?.total??0,this.payoutsFirst=((t?.page??e)-1)*this.pageSize,this.loadingPayouts=!1})}onPayoutsPageChange(e){let t=e.first??0,s=e.rows??this.pageSize;this.payoutsFirst=t,this.loadPayouts(Math.floor(t/s)+1)}loadTransactions(e){this.loadingTransactions=!0,this.wallet.getCoinTransactions(e,this.pageSize,"coins").pipe(h(()=>b({items:[],total:0,page:e,limit:this.pageSize})),T(this.destroy$)).subscribe(t=>{this.transactions=t?.items??[],this.transactionsTotal=t?.total??0,this.transactionsFirst=((t?.page??e)-1)*this.pageSize,this.loadingTransactions=!1})}loadStarTransactions(e){this.loadingStarTransactions=!0,this.wallet.getCoinTransactions(e,this.pageSize,"stars").pipe(h(()=>b({items:[],total:0,page:e,limit:this.pageSize})),T(this.destroy$)).subscribe(t=>{this.starTransactions=t?.items??[],this.starTransactionsTotal=t?.total??0,this.starTransactionsFirst=((t?.page??e)-1)*this.pageSize,this.loadingStarTransactions=!1})}onStarTransactionsPageChange(e){let t=e.first??0,s=e.rows??this.pageSize;this.starTransactionsFirst=t,this.loadStarTransactions(Math.floor(t/s)+1)}loadGiftSeries(e,t){let s=e==="received"?"loadingReceivedSeries":"loadingSentSeries";this[s]=!0,this.wallet.getGiftSeries(e,t).pipe(h(()=>b({series:[],totals:{count:0,value:0}})),T(this.destroy$)).subscribe(l=>{e==="received"?this.receivedSeries=l.series??[]:this.sentSeries=l.series??[],this[s]=!1})}onReceivedPeriod(e){this.receivedPeriod=e.value,this.loadGiftSeries("received",e.days??30)}onSentPeriod(e){this.sentPeriod=e.value,this.loadGiftSeries("sent",e.days??30)}txValue(e,t){return t==="stars"?e.starAmount??0:e.coinAmount??0}onTransactionsPageChange(e){let t=e.first??0,s=e.rows??this.pageSize;this.transactionsFirst=t,this.loadTransactions(Math.floor(t/s)+1)}get canRequestPayout(){return!!this.eligibility?.canRequestPayout}get eligibilityReason(){return this.eligibility?.reason??null}get needsStripeConnect(){let e=this.eligibilityReason;return e==="stripe_not_connected"||e==="stripe_onboarding"||e==="stripe_restricted"}get needsFiscalInfo(){return this.eligibilityReason==="fiscal_info_missing"}get eligibilityMessageKey(){switch(this.eligibilityReason){case"stripe_not_connected":return"STUDIO.WALLET.ELIGIBILITY.STRIPE_NOT_CONNECTED";case"stripe_onboarding":return"STUDIO.WALLET.ELIGIBILITY.STRIPE_ONBOARDING";case"stripe_restricted":return"STUDIO.WALLET.ELIGIBILITY.STRIPE_RESTRICTED";case"fiscal_info_missing":return"STUDIO.WALLET.ELIGIBILITY.FISCAL_MISSING";case"min_balance":return"STUDIO.WALLET.ELIGIBILITY.MIN_BALANCE";
1case"pending_payout":return"STUDIO.WALLET.ELIGIBILITY.PENDING";default:return""}}openPayoutForm(){this.payoutError=null,this.payoutSuccess=!1,this.payoutStars=this.eligibility?.minStars??4e3,this.showPayoutForm=!0}closePayoutForm(){this.showPayoutForm=!1}get minStars(){return this.eligibility?.minStars??4e3}get maxStars(){return this.eligibility?.maxStars??2e5}payoutEurPreview(e){let t=this.eligibility?.starToEurRate??.005;return(e??0)*t}submitPayout(){let e=Math.floor(this.payoutStars??0);if(e<this.minStars||e>this.maxStars){this.payoutError="STUDIO.WALLET.PAYOUT_INVALID_AMOUNT";return}this.submittingPayout=!0,this.payoutError=null,this.wallet.requestStarPayout(e).pipe(h(()=>(this.payoutError="STUDIO.WALLET.PAYOUT_ERROR",b(null))),T(this.destroy$)).subscribe(t=>{this.submittingPayout=!1,t&&(this.payoutSuccess=!0,this.showPayoutForm=!1,this.refreshAfterPayout())})}refreshAfterPayout(){this.wallet.getStarBalance().pipe(h(()=>b(this.starBalance)),T(this.destroy$)).subscribe(e=>this.starBalance=e),this.wallet.getStarPayoutEligibility().pipe(h(()=>b(this.eligibility)),T(this.destroy$)).subscribe(e=>this.eligibility=e),this.loadPayouts(1)}connectStripe(){this.connectingStripe=!0,this.wallet.createStripeConnectLink().pipe(h(()=>b(null)),T(this.destroy$)).subscribe(e=>{this.connectingStripe=!1,e?.url&&this.isBrowser&&(window.location.href=e.url)})}buyingCoins=!1;buyCoins(){this.buyingCoins=!0,this.wallet.createCoinCheckoutSession("com.houla.coins.1400","/studio/wallet").pipe(h(()=>b(null)),T(this.destroy$)).subscribe(e=>{this.buyingCoins=!1,e?.checkoutUrl&&this.isBrowser&&(window.location.href=e.checkoutUrl)})}toggleFiscalForm(){this.showFiscalForm=!this.showFiscalForm}saveFiscal(){if(this.fiscalError=null,this.fiscalSuccess=!1,!this.fiscalForm.legalName?.trim()){this.fiscalError="STUDIO.WALLET.FISCAL.ERROR_LEGAL_NAME";return}if(!/^[A-Za-z]{2}$/.test(this.fiscalForm.country||"")){this.fiscalError="STUDIO.WALLET.FISCAL.ERROR_COUNTRY";return}if(!this.fiscalCertified){this.fiscalError="STUDIO.WALLET.FISCAL.ERROR_CERTIFY";return}let e={type:this.fiscalForm.type,country:this.fiscalForm.country.toUpperCase(),legalName:this.fiscalForm.legalName.trim(),identifier:this.fiscalForm.identifier?.trim()||void 0,address:this.fiscalForm.address?.trim()||void 0,dateOfBirth:this.fiscalForm.dateOfBirth||void 0};this.savingFiscal=!0,this.wallet.updateFiscalInfo(e).pipe(h(()=>(this.fiscalError="STUDIO.WALLET.FISCAL.ERROR_SAVE",b(null))),T(this.destroy$)).subscribe(t=>{this.savingFiscal=!1,t&&(this.applyFiscal(t),this.fiscalSuccess=!0,this.wallet.getStarPayoutEligibility().pipe(h(()=>b(this.eligibility)),T(this.destroy$)).subscribe(s=>this.eligibility=s))})}formatCurrency(e){return`${((e??0)/100).toFixed(2).replace(".",",")} \u20AC`}formatEur(e){return`${(e??0).toFixed(2).replace(".",",")} \u20AC`}formatNumber(e){return(e??0).toLocaleString("fr-FR")}formatDate(e){if(!e)return"\u2014";let t=new Date(e);return isNaN(t.getTime())?"\u2014":t.toLocaleDateString("fr-FR")}payoutStatusKey(e){return`STUDIO.WALLET.STATUS.${e.toUpperCase()}`}txTypeKey(e){return`STUDIO.WALLET.TX_TYPE.${e.toUpperCase()}`}txAmountClass(e){return(e?.coinAmount??0)>=0?"is-positive":"is-negative"}static \u0275fac=function(t){return new(t||i)};static \u0275cmp=z({type:i,selectors:[["app-view-studio-wallet"]],decls:11,vars:7,consts:[[1,"mb-4"],[1,"text-light","fs-6"],[1,"pi","pi-wallet","me-2"],[1,"text-muted","mb-0","small"],["role","tablist",1,"wallet-tabs","mb-4"],["type","button","role","tab",1,"wallet-tabs__tab",3,"click"],[1,"wallet-tabs__emoji"],[1,"wallet__balances","mb-4"],[1,"balance-card","balance-card--stars"],[1,"balance-card__top"],[1,"balance-card__emoji"],[1,"balance-card__name"],[1,"balance-card__value"],[1,"balance-card__sub"],[1,"card","mb-4"],[1,"card-body"],[1,"fs-5","fw-semibold","mb-3"],[1,"pi","pi-star","me-2","text-primary"],[1,"stars-summary"],[1,"stars-summary__item"],[1,"stars-summary__label"],[1,"stars-summary__value"],["type","button",1,"btn","btn--primary"],[1,"notice","notice--success"],[1,"payout-form"],[1,"pi","pi-history","me-2","text-primary"],[1,"muted"],[1,"empty"],[1,"fiscal-head"],[1,"fs-5","fw-semibold","mb-0"],[1,"pi","pi-file","me-2","text-primary"],["type","button",1,"btn","btn--ghost","btn--sm",3,"click"],[1,"pi",3,"ngClass"],[1,"fiscal-form"],["title","Cadeaux re\xE7us","emptyLabel","Aucun cadeau re\xE7u sur cette p\xE9riode.",3,"periodChange","series","definitions","period","loading"],[1,"notice"],[1,"pi","pi-info-circle"],[1,"cta-row"],["type","button",1,"btn","btn--primary",3,"disabled"],["type","button",1,"btn","btn--ghost"],["type","button",1,"btn","btn--primary",3,"click","disabled"],["type","button",1,"btn","btn--ghost",3,"click"],[1,"pi","pi-file-edit"],["type","button",1,"btn","btn--primary",3,"click"],[1,"pi","pi-wallet"],[1,"pi","pi-check-circle"],[1,"field"],[1,"field__label"],["type","number",1,"field__input",3,"ngModelChange","min","max","step","ngModel"],[1,"field__hint"],[1,"notice","notice--error"],[1,"pi","pi-times-circle"],[1,"pi","pi-spin","pi-spinner"],[1,"history"],[1,"history__row"],[3,"first","rows","totalRecords"],[1,"history__main"],[1,"history__primary"],[1,"history__secondary"],[1,"badge",3,"ngClass"],[3,"onPageChange","first","rows","totalRecords"],[1,"fiscal-intro"],[1,"field-grid"],[1,"field__input",3,"ngModelChange","ngModel"],[3,"value"],["type","text","maxlength","2","placeholder","FR",1,"field__input",3,"ngModelChange","ngModel"],[1,"field","field--full"],["type","text",1,"field__input",3,"ngModelChange","ngModel"],["type","date",1,"field__input",3,"ngModelChange","ngModel"],[1,"checkbox"],["type","checkbox",3,"ngModelChange","ngModel"],[1,"history__who"],["alt","",1,"history__avatar",3,"src"],[1,"history__avatar","history__avatar--empty"],["alt","",1,"history__gift",3,"src"],[1,"amount",3,"ngClass"],[1,"balance-card","balance-card--coins"],[1,"pi","pi-bitcoin","me-2","text-primary"],[1,"coins-row"],[1,"coins-row__balance"],[1,"coins-row__value"],[1,"coins-row__label"],["title","Cadeaux envoy\xE9s","emptyLabel","Aucun cadeau envoy\xE9 sur cette p\xE9riode.",3,"periodChange","series","definitions","period","loading"],[1,"pi","pi-list","me-2","text-primary"]],template:function(t,s){t&1&&(a(0,"div")(1,"div",0)(2,"span",1),g(3,"i",2),r(4),d(5,"translate"),o(),a(6,"p",3),r(7),d(8,"translate"),o()(),y(9,Ct,1,0,"app-widget-loading")(10,re,13,14),o()),t&2&&(n(4),_(" ",p(5,3,"STUDIO.WALLET.TITLE")," "),n(3),_(" ",p(8,5,"STUDIO.WALLET.SUBTITLE")," "),n(2),m(s.loading?9:10))},dependencies:[j,q,st,nt,at,Q,et,J,it,Z,lt,rt,ot,tt,K,X,H,ct,pt,dt,_t],styles:['@charset "UTF-8";[_nghost-%COMP%]{display:block;--accent: #2f8eef;--ink: #14141f;--ink-soft: #5a5a6b;--line: #e7e7ee;--ok: #16a394;--warn: #e08a00;--err: #ff3b30}.wallet__balances[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(240px,1fr));gap:16px}.balance-card[_ngcontent-%COMP%]{border-radius:18px;padding:22px;color:#fff;background:linear-gradient(135deg,#2f8eef,#1f6fd0);box-shadow:0 10px 28px #14141f1a}.balance-card--coins[_ngcontent-%COMP%]{background:linear-gradient(135deg,#f6a200,#e07d00)}.balance-card__top[_ngcontent-%COMP%]{display:flex;align-items:center;gap:8px;margin-bottom:14px}.balance-card__emoji[_ngcontent-%COMP%]{font-size:22px}.balance-card__name[_ngcontent-%COMP%]{font-size:13px;font-weight:700;letter-spacing:.04em;text-transform:uppercase;opacity:.92}.balance-card__value[_ngcontent-%COMP%]{font-weight:800;font-size:34px;line-height:1}.balance-card__sub[_ngcontent-%COMP%]{margin-top:8px;font-size:14px;opacity:.92}.stars-summary[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(140px,1fr));gap:14px;margin-bottom:16px}.stars-summary__item[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:4px}.stars-summary__label[_ngcontent-%COMP%]{font-size:12px;color:var(--ink-soft)}.stars-summary__value[_ngcontent-%COMP%]{font-size:18px;font-weight:700;color:var(--ink)}.coins-row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap}.coins-row__balance[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:2px}.coins-row__value[_ngcontent-%COMP%]{font-size:24px;font-weight:800;color:var(--ink)}.coins-row__label[_ngcontent-%COMP%]{font-size:13px;color:var(--ink-soft)}.btn[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;border:1px solid transparent;border-radius:10px;padding:10px 16px;font-size:14px;font-weight:600;cursor:pointer;transition:background .16s,border-color .16s,transform .16s}.btn[_ngcontent-%COMP%]:disabled{opacity:.6;cursor:not-allowed}.btn--primary[_ngcontent-%COMP%]{background:var(--accent);color:#fff}.btn--primary[_ngcontent-%COMP%]:hover:not(:disabled){background:#1f6fd0}.btn--ghost[_ngcontent-%COMP%]{background:transparent;border-color:var(--line);color:var(--ink)}.btn--ghost[_ngcontent-%COMP%]:hover:not(:disabled){border-color:var(--accent);color:var(--accent)}.btn--sm[_ngcontent-%COMP%]{padding:6px 10px;font-size:13px}.cta-row[_ngcontent-%COMP%]{display:flex;flex-wrap:wrap;gap:10px;margin-top:14px}.notice[_ngcontent-%COMP%]{display:flex;align-items:center;gap:10px;margin-top:14px;padding:12px 14px;border-radius:10px;font-size:14px;background:#2f8eef14;color:#1f6fd0}.notice[_ngcontent-%COMP%] i[_ngcontent-%COMP%]{font-size:16px}.notice--success[_ngcontent-%COMP%]{background:#16a3941a;color:var(--ok)}.notice--error[_ngcontent-%COMP%]{background:#ff3b301a;color:var(--err)}.payout-form[_ngcontent-%COMP%]{margin-top:16px;padding-top:16px;border-top:1px dashed var(--line)}.fiscal-form[_ngcontent-%COMP%]{margin-top:16px}.field[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:6px}.field--full[_ngcontent-%COMP%]{grid-column:1/-1}.field__label[_ngcontent-%COMP%]{font-size:13px;font-weight:600;color:var(--ink)}.field__input[_ngcontent-%COMP%]{border:1px solid var(--line);border-radius:10px;padding:10px 12px;font-size:14px;color:var(--ink);background:#fff}.field__input[_ngcontent-%COMP%]:focus{outline:none;border-color:var(--accent)}.field__hint[_ngcontent-%COMP%]{font-size:12px;color:var(--ink-soft)}.field-grid[_ngcontent-%COMP%]{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:14px;margin:14px 0}.checkbox[_ngcontent-%COMP%]{display:flex;align-items:flex-start;gap:10px;margin:6px 0 14px;font-size:13px;color:var(--ink-soft)}.checkbox[_ngcontent-%COMP%] input[_ngcontent-%COMP%]{margin-top:2px}.fiscal-head[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:12px}.fiscal-intro[_ngcontent-%COMP%]{font-size:13px;color:var(--ink-soft);margin:0 0 6px}.history[_ngcontent-%COMP%]{list-style:none;margin:0;padding:0;border:1px solid var(--line);border-radius:14px;overflow:hidden}.history__row[_ngcontent-%COMP%]{display:flex;align-items:center;justify-content:space-between;gap:12px;padding:14px 16px;border-bottom:1px solid var(--line)}.history__row[_ngcontent-%COMP%]:last-child{border-bottom:none}.history__main[_ngcontent-%COMP%]{display:flex;flex-direction:column;gap:3px;min-width:0}.history__primary[_ngcontent-%COMP%]{font-size:14px;font-weight:700;color:var(--ink)}.history__secondary[_ngcontent-%COMP%]{font-size:12px;color:var(--ink-soft)}
1.amount[_ngcontent-%COMP%]{font-size:14px;font-weight:700;white-space:nowrap}.amount.is-positive[_ngcontent-%COMP%]{color:var(--ok)}.amount.is-negative[_ngcontent-%COMP%]{color:var(--err)}.badge[_ngcontent-%COMP%]{font-size:11px;font-weight:700;letter-spacing:.03em;text-transform:uppercase;padding:4px 9px;border-radius:999px;white-space:nowrap}.badge--pending[_ngcontent-%COMP%]{background:#e08a0024;color:var(--warn)}.badge--processing[_ngcontent-%COMP%]{background:#2f8eef24;color:#1f6fd0}.badge--completed[_ngcontent-%COMP%]{background:#16a39424;color:var(--ok)}.badge--failed[_ngcontent-%COMP%], .badge--cancelled[_ngcontent-%COMP%]{background:#ff3b301f;color:var(--err)}.wallet-tabs[_ngcontent-%COMP%]{display:inline-flex;gap:4px;padding:4px;background:#f1f1f6;border:1px solid var(--line);border-radius:12px}.wallet-tabs__tab[_ngcontent-%COMP%]{display:inline-flex;align-items:center;gap:8px;border:none;background:transparent;border-radius:9px;padding:8px 18px;font-size:14px;font-weight:600;color:var(--ink-soft);cursor:pointer;transition:background .16s,color .16s,box-shadow .16s}.wallet-tabs__tab[_ngcontent-%COMP%]:hover:not(.is-active){color:var(--ink)}.wallet-tabs__tab.is-active[_ngcontent-%COMP%]{background:#fff;color:var(--accent);box-shadow:0 1px 3px #14141f1f}.wallet-tabs__emoji[_ngcontent-%COMP%]{font-size:16px}[_nghost-%COMP%] .p-paginator{justify-content:center;background:transparent;border:none;padding:14px 0 0}.empty[_ngcontent-%COMP%], .muted[_ngcontent-%COMP%]{padding:18px;text-align:center;color:var(--ink-soft);font-size:14px}.history__who[_ngcontent-%COMP%]{display:flex;align-items:center;gap:4px;margin-right:.6rem;flex:0 0 auto}.history__avatar[_ngcontent-%COMP%]{width:32px;height:32px;border-radius:50%;object-fit:cover;background:#0000000f;display:grid;place-items:center;font-weight:700;font-size:13px}.history__avatar--empty[_ngcontent-%COMP%]{color:#00000073}.history__gift[_ngcontent-%COMP%]{width:26px;height:26px;object-fit:contain}']})};export{ut as ViewStudioWalletComponent};
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.