1"use strict";(self.webpackChunkszerzi_front=self.webpackChunkszerzi_front||[]).push([[4044],{86705:(tt,S,s)=>{s.d(S,{k:()=>G});var D=s(71997),h=s(45218),L=s(44569),C=s(29971),n=s(94650),P=s(52632),y=s(36895),M=s(58800),R=s(21043),t=s(32925),e=s(35232);function Z(p,f){if(1&p&&(n.TgZ(0,"span"),n._UZ(1,"app-test-card-info",16),n.qZA()),2&p){const u=n.oxw(2);n.xp6(1),n.Q6J("currentPaymentProvider",u.currentPaymentProvider)}}function F(p,f){if(1&p&&(n.TgZ(0,"a",17),n.ALo(1,"localizeRoute"),n._uU(2),n.ALo(3,"translate"),n.qZA()),2&p){const u=n.oxw(2);n.Q6J("href",n.lcZ(1,2,"/"+u.PageRoutes.testCardsTab()),n.LSH),n.xp6(2),n.hij(" ",n.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.TEST_MODE_CARDS.INFO_LINK")," ")}}function v(p,f){if(1&p&&(n.TgZ(0,"div",14),n.YNc(1,Z,2,1,"span",3),n.YNc(2,F,4,6,"a",15),n.qZA()),2&p){const u=n.oxw();n.xp6(1),n.Q6J("ngIf",u.currentPaymentProvider!==u.PaymentProvider.Unicredit),n.xp6(1),n.Q6J("ngIf",u.currentPaymentProvider===u.PaymentProvider.Unicredit)}}const I=function(p){return{providerName:p,tradeChar:"\u2122\t"}};function A(p,f){if(1&p&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&p){const u=n.oxw();n.xp6(1),n.hij(" ",n.xi3(2,1,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.FOOTER_3",n.VKq(4,I,u.currentPaymentProvider===u.PaymentProvider.Braintree?"Braintree":u.currentPaymentProvider===u.PaymentProvider.Stripe?"Stripe":"Unicredit"))," ")}}const g=function(){return{tradeChar:"\u2122"}};function Y(p,f){1&p&&(n.TgZ(0,"span"),n._uU(1),n.ALo(2,"translate"),n.qZA()),2&p&&(n.xp6(1),n.hij(" ",n.xi3(2,1,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.FOOTER_5",n.DdM(4,g))," "))}function x(p,f){1&p&&(n.TgZ(0,"li")(1,"a",18),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&p&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.BRAINTREE_PRIVACY_POLICY"),""))}function b(p,f){1&p&&(n.TgZ(0,"li")(1,"a",19),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&p&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.STRIPE_PRIVACY_POLICY"),""))}function k(p,f){1&p&&(n.TgZ(0,"li")(1,"a",20),n._uU(2),n.ALo(3,"translate"),n.qZA()()),2&p&&(n.xp6(2),n.hij(" ",n.lcZ(3,1,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.UNICREDIT_PRIVACY_POLICY"),""))}function K(p,f){1&p&&(n.TgZ(0,"a",21),n._UZ(1,"img",22),n.qZA())}function w(p,f){1&p&&(n.TgZ(0,"a",23),n._UZ(1,"img",24),n.qZA())}function J(p,f){1&p&&(n.TgZ(0,"a",25),n._UZ(1,"img",26),n.qZA())}function W(p,f){1&p&&(n.TgZ(0,"div",27),n._UZ(1,"img",28)(2,"img",29)(3,"img",30)(4,"img",31)(5,"img",32)(6,"img",33)(7,"img",34)(8,"img",35),n.qZA())}const Q=function(p){return{providerName:p,tradeChar:"\u2122 "}},j=function(p){return{providerName:p,tradeChar:"\u2122"}};let G=(()=>{class p{constructor(u){this.paymentService=u,this.currentPaymentProvider=h.L.config.currentPaymentProvider,this.cardInfoMessageDisabled=!0,this.EnvironmentMode=C.$,this.EnvironmentService=h.L,this.PageRoutes=L.d,this.PaymentProvider=D.OHy}}return p.\u0275fac=function(u){return new(u||p)(n.Y36(P.t))},p.\u0275cmp=n.Xpm({type:p,selectors:[["app-payment-info"]],inputs:{currentPaymentProvider:"currentPaymentProvider",cardInfoMessageDisabled:"cardInfoMessageDisabled"},decls:45,vars:52,consts:[["class","text-left",4,"ngIf"],[1,"small","text-left"],[1,"font-weight-bold"],[4,"ngIf"],[1,"row","text-left"],[1,"col-sm"],["nz-typography","",1,"ant-typography","ng-star-inserted","small"],[1,"ng-star-inserted","col-sm"],["target","_blank","rel","noopener noreferrer",1,"open-link-secondary-16",3,"href"],[1,"col-sm","text-right"],["class","open-link-black-16","href","https://www.braintreegateway.com/merchants/hswc8chqtk7yhd8t/verified","target","_blank","rel","noopener noreferrer",4,"ngIf"],["class","open-link-black-16","href","https://stripe.com/en-hu","target","_blank","rel","noopener noreferrer",4,"ngIf"],["class","open-link-black-16","href","https://www.unicreditbank.hu","target","_blank","rel","noopener noreferrer",4,"ngIf"],["class","grid-gap-15 justify-content-right row",4,"ngIf"],[1,"text-left"],["target","_blank","rel","noopener noreferrer",3,"href",4,"ngIf"],[3,"currentPaymentProvider"],["target","_blank","rel","noopener noreferrer",3,"href"],["href","https://www.braintreepayments.com/hu/legal/braintree-privacy-policy","target","_blank","rel","noopener noreferrer",1,"open-link-secondary-16"],["href","https://stripe.com/en-hu/privacy","target","_blank",1,"open-link-secondary-16"],["href","https://www.unicreditbank.hu/hu/rolunk/hasznos_informaciok/penzugyi_informaciok/adatvedelmi_tajekoztato.html","target","_blank","rel","noopener noreferrer",1,"open-link-secondary-16"],["href","https://www.braintreegateway.com/merchants/hswc8chqtk7yhd8t/verified","target","_blank","rel","noopener noreferrer",1,"open-link-black-16"],["src","assets/images/braintree/braintree-badge.webp","width","220px","border","0","alt","Braintree badge"],["href","https://stripe.com/en-hu","target","_blank","rel","noopener noreferrer",1,"open-link-black-16"],["src","assets/images/stripe/powered-by-stripe.svg","width","150px","alt","Powered by stripe"],["href","https://www.unicreditbank.hu","target","_blank","rel","noopener noreferrer",1,"open-link-black-16"],["src","assets/images/unicredit/UCBK-CMYK_HU_Brandline-L.webp","width","150px","alt","Unicredit Bank"],[1,"grid-gap-15","justify-content-right","row"],["src","assets/images/unicredit/logo_maestro.webp","alt","Maestro",1,"icon-img"],["src","assets/images/unicredit/logo_mastercard.webp","alt","MasterCard",1,"icon-img"],["src","assets/images/unicredit/logo_mastercard_e.webp","alt","MasterCard Electronic",1,"icon-img"],["src","assets/images/unicredit/logo_visa.webp","alt","Visa",1,"icon-img"],["src","assets/images/unicredit/logo_visa_electron.webp","alt","Visa Electron",1,"icon-img"],["src","assets/images/unicredit/logo_vpay.webp","alt","V Pay",1,"icon-img"],["src","assets/images/unicredit/mc_securecode.webp","alt","MasterCard SecureCode",1,"icon-img"],["src","assets/images/unicredit/vbyvisa_blu.webp","alt","Verified by Visa",1,"icon-img"]],template:function(u,m){1&u&&(n.YNc(0,v,3,2,"div",0),n.TgZ(1,"p",1),n._uU(2),n.ALo(3,"translate"),n.TgZ(4,"span",2),n._uU(5),n.ALo(6,"translate"),n.qZA(),n.YNc(7,A,3,6,"span",3),n._uU(8),n.ALo(9,"translate"),n.YNc(10,Y,3,5,"span",3),n.qZA(),n.TgZ(11,"div",4)(12,"div",5)(13,"article",6),n._uU(14),n.ALo(15,"translate"),n.TgZ(16,"ul",7),n.YNc(17,x,4,3,"li",3),n.YNc(18,b,4,3,"li",3),n.YNc(19,k,4,3,"li",3),n.TgZ(20,"li")(21,"a",8),n.ALo(22,"localizeRoute"),n._uU(23),n.ALo(24,"translate"),n.qZA()(),n.TgZ(25,"li")(26,"a",8),n.ALo(27,"localizeRoute"),n._uU(28),n.ALo(29,"translate"),n.qZA()(),n.TgZ(30,"li")(31,"a",8),n.ALo(32,"localizeRoute"),n._uU(33),n.ALo(34,"translate"),n.qZA()(),n.TgZ(35,"li")(36,"a",8),n.ALo(37,"localizeRoute"),n._uU(38),n.ALo(39,"translate"),n.qZA()()()()(),n.TgZ(40,"div",9),n.YNc(41,K,2,0,"a",10),n.YNc(42,w,2,0,"a",11),n.YNc(43,J,2,0,"a",12),n.YNc(44,W,9,0,"div",13),n.qZA()()),2&u&&(n.Q6J("ngIf",!m.cardInfoMessageDisabled&&(m.EnvironmentService.config.environment===m.EnvironmentMode.testing||m.EnvironmentService.config.environment===m.EnvironmentMode.development||m.EnvironmentService.config.environment===m.EnvironmentMode.local)),n.xp6(2),n.hij(" ",n.xi3(3,22,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.FOOTER_1",n.VKq(48,Q,m.currentPaymentProvider===m.PaymentProvider.Braintree?"Braintree":m.currentPaymentProvider===m.PaymentProvider.Stripe?"Stripe":"Unicredit"))," "),n.xp6(3),n.Oqu(n.lcZ(6,25,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.FOOTER_2")),n.xp6(2),n.Q6J("ngIf",m.currentPaymentProvider!==m.PaymentProvider.Unicredit),n.xp6(1),n.hij(" ",n.xi3(9,27,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.FOOTER_4",n.VKq(50,j,m.currentPaymentProvider===m.PaymentProvider.Braintree?"Braintree":m.currentPaymentProvider===m.PaymentProvider.Stripe?"Stripe":"Unicredit"))," "),n.xp6(2),n.Q6J("ngIf",m.currentPaymentProvider===m.PaymentProvider.Braintree),n.xp6(4),n.hij(" ",n.lcZ(15,30,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.MORE_QUESTION")," "),n.xp6(3),n.Q6J("ngIf",m.currentPaymentProvider===m.PaymentProvider.Braintree),n.xp6(1),n.Q6J("ngIf",m.currentPaymentProvider===m.PaymentProvider.Stripe),n.xp6(1),n.Q6J("ngIf",m.currentPaymentProvider===m.PaymentProvider.Unicredit),n.xp6(2),n.Q6J("href",n.lcZ(22,32,"/"+m.PageRoutes.landingPrivacy),n.LSH),n.xp6(2),n.hij(" ",n.lcZ(24,34,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.SZERZI_PRIVACY_POLICY"),""),n.xp6(3),n.Q6J("href",n.lcZ(27,36,"/"+m.PageRoutes.landingPayment),n.LSH),n.xp6(2),n.hij(" ",n.lcZ(29,38,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.PAYMENT_POLICY"),""),n.xp6(3),n.Q6J("href",n.lcZ(32,40,"/"+m.PageRoutes.landingDisputeResolution),n.LSH),n.xp6(2),n.hij(" ",n.lcZ(34,42,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.DISPUTE_RESOLUTION"),""),n.xp6(3),n.Q6J("href",n.lcZ(37,44,"/"+m.PageRoutes.landingRefundPolicy),n.LSH),n.xp6(2),n.hij(" ",n.lcZ(39,46,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.REFUND"),""),n.xp6(3),n.Q6J("ngIf",m.currentPaymentProvider===m.PaymentProvider.Braintree),n.xp6(1),n.Q6J("ngIf",m.currentPaymentProvider===m.PaymentProvider.Stripe),n.xp6(1),n.Q6J("ngIf",m.currentPaymentProvider===m.PaymentProvider.Unicredit),n.xp6(1),n.Q6J("ngIf",m.currentPaymentProvider===m.PaymentProvider.Unicredit))},dependencies:[y.O5,M.ZU,R.q,t.X$,e.d],styles:['@charset "UTF-8";.icon-img[_ngcontent-%COMP%]{max-height:27px!important;height:auto;width:auto}']}),p})()},33804:(tt,S,s)=>{s.d(S,{R:()=>v});var D=s(97582),h=s(30144),L=s(36057),C=s(44224),n=s(6947),P=s(94650),y=s(39889),M=s(36895),R=s(39597),t=s(51971),e=s(32925);function Z(I,A){1&I&&(P.TgZ(0,"div",1),P._UZ(1,"nz-alert",2),P.ALo(2,"translate"),P.qZA()),2&I&&(P.xp6(1),P.Q6J("nzMessage",P.lcZ(2,1,"CLIENT.PROFILE.PAYMENT_RESULT.SUCCESS")))}function F(I,A){1&I&&(P.TgZ(0,"div",1),P._UZ(1,"nz-alert",3),P.ALo(2,"translate"),P.qZA()),2&I&&(P.xp6(1),P.Q6J("nzMessage",P.lcZ(2,1,"CLIENT.PROFILE.PAYMENT_RESULT.FAILURE")))}let v=class{constructor(A,g){this.router=A,this.routerService=g}ngOnInit(){this.router.events.subscribe(A=>{A instanceof h.OD&&this.updateState(A)}),this.updateState(this.router),this.finishPayment()}updateState(A){const g=A.url.split("/");this.state="success"===g[g.length-1]||"failure"===g[g.length-1]?g[g.length-1]:null}finishPayment(){if(this.state){const A=localStorage.getItem(n.B.pendingPayment);if(A){const g=JSON.parse(A);g.expectedResult=this.state,localStorage.setItem(n.B.pendingPayment,JSON.stringify(g)),g.purchaseType===L.Oz.BUNDLE?this.routerService.routeToBundlesTabCheck():g.purchaseType===L.Oz.CONTRACT&&this.routerService.routeToContractFinalizationCheck(g.productID,!0)}}}};v.\u0275fac=function(A){return new(A||v)(P.Y36(h.F0),P.Y36(y.c))},v.\u0275cmp=P.Xpm({type:v,selectors:[["app-payment-result"]],decls:3,vars:2,consts:[["class","text-center",4,"ngIf"],[1,"text-center"],["nzType","success",3,"nzMessage"],["nzType","error",3,"nzMessage"]],template:function(A,g){1&A&&(P.TgZ(0,"nz-card"),P.YNc(1,Z,3,3,"div",0),P.YNc(2,F,3,3,"div",0),P.qZA()),2&A&&(P.xp6(1),P.Q6J("ngIf",!0),P.xp6(1),P.Q6J("ngIf","failure"===g.state))},dependencies:[M.O5,R.r,t.bd,e.X$],styles:['@charset "UTF-8";']}),v=(0,D.gn)([(0,C.c)()],v)},62028:(tt,S,s)=>{s.d(S,{o:()=>U});var D=s(97582),h=s(44569),L=s(71997),C=s(92961),n=s(44224),P=s(52835),y=s(37340),M=s(45218),R=s(30144),t=s(5963),e=s(94650),Z=s(25156),F=s(50211),v=s(75489),I=s(81664),A=s(81404),g=s(31495),Y=s(39889),x=s(52632),b=s(36895),k=s(47216),K=s(66616),w=s(47044),J=s(21811),W=s(51971),Q=s(4788),j=s(2577),G=s(73679),p=s(47423),f=s(66152),u=s(20545),m=s(15635),et=s(86705),nt=s(32925);const V=["footerdivider"],it=["setDefaultFooter"],q=["deleteFooter"],ot=["deleteButtonDefault"],$=function(){return{tradeChar:"\u2122\t"}};function at(_,l){1&_&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&_&&(e.xp6(1),e.hij("",e.xi3(2,1,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.HEADER_2",e.DdM(4,$))," "))}function st(_,l){1&_&&e._UZ(0,"nz-skeleton-element",20),2&_&&e.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}function rt(_,l){1&_&&e._UZ(0,"nz-skeleton-element",21),2&_&&e.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}function _t(_,l){1&_&&e._UZ(0,"nz-skeleton-element",22),2&_&&e.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}function lt(_,l){if(1&_&&(e.TgZ(0,"nz-list",12)(1,"nz-list-item",13),e._UZ(2,"nz-list-item-meta",14),e.YNc(3,st,1,2,"ng-template",null,15,e.W1O),e.YNc(5,rt,1,2,"ng-template",null,16,e.W1O),e.YNc(7,_t,1,2,"ng-template",null,17,e.W1O),e.TgZ(9,"ul",18)(10,"nz-list-item-action"),e._UZ(11,"nz-skeleton-element",19),e.qZA(),e.TgZ(12,"
1nz-list-item-action",12),e._UZ(13,"nz-skeleton-element",19),e.qZA()()()()),2&_){const r=e.MAs(4),c=e.MAs(6),d=e.MAs(8);e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(1),e.Q6J("nzAvatar",r)("nzDescription",c)("nzTitle",d),e.xp6(7),e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("nzActive",!0)("@skeletonPosAbsLeave",void 0)}}function ct(_,l){1&_&&(e.TgZ(0,"div")(1,"p",23),e._uU(2),e.ALo(3,"translate"),e.qZA()()),2&_&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.PROFILE.PAYMENT.LOAD_FAILED")," "))}const pt=function(){return{transform:"translateY(-22%)"}},mt=function(){return{transform:"translateY(0%)"}};function dt(_,l){if(1&_&&e._UZ(0,"img",29),2&_){const r=e.oxw().$implicit;e.Q6J("ngStyle",r.preferred?e.DdM(3,mt):e.DdM(2,pt))("src",r.imageHyperlink,e.LSH)}}function Pt(_,l){1&_&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&_&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.PROFILE.PAYMENT.BUTTONS.DEFAULT")," "))}function Tt(_,l){if(1&_){const r=e.EpF();e.TgZ(0,"a",33),e.NdJ("click",function(){e.CHM(r);const d=e.oxw(2).$implicit,O=e.oxw(2);return e.KtG(O.setToDefaultModal(d))}),e._UZ(1,"span",34),e._uU(2),e.ALo(3,"translate"),e.qZA()}2&_&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.PROFILE.PAYMENT.BUTTONS.SET_TO_DEFAULT")," "))}function ut(_,l){if(1&_){const r=e.EpF();e.TgZ(0,"ul",30)(1,"nz-list-item-action"),e.YNc(2,Pt,3,3,"span",1),e.YNc(3,Tt,4,3,"a",31),e.qZA(),e.TgZ(4,"nz-list-item-action")(5,"app-multi-state-button",32),e.NdJ("click",function(){e.CHM(r);const d=e.oxw().$implicit,O=e.oxw(2);return e.KtG(O.loadSubscriptions(d))}),e.qZA()()()}if(2&_){const r=e.oxw().$implicit,c=e.oxw(2);e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("ngIf",r.preferred),e.xp6(1),e.Q6J("ngIf",!r.preferred),e.xp6(2),e.Q6J("showAsLink",!0)("runFunction",c.deletePaymentMethodMap.get(r.token)?c.deletePaymentMethodMap.get(r.token).deletePaymentMethodPromise:null)("nzTextKeys",c.deleteLinkText)("stickResult",!1)}}function Et(_,l){if(1&_){const r=e.EpF();e.TgZ(0,"ul",35)(1,"nz-list-item-action")(2,"button",36),e.NdJ("click",function(){e.CHM(r);const d=e.oxw().$implicit,O=e.oxw(2);return e.KtG(O.selectPayment(d.token))}),e._uU(3),e.ALo(4,"translate"),e.ALo(5,"translate"),e.qZA()()()}if(2&_){const r=e.oxw().$implicit,c=e.oxw(2);e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("nzType","primary")("disabled",c.selectedPayment===r.token),e.xp6(1),e.hij(" ",c.selectedPayment===r.token?e.lcZ(4,4,"CLIENT.PROFILE.PAYMENT.BUTTONS.SELECTED"):e.lcZ(5,6,"CLIENT.PROFILE.PAYMENT.BUTTONS.SELECT")," ")}}const gt=function(_){return{mail:_}},At=function(_){return{number:_}};function ft(_,l){if(1&_&&(e.TgZ(0,"nz-list-item",12),e.YNc(1,dt,1,4,"ng-template",null,26,e.W1O),e._UZ(3,"nz-list-item-meta",14),e.ALo(4,"translate"),e.ALo(5,"translate"),e.ALo(6,"translate"),e.YNc(7,ut,6,7,"ul",27),e.YNc(8,Et,6,8,"ul",28),e.qZA()),2&_){const r=l.$implicit,c=e.MAs(2),d=e.oxw(2);e.Q6J("@skeletonPosAbsLeave",void 0)("@listItemAnimation",void 0),e.xp6(3),e.Q6J("nzAvatar",c)("nzDescription",r.kind.type===d.PaymentMethodType.PayPal?e.xi3(4,7,"CLIENT.PROFILE.PAYMENT.MAIL",e.VKq(15,gt,r.name)):e.xi3(5,10,"CLIENT.PROFILE.PAYMENT.ENDING",e.VKq(17,At,r.name)))("nzTitle",r.preferred?e.lcZ(6,13,"CLIENT.PROFILE.PAYMENT.DEFAULT"):""),e.xp6(4),e.Q6J("ngIf",!d.isSelectingPayment),e.xp6(1),e.Q6J("ngIf",d.isSelectingPayment)}}function ht(_,l){if(1&_){const r=e.EpF();e.TgZ(0,"div",37)(1,"button",38),e.NdJ("click",function(){e.CHM(r);const d=e.oxw(2);return e.KtG(d.showPaymentModal(!1))}),e._UZ(2,"i",39),e._uU(3),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"app-payment",40),e.qZA()}2&_&&(e.Q6J("@skeletonPosAbsLeave",void 0),e.xp6(3),e.hij(" ",e.lcZ(4,4,"CLIENT.PROFILE.PAYMENT.NEW")," "),e.xp6(2),e.Q6J("isPayPal",!0)("isPayPalInline",!0))}function Lt(_,l){if(1&_&&(e.TgZ(0,"div")(1,"nz-list"),e.YNc(2,ft,9,19,"nz-list-item",24),e.qZA(),e.YNc(3,ht,6,6,"div",25),e.qZA()),2&_){const r=e.oxw();e.xp6(2),e.Q6J("ngForOf",r.allPayments)("ngForTrackBy",r.trackByPaymentMethod),e.xp6(1),e.Q6J("ngIf",!r.isSelectingPayment)}}function It(_,l){1&_&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&_&&(e.xp6(1),e.Oqu(e.l
1cZ(2,1,"CLIENT.PROFILE.PAYMENT.WARNING.BILLING")))}function Ot(_,l){if(1&_){const r=e.EpF();e.TgZ(0,"button",44),e.NdJ("click",function(){e.CHM(r);const d=e.oxw(2);return e.KtG(d.routerService.routeToSettingsTab(d.PageRoutes.settingsBillingTab))}),e._uU(1),e.ALo(2,"translate"),e.qZA()}2&_&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.PROFILE.PAYMENT.SET_UP_BILLING")," "))}function vt(_,l){if(1&_&&(e.TgZ(0,"nz-empty",41),e.YNc(1,It,3,3,"ng-template",null,42,e.W1O),e.YNc(3,Ot,3,3,"ng-template",null,43,e.W1O),e.qZA()),2&_){const r=e.MAs(2),c=e.MAs(4);e.Q6J("@skeletonPosAbsLeave",void 0)("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",r)("nzNotFoundFooter",c)}}function yt(_,l){1&_&&(e.TgZ(0,"span"),e._uU(1),e.ALo(2,"translate"),e.qZA()),2&_&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.PROFILE.PAYMENT.WARNING.PAYMENT")," "))}function Ct(_,l){if(1&_){const r=e.EpF();e.TgZ(0,"div",37)(1,"button",44),e.NdJ("click",function(){e.CHM(r);const d=e.oxw(2);return e.KtG(d.showPaymentModal(!1))}),e._UZ(2,"i",39),e._uU(3),e.ALo(4,"translate"),e.qZA(),e._UZ(5,"app-payment",40),e.qZA()}2&_&&(e.xp6(3),e.hij(" ",e.lcZ(4,3,"CLIENT.PROFILE.PAYMENT.ADD")," "),e.xp6(2),e.Q6J("isPayPal",!0)("isPayPalInline",!0))}function Nt(_,l){if(1&_&&(e.TgZ(0,"nz-empty",41),e.YNc(1,yt,3,3,"ng-template",null,42,e.W1O),e.YNc(3,Ct,6,5,"ng-template",null,43,e.W1O),e.qZA()),2&_){const r=e.MAs(2),c=e.MAs(4);e.Q6J("@skeletonPosAbsLeave",void 0)("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",r)("nzNotFoundFooter",c)}}function Mt(_,l){if(1&_&&(e._UZ(0,"nz-divider",45)(1,"app-payment-info",46),e.TgZ(2,"div",47),e._UZ(3,"app-feedback",48),e.qZA()),2&_){const r=e.oxw(),c=e.MAs(18);e.Q6J("nzText",c),e.xp6(1),e.Q6J("cardInfoMessageDisabled",!1)("@skeletonPosAbsLeave",void 0),e.xp6(2),e.Q6J("title","COMMON.FEEDBACK.TITLES.PAYMENT_ADDING")("feature",r.FeedbackFeature.Modal)("unit",r.FeedbackUnit.AddPayment)}}function Rt(_,l){1&_&&(e.TgZ(0,"span"),e._UZ(1,"i",49),e._uU(2),e.ALo(3,"translate"),e.qZA()),2&_&&(e.xp6(2),e.hij(" ",e.lcZ(3,1,"CLIENT.PROFILE.PAYMENT.MODAL.PROVIDE.SAFETY.SAFE")," "))}function xt(_,l){if(1&_){const r=e.EpF();e.TgZ(0,"div",50)(1,"button",51),e.NdJ("click",function(){e.CHM(r);const d=e.oxw();return e.KtG(d.nzModal.closeAll())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"app-multi-state-button",52),e.qZA()}if(2&_){const r=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.MODAL.DEFAULT.CANCEL")," "),e.xp6(2),e.Q6J("defaultFunction",r.defaultFunction)("nzTextKeys",r.defaultButtonText)("stickResult",!1)}}function Ut(_,l){if(1&_){const r=e.EpF();e.TgZ(0,"div",50)(1,"button",51),e.NdJ("click",function(){e.CHM(r);const d=e.oxw();return e.KtG(d.cancelDelete())}),e._uU(2),e.ALo(3,"translate"),e.qZA(),e._UZ(4,"app-multi-state-button",52),e.qZA()}if(2&_){const r=e.oxw();e.xp6(2),e.hij(" ",e.lcZ(3,4,"CLIENT.PROFILE.PAYMENT.MODAL.DEFAULT.CANCEL")," "),e.xp6(2),e.Q6J("defaultFunction",r.deleteFunction)("nzTextKeys",r.deleteText)("stickResult",!1)}}function zt(_,l){1&_&&(e._UZ(0,"span",53),e._uU(1),e.ALo(2,"translate")),2&_&&(e.xp6(1),e.hij(" ",e.lcZ(2,1,"CLIENT.PROFILE.PAYMENT.BUTTONS.DELETE_BUTTON_STATES.DEFAULT"),"\n"))}let U=class{constructor(l,r,c,d,O,N,z,St,Dt){this.nzModal=l,this.clientService=r,this.eventService=c,this.modalService=d,this.modalClientService=O,this.onePage=N,this.routerService=z,this.paymentService=St,this.router=Dt,this.originalPreferred=null,this.selectedPayment="",this.toRefresh=this.onePage.paymentChanged,this.PageRoutes=h.d,this.subscriptions=null,this.loadingSubscriptions=new Map,this.deletePaymentMethodMap=new Map,this.EnvironmentService=M.L,this.PaymentMethodType=L.LtK,this.PaymentProvider=L.OHy,this.FeedbackFeature=L.lrp,this.FeedbackUnit=L._0Z}ngOnInit(){this.isLoading=!0,this.getPaymentMethods(),this.toRefresh.subscribe(l=>{this.getPaymentMethods()}),this.onePage.billingChanged.subscribe(l=>{this.hasBilling=!0,this.getPaymentMethods()}),this.defaultButtonText=new C.PR("CLIENT.PROFILE.PAYMENT.MODAL.DEFAULT.CONFIRM.CHANGE","CLIENT.PROFILE.PAYMENT.MODAL.DEFAULT.CONFIRM.CHANGING","CLIENT.PROFILE.PAYMENT.MODAL.DEFAULT.CONFIRM.CHANGED","CLIENT.PROFILE.PAYMENT.MODAL.DEFAULT.CONFIRM.FAILED"),this.defaultFunction=()=>this.setDefault(),this.deleteText=new C.PR("CLIENT.PROFILE.PAYMENT.MODAL.DELETE.CONFIRM.CHANGE","CLIENT.PROFILE.PAYMENT.MODAL.DELETE.CONFIRM.CHANGING","CLIENT.PROFILE.PAYMENT.MODAL.DELETE.CONFIRM.CHANGED","CLIENT.PROFILE.PAYMENT.MODAL.DELETE.CONFIRM.FAILED"),this.deleteFunction=()=>{const l=this.deletePayment(),r=this.deletePaymentMethodMap.get(this.selectedItem.token);return r&&r.deletePaymentMethodResolve(l),l},this.router.events.subscribe(l=>{l instanceof R.OD&&l.url.endsWith(h.d.settingsPaymentTestCardsTab)&&this.modalService.testCardInfoModal()})}ngAfterViewInit(){this.deleteLinkText=new C.PR(this.deleteButtonDefault,"CLIENT.PROFILE.PAYMENT.BUTTONS.DELETE_BUTTON_STATES.WORKING","CLIENT.PROFILE.PAYMENT.BUTTONS.DELETE_BUTTON_STATES.SUCCESS","CLIENT.PROFILE.PAYMENT.BUTTONS.DELETE_BUTTON_STATES.FAILED")}deletePaymentModal(l){this.selectedItem=l;const r=this.subscriptions.find(d=>d.methodToken===l.token);this.loadingSubscriptions.set(l.token,!1),this.deletePaymentMethodMap.get(l.token).deletePaymentMethodPromise.then(()=>{this.onePage.sendSubscriptionChanged()},d=>{}),this.modalService.deletePaymentModal(r,l,this.deleteFooter,()=>this.cancelDelete())}cancelDelete(){const l=this.deletePaymentMethodMap.get(this.selectedItem.token);l&&l.deletePaymentMethodReject(),this.nzModal.closeAll()}loadSubscriptions(l){let r,c;const d=new Promise((N,z)=>{r=N,c=z}),O=new L.eLm(d,r,c);this.deletePaymentMethodMap.set(l.token,O),M.L.config.subscriptionsAnnualEnabled||M.L.config.subscriptionsMonthlyEnabled?(this.subscriptions=null,this.loadingSubscriptions.set(l.token,!0),this.clientService.getSubscriptionState().pipe((0,n.t)(this)).toPromise().then(N=>{this.subscriptions=[...N],this.deletePaymentModal(l)},N=>{this.loadingSubscriptions.set(l.token,!1),O.deletePaymentMethodReject()})):(this.subscriptions=[],this.deletePaymentModal(l))}deletePayment(){const l=this.clientService.deletePaymentMethod(this.selectedItem.token).pipe((0,n.t)(this)).toPromise();return l.then(r=>{this.getPaymentMethods(),setTimeout(()=>{this.nzModal.closeAll()},1e3)},r=>{this.getPaymentMethods()}),l}getPaymentMethods(l=7,r=500){this.clientService.getPaymentMethod().pipe((0,n.t)(this)).subscribe(c=>{this.allPayments=this.sortPayments(c),this.isLoading=!1,this.eventService.hasPayment.emit(0!==this.allPayments.length)},c=>{402===c.status&&this.hasBilling&&l>0?(0,t.H)(r).pipe((0,n.t)(this)).subscribe(d=>{this.getPaymentMethods(l-1,2*r)}):(this.isLoading=!1,this.allPayments=null,this.eventService.hasPayment.emit(!1))})}selectPayment(l){this.selectedPayment=l,this.onePage.sendSelectedPayment(l)}setDefault(){return this.clientService.setDefaultPaymentMethod(this.selectedItem.token).pipe((0,n.t)(this)).toPromise().then(l=>{this.getPaymentMethods(),setTimeout(()=>{this.nzModal.closeAll()},1e3)},l=>{this.getPaymentMethods()})}setToDefaultModal(l){this.selectedItem=l,this.modalService.setDefaultPaymentModal(l,this.setDefaultFooter)}showPaymentModal(l){this.modalClientService.addPaymentMethodModal(l,this.footerdivider),this.nzModal.afterAllClose.subscribe(()=>{this.getPaymentMethods()})}sortPayments(l){return null==this.originalPreferred&&(this.originalPreferred=l.find(c=>c.preferred)),[...l.filter(this.originalPreferred?c=>c.token===this.originalPreferred.token:c=>c.preferred),...function r(c){return[...c].sort((d,O)=>{const N=parseInt(d.name,10),z=parseInt(O.name,10);return N===z?d.token<O.token?-1:1:N<z?1:-1})}(l.filter(c=>this.originalPreferred?c.token!==this.originalPreferred.token:!c.preferred))]}trackByPaymentMethod(l,r){return r.token}};U.\u0275fac=function(l){return new(l||U)(e.Y36(Z.Sf),e.Y36(F.y),e.Y36(v.P),e.Y36(I.Z),e.Y36(A.u),e.Y36(g.g),e.Y36(Y.c),e.Y36(x.t),e.Y36(R.F0))},U.\u0275cmp=e.Xpm({type:U,selectors:[["app-paymentcard"]],viewQuery:function(l,r){if(1&l&&(e.Gf(V,5),e.Gf(it,5),e.Gf(q,5),e.Gf(ot,5)),2&l){let c;e.iGM(c=e.CRH())&&(r.footerdivider=c.first),e.iGM(c=e.CRH())&&(r.setDefaultFooter=c.first),e.iGM(c=e.CRH())&&(r.deleteFooter=c.first),e.iGM(c=e.CRH())&&(r.deleteButtonDefault=c.first)}},inputs:{hasBilling:"hasBilling",isSelectingPayment:"isSelectingPayment"},decls:25,vars:13,consts:[[1,"position-relative"],[4,"ngIf"],[1,"font-weight-bold"],[1,"w-100","position-relative"],["class","w-100",4,"ngIf"],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter",4,"ngIf"],[1,"display-block","m-t-100"],["footerdivider",""],["footerdividertext",""],["setDefaultFooter",""],["deleteFooter",""],["deleteButtonDefault",""],[1,"w-100"],[1,"loadingList"],[1,"cardNameListMeta",3,"nzAvatar","nzDescription","nzTitle"],["loadingAvatar",""],["loadingDescription",""],["loadingTitle",""],["nz-list-item-actions","",1,"m-width-100",2,"width","180px"],["nzType","input","nzSize","small",1,"p-b-10","w-100",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-100","imgSkeleton",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-25",2,"min-width","130px",3,"nzActive"],["nzType","input","nzSize","small",1,"p-b-10","w-65",3,"nzActive"],[1,"text-danger"],["class","w-100",4,"ngFor","ngForOf","ngForTrackBy"],["nz-row","","nzJustify","center",4,"ngIf"],["avatar",""],["style","transform: translateY(27%)","nz-list-item-actions","","class","m-width-100 text-center m-l-0",4,"ngIf"],["nz-list-item-actions","",4,"ngIf"],["alt","Payment method type",1,"align-self-center","payment-method-image",3,"ngStyle","src"],["nz-list-item-actions","",1,"m-width-100","text-center","m-l-0",2,"transform","translateY(27%)"],["class","color-primary",3,"click",4,"ngIf"],[3,"showAsLink","runFunction","nzTextKeys","stickResult","click"],[1,"color-primary",3,"click"],["nz-icon","","nzType","plus","nzTheme","outline"],["nz-list-item-actions",""],["nz-button","",3,"nzType","disabled","click"],["nz-row","","nzJustify","center"],["nz-button","","nzType","primary",1,"m-b-10","multiLineButton",3,"click"],["nz-icon","","nzType","credit-card"],[1,"m-l-10",3,"isPayPal","isPayPalInline"],[3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["nz-button","","nzType","primary",1,"button-text-wrap",3,"click"],["nzOrientation","left",3,"nzText"],[1,"display-block",3,"cardInfoMessageDisabled"],[1,"row","w-100","justify-content-end"],[3,"title","feature","unit"],["nz-icon","","nzType","safety","nzTheme","outline",2,"font-size","0.875rem"],[1,"row","justify-content-center","justify-content-md-end","grid-gap-15","w-100"],["nz-button","","nzType","primary",1,"button2",3,"click"],["nzType","primary",1,"button-text-wrap","modalFooterButton","button1",3,"defaultFunction","nzTextKeys","stickResult"],["nz-icon","","nzType","delete","nzTheme","outline"]],template:function(l,r){1&l&&(e.TgZ(0,"nz-card",0)(1,"p"),e._uU(2),e.ALo(3,"translate"),e.YNc(4,at,3,5,"span",1),e.TgZ(5,"span",2),e._uU(6),e.ALo(7,"translate"),e.qZA()(),e.TgZ(8,"div",3),e.YNc(9,lt,14,10,"nz-list",4),e.YNc(10,ct,4,3,"div",1),e.YNc(11,Lt,4,3,"div",1),e.qZA(),e.YNc(12,vt,5,4,"nz-empty",5),e.YNc(13,Nt,5,4,"nz-empty",5),e._UZ(14,"app-payment-info",6),e.qZA(),e.YNc(15,Mt,4,6,"ng-template",null,7,e.W1O),e.YNc(17,Rt,4,3,"ng-template",null,8,e.W1O),e.YNc(19,xt,5,6,"ng-template",null,9,e.W1O),e.YNc(21,Ut,5,6,"ng-template",null,10,e.W1O),e.YNc(23,zt,3,3,"ng-template",null,11,e.W1O)),2&l&&(e.xp6(2),e.hij(" ",e.lcZ(3,9,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.HEADER")," "),e.xp6(2),e.Q6J("ngIf",r.EnvironmentService.config.unicreditEnabled),e.xp6(2),e.Oqu(e.l
1cZ(7,11,"CLIENT.PROFILE.PAYMENT.BRAINTREE_INFO.HEADER_IMPORTANT")),e.xp6(3),e.Q6J("ngIf",r.isLoading),e.xp6(1),e.Q6J("ngIf",!r.allPayments&&r.hasBilling&&!r.isLoading),e.xp6(1),e.Q6J("ngIf",r.allPayments&&r.allPayments.length&&!r.isLoading),e.xp6(1),e.Q6J("ngIf",!r.isLoading&&!r.hasBilling),e.xp6(1),e.Q6J("ngIf",r.allPayments&&!r.allPayments.length&&r.hasBilling&&!r.isLoading),e.xp6(1),e.Q6J("@skeletonPosAbsLeave",void 0))},dependencies:[b.sg,b.O5,b.PC,k.X,C.P4,K.ix,w.w,J.dQ,W.bd,Q.p9,j.g,G.SK,p.Ls,f.n_,f.AA,f.yi,f.nk,f.KC,u.Xw,u.yg,m.p,et.k,nt.X$],styles:['@charset "UTF-8";.imgSkeleton[_ngcontent-%COMP%]{height:40px}[_nghost-%COMP%] .imgSkeleton[_ngcontent-%COMP%] .ant-skeleton-input{height:40px}[_nghost-%COMP%] .loadingList[_ngcontent-%COMP%] nz-list-item-meta-avatar{width:72px}[_nghost-%COMP%] .loadingList[_ngcontent-%COMP%] li{width:50%}.modalFooterButton[_ngcontent-%COMP%] .smartButton{max-width:none!important;max-width:initial!important}@media (max-width: 767.98px){.button1[_ngcontent-%COMP%]{min-width:51%!important}.button2[_ngcontent-%COMP%]{margin-left:0!important;min-width:51%!important}.button1[_ngcontent-%COMP%] .smartButton{width:100%!important}}.cardNameListMeta[_ngcontent-%COMP%] .ant-list-item-meta-content{width:-moz-fit-content;width:fit-content}'],data:{animation:[P.Ln,(0,y.X$)("listItemAnimation",[(0,y.eR)(":leave",[(0,y.oB)({height:"*",position:"relative"}),(0,y.jt)("0.7s ease-in",(0,y.oB)({height:"0",position:"relative"}))])])]}}),U=(0,D.gn)([(0,n.c)()],U)},95304:(tt,S,s)=>{s.d(S,{E:()=>B});var D=s(97582),h=s(44224),L=s(92961),C=s(30144),n=s(71997),P=s(52835),y=s(36057),M=s(44569),R=s(43559),t=s(94650),e=s(50211),Z=s(39889),F=s(61479),v=s(49651),I=s(32925),A=s(54584),g=s(14206),Y=s(75489),x=s(36895),b=s(47216),k=s(67151),K=s(39597),w=s(74383),J=s(66616),W=s(47044),Q=s(21811),j=s(51971),G=s(4788),p=s(47423),f=s(46581),u=s(20545),m=s(37570),et=s(76038),nt=s(45144),V=s(12987),it=s(81801);const q=function(o){return{singleLineBalanceCard:o}};function ot(o,a){if(1&o&&(t.TgZ(0,"nz-card",11)(1,"div",12),t._UZ(2,"nz-skeleton-element",13),t.TgZ(3,"div",14)(4,"h2",15),t._UZ(5,"nz-skeleton-element",16),t.qZA(),t.TgZ(6,"p",17),t._UZ(7,"nz-skeleton-element",16),t.qZA()()(),t.TgZ(8,"div",18),t._UZ(9,"nz-skeleton-element",19),t.qZA()()),2&o){const i=t.oxw(2);t.Q6J("ngClass",t.VKq(6,q,i.componentWidth<1020)),t.xp6(2),t.Q6J("nzActive",!0)("nzSize",80),t.xp6(3),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("nzActive",!0)}}const $=function(o){return{"flex-column":o}};function at(o,a){if(1&o&&(t.TgZ(0,"div",7)(1,"div",8)(2,"div",9),t.YNc(3,ot,10,8,"nz-card",10),t.ALo(4,"numberArray"),t.qZA()()()),2&o){const i=t.oxw();t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(2),t.Q6J("ngClass",t.VKq(5,$,i.componentWidth<1020)),t.xp6(1),t.Q6J("ngForOf",t.lcZ(4,3,3))}}function st(o,a){1&o&&(t.TgZ(0,"div")(1,"p",20),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&o&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"CLIENT.PROFILE.PAYOUT.LOAD_FAILED")," "))}function rt(o,a){1&o&&(t.TgZ(0,"div",23),t._UZ(1,"nz-alert",24),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.Q6J("nzMessage",t.lcZ(2,1,"CLIENT.PROFILE.PAYOUT.REFRESH")))}function _t(o,a){1&o&&(t.TgZ(0,"div",23),t._UZ(1,"nz-alert",25),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.Q6J("nzMessage",t.lcZ(2,1,"CLIENT.PROFILE.PAYOUT.RETURN")))}function lt(o,a){1&o&&(t.TgZ(0,"div")(1,"p",20),t._uU(2),t.ALo(3,"translate"),t.qZA()()),2&o&&(t.xp6(2),t.hij(" ",t.lcZ(3,1,"CLIENT.PROFILE.PAYOUT.BALANCE.LOAD_FAILED")," "))}function ct(o,a){1&o&&(t.TgZ(0,"div",31)(1,"p")(2,"span",32),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&o&&(t.xp6(3),t.hij(" ",t.lcZ(4,2,"CLIENT.PROFILE.PAYOUT.BALANCE.AVAILABLE_BALANCE"),": "),t.xp6(2),t.hij(" ",t.lcZ(6,4,"CLIENT.PROFILE.PAYOUT.BALANCE_POPOVER.AVAILABLE_BALANCE_INFO")," "))}function pt(o,a){1&o&&(t.TgZ(0,"div",31)(1,"p")(2,"span",32),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&o&&(t.xp6(3),t.hij(" ",t.lcZ(4,2,"CLIENT.PROFILE.PAYOUT.BALANCE.PENDING_BALANCE"),": "),t.xp6(2),t.hij(" ",t.lcZ(6,4,"CLIENT.PROFILE.PAYOUT.BALANCE_POPOVER.PEND
1ING_BALANCE_INFO")," "))}function mt(o,a){1&o&&(t.TgZ(0,"div",31)(1,"p")(2,"span",32),t._uU(3),t.ALo(4,"translate"),t.qZA(),t._uU(5),t.ALo(6,"translate"),t.qZA()()),2&o&&(t.xp6(3),t.hij(" ",t.lcZ(4,2,"CLIENT.PROFILE.PAYOUT.BALANCE.PENDING_TRANSACTIONS"),": "),t.xp6(2),t.hij(" ",t.lcZ(6,4,"CLIENT.PROFILE.PAYOUT.BALANCE_POPOVER.PENDING_TRANSACTIONS_INFO")," "))}const dt=function(){return{height:"100%"}};function Pt(o,a){if(1&o&&(t.TgZ(0,"nz-card",33)(1,"div",34)(2,"div"),t._UZ(3,"nz-avatar",35),t.qZA(),t.TgZ(4,"div",36)(5,"h2",15),t._uU(6),t.ALo(7,"formatCurrency"),t.ALo(8,"formatCurrencyName"),t.ALo(9,"as"),t.ALo(10,"uppercase"),t.qZA(),t.TgZ(11,"p",17),t._uU(12),t.qZA(),t.TgZ(13,"div",37)(14,"button",38),t._UZ(15,"i",39),t._uU(16),t.ALo(17,"translate"),t.qZA()()()()()),2&o){const i=a.money,E=a.balanceName,T=a.balancePopoverTemplate,H=a.balanceImageSrc,X=t.oxw(3);t.Q6J("nzBodyStyle",t.DdM(20,dt))("ngClass",t.VKq(21,q,X.componentWidth<1020)),t.xp6(3),t.Q6J("nzSize",80)("nzSrc",H),t.xp6(3),t.AsE(" ",t.lcZ(7,9,i.amount),"\xa0",t.lcZ(8,11,t.xi3(9,13,t.lcZ(10,16,i.currency),X.Currency.HUF))," "),t.xp6(6),t.Oqu(E),t.xp6(2),t.Q6J("nzPopoverContent",T),t.xp6(2),t.hij("",t.lcZ(17,18,"CLIENT.PROFILE.PAYOUT.BALANCE_POPOVER.LINK")," ")}}function Tt(o,a){}function ut(o,a){1&o&&t.YNc(0,Tt,0,0,"ng-template")}function Et(o,a){}function gt(o,a){1&o&&t.YNc(0,Et,0,0,"ng-template")}const At=function(o,a,i){return{money:o,balanceName:a,balancePopoverTemplate:i,balanceImageSrc:"assets/images/invoicing/pending-balance.svg"}};function ft(o,a){if(1&o&&(t.ynx(0),t.YNc(1,gt,1,0,null,30),t.ALo(2,"translate"),t.BQk()),2&o){const i=a.$implicit;t.oxw(2);const E=t.MAs(8),T=t.MAs(4);t.xp6(1),t.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",t.kEZ(4,At,i,t.lcZ(2,2,"CLIENT.PROFILE.PAYOUT.BALANCE.PENDING_BALANCE"),T))}}function ht(o,a){if(1&o&&(t.ynx(0),t.YNc(1,ft,3,8,"ng-container",40),t.BQk()),2&o){const i=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",i.balance.pending)}}function Lt(o,a){}function It(o,a){1&o&&t.YNc(0,Lt,0,0,"ng-template")}const Ot=function(o,a,i){return{money:o,balanceName:a,balancePopoverTemplate:i,balanceImageSrc:"assets/images/invoicing/available-balance.svg"}};function vt(o,a){if(1&o&&(t.ynx(0),t.YNc(1,It,1,0,null,30),t.ALo(2,"translate"),t.BQk()),2&o){const i=a.$implicit;t.oxw(2);const E=t.MAs(8),T=t.MAs(2);t.xp6(1),t.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",t.kEZ(4,Ot,i,t.lcZ(2,2,"CLIENT.PROFILE.PAYOUT.BALANCE.AVAILABLE_BALANCE"),T))}}function yt(o,a){if(1&o&&(t.ynx(0),t.YNc(1,vt,3,8,"ng-container",40),t.BQk()),2&o){const i=t.oxw(3);t.xp6(1),t.Q6J("ngForOf",i.balance.available)}}const Ct=function(o,a){return{amount:o,currency:a}},Nt=function(o,a,i){return{money:o,balanceName:a,balancePopoverTemplate:i,balanceImageSrc:"assets/images/invoicing/pending-transactions.svg"}};function Mt(o,a){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,ct,7,6,"ng-template",null,26,t.W1O),t.YNc(3,pt,7,6,"ng-template",null,27,t.W1O),t.YNc(5,mt,7,6,"ng-template",null,28,t.W1O),t.YNc(7,Pt,18,23,"ng-template",null,29,t.W1O),t.TgZ(9,"div",9),t.YNc(10,ut,1,0,null,30),t.ALo(11,"translate"),t.YNc(12,ht,2,1,"ng-container",3),t.YNc(13,yt,2,1,"ng-container",3),t.qZA()()),2&o){const i=t.MAs(6),E=t.MAs(8),T=t.oxw(2);t.xp6(9),t.Q6J("ngClass",t.VKq(7,$,T.componentWidth<1020)),t.xp6(1),t.Q6J("ngTemplateOutlet",E)("ngTemplateOutletContext",t.kEZ(12,Nt,t.WLB(9,Ct,T.pendingTransactionSum,T.Currency.HUF),t.lcZ(11,5,"CLIENT.PROFILE.PAYOUT.BALANCE.PENDING_TRANSACTIONS"),i)),t.xp6(2),t.Q6J("ngIf",T.balance.pending&&T.balance.pending.length>0),t.xp6(1),t.Q6J("ngIf",T.balance.available&&T.balance.available.length>0)}}function Rt(o,a){if(1&o&&(t.TgZ(0,"div",21),t.YNc(1,rt,3,3,"div",22),t.YNc(2,_t,3,3,"div",22),t.TgZ(3,"div",8),t.YNc(4,lt,4,3,"div",3),t.YNc(5,Mt,14,16,"div",3),t.qZA()()),2&o){const i=t.oxw();t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("ngIf","refresh"===i.state),t.xp6(1),t.Q6J("ngIf","return"===i.state),t.xp6(2),t.Q6J("ngIf",i.actStripeAccount&&!i.balance),t.xp6(1),t.Q6J("ngIf",i.actStripeAccount&&i.balance)}}function xt(o,a){1&o&&(t.TgZ(0,"div",7)(1,"div",41)(2,"div",42)(3,"p",43),t._UZ(4,"nz-skeleton-element",16),t.qZA(),t.TgZ(5,"p",44),t._UZ(6,"nz-skeleton-element",16),t.qZA()()(),t.TgZ(7,"div",45),t._UZ(8,"nz-skeleton-element",46)(9,"nz-skeleton-element",47),t.qZA(),t.TgZ(10,"div",48),t._UZ(11,"nz-skeleton-element",49),t.qZA()()),2&o&&(t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(4),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("nzActive",!0),t.xp6(1),t.Q6J("nzActive",!0),t.xp6(2),t.Q6J("nzActive",!0))}function Ut(o,a){1&o&&(t.TgZ(0,"p"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.PROFILE.PAYOUT.MANAGE.DESCRIPTION")," "))}function zt(o,a){1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CLIENT.PROFILE.PAYOUT.WARNING.PROFILE")))}function U(o,a){1&o&&(t.TgZ(0,"span"),t._uU(1),t.ALo(2,"translate"),t.qZA()),2&o&&(t.xp6(1),t.Oqu(t.lcZ(2,1,"CLIENT.PROFILE.PAYOUT.WARNING.LICENSE")))}function _(o,a){if(1&o&&(t.YNc(0,zt,3,3,"span",3),t.YNc(1,U,3,3,"span",3)),2&o){const i=t.oxw(3);t.Q6J("ngIf",!i.hasProfile),t.xp6(1),t.Q6J("ngIf",i.hasProfile&&!i.hasLicense)}}function l(o,a){if(1&o){const i=t.EpF();t.TgZ(0,"button",65),t.NdJ("click",function(){t.CHM(i);const T=t.oxw(4);return t.KtG(T.routerService.routeToSettingsTab(T.PageRoutes.settingsProfileTab))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.PROFILE.PAYOUT.SET_UP_PROFILE")," "))}function r(o,a){if(1&o){const i=t.EpF();t.TgZ(0,"button",65),t.NdJ("click",function(){t.CHM(i);const T=t.oxw(4);return t.KtG(T.routerService.routeToSettingsTab(T.PageRoutes.settingsLicenseTab))}),t._uU(1),t.ALo(2,"translate"),t.qZA()}2&o&&(t.xp6(1),t.hij(" ",t.lcZ(2,1,"CLIENT.PROFILE.PAYOUT.SET_UP_LICENSE")," "))}function c(o,a){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,l,3,3,"button",64),t.qZA(),t.TgZ(2,"div"),t.YNc(3,r,3,3,"button",64),t.qZA()),2&o){const i=t.oxw(3);t.xp6(1),t.Q6J("ngIf",!i.hasProfile),t.xp6(2),t.Q6J("ngIf",!i.hasLicense&&i.hasProfile)}}function d(o,a){if(1&o&&(t.TgZ(0,"nz-empty",61),t.YNc(1,_,2,2,"ng-template",null,62,t.W1O),t.YNc(3,c,4,2,"ng-template",null,63,t.W1O),t.qZA()),2&o){const i=t.MAs(2),E=t.MAs(4);t.Q6J("@skeletonPosAbsLeave",void 0)("nzNotFoundImage","assets/images/empty-icon.svg")("nzNotFoundContent",i)("nzNotFoundFooter",E)}}function O(o,a){if(1&o){const i=t.EpF();t.TgZ(0,"div",66)(1,"div",67)(2,"p",68),t._UZ(3,"i",69),t.TgZ(4,"span"),t._uU(5),t.ALo(6,"translate"),t.TgZ(7,"button",70),t.ALo(8,"translate"),t._UZ(9,"
1i",71),t.qZA(),t._uU(10,":"),t.qZA()(),t.TgZ(11,"p",72)(12,"span",73),t.NdJ("nzTooltipVisibleChange",function(T){t.CHM(i);const H=t.oxw(2);return t.KtG(H.fullMailVisible=T)})("click",function(){t.CHM(i);const T=t.oxw(2);return t.KtG(T.fullMailVisible=!T.fullMailVisible)}),t._uU(13),t.qZA()()()()}if(2&o){const i=t.oxw(2);t.xp6(5),t.hij("",t.lcZ(6,5,"CLIENT.PROFILE.PAYOUT.MAIL")," "),t.xp6(2),t.Q6J("nzTooltipTitle",t.lcZ(8,7,"CLIENT.PROFILE.PAYOUT.MAIL_POPOVER")),t.xp6(5),t.Q6J("nzTooltipTitle",i.actStripeAccount.mail)("nzTooltipVisible",i.fullMailVisible),t.xp6(1),t.hij(" ",i.actStripeAccount.mail," ")}}function N(o,a){1&o&&(t._UZ(0,"nz-alert",74),t.ALo(1,"translate")),2&o&&t.Q6J("nzMessage",t.lcZ(1,1,"CLIENT.PROFILE.PAYOUT.UNFINISHED_WARNING"))}function z(o,a){if(1&o&&t._UZ(0,"app-multi-state-button",75),2&o){const i=t.oxw(2);t.Q6J("defaultFunction",i.goToAccountFunction)("nzTextKeys",i.goToAccountText)("showMessage",!0)("stickResult",!1)}}function St(o,a){if(1&o&&t._UZ(0,"app-multi-state-button",76),2&o){const i=t.oxw(2);t.Q6J("defaultFunction",i.updateAccountFunction)("nzTextKeys",i.updateAccountText)("showMessage",!0)("stickResult",!1)}}function Dt(o,a){if(1&o&&t._UZ(0,"app-multi-state-button",77),2&o){const i=t.oxw(2);t.Q6J("defaultFunction",i.resetAccountFunction)("nzTextKeys",i.resetAccountText)("showMessage",!0)("stickResult",!1)("nzGhost",!i.hasProfile||!i.hasLicense)}}function Zt(o,a){if(1&o&&(t.TgZ(0,"div"),t.YNc(1,Ut,3,3,"p",3),t.YNc(2,d,5,4,"nz-empty",50),t.YNc(3,O,14,9,"div",51),t.TgZ(4,"div",52),t.YNc(5,N,2,3,"nz-alert",53),t.YNc(6,z,1,4,"app-multi-state-button",54),t.YNc(7,St,1,4,"app-multi-state-button",55),t.YNc(8,Dt,1,5,"app-multi-state-button",56),t._UZ(9,"app-next-verification-step-button",57),t.qZA(),t.TgZ(10,"div",58)(11,"a",59),t._UZ(12,"img",60),t.qZA()()()),2&o){const i=t.oxw();t.Q6J("@skeletonPosAbsLeave",void 0),t.xp6(1),t.Q6J("ngIf",!i.actStripeAccount),t.xp6(1),t.Q6J("ngIf",!(i.isLoading||i.hasProfile&&i.hasLicense)),t.xp6(1),t.Q6J("ngIf",i.actStripeAccount),t.xp6(2),t.Q6J("ngIf",i.actStripeAccount&&(!i.actStripeAccount.detailsSubmitted||!i.actStripeAccount.chargesEnabled||!i.actStripeAccount.payoutsEnabled)),t.xp6(1),t.Q6J("ngIf",i.hasProfile&&i.hasLicense),t.xp6(1),t.Q6J("ngIf",i.actStripeAccount&&i.actStripeAccount.detailsSubmitted&&i.actStripeAccount.chargesEnabled&&i.actStripeAccount.payoutsEnabled),t.xp6(1),t.Q6J("ngIf",i.actStripeAccount&&(!i.actStripeAccount.detailsSubmitted||!i.actStripeAccount.chargesEnabled||!i.actStripeAccount.payoutsEnabled)),t.xp6(1),t.Q6J("type",i.VerificationState.PAYOUT)}}let B=class{constructor(a,i,E,T,H,X,Ft,bt,Bt,Yt){this.clientService=a,this.router=i,this.routerService=E,this.resizeService=T,this.nzMessageService=H,this.translate=X,this.lawyerValidationService=Ft,this.matchmakerService=bt,this.eventService=Bt,this.reloadService=Yt,this.goToAccountText=new L.PR("CLIENT.PROFILE.PAYOUT.GO_TO_STRIPE_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.PAYOUT.GO_TO_STRIPE_BUTTON_STATES.WORKING","CLIENT.PROFILE.PAYOUT.GO_TO_STRIPE_BUTTON_STATES.SUCCESS","CLIENT.PROFILE.PAYOUT.GO_TO_STRIPE_BUTTON_STATES.FAILED"),this.updateAccountText=new L.PR("CLIENT.PROFILE.PAYOUT.UPDATE_STRIPE_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.PAYOUT.UPDATE_STRIPE_BUTTON_STATES.WORKING","CLIENT.PROFILE.PAYOUT.UPDATE_STRIPE_BUTTON_STATES.SUCCESS","CLIENT.PROFILE.PAYOUT.UPDATE_STRIPE_BUTTON_STATES.FAILED"),this.resetAccountText=new L.PR("CLIENT.PROFILE.PAYOUT.RESET_STRIPE_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.PAYOUT.RESET_STRIPE_BUTTON_STATES.WORKING","CLIENT.PROFILE.PAYOUT.RESET_STRIPE_BUTTON_STATES.SUCCESS","CLIENT.PROFILE.PAYOUT.RESET_STRIPE_BUTTON_STATES.FAILED"),this.isLoading=!1,this.fullMailVisible=!1,this.screenWidth=window.innerWidth,this.payoutLoadingFailed=!1,this.hasProfile=!1,this.hasLicense=!1,this.reloadPayoutObject=new R.m,this.componentWidth=1e3,this.PageRoutes=M.d,this.Currency=n.Fa6,this.FeedbackFeature=n.lrp,this.FeedbackUnit=n._0Z,this.VerificationState=y.xr}ngOnInit(){this.isLoading=!0,this.goToAccountFunction=()=>this.handleStripeConnect(),this.updateAccountFunction=()=>this.updateAccountLink(),this.resetAccountFunction=()=>this.resetAccount(),this.router.events.subscribe(a=>{a instanceof C.OD&&this.updateState(a)}),this.resizeService.width.subscribe(a=>{this.screenWidth=a}),this.updateState(this.router),this.loadClientProfile(),this.reloadService.startReload(()=>this.hasProfile?this.loadPayout():this.loadClientProfile(),this.reloadPayoutObject),this.toRefreshSubscription=this.toRefresh.pipe((0,h.t)(this)).subscribe(a=>{a===M.d.settingsPayoutTab?this.reloadService.startReload(()=>this.hasProfile?this.loadPayout():this.loadClientProfile(),this.reloadPayoutObject):this.reloadService.stopReload(this.reloadPayoutObject)})}ngOnDestroy(){this.reloadService.stopReload(this.reloadPayoutObject)}loadClientProfile(){return this.clientService.getClientProfile().pipe((0,h.t)(this)).toPromise().then(a=>(this.hasProfile=!0,a&&a.license?this.hasLicense=!0:(this.hasLicense=!1,this.eventService.hasLicense.subscribe(i=>{this.hasLicense=i})),this.loadPayout()),a=>{let i;return 404===a.status?(this.hasProfile=!1,this.hasLicense=!1,this.eventService.hasProfile.subscribe(E=>{this.hasProfile=E}),this.eventService.hasLicense.subscribe(E=>{this.hasLicense=E}),i=this.loadPayout()):(this.isLoading=!1,i=Promise.reject()),i})}updateState(a){const i=a.url.split("/"),E=this.state;this.state="refresh"===i[i.length-1]||"return"===i[i.length-1]?i[i.length-1]:null,"return"===this.state&&this.state!==E?this.nzMessageService.success(this.translate.instant("CLIENT.PROFILE.PAYOUT.RETURN")):"refresh"===this.state&&this.state!==E&&this.nzMessageService.error(this.translate.instant("CLIENT.PROFILE.PAYOUT.REFRESH"))}loadPayout(){return this.clientService.getLawyerStripeAccount().pipe((0,h.t)(this)).toPromise().then(a=>{a&&(this.actStripeAccount=a),this.updateGoToAccountText();const i=Promise.all([this.getBalance(),this.getPedingTransactions()]);return i.then(()=>{this.isLoading=!1},E=>{this.isLoading=!1}),this.payoutLoadingFailed=!1,i},a=>{let i;return 404===a.status?(this.updateGoToAccountText(),this.payoutLoadingFailed=!1,i=Promise.resolve()):(this.payoutLoadingFailed=!0,i=Promise.reject(a)),this.isLoading=!1,i})}handleStripeConnect(){if(this.hasProfile&&this.hasLicense)return this.actStripeAccount?this.actStripeAccount.chargesEnabled&&this.actStripeAccount.payoutsEnabled?this.loginAccountLink():this.createAccountLink():this.createAccount()}createAccount(){return this.clientService.postLawyerStripeCreate().pipe((0,h.t)(this)).toPromise().then(a=>{this.lawyerValidationService.runCheckForStep(y.xr.PAYOUT),this.accountLink=a,this.routerService.hrefOrRouter(this.accountLink.hyperlink)},a=>Promise.reject(a))}
1resetAccount(){return this.clientService.postLawyerStripeReset().pipe((0,h.t)(this)).toPromise().then(()=>this.createAccount(),a=>(console.log(a),Promise.reject(a)))}createAccountLink(){return this.clientService.getLawyerStripeCreateLink().pipe((0,h.t)(this)).toPromise().then(a=>{this.accountLink=a,this.routerService.hrefOrRouter(this.accountLink.hyperlink)},a=>Promise.reject(a))}updateAccountLink(){return this.clientService.getLawyerStripeLoginLink().pipe((0,h.t)(this)).toPromise().then(a=>{this.accountLink=a,this.routerService.windowOpenAlternative(this.accountLink.hyperlink+"#settings")},a=>Promise.reject(a))}loginAccountLink(){return this.clientService.getLawyerStripeLoginLink().pipe((0,h.t)(this)).toPromise().then(a=>{this.accountLink=a,this.routerService.windowOpenAlternative(this.accountLink.hyperlink)},a=>Promise.reject(a))}getBalance(){const a=this.clientService.getLawyerStripeBalance().pipe((0,h.t)(this)).toPromise();return a.then(i=>{this.balance=i},i=>{}),a}updateGoToAccountText(){this.goToAccountText=this.actStripeAccount?this.actStripeAccount.detailsSubmitted&&this.actStripeAccount.chargesEnabled&&this.actStripeAccount.payoutsEnabled?new L.PR("CLIENT.PROFILE.PAYOUT.GO_TO_STRIPE_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.PAYOUT.GO_TO_STRIPE_BUTTON_STATES.WORKING","CLIENT.PROFILE.PAYOUT.GO_TO_STRIPE_BUTTON_STATES.SUCCESS","CLIENT.PROFILE.PAYOUT.GO_TO_STRIPE_BUTTON_STATES.FAILED"):new L.PR("CLIENT.PROFILE.PAYOUT.FINISH_STRIPE_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.PAYOUT.FINISH_STRIPE_BUTTON_STATES.WORKING","CLIENT.PROFILE.PAYOUT.FINISH_STRIPE_BUTTON_STATES.SUCCESS","CLIENT.PROFILE.PAYOUT.FINISH_STRIPE_BUTTON_STATES.FAILED"):new L.PR("CLIENT.PROFILE.PAYOUT.CREATE_STRIPE_BUTTON_STATES.DEFAULT","CLIENT.PROFILE.PAYOUT.CREATE_STRIPE_BUTTON_STATES.WORKING","CLIENT.PROFILE.PAYOUT.CREATE_STRIPE_BUTTON_STATES.SUCCESS","CLIENT.PROFILE.PAYOUT.CREATE_STRIPE_BUTTON_STATES.FAILED")}getPedingTransactions(){const a=this.clientService.getLawyerService().pipe((0,h.t)(this)).toPromise();return a.then(i=>{this.pendingTransactionSum=i.reduce((E,T)=>E+(T.payment.isCaptured?0:T.payment.grossPriceSum),0)},i=>Promise.reject(i)),a}onComponentResize(a){this.componentWidth=a.newRect.width}};B.\u0275fac=function(a){return new(a||B)(t.Y36(e.y),t.Y36(C.F0),t.Y36(Z.c),t.Y36(F._),t.Y36(v.dD),t.Y36(I.sK),t.Y36(A.w),t.Y36(g.$),t.Y36(Y.P),t.Y36(R.f))},B.\u0275cmp=t.Xpm({type:B,selectors:[["app-payout"]],inputs:{toRefresh:"toRefresh"},decls:16,vars:20,consts:[[3,"nzTitle"],[1,"position-relative",3,"resized"],["class","text-center w-100",4,"ngIf"],[4,"ngIf"],["class","text-center",4,"ngIf"],[1,"feedback-positioning",3,"feature","unit","title"],[1,"position-relative"],[1,"text-center","w-100"],[1,"text-left"],[1,"row","align-items-center","justify-content-center",3,"ngClass"],["class","m-10 balanceCard",3,"ngClass",4,"ngFor","ngForOf"],[1,"m-10","balanceCard",3,"ngClass"],[1,"media","align-items-center"],["nzType","avatar",3,"nzActive","nzSize"],[1,"m-l-15","w-100"],[1,"m-b-0"],["nzType","input","nzSize","small",1,"w-100",3,"nzActive"],[1,"m-b-0","text-muted"],[1,"text-right"],["nzType","input","nzSize","small",1,"w-30",3,"nzActive"],[1,"text-danger"],[1,"text-center"],["class","m-b-10",4,"ngIf"],[1,"m-b-10"],["nzType","error",3,"nzMessage"],["nzType","success",3,"nzMessage"],["availableBalancePopover",""],["pendingBalancePopover",""],["pendingTransactionsPopover",""],["balanceTemplate",""],[4,"ngTemplateOutlet","ngTemplateOutletContext"],[2,"max-width","500px"],[1,"font-weight-semibold"],[1,"m-10","balanceCard",3,"nzBodyStyle","ngClass"],[1,"media","align-items-center","h-100"],[1,"ant-avatar-blue","font-size-30","overflowAvatar",3,"nzSize","nzSrc"],[1,"m-l-15"],[1,"feedback-positioning","col-12","p-0"],["nzType","link","nz-popover","","nzPopoverPlacement","leftTop","nzPopoverTrigger","click",1,"font-size-11","text-gray","link-like-button","background-color-unset","border-0",3,"nzPopoverContent"],["nz-icon","","nzType","question-circle","nzTheme","outline",1,"mr-1","font-size-11"],[4,"ngFor","ngForOf"],[1,"row","text-left"],[1,"w-100"],[1,"col-xxl-3","col-xl-3","col-lg-4","col-md-4","col-sm-4","col-12","font-weight-semibold","text-dark","m-b-5","inline-block"],[1,"col-xxl-9","col-xl-9","col-lg-8","col-md-8","col-sm-8","col-12","font-weight-semibold","inline-block","m-b-0"],[1,"w-100","text-center"],["nzType","input","nzSize","large",1,"w-40","m-10",3,"nzActive"],["nzType","input","nzSize","large",1,"w-35","m-10",3,"nzActive"],[1,"w-100","text-right"],["nzType","input","nzSize","default",1,"w-20",3,"nzActive"],["class","m-b-5",3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter",4,"ngIf"],["class","payoutStripeData",4,"ngIf"],[1,"w-100","text-left","payoutStripeButtons"],["nzType","warning","class","m-b-10 text-left",3,"nzMessage",4,"ngIf"],["nzType","primary","class","text-right d-inline-block m-10",3,"defaultFunction","nzTextKeys","showMessage","stickResult",4,"ngIf"],["nzType","default","class","text-right m-10 m-t-30",3,"defaultFunction","nzTextKeys","showMessage","stickResult",4,"ngIf"],["nzType","default","class","text-right d-inline-block m-10",3,"defaultFunction","nzTextKeys","showMessage","stickResult","nzGhost",4,"ngIf"],[1,"d-inline-block","m-10",3,"type"],[1,"w-100","text-right","mt-4","mt-md-3","m-b-10"],["href","https://https://stripe.com/en-hu","target","_blank","rel","noopener noreferrer",1,"open-link-black-16"],["src","assets/images/stripe/powered-by-stripe.svg","width","150px","alt","Powered by Stripe"],[1,"m-b-5",3,"nzNotFoundImage","nzNotFoundContent","nzNotFoundFooter"],["contentTpl",""],["footerTpl",""],["nz-button","","nzType","primary","class","button-text-wrap m-5",3,"click",4,"ngIf"],["nz-button","","nzType","primary",1,"button-text-wrap","m-5",3,"click"],[1,"payoutStripeData"],[1,"row"],[1,"col-md-auto","col-xs-12","font-weight-semibold","text-dark","m-b-5","inline-block"],["nz-icon","","nzType","mail","theme","outline",1,"m-r-10"],["nzType","link","nz-tooltip","",1,"button","sign-btn","button-text-wrap","text-center","link-like-button","background-color-unset","border-0","color-primary",3,"nzTooltipTitle"],["nz-icon","","nzType","question-circle","nzTheme","outline",1,"mr-1","align-middle"],[1,"col-md-auto","col-xs-12","font-weight-semibold","inline-block","m-b-0","stripeMail"],["nz-tooltip","",3,"nzTooltipTitle","nzTooltipVisible","nzTooltipVisibleChange","click"],["nzType","warning",1,"m-b-10","text-left",3,"nzMessage"],["nzType","primary",1,"text-right","d-inline-block","m-10",3,"defaultFunction","nzTextKeys","showMessage","stickResult"],["nzType","default",1,"text-right","m-10","m-t-30",3,"defaultFunction","nzTextKeys","showMessage","stickResult"],["nzType","default",1,"text-right","d-inline-block","m-10",3,"defaultFunction","nzTextKeys","showMessage","stickResult","nzGhost"]],template:function(a,i){1&a&&(t.TgZ(0,"nz-card",0),t.ALo(1,"translate"),t.TgZ(2,"p"),t._uU(3),t.ALo(4,"translate"),t.qZA(),t.TgZ(5,"div",1),t.NdJ("resized",function(T){return i.onComponentResize(T)}),t.YNc(6,at,5,7,"div",2),t.YNc(7,st,4,3,"div",3),t.YNc(8,Rt,6,5,"div",4),t.qZA(),t._UZ(9,"app-feedback",5),t.qZA(),t.TgZ(10,"nz-card",0),t.ALo(11,"translate"),t.TgZ(12,"div",6),t.YNc(13,xt,12,6,"div",2),t.YNc(14,Zt,13,9,"div",3),t.qZA(),t._UZ(15,"app-feedback",5),t.qZA()),2&a&&(t.Q6J("nzTitle",t.lcZ(1,14,"CLIENT.PROFILE.PAYOUT.TITLE")),t.xp6(3),t.hij(" ",t.lcZ(4,16,"CLIENT.PROFILE.PAYOUT.DESC")," "),t.xp6(3),t.Q6J("ngIf",i.isLoading),t.xp6(1),t.Q6J("ngIf",!i.isLoading&&i.payoutLoadingFailed),t.xp6(1),t.Q6J("ngIf",!i.isLoading&&!i.payoutLoadingFailed),t.xp6(1),t.Q6J("feature",i.FeedbackFeature.Settings)("unit",i.FeedbackUnit.LawyerPayout)("title","COMMON.FEEDBACK.TITLES.PAYOUT"),t.xp6(1),t.Q6J("nzTitle",t.lcZ(11,18,"CLIENT.PROFILE.PAYOUT.MANAGE.TITLE")),t.xp6(3),t.Q6J("ngIf",i.isLoading),t.xp6(1),t.Q6J("ngIf",!i.isLoading),t.xp6(1),t.Q6J("feature",i.FeedbackFeature.Settings)("unit",i.FeedbackUnit.LawyerPayout)("title","COMMON.FEEDBACK.TITLES.PAYOUT"))},dependencies:[x.mk,x.sg,x.O5,x.tP,b.X,k.a5,L.P4,K.r,w.Dz,J.ix,W.w,Q.dQ,j.bd,G.p9,p.Ls,f.lU,u.Xw,u.yx,u.yg,m.SY,et.I,x.gd,I.X$,nt.j,V.U2,V.Al,it.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}.stripeMail[_ngcontent-%COMP%]{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.balanceCard[_ngcontent-%COMP%]{width:100%;max-width:320px}.singleLineBalanceCard[_ngcontent-%COMP%]{max-width:400px}
1.overflowAvatar[_ngcontent-%COMP%]{display:flex;flex-direction:column;align-items:center;overflow:visible}.overflowAvatar[_ngcontent-%COMP%] img{-o-object-fit:fill;object-fit:fill}@media (max-width: 767.98px){.payoutStripeData[_ngcontent-%COMP%], .payoutStripeButtons[_ngcontent-%COMP%]{text-align:center!important}}'],data:{animation:[P.Ln]}}),B=(0,D.gn)([(0,h.c)()],B)}}]);
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.