PageSourceSearch

https://in-time.hu/chunk-KTCXQXAZ.js

js in-time.hu collected 2026-10-04 01:30:58 UTC 14,577 bytes, 2 lines download raw bytes

1import{b as Ne}from"./chunk-JDBD5MKZ.js";import{b as _e,j as we,r as Ie}from"./chunk-YA4HJUQO.js";import"./chunk-2ORQUWJT.js";import{a as ye}from"./chunk-JBN7KUAS.js";import{e as q,f as ce,g as pe,h as he,i as xe,k as F,m as be,o as Fe,q as ge,s as Ce,t as ve}from"./chunk-RGX6GHPM.js";import"./chunk-3BM4VWSD.js";import"./chunk-CZ6PD2UP.js";import"./chunk-NCBFH2MI.js";import"./chunk-UTDDNU7Z.js";import"./chunk-PHHWQJTR.js";import{c as fe,d as k,g as L}from"./chunk-NX5LGHZ2.js";import{S as x,T as me,fa as de}from"./chunk-BGJJSTRJ.js";import{Vc as le,Wc as se,Xc as T,a as ne,ca as z,v as h,w as ae}from"./chunk-AQPFR2ST.js";import"./chunk-RCV334DA.js";import{b as P,c as ue}from"./chunk-456SSAHS.js";import{n as ie,r as oe,v as Y}from"./chunk-ZIRLDGS3.js";import{$b as d,Aa as K,Db as b,Eb as X,Fa as _,Fb as m,Lb as N,Qb as s,Rb as l,Sb as y,Tb as R,Ub as j,Wb as A,Wc as ee,Zb as M,id as I,jb as a,ka as w,kb as Q,kc as u,la as V,lc as c,mc as W,na as S,oa as E,va as D,vd as te,wb as O,wc as Z,xc as G,xd as re}from"./chunk-MB4CKF3N.js";import{g as J,i as B}from"./chunk-ZCYTVHNQ.js";var Se=J(ne());var je=/\d\d\d\d\/\d\d\/\d\d/;function qe(r){return i=>{let t=i.value;return z(t)?r.required?q.required(i):null:t.trim().lastIndexOf(" ")<=0?{"not-full-name":!0}:null}}function Ae(r){return i=>{let t=i.value?.trim();return z(t)?r.required?q.required(i):null:t.match(je)?(0,Se.default)(t,"YYYY/MM/DD").isValid()?null:{pattern:!0}:{pattern:!0}}}var $=class{createPasswordResetForm(){return new xe({fullName:new F("",qe({required:!0})),motherName:new F("",qe({required:!0})),placeOfBirth:new F("",q.required),dateOfBirth:new F("",Ae({required:!0})),taxIdentifier:new F("",_e({required:!0})),tajNumber:new F("",q.required),homeAddress:new F("",q.required)})}};var Be=J(ne());function Ye(r,i){if(r&1&&(s(0,"span",7),u(1),l()),r&2){let t=d().$implicit;a(),W(" (",t("auth.required"),")")}}function Pe(r,i){if(r&1&&(s(0,"p",8),u(1),l()),r&2){let t=d().$implicit,e=d();a(),c(t(e.error))}}var ke=(r,i)=>({"border-red-500":r,"focus:border-primary":i});function Le(r,i){if(r&1){let t=A();R(0),s(1,"div",1)(2,"label",2),u(3),b(4,Ye,2,1,"span",3),l(),s(5,"input",4),M("input",function(o){S(t);let n=d();return E(n.handleInputEvent(o))})("blur",function(){S(t);let o=d();return E(o.handleTouchedEvent())}),l(),s(6,"div",5),b(7,Pe,2,1,"p",6),l()(),j()}if(r&2){let t=d(),e;a(2),m("id",t.formFieldId+"-label")("for",t.formFieldId),a(),W(" ",t.label," "),a(),N(4,t.showRequiredSuffix?4:-1),a(),m("id",t.formFieldId)("ngClass",G(13,ke,t.error!=null,t.error==null))("type",t.type)("value",t.value)("placeholder",(e=t.placeholder)!==null&&e!==void 0?e:"")("disabled",t.disabled)("autocomplete",t.autocomplete),X("aria-labelledby",t.formFieldId+"-label"),a(2),N(7,t.error!=null?7:-1)}}var Oe=(()=>{let i=class i{constructor(e){this.ngControl=e,this.showRequiredSuffix=!1,this.disabled=!1,this.value="",this.onChange=()=>{},this.onTouched=()=>{},this.ngControl&&(this.value=this.ngControl.value?.toString()??"",this.ngControl.valueAccessor=this)}ngOnInit(){this.value=this.ngControl?.control?.value?.toString()??""}writeValue(e){this.value=e?.value?.toString()??""}registerOnChange(e){this.onChange=e}registerOnTouched(e){this.onTouched=e}setDisabledState(e){this.disabled=e}handleInputEvent(e){let o=e.target,n=o.value;this.type==="text"&&(n=n.replace(/[<>]/g,""),n=n.substring(0,500),o.value=n),this.onChange!=null&&this.onChange(n)}handleTouchedEvent(){this.onTouched!=null&&this.onTouched()}};i.\u0275fac=function(o){return new(o||i)(Q(ce,10))},i.\u0275cmp=w({type:i,selectors:[["app-text-form-field"]],inputs:{type:"type",formFieldId:"formFieldId",label:"label",showRequiredSuffix:"showRequiredSuffix",disabled:"disabled",autocomplete:"autocomplete",error:"error",placeholder:"placeholder"},decls:1,vars:0,consts:[[4,"transloco"],[1,"w-full","flex","flex-col"],[1,"text-base","font-medium","mx-1",3,"id","for"],["class","text-xs font-normal"],[1,"transition-colors","w-full","h-14","mb-1","p-4","border","border-solid","rounded-xl","border-border","placeholder:text-placeholder",3,"id","ngClass","type","value","placeholder","disabled","autocomplete","
1input","blur"],[1,"h-3.5","flex","justify-start"],["class","text-sm mx-1 text-red-500"],[1,"text-xs","font-normal"],[1,"text-sm","mx-1","text-red-500"]],template:function(o,n){o&1&&b(0,Le,8,16,"ng-container",0)},dependencies:[I,P],encapsulation:2});let r=i;return r})();function He(r,i){r&1&&y(0,"app-loading",1),r&2&&m("buttonView",!0)}function Ue(r,i){if(r&1&&(s(0,"span"),u(1),l()),r&2){let t=d();a(),c(t.label)}}var We=(r,i)=>({"bg-primary text-on-primary shadow-xl":r,"bg-disabled text-on-disabled":i}),Te=(()=>{let i=class i{constructor(){this.disabled=!1,this.loading=!1}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=w({type:i,selectors:[["app-submit-button"]],inputs:{label:"label",disabled:"disabled",loading:"loading"},decls:3,vars:6,consts:[["type","submit",1,"transition-colors","text-base","rounded-lg","w-full","h-11","uppercase","font-semibold",3,"ngClass","disabled"],[3,"buttonView"]],template:function(o,n){o&1&&(s(0,"button",0),b(1,He,1,1,"app-loading",1)(2,Ue,2,1),l()),o&2&&(m("ngClass",G(3,We,!n.disabled,n.disabled))("disabled",n.disabled),a(),N(1,n.loading?1:2))},dependencies:[I,k],encapsulation:2});let r=i;return r})();function Je(r,i){if(r&1&&(s(0,"main",2)(1,"h1",3),u(2),l(),y(3,"img",4),s(4,"p",5),u(5),l(),s(6,"a",6)(7,"span"),u(8),l()()()),r&2){let t=d().$implicit;a(2),c(t("taxForm.completed")),a(3),c(t("taxForm.completedDescription")),a(3),c(t("taxForm.backToHome"))}}function Ke(r,i){if(r&1&&(s(0,"main",2)(1,"h1",3),u(2),l(),y(3,"img",7),s(4,"p",5),u(5),l(),s(6,"a",6)(7,"span"),u(8),l()()()),r&2){let t=d().$implicit;a(2),c(t("taxForm.notFound")),a(3),c(t("taxForm.notFoundDescription")),a(3),c(t("taxForm.backToHome"))}}var Qe=r=>({"pointer-events-none":r});function Xe(r,i){if(r&1){let t=A();s(0,"main",8)(1,"form",9),M("ngSubmit",function(){S(t);let o=d(2);return E(o.onSubmit())}),s(2,"div",10)(3,"div",11)(4,"h2",12),u(5),l(),y(6,"app-divider",13),l()(),y(7,"app-text-form-field",14)(8,"app-text-form-field",15)(9,"app-text-form-field",16)(10,"app-text-form-field",17)(11,"app-text-form-field",18)(12,"app-tax-code-form-field",19)(13,"app-text-form-field",20)(14,"app-submit-button",21),l()()}if(r&2){let t=d().$implicit,e=d();m("ngClass",Z(24,Qe,e.isValidating())),a(),m("formGroup",e.formGroup),a(4),c(t("taxForm.yourData")),a(2),m("label",t("taxForm.fullName"))("placeholder",t("taxForm.fullNamePlaceholder"))("error",e.errors().fullName),a(),m("label",t("taxForm.motherName"))("placeholder",t("taxForm.motherNamePlaceholder"))("error",e.errors().motherName),a(),m("label",t("taxForm.dateOfBirth"))("placeholder",t("taxForm.dateOfBirthPlaceholder"))("error",e.errors().dateOfBirth),a(),m("label",t("taxForm.placeOfBirth"))("error",e.errors().placeOfBirth),a(),m("label",t("taxForm.homeAddress"))("error",e.errors().homeAddress),a(),m("label",t("taxForm.taxIdentifier"))("placeholder","12345678-0-51")("error",e.errors().taxIdentifier),a(),m("label",t("taxForm.tajNumber"))("error",e.errors().tajNumber),a(),m("label",t("taxForm.submit"))("disabled",e.formGroup.invalid)("loading",e.isValidating())}}function Ze(r,i){if(r&1&&(R(0),b(1,Je,9,3,"main",1)(2,Ke,9,3)(3,Xe,15,26),j()),r&2){let t=d();a(),N(1,t.isCompleted()?1:t.request()==null?2:3)}}var Ve=(()=>{let i=class i{constructor(){this.route=_(ie),this.dialogService=_(fe),this.apiService=_(de),this.isBrowser=re(_(K)),this.subscriptions=[],this.errors=O({fullName:null,motherName:null,placeOfBirth:null,dateOfBirth:null,taxIdentifier:null,tajNumber:null,homeAddress:null}),this.request=O(null),this.requestId=O(null),this.isValidating=O(!1),this.isCompleted=ee(()=>this.request()?.status===T.Completed);let e=new $;this.formGroup=e.createPasswordResetForm()}ngOnInit(){let e=this.route?.snapshot?.data?.taxFormResolverData??null;this.request.set(e?.request??null),this.requestId.set(e?.requestId??null),this.subscriptions.push(this.formGroup.statusChanges.subscribe(o=>this.errors.set(this.findAllErrors(o))))}ngOnDestroy(){for(let e of this.subscriptions)e.unsubscribe();this.subscriptions.length=0}onSubmit(){return B(this,null,function*(){let e=this.request();if(e==null){L(this.dialogService,x.FormNotValid);return}
1let o=this.extractTaxIdentificationDetails(this.formGroup);if(!o.isOk){L(this.dialogService,o.error);return}yield Ne({onBegin:()=>this.isValidating.set(!0),onDone:n=>{this.isValidating.set(!1),n.success?(this.tryResetScroll(),this.request.update(f=>f?.copyWith({status:T.Completed})??null)):L(this.dialogService,n.error)}},()=>this.apiService.validateTaxForm(e.uniqueId,o.value))})}extractTaxIdentificationDetails(e){if(!e.valid)return h.error(x.FormNotValid);let o=e.value.fullName?.trim();if(o==null||o.length<=0)return h.error(x.FormNotValid);let n=e.value.motherName?.trim();if(n==null||n.length<=0)return h.error(x.FormNotValid);let f=e.value.placeOfBirth?.trim();if(f==null||f.length<=0)return h.error(x.FormNotValid);let p=e.value.dateOfBirth?.trim();if(p==null||p.length<=0)return h.error(x.FormNotValid);let g=(0,Be.default)(p,"YYYY/MM/DD");if(!g.isValid())return h.error(x.FormNotValid);let C=e.value.taxIdentifier?.trim();if(C==null||C.length<=0)return h.error(x.FormNotValid);let v=e.value.tajNumber?.trim();if(v==null||v.length<=0)return h.error(x.FormNotValid);let U=e.value.homeAddress?.trim();return U==null||U.length<=0?h.error(x.FormNotValid):h.ok(se.create({fullName:o,motherName:n,placeOfBirth:f,taxIdentifier:C,tajNumber:v,homeAddress:U,dateOfBirth:le.fromDate(g)}))}findAllErrors(e){let o=null,n=null,f=null,p=null,g=null,C=null,v=null;return e=="VALID"?{fullName:o,motherName:n,placeOfBirth:f,dateOfBirth:p,taxIdentifier:g,tajNumber:C,homeAddress:v}:(this.hasFormError("fullName","required")?o="taxForm.nameRequired":this.hasFormError("fullName","not-full-name")&&(o="taxForm.nameNotValid"),this.hasFormError("motherName","required")?n="taxForm.nameRequired":this.hasFormError("motherName","not-full-name")&&(n="taxForm.nameNotValid"),this.hasFormError("placeOfBirth","required")&&(f="taxForm.placeOfBirthRequired"),this.hasFormError("dateOfBirth","required")?p="taxForm.dateOfBirthRequired":this.hasFormError("dateOfBirth","pattern")&&(p="taxForm.dateOfBirthNotValid"),this.hasFormError("taxIdentifier","required")?g="taxForm.taxIdentifierRequired":this.hasFormError("taxIdentifier","pattern")&&(g="taxForm.taxIdentifierNotValid"),this.hasFormError("tajNumber","required")&&(C="taxForm.tajNumberRequired"),this.hasFormError("homeAddress","required")&&(v="taxForm.homeAddressRequired"),{fullName:o,motherName:n,placeOfBirth:f,dateOfBirth:p,taxIdentifier:g,tajNumber:C,homeAddress:v})}hasFormError(e,o,n){switch(e){case"fullName":return this.verifyErrorForControl(this.formGroup.controls.fullName,o,n);case"motherName":return this.verifyErrorForControl(this.formGroup.controls.motherName,o,n);case"placeOfBirth":return this.verifyErrorForControl(this.formGroup.controls.placeOfBirth,o,n);case"dateOfBirth":return this.verifyErrorForControl(this.formGroup.controls.dateOfBirth,o,n);case"taxIdentifier":return this.verifyErrorForControl(this.formGroup.controls.taxIdentifier,o,n);case"tajNumber":return this.verifyErrorForControl(this.formGroup.controls.tajNumber,o,n);case"homeAddress":return this.verifyErrorForControl(this.formGroup.controls.homeAddress,o,n);default:return!1}}verifyErrorForControl(e,o,n){let f=!1;if(!e.pristine){let p=e.getError(o);p!=null&&(n!=null?f=p==n:f=!0)}return f}tryResetScroll(){this.isBrowser&&window.scroll({top:0,left:0,behavior:"instant"})}};i.\u0275fac=function(o){return new(o||i)},i.\u0275cmp=w({type:i,selectors:[["app-tax-form"]],decls:1,vars:0,consts:[[4,"transloco"],["class","bg-default-light flex flex-col items-center p-5 min-h-dvh sm:min-h-header-safe sm:max-w-screen-sm sm:mx-auto"],[1,"bg-default-light","flex","flex-col","items-center","p-5","min-h-dvh","sm:min-h-header-safe","sm:max-w-screen-sm","sm:mx-auto"],[1,"font-bold","text-3xl","text-center","mt-5"],["src","/assets/images/payment-complete.png",1,"max-w-[200px]","mt-10"],[1,"mt-10","text-center","sm:mx-9"],["routerLink","/",1,"transition-colors","mt-10","text-base","rounded-lg","w-full","h-11","uppercase","font-semibold","bg-primary","text-on-primary","shadow-xl","select-none","flex","items-center","justify-center"],["src","/assets/images/payment-canceled.png",1,"max-w-[200px]","mt-10"],[1,"bg-default-light","flex","flex-col","items-center","p-5","min-h-dvh","sm:min-h-header-safe","sm:max-w-screen-sm","sm:mx-auto",3,"ngClass"],[1,"w-full","flex","flex-col","items-start","grow",3,"formGroup","ngSubmit"],[1,"w-full","flex","flex-col","items-start"],[1,"flex","items-center","w-full"],[1,"text-xl","font-semibold","flex-[0_2_auto]"],[1,"ml-4","flex-[1_1_20%]"],["formFieldId","fullName","formControlName","fullName","type","text",1,"w-full","mt-3",3,"label","placeholder","error"],["formFieldId","motherName","formControlName","motherName","type","text",1,"w-full","mt-3",3,"label","placeholder","error"],["formFieldId","dateOfBirth","formControlName","dateOfBirth","type","text",1,"w-full","mt-3",3,"label","placeholder","error"],["formFieldId","placeOfBirth","formControlName","placeOfBirth","type","text",1,"w-full","mt-3",3,"label","error"],["formFieldId","homeAddress","formControlName","homeAddress","type","text",1,"w-full","mt-3",3,"label","error"],["formFieldId","taxIdentifier","formControlName","taxIdentifier",1,"w-full","mt-3",3,"label","placeholder","error"],["formFieldId","tajNumber","formControlName","tajNumber","type","text",1,"w-full","mt-3","mb-5",3,"label","error"],[1,"w-full","mt-auto",3,"label","disabled","loading"]],template:function(o,n){o&1&&b(0,Ze,4,1,"ng-container",0)},dependencies:[I,oe,be,pe,he,Fe,ge,P,we,ye,Oe,Te],encapsulation:2});let r=i;return r})();var De=r=>B(void 0,null,function*(){let i=_(me),t=r.queryParams.rid;if(typeof t!="string")return{requestId:null,request:null};let e=yield i.fetchTaxIdentificationRequest(t);if(e.success){let o=e.data;if(o.status==T.Pending&&o.expirationDate.isAfter(ae.now()))return{requestId:t,request:o}}return{requestId:t,request:null}});var et=[{path:"",component:Ve,resolve:{taxFormResolverData:De}}],Re=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=V({type:i}),i.\u0275inj=D({imports:[Y.forChild(et)]});let r=i;return r})();var Ht=(()=>{let i=class i{};i.\u0275fac=function(o){return new(o||i)},i.\u0275mod=V({type:i}),i.\u0275inj=D({imports:[te,Y,ve,Ce,ue,Re,Ie,k]});let r=i;return r})();export{Ht as TaxFormModule};
2//# sourceMappingURL=chunk-KTCXQXAZ.js.map

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.