PageSourceSearch

https://easypay.ua/225.5a7514cb70bc1dc4.js

js easypay.ua collected 2026-10-01 12:16:00 UTC 59,044 bytes, 2 lines download raw bytes

1"use strict";(self.webpackChunkweb_front_end_angular_cli=self.webpackChunkweb_front_end_angular_cli||[]).push([[225],{14967:(B,C,l)=>{l.d(C,{a:()=>b});var _=l(1890);function b(P,x,h){return(0,_.P)(P,-x,h)}},20586:(B,C,l)=>{l.d(C,{_:()=>x});var _=l(36732),b=l(12481);const t=["mat-internal-form-field",""],P=["*"];let x=(()=>{var h;class w{constructor(){(0,_.A)(this,"labelPosition",void 0)}}return h=w,(0,_.A)(w,"\u0275fac",function(f){return new(f||h)}),(0,_.A)(w,"\u0275cmp",b.VBU({type:h,selectors:[["div","mat-internal-form-field",""]],hostAttrs:[1,"mdc-form-field","mat-internal-form-field"],hostVars:2,hostBindings:function(f,R){2&f&&b.AVh("mdc-form-field--align-end","before"===R.labelPosition)},inputs:{labelPosition:"labelPosition"},attrs:t,ngContentSelectors:P,decls:1,vars:0,template:function(f,R){1&f&&(b.NAR(),b.SdG(0))},styles:[".mat-internal-form-field{-moz-osx-font-smoothing:grayscale;-webkit-font-smoothing:antialiased;display:inline-flex;align-items:center;vertical-align:middle}.mat-internal-form-field>label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0;order:0}[dir=rtl] .mat-internal-form-field>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px}.mdc-form-field--align-end>label{margin-left:auto;margin-right:0;padding-left:0;padding-right:4px;order:-1}[dir=rtl] .mdc-form-field--align-end .mdc-form-field--align-end label{margin-left:0;margin-right:auto;padding-left:4px;padding-right:0}\n"],encapsulation:2,changeDetection:0})),w})()},21530:(B,C,l)=>{l.d(C,{m:()=>_});class _{constructor(t,P,x,h,w,$,f,R,D){this.name=t,this.buttonKey=P,this.fields=x,this.amount=h,this.templateId=w,this.templateNotification=$,this.recurrentPayment=f,this.code=R,this.multiCheckPaymentStepIndex=D}}},25550:(B,C,l)=>{l.d(C,{L:()=>t});var _=l(12951),b=l(56075);function t(x,h,w){return(0,_.A)(x,h*b.s0,w)}},25748:(B,C,l)=>{l.d(C,{e:()=>_});class _{constructor(t,P,x,h){this.fieldName=t,this.fieldValue=P,this.fieldKey=x,this.fieldValueDescription=h}}},35905:(B,C,l)=>{l.d(C,{U:()=>b,Y:()=>_});class _{constructor(P,x,h,w,$,f,R,D,j){this.name=P,this.locationId=x,this.streetName=h,this.buildingNumber=w,this.apartmentNumber=$,this.additionalParams=f,this.templateIdList=R,this.services=D,this.color=j}}class b{constructor(P){Object.assign(this,P),P?.additionalParams&&(this.additionalParams=JSON.stringify(P.additionalParams))}}},38982:(B,C,l)=>{l.d(C,{j:()=>_});const _=b=>{const t=document?.createElement("textarea");return t.innerHTML=b,t?.value}},39036:(B,C,l)=>{l.d(C,{z:()=>d});var _=l(63855),b=l(71401),t=l(25550),P=l(66860),x=l(43942),h=l(61318),w=l(70271),$=l(7488),f=l(25748),R=l(21530),D=l(8947),j=l(35905);class V{encodeKey(r){return encodeURIComponent(r)}encodeValue(r){return r}decodeKey(r){return decodeURIComponent(r)}decodeValue(r){return decodeURIComponent(r)}}var y,p,E=l(38982),U=l(12481),M=l(85240),O=function(v,r,s,m){var g,I=arguments.length,F=I<3?r:null===m?m=Object.getOwnPropertyDescriptor(r,s):m;if("object"==typeof Reflect&&"function"==typeof Reflect.decorate)F=Reflect.decorate(v,r,s,m);else for(var L=v.length-1;L>=0;L--)(g=v[L])&&(F=(I<3?g(F):I>3?g(r,s,F):g(r,s))||F);return I>3&&F&&Object.defineProperty(r,s,F),F},a=function(v,r){if("object"==typeof Reflect&&"function"==typeof Reflect.metadata)return Reflect.metadata(v,r)};class d extends $.F{constructor(){super(...arguments),this.dateTimeFormat="dd.MM.yyyy HH:mm"}getAll(r){let s=new _.Nl({encoder:new V});if(r)for(const m in r)r.hasOwnProperty(m)&&(s=s.append(m,r[m]));return this.http.get(this.bindCabinetApiUrl("/payment-templates/bills"),{params:s}).pipe((0,h.W)(this.handleError))}getById(r){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/${r}`)).pipe((0,h.W)(this.handleError))}getByServiceKey(r){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/service/${r}`)).pipe((0,h.W)(this.handleError))}getAnonymousTemplates(r){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/anonymous/service/${r}`)).pipe((0,h.W)(this.handleError))}getAnonymousById(r){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/anonymous/${r}`)).pipe((0,h.W)(this.handleError))}getUserFines(){return this.http.get(this.bindCabinetApiUrl("/api/cars/carfines")).pipe((0,h.W)(this.handleError))}add(r){return this.http.post(this.bindCabinetApiUrl("/payment-templates"),r).pipe((0,h.W)(this.handleError))}addByTransactionId(r){return this.http.post(this.bindCabinetApiUrl(`/payment-templates/transaction/${r}`),{}).pipe((0,h.W)(this.handleError))}addByPayment(r){return this.http.post(this.bindCabinetApiUrl("/payment-templates/current-payment"),r).pipe((0,h.W)(this.handleError))}update(r){return this.http.put(this.bindCabinetApiUrl(`/payment-templates/${r?.templateId}`),r).pipe((0,h.W)(this.handleError))}remove(r){return this.http.delete(this.bindCabinetApiUrl(`/payment-templates/${r}`)).pipe((0,h.W)(this.handleError))}groups(){return this.http.get(this.bindCabinetApiUrl("/payment-templates/groups")).pipe((0,h.W)(this.handleError))}groupById(r){return this.http.get(this.bindCabinetApiUrl(`/payment-templates/groups/${r}`)).pipe((0,w.T)(s=>s?.group),(0,w.T)(s=>{if(s.additionalParams)try{s.additionalParams=JSON.parse((0,E.j)(`${s.additionalParams}`))}catch(m){console.error("Invalid JSON:",m?.message)}return s}),(0,h.W)(this.handleError))}groupSupported(){return this.http.get(this.bindCabinetApiUrl("/payment-templates/groups/supporting")).pipe((0,h.W)(this.handleError))}addGroup(r){return this.http.post(this.bindCabinetApiUrl("/payment-templates/groups"),r).pipe((0,h.W)(this.handleError))}addToGroup(r,s){return this.http.post(this.bindCabinetApiUrl(`/payment-templates/groups/${s}/templates`),r).pipe((0,h.W)(this.handleError))}removeFromGroup(r,s){return this.http.delete(this.bindCabinetApiUrl(`/payment-templates/groups/${s}/templates`),{body:r}).pipe((0,h.W)(this.handleError))}updateGroup(r,s){return this.http.put(this.bindCabinetApiUrl(`/payment-templates/groups/${s}`),r).pipe((0,h.W)(this.handleError))}removeGroup(r,s){return this.http.delete(this.bindCabinetApiUrl(`/payment-templates/groups/${r}?de=${s}`)).pipe((0,h.W)(this.handleError))}getPaymentTemplateTools(r){return this.http.post(this.bindUrl("/userTemplates/instruments"),r).pipe((0,h.W)(this.handleError))}transferTemplate(r){const{templateId:s,phone:m}=r;return this.http.post(this.bindCabinetApiUrl(`/payment-templates/${s}/transfer`),{phone:m}).pipe((0,h.W)(this.handleError))}billsHistory(r){return null===r.templates&&delete r.templates,this.http.get(this.bindCabinetApiUrl("payment-templates/bills/history"),{params:r}).pipe((0,h.W)(this.handleError))}getFormValuesFromPaymentTemplate(r){const s=[];if(r&&(r.fields?.map(m=>{s.push(m)}),s.push(new f.e("templateName",r.name)),s.push(new f.e("amount",r.amount)),"templateNotification"in r&&r?.templateNotification)){s.push(new f.e("isEnableNotification",r.templateNotification.isEnabled));const m=this.getPaymentPeriodFromCronRule(r.templateNotification.rule);s.push(new f.e("notificationPeriod",m)),s.push(new f.e("notificationStartDate",(0,b.GP)(new Date(r.templateNotification.dateRun),this.dateTimeFormat))),"everyDayN"===m&&s.push(new f.e("notifyFrequency",this.getFrequencyFromCronRule(r.templateNotification.rule)))}return s}getFrequencyFromCronRule(r){return r?.split(" ")?.[2].split("/")?.[1]||"1"}
1getFormValuesFromTransactionDetails(r){const s=[];return r&&(r?.fields?.forEach(m=>{s.push(new f.e(m?.fieldName,m?.fieldValue,m?.fieldKey))}),s.push(new f.e("templateName",r?.menuButton?.caption)),s.push(new f.e("amount",r?.amount))),s}getFormValuesFromRecurrentPayment(r){const s=[];if(r){const m=this.getPaymentPeriodFromCronRule(r.rule);s.push(new f.e("paymentPeriod",m)),s.push(new f.e("paymentStartDate",(0,b.GP)(r.isEnabled?new Date(r.dateRun):(0,t.L)(new Date,1),this.dateTimeFormat))),"everyDayN"===m&&s.push(new f.e("frequency",this.getFrequencyFromCronRule(r.rule))),s.push(new f.e("isActive",r.isEnabled))}return s}getCronRule(r,s,m){const I=(0,P.qg)(s,this.dateTimeFormat,new Date),F=I.getMinutes(),g=I.getHours(),L=I.getDay(),k=I.getDate(),W=I.getMonth()+1;switch(r){case"singly":return null;case"daily":return`${F} ${g} * * ?`;case"weekly":return`${F} ${g} ? * ${L}`;case"monthly":return`${F} ${g} ${k} * ?`;case"quarterly":return`${F} ${g} ${k} ${W}/3 ?`;case"everyDayN":return`${F} ${g} ${k}/${m} * ?`;default:return"Manual"}}getPaymentPeriodFromCronRule(r){let s=r;if(r){const m=r.split(" ");5===m.length&&("1/1"!==m[2]&&"*"!==m[2]||"?"!==m[4]?"?"===m[2]?s="weekly":m[3].includes("/")&&"?"===m[4]?s="quarterly":m[2]?.match("^\\d{1,2}\\/\\d{1,2}$")?s="everyDayN":"?"===m[4]&&"*"===m[3]?s="monthly":"?"===m[4]&&(s="singly"):s="daily")}else s="singly";return s}}(y=d).\u0275fac=(()=>{let v;return function(s){return(v||(v=U.xGo(y)))(s||y)}})(),y.\u0275prov=M.jDH({token:y,factory:y.\u0275fac,providedIn:"root"}),O([(0,D.t)(),a("design:type",Function),a("design:paramtypes",[R.m]),a("design:returntype",x.c)],d.prototype,"add",null),O([(0,D.t)(),a("design:type",Function),a("design:paramtypes",["function"==typeof(p=typeof T<"u"&&T)?p:Object]),a("design:returntype",x.c)],d.prototype,"addByPayment",null),O([(0,D.t)(),a("design:type",Function),a("design:paramtypes",[R.m]),a("design:returntype",x.c)],d.prototype,"update",null),O([(0,D.t)(),a("design:type",Function),a("design:paramtypes",[j.Y]),a("design:returntype",x.c)],d.prototype,"addGroup",null),O([(0,D.t)(),a("design:type",Function),a("design:paramtypes",[j.U,Number]),a("design:returntype",x.c)],d.prototype,"updateGroup",null)},44575:(B,C,l)=>{l.d(C,{e:()=>b});var _=l(80782);function b(P,x,h){return(0,_.f)(P,-x,h)}},74646:(B,C,l)=>{l.d(C,{WX:()=>E});var _=l(36732),b=l(85240),t=l(12481),x=(l(99148),l(6423));const w=/^\d{4}-\d{2}-\d{2}(?:T\d{2}:\d{2}:\d{2}(?:\.\d+)?(?:Z|(?:(?:\+|-)\d{2}:\d{2}))?)?$/,$=/^(\d?\d)[:.](\d?\d)(?:[:.](\d?\d))?\s*(AM|PM)?$/i;function f(M,y){const O=Array(M);for(let a=0;a<M;a++)O[a]=y(a);return O}let R=(()=>{var M;class y extends x.D{constructor(){super(),(0,_.A)(this,"useUtcForDisplay",!1),(0,_.A)(this,"_matDateLocale",(0,b.WQX)(x.M,{optional:!0}));const a=(0,b.WQX)(x.M,{optional:!0});void 0!==a&&(this._matDateLocale=a),super.setLocale(this._matDateLocale)}getYear(a){return a.getFullYear()}getMonth(a){return a.getMonth()}getDate(a){return a.getDate()}getDayOfWeek(a){return a.getDay()}getMonthNames(a){const p=new Intl.DateTimeFormat(this.locale,{month:a,timeZone:"utc"});return f(12,d=>this._format(p,new Date(2017,d,1)))}getDateNames(){const a=new Intl.DateTimeFormat(this.locale,{day:"numeric",timeZone:"utc"});return f(31,p=>this._format(a,new Date(2017,0,p+1)))}getDayOfWeekNames(a){const p=new Intl.DateTimeFormat(this.locale,{weekday:a,timeZone:"utc"});return f(7,d=>this._format(p,new Date(2017,0,d+1)))}getYearName(a){const p=new Intl.DateTimeFormat(this.locale,{year:"numeric",timeZone:"utc"});return this._format(p,a)}getFirstDayOfWeek(){if(typeof Intl<"u"&&Intl.Locale){const a=new Intl.Locale(this.locale),p=(a.getWeekInfo?.()||a.weekInfo)?.firstDay??0;return 7===p?0:p}return 0}getNumDaysInMonth(a){return this.getDate(this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+1,0))}clone(a){return new Date(a.getTime())}createDate(a,p,d){let v=this._createDateWithOverflow(a,p,d);return v.getMonth(),v}today(){return new Date}parse(a,p){return"number"==typeof a?new Date(a):a?new Date(Date.parse(a)):null}format(a,p){if(!this.isValid(a))throw Error("NativeDateAdapter: Cannot format invalid date.");const d=new Intl.DateTimeFormat(this.locale,{...p,timeZone:"utc"});return this._format(d,a)}addCalendarYears(a,p){return this.addCalendarMonths(a,12*p)}addCalendarMonths(a,p){let d=this._createDateWithOverflow(this.getYear(a),this.getMonth(a)+p,this.getDate(a));return this.getMonth(d)!=((this.getMonth(a)+p)%12+12)%12&&(d=this._createDateWithOverflow(this.getYear(d),this.getMonth(d),0)),d}addCalendarDays(a,p){return this._createDateWithOverflow(this.getYear(a),this.getMonth(a),this.getDate(a)+p)}toIso8601(a){return[a.getUTCFullYear(),this._2digit(a.getUTCMonth()+1),this._2digit(a.getUTCDate())].join("-")}deserialize(a){if("string"==typeof a){if(!a)return null;if(w.test(a)){let p=new Date(a);if(this.isValid(p))return p}}return super.deserialize(a)}isDateInstance(a){return a instanceof Date}isValid(a){return!isNaN(a.getTime())}invalid(){return new Date(NaN)}setTime(a,p,d,v){const r=this.clone(a);return r.setHours(p,d,v,0),r}getHours(a){return a.getHours()}getMinutes(a){return a.getMinutes()}getSeconds(a){return a.getSeconds()}parseTime(a,p){if("string"!=typeof a)return a instanceof Date?new Date(a.getTime()):null;const d=a.trim();if(0===d.length)return null;let v=this._parseTimeString(d);if(null===v){const r=d.replace(/[^0-9:(AM|PM)]/gi,"").trim();r.length>0&&(v=this._parseTimeString(r))}return v||this.invalid()}addSeconds(a,p){return new Date(a.getTime()+1e3*p)}_createDateWithOverflow(a,p,d){const v=new Date;return v.setFullYear(a,p,d),v.setHours(0,0,0,0),v}_2digit(a){return("00"+a).slice(-2)}_format(a,p){const d=new Date;return d.setUTCFullYear(p.getFullYear(),p.getMonth(),p.getDate()),d.setUTCHours(p.getHours(),p.getMinutes(),p.getSeconds(),p.getMilliseconds()),a.format(d)}_parseTimeString(a){const p=a.toUpperCase().match($);if(p){let d=parseInt(p[1]);const v=parseInt(p[2]);let r=null==p[3]?void 0:parseInt(p[3]);const s=p[4];if(12===d?d="AM"===s?0:d:"PM"===s&&(d+=12),D(d,0,23)&&D(v,0,59)&&(null==r||D(r,0,59)))return this.setTime(this.today(),d,v,r||0)}return null}}return M=y,(0,_.A)(y,"\u0275fac",function(a){return new(a||M)}),(0,_.A)(y,"\u0275prov",b.jDH({token:M,factory:M.\u0275fac})),y})();function D(M,y,O){return!isNaN(M)&&M>=y&&M<=O}const j={parse:{dateInput:null,timeInput:null},display:{dateInput:{year:"numeric",month:"numeric",day:"numeric"},timeInput:{hour:"numeric",minute:"numeric"},monthYearLabel:{year:"numeric",month:"short"},dateA11yLabel:{year:"numeric",month:"long",day:"numeric"},monthYearA11yLabel:{year:"numeric",month:"long"},timeOptionLabel:{hour:"numeric",minute:"numeric"}}};let E=(()=>{var M;class y{}return M=y,(0,_.A)(y,"\u0275fac",function(a){return new(a||M)}),(0,_.A)(y,"\u0275mod",t.$C({type:M})),(0,_.A)(y,"\u0275inj",b.G2t({providers:[U()]})),y})();function U(M=j){return[{provide:x.D,useClass:R},{provide:x.a,useValue:M}]}},82933:(B,C,l)=>{l.r(C),l.d(C,{ArchiveModule:()=>re});var _=l(34487),b=l(89204),t=l(12481),P=l(19187),x=l(29404),h=l(39036),w=l(75797),$=l(64334),f=l(70271),R=l(89475),D=l(11249),j=l(98764),V=l(71870),E=l(34456),U=l(26368),M=l(54383),y=l(47309),p=l(71401),d=l(93595),v=l(44575),r=l(14967),I=l(48503),F=l(84205),g=l(85240),L=l(98509);let k=(()=>{var n;class c{get pagination(){return this._pagination.getValue()}set pagination(e){this._pagination.next(e)}get filterParams(){return this._filterParams.getValue()}set filterParams(e){this._filterParams.next(e)}constructor(e,i){this.router=e,this.activatedRoute=i,this._pagination=new w.t(void 0),this.pagination$=this._pagination.asObservable(),this._filterParams=new w.t(void 0),this.getArchiveSource=new F.B,this.getArchiveAnnounced$=this.getArchiveSource.asObservable()}announceGetBillsHistory(){this.getArchiveSource.next(this.filterParams)}updatePagination(e){void 0===this.pagination&&this.initPagination(),this.pagination.pagesCount=e.pagesCount,this.pagination.buttonShown=this.pagination.pagesCount>1}initPagination(){this.currentPage=this.getPageQueryParam(),this.pagination={pageNumber:this.currentPage,pageSize:10,buttonShown:!1}}getPageQueryParam(){const e=this.activatedRoute.snapshot.queryParams;return e.page?e.page:1}setPageParam(e){const i=this._filterParams.getValue();i.pageNumber=e,this.filterParams=i,this.currentPage=e}reset(){this.setPageParam(1),this.pagination=Object.assign(this.pagination,{page:1}),this.router.navigate([this.router.url.split("?")[0]])}}return(n=c).\u0275fac=function(e){return new(e||n)(g.KVO(L.Ix),g.KVO
1(L.nX))},n.\u0275prov=g.jDH({token:n,factory:n.\u0275fac}),c})();var W=l(48237),Q=l(64533),N=l(61977),Y=l(46679),Z=l(97024),G=l(93683);const q=()=>({standalone:!0}),tt=()=>["dateRange","dateFrom"],et=()=>["dateRange","dateTo"];function rt(n,c){if(1&n&&(t.j41(0,"div",12)(1,"mat-checkbox",13),t.nrm(2,"app-service-logo",14),t.j41(3,"div",15)(4,"div",16),t.EFF(5),t.k0s(),t.j41(6,"div",17),t.EFF(7),t.nI1(8,"translate"),t.j41(9,"span",18),t.EFF(10),t.k0s()()()()()),2&n){const o=c.item,e=c.item$;t.R7$(),t.Y8G("ngModel",e.selected),t.R7$(),t.Y8G("icon",null==o||null==o.menuButton?null:o.menuButton.icon),t.R7$(3),t.JRh(o.name),t.R7$(2),t.SpI("",t.bMT(8,5,"account.number")," "),t.R7$(3),t.JRh(o.account)}}function lt(n,c){if(1&n&&(t.j41(0,"div",19)(1,"span",20),t.EFF(2),t.nI1(3,"translate"),t.k0s()()),2&n){const o=t.XpG().items;t.R7$(2),t.Lme(" ",t.bMT(3,2,"profile.archive.filters.selected-count")," ",o.length)}}function st(n,c){1&n&&t.nVh(0,lt,4,4,"div",19),2&n&&t.vxM(c.items.length?0:-1)}function ct(n,c){if(1&n&&(t.j41(0,"div"),t.EFF(1),t.k0s()),2&n){const o=c.item;t.R7$(),t.JRh(null==o?null:o.label)}}function pt(n,c){1&n&&(t.j41(0,"mat-error"),t.EFF(1,"Invalid start date"),t.k0s())}function dt(n,c){1&n&&(t.j41(0,"mat-error"),t.EFF(1,"Invalid end date"),t.k0s())}function ht(n,c){if(1&n&&(t.j41(0,"div",9)(1,"mat-form-field",21)(2,"mat-date-range-input",22),t.nrm(3,"input",23)(4,"input",24),t.k0s(),t.nrm(5,"mat-datepicker-toggle",25)(6,"mat-date-range-picker",null,0),t.nVh(8,pt,2,0,"mat-error"),t.nVh(9,dt,2,0,"mat-error"),t.k0s()()),2&n){const o=t.sdS(7),e=t.XpG();t.R7$(2),t.Y8G("formGroup",e.form.get("dateRange"))("rangePicker",o),t.R7$(),t.Y8G("formControl",e.form.get(t.lJ4(7,tt))),t.R7$(),t.Y8G("formControl",e.form.get(t.lJ4(8,et))),t.R7$(),t.Y8G("for",o),t.R7$(3),t.vxM(e.form.get(t.lJ4(9,tt)).hasError("matStartDateInvalid")?8:-1),t.R7$(),t.vxM(e.form.get(t.lJ4(10,et)).hasError("matEndDateInvalid")?9:-1)}}const H=function O(n,c){const o=(0,y.a)(n,c?.in);return o.setDate(1),o.setHours(0,0,0,0),o}(new Date),z=new Date;let nt=(()=>{var n;class c extends U.I{set billsList$(e){this._billsList$=this.filterUniqTemplateId(e)}get billsList$(){return this._billsList$}constructor(e,i,u,A){super(e),this.formBuilder=i,this.translate=u,this.archivePaginationService=A,this.uniqList=new Set,this.showCalendar=!1,this.selectedId=[]}ngOnInit(){this.initPeriodSelectParams(),this.initForm()}filterUniqTemplateId(e){return e.pipe((0,j.M)(()=>this.uniqList=new Set),(0,f.T)(i=>i?.filter(u=>{const A=!this.uniqList.has(u.templateId);return this.uniqList.add(u.templateId),A})))}static getDefaultParams(){return{dateStart:(0,p.GP)(H,"yyyy-MM-dd"),dateEnd:(0,p.GP)(z,"yyyy-MM-dd"),pageNumber:1,pageSize:10}}submit(){const e={dateStart:(0,p.GP)(this.form.value.dateRange.dateFrom,"yyyy-MM-dd"),dateEnd:(0,p.GP)(this.form.value.dateRange.dateTo,"yyyy-MM-dd"),pageNumber:1,pageSize:10,templates:this.selectedId.length?[...this.selectedId]:null};var A;A=this.lastArchiveFilterParams,Object.entries(e).every(([S,K])=>A?.[S]==K)||(this.lastArchiveFilterParams=e,this.archivePaginationService.reset(),this.archivePaginationService.filterParams=e,this.archivePaginationService.announceGetBillsHistory())}initPeriodSelectParams(){const e=this.translate.instant("profile.archive.filters.instrument");this.periodSelectParams=[{id:0,label:e["current-month"],monthBefore:0},{id:1,label:e["last-3-month"],monthBefore:2},{id:2,label:e["last-6-month"],monthBefore:5},{id:3,label:this.translate.instant("payments.history.filter.instrument.calendar"),isCalendar:!0}]}initForm(){this.form=this.formBuilder.group({dateRange:this.formBuilder.group({dateFrom:[H,E.k0.required],dateTo:[z,E.k0.required]})}),this.form.get("dateRange").markAsTouched()}periodSelectParamsChange({isCalendar:e,monthBefore:i}){this.showCalendar=e??!1,e||this.setDateRange(i)}setDateRange(e){const i=function s(n,c,o){const{years:e=0,months:i=0,weeks:u=0,days:A=0,hours:S=0,minutes:K=0,seconds:le=0}=c,se=(0,r.a)(n,i+12*e,o),ce=(0,v.e)(se,A+7*u,o),de=1e3*(le+60*(K+60*S));return(0,d.w)(o?.in||n,+ce-de)}(H,{months:e});this.form.get("dateRange.dateFrom")?.setValue(i),this.form.get("dateRange.dateTo")?.setValue(z)}clearSelected(){this.selectedId=[],this.ngSelect.close()}}return(n=c).\u0275fac=function(e){return new(e||n)(t.rXU(t.Agw),t.rXU(E.ze),t.rXU(I.c$),t.rXU(k))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-archive-filters"]],viewQuery:function(e,i){if(1&e&&t.GBs(M.v,5),2&e){let u;t.mGM(u=t.lsd())&&(i.ngSelect=u.first)}},inputs:{billsList$:"billsList$"},standalone:!1,features:[t.Vt3],decls:17,vars:27,consts:[["rangePicker",""],[1,"archive-filter","profile-payments"],[1,"archive-filter__row","row"],[1,"archive-filter__select-bills","column"],["inputClass","","bindLabel","name","bindValue","templateId",1,"custom-select","custom-select--bills",3,"ngModelChange","clear","items","multiple","closeOnSelect","dropdownPosition","searchable","placeholder","notFoundText","ngModel","ngModelOptions"],["ng-option-tmp",""],["ng-multi-label-tmp",""],[1,"archive-filter__select-period","date-wrap","column"],["bindLabel","label","bindValue","id",1,"custom-select",3,"change","items","dropdownPosition","clearable","searchable","ngModel","ngModelOptions"],[1,"archive-filter__range","date-wrap","flex-container","column"],[1,"archive-filter__submit","column"],["type","submit",1,"button","light-blue",3,"click"],[1,"bill-option"],["color","primary",1,"template__checkbox","ep-checkbox",3,"ngModel"],[3,"icon"],[1,"bill-option__grid"],[1,"bill-option__name"],[1,"bill-option__account"],[1,"lite"],[1,"ng-value"],[1,"ng-value-label"],["appearance","outline","subscriptSizing","dynamic",1,"date-range","flex-child-shrink","subscript-wrapper-mb-0"],[3,"formGroup","rangePicker"],["matStartDate","","placeholder","Start date","tabindex","-1","autocomplete","off",3,"formControl"],["matEndDate","","placeholder","End date","tabindex","-1","autocomplete","off",3,"formControl"],["matSuffix","",3,"for"]],template:function(e,i){1&e&&(t.j41(0,"section",1)(1,"div",2)(2,"div",3)(3,"ng-select",4),t.nI1(4,"async"),t.nI1(5,"translate"),t.nI1(6,"translate"),t.mxI("ngModelChange",function(A){return t.DH7(i.selectedId,A)||(i.selectedId=A),A}),t.bIt("clear",function(){return i.clearSelected()}),t.DNE(7,rt,11,7,"ng-template",5)(8,st,1,1,"ng-template",6),t.k0s()(),t.j41(9,"div",7)(10,"ng-select",8),t.bIt("change",function(A){return i.periodSelectParamsChange(A)}),t.DNE(11,ct,2,1,"ng-template",5),t.k0s()(),t.nVh(12,ht,10,11,"div",9),t.j41(13,"div",10)(14,"button",11),t.bIt("click",function(){return i.submit()}),t.EFF(15),t.nI1(16,"translate"),t.k0s()()()()),2&e&&(t.R7$(3),t.Y8G("items",t.bMT(4,17,i.billsList$))("multiple",!0)("closeOnSelect",!1)("dropdownPosition","above")("searchable",!1)("placeholder",t.bMT(5,19,"payments.profile.billsFilters.all"))("notFoundText",t.bMT(6,21,"payments.profile.calendar.noAvailable")),t.R50("ngModel",i.selectedId),t.Y8G("ngModelOptions",t.lJ4(25,q)),t.R7$(7),t.Y8G("items",i.periodSelectParams)("dropdownPosition","above")("clearable",!1)("searchable",!1)("ngModel",i.periodSelectParams[0].id)("ngModelOptions",t.lJ4(26,q)),t.R7$(2),t.vxM(i.showCalendar?12:-1),t.R7$(3),t.SpI(" ",t.bMT(16,23,"profile.archive.filters.submit")," "))},dependencies:[E.me,E.BC,E.cb,E.vS,E.l_,E.j4,W.y,M.v,Q.Uq,Q.EY,N.bU,N.el,N.xR,N.IG,N.SG,Y.j,Y.b,Y.g,Z.So,G.Jj,I.D9],styles:[".archive-filter__row{display:flex;flex-wrap:wrap;margin-top:-20px;margin-right:-5px;margin-left:-5px}@media only screen and (min-width: 1024px){.archive-filter__row{flex-wrap:nowrap}}.archive-filter__row>.column{margin-top:20px;padding-right:5px;padding-left:5px}.archive-filter{position:relative;background:#fff;border:1px solid #ebeff3;box-shadow:0 0 10px #0000000d;padding:20px 10px;z-index:1}@media only screen and (min-width: 640px){.archive-filter{padding:20px 15px}}@media only screen and (min-width: 1024px){.archive-filter{padding:8px 20px;border-radius:5px 5px 0 0;box-shadow:0 -5px 10px -2px #0000000d}}
1.archive-filter .ng-select-container .ng-value-container{padding-right:5px}.archive-filter__select-bills{width:300px;flex:0 1 300px;max-width:100%}.archive-filter__select-period{flex:0 0 160px}.archive-filter__range{flex:0 1 190px;max-width:200px}.archive-filter__range .date-range{border:1px solid #EBEFF3;box-shadow:0 0 10px #0000000d;border-radius:5px;height:40px;--mat-form-field-container-text-size: 13px;--mat-typography-body1-font-size: 15px;--mat-typography-body1-font-weight: 300}.archive-filter__range .date-range .mat-mdc-form-field-infix{min-height:38px;padding-top:7px;padding-bottom:7px}.archive-filter__range .date-range .mat-mdc-text-field-wrapper{height:100%}.archive-filter__range .date-range.mat-form-field-appearance-outline .mdc-text-field--outlined{padding:0 10px}.archive-filter__range .date-range .mdc-notched-outline__leading{width:1px}.archive-filter__range .date-range .mdc-notched-outline__leading,.archive-filter__range .date-range .mdc-notched-outline__notch,.archive-filter__range .date-range .mdc-notched-outline__trailing{border-color:#eaecf6!important}.archive-filter__range .date-range{--mat-icon-button-state-layer-size: 38px}.archive-filter__range .date-range .mat-mdc-form-field-icon-suffix{position:static;padding:0}.archive-filter__range .date-range .mat-mdc-form-field-icon-suffix .mat-datepicker-toggle .mdc-icon-button{position:absolute;top:0;left:0;right:0;bottom:0;width:100%;height:100%;border-radius:0}.archive-filter__range .date-range .mat-datepicker-toggle-default-icon{display:none}.archive-filter__range .date-range .mat-icon-button.cdk-program-focused .mat-button-focus-overlay{opacity:0}.archive-filter__range .date-range.mat-mdc-form-field{max-width:212px}.archive-filter__range .mat-mdc-form-field{font-weight:300}.archive-filter__submit{flex:0 1 100px;width:82px}.archive-filter__submit .button{height:40px;font-size:13px;box-shadow:0 2px 4px #2380f280}.archive-filter .custom-select.custom-select--bills{max-width:300px}.archive-filter .custom-select.custom-select--bills .ng-dropdown-panel .ng-dropdown-panel-items .ng-option,.archive-filter .custom-select.custom-select--bills .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked,.archive-filter .custom-select.custom-select--bills .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-selected{background-color:#fff;padding:0;white-space:normal}.archive-filter .custom-select.custom-select--bills .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-marked .mdc-checkbox__ripple{opacity:.05}.archive-filter .custom-select.custom-select--bills .ng-dropdown-panel .ng-dropdown-panel-items .ng-option.ng-option-disabled{padding:10px}.archive-filter .custom-select.custom-select--bills .ng-placeholder{top:10px;font-size:13px}.archive-filter .custom-select.custom-select--bills .ng-input{height:0}.archive-filter .custom-select.custom-select--bills .ng-dropdown-panel-items{max-height:400px}.bill-option__name{line-height:15px}.bill-option__account{line-height:24px}.bill-option .mat-mdc-checkbox{display:block;width:100%;font-weight:400}.bill-option .mat-mdc-checkbox .mdc-form-field{align-items:center;width:100%;margin:0;padding:13px 10px 13px 0}.bill-option .mdc-form-field>label{display:flex;flex:1 1 100%;align-items:center;max-width:calc(100% - 24px);font-size:13px;padding-left:0}.bill-option app-service-logo{width:29px;height:29px;margin-right:10px;flex:0 0 29px}.bill-option .bill-option__grid{flex:1 0 193px;white-space:normal;word-break:break-word}\n"],encapsulation:2,changeDetection:0}),c})(),mt=(()=>{var n;class c{}return(n=c).\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.VBU({type:n,selectors:[["app-archive-info"]],standalone:!1,decls:21,vars:21,consts:[[1,"archive__info"],[3,"innerHtml"],[1,"archive__info-status-types"],[1,"color-black"],[1,"archive__info-status-item"],["type","button",1,"archive__status-btn","new"],["type","button",1,"archive__status-btn","payed"]],template:function(e,i){1&e&&(t.j41(0,"div",0),t.nrm(1,"p",1),t.nI1(2,"translate"),t.nrm(3,"p",1),t.nI1(4,"translate"),t.j41(5,"div",2)(6,"span",3),t.EFF(7),t.nI1(8,"translate"),t.k0s(),t.j41(9,"div",4)(10,"button",5),t.EFF(11),t.nI1(12,"translate"),t.k0s(),t.EFF(13),t.nI1(14,"translate"),t.k0s(),t.j41(15,"div",4)(16,"button",6),t.EFF(17),t.nI1(18,"translate"),t.k0s(),t.EFF(19),t.nI1(20,"translate"),t.k0s()()()),2&e&&(t.R7$(),t.Y8G("innerHtml",t.bMT(2,7,"profile.archive.info.definition"),t.npT),t.R7$(2),t.Y8G("innerHtml",t.bMT(4,9,"profile.archive.info.rules"),t.npT),t.R7$(4),t.JRh(t.bMT(8,11,"profile.archive.info.states")),t.R7$(4),t.JRh(t.bMT(12,13,"profile.archive.
1states.new-state")),t.R7$(2),t.SpI(" ",t.bMT(14,15,"profile.archive.states.new-state-description")," "),t.R7$(4),t.JRh(t.bMT(18,17,"profile.archive.states.payed-state")),t.R7$(2),t.SpI(" ",t.bMT(20,19,"profile.archive.states.payed-state-description")," "))},dependencies:[I.D9],styles:['.archive__status-btn{width:80px;height:24px;border:1px solid;border-radius:4px;font-size:13px;line-height:20px;text-transform:capitalize}.archive__status-btn.new{color:#1f83fe}.archive__status-btn.payed{color:#32aa55}:host{display:block}.archive__info{max-width:590px;margin-bottom:26px;padding:16px;background:#fff;border:1px dashed #1f83fe;border-radius:4px;line-height:18px}@media only screen and (min-width: 640px){.archive__info{padding:20px 18px 23px}}.archive__info .color-black{color:#000}.archive__info-step{position:relative;display:block;padding-left:11px;line-height:15px}@media (max-width: 639.8px){.archive__info-step{margin:8px 0 6px}}.archive__info-step:before{content:"";position:absolute;left:0;top:5px;height:4px;width:4px;border-radius:50%;background-color:#f8a719}.archive__info-note{opacity:.5}.archive__info-status-types button{margin-right:10px}@media (max-width: 639.8px){.archive__info-status-types button{display:block;margin-bottom:6px}}.archive__info-status-item{padding-top:12px}\n'],encapsulation:2,changeDetection:0}),c})();const gt=n=>({"show-info":n});let ut=(()=>{var n;class c{constructor(){this.isShownChange=new t.bkB}toggleDescription(){this.isShown=!this.isShown,this.isShownChange.emit(this.isShown)}}return(n=c).\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.VBU({type:n,selectors:[["app-archive-info-icon"]],inputs:{isShown:"isShown"},outputs:{isShownChange:"isShownChange"},standalone:!1,decls:3,vars:3,consts:[["type","button","aria-label","show/hide details",1,"archive__info-icon",3,"click","ngClass"],["width","6","height","4","viewBox","0 0 6 4","fill","none","xmlns","http://www.w3.org/2000/svg"],["d","M0.7075 3.7075L3 1.415L5.2925 3.7075L6 3L3 0L0 3L0.7075 3.7075Z","fill","#fff"]],template:function(e,i){1&e&&(t.j41(0,"button",0),t.bIt("click",function(){return i.toggleDescription()}),g.qSk(),t.j41(1,"svg",1),t.nrm(2,"path",2),t.k0s()()),2&e&&t.Y8G("ngClass",t.eq3(1,gt,i.isShown))},dependencies:[G.YU],styles:[".archive__info-icon[_ngcontent-%COMP%]{position:relative;width:14px;height:14px;margin-left:10px;background:url(https://cdn.easypay.ua//images/svg/info-new.svg);background-size:cover;border:none;border-radius:50%;font-size:0;color:transparent;vertical-align:middle;cursor:pointer}.archive__info-icon[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:none}.archive__info-icon.show-info[_ngcontent-%COMP%]{background:#1f83fe;opacity:.5}.archive__info-icon.show-info[_ngcontent-%COMP%]   svg[_ngcontent-%COMP%]{display:initial}"],changeDetection:0}),c})();var _t=l(25200),ft=l(24331),vt=l(68121),bt=l(60316),xt=l(97887),yt=l(88036),J=l(82423),it=l(6673),Mt=l(19838),at=l(68071);const ot=n=>({templateid:n}),Ct=n=>[n];function Pt(n,c){if(1&n&&(t.j41(0,"button",7),t.EFF(1),t.nI1(2,"translate"),t.k0s()),2&n){const o=t.XpG();t.Y8G("ngClass",o.bill.isPaid?"payed":"new"),t.R7$(),t.SpI(" ",t.bMT(2,2,o.bill.isPaid?"profile.archive.
1states.payed-state":"profile.archive.states.new-state")," ")}}function wt(n,c){if(1&n&&(t.j41(0,"span",9),t.EFF(1),t.nI1(2,"date"),t.k0s()),2&n){const o=t.XpG();t.R7$(),t.SpI(" ",t.i5U(2,1,null==o.bill?null:o.bill.dateLastPayment,"dd.MM.yyyy")," ")}}function Ot(n,c){1&n&&t.EFF(0," \u2014 ")}function It(n,c){if(1&n){const o=t.RV6();t.j41(0,"li")(1,"a",14),t.nI1(2,"localize"),t.EFF(3),t.nI1(4,"translate"),t.k0s()(),t.j41(5,"li")(6,"button",15),t.bIt("click",function(){g.eBV(o);const i=t.XpG();return g.Njj(i.remove())}),t.EFF(7),t.nI1(8,"translate"),t.k0s()()}if(2&n){const o=t.XpG();t.R7$(),t.Y8G("routerLink",t.bMT(2,4,"/templates/edit"))("queryParams",t.eq3(10,ot,o.bill.templateId)),t.R7$(2),t.SpI(" ",t.bMT(4,6,"payments.profile.templates.actions.edit")," "),t.R7$(4),t.JRh(t.bMT(8,8,"payments.cards.actions.remove"))}}function At(n,c){if(1&n&&(t.j41(0,"li")(1,"a",16),t.nI1(2,"localize"),t.EFF(3),t.nI1(4,"translate"),t.k0s()()),2&n){const o=t.XpG();t.R7$(),t.Y8G("routerLink",t.eq3(7,Ct,t.bMT(2,3,o.getButtonPath(null==o.bill||null==o.bill.menuButton?null:o.bill.menuButton.url))))("queryParams",t.eq3(9,ot,o.bill.templateId)),t.R7$(2),t.SpI(" ",t.bMT(4,5,"payments.history.grid.actions.rePayment")," ")}}function Ft(n,c){if(1&n){const o=t.RV6();t.j41(0,"li")(1,"button",17),t.bIt("click",function(){g.eBV(o);const i=t.XpG();return g.Njj(i.getReceiptHtml())}),t.EFF(2),t.nI1(3,"translate"),t.k0s()()}2&n&&(t.R7$(2),t.JRh(t.bMT(3,1,"payments.history.grid.actions.receipt")))}let Tt=(()=>{var n;class c{constructor(){this.delete=new t.bkB,this.getReceipt=new t.bkB}ngOnInit(){this.billStatus=null===this.bill.isPaid?"status--null":this.bill.isPaid?"status--payed":"status--new"}addActiveClass(){this.active=!this.active}remove(){this.delete.emit(this.bill.templateId),this.menu.closeContextMenu()}getButtonPath(e){return e?Mt.D5.CATALOG_ROUTE_PREFIX+e:null}getReceiptHtml(){const{transactionId:e,paidAmount:i}=this.bill;this.getReceipt.emit({transactionId:e,paidAmount:i})}}return(n=c).\u0275fac=function(e){return new(e||n)},n.\u0275cmp=t.VBU({type:n,selectors:[["app-archive-bill-item"]],viewQuery:function(e,i){if(1&e&&t.GBs(it.E,5),2&e){let u;t.mGM(u=t.lsd())&&(i.menu=u.first)}},hostVars:4,hostBindings:function(e,i){1&e&&t.bIt("click",function(){return i.addActiveClass()}),2&e&&(t.HbH(i.billStatus),t.AVh("active",i.active))},inputs:{bill:"bill"},outputs:{delete:"delete",getReceipt:"getReceipt"},standalone:!1,decls:37,vars:43,consts:[[1,"archive-bill"],[1,"archive-bill__info"],[1,"archive-bill__logo"],[3,"icon"],[1,"archive-bill__name",3,"title"],[1,"archive-bill__account",3,"title"],[1,"archive-bill__status"],["type","button",1,"archive__status-btn",3,"ngClass"],[1,"a-bill__data","a-bill__data--date"],[1,"archive-bill__value"],[1,"a-bill__data","a-bill__data--amount"],[1,"a-bill__data","a-bill__data--pay-date"],[1,"a-bill__data","a-bill__data--paid-amount"],[1,"archive-bill__menu"],[1,"context-menu-action","edit-action",3,"routerLink","queryParams"],["type","button",1,"context-menu-action","delete-action",3,"click"],[1,"context-menu-action","repeat-action",3,"routerLink","queryParams"],["type","button",1,"context-menu-action","bill-action",3,"click"]],template:function(e,i){1&e&&(t.j41(0,"div",0)(1,"div",1)(2,"div",2),t.nrm(3,"app-service-logo",3),t.k0s(),t.j41(4,"div",4),t.EFF(5),t.k0s(),t.j41(6,"div",5),t.EFF(7),t.nI1(8,"translate"),t.k0s()(),t.j41(9,"div",6),t.nVh(10,Pt,3,4,"button",7),t.k0s(),t.j41(11,"div",8),t.nI1(12,"translate"),t.j41(13,"span",9),t.EFF(14),t.nI1(15,"date"),t.k0s()(),t.j41(16,"div",10),t.nI1(17,"translate"),t.j41(18,"span",9),t.EFF(19),t.nI1(20,"number"),t.nI1(21,"translate"),t.k0s()(),t.j41(22,"div",11),t.nI1(23,"translate"),t.nVh(24,wt,3,4,"span",9)(25,Ot,1,0),t.k0s(),t.j41(26,"div",12),t.nI1(27,"translate"),t.j41(28,"span",9),t.EFF(29),t.nI1(30,"number"),t.nI1(31,"translate"),t.k0s()(),t.j41(32,"div",13)(33,"app-context-menu"),t.nVh(34,It,9,12),t.nVh(35,At,5,11,"li"),t.nVh(36,Ft,4,3,"li"),t.k0s()()()),2&e&&(t.R7$(3),t.Y8G("icon",null==i.bill||null==i.bill.menuButton?null:i.bill.menuButton.icon),t.R7$(),t.Y8G("title",i.bill.name),t.R7$(),t.JRh(i.bill.name),t.R7$(),t.Y8G("title",i.bill.account),t.R7$(),t.Lme("",t.bMT(8,20,"account.number")," ",i.bill.account),t.R7$(3),t.vxM(null!==i.bill.isPaid?10:-1),t.R7$(),t.BMQ("data-param",t.bMT(12,22,"profile.archive.bill-param.date")),t.R7$(3),t.SpI(" ",t.i5U(15,24,i.bill.invoiceDate,"dd.MM.yyyy")," "),t.R7$(2),t.BMQ("data-param",t.bMT(17,27,"profile.archive.bill-param.amount")),t.R7$(3),t.Lme(" ",t.i5U(20,29,i.bill.amount,"1.2-2"),"\xa0",t.bMT(21,32,"shared.amount.currency")," "),t.R7$(3),t.BMQ("data-param",t.bMT(23,34,"profile.archive.bill-param.last-payment")),t.R7$(2),t.vxM(null!=i.bill&&i.bill.dateLastPayment?24:25),t.R7$(2),t.BMQ("data-param",t.bMT(27,36,"profile.archive.bill-param.paid-amount")),t.R7$(3),t.Lme(" ",t.i5U(30,38,i.bill.paidAmount,"1.2-2"),"\xa0",t.bMT(31,41,"shared.amount.currency")," "),t.R7$(5),t.vxM(i.bill.isPaid?-1:34),t.R7$(),t.vxM(i.bill.paidAmount>0&&i.bill.templateId?35:-1),t.R7$(),t.vxM(i.bill.isPaid?36:-1))},dependencies:[G.YU,_.Wk,W.y,it.E,G.QX,G.vh,I.D9,at.t],styles:['.archive__status-btn[_ngcontent-%COMP%]{width:80px;height:24px;border:1px solid;border-radius:4px;font-size:13px;line-height:20px;text-transform:capitalize}.archive__status-btn.new[_ngcontent-%COMP%]{color:#1f83fe}.archive__status-btn.payed[_ngcontent-%COMP%]{color:#32aa55}[_nghost-%COMP%]{display:block;border:1px solid transparent;border-bottom-color:#ebeff3;background-color:#fff;transition:all .15s}[_nghost-%COMP%]:last-of-type{border-radius:0 0 5px 5px}@media only screen and (max-width: 1023.8px){[_nghost-%COMP%]:first-of-type{border-radius:5px 5px 0 0}}@media only screen and (min-width: 1024px){[_nghost-%COMP%]{border-width:0 0 1px 0}[_nghost-%COMP%]:hover{background-color:#fafbfd}}.active[_nghost-%COMP%]   .archive-bill__name[_ngcontent-%COMP%], .active[_nghost-%COMP%]   .archive-bill__account[_ngcontent-%COMP%]{white-space:normal}@media (max-width: 639.8px){.status--null[_nghost-%COMP%]   .a-bill__data--pay-date[_ngcontent-%COMP%], .status--new[_nghost-%COMP%]   .a-bill__data--pay-date[_ngcontent-%COMP%], .status--null[_nghost-%COMP%]   .a-bill__data--paid-amount[_ng
1content-%COMP%], .status--new[_nghost-%COMP%]   .a-bill__data--paid-amount[_ngcontent-%COMP%]{display:none}.status--payed[_nghost-%COMP%]   .a-bill__data--pay-date[_ngcontent-%COMP%], .status--payed[_nghost-%COMP%]   .a-bill__data--amount[_ngcontent-%COMP%]{display:none}.active[_nghost-%COMP%]{margin:10px 0;border-radius:5px;border:1px solid #1f83fe;box-shadow:0 0 10px #0000000d}.active[_nghost-%COMP%]   .a-bill__data[_ngcontent-%COMP%]{display:flex}}.archive-bill[_ngcontent-%COMP%]{position:relative;padding:18px 20px 12px}@media only screen and (min-width: 640px){.archive-bill[_ngcontent-%COMP%]{display:flex;flex-direction:row;flex-wrap:wrap}}@media only screen and (min-width: 1024px){.archive-bill[_ngcontent-%COMP%]{flex-wrap:nowrap;align-items:center;padding:12px 30px 12px 20px}}.archive-bill__info[_ngcontent-%COMP%]{display:grid;grid-template-areas:"logo caption" "logo account";grid-template-columns:29px 1fr;grid-template-rows:auto auto;gap:2px 10px}@media only screen and (min-width: 640px) and (max-width: 1023.8px){.archive-bill__info[_ngcontent-%COMP%]{flex:1 0 100%}}@media only screen and (min-width: 1024px){.archive-bill__info[_ngcontent-%COMP%]{flex:1 0 37%;max-width:300px}}.archive-bill__logo[_ngcontent-%COMP%]{-ms-grid-row:1;-ms-grid-row-span:3;-ms-grid-column:1;grid-area:logo;height:29px;width:29px;margin-top:2px}@media only screen and (min-width: 1024px){.archive-bill__account[_ngcontent-%COMP%], .archive-bill__name[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}}.archive-bill__name[_ngcontent-%COMP%]{-ms-grid-row:1;-ms-grid-column:3;grid-area:caption;font-weight:400;line-height:15px}.archive-bill__account[_ngcontent-%COMP%]{-ms-grid-row:3;-ms-grid-column:3;grid-area:account;line-height:15px}.a-bill__data[_ngcontent-%COMP%]{display:flex;padding-top:14px}.a-bill__data[_ngcontent-%COMP%]:before{content:attr(data-param);display:block;width:80px;width:clamp(90px,70%,135px);padding-right:10px}@media only screen and (min-width: 1024px){.a-bill__data[_ngcontent-%COMP%]:before{content:none}}@media only screen and (min-width: 640px){.a-bill__data[_ngcontent-%COMP%]{flex-direction:column;flex:0 1 25%}.a-bill__data--pay-date[_ngcontent-%COMP%]{flex:1 0 33%}.a-bill__data--paid-amount[_ngcontent-%COMP%]{flex:1 0 17%}}@media only screen and (min-width: 1024px){.a-bill__data[_ngcontent-%COMP%]{flex:1 0 13%;padding:0 10px;text-align:center}}.archive-bill__value[_ngcontent-%COMP%]{font-weight:500}@media only screen and (min-width: 1024px){.archive-bill__value[_ngcontent-%COMP%]{font-weight:300}}@media only screen and (max-width: 1023.8px){.archive-bill__status[_ngcontent-%COMP%]{flex:1 0 100%}.archive-bill__status[_ngcontent-%COMP%]   button[_ngcontent-%COMP%]{margin-top:14px}}@media only screen and (min-width: 1024px){.archive-bill__status[_ngcontent-%COMP%]{order:1;min-width:80px}}@media only screen and (min-width: 1024px){.a-bill__data--paid-amount[_ngcontent-%COMP%]{order:1}}.archive-bill__menu[_ngcontent-%COMP%]{position:absolute;top:0;right:0}@media only screen and (min-width: 1024px){.archive-bill__menu[_ngcontent-%COMP%]{top:calc(50% - 23px);right:-10px}}'],changeDetection:0}),c})();const Dt=["*"],Rt=(n,c,o)=>({itemsPerPage:n,currentPage:c,totalItems:o}),$t=()=>["/templates/create/utility"];function Et(n,c){if(1&n){const o=t.RV6();t.j41(0,"app-archive-bill-item",14),t.bIt("delete",function(i){g.eBV(o);const u=t.XpG(3);return g.Njj(u.delete.emit(i))})("getReceipt",function(i){g.eBV(o);const u=t.XpG(3);return g.Njj(u.getReceiptHmtl(i))}),t.k0s()}2&n&&t.Y8G("bill",c.$implicit)}function St(n,c){1&n&&(t.j41(0,"div",13)(1,"div",15)(2,"span",16),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.nrm(5,"br"),t.j41(6,"button",17),t.nI1(7,"localize"),t.EFF(8),t.nI1(9,"translate"),t.k0s()()()),2&n&&(t.R7$(3),t.JRh(t.bMT(4,3,"profile.archive.empty-list")),t.R7$(3),t.Y8G("routerLink",t.bMT(7,5,t.lJ4(9,$t))),t.R7$(2),t.SpI(" ",t.bMT(9,7,"payments.profile.templates.create")," "))}function Bt(n,c){1&n&&(t.j41(0,"div",13)(1,"div",15),t.nrm(2,"img",18),t.j41(3,"p",16),t.EFF(4),t.nI1(5,"translate"),t.k0s()()()),2&n&&(t.R7$(4),t.JRh(t.bMT(5,1,"profile.archive.empty-list-period")))}function jt(n,c){if(1&n&&(t.j41(0,"section",4)(1,"div",5)(2,"span",6),t.EFF(3),t.nI1(4,"translate"),t.k0s(),t.j41(5,"span",7),t.EFF(6),t.nI1(7,"translate"),t.k0s(),t.j41(8,"span",8),t.EFF(9),t.nI1(10,"translate"),t.k0s(),t.j41(11,"span",9),t.EFF(12),t.nI1(13,"translate"),t.k0s(),t.nrm(14,"span",10),t.j41(15,"span",11),t.EFF(16),t.nI1(17,"translate"),t.k0s()(),t.Z7z(18,Et,1,1,"app-archive-bill-item",12,t.fX1),t.nI1(20,"paginate"),t.nVh(21,St,10,10,"div",13),t.nVh(22,Bt,6,3,"div",13),t.SdG(23),t.k0s()),2&n){const o=c.ngLet,e=t.XpG().ngLet,i=t.XpG();t.R7$(3),t.JRh(t.bMT(4,7,"profile.archive.bill-param.name")),t.R7$(3),t.JRh(t.bMT(7,9,"profile.archive.bill-param.date")),t.R7$(3),t.JRh(t.bMT(10,11,"profile.archive.bill-param.amount")),t.R7$(3),t.JRh(t.bMT(13,13,"profile.archive.bill-param.pay-date")),t.R7$(4),t.JRh(t.bMT(17,15,"profile.archive.bill-param.paid-amount")),t.R7$(2),t.Dyx(t.i5U(20,17,o,t.sMw(20,Rt,null==e?null:e.pageSize,i.archivePaginationService.currentPage,(null==e?null:e.pagesCount)*(null==e?null:e.pageSize)))),t.R7$(3),t.vxM(0===(null==o?null:o.length)&&!1===i.hasAnyTemplate?21:-1),t.R7$(),t.vxM(0===(null==o?null:o.length)&&i.hasAnyTemplate?22:-1)}}function Lt(n,c){if(1&n){const o=t.RV6();t.j41(0,"button",31),t.bIt("click",function(){g.eBV(o);const i=t.XpG().$implicit;t.XpG();const u=t.sdS(6);return g.Njj(u.setCurrent(i.value))}),t.EFF(1),t.k0s()}if(2&n){const o=t.XpG().$implicit;t.R7$(),t.JRh(o.label)}}function kt(n,c){if(1&n&&(t.j41(0,"button",30),t.EFF(1),t.k0s()),2&n){const o=t.XpG().$implicit;t.R7$(),t.JRh(o.label)}}function Gt(n,c){if(1&n&&(t.j41(0,"div",28),t.nVh(1,Lt,2,1,"button",29)(2,kt,2,1,"button",30),t.k0s()),2&n){const o=c.$implicit;t.XpG();const e=t.sdS(6);t.AVh("current",e.getCurrent()===o.value),t.R7$(),t.vxM(e.getCurrent()!==o.value?1:2)}}function Nt(n,c){if(1&n){const o=t.RV6();t.j41(0,"div",3)(1,"div",19),t.EFF(2),t.nI1(3,"translate"),t.nI1(4,"translate"),t.k0s(),t.j41(5,"pagination-template",20,0
1),t.nI1(7,"async"),t.bIt("pageChange",function(i){g.eBV(o);const u=t.XpG(2);return g.Njj(u.pageChange(i))}),t.j41(8,"div",21)(9,"div",22)(10,"button",23),t.bIt("click",function(){g.eBV(o);const i=t.sdS(6);return g.Njj(i.previous())}),t.j41(11,"span",24),t.EFF(12),t.nI1(13,"translate"),t.k0s()()(),t.j41(14,"div",25),t.Z7z(15,Gt,3,3,"div",26,t.fX1),t.k0s(),t.j41(17,"div",22)(18,"button",27),t.bIt("click",function(){g.eBV(o);const i=t.sdS(6);return g.Njj(i.next())}),t.j41(19,"span",24),t.EFF(20),t.nI1(21,"translate"),t.k0s()()()()()()}if(2&n){const o=t.sdS(6),e=t.XpG().ngLet,i=t.XpG();t.R7$(2),t.LHq(" ",t.bMT(3,9,"orders.history.pagination.shown")," ",e.pageNumber," ",t.bMT(4,11,"orders.history.pagination.from")," ",null==e?null:e.pagesCount," "),t.R7$(3),t.Y8G("maxSize",t.bMT(7,13,i.publicService.isDesktopDevice$)?6:5),t.R7$(5),t.Y8G("disabled",o.isFirstPage()),t.R7$(2),t.JRh(t.bMT(13,15,"pagination.previous")),t.R7$(3),t.Dyx(o.pages),t.R7$(3),t.Y8G("disabled",o.isLastPage()),t.R7$(2),t.JRh(t.bMT(21,17,"pagination.next"))}}function Ut(n,c){if(1&n&&(t.qex(0),t.DNE(1,jt,24,24,"section",2),t.nI1(2,"async"),t.nVh(3,Nt,22,19,"div",3),t.bVm()),2&n){const o=c.ngLet,e=t.XpG();t.R7$(),t.Y8G("ngLet",t.bMT(2,2,e.billsList$)),t.R7$(2),t.vxM(null!=o&&o.buttonShown?3:-1)}}let Vt=(()=>{var n;class c{constructor(e,i,u,A,S){this.platformId=e,this.router=i,this.archivePaginationService=u,this.historyService=A,this.publicService=S,this.delete=new t.bkB,this.isBrowser=(0,bt.UE)(this.platformId),this.pagination$=this.archivePaginationService.pagination$}pageChange(e){isNaN(e)&&(e=1),this.router.navigate([this.router.url.split("?")[0]],{queryParams:{page:1!==e?e:null}}),this.archivePaginationService.setPageParam(e),this.archivePaginationService.announceGetBillsHistory()}scrollTop(){this.isBrowser&&(0,vt.F)(!0)}getReceiptHmtl({transactionId:e,paidAmount:i}){!e||!i||this.historyService.getReceiptPdf(e,i).subscribe()}}return(n=c).\u0275fac=function(e){return new(e||n)(t.rXU(t.Agw),t.rXU(L.Ix),t.rXU(k),t.rXU(_t.k),t.rXU(ft.Z))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-archive-bills-list"]],inputs:{billsList$:"billsList$",hasAnyTemplate:"hasAnyTemplate"},outputs:{delete:"delete"},standalone:!1,ngContentSelectors:Dt,decls:2,vars:3,consts:[["p","paginationApi"],[4,"ngLet"],["class","archive__list relative",4,"ngLet"],[1,"pagination","flex-container","small-16","align-middle","align-justify"],[1,"archive__list","relative"],[1,"archive__list-columns","flex-container","align-justify","show-for-large"],[1,"bill-col__name"],[1,"bill-col__date"],[1,"bill-col__amount"],[1,"bill-col__pay-date"],[1,"bill-col__status"],[1,"bill-col__paid-amount"],[3,"bill"],[1,"empty-list"],[3,"delete","getReceipt","bill"],[1,"empty-list__content"],[1,"empty-list__text"],["type","button",1,"light-blue","button",3,"routerLink"],["src","https://cdn.easypay.ua/images/svg/profile/bills-not-found.svg","alt",""],[1,"pagination-info","show-for-medium","shrink"],[1,"flex-child-auto","medium-flex-child-shrink",3,"pageChange","maxSize"],[1,"row","pagination-row","no-wrap"],[1,"column","shrink"],["mat-ripple","",1,"button","pagination_prev",3,"click","disabled"],[1,"show-for-large"],[1,"pages","flex-container","align-middle"],[1,"column","pages-column",3,"current"],["mat-ripple","",1,"button","pagination_next",3,"click","disabled"],[1,"column","pages-column"],["mat-ripple","",1,"button","pagination_btn"],["mat-ripple","",1,"button","pagination_btn","current"],["mat-ripple","",1,"button","pagination_btn",3,"click"]],template:function(e,i){1&e&&(t.NAR(),t.DNE(0,Ut,4,4,"ng-container",1),t.nI1(1,"async")),2&e&&t.Y8G("ngLet",t.bMT(1,1,i.pagination$))},dependencies:[_.Wk,xt.N,yt.M,J.Qr,Tt,G.Jj,I.D9,at.t,J.kf],styles:['.pagination[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]{flex-wrap:nowrap}.pagination[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]   .pages-column[_ngcontent-%COMP%]{flex-basis:auto}@supports (display: flex){.pagination[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]{flex-wrap:wrap}.pagination[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]   .pages-column[_ngcontent-%COMP%]{flex-basis:0}}.pagination-container[_ngcontent-%COMP%]{margin-top:32px}@media only screen and (max-width: 1023.8px){.pagination-container[_ngcontent-%COMP%]{padding:0 8px}}@media only screen and (min-width: 640px){.pagination-container[_ngcontent-%COMP%]{margin-top:50px}}.pagination-container[_ngcontent-%COMP%]   .pagination_show-more[_ngcontent-%COMP%]{font-weight:400;font-size:16px;line-height:100%;text-align:center;color:#1f83fe;cursor:pointer;padding-left:32px}@media (max-width: 639.8px){.pagination-container[_ngcontent-%COMP%]   .pagination_show-more[_ngcontent-%COMP%]{padding-bottom:30px}}.pagination-container[_ngcontent-%COMP%]   .pagination_show-more[_ngcontent-%COMP%]:before{content:url(https://cdn.easypay.ua/images/svg/show-more.svg);position:absolute;
1left:0;top:0}.pagination-container[_ngcontent-%COMP%]   .pagination_show-more[disabled][_ngcontent-%COMP%]{cursor:auto;opacity:.7}.pagination[_ngcontent-%COMP%]{padding:0;margin-top:20px}@media only screen and (min-width: 640px){.pagination[_ngcontent-%COMP%]{margin:50px auto 0;border-radius:5px;padding:2px 2px 2px 20px;background-color:#fff}}.pagination-row[_ngcontent-%COMP%]{justify-content:space-between}@media only screen and (min-width: 640px){.pagination-row[_ngcontent-%COMP%]{justify-content:center}}.pagination-row.row[_ngcontent-%COMP%]{margin-left:auto;margin-right:auto}.pagination[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]{background:#fff;border-radius:5px;padding:0 5px}.pagination[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]   .column[_ngcontent-%COMP%]{padding-left:3px;padding-right:3px}.pagination[_ngcontent-%COMP%]   .pages-column[_ngcontent-%COMP%]{width:63px}.pagination[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{height:45px}.pagination[_ngcontent-%COMP%]   .button.pagination_btn[_ngcontent-%COMP%]{max-width:57px;width:100%;height:34px;color:#202020;background-color:transparent;transition:.3s;font-size:13px;font-weight:400}@media only screen and (min-width: 640px){.pagination[_ngcontent-%COMP%]   .button.pagination_btn[_ngcontent-%COMP%]{height:31px}}.pagination[_ngcontent-%COMP%]   .button.pagination_btn[_ngcontent-%COMP%]:hover, .pagination[_ngcontent-%COMP%]   .button.pagination_btn[_ngcontent-%COMP%]:active, .pagination[_ngcontent-%COMP%]   .button.pagination_btn.current[_ngcontent-%COMP%]{color:#fff;background:#1f83fe;border-radius:5px}.pagination[_ngcontent-%COMP%]   .pagination_prev[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%]   .pagination_next[_ngcontent-%COMP%]{position:relative;text-transform:capitalize;transition:.3s;background-color:#fff;border-radius:5px;font-size:13px;font-weight:400;height:44px;line-height:100%;color:#202020;padding:0 22px;border:none}@media only screen and (min-width: 1024px){.pagination[_ngcontent-%COMP%]   .pagination_prev[_ngcontent-%COMP%]:hover:not(:disabled), .pagination[_ngcontent-%COMP%]   .pagination_next[_ngcontent-%COMP%]:hover:not(:disabled){background-color:#f5f5f5}}.pagination[_ngcontent-%COMP%]   .pagination_prev.button[_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%]   .pagination_next.button[_ngcontent-%COMP%]{height:44px}.pagination[_ngcontent-%COMP%]   .pagination_prev[disabled][_ngcontent-%COMP%], .pagination[_ngcontent-%COMP%]   .pagination_next[disabled][_ngcontent-%COMP%]{opacity:1;color:#2020204d;cursor:auto}.pagination[_ngcontent-%COMP%]   .pagination_prev[disabled][_ngcontent-%COMP%]:before, .pagination[_ngcontent-%COMP%]   .pagination_next[disabled][_ngcontent-%COMP%]:before{border-color:#4b4e564d}.pagination[_ngcontent-%COMP%]   .pagination_prev[disabled][_ngcontent-%COMP%]:hover, .pagination[_ngcontent-%COMP%]   .pagination_next[disabled][_ngcontent-%COMP%]:hover{background-color:#fff}.pagination[_ngcontent-%COMP%]   .pagination_prev[_ngcontent-%COMP%]:before, .pagination[_ngcontent-%COMP%]   .pagination_next[_ngcontent-%COMP%]:before{content:"";position:absolute;top:18px;width:8px;height:8px;border-left:2px solid #4b4e56;border-top:2px solid #4b4e56}.pagination[_ngcontent-%COMP%]   .pagination_prev[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-left:19px}.pagination[_ngcontent-%COMP%]   .pagination_prev[_ngcontent-%COMP%]:before{left:19px;transform:rotate(-45deg)}.pagination[_ngcontent-%COMP%]   .pagination_next[_ngcontent-%COMP%]   span[_ngcontent-%COMP%]{padding-right:19px}.pagination[_ngcontent-%COMP%]   .pagination_next[_ngcontent-%COMP%]:before{right:19px;transform:rotate(135deg)}.pagination[_ngcontent-%COMP%]   .pagination-info[_ngcontent-%COMP%]{font-weight:400;color:#202020}@media (max-width: 639.8px){.pagination.page-white-bg[_ngcontent-%COMP%]   .pagination_prev[_ngcontent-%COMP%], .pagination.page-white-bg[_ngcontent-%COMP%]   .pagination_next[_ngcontent-%COMP%], .pagination.page-white-bg[_ngcontent-%COMP%]   .pages[_ngcontent-%COMP%]{border:1px solid #E2E2E2;box-shadow:0 0 12px #d6dceecf}}@media only screen and (min-width: 640px){.pagination.page-white-bg[_ngcontent-%COMP%]{border:1px solid #E2E2E2;box-shadow:0 0 12px #d6dceecf}}.archive__list[_ngcontent-%COMP%]{border-radius:5px;box-shadow:0 0 10px #0000000d;margin-top:10px}@media only screen and (min-width: 640px){.archive__list[_ngcontent-%COMP%]{border:1px solid #ebeff3}}@media only screen and (min-width: 1024px){.archive__list[_ngcontent-%COMP%]{margin-top:0;border-top:none;border-radius:0 0 5px 5px}}.archive__list-columns[_ngcontent-%COMP%]{display:flex;justify-content:space-between;
1height:44px;flex-wrap:nowrap;align-items:center;padding:17px 30px 12px 20px;border-bottom:1px solid #ebeff3;background-color:#fff;font-weight:400;font-size:13px;line-height:15px;text-align:center}.bill-col__name[_ngcontent-%COMP%]{flex:1 0 37%;max-width:300px}.bill-col__date[_ngcontent-%COMP%], .bill-col__amount[_ngcontent-%COMP%], .bill-col__pay-date[_ngcontent-%COMP%], .bill-col__paid-amount[_ngcontent-%COMP%]{flex:1 0 13%;padding:0 10px}.bill-col__status[_ngcontent-%COMP%]{min-width:80px}.empty-list[_ngcontent-%COMP%]{display:flex;min-height:240px;padding:10px;border-radius:5px;background-color:#fff}@media only screen and (min-width: 1024px){.empty-list[_ngcontent-%COMP%]{border-radius:0 0 5px 5px}}.empty-list__content[_ngcontent-%COMP%]{max-width:350px;margin:auto;text-align:center}.empty-list__content[_ngcontent-%COMP%]   .button[_ngcontent-%COMP%]{height:38px;width:auto;padding:0 20px;margin-top:14px}.empty-list__content[_ngcontent-%COMP%]   p[_ngcontent-%COMP%]{margin:24px 0 0}.empty-list__text[_ngcontent-%COMP%]{font-weight:400;color:#9e9e9e;line-height:15px}'],changeDetection:0}),c})();var Wt=l(60247);function Xt(n,c){if(1&n){const o=t.RV6();t.j41(0,"div",11),t.bIt("click",function(){g.eBV(o);const i=t.XpG();return g.Njj(i.removeError())}),t.nrm(1,"div",12),t.nI1(2,"safeHtml"),t.k0s()}if(2&n){const o=t.XpG();t.R7$(),t.Y8G("innerHtml",t.bMT(2,1,o.error.message),t.npT)}}function Yt(n,c){1&n&&(t.j41(0,"div",10),t.nrm(1,"div",13),t.k0s())}const Ht=[{path:"",component:(()=>{var n;class c extends x.C{constructor(e,i,u){super(e),this.templatesService=i,this.archivePaginationService=u,this.billsSource=new w.t(null),this.filterBillsSource$=new w.t(null),this.billsList$=this.billsSource.asObservable(),this.filterBills$=this.filterBillsSource$.asObservable(),this.isShownDescription=!1,this.showLoader$=new w.t(!1),this.alive=!0}ngOnInit(){var e=this;return(0,b.A)(function*(){e.isBrowser?(e.hasAnyTemplate=yield e.checkTemplates(),e.getArchive(),e.createBillsHistorySubscription()):e.showLoader$.next(!0)})()}checkTemplates(){return this.showLoader$.next(!0),this.templatesService.getAll({pageNumber:1,pageSize:1}).pipe((0,$.s)(1),(0,f.T)(e=>e?.items?.length>0),(0,R.j)(()=>this.showLoader$.next(!1))).toPromise().then()}ngOnDestroy(){this.alive=!1}createBillsHistorySubscription(){this.archivePaginationService.getArchiveAnnounced$.pipe((0,D.v)(()=>this.alive)).subscribe(e=>{this.getArchive(e)})}getArchive(e){void 0===e&&(e=nt.getDefaultParams()),this.archivePaginationService.filterParams=e,this.showLoader$.next(!0),this.templatesService.billsHistory(e).pipe((0,j.M)(i=>this.archivePaginationService.updatePagination(i)),(0,f.T)(i=>i?.items),(0,j.M)(i=>this.updateFilterBills(i,e?.templates?.length)),(0,V.u)(),(0,R.j)(()=>this.showLoader$.next(!1))).subscribe({next:i=>this.billsSource.next(i),error:()=>this.billsSource.next([])})}updateFilterBills(e,i){i||this.filterBillsSource$.next(e)}deleteBill(e){this.templatesService.remove(e).subscribe(()=>{const i=this.billsSource.getValue();this.billsSource.next(i.filter(u=>u.templateId!==e))})}}return(n=c).\u0275fac=function(e){return new(e||n)(t.rXU(t.Agw),t.rXU(h.z),t.rXU(k))},n.\u0275cmp=t.VBU({type:n,selectors:[["app-archive"]],standalone:!1,features:[t.Vt3],decls:14,vars:12,consts:[["errorBlock",""],[1,"archive","profile-payments_wrapper"],[1,"mobile-offset-block"],[1,"small-16","scroll-offset"],[1,"row","column","small-16"],[1,"profile__header-title"],[3,"isShownChange","isShown"],[2,"display","block"],[3,"billsList$"],[3,"delete","billsList$","hasAnyTemplate"],[1,"pre-bootstrap","inner"],[1,"row","column","small-16",3,"click"],[1,"block-error",3,"innerHtml"],[1,"loader","absolute",2,"top","150px"]],template:function(e,i){if(1&e){const u=t.RV6();t.j41(0,"main",1)(1,"section",2)(2,"div",3,0),t.nVh(4,Xt,3,3,"div",4),t.k0s(),t.j41(5,"h1",5),t.EFF(6),t.nI1(7,"translate"),t.j41(8,"app-archive-info-icon",6),t.mxI("isShownChange",function(S){return g.eBV(u),t.DH7(i.isShownDescription,S)||(i.isShownDescription=S),g.Njj(S)}),t.k0s()(),t.nrm(9,"app-archive-info",7),t.k0s(),t.nrm(10,"app-archive-filters",8),t.j41(11,"app-archive-bills-list",9),t.bIt("delete",function(S){return g.eBV(u),g.Njj(i.deleteBill(S))}),t.nVh(12,Yt,2,0,"div",10),t.nI1(13,"async"),t.k0s()()}2&e&&(t.R7$(4),t.vxM(i.error.isNoErrors?-1:4),t.R7$(2),t.SpI(" ",t.bMT(7,8,"profile.archive.title-name")," "),t.R7$(2),t.R50("isShown",i.isShownDescription),t.R7$(),t.Y8G("@showHideAnimation",i.isShownDescription),t.R7$(),t.Y8G("billsList$",i.filterBills$),t.R7$(),t.Y8G("billsList$",i.billsList$)("hasA
1nyTemplate",i.hasAnyTemplate),t.R7$(),t.vxM(t.bMT(13,10,i.showLoader$)?12:-1))},dependencies:[mt,ut,nt,Vt,G.Jj,I.D9,Wt.$],styles:[".mobile-offset-block[_ngcontent-%COMP%]{padding:0 10px 16px}@media only screen and (min-width: 640px){.mobile-offset-block[_ngcontent-%COMP%]{padding:0 0 19px}}"],data:{animation:[P.kE]},changeDetection:0}),c})()}];let zt=(()=>{var n;class c{}return(n=c).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=g.G2t({imports:[_.iI.forChild(Ht),_.iI]}),c})();var Jt=l(36624),Kt=l(18932),Qt=l(93887),Zt=l(99231),qt=l(79864),X=l(6423),te=l(74646),ee=l(15456),ne=l(48486),ie=l(44939),ae=l(83926),oe=l(22952);let re=(()=>{var n;class c{}return(n=c).\u0275fac=function(e){return new(e||n)},n.\u0275mod=t.$C({type:n}),n.\u0275inj=g.G2t({providers:[k,{provide:X.D,useClass:ae.L,deps:[X.M,X.a]},oe.z,{provide:X.a,useValue:ne.k}],imports:[Qt.G,zt,I.h,Jt.B,Kt.r,ie.co,Zt.M,N.X6,qt.fS,te.WX,ee.M,Z.g7,J.ed]}),c})()}}]);
2//# sourceMappingURL=225.5a7514cb70bc1dc4.js.map

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.