1import{a as S}from"./chunk-P3LUMZIQ.js";import{a as Y,b as Z,c as $}from"./chunk-FGACGTLP.js";import{a as X}from"./chunk-6HCHNN5V.js";import{Cf as J,Df as K,Ef as W,Oa as z,Ub as q,Va as w,ab as G,ja as j,le as H,ma as Q,me as L,ne as U}from"./chunk-XKEW5C3F.js";import{$c as k,Ab as u,Bb as c,Cc as d,Dc as C,Fb as v,Lb as g,Ld as O,Nb as a,Ra as f,Rb as V,Sa as h,Ub as F,Vb as B,Wb as P,ac as E,bb as y,cb as D,cc as N,fb as I,ga as b,ib as l,ob as r,qc as A,ra as m,rb as M,sa as p,sc as x,vb as R,zb as _}from"./chunk-BZNCKEIH.js";var ie=["formView"],ee=()=>({data:null});function oe(t,s){if(t&1){let e=v();_(0,"r-button",6),g("click",function(){m(e);let o=a(4);return p(o.ShowTofesRefui())}),_(1,"div",7),E(2),u()()}if(t&2){let e=a(4);M("primary"),f(2),N(" ",e.data.tofesRefuiButtonName,"")}}function ne(t,s){t&1&&l(0,oe,3,3,"ng-template",5),t&2&&r("groupId",7)("ordinal",7)}function re(t,s){t&1&&c(0,"orcid")}function ae(t,s){if(t&1){let e=v();_(0,"r-form-view",3),g("fieldChange",function(o){m(e);let n=a(2);return p(n.fieldChange(o))})("beforeSubmit",function(o){m(e);let n=a(2);return p(n.beforeSubmit(o))})("afterSubmit",function(o){m(e);let n=a(2);return p(n.afterSubmit(o))}),l(1,ne,1,2,null,2)(2,re,1,0,"ng-template",4),u()}if(t&2){let e=a(2);r("formViewItem",e.data.formViewItem)("successMessage",e.successMessage),f(),r("ngIf",e.data.tofesRefui>0)}}function se(t,s){t&1&&c(0,"r-frame",8),t&2&&r("module","PersonalDocs")("data",x(2,ee))}function le(t,s){t&1&&(l(0,se,1,3,"ng-template",1),d(1,"tr")),t&2&&r("title",C(1,1,"*.UploadMissingFiles"))}function me(t,s){t&1&&c(0,"r-frame",8),t&2&&r("module","PersonEvents")("data",x(2,ee))}function pe(t,s){t&1&&(l(0,me,1,3,"ng-template",1),d(1,"tr")),t&2&&r("title",C(1,1,"Forms.Modules.PersonEvent.Title"))}function fe(t,s){if(t&1&&(_(0,"r-tabs"),l(1,ae,3,3,"ng-template",1),d(2,"tr"),l(3,le,2,3,null,2)(4,pe,2,3,null,2),u()),t&2){let e=a();f(),r("title",C(2,3,"*.UpdateDetails")),f(2),r("ngIf",e.data.uploadDocs),f(),r("ngIf",e.data.personEvents)}}function _e(t,s){if(t&1){let e=v();_(0,"r-form-view",10),d(1,"tr"),g("actionButton",function(){m(e);let o=a(2);return p(o.Close())})("afterSubmit",function(o){m(e);let n=a(2);return p(n.afterSubmitShlnRefui(o))}),u()}if(t&2){let e=a(2);V("actionButtonText","",C(1,5,"*.Close")," "),r("formViewItem",e.ShlnRefui)("showActionButton",!0)("successMessage",e.successMessage)}}function ce(t,s){if(t&1&&l(0,_e,2,7,"r-form-view",9),t&2){let e=a();r("ngIf",e.ShlnRefui)}}var T=(()=>{class t extends q{constructor(e,i,o){super(e),this.formService=e,this.poneMoamadService=i,this.portalService=o,this.TofesRefui=0,this.ShowShlnRefui=!1,this.afterInitData=()=>{this.data.isFromTofesTiulim&&(this.successMessage="{*.Save.GoToTofesTiulim}")},this.detachFromReuse(),this.formService.router.clearCachedRouteData()}ngOnInit(){this.portalService.portalName=="Ex"?this.poneMoamadService.login(()=>{super.ngOnInit()}):super.ngOnInit()}fieldChange(e){var i=e.field;let o=e.sender;e.isInitialBinding||(i.fieldName!=null&&i.fieldName.toLowerCase()=="pt_ktvrashi_smlisv"&&(o.getControl("pt_ktvrashi_isv").value=i.data.find(n=>n.tb_isv_kod==i.value)?.tb_isv_pia),i.fieldName!=null&&i.fieldName.toLowerCase()=="pt_ktvmishni_isvsml"&&(o.getControl("pt_ktvmishni_isv").value=i.data.find(n=>n.tb_isv_kod==i.value)?.tb_isv_pia))}beforeSubmit(e){let i=e.sender.getControl("pt_newpassword")?.value;if(i){let o=e.sender.getControl("pt_validatepassword")?.value;i!==o&&(e.hasError=!0,e.errors.push(this.formService.translate("*.NotEqualsPasswords")))}if(this.data.settings.showSecondaryAddressOption){let o=e.sender.getControl("useprimaryaddressformail").value,n=e.sender.getControl("usesecondaryaddressformail").value;o&&n?(e.hasError=!0,e.errors.push(this.formService.translate("*.Address.OnlyOneAddressForMail"))):!o&&!n&&(e.hasError=!0,e.errors.push(this.formService.translate("*.Address.ShouldSelectAddressForMail")))}}ShowTofesRefui(){this.formService.post("GetTofesRefui",null,e=>{this.ShowShlnRefui=!0,this.ShlnRefui=e.shelnTofesRefui})}afterSubmit(e){this.data.isFromTofesTiulim&&setTimeout(()=>{this.formService.router.navigate(this.data.goto.pageName,this.data.goto)},2e3)}afterSubmitShlnRefui(e){this.formService.info(e.response.msg),this.ShowShlnRefui=!1}Close(){this.ShowShlnRefui=!1}static{this.\u0275fac=function(i){return new(i||t)(h(w),h(X),h(z))}}static{this.\u0275cmp=y({type:t,selectors:[["ng-component"]],viewQuery:function(i,o){if(i&1&&F(ie,5),i&2){let n;
1B(n=P())&&(o.formView=n.first)}},standalone:!1,features:[A([w]),I],decls:4,vars:1,consts:[[3,"formViewItem","showActionButton","actionButtonText","successMessage"],["tab","",3,"title"],[4,"ngIf"],[3,"fieldChange","beforeSubmit","afterSubmit","formViewItem","successMessage"],["fieldPlaceHolder","","fieldName","pt_orcid"],["group-placeholder","",3,"groupId","ordinal","title"],["type","prominent",3,"click"],[1,"font-thick","font-size-begger"],[3,"module","data"],[3,"formViewItem","showActionButton","actionButtonText","successMessage","actionButton","afterSubmit",4,"ngIf"],[3,"actionButton","afterSubmit","formViewItem","showActionButton","actionButtonText","successMessage"]],template:function(i,o){i&1&&(c(0,"form-header"),l(1,fe,5,5,"r-tabs")(2,ce,1,1,"r-form-view",0),c(3,"form-footer")),i&2&&(f(),R(o.ShowShlnRefui?2:1))},dependencies:[k,J,K,j,G,U,H,L,Z,Y,S,Q],styles:[".font-size-begger[_ngcontent-%COMP%]{font-size:1.2rem}r-tabs[_ngcontent-%COMP%]{flex:1}"]})}}return t})();var ue=[{path:"",component:T}],ke=(()=>{class t{static{this.entry=T}static{this.\u0275fac=function(i){return new(i||t)}}static{this.\u0275mod=D({type:t})}static{this.\u0275inj=b({imports:[O.forChild(ue),W,$,S]})}}return t})();export{ke as DetailsModule};
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.