PageSourceSearch

https://arucronia.com/chunk-DY2PSGFK.js

js arucronia.com collected 2026-10-02 01:23:53 UTC 5,988 bytes, 1 lines download raw bytes

1import{a as q,b as G}from"./chunk-BDJZAAOK.js";import{h as K,k as O}from"./chunk-FFJOFBU7.js";import"./chunk-ENZGNXJN.js";import"./chunk-5UJZW2BQ.js";import{Y as H}from"./chunk-STTN25X3.js";import"./chunk-RFDOIDEB.js";import"./chunk-MXQ3AHF4.js";import"./chunk-ZWIM2RJJ.js";import{b as $}from"./chunk-YCVIPE7Y.js";import"./chunk-FYHPLUXW.js";import"./chunk-JJPKKDKC.js";import"./chunk-XWJ5ZHHU.js";import"./chunk-KW46JQWG.js";import{e as A,f as B,g as k,h as U}from"./chunk-VZMFBRRV.js";import"./chunk-YZXTDPNT.js";import{m as N,n as j}from"./chunk-U2Z6JERG.js";import"./chunk-4O3FVBGX.js";import{$b as o,Ab as _,Bb as n,Cb as i,Db as g,G as T,Gc as z,Hc as d,K as C,Kb as v,Ob as w,Pb as u,S as R,Ta as r,U as D,Y as L,ba as m,bc as f,ga as h,ha as y,hb as x,k as F,nb as V,o as P,sc as M,uc as E,vb as p,wb as c,wc as I,xc as S}from"./chunk-UKF3GMO7.js";import"./chunk-4CLCTAJ7.js";function Y(t,l){t&1&&(n(0,"tr")(1,"th"),o(2,"Periodo"),i(),n(3,"th",3),o(4,"Tipo de cuota"),i(),n(5,"th",4),o(6,"Importe"),i(),n(7,"th"),o(8,"Estado"),i(),n(9,"th"),o(10,"Fecha de pago"),i()())}function Z(t,l){t&1&&g(0,"p-tag",8)}function ee(t,l){t&1&&g(0,"p-tag",9)}function te(t,l){if(t&1&&(n(0,"span",10),o(1),M(2,"date"),i()),t&2){let e=u().$implicit;r(),f(" ",E(2,1,e.transaction==null?null:e.transaction.date,"d MMM y")," ")}}function ie(t,l){t&1&&(n(0,"span",11),o(1,"\u2014"),i())}function ne(t,l){if(t&1&&(n(0,"tr")(1,"td",5),o(2),M(3,"date"),i(),n(4,"td",6),o(5),i(),n(6,"td",7),o(7),M(8,"currency"),i(),n(9,"td"),p(10,Z,1,0,"p-tag",8)(11,ee,1,0,"p-tag",9),i(),n(12,"td"),p(13,te,3,4,"span",10)(14,ie,2,0,"span",11),i()()),t&2){let e=l.$implicit;r(2),f(" ",E(3,5,e.month,"MMMM y")," "),r(3),f(" ",e.feeType.name," "),r(2),f(" ",I(8,8,e.feeType.amount,"EUR","symbol","1.2-2")," "),r(3),c(e.paid?10:11),r(3),c(e.paid?13:14)}}var Q=(()=>{class t{constructor(){this.fees=d([]),this.rows=d(0),this.page=d(0),this.totalRecords=d(0),this.loading=d(!1),this.changePage=z()}get first(){return(this.page()-1)*this.rows()}onPageChange(e){let a=e.first/e.rows+1;this.changePage.emit(a)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-my-fees-list"]],inputs:{fees:[1,"fees"],rows:[1,"rows"],page:[1,"page"],totalRecords:[1,"totalRecords"],loading:[1,"loading"]},outputs:{changePage:"changePage"},decls:5,vars:5,consts:[["header",""],["body",""],["lazy","true","dataKey","month","paginator","true","showCurrentPageReport","true","currentPageReportTemplate","{first}\u2013{last} de {totalRecords}","responsiveLayout","scroll","styleClass","p-datatable-striped",3,"onPage","loading","value","rows","totalRecords","first"],[1,"hidden","sm:table-cell"],[1,"text-right"],[1,"font-medium","text-gray-950","capitalize"],[1,"hidden","text-gray-600","sm:table-cell"],[1,"text-right","font-medium","tabular-nums"],["value","Pagada","severity","success"],["value","Pendiente","severity","warn"],[1,"text-gray-700"],[1,"text-gray-400"]],template:function(a,s){if(a&1){let b=v();n(0,"p-table",2),w("onPage",function(X){return h(b),y(s.onPageChange(X))}),V(1,Y,11,0,"ng-template",null,0,S)(3,ne,15,13,"ng-template",null,1,S),i()}a&2&&_("loading",s.loading())("value",s.fees())("rows",s.rows())("totalRecords",s.totalRecords())("first",s.first)},dependencies:[O,K,G,q,j,N],encapsulation:2})}}return t})();var W=(()=>{class t{constructor(){this.ucroniaClient=m(H),this.securityClient=m($)}getAll(e=void 0){let a=new B([new U("month",k.Descending)]);return this.ucroniaClient.myFees.page(e,void 0,a)}hasFees(){return this.securityClient.account.get().pipe(P(()=>!0),T(!1))}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275prov=L({token:t,factory:t.\u0275fac,providedIn:"root"})}}return t})();function ae(t,l){if(t&1){let e=v();n(0,"section")(1,"div",4)(2,"h2",5),o(3,"Historial de cuotas"),i(),n(4,"p",2),o(5,"Todos tus pagos y cuotas pendientes"),i()(),n(6,"div",6)(7,"app-my-fees-list",7),w("changePage",function(s){h(e);let b=u();return y(b.load(s))}),i()()()}if(t&2){let e=u();r(7),_("loading",e.loading)("fees",e.data.content)("rows",e.data.size)("page",e.data.page)("totalRecords",e.data.totalElements)}}function oe(t,l){t&1&&(n(0,"section",3)(1,"span",8),g(2,"i",9),i(),n(3,"h2",10),o(4,"Sin perfil de socio"),i(),n(5,"p",11),o(6,"No tienes un perfil de socio asignado y no podemos mostrar tus cuotas."),i()())}var Pe=(()=>{class t{constructor(){this.service=m(W),this.data=new A,this.hasFees=!1,this.loading=!1}get first(){return(this.data.page-1)*this.data.size}ngOnInit(){this.loading=!0,this.service.hasFees().pipe(D(e=>this.hasFees=e),R(e=>e?this.service.getAll():F(null)),C(()=>this.loading=!1)).subscribe(e=>{e&&(this.data=e)})}
1load(e=void 0){this.loading=!0,this.service.getAll(e).pipe(C(()=>this.loading=!1)).subscribe(a=>this.data=a)}static{this.\u0275fac=function(a){return new(a||t)}}static{this.\u0275cmp=x({type:t,selectors:[["app-my-fees-view"]],decls:8,vars:1,consts:[[1,"mx-auto","max-w-screen-2xl","space-y-8","p-4","md:p-6"],[1,"text-3xl","font-bold","tracking-tight","text-gray-950"],[1,"mt-1","text-sm","text-gray-500"],[1,"rounded-xl","border","border-gray-200","bg-white","px-6","py-16","text-center","shadow-sm"],[1,"mb-5"],[1,"text-xl","font-semibold","text-gray-950"],[1,"overflow-hidden","rounded-xl","border","border-gray-200","bg-white","shadow-sm"],[3,"changePage","loading","fees","rows","page","totalRecords"],[1,"mx-auto","flex","size-14","items-center","justify-center","rounded-full","bg-gray-100","text-gray-500"],["aria-hidden","true",1,"pi","pi-user","text-xl"],[1,"mt-4","text-lg","font-semibold","text-gray-900"],[1,"mx-auto","mt-2","max-w-md","text-sm","text-gray-500"]],template:function(a,s){a&1&&(n(0,"div",0)(1,"header")(2,"h1",1),o(3,"Mis cuotas"),i(),n(4,"p",2),o(5,"Consulta el estado y el historial de tus cuotas de socio"),i()(),p(6,ae,8,5,"section")(7,oe,7,0,"section",3),i()),a&2&&(r(6),c(s.hasFees||s.loading?6:7))},dependencies:[Q],encapsulation:2})}}return t})();export{Pe as MyFeesView};

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.