PageSourceSearch

https://szerzi.hu/common-8f614776.6627b4605f127a8c.js

js szerzi.hu collected 2026-10-04 13:24:59 UTC 42,883 bytes, 1 lines download raw bytes

1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[1762],{20647:(Ai,w,t)=>{t.d(w,{f:()=>y});var Z=t(97582),I=t(71997),d=t(44569),C=t(92961),m=t(36057),h=t(44224),D=t(52835),T=t(22971),O=t(43559),i=t(94650),M=t(50211),n=t(39889),B=t(31495),S=t(30144),K=t(93196),F=t(32925),W=t(3417),k=t(55089),J=t(61479),Q=t(83447),V=t(49651),Y=t(48454),P=t(36895),G=t(47216),j=t(87918),H=t(66616),$=t(47044),X=t(21811),q=t(51971),R=t(4788),x=t(73679),ii=t(47423),f=t(66152),L=t(20545),ni=t(65681),ei=t(37570),ti=t(58800),oi=t(75775),si=t(45144),b=t(12987),ri=t(81801),ai=t(23727);const ci=["htmlData"];function li(r,a){if(1&r&&(i.TgZ(0,"span"),i._uU(1),i.ALo(2,"translate"),i.ALo(3,"translate"),i.qZA()),2&r){const e=i.oxw(2);i.xp6(1),i.hij(" ",e.userType===e.UserType.Client?i.lcZ(2,1,"CLIENT.PROFILE.INVOICES.SUBSCRIPTION.NOT_SUBSCRIBED"):i.lcZ(3,3,"CLIENT.PROFILE.INVOICES.EMPTY_LAWYER")," ")}}function _i(r,a){if(1&r){const e=i.EpF();i.TgZ(0,"button",12),i.NdJ("click",function(){i.CHM(e);const _=i.oxw(3);return i.KtG(_.routerService.routeToSettingsTab(_.PageRoutes.settingsSubscriptionsTab))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&r&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CLIENT.PROFILE.INVOICES.SUBSCRIPTION.CHOOSE")," "))}function mi(r,a){if(1&r&&i.YNc(0,_i,3,3,"button",11),2&r){const e=i.oxw(2);i.Q6J("ngIf",e.userType===e.UserType.Client)}}function gi(r,a){if(1&r&&(i.TgZ(0,"nz-empty",8),i.YNc(1,li,4,5,"ng-template",null,9,i.W1O),i.YNc(3,mi,1,1,"ng-template",null,10,i.W1O),i.qZA()),2&r){const e=i.MAs(2),g=i.MAs(4);i.Q6J("@skeletonPosAbsLeave",void 0)("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",e)("nzNotFoundFooter",g)}}function vi(r,a){1&r&&i._UZ(0,"nz-skeleton-element",24),2&r&&i.Q6J("nzActive",!0)}function pi(r,a){1&r&&i._UZ(0,"nz-skeleton-element",25),2&r&&i.Q6J("nzActive",!0)}function di(r,a){if(1&r&&(i.TgZ(0,"nz-list-item",15)(1,"nz-list-item-meta",16)(2,"nz-list-item-meta-title")(3,"div",17),i._UZ(4,"nz-skeleton-element",18)(5,"nz-skeleton-element",19),i.qZA()()(),i.YNc(6,vi,1,1,"ng-template",null,20,i.W1O),i.YNc(8,pi,1,1,"ng-template",null,21,i.W1O),i.TgZ(10,"ul",22)(11,"nz-list-item-action"),i._UZ(12,"nz-skeleton-element",23),i.qZA(),i.TgZ(13,"nz-list-item-action",13),i._UZ(14,"nz-skeleton-element",23),i.qZA()()()),2&r){const e=i.MAs(7),g=i.MAs(9);i.xp6(1),i.Q6J("nzAvatar",e)("nzDescription",g),i.xp6(3),i.Q6J("nzActive",!0),i.xp6(1),i.Q6J("nzActive",!0),i.xp6(7),i.Q6J("nzActive",!0),i.xp6(2),i.Q6J("nzActive",!0)}}function ui(r,a){1&r&&(i.TgZ(0,"nz-list",13),i.YNc(1,di,15,6,"nz-list-item",14),i.ALo(2,"numberArray"),i.qZA()),2&r&&(i.Q6J("@skeletonPosAbsLeave",void 0),i.xp6(1),i.Q6J("ngForOf",i.lcZ(2,2,5)))}function Ii(r,a){1&r&&(i.TgZ(0,"div")(1,"p",26),i._uU(2),i.ALo(3,"translate"),i.qZA()()),2&r&&(i.xp6(2),i.hij(" ",i.lcZ(3,1,"CLIENT.PROFILE.INVOICES.LOAD_FAILED")," "))}function U(r,a){1&r&&i._UZ(0,"img",42)}function hi(r,a){1&r&&i._UZ(0,"img",43)}function Ti(r,a){if(1&r&&(i.YNc(0,U,1,0,"img",40),i.YNc(1,hi,1,0,"img",41)),2&r){const e=i.oxw().$implicit;i.Q6J("ngIf",e.ready),i.xp6(1),i.Q6J("ngIf",!e.ready)}}function Ei(r,a){if(1&r&&(i.TgZ(0,"span",44),i._uU(1),i.ALo(2,"currency"),i.ALo(3,"formatCurrencyName"),i.qZA()),2&r){const e=i.oxw().$implicit,g=i.oxw(2);i.xp6(1),i.AsE(" ",i.lcZ(2,2,g.lawyerServices[e.ID].payment.grossPriceSum),"\xa0",i.lcZ(3,4,g.Currency.HUF)," ")}}const E=function(r){return[r]};function l(r,a){if(1&r&&i._UZ(0,"app-multi-state-button",45),2&r){const e=i.oxw().$implicit,g=i.oxw(2);i.Q6J("showAsLink",!0)("stickResult",!1)("defaultFunction",g.downloadInvoiceFunction)("defaultFunctionParameters",i.VKq(5,E,e))("nzTextKeys",g.downloadInvoiceTextLowercase)}}function o(r,a){if(1&r){const e=i.EpF();i.TgZ(0,"button",46),i.NdJ("click",function(){i.CHM(e);const _=i.oxw().$implicit,v=i.oxw(2);return i.KtG(v.viewInvoice(_))}),i._uU(1),i.ALo(2,"translate"),i.qZA()}2&r&&(i.xp6(1),i.hij(" ",i.lcZ(2,1,"CLIENT.PROFILE.INVOICES.FUNCTIONS.VIEW")," "))}function s(r,a){1&r&&(i.TgZ(0,"p",47),i.ALo(1,"translate"),i._UZ(2,"i",48),i._uU(3),i.ALo(4,"translate"),i.qZA()),2&r&&(i.s9C("nzTooltipTitle",i.lcZ(1,2,"CLIENT.PROFILE.INVOICES.INVOICE.IN_PROGRESS_DESC")),i.xp6(3),i.hij(" ",i.lcZ(4,4,"CLIENT.PROFILE.INVOICES.INVOICE.IN_PROGRESS")," "))}function c(r,a){if(1&r){const e=i.EpF();i.TgZ(0,"nz-list-item",28),i.ynx(1),i.TgZ(2,"nz-list-item-meta",16),i.ALo(3,"as"),i.ALo(4,"as"),i.ALo(5,"as"),i.YNc(6,Ti,2,2,"ng-template",null,29,i.W1O),i.TgZ(8,"nz-list-item-meta-title")(9,"div",30)(10,"span",31),i.NdJ("
1click",function(){const v=i.CHM(e).$implicit,u=i.oxw(2);return i.KtG(u.copyInvoiceID(v.ID))}),i._UZ(11,"i",32),i._uU(12),i.qZA(),i.YNc(13,Ei,4,6,"span",33),i.TgZ(14,"div")(15,"span",34),i._uU(16),i.ALo(17,"translate"),i.qZA(),i.TgZ(18,"span",35),i._uU(19),i.ALo(20,"daydate"),i.qZA()()()()(),i.TgZ(21,"ul",36),i.ALo(22,"as"),i.ALo(23,"as"),i.ALo(24,"as"),i.TgZ(25,"nz-list-item-action"),i.YNc(26,l,1,7,"app-multi-state-button",37),i.qZA(),i.TgZ(27,"nz-list-item-action"),i.YNc(28,o,3,3,"button",38),i.YNc(29,s,5,6,"p",39),i.qZA()(),i.BQk(),i.qZA()}if(2&r){const e=a.$implicit,g=i.MAs(7),_=i.oxw(2);i.Q6J("@skeletonPosAbsLeave",void 0),i.xp6(2),i.Q6J("nzAvatar",g)("nzDescription",e.recipient.type===_.RecipientType.Company?i.xi3(3,14,e.recipient,_.RecipientCompany).name:i.xi3(4,17,e.recipient,_.RecipientPerson).firstName+" "+i.xi3(5,20,e.recipient,_.RecipientPerson).lastName),i.xp6(10),i.hij(" ",e.ID," "),i.xp6(1),i.Q6J("ngIf",_.lawyerServices&&_.lawyerServices[e.ID]&&_.lawyerServices[e.ID].payment&&_.lawyerServices[e.ID].payment.grossPriceSum),i.xp6(3),i.hij(" ",i.lcZ(17,23,"CLIENT.PROFILE.INVOICES.ISSUED")," "),i.xp6(3),i.Oqu(i.xi3(20,25,e.issued,_.lang)),i.xp6(2),i.Gre("",e.recipient.type===_.RecipientType.Company&&i.xi3(22,28,e.recipient,_.RecipientCompany).name||e.recipient.type===_.RecipientType.Person&&i.xi3(23,31,e.recipient,_.RecipientPerson).firstName&&i.xi3(24,34,e.recipient,_.RecipientPerson).lastName?e.ready?"invoice-ready-position-extra-margin":"invoice-ready-position":"align-self-start"," m-width-100 text-center"),i.Q6J("ngClass",e.ready?"":"ml-2"),i.xp6(5),i.Q6J("ngIf",e.ready),i.xp6(2),i.Q6J("ngIf",e.ready),i.xp6(1),i.Q6J("ngIf",!e.ready)}}function p(r,a){if(1&r&&(i.TgZ(0,"nz-list",13),i.YNc(1,c,30,37,"nz-list-item",27),i.qZA()),2&r){const e=i.oxw();i.xp6(1),i.Q6J("ngForOf",e.allInvoices)("ngForTrackBy",e.trackByInvoice)}}function N(r,a){1&r&&i._UZ(0,"nz-skeleton-element",62),2&r&&i.Q6J("nzActive",!0)}function fi(r,a){1&r&&(i.TgZ(0,"div",58)(1,"div",59),i._UZ(2,"nz-skeleton-element",60),i.qZA(),i.YNc(3,N,1,1,"nz-skeleton-element",61),i.ALo(4,"numberArray"),i.qZA()),2&r&&(i.Q6J("@skeletonPosAbsLeave",void 0),i.xp6(2),i.Q6J("nzActive",!0),i.xp6(1),i.Q6J("ngForOf",i.lcZ(4,3,10)))}const Ci=function(){return{autoHide:!1}};function Oi(r,a){if(1&r){const e=i.EpF();i.TgZ(0,"ngx-simplebar",63)(1,"pdf-viewer",64),i.NdJ("page-rendered",function(){i.CHM(e);const _=i.oxw(2);return i.KtG(_.pdfProgressRendered())}),i.qZA()()}if(2&r){const e=i.oxw(2);i.Q6J("@pdfAnimation",e.pdfRendered?"rendered":"loading")("options",i.DdM(7,Ci)),i.xp6(1),i.Q6J("src",e.shownInvoice)("render-text",!0)("original-size",e.disableResizing)("autoresize",!e.disableResizing)("zoom",e.disableResizing?1.2:1)}}function yi(r,a){if(1&r){const e=i.EpF();i.TgZ(0,"div",49)(1,"div",50)(2,"button",51),i.NdJ("click",function(){i.CHM(e);const _=i.oxw();return i.KtG(_.closeInvoice())}),i._UZ(3,"i",52),i._uU(4),i.ALo(5,"translate"),i.qZA(),i._UZ(6,"app-multi-state-button",53),i.qZA(),i.TgZ(7,"nz-spin",54)(8,"nz-card",55)(9,"div"),i.YNc(10,fi,5,5,"div",56),i.YNc(11,Oi,2,8,"ngx-simplebar",57),i.qZA()()()()}if(2&r){const e=i.oxw();i.xp6(1),i.Gre("grid-gap-15 ",e.pdfRendered&&!e.loadingShownInvoice&&e.disableResizing?"pb-3":"",""),i.xp6(3),i.hij(" ",i.lcZ(5,14,"CLIENT.PROFILE.INVOICES.INVOICE.BACK")," "),i.xp6(2),i.Q6J("stickResult",!1)("defaultFunction",e.downloadInvoiceFunction)("defaultFunctionParameters",i.VKq(16,E,e.invoiceToShow))("nzTextKeys",e.downloadInvoiceText),i.xp6(1),i.Q6J("nzSpinning",e.loadingShownInvoice||!e.pdfRendered),i.xp6(2),i.Gre("position-relative ",e.pdfRendered&&!e.loadingShownInvoice&&e.disableResizing?"pdf-container":"w-100",""),i.xp6(1),i.Q6J("ngIf",e.loadingShownInvoice||!e.pdfRendered),i.xp6(1),i.Q6J("ngIf",!e.loadingShownInvoice)}}function zi(r,a){if(1&r&&i._UZ(0,"app-navigator",65),2&r){const e=i.oxw();i.Q6J("links",e.navigatorLinks)}}let y=class{constructor(a,e,g,_,v,u,z,Pi,xi,A,Mi,Li,Ni){this.clientService=a,this.routerService=e,this.onepage=g,this.activatedRoute=_,this.router=v,this.notifService=u,this.translate=z,this.languageService=Pi,this.userService=xi,this.reloadService=A,this.resizeService=Mi,this.clipboard=Li,this.messageService=Ni,this.allInvoices=[],this.totalPrice=0,this.priceTax=0,this.taxPercentage=1.27,this.currency="",this.downloadInvoiceText=new C.PR("CLIENT.PROFILE.INVOICES.FUNCTIONS.BUTTON_STATES.DEFAULT","CLIENT.PROFILE.INVOICES.FUNCTIONS.BUTTON_STATES.WORKING","CLIENT.PROFILE.INVOICES.FUNCTIONS.BUTTON_STATES.SUCCESS","CLIENT.PROFILE.INVOICES.FUNCTIONS.BUTTON_STATES.FAILED"),this.downloadInvoiceTextLowercase=new C.PR("CLIENT.PROFILE.INVOICES.FUNCTIONS.BUTTON_STATES_LOWERCASE.DEFAULT","CLIENT.PROFILE.INVOICES.FUNCTIONS.BUTTON_STATES_LOWERCASE.WORKING","CLIENT.PROFILE.INVOICES.FUNCTIONS.BUTTON_STATES_LOWERCASE.SUCCESS","CLIENT.PROFILE.INVOICES.FUNCTIONS.BUTTON_STATES_LOWERCASE.FAILED"),this.Currency=I.Fa6,this.PageRoutes=d.d,this.UserType=T.FW,this.RecipientType=I.CSD,this.reloadInvoicesObject=ne
1w O.m,this.loadingShownInvoice=!1,this.invoicesLoading=!0,this.invoicesLoadingFailed=!1,this.pdfRendered=!1,this.FeedbackFeature=I.lrp,this.FeedbackUnit=I._0Z,this.RecipientCompany=I.$kq,this.RecipientPerson=I.OfR,this.disableResizing=!1}ngOnInit(){this.resizeService.width.subscribe(a=>{this.disableResizing=a<=768}),this.userType=this.userService.sessionType,this.showInvoiceDetails=!1,this.invoiceToShow=null,this.lang=this.languageService.currentLanguage,this.translate.onLangChange.subscribe(a=>{this.lang=a.lang}),this.activatedRoute.queryParams.subscribe(a=>{a&&a.id&&(this.selectedID=a.id)}),this.userType===T.FW.Lawyer&&(this.navigatorLinks=[{text:"COMMON.NAVIGATOR.ROUTE.INVOICING",href:this.routerService.getRouteToSettingsTab(d.d.settingsInvoicingTab),action:()=>this.routerService.routeToSettingsTab(d.d.settingsInvoicingTab)},{text:"COMMON.NAVIGATOR.ROUTE.PAYOUT_2",href:this.routerService.getRouteToSettingsTab(d.d.settingsPayoutTab),action:()=>this.routerService.routeToSettingsTab(d.d.settingsPayoutTab)}]),this.getInvoices(),this.onepage.bundleBought.subscribe(a=>{this.getInvoices()}),this.onepage.subscriptionChanged.subscribe(a=>{this.getInvoices()}),"invoices"===this.router.url.split("/")[3]&&this.reloadService.startReload(()=>this.getInvoices(),this.reloadInvoicesObject),this.downloadInvoiceFunction=a=>this.downloadInvoice(a),this.showInvoiceFunction=a=>this.viewInvoice(a),this.startRefreshing.pipe((0,h.t)(this)).subscribe(a=>{a===d.d.settingsInvoicesTab?this.reloadService.startReload(()=>this.getInvoices(),this.reloadInvoicesObject):this.reloadService.stopReload(this.reloadInvoicesObject)})}ngOnDestroy(){this.reloadService.stopReload(this.reloadInvoicesObject)}getInvoicesLawyer(){return this.clientService.getLawyerService().pipe((0,h.t)(this)).toPromise().then(a=>(this.lawyerServices={},a.forEach(e=>{this.lawyerServices[e.payment.invoiceID]=e}),Promise.all([...a.map(e=>this.clientService.getLawyerInvoice(e.payment.invoiceID).pipe((0,h.t)(this)).toPromise())])),a=>Promise.reject(a))}getInvoicesClient(a){return this.clientService.getInvoices().pipe((0,h.t)(this)).toPromise()}getInvoices(a){let e;return e=this.userType===T.FW.Client?this.getInvoicesClient():this.userType===T.FW.Lawyer?this.getInvoicesLawyer():Promise.reject(),e.then(g=>{if(this.allInvoices.filter(v=>g.find(u=>u.ID===v.ID)).forEach(v=>{const u=this.allInvoices.findIndex(z=>z.ID===v.ID);this.allInvoices.splice(u,1)}),g.forEach(v=>{const u=this.allInvoices.findIndex(z=>z.ID===v.ID);if(-1!==u){const Pi=Object.keys(this.allInvoices[u]),xi=Object.keys(v);for(const A of Pi)this.allInvoices[u][A]=void 0;for(const A of xi)this.allInvoices[u][A]=v[A]}else this.allInvoices.push(v)}),this.allInvoices.sort((v,u)=>v.updated>u.updated?-1:1),""!==this.selectedID&&!1===this.showInvoiceDetails){const v=[...g].find(u=>u.ID===this.selectedID);null!=v?this.viewInvoice(v):this.router.navigate([],{queryParams:{id:null},queryParamsHandling:"merge"})}this.invoicesLoadingFailed=!1,this.invoicesLoading=!1},g=>{this.invoicesLoadingFailed=!0,this.invoicesLoading=!1}),e}ngAfterViewInit(){this.showInvoiceDetails=!1,this.invoiceToShow=null}downloadInvoiceFromBackend(a){return this.userType===T.FW.Client?this.clientService.downloadInvoiceFromBackend(a).pipe((0,h.t)(this)).toPromise():this.userType===T.FW.Lawyer?this.clientService.downloadLawyerInvoiceFromBackend(a).pipe((0,h.t)(this)).toPromise():Promise.reject()}viewInvoice(a,e=3){3===e&&(this.router.navigate([],{queryParams:{id:a.ID},queryParamsHandling:"merge"}),this.loadingShownInvoice=!0,this.showInvoiceDetails=!0),this.invoiceToShow=a,e>0?(this.selectedID=a.ID,this.downloadInvoiceFromBackend(a.ID).then(g=>{document.createElement("a"),this.shownInvoice=URL.createObjectURL(g),this.loadingShownInvoice=!1})):(this.router.navigate([],{queryParams:{id:null},queryParamsHandling:"merge"}),this.notifService.addNotif("warning",new m.n0("CLIENT.PROFILE.INVOICES.INVOICE.FAILED.TITLE"),new m.n0("CLIENT.PROFILE.INVOICES.INVOICE.FAILED.DESC",{id:a.ID}),m.V1.MEDIUM,m.C7.DANGER),this.showInvoiceDetails=!1,this.loadingShownInvoice=!1)}downloadInvoice(a){return this.downloadInvoiceFromBackend(a.ID).then(e=>{const g=new Blob([e],{type:"application/pdf"}),_=window.URL.createObjectURL(g),v=document.createElement("a");v.href=_,v.download=`invoice - ${a.ID}.pdf`,v.dispatchEvent(new MouseEvent("click",{bubbles:!0,cancelable:!0,view:window})),setTimeout(()=>{window.URL.revokeObjectURL(_),v.remove()},100)},e=>{console.log("error while sending to generator"),console.log(e)})}closeInvoice(){this.showInvoiceDetails=!1,this.selectedID=null,this.router.navigate([],{queryParams:{id:null},queryParamsHandling:"merge"}),this.pdfRendered=!1}pdfProgressRendered(){this.pdfRendered=!0}trackByInvoice(a,e){return e.ID}copyInvoiceID(a){this.clipboard.copy(a),this.messageService.success(this.translate.instant("CLIENT.PROFILE.INVOICES.COPY_MESSAGE"))}};y.\u0275fac=function(a){return new(a||y)(i.Y36(M.y),i.Y36(n.c),i.Y36(B.g),i.Y36(S.gz),i.Y36(S.F0),i.Y36(K.g),i.Y36(F.sK),i.Y36(W.T),i.Y36(k.K),i.Y36(O.f),i.Y36(J._),i.Y36(Q.Yv),i.Y36(V.dD))},y.\u0275cmp=i.Xpm({type:y,selectors:[["app-invoices"]],viewQuery:function(a,e){if(1&a&&i.Gf(ci,5),2&a){let g;i.iGM(g=i.CRH())&&(e.htmlData=g.first)}},inputs:{startRefreshing:"startRefreshing"},decls:10,vars:12,consts:[[3,"nzTitle"],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter",4,"ngIf"],[1,"position-relative"],["class","w-100",4,"ngIf"],[4,"ngIf"],["class","container",4,"ngIf"],[1,"feedback-positioning",3,"feature","unit","t
1itle"],[3,"links",4,"ngIf"],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["nz-button","","nzType","primary","class","button-text-wrap",3,"click",4,"ngIf"],["nz-button","","nzType","primary",1,"button-text-wrap",3,"click"],[1,"w-100"],["class","justify-content-center justify-content-md-between flex-wrap loadingList",4,"ngFor","ngForOf"],[1,"justify-content-center","justify-content-md-between","flex-wrap","loadingList"],[3,"nzAvatar","nzDescription"],[1,"d-flex","justify-content-center","justify-content-md-between","flex-wrap"],["nzType","input","nzSize","small",1,"w-65","mb-3","smallHeightSkeleton","invoice-id",3,"nzActive"],["nzType","input","nzSize","small",1,"w-10","smallHeightSkeleton",2,"min-width","120px",3,"nzActive"],["loadingAvatar",""],["loadingDescription",""],["nz-list-item-actions","",1,"mb-0","m-t-10","action-skeleton-margin",2,"width","180px"],["nzType","input","nzSize","small",1,"w-100","smallHeightSkeleton",3,"nzActive"],["nzType","input","nzSize","small",1,"imgSkeleton","mt-1",3,"nzActive"],["nzType","input","nzSize","small",1,"w-25","mb-2","smallHeightSkeleton",3,"nzActive"],[1,"text-danger"],["class","justify-content-center justify-content-md-between flex-wrap",4,"ngFor","ngForOf","ngForTrackBy"],[1,"justify-content-center","justify-content-md-between","flex-wrap"],["invoiceavatar",""],[1,"invoice-data"],[1,"invoice-id","mb-0","cursor-pointer",3,"click"],["nz-icon","","nzType","wallet","nzTheme","outline"],["nz-typography","","class","ant-typography priceTag","style","font-weight: normal",4,"ngIf"],["nz-typography","",1,"ant-typography","date-padding-fix",2,"font-weight","normal"],["nz-typography","",1,"ant-typography","date-padding-fix"],["nz-list-item-actions","",3,"ngClass"],["nzType","primary","nzGhost","","class","text-right m-l-5 link-like-button",3,"showAsLink","stickResult","defaultFunction","defaultFunctionParameters","nzTextKeys",4,"ngIf"],["nz-button","","nzType","link","class","link-like-button",3,"click",4,"ngIf"],["nz-tooltip","","class","action-margin loading-icon mb-0",3,"nzTooltipTitle",4,"ngIf"],["class","opacity-06 invoice-img","src","assets/images/invoice.svg","alt","Ready nvoice",4,"ngIf"],["class","opacity-06 invoice-img","src","assets/images/invoice_pending.svg","alt","Pending invoice",4,"ngIf"],["src","assets/images/invoice.svg","alt","Ready nvoice",1,"opacity-06","invoice-img"],["src","assets/images/invoice_pending.svg","alt","Pending invoice",1,"opacity-06","invoice-img"],["nz-typography","",1,"ant-typography","priceTag",2,"font-weight","normal"],["nzType","primary","nzGhost","",1,"text-right","m-l-5","link-like-button",3,"showAsLink","stickResult","defaultFunction","defaultFunctionParameters","nzTextKeys"],["nz-button","","nzType","link",1,"link-like-button",3,"click"],["nz-tooltip","",1,"action-margin","loading-icon","mb-0",3,"nzTooltipTitle"],["nz-icon","","nzType","loading","nzTheme","outline",1,"mr-2","middle-alignment"],[1,"container"],["nz-row","","nzJustify","space-between"],["nz-button","","nzType","default",3,"click"],["nz-icon","","nzType","arrow-left","nzTheme","outline"],["nzType","primary",3,"stickResult","defaultFunction","defaultFunctionParameters","nzTextKeys"],[3,"nzSpinning"],[2,"margin-top","1.5rem"],["class","w-100 m-t-10 p-t-30 text-center z-index-1",4,"ngIf"],["class","pdf-viewer-size",3,"options",4,"ngIf"],[1,"w-100","m-t-10","p-t-30","text-center","z-index-1"],[1,"w-100","text-center"],["nzType","input","nzSize","small",1,"p-b-10","w-30",3,"nzActive"],["class","p-b-10 w-75","nzType","input",3,"nzActive",4,"ngFor","ngForOf"],["nzType","input",1,"p-b-10","w-75",3,"nzActive"],[1,"pdf-viewer-size",3,"options"],[2,"display","block",3,"src","render-text","original-size","autoresize","zoom","page-rendered"],[3,"links"]],template:function(a,e){1&a&&(i.TgZ(0,"nz-card",0),i.ALo(1,"translate"),i.YNc(2,gi,5,4,"nz-empty",1),i.TgZ(3,"div",2),i.YNc(4,ui,3,4,"nz-list",3),i.YNc(5,Ii,4,3,"div",4),i.YNc(6,p,2,2,"nz-list",3),i.qZA(),i.YNc(7,yi,12,18,"div",5),i._UZ(8,"a
1pp-feedback",6),i.qZA(),i.YNc(9,zi,1,1,"app-navigator",7)),2&a&&(i.Q6J("nzTitle",i.lcZ(1,10,"CLIENT.PROFILE.INVOICES.TITLE")),i.xp6(2),i.Q6J("ngIf",e.allInvoices&&0===e.allInvoices.length&&!e.invoicesLoading&&!e.invoicesLoadingFailed),i.xp6(2),i.Q6J("ngIf",e.invoicesLoading),i.xp6(1),i.Q6J("ngIf",e.invoicesLoadingFailed&&!e.invoicesLoading),i.xp6(1),i.Q6J("ngIf",!!e.allInvoices&&!e.showInvoiceDetails),i.xp6(1),i.Q6J("ngIf",e.showInvoiceDetails),i.xp6(1),i.Q6J("feature",e.FeedbackFeature.Settings)("unit",e.FeedbackUnit.Invoices)("title","COMMON.FEEDBACK.TITLES.INVOICES"),i.xp6(1),i.Q6J("ngIf",e.userType===e.UserType.Lawyer))},dependencies:[Y.rQ,P.mk,P.sg,P.O5,G.X,j.M,C.P4,H.ix,$.w,X.dQ,q.bd,R.p9,x.SK,ii.Ls,f.n_,f.AA,f.yi,f.IO,f.nk,f.KC,L.Xw,L.yg,ni.W,ei.SY,ti.ZU,oi.S,F.X$,si.j,b.H9,b.U2,ri.A,ai.M],styles:['@charset "UTF-8";@media (max-width: 991.98px){.invoice-id[_ngcontent-%COMP%]{flex:1 0 100%}}.invoice-img[_ngcontent-%COMP%]{width:40px;height:40px}@media (max-width: 767.98px){.ant-list-item-meta[_ngcontent-%COMP%]{flex:1 0 100%;text-align:center}.action-margin[_ngcontent-%COMP%]{margin-left:32px!important}.action-skeleton-margin[_ngcontent-%COMP%]{margin-left:70px!important}}@media (min-width: 768px) and (max-width: 991.98px){.action-skeleton-margin[_ngcontent-%COMP%]{margin-top:2rem!important}}[_nghost-%COMP%]   .loadingList[_ngcontent-%COMP%]     .ant-list-item-meta-avatar{margin-right:0!important}.imgSkeleton[_ngcontent-%COMP%]{height:40px;width:40px}[_nghost-%COMP%]   .imgSkeleton[_ngcontent-%COMP%]     .ant-skeleton-input{height:40px;width:40px}[_nghost-%COMP%]   .loadingList[_ngcontent-%COMP%]     nz-list-item-meta-avatar{width:56px}[_nghost-%COMP%]   .loadingList[_ngcontent-%COMP%]     li{width:50%}[_nghost-%COMP%]   .loadingList[_ngcontent-%COMP%]     li:last-child{padding-right:0}.smallHeightSkeleton[_ngcontent-%COMP%]{height:18px}[_nghost-%COMP%]   .smallHeightSkeleton[_ngcontent-%COMP%]     .ant-skeleton-input{height:18px}.loading-icon[_ngcontent-%COMP%]   .anticon[_ngcontent-%COMP%]{font-size:12px;padding-bottom:.3rem}.invoice-data[_ngcontent-%COMP%]{display:flex;flex-direction:row;justify-content:left;flex-wrap:wrap;row-gap:5px;-moz-column-gap:15px;column-gap:15px}.date-padding-fix[_ngcontent-%COMP%]{padding-top:1.5px}.invoice-ready-position[_ngcontent-%COMP%]{align-self:flex-end;margin-bottom:2px}.invoice-ready-position-extra-margin[_ngcontent-%COMP%]{align-self:flex-end;margin-bottom:4px}@media (max-width: 767.98px){.priceTag[_ngcontent-%COMP%]{width:100%}.invoice-data[_ngcontent-%COMP%]{flex-direction:column;justify-content:center}}.pdf-viewer-size[_ngcontent-%COMP%]{height:100%}@media (max-width: 1069.98px){.pdf-container[_ngcontent-%COMP%]{margin:-40px;width:calc(100% + 80px)}}'],data:{animation:[D.Ln,D.le]}}),y=(0,Z.gn)([(0,h.c)()],y)},45129:(Ai,w,t)=>{t.d(w,{Y:()=>E});var Z=t(97582),I=t(24006),d=t(22971),C=t(92961),m=t(71997),h=t(44224),D=t(52835),T=t(36057),O=t(44569),i=t(56952),M=t.n(i),n=t(94650),B=t(87689),S=t(39889),K=t(97185),F=t(41836),W=t(50211),k=t(75489),J=t(54584),Q=t(81664),V=t(55089),Y=t(31494),P=t(36895),G=t(47216),j=t(66616),H=t(47044),$=t(21811),X=t(51971),q=t(2577),R=t(73679),x=t(36704),ii=t(47423),f=t(38231),L=t(20545),ni=t(37570),ei=t(31072),ti=t(71740),oi=t(75775),si=t(76038),b=t(32925),ri=t(45144),ai=t(5233),ci=t(81801);const li=["invoicingFormElement"];function _i(l,o){if(1&l&&(n.TgZ(0,"li",13),n._UZ(1,"i",14),n.TgZ(2,"span",15),n._uU(3),n.ALo(4,"translate"),n.qZA()()),2&l){const s=o.index;n.xp6(3),n.hij(" ",n.lcZ(4,1,"CLIENT.PROFILE.INVOICING.LIST."+(s+1)),"")}}function mi(l,o){1&l&&n._UZ(0,"nz-skeleton-element",24),2&l&&n.Q6J("nzActive",!0)}function gi(l,o){1&l&&(n.TgZ(0,"div",25)(1,"div",26),n._UZ(2,"nz-skeleton-element",27),n.qZA(),n.TgZ(3,"div",28),n._UZ(4,"nz-skeleton-element",29),n.qZA()()),2&l&&(n.Q6J("@skeletonPosAbsLeave",void 0),n.xp6(2),n.Q6J("nzActive",!0),n.xp6(2),n.Q6J("nzActive",!0))}function vi(l,o){1&l&&(n.TgZ(0,"div",30)(1,"div",26),n._UZ(2,"nz-skeleton-element",27),n.qZA(),n.TgZ(3,"div",28),n._UZ(4,"nz-skeleton-element",29),n.qZA()()),2&l&&(n.Q6J("@skeletonPosAbsLeave",void 0),n.xp6(2),n.Q6J("nzActive",!0),n.xp6(2),n.Q6J("nzActive",!0))}function pi(l,o){if(1&l&&(n.TgZ(0,"nz-card",16)(1,"div"),n.YNc(2,mi,1,1,"ng-template",null,17,n.W1O),n._UZ(4,"nz-divider",18)(5,"nz-skeleton-element",19),n.YNc(6,gi,5,3,"div",20),n.ALo(7,"numberArray"),n._UZ(8,"nz-divider",18)(9,"nz-skeleton-element",21)(10,"nz-skeleton-element",22),n.YNc(11,vi,5,3,"div",23),n.ALo(12,"numberArray"),n.qZA()()),2&l){const s=n.MAs(3);n.Q6J("@skeletonPosAbsLeave",void 0),n.xp6(4),n.Q6J("nzText",s),n.xp6(1),n.Q6J("nzActive",!0),n.xp6(1),n.Q6J("ngForOf",n.lcZ(7,8,3)),n.xp6(2),n.Q6J("nzText",s),n.xp6(1),n.Q6J("nzActive",!0),n.xp6(1),n.Q6J("nzActive",!0),n.xp6(1),n.Q6J("ngForOf",n.lcZ(12,10,10))}}function di(l,o){1&l&&(n.TgZ(0,"div")(1,"p",31),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&l&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"CLIENT.PROFILE.INVOICING.LOAD_FAILED")," "))}function ui(l,o){1&l&&(n.ynx(0),n._uU(1),n.ALo(2,"translate"),n.BQk()),2&l&&(n.xp6(1),n.hij(" ",n.lcZ(2,1,"COMMON.FORM.AAM_FORM_VALIDATION.AAM_ENABLED.REQUIRED")," "))}function Ii(l,o){1&l&&n.YNc(0,ui,3,3,"ng-container",9),2&l&&n.Q6J("ngIf",o.$implicit.hasError("required"))}const U=function(){return{}};function hi(l,o){if(1&l){const s=n.EpF();
1n.TgZ(0,"form",35,36),n.NdJ("keydown.enter",function(p){n.CHM(s);const N=n.oxw(2);return n.KtG(N.formService.triggerAutoSubmitWithEnter(p))}),n._UZ(2,"nz-divider",37),n.ALo(3,"translate"),n.TgZ(4,"p"),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.TgZ(7,"nz-form-item")(8,"nz-form-label",38)(9,"span"),n._uU(10),n.ALo(11,"translate"),n.qZA()(),n.TgZ(12,"nz-form-control",39)(13,"nz-select",40),n.NdJ("ngModelChange",function(){n.CHM(s);const p=n.oxw(2);return n.KtG(p.saveInvoicingWithButton())}),n.ALo(14,"as"),n.ALo(15,"translate"),n._UZ(16,"nz-option",41),n.ALo(17,"translate"),n._UZ(18,"nz-option",41),n.ALo(19,"translate"),n.qZA(),n.YNc(20,Ii,1,1,"ng-template",null,42,n.W1O),n.qZA()(),n.TgZ(22,"div",43)(23,"div",44)(24,"nz-form-item")(25,"app-issuer-editor",45),n.NdJ("saveEmitter",function(){n.CHM(s);const p=n.oxw(2);return n.KtG(p.saveInvoicingWithButton())})("unstickTrigger",function(){n.CHM(s);const p=n.oxw(2);return n.KtG(p.updateUnstickTrigger())})("copyFromProfile",function(){n.CHM(s);const p=n.oxw(2);return n.KtG(p.copyProfile())}),n.ALo(26,"as"),n.qZA()()()(),n.TgZ(27,"div",43)(28,"div",44)(29,"nz-form-item")(30,"app-nav-entity-credentials-editor",46),n.NdJ("saveEmitter",function(){n.CHM(s);const p=n.oxw(2);return n.KtG(p.saveInvoicingWithButton())})("unstickTrigger",function(){n.CHM(s);const p=n.oxw(2);return n.KtG(p.updateUnstickTrigger())}),n.ALo(31,"as"),n.qZA()()()()()}if(2&l){const s=n.MAs(21),c=n.oxw(2);n.Q6J("formGroup",c.invoicingForm),n.xp6(2),n.Q6J("nzText",n.lcZ(3,32,"COMMON.FORM.AAM_FORM.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(6,34,"COMMON.FORM.AAM_FORM.DESCRIPTION")," "),n.xp6(3),n.Q6J("nzLg",6)("nzMd",6)("nzSm",8)("nzXs",24)("nzRequired",c.invoicingForm&&c.invoicingForm.controls.aamEnabled&&c.invoicingForm.controls.aamEnabled.validator&&c.invoicingForm.controls.aamEnabled.validator(n.DdM(53,U))&&c.invoicingForm.controls.aamEnabled.validator(n.DdM(54,U)).required),n.xp6(2),n.hij(" ",n.lcZ(11,36,"COMMON.FORM.AAM_FORM.AAM_ENABLED")," "),n.xp6(2),n.Q6J("nzLg",14)("nzMd",14)("nzSm",12)("nzXs",24)("nzErrorTip",s),n.xp6(1),n.Q6J("formControl",n.xi3(14,38,c.invoicingForm.controls.aamEnabled,c.FormControl))("nzPlaceHolder",n.lcZ(15,41,"COMMON.FORM.AAM_FORM.PLACEHOLDER.AAM_ENABLED")),n.xp6(3),n.Q6J("nzLabel",n.lcZ(17,43,"COMMON.FORM.AAM_FORM.OPTIONS.AAM"))("nzValue",!0),n.xp6(2),n.Q6J("nzLabel",n.lcZ(19,45,"COMMON.FORM.AAM_FORM.OPTIONS.STANDARD"))("nzValue",!1),n.xp6(7),n.Q6J("form",n.xi3(26,47,c.invoicingForm.controls.issuer,c.FormGroup))("profileType",c.profileType)("issuer",c.actInvoicing.issuer)("allowCopyFromProfile",!!c.addressToCopy)("enableTooltip",c.enableTooltip)("hasLicense",c.hasLicense)("disableSameAsProfile",c.disableSameAsProfile)("isTaxNumberInvalid",c.isTaxNumberInvalid),n.xp6(5),n.Q6J("form",n.xi3(31,50,c.invoicingForm.controls.credentials,c.FormGroup))("navEntityCredentials",c.actInvoicing.credentials)("isNavEntityCredentialsValid",c.isNavEntityCredentialsValid)("isNavEntityCredentialsInvalid",c.isNavEntityCredentialsInvalid)}}function Ti(l,o){if(1&l){const s=n.EpF();n.TgZ(0,"div",47),n._UZ(1,"app-next-verification-step-button",48),n.TgZ(2,"app-multi-state-button",49),n.NdJ("click",function(){n.CHM(s);const p=n.oxw(2);return n.KtG(p.saveManually())}),n.qZA()()}if(2&l){const s=n.oxw(2);n.xp6(1),n.Q6J("type",s.VerificationState.INVOICING),n.xp6(1),n.Q6J("runFunction",s.runSaveFunction)("unstickTrigger",s.unstickTrigger)("showMessage",!0)}}function Ei(l,o){if(1&l&&(n.TgZ(0,"nz-card",32)(1,"div"),n.YNc(2,hi,32,55,"form",33),n.YNc(3,Ti,3,4,"div",34),n.qZA()()),2&l){const s=n.oxw();n.Q6J("@skeletonPosAbsLeave",void 0),n.xp6(2),n.Q6J("ngIf",s.invoicingForm),n.xp6(1),n.Q6J("ngIf",s.invoicingForm)}}let E=class{constructor(o,s,c,p,N,fi,Ci,Oi,yi,zi){this.formService=o,this.routerService=s,this.toastr=c,this.asyncMessenger=p,this.clientService=N,this.eventService=fi,this.lawyerValidationService=Ci,this.modalService=Oi,this.userService=yi,this.validatorMessengerService=zi,this.createdInvoicing=!1,this.disableSameAsProfile=!1,this.hasLicense=!1,this.invalidData=!1,this.isInvoicingValid=!1,this.isLoading=!0,this.unstickTrigger=0,this.saveInProgress=!1,this.FeedbackFeature=m.lrp,this.FeedbackUnit=m._0Z,this.VATValue=m.di5,this.VerificationState=T.xr,this.isTaxNumberInvalid=!1,this.isNavEntityCredentialsInvalid=!1,this.FormControl=I.p4,this.FormGroup=I.nJ}ngOnInit(){this.navigatorLinks=[{text:"COMMON.NAVIGATOR.ROUTE.INVOICES_LAWYER",href:this.routerService.getRouteToSettingsTab(O.d.settingsInvoicesTab),action:()=>this.routerService.routeToSettingsTab(O.d.settingsInvoicesTab)},{text:"COMMON.NAVIGATOR.ROUTE.PAYOUT",href:this.routerService.getRouteToSettingsTab(O.d.settingsPayoutTab),action:()=>this.routerService.routeToSettingsTab(O.d.settingsPayoutTab)}],this.loadInvoicing(),this.isInvoicingValid=this.lawyerValidationService.stepsMap.get(T.xr.INVOICING).value,this.lawyerValidationService.changed.subscribe(o=>{this.isInvoicingValid=o.get(T.xr.INVOICING).value})}unloadNotification(o){this.invoicingForm&&this.invoicingForm.dirty&&(o.returnValue=!0)}loadInvoicing(){this.isLoading=!0,this.getProfile().then(o=>{this.clientService.getInvoiceState().pipe((0,h.t)(this)).subscribe(s=>{s?(this.actInvoicing=m.NiE.fromInvoicingResponse(s),this.createdInvoicing=!0,this.isNavEntityCredentialsValid=!0,this.createInvoicingFormService()):(this.actInvoicing=new m.NiE(new m.M$G,new m.ar7,!1),this.actInvoicing.issuer.address=new d.kL,this.actInvoicing.issuer.account=new m.xlD(null,new m.BrQ(null)),this.createInvoicingFormService()),this.checkIfCopiedIsEquals(),this.isLoading=!1},s=>{404===s.status&&(this.actInvoicing=new m.NiE(new m.M$G,new m.ar7,!1),this.actInvoicing.issuer.address=new d.kL,this.actInvoicing.issuer.account=new m.xlD(null,new m.BrQ(null)),this.createInvoicingFormService(),this.checkIfCopiedIsEquals()),this.isLoading=!1})},()=>{this.clientService.getInvoiceState().pipe((0,h.t)(this)).subscribe(o=>{o?(this.actInvoicing=m.NiE.fromInvoicingResponse(o),this.createdInvoicing=!0,this.isNavEntityCredentialsValid=!0,this.createInvoicingFormService()):(this.actInvoicing=new m.NiE(new m.M$G,new m.ar7,!1),this.actInvoicing.issuer.address=new d.kL,this.actInvoicing.issuer.account=new m.xlD(null,new m.BrQ(null)),this.createInvoicingFormService()),this.checkIfCopiedIsEquals(),this.isLoading=!1},o=>{404===o.status&&(this.actInvoicing=new m.NiE(new m.M$G,new m.ar7,!1),this.actInvoicing.issuer.address=new d.kL,this.actInvoicing.issuer.account=new m.xlD(null,new m.BrQ(null)),this.createInvoicingFormService(),this.checkIfCopiedIsEquals()),this.isLoading=!1})})}getProfile(){return this.clientService.getClientProfile().pipe((0,h.t)(this)).toPromise().then(o=>{if(this.profileType=o.owner?.type,this.addressToCopy=o.owner?.address,o.owner?.type===d.pq.Company){if(this.phoneNumberToCopy=o.owner.phone,this.nameToCopy=o?.owner.name,o.owner.taxNumber){const s=o.owner.taxNumber;s.type===d.z4.Hungarian?this.hungarianTaxNumberToCopy=s:s.type===d.z4.Community&&(this.communityTaxNumberToCopy=s)}}else o.owner?.type===d.pq.Person&&(this.nameToCopy=o.owner?.name.first+" "+o.owner?.name.last);o.license&&(this.hasLicense=!0,o.license.taxNumber&&(this.hungarianTaxNumberToCopy=o.license.taxNumber),o.license.chamberIdentifier&&(this.chamberIdentifierToCopy=o.license?.chamberIdentifier),o.license.phone&&(this.phoneNumberToCopy=o.license.phone)),this.actInvoicing&&this.checkIfCopiedIsEquals(),this.profileSubscription&&this.profileSubscription.unsubscribe(),this.profileChangedSubscription||(this.profileChangedSubscription=this.eventService.profileUpdated.subscribe(()=>{this.getProfile()}
1))},o=>{this.profileSubscription||(this.profileSubscription=this.eventService.hasProfile.subscribe(s=>{s&&this.getProfile()})),this.profileType=null,this.addressToCopy=null,this.phoneNumberToCopy=null,this.nameToCopy=null,this.hungarianTaxNumberToCopy=null,this.communityTaxNumberToCopy=null,this.chamberIdentifierToCopy=null})}checkIfCopiedIsEquals(){const o=this.formService.groupToInvoicingRequest(this.invoicingForm);let s=!0;this.addressToCopy&&s&&(Object.keys(this.addressToCopy).forEach(c=>null==this.addressToCopy[c]&&delete this.addressToCopy[c]),Object.keys(o.issuer.address).forEach(c=>null==o.issuer.address[c]&&delete o.issuer.address[c]),s=M()(o.issuer.address,this.addressToCopy)),this.chamberIdentifierToCopy&&s&&(s=o.issuer.registrationNumber===this.chamberIdentifierToCopy),this.phoneNumberToCopy&&s&&(s=o.issuer.phone===this.phoneNumberToCopy),this.userService.sessionMail&&s&&(s=o.issuer.mail===this.userService.sessionMail),this.hungarianTaxNumberToCopy&&s&&(s=M()(o.issuer.taxNumber,this.hungarianTaxNumberToCopy)),this.communityTaxNumberToCopy&&s&&(s=M()(o.issuer.communityTaxNumber,this.communityTaxNumberToCopy)),this.nameToCopy&&s&&(s=o.issuer.company===this.nameToCopy),this.disableSameAsProfile=s}copyProfile(){this.actInvoicing=this.formService.groupToInvoicingRequest(this.invoicingForm),this.actInvoicing.issuer.address=this.addressToCopy?this.addressToCopy:this.actInvoicing.issuer.address,this.actInvoicing.issuer.registrationNumber=this.chamberIdentifierToCopy?this.chamberIdentifierToCopy:this.actInvoicing.issuer.registrationNumber,this.actInvoicing.issuer.phone=this.phoneNumberToCopy?this.phoneNumberToCopy:this.actInvoicing.issuer.phone,this.actInvoicing.issuer.mail=this.userService.sessionMail?this.userService.sessionMail:null,this.hungarianTaxNumberToCopy?this.actInvoicing.issuer.taxNumber=this.hungarianTaxNumberToCopy:!this.hungarianTaxNumberToCopy&&this.actInvoicing.issuer.taxNumber.type&&!this.actInvoicing.issuer.taxNumber.countyCode&&(this.actInvoicing.issuer.taxNumber=null),this.communityTaxNumberToCopy?this.actInvoicing.issuer.communityTaxNumber=this.communityTaxNumberToCopy:!this.communityTaxNumberToCopy&&this.actInvoicing.issuer.communityTaxNumber.type&&!this.actInvoicing.issuer.communityTaxNumber.countryCode&&(this.actInvoicing.issuer.communityTaxNumber=null),this.actInvoicing.issuer.company=this.nameToCopy?this.nameToCopy:this.actInvoicing.issuer.company,this.createInvoicingFormService(),this.invoicingForm.markAsDirty(),this.invoicingForm.valid&&this.saveManually()}createInvoicingFormService(){this.invoicingForm=this.formService.invoicingRequestFormGroup(this.actInvoicing)}updateInvoicing(){if(this.invoicingForm.valid&&this.invoicingForm.dirty){if(this.actInvoicing=this.formService.groupToInvoicingRequest(this.invoicingForm),this.actInvoicing){this.isTaxNumberInvalid=!1,this.isNavEntityCredentialsInvalid=!1,this.invoicingForm.markAsPristine(),this.saveInProgress=!0;const o=this.clientService.postInvoiceUpdate(this.actInvoicing).pipe((0,h.t)(this)).toPromise();return o.then(()=>{this.lawyerValidationService.runCheckForStep(T.xr.INVOICING),this.isNavEntityCredentialsValid=!0,this.saveInProgress=!1,this.createdInvoicing||(this.createdInvoicing=!0),this.checkIfCopiedIsEquals()},s=>(this.runSaveFunction===o&&this.invoicingForm.markAsDirty(),this.saveInProgress=!1,this.handleInvoicingUpdateError(s.msg),Promise.reject())),o}}else if(this.invoicingForm&&this.invoicingForm.valid&&!this.invoicingForm.dirty)return C.P4.getSuccessfulPromise()}handleInvoicingUpdateError(o){o.cause===d.UZ.INVALID_COMMUNITY_TAX_NUMBER?(this.isTaxNumberInvalid=!0,this.invoicingForm.controls.issuer&&this.invoicingForm.controls.issuer.controls&&this.invoicingForm.controls.issuer.controls.communityTaxNumber&&this.invoicingForm.controls.issuer.controls.communityTaxNumber.setErrors({pattern:!0})):o.cause===d.UZ.INVALID_NAV_CREDENTIALS?(this.isNavEntityCredentialsValid=!1,this.isNavEntityCredentialsInvalid=!0):o.cause===d.UZ.INVALID_PHONE_NUMBER&&this.invoicingForm.controls.issuer&&this.invoicingForm.controls.issuer.controls&&this.invoicingForm.controls.issuer.controls.phone&&this.invoicingForm.controls.issuer.controls.phone.setErrors({wrongNumber:!0})}saveInvoicingWithButton(){if(this.invoicingForm.valid&&this.invoicingForm.dirty){const o=this.updateInvoicing();return this.runSaveFunction=o,o}this.invoicingForm.valid||this.updateUnstickTrigger()}saveManually(){if(this.invoicingForm.valid){if(this.invoicingForm.dirty)return this.saveInvoicingWithButton();this.runSaveFunction=C.P4.getSuccessfulPromise()}else{const o=this.invoicingForm.controls.issuer&&this.invoicingForm.controls.issuer.controls&&this.invoicingForm.controls.issuer.controls.communityTaxNumber&&this.invoicingForm.controls.issuer.controls.communityTaxNumber.hasError("pattern"),s=this.invoicingForm.controls.issuer&&this.invoicingForm.controls.issuer.controls&&this.invoicingForm.controls.issuer.controls.phone&&this.invoicingForm.controls.issuer.controls.phone.hasError("wrongNumber");this.formService.markAllAsTouched(this.invoicingForm),o&&this.invoicingForm.controls.issuer&&this.invoicingForm.controls.issuer.controls&&this.invoicingForm.controls.issuer.controls.communityTaxNumber&&this.invoicingForm.controls.issuer.controls.communityTaxNumber.setErrors({pattern:!0}),s&&this.invoicingForm.controls.issuer&&this.invoicingForm.controls.issuer.controls&&this.invoicingForm.controls.issuer.controls.phone&&this.invoicingForm.controls.issuer.controls.phone.setErrors({wrongNumber:!0}
1),this.invoicingForm.invalid&&this.invoicingFormElement&&this.formService.jumpToFirstInvalidInput(this.invoicingFormElement.nativeElement)}}updateUnstickTrigger(){this.unstickTrigger=Math.random()}testExampleInvoice(){this.isInvoicingValid&&this.modalService.invoiceExampleModal()}};E.\u0275fac=function(o){return new(o||E)(n.Y36(B.o),n.Y36(S.c),n.Y36(K._W),n.Y36(F.m),n.Y36(W.y),n.Y36(k.P),n.Y36(J.w),n.Y36(Q.Z),n.Y36(V.K),n.Y36(Y.K))},E.\u0275cmp=n.Xpm({type:E,selectors:[["app-invoicing"]],viewQuery:function(o,s){if(1&o&&n.Gf(li,5),2&o){let c;n.iGM(c=n.CRH())&&(s.invoicingFormElement=c.first)}},hostBindings:function(o,s){1&o&&n.NdJ("beforeunload",function(p){return s.unloadNotification(p)},!1,n.Jf7)},inputs:{enableTooltip:"enableTooltip"},decls:26,vars:32,consts:[[1,"mainInvoicingCard",3,"nzTitle"],[1,"text-gray"],["class","d-block",4,"ngFor","ngForOf"],[3,"innerHTML"],[1,"w-100","text-right"],["nz-button","","nzType","primary","nz-tooltip","","nzTooltipTrigger","click",3,"nzGhost","nzTooltipTitle","click"],["nz-icon","","nzType","file-text","theme","outline"],[1,"position-relative"],["class","w-100","style","border-style: none",4,"ngIf"],[4,"ngIf"],["style","border-style: none",4,"ngIf"],[1,"feedback-positioning",3,"feature","unit","title"],[3,"links"],[1,"d-block"],[1,"fa","fa-check","position-absolute","line-height-base"],[1,"p-l-20","d-table-cell"],[1,"w-100",2,"border-style","none"],["skeletonText",""],["nzOrientation","left",1,"skeletonDivider",3,"nzText"],["nzType","input","nzSize","small",1,"w-100","skeleton-h-20px","m-b-15",3,"nzActive"],["class","row ant-form-item p-b-15",4,"ngFor","ngForOf"],["nzType","input","nzSize","small",1,"w-100","skeleton-h-20px","m-b-1",3,"nzActive"],["nzType","input","nzSize","small",1,"w-50","skeleton-h-20px","m-b-15",3,"nzActive"],["class","row ant-form-item",4,"ngFor","ngForOf"],["nzType","input","nzSize","small",1,"w-100",3,"nzActive"],[1,"row","ant-form-item","p-b-15"],[1,"col-md-3","col-sm-4","col-12","text-left","text-sm-right","skeleton-height","d-flex"],["nzType","input","nzSize","small",1,"skeleton-width","m-l-auto","mt-auto","mb-auto",3,"nzActive"],[1,"col-md-7","col-sm-6","col-12"],["nzType","input","nzSize","large",1,"w-100",3,"nzActive"],[1,"row","ant-form-item"],[1,"text-danger"],[2,"border-style","none"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter",4,"ngIf"],["class","text-right m-t-30",4,"ngIf"],["nz-form","","nzNoColon","",3,"formGroup","keydown.enter"],["invoicingFormElement",""],["nzOrientation","left",3,"nzText"],[1,"multiLineLabel","p-0",3,"nzLg","nzMd","nzSm","nzXs","nzRequired"],[3,"nzLg","nzMd","nzSm","nzXs","nzErrorTip"],["id","aamEnabled",1,"w-100",3,"formControl","nzPlaceHolder","ngModelChange"],[3,"nzLabel","nzValue"],["aamEnabledErrorTip",""],[1,"row"],[1,"col-md-12"],[1,"col-md-12","p-h-0",3,"form","profileType","issuer","allowCopyFromProfile","enableTooltip","hasLicense","disableSameAsProfile","isTaxNumberInvalid","saveEmitter","unstickTrigger","copyFromProfile"],[1,"col-md-12","p-h-0",3,"form","navEntityCredentials","isNavEntityCredentialsValid","isNavEntityCredentialsInvalid","saveEmitter","unstickTrigger"],[1,"text-right","m-t-30"],[3,"type"],["nzType","primary","nzGhost","",1,"text-right","m-t-30",3,"runFunction","unstickTrigger","showMessage","click"]],template:function(o,s){1&o&&(n.TgZ(0,"nz-card",0),n.ALo(1,"translate"),n.TgZ(2,"p"),n._uU(3),n.ALo(4,"translate"),n.qZA(),n.TgZ(5,"div",1),n._uU(6),n.ALo(7,"translate"),n.TgZ(8,"ul"),n.YNc(9,_i,5,3,"li",2),n.ALo(10,"numberArray"),n.qZA()(),n._UZ(11,"p",3),n.ALo(12,"safe"),n.ALo(13,"translate"),n.TgZ(14,"div",4)(15,"button",5),n.NdJ("click",function(){return s.testExampleInvoice()}),n.ALo(16,"translate"),n._UZ(17,"i",6),n._uU(18),n.ALo(19,"translate"),n.qZA()(),n.TgZ(20,"div",7),n.YNc(21,pi,13,12,"nz-card",8),n.YNc(22,di,4,3,"div",9),n.YNc(23,Ei,4,3,"nz-card",10),n.qZA(),n._UZ(24,"app-feedback",11),n.qZA(),n._UZ(25,"app-navigator",12)),2&o&&(n.Q6J("nzTitle",n.lcZ(1,15,"CLIENT.PROFILE.INVOICING.TITLE")),n.xp6(3),n.hij(" ",n.lcZ(4,17,"CLIENT.PROFILE.INVOICING.DESC")," "),n.xp6(3),n.hij(" ",n.lcZ(7,19,"CLIENT.PROFILE.INVOICING.DESC_2")," "),n.xp6(3),n.Q6J("ngForOf",n.lcZ(10,21,5)),n.xp6(2),n.Q6J("innerHTML",n.xi3(12,23,n.lcZ(13,26,"CLIENT.PROFILE.INVOICING.MORE_INFO"),"html"),n.oJD),n.xp6(4),n.Q6J("nzGhost",!s.isInvoicingValid)("nzTooltipTitle",s.isInvoicingValid?null:n.lcZ(16,28,"CLIENT.PROFILE.INVOICING.EXAMPLE_INVOICE.TOOLTIP")),n.xp6(3),n.hij(" ",n.lcZ(19,30,"CLIENT.PROFILE.INVOICING.EXAMPLE_INVOICE.CREATE")," "),n.xp6(3),n.Q6J("ngIf",s.isLoading&&!s.actInvoicing),n.xp6(1),n.Q6J("ngIf",!s.isLoading&&!s.actInvoicing),n.xp6(1),n.Q6J("ngIf",!s.isLoading&&s.actInvoicing),n.xp6(1),n.Q6J("feature",s.FeedbackFeature.Settings)("unit",s.FeedbackUnit.LawyerInvoicing)("title","COMMON.FEEDBACK.TITLES.INVOICING"),n.xp6(1),n.Q6J("links",s.navigatorLinks))},dependencies:[I._Y,I.JJ,I.JL,P.sg,P.O5,G.X,I.oH,I.sg,C.P4,j.ix,H.w,$.dQ,X.bd,q.g,R.t3,R.SK,x.Lr,x.Nx,x.iK,x.Fd,ii.Ls,f.Ip,f.Vq,L.Xw,L.yg,ni.SY,ei.i,ti.U,oi.S,si.I,b.X$,ri.j,ai.y,ci.A],styles:['@charset "UTF-8";.labelSkeleton[_ngcontent-%COMP%]{min-width:110px;max-width:170px}[_nghost-%COMP%]   .labelSkeleton[_ngcontent-%COMP%]     .ant-skeleton-input{min-width:110px;max-width:170px}.mainInvoicingCard[_ngcontent-%COMP%]     .ant-card-body:first-child{padding:0}'],data:{animation:[D.Ln]}}
1),E=(0,Z.gn)([(0,h.c)()],E)}}]);

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.